New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shopware-ag/admin-extension-sdk

Package Overview
Dependencies
Maintainers
7
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/admin-extension-sdk - npm Package Compare versions

Comparing version 0.0.49 to 0.0.50

2

cdn/index.js

@@ -1,1 +0,1 @@

var Tg=Object.defineProperty;var Ue=Object.getOwnPropertySymbols;var Ag=Object.prototype.hasOwnProperty,Og=Object.prototype.propertyIsEnumerable;var jt=(y,h,b)=>h in y?Tg(y,h,{enumerable:!0,configurable:!0,writable:!0,value:b}):y[h]=b,Ct=(y,h)=>{for(var b in h||(h={}))Ag.call(h,b)&&jt(y,b,h[b]);if(Ue)for(var b of Ue(h))Og.call(h,b)&&jt(y,b,h[b]);return y};var f=(y,h,b)=>(jt(y,typeof h!="symbol"?h+"":h,b),b);(function(y,h){typeof exports=="object"&&typeof module!="undefined"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(y=typeof globalThis!="undefined"?globalThis:y||self,h(y.sw={}))})(this,function(y){var Ge;"use strict";var h=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},b=Object.prototype,He=b.hasOwnProperty;function Be(t,e){return t!=null&&He.call(t,e)}var Ke=Be,ke=Array.isArray,O=ke,qe=typeof h=="object"&&h&&h.Object===Object&&h,Pt=qe,Ve=Pt,We=typeof self=="object"&&self&&self.Object===Object&&self,Je=Ve||We||Function("return this")(),T=Je,Ye=T,Xe=Ye.Symbol,V=Xe,It=V,Et=Object.prototype,Ze=Et.hasOwnProperty,Qe=Et.toString,R=It?It.toStringTag:void 0;function tr(t){var e=Ze.call(t,R),r=t[R];try{t[R]=void 0;var n=!0}catch{}var i=Qe.call(t);return n&&(e?t[R]=r:delete t[R]),i}var er=tr,rr=Object.prototype,nr=rr.toString;function ir(t){return nr.call(t)}var ar=ir,Mt=V,sr=er,or=ar,cr="[object Null]",ur="[object Undefined]",xt=Mt?Mt.toStringTag:void 0;function lr(t){return t==null?t===void 0?ur:cr:xt&&xt in Object(t)?sr(t):or(t)}var G=lr;function fr(t){return t!=null&&typeof t=="object"}var P=fr,gr=G,_r=P,dr="[object Symbol]";function pr(t){return typeof t=="symbol"||_r(t)&&gr(t)==dr}var rt=pr,hr=O,yr=rt,vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/;function $r(t,e){if(hr(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||yr(t)?!0:br.test(t)||!vr.test(t)||e!=null&&t in Object(e)}var mr=$r;function Sr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var U=Sr,wr=G,Tr=U,Ar="[object AsyncFunction]",Or="[object Function]",jr="[object GeneratorFunction]",Cr="[object Proxy]";function Pr(t){if(!Tr(t))return!1;var e=wr(t);return e==Or||e==jr||e==Ar||e==Cr}var Dt=Pr,Ir=T,Er=Ir["__core-js_shared__"],Mr=Er,nt=Mr,zt=function(){var t=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xr(t){return!!zt&&zt in t}var Dr=xr,zr=Function.prototype,Fr=zr.toString;function Lr(t){if(t!=null){try{return Fr.call(t)}catch{}try{return t+""}catch{}}return""}var Ft=Lr,Nr=Dt,Rr=Dr,Gr=U,Ur=Ft,Hr=/[\\^$.*+?()[\]{}|]/g,Br=/^\[object .+?Constructor\]$/,Kr=Function.prototype,kr=Object.prototype,qr=Kr.toString,Vr=kr.hasOwnProperty,Wr=RegExp("^"+qr.call(Vr).replace(Hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jr(t){if(!Gr(t)||Rr(t))return!1;var e=Nr(t)?Wr:Br;return e.test(Ur(t))}var Yr=Jr;function Xr(t,e){return t==null?void 0:t[e]}var Zr=Xr,Qr=Yr,tn=Zr;function en(t,e){var r=tn(t,e);return Qr(r)?r:void 0}var j=en,rn=j,nn=rn(Object,"create"),W=nn,Lt=W;function an(){this.__data__=Lt?Lt(null):{},this.size=0}var sn=an;function on(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var cn=on,un=W,ln="__lodash_hash_undefined__",fn=Object.prototype,gn=fn.hasOwnProperty;function _n(t){var e=this.__data__;if(un){var r=e[t];return r===ln?void 0:r}return gn.call(e,t)?e[t]:void 0}var dn=_n,pn=W,hn=Object.prototype,yn=hn.hasOwnProperty;function vn(t){var e=this.__data__;return pn?e[t]!==void 0:yn.call(e,t)}var bn=vn,$n=W,mn="__lodash_hash_undefined__";function Sn(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=$n&&e===void 0?mn:e,this}var wn=Sn,Tn=sn,An=cn,On=dn,jn=bn,Cn=wn;function I(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}I.prototype.clear=Tn,I.prototype.delete=An,I.prototype.get=On,I.prototype.has=jn,I.prototype.set=Cn;var Pn=I;function In(){this.__data__=[],this.size=0}var En=In;function Mn(t,e){return t===e||t!==t&&e!==e}var Nt=Mn,xn=Nt;function Dn(t,e){for(var r=t.length;r--;)if(xn(t[r][0],e))return r;return-1}var J=Dn,zn=J,Fn=Array.prototype,Ln=Fn.splice;function Nn(t){var e=this.__data__,r=zn(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Ln.call(e,r,1),--this.size,!0}var Rn=Nn,Gn=J;function Un(t){var e=this.__data__,r=Gn(e,t);return r<0?void 0:e[r][1]}var Hn=Un,Bn=J;function Kn(t){return Bn(this.__data__,t)>-1}var kn=Kn,qn=J;function Vn(t,e){var r=this.__data__,n=qn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Wn=Vn,Jn=En,Yn=Rn,Xn=Hn,Zn=kn,Qn=Wn;function E(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}E.prototype.clear=Jn,E.prototype.delete=Yn,E.prototype.get=Xn,E.prototype.has=Zn,E.prototype.set=Qn;var Y=E,ti=j,ei=T,ri=ti(ei,"Map"),it=ri,Rt=Pn,ni=Y,ii=it;function ai(){this.size=0,this.__data__={hash:new Rt,map:new(ii||ni),string:new Rt}}var si=ai;function oi(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ci=oi,ui=ci;function li(t,e){var r=t.__data__;return ui(e)?r[typeof e=="string"?"string":"hash"]:r.map}var X=li,fi=X;function gi(t){var e=fi(this,t).delete(t);return this.size-=e?1:0,e}var _i=gi,di=X;function pi(t){return di(this,t).get(t)}var hi=pi,yi=X;function vi(t){return yi(this,t).has(t)}var bi=vi,$i=X;function mi(t,e){var r=$i(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Si=mi,wi=si,Ti=_i,Ai=hi,Oi=bi,ji=Si;function M(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}M.prototype.clear=wi,M.prototype.delete=Ti,M.prototype.get=Ai,M.prototype.has=Oi,M.prototype.set=ji;var Gt=M,Ut=Gt,Ci="Expected a function";function at(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Ci);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(at.Cache||Ut),r}at.Cache=Ut;var Pi=at,Ii=Pi,Ei=500;function Mi(t){var e=Ii(t,function(n){return r.size===Ei&&r.clear(),n}),r=e.cache;return e}var xi=Mi,Di=xi,zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fi=/\\(\\)?/g,Li=Di(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(zi,function(r,n,i,a){e.push(i?a.replace(Fi,"$1"):n||r)}),e}),Ni=Li;function Ri(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Gi=Ri,Ht=V,Ui=Gi,Hi=O,Bi=rt,Ki=1/0,Bt=Ht?Ht.prototype:void 0,Kt=Bt?Bt.toString:void 0;function kt(t){if(typeof t=="string")return t;if(Hi(t))return Ui(t,kt)+"";if(Bi(t))return Kt?Kt.call(t):"";var e=t+"";return e=="0"&&1/t==-Ki?"-0":e}var ki=kt,qi=ki;function Vi(t){return t==null?"":qi(t)}var Wi=Vi,Ji=O,Yi=mr,Xi=Ni,Zi=Wi;function Qi(t,e){return Ji(t)?t:Yi(t,e)?[t]:Xi(Zi(t))}var ta=Qi,ea=G,ra=P,na="[object Arguments]";function ia(t){return ra(t)&&ea(t)==na}var aa=ia,qt=aa,sa=P,Vt=Object.prototype,oa=Vt.hasOwnProperty,ca=Vt.propertyIsEnumerable,ua=qt(function(){return arguments}())?qt:function(t){return sa(t)&&oa.call(t,"callee")&&!ca.call(t,"callee")},Wt=ua,la=9007199254740991,fa=/^(?:0|[1-9]\d*)$/;function ga(t,e){var r=typeof t;return e=e==null?la:e,!!e&&(r=="number"||r!="symbol"&&fa.test(t))&&t>-1&&t%1==0&&t<e}var Jt=ga,_a=9007199254740991;function da(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=_a}var st=da,pa=rt,ha=1/0;function ya(t){if(typeof t=="string"||pa(t))return t;var e=t+"";return e=="0"&&1/t==-ha?"-0":e}var va=ya,ba=ta,$a=Wt,ma=O,Sa=Jt,wa=st,Ta=va;function Aa(t,e,r){e=ba(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=Ta(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&wa(i)&&Sa(s,i)&&(ma(t)||$a(t)))}var Oa=Aa,ja=Ke,Ca=Oa;function Pa(t,e){return t!=null&&Ca(t,e,ja)}var Ia=Pa;function Yt(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function Z(t){return t!==null&&typeof t=="object"}function ot(){return new URLSearchParams(window.location.search).get("location-id")}function Ea(){const t=window.location;return new URL(t.pathname,t.origin).toString()}function H(t,e){return Z(e)&&e.__type__&&e.__type__===t}function Ma(t,e){return Ia(t,e)}function Xt(t,e){for(let r in t){const n=t[r];e.apply(this,[t,r,n]),Z(n)&&Xt(n,e)}}const ct={notificationDispatch:{},windowRedirect:{},windowReload:{},contextLanguage:{},contextEnvironment:{},contextLocale:{},contextCurrency:{},contextShopwareVersion:{},contextAppInformation:{},getPageTitle:{},uiComponentSectionRenderer:{},uiTabsAddTabItem:{},locationUpdateHeight:{},menuItemAdd:{},settingsItemAdd:{},mainModuleAdd:{},uiModalOpen:{},uiModalClose:{},actionButtonAdd:{},actionExecute:{},__function__:{},__registerWindow__:{},_criteriaTest:{},_collectionTest:{},_multiply:{},_subtract:{},_privileges:{create:["user"],read:["user"],update:["user"],delete:["user"]}};function xa(t){const e=Zt(t),r=za(window.location);return!e||Object.keys(e).length<=0?null:Qt(e,r)}function Da(t,e,r){const n=Zt(t),i=te(e,r);return i?Qt(n,i.permissions):null}function Zt(t){var e;return(e=ct[t])!=null?e:{}}function za(t){const r=new URLSearchParams(t.search).get("privileges");return r?JSON.parse(r):{}}function Qt(t,e){const r=Object.keys(t),n=[];return r.forEach(i=>{var a;(a=t[i])==null||a.forEach(s=>{var c;(c=e[i])!=null&&c.includes(s)||n.push(`${i}:${s}`)})}),n.length>=1?n:null}function te(t,e){let r=null;return Object.values(t).forEach(n=>{n.baseUrl===e&&(r=n)}),r}class x extends Error{constructor(e,r){super(`Your app is missing the priviliges ${r.join(", ")} for action "${e}".`);f(this,"missingPrivileges");f(this,"messageType");this.missingPrivileges=r,this.messageType=e,Object.setPrototypeOf(this,x.prototype)}toJSON(){return{__type__:"__MissingPrivilegesError__",__messageType__:this.messageType,__data__:this.missingPrivileges}}}const Fa=({send:t,handleFactory:e})=>{const r={};let n=!1;function i(){if(n)return;n=!0,e({})("__function__",async({args:s,id:c})=>await Promise.resolve(r[c](...s)))}return{name:"function",serialize:({value:a})=>{if(typeof a=="function"){const s=Yt();return r[s]=a,i(),{__type__:"__function__",id:s,origin:window.origin}}},deserialize:({value:a,event:s})=>{var u;const c=(u=s==null?void 0:s.source)!=null?u:window;if(Z(a)&&a.__type__&&a.__type__==="__function__"&&typeof a.id=="string"){const o=a.id,l=a.origin;return(...g)=>t("__function__",{args:g,id:o},c,l)}}}};var La=Y;function Na(){this.__data__=new La,this.size=0}var Ra=Na;function Ga(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Ua=Ga;function Ha(t){return this.__data__.get(t)}var Ba=Ha;function Ka(t){return this.__data__.has(t)}var ka=Ka,qa=Y,Va=it,Wa=Gt,Ja=200;function Ya(t,e){var r=this.__data__;if(r instanceof qa){var n=r.__data__;if(!Va||n.length<Ja-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wa(n)}return r.set(t,e),this.size=r.size,this}var Xa=Ya,Za=Y,Qa=Ra,ts=Ua,es=Ba,rs=ka,ns=Xa;function D(t){var e=this.__data__=new Za(t);this.size=e.size}D.prototype.clear=Qa,D.prototype.delete=ts,D.prototype.get=es,D.prototype.has=rs,D.prototype.set=ns;var is=D;function as(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var ss=as,os=j,cs=function(){try{var t=os(Object,"defineProperty");return t({},"",{}),t}catch{}}(),us=cs,ee=us;function ls(t,e,r){e=="__proto__"&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var re=ls,fs=re,gs=Nt,_s=Object.prototype,ds=_s.hasOwnProperty;function ps(t,e,r){var n=t[e];(!(ds.call(t,e)&&gs(n,r))||r===void 0&&!(e in t))&&fs(t,e,r)}var ne=ps,hs=ne,ys=re;function vs(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],u=n?n(r[c],t[c],c,r,t):void 0;u===void 0&&(u=t[c]),i?ys(r,c,u):hs(r,c,u)}return r}var Q=vs;function bs(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var $s=bs,tt={exports:{}};function ms(){return!1}var Ss=ms;(function(t,e){var r=T,n=Ss,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===i,c=s?r.Buffer:void 0,u=c?c.isBuffer:void 0,o=u||n;t.exports=o})(tt,tt.exports);var ws=G,Ts=st,As=P,Os="[object Arguments]",js="[object Array]",Cs="[object Boolean]",Ps="[object Date]",Is="[object Error]",Es="[object Function]",Ms="[object Map]",xs="[object Number]",Ds="[object Object]",zs="[object RegExp]",Fs="[object Set]",Ls="[object String]",Ns="[object WeakMap]",Rs="[object ArrayBuffer]",Gs="[object DataView]",Us="[object Float32Array]",Hs="[object Float64Array]",Bs="[object Int8Array]",Ks="[object Int16Array]",ks="[object Int32Array]",qs="[object Uint8Array]",Vs="[object Uint8ClampedArray]",Ws="[object Uint16Array]",Js="[object Uint32Array]",p={};p[Us]=p[Hs]=p[Bs]=p[Ks]=p[ks]=p[qs]=p[Vs]=p[Ws]=p[Js]=!0,p[Os]=p[js]=p[Rs]=p[Cs]=p[Gs]=p[Ps]=p[Is]=p[Es]=p[Ms]=p[xs]=p[Ds]=p[zs]=p[Fs]=p[Ls]=p[Ns]=!1;function Ys(t){return As(t)&&Ts(t.length)&&!!p[ws(t)]}var Xs=Ys;function Zs(t){return function(e){return t(e)}}var ut=Zs,B={exports:{}};(function(t,e){var r=Pt,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,s=a&&r.process,c=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();t.exports=c})(B,B.exports);var Qs=Xs,to=ut,ie=B.exports,ae=ie&&ie.isTypedArray,eo=ae?to(ae):Qs,ro=eo,no=$s,io=Wt,ao=O,so=tt.exports,oo=Jt,co=ro,uo=Object.prototype,lo=uo.hasOwnProperty;function fo(t,e){var r=ao(t),n=!r&&io(t),i=!r&&!n&&so(t),a=!r&&!n&&!i&&co(t),s=r||n||i||a,c=s?no(t.length,String):[],u=c.length;for(var o in t)(e||lo.call(t,o))&&!(s&&(o=="length"||i&&(o=="offset"||o=="parent")||a&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||oo(o,u)))&&c.push(o);return c}var se=fo,go=Object.prototype;function _o(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||go;return t===r}var lt=_o;function po(t,e){return function(r){return t(e(r))}}var oe=po,ho=oe,yo=ho(Object.keys,Object),vo=yo,bo=lt,$o=vo,mo=Object.prototype,So=mo.hasOwnProperty;function wo(t){if(!bo(t))return $o(t);var e=[];for(var r in Object(t))So.call(t,r)&&r!="constructor"&&e.push(r);return e}var To=wo,Ao=Dt,Oo=st;function jo(t){return t!=null&&Oo(t.length)&&!Ao(t)}var ce=jo,Co=se,Po=To,Io=ce;function Eo(t){return Io(t)?Co(t):Po(t)}var ft=Eo,Mo=Q,xo=ft;function Do(t,e){return t&&Mo(e,xo(e),t)}var zo=Do;function Fo(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Lo=Fo,No=U,Ro=lt,Go=Lo,Uo=Object.prototype,Ho=Uo.hasOwnProperty;function Bo(t){if(!No(t))return Go(t);var e=Ro(t),r=[];for(var n in t)n=="constructor"&&(e||!Ho.call(t,n))||r.push(n);return r}var Ko=Bo,ko=se,qo=Ko,Vo=ce;function Wo(t){return Vo(t)?ko(t,!0):qo(t)}var gt=Wo,Jo=Q,Yo=gt;function Xo(t,e){return t&&Jo(e,Yo(e),t)}var Zo=Xo,_t={exports:{}};(function(t,e){var r=T,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,s=a?r.Buffer:void 0,c=s?s.allocUnsafe:void 0;function u(o,l){if(l)return o.slice();var g=o.length,_=c?c(g):new o.constructor(g);return o.copy(_),_}t.exports=u})(_t,_t.exports);function Qo(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var tc=Qo;function ec(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}var rc=ec;function nc(){return[]}var ue=nc,ic=rc,ac=ue,sc=Object.prototype,oc=sc.propertyIsEnumerable,le=Object.getOwnPropertySymbols,cc=le?function(t){return t==null?[]:(t=Object(t),ic(le(t),function(e){return oc.call(t,e)}))}:ac,dt=cc,uc=Q,lc=dt;function fc(t,e){return uc(t,lc(t),e)}var gc=fc;function _c(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var fe=_c,dc=oe,pc=dc(Object.getPrototypeOf,Object),ge=pc,hc=fe,yc=ge,vc=dt,bc=ue,$c=Object.getOwnPropertySymbols,mc=$c?function(t){for(var e=[];t;)hc(e,vc(t)),t=yc(t);return e}:bc,_e=mc,Sc=Q,wc=_e;function Tc(t,e){return Sc(t,wc(t),e)}var Ac=Tc,Oc=fe,jc=O;function Cc(t,e,r){var n=e(t);return jc(t)?n:Oc(n,r(t))}var de=Cc,Pc=de,Ic=dt,Ec=ft;function Mc(t){return Pc(t,Ec,Ic)}var xc=Mc,Dc=de,zc=_e,Fc=gt;function Lc(t){return Dc(t,Fc,zc)}var Nc=Lc,Rc=j,Gc=T,Uc=Rc(Gc,"DataView"),Hc=Uc,Bc=j,Kc=T,kc=Bc(Kc,"Promise"),qc=kc,Vc=j,Wc=T,Jc=Vc(Wc,"Set"),Yc=Jc,Xc=j,Zc=T,Qc=Xc(Zc,"WeakMap"),tu=Qc,pt=Hc,ht=it,yt=qc,vt=Yc,bt=tu,pe=G,z=Ft,he="[object Map]",eu="[object Object]",ye="[object Promise]",ve="[object Set]",be="[object WeakMap]",$e="[object DataView]",ru=z(pt),nu=z(ht),iu=z(yt),au=z(vt),su=z(bt),C=pe;(pt&&C(new pt(new ArrayBuffer(1)))!=$e||ht&&C(new ht)!=he||yt&&C(yt.resolve())!=ye||vt&&C(new vt)!=ve||bt&&C(new bt)!=be)&&(C=function(t){var e=pe(t),r=e==eu?t.constructor:void 0,n=r?z(r):"";if(n)switch(n){case ru:return $e;case nu:return he;case iu:return ye;case au:return ve;case su:return be}return e});var $t=C,ou=Object.prototype,cu=ou.hasOwnProperty;function uu(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&cu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var lu=uu,fu=T,gu=fu.Uint8Array,_u=gu,me=_u;function du(t){var e=new t.constructor(t.byteLength);return new me(e).set(new me(t)),e}var mt=du,pu=mt;function hu(t,e){var r=e?pu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var yu=hu,vu=/\w*$/;function bu(t){var e=new t.constructor(t.source,vu.exec(t));return e.lastIndex=t.lastIndex,e}var $u=bu,Se=V,we=Se?Se.prototype:void 0,Te=we?we.valueOf:void 0;function mu(t){return Te?Object(Te.call(t)):{}}var Su=mu,wu=mt;function Tu(t,e){var r=e?wu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Au=Tu,Ou=mt,ju=yu,Cu=$u,Pu=Su,Iu=Au,Eu="[object Boolean]",Mu="[object Date]",xu="[object Map]",Du="[object Number]",zu="[object RegExp]",Fu="[object Set]",Lu="[object String]",Nu="[object Symbol]",Ru="[object ArrayBuffer]",Gu="[object DataView]",Uu="[object Float32Array]",Hu="[object Float64Array]",Bu="[object Int8Array]",Ku="[object Int16Array]",ku="[object Int32Array]",qu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Ju="[object Uint32Array]";function Yu(t,e,r){var n=t.constructor;switch(e){case Ru:return Ou(t);case Eu:case Mu:return new n(+t);case Gu:return ju(t,r);case Uu:case Hu:case Bu:case Ku:case ku:case qu:case Vu:case Wu:case Ju:return Iu(t,r);case xu:return new n;case Du:case Lu:return new n(t);case zu:return Cu(t);case Fu:return new n;case Nu:return Pu(t)}}var Xu=Yu,Zu=U,Ae=Object.create,Qu=function(){function t(){}return function(e){if(!Zu(e))return{};if(Ae)return Ae(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),tl=Qu,el=tl,rl=ge,nl=lt;function il(t){return typeof t.constructor=="function"&&!nl(t)?el(rl(t)):{}}var al=il,sl=$t,ol=P,cl="[object Map]";function ul(t){return ol(t)&&sl(t)==cl}var ll=ul,fl=ll,gl=ut,Oe=B.exports,je=Oe&&Oe.isMap,_l=je?gl(je):fl,dl=_l,pl=$t,hl=P,yl="[object Set]";function vl(t){return hl(t)&&pl(t)==yl}var bl=vl,$l=bl,ml=ut,Ce=B.exports,Pe=Ce&&Ce.isSet,Sl=Pe?ml(Pe):$l,wl=Sl,Tl=is,Al=ss,Ol=ne,jl=zo,Cl=Zo,Pl=_t.exports,Il=tc,El=gc,Ml=Ac,xl=xc,Dl=Nc,zl=$t,Fl=lu,Ll=Xu,Nl=al,Rl=O,Gl=tt.exports,Ul=dl,Hl=U,Bl=wl,Kl=ft,kl=gt,ql=1,Vl=2,Wl=4,Ie="[object Arguments]",Jl="[object Array]",Yl="[object Boolean]",Xl="[object Date]",Zl="[object Error]",Ee="[object Function]",Ql="[object GeneratorFunction]",tf="[object Map]",ef="[object Number]",Me="[object Object]",rf="[object RegExp]",nf="[object Set]",af="[object String]",sf="[object Symbol]",of="[object WeakMap]",cf="[object ArrayBuffer]",uf="[object DataView]",lf="[object Float32Array]",ff="[object Float64Array]",gf="[object Int8Array]",_f="[object Int16Array]",df="[object Int32Array]",pf="[object Uint8Array]",hf="[object Uint8ClampedArray]",yf="[object Uint16Array]",vf="[object Uint32Array]",d={};d[Ie]=d[Jl]=d[cf]=d[uf]=d[Yl]=d[Xl]=d[lf]=d[ff]=d[gf]=d[_f]=d[df]=d[tf]=d[ef]=d[Me]=d[rf]=d[nf]=d[af]=d[sf]=d[pf]=d[hf]=d[yf]=d[vf]=!0,d[Zl]=d[Ee]=d[of]=!1;function et(t,e,r,n,i,a){var s,c=e&ql,u=e&Vl,o=e&Wl;if(r&&(s=i?r(t,n,i,a):r(t)),s!==void 0)return s;if(!Hl(t))return t;var l=Rl(t);if(l){if(s=Fl(t),!c)return Il(t,s)}else{var g=zl(t),_=g==Ee||g==Ql;if(Gl(t))return Pl(t,c);if(g==Me||g==Ie||_&&!i){if(s=u||_?{}:Nl(t),!c)return u?Ml(t,Cl(s,t)):El(t,jl(s,t))}else{if(!d[g])return i?t:{};s=Ll(t,g,c)}}a||(a=new Tl);var m=a.get(t);if(m)return m;a.set(t,s),Bl(t)?t.forEach(function(S){s.add(et(S,e,r,S,t,a))}):Ul(t)&&t.forEach(function(S,w){s.set(w,et(S,e,r,w,t,a))});var N=o?u?Dl:xl:u?kl:Kl,A=l?void 0:N(t);return Al(A||t,function(S,w){A&&(w=S,S=t[w]),Ol(s,w,et(S,e,r,w,t,a))}),s}var xe=et,bf=xe,$f=1,mf=4;function Sf(t){return bf(t,$f|mf)}var St=Sf;class F{constructor(e=1,r=25){f(this,"page");f(this,"limit");f(this,"term");f(this,"filters");f(this,"ids");f(this,"queries");f(this,"associations");f(this,"postFilter");f(this,"sortings");f(this,"aggregations");f(this,"grouping");f(this,"fields");f(this,"groupFields");f(this,"totalCountMode");f(this,"includes");this.page=e,this.limit=r,this.term=null,this.filters=[],this.includes=null,this.ids=[],this.queries=[],this.associations=[],this.postFilter=[],this.sortings=[],this.aggregations=[],this.grouping=[],this.groupFields=[],this.fields=[],this.totalCountMode=1}static fromCriteria(e){return St(e)}parse(){const e={};return this.ids.length>0&&(e.ids=this.ids.join("|")),this.page!==null&&(e.page=this.page),this.limit!==null&&(e.limit=this.limit),this.term!==null&&(e.term=this.term),this.queries.length>0&&(e.query=this.queries),this.filters.length>0&&(e.filter=this.filters),this.postFilter.length>0&&(e["post-filter"]=this.postFilter),this.sortings.length>0&&(e.sort=this.sortings),this.aggregations.length>0&&(e.aggregations=this.aggregations),this.groupFields.length>0&&(e.groupFields=this.groupFields),this.grouping.length>0&&(e.grouping=this.grouping),this.fields.length>0&&(e.fields=this.fields),this.associations.length>0&&(e.associations={},this.associations.forEach(r=>{!e.associations||(e.associations[r.association]=r.criteria.parse())})),this.includes!==null&&(e.includes=this.includes),this.totalCountMode!==null&&(e["total-count-mode"]=this.totalCountMode),e}setIds(e){return this.ids=e,this}setTotalCountMode(e){return typeof e!="number"&&(this.totalCountMode=null),this.totalCountMode=e<0||e>2?null:e,this}setPage(e){return this.page=e,this}setLimit(e){return this.limit=e,this}setTerm(e){return this.term=e,this}addFilter(e){return this.filters.push(e),this}addIncludes(e){return Object.entries(e).forEach(([r,n])=>{this.includes===null&&(this.includes={}),this.includes[r]||(this.includes[r]=[]),this.includes[r].push(...n)}),this}addPostFilter(e){return this.postFilter.push(e),this}addSorting(e){return this.sortings.push(e),this}addQuery(e,r,n=null){const i={score:r,query:e};return n&&(i[n]=n),this.queries.push(i),this}addGroupField(e){return this.groupFields.push(e),this}addGrouping(e){return this.grouping.push(e),this}addFields(...e){return this.fields.push(...e),this}addAggregation(e){return this.aggregations.push(e),this}addAssociation(e){const r=e.split(".");let n=this;return r.forEach(i=>{n=n.getAssociation(i)}),this}getAssociation(e){const r=e.split(".");let n=this;return r.forEach(i=>{n.hasAssociation(i)||n.associations.push({association:i,criteria:new F(null,null)}),n=n.getAssociationCriteria(i)}),n}getAssociationCriteria(e){let r=null;return this.associations.forEach(n=>{n.association===e&&(r=n.criteria)}),r}getLimit(){var e;return(e=this.limit)!=null?e:0}getPage(){var e;return(e=this.page)!=null?e:0}getCriteriaData(){return{page:this.page,limit:this.limit,term:this.term,filters:this.filters,ids:this.ids,queries:this.queries,associations:this.associations,postFilter:this.postFilter,sortings:this.sortings,aggregations:this.aggregations,grouping:this.grouping,fields:this.fields,groupFields:this.groupFields,totalCountMode:this.totalCountMode,includes:this.includes}}hasAssociation(e){return this.associations.some(r=>r.association===e)}resetSorting(){this.sortings=[]}static avg(e,r){return{type:"avg",name:e,field:r}}static count(e,r){return{type:"count",name:e,field:r}}static max(e,r){return{type:"max",name:e,field:r}}static min(e,r){return{type:"min",name:e,field:r}}static stats(e,r){return{type:"stats",name:e,field:r}}static sum(e,r){return{type:"sum",name:e,field:r}}static terms(e,r,n=null,i=null,a=null){return{type:"terms",name:e,field:r,limit:n,sort:i,aggregation:a}}static filter(e,r,n){return{type:"filter",name:e,filter:r,aggregation:n}}static histogram(e,r,n,i,a,s){return{type:"histogram",name:e,field:r,interval:n,format:i,aggregation:a,timeZone:s}}static sort(e,r="ASC",n=!1){return{field:e,order:r,naturalSorting:n}}static naturalSorting(e,r="ASC"){return{field:e,order:r,naturalSorting:!0}}static contains(e,r){return{type:"contains",field:e,value:r}}static prefix(e,r){return{type:"prefix",field:e,value:r}}static suffix(e,r){return{type:"suffix",field:e,value:r}}static equalsAny(e,r){return{type:"equalsAny",field:e,value:r.join("|")}}static range(e,r){return{type:"range",field:e,parameters:r}}static equals(e,r){return{type:"equals",field:e,value:r}}static not(e,r=[]){return{type:"not",operator:e,queries:r}}static multi(e,r=[]){return{type:"multi",operator:e,queries:r}}}const wf=()=>({name:"criteria",serialize:({value:t,customizerMethod:e})=>{if(t instanceof F)return{__type__:"__Criteria__",data:e(t.getCriteriaData())}},deserialize:({value:t,customizerMethod:e})=>{if(H("__Criteria__",t)&&typeof t.data=="object"){const r=t.data,n=new F;return n.setPage(r.page),n.setLimit(r.limit),n.setTerm(r.term),r.filters.forEach(i=>{n.addFilter(i)}),n.setIds(r.ids),r.queries.forEach(({query:i,score:a})=>{n.addQuery(i,a)}),r.associations.forEach(i=>{n.associations.push(e(i))}),r.postFilter.forEach(i=>{n.addPostFilter(i)}),r.sortings.forEach(i=>{n.addSorting(i)}),r.aggregations.forEach(i=>{n.addAggregation(i)}),r.grouping.forEach(i=>{n.addGrouping(i)}),r.fields.forEach(i=>{n.addFields(i)}),r.groupFields.forEach(i=>{n.addGroupField(i)}),r.includes&&n.addIncludes(r.includes),n.setTotalCountMode(r.totalCountMode),n}}});let Tf=(t,e,r)=>{t[e]=r};class Af{constructor(e,r,n,i={}){f(this,"id");f(this,"_origin");f(this,"_entityName");f(this,"_draft");f(this,"_isDirty");f(this,"_isNew");var s,c;this.id=e,this._origin=i.originData?St(i.originData):St(n),this._entityName=r,this._draft=n,this._isDirty=(s=i.isDirty)!=null?s:!1,this._isNew=(c=i.isNew)!=null?c:!1;const a=this;return new Proxy(this._draft,{get(u,o){return o in a._draft?a._draft[o]:a[o]},set(u,o,l){return Tf(a._draft,o,l),a._isDirty=!0,!0}})}markAsNew(){this._isNew=!0}isNew(){return this._isNew}getIsDirty(){return this._isDirty}getOrigin(){return this._origin}getDraft(){return this._draft}getEntityName(){return this._entityName}}const De=function(e,r,n,i){return new Af(e,r,n,i)},Of=()=>({name:"entity",serialize:({value:t,customizerMethod:e})=>{if(!(!Z(t)||typeof t.getDraft!="function"))return{__type__:"__Entity__",__id__:t.id,__entityName__:t._entityName,__isDirty__:t._isDirty,__isNew__:t._isNew,__origin__:e(t._origin),__draft__:e(t._draft)}},deserialize:({value:t,customizerMethod:e})=>{if(H("__Entity__",t)&&typeof t.__origin__=="object")return new De(t.__id__,t.__entityName__,e(t.__draft__),{originData:e(t.__origin__),isDirty:t.__isDirty__,isNew:t.__isNew__})}});class L extends Array{constructor(e,r,n,i=null,a=[],s=null,c=null){super();f(this,"entity");f(this,"source");f(this,"context");f(this,"criteria");f(this,"aggregations");f(this,"total");f(this,"first");f(this,"last");f(this,"remove");f(this,"has");f(this,"get");f(this,"getAt");f(this,"getIds");f(this,"add");f(this,"addAt");f(this,"moveItem");this.entity=r,this.source=e,this.context=n,this.criteria=i,this.aggregations=c,this.total=s,this.push(...a),this.first=function(){return this.length<=0?null:this[0]},this.last=function(){return this.length<=0?null:this[this.length-1]},this.remove=function(o){const l=this.findIndex(g=>g.id===o);return l<0?!1:(this.splice(l,1),!0)},this.has=function(o){return this.some(l=>l.id===o)},this.get=function(o){const l=this.find(g=>g.id===o);return typeof l!="undefined"?l:null},this.getAt=function(o){const l=this[o];return typeof l!="undefined"?l:null},this.getIds=function(){return this.map(o=>o.id)},this.add=function(o){this.push(o)},this.addAt=function(o,l){if(typeof l=="undefined"){this.add(o);return}this.splice(l,0,o)},this.moveItem=function(o,l=null){if(l===null&&(l=this.length),o<0||o>=this.length)return null;if(l===o)return this.getAt(o);const g=this.find((N,A)=>A===o);if(typeof g=="undefined")return null;const _=this.filter((N,A)=>A!==o),m=[..._.slice(0,l),g,..._.slice(l)];return this.splice(0,this.length,...m),g},this.filter=function(o,l){const g=Object.getPrototypeOf(this).filter.call(this,o,l);return new L(this.source,this.entity,this.context,this.criteria,g,this.total,this.aggregations)}}static fromCollection(e){return new L(e.source,e.entity,e.context,e.criteria===null?e.criteria:F.fromCriteria(e.criteria),e,e.total,e.aggregations)}}const jf=()=>({name:"entity-collection",serialize:({value:t,customizerMethod:e})=>{if(t instanceof L)return e({__type__:"__EntityCollection__",__source__:t.source,__entityName__:t.entity,__context__:t.context,__criteria__:t.criteria,__entities__:Array.from(t),__total__:t.total,__aggregations__:t.aggregations})},deserialize:({value:t,customizerMethod:e})=>{if(H("__EntityCollection__",t))return new L(t.__source__,t.__entityName__,t.__context__,e(t.__criteria__),e(t.__entities__),t.__total__,t.__aggregations__)}});class K extends Error{constructor(e,r){super(e);f(this,"code",500);!r||(this.code=r)}toJSON(){return{__type__:"__HandleError__",__code__:this.code,__message__:this.message}}}const Cf=()=>({name:"handle-error",serialize:()=>{},deserialize:({value:t})=>{if(H("__HandleError__",t))return new K(t.__message__,t.__code__)}});var Pf=xe,If=1,Ef=4;function Mf(t,e){return e=typeof e=="function"?e:void 0,Pf(t,If|Ef,e)}var ze=Mf;const xf=[wf,jf,Of,Fa,Cf,()=>({name:"handle-error",serialize:()=>{},deserialize:({value:t})=>{if(H("__MissingPrivilegesError__",t))return new x(t.__messageType__,t.__data__)}})];function Df(t){const e=xf.map(s=>s(t));function r(){return e}function n(s){var c;return(c=e.find(u=>u.name===s))!=null?c:null}function i(s){return ze(s,(c,u,o,l)=>{for(const g of e){const _=g.serialize({value:c,key:u,object:o,stack:l,customizerMethod:i});if(_)return _}})}function a(s,c){return ze(s,(u,o,l,g)=>{for(const _ of e){const m=_.deserialize({value:u,key:o,object:l,stack:g,event:c,customizerMethod:a});if(m)return m}})}return{getSerializers:r,getSerializerByName:n,serialize:i,deserialize:a}}function zf(t,e){if(typeof e=="string")return new K(e);if(!(e instanceof Error))return new K("An unknown error occurred.");if(Ma(e,"response.data.errors.0.code")&&e.response.data.errors.length){const r=e.response.data.errors.filter(i=>i.code==="FRAMEWORK__MISSING_PRIVILEGE_ERROR"),n=[];return r.forEach(i=>{const a=JSON.parse(i.detail);n.push(...a.missingPrivileges)}),n.length?new x(t,n):new K(e.response.data.errors[0].code,e.response.data.errors[0].status)}return new K(e.message)}function Fe({serializedData:t,extensions:e,origin:r,type:n,privilegesToCheck:i=[]}){const a=te(e,r);if(!a)return null;const s=[];return Xt(t,(c,u,o)=>{if(u==="__type__"&&["__EntityCollection__","__Entity__"].includes(o)){const l=c.__entityName__;[...i].sort().forEach(g=>{const _=a.permissions[g];(!_||!_.includes(l))&&s.push(`${g}:${l}`)})}}),s.length>0?new x(n,s):null}const{serialize:wt,deserialize:Le}=Df({handleFactory:Ff,send:$}),Tt=new Set;function $(t,e,r,n){const i=xa(t);if(i!==null){const _=new x(t,i);return Promise.reject(_)}const a=Yt(),s=e!=null?e:{},u=wt({_type:t,_data:s,_callbackId:a}),o=JSON.stringify(u);let l=!1;const g=7e3;return new Promise((_,m)=>{const N=function(w){if(typeof w.data!="string")return;let q;try{q=JSON.parse(w.data)}catch{return}if(!Rf(q)||q._callbackId!==a||!q.hasOwnProperty("_response"))return;const wg=Le(q,w);if(window.removeEventListener("message",N),!l){l=!0;const Ot=wg._response;if(Ot instanceof Error){m(Ot);return}_(Ot)}};window.addEventListener("message",N);let A=!0;try{A=!window.parent.origin}catch{}let S=A?document.referrer:window.parent.origin;n&&(S=n),r?r.postMessage(o,S):window.parent.postMessage(o,S),setTimeout(()=>{l||m("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},g)})}function At(t,e,r){const n=async function(i){var g;if(ct[t]&&Object.keys(ct[t]).length&&(!r||Da(t,r,i.origin)!==null)||typeof i.data!="string")return;let a;try{a=JSON.parse(i.data)}catch{return}if(!Nf(a)||a._type!==t)return;const s=Le(a,i),c=await Promise.resolve((()=>{const _=Fe({serializedData:a,extensions:r,origin:i.origin,type:t,privilegesToCheck:["create","delete","update","read"]});return _||e(s._data,{_event_:i})})()).catch(_=>zf(t,_)),u={_callbackId:s._callbackId,_type:s._type,_response:c!=null?c:null},o=(()=>{let _=wt(u);const m=Fe({serializedData:_,extensions:r,origin:i.origin,privilegesToCheck:["read"],type:t});return m&&(_._response=m,_=wt(_)),_})(),l=JSON.stringify(o);i.source?i.source.postMessage(l,{targetOrigin:(g=i.origin)!=null?g:"*"}):window.postMessage(l,window.origin)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}function Ff(t){return(e,r)=>At(e,r,t)}function Lf(t,e){return At(t,e,{})}function v(t,e){return r=>$(t,Ct(Ct({},e),r))}function Ne(t){return e=>Lf(t,e)}(async()=>{At("__registerWindow__",(t,e)=>{if(e._event_.source){const r=e._event_.source;Tt.add({source:r,origin:e._event_.origin})}else Tt.add({source:window,origin:window.origin})},{}),await $("__registerWindow__",{})})().catch(t=>console.error(t)),window._swsdk={sourceRegistry:Tt};function Nf(t){const e=t;return!!e._type&&!!e._data&&!!e._callbackId}function Rf(t){const e=t;return!!e._type&&!!e.hasOwnProperty("_response")&&!!e._callbackId}const Gf=v("windowRedirect"),Uf=v("windowReload",{});var Hf=Object.freeze(Object.defineProperty({__proto__:null,redirect:Gf,reload:Uf},Symbol.toStringTag,{value:"Module"}));const Bf=v("notificationDispatch");var Kf=Object.freeze(Object.defineProperty({__proto__:null,dispatch:Bf},Symbol.toStringTag,{value:"Module"}));const kf=v("contextLanguage",{}),qf=Ne("contextLanguage"),Vf=v("contextEnvironment",{}),Wf=v("contextLocale",{}),Jf=Ne("contextLocale"),Yf=v("contextCurrency",{}),Xf=v("contextShopwareVersion",{}),Zf=v("contextAppInformation",{});var Qf=Object.freeze(Object.defineProperty({__proto__:null,getLanguage:kf,subscribeLanguage:qf,getEnvironment:Vf,getLocale:Wf,subscribeLocale:Jf,getCurrency:Yf,getShopwareVersion:Xf,getAppInformation:Zf},Symbol.toStringTag,{value:"Module"}));const tg=v("uiComponentSectionRenderer",{src:(Ge=Ea())!=null?Ge:void 0});var eg=Object.freeze(Object.defineProperty({__proto__:null,add:tg},Symbol.toStringTag,{value:"Module"})),rg=t=>({addTabItem:v("uiTabsAddTabItem",{positionId:t})});const ng=t=>ot()===t,ig=()=>window!==window.parent,Re=t=>{if(t)return $("locationUpdateHeight",{height:t,locationId:ot()});const e=document.documentElement.offsetHeight;return $("locationUpdateHeight",{height:e,locationId:ot()})};let k=null;var ag=Object.freeze(Object.defineProperty({__proto__:null,is:ng,isIframe:ig,updateHeight:Re,startAutoResizer:()=>{k=new ResizeObserver(()=>{Re()}),k.observe(document.body)},stopAutoResizer:()=>{k&&(k.unobserve(document.body),k.disconnect())},MAIN_HIDDEN:"sw-main-hidden"},Symbol.toStringTag,{value:"Module"}));const sg=v("menuItemAdd");var og=Object.freeze(Object.defineProperty({__proto__:null,addMenuItem:sg},Symbol.toStringTag,{value:"Module"}));const cg=v("settingsItemAdd");var ug=Object.freeze(Object.defineProperty({__proto__:null,addSettingsItem:cg},Symbol.toStringTag,{value:"Module"}));const lg=v("mainModuleAdd");var fg=Object.freeze(Object.defineProperty({__proto__:null,addMainModule:lg},Symbol.toStringTag,{value:"Module"}));const gg=v("uiModalOpen"),_g=v("uiModalClose");var dg=Object.freeze(Object.defineProperty({__proto__:null,open:gg,close:_g},Symbol.toStringTag,{value:"Module"}));const pg=v("actionButtonAdd");var hg=Object.freeze(Object.defineProperty({__proto__:null,add:pg},Symbol.toStringTag,{value:"Module"}));const yg=v("actionExecute");var vg=Object.freeze(Object.defineProperty({__proto__:null,actionExecute:yg},Symbol.toStringTag,{value:"Module"})),bg=t=>({search:(e,r)=>$("repositorySearch",{entityName:t,context:r,criteria:e}),get:(e,r,n)=>$("repositoryGet",{entityName:t,id:e,context:r,criteria:n}),save:(e,r)=>$("repositorySave",{entityName:t,entity:e,context:r}),clone:(e,r,n)=>$("repositoryClone",{entityName:t,entityId:e,context:r,behavior:n}),hasChanges:e=>$("repositoryHasChanges",{entityName:t,entity:e}),saveAll:(e,r)=>$("repositorySaveAll",{entityName:t,entities:e,context:r}),delete:(e,r)=>$("repositoryDelete",{entityName:t,entityId:e,context:r}),create:(e,r)=>$("repositoryCreate",{entityName:t,entityId:r,context:e})}),$g=Object.freeze(Object.defineProperty({__proto__:null,repository:bg,Classes:{Criteria:F,Entity:De,EntityCollection:L}},Symbol.toStringTag,{value:"Module"}));const mg={webhook:vg},Sg={componentSection:eg,tabs:rg,menu:og,settings:ug,mainModule:fg,modal:dg,actionButton:hg};y.app=mg,y.context=Qf,y.data=$g,y.location=ag,y.notification=Kf,y.ui=Sg,y.window=Hf,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
var Ig=Object.defineProperty;var Ke=Object.getOwnPropertySymbols;var Mg=Object.prototype.hasOwnProperty,xg=Object.prototype.propertyIsEnumerable;var Et=(y,h,b)=>h in y?Ig(y,h,{enumerable:!0,configurable:!0,writable:!0,value:b}):y[h]=b,Pt=(y,h)=>{for(var b in h||(h={}))Mg.call(h,b)&&Et(y,b,h[b]);if(Ke)for(var b of Ke(h))xg.call(h,b)&&Et(y,b,h[b]);return y};var f=(y,h,b)=>(Et(y,typeof h!="symbol"?h+"":h,b),b);(function(y,h){typeof exports=="object"&&typeof module!="undefined"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(y=typeof globalThis!="undefined"?globalThis:y||self,h(y.sw={}))})(this,function(y){var Be;"use strict";var h=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},b=Object.prototype,ke=b.hasOwnProperty;function qe(t,e){return t!=null&&ke.call(t,e)}var Ve=qe,We=Array.isArray,O=We,Je=typeof h=="object"&&h&&h.Object===Object&&h,It=Je,Qe=It,Ye=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Qe||Ye||Function("return this")(),T=Xe,Ze=T,tr=Ze.Symbol,W=tr,Mt=W,xt=Object.prototype,er=xt.hasOwnProperty,rr=xt.toString,R=Mt?Mt.toStringTag:void 0;function nr(t){var e=er.call(t,R),r=t[R];try{t[R]=void 0;var n=!0}catch{}var i=rr.call(t);return n&&(e?t[R]=r:delete t[R]),i}var ir=nr,ar=Object.prototype,sr=ar.toString;function or(t){return sr.call(t)}var cr=or,Dt=W,ur=ir,lr=cr,fr="[object Null]",gr="[object Undefined]",zt=Dt?Dt.toStringTag:void 0;function _r(t){return t==null?t===void 0?gr:fr:zt&&zt in Object(t)?ur(t):lr(t)}var G=_r;function dr(t){return t!=null&&typeof t=="object"}var E=dr,pr=G,hr=E,yr="[object Symbol]";function vr(t){return typeof t=="symbol"||hr(t)&&pr(t)==yr}var it=vr,br=O,$r=it,mr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sr=/^\w*$/;function wr(t,e){if(br(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||$r(t)?!0:Sr.test(t)||!mr.test(t)||e!=null&&t in Object(e)}var Tr=wr;function Ar(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var U=Ar,Or=G,jr=U,Cr="[object AsyncFunction]",Er="[object Function]",Pr="[object GeneratorFunction]",Ir="[object Proxy]";function Mr(t){if(!jr(t))return!1;var e=Or(t);return e==Er||e==Pr||e==Cr||e==Ir}var Ft=Mr,xr=T,Dr=xr["__core-js_shared__"],zr=Dr,at=zr,Lt=function(){var t=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Fr(t){return!!Lt&&Lt in t}var Lr=Fr,Nr=Function.prototype,Rr=Nr.toString;function Gr(t){if(t!=null){try{return Rr.call(t)}catch{}try{return t+""}catch{}}return""}var Nt=Gr,Ur=Ft,Hr=Lr,Br=U,Kr=Nt,kr=/[\\^$.*+?()[\]{}|]/g,qr=/^\[object .+?Constructor\]$/,Vr=Function.prototype,Wr=Object.prototype,Jr=Vr.toString,Qr=Wr.hasOwnProperty,Yr=RegExp("^"+Jr.call(Qr).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xr(t){if(!Br(t)||Hr(t))return!1;var e=Ur(t)?Yr:qr;return e.test(Kr(t))}var Zr=Xr;function tn(t,e){return t==null?void 0:t[e]}var en=tn,rn=Zr,nn=en;function an(t,e){var r=nn(t,e);return rn(r)?r:void 0}var j=an,sn=j,on=sn(Object,"create"),J=on,Rt=J;function cn(){this.__data__=Rt?Rt(null):{},this.size=0}var un=cn;function ln(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var fn=ln,gn=J,_n="__lodash_hash_undefined__",dn=Object.prototype,pn=dn.hasOwnProperty;function hn(t){var e=this.__data__;if(gn){var r=e[t];return r===_n?void 0:r}return pn.call(e,t)?e[t]:void 0}var yn=hn,vn=J,bn=Object.prototype,$n=bn.hasOwnProperty;function mn(t){var e=this.__data__;return vn?e[t]!==void 0:$n.call(e,t)}var Sn=mn,wn=J,Tn="__lodash_hash_undefined__";function An(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wn&&e===void 0?Tn:e,this}var On=An,jn=un,Cn=fn,En=yn,Pn=Sn,In=On;function P(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}P.prototype.clear=jn,P.prototype.delete=Cn,P.prototype.get=En,P.prototype.has=Pn,P.prototype.set=In;var Mn=P;function xn(){this.__data__=[],this.size=0}var Dn=xn;function zn(t,e){return t===e||t!==t&&e!==e}var Gt=zn,Fn=Gt;function Ln(t,e){for(var r=t.length;r--;)if(Fn(t[r][0],e))return r;return-1}var Q=Ln,Nn=Q,Rn=Array.prototype,Gn=Rn.splice;function Un(t){var e=this.__data__,r=Nn(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Gn.call(e,r,1),--this.size,!0}var Hn=Un,Bn=Q;function Kn(t){var e=this.__data__,r=Bn(e,t);return r<0?void 0:e[r][1]}var kn=Kn,qn=Q;function Vn(t){return qn(this.__data__,t)>-1}var Wn=Vn,Jn=Q;function Qn(t,e){var r=this.__data__,n=Jn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Yn=Qn,Xn=Dn,Zn=Hn,ti=kn,ei=Wn,ri=Yn;function I(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}I.prototype.clear=Xn,I.prototype.delete=Zn,I.prototype.get=ti,I.prototype.has=ei,I.prototype.set=ri;var Y=I,ni=j,ii=T,ai=ni(ii,"Map"),st=ai,Ut=Mn,si=Y,oi=st;function ci(){this.size=0,this.__data__={hash:new Ut,map:new(oi||si),string:new Ut}}var ui=ci;function li(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var fi=li,gi=fi;function _i(t,e){var r=t.__data__;return gi(e)?r[typeof e=="string"?"string":"hash"]:r.map}var X=_i,di=X;function pi(t){var e=di(this,t).delete(t);return this.size-=e?1:0,e}var hi=pi,yi=X;function vi(t){return yi(this,t).get(t)}var bi=vi,$i=X;function mi(t){return $i(this,t).has(t)}var Si=mi,wi=X;function Ti(t,e){var r=wi(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Ai=Ti,Oi=ui,ji=hi,Ci=bi,Ei=Si,Pi=Ai;function M(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}M.prototype.clear=Oi,M.prototype.delete=ji,M.prototype.get=Ci,M.prototype.has=Ei,M.prototype.set=Pi;var Ht=M,Bt=Ht,Ii="Expected a function";function ot(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Ii);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(ot.Cache||Bt),r}ot.Cache=Bt;var Mi=ot,xi=Mi,Di=500;function zi(t){var e=xi(t,function(n){return r.size===Di&&r.clear(),n}),r=e.cache;return e}var Fi=zi,Li=Fi,Ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/\\(\\)?/g,Gi=Li(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Ni,function(r,n,i,a){e.push(i?a.replace(Ri,"$1"):n||r)}),e}),Ui=Gi;function Hi(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Bi=Hi,Kt=W,Ki=Bi,ki=O,qi=it,Vi=1/0,kt=Kt?Kt.prototype:void 0,qt=kt?kt.toString:void 0;function Vt(t){if(typeof t=="string")return t;if(ki(t))return Ki(t,Vt)+"";if(qi(t))return qt?qt.call(t):"";var e=t+"";return e=="0"&&1/t==-Vi?"-0":e}var Wi=Vt,Ji=Wi;function Qi(t){return t==null?"":Ji(t)}var Yi=Qi,Xi=O,Zi=Tr,ta=Ui,ea=Yi;function ra(t,e){return Xi(t)?t:Zi(t,e)?[t]:ta(ea(t))}var na=ra,ia=G,aa=E,sa="[object Arguments]";function oa(t){return aa(t)&&ia(t)==sa}var ca=oa,Wt=ca,ua=E,Jt=Object.prototype,la=Jt.hasOwnProperty,fa=Jt.propertyIsEnumerable,ga=Wt(function(){return arguments}())?Wt:function(t){return ua(t)&&la.call(t,"callee")&&!fa.call(t,"callee")},Qt=ga,_a=9007199254740991,da=/^(?:0|[1-9]\d*)$/;function pa(t,e){var r=typeof t;return e=e==null?_a:e,!!e&&(r=="number"||r!="symbol"&&da.test(t))&&t>-1&&t%1==0&&t<e}var Yt=pa,ha=9007199254740991;function ya(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ha}var ct=ya,va=it,ba=1/0;function $a(t){if(typeof t=="string"||va(t))return t;var e=t+"";return e=="0"&&1/t==-ba?"-0":e}var ma=$a,Sa=na,wa=Qt,Ta=O,Aa=Yt,Oa=ct,ja=ma;function Ca(t,e,r){e=Sa(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=ja(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&Oa(i)&&Aa(s,i)&&(Ta(t)||wa(t)))}var Ea=Ca,Pa=Ve,Ia=Ea;function Ma(t,e){return t!=null&&Ia(t,e,Pa)}var xa=Ma;function Xt(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function Z(t){return t!==null&&typeof t=="object"}function ut(){return new URLSearchParams(window.location.search).get("location-id")}function Da(){const t=window.location;return new URL(t.pathname,t.origin).toString()}function H(t,e){return Z(e)&&e.__type__&&e.__type__===t}function za(t,e){return xa(t,e)}function Zt(t,e){for(let r in t){const n=t[r];e.apply(this,[t,r,n]),Z(n)&&Zt(n,e)}}const lt={notificationDispatch:{},windowRedirect:{},windowReload:{},contextLanguage:{},contextEnvironment:{},contextLocale:{},contextCurrency:{},contextShopwareVersion:{},contextAppInformation:{},getPageTitle:{},uiComponentSectionRenderer:{},uiTabsAddTabItem:{},locationUpdateHeight:{},menuItemAdd:{},settingsItemAdd:{},mainModuleAdd:{},uiModalOpen:{},uiModalClose:{},actionButtonAdd:{},actionExecute:{},datasetRegistration:{},datasetQuery:{},datasetUpdate:{},__function__:{},__registerWindow__:{},_criteriaTest:{},_collectionTest:{},_multiply:{},_subtract:{},_privileges:{create:["user"],read:["user"],update:["user"],delete:["user"]}};function Fa(t){const e=te(t),r=Na(window.location);return!e||Object.keys(e).length<=0?null:ee(e,r)}function La(t,e,r){const n=te(t),i=re(e,r);return i?ee(n,i.permissions):null}function te(t){var e;return(e=lt[t])!=null?e:{}}function Na(t){const r=new URLSearchParams(t.search).get("privileges");return r?JSON.parse(r):{}}function ee(t,e){const r=Object.keys(t),n=[];return r.forEach(i=>{var a;(a=t[i])==null||a.forEach(s=>{var c;(c=e[i])!=null&&c.includes(s)||n.push(`${i}:${s}`)})}),n.length>=1?n:null}function re(t,e){let r=null;return Object.values(t).forEach(n=>{n.baseUrl===e&&(r=n)}),r}class x extends Error{constructor(e,r){super(`Your app is missing the priviliges ${r.join(", ")} for action "${e}".`);f(this,"missingPrivileges");f(this,"messageType");this.missingPrivileges=r,this.messageType=e,Object.setPrototypeOf(this,x.prototype)}toJSON(){return{__type__:"__MissingPrivilegesError__",__messageType__:this.messageType,__data__:this.missingPrivileges}}}const Ra=({send:t,handleFactory:e})=>{const r={};let n=!1;function i(){if(n)return;n=!0,e({})("__function__",async({args:s,id:c})=>await Promise.resolve(r[c](...s)))}return{name:"function",serialize:({value:a})=>{if(typeof a=="function"){const s=Xt();return r[s]=a,i(),{__type__:"__function__",id:s,origin:window.origin}}},deserialize:({value:a,event:s})=>{var u;const c=(u=s==null?void 0:s.source)!=null?u:window;if(Z(a)&&a.__type__&&a.__type__==="__function__"&&typeof a.id=="string"){const o=a.id,l=a.origin;return(...g)=>t("__function__",{args:g,id:o},c,l)}}}};var Ga=Y;function Ua(){this.__data__=new Ga,this.size=0}var Ha=Ua;function Ba(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Ka=Ba;function ka(t){return this.__data__.get(t)}var qa=ka;function Va(t){return this.__data__.has(t)}var Wa=Va,Ja=Y,Qa=st,Ya=Ht,Xa=200;function Za(t,e){var r=this.__data__;if(r instanceof Ja){var n=r.__data__;if(!Qa||n.length<Xa-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ya(n)}return r.set(t,e),this.size=r.size,this}var ts=Za,es=Y,rs=Ha,ns=Ka,is=qa,as=Wa,ss=ts;function D(t){var e=this.__data__=new es(t);this.size=e.size}D.prototype.clear=rs,D.prototype.delete=ns,D.prototype.get=is,D.prototype.has=as,D.prototype.set=ss;var os=D;function cs(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var us=cs,ls=j,fs=function(){try{var t=ls(Object,"defineProperty");return t({},"",{}),t}catch{}}(),gs=fs,ne=gs;function _s(t,e,r){e=="__proto__"&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var ie=_s,ds=ie,ps=Gt,hs=Object.prototype,ys=hs.hasOwnProperty;function vs(t,e,r){var n=t[e];(!(ys.call(t,e)&&ps(n,r))||r===void 0&&!(e in t))&&ds(t,e,r)}var ae=vs,bs=ae,$s=ie;function ms(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],u=n?n(r[c],t[c],c,r,t):void 0;u===void 0&&(u=t[c]),i?$s(r,c,u):bs(r,c,u)}return r}var tt=ms;function Ss(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var ws=Ss,et={exports:{}};function Ts(){return!1}var As=Ts;(function(t,e){var r=T,n=As,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===i,c=s?r.Buffer:void 0,u=c?c.isBuffer:void 0,o=u||n;t.exports=o})(et,et.exports);var Os=G,js=ct,Cs=E,Es="[object Arguments]",Ps="[object Array]",Is="[object Boolean]",Ms="[object Date]",xs="[object Error]",Ds="[object Function]",zs="[object Map]",Fs="[object Number]",Ls="[object Object]",Ns="[object RegExp]",Rs="[object Set]",Gs="[object String]",Us="[object WeakMap]",Hs="[object ArrayBuffer]",Bs="[object DataView]",Ks="[object Float32Array]",ks="[object Float64Array]",qs="[object Int8Array]",Vs="[object Int16Array]",Ws="[object Int32Array]",Js="[object Uint8Array]",Qs="[object Uint8ClampedArray]",Ys="[object Uint16Array]",Xs="[object Uint32Array]",p={};p[Ks]=p[ks]=p[qs]=p[Vs]=p[Ws]=p[Js]=p[Qs]=p[Ys]=p[Xs]=!0,p[Es]=p[Ps]=p[Hs]=p[Is]=p[Bs]=p[Ms]=p[xs]=p[Ds]=p[zs]=p[Fs]=p[Ls]=p[Ns]=p[Rs]=p[Gs]=p[Us]=!1;function Zs(t){return Cs(t)&&js(t.length)&&!!p[Os(t)]}var to=Zs;function eo(t){return function(e){return t(e)}}var ft=eo,B={exports:{}};(function(t,e){var r=It,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,s=a&&r.process,c=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();t.exports=c})(B,B.exports);var ro=to,no=ft,se=B.exports,oe=se&&se.isTypedArray,io=oe?no(oe):ro,ao=io,so=ws,oo=Qt,co=O,uo=et.exports,lo=Yt,fo=ao,go=Object.prototype,_o=go.hasOwnProperty;function po(t,e){var r=co(t),n=!r&&oo(t),i=!r&&!n&&uo(t),a=!r&&!n&&!i&&fo(t),s=r||n||i||a,c=s?so(t.length,String):[],u=c.length;for(var o in t)(e||_o.call(t,o))&&!(s&&(o=="length"||i&&(o=="offset"||o=="parent")||a&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||lo(o,u)))&&c.push(o);return c}var ce=po,ho=Object.prototype;function yo(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ho;return t===r}var gt=yo;function vo(t,e){return function(r){return t(e(r))}}var ue=vo,bo=ue,$o=bo(Object.keys,Object),mo=$o,So=gt,wo=mo,To=Object.prototype,Ao=To.hasOwnProperty;function Oo(t){if(!So(t))return wo(t);var e=[];for(var r in Object(t))Ao.call(t,r)&&r!="constructor"&&e.push(r);return e}var jo=Oo,Co=Ft,Eo=ct;function Po(t){return t!=null&&Eo(t.length)&&!Co(t)}var le=Po,Io=ce,Mo=jo,xo=le;function Do(t){return xo(t)?Io(t):Mo(t)}var _t=Do,zo=tt,Fo=_t;function Lo(t,e){return t&&zo(e,Fo(e),t)}var No=Lo;function Ro(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Go=Ro,Uo=U,Ho=gt,Bo=Go,Ko=Object.prototype,ko=Ko.hasOwnProperty;function qo(t){if(!Uo(t))return Bo(t);var e=Ho(t),r=[];for(var n in t)n=="constructor"&&(e||!ko.call(t,n))||r.push(n);return r}var Vo=qo,Wo=ce,Jo=Vo,Qo=le;function Yo(t){return Qo(t)?Wo(t,!0):Jo(t)}var dt=Yo,Xo=tt,Zo=dt;function tc(t,e){return t&&Xo(e,Zo(e),t)}var ec=tc,pt={exports:{}};(function(t,e){var r=T,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,s=a?r.Buffer:void 0,c=s?s.allocUnsafe:void 0;function u(o,l){if(l)return o.slice();var g=o.length,_=c?c(g):new o.constructor(g);return o.copy(_),_}t.exports=u})(pt,pt.exports);function rc(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var nc=rc;function ic(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}var ac=ic;function sc(){return[]}var fe=sc,oc=ac,cc=fe,uc=Object.prototype,lc=uc.propertyIsEnumerable,ge=Object.getOwnPropertySymbols,fc=ge?function(t){return t==null?[]:(t=Object(t),oc(ge(t),function(e){return lc.call(t,e)}))}:cc,ht=fc,gc=tt,_c=ht;function dc(t,e){return gc(t,_c(t),e)}var pc=dc;function hc(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var _e=hc,yc=ue,vc=yc(Object.getPrototypeOf,Object),de=vc,bc=_e,$c=de,mc=ht,Sc=fe,wc=Object.getOwnPropertySymbols,Tc=wc?function(t){for(var e=[];t;)bc(e,mc(t)),t=$c(t);return e}:Sc,pe=Tc,Ac=tt,Oc=pe;function jc(t,e){return Ac(t,Oc(t),e)}var Cc=jc,Ec=_e,Pc=O;function Ic(t,e,r){var n=e(t);return Pc(t)?n:Ec(n,r(t))}var he=Ic,Mc=he,xc=ht,Dc=_t;function zc(t){return Mc(t,Dc,xc)}var Fc=zc,Lc=he,Nc=pe,Rc=dt;function Gc(t){return Lc(t,Rc,Nc)}var Uc=Gc,Hc=j,Bc=T,Kc=Hc(Bc,"DataView"),kc=Kc,qc=j,Vc=T,Wc=qc(Vc,"Promise"),Jc=Wc,Qc=j,Yc=T,Xc=Qc(Yc,"Set"),Zc=Xc,tu=j,eu=T,ru=tu(eu,"WeakMap"),nu=ru,yt=kc,vt=st,bt=Jc,$t=Zc,mt=nu,ye=G,z=Nt,ve="[object Map]",iu="[object Object]",be="[object Promise]",$e="[object Set]",me="[object WeakMap]",Se="[object DataView]",au=z(yt),su=z(vt),ou=z(bt),cu=z($t),uu=z(mt),C=ye;(yt&&C(new yt(new ArrayBuffer(1)))!=Se||vt&&C(new vt)!=ve||bt&&C(bt.resolve())!=be||$t&&C(new $t)!=$e||mt&&C(new mt)!=me)&&(C=function(t){var e=ye(t),r=e==iu?t.constructor:void 0,n=r?z(r):"";if(n)switch(n){case au:return Se;case su:return ve;case ou:return be;case cu:return $e;case uu:return me}return e});var St=C,lu=Object.prototype,fu=lu.hasOwnProperty;function gu(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&fu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var _u=gu,du=T,pu=du.Uint8Array,hu=pu,we=hu;function yu(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}var wt=yu,vu=wt;function bu(t,e){var r=e?vu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var $u=bu,mu=/\w*$/;function Su(t){var e=new t.constructor(t.source,mu.exec(t));return e.lastIndex=t.lastIndex,e}var wu=Su,Te=W,Ae=Te?Te.prototype:void 0,Oe=Ae?Ae.valueOf:void 0;function Tu(t){return Oe?Object(Oe.call(t)):{}}var Au=Tu,Ou=wt;function ju(t,e){var r=e?Ou(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Cu=ju,Eu=wt,Pu=$u,Iu=wu,Mu=Au,xu=Cu,Du="[object Boolean]",zu="[object Date]",Fu="[object Map]",Lu="[object Number]",Nu="[object RegExp]",Ru="[object Set]",Gu="[object String]",Uu="[object Symbol]",Hu="[object ArrayBuffer]",Bu="[object DataView]",Ku="[object Float32Array]",ku="[object Float64Array]",qu="[object Int8Array]",Vu="[object Int16Array]",Wu="[object Int32Array]",Ju="[object Uint8Array]",Qu="[object Uint8ClampedArray]",Yu="[object Uint16Array]",Xu="[object Uint32Array]";function Zu(t,e,r){var n=t.constructor;switch(e){case Hu:return Eu(t);case Du:case zu:return new n(+t);case Bu:return Pu(t,r);case Ku:case ku:case qu:case Vu:case Wu:case Ju:case Qu:case Yu:case Xu:return xu(t,r);case Fu:return new n;case Lu:case Gu:return new n(t);case Nu:return Iu(t);case Ru:return new n;case Uu:return Mu(t)}}var tl=Zu,el=U,je=Object.create,rl=function(){function t(){}return function(e){if(!el(e))return{};if(je)return je(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),nl=rl,il=nl,al=de,sl=gt;function ol(t){return typeof t.constructor=="function"&&!sl(t)?il(al(t)):{}}var cl=ol,ul=St,ll=E,fl="[object Map]";function gl(t){return ll(t)&&ul(t)==fl}var _l=gl,dl=_l,pl=ft,Ce=B.exports,Ee=Ce&&Ce.isMap,hl=Ee?pl(Ee):dl,yl=hl,vl=St,bl=E,$l="[object Set]";function ml(t){return bl(t)&&vl(t)==$l}var Sl=ml,wl=Sl,Tl=ft,Pe=B.exports,Ie=Pe&&Pe.isSet,Al=Ie?Tl(Ie):wl,Ol=Al,jl=os,Cl=us,El=ae,Pl=No,Il=ec,Ml=pt.exports,xl=nc,Dl=pc,zl=Cc,Fl=Fc,Ll=Uc,Nl=St,Rl=_u,Gl=tl,Ul=cl,Hl=O,Bl=et.exports,Kl=yl,kl=U,ql=Ol,Vl=_t,Wl=dt,Jl=1,Ql=2,Yl=4,Me="[object Arguments]",Xl="[object Array]",Zl="[object Boolean]",tf="[object Date]",ef="[object Error]",xe="[object Function]",rf="[object GeneratorFunction]",nf="[object Map]",af="[object Number]",De="[object Object]",sf="[object RegExp]",of="[object Set]",cf="[object String]",uf="[object Symbol]",lf="[object WeakMap]",ff="[object ArrayBuffer]",gf="[object DataView]",_f="[object Float32Array]",df="[object Float64Array]",pf="[object Int8Array]",hf="[object Int16Array]",yf="[object Int32Array]",vf="[object Uint8Array]",bf="[object Uint8ClampedArray]",$f="[object Uint16Array]",mf="[object Uint32Array]",d={};d[Me]=d[Xl]=d[ff]=d[gf]=d[Zl]=d[tf]=d[_f]=d[df]=d[pf]=d[hf]=d[yf]=d[nf]=d[af]=d[De]=d[sf]=d[of]=d[cf]=d[uf]=d[vf]=d[bf]=d[$f]=d[mf]=!0,d[ef]=d[xe]=d[lf]=!1;function rt(t,e,r,n,i,a){var s,c=e&Jl,u=e&Ql,o=e&Yl;if(r&&(s=i?r(t,n,i,a):r(t)),s!==void 0)return s;if(!kl(t))return t;var l=Hl(t);if(l){if(s=Rl(t),!c)return xl(t,s)}else{var g=Nl(t),_=g==xe||g==rf;if(Bl(t))return Ml(t,c);if(g==De||g==Me||_&&!i){if(s=u||_?{}:Ul(t),!c)return u?zl(t,Il(s,t)):Dl(t,Pl(s,t))}else{if(!d[g])return i?t:{};s=Gl(t,g,c)}}a||(a=new jl);var m=a.get(t);if(m)return m;a.set(t,s),ql(t)?t.forEach(function(S){s.add(rt(S,e,r,S,t,a))}):Kl(t)&&t.forEach(function(S,w){s.set(w,rt(S,e,r,w,t,a))});var N=o?u?Ll:Fl:u?Wl:Vl,A=l?void 0:N(t);return Cl(A||t,function(S,w){A&&(w=S,S=t[w]),El(s,w,rt(S,e,r,w,t,a))}),s}var ze=rt,Sf=ze,wf=1,Tf=4;function Af(t){return Sf(t,wf|Tf)}var Tt=Af;class F{constructor(e=1,r=25){f(this,"page");f(this,"limit");f(this,"term");f(this,"filters");f(this,"ids");f(this,"queries");f(this,"associations");f(this,"postFilter");f(this,"sortings");f(this,"aggregations");f(this,"grouping");f(this,"fields");f(this,"groupFields");f(this,"totalCountMode");f(this,"includes");this.page=e,this.limit=r,this.term=null,this.filters=[],this.includes=null,this.ids=[],this.queries=[],this.associations=[],this.postFilter=[],this.sortings=[],this.aggregations=[],this.grouping=[],this.groupFields=[],this.fields=[],this.totalCountMode=1}static fromCriteria(e){return Tt(e)}parse(){const e={};return this.ids.length>0&&(e.ids=this.ids.join("|")),this.page!==null&&(e.page=this.page),this.limit!==null&&(e.limit=this.limit),this.term!==null&&(e.term=this.term),this.queries.length>0&&(e.query=this.queries),this.filters.length>0&&(e.filter=this.filters),this.postFilter.length>0&&(e["post-filter"]=this.postFilter),this.sortings.length>0&&(e.sort=this.sortings),this.aggregations.length>0&&(e.aggregations=this.aggregations),this.groupFields.length>0&&(e.groupFields=this.groupFields),this.grouping.length>0&&(e.grouping=this.grouping),this.fields.length>0&&(e.fields=this.fields),this.associations.length>0&&(e.associations={},this.associations.forEach(r=>{!e.associations||(e.associations[r.association]=r.criteria.parse())})),this.includes!==null&&(e.includes=this.includes),this.totalCountMode!==null&&(e["total-count-mode"]=this.totalCountMode),e}setIds(e){return this.ids=e,this}setTotalCountMode(e){return typeof e!="number"&&(this.totalCountMode=null),this.totalCountMode=e<0||e>2?null:e,this}setPage(e){return this.page=e,this}setLimit(e){return this.limit=e,this}setTerm(e){return this.term=e,this}addFilter(e){return this.filters.push(e),this}addIncludes(e){return Object.entries(e).forEach(([r,n])=>{this.includes===null&&(this.includes={}),this.includes[r]||(this.includes[r]=[]),this.includes[r].push(...n)}),this}addPostFilter(e){return this.postFilter.push(e),this}addSorting(e){return this.sortings.push(e),this}addQuery(e,r,n=null){const i={score:r,query:e};return n&&(i[n]=n),this.queries.push(i),this}addGroupField(e){return this.groupFields.push(e),this}addGrouping(e){return this.grouping.push(e),this}addFields(...e){return this.fields.push(...e),this}addAggregation(e){return this.aggregations.push(e),this}addAssociation(e){const r=e.split(".");let n=this;return r.forEach(i=>{n=n.getAssociation(i)}),this}getAssociation(e){const r=e.split(".");let n=this;return r.forEach(i=>{n.hasAssociation(i)||n.associations.push({association:i,criteria:new F(null,null)}),n=n.getAssociationCriteria(i)}),n}getAssociationCriteria(e){let r=null;return this.associations.forEach(n=>{n.association===e&&(r=n.criteria)}),r}getLimit(){var e;return(e=this.limit)!=null?e:0}getPage(){var e;return(e=this.page)!=null?e:0}getCriteriaData(){return{page:this.page,limit:this.limit,term:this.term,filters:this.filters,ids:this.ids,queries:this.queries,associations:this.associations,postFilter:this.postFilter,sortings:this.sortings,aggregations:this.aggregations,grouping:this.grouping,fields:this.fields,groupFields:this.groupFields,totalCountMode:this.totalCountMode,includes:this.includes}}hasAssociation(e){return this.associations.some(r=>r.association===e)}resetSorting(){this.sortings=[]}static avg(e,r){return{type:"avg",name:e,field:r}}static count(e,r){return{type:"count",name:e,field:r}}static max(e,r){return{type:"max",name:e,field:r}}static min(e,r){return{type:"min",name:e,field:r}}static stats(e,r){return{type:"stats",name:e,field:r}}static sum(e,r){return{type:"sum",name:e,field:r}}static terms(e,r,n=null,i=null,a=null){return{type:"terms",name:e,field:r,limit:n,sort:i,aggregation:a}}static filter(e,r,n){return{type:"filter",name:e,filter:r,aggregation:n}}static histogram(e,r,n,i,a,s){return{type:"histogram",name:e,field:r,interval:n,format:i,aggregation:a,timeZone:s}}static sort(e,r="ASC",n=!1){return{field:e,order:r,naturalSorting:n}}static naturalSorting(e,r="ASC"){return{field:e,order:r,naturalSorting:!0}}static contains(e,r){return{type:"contains",field:e,value:r}}static prefix(e,r){return{type:"prefix",field:e,value:r}}static suffix(e,r){return{type:"suffix",field:e,value:r}}static equalsAny(e,r){return{type:"equalsAny",field:e,value:r.join("|")}}static range(e,r){return{type:"range",field:e,parameters:r}}static equals(e,r){return{type:"equals",field:e,value:r}}static not(e,r=[]){return{type:"not",operator:e,queries:r}}static multi(e,r=[]){return{type:"multi",operator:e,queries:r}}}const Of=()=>({name:"criteria",serialize:({value:t,customizerMethod:e})=>{if(t instanceof F)return{__type__:"__Criteria__",data:e(t.getCriteriaData())}},deserialize:({value:t,customizerMethod:e})=>{if(H("__Criteria__",t)&&typeof t.data=="object"){const r=t.data,n=new F;return n.setPage(r.page),n.setLimit(r.limit),n.setTerm(r.term),r.filters.forEach(i=>{n.addFilter(i)}),n.setIds(r.ids),r.queries.forEach(({query:i,score:a})=>{n.addQuery(i,a)}),r.associations.forEach(i=>{n.associations.push(e(i))}),r.postFilter.forEach(i=>{n.addPostFilter(i)}),r.sortings.forEach(i=>{n.addSorting(i)}),r.aggregations.forEach(i=>{n.addAggregation(i)}),r.grouping.forEach(i=>{n.addGrouping(i)}),r.fields.forEach(i=>{n.addFields(i)}),r.groupFields.forEach(i=>{n.addGroupField(i)}),r.includes&&n.addIncludes(r.includes),n.setTotalCountMode(r.totalCountMode),n}}});let jf=(t,e,r)=>{t[e]=r};class Cf{constructor(e,r,n,i={}){f(this,"id");f(this,"_origin");f(this,"_entityName");f(this,"_draft");f(this,"_isDirty");f(this,"_isNew");var s,c;this.id=e,this._origin=i.originData?Tt(i.originData):Tt(n),this._entityName=r,this._draft=n,this._isDirty=(s=i.isDirty)!=null?s:!1,this._isNew=(c=i.isNew)!=null?c:!1;const a=this;return new Proxy(this._draft,{get(u,o){return o in a._draft?a._draft[o]:a[o]},set(u,o,l){return jf(a._draft,o,l),a._isDirty=!0,!0}})}markAsNew(){this._isNew=!0}isNew(){return this._isNew}getIsDirty(){return this._isDirty}getOrigin(){return this._origin}getDraft(){return this._draft}getEntityName(){return this._entityName}}const Fe=function(e,r,n,i){return new Cf(e,r,n,i)},Ef=()=>({name:"entity",serialize:({value:t,customizerMethod:e})=>{if(!(!Z(t)||typeof t.getDraft!="function"))return{__type__:"__Entity__",__id__:t.id,__entityName__:t._entityName,__isDirty__:t._isDirty,__isNew__:t._isNew,__origin__:e(t._origin),__draft__:e(t._draft)}},deserialize:({value:t,customizerMethod:e})=>{if(H("__Entity__",t)&&typeof t.__origin__=="object")return new Fe(t.__id__,t.__entityName__,e(t.__draft__),{originData:e(t.__origin__),isDirty:t.__isDirty__,isNew:t.__isNew__})}});class L extends Array{constructor(e,r,n,i=null,a=[],s=null,c=null){super();f(this,"entity");f(this,"source");f(this,"context");f(this,"criteria");f(this,"aggregations");f(this,"total");f(this,"first");f(this,"last");f(this,"remove");f(this,"has");f(this,"get");f(this,"getAt");f(this,"getIds");f(this,"add");f(this,"addAt");f(this,"moveItem");this.entity=r,this.source=e,this.context=n,this.criteria=i,this.aggregations=c,this.total=s,this.push(...a),this.first=function(){return this.length<=0?null:this[0]},this.last=function(){return this.length<=0?null:this[this.length-1]},this.remove=function(o){const l=this.findIndex(g=>g.id===o);return l<0?!1:(this.splice(l,1),!0)},this.has=function(o){return this.some(l=>l.id===o)},this.get=function(o){const l=this.find(g=>g.id===o);return typeof l!="undefined"?l:null},this.getAt=function(o){const l=this[o];return typeof l!="undefined"?l:null},this.getIds=function(){return this.map(o=>o.id)},this.add=function(o){this.push(o)},this.addAt=function(o,l){if(typeof l=="undefined"){this.add(o);return}this.splice(l,0,o)},this.moveItem=function(o,l=null){if(l===null&&(l=this.length),o<0||o>=this.length)return null;if(l===o)return this.getAt(o);const g=this.find((N,A)=>A===o);if(typeof g=="undefined")return null;const _=this.filter((N,A)=>A!==o),m=[..._.slice(0,l),g,..._.slice(l)];return this.splice(0,this.length,...m),g},this.filter=function(o,l){const g=Object.getPrototypeOf(this).filter.call(this,o,l);return new L(this.source,this.entity,this.context,this.criteria,g,this.total,this.aggregations)}}static fromCollection(e){return new L(e.source,e.entity,e.context,e.criteria===null?e.criteria:F.fromCriteria(e.criteria),e,e.total,e.aggregations)}}const Pf=()=>({name:"entity-collection",serialize:({value:t,customizerMethod:e})=>{if(t instanceof L)return e({__type__:"__EntityCollection__",__source__:t.source,__entityName__:t.entity,__context__:t.context,__criteria__:t.criteria,__entities__:Array.from(t),__total__:t.total,__aggregations__:t.aggregations})},deserialize:({value:t,customizerMethod:e})=>{if(H("__EntityCollection__",t))return new L(t.__source__,t.__entityName__,t.__context__,e(t.__criteria__),e(t.__entities__),t.__total__,t.__aggregations__)}});class K extends Error{constructor(e,r){super(e);f(this,"code",500);!r||(this.code=r)}toJSON(){return{__type__:"__HandleError__",__code__:this.code,__message__:this.message}}}const If=()=>({name:"handle-error",serialize:()=>{},deserialize:({value:t})=>{if(H("__HandleError__",t))return new K(t.__message__,t.__code__)}});var Mf=ze,xf=1,Df=4;function zf(t,e){return e=typeof e=="function"?e:void 0,Mf(t,xf|Df,e)}var Le=zf;const Ff=[Of,Pf,Ef,Ra,If,()=>({name:"handle-error",serialize:()=>{},deserialize:({value:t})=>{if(H("__MissingPrivilegesError__",t))return new x(t.__messageType__,t.__data__)}})];function Lf(t){const e=Ff.map(s=>s(t));function r(){return e}function n(s){var c;return(c=e.find(u=>u.name===s))!=null?c:null}function i(s){return Le(s,(c,u,o,l)=>{for(const g of e){const _=g.serialize({value:c,key:u,object:o,stack:l,customizerMethod:i});if(_)return _}})}function a(s,c){return Le(s,(u,o,l,g)=>{for(const _ of e){const m=_.deserialize({value:u,key:o,object:l,stack:g,event:c,customizerMethod:a});if(m)return m}})}return{getSerializers:r,getSerializerByName:n,serialize:i,deserialize:a}}function Nf(t,e){if(typeof e=="string")return new K(e);if(!(e instanceof Error))return new K("An unknown error occurred.");if(za(e,"response.data.errors.0.code")&&e.response.data.errors.length){const r=e.response.data.errors.filter(i=>i.code==="FRAMEWORK__MISSING_PRIVILEGE_ERROR"),n=[];return r.forEach(i=>{const a=JSON.parse(i.detail);n.push(...a.missingPrivileges)}),n.length?new x(t,n):new K(e.response.data.errors[0].code,e.response.data.errors[0].status)}return new K(e.message)}function Ne({serializedData:t,extensions:e,origin:r,type:n,privilegesToCheck:i=[]}){const a=re(e,r);if(!a)return null;const s=[];return Zt(t,(c,u,o)=>{if(u==="__type__"&&["__EntityCollection__","__Entity__"].includes(o)){const l=c.__entityName__;[...i].sort().forEach(g=>{const _=a.permissions[g];(!_||!_.includes(l))&&s.push(`${g}:${l}`)})}}),s.length>0?new x(n,s):null}const{serialize:At,deserialize:Re}=Lf({handleFactory:Rf,send:$}),Ot=new Set;function $(t,e,r,n){const i=Fa(t);if(i!==null){const _=new x(t,i);return Promise.reject(_)}const a=Xt(),s=e!=null?e:{},u=At({_type:t,_data:s,_callbackId:a}),o=JSON.stringify(u);let l=!1;const g=7e3;return new Promise((_,m)=>{const N=function(w){if(typeof w.data!="string")return;let V;try{V=JSON.parse(w.data)}catch{return}if(!Hf(V)||V._callbackId!==a||!V.hasOwnProperty("_response"))return;const Pg=Re(V,w);if(window.removeEventListener("message",N),!l){l=!0;const Ct=Pg._response;if(Ct instanceof Error){m(Ct);return}_(Ct)}};window.addEventListener("message",N);let A=!0;try{A=!window.parent.origin}catch{}let S=A?document.referrer:window.parent.origin;n&&(S=n),r?r.postMessage(o,S):window.parent.postMessage(o,S),setTimeout(()=>{l||m("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},g)})}function k(t,e,r){const n=async function(i){var g;if(lt[t]&&Object.keys(lt[t]).length&&(!r||La(t,r,i.origin)!==null)||typeof i.data!="string")return;let a;try{a=JSON.parse(i.data)}catch{return}if(!Uf(a)||a._type!==t)return;const s=Re(a,i),c=await Promise.resolve((()=>{const _=Ne({serializedData:a,extensions:r,origin:i.origin,type:t,privilegesToCheck:["create","delete","update","read"]});return _||e(s._data,{_event_:i})})()).catch(_=>Nf(t,_)),u={_callbackId:s._callbackId,_type:s._type,_response:c!=null?c:null},o=(()=>{let _=At(u);const m=Ne({serializedData:_,extensions:r,origin:i.origin,privilegesToCheck:["read"],type:t});return m&&(_._response=m,_=At(_)),_})(),l=JSON.stringify(o);i.source?i.source.postMessage(l,{targetOrigin:(g=i.origin)!=null?g:"*"}):window.postMessage(l,window.origin)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}function Rf(t){return(e,r)=>k(e,r,t)}function Gf(t,e){[...Ot].forEach(({source:r,origin:n})=>$(t,e,r,n).catch(()=>{}))}function jt(t,e){return k(t,e,{})}function v(t,e){return r=>$(t,Pt(Pt({},e),r))}function Ge(t){return(e,r)=>r?jt(t,i=>{i.id===r&&e(i)}):jt(t,e)}const nt=new Map;(async()=>{k("__registerWindow__",(t,e)=>{let r,n;e._event_.source?(r=e._event_.source,n=e._event_.origin):(r=window,n=window.origin),Ot.add({source:r,origin:n}),nt.forEach((i,a)=>{$("datasetQuery",{id:a,data:i},r,n).catch(()=>{})})},{}),k("datasetRegistration",t=>(nt.set(t.id,t.data),Gf("datasetQuery",t),{id:t.id,data:t.data}),{}),k("datasetQuery",t=>{var e;return(e=nt.get(t.id))!=null?e:null},{}),await $("__registerWindow__",{})})().catch(t=>console.error(t)),window._swsdk={sourceRegistry:Ot,datasets:nt};function Uf(t){const e=t;return!!e._type&&!!e._data&&!!e._callbackId}function Hf(t){const e=t;return!!e._type&&!!e.hasOwnProperty("_response")&&!!e._callbackId}const Bf=v("windowRedirect"),Kf=v("windowReload",{});var kf=Object.freeze(Object.defineProperty({__proto__:null,redirect:Bf,reload:Kf},Symbol.toStringTag,{value:"Module"}));const qf=v("notificationDispatch");var Vf=Object.freeze(Object.defineProperty({__proto__:null,dispatch:qf},Symbol.toStringTag,{value:"Module"}));const Wf=v("contextLanguage",{}),Jf=Ge("contextLanguage"),Qf=v("contextEnvironment",{}),Yf=v("contextLocale",{}),Xf=Ge("contextLocale"),Zf=v("contextCurrency",{}),tg=v("contextShopwareVersion",{}),eg=v("contextAppInformation",{});var rg=Object.freeze(Object.defineProperty({__proto__:null,getLanguage:Wf,subscribeLanguage:Jf,getEnvironment:Qf,getLocale:Yf,subscribeLocale:Xf,getCurrency:Zf,getShopwareVersion:tg,getAppInformation:eg},Symbol.toStringTag,{value:"Module"}));const ng=v("uiComponentSectionRenderer",{src:(Be=Da())!=null?Be:void 0});var ig=Object.freeze(Object.defineProperty({__proto__:null,add:ng},Symbol.toStringTag,{value:"Module"})),ag=t=>({addTabItem:v("uiTabsAddTabItem",{positionId:t})});const sg=t=>ut()===t,og=()=>window!==window.parent,Ue=t=>{if(t)return $("locationUpdateHeight",{height:t,locationId:ut()});const e=document.documentElement.offsetHeight;return $("locationUpdateHeight",{height:e,locationId:ut()})};let q=null;var cg=Object.freeze(Object.defineProperty({__proto__:null,is:sg,isIframe:og,updateHeight:Ue,startAutoResizer:()=>{q=new ResizeObserver(()=>{Ue()}),q.observe(document.body)},stopAutoResizer:()=>{q&&(q.unobserve(document.body),q.disconnect())},MAIN_HIDDEN:"sw-main-hidden"},Symbol.toStringTag,{value:"Module"}));const ug=v("menuItemAdd");var lg=Object.freeze(Object.defineProperty({__proto__:null,addMenuItem:ug},Symbol.toStringTag,{value:"Module"}));const fg=v("settingsItemAdd");var gg=Object.freeze(Object.defineProperty({__proto__:null,addSettingsItem:fg},Symbol.toStringTag,{value:"Module"}));const _g=v("mainModuleAdd");var dg=Object.freeze(Object.defineProperty({__proto__:null,addMainModule:_g},Symbol.toStringTag,{value:"Module"}));const pg=v("uiModalOpen"),hg=v("uiModalClose");var yg=Object.freeze(Object.defineProperty({__proto__:null,open:pg,close:hg},Symbol.toStringTag,{value:"Module"}));const vg=v("actionButtonAdd");var bg=Object.freeze(Object.defineProperty({__proto__:null,add:vg},Symbol.toStringTag,{value:"Module"}));const $g=v("actionExecute");var mg=Object.freeze(Object.defineProperty({__proto__:null,actionExecute:$g},Symbol.toStringTag,{value:"Module"})),Sg=t=>({search:(e,r)=>$("repositorySearch",{entityName:t,context:r,criteria:e}),get:(e,r,n)=>$("repositoryGet",{entityName:t,id:e,context:r,criteria:n}),save:(e,r)=>$("repositorySave",{entityName:t,entity:e,context:r}),clone:(e,r,n)=>$("repositoryClone",{entityName:t,entityId:e,context:r,behavior:n}),hasChanges:e=>$("repositoryHasChanges",{entityName:t,entity:e}),saveAll:(e,r)=>$("repositorySaveAll",{entityName:t,entities:e,context:r}),delete:(e,r)=>$("repositoryDelete",{entityName:t,entityId:e,context:r}),create:(e,r)=>$("repositoryCreate",{entityName:t,entityId:r,context:e})});function He(t){return(e,r)=>jt(t,i=>{if(i&&i.id===e){const a=r(i);a&&a.catch(()=>{})}})}const wg=He("datasetQuery"),Tg=v("datasetUpdate"),Ag=v("datasetRegistration"),Og=He("datasetUpdate");var jg=Object.freeze(Object.defineProperty({__proto__:null,get:wg,update:Tg,register:Ag,updateSubscriber:Og,repository:Sg,Classes:{Criteria:F,Entity:Fe,EntityCollection:L}},Symbol.toStringTag,{value:"Module"}));const Cg={webhook:mg},Eg={componentSection:ig,tabs:ag,menu:lg,settings:gg,mainModule:dg,modal:yg,actionButton:bg};y.app=Cg,y.context=rg,y.data=jg,y.location=cg,y.notification=Vf,y.ui=Eg,y.window=kf,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../../messages.types';
import type { ShopwareMessageTypes } from '../../messages.types';
export default function createError(type: keyof ShopwareMessageTypes, e: unknown): Error;

@@ -1,3 +0,3 @@

import { ShopwareMessageTypes } from './messages.types';
import { extensions } from './privileges/privilege-resolver';
import type { ShopwareMessageTypes } from './messages.types';
import type { extensions } from './privileges/privilege-resolver';
/**

@@ -75,3 +75,4 @@ * ----------------

*/
export declare function createSubscriber<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (method: (data: ShopwareMessageTypes[MESSAGE_TYPE]['responseType']) => void | Promise<unknown>) => () => void;
export declare function createSubscriber<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (method: (data: ShopwareMessageTypes[MESSAGE_TYPE]['responseType']) => void | Promise<unknown>, id?: string | undefined) => () => void;
declare const datasets: Map<string, unknown>;
/**

@@ -85,2 +86,3 @@ * Add utils to global window object for

sourceRegistry: typeof sourceRegistry;
datasets: typeof datasets;
};

@@ -87,0 +89,0 @@ }

@@ -267,6 +267,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
return (method) => {
return subscribe(messageType, method);
return (method, id) => {
if (!id) {
return subscribe(messageType, method);
}
const wrapper = (data) => {
if (data.id === id) {
void method(data);
}
};
return subscribe(messageType, wrapper);
};
}
const datasets = new Map();
/**

@@ -280,16 +289,35 @@ * ----------------

handle('__registerWindow__', (_, additionalOptions) => {
let source;
let origin;
if (additionalOptions._event_.source) {
const sourceWindow = additionalOptions._event_.source;
sourceRegistry.add({
source: sourceWindow,
origin: additionalOptions._event_.origin,
});
source = additionalOptions._event_.source;
origin = additionalOptions._event_.origin;
}
else {
sourceRegistry.add({
source: window,
origin: window.origin,
});
source = window;
origin = window.origin;
}
sourceRegistry.add({
source,
origin,
});
// Register all existing datasets for apps that come to late for the "synchronous" registration
datasets.forEach((dataset, id) => {
// eslint-disable-next-line @typescript-eslint/no-empty-function
send('datasetQuery', { id, data: dataset }, source, origin).catch(() => { });
});
}, {});
// New dataset registered
handle('datasetRegistration', (data) => {
datasets.set(data.id, data.data);
publish('datasetQuery', data);
return {
id: data.id,
data: data.data,
};
}, {});
handle('datasetQuery', (data) => {
var _a;
return (_a = datasets.get(data.id)) !== null && _a !== void 0 ? _a : null;
}, {});
// Register at parent window

@@ -300,2 +328,3 @@ yield send('__registerWindow__', {});

sourceRegistry,
datasets,
};

@@ -302,0 +331,0 @@ /**

@@ -8,3 +8,3 @@ export declare const getLanguage: (messageOptions?: import("../channel").MessageDataType<"contextLanguage"> | undefined) => Promise<{

languageId: string;
}) => void | Promise<unknown>) => () => void;
}) => void | Promise<unknown>, id?: string | undefined) => () => void;
export declare const getEnvironment: (messageOptions?: import("../channel").MessageDataType<"contextEnvironment"> | undefined) => Promise<"development" | "production" | "testing">;

@@ -18,3 +18,3 @@ export declare const getLocale: (messageOptions?: import("../channel").MessageDataType<"contextLocale"> | undefined) => Promise<{

fallbackLocale: string;
}) => void | Promise<unknown>) => () => void;
}) => void | Promise<unknown>, id?: string | undefined) => () => void;
export declare const getCurrency: (messageOptions?: import("../channel").MessageDataType<"contextCurrency"> | undefined) => Promise<{

@@ -21,0 +21,0 @@ systemCurrencyISOCode: string;

@@ -5,2 +5,39 @@ import Criteria from './Criteria';

import repository from './repository';
/**
* Methods used by extension developers to get and update data
*/
export declare const get: (id: string, callback: (data: {
id: string;
data: unknown;
}) => void | Promise<unknown>) => unknown;
export declare const update: (messageOptions: import("../channel").MessageDataType<"datasetUpdate">) => Promise<unknown>;
/**
* Internal methods used by the administration
*/
export declare const register: (messageOptions: import("../channel").MessageDataType<"datasetRegistration">) => Promise<{
id: string;
data: unknown;
}>;
export declare const updateSubscriber: (id: string, callback: (data: {
id: string;
data: unknown;
}) => void | Promise<unknown>) => unknown;
export declare type datasetRegistration = {
responseType: {
id: string;
data: unknown;
};
id: string;
data: unknown;
};
export declare type datasetQuery = {
responseType: unknown;
id: string;
data: unknown;
};
export declare type datasetUpdate = {
responseType: unknown;
id: string;
data: unknown;
};
declare const Classes: {

@@ -7,0 +44,0 @@ Criteria: typeof Criteria;

@@ -0,1 +1,2 @@

import { createSender, subscribe } from '../channel';
import Criteria from './Criteria';

@@ -5,2 +6,27 @@ import Entity from './_internals/Entity';

import repository from './repository';
// Internal function to create a filterable subscriber
function createFilteredSubscriber(type) {
return (id, callback) => {
const wrapper = (data) => {
if (data && data.id === id) {
const returnValue = callback(data);
if (returnValue) {
// eslint-disable-next-line @typescript-eslint/no-empty-function
returnValue.catch(() => { });
}
}
};
return subscribe(type, wrapper);
};
}
/**
* Methods used by extension developers to get and update data
*/
export const get = createFilteredSubscriber('datasetQuery');
export const update = createSender('datasetUpdate');
/**
* Internal methods used by the administration
*/
export const register = createSender('datasetRegistration');
export const updateSubscriber = createFilteredSubscriber('datasetUpdate');
const Classes = {

@@ -7,0 +33,0 @@ Criteria,

import type Criteria from './Criteria';
import type { ApiContext } from './_internals/EntityCollection';
import EntityCollection from './_internals/EntityCollection';
import type EntityCollection from './_internals/EntityCollection';
import type { Entity } from './_internals/Entity';

@@ -5,0 +5,0 @@ declare const _default: (entityName: string) => {

@@ -14,2 +14,3 @@ import type { notificationDispatch } from './notification/index';

import type Criteria from './data/Criteria';
import type { datasetRegistration, datasetQuery, datasetUpdate } from './data';
import type EntityCollection from './data/_internals/EntityCollection';

@@ -51,2 +52,5 @@ import type { Entity } from './data/_internals/Entity';

repositoryCreate: repositoryCreate;
datasetRegistration: datasetRegistration;
datasetQuery: datasetQuery;
datasetUpdate: datasetUpdate;
__function__: __function__;

@@ -53,0 +57,0 @@ __registerWindow__: __registerWindow__;

@@ -27,2 +27,5 @@ import { _privileges } from './messages/_privileges';

actionExecute: {},
datasetRegistration: {},
datasetQuery: {},
datasetUpdate: {},
__function__: {},

@@ -29,0 +32,0 @@ __registerWindow__: {},

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../messages.types';
import type { ShopwareMessageTypes } from '../messages.types';
import type { privilegeString } from './privilege-resolver';

@@ -3,0 +3,0 @@ declare type type = '__MissingPrivilegesError__';

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../messages.types';
import type { ShopwareMessageTypes } from '../messages.types';
export declare type privilegeString = `${keyof privileges}:${string}`;

@@ -3,0 +3,0 @@ export declare type privileges = {

@@ -1,2 +0,2 @@

import { icons } from '../../icons';
import type { icons } from '../../icons';
export declare const addSettingsItem: (messageOptions: import("../../channel").MessageDataType<"settingsItemAdd">) => Promise<void>;

@@ -3,0 +3,0 @@ export declare type settingsItemAdd = {

{
"name": "@shopware-ag/admin-extension-sdk",
"license": "MIT",
"version": "0.0.49",
"version": "0.0.50",
"repository": "git://github.com/shopware/admin-extension-sdk.git",

@@ -6,0 +6,0 @@ "description": "The SDK for App iframes to communicate with the Shopware Adminstration",

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../../messages.types';
import type { ShopwareMessageTypes } from '../../messages.types';
export default function createError(type: keyof ShopwareMessageTypes, e: unknown): Error;

@@ -1,3 +0,3 @@

import { ShopwareMessageTypes } from './messages.types';
import { extensions } from './privileges/privilege-resolver';
import type { ShopwareMessageTypes } from './messages.types';
import type { extensions } from './privileges/privilege-resolver';
/**

@@ -75,3 +75,4 @@ * ----------------

*/
export declare function createSubscriber<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (method: (data: ShopwareMessageTypes[MESSAGE_TYPE]['responseType']) => void | Promise<unknown>) => () => void;
export declare function createSubscriber<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (method: (data: ShopwareMessageTypes[MESSAGE_TYPE]['responseType']) => void | Promise<unknown>, id?: string | undefined) => () => void;
declare const datasets: Map<string, unknown>;
/**

@@ -85,2 +86,3 @@ * Add utils to global window object for

sourceRegistry: typeof sourceRegistry;
datasets: typeof datasets;
};

@@ -87,0 +89,0 @@ }

@@ -288,7 +288,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
return (method) => {
return subscribe(messageType, method);
return (method, id) => {
if (!id) {
return subscribe(messageType, method);
}
const wrapper = (data) => {
if (data.id === id) {
void method(data);
}
};
return subscribe(messageType, wrapper);
};
}
exports.createSubscriber = createSubscriber;
const datasets = new Map();
/**

@@ -302,16 +311,35 @@ * ----------------

handle('__registerWindow__', (_, additionalOptions) => {
let source;
let origin;
if (additionalOptions._event_.source) {
const sourceWindow = additionalOptions._event_.source;
sourceRegistry.add({
source: sourceWindow,
origin: additionalOptions._event_.origin,
});
source = additionalOptions._event_.source;
origin = additionalOptions._event_.origin;
}
else {
sourceRegistry.add({
source: window,
origin: window.origin,
});
source = window;
origin = window.origin;
}
sourceRegistry.add({
source,
origin,
});
// Register all existing datasets for apps that come to late for the "synchronous" registration
datasets.forEach((dataset, id) => {
// eslint-disable-next-line @typescript-eslint/no-empty-function
send('datasetQuery', { id, data: dataset }, source, origin).catch(() => { });
});
}, {});
// New dataset registered
handle('datasetRegistration', (data) => {
datasets.set(data.id, data.data);
publish('datasetQuery', data);
return {
id: data.id,
data: data.data,
};
}, {});
handle('datasetQuery', (data) => {
var _a;
return (_a = datasets.get(data.id)) !== null && _a !== void 0 ? _a : null;
}, {});
// Register at parent window

@@ -322,2 +350,3 @@ yield send('__registerWindow__', {});

sourceRegistry,
datasets,
};

@@ -324,0 +353,0 @@ /**

@@ -8,3 +8,3 @@ export declare const getLanguage: (messageOptions?: import("../channel").MessageDataType<"contextLanguage"> | undefined) => Promise<{

languageId: string;
}) => void | Promise<unknown>) => () => void;
}) => void | Promise<unknown>, id?: string | undefined) => () => void;
export declare const getEnvironment: (messageOptions?: import("../channel").MessageDataType<"contextEnvironment"> | undefined) => Promise<"development" | "production" | "testing">;

@@ -18,3 +18,3 @@ export declare const getLocale: (messageOptions?: import("../channel").MessageDataType<"contextLocale"> | undefined) => Promise<{

fallbackLocale: string;
}) => void | Promise<unknown>) => () => void;
}) => void | Promise<unknown>, id?: string | undefined) => () => void;
export declare const getCurrency: (messageOptions?: import("../channel").MessageDataType<"contextCurrency"> | undefined) => Promise<{

@@ -21,0 +21,0 @@ systemCurrencyISOCode: string;

@@ -5,2 +5,39 @@ import Criteria from './Criteria';

import repository from './repository';
/**
* Methods used by extension developers to get and update data
*/
export declare const get: (id: string, callback: (data: {
id: string;
data: unknown;
}) => void | Promise<unknown>) => unknown;
export declare const update: (messageOptions: import("../channel").MessageDataType<"datasetUpdate">) => Promise<unknown>;
/**
* Internal methods used by the administration
*/
export declare const register: (messageOptions: import("../channel").MessageDataType<"datasetRegistration">) => Promise<{
id: string;
data: unknown;
}>;
export declare const updateSubscriber: (id: string, callback: (data: {
id: string;
data: unknown;
}) => void | Promise<unknown>) => unknown;
export declare type datasetRegistration = {
responseType: {
id: string;
data: unknown;
};
id: string;
data: unknown;
};
export declare type datasetQuery = {
responseType: unknown;
id: string;
data: unknown;
};
export declare type datasetUpdate = {
responseType: unknown;
id: string;
data: unknown;
};
declare const Classes: {

@@ -7,0 +44,0 @@ Criteria: typeof Criteria;

@@ -10,3 +10,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./Criteria", "./_internals/Entity", "./_internals/EntityCollection", "./repository"], factory);
define(["require", "exports", "../channel", "./Criteria", "./_internals/Entity", "./_internals/EntityCollection", "./repository"], factory);
}

@@ -16,3 +16,4 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.Classes = exports.repository = void 0;
exports.Classes = exports.repository = exports.updateSubscriber = exports.register = exports.update = exports.get = void 0;
const channel_1 = require("../channel");
const Criteria_1 = __importDefault(require("./Criteria"));

@@ -23,2 +24,27 @@ const Entity_1 = __importDefault(require("./_internals/Entity"));

exports.repository = repository_1.default;
// Internal function to create a filterable subscriber
function createFilteredSubscriber(type) {
return (id, callback) => {
const wrapper = (data) => {
if (data && data.id === id) {
const returnValue = callback(data);
if (returnValue) {
// eslint-disable-next-line @typescript-eslint/no-empty-function
returnValue.catch(() => { });
}
}
};
return (0, channel_1.subscribe)(type, wrapper);
};
}
/**
* Methods used by extension developers to get and update data
*/
exports.get = createFilteredSubscriber('datasetQuery');
exports.update = (0, channel_1.createSender)('datasetUpdate');
/**
* Internal methods used by the administration
*/
exports.register = (0, channel_1.createSender)('datasetRegistration');
exports.updateSubscriber = createFilteredSubscriber('datasetUpdate');
const Classes = {

@@ -25,0 +51,0 @@ Criteria: Criteria_1.default,

import type Criteria from './Criteria';
import type { ApiContext } from './_internals/EntityCollection';
import EntityCollection from './_internals/EntityCollection';
import type EntityCollection from './_internals/EntityCollection';
import type { Entity } from './_internals/Entity';

@@ -5,0 +5,0 @@ declare const _default: (entityName: string) => {

@@ -14,2 +14,3 @@ import type { notificationDispatch } from './notification/index';

import type Criteria from './data/Criteria';
import type { datasetRegistration, datasetQuery, datasetUpdate } from './data';
import type EntityCollection from './data/_internals/EntityCollection';

@@ -51,2 +52,5 @@ import type { Entity } from './data/_internals/Entity';

repositoryCreate: repositoryCreate;
datasetRegistration: datasetRegistration;
datasetQuery: datasetQuery;
datasetUpdate: datasetUpdate;
__function__: __function__;

@@ -53,0 +57,0 @@ __registerWindow__: __registerWindow__;

@@ -39,2 +39,5 @@ (function (factory) {

actionExecute: {},
datasetRegistration: {},
datasetQuery: {},
datasetUpdate: {},
__function__: {},

@@ -41,0 +44,0 @@ __registerWindow__: {},

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../messages.types';
import type { ShopwareMessageTypes } from '../messages.types';
import type { privilegeString } from './privilege-resolver';

@@ -3,0 +3,0 @@ declare type type = '__MissingPrivilegesError__';

@@ -1,2 +0,2 @@

import { ShopwareMessageTypes } from '../messages.types';
import type { ShopwareMessageTypes } from '../messages.types';
export declare type privilegeString = `${keyof privileges}:${string}`;

@@ -3,0 +3,0 @@ export declare type privileges = {

@@ -1,2 +0,2 @@

import { icons } from '../../icons';
import type { icons } from '../../icons';
export declare const addSettingsItem: (messageOptions: import("../../channel").MessageDataType<"settingsItemAdd">) => Promise<void>;

@@ -3,0 +3,0 @@ export declare type settingsItemAdd = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc