text: (this.webpackJsonp=this.webpackJsonp||[]).push([["adminer"],{"/4Xw":function(e,t,n){"use strict";n.r(t);var r=n("lYO9");t.default={addEntityDefinition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return!1;return i.set(e,t),!0},getEntityDefinition:a,getDefinitionRegistry:function(){return i},getRawEntityObject:o,getPropertyBlacklist:s,getRequiredProperties:function(e){if(!i.has(e))return[];var t=i.get(e),n=["createdAt","updatedAt","uploadedAt","childCount","versionId","links","extensions","mimeType","fileExtension","metaData","fileSize","fileName","mediaType","mediaFolder"],r=[];return t.required.forEach(function(e){n.includes(e)||r.push(e)}),r},getAssociatedProperties:function(e){var t=i.get(e);return Object.keys(t.properties).reduce(function(e,n){var i=t.properties[n];return"array"===i.type&&Object(r.f)(i,"entity")&&e.push(n),e},[])},getTranslatableProperties:function(e){if(!i.has(e))return[];return i.get(e).translatable}};var i=new Map;function a(e){return i.get(e)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.properties,r={};return Object.keys(n).forEach(function(e){var i=n[e];r[e]=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("boolean"===e.type)return null;if("string"===e.type)return"";if("number"===e.type||"integer"===e.type)return null;if("array"===e.type)return[];if("object"===e.type&&e.entity)return!0===t?o(a(e.entity),!1):{};if("object"===e.type)return!0===t&&e.properties?o(e,!1):{};if("string"===e.type&&"date-time"===e.format)return"";return null}(i,t)}),r}function s(){return["createdAt","updatedAt","uploadedAt","childCount","versionId","links","extensions","mimeType","fileExtension","metaData","fileSize","fileName","mediaType","mediaFolder"]}},"0Lse":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("VXgk"),u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;i()(this,e),this.page=t,this.limit=n,this.term=null,this.filters=[],this.ids=[],this.queries=[],this.associations=[],this.postFilter=[],this.sortings=[],this.aggregations=[],this.totalCountMode=null}return o()(e,[{key:"parse",value:function(){var e={};return this.ids.length>0&&(e.ids=this.ids.join("|")),null!==this.page&&(e.page=this.page),null!==this.limit&&(e.limit=this.limit),null!==this.term&&(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.associations.length>0&&(e.associations={},this.associations.forEach(function(t){e.associations[t.association]=t.criteria.parse()})),null!==this.totalCountMode&&(e["total-count-mode"]=this.totalCountMode),e}},{key:"setIds",value:function(e){this.ids=e}},{key:"setTotalCountMode",value:function(e){s.types.isNumber(e)||(this.totalCountMode=null),this.totalCountMode=e<0||e>2?null:e}},{key:"setPage",value:function(e){return this.page=e,this}},{key:"setLimit",value:function(e){return this.limit=e,this}},{key:"setTerm",value:function(e){return this.term=e,this}},{key:"addFilter",value:function(e){return this.filters.push(e),this}},{key:"addPostFilter",value:function(e){return this.postFilter.push(e),this}},{key:"addSorting",value:function(e){return this.sortings.push(e),this}},{key:"addQuery",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={score:t,query:e};return n&&(r[n]=n),this.queries.push(r),this}},{key:"addAggregation",value:function(e){return this.aggregations.push(e),this}},{key:"addAssociation",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===n&&(n=new e),this.associations.push({association:t,criteria:n}),this}},{key:"addAssociationPath",value:function(e){var t=e.split("."),n=this;return t.forEach(function(e){n.hasAssociation(e)||n.addAssociation(e),n=n.getAssociation(e)}),this}},{key:"addAssociationPaths",value:function(e){var t=this;e.forEach(function(e){t.addAssociationPath(e)})}},{key:"hasAssociation",value:function(e){var t=!1;return this.associations.forEach(function(n){n.association===e&&(t=!0)}),t}},{key:"getAssociation",value:function(t){var n=new e;return this.associations.forEach(function(e){e.association===t&&(n=e.criteria)}),n}},{key:"resetSorting",value:function(){this.sortings=[]}}],[{key:"avg",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"avg",name:e,field:t,groupByFields:n}}},{key:"value",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"value",name:e,field:t,groupByFields:n}}},{key:"count",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"count",name:e,field:t,groupByFields:n}}},{key:"max",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"max",name:e,field:t,groupByFields:n}}},{key:"min",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"min",name:e,field:t,groupByFields:n}}},{key:"stats",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"stats",name:e,field:t,groupByFields:n}}},{key:"sum",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"sum",name:e,field:t,groupByFields:n}}},{key:"valueCount",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"value_count",name:e,field:t,groupByFields:n}}},{key:"sort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ASC",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{field:e,order:t,naturalSorting:n}}},{key:"naturalSorting",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ASC";return{field:e,order:t,naturalSorting:!0}}},{key:"contains",value:function(e,t){return{type:"contains",field:e,value:t}}},{key:"equalsAny",value:function(e,t){return{type:"equalsAny",field:e,value:t.join("|")}}},{key:"range",value:function(e,t){return{type:"range",field:e,parameters:t}}},{key:"equals",value:function(e,t){return{type:"equals",field:e,value:t}}},{key:"not",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:"not",operator:e,queries:t}}},{key:"multi",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:"multi",operator:e,queries:t}}}]),e}()},1:function(e,t){},"1iIE":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return s});var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=function(){function e(t,n){i()(this,e),this.store=Shopware.State.getStore(t),this.page=1,this.limit=n,this.done=!1}return o()(e,[{key:"next",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object.assign({},e,{page:this.page,limit:this.limit});return this.page+=1,this.store.getList(r,n).then(function(e){var n=e.items;return n.length<t.limit&&(t.done=!0),n})}},{key:"reset",value:function(){this.page=1,this.done=!1}}]),e}()},"4ltZ":function(e,t,n){"use strict";n.r(t);var r=n("cDf5"),i=n.n(r),a=n("UWdM"),o=n("VXgk");t.default={getLocaleByName:function(e){if(!s.has(e))return!1;return s.get(e)},getLocaleRegistry:function(){return s},register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return Object(a.a)("LocaleFactory","A locale always needs a name"),!1;if(e.split("-").length<2)return Object(a.a)("LocaleFactory",'The locale name should follow the RFC-4647 standard e.g. [languageCode-countryCode] for example "en-US"'),!1;if(s.has(e))return Object(a.a)("LocaleFactory",'The locale "'.concat(e,'" is registered already.'),"Please use the extend method to extend and override certain keys"),!1;return s.set(e,t),e},extend:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.split("-").length<2)return Object(a.a)("LocaleFactory",'The locale name should follow the RFC-4647 standard e.g. [languageCode-countryCode]] for example "en-US"'),!1;if(!s.has(e))return Object(a.a)("LocaleFactory",'The locale "'.concat(e,"\" doesn't exists. Please use the register method to register a new locale")),!1;var n=s.get(e);return s.set(e,o.object.merge(n,t)),e},getBrowserLanguage:l,getBrowserLanguages:d,getLastKnownLocale:function(){var e=l();null!==window.localStorage.getItem(c)&&(e=window.localStorage.getItem(c));return e},storeCurrentLocale:function(e){if("object"===("undefined"==typeof document?"undefined":i()(document))){var t=e.split("-")[0];document.querySelector("html").setAttribute("lang",t)}return window.localStorage.setItem(c,e),e}};var s=new Map,u="en-GB",c="sw-admin-locale";function l(){var e=d(),t=e.map(function(e){return e.split("-")[0].toLowerCase()}),n=null;return e.forEach(function(e){var r=e.split("-")[0];!n&&t.includes(r)&&(n=e)}),n||(n=u),n}function d(){var e=[];return navigator.language&&e.push(navigator.language),navigator.languages&&navigator.languages.length&&navigator.languages.forEach(function(t){e.push(t)}),navigator.userLanguage&&e.push(navigator.userLanguage),navigator.systemLanguage&&e.push(navigator.systemLanguage),e}},"5Ylc":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),a=n("RIqP"),o=n.n(a),s=n("lwsE"),u=n.n(s),c=n("W8MJ"),l=n.n(c),d=function e(t){var n=t.uploadTag,r=t.src,i=t.targetId,a=t.fileName,o=t.extension,s=void 0===o?"dat":o;u()(this,e),this.running=!1,this.src=r,this.uploadTag=n,this.targetId=i,this.fileName=a,this.extension=s,this.error=null},f=n("VXgk");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}n.d(t,"b",function(){return p}),n.d(t,"a",function(){return g});var g={UPLOAD_ADDED:"media-upload-add",UPLOAD_FINISHED:"media-upload-finish",UPLOAD_FAILED:"media-upload-fail"},p=function(){function e(t){u()(this,e),this.uploads=[],this.$listeners={},this.mediaService=t}return l()(e,[{key:"hasListeners",value:function(e){return!!e&&this.$listeners.hasOwnProperty(e)}},{key:"hasDefaultListeners",value:function(){return this.hasListeners("default")}},{key:"addListener",value:function(e,t){this.hasListeners(e)||(this.$listeners[e]=[]),this.$listeners[e].push(t)}},{key:"removeListener",value:function(e,t){this.hasListeners(e)&&(void 0!==t?f.array.remove(this.$listeners[e],function(e){return e===t}):f.array.remove(this.$listeners[e],function(){return!0}))}},{key:"removeDefaultListener",value:function(e){this.removeListener("default",e)}},{key:"addDefaultListener",value:function(e){this.addListener("default",e)}},{key:"getListenerForTag",value:function(e){var t=this.hasListeners(e)?this.$listeners[e]:[],n=this.hasDefaultListeners()?this.$listeners.default:[];return[].concat(o()(t),o()(n))}},{key:"_createUploadEvent",value:function(e,t,n){return{action:e,uploadTag:t,payload:n}}},{key:"addUpload",value:function(e,t){this.addUploads(e,[t])}},{key:"addUploads",value:function(e,t){var n=this,r=[];t.forEach(function(t){var a=new d(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({uploadTag:e},t));r.push(a),n.uploads.push(a)}),this.getListenerForTag(e).forEach(function(t){t(n._createUploadEvent(g.UPLOAD_ADDED,e,{data:r}))})}},{key:"removeByTag",value:function(e){f.array.remove(this.uploads,function(t){return t.uploadTag===e})}},{key:"runUploads",value:function(e){var t=this,n=f.array.remove(this.uploads,function(t){return t.uploadTag===e}),r=this.getListenerForTag(e);if(0===n.length)return Promise.resolve();var i=n.length,a=0,o=0;return Promise.all(n.map(function(n){return n.running?Promise.resolve():(n.running=!0,t._startUpload(n).then(function(){n.running=!1,a+=1,r.forEach(function(r){r(t._createUploadEvent(g.UPLOAD_FINISHED,e,{targetId:n.targetId,successAmount:a,failureAmount:o,totalAmount:i}))})}).catch(function(s){n.error=s,n.running=!1,o+=1,n.successAmount=a,n.failureAmount=o,n.totalAmount=i,r.forEach(function(r){r(t._createUploadEvent(g.UPLOAD_FAILED,e,n))})}))}))}},{key:"_startUpload",value:function(e){var t=this;return e.src instanceof File?f.fileReader.readAsArrayBuffer(e.src).then(function(n){return t.mediaService.uploadMediaById(e.targetId,e.src.type,n,e.extension,e.fileName)}):e.src instanceof URL?this.mediaService.uploadMediaFromUrl(e.targetId,e.src.href,e.extension,e.fileName):Promise.reject(new Error("src of upload must either be an instance of File or URL"))}}]),e}()},"5xgp":function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("D1bQ"),o=n("lYO9"),s=n("lO2t");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}t.default={getRegistry:f,register:function(e,t){if(!e||!e.length)return!1;if(c.has(e))return!1;if(!h(t))return!1;return c.set(e,t),!0},remove:function(e){if(!e||!e.length)return!1;if(!c.has(e))return!1;return c.delete(e),!0},override:function(e,t){if(!c.has(e))return!1;if(!h(t))return!1;return c.set(e,t),!0},initialize:function(){if(d)return l;return d=!0,f().forEach(function(e){var t=e.fn,n=e.name;l.use(function(e,t){return function(n,r){var a=r.queue.find(function(t){return t.name===e})||null,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r,{},{entry:a,name:e});null===a?n():t.call(null,n,o)}}(n,t))}),l},resetHelper:function(){return l=new a.default,d=!1,!0}};var c=new Map,l=new a.default,d=!1;function f(){return c}function h(e){return Object(o.f)(e,"name")&&e.name.length>0&&Object(o.f)(e,"fn")&&s.a.isFunction(e.fn)}},"5zS2":function(e,t,n){"use strict";n.r(t);var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("lO2t");function u(e){return""===e||void 0===e?null:e}var c=function(){function e(){i()(this,e)}return o()(e,[{key:"generate",value:function(e){var t=[];return{changes:this.recursion(e,t),deletionQueue:t}}},{key:"recursion",value:function(e,t){var n=this,r=Shopware.EntityDefinition.get(e.getEntityName()),i={},a=e.getOrigin(),o=e.getDraft();return r.forEachField(function(e,c){if(!e.readOnly){var l=u(o[c]),d=u(a[c]);if(e.flags.extension&&(l=u(o.extensions[c]),d=u(a.extensions[c])),r.isScalarField(e)&&l!==d)i[c]=l;else if(r.isJsonField(e)){if(!((s.a.isEmpty(d)?null:JSON.stringify(d))===(s.a.isEmpty(l)?null:JSON.stringify(l)))){if(Array.isArray(l)&&l.length<=0)return void(i[c]=[]);i[c]=l}}else if("association"===e.type)switch(e.relation){case"one_to_many":var f=n.handleOneToMany(l,d,t);f.length>0&&(i[c]=f);break;case"many_to_many":var h=n.handleManyToMany(l,d,t);h.length>0&&(i[c]=h);break;case"one_to_one":if(!l)return;var g=n.recursion(l,t);null!==g&&(g.id=l.id,i[c]=g)}}}),Object.keys(i).length>0?i:null}},{key:"handleManyToMany",value:function(e,t,n){var r=[],i=t.getIds();return e.forEach(function(e){i.includes(e.id)||r.push({id:e.id})}),i.forEach(function(t){e.has(t)||n.push({route:e.source,key:t})}),r}},{key:"handleOneToMany",value:function(e,t,n){var r=this,i=[],a=t.getIds();return e.forEach(function(e){if(!a.includes(e.id)){var t=r.recursion(e,[]);return null===t?t={id:e.id}:t.id=e.id,void i.push(t)}var o=r.recursion(e,n);null!==o&&(o.id=e.id,i.push(o))}),a.forEach(function(t){e.has(t)||n.push({route:e.source,key:t})}),i}}]),e}(),l=n("0Lse"),d=n("lYO9"),f=function(){function e(t,n,r){i()(this,e),this.id=t,this._origin=Object(d.a)(r),this._entityName=n,this._draft=r,this._isDirty=!1,this._isNew=!1;var a=this;return new Proxy(this._draft,{get:function(e,t){return t in a._draft?a._draft[t]:a[t]},set:function(e,t,n){return Shopware.Application.view.setReactive(a._draft,t,n),a._isDirty=!0,!0}})}return o()(e,[{key:"markAsNew",value:function(){this._isNew=!0}},{key:"isNew",value:function(){return this._isNew}},{key:"getIsDirty",value:function(){return this._isDirty}},{key:"getOrigin",value:function(){return this._origin}},{key:"getDraft",value:function(){return this._draft}},{key:"getEntityName",value:function(){return this._entityName}}]),e}(),h=n("RIqP"),g=n.n(h),p=n("a1gu"),y=n.n(p),v=n("Nsbk"),m=n.n(v),b=n("7W2i"),O=n.n(b),k=n("oShl"),w=function(e){function t(e,n,r){var a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return i()(this,t),(o=y()(this,m()(t).call(this))).entity=n,o.source=e,o.context=r,o.criteria=s,o.aggregations=l,o.total=c,(a=o).push.apply(a,g()(u)),o.first=function(){return this.length<=0?null:this[0]},o.last=function(){return this.length<=0?null:this[this.length-1]},o.remove=function(e){var t=this.findIndex(function(t){return t.id===e});return!(t<0)&&(this.splice(t,1),!0)},o.has=function(e){return this.some(function(t){return t.id===e})},o.get=function(e){var t=this.find(function(t){return t.id===e});return void 0!==t?t:null},o.getAt=function(e){var t=this[e];return void 0!==t?t:null},o.getIds=function(){return this.map(function(e){return e.id})},o.add=function(e){this.push(e)},o.addAt=function(e,t){this.splice(t,0,e)},o.moveItem=function(e,t){if(t===e)return null;var n=this.find(function(t,n){return n===e}),r=this.filter(function(t,n){return n!==e}),i=[].concat(g()(r.slice(0,t)),[n],g()(r.slice(t)));return this.splice.apply(this,[0,this.length].concat(g()(i))),n},o}return O()(t,e),t}(n.n(k)()(Array)),j=n("k3fw"),A=n("VXgk"),E=n("UWdM"),S=function(){function e(){i()(this,e)}return o()(e,[{key:"create",value:function(e,t,n){var r=this;t=t||A.default.createId();var i=Shopware.EntityDefinition.get(e);if(!i)return Object(E.a)("Entity factory","No schema found for entity ".concat(e)),null;var a={extensions:{}},o=i.getToManyAssociations();Object.keys(o).forEach(function(i){var s=o[i].entity;o[i].flags.extension?a.extensions[i]=r.createCollection(e,"".concat(t,"/extensions"),i,s,n):a[i]=r.createCollection(e,t,i,s,n)});var s=new f(t,e,a);return s.markAsNew(),s}},{key:"createCollection",value:function(e,t,n,r,i){var a=n.replace(/_/g,"-"),o=e.replace(/_/g,"-"),s="/".concat(o,"/").concat(t,"/").concat(a),u=new l.a;return u.setLimit(10),u.setPage(1),new w(s,r,i,u)}}]),e}(),P=function(){function e(){i()(this,e)}return o()(e,[{key:"hydrateSearchResult",value:function(e,t,n,r,i){var a=this;this.cache={};var o=[];return n.data.data.forEach(function(e){o.push(a.hydrateEntity(t,e,n.data,r,i))}),new w(e,t,r,i,o,n.data.meta.total,n.data.aggregations)}},{key:"hydrate",value:function(e,t,n,r,i){var a=this;this.cache={};var o=new Shopware.EntityCollection(e,t,r,i);return n.data.forEach(function(e){o.add(a.hydrateEntity(t,e,n,r,i))}),o}},{key:"hydrateEntity",value:function(e,t,n,r,i){var a=this,o=t.id,u="".concat(e,"-").concat(o);if(this.cache[u])return this.cache[u];var c=Shopware.EntityDefinition.get(e);if(!c)return null;var l=t.attributes;l.id=o,Object.keys(t.relationships).forEach(function(e){var u=t.relationships[e];"extensions"===e&&(l[e]=a.hydrateExtensions(o,u,c,n,r,i));var d=c.properties[e];if(!d)return!0;if(c.isToManyAssociation(d))return l[e]=a.hydrateToMany(i,e,u,d.entity,r,n),!0;if(c.isToOneAssociation(d)&&s.a.isObject(u.data)){var f=a.hydrateToOne(i,e,u,n,r);f&&(l[e]=f)}return!0});var d=new f(o,e,l);return this.cache[u]=d,d}},{key:"hydrateToOne",value:function(e,t,n,r,i){var a=e.getAssociation(t),o=this.getIncluded(n.data.type,n.data.id,r);return this.hydrateEntity(n.data.type,o,r,i,a)}},{key:"hydrateToMany",value:function(e,t,n,r,i,a){var o=this,s=e.getAssociation(t),u=n.links.related.substr(n.links.related.indexOf(i.apiResourcePath)+i.apiResourcePath.length),c=new w(u,r,i,s);return null===n.data?c:(n.data.forEach(function(e){var t=o.getIncluded(e.type,e.id,a),n=o.hydrateEntity(e.type,t,a,i,s);n&&c.add(n)}),c)}},{key:"getIncluded",value:function(e,t,n){return n.included.find(function(n){return n.id===t&&n.type===e})}},{key:"hydrateExtensions",value:function(e,t,n,r,i,a){var o=this,u=this.getIncluded("extension",e,r),c=Object.assign({},u.attributes);return Object.keys(u.relationships).forEach(function(e){var t=u.relationships[e],l=n.properties[e];if(!l)return!0;if(n.isToManyAssociation(l))return c[e]=o.hydrateToMany(a,e,t,l.entity,i,r),!0;if(n.isToOneAssociation(l)&&s.a.isObject(t.data)){var d=o.hydrateToOne(a,e,t,r,i);d&&(c[e]=d)}return!0}),c}}]),e}(),T=n("uyGl");t.default={ChangesetGenerator:c,Criteria:l.a,Entity:f,EntityCollection:w,EntityDefinition:j.a,EntityFactory:S,EntityHydrator:P,Repository:T.a}},"9NcV":function(e,t,n){"use strict";n.r(t);var r=n("UWdM");t.default={register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return Object(r.a)("MixinFactory","A mixin always needs a name.",t),!1;if(i.has(e))return Object(r.a)("MixinFactory",'The mixin "'.concat(e,'" is already registered. Please select a unique name for your mixin.'),t),!1;return i.set(e,t),t},getByName:function(e){return i.get(e)},getMixinRegistry:function(){return i}};var i=new Map},CkOj:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("lSNA"),i=n.n(r),a=n("lO2t"),o=n("lYO9");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){var t=function(e){var t;if(a.a.isString(e))try{t=JSON.parse(e)}catch(e){return!1}else{if(!a.a.isObject(e)||a.a.isArray(e))return!1;t=e}return t}(e);if(!t)return null;if(!0===t.parsed||!function(e){return void 0!==e.data||void 0!==e.errors||void 0!==e.links||void 0!==e.meta}(t))return t;var n=function(e){var t={links:null,errors:null,data:null,associations:null,aggregations:null};if(e.errors)return t.errors=e.errors,t;var n=function(e){var t=new Map;if(!e||!e.length)return t;return e.forEach(function(e){var n="".concat(e.type,"-").concat(e.id);t.set(n,e)}),t}(e.included);if(a.a.isArray(e.data))t.data=e.data.map(function(e){var r=l(e,n);return Object(o.f)(r,"associationLinks")&&(t.associations=u({},t.associations,{},r.associationLinks),delete r.associationLinks),r});else if(a.a.isObject(e.data)){var r=l(e.data,n);Object.prototype.hasOwnProperty.call(r,"associationLinks")&&(t.associations=u({},t.associations,{},r.associationLinks),delete r.associationLinks),t.data=r}else t.data=null;e.meta&&Object.keys(e.meta).length&&(t.meta=d(e.meta));e.links&&Object.keys(e.links).length&&(t.links=e.links);e.aggregations&&Object.keys(e.aggregations).length&&(t.aggregations=e.aggregations);return t}(t);return n.parsed=!0,n}function l(e,t){var n={id:e.id,type:e.type,links:e.links||{},meta:e.meta||{}};e.attributes&&Object.keys(e.attributes).length>0&&(n=u({},n,{},d(e.attributes)));if(e.relationships){var r=function(e,t){var n={},r={};return Object.keys(e).forEach(function(i){var o=e[i];if(o.links&&Object.keys(o.links).length&&(r[i]=o.links.related),o.data){var s=o.data;a.a.isArray(s)?n[i]=s.map(function(e){return f(e,t)}):a.a.isObject(s)?n[i]=f(s,t):n[i]=null}}),{mappedRelations:n,associationLinks:r}}(e.relationships,t);n=u({},n,{},r.mappedRelations,{},{associationLinks:r.associationLinks})}return n}function d(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],i=n.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});t[i]=r}),t}function f(e,t){var n="".concat(e.type,"-").concat(e.id);return t.has(n)?l(t.get(n),t):e}},D1bQ:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return s});var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=function(){function e(){i()(this,e),this._stack=[]}return o()(e,[{key:"use",value:function(e){if("function"!=typeof e)throw new Error("Middleware must be a function.");return this._stack.push(e),this}},{key:"go",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=0,a=function t(){if(!(i>=e.stack.length)){var r=e.stack[i];i+=1,r.apply(null,[t].concat(n))}};a()}},{key:"stack",get:function(){return this._stack}}]),e}()},Hdyx:function(e,t){e.exports='<sw-page class="swag-bundle-list">\n    <template slot="content">\n        <iframe v-if="apiAdminerUrl" :src="apiAdminerUrl" width="100%" height="99%" frameborder="0"></iframe>\n    </template>\n\n    <template slot="smart-bar-actions">\n        <sw-button variant="primary" v-if="apiAdminerUrl" @click="openNewTab">\n            Open in new Tab\n        </sw-button>\n    </template>\n</sw-page>'},"I3+K":function(e,t,n){"use strict";n.r(t);var r=n("uorI"),i=n.n(r),a=n("UWdM");t.default={registerComponentTemplate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=o.get(e)||{};null===t&&(t=u(e));var r={id:"".concat(e,"-baseTemplate"),data:t};try{n.baseTemplate=i.a.twig(r)}catch(e){return Object(a.a)(e.message),!1}return o.set(e,n),!0},extendComponentTemplate:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={extendsFrom:t,baseTemplate:null,overrides:[]};o.set(e,r),null!==n&&s(e,n,0)},registerTemplateOverride:s,getRenderedTemplate:function(e){if(!o.has(e))return"";var t=o.get(e);if(!t.baseTemplate){if(!t.extendsFrom)return Object(a.a)("missing baseTemplate",e),"";var n={};if(function(e){var t=o.get(e).baseTemplate;if(null===t)return!1;return n=t.render({},{output:"blocks"}),!(0===Object.entries(n).length&&n.constructor===Object);var n}(t.extendsFrom)){var r=o.get(t.extendsFrom);n={id:"".concat(e,"-baseTemplate"),data:r.baseTemplate.tokens},t.baseTemplate=i.a.twig(n)}else{if(!(t.overrides.length>0))return Object(a.a)(e,"has no overrides or template to extend from!"),"";var s=t.overrides.shift();t.baseTemplate=s}}var u=t.baseTemplate,c=t.overrides,l=i.a.placeholders.parent,d={};c&&c.forEach(function(e){var t=e.render({},{output:"blocks"});Object.keys(d).forEach(function(e){t[e]&&(t[e]=t[e].replace(l,d[e]))}),Object.assign(d,t)});return u.render({},{blocks:d})},getTemplateOverrides:function(e){if(!o.has(e))return[];return o.get(e).overrides||[]},getTemplateRegistry:function(){return o},findCustomTemplate:u,findCustomOverride:c,clearTwigCache:function(){i.a.clearRegistry()},getTwigCache:function(){return i.a.getRegistry()},disableTwigCache:function(){i.a.cache(!1)}};var o=new Map;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=o.get(e)||{};r.overrides=r.overrides||[],null===t&&(t=c(e));var a={id:"".concat(e,"-").concat(r.overrides.length),data:t},s=i.a.twig(a);null!==n?r.overrides.splice(n,0,s):r.overrides.push(s),o.set(e,r)}function u(e){var t=document.querySelector('template[component="'.concat(e,'"]'));return null!==t?t.innerHTML:""}function c(e){var t=document.querySelector('template[override="'.concat(e,'"]'));return null!==t?t.innerHTML:""}i.a.extend(function(e){e.token.definitions=[e.token.definitions[0],e.token.definitions[1],e.token.definitions[5],e.token.definitions[6],e.token.definitions[7],e.token.definitions[9],e.token.definitions[10]],e.exports.extendTag({type:"parent",regex:/^parent/,next:[],open:!0,parse:function(t,n,r){return{chain:r,output:e.placeholders.parent}}}),e.exports.placeholders=e.placeholders,e.exports.getRegistry=function(){return e.Templates.registry},e.exports.clearRegistry=function(){e.Templates.registry={}}})},KzKh:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return d});var r=n("J4zp"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),u=n.n(s),c=n("lSNA"),l=n.n(c),d=function(){function e(){o()(this,e)}return u()(e,null,[{key:"init",value:function(e){var t=this;Object.entries(e).forEach(function(e){var n=i()(e,2),r=n[0],a=n[1];t.flags[r]=a})}},{key:"getAll",value:function(){return this.flags}},{key:"isActive",value:function(e){if(!this.flags.hasOwnProperty(e))throw new Error("Unable to retrieve flag ".concat(e,", not registered"));return this.flags[e]}}]),e}();l()(d,"flags",{})},LrTp:function(e,t,n){(function(t){e.exports=t.Shopware=n("XYkp")}).call(this,n("yLpj"))},MFJK:function(e,t,n){"use strict";var r=n("lO2t");t.a={equals:function(e,t){if(r.a.isArray(t))return o(e,t);return l({type:"equals",field:e,value:t})},multi:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l({type:"multi",operator:c(e),queries:s(n)})},contains:function(e,t){return l({type:"contains",field:e,value:t})},range:function(e,t){return l({type:"range",parameters:u(t),field:e})},not:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l({type:"not",operator:c(e),queries:s(n)})},equalsAny:o};var i={AND:["and","&&"],OR:["or","||"]},a={lt:["lt","<"],lte:["lte","<="],gt:["gt",">"],gte:["gte",">="]};function o(e,t){return l({type:"equalsAny",field:e,value:t.join("|")})}function s(e){return e.map(function(e){return e.getQuery()})}function u(e){return Object.keys(e).reduce(function(t,n){return t[c(n,"lt",a)]=e[n],t},{})}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=t;return Object.keys(n).every(function(t){var i=e.toLowerCase();return-1===n[t].indexOf(i)||(r=t,!1)}),r}function l(e){return{getQueryString:function(){return function(e){return JSON.stringify(e)}(e)},getQuery:function(){return e}}}},MvfK:function(e,t,n){"use strict";n.r(t);var r=n("oKsz"),i=n("5Ylc"),a=n("MFJK");t.default={LocalStore:r.a,UploadStore:i.b,CriteriaFactory:a.a}},N23T:function(e,t,n){"use strict";n.r(t);var r=n("UWdM"),i=n("I3+K");t.default={register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;if(!e||!e.length)return Object(r.a)("ComponentFactory","A component always needs a name.",t),!1;if(a.has(e))return Object(r.a)("ComponentFactory",'The component "'.concat(e,'" is already registered. Please select a unique name for your component.'),n),!1;if(n.name=e,n.template)i.default.registerComponentTemplate(e,n.template),delete n.template;else if(!n.functional&&"function"!=typeof n.render)return Object(r.a)("ComponentFactory",'The component "'.concat(n.name,'" needs a template to be functional.'),'Please add a "template" property to your component definition',n),!1;return a.set(e,n),n},extend:function(e,t,n){var r=n;r.template?(i.default.extendComponentTemplate(e,t,r.template),delete r.template):i.default.extendComponentTemplate(e,t);return r.name=e,r.extends=t,a.set(e,r),r},override:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;r.name=e,r.template&&(i.default.registerTemplateOverride(e,r.template,n),delete r.template);var a=o.get(e)||[];null!==n&&n>=0&&a.length>0?a.splice(n,0,r):a.push(r);return o.set(e,a),r},build:function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a.has(t))return!1;var r=Object.create(a.get(t));if(r.extends){var i=e(r.extends,!0);i?r.extends=i:delete r.extends}if(o.has(t)){o.get(t).forEach(function(e){var t=Object.create(e);t.extends=Object.create(r),r=t})}!0!==n?r.template=u(t):delete r.template;return r},getComponentTemplate:u,getComponentRegistry:function(){return a},getOverrideRegistry:function(){return o},getComponentHelper:function(){return s}};var a=new Map,o=new Map,s={};function u(e){return i.default.getRenderedTemplate(e)}},SwLI:function(e,t,n){"use strict";n.r(t);var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("CkOj"),u=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/vnd.api+json";i()(this,e),this.httpClient=t,this.loginService=n,this.apiEndpoint=r,this.contentType=a}return o()(e,[{key:"getList",value:function(t){var n=t.page,r=void 0===n?1:n,i=t.limit,a=void 0===i?25:i,o=t.sortBy,s=t.sortDirection,u=void 0===s?"asc":s,c=t.sortings,l=t.queries,d=t.term,f=t.criteria,h=t.aggregations,g=t.associations,p=t.headers,y=t.versionId,v=t.ids,m=this.getBasicHeaders(p),b={page:r,limit:a};return c?b.sort=c:o&&o.length&&(b.sort=("asc"===u.toLowerCase()?"":"-")+o),v&&(b.ids=v.join("|")),d&&(b.term=d),f&&(b.filter=[f.getQuery()]),h&&(b.aggregations=h),g&&(b.associations=g),y&&(m=Object.assign(m,e.getVersionHeader(y))),l&&(b.query=l),b.term&&b.term.length||b.filter&&b.filter.length||b.aggregations||b.sort||b.queries||b.associations?this.httpClient.post("".concat(this.getApiBasePath(null,"search")),b,{headers:m}).then(function(t){return e.handleResponse(t)}):this.httpClient.get(this.getApiBasePath(),{params:b,headers:m}).then(function(t){return e.handleResponse(t)})}},{key:"getById",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return Promise.reject(new Error("Missing required argument: id"));var i=n,a=this.getBasicHeaders(r);return this.httpClient.get(this.getApiBasePath(t),{params:i,headers:a}).then(function(t){return e.handleResponse(t)})}},{key:"updateById",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)return Promise.reject(new Error("Missing required argument: id"));var a=r,o=this.getBasicHeaders(i);return this.httpClient.patch(this.getApiBasePath(t),n,{params:a,headers:o}).then(function(t){return e.handleResponse(t)})}},{key:"deleteAssociation",value:function(e,t,n,r){if(!e||!n||!n)return Promise.reject(new Error("Missing required arguments."));var i=this.getBasicHeaders(r);return this.httpClient.delete("".concat(this.getApiBasePath(e),"/").concat(t,"/").concat(n),{headers:i}).then(function(e){return e.status>=200&&e.status<300?Promise.resolve(e):Promise.reject(e)})}},{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n,a=this.getBasicHeaders(r);return this.httpClient.post(this.getApiBasePath(),t,{params:i,headers:a}).then(function(t){return e.handleResponse(t)})}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return Promise.reject(new Error("Missing required argument: id"));var r=Object.assign({},t),i=this.getBasicHeaders(n);return this.httpClient.delete(this.getApiBasePath(e),{params:r,headers:i})}},{key:"clone",value:function(t){return t?this.httpClient.post("/_action/clone/".concat(this.apiEndpoint,"/").concat(t),null,{headers:this.getBasicHeaders()}).then(function(t){return e.handleResponse(t)}):Promise.reject(new Error("Missing required argument: id"))}},{key:"versionize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/_action/version/".concat(this.apiEndpoint,"/").concat(e),i=Object.assign({},t),a=this.getBasicHeaders(n);return this.httpClient.post(r,{},{params:i,headers:a})}},{key:"mergeVersion",value:function(t,n,r,i){if(!t)return Promise.reject(new Error("Missing required argument: id"));if(!n)return Promise.reject(new Error("Missing required argument: versionId"));var a=Object.assign({},r),o=Object.assign(e.getVersionHeader(n),this.getBasicHeaders(i)),s="_action/version/merge/".concat(this.apiEndpoint,"/").concat(n);return this.httpClient.post(s,{},{params:a,headers:o})}},{key:"getApiBasePath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return t&&t.length&&(n+="".concat(t,"/")),e&&e.length>0?"".concat(n).concat(this.apiEndpoint,"/").concat(e):"".concat(n).concat(this.apiEndpoint)}},{key:"getBasicHeaders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={Accept:this.contentType,Authorization:"Bearer ".concat(this.loginService.getToken()),"Content-Type":"application/json"};return Object.assign({},t,e)}},{key:"apiEndpoint",get:function(){return this.endpoint},set:function(e){this.endpoint=e}},{key:"httpClient",get:function(){return this.client},set:function(e){this.client=e}},{key:"contentType",get:function(){return this.type},set:function(e){this.type=e}}],[{key:"handleResponse",value:function(t){if(null===t.data||void 0===t.data)return t;var n=t.data,r=t.headers;return r&&r["content-type"]&&"application/vnd.api+json"===r["content-type"]&&(n=e.parseJsonApiData(n)),n}},{key:"parseJsonApiData",value:function(e){return Object(s.a)(e)}},{key:"getVersionHeader",value:function(e){return{"sw-version-id":e}}}]),e}();t.default=u},"Sy+1":function(e,t,n){"use strict";n.r(t);var r=n("UWdM");t.default={getPathByCombination:function(e){if(!i.has(e))return!1;return i.get(e)},getShortcutRegistry:function(){return i},register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||!e.length)return Object(r.a)("ShortcutFactory","A combination can't be blank."),!1;if(i.has(e))return Object(r.a)("ShortcutFactory",'The combination "'.concat(e,'" is registered already.')),!1;return i.set(e,t),e}};var i=new Map},UUiw:function(e,t,n){"use strict";n.r(t);var r=n("k3fw");t.default={getScalarTypes:r.c,getJsonTypes:r.b,getDefinitionRegistry:function(){return i},get:a,add:function(e,t){i.set(e,new r.a(t))},remove:function(e){return i.delete(e)},getTranslatedFields:function(e){return a(e).getTranslatableFields()},getAssociationFields:function(e){return a(e).getAssociationFields()},getRequiredFields:function(e){return a(e).getRequiredFields()}};var i=new Map;function a(e){var t=i.get(e);if(void 0===t)throw new Error("[EntityDefinitionRegistry] No definition found for entity type ".concat(e));return t}},UWdM:function(e,t,n){"use strict";n.d(t,"a",function(){return r});function r(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},VXgk:function(e,t,n){"use strict";n.r(t);var r=n("DzJC"),i=n.n(r),a=n("sEfC"),o=n.n(a),s=n("mRsi"),u=n.n(s),c=n("xk4V"),l=n.n(c),d=n("wEy/"),f=n.n(d),h=n("lYO9"),g=n("UWdM"),p=n("lSNA"),y=n.n(p),v=n("giYa"),m=n.n(v),b=n("lO2t");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(n,!0).forEach(function(t){y()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var w,j;function A(e,t,n){var r=k({style:"currency",currency:t||"EUR"},void 0!==n?{minimumFractionDigits:n,maximumFractionDigits:n}:{}),i="de-DE";return"USD"===r.currency&&(i="en-US"),e.toLocaleString(i,r)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Date(e);if(isNaN(n))return"";var r=Shopware.Application.getContainer("factory").locale.getLastKnownLocale();return t=k({},{day:"2-digit",month:"2-digit",year:"2-digit"},{},t),b.a.isEqual(j,t)||(j=t,w=new Intl.DateTimeFormat(r,j)),w.format(n)}function S(e){return m.a.hash(e)}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de-DE",n=["B","KB","MB","GB"],r=Number.parseInt(e,10),i=0;i<n.length;i+=1){var a=r/1024;if(a<.9)break;r=a}return r.toFixed(2).toLocaleString(t)+n[i]}var T={getScrollbarHeight:function(e){return e instanceof HTMLElement?e.offsetHeight-e.clientHeight:(Object(g.a)("DOM Utilities",'The provided element needs to be an instance of "HTMLElement".',e),0)},getScrollbarWidth:function(e){return e instanceof HTMLElement?e.offsetWidth-e.clientWidth:(Object(g.a)("DOM Utilities",'The provided element needs to be an instance of "HTMLElement".',e),0)},copyToClipboard:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},D=n("6acW"),F=n.n(D),C=n("u6S6"),M=n.n(C),R={capitalizeString:F.a,camelCase:M.a,isEmptyOrSpaces:function(e){return!e||e.length<=0||e.trim().length<=0}};function N(e,t,n){e.onerror=function(){e.abort(),n(new DOMException("Problem parsing file."))},e.onload=function(){t(e.result)}}function x(e){var t=e.split(".");return 1===t.length?{extension:"",fileName:e}:2!==t.length||t[0]?{extension:t.pop(),fileName:t.join(".")}:{extension:"",fileName:e}}var _={readFileAsArrayBuffer:function(e){var t=new FileReader;return new Promise(function(n,r){N(t,n,r),t.readAsArrayBuffer(e)})},readFileAsDataURL:function(e){var t=new FileReader;return new Promise(function(n,r){N(t,n,r),t.readAsDataURL(e)})},readFileAsText:function(e){var t=new FileReader;return new Promise(function(n,r){N(t,n,r),t.readAsText(e)})},getNameAndExtensionFromFile:function(e){return x(e.name)},getNameAndExtensionFromUrl:function(e){var t=e.href.split("/").pop(),n=t.indexOf("?");return n>0&&(t=t.substring(0,n)),x(t)}},L={afterSort:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"afterId";if(0===e.length)return e;e.sort(function(e,n){return e.data[t]===n.data[t]&&null===e.data[t]?0:null===n.data[t]?1:null===e.data[t]?-1:0});var n=e.shift(),r=[n],i=n.id;for(;e.length>0;){var a=!0;if(e.forEach(function(n,o){n.data[t]===i&&(r.push(n),i=n.id,e.splice(o,1),a=!1)}),a){var o=e.shift();if(r.push(o),!e.length)break;i=o.data[t]}}return r}};n.d(t,"object",function(){return B}),n.d(t,"debug",function(){return I}),n.d(t,"format",function(){return U}),n.d(t,"dom",function(){return q}),n.d(t,"string",function(){return H}),n.d(t,"types",function(){return W}),n.d(t,"fileReader",function(){return J}),n.d(t,"sort",function(){return z}),n.d(t,"array",function(){return V});var B={deepCopyObject:h.b,hasOwnProperty:h.f,getObjectDiff:h.e,getArrayChanges:h.d,cloneDeep:h.a,merge:h.g,get:h.c},I={warn:g.a},U={currency:A,date:E,fileSize:P,md5:S},q={getScrollbarHeight:T.getScrollbarHeight,getScrollbarWidth:T.getScrollbarWidth,copyToClipboard:T.copyToClipboard},H={capitalizeString:R.capitalizeString,camelCase:R.camelCase,md5:R.md5,isEmptyOrSpaces:R.isEmptyOrSpaces},W={isObject:b.a.isObject,isPlainObject:b.a.isPlainObject,isEmpty:b.a.isEmpty,isRegExp:b.a.isRegExp,isArray:b.a.isArray,isFunction:b.a.isFunction,isDate:b.a.isDate,isString:b.a.isString,isBoolean:b.a.isBoolean,isEqual:b.a.isEqual,isNumber:b.a.isNumber,isUndefined:b.b},J={readAsArrayBuffer:_.readFileAsArrayBuffer,readAsDataURL:_.readFileAsDataURL,readAsText:_.readFileAsText,getNameAndExtensionFromFile:_.getNameAndExtensionFromFile,getNameAndExtensionFromUrl:_.getNameAndExtensionFromUrl},z={afterSort:L.afterSort},V={flattenDeep:u.a,remove:f.a};t.default={createId:function(){return l()().replace(/-/g,"")},throttle:i.a,debounce:o.a,get:h.c,object:B,debug:I,format:U,dom:q,string:H,types:W,fileReader:J,sort:z,array:V}},"X+US":function(e,t,n){"use strict";n.r(t),t.default={registerStore:function(e,t){if(!e||!e.length)return;r.set(e,t)},getStore:function(e){return r.get(e)},getStoreRegistry:function(){return r}};var r=new Map},XA4d:function(e,t,n){"use strict";n.r(t);var r=n("qGJC"),i=n("Hdyx"),a=n.n(i);r.Component.register("frosh-adminer-view",{template:a.a,inject:["AdminerService"],created(){this.createdComponent()},data:()=>({apiAdminerUrl:!1}),methods:{createdComponent(){this.AdminerService.loginToAdminer().then(e=>{this.apiAdminerUrl=e.url})},openNewTab(){window.open(this.apiAdminerUrl)}}}),r.Module.register("frosh-adminer",{type:"plugin",name:"Adminer",description:"Adminer",color:"#9AA8B5",icon:"default-device-server",favicon:"icon-module-settings.png",routes:{list:{component:"frosh-adminer-view",path:"list"}},navigation:[{label:"Adminer",color:"#9AA8B5",icon:"default-device-server",path:"frosh.adminer.list",position:100}]});var o=n("SwLI");var s=class extends o.default{constructor(e,t,n="frosh_adminer"){super(e,t,n)}loginToAdminer(){const e=`${this.getApiBasePath()}/login`;return this.httpClient.get(e,{headers:this.getBasicHeaders()}).then(e=>o.default.handleResponse(e))}};r.Application.addServiceProvider("AdminerService",e=>{const t=r.Application.getContainer("init");return new s(t.httpClient,e.loginService)})},XYkp:function(e,t,n){const r=n("8UY5"),i=n("vQB4").default,a=n("N23T").default,o=n("I3+K").default,s=n("/4Xw").default,u=n("X+US").default,c=n("9NcV").default,l=n("rDlZ").default,d=n("iLPX").default,f=n("4ltZ").default,h=n("Sy+1").default,g=n("w44d").default,p=n("UUiw").default,y=n("5xgp").default,v=n("KzKh").default,m=n("gMIu").default,b=n("SwLI").default,O=n("VXgk").default,k=n("lFJ0").default,w=n("1iIE").default,j=n("D1bQ").default,A=n("5zS2").default,E=n("MvfK").default,S=new(0,n("uDJ7").default)(new r({strict:!0}));S.addFactory("component",()=>a).addFactory("template",()=>o).addFactory("module",()=>i).addFactory("entity",()=>s).addFactory("state",()=>u).addFactory("mixin",()=>c).addFactory("filter",()=>l).addFactory("directive",()=>d).addFactory("locale",()=>f).addFactory("shortcut",()=>h).addFactory("apiService",()=>g).addFactory("entityDefinition",()=>p).addFactory("workerNotification",()=>y),e.exports={Module:{register:i.registerModule,getModuleRegistry:i.getModuleRegistry,getModuleRoutes:i.getModuleRoutes,getModuleByEntityName:i.getModuleByEntityName},Component:{register:a.register,extend:a.extend,override:a.override,build:a.build,getTemplate:a.getComponentTemplate,getComponentRegistry:a.getComponentRegistry,getComponentHelper:a.getComponentHelper},Template:{register:o.registerComponentTemplate,extend:o.extendComponentTemplate,override:o.registerTemplateOverride,getRenderedTemplate:o.getRenderedTemplate,find:o.findCustomTemplate,findOverride:o.findCustomTemplate},Entity:{addDefinition:s.addEntityDefinition,getDefinition:s.getEntityDefinition,getDefinitionRegistry:s.getDefinitionRegistry,getRawEntityObject:s.getRawEntityObject,getPropertyBlacklist:s.getPropertyBlacklist,getRequiredProperties:s.getRequiredProperties,getAssociatedProperties:s.getAssociatedProperties,getTranslatableProperties:s.getTranslatableProperties},State:{registerStore:u.registerStore,getStore:u.getStore,getStoreRegistry:u.getStoreRegistry},Mixin:{register:c.register,getByName:c.getByName},Filter:{register:l.register,getByName:l.getByName},Directive:{register:d.registerDirective,getByName:d.getDirectiveByName},Locale:{register:f.register,extend:f.extend,getByName:f.getLocaleByName},Shortcut:{getShortcutRegistry:h.getShortcutRegistry,getPathByCombination:h.getPathByCombination,register:h.register},Utils:O,Application:S,FeatureConfig:v,ApiService:{register:g.register,getByName:g.getByName,getRegistry:g.getRegistry,getServices:g.getServices,has:g.has},EntityDefinition:{getScalarTypes:p.getScalarTypes,getJsonTypes:p.getJsonTypes,getDefinitionRegistry:p.getDefinitionRegistry,get:p.get,add:p.add,remove:p.remove,getTranslatedFields:p.getTranslatedFields,getAssociationFields:p.getAssociationFields,getRequiredFields:p.getRequiredFields},WorkerNotification:{register:y.register,getRegistry:y.getRegistry,override:y.override,remove:y.remove,initialize:y.initialize},Defaults:{systemLanguageId:"2fbb5fe2e29a4d70aa5854ce7ce3e20b",defaultLanguageIds:["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],versionId:"0fa91ce3e96a4bc2be4bd9ce752c3425"},Data:A,DataDeprecated:E,Classes:{ShopwareError:m,ApiService:b},Helper:{FlatTreeHelper:k,InfiniteScrollingHelper:w,MiddlewareHelper:j}}},gMIu:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return u});var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("VXgk"),u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.code,r=t.parameters,a=void 0===r?{}:r,o=t.status,u=void 0===o?"":o,c=t.detail,l=void 0===c?"":c;if(i()(this,e),"string"!=typeof n||""===n)throw new Error("[ShopwareError] can not identify error by code");this._id=s.default.createId(),this._code=n,this._parameters=a,this._status=u,this._detail=l}return o()(e,[{key:"id",get:function(){return this._id}},{key:"code",get:function(){return this._code},set:function(e){this._code=e}},{key:"parameters",get:function(){return this._parameters},set:function(e){this._parameters=e}},{key:"status",get:function(){return this._status},set:function(e){this._status=e}},{key:"detail",get:function(){return this._detail},set:function(e){this._trace=e}}]),e}()},iLPX:function(e,t,n){"use strict";n.r(t);var r=n("UWdM");t.default={registerDirective:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return Object(r.a)("DirectiveFactory","A directive always needs a name.",t),!1;if(i.has(e))return Object(r.a)("DirectiveFactory","A directive with the name ".concat(e," already exists."),t),!1;return i.set(e,t),!0},getDirectiveByName:function(e){return i.get(e)},getDirectiveRegistry:function(){return i}};var i=new Map},k3fw:function(e,t,n){"use strict";n.d(t,"c",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return d});var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=["uuid","int","text","password","float","string","blob","boolean","date"],u=["json_list","json_object"];function c(){return s}function l(){return u}var d=function(){function e(t){var n=t.entity,r=t.properties;i()(this,e),this.entity=n,this.properties=r}return o()(e,[{key:"getEntity",value:function(){return this.entity}},{key:"getPrimaryKeyFields",value:function(){return this.filterProperties(function(e){return!0===e.flags.primary_key})}},{key:"getAssociationFields",value:function(){return this.filterProperties(function(e){return"association"===e.type})}},{key:"getToManyAssociations",value:function(){return this.filterProperties(function(e){return"association"===e.type&&["one_to_many","many_to_many"].includes(e.relation)})}},{key:"getToOneAssociations",value:function(){return this.filterProperties(function(e){return"association"===e.type&&["one_to_one","many_to_one"].includes(e.relation)})}},{key:"getTranslatableFields",value:function(){var e=this;return this.filterProperties(function(t){return e.isTranslatableField(t)})}},{key:"getRequiredFields",value:function(){return this.filterProperties(function(e){return!0===e.flags.required})}},{key:"filterProperties",value:function(e){var t=this;if("function"!=typeof e)return{};var n={};return Object.keys(this.properties).forEach(function(r){!0===e(t.properties[r])&&(n[r]=t.properties[r])}),n}},{key:"getField",value:function(e){return this.properties[e]}},{key:"forEachField",value:function(e){var t=this;"function"==typeof e&&Object.keys(this.properties).forEach(function(n){e(t.properties[n],n,t.properties)})}},{key:"isScalarField",value:function(e){return s.includes(e.type)}},{key:"isJsonField",value:function(e){return u.includes(e.type)}},{key:"isToManyAssociation",value:function(e){return"association"===e.type&&["one_to_many","many_to_many"].includes(e.relation)}},{key:"isToOneAssociation",value:function(e){return"association"===e.type&&["many_to_one","one_to_one"].includes(e.relation)}},{key:"isTranslatableField",value:function(e){return"string"===e.type&&!0===e.flags.translatable}}]),e}()},lFJ0:function(e,t,n){"use strict";n.r(t);var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("UWdM"),u=n("lYO9"),c=function(){function e(){i()(this,e),this._registeredNodes=new Map,this._defaultPosition=1e3}return o()(e,[{key:"convertToTree",value:function(){return this._tree(void 0,this._registeredNodes)}},{key:"_tree",value:function(e,t){var n=this,r=[];return t.forEach(function(i){if(i.parent===e){var a=i.id||i.path;i.children=n._tree(a,t),r.push(i)}}),r}},{key:"add",value:function(e){var t=e.id||e.path;return t?(Object(u.f)(e,"link")&&!Object(u.f)(e,"target")&&(e.target="_self"),e.position||(e.position=this.defaultPosition),this._registeredNodes.has(t)?(Object(s.a)("FlatTree","Tree contains node with unique identifier ".concat(t," already."),"Please remove it first before adding a new one.",this._registeredNodes.get(t)),this):(this._registeredNodes.set(t,e),this)):(Object(s.a)("FlatTree",'The node needs an "id" or "path" property. Abort registration.',e),this)}},{key:"remove",value:function(e){return this._registeredNodes.has(e)?(this._registeredNodes.delete(e),this):this}},{key:"getRegisteredNodes",value:function(){return this._registeredNodes}},{key:"defaultPosition",get:function(){return this._defaultPosition},set:function(e){this._defaultPosition=e}}]),e}();t.default=c},lO2t:function(e,t,n){"use strict";n.d(t,"b",function(){return E});var r=n("GoyQ"),i=n.n(r),a=n("YO3V"),o=n.n(a),s=n("E+oP"),u=n.n(s),c=n("wAXd"),l=n.n(c),d=n("Z0cm"),f=n.n(d),h=n("lSCD"),g=n.n(h),p=n("YiAA"),y=n.n(p),v=n("4qC0"),m=n.n(v),b=n("Znm+"),O=n.n(b),k=n("Y+p1"),w=n.n(k),j=n("UB5X"),A=n.n(j);function E(e){return void 0===e}t.a={isObject:i.a,isPlainObject:o.a,isEmpty:u.a,isRegExp:l.a,isArray:f.a,isFunction:g.a,isDate:y.a,isString:m.a,isBoolean:O.a,isEqual:w.a,isNumber:A.a,isUndefined:E}},lYO9:function(e,t,n){"use strict";n.d(t,"g",function(){return g}),n.d(t,"a",function(){return p}),n.d(t,"c",function(){return y}),n.d(t,"f",function(){return v}),n.d(t,"b",function(){return m}),n.d(t,"e",function(){return b}),n.d(t,"d",function(){return O});var r=n("lSNA"),i=n.n(r),a=n("QkVN"),o=n.n(a),s=n("BkRI"),u=n.n(s),c=n("mwIZ"),l=n.n(c),d=n("lO2t");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}o.a,u.a,l.a;var g=o.a,p=u.a,y=l.a;function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return JSON.parse(JSON.stringify(e))}function b(e,t){return e===t?{}:d.a.isObject(e)&&d.a.isObject(t)?d.a.isDate(e)||d.a.isDate(t)?e.valueOf()===t.valueOf()?{}:t:Object.keys(t).reduce(function(n,r){if(!v(e,r))return h({},n,i()({},r,t[r]));if(d.a.isArray(t[r])){var a=O(e[r],t[r]);return Object.keys(a).length>0?h({},n,i()({},r,t[r])):n}if(d.a.isObject(t[r])){var o=b(e[r],t[r]);return!d.a.isObject(o)||Object.keys(o).length>0?h({},n,i()({},r,o)):n}return e[r]!==t[r]?h({},n,i()({},r,t[r])):n},{}):t}function O(e,t){if(e===t)return[];if(!d.a.isArray(e)||!d.a.isArray(t))return t;if(e.length<=0&&t.length<=0)return[];if(e.length!==t.length)return t;if(!d.a.isObject(t[0]))return t.filter(function(t){return!e.includes(t)});var n=[];return t.forEach(function(r,i){var a=b(e[i],t[i]);Object.keys(a).length>0&&n.push(t[i])}),n}},oKsz:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n("lSNA"),i=n.n(r),a=n("RIqP"),o=n.n(a),s=n("cDf5"),u=n.n(s),c=n("lwsE"),l=n.n(c),d=n("W8MJ"),f=n.n(d),h=n("lYO9"),g=n("lO2t"),p=n("VXgk"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";l()(this,e),this.store={},this.propertyName=r,this.searchProperty=i,this.isLoading=!1,!t||t.length<1||t.forEach(function(e){n.store[e[r]]=e})}return f()(e,[{key:"getById",value:function(e){return this.hasId(e)?this.store[e]:this.create(e)}},{key:"getByIdAsync",value:function(e){var t=this;return new Promise(function(n){n(t.getById(e))})}},{key:"getSearchValue",value:function(e){return e.hasOwnProperty("translated")&&e.translated.hasOwnProperty(this.searchProperty)?e.translated[this.searchProperty]:e[this.searchProperty]}},{key:"getList",value:function(e){var t=this;return new Promise(function(n){var r=Object.values(t.store);if(e.term){var i=e.term.toLowerCase();r=r.filter(function(e){var n=e[t.searchProperty];return!(!g.a.isObject(e[t.searchProperty])||!t.objectPropertiesContains(n,i))||(n=t.getSearchValue(e),!(!g.a.isObject(n)||!t.objectPropertiesContains(n,i))||(e.hasOwnProperty("translated")?t.objectPropertiesContains(e,i)>0||t.objectPropertiesContains(e.translated,i):t.objectPropertiesContains(e,i)>0))})}if(e.criteria){var a=e.criteria.getQuery();r=t.filterResults(r,a)}if(e.sortBy){var o="ASC"===e.sortDirection?1:-1,s=e.sortBy.split(".");r=r.sort(function(e,t){var n=e,r=t;return s.forEach(function(e){n=n[e],r=r[e]}),n.localeCompare(r)*o})}if(e.limit&&e.page){var u=e.limit*(e.page-1),c=u+e.limit;r=r.slice(u,c)}n({items:r,total:Object.keys(t.store).length,aggregations:[]})})}},{key:"objectPropertiesContains",value:function(e,t){return Object.keys(e).filter(function(n){return"object"!==u()(e[n])&&String(e[n]).toLowerCase().includes(t)}).length}},{key:"filterResults",value:function(e,t){var n=this;if("contains"===t.type)e=e.filter(function(e){return e[t.field].includes(t.value)});else if("equals"===t.type)e=e.filter(function(e){return e[t.field]===t.value});else if("multi"===t.type)if("AND"===t.operator)t.queries.forEach(function(t){e=n.filterResults(e,t)});else{var r=[];t.queries.forEach(function(t){r=o()(new Set([].concat(o()(r),o()(n.filterResults(e,t)))))}),e=r}return e}},{key:"hasId",value:function(e){return void 0!==this.store[e]}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.createId();return i()({},this.propertyName,e)}},{key:"add",value:function(e){return!!Object(h.f)(e,this.propertyName)&&(this.store[e[this.propertyName]]=e,!0)}},{key:"remove",value:function(e){return!(!Object(h.f)(e,this.propertyName)||this.hasId(e[this.propertyName]))&&(delete this.store[e[this.propertyName]],!0)}}],[{key:"duplicate",value:function(){return{}}}]),e}()},qGJC:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Module",function(){return i}),n.d(t,"Component",function(){return a}),n.d(t,"Template",function(){return o}),n.d(t,"Application",function(){return s}),n.d(t,"State",function(){return u}),n.d(t,"Mixin",function(){return c}),n.d(t,"Filter",function(){return l}),n.d(t,"Directive",function(){return d}),n.d(t,"Locale",function(){return f}),n.d(t,"Shortcut",function(){return h}),n.d(t,"Entity",function(){return g}),n.d(t,"ApiService",function(){return p}),n.d(t,"EntityDefinition",function(){return y}),n.d(t,"WorkerNotification",function(){return v}),n.d(t,"Defaults",function(){return m});var r=e.Shopware;try{r=window.Shopware}catch(e){}void 0===r&&(r=n("LrTp"));var i={register:r.Module.register,getModuleRegistry:r.Module.getModuleRegistry,getModuleRoutes:r.Module.getModuleRoutes,getModuleByEntityName:r.Module.getModuleByEntityName},a={register:r.Component.register,extend:r.Component.extend,override:r.Component.override,build:r.Component.build,getTemplate:r.Component.getTemplate,getComponentRegistry:r.Component.getComponentRegistry,getComponentHelper:r.Component.getComponentHelper},o={register:r.Template.register,extend:r.Template.extend,override:r.Template.override,getRenderedTemplate:r.Template.getRenderedTemplate,find:r.Template.find,findOverride:r.Template.findOverride},s=r.Application,u={registerStore:r.State.registerStore,getStore:r.State.getStore,getStoreRegistry:r.State.getStoreRegistry},c={register:r.Mixin.register,getByName:r.Mixin.getByName},l={register:r.Filter.register,getByName:r.Filter.getByName},d={register:r.Directive.register,getByName:r.Directive.getByName},f={register:r.Locale.register,getByName:r.Locale.getByName,extend:r.Locale.extend},h={register:r.Shortcut.register,getPathByCombination:r.Shortcut.getPathByCombination,getShortcutRegistry:r.Shortcut.getShortcutRegistry},g={addDefinition:r.Entity.addDefinition,getDefinition:r.Entity.getDefinition,getDefinitionRegistry:r.Entity.getDefinitionRegistry,getRawEntityObject:r.Entity.getRawEntityObject,getPropertyBlacklist:r.Entity.getPropertyBlacklist,getRequiredProperties:r.Entity.getRequiredProperties,getAssociatedProperties:r.Entity.getAssociatedProperties,getTranslatableProperties:r.Entity.getTranslatableProperties},p={register:r.ApiService.register,getByName:r.ApiService.getByName,getRegistry:r.ApiService.getRegistry,getServices:r.ApiService.getServices,has:r.ApiService.has},y={getScalarTypes:r.EntityDefinition.getScalarTypes,getJsonTypes:r.EntityDefinition.getJsonTypes,getDefinitionRegistry:r.EntityDefinition.getDefinitionRegistry,get:r.EntityDefinition.get,add:r.EntityDefinition.add,remove:r.EntityDefinition.remove,getTranslatedFields:r.EntityDefinition.getTranslatedFields,getAssociationFields:r.EntityDefinition.getAssociationFields,getRequiredFields:r.EntityDefinition.getRequiredFields},v={register:r.WorkerNotification.register,getRegistry:r.WorkerNotification.getRegistry,add:r.WorkerNotification.add,remove:r.WorkerNotification.remove,override:r.WorkerNotification.override,initialize:r.WorkerNotification.initialize},m={systemLanguageId:r.Defaults.systemLanguageId,defaultLanguageIds:r.Defaults.defaultLanguageIds,versionId:r.Defaults.versionId};t.default={Module:i,Component:a,Template:o,Application:s,State:u,Mixin:c,Entity:g,Filter:l,Directive:d,Locale:f,Shortcut:h,ApiService:p,EntityDefinition:y,Defaults:m,WorkerNotification:v}}.call(this,n("yLpj"))},rDlZ:function(e,t,n){"use strict";n.r(t);var r=n("UWdM");t.default={getRegistry:function(){return i},register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if(!e||!e.length)return Object(r.a)(o,"A filter always needs a name"),!1;if(i.has(e))return Object(r.a)(o,'The filter "'.concat(e,'" is already registered. Please select a unique name for your filter.')),!1;return i.set(e,t),!0},getByName:function(e){return i.get(e)}};var i=new Map,a=function(){},o="FilterFactory"},uDJ7:function(e,t,n){"use strict";n.r(t);var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=function(){function e(t){i()(this,e);var n=function(){};this.$container=t,this.view=null,this.$container.service("service",n),this.$container.service("init",n),this.$container.service("factory",n)}return o()(e,[{key:"getContainer",value:function(e){return-1!==this.$container.list().indexOf(e)?this.$container.container[e]:this.$container.container}},{key:"addFactory",value:function(e,t){return this.$container.factory("factory.".concat(e),t.bind(this)),this}},{key:"addFactoryMiddleware",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addMiddleware("factory",t)}},{key:"addFactoryDecorator",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addDecorator("factory",t)}},{key:"addInitializer",value:function(e,t){return this.$container.factory("init.".concat(e),t.bind(this)),this}},{key:"addServiceProvider",value:function(e,t){return this.$container.factory("service.".concat(e),t.bind(this)),this}},{key:"registerContext",value:function(e){return this.addInitializer("context",function(){return e})}},{key:"addInitializerMiddleware",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addMiddleware("init",t)}},{key:"addServiceProviderMiddleware",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addMiddleware("service",t)}},{key:"_addMiddleware",value:function(e,t){var n=t.length>1?"".concat(e,".").concat(t[0]):e,r=t.length>1?t[1]:t[0];return this.$container.middleware(n,r),this}},{key:"initializeFeatureFlags",value:function(){var e=this.getContainer("init").context.features;return Shopware.FeatureConfig.init(e),this}},{key:"addInitializerDecorator",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addDecorator("init",t)}},{key:"addServiceProviderDecorator",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._addDecorator("service",t)}},{key:"_addDecorator",value:function(e,t){var n=t.length>1?"".concat(e,".").concat(t[0]):e,r=t.length>1?t[1]:t[0];return this.$container.decorator(n,r),this}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.registerContext(e).initializeFeatureFlags().createApplicationRoot()}},{key:"getApplicationRoot",value:function(){return!!this.view.root&&this.view.root}},{key:"setViewAdapter",value:function(e){this.view=e}},{key:"createApplicationRoot",value:function(){var e=this,t=this.getContainer("init");return this.instantiateInitializers(t).then(function(){var n=t.router.getRouterInstance();return"testing"===t.contextService.environment?e:(e.view.init("#app",n,e.getContainer("service")),t.context.firstRunWizard&&!n.history.current.name.startsWith("sw.first.run.wizard.")&&n.push({name:"sw.first.run.wizard.index"}),e)}).catch(function(n){var r=t.router.getRouterInstance();e.view.init("#app",r,e.getContainer("service")),e.view.root.initError=n,r.push({name:"error"})})}},{key:"instantiateInitializers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"init",n=e.$list().map(function(e){return"".concat(t,".").concat(e)});this.$container.digest(n);var r=[];return Object.keys(e).forEach(function(t){var n=e[t];n&&"Promise"===n.constructor.name&&r.push(n)}),Promise.all(r)}}]),e}();t.default=s},uyGl:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),u=n.n(s),c=n("0Lse");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var d=function(){function e(t,n,r,i,a,s,u){o()(this,e),this.route=t,this.entityName=n,this.httpClient=r,this.hydrator=i,this.changesetGenerator=a,this.entityFactory=s,this.errorResolver=u}return u()(e,[{key:"searchIds",value:function(e,t){var n=this.buildHeaders(t),r="/search-ids".concat(this.route);return this.httpClient.post(r,e.parse(),{headers:n}).then(function(e){return e.data})}},{key:"search",value:function(e,t){var n=this,r=this.buildHeaders(t),i="/search".concat(this.route);return this.httpClient.post(i,e.parse(),{headers:r}).then(function(r){return n.hydrator.hydrateSearchResult(n.route,n.entityName,r,t,e)})}},{key:"get",value:function(e,t,n){return(n=n||new c.a).setIds([e]),this.search(n,t).then(function(t){return t.get(e)})}},{key:"save",value:function(e,t){var n=this,r=this.changesetGenerator.generate(e),i=r.changes,a=r.deletionQueue;return new Promise(function(r,o){return n.errorResolver.resetApiErrors().then(function(){return n.sendDeletions(a,t).then(function(){n.sendChanges(e,i,t).then(function(){r()}).catch(function(t){n.errorResolver.handleWriteError(t,e,i),o(t)})}).catch(function(e){n.errorResolver.handleDeleteError(e,a),o(e)})})})}},{key:"clone",value:function(e,t){return e?this.httpClient.post("/_action/clone/".concat(this.route,"/").concat(e),null,{headers:this.buildHeaders(t)}).then(function(e){return e.data}):Promise.reject(new Error("Missing required argument: id"))}},{key:"hasChanges",value:function(e){var t=this.changesetGenerator.generate(e),n=t.changes,r=t.deletionQueue;return null!==n||r.length>0}},{key:"sync",value:function(e,t){var n=this,r=[];return e.forEach(function(e){r.push(n.save(e,t))}),Promise.all(r)}},{key:"assign",value:function(e,t){var n=this.buildHeaders(t);return this.httpClient.post("".concat(this.route),{id:e},{headers:n})}},{key:"delete",value:function(e,t){var n=this,r=this.buildHeaders(t),i="".concat(this.route,"/").concat(e);return this.httpClient.delete(i,{headers:r}).catch(function(t){return n.errorResolver.handleDeleteError(t,n.entityName,e)})}},{key:"create",value:function(e,t){return this.entityFactory.create(this.entityName,t,e)}},{key:"createVersion",value:function(e,t,n,r){var a=this.buildHeaders(t),o={};n&&(o.versionId=n),r&&(o.versionName=r);var s="_action/version/".concat(this.entityName,"/").concat(e);return this.httpClient.post(s,o,{headers:a}).then(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},{versionId:e.data.versionId})}).catch(function(){})}},{key:"mergeVersion",value:function(e,t){var n=this.buildHeaders(t),r="_action/version/merge/".concat(this.entityName,"/").concat(e);return this.httpClient.post(r,{},{headers:n}).catch(function(){})}},{key:"deleteVersion",value:function(e,t,n){var r=this.buildHeaders(n),i="/_action/version/".concat(t,"/").concat(this.entityName,"/").concat(e);return this.httpClient.post(i,{},{headers:r}).catch(function(){})}},{key:"sendChanges",value:function(e,t,n){var r=this.buildHeaders(n);return e.isNew()?(t=t||{},Object.assign(t,{id:e.id}),this.httpClient.post("".concat(this.route),t,{headers:r})):null===t?new Promise(function(e){e()}):this.httpClient.patch("".concat(this.route,"/").concat(e.id),t,{headers:r})}},{key:"sendDeletions",value:function(e,t){var n=this,r=[],i=this.buildHeaders(t);return e.forEach(function(e){r.push(n.httpClient.delete("".concat(e.route,"/").concat(e.key),{headers:i}))}),Promise.all(r)}},{key:"buildHeaders",value:function(e){var t={Accept:"application/vnd.api+json",Authorization:"Bearer ".concat(e.authToken.access),"Content-Type":"application/json"};return e.languageId&&(t=Object.assign({"sw-language-id":e.languageId},t)),e.versionId&&(t=Object.assign({"sw-version-id":e.versionId},t)),t}},{key:"schema",get:function(){return Shopware.EntityDefinition.get(this.entityName)}}]),e}()},vQB4:function(e,t,n){"use strict";n.r(t);var r=n("UWdM"),i=n("lYO9"),a=n("lO2t"),o=n("D1bQ");t.default={getModuleRoutes:function(){var e=[];return s.forEach(function(t){t.routes.forEach(function(t){Object(i.f)(t,"flag")&&!Shopware.FeatureConfig.isActive(t.flag)||t.isChildren||(u.go(t),e.push(t))})}),e},registerModule:function(e,t){var n=t.type||"plugin",o=new Map;if(!e)return Object(r.a)("ModuleFactory",'Module has no unique identifier "id". Abort registration.',t),!1;if(s.has(e))return Object(r.a)("ModuleFactory",'A module with the identifier "'.concat(e,'" is registered already. Abort registration.'),s.get(e)),!1;var c=e.split("-");if(c.length<2)return Object(r.a)("ModuleFactory",'Module identifier does not match the necessary format "[namespace]-[name]":',e,"Abort registration."),!1;if(!Object(i.f)(t,"routes")&&!t.routeMiddleware)return Object(r.a)("ModuleFactory",'Module "'.concat(e,'" has no configured routes or a routeMiddleware.'),"The module will not be accessible in the administration UI.","Abort registration.",t),!1;Object(i.f)(t,"routes")&&Object.keys(t.routes).forEach(function(a){var s=t.routes[a],u=t.routePrefixName?t.routePrefixName:c.join(".");s.name="".concat(u,".").concat(a);var l=t.routePrefixPath?t.routePrefixPath:c.join("/");s.coreRoute||(s.path="/".concat(l,"/").concat(s.path)),s.type=n,(s=function(e,t,n){Object(i.f)(n,"flag")&&(e.flag=n.flag);e.component&&(e.components={default:e.component},delete e.component);var a={};return Object.keys(e.components).forEach(function(n){var i=e.components[n];i?a[n]=i:Object(r.a)("ModuleFactory",'The route definition of module "'.concat(t,'" is not valid. \n                    A route needs an assigned component name.'))}),e.components=a,e}(s,e,t))&&(Object(i.f)(s,"children")&&Object.keys(s.children).length&&(s=function e(t,n,r){t.children=Object.keys(t.children).map(function(a){var o=t.children[a];return o.path&&0===o.path.length?o.path="":o.path="".concat(t.path,"/").concat(o.path),o.name="".concat(n.join("."),".").concat(r,".").concat(a),o.isChildren=!0,Object(i.f)(o,"children")&&Object.keys(o.children).length&&(o=e(o,n,"".concat(r,".").concat(a))),o});return t}(s,c,a),o=function e(t,n){Object.keys(t.children).map(function(r){var a=t.children[r];return Object(i.f)(a,"children")&&Object.keys(a.children).length&&(n=e(a,n)),n.set(a.name,a),a});return n}(s,o)),s.alias&&s.alias.length>0&&!s.coreRoute&&(s.alias="/".concat(c.join("/"),"/").concat(s.alias)),s.isChildren=!1,s.routeKey=a,o.set(s.name,s))});if(t.routeMiddleware&&a.a.isFunction(t.routeMiddleware))u.use(t.routeMiddleware);else if(0===o.size)return Object(r.a)("ModuleFactory",'The module "'.concat(e,"\" was not registered cause it hasn't a valid route definition"),"Abort registration.",t.routes),!1;var l={routes:o,manifest:t,type:n};if(Object(i.f)(t,"navigation")&&t.navigation){if(!a.a.isArray(t.navigation))return Object(r.a)("ModuleFactory","The route definition has to be an array.",t.navigation),!1;t.navigation=t.navigation.filter(function(e){return e.id||e.path||e.parent||e.link?!(!e.label||!e.label.length)||(Object(r.a)("ModuleFactory",'The navigation entry needs a property called "label"'),!1):(Object(r.a)("ModuleFactory","The navigation entry does not contains the necessary properties","Abort registration of the navigation entry",e),!1)}),l.navigation=t.navigation}return s.set(e,l),l},getModuleRegistry:function(){return s.forEach(function(e,t){Object(i.f)(e.manifest,"flag")&&!Shopware.FeatureConfig.isActive(e.manifest.flag)&&s.delete(t)}),s},getModuleByEntityName:function(e){return Array.from(s.values()).find(function(t){return e===t.manifest.entity})},getModuleSnippets:function(){return Array.from(s.values()).reduce(function(e,t){var n=t.manifest;if(!Object(i.f)(n,"snippets"))return e;var r=Object.keys(n.snippets);return r.length?(r.forEach(function(t){Object(i.f)(e,t)||(e[t]={});var r=n.snippets[t];e[t]=Object(i.g)(e[t],r)}),e):e},{})}};var s=new Map,u=new o.default},w44d:function(e,t,n){"use strict";n.r(t);var r=n("J4zp"),i=n.n(r),a=n("UWdM");t.default={getRegistry:function(){return o},register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!e.length)return Object(a.a)(s,"A apiService always needs a name"),!1;if(u(e))return Object(a.a)(s,'The apiService "'.concat(e,'" is already registered. Please select a unique name for your apiService.')),!1;return o.set(e,t),!0},getByName:function(e){return o.get(e)},getServices:function(){return Array.from(o).reduce(function(e,t){var n=i()(t,2),r=n[0],a=n[1];return e[r]=a,e},{})},has:u};var o=new Map,s="ApiServiceFactory";function u(e){return o.has(e)}}},[["XA4d","runtime","vendors-node"]]]);