PageSourceSearch

https://www.electrolux.com.cn/Static/js/productPromotionModal.2c6fd3231e68122ecd74.js

js electrolux.com.cn collected 2026-10-04 02:08:51 UTC 2,615 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdigitas_design=self.webpackChunkdigitas_design||[]).push([[3666],{79731:(o,t,e)=>{e.r(t),e.d(t,{default:()=>h});var n=e(62893),a=function(){var o=this,t=o._self._c;return o._self._setupProxy,t("Modal",{staticClass:"promotion-card",class:["".concat(o.promotionType,"-card")],attrs:{noPadding:""},model:{value:o.show,callback:function(t){o.show=t},expression:"show"}},[t("div",{staticClass:"promotion-card__content-wrapper",domProps:{innerHTML:o._s(o.content)}})])};a._withStripped=!0;var r=e(31635),i=e(76120),d=e(7669);let l=class extends i.lD{};(0,r.Cg)([(0,i.Qq)({default:!1})],l.prototype,"show",void 0),(0,r.Cg)([(0,i.kv)({default:""})],l.prototype,"content",void 0),(0,r.Cg)([(0,i.kv)({default:""})],l.prototype,"promotionType",void 0),l=(0,r.Cg)([(0,i.uA)({components:{Modal:i.lD.extend(d.A)}})],l);const s=l,c=(0,e(14486).A)(s,a,[],!1,null,null,null).exports;var p=e(49401);class u extends p.A{constructor(){super(...arguments),this.getPromotionPopupContent=o=>this.get(`/api/product/detail/${o.promotionType}popup/?id=${o.id}&culture=${ELECTROLUX.language}`,!0)}}const m=new u;class h{constructor(o){this.promotionTagAttribute="data-cms-promotion-tag",this.attachEvents=()=>{this.bindingPromotionModal()},this.bindingPromotionModal=()=>{const o=this.element.querySelectorAll(`[${this.promotionTagAttribute}]`);0!==o.length&&o.forEach((o=>{o.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.handlePromotionTagEvent(o.getAttribute(this.promotionTagAttribute))}))}))},this.handlePromotionTagEvent=async o=>{const t=this.element.getAttribute("datalayer-product-id");if(ELECTROLUX.GlobalModal.ProductPromotionModalVue||this.createPromotionModal(),ELECTROLUX.GlobalModal.ProductPromotionModalVue.productId!==t||ELECTROLUX.GlobalModal.ProductPromotionModalVue.promotionType!==o){const{Content:e}=await m.getPromotionPopupContent({id:t,promotionType:o});ELECTROLUX.GlobalModal.ProductPromotionModalVue.content=e}ELECTROLUX.GlobalModal.ProductPromotionModalVue.promotionType=o,ELECTROLUX.GlobalModal.ProductPromotionModalVue.productId=t,ELECTROLUX.GlobalModal.ProductPromotionModalVue.show=!0},this.createPromotionModal=()=>{const o=document.createElement("div");document.body.appendChild(o),ELECTROLUX.GlobalModal.ProductPromotionModalVue=new n.Ay({el:o,data:()=>({show:!1,promotionType:"",productId:"",content:""}),render(o){return o(c,{props:{value:this.show,promotionType:this.promotionType,productId:this.productId,content:this.content},on:{input:o=>{ELECTROLUX.GlobalModal.ProductPromotionModalVue.show=o}}})}})},this.element=o,this.attachEvents()}}}}]);

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.