1export const __webpack_esm_id__=5448;export const __webpack_esm_ids__=[2560,5448,8213];export const __webpack_esm_modules__={4141(e,t,i){i.d(t,{A:()=>a});i(98992),i(23215);const s=(e,t)=>typeof e==typeof t&&(Array.isArray(e)?e.length===t.length&&e.every((e,i)=>s(e,t[i])):"object"==typeof e?e instanceof Date?e.getTime()===t.getTime():Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(i=>s(e[i],t[i])):e===t),a=s},64580(e,t,i){i.r(t);var s=i(28686),a=i(75682),o=i(49120),c=i(73267),n=i(72560),r=i(75879);(0,i(21956).y)({product:c.A,prices:n.A,templates:r.A}),(0,a.A)(),(0,o.A)(".global-container").style.opacity="1",(0,s.default)(),document.body.addEventListener("showSustainabilityLabel",()=>{(0,o.A)(".environmental-label").classList.remove("d-none")}),document.body.addEventListener("hideSustainabilityLabel",()=>{(0,o.A)(".environmental-label").classList.add("d-none")}),document.body.addEventListener("validationSuccess",()=>{(0,o.A)(".seo-section").classList.remove("no-opacity")},!1)},72560(e,t,i){i.d(t,{A:()=>S});i(74423),i(98992),i(23215),i(54520),i(72577),i(3949),i(81454),i(8872),i(78898),i(14603),i(47566),i(98721);var s=i(85575),a=i(16838);function o(e,t){return e&&t?(parseFloat(e)/(0,a.A)(t)).toFixed(2):""}var c=i(55457),n=i(95666),r=i(70203);const l=(e,t,i)=>{const s=Array.isArray(t)?t:t.match(/([^[.\]])+/g);s.reduce((e,t,a)=>(void 0===e[t]&&(e[t]={}),a===s.length-1&&(e[t]=i),e[t]),e)};var d=i(42068),u=i(33003),m=i(59461),p=i(73872);const y=class{async fetchProductInventory(e){const{productQuoteData:{validProductionTimes:t,mcpSku:i,mcpAttributes:a},minimalPurchasableQuantity:o}=e,c={mcpSku:i,mcpAttributes:a,productionTime:t[0],quantity:o??1};try{const e=await p.A.post("/product/inventory/",c);return s.A.info("Inventory",e.data.inventory),e.data.inventory}catch(e){s.A.error(e)}}},v=(e,t,i)=>{let s;return(0,n.A)(e)||(s=Object.keys(e).find(s=>{const a=e[s];if(!(0,n.A)(a)){const e=a?.info?.deliveryOption===t,s=a?.info?.productionTime?.toString()===i.toString();return e&&s}return!1}),s||(s=Object.keys(e).find(t=>{const i=e[t];return!(0,n.A)(i)}))),s},S={namespaced:!0,state:{prices:{},dates:{},prioritiesWithOptionIds:{},minPrice:1,discountedPrices:{},unitPrices:{},pricesDebug:{},pricingRequest:{},selectedPrice:{},selectedDiscountedPrice:{},quantities:{},selectedQuantity:0,deliveryDateKeys:[],selectedDeliveryDate:"",selectedShippingOptionId:"",fetchError:{hasError:!1},priceRequestPending:!0,datesRequestPending:!0,taxRate:0,deliveryDateWithFallback:!1,edoTracingRecord:null,hts:"",unsps:"",source:"",useFallbackMethodForDeliveryDateCalculation:!1,fileCheckValue:0,hasFileCheck:!1,showingTaxedPrices:!1,servicesPrices:{},availableQuantity:0,productInventory:{},hasInventory:!1,isProductOutOfStock:!1,isInventoryFuture:!1,inventoryStatus:"",isVatAmountVisible:!0,isShippingAmountVisible:!0,promoCode:{},shippingPrice:{},shouldClearPromoCode:!1},actions:{setFallbackModeForDateCalculation:(e,t)=>{t.useFallback?e.commit("setFallbackModeOn"):e.commit("setFallbackModeOff")},getProductInventory:async(e,t)=>{const i=new y,a=await i.fetchProductInventory(t),o=a?.hasInventory;if(e.commit("setHasInventory",o),e.commit("setIsProductOutOfStock",!1),o){const t=a?.immediateQuantity,{futureAvailabilityQuantity:i}=e.getters;e.state.isInventoryFuture&&!(0,n.A)(i)?e.commit("setAvailableQuantity",i):e.commit("setAvailableQuantity",t),e.commit("setProductInventory",a),s.A.info(`Product hasInventory? (hasInventory=${o}, immediateQuantity=${t})`);const c=a?.isOutOfStock??!1;c&&(s.A.info("Product is out of stock",c),e.commit("setIsProductOutOfStock",c))}},getPrices:async(e,t)=>{const i=Date.now();let a=[];a=(e=>(0,n.A)(e.initialQuantities)||1===e.initialQuantities.length&&0===e.initialQuantities[0])(t)?(e=>{let t=[];const i=e.validQuantities;return(0,r.A)(i)||(0,n.A)(i)||("listOfRanges"===i.type&&i?.attributeRanges?t=[i.attributeRanges[0].minimum.toString()]:"listOfValues"===i.type&&i?.attributeValues&&(t=i.attributeValues.map(e=>e.value.toString()))),t})(t):(0,u.A)(t.initialQuantities,t.validQuantities).map(e=>e.toString()),t.minimalPurchasableQuantity&&(a=a.filter(e=>e>=t.minimalPurchasableQuantity)),s.A.log("Final quantities",a);const{inventoryStatus:o}=e.state;(0,r.A)(o)||"disabled"===e.state.inventoryStatus||await e.dispatch("getProductInventory",t),e.commit("priceRequestStart"),e.commit("datesRequestStart"),axios.post("/product/quote/",{...t.productQuoteData,quantities:a,debug:!0}).then(o=>{if(s.A.info("Prices: ",Date.now()-i," ms"),e.commit("setDebug",o.data),s.A.log("Quote",o.data),"failure"===o.data.status||(0,n.A)(o.data.records))e.commit("error",o.data||"prices empty response"),e.commit("priceRequestEnd"),e.commit("datesRequestEnd");else{const i={productId:t.cimCommSku,mcpAttributes:t.mcpAttributes,customQuantity:t.customQuantity,quantities:a,priorities:o.data.enabledDeliveryOptions,isThirdPartyProduct:t.isThirdPartyProduct,productQuoteData:t.productQuoteData};e.dispatch("getDates",i),e.commit("success"),e.commit("updateSource",t),e.commit("fillPrice
1s",{records:o.data.records,availableQuantity:e.state.availableQuantity,hasInventory:e.state.hasInventory&&!e.state.isInventoryFuture}),e.commit("fillVatValue",o.data),e.commit("fillSelectedPrice",{payload:t,availableQuantity:e.state.availableQuantity,hasInventory:e.state.hasInventory&&!e.state.isInventoryFuture}),e.commit("validateConfig"),e.commit("setPricingRequest",o.data.pricingRequest),e.commit("priceRequestEnd")}}).catch(t=>{e.commit("error",t),e.commit("priceRequestEnd"),e.commit("datesRequestEnd")}),t.shouldRequestServiceQuote&&axios.post("/product/service-quote/",{...t.serviceQuoteData,quantities:a}).then(t=>{if(s.A.log("service Quote",t.data),t.data.success){const i=t?.data?.services;(0,n.A)(i)||e.commit("setServicesPrices",i);const s=t?.data?.services?.file_check;(0,n.A)(s)||e.commit("fileCheckUpdate",s)}}).catch(e=>{s.A.error(e)})},getDates:async(e,t)=>{t["force-fallback-method-usage"]=e.state.useFallbackMethodForDeliveryDateCalculation;try{const i=await axios.post("/product/get-delivery-dates/",t,{timeout:25e3});e.commit("setDebug",i.data),s.A.log("Dates",i.data),"failure"===i.data.status||(0,n.A)(i.data.dates)?e.commit("error",i.data||"dates empty response"):(e.commit("success"),e.commit("fillDates",i.data),e.commit("updateSelectedPrice"))}catch(i){s.A.log("getDates error",i),"ECONNABORTED"===i.code?(e.commit("setFallbackModeOn"),await e.dispatch("getDates",t)):e.commit("error",i)}finally{s.A.log("getDates datesRequestEnd"),e.commit("datesRequestEnd")}},managePriceChange:e=>{e.commit("managePricesUpdate"),e.commit("validateConfig")},updateSelection:(e,t)=>{e.commit("updateSource",t),e.commit("updateSelectedQuantity",t),e.commit("updateSelectedDeliveryDate",t),e.commit("updateSelectedPrice"),e.commit("validateConfig")},updateSelectionForPriority:(e,t)=>{e.commit("updateSelectedQuantity",t),e.commit("updateSelectedDeliveryDateForPriority",t),e.commit("updateSelectedPrice"),e.commit("validateConfig")},updateSelectionPanoramic:(e,t)=>{e.commit("updateSource",t),e.commit("updateSelectedQuantity",t),e.commit("updateSelectedDeliveryDate",t),e.commit("updateSelectedPrice"),e.commit("validateConfigPanoramic")},setServicesOptions:(e,t)=>{e.commit("fileCheckUpdate",t?.fileCheckValue),e.commit("hasFileCheckUpdate",t?.hasFileCheck)},setShowingTaxedPrices:(e,t)=>{e.commit("setShowingTaxedPrices",t)},setServicesPrices:(e,t)=>{e.commit("setServicesPrices",t)},setInventoryStatus:(e,t)=>{e.commit("setInventoryStatus",t)},setVatAmountVisibility:(e,t)=>{e.commit("setVatAmountVisibility",t)},setShippingAmountVisibility:(e,t)=>{e.commit("setShippingAmountVisibility",t)},doPriceRequestStart:(e,t)=>{e.commit("priceRequestStart")},getLossLeaderQuote:async(e,t)=>{e.commit("priceRequestStart"),e.commit("datesRequestStart");try{const i=new URLSearchParams(window.location.search),s=await axios.post("/product/loss-leader-quote",t,{headers:{"X-Short-Id":i.get("short")??i.get("__pc")}});if("failure"===s.data.status)e.commit("error",s.data?.error||"empty response");else{const t=s.data?.quote??null;e.commit("setLossLeaderQuote",t),e.commit("fillDates",t),e.commit("success")}}catch(t){e.commit("error",t)}finally{e.commit("priceRequestEnd"),e.commit("datesRequestEnd")}},setShippingPrice:(e,t)=>{e.commit("setShippingPrice",t)},disablePromoCodeInput:(e,t)=>{e.commit("disablePromoCodeInput",t)}},mutations:{priceRequestStart(e){e.priceRequestPending=!0},priceRequestEnd(e){e.priceRequestPending=!1},datesRequestStart(e){e.datesRequestPending=!0},datesRequestEnd(e){e.datesRequestPending=!1},success:e=>{e.fetchError={hasError:!1}},fillPrices:(e,{records:t,availableQuantity:i,hasInventory:c})=>{s.A.info(`fill prices (availableQuantity=${i}, ${c})`),e.prices=((e,t,i)=>{if(!i)return e;const s=(0,a.A)(t);return Object.keys(e).filter(t=>{const i=Object.keys(e[t])[0],o=e[t][i];return(0,a.A)(o.quantity)<=s}).reduce((t,i)=>(t[i]=e[i],t),{})})(t,i,c),e.discountedPrices={},e.unitPrices={};const{minPrice:n,prices:r}=e;Object.keys(r).forEach(t=>{Object.keys(r[t]).forEach(i=>{const s=r[t][i],a=(0,m.A)(s,n);let c;null!==a?(l(e.discountedPrices,`${t}.${i}`,a),c=o(a.amount,t)):c=o(s.amount,t),l(e.unitPrices,`${t}.${i}`,c)})}),e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{}},fillDates:(e,t)=>{const i=Object.entries(t.dates),s=Object.fromEntries(i.map(([e,t])=>[e,t.date])),a=Object.fromEntries(i.map(([e,t])=>[e,t?.optionId]));e.dates=s,e.prioritiesWithOptionIds=a,e.deliveryDateWithFallback=t.deliveryDateWithFallback,e.deliveryDateKeys=Object.keys(s),e.edoTracingRecord=t?.tracingRecord,e.deliveryDateKeys.includes(e.selectedDeliveryDate)||(e.selectedDeliveryDate=Object.values(e.deliveryDateKeys)[0])},fillVatValue:(e,t)=>
1{t.taxRate?e.taxRate=Math.round(100*t.taxRate)/100:e.taxRate=0,e.hts=t.hts,e.unsps=t.unsps},setDebug:(e,t)=>{e.pricesDebug=t.debug},setPricingRequest:(e,t)=>{e.pricingRequest=t},updateSelectedPrice:e=>{e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{}},updateSelectedQuantity:(e,t)=>{e.selectedQuantity=t.quantity},updateSelectedDeliveryDate:(e,t)=>{e.selectedDeliveryDate=t.date},updateSelectedDeliveryDateForPriority:(e,t)=>{const{deliveryOption:i,productionTime:s}=t,a=e.prices[e.selectedQuantity],o=v(a,i,s);o&&(e.selectedDeliveryDate=o)},fillSelectedPrice:(e,{payload:t,availableQuantity:i,hasInventory:o})=>{s.A.info(`fill Selected Price (availableQuantity=${i}, ${o})`),e.quantities=((e,t,i)=>{if(!i)return e;const s=(0,a.A)(t);return e.filter(e=>e<=s)})(Object.keys(e.prices),i,o);const{customQuantity:c,source:l}=t;if(void 0!==c&&("customQuantity"===e.source||(0,n.A)(e.selectedPrice))&&(e.selectedQuantity=c),e.prices&&(((0,r.A)(e.selectedQuantity)||0===e.selectedQuantity||(0,r.A)(e.prices[e.selectedQuantity]))&&(e.selectedQuantity=Number(Object.keys(e.prices)[0])),o&&void 0!==c&&i<c&&(e.selectedQuantity=i),e.prices&&e.prices[e.selectedQuantity]&&(e.deliveryDateKeys=Object.keys(e.prices[e.selectedQuantity])),(0,n.A)(e.selectedPrice)&&(0,d.A)(e.prices[e.selectedQuantity])&&e.deliveryDateKeys.length>0)){let i;t.defaultDeliveryKey&&(i=e.deliveryDateKeys.find(e=>e===t.defaultDeliveryKey)),e.selectedDeliveryDate=i??e.deliveryDateKeys.at(0),e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{}}if(!(0,n.A)(e.selectedPrice)){const t=e.selectedPrice?.info?.deliveryOption,i=e.selectedPrice?.info?.productionTime;if(t&&i){const s=e.prices[e.selectedQuantity],a=v(s,t,i);a&&(e.selectedDeliveryDate=a,"variants"===l?e.selectedQuantity=c:e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{})}}""!==e.selectedDeliveryDate&&e.deliveryDateKeys.includes(e.selectedDeliveryDate)||(void 0!==c&&c>0&&!(0,n.A)(e.deliveryDateKeys)?e.deliveryDateKeys.every(t=>{const i=e.prices?.[e.selectedQuantity]?.[t]??{};return!(t.length>0&&!(0,n.A)(i))||(e.selectedDeliveryDate=t,e.selectedPrice=i,e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[t]??{},!1)}):e.prices&&e.prices[e.selectedQuantity]&&(e.deliveryDateKeys=Object.keys(e.prices[e.selectedQuantity]),[e.selectedDeliveryDate]=e.deliveryDateKeys,e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{}))},managePricesUpdate:e=>{0!==e.selectedQuantity&&""!==e.selectedDeliveryDate&&(e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=e.discountedPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{})},updateSource:(e,t)=>{t.source&&(e.source=t.source)},validateConfig(e){const t=e.selectedDeliveryDate,i=e.selectedPrice;(0===t.length||void 0===i||(0,n.A)(i))&&e.quantities.every(t=>{let i=!1;return e.deliveryDateKeys.every(s=>{const a=e.prices?.[t]?.[s]??{};return!(s.length>0&&!(0,n.A)(a))||(e.selectedQuantity=t,e.selectedDeliveryDate=s,e.selectedPrice=a,e.selectedDiscountedPrice=e.discountedPrices?.[t]?.[s]??{},i=!0,!1)}),!i})},validateConfigPanoramic(e){const t=e.selectedQuantity,i=e.selectedPrice;(0,n.A)(i)&&e.deliveryDateKeys.every(i=>{const s=e.prices?.[t]?.[i]??{};return!(i.length>0&&!(0,n.A)(s))||(e.selectedQuantity=t,!1)})},setServicesPrices:(e,t)=>{s.A.log("setServicesPrices Mutation",t),e.servicesPrices=t},fileCheckUpdate:(e,t)=>{e.fileCheckValue=t},hasFileCheckUpdate:(e,t)=>{e.hasFileCheck=t},error:(e,t)=>{e.fetchError={hasError:!0},t&&s.A.error(t)},setFallbackModeOn:e=>{e.useFallbackMethodForDeliveryDateCalculation=!0},setFallbackModeOff:e=>{e.useFallbackMethodForDeliveryDateCalculation=!1},setShowingTaxedPrices:(e,t)=>{e.showingTaxedPrices=t},setAvailableQuantity:(e,t)=>{e.availableQuantity=t},setProductInventory:(e,t)=>{e.productInventory=t},setHasInventory:(e,t)=>{e.hasInventory=t},setInventoryStatus:(e,t)=>{e.inventoryStatus=t,"future"===t?e.isInventoryFuture=!0:"inStock"===t&&(e.isInventoryFuture=!1)},setVatAmountVisibility:(e,t)=>{e.isVatAmountVisible=t},setShippingAmountVisibility:(e,t)=>{e.isShippingAmountVisible=t},setIsProductOutOfStock:(e,t)=>{e.isProductOutOfStock=t},setLossLeaderQuote(e,t){s.A.log("Received data in setLossLeaderQuote",t),e.prices=t.records||{},e.taxRate=t.taxRate||0,e.hts=t.hts||"",e.unsps=t.unsps||"",e.pricingRequest=t.pricingRequest||{},e.enabledDeliveryOptions=t.enabledDeliveryOptions||{},t.promoCode&&(e.promoCode={...t.promoCode,discountCodeId:t.promoCode.id,isValid:t.promoCode.active,remainingUses:t.promoCode.maxApplications-t.promoCode.redemptionStatsByCode});const i=Object.keys(e.prices);if(i.length>0){const t=i[0],s=Object.keys(e.prices[t]);if(s.length>0){const i=s.find(i=>e.prices[t][i].promocode)||s[0];e.selectedQuantity=t,e.selectedDeliveryDate=i,e.selectedPrice=e.prices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??{},e.selectedDiscountedPrice=(0,m.A)(e.selectedPrice,1)}}},setShippingPrice:async(e,t)=>{const i=await axios.post("/product/get-shipping-price",t);i&&200===i.status&&(e.shippingPrice=i.data?.shippingDetails?.shippingPrice)},disablePromoCodeInput:(e,t)=>{e.shouldClearPromoCode=t}},getters:{selectedPrice:e=>e.selectedPrice,prices:e=>e.prices,dates:e=>e.dates,selectedDiscountedPrice:e=>e.selectedDiscountedPrice,discountedPrices:e=>e.discountedPrices,selectedUnitPrice:e=>e.unitPrices?.[e.selectedQuantity]?.[e.selectedDeliveryDate]??"",unitPrices:e=>e.unitPrices,pricesDebug:e=>e.pricesDebug,quantities:e=>e.quantities,selectedQuantity:e=>e.selectedQuantity,deliveryDateKeys:e=>e.deliveryDateKeys,selectedDeliveryDate:e=>e.selectedDeliveryDate,fetchError:e=>e.fetchError,priceRequestPending:e=>e.priceRequestPending,datesRequestPending:e=>e.datesRequestPending,taxRate:e=>
1e.taxRate,hts:e=>e.hts,unsps:e=>e.unsps,source:e=>e.source,deliveryDateWithFallback:e=>e.deliveryDateWithFallback,fileCheckValue:e=>e.fileCheckValue,hasFileCheck:e=>e.hasFileCheck,pricingRequest:e=>e.pricingRequest,showingTaxedPrices:e=>e.showingTaxedPrices,servicesPrices:e=>e.servicesPrices,availableQuantity:e=>e.availableQuantity,productInventory:e=>e.productInventory,hasInventory:e=>e.hasInventory,isInventoryFuture:e=>e.isInventoryFuture,isProductOutOfStock:e=>e.isProductOutOfStock,isVatAmountVisible:e=>e.isVatAmountVisible,isShippingAmountVisible:e=>e.isShippingAmountVisible,maximumInventoryQuantity:(e,t)=>{if(e.isInventoryFuture){const{futureAvailabilityQuantity:i}=t;return Math.max(Number(i),Number(e.availableQuantity))}return Number(e.availableQuantity)},futureAvailabilityQuantity:e=>{const t=e.productInventory?.futureAvailability?.[0]?.quantity;return(0,n.A)(t)?(s.A.log("No future availability found or availability quantity is missing"),null):t},getFutureAvailabilityDate:(e,t)=>{const i=t.productInventory?.futureAvailability?.[0]?.availabilityDate;return(0,n.A)(i)?(s.A.log("No future availability found or availability date is missing"),null):(0,c.A)(i)},isUnavailableWithInventory:(e,t)=>e.hasInventory&&0==t.maximumInventoryQuantity,promoCodeRemainingUses:e=>e.promoCode?.remainingUses??0,isValidPromoCode:e=>e.promoCode?.isValid??!1,discountCodeId:e=>e.promoCode?.discountCodeId??null,selectedShippingOptionId:e=>e.prioritiesWithOptionIds[e.selectedDeliveryDate]??null,edoTracingRecord:e=>e.edoTracingRecord??null,shippingPrice:e=>e.shippingPrice??{},shouldClearPromoCode:e=>e.shouldClearPromoCode}}},73267(e,t,i){i.d(t,{A:()=>l});i(98992),i(54520),i(3949),i(8872);var s=i(74744),a=i(49215),o=i(52570),c=i(3486),n=i(85575),r=i(16838);const l={namespaced:!0,state:{locale:"",options:{},userSelection:{},lastSelection:{},userInteractedWithSelection:!1,productName:"",instructionFile:"",merchantProductId:"",merchantProductName:"",h1Title:"",validationRequestPending:!0,validationRequestPayload:{},validationStatus:"",validationStep:"before-first-validation",templateSelectedAsset:{},mcpSku:"",completeSelection:{},customTemplateUds:{},collectionId:"",isEditView:!1,inputFocused:!1,documentReferenceUrl:null,designExperience:null,artworkOption:null,designServiceValue:0,designServiceSelected:"",artworkFromTemplate:null,selectedDesignTemplate:null,openDexClicked:!1,initialProductConfiguration:{},multiArtworkVariants:[],isUnitPriceEnabled:!1,cimCommSku:"",merchantProductVar:"",attributes:{},prioritySets:{},pageTitle:"",mcpAttributes:{},validProductionTimes:[],validQuantities:{},validQuantitiesForMultiartwork:{},allQuantities:[],isFscCertified:!1,isPefcCertified:!1},actions:{setInitialOptions:(e,t)=>{e.commit("setDataAttributes",t),e.commit("setUserSelections",t),e.commit("setAdditionalData",t),e.commit("setInitialProductConfiguration")},setEditingOptions:(e,t)=>{e.commit("setEditingOptions",t),e.commit("updateUserSelections")},updateSelections:(e,t)=>{e.commit("updateSelections",t),e.commit("updateUserSelections")},setUserInteractedWithSelection:e=>{e.commit("setUserInteractedWithSelection",!0)},updateLastSelection:(e,t)=>{e.commit("updateLastSelection",t),e.commit("updateUserSelections")},updateMultipleSelections:(e,t)=>{const{options:i}=e.state,s={};t.forEach(e=>{const t=Object.values(i).findIndex(t=>t.label.en===e.attrId);i[Object.keys(i)[t]].customSelections.selectedValue!==e.value&&(s[i[Object.keys(i)[t]].label.en]=e.value),i[Object.keys(i)[t]].customSelections.selectedValue=e.value}),e.commit("updateMultipleSelections",i),e.commit("updateLastSelection",s),e.commit("updateUserSelections")},updateValidDatas:(e,t)=>{e.commit("updateValidDatas",t)},setValidationPending:(e,t)=>
1{e.commit("validationRequestPending",t)},setValidationRequestPayload:(e,t)=>{e.commit("setValidationRequestPayload",t)},setTemplateSelection:(e,t)=>{e.commit("setTemplateSelection",t)},setCustomTemplateUds:(e,t)=>{e.commit("setCustomTemplateUds",t)},setEditView:(e,t)=>{e.commit("setEditView",t)},setInputFocused:(e,t)=>{e.commit("setInputFocused",t)},setDocumentReferenceUrl:(e,t)=>{e.commit("setDocumentReferenceUrl",t)},setArtworkOption:(e,t)=>{e.commit("setArtworkOption",t)},setDesignServiceValue:(e,t)=>{e.commit("setDesignServiceValue",t)},setDesignServiceSelected:(e,t)=>{e.commit("setDesignServiceSelected",t)},setSelectedDesignTemplate:(e,t)=>{e.commit("setSelectedDesignTemplate",t)},setArtworkFromTemplate:(e,t)=>{e.commit("setArtworkFromTemplate",t)},setOpenDexClicked:(e,t)=>{e.commit("setOpenDexClicked",t)},setMultiArtworkDetails:(e,t)=>{e.commit("setMultiArtworkDetails",t)},setMultiArtworkVariants:(e,t)=>{e.commit("setMultiArtworkVariants",t)},setAllQuantities:(e,t)=>{e.commit("setAllQuantities",t)},setValidationStatus:(e,t)=>{e.commit("setValidationStatus",t)},setValidationStep:(e,t)=>{e.commit("setValidationStep",t)}},mutations:{validationRequestPending(e,t){e.validationRequestPending=t},setValidationRequestPayload(e,t){e.validationRequestPayload=t},setDataAttributes:(e,t)=>{const{productData:i}=t,{cimCommSku:s,cimCommVar:a,mcpSku:o,locale:c,productName:n,merchantProductName:r,h1Title:l,instructionFile:d,attributes:u,designExperience:m,fscCertified:p,productCertifications:y,productPageTitle:v,unitPrice:S,isFscCertified:g,isPefcCertified:b}=i,f=i?.prioritySet??{};e.cimCommSku=s,e.merchantProductVar=a,e.mcpSku=o,e.prioritySets=f,e.pageTitle=v,e.locale=c,e.productName=n,e.instructionFile=d,e.merchantProductName=r,e.h1Title=l,e.options={...u},e.designExperience=m,e.fscCertified=p,e.productCertifications=y??[],e.isUnitPriceEnabled=S,e.isFscCertified=g??!1,e.isPefcCertified=b??!1},setEditingOptions:(e,t)=>{const{options:i}=e,{editOptions:s}=t;
1e.options=Object.keys(i).reduce((e,t)=>{const a=i[t],o=s[a.label.en];return a.customSelections&&o&&(a.customSelections.selectedValue=o),{...e,[t]:a}},{})},setUserSelections:e=>{const{options:t}=e;let i=!0;const s=Object.keys(t).reduce((e,s)=>{const a=t[s],c=(0,o.A)(a);return e.userSelection={...e.userSelection},e.attributes={...e.attributes},""!==c&&(e.userSelection[a.label.en]=c,e.attributes[a.name]=c,i&&(e.lastSelection={[a.label.en]:c},i=!1)),e},{});e.userSelection=s.userSelection,e.attributes=s.attributes,e.lastSelection=s.lastSelection},updateUserSelections:e=>{const{options:t}=e,i=Object.keys(t).reduce((e,i)=>{const s=t[i],a=(0,o.A)(s);return e.userSelection={...e.userSelection},e.attributes={...e.attributes},""!==a&&(e.userSelection[s.label.en]=a,e.attributes[s.name]=a),e},{});e.userSelection=i.userSelection,e.attributes=i.attributes},updateSelections:(e,t)=>{const{selections:i,complete:a}=t,{options:o}=e;a&&(e.completeSelection=i),Object.entries(i).forEach(([e,t])=>{const i=(0,s.A)(o,e);i&&i.customSelections&&(i.customSelections.selectedValue=t)})},setUserInteractedWithSelection:(e,t)=>{e.userInteractedWithSelection=t},updateLastSelection:(e,t)=>{const i=t,{options:a}=e,o=Object.keys(i)[0],c=i[o],n=(0,s.A)(a,o);n&&n.customSelections&&(n.customSelections.selectedValue=c,e.lastSelection=i)},updateMultipleSelections:(e,t)=>{e.options=t},updateValidDatas:(e,t)=>{e.mcpAttributes=t.mcpAttributes,e.validProductionTimes=t.validProductionTimes,e.validQuantities=t.validQuantities,e.validQuantitiesForMultiartwork=t.validQuantitiesForMultiartwork},setAdditionalData:(e,t)=>{e.merchantProductId=t.merchantProductId,e.designServiceValue=t.designServiceValue,e.designServiceSelected=t.designServiceSelected},setTemplateSelection:(e,t)=>{e.templateSelectedAsset=t.templateSelectedAsset,e.collectionId=t.collectionId},setCustomTemplateUds:(e,t)=>{e.customTemplateUds=t},setEditView:(e,t)=>{e.isEditView=t},setInputFocused:(e,t)=>{e.inputFocused=t},setDocumentReferenceUrl:(e,t)=>{e.documentReferenceUrl=t},setArtworkOption:(e,t)=>{e.artworkOption=t},setDesignServiceValue:(e,t)=>{e.designServiceValue=t},setDesignServiceSelected:(e,t)=>{e.designServiceSelected=t},setSelectedDesignTemplate:(e,t)=>
1{e.selectedDesignTemplate=t},setArtworkFromTemplate:(e,t)=>{e.artworkFromTemplate=t},setOpenDexClicked:(e,t)=>{e.openDexClicked=t},setInitialProductConfiguration:e=>{e.initialProductConfiguration=e.userSelection,Object.freeze(e.initialProductConfiguration)},setMultiArtworkDetails:(e,t)=>{n.A.log("setMultiArtworkDetails",t),"totalVariants"in t&&t.totalVariants>1?e.multiArtworkVariants=t.variants:e.multiArtworkVariants=[]},setMultiArtworkVariants:(e,t=[])=>{e.multiArtworkVariants=t},setAllQuantities:(e,t)=>{e.allQuantities=t},setValidationStatus:(e,t)=>{e.validationStatus=t},setValidationStep:(e,t)=>{e.validationStep=t}},getters:{options:e=>e.options,cimCommSku:e=>e.cimCommSku,mcpSku:e=>e.mcpSku,attributes:e=>e.attributes,prioritySets:e=>e.prioritySets,pageTitle:e=>e.pageTitle,mcpAttributes:e=>e.mcpAttributes,validProductionTimes:e=>e.validProductionTimes,validQuantities:e=>e.validQuantities,validQuantitiesForMultiartwork:e=>e.validQuantitiesForMultiartwork,locale:e=>e.locale,userSelection:e=>e.userSelection,lastSelection:e=>e.lastSelection,productName:e=>e.productName,merchantProductId:e=>e.merchantProductId,merchantProductName:e=>e.merchantProductName,merchantProductVar:e=>e.merchantProductVar,h1Title:e=>e.h1Title,instructionFile:e=>e.instructionFile,validationRequestPending:e=>e.validationRequestPending,validationRequestPayload:e=>e.validationRequestPayload,validationStatus:e=>e.validationStatus,validationStep:e=>e.validationStep,templateSelectedAsset:e=>e.templateSelectedAsset,collectionId:e=>e.collectionId,completeSelection:e=>e.completeSelection,customTemplateUds:e=>e.customTemplateUds,isEditView:e=>e.isEditView,inputFocused:e=>e.inputFocused,designExperience:e=>e.designExperience,documentReferenceUrl:e=>e.documentReferenceUrl,artworkOption:e=>e.artworkOption,designServiceValue:e=>e.designServiceValue,designServiceSelected:e=>e.designServiceSelected,isCustomTemplateSelected:e=>!0===e.templateSelectedAsset?.isCustom,visibleOptions:e=>Object.keys(e.options).filter(t=>{const i=e.options[t];return!(0,c.A)(i)}),artworkFromTemplate:e=>e.artworkFromTemplate,selectedDesignTemplate:e=>e.selectedDesignTemplate,openDexClicked:e=>e.openDexClicked,getSelectedValuesFromMerchantKey:e=>t=>{const i=e.options[t];return(0,a.A)(i)},initialProductConfiguration:e=>e.initialProductConfiguration,multiArtworkVariants:e=>e.multiArtworkVariants,hasMultiArtworkDetails:(e,t)=>t.multiArtworkVariants?.length>0,multiArtworkDetails:(e,t)=>t.multiArtworkVariants??[],multiArtworkTotalQuantity:(e,t)=>(t.multiArtworkVariants??[]).reduce((e,t)=>e+(0,r.A)(t.qty),0),isUnitPriceEnabled:e=>e.isUnitPriceEnabled,allQuantities:e=>e.allQuantities,userInteractedWithSelection:e=>e.userInteractedWithSelection,getLocalizedAttributeNameByLabel:e=>t=>{const i=Object.values(e.options).filter(e=>e.label?.en===t)[0];return i?.customSelections?.dictionaryTranslations?.voice||null},isFscCertified:e=>e.isFscCertified,isPefcCertified:e=>e.isPefcCertified}}},75682(e,t,i){i.d(t,{A:()=>c});
1var s=i(52777),a=i(49120);const o=()=>{const e=document.querySelector("feefo-product-pop-up"),t=e?.querySelector("div")??{};return t.shadowRoot?.querySelector(".rectangle-badge")},c=()=>{(0,s.A)(function(){return Boolean(o())},function(){const e=o();e&&(e.style.border="none",(0,a.A)("a.feefo-link")?.addEventListener("click",()=>{e.click()}),(0,a.A)(".feefo-reviewable-badge")?.classList.remove("hide"))})}},75879(e,t,i){i.d(t,{A:()=>r});i(33110),i(58335);var s=i(50716),a=i(95666),o=i(4141);const c="design-browser-upload-gallery-settings",n="design-browser-product-gallery-settings",r={namespaced:!0,state:{hasTemplateDesign:!1,selectedTemplateEnsemble:{},selectedTemplateEnsembleLine:{},fallbackProductConfiguration:null},actions:{setHasTemplateDesign:(e,t)=>{e.commit("setHasTemplateDesign",t)},setSelectedTemplateEnsemble:(e,t)=>{e.commit("setSelectedTemplateEnsemble",t)},setSelectedTemplateEnsembleLine:(e,t)=>{e.commit("setSelectedTemplateEnsembleLine",t)},setFallbackProductConfiguration:(e,t)=>{e.commit("setFallbackProductConfiguration",t)}},mutations:{setHasTemplateDesign:(e,t)=>{e.hasTemplateDesign=t},setSelectedTemplateEnsemble:(e,t)=>{(0,s.A)(t)||(0,a.A)(t)||(e.selectedTemplateEnsemble=t)},setSelectedTemplateEnsembleLine:(e,t)=>{(0,s.A)(t)||(0,a.A)(t)||(e.selectedTemplateEnsembleLine=t)},setFallbackProductConfiguration:(e,t)=>{e.fallbackProductConfiguration=t}},getters:{hasTemplateDesign:e=>e.hasTemplateDesign,selectedTemplateEnsemble:e=>e.selectedTemplateEnsemble,selectedTemplateEnsembleLine:e=>e.selectedTemplateEnsembleLine,fallbackProductConfiguration:e=>e.fallbackProductConfiguration},modules:{settings:{namespaced:!0,modules:{product:{state:{source:Object.freeze("product"),bundlekey:void 0,count:0,offset:0,ensembleLineId:void 0},mutations:{storeProductSettings:(e,t)=>{e.bundlekey=t.bundlekey,e.count=t.count,e.offset=t.offset,e.ensembleLineId=t.ensembleLineId},forgetProductSettings:e=>{e.bundlekey=void 0,e.count=0,e.offset=0,e.ensembleLineId=void 0},restoreProductSettings:(e,t)=>{null!==t&&(e.bundlekey=t.bundlekey,e.count=t.count,e.offset=t.offset,e.ensembleLineId=t.ensembleLineId)}},getters:{productGallerySettings:e=>({bundlekey:e.bundlekey,count:e.count,offset:e.offset,ensembleLineId:e.ensembleLineId}),hasProductGallerySettings:e=>t=>void 0!==e.bundlekey&&e.bundlekey===t}},upload:{state:{source:Object.freeze("upload"),template:void 0,count:0,offset:0,ensembleLineId:void 0},mutations:{storeUploadSettings:(e,t)=>{e.template=t.template,e.count=t.count,e.offset=t.offset,e.ensembleLineId=t.ensembleLineId},forgetUploadSettings:e=>{e.template=void 0,e.count=0,e.offset=0,e.ensembleLineId=void 0},restoreUploadSettings:(e,t)=>{null!==t&&(e.template=t.template,e.count=t.count,e.offset=t.offset,e.ensembleLineId=t.ensembleLineId)}},getters:{uploadGallerySettings:e=>({template:e.template,count:e.count,offset:e.offset,ensembleLineId:e.ensembleLineId}),hasUploadGallerySettings:e=>t=>void 0!==e.template&&(0,o.A)(e.template,t)}}},actions:{restoreSettings:({commit:e,dispatch:t},i)=>{if("product"===i){const s=localStorage.getItem(n);t("forgetSettings",i),e("restoreProductSettings",JSON.parse(s))}else if("upload"===i){const s=localStorage.getItem(c);t("forgetSettings",i),e("restoreUploadSettings",JSON.parse(s))}},storeSettings:({state:e,commit:t},i)=>{const{source:s}=i;"product"===s?(t("storeProductSettings",i),localStorage.setItem(n,JSON.stringify(e.product))):"upload"===s&&(t("storeUploadSettings",i),localStorage.setItem(c,JSON.stringify(e.upload)))},forgetSettings:({commit:e},t)=>{"product"===t?(e("forgetProductSettings"),localStorage.removeItem(n)):"upload"===t&&(e("forgetUploadSettings"),localStorage.removeItem(c))}}}}}}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.