1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7f0fbbf6-a4f6-40a1-9288-653fa48d291f",e._sentryDebugIdIdentifier="sentry-dbid-7f0fbbf6-a4f6-40a1-9288-653fa48d291f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84496],{71897:function(e,o,t){"use strict";t.d(o,{Z:function(){return P}});var r=t(52676),n=t(75271),l=t(10293),i=t.n(l),u=t(34064),d=t(82187),c=t.n(d),a=t(63440),s=e=>{let{...o}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",viewBox:"0 0 22 23",fill:"none",...o,children:(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.8525 5.47665C16.4558 5.07988 15.8125 5.07988 15.4157 5.47665L11.1268 9.76561L6.83815 5.477C6.44138 5.08023 5.79808 5.08023 5.40131 5.477C5.00454 5.87377 5.00455 6.51706 5.40131 6.91383L9.68993 11.2024L5.40105 15.4913C5.00428 15.8881 5.00428 16.5314 5.40105 16.9281C5.79782 17.3249 6.44111 17.3249 6.83788 16.9281L11.1268 12.6393L15.416 16.9285C15.8128 17.3253 16.456 17.3253 16.8528 16.9285C17.2496 16.5317 17.2496 15.8884 16.8528 15.4917L12.5636 11.2024L16.8525 6.91348C17.2493 6.51671 17.2493 5.87342 16.8525 5.47665ZM16.6905 5.63869C16.3832 5.33142 15.885 5.33142 15.5778 5.63869L11.1268 10.0897L6.6761 5.63904C6.36883 5.33177 5.87063 5.33177 5.56336 5.63904C5.40911 5.79329 5.33229 5.99566 5.33291 6.19784C5.33232 5.9957 5.40914 5.79339 5.56336 5.63917C5.87064 5.33189 6.36883 5.33189 6.6761 5.63917L11.1268 10.0898L15.5778 5.63882C15.885 5.33155 16.3832 5.33155 16.6905 5.63882C16.8447 5.79304 16.9215 5.99536 16.921 6.19749C16.9216 5.99532 16.8448 5.79295 16.6905 5.63869ZM10.014 11.2025L5.56309 15.6534C5.40884 15.8076 5.33202 16.01 5.33264 16.2122C5.33206 16.01 5.40887 15.8077 5.56309 15.6535L10.014 11.2026L10.014 11.2025ZM16.6908 15.6537L12.2396 11.2025L12.2395 11.2026L16.6908 15.6538C16.845 15.8081 16.9218 16.0104 16.9212 16.2125C16.9218 16.0103 16.845 15.808 16.6908 15.6537Z",fill:"#1D1D1F"})})},p=t(96496),f=t(2462),v=t(38600),_=t(68041),m=t(59198),C=t(85393),y=t.n(C);let b=i()(()=>Promise.all([t.e(58237),t.e(26851),t.e(95095),t.e(49779),t.e(90129),t.e(21693),t.e(97546),t.e(62706),t.e(72083),t.e(61387),t.e(36755),t.e(45010),t.e(32025),t.e(53822),t.e(22516),t.e(54528),t.e(1327),t.e(14741),t.e(25350),t.e(4911),t.e(87210),t.e(3166),t.e(66818),t.e(76712),t.e(53023),t.e(31011),t.e(16702),t.e(23278),t.e(87577),t.e(17276),t.e(79803),t.e(37574),t.e(81792),t.e(33849),t.e(13126)]).then(t.bind(t,67213)),{loadableGenerated:{webpack:()=>[67213]},ssr:!1});var P=e=>{var o;let{...t}=e,{metafields:l,product:i,variant:d,selectedOptions:C,setSelectedOptions:P,setOpenProductPop:w,id:h,shouldScrollToGiftCardForm:x=!1,corporateMinQuantity:g}=t,F=(0,u.useRouter)(),{combinationImg:B,combinationOpt:k,pageType:L,setCombinationImg:E,setSwiperIndex:N,openSidebar:Z,setSalePrice:D,setOriginalPrice:T,couponInListing:M,handleCloseProductPop:R}=(0,p.l8)(),j=()=>{let e=(0,f.pm)();delete e.variant;let o=(0,v.HD)(e);window.history.replaceState({},"","".concat(window.location.pathname).concat(o?"?".concat(o):"").concat(location.hash))},I=(null==l?void 0:l.corporateEasyBuyDiscount)?(e=>{var o,t;let{data:r,locale:n,shopCommon:l,variant:i,product:u}=e;return(null==l?void 0:null===(t=l.corporateEasyBuyDiscount)||void 0===t?void 0:null===(o=t.sku_list)||void 0===o?void 0:o.find(e=>e.sku===i.sku))&&[{breakpoint:500},{breakpoint:300},{breakpoint:100},{breakpoint:10}].map(e=>{let o=(0,_.W)({sku:i.sku,quantity:e.breakpoint,metafields:l});return{breakpoint:e.breakpoint,discount:new a.Z(i.price).minus(o||i.price).toNumber()}})||[]})({product:i,variant:d,shopCommon:l}):null,[S,q]=(0,n.useState)(null!=F&&null!==(o=F.query)&&void 0!==o&&!!o.variant);return((0,n.useEffect)(()=>{let e=window.scrollY,o=window.getComputedStyle(document.body).overflow,t=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%",t>0&&(document.body.style.paddingRight="".concat(t,"px")),()=>{document.body.style.overflow=o,document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.paddingRight="",window.scrollTo(0,e)}},[]),(0,n.useEffect)(()=>
1{if(!x)return;let e={behavior:"smooth"},o=(e,o)=>{let t=["auto","scroll"],r=e.parentElement;for(;r&&r!==o;){let e=getComputedStyle(r),o=r.scrollHeight>r.clientHeight,n=t.includes(e.overflowY)||t.includes(e.overflow);if(o&&n)return r;r=r.parentElement}return o.querySelector(".ProductPopBox")},t=()=>{try{let t=document.querySelector("#giftCardForm");if(!t)return;let r=document.querySelector(".ProductCardPopForCollection");if(!r)return;let n=o(t,r);if(!n)return;let l=n.getBoundingClientRect(),i=t.getBoundingClientRect().top-l.top+n.scrollTop-20;n.scrollTo({top:Math.max(0,i),...e})}catch(e){console.error("è·³è½¬å° #giftCardForm 失败:",e)}};requestAnimationFrame(()=>{t()})},[x]),i&&d.id)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:"\n .ProductPurchaseBarChg {\n position: absolute;\n transform: translateY(0);\n }\n "}),(0,r.jsx)(m.Z,{focusFirst:!0,children:(0,r.jsx)("div",{className:c()(y().ProductPop,"ProductCardPopForCollection fixed inset-0 z-[1001] flex items-center justify-center bg-black bg-opacity-70 l:items-end"),children:(0,r.jsxs)("div",{className:c()(y().ProductPopBox,"relative box-border h-[71vh] w-full max-w-[1100px] rounded-none bg-[#fff] md:bottom-0 md:top-auto md:h-[82vh] md:w-full md:-translate-y-0 min-l:max-h-[734px] md-l:w-[750px]"),children:[(0,r.jsx)("button",{className:"absolute right-[16px] top-[16px] z-[5] size-[25px] cursor-pointer fill-[#999] l:right-0 l:top-1",children:(0,r.jsx)(s,{className:"size-full",onClick:()=>{R?R():w(!1),j()}})}),(0,r.jsx)(b,{...t,product:{...i,corporateDiscount:I},metafields:{...null==i?void 0:i.metafields,...l},variant:d,selectedOptions:C,setSelectedOptions:P,pageType:L,setIsUpdateQuery:q,id:h,corporateMinQuantity:g})]})})})]}):null}},58315:function(e,o,t){"use strict";t.d(o,{V:function(){return u}});var r=t(75271),n=t(34064),l=t(98662),i=t(38600);function u(e,o){let[t,u]=(0,r.useState)({}),d=(0,n.useRouter)();return((0,r.useEffect)(()=>{if(d.isReady&&e){var r,n,c,a;let d=(0,i.Tb)("variant",window.location.href),s=(0,i.d4)(d),p=null==e?void 0:null===(r=e.variants)||void 0===r?void 0:r.find(e=>o?e.sku===o:e.id===s),f=(null==e?void 0:null===(n=e.variants)||void 0===n?void 0:n.find(e=>{var o;return null===(o=e.options)||void 0===o?void 0:o.every(e=>{var o,r,n;return t.hasOwnProperty(e.displayName)&&t[e.displayName]===(null===(n=e.values)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:null===(o=r.label)||void 0===o?void 0:o.toLowerCase())})}))||(null===(c=e.variants)||void 0===c?void 0:c[0]),v=p||f,_=null==(a=null==v?void 0:v.options)?void 0:a.reduce((e,o)=>{var t,r,n,l;return e[null==o?void 0:null===(t=o.displayName)||void 0===t?void 0:t.toLowerCase()]=null===(l=o.values)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:null===(r=n.label)||void 0===r?void 0:r.toLowerCase(),e},{});(0,l.Z)(_)||u(_)}},[d.isReady,e,o]),e)?[t,u]:[null,null]}},59198:function(e,o,t){"use strict";t.d(o,{Z:function(){return l}});var r=t(75271),n=t(33699);function l(e){let{children:o,focusFirst:t=!1}=e,l=r.useRef(),i=r.useRef(document.activeElement),u=()=>{i&&i.current.focus()},d=()=>{let e=!1,o=0,t=setInterval(()=>{!e!=o>60?((e=!!(0,n.ht)(l.current).length)&&(0,n.ht)(l.current)[0].focus(),o+=1):clearInterval(t)},100)};return(0,r.useEffect)(()=>{setTimeout(()=>{l.current&&(l.current.focus(),t&&d())},20);let e=e=>{if("Tab"!==e.key||!l.current)return;let o=(0,n.ht)(l.current);if(0===o.length)return;let t=o[0],r=o[o.length-1],i=document.activeElement;if(!l.current.contains(i)&&!e.shiftKey){e.preventDefault(),t.focus();return}e.shiftKey&&i===t?(e.preventDefault(),r.focus()):e.shiftKey||i!==r||(e.preventDefault(),t.focus())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e),u()}},[l,o,t]),r.createElement("div",{ref:l,className:"outline-none focus-trap",tabIndex:-1},o)}},68041:function(e,o,t){"use strict";t.d(o,{W:function(){return n}});var r=t(63440);let n=e=>{let{sku:o,quantity:t,metafields:n}=e,{corporateEasyBuyDiscount:l}=n;if(!l||!o||!t)return null;let{pcs10_99_price_cal:i,pcs100_299_price_cal:u,pcs300_499_price_cal:d,sku_list:c,bulk_cfg:
1a}=l,s=c.find(e=>e.sku===o);if(!s)return null;if((null==a?void 0:a.length)>0){for(let e of a)if(t>=e.min_quantity&&t<=e.max_quantity){if(1===e.discount_type){let o=new r.Z(e.discount_amount).div(100);return new r.Z(s.base_price).times(o).toDecimalPlaces(2,r.Z.ROUND_HALF_UP).toNumber()}if(2===e.discount_type)return new r.Z(s.base_price).minus(e.discount_amount).toNumber();if(3===e.discount_type)return e.discount_amount}}let p=s.pcs500_plus_price,f=new r.Z(p).plus(d).toNumber(),v=new r.Z(p).plus(u).toNumber(),_=new r.Z(p).plus(i).toNumber();return t>=500?p:t>=300?f:t>=100?v:_}},85393:function(e){e.exports={ProductPopBox:"ProductCardPopForCollection_ProductPopBox__0pI_o",buyBox:"ProductCardPopForCollection_buyBox__kApeb",productBox:"ProductCardPopForCollection_productBox__TrrXt",imageBox:"ProductCardPopForCollection_imageBox__lnM1M",infoBox:"ProductCardPopForCollection_infoBox__5yOHL",tagItem:"ProductCardPopForCollection_tagItem__H2VXh",productTitle:"ProductCardPopForCollection_productTitle__3Gk8k",priceDropTitleBox:"ProductCardPopForCollection_priceDropTitleBox__l_FjG",productPrice:"ProductCardPopForCollection_productPrice__2XSMq",price:"ProductCardPopForCollection_price__NB13Q",soldOut:"ProductCardPopForCollection_soldOut__yRJUG",basePrice:"ProductCardPopForCollection_basePrice__trMRE",pxLearnMore:"ProductCardPopForCollection_pxLearnMore__t6zhh",learnMore:"ProductCardPopForCollection_learnMore__fEU_j",arrow:"ProductCardPopForCollection_arrow__tOoK8",arrowActive:"ProductCardPopForCollection_arrowActive__9qiPR",couponBox:"ProductCardPopForCollection_couponBox__E6gT5",copyBtn:"ProductCardPopForCollection_copyBtn__J31z8",buyBtnBox:"ProductCardPopForCollection_buyBtnBox__S2N8F",buyBtn:"ProductCardPopForCollection_buyBtn__Z10va",addToCart:"ProductCardPopForCollection_addToCart__SEkxr"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.