PageSourceSearch

https://www.electrolux.com.cn/Static/js/popupCart.dc70ff2440509004f10b.js

js electrolux.com.cn collected 2026-10-04 02:09:46 UTC 37,257 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdigitas_design=self.webpackChunkdigitas_design||[]).push([[6197],{16436:(t,e,s)=>{s.r(e),s.d(e,{default:()=>R});var a=s(62893),r=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"popup-cart",class:t.isOpening&&"show"},[e("div",{staticClass:"popup-cart__container"},[e("div",{staticClass:"popup-cart__close-icon d-md-none",on:{click:function(e){return t.close()}}},[e("svg",{attrs:{viewBox:"0 0 48 48"}},[e("use",{attrs:{"xlink:href":"#close-icon"}})])]),e("div",{staticClass:"popup-cart__title"},[t._v(t._s(t.t("/popupcart/title"))+" "),t.loadedData&&!t.isLoading?e("span",{staticClass:"popup-cart__cart-count"},[t._v("("+t._s(t.cartCount)+")")]):t._e()]),e("input",{staticClass:"popup-cart__default-success-message",attrs:{id:"popup-cart__default-success-message",type:"hidden"},domProps:{value:t.t("/popupcart/defaultsuccessmessage")}}),e("input",{staticClass:"popup-cart__hdn-add-to-cart-success",attrs:{id:"popup-cart__hdn-add-to-cart-success",type:"hidden"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.addToCartMessage&&t.addToCartMessage.length>0,expression:"addToCartMessage && addToCartMessage.length > 0"}],staticClass:"popup-cart__message-wrapper d-flex align-items-center justify-content-between",attrs:{id:"popup-cart__message-wrapper"}},[e("div",{staticClass:"popup-cart__message d-flex align-items-center"},[e("div",{staticClass:"popup-cart__message-success-icon d-flex align-items-center"},[e("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9 0.25C13.825 0.25 17.75 4.175 17.75 9C17.75 13.825 13.825 17.75 9 17.75C4.17502 17.75 0.250035 13.825 0.25 9C0.25 4.175 4.175 0.25 9 0.25ZM9 1.5C4.86417 1.5 1.5 4.865 1.5 9C1.50003 13.135 4.86502 16.5 9 16.5C13.1358 16.5 16.5 13.135 16.5 9C16.5 4.865 13.1358 1.5 9 1.5ZM14.4297 6.1084L8.14258 12.3955L4.3916 8.64453L5.27539 7.76074L8.14258 10.627L13.5459 5.22363L14.4297 6.1084Z",fill:"#107A35"}})])]),e("div",{staticClass:"popup-cart__message-content",attrs:{id:"popup-cart__message-content"}},[t._v(t._s(t.addToCartMessage))])]),e("div",{staticClass:"popup-cart__message-close d-flex align-items-center",on:{click:function(e){return t.closeMessage()}}},[e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M11.7666 0.933594L6.70801 6L11.7666 11.0664L11.0664 11.7666L6 6.70801L0.933594 11.7666L0.233398 11.0664L5.29199 6L0.233398 0.933594L0.933594 0.233398L6 5.29199L11.0664 0.233398L11.7666 0.933594Z",fill:"#107A35"}})])])]),e("div",{staticClass:"popup-cart__body-wrapper"},[e("div",{staticClass:"popup-cart__body"},[!t.loadedData&&t.isLoading?e("div",{staticClass:"popup-cart__loading"},[e("LoadingIndicator")],1):t._e(),t.products.length>0&&t.loadedData?[e("PerfectScrollBar",{ref:"scrollBar",staticClass:"popup-cart__products"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"popup-cart__loading-products"},[e("LoadingIndicator")],1),t._l(t.products,(function(s){return e("div",{staticClass:"popup-cart__product",class:s.isFreeGift&&"popup-cart__product--free-gift"},[e("div",t._b({staticClass:"popup-cart__product-item",attrs:{"datalayer-product-code":s.code,"datalayer-product-id":s.productCode,"datalayer-product-friendlyname":s.DataLayer.productName||s.FriendlyName,"datalayer-product-productsubcategory":s.productSubCategory,"datalayer-product-productcategory":s.productCategory,"datalayer-product-price":s.extendedPrice,"datalayer-product-starproduct":s.starProduct,"datalayer-product-salevalue":s.appliedDiscount?"Sale":"None Sale","datalayer-product-variant":s.productVariant,"datalayer-product-originalprice":s.price,"datalayer-product-isservice":s.isService,"datalayer-product-quantity":s.quantity,"datalayer-product-installation":s.hasInstallation?"true":"false","datalayer-product-recycle":s.hasRecycle?"true":"false","datalayer-product-recurring-time":s.selectedRecurringPlan?s.selectedRecurringPlan.PlanKey:""}},"div",t.getDataLayerAttrs(s),!1),[e("a",t._b({staticClass:"product__image-wrapper",attrs:{href:s.productUrl},on:{click:function(e){return t.redirect(s.productUrl)}}},"a",t.gaSelectItemAttr,!1),[e("img",{staticClass:"product__image",attrs:{src:s.img}})]),e("div",{staticClass:"product__content"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"product__information"},[s.StandaloneWarrantyInformation?[e("div",{staticClass:"product__name",domProps:{innerHTML:t._s(s.name)}}),s.StandaloneWarrantyInformation.ProductName?e("div",{staticClass:"product__ew-name"},[t._v(t._s(s.StandaloneWarrantyInformation.ProductName))]):t._e(),s.StandaloneWarrantyInformation.ProductModelNumber?e("div",{staticClass:"product__ew-model"},[t._v(t._s(s.StandaloneWarrantyInformation.ProductModelNumber))]):t._e(),e("div",{staticClass:"product__ew-code"}
1,[t._v(t._s(s.productCode))])]:t._e(),s.productCode&&!s.StandaloneWarrantyInformation?e("a",t._b({staticClass:"product__code",attrs:{href:s.productUrl},on:{click:function(e){return t.redirect(s.productUrl)}}},"a",t.gaSelectItemAttr,!1),[t._v(t._s(s.productCode))]):t._e(),s.StandaloneWarrantyInformation?t._e():e("a",t._b({staticClass:"product__name",attrs:{href:s.productUrl},domProps:{innerHTML:t._s(s.name)},on:{click:function(e){return t.redirect(s.productUrl)}}},"a",t.gaSelectItemAttr,!1)),s.timeNewStockExpected?e("div",{staticClass:"new-stock-estimated-time"},[e("svg",{staticClass:"new-stock-estimated-time__icon"},[e("use",{attrs:{"xlink:href":"#package-outline"}})]),e("span",{staticClass:"new-stock-estimated-time__content"},[t._v(t._s(s.timeNewStockExpected))])]):t._e(),s.errorMessages&&s.errorMessages.length>0?t._l(s.errorMessages,(function(s){return e("div",{staticClass:"product__information--error-message"},[t._v(t._s(s.message))])})):t._e()],2),s.isFreeGift?e("div",{staticClass:"product__free-gift-wrapper"},[e("div",{staticClass:"product__free-gift"},[e("svg",{staticClass:"popup-cart__free-gift-icon",attrs:{viewBox:"0 0 24 23"}},[e("use",{attrs:{"xlink:href":"#Free-gift"}})]),e("div",{staticClass:"product__free-gift-text"},[t._v(t._s(t.t("/popupcart/freegift")))])])]):s.isFreeGift?t._e():e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeProduct(s)}}},[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.70703 0.833008C9.4601 0.833188 10.0932 1.39326 10.1934 2.13965L10.3535 3.33301H14.667V4.33301H13.6729L12.4863 13.3604C12.3862 14.1068 11.7532 14.667 11 14.667H5C4.24681 14.667 3.61385 14.1068 3.51367 13.3604L2.32715 4.33301H1.33301V3.33301H5.63965L5.7998 2.13965C5.89993 1.39313 6.53388 0.833008 7.28711 0.833008H8.70703ZM3.33301 4.32617L4.50684 13.2266C4.54017 13.4732 4.74667 13.6602 5 13.6602H11C11.2467 13.6602 11.4598 13.4732 11.4932 13.2266L12.667 4.32617H3.33301ZM7.10645 12.2471H6.09961L5.48633 5.75977H6.48633L7.10645 12.2471ZM9.91309 12.2471H8.91309L9.52637 5.75977H10.5332L9.91309 12.2471ZM7.28711 1.83301C7.04044 1.83301 6.8263 2.01993 6.79297 2.2666H6.78711L6.64648 3.33301H9.33984L9.2002 2.2666C9.16687 2.02006 8.96019 1.83319 8.70703 1.83301H7.28711Z",fill:"#03183F"}})])])]),e("div",{staticClass:"stock-traffic-popup"},[s.stockType==t.OutStockType||s.outOfStock?[e("span",{staticClass:"out-stock-signal"}),e("span",[t._v(t._s(t.t("/popupcart/trafficoutstock")))])]:s.stockType==t.LowStockType?[e("span",{staticClass:"low-stock-signal"}),e("span",[t._v(t._s(t.t("/popupcart/trafficlowstock")))])]:s.stockType==t.InStockType?[e("span",{staticClass:"in-stock-signal"}),e("span",[t._v(t._s(t.t("/popupcart/trafficinstock")))])]:t._e()],2),e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("div",{staticClass:"product__actions"},[s.isFreeGift?[e("div",{staticClass:"product__quantity"},[t._v(t._s(t.t("/popupcart/quantity"))+": "+t._s(s.quantity))]),s.outOfStock?[e("div",{staticClass:"product__out-of-stock"},[t._v(t._s(t.t("/popupcart/outofstock")))])]:[e("del",{staticClass:"product__discount-price--free-gift"},[t._v(t._s(s.priceDisplay))])]]:[s._bundleInfo?t._e():e("Counter",{attrs:{max:s.InstaEageWarrantyInformation||s.StandaloneWarrantyInformation?1:1/0,disabled:s.stockQuantity<1&&s.outOfStock},on:{change:e=>t.handleChangeProductQuantity(e,s)},model:{value:s.quantity,callback:function(e){t.$set(s,"quantity",e)},expression:"product.quantity"}})]],2),s._bundleInfo?t._e():e("div",{staticClass:"product__not-bundle-info"},[e("div",{staticClass:"product__not-bundle-info-inner d-flex justify-content-between mt-2"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"}),e("div",{staticClass:"product__price-detail"},[s.outOfStock?e("div",{staticClass:"product__out-of-stock"},[t._v(t._s(t.t("/popupcart/outofstock")))]):[e("div",{staticClass:"product__discount-price",class:{"product__discount-price--red":s.appliedDiscount}},[t._v(t._s(s.appliedDiscount?s.extendedPriceDisplay:s.priceDisplay))]),s.appliedDiscount?e("del",{staticClass:"product__price"},[t._v(t._s(s.priceDisplay))]):t._e()]],2)])])]),s._bundleInfo?e("div",{staticClass:"product__bundle-info"},[e("div",{staticClass:"product__bundle-info-inner d-flex justify-content-between mt-2"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[s._bundleInfo.name&&s._bundleInfo.name.length>0?e("div",{staticClass:"product__bundle-name"},[t._v(t._s(s._bundleInfo.name))]):t._e()]),e("div",{staticClass:"product__price-detail"},[s.outOfStock?e("div",{staticClass:"product__out-of-stock"},[t._v(t._s(t.t("/popupcart/outofstock")))]):[e("div",{staticClass:"product__discount-price",class:{"product__discount-price--red":s.appliedDiscount}},[t._v(t._s(s.appliedDiscount?s.extendedPriceDisplay:s.priceDisplay))]),s.appliedDiscount?e("del",{staticClass:"product__price"},[t._v(t._s(s.priceDisplay))]):t._e()]],2)])]):t._e()])]),t._l(s.extendedWarranty,(function(a){return[a.addedToCart&&a.quantity?e("div",{staticClass:"popup-cart__warranty-item"},[e("a",{staticClass:"product__image-wrapper"},[e("img",{staticClass:"product__image",attrs:{src:a.img}})]),e("div",{staticClass:"product__content"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"product__information"},[e("a",{staticClass:"product__code"}
1,[t._v(t._s(s.productCode))]),e("a",{staticClass:"product__name",domProps:{innerHTML:t._s(a.warrantySelectedTitle||a.name)}})]),e("div",{staticClass:"product__price-detail"},[e("div",{staticClass:"product__discount-price"},[t._v(t._s(a.priceDisplay))])])]),e("div",{staticClass:"product__actions"},[e("Counter",{attrs:{max:a.limitationNumber,disabled:t.popupSetting.disabledExtendedWarrantyCounter||a.limitationNumber<1},on:{change:e=>t.handleChangeWarrantyQuantity(e,a,s)},model:{value:a.quantity,callback:function(e){t.$set(a,"quantity",e)},expression:"warranty.quantity"}}),e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleChangeWarrantyQuantity(0,a,s)}}},[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.70703 0.833008C9.4601 0.833188 10.0932 1.39326 10.1934 2.13965L10.3535 3.33301H14.667V4.33301H13.6729L12.4863 13.3604C12.3862 14.1068 11.7532 14.667 11 14.667H5C4.24681 14.667 3.61385 14.1068 3.51367 13.3604L2.32715 4.33301H1.33301V3.33301H5.63965L5.7998 2.13965C5.89993 1.39313 6.53388 0.833008 7.28711 0.833008H8.70703ZM3.33301 4.32617L4.50684 13.2266C4.54017 13.4732 4.74667 13.6602 5 13.6602H11C11.2467 13.6602 11.4598 13.4732 11.4932 13.2266L12.667 4.32617H3.33301ZM7.10645 12.2471H6.09961L5.48633 5.75977H6.48633L7.10645 12.2471ZM9.91309 12.2471H8.91309L9.52637 5.75977H10.5332L9.91309 12.2471ZM7.28711 1.83301C7.04044 1.83301 6.8263 2.01993 6.79297 2.2666H6.78711L6.64648 3.33301H9.33984L9.2002 2.2666C9.16687 2.02006 8.96019 1.83319 8.70703 1.83301H7.28711Z",fill:"#03183F"}})])])],1)])]):t._e()]})),t._l(s.giftItems,(function(a){return e("div",t._b({staticClass:"popup-cart__free-gift-item",attrs:{"datalayer-product-code":a.code,"datalayer-product-id":a.productCode,"datalayer-product-friendlyname":a.name,"datalayer-product-productsubcategory":a.productSubCategory,"datalayer-product-productcategory":a.productCategory,"datalayer-product-price":a.price,"datalayer-product-starproduct":a.starProduct,"datalayer-product-salevalue":s.appliedDiscount?"Sale":"None Sale","datalayer-product-variant":a.productVariant,"datalayer-product-originalprice":a.price,"datalayer-product-isservice":s.isService,"datalayer-product-quantity":a.quantity,"datalayer-product-installation":s.hasInstallation?"true":"false","datalayer-product-recycle":s.hasRecycle?"true":"false"}},"div",t.getDataLayerAttrs(a),!1),[e("a",t._b({staticClass:"product__image-wrapper",attrs:{href:a.productUrl},on:{click:function(e){return t.redirect(a.productUrl)}}},"a",t.gaSelectItemAttr,!1),[e("img",{staticClass:"product__image",attrs:{src:a.img}})]),e("div",{staticClass:"product__content"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"product__information"},[e("a",t._b({staticClass:"product__code",attrs:{href:a.productUrl},on:{click:function(e){return t.redirect(a.productUrl)}}},"a",t.gaSelectItemAttr,!1),[t._v(t._s(a.productCode))]),e("a",t._b({staticClass:"product__name",attrs:{href:a.productUrl},domProps:{innerHTML:t._s(a.name)},on:{click:function(e){return t.redirect(a.productUrl)}}},"a",t.gaSelectItemAttr,!1))]),e("div",{staticClass:"product__free-gift-wrapper"},[e("div",{staticClass:"product__free-gift"},[e("svg",{staticClass:"popup-cart__free-gift-icon",attrs:{viewBox:"0 0 24 23"}},[e("use",{attrs:{"xlink:href":"#Free-gift"}})]),e("div",{staticClass:"product__free-gift-text"},[t._v(t._s(t.t("/popupcart/freegift")))])])])]),e("div",{staticClass:"product__actions"},[e("div",{staticClass:"product__quantity"},[t._v(t._s(t.t("/popupcart/quantity"))+": "+t._s(a.quantity))]),a.outOfStock?[e("div",{staticClass:"product__out-of-stock"},[t._v(t._s(t.t("/popupcart/outofstock")))])]:[e("del",{staticClass:"product__discount-price--free-gift"},[t._v(t._s(a.priceDisplay))])]],2)])])}))],2)})),t.recommendedAccessories&&t.recommendedAccessories.length?e("div",{staticClass:"popup-cart__recommended-accessories"},[e("div",{staticClass:"popup-cart__recommended-accessories-wrapper"},[e("div",{staticClass:"popup-cart__recommended-accessories-title-wrapper"},[e("div",{staticClass:"popup-cart__recommended-accessories-title"},[t._v(t._s(t.t("/popupcart/recommendedaccessories/title")))]),t.recommendedAccessories&&t.recommendedAccessories.length>1?e("div",{staticClass:"popup-cart__recommended-accessories-btns-previous-next d-flex"},[e("button",{staticClass:"tiny-carousel__top-arrow-previous",attrs:{disabled:t.isLoadingRecommendedAccessories||t.recommendedAccessories.length<=1},on:{click:t.prevAccessory}},[e("svg",{attrs:{width:"40px",height:"40px",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.81809 4.18179C8.99383 4.35753 8.99383 4.64245 8.81809 4.81819L6.13629 7.49999L8.81809 10.1818C8.99383 10.3575 8.99383 10.6424 8.81809 10.8182C8.64236 10.9939 8.35743 10.9939 8.1817 10.8182L5.1817 7.81819C5.09731 7.73379 5.0499 7.61933 5.0499 7.49999C5.0499 7.38064 5.09731 7.26618 5.1817 7.18179L8.1817 4.18179C8.35743 4.00605 8.64236 4.00605 8.81809 4.18179Z",fill:"#737373"}})])]),e("button",{staticClass:"tiny-carousel__top-arrow-next",attrs:{disabled:t.isLoadingRecommendedAccessories||t.recommendedAccessories.length<=1},on:{click:t.nextAccessory}},[e("svg",{attrs:{width:"40px",height:"40px",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.18194 4.18185C6.3576
17 4.00611 6.6426 4.00611 6.81833 4.18185L9.81833 7.18185C9.90272 7.26624 9.95013 7.3807 9.95013 7.50005C9.95013 7.6194 9.90272 7.73386 9.81833 7.81825L6.81833 10.8182C6.6426 10.994 6.35767 10.994 6.18194 10.8182C6.0062 10.6425 6.0062 10.3576 6.18194 10.1819L8.86374 7.50005L6.18194 4.81825C6.0062 4.64251 6.0062 4.35759 6.18194 4.18185Z",fill:"#8a8a8a"}})])])]):t._e()]),e("TinyCarousel",{ref:"recommendedCarousel",attrs:{items:t.recommendedAccessories,itemsPerPage:1,autoPlay:!1,interval:4e3,showControls:!1,showDots:!0},scopedSlots:t._u([{key:"default",fn:function(s){var{item:a}=s;return[e("div",{staticClass:"popup-cart__recommended-accessories-card",class:{"popup-cart__recommended-accessories-card--single":1===t.recommendedAccessories.length}},[e("div",{staticClass:"popup-cart__recommended-accessories-card-inner"},[e("div",{staticClass:"popup-cart__recommended-accessories-image-wrapper"},[e("a",{staticClass:"popup-cart__recommended-accessories-link d-flex",attrs:{href:a.productUrl},on:{click:function(e){return t.redirect(a.productUrl)}}},[e("div",{staticClass:"popup-cart__recommended-accessories-image"},[e("img",{attrs:{src:a.imageUrl},on:{click:function(e){return t.redirect(a.productUrl)}}})])])]),e("div",{staticClass:"popup-cart__recommended-accessories-details",class:{"popup-cart__recommended-accessories-details--single":1===t.recommendedAccessories.length}},[e("a",{attrs:{href:a.productUrl},on:{click:function(e){return t.redirect(a.productUrl)}}},[e("div",{staticClass:"popup-cart__recommended-accessories-code",domProps:{innerHTML:t._s(a.modelID)}})]),e("a",{attrs:{href:a.productUrl},on:{click:function(e){return t.redirect(a.productUrl)}}},[e("div",{staticClass:"popup-cart__recommended-accessories-name",class:{"popup-cart__recommended-accessories-name--single":1===t.recommendedAccessories.length},domProps:{innerHTML:t._s(a.name)}})]),e("div",{staticClass:"popup-cart__recommended-accessories-prices-wrapper"},[e("div",{staticClass:"popup-cart__recommended-accessories-prices"},[e("div",{staticClass:"popup-cart__recommended-accessories-price--current",class:{"product__discount-price--red":a.discountPrice}},[t._v(t._s(a.discountPrice?a.discountPriceDisplay:a.priceDisplay))]),a.discountPrice?e("del",{staticClass:"popup-cart__recommended-accessories-price--original"},[t._v(t._s(a.priceDisplay))]):t._e(),t.calculateDiscountPercentage(a)?e("span",{staticClass:"popup-cart__recommended-accessories-percent"},[t._v("-"+t._s(t.calculateDiscountPercentage(a))+"%")]):t._e()]),e("button",{staticClass:"popup-cart__recommended-accessories-add",attrs:{type:"button",disabled:a.isOutOfStock},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.addRecommendedAccessoriesToCart(a)}}},[e("svg",{attrs:{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M15.6915 6.54151H12.6165L12.2165 3.70817C11.9915 2.11651 10.6082 0.916504 8.99984 0.916504C7.3915 0.916504 6.00817 2.11651 5.78317 3.70817L5.38317 6.54151H2.30817L0.666504 19.0415H17.3332L15.6915 6.54151ZM7.02484 3.88317C7.1665 2.89984 8.0165 2.16651 8.99984 2.16651C9.98317 2.16651 10.8415 2.90817 10.9748 3.88317L11.3498 6.54151H6.64984L7.02484 3.88317ZM3.40817 7.79151H5.20817L4.79984 10.7082H6.05817L6.4665 7.79151H11.5248L11.9332 10.7082H13.1915L12.7832 7.79151H14.5832L15.8998 17.7915H2.0915L3.40817 7.79151Z",fill:"white"}})])])])])])])]}}],null,!1,3102244750)})],1)]):t._e()],2),e("div",{staticClass:"popup-cart__bottom-info"},[e("div",{staticClass:"popup-cart__cart-summary"},[t.cartSummary.vouncherSavedAmount?e("div",{staticClass:"cart-summary__row d-flex align-items-center justify-content-between pdbt-sm-10"},[e("div",{staticClass:"d-flex align-items-center"},[e("svg",{staticClass:"cart-summary__discount-icon flex-0",attrs:{viewBox:"0 0 24 17"}},[e("use",{attrs:{"xlink:href":"#discount-icon"}})]),e("div",{staticClass:"cart-summary__sub-title"},[t._v(t._s(t.t("/popupcart/coupondiscount")))])]),e("div",{staticClass:"cart-summary__sub-price"},[t._v("- "+t._s(t.cartSummary.vouncherSavedAmountDisplay))])]):t._e(),e("div",{staticClass:"cart-summary__row d-flex align-items-center justify-content-between"},[e("div",{staticClass:"cart-summary__title"},[t._v(t._s(t.t("/popupcart/subtotal")))]),e("div",{staticClass:"cart-summary__price"},[t._v(t._s(t.cartSummary.totalPriceDisplay))])])]),e("div",{staticClass:"popup-cart__actions"},[e("button",{staticClass:"popup-cart__cta-link-button cta-link-button d-md-none",class:t.invali
1dCart&&"disabled",on:{click:function(e){return t.redirect(t.cartPageUrl)}}},[t._v(t._s(t.t("/popupcart/proceedtocheckout")))]),e("button",{staticClass:"popup-cart__cta-link-button cta-link-button -secondary d-md-block",on:{click:function(e){return t.redirect(t.cartPageUrl)}}},[t._v(t._s(t.t("/popupcart/viewcart")))]),e("button",{staticClass:"popup-cart__cta-link-button cta-link-button d-none d-md-block",class:t.invalidCart&&"disabled",on:{click:t.handleNextStep}},[t._v(t._s(t.t("/popupcart/checkout")))])]),t.acceptPayments&&t.acceptPayments.length>0?e("div",{staticClass:"popup-cart__accept-payments-wrapper"},[e("div",{staticClass:"popup-cart__accept-payments"},t._l(t.acceptPayments,(function(s){return e("div",{staticClass:"popup-cart__accept-payment"},[s.imageUrl&&s.imageUrl.length>0?e("img",{attrs:{src:s.imageUrl,alt:""}}):t._e()])})),0)]):t._e()])]:t._e(),t.products.length<=0&&t.loadedData&&!t.isLoading?e("div",{staticClass:"popup-cart__empty"},[e("div",{staticClass:"popup-cart__empty-content"},[e("div",{staticClass:"popup-cart__empty-image-wrapper"},[e("img",{staticClass:"popup-cart__empty-image",attrs:{src:"/Static/assets/images/product-category-list/empty-box.png"}})]),e("div",{staticClass:"popup-cart__empty-text"},[t._v(t._s(t.t("/popupcart/emptytext")))])])]):t._e()],2),t.promotionText&&t.products.length>0?e("div",{staticClass:"popup-cart__footer"},[e("div",{staticClass:"d-flex"},[e("svg",{staticClass:"popup-cart__free-gift-icon",attrs:{viewBox:"0 0 16 16"}},[e("use",{attrs:{"xlink:href":"#free-gift-primary"}})]),e("div",{staticClass:"popup-cart__text"},[t._v(t._s(t.promotionText))])])]):t._e()])]),e("div",{staticClass:"popup-cart__backdrop",attrs:{"data-popupcart-backdrop":""},on:{click:function(e){return t.close()}}})])};r._withStripped=!0;var c=s(31635),i=s(76120),o=s(20181),n=s.n(o),d=s(7669),l=s(49616),u=s(43301),p=s(61692),_=s(9124),m=s(23182);class h{}var f=s(43200),C=s(93063),g=s(20853),y=s(87305),v=s(5794),w=s.n(v),b=s(85241),k=s(27182),L=s.n(k),S=s(96544),x=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{ref:"carousel",staticClass:"tiny-carousel"},[e("div",{ref:"track",staticClass:"tiny-carousel__track",class:{"tiny-carousel__track--single":1===t.items.length}},t._l(t.items,(function(s,a){return e("div",{key:a,staticClass:"tiny-carousel__slide",class:{"tiny-carousel__slide--single":1===t.items.length}},[t._t("default",null,{item:s})],2)})),0),t._v(" "),t.items&&t.items.length>1&&t.showControls&&t.canScrollLeft?e("button",{staticClass:"tiny-carousel__arrow tiny-carousel__arrow--prev",on:{click:t.scrollLeft}},[t._v("‹")]):t._e(),t._v(" "),t.items&&t.items.length>1&&t.showControls&&t.canScrollRight?e("button",{staticClass:"tiny-carousel__arrow tiny-carousel__arrow--next",on:{click:t.scrollRight}},[t._v("›")]):t._e(),t._v(" "),t.items&&t.items.length>1&&t.showDots?e("div",{staticClass:"tiny-carousel__dots"},t._l(t.items.length,(function(s,a){return e("span",{key:a,staticClass:"tiny-carousel__dot",class:{active:t.currentIndex===a},on:{click:function(e){return t.goTo(a)}}})})),0):t._e()])};x._withStripped=!0;let A=class extends i.lD{constructor(){super(...arguments),this.currentIndex=0,this.timer=null,this.canScrollLeft=!1,this.canScrollRight=!0}mounted(){this.updateScrollButtons(),this.autoPlay&&this.startAutoPlay()}beforeDestroy(){this.timer&&clearInterval(this.timer)}startAutoPlay(){this.timer=setInterval((()=>{this.next()}),this.interval)}onItemsChange(){this.goTo(0),this.updateScrollButtons()}updateScrollButtons(){if(!this.trackRef)return;const t=this.trackRef.scrollLeft,e=this.trackRef.scrollWidth-this.trackRef.clientWidth;this.canScrollLeft=t>0,this.canScrollRight=t<e-1;const s=document.querySelector(".tiny-carousel__top-arrow-previous"),a=document.querySelector(".tiny-carousel__top-arrow-next");if(s&&a){const t=s.querySelector("svg path"),e=a.querySelector("svg path");1===this.items.length?(s.disabled=!0,t?.setAttribute("fill","#bfbfbf"),a.disabled=!0,e?.setAttribute("fill","#bfbfbf")):0===this.currentIndex?(s.disabled=!0,t?.setAttribute("fill","#bfbfbf"),a.disabled=!1,e?.setAttribute("fill","#8a8a8a")):this.currentIndex===this.items.length-1?(s.disabled=!1,t?.setAttribute("fill","#8a8a8a"),a.disabled=!0,e?.setAttribute("fill","#bfbfbf")):(s.disabled=!1,t?.setAttribute("fill","#8a8a8a"),a.disabled=!1,e?.setAttribute("fill","#8a8a8a"))}}scrollToIndex(t){this.$nextTick((()=>
1{if(!this.trackRef)return;const e=this.trackRef.children;if(0===e.length||t>=e.length)return;const s=e[t].offsetLeft;this.trackRef.scrollTo({left:s,behavior:"smooth"}),this.updateScrollButtons()}))}scrollLeft(){this.currentIndex>0&&(this.currentIndex--,this.scrollToIndex(this.currentIndex))}scrollRight(){this.currentIndex<this.items.length-1&&(this.currentIndex++,this.scrollToIndex(this.currentIndex))}next(){const t=this.items.length-1;this.currentIndex=this.currentIndex<t?this.currentIndex+1:0,this.scrollToIndex(this.currentIndex)}prev(){const t=this.items.length-1;this.currentIndex=this.currentIndex>0?this.currentIndex-1:t,this.scrollToIndex(this.currentIndex)}goTo(t){this.currentIndex=t,this.scrollToIndex(t),this.timer&&(clearInterval(this.timer),this.autoPlay&&this.startAutoPlay())}};(0,c.Cg)([(0,i.kv)({required:!0})],A.prototype,"items",void 0),(0,c.Cg)([(0,i.kv)({default:1})],A.prototype,"itemsPerPage",void 0),(0,c.Cg)([(0,i.kv)({default:!0})],A.prototype,"autoPlay",void 0),(0,c.Cg)([(0,i.kv)({default:4e3})],A.prototype,"interval",void 0),(0,c.Cg)([(0,i.kv)({default:!0})],A.prototype,"showControls",void 0),(0,c.Cg)([(0,i.kv)({default:!0})],A.prototype,"showDots",void 0),(0,c.Cg)([(0,i.oS)("track")],A.prototype,"trackRef",void 0),(0,c.Cg)([(0,i.ox)("items")],A.prototype,"onItemsChange",null),A=(0,c.Cg)([i.uA],A);const P=A;var T=s(14486);const I=(0,T.A)(P,x,[],!1,null,null,null).exports;let E=class extends i.lD{constructor(){super(...arguments),this.isOpening=!1,this.products=[],this.LowStockType=g.HH.LOW_STOCK,this.InStockType=g.HH.IN_STOCK,this.OutStockType=g.HH.OUT_OF_STOCK,this.promotionText="",this.cartPageUrl="",this.checkoutPageUrl="",this.cartSummary=new h,this.loadedData=!1,this.isLoading=!1,this.invalidCart=!1,this.cartCount=0,this.recurringPopupContent="",this.ga4CartModule=new y.A,this.acceptPayments=[],this.addToCartMessage="",this.kitBundleAddToCartMessageSuccessEl=null,this.kitBundleAddToCartSuccessEl=null,this.popupCartAddToCartDefaultSuccessMessageEl=null,this.popupCartAddToCartSuccessEl=null,this.isLoadingRecommendedAccessories=!1,this.popupSetting=ELECTROLUX.commerceSettings,this.carouselInstance=null,this.recommendedAccessories=[],this.currentAccessoryIndex=0,this.handleChangeProductQuantity=n()((async(t,e)=>{const s=await _.A.fetch();try{await m.l.changeCartProductItem({productCode:e.code,shipmentId:e.shipmentId,recurringPlanId:e.selectedRecurringPlan?e.selectedRecurringPlan.PlanKey:null,quantity:t}),await this.ga4CartModule.handleAddToCartSingleItem(null,{products:s.products,summary:s.cart}),await this.fetchData()}catch(t){if(t instanceof C.Z)return;console.error("Error changing product quantity:",t)}}),300),this.handleChangeWarrantyQuantity=n()((async(t,e,s)=>{try{await _.A.changeCartServicesItem({code:e.warrantySelectedCode,shipmentId:e.shipmentId,quantity:t,productCode:s.code,type:"Warranty"}),await this.fetchData()}catch(t){if(t instanceof C.Z)return;console.error("Error changing warranty quantity:",t)}}),300),this.mapOrderSummaryProductAndGift=(t=[],e=[])=>{let s=[];return t&&(s=t.map((t=>(null!=t.giftItems&&(t.giftItems=t.giftItems.map((t=>({...t,appliedDiscount:!0,extendedPriceDisplay:t.priceDiscountDisplay,isFreeGift:!0})))),t)))),e&&e.forEach((t=>{s.push({...t,appliedDiscount:!0,extendedPriceDisplay:t.priceDiscountDisplay,isFreeGift:!0})})),s}}created(){ELECTROLUX.EventEmitter.on(g.qY.UPDATE_CART,this.open)}beforeDestroy(){if(this.carouselInstance&&"function"==typeof this.carouselInstance.destroy){try{this.carouselInstance.destroy()}catch(t){}this.carouselInstance=null}}async open(){this.kitBundleAddToCartMessageSuccessEl=document.getElementById("kit-bundle-product-list__hdn-add-to-cart-success-message"),this.kitBundleAddToCartSuccessEl=document.getElementById("kit-bundle-product-list__hdn-add-to-cart-success"),this.popupCartAddToCartDefaultSuccessMessageEl=document.getElementById("popup-cart__default-success-message"),this.popupCartAddToCartSuccessEl=document.getElementById("popup-cart__hdn-add-to-cart-success"),this.isOpening||(this.isOpening=!0,this.loadedData=!1,this.scrollBarRef?.updateScrollTop(0),document.body.classList.add("showing-popupcart")),this.fetchData((()=>{w()((0,b.A)([...this.cartDetails.products,...this.giftItemsArr]),this.cartSummary.totalPrice?this.cartSummary.totalPrice:0,!1)})),await this.processRecommendedAccessories()}close(){if(this.isOpening=!1,document.body.classList.remove("showing-popupcart"),this.carouselInstance&&"function"==typeof this.carouselInstance.destroy){try{this.carouselInstance.destroy()}catch(t){}this.carouselInstance=null}this.resetBundleAddToCartMessage()}closeMessage(){this.resetBundleAddToCartMessage()}
1preventBackgroundScroll(){document.body.style.overflow="hidden"}allowBackgroundScroll(){document.body.style.overflow=""}resetBundleAddToCartMessage(){this.addToCartMessage="",this.kitBundleAddToCartSuccessEl&&(this.kitBundleAddToCartSuccessEl.value="false"),this.popupCartAddToCartSuccessEl&&(this.popupCartAddToCartSuccessEl.value="false")}async handleNextStep(){if(L()((0,b.A)([...this.cartDetails.products,...this.giftItemsArr]),this.cartSummary.totalPrice?this.cartSummary.totalPrice:0),ELECTROLUX.SiteSetting.enableRecurringPopupOnCheckout&&this.cartDetails.isRecurringCart)return this.recurringPopupContent||(this.recurringPopupContent=await _.A.fetchRecurringPopupContent()),ELECTROLUX.GlobalModal.GenericModalVue.content=this.recurringPopupContent,void(ELECTROLUX.GlobalModal.GenericModalVue.show=!0);this.redirectCheckoutPage(this.checkoutPageUrl)}async fetchData(t=()=>{}){this.isLoading=!0;try{const e=await _.A.fetchPopupCartData();this.cartPageUrl=e.cartPageUrl,this.checkoutPageUrl=e.checkoutPageUrl,this.promotionText=e.promotion,this.cartCount=e.total,this.isLoading=!1,this.loadedData=!0,this.updateData(e.cartDetails),this.giftItemsArr=e.cartDetails.giftItems,(new f.default).update(e.total),t&&t()}catch(t){if(t instanceof C.Z)return;console.error("Error fetching cart data:",t),this.isLoading=!1}}async updateData(t){let e=[];
1if(t.bundles&&t.bundles.length>0&&t.bundles.forEach((t=>{if(t.products){const s=t.products.map((e=>({...e,_bundleInfo:{code:t.code,name:t.name,price:t.priceDiscount,originalPrice:t.price}})));e=e.concat(s)}})),t.products&&t.products.length>0){const s=t.products.map((t=>({...t,_bundleInfo:null})));e=e.concat(s)}t.acceptPayments&&(this.acceptPayments=t.acceptPayments),this.products=this.mapOrderSummaryProductAndGift(e,t.giftItems),this.products&&0===this.products.length&&await this.closeMessage(),this.cartSummary=t.cart||new h,this.invalidCart=this.products.findIndex((t=>t.outOfStock||t.errorMessages?.length>0))>=0,this.cartDetails=t,this.kitBundleAddToCartSuccessEl&&this.kitBundleAddToCartSuccessEl.value&&this.isTrue(this.kitBundleAddToCartSuccessEl.value)&&this.kitBundleAddToCartMessageSuccessEl?this.addToCartMessage=this.kitBundleAddToCartMessageSuccessEl.value:this.popupCartAddToCartSuccessEl&&this.popupCartAddToCartSuccessEl.value&&this.isTrue(this.popupCartAddToCartSuccessEl.value)&&this.popupCartAddToCartDefaultSuccessMessageEl&&(this.addToCartMessage=this.popupCartAddToCartDefaultSuccessMessageEl.value),this.processRecommendedAccessories()}async fetchRecommendedAccessories(){try{const t=await _.A.fetchRecommendedAccessories();return t&&Array.isArray(t)?t.filter((t=>null!=t&&"accessories"===t.productCategory?.toLowerCase())):[]}catch(t){return console.error("Error in fetchRecommendedAccessories:",t),[]}}async processRecommendedAccessories(){try{this.isLoadingRecommendedAccessories=!0;const t=await this.fetchRecommendedAccessories();this.recommendedAccessories=(t||[]).filter((t=>null!=t)),this.currentAccessoryIndex=0,this.updateAccessoryTrackPosition(),this.$forceUpdate()}catch(t){console.error("Error processing recommended accessories:",t),this.recommendedAccessories=[]}finally{this.isLoadingRecommendedAccessories=!1}}async addRecommendedAccessoriesToCart(t){try{this.resetBundleAddToCartMessage(),this.popupCartAddToCartSuccessEl.value="true",this.isOpening=!0,this.isLoading=!0,await _.A.addToCart({code:t.variantCode,quantity:1,recurringPlanId:null}),this.isLoading=!1,await this.fetchData()}catch(t){this.isLoading=!1,this.popupCartAddToCartSuccessEl.value="false",console.log("Error adding recommended accessory:",t)}}isTrue(t){return"boolean"==typeof t?t:"true"===String(t).toLowerCase()}isProductInBundle(t,e){return!(!e||0===e.length)&&e.some((e=>e.products&&e.products.some((e=>e.code===t.code))))}redirectCheckoutPage(t){window.parent!==window?window.open(t,"_blank"):this.redirect(t)}redirect(t){location.href=t}async removeProduct(t){await _.A.removeProduct({code:t.code,shipmentId:t.shipmentId}),await this.ga4CartModule.handleAddToCartSingleItem(null,{products:this.products,summary:this.cartSummary})}prevAccessory(){this.recommendedCarouselRef?.prev?.()}nextAccessory(){this.recommendedCarouselRef?.next?.()}goToAccessory(t){this.currentAccessoryIndex=t,this.updateAccessoryTrackPosition()}calculateDiscountPercentage(t){if(!t.discountPrice||t.discountPrice>=t.price)return 0;const e=t.price-t.discountPrice;return Math.round(e/t.price*100)}updateAccessoryTrackPosition(){this.$nextTick((()=>{const t=document.querySelector(".popup-cart__recommended-accessories .tiny-carousel__track");if(t){const e=-100*this.currentAccessoryIndex;t.style.transform=`translateX(${e}%)`}}))}getDataLayerAttrs(t){return(0,S.productToObjectAttrs)(t.DataLayer,!0,!1)}get gaSelectItemAttr(){return S.GA_SELECT_ITEM_OBJECT}};(0,c.Cg)([(0,i.oS)("recommendedCarousel")],E.prototype,"recommendedCarouselRef",void 0),(0,c.Cg)([(0,i.oS)("scrollBar")],E.prototype,"scrollBarRef",void 0),E=(0,c.Cg)([(0,i.uA)({components:{Modal:i.lD.extend(d.A),Counter:l.A,TinyCarousel:I,LoadingIndicator:i.lD.extend(u.A),PerfectScrollBar:i.lD.extend(p.A)}})],E);const D=E,M=(0,T.A)(D,r,[],!1,null,null,null).exports;var O=s(65845);class R{constructor(t){this.attachEvents=()=>{this.element.addEventListener("click",this.handleClick),window.addEventListener("click",this.handleClickOutSide)},this.handleClick=t=>{t.preventDefault&&t.preventDefault(),t.returnValue=!1,ELECTROLUX.PopupCart.$children[0].open()},this.handleClickOutSide=t=>{const e=ELECTROLUX.PopupCart?.$children[0];t.target===e.$el.querySelector("[data-popupcart-backdrop]")&&(this.hasContainsElement(t.target)||e.$el.contains(t.target)||e.close())},this.hasContainsElement=t=>{for(let e=0;e<ELECTROLUX.PopupCartElements.length;e++)if(ELECTROLUX.PopupCartElements[e].contains(t))return!0;return!1},this.createPopupVueInstance=()=>{if(!ELECTROLUX.PopupCart){const t=document.createElement("div");document.body.appendChild(t),ELECTROLUX.PopupCart=new a.Ay({el:t,mixins:[(0,O.qG)("popupcart")],render(t){return this.loadedLanguage&&t(M)}})}},this.element=t,ELECTROLUX.PopupCartElements||(ELECTROLUX.PopupCartElements=[]),ELECTROLUX.PopupCartElements=[...ELECTROLUX.PopupCartElements,t],this.createPopupVueInstance(),this.attachEvents()}}},61692:(t,e,s)=>{s.d(e,{A:()=>l});var a=function(){var t=this;return(0,t._self._c)("VuePerfectScrollbar",{ref:"scroll",staticClass:"perfect-scroll-bar",attrs:{settings:t.combineSettings,scrollTop:t.scrollTop,tabindex:"-1"}},[t._t("default")],2)};a._withStripped=!0,s(23500);var r=s(30209);function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function i(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};
1e%2?c(Object(s),!0).forEach((function(e){o(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function o(t,e,s){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var n={};const d={components:{VuePerfectScrollbar:s.n(r)()},props:{settings:{type:Object}},data(){return{scrollTop:0,combineSettings:i(i({},n),this.settings)}},methods:{updateScrollTop(t){this.$refs.scroll.$el.scrollTop=t,this.$refs.scroll.update()}}},l=(0,s(14486).A)(d,a,[],!1,null,null,null).exports}}]);

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.