text: (this.webpackJsonp=this.webpackJsonp||[]).push([["custom-rule"],{"+pDl":function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("lYO9"),v=n("VXgk"),y=n("SwLI");function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var w=Object.freeze({types:Object.freeze({PRODUCT:"product",CREDIT:"credit",CUSTOM:"custom",PROMOTION:"promotion"}),priceTypes:Object.freeze({ABSOLUTE:"absolute",QUANTITY:"quantity"})}),O=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(k()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cart";return o()(this,r),(i=n.call(this,e,t,a)).name="cartSalesChannelService",i}return c()(r,[{key:"getLineItemTypes",value:function(){return w.types}},{key:"getLineItemPriceTypes",value:function(){return w.priceTypes}},{key:"mapLineItemTypeToPriceType",value:function(e){var t,n=this.getLineItemTypes(),r=this.getLineItemPriceTypes();return(t={},i()(t,n.PRODUCT,r.QUANTITY),i()(t,n.CUSTOM,r.QUANTITY),i()(t,n.CREDIT,r.ABSOLUTE),t)[e]}},{key:"createCart",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="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),i=this.getBasicHeaders(n);return this.httpClient.post(r,{},{additionalParams:t,headers:i})}},{key:"getCart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),a=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.get(i,{additionalParams:n,headers:a})}},{key:"cancelCart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),a=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.delete(i,{additionalParams:n,headers:a})}},{key:"removeLineItems",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart/line-items/delete"),o=b({},this.getBasicHeaders(i),{"sw-context-token":t});return this.httpClient.post(a,{keys:n},{additionalParams:r,headers:o})}},{key:"getRouteForItem",value:function(e,t,n){return n?"_proxy/sales-channel-api/".concat(t,"/v").concat(this.getApiVersion(),"/checkout/cart/product/").concat(e):"_proxy/sales-channel-api/".concat(t,"/v").concat(this.getApiVersion(),"/checkout/cart/line-item/").concat(e)}},{key:"getPayloadForItem",value:function(e,t,n){if(n)return{quantity:e.quantity};var r=Object(g.b)(e.priceDefinition);return r.taxRules=e.priceDefinition.taxRules,r.quantity=e.quantity,r.type=this.mapLineItemTypeToPriceType(e.type),{label:e.label,quantity:e.quantity,type:e.type,description:e.description,priceDefinition:r,stackable:!0,removable:!0,salesChannelId:t}}},{key:"saveLineItem",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n._isNew&&n.type===this.getLineItemTypes().PRODUCT,o=n.identifier||n.id||v.default.createId(),s=this.getRouteForItem(o,e,a),c=b({},this.getBasicHeaders(i),{"sw-context-token":t}),u=this.getPayloadForItem(n,e,a);return n._isNew?this.httpClient.post(s,u,{additionalParams:r,headers:c}):this.httpClient.patch(s,u,{additionalParams:r,headers:c})}},{key:"addPromotionCode",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart/code/").concat(n),o=b({},this.getBasicHeaders(i),{"sw-context-token":t});return this.httpClient.post(a,{},{additionalParams:r,headers:o})}},{key:"modifyShippingCosts",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/modify-shipping-costs",o=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.patch(a,{salesChannelId:e,shippingCosts:n},{additionalParams:i,headers:o})}},{key:"disableAutomaticPromotions",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="_proxy/disable-automatic-promotions",i=b({},this.getBasicHeaders(n),{"sw-context-token":e});return this.httpClient.patch(r,{},{additionalParams:t,headers:i})}},{key:"enableAutomaticPromotions",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="_proxy/enable-automatic-promotions",i=b({},this.getBasicHeaders(n),{"sw-context-token":e});return this.httpClient.patch(r,{},{additionalParams:t,headers:i})}}]),r}(y.default);t.default=O},"/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:c,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]=s(i,t)})),r}function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"===e.type?null:"string"===e.type?"":"number"===e.type||"integer"===e.type?null:"array"===e.type?[]:"object"===e.type&&e.entity?!0===t?o(a(e.entity),!1):{}:"object"===e.type?!0===t&&e.properties?o(e,!1):{}:"string"===e.type&&"date-time"===e.format?"":null}function c(){return["createdAt","updatedAt","uploadedAt","childCount","versionId","links","extensions","mimeType","fileExtension","metaData","fileSize","fileName","mediaType","mediaFolder"]}},"/ZAt":function(e,t,n){"use strict";n.r(t);var r=n("J4zp"),i=n.n(r);t.default=function(e,t){return(n=function(){var t=this;Object.entries(e).forEach((function(e){var n=i()(e,2),r=n[0],a=n[1];Object.defineProperty(t,r,{value:a,configurable:!0,enumerable:!0,writable:!0})}))}).prototype=t,new n;var n}},"0Lse":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("VXgk"),c=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.groupFields=[],this.totalCountMode=1}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.groupFields.length>0&&(e.groupFields=this.groupFields),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){return this.ids=e,this}},{key:"setTotalCountMode",value:function(e){return s.types.isNumber(e)||(this.totalCountMode=null),this.totalCountMode=e<0||e>2?null:e,this}},{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:"addGroupField",value:function(e){return this.groupFields.push(e),this}},{key:"addAggregation",value:function(e){return this.aggregations.push(e),this}},{key:"addAssociation",value:function(e){var t=e.split("."),n=this;return t.forEach((function(e){n=n.getAssociation(e)})),this}},{key:"getAssociation",value:function(t){var n=t.split("."),r=this;return n.forEach((function(t){r.hasAssociation(t)||r.associations.push({association:t,criteria:new e(null,null)}),r=r.getAssociationCriteria(t)})),r}},{key:"getAssociationCriteria",value:function(e){var t=null;return this.associations.forEach((function(n){n.association===e&&(t=n.criteria)})),t}},{key:"hasAssociation",value:function(e){var t=!1;return this.associations.forEach((function(n){n.association===e&&(t=!0)})),t}},{key:"resetSorting",value:function(){this.sortings=[]}}],[{key:"fromCriteria",value:function(e){return s.object.cloneDeep(e)}},{key:"avg",value:function(e,t){return{type:"avg",name:e,field:t}}},{key:"count",value:function(e,t){return{type:"count",name:e,field:t}}},{key:"max",value:function(e,t){return{type:"max",name:e,field:t}}},{key:"min",value:function(e,t){return{type:"min",name:e,field:t}}},{key:"stats",value:function(e,t){return{type:"stats",name:e,field:t}}},{key:"sum",value:function(e,t){return{type:"sum",name:e,field:t}}},{key:"terms",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:"terms",name:e,field:t,limit:n,sort:r,aggregation:i}}},{key:"filter",value:function(e,t,n){return{type:"terms",filter:t,aggregation:n}}},{key:"histogram",value:function(e,t,n,r,i){return{type:"histogram",name:e,field:t,interval:n,format:r,aggregation:i}}},{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){},"1dyo":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n("J4zp"),i=n.n(r);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Shopware.State.commit("context/setAppEnvironment","production"),Shopware.State.commit("context/setAppFallbackLocale","en-GB"),Object.entries(e).forEach((function(e){var t=i()(e,2),n=t[0],r=t[1];Shopware.State.commit("context/addAppValue",{key:n,value:r})})),Shopware.Context.app}},"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.StateDeprecated.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}()},"1xnT":function(e,t,n){"use strict";n.r(t),t.default=function(){var e=n("CjZT");return e.keys().reduce((function(t,n){var r=e(n).default;return t.push(r),t}),[])}},"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.b)("LocaleFactory","A locale always needs a name"),!1;if(e.split("-").length<2)return Object(a.b)("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.b)("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.b)("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.b)("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:c,getBrowserLanguages:u,getLastKnownLocale:function(){var e=c();null!==window.localStorage.getItem("sw-admin-locale")&&(e=window.localStorage.getItem("sw-admin-locale"));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("sw-admin-locale",e),e}};var s=new Map;function c(){var e=new Map;s.forEach((function(t,n){var r=n.split("-")[0];e.set(r.toLowerCase(),n)}));var t=null;return u().forEach((function(n){!t&&s.has(n)&&(t=n),!t&&e.has(n)&&(t=e.get(n))})),t||"en-GB"}function u(){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";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p}));var r=n("lSNA"),i=n.n(r),a=n("RIqP"),o=n.n(a),s=n("lwsE"),c=n.n(s),u=n("W8MJ"),l=n.n(u),h=n("lhgX"),f=n("VXgk");function d(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 p={UPLOAD_ADDED:"media-upload-add",UPLOAD_FINISHED:"media-upload-finish",UPLOAD_FAILED:"media-upload-fail"},g=function(){function e(t){c()(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 h.a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(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(p.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(p.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(p.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}()},"5o9L":function(e,t,n){"use strict";n.r(t),t.default={addBootPromise:function(){var e;return r.push(new Promise((function(t){e=t}))),e},getBootPromises:function(){return r}};var r=[]},"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 c(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(u.has(e))return!1;if(!d(t))return!1;return u.set(e,t),!0},remove:function(e){if(!e||!e.length)return!1;if(!u.has(e))return!1;return u.delete(e),!0},override:function(e,t){if(!u.has(e))return!1;if(!d(t))return!1;return u.set(e,t),!0},initialize:function(){if(h)return l;return h=!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?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(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,h=!1,!0}};var u=new Map,l=new a.default,h=!1;function f(){return u}function d(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 c(e){return""===e||void 0===e?null:e}var u=function(){function e(){i()(this,e)}return o()(e,[{key:"getPrimaryKeyData",value:function(e){var t=Shopware.EntityDefinition.get(e.getEntityName()).getPrimaryKeyFields(),n={};return Object.keys(t).forEach((function(t){n[t]=e[t]})),n}},{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,u){if(!e.readOnly&&!e.flags.write_protected){var l=c(o[u]),h=c(a[u]);if(r.isScalarField(e))l!==h&&(i[u]=l);else if(e.flags.extension&&(l=c(o.extensions[u]),h=c(a.extensions[u])),r.isJsonField(e)){if(!((s.a.isEmpty(h)?null:JSON.stringify(h))===(s.a.isEmpty(l)?null:JSON.stringify(l)))){if(Array.isArray(l)&&l.length<=0)return void(i[u]=[]);i[u]=l}}else if("association"===e.type)switch(e.relation){case"one_to_many":var f=n.handleOneToMany(e,l,h,t);f.length>0&&(i[u]=f);break;case"many_to_many":var d=n.handleManyToMany(l,h,t);d.length>0&&(i[u]=d);break;case"one_to_one":if(!l)return;var p=n.recursion(l,t);null!==p&&(p.id=l.id,i[u]=p)}else i[u]=l}})),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,r){var i=this,a=[],o=n.getIds();return t.forEach((function(e){if(!o.includes(e.id)){var t=i.recursion(e,[]);return null===t?t={id:e.id}:t.id=e.id,void a.push(t)}var n=i.recursion(e,r);null!==n&&(n.id=e.id,a.push(n))})),e.flags&&e.flags.cascade_delete?(o.forEach((function(e){t.has(e)||r.push({route:t.source,key:e})})),a):e.referenceField?(o.forEach((function(n){if(!t.has(n)){var r={id:n};r[e.referenceField]=null,a.push(r)}})),a):a}}]),e}(),l=n("0Lse"),h=n("lYO9"),f=function(){function e(t,n,r){i()(this,e),this.id=t,this._origin=Object(h.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}(),d=n("RIqP"),p=n.n(d),g=n("a1gu"),v=n.n(g),y=n("Nsbk"),m=n.n(y),b=n("7W2i"),k=n.n(b),w=n("oShl");function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var S=function(e){k()(r,e);var t,n=(t=r,function(){var e,n=m()(t);if(O()){var r=m()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v()(this,e)});function r(e,t,a){var o,s,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return i()(this,r),(s=n.call(this)).entity=t,s.source=e,s.context=a,s.criteria=c,s.aggregations=h,s.total=l,(o=s).push.apply(o,p()(u)),s.first=function(){return this.length<=0?null:this[0]},s.last=function(){return this.length<=0?null:this[this.length-1]},s.remove=function(e){var t=this.findIndex((function(t){return t.id===e}));return!(t<0)&&(this.splice(t,1),!0)},s.has=function(e){return this.some((function(t){return t.id===e}))},s.get=function(e){var t=this.find((function(t){return t.id===e}));return void 0!==t?t:null},s.getAt=function(e){var t=this[e];return void 0!==t?t:null},s.getIds=function(){return this.map((function(e){return e.id}))},s.add=function(e){this.push(e)},s.addAt=function(e,t){void 0!==t?this.splice(t,0,e):this.add(e)},s.moveItem=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;if(e<0||e>=this.length)return null;if(t===e)return this.getAt(e);var n=this.find((function(t,n){return n===e}));if(void 0===n)return null;var r=this.filter((function(t,n){return n!==e})),i=[].concat(p()(r.slice(0,t)),[n],p()(r.slice(t)));return this.splice.apply(this,[0,this.length].concat(p()(i))),n},s.filter=function(e,t){var n=Object.getPrototypeOf(this).filter.call(this,e,t);return new r(this.source,this.entity,this.context,this.criteria,n,this.total,this.aggregations)},s}return o()(r,null,[{key:"fromCollection",value:function(e){return new r(e.source,e.entity,e.context,l.a.fromCriteria(e.criteria),e,e.total,e.aggregations)}}]),r}(n.n(w)()(Array)),P=n("k3fw"),j=n("VXgk"),R=n("UWdM"),C=function(){function e(){i()(this,e)}return o()(e,[{key:"create",value:function(e,t,n){var r=this;t=t||j.default.createId();var i=Shopware.EntityDefinition.get(e);if(!i)return Object(R.b)("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),c=new l.a;return c.setLimit(10),c.setPage(1),new S(s,r,i,c)}}]),e}(),E=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 S(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;if(!t)return null;var o=t.id,c="".concat(e,"-").concat(o);if(this.cache[c])return this.cache[c];var u=Shopware.EntityDefinition.get(e);if(!u)return null;var l=t.attributes;l.id=o,Object.keys(t.relationships).forEach((function(e){var c=t.relationships[e];"extensions"===e&&(l[e]=a.hydrateExtensions(o,c,u,n,r,i));var h=u.properties[e];if(!h)return!0;if(u.isToManyAssociation(h))return l[e]=a.hydrateToMany(i,e,c,h.entity,r,n),!0;if(u.isToOneAssociation(h)&&s.a.isObject(c.data)){var f=a.hydrateToOne(i,e,c,n,r);f&&(l[e]=f)}return!0}));var h=new f(o,e,l);return this.cache[c]=h,h}},{key:"hydrateToOne",value:function(e,t,n,r,i){var a=this.getAssociationCriteria(e,t),o=this.getIncluded(n.data.type,n.data.id,r);return this.hydrateEntity(n.data.type,o,r,i,a)}},{key:"getAssociationCriteria",value:function(e,t){return e.hasAssociation(t)?e.getAssociation(t):new l.a}},{key:"hydrateToMany",value:function(e,t,n,r,i,a){var o=this,s=this.getAssociationCriteria(e,t),c=n.links.related.substr(n.links.related.indexOf(i.apiResourcePath)+i.apiResourcePath.length),u=new S(c,r,i,s);return null===n.data||n.data.forEach((function(e){var t=o.getIncluded(e.type,e.id,a),n=o.hydrateEntity(e.type,t,a,i,s);n&&u.add(n)})),u}},{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,c=this.getIncluded("extension",e,r),u=Object.assign({},c.attributes);return Object.keys(c.relationships).forEach((function(e){var t=c.relationships[e],l=n.properties[e];if(!l)return!0;if(n.isToManyAssociation(l))return u[e]=o.hydrateToMany(a,e,t,l.entity,i,r),!0;if(n.isToOneAssociation(l)&&s.a.isObject(t.data)){var h=o.hydrateToOne(a,e,t,r,i);h&&(u[e]=h)}return!0})),u}}]),e}(),A=n("uyGl");t.default={ChangesetGenerator:u,Criteria:l.a,Entity:f,EntityCollection:S,EntityDefinition:P.a,EntityFactory:C,EntityHydrator:E,Repository:A.a}},"6CVo":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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sync";return i()(this,r),(a=n.call(this,e,t,o)).name="syncService",a}return o()(r,[{key:"sync",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=t,i=this.getBasicHeaders(n);return this.httpClient.post("/_action/".concat(this.apiEndpoint),e,{params:r,headers:i}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},"7g5+":function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=Shopware.Classes.ApiService,b=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(y()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"snippet-set";return o()(this,r),(i=n.call(this,e,t,a)).name="snippetSetService",i}return c()(r,[{key:"getCustomList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.getBasicHeaders(),a={sortBy:"id",sortDirection:"ASC"};return r=v({},a,{},r),this.httpClient.post("/_action/".concat(this.getApiBasePath()),{page:e,limit:t,filters:n,sort:r},{headers:i}).then((function(e){return m.handleResponse(e)}))}},{key:"getBaseFiles",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/baseFile"),{params:{},headers:e}).then((function(e){return m.handleResponse(e)}))}},{key:"getAuthors",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/author"),{headers:e}).then((function(e){return m.handleResponse(e)}))}}]),r}(m);t.default=b},"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.b)("MixinFactory","A mixin always needs a name.",t),!1;if(i.has(e))return Object(r.b)("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},A0sK: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"product-export";return i()(this,r),(a=n.call(this,e,t,o)).name="productExportService",a}return o()(r,[{key:"validateProductExportTemplate",value:function(e){var t="/_action/".concat(this.getApiBasePath(),"/validate");return this.httpClient.post(t,e,{headers:this.getBasicHeaders()}).then((function(e){return d.default.handleResponse(e)}))}},{key:"previewProductExport",value:function(e){var t="/_action/".concat(this.getApiBasePath(),"/preview");return this.httpClient.post(t,e,{headers:this.getBasicHeaders()}).then((function(e){return d.default.handleResponse(e)}))}},{key:"generateKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/access-key/product-export",{params:n,headers:r}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},CJsm: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("iWIM"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("MFJK");function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(v()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"custom-field-set";return i()(this,r),(a=n.call(this,e,t,o)).name="customFieldSetService",a}return o()(r,[{key:"getList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.showDeprecationWarning("getList"),t){var n=g.a.equals("active",!0);if(e.criteria=e.criteria?g.a.multi("AND",e.criteria,n):n,e.associations&&e.associations.customFields){var i=e.associations.customFields;i.filter||(i.filter=[n.getQuery()])}}return c()(f()(r.prototype),"getList",this).call(this,e)}}]),r}(n("SwLI").default);t.default=y},CjZT:function(e,t,n){var r={"./cache.api.service.js":"juyG","./calculate-price.api.service.js":"jVYu","./cart-sales-channel.api.service.js":"+pDl","./cart-store-api.api.service.js":"pCCB","./check-out-sales-channel.api.service.js":"d7vQ","./checkout-store.api.service.js":"MLY4","./config.api.service.js":"Mt2o","./custom-field-set.service.js":"CJsm","./custom-field.service.js":"iPhF","./customer-address.api.service.js":"SZDz","./customer-group-registration.api.service.js":"KpoE","./document.api.service.js":"SnjH","./first-run-wizard.api.service.js":"lnsc","./import-export.api.service.js":"JUxB","./integration.api.service.js":"tGtW","./known-ips.api.service.js":"Lz4t","./language-plugin.api.service.js":"J5bW","./mail.api.service.js":"umIt","./media-folder.api.service.js":"RT+Y","./media.api.service.js":"SWCa","./message-queue.api.service.js":"m9g7","./number-range.api.service.js":"T+rS","./order-state-machine.api.service.js":"czq7","./order.api.service.js":"cNT7","./plugin.api.service.js":"NYI0","./product-export.api.service.js":"A0sK","./recommendations.api.service.js":"vVie","./sales-channel-context.api.service.js":"SSxj","./sales-channel.api.service.js":"OUny","./scheduled-task.api.service.js":"earh","./search.api.service.js":"JMVm","./seo-url-template.api.service.js":"OW7U","./seo-url.api.service.js":"iXTH","./snippet-set.api.service.js":"7g5+","./snippet.api.service.js":"tTBJ","./state-machine.api.service.js":"gNKo","./store-context.api.service.js":"a6Wd","./store.api.service.js":"ssgS","./sync.api.service.js":"6CVo","./system-config.api.service.js":"hFIz","./update.api.service.js":"fLuy","./user-recovery.api.service.js":"yoR4","./user-validation.api.service.js":"cPrm","./user.api.service.js":"uaRI"};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id="CjZT"},CkOj:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(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=c({},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=c({},t.associations,{},r.associationLinks),delete r.associationLinks),t.data=r}else t.data=null;e.meta&&Object.keys(e.meta).length&&(t.meta=h(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=c({},n,{},h(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=c({},n,{},r.mappedRelations,{},{associationLinks:r.associationLinks})}return n}function h(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}()},Eagv:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("wMS7"),c=n.n(s),u=["beforeSanitizeElements","uponSanitizeElement","afterSanitizeElements","beforeSanitizeAttributes","uponSanitizeAttribute","afterSanitizeAttributes","beforeSanitizeShadowDOM","uponSanitizeShadowNode","afterSanitizeShadowDOM"],l=function(){function e(){i()(this,e)}return o()(e,null,[{key:"setConfig",value:function(e){return c.a.setConfig(e)}},{key:"clearConfig",value:function(){return c.a.clearConfig()}},{key:"addMiddleware",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return u.includes(e)?(c.a.addHook(e,t),!0):(Shopware.Utils.debug.warn("Sanitizer",'No middleware found for name "'.concat(e,'", \n                the following are available: ').concat(u.join(", "))),!1)}},{key:"removeMiddleware",value:function(e){return u.includes(e)?(c.a.removeHooks(e),!0):(Shopware.Utils.debug.warn("Sanitizer",'No middleware found for name "'.concat(e,'", \n                the following are available: ').concat(u.join(", "))),!1)}},{key:"sanitize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c.a.sanitize(e,t)}}]),e}()},"I3+K":function(e,t,n){"use strict";n.r(t);var r=n("RIqP"),i=n.n(r),a=n("lSNA"),o=n.n(a),s=n("uorI"),c=n.n(s);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}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default={registerComponentTemplate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=p.get(e)||{},r=n.overrides?n.overrides:[];return p.set(e,{name:e,raw:t,extend:null,overrides:r}),!0},extendComponentTemplate:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=p.get(e)||{},i=r.overrides?r.overrides:[];n||(n="");return p.set(e,{name:e,raw:n,extend:t,overrides:i}),!0},registerTemplateOverride:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=p.get(e)||{name:e,raw:null,extend:null,overrides:[]};return r.overrides.push({index:n,raw:t}),p.set(e,r),!0},getRenderedTemplate:function(e){var t=g.get(e);if(!t)return null;return t.html},resolveTemplates:function(){return Array.from(p.values()).forEach((function(e){var t=function e(t){if(!t)return null;if(t.extend){var n=e(p.get(t.extend));return n?l({},t,{template:m(t.name,t.raw),extend:n}):null}return l({},t,{template:m(t.name,t.raw)})}(e);if(t){var n=function e(t,n){if(!n.extend)return t;var r=Array.from(e(n.extend.template.tokens,n.extend)),a=function(e,t){return e.reduce((function(e,n){return n.token&&!function e(t,n){return n.find((function(n){return n.token&&n.token.block===t||n.token&&e(t,n.token.output)}))}(n.token.block,t)?[].concat(i()(e),i()(n.token.output)):[].concat(i()(e),[n])}),[])}(Array.from(t),r);return t=r.map((function(e){return function e(t,n,r){if("logic"!==t.type)return t;var i=y(t.token.block,n);if(i)return"logic"!==i.type||(i.token.output=v(t,i.token.output)),i;return t.token.output=t.token.output.map((function(t){return e(t,n,r)})),t}(e,a,n.name)}))}((t=l({},t,{html:""})).template.tokens,t);t.template.tokens=n,g.set(t.name,t),(t=function(e){var t=g.get(e);if(!t.overrides.length){var n=t.template.render({}),r=l({},t,{html:n});return g.set(r.name,r),r}var a=g.get(t.name);t.overrides.forEach((function(e,t){m("".concat(a.name,"-").concat(t),e.raw).tokens.forEach((function(e){"logic"===e.type&&(a.template.tokens=function e(t,n){if(!t)return[];return t.reduce((function(t,r){if("logic"!==r.type||!r.token||!r.token.block)return[].concat(i()(t),[r]);var a=y(r.token.block,n);if(a)return"logic"===a.type&&(a.token.output=v(r,a.token.output)),[].concat(i()(t),[a]);var o=e(r.token.output,n);return r.token.output=o,[].concat(i()(t),[r])}),[])}(a.template.tokens,[e]))}))})),g.set(a.name,a);var o=g.get(t.name),s=o.template.render({});return o=l({},o,{html:s}),g.set(o.name,o),o}(t.name)).html=t.html.replace(d,""),g.set(t.name,t)}else g.delete(e.name)})),g},clearTwigCache:function(){c.a.clearRegistry()},getTwigCache:function(){return c.a.getRegistry()},disableTwigCache:function(){c.a.cache(!1)},getTemplateRegistry:function(){return p},getNormalizedTemplateRegistry:function(){return g},getTemplateOverrides:function(e){if(!p.has(e))return[];return p.get(e).overrides||[]}};var h=null;c.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={}},h=e.Templates,e.cache=!1}));var f=c.a.placeholders.parent.replace(/\|/g,"\\|"),d=new RegExp(f,"gm"),p=new Map,g=new Map;function v(e,t){return t.reduce((function(t,n){return"logic"===n.type&&"parent"===n.token.type?[].concat(i()(t),i()(e.token.output)):(n.token&&n.token.output&&(n.token.output=(r=n.token.output,a=e.token.output,r.reduce((function(e,t){return"logic"===t.type&&"parent"===t.token.type?[].concat(i()(e),i()(a)):[].concat(i()(e),[t])}),[]))),[].concat(i()(t),[n]));var r,a}),[])}function y(e,t){return t.find((function(t){return t.token&&t.token.block===e}))}function m(e,t){return h.parsers.twig({id:"".concat(e,"-baseTemplate"),data:t,path:!1,options:{}})}},J5bW: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"language-plugins";return i()(this,r),(a=n.call(this,e,t,o)).name="languagePluginService",a}return o()(r,[{key:"getPlugins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/store/".concat(this.apiEndpoint),{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}}]),r}(p);t.default=g},JMVm: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_search";return i()(this,r),(a=n.call(this,e,t,o)).name="searchService",a}return o()(r,[{key:"search",value:function(e){var t=e.term,n=e.page,r=void 0===n?1:n,i=e.limit,a=void 0===i?5:i,o=e.additionalParams,s=void 0===o?{}:o,c=e.additionalHeaders,u=void 0===c?{}:c,l=this.getBasicHeaders(u),h=Object.assign({page:r,limit:a,term:t},s);return this.httpClient.get(this.getApiBasePath(),{params:h,headers:l}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},JUxB: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"import-export";return i()(this,r),(a=n.call(this,e,t,o)).name="importExportService",a}return o()(r,[{key:"getFeatures",value:function(){var e="/_action/".concat(this.getApiBasePath(),"/features");return this.httpClient.get(e,{headers:this.getBasicHeaders()}).then((function(e){return p.handleResponse(e)}))}},{key:"initiate",value:function(e,t,n){var r="/_action/".concat(this.getApiBasePath(),"/initiate"),i=new FormData;return n&&i.append("file",n),i.append("profileId",e),i.append("expireDate",t),this.httpClient.post(r,i,{headers:this.getBasicHeaders()}).then((function(e){return p.handleResponse(e)}))}},{key:"process",value:function(e,t){var n="/_action/".concat(this.getApiBasePath(),"/process");return this.httpClient.post(n,{logId:e,offset:t},{headers:this.getBasicHeaders()}).then((function(e){return p.handleResponse(e)}))}},{key:"cancel",value:function(e){var t="/_action/".concat(this.getApiBasePath(),"/cancel");return this.httpClient.post(t,{logId:e},{headers:this.getBasicHeaders()}).then((function(e){return p.handleResponse(e)}))}},{key:"getDownloadUrl",value:function(e,t){var n="".concat(Shopware.Context.api.apiPath,"/v").concat(this.getApiVersion());return"/".concat(n,"/_action/").concat(this.getApiBasePath(),"/file/download?fileId=").concat(e,"&accessToken=").concat(t)}}]),r}(p);t.default=g},KMPG:function(e,t,n){"use strict";n.r(t);var r=n("qGJC"),i=n("civk"),a=n.n(i);r.Component.extend("swag-lunar-eclipse","sw-condition-base",{template:a.a,computed:{selectValues(){return[{label:this.$tc("global.sw-condition.condition.yes"),value:!0},{label:this.$tc("global.sw-condition.condition.no"),value:!1}]},isLunarEclipse:{get(){return this.ensureValueExist(),null==this.condition.value.isLunarEclipse&&(this.condition.value.isLunarEclipse=!1),this.condition.value.isLunarEclipse},set(e){this.ensureValueExist(),this.condition.value={...this.condition.value,isLunarEclipse:e}}}}}),r.Application.addServiceProviderDecorator("ruleConditionDataProviderService",e=>(e.addCondition("lunar_eclipse",{component:"swag-lunar-eclipse",label:"Is lunar eclipse today",scopes:["global"]}),e))},KpoE: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"customer-group-registration";return i()(this,r),(a=n.call(this,e,t,o)).name="customerGroupRegistrationService",a}return o()(r,[{key:"accept",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/".concat(this.getApiBasePath(),"/accept/").concat(e);return this.httpClient.post(r,{},{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return d.default.handleResponse(e)}))}},{key:"decline",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/".concat(this.getApiBasePath(),"/decline/").concat(e);return this.httpClient.post(r,{},{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},KzKh:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var r=n("J4zp"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("lSNA"),l=n.n(u),h=function(){function e(){o()(this,e)}return c()(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()(h,"flags",{})},Lz4t: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"known-ips";return i()(this,r),(a=n.call(this,e,t,o)).name="knownIpsService",a}return o()(r,[{key:"getKnownIps",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_admin/known-ips",{headers:e}).then((function(e){return e.data.ips}))}}]),r}(n("SwLI").default);t.default=p},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];var i={type:"multi",operator:u(e),queries:s(n)};return l(i)},contains:function(e,t){return l({type:"contains",field:e,value:t})},range:function(e,t){return l({type:"range",parameters:c(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];var i={type:"not",operator:u(e),queries:s(n)};return l(i)},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 c(e){return Object.keys(e).reduce((function(t,n){return t[u(n,"lt",a)]=e[n],t}),{})}function u(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}}}},MLY4:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(y()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"checkout";return o()(this,r),(i=n.call(this,e,t,a)).name="checkoutStoreService",i}return c()(r,[{key:"checkout",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/order"),a=v({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.post(i,{},{additionalParams:n,headers:a})}}]),r}(n("SwLI").default);t.default=m},Mt2o: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"config";return i()(this,r),(a=n.call(this,e,t,o)).name="configService",a}return o()(r,[{key:"getConfig",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t,i=this.getBasicHeaders(n);return new Promise((function(t){e.httpClient.get("/_info/config",{params:r,headers:i}).then((function(e){t(d.default.handleResponse(e))}))}))}}]),r}(d.default);t.default=g},MvfK:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("RIqP"),o=n.n(a),s=n("cDf5"),c=n.n(s),u=n("lwsE"),l=n.n(u),h=n("W8MJ"),f=n.n(h),d=n("lYO9"),p=n("lO2t"),g=n("VXgk"),v=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!(!p.a.isObject(e[t.searchProperty])||!t.objectPropertiesContains(n,i))||(n=t.getSearchValue(e),!(!p.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 c=e.limit*(e.page-1),u=c+e.limit;r=r.slice(c,u)}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"!==c()(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]:g.default.createId();return i()({},this.propertyName,e)}},{key:"add",value:function(e){return!!Object(d.f)(e,this.propertyName)&&(this.store[e[this.propertyName]]=e,!0)}},{key:"remove",value:function(e){return!(!Object(d.f)(e,this.propertyName)||this.hasId(e[this.propertyName]))&&(delete this.store[e[this.propertyName]],!0)}}],[{key:"duplicate",value:function(){return{}}}]),e}(),y=n("a1gu"),m=n.n(y),b=n("Nsbk"),k=n.n(b),w=n("7W2i"),O=n.n(w),S=n("OARZ");function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var j=function(e){O()(r,e);var t,n=(t=r,function(){var e,n=k()(t);if(P()){var r=k()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return m()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return l()(this,r),i=n.call(this,"language",e,t),a&&a.length||i.setCurrentId(i.systemLanguageId),i}return f()(r,[{key:"setCurrentId",value:function(e){Shopware.State.commit("context/setApiLanguageId",e)}},{key:"getCurrentId",value:function(){return this.currentLanguageId}},{key:"getCurrentLanguage",value:function(){return this.store[this.currentLanguageId]}},{key:"getLanguageStore",value:function(){return this}},{key:"init",value:function(){return this.getByIdAsync(this.getCurrentId())}},{key:"systemLanguageId",get:function(){return Shopware.Context.api.systemLanguageId},set:function(e){Shopware.State.commit("context/setApiSystemLanguageId",e)}},{key:"currentLanguageId",get:function(){return Shopware.Context.api.languageId},set:function(e){Shopware.State.commit("context/setApiLanguageId",e)}}]),r}(S.a),R=n("5Ylc"),C=function(){function e(){l()(this,e),this.EntityDefinition=Shopware.EntityDefinition,this.ShopwareError=Shopware.Classes.ShopwareError,this.merge=Shopware.Utils.object.merge}return f()(e,[{key:"resetApiErrors",value:function(){return Shopware.State.dispatch("error/resetApiErrors")}},{key:"handleWriteErrors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errors,n=arguments.length>1?arguments[1]:void 0;if(!t)throw new Error("[error-resolver] handleWriteError was called without errors");var r=this.reduceErrorsByWriteIndex(t);this.handleErrors(r,n),this.addSystemErrors(r.system)}},{key:"handleDeleteError",value:function(e){var t=this;e.forEach((function(e){var n=e.error,r=e.entityName,i=e.id,a=new t.ShopwareError(n);Shopware.State.dispatch("error/addSystemError",{error:a}),Shopware.State.dispatch("error/addApiError",{expression:"".concat(r,".").concat(i),error:a})}))}},{key:"reduceErrorsByWriteIndex",value:function(e){var t=this,n={system:[]};return e.forEach((function(e){if(e.source&&e.source.pointer){var r=e.source.pointer.split("/");""===r[0]&&r.shift();var i={},a=r.length-1;r.reduce((function(n,i,o){return"translations"===i||"translations"===r[o-1]?n:(n[i]=o===a?new t.ShopwareError(e):{},n[i])}),i),n=t.merge(n,i)}else n.system.push(new t.ShopwareError(e))})),n}},{key:"addSystemErrors",value:function(e){e.forEach((function(e){Shopware.State.dispatch("error/addSystemError",e)}))}},{key:"handleErrors",value:function(e,t){var n=this;t.forEach((function(t,r){var i=t.entity,a=t.changes,o=e[r];if(o){var s=n.EntityDefinition.get(i.getEntityName());Object.keys(o).forEach((function(e){n.resolveError(e,o[e],s,i,a)}))}}))}},{key:"resolveError",value:function(e,t,n,r,i){var a=n.getField(e);if(a)if(n.isToManyAssociation(a)){var o=this.buildAssociationChangeset(r,i,t,e);this.handleErrors(t,o)}else n.isToOneAssociation(a)?this.resolveOneToOneFieldError("".concat(r.getEntityName(),".").concat(r.id,".").concat(e),t):n.isJsonField(a)?this.resolveJsonFieldError("".concat(r.getEntityName(),".").concat(r.id,".").concat(e),t):Shopware.State.dispatch("error/addApiError",{expression:this.getErrorPath(r,e),error:new this.ShopwareError(t)});else this.errorStore.addSystemError(t)}},{key:"buildAssociationChangeset",value:function(e,t,n,r){return t[r].map((function(t){return{entity:e[r].find((function(e){return e.id===t.id})),changes:t}}))}},{key:"resolveJsonFieldError",value:function(e,t){var n=this;Object.keys(t).forEach((function(r){var i="".concat(e,".").concat(r);t[r]instanceof n.ShopwareError?Shopware.State.dispatch("error/addApiError",{expression:i,error:t[r]}):n.resolveJsonFieldError(i,t[r])}))}},{key:"resolveOneToOneFieldError",value:function(e,t){var n=this;Object.keys(t).forEach((function(r){var i="".concat(e,".").concat(r);t[r]instanceof n.ShopwareError&&Shopware.State.dispatch("error/addApiError",{expression:i,error:t[r]})}))}},{key:"getErrorPath",value:function(e,t){return"".concat(e.getEntityName(),".").concat(e.id,".").concat(t)}}]),e}();function E(e,t,n){var r=e.split("."),i=r.pop();return{store:r.reduce((function(e,t){return e.hasOwnProperty(t)||n(e,t,{}),e[t]}),t),field:i}}var A={addApiError:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.defineProperty;if("function"!=typeof r)throw new Error("[ErrorStore] createApiError: setReactive is not a function");var i=E(e,n.api,r),a=i.store,o=i.field;r(a,o,t)},removeApiError:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.split("."),a=i.pop(),o=i.reduce((function(e,t){return e&&e[t]?e[t]:null}),n.api);null!==o&&("function"==typeof r?r(o,a):delete o.field,i.length<=0||g.types.isEmpty(o)&&e(i.join("."),n,r))},resetApiErrors:function(e){e.api={}},addSystemError:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.defineProperty;if("function"!=typeof r)throw new Error("[ErrorStore] createApiError: setReactive is not a function");r(n.system,t,e)},removeSystemError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;"function"==typeof n?n(t.system,e):delete t.system[e]}},D=n("iWIM"),x=n.n(D);function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _=function(e){O()(r,e);var t,n=(t=r,function(){var e,n=k()(t);if(I()){var r=k()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return m()(this,e)});function r(e,t,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return l()(this,r),(a=n.call(this,e,t,i)).parentEntity=o,a.associationKey=s,a.total=null,a}return f()(r,[{key:"getList",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return x()(k()(r.prototype),"getList",this).call(this,e,!1,i).then((function(e){return!0===n&&e.items&&e.items.length&&t.populateParentEntity(e.items),e.total&&(t.total=e.total),e}))}},{key:"populateParentEntity",value:function(e){var t=this.parentEntity.draft[this.associationKey];return t&&Shopware.Utils.types.isArray(t)&&(t.splice(0,t.length),t.push.apply(t,o()(e))),t}},{key:"getTotal",value:function(){return this.total}},{key:"getDeletionPayload",value:function(){var e=this,t=Shopware.Utils.string,n=[];return Object.keys(this.store).forEach((function(r){var a;e.store[r].isDeleted&&n.push((a={},i()(a,"".concat(t.camelCase(e.getEntityName()),"Id"),r),i()(a,"".concat(t.camelCase(e.parentEntity.getEntityName()),"Id"),e.parentEntity.id),a))})),n.length<1?[]:[{action:"delete",entity:"".concat(this.parentEntity.getEntityName(),"_").concat(this.getEntityName()),payload:n}]}},{key:"add",value:function(e){if(!Shopware.Utils.object.hasOwnProperty(e,"id"))return!1;var t=this.create(e.id);return t.setLocalData(Shopware.Utils.object.deepCopyObject(e)),t.isLocal=!0,!0}}]),r}(S.a);function B(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 L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Shopware.Utils.createId(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;l()(this,e),this.deepCopyObject=Shopware.Utils.object.deepCopyObject,this.id=r,this._entityName=t,this.apiService=n,this.store=i,this.isLoading=!1,this.isLocal=!0,this.isDeleted=!1,this.errors=[],this.associations={},this.original=Shopware.Entity.getRawEntityObject(this.entitySchema),this.original.id=r,this.draft=this.deepCopyObject(this.original),this.currentLanguageId=Shopware.StateDeprecated.getStore("language").getCurrentId(),this.createAssociatedStores();var a=this;return new Proxy(this.exposedData,{get:function(e,t){return t in e?e[t]:t in a?a[t]:null},set:function(e,t,n){return"draft"===t?(Object.assign(a.draft,n),Object.assign(e,a.exposedData),!0):"original"===t?(Object.assign(a.original,n),!0):(t in e&&(e[t]=n),t in a.draft&&(a.draft[t]=n),t in a&&(a[t]=n),!0)},deleteProperty:function(e,t){return delete e[t],t in a.draft&&delete a.draft[t],!0}})}return f()(e,[{key:"setData",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=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";i&&i.length>0&&(this.currentLanguageId=i);var a=this.associatedEntityPropNames;!0===n&&this.populateAssociatedStores(e),!0===t&&Object.keys(e).forEach((function(t){a.includes(t)&&delete e[t]}));var o=e;if(!0===r){var s=this.getChanges();o=Object.assign({},e,s)}this.draft=o,this.original=this.deepCopyObject(e),this.isLocal=!1}},{key:"setLocalData",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=this.associatedEntityPropNames;!0===t&&Object.keys(e).forEach((function(t){r.includes(t)&&delete e[t]})),this.draft=e,!0!==n&&(this.original=e)}},{key:"discardChanges",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.draft=this.deepCopyObject(this.original),e&&this.discardAssociationChanges()}},{key:"applyChanges",value:function(){this.original=this.deepCopyObject(this.draft)}},{key:"save",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.getChanges(),r={},i=[];return!0===t&&(r=this.getChangedAssociations(),Object.assign(n,r),i=this.getDeletedAssociationsQueue()),this.isLocal?this.sendCreateRequest(n,r):(this.isLoading=!0,Promise.all(i).then((function(){return Object.keys(n).length?e.sendUpdateRequest(n,r):(e.isLoading=!1,Promise.resolve(e.exposedData))})).catch((function(t){return e.isLoading=!1,Promise.reject(e.handleException(t))})))}},{key:"sendCreateRequest",value:function(e,t){var n=this,r=Shopware.Classes.ApiService;e.id=this.id,this.isLoading=!0;var i=Shopware.DataDeprecated.EntityStore.getLanguageHeader(this.currentLanguageId);return this.versionId&&(i=Object.assign(i,r.getVersionHeader(this.versionId))),this.apiService.create(e,{_response:!0},i).then((function(e){return n.isLoading=!1,e.data&&n.setData(e.data),n.refreshAssociations(t),Promise.resolve(n.exposedData)})).catch((function(e){return n.isLoading=!1,Promise.reject(n.handleException(e))}))}},{key:"sendUpdateRequest",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Shopware.Classes.ApiService;this.isLoading=!0;var i=Shopware.DataDeprecated.EntityStore.getLanguageHeader(this.currentLanguageId);return this.versionId&&(i=Object.assign(i,r.getVersionHeader(this.versionId))),this.apiService.updateById(this.id,e,{_response:!0},i).then((function(e){return t.isLoading=!1,e.data&&t.setData(e.data),t.refreshAssociations(n),Promise.resolve(t.exposedData)})).catch((function(e){return t.isLoading=!1,Promise.reject(t.handleException(e))}))}},{key:"refreshAssociations",value:function(e){var t=this;Object.keys(e).forEach((function(n){for(var r=t.associations[n],i=e[n].reduce((function(e,t){return[].concat(o()(e),[t.id])}),[]),a=Math.ceil(i.length/50),s=Shopware.DataDeprecated.CriteriaFactory.equalsAny("id",i),c=1;c<=a;c+=1)r.getList({page:c,limit:50,criteria:s,versionId:t.versionId},!1)}))}},{key:"delete",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isDeleted=!0,!0!==t)return Promise.resolve();if(this.isLocal)return this.remove(),Promise.resolve();var n={};return this.versionId&&(n=Shopware.Classes.ApiService.getVersionHeader(this.versionId)),this.apiService.delete(this.id,{},n).then((function(){e.remove()})).catch((function(t){return 404===t.response.status?(e.remove(),Promise.resolve()):Promise.reject(e.handleException(t))}))}},{key:"remove",value:function(){return null!==this.store&&this.store.remove(this)}},{key:"validate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.draft,t=Shopware.Service("validationService").required;return this.requiredProperties.every((function(n){return t(e[n])}))}},{key:"handleException",value:function(e){var t=this;return e.response.data&&e.response.data.errors&&e.response.data.errors.forEach((function(e){t.setErrorData(e)})),e}},{key:"setErrorData",value:function(e){e.id&&this.errors.map((function(e){return e.id})).includes(e.id)||this.errors.push(e)}},{key:"createAssociatedStores",value:function(){var t=this,n=this.associatedEntityPropDefinitions,r=Shopware.Application.getContainer("init");Object.keys(n).forEach((function(i){var a=n[i],o="".concat(t.kebabEntityName,"/").concat(t.id,"/").concat(i),s=new Shopware.Classes.ApiService(r.httpClient,Shopware.Service("loginService"),o);t.associations[i]=new Shopware.DataDeprecated.AssociationStore(a.entity,s,e,t,i),t.draft[i]&&t.draft[i].length>0&&t.populateAssociatedStore(i,t.draft[i])}))}},{key:"populateAssociatedStores",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.draft,n=this.associatedEntityPropNames;n.forEach((function(n){t[n]&&t[n].length>0&&e.populateAssociatedStore(n,t[n])}))}},{key:"populateAssociatedStore",value:function(e,t){var n=this.associations[e];return t.forEach((function(e,r){var i=n.create(e.id);i.setData(e,!1,!0,!1),t[r]=i})),n}},{key:"getAssociation",value:function(e){return this.associations[e]}},{key:"getDeletedAssociationsQueue",value:function(){var e=this,t=[];return Object.keys(this.associations).forEach((function(n){var r=e.associations[n].getDeletionQueue();r.length>0&&(t=[].concat(o()(t),o()(r)))})),t}},{key:"getDeletedAssociationsPayload",value:function(){var e=this,t=[];return Object.keys(this.associations).forEach((function(n){var r=e.associations[n].getDeletionPayload();r.length>0&&(t=[].concat(o()(t),o()(r)))})),t}},{key:"getChangedAssociations",value:function(){var e=this,t={};return Object.keys(this.associations).forEach((function(n){var r=e.associations[n];Object.keys(r.store).forEach((function(e){var i=r.store[e];if(!i.isDeleted){var a=i.getChanges(),o=i.getChangedAssociations();Object.assign(a,o),(i.isLocal||Object.keys(a).length>0)&&(a.id=e,t[n]=t[n]||[],t[n].push(a))}}))})),t}},{key:"discardAssociationChanges",value:function(){var e=this;Object.keys(this.associations).forEach((function(t){e.associations[t].forEach((function(e){e.isDeleted&&(e.isDeleted=!1),e.isLocal?e.remove():e.discardChanges(!0)}))}))}},{key:"getChanges",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.original,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.draft,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Shopware.Entity.getDefinition(this.getEntityName()),o=a.properties,s=Object.keys(o),c=Shopware.Entity.getPropertyBlacklist(),u=Shopware.Entity,l=Shopware.Utils.types;return n===r?{}:l.isObject(n)&&l.isObject(r)?l.isDate(n)||l.isDate(r)?n.valueOf()===r.valueOf()?{}:r:Object.keys(r).reduce((function(a,h){if(!s.includes(h)||c.includes(h)||o[h].readOnly)return a;if(!Shopware.Utils.object.hasOwnProperty(n,h)){if(l.isPlainObject(r[h])&&o[h].entity){var f=e.validateSchema(r[h],u.getDefinition(o[h].entity));return r[h].store&&r[h].store.remove(r[h]),Object.keys(f).length<=0?a:L({},a,i()({},h,f))}if(l.isPlainObject(r[h])&&"object"===o[h].type&&o[h].properties){var d=e.validateSchema(r[h],o[h]);return Object.keys(d).length<=0?a:L({},a,i()({},h,d))}return l.isPlainObject(r[h])&&"object"===o[h].type?L({},a,i()({},h,r[h])):l.isArray(r[h]&&o[h].entity)?a:L({},a,i()({},h,r[h]))}if(l.isPlainObject(r[h])&&o[h].entity){var p=t.getChanges(n[h],r[h],u.getDefinition(o[h].entity));return r[h].store&&r[h].store.remove(r[h]),Object.keys(p).length<=0?a:(void 0!==r[h].id&&(p.id=r[h].id),L({},a,i()({},h,p)))}if(l.isPlainObject(r[h])&&"object"===o[h].type&&o[h].properties){var g=t.getChanges(n[h],r[h],o[h]);return Object.keys(g).length<=0?a:L({},a,i()({},h,e.validateSchema(Object.assign({},n[h],r[h]),o[h])))}if(l.isPlainObject(r[h])&&"object"===o[h].type)return JSON.stringify(n[h])===JSON.stringify(r[h])?a:L({},a,i()({},h,t.deepCopyObject(r[h])));if(l.isArray(r[h])&&o[h].entity)return a;if(l.isArray(r[h]))return Shopware.Utils.object.getArrayChanges(n[h],r[h]).length<=0?a:L({},a,i()({},h,r[h]));if(l.isPlainObject(r[h])){var v=Shopware.Utils.object.getObjectDiff(n[h],r[h]);return Object.keys(v).length<=0?a:L({},a,i()({},h,v))}return r[h]!==n[h]?n[h]&&""===r[h]?L({},a,i()({},h,null)):n[h]&&null!==n[h]||""!==r[h]&&null!==r[h]?L({},a,i()({},h,r[h])):a:a}),{}):r}},{key:"hasChanges",value:function(){return this.getDeletedAssociationsPayload().length>0||(Object.keys(this.getChangedAssociations()).length>0||Object.keys(this.getChanges()).length>0)}},{key:"getEntityName",value:function(){return this._entityName}},{key:"privateData",get:function(){return{isDeleted:this.isDeleted,isLoading:this.isLoading,errors:this.errors,versionId:this.versionId}}},{key:"exposedData",get:function(){return Object.assign({},this.privateData,this.draft)}},{key:"entitySchema",get:function(){return Shopware.Entity.getDefinition(this.getEntityName())}},{key:"requiredProperties",get:function(){return Shopware.Entity.getRequiredProperties(this.getEntityName())}},{key:"translatableProperties",get:function(){return Shopware.Entity.getTranslatableProperties(this.getEntityName())}},{key:"associatedEntityPropNames",get:function(){return Shopware.Entity.getAssociatedProperties(this.getEntityName())}},{key:"associatedEntityPropDefinitions",get:function(){var e=this.entitySchema,t=this.associatedEntityPropNames;return Object.keys(e.properties).reduce((function(n,r){return t.includes(r)?L({},n,i()({},r,e.properties[r])):n}),{})}},{key:"kebabEntityName",get:function(){return this.getEntityName().replace(/_/g,"-")}}],[{key:"validateSchema",value:function(e,t){var n=t.properties,r=Object.keys(n),a=Shopware.Entity.getPropertyBlacklist();return Object.keys(e).reduce((function(t,n){return!r.includes(n)||a.includes(n)?t:L({},t,i()({},n,e[n]))}),{})}}]),e}(),T=n("MFJK");t.default={LocalStore:v,LanguageStore:j,UploadStore:R.b,EntityStore:S.a,CriteriaFactory:T.a,ErrorResolver:C,ErrorStore:A,AssociationStore:_,EntityProxy:N}},N23T:function(e,t,n){"use strict";n.r(t);var r=n("RIqP"),i=n.n(r),a=n("cDf5"),o=n.n(a),s=n("J4zp"),c=n.n(s),u=n("lSNA"),l=n.n(u),h=n("UWdM"),f=n("lYO9"),d=n("I3+K");function p(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default={register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;if(!e||!e.length)return Object(h.b)("ComponentFactory","A component always needs a name.",t),!1;if(y.has(e))return Object(h.b)("ComponentFactory",'The component "'.concat(e,'" is already registered. Please select a unique name for your component.'),n),!1;if(n.name=e,n.template)d.default.registerComponentTemplate(e,n.template),delete n.template;else if(!n.functional&&"function"!=typeof n.render)return Object(h.b)("ComponentFactory",'The component "'.concat(n.name,'" needs a template to be functional.'),'Please add a "template" property to your component definition',n),!1;return y.set(e,n),n},extend:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;r.template?(d.default.extendComponentTemplate(e,t,r.template),delete r.template):d.default.extendComponentTemplate(e,t);return r.name=e,r.extends=t,y.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&&(d.default.registerTemplateOverride(e,r.template,n),delete r.template);var i=m.get(e)||[];null!==n&&n>=0&&i.length>0?i.splice(n,0,r):i.push(r);return m.set(e,i),r},build:function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v||E();if(!y.has(t))return!1;var r=Object.create(y.get(t));if(r.extends){var i=e(r.extends,!0);i?r.extends=i:delete r.extends}if(m.has(t)){var a=Object(f.a)(m.get(t));w(a).forEach((function(e){var t=Object.create(e);t.extends=Object.create(r),t._isOverride=!0,r=t}))}var o=O(r);if(C(o)){var s=R(r)?"#".concat(t):r.extends.name;r.methods=g({},r.methods,{},P(s,o))}if("function"==typeof r.render)return delete r.template,r;if(n)return delete r.template,r;if(r.template=k(t),"string"!=typeof r.template)return!1;return r},getComponentTemplate:k,getComponentRegistry:function(){return y},getOverrideRegistry:function(){return m},getComponentHelper:function(){return b},registerComponentHelper:function(e,t){if(!e||!e.length)return Object(h.b)("ComponentFactory/ComponentHelper","A ComponentHelper always needs a name.",t),!1;if(b.hasOwnProperty(e))return Object(h.b)("ComponentFactory/ComponentHelper","A ComponentHelper with the name ".concat(e," already exists."),t),!1;return b[e]=t,!0},resolveComponentTemplates:E,markComponentTemplatesAsNotResolved:function(){return d.default.getNormalizedTemplateRegistry().clear(),v=!1,!0}};var v=!1,y=new Map,m=new Map,b={};function k(e){return v||E(),d.default.getRenderedTemplate(e)}function w(e){return e.reduceRight((function(e,t){if(0===e.length)return[t];var n=e.shift();return Object.entries(t).forEach((function(e){var r=c()(e,2),i=r[0],a=r[1];n.hasOwnProperty(i)?"object"===o()(a)&&Object.entries(a).forEach((function(e){var r=c()(e,2),a=r[0],o=r[1];n[i].hasOwnProperty(a)||(n[i][a]=o,delete t[i][a])})):(n[i]=a,delete t[i])})),[t].concat([n],i()(e))}),[])}function O(e){var t={};return e._isOverride&&(t=O(e.extends)),["computed","methods"].forEach((function(n){e[n]&&Object.entries(e[n]).forEach((function(r){var i=c()(r,2),a=i[0],s=i[1];"computed"===n&&"object"===o()(s)?Object.entries(s).forEach((function(r){var i=c()(r,2),o=i[0],s=i[1],u="".concat(a,".").concat(o);t=S(t,u,s,n,e)})):t=S(t,a,s,n,e)}))})),t}function S(e,t,n,r,i){var a=n.toString();if(!/\.\$super/g.test(a))return e;e.hasOwnProperty(t)||(e[t]={});var o=R(i)?"#":"";return e[t]=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"methods",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=t.extends;if(!a)return{};var o="".concat(i).concat(a.name),s=a.extends?"".concat(i).concat(a.extends.name):null;o===s&&(i.length>0&&(i="#".concat(i)),s="".concat(i).concat(a.extends.name));var c=j(a,n,r),u={};u[o]={parent:s,func:c};var l=e(a,n,r,i),h=g({},l,{},u);return h}(i,t,r,o),e}function P(e,t){return{$super:function(e){this._initVirtualCallStack(e);var t=this._findInSuperRegister(e),n=t[this._virtualCallStack[e]];this._virtualCallStack[e]=n.parent;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o=n.func.bind(this).apply(void 0,i);return n.parent&&(this._virtualCallStack[e]=this._inheritedFrom()),o},_initVirtualCallStack:function(e){this._virtualCallStack||(this._virtualCallStack={name:e}),this._virtualCallStack[e]||(this._virtualCallStack[e]=this._inheritedFrom())},_findInSuperRegister:function(e){return this._superRegistry()[e]},_superRegistry:function(){return t},_inheritedFrom:function(){return e}}}function j(e,t,n){var r=t.split(".");return r.length>1?function(e,t,n){var r=c()(t,2),i=r[0],a=r[1];if(!e[n])return j(e.extends,i,n);if(!e[n][i])return j(e.extends,i,n);return e[n][i][a]}(e,r,n):e[n]&&e[n][t]?e[n][t]:e.extends?j(e.extends,t,n):null}function R(e){return!!e.extends&&e.extends.name===e.name}function C(e){return 0!==Object.keys(e).length&&e.constructor===Object}function E(){return d.default.resolveTemplates(),v=!0,!0}},NYI0: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"plugin";return i()(this,r),(a=n.call(this,e,t,o)).name="pluginService",a}return o()(r,[{key:"upload",value:function(e){var t=this.getBasicHeaders({"Content-Type":"application/zip"});return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/upload"),e,{headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"install",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/install"),{},{params:{pluginName:e},headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"uninstall",value:function(e,t){var n=t.keepUserData,r=void 0===n||n,i=this.getBasicHeaders(),a={pluginName:e,keepUserData:r?1:0};return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/uninstall"),{},{params:a,headers:i}).then((function(e){return d.default.handleResponse(e)}))}},{key:"activate",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/activate"),{},{params:{pluginName:e},headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"deactivate",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/deactivate"),{},{params:{pluginName:e},headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"update",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/update"),{},{params:{pluginName:e},headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"delete",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/delete"),{},{params:{pluginName:e},headers:t}).then((function(e){return d.default.handleResponse(e)}))}},{key:"refresh",value:function(){var e=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/refresh"),{},{params:{},headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getLastUpdates",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/lastUpdates"),{headers:e}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},OARZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("RIqP"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=function(){function e(t,n,r){o()(this,e),this._entityName=t,this.EntityClass=r;var i=Shopware.Application.getContainer("service");this.versionId=Shopware.Context.api.liveVersionId,Shopware.Utils.types.isString(n)?this.apiService=i[n]:this.apiService=n,this.isLoading=!1,this.store={}}return c()(e,[{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]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.versionId;if((!r||r.length<1)&&(r=this.getLanguageStore().getCurrentId()),this.hasId(t)&&!0!==n&&(this.store[t].currentLanguageId===r||this.store[t].translatableProperties.length<1))return this.store[t];var a=Shopware.Classes.ApiService,o=this.create(t),s=Object.assign(e.getLanguageHeader(r),a.getVersionHeader(i));return o.isLoading=!0,this.apiService.getById(t,{},s).then((function(e){o.setData(e.data,!0,!0,!1,r),o.isLoading=!1})),o}},{key:"getByIdAsync",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.versionId;if((!n||n.length<1)&&(n=this.getLanguageStore().getCurrentId()),!t||!t.length)return Promise.reject();var i=this.create(t),a=Shopware.Classes.ApiService,o=Object.assign(e.getLanguageHeader(n),a.getVersionHeader(r));return i.isLoading=!0,this.apiService.getById(t,{},o).then((function(e){return i.setData(e.data,!0,!1,!1,n),i.isLoading=!1,i}))}},{key:"getList",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.isLoading=!0,(!i||i.length<1)&&(i=this.getLanguageStore().getCurrentId()),t.headers=Object.assign({},e.getLanguageHeader(i),t.headers),this.apiService.getList(t).then((function(e){var t=e.meta.total,a=[],o=e.aggregations;return n.isLoading=!1,e.data.forEach((function(e){var t=n.create(e.id);t.setData(e,!r,r,r,i),a.push(t)})),{items:a,total:t,aggregations:o}}))}},{key:"getLanguageStore",value:function(){return Shopware.StateDeprecated.getStore("language")}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Shopware.Utils.createId();return this.hasId(e)&&!this.store[e].deleted||(this.store[e]=new this.EntityClass(this.getEntityName(),this.apiService,e,this)),this.store[e]}},{key:"duplicate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Shopware.Utils.createId(),i=Shopware.Utils.object.deepCopyObject;if(this.store[r]=new this.EntityClass(this.getEntityName(),this.apiService,r,this),this.hasId(e)){var a=i(this.store[e].draft);a.id=r,this.store[r].setLocalData(a),n&&Object.keys(this.store[e].associations).forEach((function(n){var a=[];Object.keys(t.store[e].associations[n].store).forEach((function(o){t.store[r].associations[n].create(o).setLocalData(i(t.store[e].associations[n].store[o])),t.store[e].associations[n].store[o].isLocal=!0,a.push(t.store[e].associations[n].store[o])})),t.store[r].associations[n].populateParentEntity(a)}))}return this.store[r]}},{key:"add",value:function(e){return!!Shopware.Utils.object.hasOwnProperty(e,"id")&&(this.store[e.id]=e,!0)}},{key:"hasId",value:function(e){return void 0!==this.store[e]}},{key:"remove",value:function(e){return!(!Shopware.Utils.object.hasOwnProperty(e,"id")||!this.hasId(e.id))&&(delete this.store[e.id],!0)}},{key:"removeById",value:function(e){return!!this.hasId(e)&&(delete this.store[e],!0)}},{key:"removeAll",value:function(){return this.store={},!0}},{key:"forEach",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;return Shopware.Utils.types.isFunction(e)?(Object.keys(this.store).forEach((function(r){e.call(n,t.store[r],r)})),this.store):this.store}},{key:"sync",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(!r||r.length<1)&&(r=this.getLanguageStore().getCurrentId());var a=Shopware.Service("syncService"),o=this.getDeletionPayload();return!1===n&&(o=[].concat(i()(o),i()(this.getUpdatePayload()))),this.isLoading=!0,a.sync(o,{},e.getLanguageHeader(r)).then((function(){t.isLoading=!1,o.forEach((function(e){e.payload.forEach((function(e){t.store[e.id]&&(t.store[e.id].isLocal=!1)}))}))}))}},{key:"getDeletionQueue",value:function(){var e=this,t=[];return Object.keys(this.store).forEach((function(n){var r=e.store[n];r.isDeleted&&t.push(new Promise((function(e,t){r.delete(!0).then((function(t){e(t)})).catch((function(e){t(e)}))})))})),t}},{key:"getDeletionPayload",value:function(){var e=this,t=[];return Object.keys(this.store).forEach((function(n){var r=e.store[n];if(r.isDeleted){var i={id:n};r.versionId&&(i.versionId=r.versionId),t.push(i)}})),t.length<1?[]:[{action:"delete",entity:this.getEntityName(),payload:t}]}},{key:"getUpdatePayload",value:function(){var e=this,t=[],n=[];return Object.keys(this.store).forEach((function(r){var i=e.store[r];if(!i.isDeleted){var a=i.getChanges(),o=i.getChangedAssociations(),s=i.getDeletedAssociationsPayload();Object.keys(s).length>0&&t.push(s.pop()),(i.isLocal||Object.keys(a).length>0||Object.keys(o).length>0)&&n.push(Object.assign({id:r},a,o))}})),n.length>0&&(n=[{action:"upsert",entity:this.getEntityName(),payload:n}]),[].concat(t,i()(n))}},{key:"getUpdateQueue",value:function(){var e=this,t=[];return Object.keys(this.store).forEach((function(n){var r=e.store[n];if(!r.isDeleted){var i=r.getChanges();(r.isLocal||Object.keys(i).length>0)&&t.push(new Promise((function(e,t){r.save().then((function(t){e(t)})).catch((function(e){t(e)}))})))}})),t}},{key:"getEntityName",value:function(){return this._entityName}}],[{key:"getLanguageHeader",value:function(e){return{"sw-language-id":e}}}]),e}()},OUny: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sales-channel";return i()(this,r),(a=n.call(this,e,t,o)).name="salesChannelService",a}return o()(r,[{key:"generateKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/access-key/sales-channel",{params:n,headers:r}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},OW7U: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"seo-url-template";return i()(this,r),(a=n.call(this,e,t,o)).name="seoUrlTemplateService",a}return o()(r,[{key:"validate",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/".concat(this.getApiBasePath(),"/validate");return this.httpClient.post(r,e,{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return d.default.handleResponse(e)}))}},{key:"preview",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/".concat(this.getApiBasePath(),"/preview");return this.httpClient.post(r,e,{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return 204===e.status?null:d.default.handleResponse(e)}))}},{key:"getContext",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/".concat(this.getApiBasePath(),"/context");return this.httpClient.post(r,e,{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getDefault",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/".concat(this.getApiBasePath(),"/default/").concat(e);return this.httpClient.get(r,{params:t,headers:this.getBasicHeaders(n)}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},PK6L:function(e,t,n){"use strict";n.r(t),t.default={registerStore:function(e,t){if(!e||!e.length)return null;return r.set(e,t),i(e)},getStore:i,getStoreRegistry:function(){return r}};var r=new Map;function i(e){return r.get(e)}},PVjI:function(e,t,n){"use strict";n.r(t);var r=n("VXgk");function i(){this.listeners=[],window.addEventListener("resize",this.resize.bind(this))}i.prototype=Object.assign(i.prototype,{resize:r.default.debounce((function(e){this.listeners.forEach((function(t){t.listener.call(t.scope,e)}))}),100),onResize:function(e){var t=e.listener,n=e.scope,r=e.component;return n||(n=window),this.listeners.push({listener:t,scope:n,component:r}),this.listeners.length-1},removeResizeListener:function(e){return this.listeners=this.listeners.filter((function(t){return e!==t.component})),!0},getUserAgent:function(){return window.navigator.userAgent},getViewportWidth:function(){return window.innerWidth},getViewportHeight:function(){return window.innerHeight},getDevicePixelRatio:function(){return window.devicePixelRatio},getScreenWidth:function(){return window.screen.width},getScreenHeight:function(){return window.screen.height},getScreenOrientation:function(){return window.screen.orientation},getBrowserLanguage:function(){return window.navigator.language},getPlatform:function(){return window.navigator.platform},getSystemKey:function(){return this.getPlatform().indexOf("Mac")>-1?"CTRL":"ALT"}}),t.default=i},"RT+Y":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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"media-folder";return i()(this,r),(a=n.call(this,e,t,o)).name="mediaFolderService",a}return o()(r,[{key:"dissolveFolder",value:function(e){var t="/_action/".concat(this.getApiBasePath(e),"/dissolve");return this.httpClient.post(t,"",{params:{},headers:this.getBasicHeaders()}).then((function(e){return d.default.handleResponse(e)}))}},{key:"moveFolder",value:function(e,t){t&&(t="/".concat(t));var n="/_action/".concat(this.getApiBasePath(e),"/move").concat(t);return this.httpClient.post(n,"",{params:{},headers:this.getBasicHeaders()}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},SSxj:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(y()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sales-channel-context";return o()(this,r),(i=n.call(this,e,t,a)).name="salesChannelContextService",i}return c()(r,[{key:"updateCustomerContext",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/switch-customer",o=v({},this.getBasicHeaders(i),{"sw-context-token":n});return this.httpClient.patch(a,{customerId:e,salesChannelId:t},{additionalParams:r,headers:o})}},{key:"updateContext",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/sales-channel-api/".concat(t,"/v").concat(this.getApiVersion(),"/context"),o=v({},this.getBasicHeaders(i),{"sw-context-token":n});return this.httpClient.patch(a,e,{additionalParams:r,headers:o})}},{key:"getContext",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/").concat(t),a=this.getBasicHeaders(r);return this.httpClient.post(i,{},{additionalParams:n,headers:a})}}]),r}(n("SwLI").default);t.default=m},SWCa:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return P})),n.d(t,"UploadEvents",(function(){return S}));var r=n("lSNA"),i=n.n(r),a=n("RIqP"),o=n.n(a),s=n("lwsE"),c=n.n(s),u=n("W8MJ"),l=n.n(u),h=n("a1gu"),f=n.n(h),d=n("Nsbk"),p=n.n(d),g=n("7W2i"),v=n.n(g),y=n("VXgk"),m=n("lhgX"),b=n("SwLI");function k(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var S={UPLOAD_ADDED:"media-upload-add",UPLOAD_FINISHED:"media-upload-finish",UPLOAD_FAILED:"media-upload-fail",UPLOAD_CANCELED:"media-upload-cancel"},P=function(e){v()(r,e);var t,n=(t=r,function(){var e,n=p()(t);if(O()){var r=p()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return f()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"media";return c()(this,r),(i=n.call(this,e,t,a)).name="mediaService",i.uploads=[],i.$listeners={},i}return l()(r,[{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?y.array.remove(this.$listeners[e],(function(e){return e===t})):y.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,r=this,i=t.map((function(t){return new m.a(w({uploadTag:e},t))}));(n=this.uploads).push.apply(n,o()(i)),this.getListenerForTag(e).forEach((function(t){t(r._createUploadEvent(S.UPLOAD_ADDED,e,{data:i}))}))}},{key:"cancelUpload",value:function(e,t){var n=this,r=new m.a(w({uploadTag:e},t));this.getListenerForTag(e).forEach((function(t){t(n._createUploadEvent(S.UPLOAD_CANCELED,e,{data:r}))}))}},{key:"removeByTag",value:function(e){y.array.remove(this.uploads,(function(t){return t.uploadTag===e}))}},{key:"runUploads",value:function(e){var t=this,n=y.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(S.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(S.UPLOAD_FAILED,e,n))}))})))})))}},{key:"_startUpload",value:function(e){var t=this;return e.src instanceof File?y.fileReader.readAsArrayBuffer(e.src).then((function(n){return t.uploadMediaById(e.targetId,e.src.type,n,e.extension,e.fileName)})):e.src instanceof URL?this.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"))}},{key:"uploadMediaById",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e,a="/_action/".concat(this.getApiBasePath(e),"/upload"),o=this.getBasicHeaders({"Content-Type":t}),s={extension:r,fileName:i};return this.httpClient.post(a,n,{params:s,headers:o}).then((function(e){return b.default.handleResponse(e)}))}},{key:"uploadMediaFromUrl",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i="/_action/".concat(this.getApiBasePath(e),"/upload"),a=this.getBasicHeaders({"Content-Type":"application/json"}),o={extension:n,fileName:r},s=JSON.stringify({url:t});return this.httpClient.post(i,s,{params:o,headers:a}).then((function(e){return b.default.handleResponse(e)}))}},{key:"renameMedia",value:function(e,t){var n="/_action/".concat(this.getApiBasePath(e),"/rename");return this.httpClient.post(n,JSON.stringify({fileName:t}),{params:{},headers:this.getBasicHeaders()}).then((function(e){return b.default.handleResponse(e)}))}},{key:"provideName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="/_action/".concat(this.getApiBasePath(),"/provide-name");return this.httpClient.get(r,{params:{fileName:e,extension:t,mediaId:n},headers:this.getBasicHeaders()}).then((function(e){return b.default.handleResponse(e)}))}}]),r}(b.default)},SZDz: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"customer-address";return i()(this,r),(a=n.call(this,e,t,o)).name="customerAddressService",a}return o()(r,[{key:"getListByCustomerId",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.showDeprecationWarning("getListByCustomerId");var a=this.getBasicHeaders(i),o={};return t>=1&&(o.page=t),n>0&&(o.limit=n),(o=Object.assign(o,r)).term&&o.term.length||o.filter&&o.filter.length?this.httpClient.post("".concat(this.getApiBasePath(null,"search")),o,{headers:a}).then((function(e){return d.default.handleResponse(e)})):this.httpClient.get(this.getApiBasePath(),{params:o,headers:a}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},SnjH: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"document";return i()(this,r),(a=n.call(this,e,t,o)).name="documentService",a}return o()(r,[{key:"createDocument",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,c="/_action/order/".concat(e,"/document/").concat(t),u=this.getBasicHeaders(o),l={config:r,referenced_document_id:i};s&&(l.static=!0);var h=this.httpClient.post(c,l,{additionalParams:a,headers:u}).then((function(e){if(s&&e.data.documentId){var t=s.name.split(".").shift(),i=s.name.split(".").pop();c="/_action/document/".concat(e.data.documentId,"/upload?fileName=").concat(r.documentNumber,"_").concat(t,"&extension=").concat(i),u["Content-Type"]=s.type,h=n.httpClient.post(c,s,{additionalParams:a,headers:u})}return h}))}},{key:"generateDocumentPreviewLink",value:function(e,t,n,r,i){return"".concat(i.apiPath,"/v").concat(this.getApiVersion(),"/_action/order/").concat(e,"/").concat(t,"/document/").concat(n,"/preview?config=").concat(r)}},{key:"generateDocumentLink",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return"".concat(n.apiPath,"/v").concat(this.getApiVersion(),"/_action/document/").concat(e,"/").concat(t).concat(r?"?download=1":"")}}]),r}(n("SwLI").default);t.default=p},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"),c=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,c=void 0===s?"asc":s,u=t.sortings,l=t.queries,h=t.term,f=t.criteria,d=t.aggregations,p=t.associations,g=t.headers,v=t.versionId,y=t.ids,m=t["total-count-mode"],b=void 0===m?0:m;this.showDeprecationWarning("getList");var k=this.getBasicHeaders(g),w={page:r,limit:a};return u?w.sort=u:o&&o.length&&(w.sort=("asc"===c.toLowerCase()?"":"-")+o),y&&(w.ids=y.join("|")),h&&(w.term=h),f&&(w.filter=[f.getQuery()]),d&&(w.aggregations=d),p&&(w.associations=p),v&&(k=Object.assign(k,e.getVersionHeader(v))),l&&(w.query=l),b&&(w["total-count-mode"]=b),w.term&&w.term.length||w.filter&&w.filter.length||w.aggregations||w.sort||w.queries||w.associations?this.httpClient.post("".concat(this.getApiBasePath(null,"search")),w,{headers:k}).then((function(t){return e.handleResponse(t)})):this.httpClient.get(this.getApiBasePath(),{params:w,headers:k}).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(this.showDeprecationWarning("getById"),!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(this.showDeprecationWarning("updateById"),!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(this.showDeprecationWarning("deleteAssociation"),!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]:{};this.showDeprecationWarning("create");var 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(this.showDeprecationWarning("delete"),!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 this.showDeprecationWarning("clone"),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]:{};this.showDeprecationWarning("versionize");var 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(this.showDeprecationWarning("mergeVersion"),!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:"showDeprecationWarning",value:function(e){Shopware.Utils.debug.warn("".concat(this.apiEndpoint," - Api Service"),"The ".concat(e," function is deprecated. Please use the 'repository.data.js' class for data handling of entities."))}},{key:"getApiVersion",value:function(){return Shopware.Context.api.apiVersion-1}},{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=c},"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.b)("ShortcutFactory","A combination can't be blank."),!1;if(i.has(e))return Object(r.b)("ShortcutFactory",'The combination "'.concat(e,'" is registered already.')),!1;return i.set(e,t),e}};var i=new Map},"T+rS":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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number-range";return i()(this,r),(a=n.call(this,e,t,o)).name="numberRangeService",a}return o()(r,[{key:"reserve",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=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.getBasicHeaders(r),a={preview:n};return this.httpClient.get("_action/number-range/reserve/".concat(e,"/").concat(t),{params:a,headers:i}).then((function(e){return p.handleResponse(e)}))}},{key:"previewPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.getBasicHeaders(r),a={pattern:t,start:n};return this.httpClient.get("_action/number-range/preview-pattern/".concat(e),{params:a,headers:i}).then((function(e){return p.handleResponse(e)}))}}]),r}(p);t.default=g},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},has:function(e){return i.has(e)},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,"b",(function(){return r})),n.d(t,"a",(function(){return i}));function r(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}function i(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},VXgk:function(e,t,n){"use strict";n.r(t),n.d(t,"object",(function(){return V})),n.d(t,"debug",(function(){return z})),n.d(t,"format",(function(){return K})),n.d(t,"dom",(function(){return $})),n.d(t,"string",(function(){return Y})),n.d(t,"types",(function(){return G})),n.d(t,"fileReader",(function(){return Q})),n.d(t,"sort",(function(){return X})),n.d(t,"array",(function(){return Z}));var r=n("DzJC"),i=n.n(r),a=n("56YH"),o=n.n(a),s=n("sEfC"),c=n.n(s),u=n("mRsi"),l=n.n(u),h=n("xk4V"),f=n.n(h),d=n("wEy/"),p=n.n(d),g=n("Kssv"),v=n.n(g),y=n("qPyV"),m=n.n(y),b=n("lYO9"),k=n("UWdM"),w=n("lSNA"),O=n.n(w),S=n("giYa"),P=n.n(S),j=n("lO2t");function R(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 C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E;function A(e,t,n){var r=C({style:"currency",currency:t},void 0!==n?{minimumFractionDigits:n,maximumFractionDigits:n}:{}),i="de-DE";return"USD"===r.currency&&(i="en-US"),e.toLocaleString(i,r)}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return"";var n=new Date(e);if(isNaN(n))return"";var r=Shopware.Application.getContainer("factory").locale.getLastKnownLocale(),i={day:"2-digit",month:"2-digit",year:"2-digit"};return t=C({},i,{},t),j.a.isEqual(E,t)||(E=t),new Intl.DateTimeFormat(r,E).format(n)}function x(e){return P.a.hash(e)}function I(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de-DE",n=1024,r=["B","KB","MB","GB"],i=Number.parseInt(e,10),a=0;a<r.length;a+=1){var o=i/n;if(o<.9)break;i=o}return"".concat(i.toFixed(2).toLocaleString(t)).concat(r[a])}var _={getScrollbarHeight:function(e){return e instanceof HTMLElement?e.offsetHeight-e.clientHeight:(Object(k.b)("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(k.b)("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)}},B=n("6acW"),L=n.n(B),N=n("u6S6"),T=n.n(N),F=n("N1om"),M=n.n(F),H={capitalizeString:L.a,camelCase:T.a,kebabCase:M.a,isEmptyOrSpaces:function(e){return!e||e.length<=0||e.trim().length<=0},isUrl:function(e){try{return Boolean(new URL(e))}catch(e){return!1}},isValidIp:function(e){return RegExp("((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*$))").test(e)}};function W(e,t,n){e.onerror=function(){e.abort(),n(new DOMException("Problem parsing file."))},e.onload=function(){t(e.result)}}function U(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 J={readFileAsArrayBuffer:function(e){var t=new FileReader;return new Promise((function(n,r){W(t,n,r),t.readAsArrayBuffer(e)}))},readFileAsDataURL:function(e){var t=new FileReader;return new Promise((function(n,r){W(t,n,r),t.readAsDataURL(e)}))},readFileAsText:function(e){var t=new FileReader;return new Promise((function(n,r){W(t,n,r),t.readAsText(e)}))},getNameAndExtensionFromFile:function(e){return U(e.name)},getNameAndExtensionFromUrl:function(e){var t=e.href.split("/").pop(),n=t.indexOf("?");return n>0&&(t=t.substring(0,n)),U(t)}},q={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}};var V={deepCopyObject:b.b,hasOwnProperty:b.f,getObjectDiff:b.e,getArrayChanges:b.d,cloneDeep:b.a,merge:b.g,get:b.c,set:b.i,pick:b.h},z={warn:k.b,error:k.a},K={currency:A,date:D,fileSize:I,md5:x},$={getScrollbarHeight:_.getScrollbarHeight,getScrollbarWidth:_.getScrollbarWidth,copyToClipboard:_.copyToClipboard},Y={capitalizeString:H.capitalizeString,camelCase:H.camelCase,kebabCase:H.kebabCase,md5:x,isEmptyOrSpaces:H.isEmptyOrSpaces,isUrl:H.isUrl,isValidIp:H.isValidIp},G={isObject:j.a.isObject,isPlainObject:j.a.isPlainObject,isEmpty:j.a.isEmpty,isRegExp:j.a.isRegExp,isArray:j.a.isArray,isFunction:j.a.isFunction,isDate:j.a.isDate,isString:j.a.isString,isBoolean:j.a.isBoolean,isEqual:j.a.isEqual,isNumber:j.a.isNumber,isUndefined:j.b},Q={readAsArrayBuffer:J.readFileAsArrayBuffer,readAsDataURL:J.readFileAsDataURL,readAsText:J.readFileAsText,getNameAndExtensionFromFile:J.getNameAndExtensionFromFile,getNameAndExtensionFromUrl:J.getNameAndExtensionFromUrl},X={afterSort:q.afterSort},Z={flattenDeep:l.a,remove:p.a,slice:v.a,uniqBy:m.a};t.default={createId:function(){return f()().replace(/-/g,"")},throttle:i.a,debounce:c.a,flow:o.a,get:b.c,object:V,debug:z,format:K,dom:$,string:Y,types:G,fileReader:Q,sort:X,array:Z}},"X+US":function(e,t,n){"use strict";n.r(t),t.default=function(){var e=function(){};return e.prototype=new function(){this._registerProperty=function(e,t){return Object.defineProperty(this,e,{value:t,writable:!1,enumerable:!0,configurable:!0}),this},this._registerPrivateProperty=this._registerProperty.bind(this),this._registerGetterMethod=function(e,t,n){return Object.defineProperty(this,e,{get:t,set:n,enumerable:!0,configurable:!0}),this}},new e}},a6Wd:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(y()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sales-channel-context";return o()(this,r),(i=n.call(this,e,t,a)).name="contextStoreService",i}return c()(r,[{key:"updateCustomerContext",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/switch-customer",o=v({},this.getBasicHeaders(i),{"sw-context-token":n});return this.httpClient.patch(a,{customerId:e,salesChannelId:t},{additionalParams:r,headers:o})}},{key:"updateContext",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/store-api/".concat(t,"/v").concat(this.getApiVersion(),"/context"),o=v({},this.getBasicHeaders(i),{"sw-context-token":n});return this.httpClient.patch(a,e,{additionalParams:r,headers:o})}},{key:"getContext",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/").concat(t),a=this.getBasicHeaders(r);return this.httpClient.post(i,{},{additionalParams:n,headers:a})}}]),r}(n("SwLI").default);t.default=m},cNT7: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("lYO9"),p=n("VXgk"),g=n("SwLI");function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(v()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"order";return i()(this,r),(a=n.call(this,e,t,o)).name="orderService",a}return o()(r,[{key:"recalculateOrder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="/_action/order/".concat(e,"/recalculate"),a=Object.assign(g.default.getVersionHeader(t),this.getBasicHeaders(r));return this.httpClient.post(i,{},{additionalParams:n,headers:a})}},{key:"addProductToOrder",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o="_action/order/".concat(e,"/product/").concat(n),s=Object.assign(g.default.getVersionHeader(t),this.getBasicHeaders(a));return this.httpClient.post(o,{quantity:r},{additionalParams:i,headers:s})}},{key:"addCustomLineItemToOrder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/order/".concat(e,"/lineItem"),o=Object.assign(g.default.getVersionHeader(t),this.getBasicHeaders(i)),s=Object(d.b)(n.priceDefinition);return s.taxRules=n.priceDefinition.taxRules,s.isCalculated=!0,this.httpClient.post(a,JSON.stringify({label:n.label,quantity:n.quantity,type:n.type,identifier:p.default.createId(),description:n.description,priceDefinition:s}),{additionalParams:r,headers:o})}},{key:"addCreditItemToOrder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/order/".concat(e,"/creditItem"),o=Object.assign(g.default.getVersionHeader(t),this.getBasicHeaders(i)),s=Object(d.b)(n.priceDefinition);return this.httpClient.post(a,JSON.stringify({label:n.label,quantity:n.quantity,type:n.type,identifier:p.default.createId(),description:n.description,priceDefinition:s}),{additionalParams:r,headers:o})}},{key:"changeOrderAddress",value:function(e,t,n,r){var i="_action/order-address/".concat(e,"/customer-address/").concat(t),a=Object.assign({},n),o=this.getBasicHeaders(r);return this.httpClient.post(i,{},{params:a,headers:o})}}]),r}(g.default);t.default=y},cPrm: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"check-email-unique";return i()(this,r),(a=n.call(this,e,t,o)).name="userValidationService",a}return o()(r,[{key:"checkUserEmail",value:function(e){var t=e.email,n=e.id,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r,o=this.getBasicHeaders(i),s={email:t,id:n};return this.httpClient.post("/_action/user/".concat(this.apiEndpoint),s,{params:a,headers:o}).then((function(e){return d.default.handleResponse(e)}))}},{key:"checkUserUsername",value:function(e){var t=e.username,n=e.id,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r,o=this.getBasicHeaders(i),s={username:t,id:n};return this.httpClient.post("/_action/user/check-username-unique",s,{params:a,headers:o}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},civk:function(e,t){e.exports='{% block sw_condition_value_content %}\n    <sw-single-select name="lunar-eclipse"\n                      id="lunar-eclipse"\n                      size="medium"\n                      :options="selectValues"\n                      v-model="isLunarEclipse"\n                      class="field--main">\n    </sw-single-select>\n{% endblock %}\n'},czq7: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"order";return i()(this,r),(a=n.call(this,e,t,o)).name="orderStateMachineService",a}return o()(r,[{key:"transitionOrderState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/order/".concat(e,"/state/").concat(t),o=this.getBasicHeaders(i);return this.httpClient.post(a,n,{additionalParams:r,headers:o})}},{key:"transitionOrderTransactionState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/order_transaction/".concat(e,"/state/").concat(t),o=this.getBasicHeaders(i);return this.httpClient.post(a,n,{additionalParams:r,headers:o})}},{key:"transitionOrderDeliveryState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/order_delivery/".concat(e,"/state/").concat(t),o=this.getBasicHeaders(i);return this.httpClient.post(a,n,{additionalParams:r,headers:o})}}]),r}(n("SwLI").default);t.default=p},d7vQ:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(y()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"checkout";return o()(this,r),(i=n.call(this,e,t,a)).name="checkOutSalesChannelService",i}return c()(r,[{key:"checkout",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/sales-channel-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/order"),a=v({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.post(i,{},{additionalParams:n,headers:a})}}]),r}(n("SwLI").default);t.default=m},earh: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"scheduled-task";return i()(this,r),(a=n.call(this,e,t,o)).name="scheduledTaskService",a}return o()(r,[{key:"runTasks",value:function(){var e=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/run"),null,{headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getMinRunInterval",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/min-run-interval"),{headers:e}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},fLuy: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"update";return i()(this,r),(a=n.call(this,e,t,o)).name="updateService",a}return o()(r,[{key:"checkForUpdates",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/check"),{headers:e}).then((function(e){return p.handleResponse(e)}))}},{key:"checkRequirements",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/check-requirements"),{headers:e}).then((function(e){return p.handleResponse(e)}))}},{key:"pluginCompatibility",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/plugin-compatibility"),{params:t,headers:e}).then((function(e){return p.handleResponse(e)}))}},{key:"downloadUpdate",value:function(e){var t=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/download-latest-update?offset=").concat(e),{headers:t}).then((function(e){return p.handleResponse(e)}))}},{key:"deactivatePlugins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.getBasicHeaders(),r="/_action/".concat(this.getApiBasePath()),i="offset=".concat(e,"&deactivationFilter=").concat(t);return this.httpClient.get("".concat(r,"/deactivate-plugins?").concat(i),{headers:n}).then((function(e){return p.handleResponse(e)}))}},{key:"unpackUpdate",value:function(e){var t=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/unpack?offset=").concat(e),{headers:t}).then((function(e){return p.handleResponse(e)}))}},{key:"getBasicParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={language:localStorage.getItem("sw-admin-locale")};return Object.assign({},t,e)}}]),r}(p);t.default=g},gMIu:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("VXgk"),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.code,r=t.meta,a=void 0===r?{}:r,o=t.status,c=void 0===o?"":o,u=t.detail,l=void 0===u?"":u;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.parameters,this._status=c,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}()},gNKo: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"state-machine";return i()(this,r),(a=n.call(this,e,t,o)).name="stateMachineService",a}return o()(r,[{key:"getState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_action/state-machine/".concat(e,"/").concat(t,"/state"),a=this.getBasicHeaders(r);return this.httpClient.get(i,{additionalParams:n,headers:a})}},{key:"transitionState",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_action/state-machine/".concat(e,"/").concat(t,"/state/").concat(n),o=this.getBasicHeaders(i);return this.httpClient.post(a,{},{additionalParams:r,headers:o})}}]),r}(n("SwLI").default);t.default=p},hFIz:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("SwLI");function v(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var b=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(m()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"system-config";return o()(this,r),(i=n.call(this,e,t,a)).name="systemConfigApiService",i}return c()(r,[{key:"checkConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.httpClient.get("_action/system-config/check",{params:y({domain:e},t),headers:this.getBasicHeaders(n)}).then((function(e){return g.default.handleResponse(e)}))}},{key:"getConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.httpClient.get("_action/system-config/schema",{params:y({domain:e},t),headers:this.getBasicHeaders(n)}).then((function(e){return g.default.handleResponse(e)}))}},{key:"getValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.httpClient.get("_action/system-config",{params:y({domain:e,salesChannelId:t},n),headers:this.getBasicHeaders(r)}).then((function(e){return g.default.handleResponse(e)}))}},{key:"saveValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.httpClient.post("_action/system-config",e,{params:y({salesChannelId:t},n),headers:this.getBasicHeaders(r)}).then((function(e){return g.default.handleResponse(e)}))}},{key:"batchSave",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.httpClient.post("_action/system-config/batch",e,{params:y({},t),headers:this.getBasicHeaders(n)}).then((function(e){return g.default.handleResponse(e)}))}}]),r}(g.default);t.default=b},hFht: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._isRefreshing=!1,this._subscribers=[],this._errorSubscribers=[],this._whitelist=["/oauth/token"]}return o()(e,[{key:"subscribe",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this._subscribers.push(e),this._errorSubscribers.push(t)}},{key:"onRefreshToken",value:function(e){this._subscribers=this._subscribers.reduce((function(t,n){return n.call(null,e),t}),[]),this._errorSubscribers=[]}},{key:"onRefreshTokenFailed",value:function(e){this._errorSubscribers=this._errorSubscribers.reduce((function(t,n){return n.call(null,e),t}),[]),this._subscribers=[]}},{key:"fireRefreshTokenRequest",value:function(){var e=this,t=Shopware.Service("loginService");return this.isRefreshing=!0,t.refreshToken().then((function(t){e.onRefreshToken(t)})).finally((function(){e.isRefreshing=!1})).catch((function(){return t.logout(),e.onRefreshTokenFailed(),Promise.reject()}))}},{key:"whitelist",get:function(){return this._whitelist},set:function(e){this._whitelists=e}},{key:"isRefreshing",get:function(){return this._isRefreshing},set:function(e){this._isRefreshing=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.b)("DirectiveFactory","A directive always needs a name.",t),!1;if(i.has(e))return Object(r.b)("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},iPhF: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("iWIM"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("MFJK");function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(v()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"custom-field";return i()(this,r),(a=n.call(this,e,t,o)).name="customFieldService",a}return o()(r,[{key:"getList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t){var n=g.a.equals("active",!0);e.criteria=e.criteria?g.a.multi("AND",e.criteria,n):n}return c()(f()(r.prototype),"getList",this).call(this,e)}}]),r}(n("SwLI").default);t.default=y},iXTH: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"seo-url";return i()(this,r),(a=n.call(this,e,t,o)).name="seoUrlService",a}return o()(r,[{key:"updateCanonicalUrl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="/_action/".concat(this.getApiBasePath(),"/canonical");return Object.assign(r,{"sw-language-id":t}),this.httpClient.patch(i,e,{params:n,headers:this.getBasicHeaders(r)}).then((function(e){return d.default.handleResponse(e)}))}},{key:"createCustomUrl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="/_action/".concat(this.getApiBasePath(),"/create-custom-url");return this.httpClient.post(i,{routeName:e,urls:t},{params:n,headers:this.getBasicHeaders(r)}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},jVYu: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"calculate-price";return i()(this,r),(a=n.call(this,e,t,o)).name="calculate-price",a}return o()(r,[{key:"calculatePrice",value:function(e){var t=e.taxId,n=e.price,r=e.output,i=void 0===r?"gross":r,a=e.currencyId,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=o,u=this.getBasicHeaders(s),l={taxId:t,price:n,output:i,currencyId:a};return this.httpClient.post("/_action/".concat(this.apiEndpoint),l,{params:c,headers:u}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},juyG: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,n){i()(this,e),this.httpClient=t,this.loginService=n,this.name="cacheApiService"}return o()(e,[{key:"info",value:function(){var e=this.getHeaders();return this.httpClient.get("/_action/cache_info",{headers:e})}},{key:"index",value:function(){var e=this.getHeaders();return this.httpClient.post("/_action/index",{},{headers:e})}},{key:"clear",value:function(){var e=this.getHeaders();return this.httpClient.delete("/_action/cache",{headers:e})}},{key:"cleanupOldCaches",value:function(){var e=this.getHeaders();return this.httpClient.delete("/_action/cleanup",{headers:e})}},{key:"clearAndWarmup",value:function(){var e=this.getHeaders();return this.httpClient.delete("/_action/cache_warmup",{headers:e})}},{key:"getHeaders",value:function(){return{Accept:"application/json",Authorization:"Bearer ".concat(this.loginService.getToken()),"Content-Type":"application/json"}}}]),e}();t.default=s},k3fw:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return h}));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"],c=["json_list","json_object"];function u(){return s}function l(){return c}var h=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 c.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||"text"===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"),c=n("lYO9"),u=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(c.f)(e,"link")&&!Object(c.f)(e,"target")&&(e.target="_self"),e.position||(e.position=this.defaultPosition),this._registeredNodes.has(t)?(Object(s.b)("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.b)("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=u},lO2t:function(e,t,n){"use strict";n.d(t,"b",(function(){return j}));var r=n("GoyQ"),i=n.n(r),a=n("YO3V"),o=n.n(a),s=n("E+oP"),c=n.n(s),u=n("wAXd"),l=n.n(u),h=n("Z0cm"),f=n.n(h),d=n("lSCD"),p=n.n(d),g=n("YiAA"),v=n.n(g),y=n("4qC0"),m=n.n(y),b=n("Znm+"),k=n.n(b),w=n("Y+p1"),O=n.n(w),S=n("UB5X"),P=n.n(S);function j(e){return void 0===e}t.a={isObject:i.a,isPlainObject:o.a,isEmpty:c.a,isRegExp:l.a,isArray:f.a,isFunction:p.a,isDate:v.a,isString:m.a,isBoolean:k.a,isEqual:O.a,isNumber:P.a,isUndefined:j}},lYO9:function(e,t,n){"use strict";n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return k})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"f",(function(){return S})),n.d(t,"b",(function(){return P})),n.d(t,"e",(function(){return j})),n.d(t,"d",(function(){return R}));var r=n("lSNA"),i=n.n(r),a=n("QkVN"),o=n.n(a),s=n("BkRI"),c=n.n(s),u=n("mwIZ"),l=n.n(u),h=n("D1y2"),f=n.n(h),d=n("JZM8"),p=n.n(d),g=n("lO2t");function v(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}o.a,c.a,l.a,f.a,p.a;var m=o.a,b=c.a,k=l.a,w=f.a,O=p.a;function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return JSON.parse(JSON.stringify(e))}function j(e,t){return e===t?{}:g.a.isObject(e)&&g.a.isObject(t)?g.a.isDate(e)||g.a.isDate(t)?e.valueOf()===t.valueOf()?{}:t:Object.keys(t).reduce((function(n,r){if(!S(e,r))return y({},n,i()({},r,t[r]));if(g.a.isArray(t[r])){var a=R(e[r],t[r]);return Object.keys(a).length>0?y({},n,i()({},r,t[r])):n}if(g.a.isObject(t[r])){var o=j(e[r],t[r]);return!g.a.isObject(o)||Object.keys(o).length>0?y({},n,i()({},r,o)):n}return e[r]!==t[r]?y({},n,i()({},r,t[r])):n}),{}):t}function R(e,t){if(e===t)return[];if(!g.a.isArray(e)||!g.a.isArray(t))return t;if(e.length<=0&&t.length<=0)return[];if(e.length!==t.length)return t;if(!g.a.isObject(t[0]))return t.filter((function(t){return!e.includes(t)}));var n=[];return t.forEach((function(r,i){var a=j(e[i],t[i]);Object.keys(a).length>0&&n.push(t[i])})),n}},lhgX:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("lwsE"),i=n.n(r),a=function e(t){var n=t.uploadTag,r=t.src,a=t.targetId,o=t.fileName,s=t.extension,c=void 0===s?"dat":s;i()(this,e),this.running=!1,this.src=r,this.uploadTag=n,this.targetId=a,this.fileName=o,this.extension=c,this.error=null}},lnsc: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"frw";return i()(this,r),(a=n.call(this,e,t,o)).name="firstRunWizardService",a}return o()(r,[{key:"checkShopwareId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,i=this.getBasicHeaders(n);return this.httpClient.post("/_action/store/".concat(this.apiEndpoint,"/login"),e,{params:r,headers:i}).then((function(e){return p.handleResponse(e)}))}},{key:"getLicenseDomains",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/store/license-domains",{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}},{key:"verifyLicenseDomain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.post("/_action/store/verify-license-domain",{},{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}},{key:"setFRWStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.post("/_action/store/frw/start",{},{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}},{key:"setFRWFinish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.post("/_action/store/frw/finish",{},{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}}]),r}(p);t.default=g},m9g7: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"message-queue";return i()(this,r),(a=n.call(this,e,t,o)).name="messageQueueService",a}return o()(r,[{key:"consume",value:function(e){var t=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/consume"),{receiver:e},{headers:t}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},oJGZ:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o})),n.d(t,"CancelToken",(function(){return s})),n.d(t,"isCancel",(function(){return c})),n.d(t,"Cancel",(function(){return u}));var r=n("vDqi"),i=n.n(r),a=n("hFht");function o(e){return function(e){var t=new a.default;e.interceptors.response.use((function(e){return e}),(function(e){var n=e.config,r=e.response.status,a=n,o=a.url.replace(a.baseURL,"");return t.whitelist.includes(o)?Promise.reject(e):401===r?(t.isRefreshing||t.fireRefreshTokenRequest().catch((function(){return Promise.reject(e)})),new Promise((function(e,n){t.subscribe((function(t){a.headers.Authorization="Bearer ".concat(t),a.url=a.url.replace(a.baseURL,""),e(i()(a))}),(function(e){if(!Shopware.Application.getApplicationRoot())return n(e),void window.location.reload();Shopware.Application.getApplicationRoot().$router.push({name:"sw.login.index"}),n(e)}))}))):Promise.reject(e)}))}(t=i.a.create({baseURL:d(Shopware.Context.api.apiVersion-1)})),function(e){e.interceptors.response.use((function(e){return e}),(function(e){var t=e.response,n=t.status,r=t.data.errors;if(412===n){var i=r.find((function(e){return"FRAMEWORK__LANGUAGE_NOT_FOUND"===e.code}));i&&(localStorage.removeItem("sw-admin-current-language"),Shopware.State.dispatch("notification/createNotification",{variant:"error",system:!0,autoClose:!1,growl:!0,title:i.title,message:"".concat(i.detail," Please reload the administration."),actions:[{label:"Reload administration",method:function(){return window.location.reload()}}]}))}return Promise.reject(e)}))}(t),l(t,"request",(function(e){return h(e[0])})),l(t,"get",(function(e){return h(e[1])})),l(t,"delete",(function(e){return h(e[1])})),l(t,"head",(function(e){return h(e[1])})),l(t,"options",(function(e){return h(e[1])})),l(t,"post",(function(e){return h(e[2])})),l(t,"put",(function(e){return h(e[2])})),l(t,"patch",(function(e){return h(e[2])})),t;var t}var s=i.a.CancelToken,c=i.a.isCancel,u=i.a.Cancel;function l(e,t,n){var r;r=e[t],e[t]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n(t),r.apply(this,t)}}function h(e){e&&e.version?(e.baseURL=d(e.version),f(e.version),delete e.version):f(Shopware.Context.api.apiVersion-1)}function f(e){e>=Shopware.Context.api.apiVersion||Shopware.Context.api.apiVersion<=1||Shopware.Utils.debug.warn("httpClient","The request uses a deprecated api version: ".concat(e,". You should upgrade the request to the latest api version."))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Shopware.Context.api.apiVersion;return e<=0?"".concat(Shopware.Context.api.apiPath,"/v1"):"".concat(Shopware.Context.api.apiPath,"/v").concat(e)}},pCCB:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("lYO9"),v=n("VXgk"),y=n("SwLI");function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var w=Object.freeze({types:Object.freeze({PRODUCT:"product",CREDIT:"credit",CUSTOM:"custom",PROMOTION:"promotion"}),priceTypes:Object.freeze({ABSOLUTE:"absolute",QUANTITY:"quantity"})}),O=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(k()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cart";return o()(this,r),(i=n.call(this,e,t,a)).name="cartStoreService",i}return c()(r,[{key:"getLineItemTypes",value:function(){return w.types}},{key:"getLineItemPriceTypes",value:function(){return w.priceTypes}},{key:"mapLineItemTypeToPriceType",value:function(e){var t,n=this.getLineItemTypes(),r=this.getLineItemPriceTypes();return(t={},i()(t,n.PRODUCT,r.QUANTITY),i()(t,n.CUSTOM,r.QUANTITY),i()(t,n.CREDIT,r.ABSOLUTE),t)[e]}},{key:"createCart",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="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),i=this.getBasicHeaders(n);return this.httpClient.get(r,{additionalParams:t,headers:i})}},{key:"getCart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),a=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.get(i,{additionalParams:n,headers:a})}},{key:"cancelCart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart"),a=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.delete(i,{additionalParams:n,headers:a})}},{key:"removeLineItems",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart/line-item"),o=b({},this.getBasicHeaders(i),{"sw-context-token":t});return this.httpClient.delete(a,{additionalParams:r,headers:o,data:{ids:n}})}},{key:"getRouteForItem",value:function(e,t){return"_proxy/store-api/".concat(t,"/v").concat(this.getApiVersion(),"/checkout/cart/line-item")}},{key:"getPayloadForItem",value:function(e,t,n,r){var i=Object(g.b)(e.priceDefinition);return i.taxRules=e.priceDefinition.taxRules,i.quantity=e.quantity,i.type=this.mapLineItemTypeToPriceType(e.type),{items:[{id:r,referencedId:r,label:e.label,quantity:e.quantity,type:e.type,description:e.description,priceDefinition:i,stackable:!0,removable:!0,salesChannelId:t}]}}},{key:"saveLineItem",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n._isNew&&n.type===this.getLineItemTypes().PRODUCT,o=n.identifier||n.id||v.default.createId(),s=this.getRouteForItem(o,e,a),c=b({},this.getBasicHeaders(i),{"sw-context-token":t}),u=this.getPayloadForItem(n,e,a,o);return n._isNew?this.httpClient.post(s,u,{additionalParams:r,headers:c}):this.httpClient.patch(s,u,{additionalParams:r,headers:c})}},{key:"addPromotionCode",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/store-api/".concat(e,"/v").concat(this.getApiVersion(),"/checkout/cart/line-item"),o=b({},this.getBasicHeaders(i),{"sw-context-token":t}),s={items:[{type:"promotion",referencedId:n}]};return this.httpClient.post(a,s,{additionalParams:r,headers:o})}},{key:"modifyShippingCosts",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="_proxy/modify-shipping-costs",o=b({},this.getBasicHeaders(r),{"sw-context-token":t});return this.httpClient.patch(a,{salesChannelId:e,shippingCosts:n},{additionalParams:i,headers:o})}},{key:"disableAutomaticPromotions",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="_proxy/disable-automatic-promotions",i=b({},this.getBasicHeaders(n),{"sw-context-token":e});return this.httpClient.patch(r,{},{additionalParams:t,headers:i})}},{key:"enableAutomaticPromotions",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="_proxy/enable-automatic-promotions",i=b({},this.getBasicHeaders(n),{"sw-context-token":e});return this.httpClient.patch(r,{},{additionalParams:t,headers:i})}}]),r}(y.default);t.default=O},qAxG:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var r=n("lwsE"),i=n.n(r),a=n("W8MJ"),o=n.n(a),s=n("uyGl"),c=function(){function e(t,n,r,a,o){i()(this,e),this.hydrator=t,this.changesetGenerator=n,this.entityFactory=r,this.httpClient=a,this.errorResolver=o}return o()(e,[{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{version:Shopware.Context.api.apiVersion};t||(t="/".concat(e.replace(/_/g,"-")));var r=Shopware.EntityDefinition.get(e);return new s.a(t,r.entity,this.httpClient,this.hydrator,this.changesetGenerator,this.entityFactory,this.errorResolver,n)}}]),e}()},qGJC:function(e,t,n){var r=n("8UY5"),i=n("vQB4").default,a=n("N23T").default,o=n("I3+K").default,s=n("/4Xw").default,c=n("X+US").default,u=n("PK6L").default,l=n("vIPW").default,h=n("/ZAt").default,f=n("9NcV").default,d=n("rDlZ").default,p=n("iLPX").default,g=n("4ltZ").default,v=n("Sy+1").default,y=n("5o9L").default,m=n("w44d").default,b=n("UUiw").default,k=n("5xgp").default,w=n("KzKh").default,O=n("gMIu").default,S=n("SwLI").default,P=n("VXgk").default,j=n("lFJ0").default,R=n("1iIE").default,C=n("Eagv").default,E=n("PVjI").default,A=n("D1bQ").default,D=n("5zS2").default,x=n("MvfK").default,I=n("uDJ7").default,_=n("hFht").default,B=n("oJGZ").default,L=n("qAxG").default,N=n("vWwP").default,T=n("1dyo").default,F=n("vEKo").default,M=n("1xnT").default,H=new I(new r({strict:!0}));H.addFactory("component",(function(){return a})).addFactory("template",(function(){return o})).addFactory("module",(function(){return i})).addFactory("entity",(function(){return s})).addFactory("state",(function(){return c})).addFactory("stateDeprecated",(function(){return u})).addFactory("serviceFactory",(function(){return l})).addFactory("classesFactory",(function(){return h})).addFactory("mixin",(function(){return f})).addFactory("filter",(function(){return d})).addFactory("directive",(function(){return p})).addFactory("locale",(function(){return g})).addFactory("shortcut",(function(){return v})).addFactory("plugin",(function(){return y})).addFactory("apiService",(function(){return m})).addFactory("entityDefinition",(function(){return b})).addFactory("workerNotification",(function(){return k}));var W=function(){this.Module={register:i.registerModule,getModuleRegistry:i.getModuleRegistry,getModuleRoutes:i.getModuleRoutes,getModuleByEntityName:i.getModuleByEntityName},this.Component={register:a.register,extend:a.extend,override:a.override,build:a.build,getTemplate:a.getComponentTemplate,getComponentRegistry:a.getComponentRegistry,getComponentHelper:a.getComponentHelper,registerComponentHelper:a.registerComponentHelper},this.Template={register:o.registerComponentTemplate,extend:o.extendComponentTemplate,override:o.registerTemplateOverride,getRenderedTemplate:o.getRenderedTemplate,find:o.findCustomTemplate,findOverride:o.findCustomTemplate},this.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},this.State=c(),this.Mixin={register:f.register,getByName:f.getByName},this.Filter={register:d.register,getByName:d.getByName},this.Directive={register:p.registerDirective,getByName:p.getDirectiveByName},this.Locale={register:g.register,extend:g.extend,getByName:g.getLocaleByName,getLocaleRegistry:g.getLocaleRegistry},this.Shortcut={getShortcutRegistry:v.getShortcutRegistry,getPathByCombination:v.getPathByCombination,register:v.register},this.Plugin={addBootPromise:y.addBootPromise,getBootPromises:y.getBootPromises},this.Service=l,this.Utils=P,this.Application=H,this.FeatureConfig=w,this.ApiService={register:m.register,getByName:m.getByName,getRegistry:m.getRegistry,getServices:m.getServices,has:m.has},this.EntityDefinition={getScalarTypes:b.getScalarTypes,getJsonTypes:b.getJsonTypes,getDefinitionRegistry:b.getDefinitionRegistry,has:b.has,get:b.get,add:b.add,remove:b.remove,getTranslatedFields:b.getTranslatedFields,getAssociationFields:b.getAssociationFields,getRequiredFields:b.getRequiredFields},this.WorkerNotification={register:k.register,getRegistry:k.getRegistry,override:k.override,remove:k.remove,initialize:k.initialize},this.Defaults={systemLanguageId:"2fbb5fe2e29a4d70aa5854ce7ce3e20b",defaultLanguageIds:["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],versionId:"0fa91ce3e96a4bc2be4bd9ce752c3425",storefrontSalesChannelTypeId:"8a243080f92e4c719546314b577cf82b",productComparisonTypeId:"ed535e5722134ac1aa6524f73e26881b",apiSalesChannelTypeId:"f183ee5650cf4bdb8a774337575067a6"},this.Data=D,this.Classes=h({ShopwareError:O,ApiService:S},{_private:{HttpFactory:B,RepositoryFactory:L,ApiContextFactory:N,AppContextFactory:T,RouterFactory:F}}),this.Helper={FlatTreeHelper:j,InfiniteScrollingHelper:R,MiddlewareHelper:A,RefreshTokenHelper:_,SanitizerHelper:C,DeviceHelper:E}};W.prototype={get Context(){return this.State.get("context")},_private:{ApiServices:M},DataDeprecated:x,StateDeprecated:{registerStore:u.registerStore,getStore:u.getStore,getStoreRegistry:u.getStoreRegistry}};var U=new W;window.Shopware=U,t.default=U,e.exports=t.default},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.b)(o,"A filter always needs a name"),!1;if(i.has(e))return Object(r.b)(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"},ssgS: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"store";return i()(this,r),(a=n.call(this,e,t,o)).name="storeService",a}return o()(r,[{key:"ping",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/ping"),{headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"login",value:function(e,t){var n=this.getBasicHeaders(),r=this.getBasicParams();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/login"),{shopwareId:e,password:t},{params:r,headers:n}).then((function(e){return d.default.handleResponse(e)}))}},{key:"checkLogin",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/checklogin"),{},{params:t,headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"logout",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/logout"),{},{params:t,headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getLicenseList",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/licenses"),{params:t,headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getUpdateList",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/updates"),{params:t,headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"downloadPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBasicHeaders(),r=this.getBasicParams({pluginName:e});return t&&(r.unauthenticated=!0),this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/download"),{params:r,headers:n}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getLicenseViolationList",value:function(){var e=this.getBasicHeaders(),t=this.getBasicParams();return this.httpClient.post("/_action/".concat(this.getApiBasePath(),"/plugin/search"),null,{params:t,headers:e}).then((function(e){return d.default.handleResponse(e)}))}},{key:"getBasicParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={language:localStorage.getItem("sw-admin-locale")};return Object.assign({},t,e)}}]),r}(d.default);t.default=g},tGtW: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"integration";return i()(this,r),(a=n.call(this,e,t,o)).name="integrationService",a}return o()(r,[{key:"generateKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/access-key/intergration",{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}}]),r}(p);t.default=g},tTBJ:function(e,t,n){"use strict";n.r(t);var r=n("J4zp"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("SwLI");function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(v()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"snippet";return o()(this,r),(i=n.call(this,e,t,a)).name="snippetService",i}return c()(r,[{key:"save",value:function(e){return this.showDeprecationWarning("save"),e.hasOwnProperty("id")&&null!==e.id?this.updateById(e.id,e):this.create(e)}},{key:"getByKey",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.getBasicHeaders();return this.httpClient.post("/_action/".concat(this.getApiBasePath()),{translationKey:e,page:t,limit:n,isCustom:r},{headers:i}).then((function(e){return g.default.handleResponse(e)}))}},{key:"getFilter",value:function(){var e=this.getBasicHeaders();return this.httpClient.get("/_action/".concat(this.getApiBasePath(),"/filter"),{headers:e}).then((function(e){return g.default.handleResponse(e)}))}},{key:"getSnippets",value:function(e,t){var n=this.getBasicHeaders(),r=t||e.getLastKnownLocale();return this.httpClient.get("/_admin/snippets?locale=".concat(r),{headers:n}).then((function(e){return g.default.handleResponse(e)})).then((function(t){var n=e.getLocaleRegistry();Object.entries(t).forEach((function(t){var r=i()(t,2),a=r[0],o=r[1],s=n.has(a)?"extend":"register";e[s](a,o)}))}))}}]),r}(g.default);t.default=y},uDJ7:function(e,t,n){"use strict";n.r(t);var r=n("RIqP"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=function(){function e(t){o()(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 c()(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:"registerConfig",value:function(e){return this.registerApiContext(e.apiContext),this.registerAppContext(e.appContext),this}},{key:"registerApiContext",value:function(e){return Shopware.Context.api=Shopware.Classes._private.ApiContextFactory(e),this}},{key:"registerAppContext",value:function(e){return Shopware.Context.app=Shopware.Classes._private.AppContextFactory(e),this}},{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(){return Shopware.FeatureConfig.init(Shopware.Context.app.features),this}},{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.initState().registerConfig(e).initializeFeatureFlags().startBootProcess()}},{key:"initState",value:function(){if(this.getContainer("init").state)return this;throw new Error("State could not be initialized")}},{key:"getApplicationRoot",value:function(){return!!this.view.root&&this.view.root}},{key:"setViewAdapter",value:function(e){this.view=e}},{key:"startBootProcess",value:function(){var e=this.getContainer("service").loginService;return e.isLoggedIn()?this.bootFullApplication():(e.logout(),this.bootLogin())}},{key:"bootLogin",value:function(){var e=this;return sessionStorage.setItem("sw-login-should-reload","true"),this.initializeLoginInitializer().then((function(){return e.view.initDependencies()})).then((function(){return e.createApplicationRoot()})).catch((function(t){return e.createApplicationRootError(t)}))}},{key:"bootFullApplication",value:function(){var e=this,t=this.getContainer("init");return this.initializeInitializers(t).then((function(){return e.loadPlugins()})).then((function(){return Promise.all(Shopware.Plugin.getBootPromises())})).then((function(){return e.view.initDependencies()})).then((function(){return e.createApplicationRoot()})).catch((function(t){return e.createApplicationRootError(t)}))}},{key:"createApplicationRoot",value:function(){var e=this.getContainer("init").router.getRouterInstance();return"testing"===Shopware.Context.app.environment||(this.view.init("#app",e,this.getContainer("service")),Shopware.Context.app.firstRunWizard&&!e.history.current.name.startsWith("sw.first.run.wizard.")&&e.push({name:"sw.first.run.wizard.index"})),Promise.resolve(this)}},{key:"createApplicationRootError",value:function(e){console.error(e);var t=this.getContainer("init").router.getRouterInstance();this.view.init("#app",t,this.getContainer("service")),this.view.root.initError=e,t.push({name:"error"})}},{key:"initializeInitializers",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=this.getAsyncInitializers(e);return Promise.all(r)}},{key:"initializeLoginInitializer",value:function(){var e=["login","baseComponents","locale","apiServices","svgIcons","stateDeprecated"],t=this.getContainer("init");e.forEach((function(e){t.hasOwnProperty(e)||console.error('The initializer "'.concat(e,'" does not exists'))})),this.$container.digest(e.map((function(e){return"init.".concat(e)})));var n=this.getAsyncInitializers(e);return Promise.all(n)}},{key:"getAsyncInitializers",value:function(e){var t=this.getContainer("init"),n=[];return Object.keys(e).forEach((function(e){var r=t[e];r&&"Promise"===r.constructor.name&&n.push(r)})),n}},{key:"loadPlugins",value:function(){var e=this;var t=Shopware.Context.app.config.bundles,n=Object.values(t).map((function(t){return e.injectPlugin(t)}));return Promise.all(n)}},{key:"injectPlugin",value:function(e){var t=this,n=[],r=[];return e.js&&Array.isArray(e.js)?n=e.js.map((function(e){return t.injectJs(e)})):e.js&&n.push(this.injectJs(e.js)),e.css&&Array.isArray(e.css)?r=e.css.map((function(e){return t.injectCss(e)})):e.css&&r.push(this.injectCss(e.css)),Promise.all([].concat(i()(n),i()(r)))}},{key:"injectJs",value:function(e){return new Promise((function(t,n){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){t()},r.onerror=function(){n()},document.body.appendChild(r)}))}},{key:"injectCss",value:function(e){return new Promise((function(t,n){var r=document.createElement("link");r.rel="stylesheet",r.href=e,r.onload=function(){t()},r.onerror=function(){n()},document.head.appendChild(r)}))}}]),e}();t.default=u},uaRI: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"user";return i()(this,r),(a=n.call(this,e,t,o)).name="userService",a}return o()(r,[{key:"getUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_info/me",{params:n,headers:r}).then((function(e){return d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g},umIt:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),i=n.n(r),a=n("lwsE"),o=n.n(a),s=n("W8MJ"),c=n.n(s),u=n("a1gu"),l=n.n(u),h=n("Nsbk"),f=n.n(h),d=n("7W2i"),p=n.n(d),g=n("SwLI");function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=f()(t);if(v()){var r=f()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return l()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mail-template";return o()(this,r),(i=n.call(this,e,t,a)).name="mailService",i}return c()(r,[{key:"testMailTemplate",value:function(e,t,n,r){var a="/_action/".concat(this.getApiBasePath(),"/send");return this.httpClient.post(a,{contentHtml:t.contentHtml,contentPlain:t.contentPlain,recipients:i()({},e,e),salesChannelId:r,mediaIds:n.getIds(),subject:t.subject,senderMail:t.senderMail,senderName:t.senderName,testMode:!0},{headers:this.getBasicHeaders()}).then((function(e){return g.default.handleResponse(e)}))}}]),r}(g.default);t.default=y},uyGl:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("RIqP"),i=n.n(r),a=n("lSNA"),o=n.n(a),s=n("lwsE"),c=n.n(s),u=n("W8MJ"),l=n.n(u),h=n("0Lse");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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(){function e(t,n,r,i,a,o,s,u){c()(this,e),this.route=t,this.entityName=n,this.httpClient=r,this.hydrator=i,this.changesetGenerator=a,this.entityFactory=o,this.errorResolver=s,this.options=u}return l()(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,version:this.options.version}).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,version:this.options.version}).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 h.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 this.errorResolver.resetApiErrors().then((function(){return n.sendDeletions(a,t)})).then((function(){return n.sendChanges(e,i,t)}))}},{key:"clone",value:function(e,t,n){return e?this.httpClient.post("/_action/clone".concat(this.route,"/").concat(e),n,{headers:this.buildHeaders(t),version:this.options.version}).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:"saveAll",value:function(e,t){var n=this,r=[];return e.forEach((function(e){r.push(n.save(e,t))})),Promise.all(r)}},{key:"sync",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.getSyncChangeset(e),a=i.changeset,o=i.deletions;return this.errorResolver.resetApiErrors().then((function(){return n.sendDeletions(o,t)})).then((function(){return n.sendUpserts(a,r,t)}))}},{key:"discard",value:function(e){if(e){var t=this.changesetGenerator.generate(e).changes;if(t){var n=e.getOrigin();Object.keys(t).forEach((function(t){e[t]=n[t]}))}}}},{key:"sendUpserts",value:function(e,t,n){var r=this;if(e.length<=0)return Promise.resolve();var i=e.map((function(e){return e.changes})),a=this.buildHeaders(n);return a["fail-on-error"]=t,this.httpClient.post("_action/sync",o()({},this.entityName,{entity:this.entityName,action:"upsert",payload:i}),{headers:a,version:this.options.version}).then((function(e){var t=e.data;if(!1===t.success)throw t;return Promise.resolve()})).catch((function(t){var n=r.getSyncErrors(t);throw r.errorResolver.handleWriteErrors({errors:n},e),t}))}},{key:"getSyncErrors",value:function(e){return e.response.data.data[this.entityName].result.reduce((function(e,t){return e.push.apply(e,i()(t.errors)),e}),[])}},{key:"getSyncChangeset",value:function(e){var t=this;return e.reduce((function(e,n){var r,a=t.changesetGenerator.generate(n),o=a.changes,s=a.deletionQueue;if((r=e.deletions).push.apply(r,i()(s)),null===o)return e;var c=t.changesetGenerator.getPrimaryKeyData(n);return Object.assign(o,c),e.changeset.push({entity:n,changes:o}),e}),{changeset:[],deletions:[]})}},{key:"assign",value:function(e,t){var n=this.buildHeaders(t);return this.httpClient.post("".concat(this.route),{id:e},{headers:n,version:this.options.version})}},{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,version:this.options.version}).catch((function(t){var r=t.response.data.errors.map((function(t){return{error:t,id:e,entityName:n.entityName}}));throw n.errorResolver.handleDeleteError(r),t}))}},{key:"syncDeleted",value:function(e,t){var n=this,r=this.buildHeaders(t);r["fail-on-error"]=!0;var i=e.map((function(e){return{id:e}}));return this.httpClient.post("_action/sync",o()({},this.entityName,{entity:this.entityName,action:"delete",payload:i}),{headers:r,version:this.options.version}).then((function(e){var t=e.data;if(!1===t.success)throw t;return Promise.resolve()})).catch((function(t){var r=t.response.data.data[n.entityName].result.reduce((function(t,r,i){return r.errors&&r.errors.forEach((function(r){t.push({error:r,entityName:n.entityName,id:e[i]})})),t}),[]);throw n.errorResolver.handleDeleteError(r),t}))}},{key:"create",value:function(e,t){return this.entityFactory.create(this.entityName,t,e)}},{key:"createVersion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.buildHeaders(t),a={};n&&(a.versionId=n),r&&(a.versionName=r);var o="_action/version/".concat(this.entityName.replace(/_/g,"-"),"/").concat(e);return this.httpClient.post(o,a,{headers:i,version:this.options.version}).then((function(e){return d({},t,{},{versionId:e.data.versionId})}))}},{key:"mergeVersion",value:function(e,t){var n=this.buildHeaders(t),r="_action/version/merge/".concat(this.entityName.replace(/_/g,"-"),"/").concat(e);return this.httpClient.post(r,{},{headers:n,version:this.options.version})}},{key:"deleteVersion",value:function(e,t,n){var r=this.buildHeaders(n),i="/_action/version/".concat(t,"/").concat(this.entityName.replace(/_/g,"-"),"/").concat(e);return this.httpClient.post(i,{},{headers:r,version:this.options.version})}},{key:"sendChanges",value:function(e,t,n){var r=this,i=this.buildHeaders(n);return e.isNew()?(t=t||{},Object.assign(t,{id:e.id}),this.httpClient.post("".concat(this.route),t,{headers:i,version:this.options.version}).catch((function(n){throw r.errorResolver.handleWriteErrors(n.response.data,[{entity:e,changes:t}]),n}))):null==t?Promise.resolve():this.httpClient.patch("".concat(this.route,"/").concat(e.id),t,{headers:i,version:this.options.version}).catch((function(n){throw r.errorResolver.handleWriteErrors(n.response.data,[{entity:e,changes:t}]),n}))}},{key:"sendDeletions",value:function(e,t){var n=this,r=this.buildHeaders(t),i=e.map((function(e){return n.httpClient.delete("".concat(e.route,"/").concat(e.key),{headers:r,version:n.options.version}).catch((function(e){throw n.errorResolver.handleDeleteError(e),e}))}));return Promise.all(i)}},{key:"buildHeaders",value:function(e){var t=!(0,Shopware.Utils.object.hasOwnProperty)(this.options,"compatibility")||this.options.compatibility,n={Accept:"application/vnd.api+json",Authorization:"Bearer ".concat(e.authToken.access),"Content-Type":"application/json","sw-api-compatibility":t};return e.languageId&&(n=Object.assign({"sw-language-id":e.languageId},n)),e.currencyId&&(n=Object.assign({"sw-currency-id":e.currencyId},n)),e.versionId&&(n=Object.assign({"sw-version-id":e.versionId},n)),e.inheritance&&(n=Object.assign({"sw-inheritance":e.inheritance},n)),n}},{key:"schema",get:function(){return Shopware.EntityDefinition.get(this.entityName)}}]),e}()},vEKo:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n("RIqP"),i=n.n(r);function a(e,t,n,r){var a=[],o=[],s=null;return{addRoutes:function(e){return a.push.apply(a,i()(e)),a},addModuleRoutes:function(e){return o.push.apply(o,i()(e)),o},createRouterInstance:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o.map((function(e){return f(e)})),r=a.map((function(e){return f(e)})),i=h(r,n),u=Object.assign({},t,{routes:i}),l=new e(u);return c(l),s=l,l},getViewComponent:d,getRouterInstance:function(){return s},_setModuleFavicon:p};function c(e){var t=Shopware.Context.api.assetsPath;return e.beforeEach((function(e,n,i){p(e,t);var a=r.isLoggedIn(),o=new Shopware.Helper.RefreshTokenHelper,s=["/login","/login/info","/login/recovery"];return e.meta&&!0===e.meta.forceRoute?i():"login"!==e.name&&!s.includes(e.path)&&!e.path.startsWith("/login/user-recovery/")||a?("login"===e.name||s.includes(e.path)||e.path.startsWith("/login/user-recovery/"))&&a?i({name:"core"}):a||(sessionStorage.setItem("sw-admin-previous-route",JSON.stringify({fullPath:e.fullPath,name:e.name})),o.isRefreshing)?e.meta.privilege&&!Shopware.Service("acl").can(e.meta.privilege)?i({name:"sw.privilege.error.index"}):u(e,n,i):o.fireRefreshTokenRequest().then((function(){return u(e,n,i)})).catch((function(){return i({name:"sw.login.index"})})):i()})),e}function u(e,t,n){var r=l(e);null!==r&&(e.meta.$module=r.manifest);var i=function(e,t){if(!t||!t.navigation)return null;var n=t.navigation,r=null;return n.forEach((function(t){t.path===e.name&&(r=t)})),r}(e,r);return null!==i&&(e.meta.$current=i),n()}function l(e){var t=n.getModuleRegistry(),r=null;return t.forEach((function(t){r||(t.routes.has(e.name)||(e.meta&&e.meta.parentPath?e.meta.parentPath:void 0)&&t.routes.has(e.meta.parentPath))&&(r=t)})),r}function h(e,t){var n=[],r=[];return t.forEach((function(e){!0!==e.coreRoute?r.push(e):n.push(e)})),e.map((function(e){return!0===e.root&&(e.children=r),e})),e=[].concat(i()(e),n)}function f(e){if((0,Shopware.Utils.object.hasOwnProperty)(e,"components")&&Object.keys(e.components).length){var t={};Object.keys(e.components).forEach((function(n){var r=e.components[n];"string"==typeof r&&(r=d(r)),t[n]=r})),(e=function e(t){t.children&&t.children.length&&(t.children=t.children.map((function(t){var n=t.component;return"string"==typeof n&&(n=d(n)),t.component=n,t.children&&(t=e(t)),t})));return t}(e)).components=t}return"string"==typeof e.component&&(e.component=d(e.component)),e}function d(e){return Shopware.Application.view.getComponent(e)}function p(e,t){var n=l(e);if(!n)return!1;var r=n.manifest.favicon||null,i=document.getElementById("dynamic-favicon");i.rel="shortcut icon";var a=n.manifest.faviconSrc||"administration";return 0!==t.length&&(t="".concat(t).concat(a,"/")),i.href=r?"".concat(t,"static/img/favicon/modules/").concat(r):"".concat(t,"static/img/favicon/favicon-32x32.png"),!0}}},vIPW:function(e,t,n){"use strict";n.r(t),t.default=function(e){return this.get=function(e){return Shopware.Application.getContainer("service")[e]},this.list=function(){return Shopware.Application.getContainer("service").$list()},this.register=function(e,t){return Shopware.Application.addServiceProvider(e,t)},this.registerMiddleware=function(){var e;return(e=Shopware.Application).addServiceProviderMiddleware.apply(e,arguments)},this.registerDecorator=function(){var e;return(e=Shopware.Application).addServiceProviderDecorator.apply(e,arguments)},e?this.get(e):this}.bind({})},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||(c.go(t),e.push(t))}))})),e},registerModule:function(e,t){var n=t.type||"plugin",o=new Map;if(!e)return Object(r.b)("ModuleFactory",'Module has no unique identifier "id". Abort registration.',t),!1;if(s.has(e))return Object(r.b)("ModuleFactory",'A module with the identifier "'.concat(e,'" is registered already. Abort registration.'),s.get(e)),!1;var u=e.split("-");if(u.length<2)return Object(r.b)("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.b)("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],c=t.routePrefixName?t.routePrefixName:u.join(".");s.name="".concat(c,".").concat(a);var l=t.routePrefixPath?t.routePrefixPath:u.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.b)("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){return 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})),t}(s,u,a),o=function e(t,n){return 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})),n}(s,o)),s.alias&&s.alias.length>0&&!s.coreRoute&&(s.alias="/".concat(u.join("/"),"/").concat(s.alias)),s.isChildren=!1,s.routeKey=a,o.set(s.name,s))}));if(t.routeMiddleware&&a.a.isFunction(t.routeMiddleware))c.use(t.routeMiddleware);else if(0===o.size)return Object(r.b)("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.b)("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.b)("ModuleFactory",'The navigation entry needs a property called "label"'),!1):(Object(r.b)("ModuleFactory","The navigation entry does not contains the necessary properties","Abort registration of the navigation entry",e),!1)})),l.navigation=t.navigation}Object(i.f)(t,"settingsItem")&&t.settingsItem&&function(e,t){if(Object(i.f)(t,"flag")&&!Shopware.FeatureConfig.isActive(t.flag))return;Array.isArray(t.settingsItem)||(t.settingsItem=[t.settingsItem]);t.settingsItem.forEach((function(n){n.group&&n.to&&(n.icon||n.iconComponent)?(Object(i.f)(n,"id")&&n.id||(n.id=e),Object(i.f)(n,"name")&&n.name||(n.name=t.name),Object(i.f)(n,"label")&&n.label||(n.label=t.title),Shopware.State.commit("settingsItems/addItem",n)):Object(r.b)("ModuleFactory","The settingsItem entry does not contain the necessary properties","Abort registration of settingsItem entry",n)}))}(e,t);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,c=new o.default},vVie: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p=Shopware.Classes.ApiService,g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(d()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"recommendations";return i()(this,r),(a=n.call(this,e,t,o)).name="recommendationsService",a}return o()(r,[{key:"getRecommendations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/store/".concat(this.apiEndpoint),{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}},{key:"getRecommendationRegions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=this.getBasicHeaders(t);return this.httpClient.get("/_action/store/recommendation-regions",{params:n,headers:r}).then((function(e){return p.handleResponse(e)}))}}]),r}(p);t.default=g},vWwP:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n("J4zp"),i=n.n(r);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Shopware.Defaults,n=!1,r=o(e,n),a="".concat(r,"/api"),c="".concat(e.apiVersion),u=localStorage.getItem("sw-admin-current-language")||t.systemLanguageId;return Shopware.State.commit("context/setApiInstallationPath",r),Shopware.State.commit("context/setApiApiPath",a),Shopware.State.commit("context/setApiApiResourcePath","".concat(a,"/v").concat(c)),Shopware.State.commit("context/setApiApiVersion",c),Shopware.State.commit("context/setApiAssetsPath",s(e.assetPath,n)),Shopware.State.commit("context/setApiLanguageId",u),Shopware.State.commit("context/setApiInheritance",!1),n&&(Shopware.State.commit("context/setApiSystemLanguageId",t.systemLanguageId),Shopware.State.commit("context/setApiLiveVersionId",t.versionId)),Object.entries(e).forEach((function(e){var t=i()(e,2),n=t[0],r=t[1];Shopware.State.commit("context/addApiValue",{key:n,value:r})})),Shopware.Context.api}function o(e,t){if(t)return"";var n="";return e.schemeAndHttpHost&&e.schemeAndHttpHost.length&&(n="".concat(e.schemeAndHttpHost).concat(e.basePath)),n}function s(e,t){return t?"":"".concat(e,"/bundles/")}},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.b)(s,"A apiService always needs a name"),!1;if(c(e))return Object(a.b)(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:c};var o=new Map,s="ApiServiceFactory";function c(e){return o.has(e)}},yoR4: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("a1gu"),c=n.n(s),u=n("Nsbk"),l=n.n(u),h=n("7W2i"),f=n.n(h),d=n("SwLI");function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var g=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=l()(t);if(p()){var r=l()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return c()(this,e)});function r(e,t){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"user";return i()(this,r),(a=n.call(this,e,t,o)).name="userRecoveryService",a.context=Shopware.Context,a}return o()(r,[{key:"createRecovery",value:function(e){var t="/_action/".concat(this.getApiBasePath(),"/user-recovery");return this.httpClient.post(t,{email:e},{params:{},headers:this.getBasicHeaders()}).then((function(e){d.default.handleResponse(e)}))}},{key:"checkHash",value:function(e){var t="/_action/".concat(this.getApiBasePath(),"/user-recovery/hash");return this.httpClient.get(t,{params:{hash:e},headers:this.getBasicHeaders()}).then((function(e){d.default.handleResponse(e)}))}},{key:"updateUserPassword",value:function(e,t,n){var r="/_action/".concat(this.getApiBasePath(),"/user-recovery/password");return this.httpClient.patch(r,{hash:e,password:t,passwordConfirm:n},{params:{},headers:this.getBasicHeaders()}).then((function(e){d.default.handleResponse(e)}))}}]),r}(d.default);t.default=g}},[["KMPG","runtime","vendors-node"]]]);