!function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){"use strict";function n(e,t,a){const n=()=>{"function"==typeof bssFixSupportRemoveLabelWhenVariantChange&&bssFixSupportRemoveLabelWhenVariantChange()&&e(".bss-variant").find(".bss_pl_img").remove(),e(".bss_pl_img:has([bss-config-id])").remove(),e(".bss_pb_img:has([bss-config-id])").remove(),e(".bss-price-container").replaceWith((function(){return e(this).contents()})),(a||BSS_PL.page.isProductPage())&&e("a").removeAttr("data-bss-pl"),BSS_PL.firstLoad=!0,BSS_PL.reInitByVariant=!0,BSS_PL.init()},i=()=>{e(".bss_pb_img:has([bss-config-id])").remove(),e(".bss-price-container").replaceWith((function(){return e(this).contents()})),(a||BSS_PL.page.isProductPage())&&e("a").removeAttr("data-bss-pl"),BSS_PL.firstLoad=!0,BSS_PL.init()};let r=!1;if("function"==typeof bssFixSupportExcludeReInitVariant&&(r=bssFixSupportExcludeReInitVariant(BSS_PL)),!r&&-1===[28230,23542,26406].indexOf(BSS_PL.storeId)){let e=document.querySelectorAll(BSS_PL.helper.getSelectorVariantPicker().join(","));const r=BSS_PL.plan.PLATINUM||t||a?n:i;let o;const s=()=>{e.forEach(e=>{e.querySelectorAll("input, option, select").forEach(e=>{e.removeEventListener("change",l),e.addEventListener("change",l)})})},l=()=>{o&&clearTimeout(o),o=setTimeout(r,250)};"function"==typeof bssFixSupportTriggerChangeVariantEvent?bssFixSupportTriggerChangeVariantEvent(BSS_PL,t,a):s();const c=new MutationObserver(()=>{let t=document.querySelectorAll(BSS_PL.helper.getSelectorVariantPicker().join(","));t.length!==e.length&&(e=t,s())});e.length>0&&c.observe(document.body,{childList:!0,subtree:!0})}}function i(e,t,a,n){const i=[".cart-item",".cart__row",".cart-page__item",".cart-row",".cart__table-row",".ajax-cart__item-image__wrapper",".line-item",".cart__card"];e.each(n,(function(t,n){let r,o=a[0].variant.split(",");for(let t of i)if(e(n).closest(t).length){r=e(n).closest(t);break}if(r&&r.length){let t=r.find('a[href*="variant"]');if(t.length){let a=e(t[0]).attr("href").split("=")[1];o.includes(a)&&n.setAttribute("id-variant",a)}}}))}function r(e,t,a,n,r=[]){let o="",s={baseImgUrl:BSS_PL.apiServerProduction+"/images/"+BSS_PL.storeId+"/240/"};async function l(t,r=!1){let l=[];(9518==BSS_PL.storeId&&BSS_PL.ssvn_firstload&&window.location.pathname.includes("/collections")||BSS_PL.settingsData.disableLiquidSearch||r)&&(l=t),"string"==typeof l&&(l=JSON.parse(t));let c=document.querySelectorAll('#label-product-metafields-info, [id^="main-label-product-metafields-info"]');if(c.length){if(19917==BSS_PL.storeId&&"collections"==a&&!l.length){const e=window.boostSDFallback.products;e.length&&e.map(e=>{const t={id:e.id,title:e.title,tags:e.tags,handle:e.handle,available:e.available,inventory:null,compare_at_price_max:e.compare_at_price_max,compare_at_price_min:e.compare_at_price_min,price:e.price,price_max:e.price_max,price_min:e.price_min,publish_at:e.published_at,inventory_management:null,inventory_policy:null,inventory_quantity:null,variants:e.variants,collections:null,format_money:"¥{{amount_no_decimals}}"};l.push(t)})}((t,n)=>{let i=[48771,45952,58981,41286],r=[];"function"==typeof bssFixSupportAddSeoHiddenStoreIds&&(r=bssFixSupportAddSeoHiddenStoreIds(e,a)),i=[...i,...r],t.forEach(e=>{try{const t=JSON.parse(e.textContent),a=i.includes(BSS_PL.storeId);n.some(e=>e.id==t.id)&&!a||n.push(t)}catch(e){console.log("BSS product label: Unexpected end of JSON input while parsing metafields data")}})})(c,l)}else if(BSS_PL.custom_SAPLBS_667){const e=window.Samita.ProductLabels.products,t=window.money_format;e.length&&e.map(e=>{const a={id:e.id,title:e.title,tags:e.tags,handle:e.handle,available:e.available,inventory:e.variants.reduce((e,t)=>e+t.inventory,0),compare_at_price_max:e.compare_at_price_max,compare_at_price_min:e.compare_at_price_min,price:e.price,price_max:e.price_max,price_min:e.price_min,publish_at:e.published_at||null,inventory_management:null,inventory_policy:null,inventory_quantity:null,variants:e.variants,collections:null,format_money:t};l.push(a)})}if(l=l.filter(e=>null!==e.price&&null!==e.available),69470===BSS_PL.storeId&&window.location.pathname.includes("/bundle-builder")&&window.products.length&&(l=window.products.map(e=>function(e){if(!e)return null;var t=e.selectedVariant?e.selectedVariant:e.variants&&e.variants.length?e.variants[0]:null;return t?{id:e.id,title:e.title,vendor:e.vendor,tags:e.tags?e.tags.split(",").map((function(e){return e.trim()})):[],handle:e.handle,available:e.available,inventory:"number"==typeof t.inventory_quantity?t.inventory_quantity:null,compare_at_price_max:t.compare_at_price?Number(t.compare_at_price):0,compare_at_price_min:t.compare_at_price?Number(t.compare_at_price):0,price:Number(t.price),price_max:Number(t.price),price_min:Number(t.price),publish_at:e.published_at,inventory_management:t.inventory_management,inventory_policy:t.inventory_policy,variants:e.variants?e.variants.map((function(e){return{id:e.id,title:e.title,available:e.available,image:e.image_id?e.image_id:null,price:Number(e.price),inventory_management:e.inventory_management,inventory_policy:e.inventory_policy,compare_at_price:e.compare_at_price,quantity:e.inventory_quantity}})):[],format_money:"{{amount_no_decimals_with_comma_separator}}₫"}:null}(e))),65822===BSS_PL.storeId){const e=l.map(e=>e.id),t=await async function(e,t,a){const n=e.map(async e=>{try{return await async function(e,t,a){const n=BSS_PL.configProductMetafields.map(({namespace:e,key:t})=>({namespace:e,key:t})),i=await fetch(`https://${e}/api/2025-10/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":t},body:JSON.stringify({query:"\n query GetProductMetafields($id: ID!, $identifiers: [HasMetafieldsIdentifier!]!) {\n product(id: $id) {\n id\n metafields(identifiers: $identifiers) {\n namespace\n key\n value\n type\n }\n }\n }\n ",variables:{id:"gid://shopify/Product/"+a,identifiers:n}})}),r=await i.json();if(r.errors)throw console.error("GraphQL errors:",r.errors),new Error("Shopify Storefront API query failed");return r.data?r.data.product:null}(t,a,e)}catch(t){return{id:"gid://shopify/Product/"+e,error:t.message}}});return await Promise.all(n)}(e,Shopify.shop,BSS_PL.publicAccessToken);l.forEach(e=>{const a=t.find(t=>{if(!t||!t.id)return!1;return t.id.split("/").pop()===String(e.id)});e.metafields=a&&a.metafields?a.metafields:[],e.metafieldError=a&&a.error?a.error:null})}if(50172==BSS_PL.storeId||54590==BSS_PL.storeId)if(BSS_PL.reInitByVariant&&BSS_PL.mainProductData)l.push(BSS_PL.mainProductData);else{const e=l.filter(e=>e.handle==n);e.length&&(BSS_PL.mainProductData=e[0])}if(l.length){if("products"==a){let t=e(BSS_PL.const.ALL_IMAGE_SELECTOR.join(", "));"function"==typeof bssFixSupportAllImageElement&&(t=bssFixSupportAllImageElement(e,a,t)),t.map((function(t,i){const r=e(i);let s=!1;(r.closest('.site-header, header, [data-section-id="header"], .collection-products').length||r.is(".secondary-media.lazyautosizes.lazyloaded")||r.is(".global-media-settings")||BSS_PL.themeName.includes("Dawn")&&r.closest(".section-featured-product").length||r.closest(".bss_pl_img").length&&r.hasClass("bss-pl-frontend")||r.closest(".bss_pb_img").length&&r.hasClass("bss-pb-frontend")||r.closest("[gp-el-wrapper]").length||r.closest("gp-lite-youtube-embed").length||r.closest(".complementary-slide").length)&&(s=!0),"function"==typeof bssFixSupportMainProductImage&&(o=bssFixSupportMainProductImage(e,i,o,n,a),s=!0),s||(r.parent().attr("data-handle",n),""==o&&(o=r.parent()))}))}const t=9518==BSS_PL.storeId?window.getSharedMysticalDictCache():function(){let t,a={};if(BSS_PL.custom_SAPLBS_667)e(".proHImage[data-handle]").each((function(){const t=e(this),n=t.attr("data-handle");a[n]=t}));else{t=BSS_PL.FSProductGrid&&BSS_PL.FSProductGrid.length?'[data-handle]:not(".meganav__product"):not([class$="autoketing"]), [data-handle]:not(".product__modal-opener")':'[data-handle]:not([class*="logo"], [id*="logo"], [class*="header"], [id*="header"] [class*="meganav"], [class$="autoketing"], [class*="breadcrumb"]):not(".product__modal-opener, .product__view-details, .jdgm-full-rev__product-wrapper")';let n=e(t);[49141,61289,27588,29525,67703].includes(BSS_PL.storeId)||(n=n.filter((function(){return!e(this).closest('.shopify-section-group-header-group, .shopify-section-site-header, .section-header, .pageheader, .sticky-header:not(html):not(body), .header-sticky:not(html):not(body), header, .shopify-section--header, .header-section, .header__outer-wrapper, [class*="jdgm"]:not(html):not(body), [id*="jdgm"]:not(html):not(body)').length}))),n.each((function(){const t=e(this).attr("data-handle");a[t]||(a[t]=e()),a[t]=a[t].add(this)}))}return a}();BSS_PL.custom_SAPLBS_667&&(l=l.filter(e=>t[e.handle]&&t[e.handle].length));let r="object"==typeof window.GP&&e("gp-product gp-product-images-v2").length;for(let n=0;n{if(e.product_type==BSS_PL.const.PRODUCT_TYPE.PRODUCTS){if(!e.product)return!1;return!!e.product.split(",").find(e=>c.id==e)}return!0})),BSS_PL.configs.label&&BSS_PL.configs.label.length&&!r&&BSS_PL.initForLabel(e,BSS_PL,u,S,c,s,d),BSS_PL.configDataLabelGroup.length&&BSS_PL.initForLabelGroup(e,BSS_PL,u,S,c,s),BSS_PL.configs.badgeProductImage&&BSS_PL.configs.badgeProductImage.length&&!r&&(BSS_PL.page.isCartPage()&&i(e,BSS_PL,BSS_PL.configs.badgeProductImage,u),BSS_PL.initForBadgeProductImage(e,BSS_PL,u,c,s)),BSS_PL.configs.badgePrice&&BSS_PL.configs.badgePrice.length&&!r&&BSS_PL.initForBadgePrice(e,BSS_PL,u,c,s,S),BSS_PL.configs.badgeName&&BSS_PL.configs.badgeName.length&&!r&&(BSS_PL.page.isCartPage()&&i(e,BSS_PL,BSS_PL.configs.badgeName,u),BSS_PL.initForBadgeProductName(e,BSS_PL,u,c,s,S)),BSS_PL.configs.badgeCustomSelector&&BSS_PL.configs.badgeCustomSelector.length&&BSS_PL.initForBadgeCustomSelector(e,BSS_PL,u,c,s,o),BSS_PL.configs.badgeAddToCart&&BSS_PL.configs.badgeAddToCart.length&&BSS_PL.initForBadgeAddToCartBtn(e,BSS_PL,u,c,s,S),BSS_PL.configs.badgeQuantityBox&&BSS_PL.configs.badgeQuantityBox.length&&BSS_PL.initForBadgeQuantityBox(e,BSS_PL,u,c,s,S),BSS_PL.configs.badgeBuyItNow&&BSS_PL.configs.badgeBuyItNow.length&&BSS_PL.initForBadgeBuyItNowBtn(e,BSS_PL,u,c,s,S),n==l.length-1&&(BSS_PL.LabelStyle.calculateBadgeHeight(e),BSS_PL.LabelStyle.calculateLabelTextAngle(e),BSS_PL.LabelStyle.calculateFontSizeBadgeInline(e),BSS_PL.LabelStyle.calculateHighlightHeight(e))}),0)}}function c(t,a,n,i){if("function"==typeof bssFixSupportCompetitiveWithJquery)bssFixSupportCompetitiveWithJquery(l,t);else if(BSS_PL.settingsData.disableLiquidSearch&&(54879==BSS_PL.storeId||56419==BSS_PL.storeId)||a||Shopify.theme&&"unpublished"==Shopify.theme.role){async function r(e,t,a){const n=e.map(e=>{const n={handle:e,locale:BSS_PL.helper.convertLocaleToCountryCode(18250==BSS_PL.storeId?Shopify.locale:Shopify.country)};return async function(e,t,a){const n=BSS_PL.configProductMetafields.map(({namespace:e,key:t})=>({namespace:e,key:t})),i=await fetch(`https://${e}/api/2025-10/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":t},body:JSON.stringify({query:18250==BSS_PL.storeId?"\n query GetProductInfos($handle: String!, $identifiers: [HasMetafieldsIdentifier!]!, $locale: LanguageCode) \n @inContext(language: $locale) {\n product(handle: $handle) {\n id\n handle\n title\n vendor\n tags\n publishedAt\n availableForSale\n\n collections(first: 250) {\n nodes {\n id\n }\n }\n\n variants(first: 250) {\n nodes {\n id\n title\n availableForSale\n image {\n url\n }\n price {\n amount\n }\n compareAtPrice {\n amount\n }\n }\n }\n \n metafields(identifiers: $identifiers) {\n id\n namespace\n key\n value\n type\n }\n }\n }\n ":"\n query GetProductInfos($handle: String!, $identifiers: [HasMetafieldsIdentifier!]!, $locale: CountryCode) \n @inContext(country: $locale) {\n product(handle: $handle) {\n id\n handle\n title\n vendor\n tags\n publishedAt\n availableForSale\n\n collections(first: 250) {\n nodes {\n id\n }\n }\n\n variants(first: 250) {\n nodes {\n id\n title\n availableForSale\n image {\n url\n }\n price {\n amount\n }\n compareAtPrice {\n amount\n }\n }\n }\n \n metafields(identifiers: $identifiers) {\n id\n namespace\n key\n value\n type\n }\n }\n }\n ",variables:{...a||{},identifiers:n}})}),r=await i.json();if(r.errors)throw console.error("GraphQL errors:",r.errors),new Error("Shopify Storefront API query failed");return{...r.data,product:{...r.data.product,translatedHandle:a.handle}}}(t,a,n).then(e=>e.product).catch(t=>({handle:e,error:t.message}))});return await Promise.all(n)}!async function(){const e=[n,...i];l((await r(e,Shopify.shop,BSS_PL.publicAccessToken)).filter(e=>null!==e&&e.id).map(e=>function(e){const t=e.variants.nodes.map((function(e){return 100*Number(e&&e.price&&e.price.amount?e.price.amount:0)})),a=e.variants.nodes.map((function(e){return 100*Number(e&&e.compareAtPrice&&e.compareAtPrice.amount?e.compareAtPrice.amount:0)})),n=e.variants.nodes.map((function(e){const t=e&&e.price&&e.price.amount?100*Number(e.price.amount):0,a=e&&e.image&&e.image.url?e.image.url:null,n=e&&e.compareAtPrice&&e.compareAtPrice.amount?100*Number(e.compareAtPrice.amount):null,i="boolean"==typeof e.availableForSale?e.availableForSale:null;return{id:Number(e.id.split("/").pop()),title:e.title,price:t,image:a,compare_at_price:n,available:i}})),i=e.collections.nodes.map((function(e){return Number(e.id.split("/").pop())})),r=Math.max.apply(null,t),o=Math.min.apply(null,t),s=Math.max.apply(null,a),l=Math.min.apply(null,a);return{id:Number(e.id.split("/").pop()),title:e.title,vendor:e.vendor,tags:e.tags,handle:e.handle,publish_at:e.publishedAt,available:e.availableForSale,price:r,price_max:r,price_min:o,variants:n,collections:i,compare_at_price_max:s,compare_at_price_min:l,metafields:e.metafields,translatedHandle:e.translatedHandle}}(e)),!0)}()}else 9518==BSS_PL.storeId&&BSS_PL.ssvn_firstload&&"undefined"!=typeof bss_product_data?(l(bss_product_data,!1),BSS_PL.ssvn_firstload=!1):e.get(t,e=>l(e))}let d=!1;if("function"==typeof bssFixSupportTurnOnGetProductJsonData&&(d=bssFixSupportTurnOnGetProductJsonData()),BSS_PL.plWorker&&54879!=BSS_PL.storeId&&56852!=BSS_PL.storeId&&56419!=BSS_PL.storeId&&!d){let i=!1;if("function"==typeof bssFixSupportGetProductFromMetafieldScript&&(i=bssFixSupportGetProductFromMetafieldScript(e,a)),!BSS_PL.helper.getHandleBySearchQuery(t)||i||BSS_PL.custom_SAPLBS_667){return void((document.querySelectorAll("#label-product-metafields-info, #main-label-product-metafields-info").length||BSS_PL.custom_SAPLBS_667)&&l([],!0))}if(!BSS_PL.helper.getHandleBySearchQueryForSuperSport(t)&&(50172==BSS_PL.storeId||54590==BSS_PL.storeId))return void(BSS_PL.reInitByVariant&&BSS_PL.mainProductData&&l("[]"));BSS_PL.plWorker.onmessage=e=>{const{type:a,data:i}=e.data;if("success"===a){l(i,!0)}else"error"===a&&(c(t,d,n,r),console.error("Worker error:",i.message))},BSS_PL.plWorker.postMessage({action:"getProductData",data:{urlSearchLiquid:`${window.location.origin}${t}`,handlesList:r,publicAccessToken:BSS_PL.publicAccessToken,domain:Shopify.shop,configProductMetafields:BSS_PL.configProductMetafields,configVariantMetafields:BSS_PL.configVariantMetafields,isPageFly:!1}})}else c(t,d,n,r)}function o(e,t){let a=[],n=[],i=BSS_PL.page.getPageName(),o=BSS_PL.page.getHandleProductPage();if(BSS_PL.custom_SAPLBS_667)r(e,"",i,o,a);else{if("function"==typeof bssFixSupportHandleProductPage&&(o=bssFixSupportHandleProductPage()),e.each(t,(t,r)=>{const s=e(r);if(function(e,t,a){const n=e(a);return(!n.is(".cart-items__media-container")||67703!==t.storeId)&&((!n.is(".predictive-search-results li a")||61289!==t.storeId)&&((!n.is(".mega-menu__promotions-grid .product-card a")||49141!==t.storeId)&&(!!n.hasClass("inline-item")||(!!n.hasClass("grid-link__title")||(!!n.hasClass("menu-navigation__item")||(!!n.hasClass("mobile-nav__link")||(!!n.hasClass("drawer__nav-link")||(!!n.parent().hasClass("product-navigation")||(!!n.hasClass("breadcrumb_link")||(!!n.hasClass("page__navigation-item")||(!!n.hasClass("mini-cart__product-vendor")||(!!n.hasClass("mini-cart__product-title")||(!(!n.hasClass("thumbnail")||!n.hasClass("slick-slide"))||(!(!n.hasClass("button-main2")||!n.hasClass("animated"))||(!!n.hasClass("banner-full-link")||(!!n.hasClass("site-nav__link")||(!!n.parent().parent().hasClass("product-single__description")||(!!(n.parent().hasClass("product-title")&&n.hasClass("chp")&&n.hasClass("cd"))||(!(!n.hasClass("thumbnail")||!n.hasClass("thumbnail--media-image"))||(!!n.hasClass("show-gallery")||(!!n.hasClass("ssw-review-title")||(!!n.parent().hasClass("cart-mini-item-title")||(!(!n.parent().hasClass("product-next")&&!n.parent().hasClass("product-prev"))||(!!n.parent().hasClass("thumbItem")||(!(!n.hasClass("product-gallery__link")||!n.is("a"))||(!(!n.hasClass("jas_bg")||!n.parent().hasClass("hover-img"))||(!!n.parent("#gallery").length||(!!("noopener noreferrer"==n.attr("rel")&&"_blank"==n.attr("target")||n.parent().is("span")||n.parent().parent().parent().hasClass("reading-container"))||(!!n.hasClass("ly-languages-switcher-link")||(!!n.closest("div.rte").find("em").length||(!!n.parent(".mini_cart_item").length||(!!n.parent("li[data-thumb]").length||(!(!n.hasClass("product-page--next")||!n.hasClass("right"))||(!!n.hasClass("clicker-thumb")||(!!n.hasClass("product-single__thumbnails-item")||(!!n.parent().hasClass("breadcrumbs")||(!!n.parent().hasClass("page-navigation-arrows")||(!!n.closest(".tmenu_submenu").length||(!!n.parent().hasClass("product-description__no-expand")||(!!n.hasClass("bubble-product-link")||(!!n.closest(".promo_banner__content").length||(!(!n.hasClass("product-page--previous")&&!n.hasClass("product-page--next"))||(!(!n.hasClass("standard-link")&&!n.hasClass("more-link"))||(!!n.closest("#slidecarthq, #CartContainer, .social-sharing").length||(!!(n.closest(".shopify-section-group-header-group").length||n.closest(".section-header").length||n.closest(".pageheader").length||n.closest("sticky-header").length||n.closest("header").length||n.closest(".shopify-section--header").length||n.closest(".header-section").length||n.closest(".header__outer-wrapper").length)||"function"==typeof bssFixSupportExcludeItem&&bssFixSupportExcludeItem(e,t.page.getPageName(),a))))))))))))))))))))))))))))))))))))))))))))))}(e,BSS_PL,r))return;s.attr("data-bss-pl","active"),"function"==typeof bssFixSupportProductItemEle&&(r=bssFixSupportProductItemEle(e,i,r));let l=s.attr("href");"function"==typeof bssFixSupportProductUrl&&(l=bssFixSupportProductUrl(e,BSS_PL,i,l,r));let c=BSS_PL.helper.getHandleByUrl(l);if((s.hasClass("product__media-wrapper")||s.hasClass("product__image-wrapper"))&&e("#shopify-section-product-template").length){const t=s.parent();if(t.hasClass("product__media-container")||t.hasClass("product__image-container")){const t=e("#shopify-section-product-template").find("meta[itemprop='url']").attr("content");c=BSS_PL.helper.getHandleByUrl(t)}}if((s.hasClass("product-image__link")&&s.find(".product-media-wrapper").length&&e("#shopify-section-product-template").length||s.hasClass("nt-pr_metro-image-equal")||s.hasClass("product__thumb")&&e("#shopify-section-product-template").length||s.hasClass("product-single__photo-zoom")&&e(".section--product-single").length||s.hasClass("main-img-link")&&s.parent().hasClass("product-media--image")||s.hasClass("js-modal-open-product-modal")&&e("#shopify-section-product-template").length||s.hasClass("product-gallery__thumbnail")&&e(".product-gallery__thumbnail-list").length)&&(c=o),"function"==typeof bssFixSupportItemHandle&&(c=bssFixSupportItemHandle(e,i,c,o,l,r)),c){-1!==c.indexOf("#Reviews")&&(c=c.slice(0,c.indexOf("#Reviews"))),-1==e.inArray(c,a)&&(a.push(decodeURIComponent(c)),n.push('handle:"'+decodeURIComponent(c)+'"'));let t=window.location.href.includes("/cart")&&!window.location.href.includes("/collections/")&&!window.location.href.includes("/products/");if(t)if(s.hasClass("cart__image"))if(s.parent().hasClass("cart__cell--image")||s.parent().hasClass("grid__item")){let t=s.parent().find("img");e(t).parent(":not(.bss_pl_img)").css({position:"relative",display:"block"}).attr("data-handle",c)}else s.find(".rimage").attr("data-handle",c);else if(s.hasClass("cart-image")&&s.parent().hasClass("grid-item")||s.find(".cart__image-wrapper").length&&s.parent().hasClass("grid__item")){let t=s.parent().find("img");e(t).parent(":not(.bss_pl_img)").css({position:"relative",display:"block"}).attr("data-handle",c)}else if(s.closest("td").find("img").length){let a=s.closest("td").find("img");if(e(a).parent(":not(.bss_pl_img)").css({position:"relative"}).attr("data-handle",c),s.hasClass("link-image")&&s.parent().hasClass("cart__table-cell")||s.find(".cart__image").length&&s.parent().hasClass("cart__table-cell--image")||s.hasClass("cart__product-title")&&s.parent().hasClass("list-view-item__title"))e(a).parent(":not(.bss_pl_img)").css({display:"block"});else if(s.closest(".featured-product").find("img").length){let t=s.closest(".featured-product").find("product-info");e(t).attr("data-handle",c)}else s.parent(":not(.bss_pl_img)").attr("data-handle",c);"function"==typeof bssFixSupportItemHandle&&(c=bssFixSupportItemHandle(e,i,c,o,l,r,t))}else"function"==typeof bssFixSupportItemHandle&&(c=bssFixSupportItemHandle(e,i,c,o,l,r,t)),s.parent().attr("data-handle",c);else s.hasClass("list-view-item")&&s.find(".list-view-item__image-wrapper").length?s.find(".list-view-item__image-wrapper").attr("data-handle",c):s.hasClass("grid-link")&&s.find(".product__img-wrapper").length?s.find(".product__img-wrapper").attr("data-handle",c):s.hasClass("grid-link")&&s.parent().hasClass("product-container")?s.parent().attr("data-handle",c):s.hasClass("product__thumb")&&e("#shopify-section-product-template").length&&e("#shopify-section-product-template").find(".product__main-photos").length?e("#shopify-section-product-template").find(".product__main-photos").attr("data-handle",c):s.hasClass("ls-p-url")?s.find(".ls-p-img-div").attr("data-handle",c):s.closest(".card-wrapper").length?(s.parent().attr("data-handle",c),s.closest(".card-wrapper").find(".card__inner").attr("data-handle",c)):e(".ecom-builder").length&&s.hasClass("ecom-collection__product-item--inner")&&s.closest(".ecom-collection__product-media-wrapper").length?s.parent().attr("data-handle",c):window.location.pathname.includes("/rapid-search-results")&&s.find(".rps-product-image-container").length?s.find(".rps-product-image-container").attr("data-handle",c):("function"==typeof bssFixSupportItemHandle&&(c=bssFixSupportItemHandle(e,i,c,o,l,r,t)),s.parent().attr("data-handle",c))}}),"function"==typeof bssFixSupportDefaultFirstLoadProduct&&bssFixSupportDefaultFirstLoadProduct()&&(BSS_PL.firstLoad=!0),BSS_PL.page.isProductPage()&&-1==e.inArray(o,a)&&BSS_PL.firstLoad)a.push(o),n.push('handle:"'+decodeURIComponent(o)+'"');else if(BSS_PL.page.isBeaeBuilderPage()){const t=e(".beae-product-form").attr("data-handle");a.push(t),n.push('handle:"'+t+'"')}if(a.length){"function"==typeof bssFixSupportFilterDataHandle&&({handles:a,handlesUrl:n}=bssFixSupportFilterDataHandle(e,BSS_PL,i,a,n));let t="/search?q="+n.join(" OR ")+"&type=product&view=bss.product.labels",s=encodeURI(t);31321==BSS_PL.storeId&&(s=t);let l=Math.round(n.length/2),c=n.length,d=!1;if(s=s.replace(/#product-reviews/g,"").replace(/#judgeme_product_reviews/g,"").replace(/#content/g,"").replace(/#spetses-2/g,"").replace(/#/g,""),"function"==typeof bssFixSupportTurnOnGetProductJsonData&&(d=bssFixSupportTurnOnGetProductJsonData()),54879==BSS_PL.storeId||56419==BSS_PL.storeId||d)t=a.map(e=>`/products/${e}.js`),BSS_PL.settingsData.disableLiquidSearch=!0,r(e,t,i,o,a);else if("function"==typeof bssFixSupportTwoPartsEncodeDataHandle){const{firstHalf:t,secondHalf:s}=bssFixSupportTwoPartsEncodeDataHandle(e,BSS_PL,n,c,l);r(e,t,i,o,a),r(e,s,i,o,a)}else if(BSS_PL.page.isBeaeBuilderPage()){const t=[encodeURI("/search?q="+n.splice(c-1).join(" OR ")+"&view=bss.product.labels"),encodeURI("/search?q="+n.splice(0,c-1).join(" OR ")+"&view=bss.product.labels")].map(e=>e.replace(/#product-reviews/g,"").replace(/#judgeme_product_reviews/g,""));Promise.all([r(e,t[0],i,o,a),r(e,t[1],i,o,a)])}else if("function"==typeof bssFixSupportManyPartsEncodeDataHandle){const t=bssFixSupportManyPartsEncodeDataHandle(e,BSS_PL,n);if(BSS_PL.enableScrollToSearch){let n=0;t.reverse(),function s(){if(n{const a=new URL(t.href).pathname;return t.href&&!n.test(a)}),"function"==typeof bssFixSupportProductLinks&&(a=bssFixSupportProductLinks(BSS_PL.$,BSS_PL,a)),a}function l(e,t){let a=[];e.forEach(e=>{e.isIntersecting&&(a.includes(e.target)||BSS_PL.listItems.includes(e.target)||(a.push(e.target),BSS_PL.listItems.push(e.target)),t.unobserve(e.target))}),a.length&&o(BSS_PL.$,a)}function c(e,t){let a,n={root:null,rootMargin:"0px 0px 100px 0px",threshold:.3};"function"==typeof bssFixSupportObserverConfig&&(n=bssFixSupportObserverConfig());const i=()=>{a=new IntersectionObserver(l,n),e.each((function(e,t){a.observe(this)}))};let r=!1,o=300;if("function"==typeof bssFixSupportDebounceIntersection&&({debounceIntersection:r,delayTimeout:o}=bssFixSupportDebounceIntersection(BSS_PL.$,r,o,t)),r){let e;const t=()=>{a&&a.disconnect()};window.addEventListener("scroll",()=>{t(),clearTimeout(e),e=setTimeout(()=>{i()},o)}),i()}else i()}function d(){onmessage=async e=>{const{action:t,data:a}=e.data;if("getProductData"===t)try{const{handlesList:e=[],listIdProduct:t=[],isPageFly:n,configProductMetafields:i=[],configVariantMetafields:r=[],domain:o,publicAccessToken:s,urlSearchLiquid:l}=a,c=async(e,t)=>{const a=await fetch(`https://${o}/api/2025-10/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":s},body:JSON.stringify({query:e,variables:t})});return(await a.json()).data.product||null},d="\n query ProductQuery($handle: String!, $identifiersProduct: [HasMetafieldsIdentifier!]!, $identifiersVariant: [HasMetafieldsIdentifier!]!) {\n product(handle: $handle) {\n handle\n metafields(identifiers: $identifiersProduct) {\n id\n namespace\n key\n value\n type\n }\n variants(first: 250) {\n nodes {\n id\n metafields(identifiers: $identifiersVariant) {\n id\n namespace\n key\n value\n type\n }\n }\n }\n }\n }",p="\n query ProductQuery($id: ID!, $identifiersProduct: [HasMetafieldsIdentifier!]!, $identifiersVariant: [HasMetafieldsIdentifier!]!) {\n product(id: $id) {\n handle\n metafields(identifiers: $identifiersProduct) {\n id\n namespace\n key\n value\n type\n }\n variants(first: 250) {\n nodes {\n id\n metafields(identifiers: $identifiersVariant) {\n id\n namespace\n key\n value\n type\n }\n }\n }\n }\n }",u=e=>n?c(p,{id:"gid://shopify/Product/"+e,identifiersProduct:i,identifiersVariant:r}):c(d,{handle:e,identifiersProduct:i,identifiersVariant:r}),S=s&&(i.length>0||r.length>0);let f=[];if(S){const a=n?Promise.all(t.map(u)):Promise.all(e.map(u));f=await a}const _=await fetch(new URL(l),{mode:"cors"}).then(e=>e.json());if(!S)return void postMessage({type:"success",data:_});const g=new Map(_.map(e=>[e.handle,e])),h=f.filter(e=>e).map(e=>{const t=g.get(e.handle)||{},a=new Map((t.variants||[]).map(e=>[e.id,e]));return{...e,...t,variants:e.variants.nodes.map(e=>{const t=parseInt(e.id.split("/").pop());return{...e,...a.get(t)}})}});postMessage({type:"success",data:h})}catch(e){postMessage({type:"error",data:e.message})}}}function p(){if(window.Worker&&!BSS_PL.plWorker){const e=d.toString(),t=new Blob([`(${e})()`],{type:"application/javascript"}),a=URL.createObjectURL(t);BSS_PL.plWorker=new Worker(a),sessionStorage.setItem("bss-pl_ww",a)}}function u(e){const t=(e={},t)=>{let a=e.configData,i="undefined"!=typeof Shopify&&Shopify.routes?window.location.pathname.replace(Shopify.routes.root,"").split("/"):window.location.pathname.split("/");const r=i.length>1?i[i.length-2]:i[0];r&&void 0!==e.const.PAGES[r]&&(a=a.filter(t=>t.pages&&t.pages.split(",").includes(e.const.PAGES[r])||t.check_include_custom_page&&t.include_custom_page)),a=a.filter(e=>{if(!e.enable_visibility_date)return!0;const t=new Date,a=e.from_date?new Date(e.from_date):null,n=e.to_date?new Date(e.to_date):null;return(null===a||t>=a)&&(null===n||t<=n)}),a=e.integration.getConfigCompatibleLangify(a),a.length&&(e.configs={label:a.filter(e=>1==e.label_type||null==e.label_type),badgeName:a.filter(e=>2==e.label_type&&(0==e.badge_type||7==e.badge_type||8==e.badge_type)),badgeProductImage:a.filter(e=>2==e.label_type&&(1==e.badge_type||11==e.badge_type)),badgeCustomSelector:a.filter(e=>2==e.label_type&&2==e.badge_type),badgePrice:a.filter(e=>2==e.label_type&&(3==e.badge_type||9==e.badge_type||10==e.badge_type)),badgeAddToCart:a.filter(e=>2==e.label_type&&4==e.badge_type),badgeQuantityBox:a.filter(e=>2==e.label_type&&5==e.badge_type),badgeBuyItNow:a.filter(e=>2==e.label_type&&6==e.badge_type)},e.$=t,function(e,t){let a=t.page.getPageName(),i=!0;if(t.firstLoad=!0,t.reInitByVariant=!1,t.mainProductData=null,t.listItems=[],t.settingsData.enableIntersection=!1,"function"==typeof bssFixSupportDisableLabelScripts&&bssFixSupportDisableLabelScripts())return;let r=["customer-reviews"];if("function"==typeof bssFixSupportExcludedPage&&(r=bssFixSupportExcludedPage()),-1!==r.indexOf(a))return;t.init=()=>{let n=s(a);if(void 0!==t.configData&&t.configData.length){if(n.length||t.firstLoad||53941===t.storeId){let r=e(".featured-product a").length;if("function"==typeof bssFixSupportDisableIntersectionOnProductPage&&(r=bssFixSupportDisableIntersectionOnProductPage()),Shopify&&function(e){const t=e.toLowerCase();return["Debut","Dawn","Ride","Refresh","Craft","Sense","Taste","Origin","Studio","Crave","Publisher","Colorblock","Spotlight","Trade"].some(e=>t.includes(e.toLowerCase()))}(t.themeName)&&!r&&(t.settingsData.enableIntersection=!0),t.settingsData.enableIntersection&&!t.page.isCartPage()?("products"===a&&t.handleMainProductDataByPageUrl(a),c(n,a)):o(t.$,n),"undefined"!=typeof __pagefly_setting__&&i||e("gp-product gp-product-images-v2, gp-product-images").length||41286===t.storeId){let a=!1;"function"==typeof bssFixSupportTurnOffInitPageFly&&(a=bssFixSupportTurnOffInitPageFly());let n=e(t.const.LIST_PF_ITEMS_SELECTOR.join(", "));(41286===t.storeId&&e("[data-usf-pid]").length||n.length)&&!a&&(t.integration.initPageFlyAdapter(e,t),i=!1)}t.firstLoad=!1,"function"==typeof bssFixSupportStyleCountdownDisplay&&bssFixSupportStyleCountdownDisplay()}if((t.page.isCollectionPage()||51199==t.storeId||52662===t.storeId)&&t.configData.some(e=>e.collection_image_type&&e.collection_image)){const a=t.collectionImg.getCollectionsItems(e);9518==t.storeId&&window.requestIdleCallback?window.requestIdleCallback((function(){window.emptyMysticalDictCache(),t.collectionImg.addCollectionsDataHandle(e,a)}),{timeout:window.recommendedIdleTimeout||300}):t.collectionImg.addCollectionsDataHandle(e,a)}}},"function"==typeof bssFixSupportMainLabelRunScript&&bssFixSupportMainLabelRunScript(e,t,a,()=>{});let l=t.common.getTimeoutLoadFunction(e,t);if(setTimeout(()=>{if(("blogs"!==a||58992===t.storeId)&&(t.init(),!t.settingsData.enableIntersection)){const e=()=>{"function"==typeof bssFixSupportDisableInitScroll&&bssFixSupportDisableInitScroll()||t.init()},a=t.helper.debounce(e,300);window.addEventListener("scroll",a)}},l),t.page.isCartPage()){if(!t.configData.some(e=>e.pages.includes("5")))return;setTimeout(()=>{(a=>{const n=e(a);if(n.length){const a={childList:!0,subtree:!0};let i=new MutationObserver(e=>{for(const a of e)"childList"!==a.type||Array.from(a.addedNodes).some(e=>e.matches&&e.matches(".bss_pb_img, .bss_pl_img"))||(t.firstLoad=!0,t.init())});e(n).each((function(e,t){i.observe(t,a)}))}})('form[action="/cart"]')},1e3)}[56618,62993].includes(t.storeId)||t.helper.initForFilterOrSort();const d=["%7Binventory%7D","%7Binventory_quantity%7D","%7Bsale%7D","%7Bsale_amount%7D"],p=t.configData.some(e=>e.label_text_enable&&d.includes(e.label_text));let u=e('[class*="featured-product"]').length>0;(u||p||"products"==a)&&n(e,p,u),e(document).ready((function(){t.helper.initAllIntegrates()})),t.plan.ADVANCED&&t.common.handleShowCountDown(),"function"==typeof bssFixSupportReInitLabel&&bssFixSupportReInitLabel(e,t,i,()=>{},"")}(t,e),!e.countryCode&&e.plan.ADVANCED&&e.helper.bssGetCountryCode(e,t),p())};"undefined"==typeof jQuery||-1==e.helper.compareVersion(jQuery.fn.jquery,"1.7")||"function"==typeof bssFixSupportLoadJquery&&bssFixSupportLoadJquery()?e.helper.bssProductLabelLoadScript("//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js",()=>{const a=jQuery.noConflict(!0);t(e,a)}):t(e,jQuery)}if(a.r(t),BSS_PL.handleMainProductDataByPageUrl=e=>{if(BSS_PL.firstLoad){let t=BSS_PL.page.getHandleProductPage(),a=`/search?q=handle:"${decodeURIComponent(t)}"&type=product&view=bss.product.labels`;(50172==BSS_PL.storeId||54590==BSS_PL.storeId)&&BSS_PL.reInitByVariant&&BSS_PL.mainProductData&&(a="/search.js?q=&view=bss.product.labels");let n=encodeURI(a);r(BSS_PL.$,n,e,t,[t])}},9518==BSS_PL.storeId){window._sharedMysticalDataHandle=null,window.getSharedMysticalDictCache=function(e=!1){if(window._sharedMysticDataHandle&&!e)return window._sharedMysticDataHandle;var t=performance.now(),a=document.querySelectorAll('[data-handle]:not(.meganav__product):not([class$="autoketing"])'),n=performance.now();console.log("query all:",n-t,"ms");var i,r,o=(i="data-handle",r={},a.forEach((function(e){var t=e.getAttribute(i);r[t]?r[t].push(e):r[t]=[e]})),r);return console.log("build dict",performance.now()-n,"ms"),o},window.emptyMysticalDictCache=function(){window._sharedMysticalDataHandle=null}}null!=BSS_PL&&(BSS_PL.configData.length||BSS_PL.configDataLabelGroup.length)&&function(e,t){const a=setInterval(()=>{const t=document.querySelector('script[id*="bss-pl-config-data"]');window.bssScriptsLoaded&&t&&(e(),clearInterval(a))},t)}(()=>{console.log("%c 🚀🎯 BSS PL Init 🚀🎯 ","font-weight: 600; font-size: 12px; background: rgb(105,58,180); background: linear-gradient(117deg, rgba(105,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(90,69,252,1) 100%); color: #ffffff; padding: 4px 5px; border-radius: 15px"),u(BSS_PL)})}]);