!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Pinia"),require("Vue3")):"function"==typeof define&&define.amd?define(["Pinia","Vue3"],t):"object"==typeof exports?exports.LeOfp2cSharedHeader=t(require("Pinia"),require("Vue3")):e.LeOfp2cSharedHeader=t(e.Pinia,e.Vue3)}(self,((e,t)=>(()=>{var o={387:e=>{window,e.exports=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=12)}([function(e,t,o){"use strict";function n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function r(e){for(var t=1;t"click"==e.type||"keydown"==e.type&&13==e.keyCode,f=(e,t)=>{if("priceLock"!=(null==t?void 0:t.componentType)&&e.productType!=$CONSTANT.PRODUCT_TYPE.SUBSERIES&&e.productType!=$CONSTANT.PRODUCT_TYPE.MANUAL_SUBSERIES&&e.marketingStatus==$CONSTANT.MARKETING_STATUS.AVAILABLE&&1!=e.inventoryStatus)return $CONSTANT.MARKETING_STATUS.TEMPORARILY_UNAVAILABLE;if("priceLock"==(null==t?void 0:t.componentType)){if(e.smbContractPriceInventory<1)return $CONSTANT.MARKETING_STATUS.QUANTITY_UNAVAILABLE;if(e.marketingStatus==$CONSTANT.MARKETING_STATUS.AVAILABLE&&1!=e.inventoryStatus)return $CONSTANT.MARKETING_STATUS.TEMPORARILY_UNAVAILABLE}return e.marketingStatus},p=(e,t)=>{var o,n;if(!e)return e;let{productType:i,serverFixedConfiguration:a}=e,c="";var l;c=null!=t&&t.isPriceLock&&null!==(o=e)&&void 0!==o&&o.softBundleType?e.virtualProductCode:null!==(n=e)&&void 0!==n&&n.promotionTile?flash_fe_core_tool.$util.$idSeed.newId():e.productNumber||e.productCode,"productType"in(e=r(r({},e),{},{productNumber:c,primeProductType:e.primeProductType||e.productType,serverFixedConfig:a}))&&(e.productType=null!==(l=d[i])&&void 0!==l?l:i);try{delete e.currencySymbol,delete e.currencySymbolPos}catch(e){console.log("delete currencySymbol from product info error:",e)}return e},v=!!flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B,_=()=>m()==$CONSTANT.TERMINAL.MOBILE,m=()=>"undefined"==typeof __TERMINAL__?"1":__TERMINAL__,g=e=>{let t=flash_fe_core_tool.$util.$cookie.getCookie("city"),o=flash_fe_core_tool.$util.$cookie.getCookie("region");return n=t,r="2"==e?"":flash_fe_core_tool.$util.$cookie.getCookie("district"),"".concat(o||"").concat(n?","+n:"").concat(r?","+r:"");var n,r};let y="";const b=async()=>{var e;if(y)return y;const t=await flash_fe_core_tool.$Api.getStoreInfo().catch((e=>{console.log("get store info err =",e),y=$CONSTANT.URL.B2B.ACCOUNT.SHOWPAGE}));return y=(null==t||null===(e=t.data)||void 0===e?void 0:e.Store.DefaultLoginPage)||$CONSTANT.URL.B2B.ACCOUNT.SHOWPAGE,y}},function(e,t,o){"use strict";(function(e){var n=o(7),r=o(6),i=o(0);t.a=new class{constructor(){}show(e,t,o,i){let a=new r.a(e);this._view=(new n.a).create("product card model",a),this._view.init(t,o,i)}initModal(t){let o=this;t.checkModal&&e.domEventCenter.register(t.checkModal,"click keydown","",(function(e){if(!Object(i.f)(e))return;let n=13==e.keyCode?t.checkModal:null;o.show(t,n)}))}close(e){this._view.close(e)}}}).call(this,o(4).default)},function(e,t,o){"use strict";o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return l})),o(0);const{$http:n,$util:r}=flash_fe_core_tool,{$coreMethods:i}=r;i.getRequestPrefix();const a=(e,t,o,n,r,i,a,c,l,s,u)=>{const d=flash_fe_core_tool.$util.$coreMethods.getMetaContent("taxonomytype"),h=a.extendedCatalog?"Extended Catalog : ":"";let f={custom:"".concat(d," : ").concat(a.componentName," | ").concat(r," : ").concat(h||"").concat(t),productID:e,layouts:"".concat(a.layouts),Image:o,Hyperlink:n};i?flash_fe_core_tool.$util.$cookie.setCookie("adobe_customInteraction",JSON.stringify(f),flash_fe_core_tool.$domain.getDomain(5,!0)):flash_fe_core_tool.$adobe.doit("CustomInteraction")},c={layout:"",component:"",setLayoutName:function(e){this.layout=e},getLayoutName:function(){return this.layout},setComponentName:function(e){this.component=e},getComponentName:function(){return this.component}},l=(e,t,o,n,r,i,a,c,l)=>{try{const s=flash_fe_core_tool.$util.$coreMethods.getMetaContent("taxonomytype");let u={custom:"".concat(s," : ").concat(t," | ").concat(n," : Featured Products | ").concat(r),position:c||"1:N/A",productID:o,layouts:e,Image:i,Hyperlink:a};window.lmd=Object.assign({},flash_fe_core_tool.$adobe._lmd,u),l?flash_fe_core_tool.$util.$cookie.setCookie("adobe_customInteraction",JSON.stringify(u),flash_fe_core_tool.$domain.getDomain(5,!0)):flash_fe_core_tool.$adobe.doit("CustomInteraction")}catch(e){console.error("adobe error : ",e)}}},function(e,t,o){"use strict";(function(e){o(15);var n=o(0),r=o(2);t.a=class{constructor(e){this._model=e,this._el="",this._clickEl=null,this._product="",this._config={}}init(e,t,o){this._clickEl=e,this.render(),this.addEventListeners(),this._product=t,this._config=o}render(){let e=this._model.getIcon(),t=this._model.getHeader(),o=this._model.getBody(),r=this._model.getExtraCls();const i=Object(n.e)();this._el=$('\n ")),$("body").append(this._el),console.log("this._clickEl:",this._clickEl),this._clickEl&&this._el.find(".closeButton").focus()}addEventListeners(){let t=this;e.domEventCenter.register(t._el,"click keydown","",(function(e){var o,i;if(!Object(n.f)(e))return;const a=translate("what.is.included.in.the.box");let c={layouts:null!==(o=$(t._el).closest("div[layoutname]").eq(0).attr("layoutname"))&&void 0!==o?o:"",componentName:null!==(i=$(t._el).closest("div[componentname]").eq(0).attr("componentname"))&&void 0!==i?i:""};Object(r.a)("",a,"","","Model Overlay",!1,c),t.close()})),e.domEventCenter.register(t._el,"click",".close",(function(e){var o,n,i;const a=translate("what.is.included.in.the.box");let c={layouts:(null===(o=t._config)||void 0===o||null===(o=o.adobeParams)||void 0===o?void 0:o.layouts)||r.b.getLayoutName(),componentName:(null===(n=t._config)||void 0===n||null===(n=n.adobeParams)||void 0===n?void 0:n.componentName)||r.b.getComponentName()};var l;null!==(i=t._config)&&void 0!==i&&i.isFeatureProduct?Object(r.c)(c.layouts,c.componentName,null===(l=t._product)||void 0===l?void 0:l.productNumber,"Icon","Close","","","1:1"):Object(r.a)("",a,"","","Close Popup Button",!1,c),t.close(e)})),e.domEventCenter.register(t._el,"click keydown",".productModal_main",(function(e){Object(n.f)(e)&&e.stopPropagation()}))}close(e){var t;(null===(t=this._config)||void 0===t?void 0:t.closeCb)&&this._config.closeCb(),this._model.clear(),this._el.remove(),this._clickEl&&this._clickEl.focus(),this._clickEl=null}}}).call(this,o(4).default)},function(e,t,o){"use strict";o.r(t);var n=o(5),r=o.n(n);t.default=r.a},function(e,t,o){window,e.exports=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";o.r(t),o.d(t,"store",(function(){return p})),o.d(t,"business",(function(){return v})),o.d(t,"productType",(function(){return _})),o.d(t,"util",(function(){return h})),o.d(t,"shorten",(function(){return f})),o.d(t,"domEventCenter",(function(){return m}));const n=$CONSTANT.STORE_TYPES;class r{constructor(){}create(e,t,o){return this.__proto__.hasOwnProperty(e)&&"function"==typeof this.__proto__[e]?this.__proto__[e].call(this,t,o||[]):null}}for(const e in n){const t=n[e];r.prototype[t]=function(e,t){e&&e.call(this,...t)}}var i=r;$CONSTANT.STORE_TYPES;const a=$CONSTANT.BUSINESS_TYPES;class c{constructor(){}create(e,t,o){return this.__proto__.hasOwnProperty(e)&&"function"==typeof this.__proto__[e]?this.__proto__[e].call(this,t,o||[]):null}}c.prototype[a.B2B]=function(e,t){e&&e.call(this,...t)},c.prototype[a.B2C]=function(e,t){e&&e.call(this,...t)};var l=c;const s=$CONSTANT.PRODUCT_TYPE;class u{constructor(){}create(e,t,o){return this.__proto__.hasOwnProperty(e)&&"function"==typeof this.__proto__[e]?this.__proto__[e].call(this,t,o||[]):null}}for(const e in s){const t=s[e];u.prototype[t]=function(e,t){e&&e.call(this,...t)}}var d=u,h={$coreMethods:{resetProductNumber(e){if(!e)return e;if(1==arguments.length)e.productNumber=e.productNumber||e.productCode;else if(arguments.length>1)for(let t=1;t"undefined"==typeof __TERMINAL__?"1":__TERMINAL__}},f=(e,t)=>{let o={showChars:100,ellipsesText:"...",moreText:translate("more"),moreTkey:"more",moreLink:"javascript://nop/",errMsg:null};t&&Object.assign(o,t);const n=(e,t)=>{for(let o=0;o^\/]+>/;let i=/<\/[^<^>^\/]+>/;const a=/<[^<^>]+>/;let c="hr,br,img,input,meta".split(",");if("string"!=typeof e)return"";let l=(e=e.replace(/(^\s*)|(\s*$)/g,"").replace(/[\r\n]/g,"")).replace(/<[^<^>]*>/g,"");if(!/^\d+$/.test(l.length)||l.length<=o.showChars)return e;let s=e,u=0,d=new Array;for(;a.test(s);){let e=new Object;e.index=u+s.search(a),e.string=s.match(a).toString();let t=s.search(/<[^<^>]+>/)+s.match(/<[^<^>]+>/)[0].length;s=s.substr(t),u+=t,d.push(e)}s=l.substr(0,o.showChars);let h=new Array;for(let e=0;e]/g,"").split(" ");t.length>0&&(t=t[0],n(c,t)||h.push(t))}else if(i.test(d[e].string)){let t=d[e].string.replace(/[<\/>]/g,"");h.length>0&&h[h.length-1]===t&&h.pop()}}if(h.length>0)for(let e=h.length-1;e>=0;e--)s+="";return s+=''.concat(o.ellipsesText,"").concat(o.moreLink?'').concat(o.moreText,""):""),s};const p=new class{constructor(){this._facroty=new i,this._storeName=flash_fe_core_tool.$util.$coreMethods.getMetaContent("storeType")}check(e,t){let o=!1;e.forEach((e=>{let t=e.type;this._storeName==t&&(o=!0,this._facroty.create(t,e.cb,e.params))})),o||t&&t()}},v=new class{constructor(){this._facroty=new l,this._storeName=flash_fe_core_tool.$util.$coreMethods.getMetaContent("channel")||$CONSTANT.BUSINESS_TYPES.B2C}check(e,t,o){if(this._storeName==e)return this._facroty.create(e,t,o)}},_=new class{constructor(){this._facroty=new d}check(e,t){let o=!1;e.forEach((e=>{let t=e.targetType;t==e.sourceType&&(o=!0,this._facroty.create(t,e.cb,e.params))})),o||t&&t()}},m=new class{constructor(){}register(e,t,o,n){$(e).on(t,o,n)}};t.default={store:p,business:v,productType:_,util:h,shorten:f,domEventCenter:m}}]).default},function(e,t,o){"use strict";t.a=class{constructor(e){this._modalData=e}getBody(){return this._modalData.modalBody||""}getHeader(){return this._modalData.modalHeader||""}getIcon(){return this._modalData.modalIcon||""}getExtraCls(){return this._modalData.extraCls||""}clear(){this._modalData={}}}},function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return a}));var n=o(8),r=o(9),i=o(10);class a{constructor(){}create(e,t){return this.__proto__.hasOwnProperty(e)&&"function"==typeof this.__proto__[e]?this.__proto__[e].call(this,t):null}createByType(t,o,n,r){let i=new t(r);switch(e.util.$coreMethods.getTerminal()){case $CONSTANT.TERMINAL.MOBILE:i=new o(r);break;case $CONSTANT.TERMINAL.TABLET:i=new n(r)}return i}}a.prototype["product card model"]=function(e){return this.createByType(n.a,r.a,i.a,e)}}).call(this,o(4).default)},function(e,t,o){"use strict";o(14);var n=o(3);class r extends n.a{constructor(e){super(e)}getClass(){return"pcModal"}}t.a=r},function(e,t,o){"use strict";o(16);var n=o(3);class r extends n.a{constructor(e){super(e)}getClass(){return"mobileClass"}}t.a=r},function(e,t,o){"use strict";o(17);var n=o(3);class r extends n.a{constructor(e){super(e)}getClass(){return"tabletModal"}}t.a=r},function(e,t,o){"use strict";(function(e){o(18);var n=o(0),r=o(2);function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};this._parent=null,this._popoverContent=e.popoverContent,this._popoverText=e.popoverText,this._config=a(a({},l),t),this._id=flash_fe_core_tool.$util.$idSeed.newId(),this._el=null,this._cardPopoverEl=null,this._focusEl=null,this._product=Object(n.g)(e,this._config)}addEventListenerList(){e.util.$coreMethods.getTerminal()==$CONSTANT.TERMINAL.PC&&"hover"===this._config.showType?this.addEventListenerHover():this.addEventListenerClick(),this.addEventListenerCommon();let t=this;$(window).scroll((e=>{t.hide()})),$("body").on("click",(e=>{t.hide()})),$("body").on("touchstart touchmove",(e=>{t.hide()})),$(".productModal.product_quick_view_popup .productModal_main.pcModal").scroll((e=>{t.hide()})),$(".product_title .card-popover-wrapper").click((e=>{e.preventDefault()}))}addEventListenerClick(){let t=this;e.domEventCenter.register(t._focusEl,"click keydown","",(function(e){e.stopPropagation(),Object(n.f)(e)&&(13==e.keycode||t._config.noToBody||$("body").append($("#card-popover-".concat(t._id))),$(".card-popover").not($("#card-popover-".concat(t._id))).hide(),$("#card-popover-".concat(t._id)).is(":hidden")?t.show():t.hide())}))}addEventListenerHover(){let e=this;$(e._focusEl).on("focus",(function(t){t.stopPropagation(),$("body").append($("#card-popover-".concat(e._id))),e.show()})),$(e._focusEl).on("blur",(function(t){t.stopPropagation(),e.hide()})),$(e._focusEl).on("mouseover",(function(t){t.stopPropagation(),$("body").append($("#card-popover-".concat(e._id))),e.show()})),$(e._focusEl).on("mouseout",(function(t){t.stopPropagation(),e.hide()})),$(e._cardPopoverEl).on("focus mouseover",(function(t){e._cardPopoverEl.show()})),$(e._cardPopoverEl).on("mouseout",(function(t){e._cardPopoverEl.hide()})),$(e._cardPopoverEl).on("touchstart touchmove",(function(e){e.stopPropagation()}))}addEventListenerCommon(){let t=this;$(t._cardPopoverEl).on("click keydown",(function(e){var o,n;e.stopPropagation();let i={layouts:(null===(o=$(t._el.find(".card-popover_text").closest("div[layoutname]")[0]))||void 0===o?void 0:o.attr("layoutname"))||"",componentName:(null===(n=$(t._el.find(".card-popover_text").closest("div[componentname]")[0]))||void 0===n?void 0:n.attr("componentname"))||""};Object(r.c)(i.layouts,i.componentName,t._product.productNumber,"Button","Est Value","","")})),$(t._cardPopoverEl).on("touchstart touchmove",(function(e){e.stopPropagation()})),e.domEventCenter.register(t._focusEl,"touchstart touchmove","",(function(e){e.stopPropagation()})),$(t._cardPopoverEl).on("blur",(function(e){t._cardPopoverEl.find("a,button:not(.cd-wh-create-list-btn)").length||t.hide()})),$(t._cardPopoverEl).on("blur","a,button",(function(e){t.hide()}))}show(){var e,t,o;let n,r=document.body.clientWidth,i=this._focusEl.offset().top,a=this._focusEl.offset().left,c=this._focusEl.outerWidth(),l=this._focusEl.outerHeight(),s=$("#card-popover-".concat(this._id)).outerWidth();n=Math.abs(this._config.offsetLeft)?a+this._config.offsetLeft:a-s/2+c/2;let u,d,h=i+l+7+(this._config.offsetTop||0);if(this._config.noToBody&&(h=this._config.offsetTop||0,n=Math.abs(this._config.offsetLeft)?this._config.offsetLeft:-s/2+c/2),this._config.scrollWrapper&&$(this._config.scrollWrapper).length&&this._config.noToBody){var f;let e=a+s+this._config.offsetLeft-(null===(f=$(this._config.scrollWrapper))||void 0===f?void 0:f.outerWidth());e>0&&(n=this._config.offsetLeft-e-2),n=n<-s?-s:n}else if(this._config.scrollWrapper&&$(this._config.scrollWrapper).length){let e=$(this._config.scrollWrapper).outerWidth(),t=$(this._config.scrollWrapper).offset().left;a+c/2+s/2>r?n=t+e-s-2:t>n&&(n=e>=s?t+2:e+t-s-2),n<0&&(n=t+2),n+s>e+t&&this._config.scrollWrapperRight&&(n=e+t-s-2)}d=$(null===(e=this._el[0])||void 0===e?void 0:e.closest(".".concat(this._config.productCardItem)));let p=this._cardPopoverEl.find(".card-popover__arrow-after").outerWidth();var v,_;this._config.wishListAlignment&&this._config.isEnableNewDesignWishList&&d.length&&(n=(null===(v=d)||void 0===v||null===(v=v.offset())||void 0===v?void 0:v.left)+(null===(_=d)||void 0===_?void 0:_.outerWidth())-s,n<0&&(n=a-s/2+c/2)),u=this._config.offsetArrowLeft?a+this._config.offsetArrowLeft:this._config.noToBody?-n-p/2:a-n-p/2+c/2;let m=null===(t=this._el[0])||void 0===t?void 0:t.closest(".card-wish-container"),g=null==m?void 0:m.getBoundingClientRect(),y=null==m?void 0:m.querySelector(".card-heart-icon"),b=null==y?void 0:y.getBoundingClientRect(),w=null==m||null===(o=m.querySelector(".content-text"))||void 0===o?void 0:o.textContent;b&&w&&(n>g.left?(n=g.left-p/2,u=b.width/2):u=u-u+((null==b?void 0:b.left)-n)),$("#card-popover-".concat(this._id," .card-popover__arrow")).css({left:u}),$("#card-popover-".concat(this._id)).show().attr("aria-hidden",!1).css({left:n,top:h}),this._config.switchClass&&($("".concat(this._config.switchClass," .card-popover_text")).removeClass("card-popover_text_show"),this._el.find(".card-popover_text").addClass("card-popover_text_show"))}hide(){this._config.hideCondition&&!this._config.hideCondition()||($("#card-popover-".concat(this._id)).hide().attr("aria-hidden",!0),this._el.find(".card-popover_text").removeClass("card-popover_text_show"))}create(){var e,t,o;let n=this._id,r=this._popoverText,i=this._popoverContent,a=i.length>42?"card-popover_body_hasTopBorder":"";return'\n ').concat(r,'\n \n ")}init(e){this._el=$(e).find(".card-popover-wrapper_".concat(this._id)),this._cardPopoverEl=$("#card-popover-".concat(this._id)),this._focusEl=this._config.focusEl?this._el.find("".concat(this._config.focusEl)):this._el,this.addEventListenerList()}}}).call(this,o(4).default)},function(e,t,o){"use strict";o.r(t),function(e){var n=o(0),r=o(11),i=(o(13),o(1));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t').concat(this.createContent(),""):""}createContent(){return"".concat(this._config.isHideWishIcon?"":'
\n
\n ').concat(this.isSelected()?' ':' ','\n
\n
\n "),"\n ").concat(this._config.isHideWishPop?"":'
\n '.concat(this.createWishPop(),"\n
"))}getWishListRbKeyByChannel(e){let t=flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B?"b2b.".concat(e):e;return{key:t,value:translate(t)}}isSelected(){let e=flash_fe_core_tool.$util.$cookie.getCookie("wishlistpns");return this._productKey?(null==e?void 0:e.indexOf(this._productKey))>-1:!(!e||"null"==e||'""'==e)&&(null==e?void 0:e.length)>0}createWishPopupContent(){let t=this.getWishListRbKeyByChannel("card.wish.create.a.list"),o=this._config.isEnableNewDesignWishList?' \n \n \n \n \n \n \n \n ':'\n \n \n \n \n \n ';return'
\n
\n
').concat(this.getTitleHtml(),'
\n
\n ').concat(t.value,"\n ").concat(this._config.isNewHeaderWishStyle?'>':"".concat(o),'\n \n
\n
\n
\n ').concat(this.getInputHtml(),"\n ").concat(this.getMaxTipHtml("card.wish.max.list.tip"),"\n ").concat(this.getLoadingHtml(),'\n
    \n ').concat(this.getWishListHtml(),"\n
\n
\n
")}getTitleHtml(){let e=this._config.showViewText||!this._product.productNumber?"card.wish.title.my.list":"card.wish.title.save.to";this._showFeatured&&(e="all"===this._featureType?"card.wish.title.lists":"feature"==this._featureType?"card.wish.feature.list":"card.wish.personal.list");let t=this.getWishListRbKeyByChannel(e);return'
\n ').concat(this._showFeatured&&"all"!=this._featureType?' < ':"","\n ").concat(null==t?void 0:t.value,"\n
")}getFeaturedHtml(){if(!this._showFeatured||"all"!=this._featureType)return"";const e=this.getWishListRbKeyByChannel("card.wish.feature.list"),t=this.getWishListRbKeyByChannel("card.wish.personal.list");let o="";return this._wishList.forEach(((n,r)=>{var i,a;o+='
  • \n
    \n
    \n
    ').concat("feature"===n.type?null==e?void 0:e.value:null==t?void 0:t.value,'
    \n
    \n ').concat(null==n||null===(i=n.children)||void 0===i?void 0:i.length," ").concat((null==n||null===(a=n.children)||void 0===a?void 0:a.length)>1?"Lists":"List","\n ").concat(this._getChildrenTotalsize(n.children)," ").concat(this._getChildrenTotalsize(n.children)>1?"Items":"Item",'\n
    \n
    \n
    \n >\n
    \n
    \n
  • ')})),o}_getChildrenTotalsize(e){let t=0;return null!=e&&e.length&&e.forEach((e=>{t+=(null==e?void 0:e.size)||0})),t}getMaxTipHtml(e){let t=this.getWishListRbKeyByChannel(e);return'
    \n \n ').concat(t.value,"\n
    ")}getInputHtml(){let e=this.getWishListRbKeyByChannel("card.wish.create.label"),t=this.getWishListRbKeyByChannel("card.wish.create"),o=this.getWishListRbKeyByChannel("card.wish.create.error.msg");return'
    \n
    \n '.concat(e.value,'\n \n \n
    \n \n \n

    ').concat(o.value,"

    \n
    \n
    ")}getLoadingHtml(){let e=this.getWishListRbKeyByChannel("card.wish.list.loading");return'\n
    \n ').concat(e.value,"\n
    \n
    \n
    \n
    \n ")}getWishListHtml(){var e,t,o;let n="";if(0==this._wishList.length){if(flash_fe_core_tool.$passport.isLogin()||!this._product.productNumber){var r;null===(r=this._popoverEl)||void 0===r||r.addClass("empty-msg-div");let e=this.getWishListRbKeyByChannel("card.wish.no.list.msg");return'
    ').concat(e.value,"
    ")}this.setWishData([{id:1,name:this.getWishListRbKeyByChannel("wishGuestListName").value,size:0}])}let i=this._wishList;if(this._showFeatured){if("all"===this._featureType)return n=this.getFeaturedHtml(),n;var a;i=null===(a=this._wishList.find((e=>e.type===this._featureType)))||void 0===a?void 0:a.children}null===(e=this._popoverEl)||void 0===e||e.removeClass("empty-msg-div");let c=1==(null===(t=i)||void 0===t?void 0:t.length)?"no-bottom":"";return null===(o=i)||void 0===o||o.forEach(((e,t)=>{var o;let r=e.size>=30,i=this.getItemKey(e.size),a=this.getWishListRbKeyByChannel(i);n+='
  • \n
    \n \n
    \n ').concat(this.getRightViewHtml(e.existQueryProductNumber,e.name),"\n
    \n
    \n ").concat(r?this.getMaxTipHtml("card.wish.max.item.tip"):"","\n
  • ")})),n}getItemKey(e){return 1==e?"card.wish.num.item":"card.wish.num.items"}getRightViewHtml(e,t){var o;let n=this.getWishListRbKeyByChannel("card.wish.link.view");return this._config.isHamburgerType?'':this._config.showViewText||!this._product.productNumber?(null===(o=this._wishList)||void 0===o?void 0:o.length)>1?'':'').concat(n.value,""):'
    \n \n ').concat(e?'':'',"\n \n
    ")}wishList(){let e=c({custom:"",productID:"",Image:"",Hyperlink:"",layouts:"",productindex:""},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});window.lmd=Object.assign({},flash_fe_core_tool.$adobe._lmd,e),flash_fe_core_tool.$adobe.doit("CustomInteraction")}wishListAdobe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{if(!e.custom)return;let n={productID:this._product.productNumber||"",layouts:this._el.parents('[tag="layout"]').attr("layoutname")||"",productindex:""},r=this._componentName;console.log(r);let i="";if("2"==__TERMINAL__&&"ofp-2c-mobile-new-dlp"==r){document.querySelectorAll(".product_list .product_item, .product_list .carousel_interrupter").forEach(((e,t)=>{e.querySelector(".product_title")&&e.querySelector(".product_title").getAttribute("id")==n.productID&&(i=t+1)}));let e=this._el.parents('[tag="layout"]').attr("layoutname")||"";n.layouts=e,n.productindex="".concat(i,":N/A")}const a=this.isHeaderComponent()?e.custom.replace(/{type}/g,"Masthead"):e.custom.replace(/{type}/g,"Product Card"),c=flash_fe_core_tool.$passport.isLogin()?"Signed In":"Guest";let l="";t?this.getAllWishListOverview().then((e=>{l=e.data&&e.data.length>0?"Single List":"No List",n.custom="".concat(a," - ").concat(c," - ").concat(l,")"),this.wishList(n)})):(l=o?"Single List":"No List",n.custom="".concat(a," - ").concat(c," - ").concat(l,")"),this.wishList(n))}catch(e){console.log("wish list adobe err =",e)}}initCardHeart(e){this._config.isEnableNewDesignWishList&&(e.on("mouseenter",".iconfont-cardHeart,.iconfont-cardHeartPurple.iconfont-cardHeartPurple-empty-style",(function(e){$(this).parents(".card-heart-icon").hasClass("selected")?($(this).addClass("iconfont-cardHeart"),$(this).removeClass("iconfont-cardHeartPurple"),$(this).removeClass("iconfont-cardHeartPurple-empty-style")):($(this).addClass("iconfont-cardHeartPurple"),$(this).removeClass("iconfont-cardHeart"),$(this).addClass("iconfont-cardHeartPurple-empty-style"))})),e.on("mouseleave",".iconfont-cardHeart,.iconfont-cardHeartPurple.iconfont-cardHeartPurple-empty-style",(function(e){!$(this).parents(".card-heart-icon").hasClass("selected")&&($(this).addClass("iconfont-cardHeart"),$(this).removeClass("iconfont-cardHeartPurple"),$(this).removeClass("iconfont-cardHeartPurple-empty-style"))})))}addEventListenerList(){let t=this;this._config.isHideWishPop||(this._el.on("touchstart touchmove",(e=>{e.stopPropagation()})),this._el&&t.initCardHeart(this._el),this._popoverEl&&t.initCardHeart(this._popoverEl),this._config.isHoverShowWishPop&&e.util.$coreMethods.getTerminal()===$CONSTANT.TERMINAL.PC?(this._config.noHoverEventForIcon?(this._config.noFocusEventForIcon||this._el.on("focusin",(function(e){t.openPopup(e)})),this._el.on("blur",".card-heart-icon",(function(e){t._popOpen=!1,t._featureType="all",t._el.hasClass("card-wish-hover")&&t._el.removeClass("card-wish-hover")}))):(this._el.on("mouseenter focusin",(function(e){t.openPopup(e)})),this._el.on("mouseleave",(function(e){t.closePopup(e)})),this._el.on("blur",(function(e){t._popOpen=!1,t._featureType="all",t._el.hasClass("card-wish-hover")&&t._el.removeClass("card-wish-hover")}))),this._popoverEl.on("blur",".item-left",(function(e){var o,n,r;"focusout"==e.type&&(null===(o=t._wishList)||void 0===o?void 0:o.length)>1&&(null===(n=$(e.currentTarget))||void 0===n?void 0:n.data("index"))==(null===(r=t._wishList)||void 0===r?void 0:r.length)-1&&t.closePopup(e)})),this._el.on("click","",(function(e){e.stopPropagation(),flash_fe_core_tool.$util.$coreMethods.doRedirect(flash_fe_core_tool.$util.$redirect.dealGroupId(flash_fe_core_tool.$util.$coreMethods.getURIPrefix()+"".concat(t._WISH_HOME_URL)))}))):this._el.on("click keydown","",(function(e){if(Object(n.f)(e))if(e.stopPropagation(),"none"==$(".card-wish_popover_".concat(t._id)).css("display")&&13!=e.keyCode){if(t.hideCreateContainer(),t.initPopover(!0,!0,!0),t.isPbComponent()&&"undefined"!=_ProductBuilder_adobe_tool){const o=t._el.parents(".listBody"),n=e.target.classList.contains("selected")?"Wishlist Remove":"Wishlist Add";t.productBuilderWishlistAdobeTrack(o,n)}}else t.showOrHideWishPop(),"keydown"==e.type&&13==e.keyCode&&$(".card-popover.card-wish_popover.card-wish_popover_".concat(t._id)).focus()})),this._config.showViewText||this._popoverEl.on("click",".card-heart-item-btn",(function(e){if(e.stopPropagation(),t.updateProductWish(e),t.isPbComponent()&&"undefined"!=_ProductBuilder_adobe_tool){const o=t._el.parents(".listBody"),n=e.target.classList.contains("selected")?"Wishlist Remove":"Wishlist Add";t.productBuilderWishlistAdobeTrack(o,n)}})),flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B&&flash_fe_core_tool.$passport.isLogin()&&(this._popoverEl.on("click keydown",".wish-list-feature-item",(function(e){e.stopPropagation();const o=$(e.currentTarget).attr("data-type");t._featureType=o,t._popoverEl.find(".cd-wh-title-container").html(t.getTitleHtml()),t._popoverEl.find(".cd-wh-create-btn").hide(),t._popoverEl.find(".card-wish-list-ul").html(t.getWishListHtml())})),this._popoverEl.on("click keydown",".cd-wh-title",(function(e){e.stopPropagation();const o=$(e.currentTarget).attr("data-type");o&&["feature","personal"].includes(o)&&(t._featureType="all",t._popoverEl.find(".cd-wh-create-btn").show(),t._popoverEl.find(".cd-wh-title-container").html(t.getTitleHtml()),t._popoverEl.find(".card-wish-list-ul").html(t.getWishListHtml()))}))),flash_fe_core_tool.$passport.isLogin()&&(this._popoverEl.on("click keydown",".cd-wh-create-btn",(function(e){Object(n.f)(e)&&(e.stopPropagation(),t._popoverEl.find(".cd-wh-create-btn").hasClass("create-expand")&&13!=e.keycode?t.hideCreateContainer():(t.showCreateContainer(),"keydown"==e.type&&13==e.keyCode&&$(".card-popover.card-wish_popover.card-wish_popover_".concat(t._id)).focus(),t.hideErrorStyle()),t.wishListAdobe({custom:"My List (PopUp) Create a List ({type} - Wish List Popup"}))})),this._popoverEl.on("click",".cd-wh-create-list-btn",(function(e){e.stopPropagation(),t.createWish(e),t.wishListAdobe({custom:"My List (PopUp) Create Button Selected ({type} - Wish List Popup"})})),this._popoverEl.on("input",".cd-wh-create-input",(function(e){e.stopPropagation(),t._config.isEnableNewDesignWishList&&t._popoverEl.find(".cd-wh-create-container").hasClass("err-style")&&(t._popoverEl.find(".error-msg").hide(),t._popoverEl.find(".cd-wh-create-container").removeClass("err-style"))})),this._popoverEl.on("focus",".cd-wh-create-input",(function(e){e.stopPropagation(),t._popoverEl.find(".cd-input-label").css("transform","scale(0.8)").css("top","3px"),t._inputFocus=!0})),this._popoverEl.on("blur",".cd-wh-create-input",(function(){""==t._popoverEl.find(".cd-wh-create-input").val()&&t._popoverEl.find(".cd-input-label").css("transform","scale(1)").css("top","10px"),t._inputFocus=!1})),$(".card-wish_popover_".concat(this._id)).on("blur","button",(function(e){e.stopPropagation(),$(".card-wish_popover_".concat(t._id)).show().attr("aria-hidden",!1)}))),this._popoverEl.on("click keypress",".item-link",(function(e){e.stopPropagation();const o=$(e.currentTarget);let n=o.parents(".cd-wh-item").attr("data-id");const r=flash_fe_core_tool.$util.$redirect.dealGroupId(flash_fe_core_tool.$util.$coreMethods.getURIPrefix()+"".concat(t._WISH_HOME_URL,"?wishId=").concat(n));try{const e=flash_fe_core_tool.$util.$coreMethods.getMetaContent("adobeParam"),n=o.find(".cd-p-name").attr("title");let i={custom:"".concat(e," : ").concat(t._componentName," : link ").concat(n),productID:"".concat(t._id),layouts:t._layoutName,Image:"",Hyperlink:"".concat(r)};flash_fe_core_tool.$util.$cookie.setCookie("adobe_customInteraction",JSON.stringify(i),flash_fe_core_tool.$domain.getDomain(5,!0))}catch(e){console.log("adobe track for product wish heart error",e)}flash_fe_core_tool.$util.$coreMethods.doRedirect(r)})),this._popoverEl.on("click",".cd-wh-item-view",(function(e){e.stopPropagation(),t.wishListAdobe({custom:"My List (PopUp) clicks view ({type} - Wish List Popup"},!1)})),this._product.productNumber?flash_fe_core_tool.$event_publisher.on("add-to-wish-list",(e=>{(null==e?void 0:e.productNumber)==t._product.productNumber&&(null==e?void 0:e.id)!=t._id&&t.updateSelectStatus()})):(flash_fe_core_tool.$event_publisher.on("my-list-create-list",(e=>{null!=e&&e.isHeader||t.updateSelectStatus()})),flash_fe_core_tool.$event_publisher.on("delete-wish-list-id",(()=>{t.updateSelectStatus()})),flash_fe_core_tool.$event_publisher.on("add-to-wish-list",(e=>{null!=e&&e.isUpdateSelectStatus&&t.updateSelectStatus()}))))}openPopup(e){let t=this;this._popOpen=!0,this._featureType="all","none"==$(".card-wish_popover_".concat(t._id)).css("display")&&(t._el.hasClass("card-wish-hover")||t._el.addClass("card-wish-hover"),t.hideCreateContainer(),t.initPopover(!0,!1,!0,{custom:"Wish List Heart ({type}"}),"focusin"==(null==e?void 0:e.type)&&setTimeout((()=>{$(".card-popover.card-wish_popover.card-wish_popover_".concat(t._id)).focus()}),100))}closePopup(e){let t=this;this._popOpen=!1,this._featureType="all",t._el.hasClass("card-wish-hover")&&t._el.removeClass("card-wish-hover"),$(".card-wish_popover_".concat(t._id)).css("display","none")}showCreateContainer(){this._popoverEl.find(".cd-wh-create-btn").addClass("create-expand"),this._popoverEl.find(".cd-wh-create-container").show(),this._popoverEl.find(".cd-wh-list-container").scrollTop(0)}hideCreateContainer(){this._popoverEl.find(".cd-wh-create-btn").removeClass("create-expand"),this._popoverEl.find(".cd-wh-create-container").hide()}showErrorStyle(e){let t=this.getWishListRbKeyByChannel(e);this._popoverEl.find(".error-msg p").attr("data-tkey",t.key).html(t.value),this._popoverEl.find(".cd-wh-create-container").addClass("err-style"),this._popoverEl.find(".error-msg").show().focus()}hideErrorStyle(){this._popoverEl.find(".error-msg").hide(),this._popoverEl.find(".cd-wh-create-container").removeClass("err-style"),this._popoverEl.find(".cd-wh-create-input").val("")}showMaxTip(){this._config.isEnableNewDesignWishList?this._popoverEl.find(".cd-wh-list-container>.cd-wh-max-tip").css("display","flex"):this._popoverEl.find(".cd-wh-list-container>.cd-wh-max-tip").show()}hideMaxTip(){this._popoverEl.find(".cd-wh-list-container>.cd-wh-max-tip").hide()}showCreateText(){flash_fe_core_tool.$passport.isLogin()&&(this._showFeatured&&"all"!=this._featureType||this._popoverEl.find(".cd-wh-create-btn").show())}hideCreateText(){this._popoverEl.find(".cd-wh-create-btn").hide()}updateSelectStatus(){this._config.isEnableNewDesignWishList&&this._el.find(".iconfont-cardHeartPurple.iconfont-cardHeartPurple-empty-style").length>0&&this._el.find(".iconfont-cardHeartPurple.iconfont-cardHeartPurple-empty-style").removeClass("iconfont-cardHeartPurple").removeClass("iconfont-cardHeartPurple-empty-style").addClass("iconfont-cardHeart"),this.isSelected()?(this._el.find(".card-wish-btn").addClass("selected"),this._el.find(".card-wish-btn").find(".iconfont-cardHeartPurple").show(),this._el.find(".card-wish-btn").find(".iconfont-cardHeart").hide(),this._el.find(".card-heart-icon").attr("aria-label",this._product.productNumber?"Added to Wishlist":"Wishlist button")):(this._el.find(".card-wish-btn").removeClass("selected"),this._el.find(".card-wish-btn").find(".iconfont-cardHeartPurple").hide(),this._el.find(".card-wish-btn").find(".iconfont-cardHeart").show(),this._el.find(".card-heart-icon").attr("aria-label",this._product.productNumber?"Added to Wishlist":"Wishlist button, no items present in wishlist"))}getB2BWishRemovePopHtml(){return'
    \n
    \n \n
    \n \n \n
    \n
    \n
    ")}openRemoveFromListPop(e){var t;i.a.show({modalHeader:'
    '.concat(translate("card.wish.b2b.remove.pop.title"),"
    "),modalBody:this.getB2BWishRemovePopHtml(),extraCls:"product-b2b-wish-remove-popup product-b2b-wish-remove-popup_".concat(this._product.productNumber)}),this._B2BWishPopEl=null===i.a||void 0===i.a||null===(t=i.a._view)||void 0===t?void 0:t._el;let o=this;this._B2BWishPopEl.on("click",".wish-popup-choose-button",(t=>{t.stopPropagation(),null===i.a||void 0===i.a||i.a.close(t);let n=$(e.currentTarget).parents(".cd-wh-item").attr("data-id"),r=flash_fe_core_tool.$util.$redirect.dealGroupId(flash_fe_core_tool.$util.$coreMethods.getURIPrefix()+"".concat(o._WISH_HOME_URL,"?wishId=").concat(n));flash_fe_core_tool.$util.$coreMethods.doRedirect(r)})),this._B2BWishPopEl.on("click",".wish-popup-all-button",(t=>{null===i.a||void 0===i.a||i.a.close(t),this.updateProductWishByStatus(!0,e)}))}updateProductWish(e){let t=$(e.currentTarget).hasClass("selected"),o=$(e.currentTarget).parents(".cd-wh-item").attr("has-config");flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B&&t&&"true"==o&&!this._configId&&!this._config.isFromWishList?this.openRemoveFromListPop(e):this.updateProductWishByStatus(t,e)}updateProductWishByStatus(e,t){let o=$(t.currentTarget).parents(".cd-wh-item").attr("data-id");this.updateProductToWishList(this._product.productNumber,o,e).then((e=>{if("SUCCESS"==(null==e?void 0:e.data)||200==e.status){let e=$(t.currentTarget).hasClass("selected");flash_fe_core_tool.$event_publisher.broadcast("add-to-wish-list",{wishId:o,productNumber:this._product.productNumber,isRemove:e,id:this._id}),this.initPopover(!1);const n=e?"Removed":"Added";this.wishListAdobe({custom:"Wish List Heart ({type} - ".concat(n)},!1)}})).catch((e=>{console.log("update product to Wish list err =",e)}))}updateWishText(){var e;if(!this._config.wishTextActive)return;let t="",o="";if((null===(e=this._wishList)||void 0===e?void 0:e.length)>0){let e=0;this._wishList.forEach((n=>{let r=new Date(n.updateTime).getTime();n.existQueryProductNumber&&r>e&&(t=n.name,o=n.id,e=r)}))}t||(t=this._config.wishText),this._defaultWishText!=t&&(this._defaultWishText=t,this._el.find(".content-text-container").html(this.getContentTextHtml(t,o)),this._wishPopover.show())}getContentTextHtml(e,t){return'').concat(e,"")}createWish(e){let t=this._popoverEl.find(".cd-wh-create-input").val();t?t.length>200?this.showErrorStyle("WISH_NAME_OVER_SIZE_ERROR"):(this._wishListCreated=!0,this.createWishList(this.htmlEscape(t)).then((e=>{null!=e&&e.data&&(flash_fe_core_tool.$event_publisher.broadcast("my-list-create-list",{isHeader:!this._product.productNumber}),this._defaultFirstId=e.data,this.hideErrorStyle(),this.hideCreateContainer(),this.initPopover(!1))})).catch((e=>{console.log("create Wish data err =",e),null!=e&&e.msg&&this.showErrorStyle(null==e?void 0:e.msg)}))):this.showErrorStyle("card.wish.create.error.msg")}htmlEscape(e){return e.replace(/[<>"&'`/]/g,(function(e,t,o){switch(e){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":case"`":return"'";case"/":return"⁄"}}))}async initB2BLoginPage(){var e;!flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B||null!==(e=flash_fe_core_tool)&&void 0!==e&&e.$passport.isLogin()||this._b2bLoginPage||(this._b2bLoginPage=await Object(n.a)())}async init(e){var t;const{renderWishEl:o,needUseJquery:n}=this._config;n&&(e=$(e)),o&&o.html(this.create()),this._el=e.find(".card-wish-container_".concat(this._id)),this._popoverEl=$(".card-wish-pop-container_".concat(this._id)),null===(t=this._wishPopover)||void 0===t||t.init(this._el.find(".card-wish-open-btn-default")),await this.initB2BLoginPage(),this.addEventListenerList(),this._config.wishTextActive?this.initPopover():this._product.productNumber||this.updateSelectStatus(),this.hasLoginB2BDefaultWish()&&this.initPopover(!0,!0,!0),this._componentName=e.parents("div[componentname]").eq(0).attr("componentname"),this._layoutName=e.parents("[type=2][tag=layout]").attr("layoutname")}hasLoginB2BDefaultWish(){var e;let t=!1;var o;return flash_fe_core_tool.$util.$coreMethods.getUrlParam("B2BDefaultWishProduct")==this._product.productNumber&&(null===(o=flash_fe_core_tool)||void 0===o||null===(o=o.$util)||void 0===o||null===(o=o.$URIHash)||void 0===o||o.remove("B2BDefaultWishProduct"),t=!0),flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B&&(null===(e=flash_fe_core_tool)||void 0===e?void 0:e.$passport.isLogin())&&t}isHeaderComponent(){return"commonHeader"==this._componentName||"smbCommonHeader"==this._componentName}isDlpComponent(){return"cardDlp"==this._componentName}isPbComponent(){return"ProductBuilder"==this._componentName}productBuilderWishlistAdobeTrack(e,t){try{const o=e.find(".title_overflow_hidden").text().trim(),n=e.find(".part_number").attr("product-number")||"",r=flash_fe_core_tool.$util.$coreMethods.getUrlParam("mainCode"),i=e.find(".card-product-image-show").attr("src")||"";_ProductBuilder_adobe_tool.handleCard(t,o,[r,n],i)}catch(e){console.log("product builder adobe error",e)}}getAllWishListOwnWithShare(){return flash_fe_core_tool.$http.jsonp("".concat(this._PREFIX,"/online/product/getAllWishListOwnWithShare"),null,null,!0)}getOwnWishListOverview(){return flash_fe_core_tool.$http.jsonp("".concat(this._PREFIX,"/online/product/getAllWishListOverview").concat(this._product.productNumber?"?listSortType=1&productNumber=".concat(this._product.productNumber):"").concat(this._configId?"&configId=".concat(this._configId):""),null,null,!0)}getAllWishListOverview(){return this._showFeatured=!1,flash_fe_core_tool.$passport.isLogin()&&this._product.productNumber?Promise.all([this.getOwnWishListOverview(),this.getAllWishListOwnWithShare()]).then((e=>{var t,o,n;let r=[];const[i,a]=e||[];if(null!=i&&null!==(t=i.data)&&void 0!==t&&t.length&&(r=[...i.data]),null!=a&&null!==(o=a.data)&&void 0!==o&&null!==(o=o.shareList)&&void 0!==o&&o.length){let e=this.getExistStatus(a.data.shareList);r=[...r,...e]}const c=[],l=[];return flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B&&null!=a&&null!==(n=a.data)&&void 0!==n&&n.featurePermission&&(r.forEach(((e,t)=>{1==(null==e?void 0:e.wishListType)?c.push(e):l.push(e)})),c.length&&(this._showFeatured=!0,r=[],r.push({type:"feature",title:"Featured Lists",children:c}),r.push({type:"personal",title:"Personal Lists",children:l}))),{data:r}})).catch((e=>{console.log("getAllWishListOverview error",e)})):this.getOwnWishListOverview()}getExistStatus(e){let t=[];const o=flash_fe_core_tool.$passport.cookie.loginName;return null==e||e.forEach((e=>{const n=e.wishListAuthorityList.find((e=>e.email==o));if(5==(null==n?void 0:n.level)){var r;if(null!==(r=e.productOverviewList)&&void 0!==r&&r.length){let t=e.productOverviewList.map((e=>{let{productNumber:t,configId:o}=e;return t+(o||"")}));e.existQueryProductNumber=(null==t?void 0:t.indexOf(this._product.productNumber+(this._configId||"")))>-1}t.push(e)}})),t}createWishList(e){return flash_fe_core_tool.$http.post("".concat(this._PREFIX,"/online/product/createWishList"),{wishListName:e},{},!0)}updateProductToWishList(e,t,o){let n={};return flash_fe_core_tool.$passport.isLogin()&&(n.wishId=t),this._product.cartId&&!this._config.isFromWishList&&!o&&flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B?(n.id=this._product.cartId,flash_fe_core_tool.$http.post("".concat(this._PREFIX,"/api/savedForLater/addToWishList"),n,{},!0)):(this._configId&&flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B?n.configId=this._configId:this._config.isFromWishList&&flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B&&(n.configId=0),n.productNumber=e,flash_fe_core_tool.$http.post("".concat(this._PREFIX,"/online/product/updateProductToWishList"),n,{},!0))}setWishData(e){e&&(this._wishList=this.resetSort(e))}updateProductInfo(e){this._product=c(c({},this._product),e)}resetSort(e){if(!this._defaultFirstId||(null==e?void 0:e.length)<=1)return e;let t=[],o=null;if(this._showFeatured){var n;let r=e.findIndex((e=>"personal"===e.type));return null===(n=e[r])||void 0===n||null===(n=n.children)||void 0===n||n.forEach((e=>{e.id==this._defaultFirstId?o=e:t.push(e)})),e[1].children=[o,...t],e}return e.forEach((e=>{e.id==this._defaultFirstId?o=e:t.push(e)})),[o,...t]}createWishPop(){let t="product_item_".concat(this._product.productNumber),o=this;return this._wishPopover=new r.a({popoverContent:this.createWishPopupContent(),popoverText:'
    '},{wishListAlignment:this._config.wishListAlignment,isEnableNewDesignWishList:this._config.isEnableNewDesignWishList,productCardItem:this._config.productItem||t,scrollWrapper:this._config.isNewHeaderWishStyle?"body":this._config.wishScrollWrapper||"body",extraCls:"card-wish_popover card-wish_popover_".concat(this._id," ").concat(this._config.isRemoveWishGaming?"no-gaming":""," ").concat(this._config.isNewHeaderWishStyle?"card-new-wish-popover":""," ").concat(this._config.isEnableNewDesignWishList?"card-wish_popover_new_ui":""," "),showType:"click",noToBody:this._config.isHoverShowWishPop,offsetTop:this._config.isNewHeaderWishStyle?0:this._config.isHoverShowWishPop?3:6,offsetLeft:this._config.noHoverEventForIcon?-320:this._config.isNewHeaderWishStyle?-330:0,hideCondition:e.util.$coreMethods.getTerminal()!==$CONSTANT.TERMINAL.PC?()=>!o._inputFocus:null}),this._wishPopover.create()}updateWishListHtml(){var e;this._popoverEl.find(".cd-wh-title-container").html(this.getTitleHtml()),this._popoverEl.find(".card-wish-list-ul").html(this.getWishListHtml());let t=this._wishList;var o;if(this._showFeatured&&(t=null===(o=this._wishList.find((e=>"personal"===e.type)))||void 0===o?void 0:o.children),(null===(e=t)||void 0===e?void 0:e.length)>=this.wishListMaxLength?(this.hideCreateText(),this.hideCreateContainer(),this.showMaxTip(),this._popoverEl.addClass("noticeMax-list")):(this.showCreateText(),this.hideMaxTip(),this._popoverEl.removeClass("noticeMax-list")),this._wishListCreated){var n;let e=null===(n=this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0])||void 0===n?void 0:n.textContent;$(this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0]).attr("aria-label",e+" list created"),$(this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0]).attr("tabindex","0"),$(this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0]).focus(),setTimeout((()=>{$(this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0]).removeAttr("aria-label"),$(this._popoverEl.find(".card-wish-list-ul>.cd-wh-item .cd-p-name")[0]).removeAttr("tabindex")}),1e3)}this._wishListCreated=!1}getSharedByName(e){let t="",o=this.getWishListRbKeyByChannel("wishListsharedBy");return t=e.familyFlag?e.shareByUserFirstName&&e.shareByUserLastName?'
    ').concat(o.value,": ").concat(e.shareByUserFirstName," ").concat(e.shareByUserLastName,"
    "):"":e.shareBy?'
    ').concat(o.value,": ").concat(e.shareBy,"
    "):"",t}getB2BWishPopHtml(){return'
    \n
    \n
    '.concat(translate("card.wish.b2b.pop.content"),'
    \n \n
    \n \n \n
    \n
    \n
    ")}openB2BLoginPop(){var e;i.a.show({modalHeader:'
    '.concat(translate("card.wish.b2b.pop.title"),"
    "),modalBody:this.getB2BWishPopHtml(),extraCls:"product-b2b-wish-login-popup product-b2b-wish-login-popup_".concat(this._product.productNumber)}),this._B2BWishPopEl=null===i.a||void 0===i.a||null===(e=i.a._view)||void 0===e?void 0:e._el;let t=this;this._B2BWishPopEl.on("click",".wish-popup-close-button",(e=>{e.stopPropagation(),null===i.a||void 0===i.a||i.a.close(e)})),this._B2BWishPopEl.on("click",".wish-popup-confirm-button",(e=>{var o;let n=null!==(o=location.href)&&void 0!==o&&o.includes("?")?"&":"?",r="".concat(location.href).concat(t._product.productNumber?"".concat(n,"B2BDefaultWishProduct=").concat(t._product.productNumber):"");flash_fe_core_tool.$util.$redirect.do(t._b2bLoginPage+"?returnUrl=".concat(encodeURIComponent(r)))}))}initPopover(e,t,o,n){var r;if(!this._config.isHideWishPop)if(!flash_fe_core_tool.$util.$coreMethods.checkChannel().isB2B||null!==(r=flash_fe_core_tool)&&void 0!==r&&r.$passport.isLogin()){var i,a;o&&(null===(i=this._popoverEl)||void 0===i||i.find(".bouncing-loader").show(),null===(a=this._popoverEl)||void 0===a||a.find(".card-wish-list-ul").hide()),e&&(this._featureType="all",this.showOrHideWishPop()),this.getAllWishListOverview().then((e=>{if(this.setWishData(null==e?void 0:e.data),t&&this.isAutoUpdate())this.autoUpdateToList();else{this.updateWishListHtml(),this.updateWishText(),this.updateSelectStatus();const t=!!(e.data&&e.data.length>0);this.wishListAdobe(c({custom:""},n),!1,t),o&&this.hideLoading()}})).catch((e=>{o&&this.hideLoading(),console.log("get Wish data err =",e)}))}else this.openB2BLoginPop()}isAutoUpdate(){var e;let t=this._el.find(".card-wish-btn").hasClass("selected"),o=this._product.productNumber&&1==(null===(e=this._wishList)||void 0===e?void 0:e.length);return t?o:o&&this._wishList[0].size<30}showOrHideWishPop(){var e;this._defaultFirstId=null,this._config.isHoverShowWishPop?this._popOpen&&(null===(e=this._wishPopover)||void 0===e||e.show()):this._el.find(".card-wish-open-btn-default-btn").click()}autoUpdateToList(){let e=this._wishList[0].id,t=this._wishList[0].size,o=this._el.find(".card-wish-btn").hasClass("selected");this.updateProductToWishList(this._product.productNumber,e,o).then((o=>{if("SUCCESS"==(null==o?void 0:o.data)){let o=this._el.find(".card-wish-btn").hasClass("selected");flash_fe_core_tool.$event_publisher.broadcast("add-to-wish-list",{wishId:e,productNumber:this._product.productNumber,isRemove:o,isUpdateSelectStatus:this._product.productNumber&&!o&&0==t,id:this._id});const n=o?"Removed":"Added";this.wishListAdobe({custom:"Wish List Heart ({type} - ".concat(n)},!1)}this.initPopover(!1,!1,!0)})).catch((e=>{this.initPopover(!1,!1,!0),console.log("update product to Wish list err =",e)}))}hideLoading(){var e,t;null===(e=this._popoverEl)||void 0===e||e.find(".bouncing-loader").hide(),null===(t=this._popoverEl)||void 0===t||t.find(".card-wish-list-ul").show()}}}.call(this,o(4).default)},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){}]).default},763:(e,t,o)=>{var n;window,e.exports=(n=o(660),function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=30)}([function(e,t){e.exports=n},function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.titleText||"targetTitle",o=e.targetText||"targetContent",n=e.attrValue||"N/A",r=flash_fe_core_tool.$util.$coreMethods.getMetaContent("taxonomytype")||" ",i=e.positionItem||"",a="1 Columns",c=e.hrefData||"",l={custom:"Page Name : ".concat(r," | ").concat(t," : ").concat(o," | ").concat(n),position:"".concat(i,":N/A"),productID:"N/A",layouts:"".concat(a),Hyperlink:"".concat(c),Image:" "};null!=c&&c.startsWith("https")?flash_fe_core_tool.$util.$cookie.setCookie("adobe_customInteraction",JSON.stringify(l),flash_fe_core_tool.$domain.getDomain(5,!0)):(window.lmd=Object.assign({},flash_fe_core_tool.$adobe._lmd,l),flash_fe_core_tool.$adobe.doit("CustomInteraction"))}},function(e,t,o){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),a=[];function c(e){for(var t=-1,o=0;on.jsonp("".concat(i,"/ofp/search/suggest/selector")),c=(e,t)=>"B2B"==t?n.post("".concat(i,"/ofp/search/wordSuggest"),e):n.post("".concat(i,"/ofp/search/suggest"),e),l=async e=>await n.jsonp("".concat(i,"/api/v1/search/assign_cookie?key=").concat(e.key,"&value=").concat(e.value,"&weight=").concat(e.weight))},,,function(e,t,o){var n=o(2),r=o(15);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),n(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},function(e,t,o){var n=o(2),r=o(17);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),n(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}},function(e,t,o){"use strict";var n=o(0),r={name:"arrow-down",template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '},i={name:"arrow-up",template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '},a=o(1);const c=["aria-label","aria-expanded"],l=["data-id","data-identify","data-name","title"],s={class:"arrow_container"},u=["aria-expanded"],d={role:"menubar"},h=["data-name","aria-label"],f=["data-id","data-name","aria-label"];var p={__name:"categoryList",props:{categoryArr:{type:Array,default:[]}},emits:["setCategoryParam"],setup(e,t){let{expose:o,emit:p}=t;const{$util:v,$event_publisher:_}=flash_fe_core_tool,{$coreMethods:m}=v,g=translate("All"),y=Object(n.ref)(""),b=Object(n.ref)("All"),w=Object(n.ref)(10001),S=Object(n.ref)(!1),C=Object(n.ref)(""),E=window.__TERMINAL__===$CONSTANT.TERMINAL.PC,k=Object(n.computed)((()=>y.value||g));Object(n.onMounted)((()=>{C.value=E?"category_pc":"category_other";var e=document.querySelector(".category_container");e&&"category_pc"!=C.value&&e.focus();const t=m.getMetaContent("category_selector_id"),o=m.getMetaContent("category_selector_label");t&&(y.value=o,b.value="Others",w.value=t,T("".concat(t,":").concat(o))),_.on("searchBoxCategoryData",(e=>{e.categorySelectorId&&(y.value=e.categorySelectorLabel,b.value="Others",w.value=e.categorySelectorId,T("".concat(e.categorySelectorId,":").concat(e.categorySelectorLabel)))}))})),o({showListFlag:S});const x=p,T=e=>{x("setCategoryParam",e)},A=e=>{const{id:t,name:o,identify:n}=e.target.dataset;y.value=o,b.value=n,w.value=t,S.value=!1,T("All"!==n?"".concat(t,":").concat(o):"");let r=document.querySelector(".category_dialog ul").querySelectorAll("li"),i=0;r.forEach(((e,t)=>{e.textContent===o&&(i=t)})),Object(a.a)({titleText:"text",targetText:o||"",attrValue:"N/A",positionItem:"".concat(i)})},L=e=>{const t=S.value?"collapsed":"expand";var o=document.querySelector(".category_selected").textContent;Object(a.a)({titleText:"dropdown",targetText:o||"",attrValue:t||" ",positionItem:"N/A"})};return(t,o)=>(Object(n.openBlock)(),Object(n.createElementBlock)(n.Fragment,null,[Object(n.createElementVNode)("div",{class:Object(n.normalizeClass)(["category_container",C.value]),"aria-label":S.value?"Category dropdown expanded"+k.value+" selected":"Category dropdown collapsed"+k.value+" selected",tabindex:"0",role:"button","aria-expanded":!S.value,"aria-controls":"searchBoxListItem",onClick:o[0]||(o[0]=e=>S.value=!S.value),onKeyup:o[1]||(o[1]=Object(n.withKeys)((e=>S.value=!S.value),["enter"]))},[Object(n.createElementVNode)("div",{class:"category_selected",onClick:L,"data-id":w.value,"data-identify":b.value,"data-name":k.value,title:k.value,"data-tkey":"All"},Object(n.toDisplayString)(k.value),9,l),Object(n.createElementVNode)("div",s,[S.value?(Object(n.openBlock)(),Object(n.createBlock)(Object(n.unref)(i),{key:1})):(Object(n.openBlock)(),Object(n.createBlock)(Object(n.unref)(r),{key:0}))])],42,c),Object(n.withDirectives)(Object(n.createElementVNode)("div",{id:"searchBoxListItem",class:Object(n.normalizeClass)(["category_dialog",C.value]),"aria-expanded":S.value},[Object(n.createElementVNode)("ul",d,[(Object(n.openBlock)(!0),Object(n.createElementBlock)(n.Fragment,null,Object(n.renderList)(e.categoryArr,((e,t)=>(Object(n.openBlock)(),Object(n.createElementBlock)(n.Fragment,{key:t},[t?Object(n.createCommentVNode)("v-if",!0):(Object(n.openBlock)(),Object(n.createElementBlock)("li",{key:0,role:"menuitem",class:Object(n.normalizeClass)(["category_item",{item_active:Object(n.unref)(g)===k.value&&"10001"==w.value}]),onClick:A,onKeyup:Object(n.withKeys)(A,["enter"]),"data-identify":"All","data-id":"10001","data-name":Object(n.unref)(g),tabindex:"0","aria-label":Object(n.unref)(g),"data-tkey":"All"},Object(n.toDisplayString)(Object(n.unref)(g)),43,h)),Object(n.createElementVNode)("li",{role:"menuitem",class:Object(n.normalizeClass)(["category_item",{item_active:e.name===k.value&&e.facetId==w.value}]),onClick:A,onKeyup:Object(n.withKeys)(A,["enter"]),"data-identify":"Others","data-id":e.facetId,"data-name":e.name,tabindex:"0","aria-label":e.name},Object(n.toDisplayString)(e.name),43,f)],64)))),128))])],10,u),[[n.vShow,S.value]])],64))}};o(14);const v=p;t.a=v},function(e,t,o){"use strict";var n=o(0);const r=e=>(Object(n.pushScopeId)("data-v-4a5f7b70"),e=e(),Object(n.popScopeId)(),e),i={key:0,class:"bouncing-loader"},a={key:0,class:"bouncing-loader-span"},c=r((()=>Object(n.createElementVNode)("div",{class:"bouncing-loader-div"},null,-1))),l=r((()=>Object(n.createElementVNode)("div",{class:"bouncing-loader-div"},null,-1))),s=r((()=>Object(n.createElementVNode)("div",{class:"bouncing-loader-div"},null,-1)));var u={name:"IsLoading",props:{isLoading:{type:Boolean,required:!0},text:{type:String,default:""}}},d=(o(16),o(9));const h=o.n(d)()(u,[["render",function(e,t,o,r,u,d){return o.isLoading?(Object(n.openBlock)(),Object(n.createElementBlock)("div",i,[o.text?(Object(n.openBlock)(),Object(n.createElementBlock)("span",a,Object(n.toDisplayString)(o.text),1)):Object(n.createCommentVNode)("v-if",!0),c,l,s])):Object(n.createCommentVNode)("v-if",!0)}],["__scopeId","data-v-4a5f7b70"]]);t.a=h},,,function(e,t,o){"use strict";o(7)},function(e,t,o){(t=o(3)(!1)).push([e.i,".category_container{z-index:999;cursor:pointer;height:100%;align-items:center;display:flex;font-size:16px;color:#171717;padding-left:12px;padding-right:4px;background-color:#f5f5f5;border-radius:10px 0 0 10px;max-width:103px}.category_container.category_pc{background-color:#EDEDED;color:#000000}.category_container .category_selected{display:inline-block;max-width:60px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.category_container .arrow_container{display:flex;justify-content:center;align-items:center;width:24px;height:24px}.category_dialog{position:absolute;top:64px;left:16px;width:calc(100% - 32px);max-height:414px;padding:10px 8px;z-index:99;overflow:auto;word-break:break-word;box-shadow:0px 2px 4px #00000080;background-color:#FFFFFF;border-radius:12px;font-size:16px;line-height:22px;color:#171717}.category_dialog.category_other::-webkit-scrollbar{display:none}.category_dialog.category_other ul li{width:100%;padding:14px 8px 12px;border-radius:12px}.category_dialog.category_other ul li.item_active{background-color:#f5f5f5;font-weight:bold}.category_dialog.category_other ul li:hover{background-color:#f5f5f5}.category_dialog.category_pc{width:190px;max-height:335px;z-index:10000;top:46px;left:0;box-shadow:none;border-radius:0;padding:0;line-height:normal}.category_dialog.category_pc ul li{width:100%;padding:12px;font-size:14px;color:#000000}.category_dialog.category_pc ul li.item_active{background-color:#EFEFEF}.category_dialog.category_pc ul li:hover{cursor:pointer;background-color:#EFEFEF;outline:none}\n",""]),e.exports=t},function(e,t,o){"use strict";o(8)},function(e,t,o){(t=o(3)(!1)).push([e.i,"@keyframes bouncing-loader-4a5f7b70{to{opacity:0.1;transform:translate3d(0, -5px, 0)}}.bouncing-loader[data-v-4a5f7b70]{height:22px;display:inline-flex;color:#000000;align-items:center;justify-content:flex-start;font:normal normal normal 16px/24px Noto Sans}.bouncing-loader>span[data-v-4a5f7b70]{transform:translateX(-5px);top:77px;left:90px;height:22px;text-align:left;float:left;font:normal normal normal 16px/24px Noto Sans;letter-spacing:0px;color:#171717;opacity:1}.bouncing-loader>div[data-v-4a5f7b70]{float:left;width:3px;height:3px;margin:1rem 0.2rem;background:#000000;border-radius:50%;animation:bouncing-loader-4a5f7b70 0.6s infinite alternate;transform:translateY(8px)}.bouncing-loader>div[data-v-4a5f7b70]:nth-child(2){animation-delay:0.2s}.bouncing-loader>div[data-v-4a5f7b70]:nth-child(3){animation-delay:0.4s}input[data-v-4a5f7b70]{text-align:left;padding-left:8px}.input-wrapper[data-v-4a5f7b70]{position:relative}\n",""]),e.exports=t},,,,,,,,,function(e,t,o){var n=o(2),r=o(29);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),n(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},,function(e,t,o){"use strict";o(26)},function(e,t,o){(t=o(3)(!1)).push([e.i,'.searchbox_container{position:relative;display:flex;align-items:center;width:100%;font-family:"Lato"}.searchbox_container #SearchBoxSingle{position:relative;z-index:999;flex:1;height:48px;border:2px solid #171717;border-radius:12px;background-color:#f5f5f5}.searchbox_container #SearchBoxSingle.focus{border:2px solid #2A2A2A;background-color:#FFFFFF}.searchbox_container #SearchBoxSingle.focus_dark{border:2px solid #535353;background-color:#2A2A2A}.searchbox_container #SearchBoxSingle.focus_dark .category_container.category_pc{background-color:#4E444E;color:#FFFFFF}.searchbox_container #SearchBoxSingle.focus_dark .category_container.category_pc .arrow_container #Shape{fill:#FFFFFF !important}.searchbox_container #SearchBoxSingle.focus_dark #Path_30125{fill:#FFFFFF}.searchbox_container #SearchBoxSingle.focus_dark .bouncing-loader-span{color:#FFFFFF}.searchbox_container #SearchBoxSingle.focus_dark .bouncing-loader-div{background:#FFFFFF}.searchbox_container #SearchBoxSingle.focus_dark .searchIcon{background-image:url(https://p1-ofp.static.pub/fes/cms/2021/04/19/wnpi66fc3izf724x2qnkyfyjwakmyx489245.svg)}.searchbox_container #SearchBoxSingle.search_dark{border:2px solid #FFFFFF;background-color:#2A2A2A}.searchbox_container #SearchBoxSingle.search_dark .category_container.category_pc{background-color:#2A2A2A;color:#FFFFFF}.searchbox_container #SearchBoxSingle.search_dark .category_container.category_pc .arrow_container #Shape{fill:#FFFFFF !important}.searchbox_container #SearchBoxSingle.search_dark .bouncing-loader-div{background:#FFFFFF}.searchbox_container #SearchBoxSingle.search_dark .bouncing-loader-span{color:#FFFFFF}.searchbox_container #SearchBoxSingle .search_view{height:100%;align-items:center;position:relative;border-radius:12px}.searchbox_container #SearchBoxSingle .search_view #commonHeaderSearch{padding-left:10px;width:100%;flex:1;font-size:16px;line-height:24px;height:22px;color:#000000;outline:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.searchbox_container #SearchBoxSingle .search_view #commonHeaderSearch::placeholder{color:#6F6D6E}.searchbox_container #SearchBoxSingle .search_view #commonHeaderSearch.search_dark::placeholder{color:#FFFFFF}.searchbox_container #SearchBoxSingle .search_view #commonHeaderSearch.search_dark{color:#FFFFFF}.searchbox_container #SearchBoxSingle .search_view #commonHeaderSearch.focus_dark{color:#FFFFFF}.searchbox_container #SearchBoxSingle .search_view .clear-icon{margin-right:9px;cursor:pointer}.searchbox_container #SearchBoxSingle .search_view .clear-icon.search_dark #Path_30125{fill:#FFFFFF !important}.searchbox_container #SearchBoxSingle .search_view .searchIconBorder{border-left:1px solid #ccc}.searchbox_container .input-wrapper{position:relative;width:100%;left:0}.searchbox_container .loading-overlay{position:absolute;top:0;left:0;right:auto;bottom:0;display:flex;justify-content:flex-start;align-items:center;padding-left:16px;pointer-events:none}.searchbox_container .searchIcon{cursor:pointer;width:40px;height:30px;background-image:url(https://p4-ofp.static.pub/fes/cms/2021/08/31/0ygxioy3y0chj6d0srm1qmpt7wh7q8319723.svg);background-repeat:no-repeat;background-position:center;background-size:auto 20px}.searchbox_container .searchIcon.search_dark{background-image:url(https://p1-ofp.static.pub/fes/cms/2021/04/19/wnpi66fc3izf724x2qnkyfyjwakmyx489245.svg)}\n',""]),e.exports=t},function(e,t,o){"use strict";o.r(t);var n=o(0);function r(e,t){if(!t.value)return e;const o=flash_fe_core_tool.$util.$coreMethods.getMetaContent("siteRoot"),n=flash_fe_core_tool.$util.$coreMethods.getMetaContent("groupId"),r=flash_fe_core_tool.$util.$coreMethods.getMetaContent("currencycode"),i=localStorage.getItem("Price".concat(o).concat(n));if(i){var a,c;let t={};try{t=JSON.parse(i)}catch(e){console.log("parse currency error",e)}const o=null===(a=t)||void 0===a?void 0:a.currencycode,n=null===(c=t)||void 0===c?void 0:c.currencysymbol;o&&(e.defaultCurrency=r,e.currency=o,e.currencySymbol=n)}return e}const{$util:i,$Api:a}=flash_fe_core_tool,{$cookie:c,$coreMethods:l,$redirect:s}=i;var u=o(4),d={name:"clear",template:'\n \n \n \n \n \n '},h=o(10),f=o(11),p=o(1);const v={class:"searchbox_container",tabindex:"0","aria-label":"search"},_={class:"input-wrapper"},m=["placeholder"];var g={__name:"inputBoxPc",props:{searchBoxMode:{type:Boolean,default:!1}},setup(e){const t=translate("whatAreYouLookingForToday"),o=translate("search.loading"),{$util:i,$Api:a}=flash_fe_core_tool,{$cookie:c,$coreMethods:g}=i,y=window.localStorage,b=JSON.parse(y.getItem("recentSearchList")),w="search"===g.getMetaContent("taxonomytype"),S=Object(n.ref)(""),C=Object(n.ref)(""),E=Object(n.ref)(!1),k=Object(n.ref)(""),x=Object(n.ref)(),T=Object(n.ref)(null),A=(Object(n.ref)(null),Object(n.ref)(null)),L=Object(n.ref)(c.getCookie("fsid")),N=Object(n.ref)(!1),O=Object(n.shallowRef)(null),$=Object(n.ref)(!1),P=Object(n.ref)(!1),M=Object(n.ref)(!1),I=Object(n.ref)(),B=Object(n.ref)(),j=Object(n.ref)([]),H=Object(n.ref)(!1),q=Object(n.reactive)({fq:{},text:"",rows:20,sort:"relevance",category_selector:""}),F=Object(n.ref)(!1);Object(n.provide)("isSearchResultPage",w);const R=e,W=Object(n.computed)((()=>S.value?S.value:o)),D=Object(n.computed)((()=>{if(R.searchBoxMode)return{backgroundColor:"#2A2A2A",color:"#FFFFFF"}}));Object(n.onMounted)((async()=>{S.value=w&&g.getUrlParam("text")||"",S.value&&($.value=!0),C.value=R.searchBoxMode?"search_dark":"";try{const e=await a.getStoreInfo(),{Search:t}=(null==e?void 0:e.data)||{};H.value=1==t["Enable Quick Link"],null===L.value&&(1==t.ABTestToggle?(L.value=parseInt(t.fusionABSessionCount*Math.random())+1,Object(u.c)({key:"fsid",value:L.value,weight:2})):L.value=""),b&&b.length&&(j.value=b)}catch(e){console.log("Store date error",e)}try{const e=await Object(u.a)();x.value=null==e?void 0:e.data}catch(e){console.log("category list date error",e)}document.addEventListener("click",(function(e){let t=e.target;!M||t.closest(".overlay_content")||t.closest("#commonHeaderSearch")||(M.value=!1,R.searchBoxMode&&(C.value="search_dark"),k.value="")})),document.addEventListener("focusin",(function(e){let t=e.target;!M||t.closest(".overlay_content")||t.closest("#commonHeaderSearch")||t.closest("#SearchBoxSingle")||(M.value=!1,R.searchBoxMode&&(C.value="search_dark"),k.value="")})),function(e){flash_fe_core_tool.$Api.getStoreInfo().then((t=>{var o;e.value=Boolean(null==t||null===(o=t.data)||void 0===o||null===(o=o.Store)||void 0===o?void 0:o["Display Currency"])})).catch((e=>{console.error(e)}))}(F)}));const U=()=>{S.value="",$.value=!1,P.value=!1},V=Object(n.defineAsyncComponent)((()=>new Promise(((e,t)=>{flash_fe_core_tool.$AsyncLoadFileManagement.load("/SystemFragment/search/searchBox/searchBoxOverlay/pc.js",{isLastest:!0,cache:!1}).then((t=>{E.value=!1,e(window.$searchBoxOverlay)})).catch((t=>{console.log("load search box overlay err",t),e("")}))})))),K=()=>{O.value||(E.value=!0),N.value=!0,O.value=V;try{Object(p.a)({titleText:"Text",targetText:t||"",positionItem:"2"})}catch(e){console.log("Adobe search box error",e)}},z=e=>{e&&K(),M.value=!0,C.value="",T.value&&(T.value.showListFlag=!1),R.searchBoxMode?(k.value="focus_dark",0!=N.value&&1!=E.value&&(k.value="",C.value="search_dark")):k.value="focus"};Object(n.watch)([E,N],(()=>{z()}),{immediate:!0});const Y=e=>{q.category_selector=e},G=()=>{$.value=S.value,clearTimeout(B.value),B.value=setTimeout((()=>{if(S.value.length>=2){const e={};let t="B2C";"B2B"==g.getMetaContent("channel")?(e.keyword=S.value,t="B2B"):(e.text=S.value,q.category_selector&&(e.category_selector=q.category_selector)),Object(u.b)(e,t).then((e=>{var t;null!==(t=e.data)&&void 0!==t&&t.suggestItems&&e.data.suggestItems.length>0?(I.value=e.data,P.value=!0):P.value=!1})).catch((e=>{console.log("suggest items data error",e)}))}else P.value=!1}),300)},J=e=>{if(w){var t;const e=document.querySelector(".nav_detail .actived"),o=null==e||null===(t=e.dataset)||void 0===t?void 0:t.value;q.display_tab=o||"Products"}q.text=S.value,"string"==typeof e&&(q.text=e),window.name="isFromSearch";const o=new Date;if(o.setDate(o.getDate()+30),b&&b.length){const e=b.findIndex((e=>e.value===q.text));e>-1&&j.value.splice(e,1)}q.text&&q.text.replace(/\s+/g,"").length>0&&j.value.unshift({expiryDate:o.toISOString(),value:q.text}),j.value.length>8&&j.value.splice(8),y.setItem("recentSearchList",JSON.stringify(j.value)),q.text.replace(/\s+/g,"").length<1||function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",n=[];if(e=r(e,arguments.length>2?arguments[2]:void 0),Object.keys(e).forEach((t=>{let o="";if(o=t+"=",e[t]){if(e[t].constructor==Object){let n=[];Object.keys(e[t]).forEach((o=>{let r=o+":"+encodeURIComponent(e[t][o].join("_"));n.push(r)})),o+=n.join("@")}else o+=encodeURIComponent(e[t]);n.push(o)}})),o="?"+n.join("&"),!t)return o;s.do(l.getURIPrefix()+"/search"+o)}(q,!0,F)},X=()=>{var e;const t=null===(e=document.activeElement)||void 0===e?void 0:e.innerText;J(t)};return(e,o)=>(Object(n.openBlock)(),Object(n.createElementBlock)("div",v,[Object(n.createElementVNode)("div",{id:"SearchBoxSingle",class:Object(n.normalizeClass)(["search",C.value,k.value])},[Object(n.createElementVNode)("form",{class:"search_view flex",autocomplete:"off",style:Object(n.normalizeStyle)(D.value)},[x.value&&x.value.length?(Object(n.openBlock)(),Object(n.createBlock)(h.a,{key:0,ref_key:"categoryChild",ref:T,categoryArr:x.value,onSetCategoryParam:Y},null,8,["categoryArr"])):Object(n.createCommentVNode)("v-if",!0),Object(n.createElementVNode)("div",_,[Object(n.withDirectives)(Object(n.createElementVNode)("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>S.value=e),ref_key:"mainInput",ref:A,"data-tkey":"whatAreYouLookingForToday",onInput:G,onKeyup:Object(n.withKeys)(J,["enter"]),placeholder:E.value?"":Object(n.unref)(t),id:"commonHeaderSearch",name:"commonHeaderSearch",onClick:K,autocomplete:"off",onFocus:z,onBlur:o[1]||(o[1]=function(){return e.blurMeth&&e.blurMeth(...arguments)}),type:"text",class:Object(n.normalizeClass)([C.value,k.value]),style:Object(n.normalizeStyle)({opacity:E.value?"0":"1",backgroundColor:E.value?"#E4E4E4":"",caretColor:E.value?"transparent":""})},null,46,m),[[n.vModelText,S.value]]),E.value?(Object(n.openBlock)(),Object(n.createBlock)(f.a,{key:0,isLoading:E.value,class:Object(n.normalizeClass)(["loading-overlay",C.value,k.value]),text:W.value},null,8,["isLoading","class","text"])):Object(n.createCommentVNode)("v-if",!0)]),Object(n.withDirectives)(Object(n.createVNode)(Object(n.unref)(d),{role:"button","aria-label":"Clear Search",class:Object(n.normalizeClass)(["clear-icon",C.value,k.value]),onClick:U,onKeyup:Object(n.withKeys)(U,["enter"]),tabindex:"0"},null,8,["class"]),[[n.vShow,$.value]]),Object(n.createElementVNode)("div",{"aria-label":"search",role:"button",tabindex:"0",class:Object(n.normalizeClass)(["searchIcon",C.value,{searchIconBorder:$.value}]),onClick:J,onKeyup:Object(n.withKeys)(J,["enter"])},null,34)],4)],2),N.value?(Object(n.openBlock)(),Object(n.createBlock)(Object(n.resolveDynamicComponent)(O.value),{key:0,searchBoxValue:S.value,firstOverlayFlag:M.value,secondOverlayFlag:P.value,showQuickLink:H.value,suggestItemsData:I.value,storageItems:Object(n.unref)(b),onSearchMeth:J,onEnterMeth:X},null,40,["searchBoxValue","firstOverlayFlag","secondOverlayFlag","showQuickLink","suggestItemsData","storageItems"])):Object(n.createCommentVNode)("v-if",!0)]))}};o(28);var y=g,b={__name:"pc",setup:e=>(e,t)=>(Object(n.openBlock)(),Object(n.createBlock)(y)),install:function(e){e.component(b.name,b)}};t.default=b}]).default)},713:t=>{"use strict";t.exports=e},660:e=>{"use strict";e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e){var o=function(e,o){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,o||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(e,"string");return"symbol"==t(o)?o:String(o)}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var o=0,n=new Array(t);oAe});var u=r(660),d=r(713),h=function(e){return new Promise((function(t,o){var n=document.createElement("link");n.rel="stylesheet",n.href=e,document.body.appendChild(n),n.onload=function(){t()},n.onerror=function(){o()}}))},f=function(e){var t=e.html,o=e.dropdownHtml,n=e.dropdownContent,r=e.itemId;return n&&(o+="\n
    \n ").concat(n,"\n
    \n "),n=""),o&&(t+='\n
    \n '.concat(o,"\n
    \n "),o=""),{html:t,dropdownHtml:o,dropdownContent:n}},p=function(e,t,o,n){if(!o)return e;var r="",i=o;if(n){var a=(new DOMParser).parseFromString(o,"text/html").querySelector("body").innerText;r="@click=\"(e) => handleRedirect('".concat(n,'\', e)" tabindex="0" aira-label="').concat(a,'" role="link"'),i=o.replaceAll("","")}if(t.includes("item-my-account"))e+='\n \n ");else if(t.includes("item-WLH"))e+='\n \n ");else if(t.includes("item-wishlist")){var c,l=(new DOMParser).parseFromString(i,"text/html").querySelector("body");null===(c=l.querySelector(".account-img"))||void 0===c||c.remove(),i=l.innerHTML,e+='\n \n ")}else e+='\n \n ");return e};var v=[],_=[],m={},g={},y={smb:[],edu:[]},b=[],w=[],S=flash_fe_core_tool.$event_publisher,C={install:function(e){e.config.globalProperties.$translate=function(e){return window.translate(e)}}},E=function(){function t(){e(this,t),s(this,"adobeTrack",null)}return a(t,[{key:"modifyImgAlt",value:function(e){if(e){var t=document.getElementById(e);if(t){var o=t.querySelectorAll(".utility_nav_item_icon");Array.from(o).forEach((function(e){var t,o=e.querySelectorAll("img"),n=null===(t=e.querySelector(".utility_nav_item_title"))||void 0===t?void 0:t.textContent;n&&Array.from(o).forEach((function(e){var t,o=e.getAttribute("alt");(null===(t=e.classList)||void 0===t?void 0:t.contains("button_1"))||o||e.setAttribute("alt",null==n?void 0:n.trim())}))}))}}}},{key:"addDataName",value:function(e){if(e){var t=document.getElementById(e);if(t){var o=t.querySelectorAll(".utility_nav_item_icon");Array.from(o).forEach((function(e){var t,o=null===(t=e.querySelector(".utility_nav_item_title"))||void 0===t?void 0:t.textContent;o&&e.setAttribute("data-name",null==o?void 0:o.trim())}));var n=t.querySelectorAll(".popover");Array.from(n).forEach((function(e){var t,o=null===(t=e.querySelector(".utility_popover_title"))||void 0===t?void 0:t.textContent;o&&e.setAttribute("data-pname",null==o?void 0:o.trim())}))}}}},{key:"moveUtility",value:function(e,t){var o=e.querySelector(".utility-list");if(o&&null!=o&&o.childElementCount){for(var n=o.children,r=[],i=[[],[],[],[]],a=[[],[],[],[]],c=function(){var e=n[s],t=e.getAttribute("data-type"),o=Number(e.getAttribute("data-sort"))||0,c=Number(e.getAttribute("data-section"))||0;if("menu"===t){var l=i[c],u=a[c];if(l.length){var d=u.findIndex((function(e){return e>o}));-1===d?(l.push(e),u.push(o)):(l.splice(d,0,e),u.splice(d,0,o))}else l.push(e),u.push(o)}else r.push(e)},s=0;so||i===o&&r>t}));if(-1!==n){var r=d[n];u.insertBefore(e,r),d.splice(n,0,e)}else u.appendChild(e),d.push(e)}))}))}var h=Math.min(r.length,3);this.emptyUtility(e);for(var f=0;f\n ').concat(t.outerHTML,'\n \n \n \n ")}else if(d.includes("contact-dropdown-description"))i+="".concat(t.outerHTML);else if(d.includes("contact-dropdown-item-des")){var _=o[e+1];if(_)if(_.getAttribute("class").includes("contact-dropdown-item-tele")){var m=_.querySelector("a"),g=_.outerText.replace(/{|}/g,"").trim(),y="tel:".concat(g),b=g,w=!0,S="";m&&(S=m.getAttribute("href")),u.includes(g)&&(y="".concat(g,"Tel"),b="{{".concat(g,"}}"),w=!1),S&&(y=S);var C=(new DOMParser).parseFromString(r,"text/html").querySelector(".contact-dropdown-header"),E=null==C?void 0:C.innerText.trim();return a+=' \n \n
    \n ').concat(t.outerHTML,"\n ").concat(b,'\n
    \n
    \n phone\n
    \n
    \n '),e++,h=e,0}var k="";t.childNodes.forEach((function(e){k=null==e?void 0:e.textContent}));var x=(new DOMParser).parseFromString(r,"text/html").querySelector(".contact-dropdown-header"),T=null==x?void 0:x.innerText.trim();a+='\n
    \n
    \n

    ').concat(k||"",'

    \n
    \n chat\n chat\n \n
    \n ')}else if(d.includes("contact-dropdown-link")){i+='\n
    \n '.concat(a,"\n
    \n "),a="",t.setAttribute("v-on:click","handleContactCellClick"),i+="".concat(t.outerHTML);var A=f({html:n,dropdownHtml:r,dropdownContent:i,itemId:c});n=A.html,r=A.dropdownHtml,i=A.dropdownContent}else if(d.includes("contact-link-item")){var L="",N=!1;t.childNodes.forEach((function(e){var t,o;"a"===(null==e||null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())&&(L=e.getAttribute("href")),"img"===(null==e||null===(o=e.tagName)||void 0===o?void 0:o.toLowerCase())&&(N=!0)})),n+='\n \n ")}h=e},h=0;h\n '.concat(n,"\n \n "),_.push.apply(_,l),v.push.apply(v,s),t.innerHTML=n}}}},{key:"renderAccountContent",value:function(e){var t=e.querySelector(".nav-item.button-1 .popover-content");if(t&&null!=t&&t.childElementCount){var o=null==t?void 0:t.children;if(o.length){for(var n="",r="",i=!1,a="",c="",l=0;l