1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec7a4b7f-cff6-4a1e-aaee-07bb35dfdb8a",e._sentryDebugIdIdentifier="sentry-dbid-ec7a4b7f-cff6-4a1e-aaee-07bb35dfdb8a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1483],{90657:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var a=n(85583),c=n(1780),l=n(57437),i=n(99376),s=n(2265),o=n(39579),r=n(28219),d=n(48890),u=n(18);let p=new Set("AT BE BG HR CY CZ DK EE FI FR DE GR HK HU IE IT LV LT LU MY MT MC NL NZ NO PL PT RO SK SI ES SE CH TH GB".split(" ")),x=new Set("AS AD AR BH BD VG BN KH CL CO CK TL EC EG SV ET FO FJ GF GI GL GP GU GG ID IM IL JE JO KZ KE KI KW LI MO MH MQ YT MX MN ME NR NP NU MP OM PK PW PA PH PR QA RE SM SA ZA LK BL MF TC TV AE UZ VA VE VN VI ZW".split(" ")),h=new Set("BR IN".split(" ")),m=e=>p.has(e.toUpperCase())?"hidden":x.has(e.toUpperCase())?"no":h.has(e.toUpperCase())?"force":void 0;function f(e){let{checkoutInfo:t,isPaid:n=!1,isCanceled:s=!1,parentPage:d="",isReturnCompleted:p=!1,isRxPurchaseFlag:x=!1}=e,{country:h,lang:f}=(0,i.useParams)(),{currentStep:g}=(0,r.x_)(),v=(0,o.Z)();return"kr"===h||"jp"===h||"au"===h?null:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(f).className," text-13-").concat(f," leading-[17px]"),children:v("bag-tax-title")}),n?(0,l.jsx)("div",(0,c._)((0,a._)({className:"".concat((0,u.sI)(f).className," text-13-").concat(f," uppercase leading-[17px]")},"int"===h&&"myaccount"===d?{"data-gem-ignore":!0}:{}),{children:(()=>{if("int"===h){var e,n;return"hidden"===m((null==t?void 0:null===(e=t.shippingAddress)||void 0===e?void 0:e.countryCode)||"")?v("bag-shipping-text"):p?v("allcap-int-tax-prepaid-returnRequested"):(null==t?void 0:t.tax)&&t.tax>0?s?"- ".concat(t.taxWithCurrency):t.taxWithCurrency:"no"===m((null==t?void 0:null===(n=t.shippingAddress)||void 0===n?void 0:n.countryCode)||"")?v("tax-unpaid"):v("bag-shipping-text")}return(null==t?void 0:t.tax)&&t.tax>0?s?"- ".concat(t.taxWithCurrency):t.taxWithCurrency:x?v("allcap-rx-tax-exempt"):v("bag-shipping-text")})()})):(0,l.jsx)("div",{className:"".concat((0,u.sI)(f).className," text-13-").concat(f," text-right uppercase leading-[17px]"),children:"checkout"!==d||3!==g?v("bag-tax-text"):(null==t?void 0:t.taxAmount)&&(null==t?void 0:t.taxAmount)>0||(null==t?void 0:t.tax)&&(null==t?void 0:t.tax)>0?t.taxAmountWithCurrency||(null==t?void 0:t.taxWithCurrency):x?v("allcap-rx-tax-exempt"):v("bag-shipping-text")})]})}function g(e){var t,n;let{checkoutInfo:p,isPaid:x=!1,isCanceled:h=!1,isReturnCompleted:m=!1,parentPage:g}=e,{country:v,lang:C}=(0,i.useParams)(),y=(0,o.Z)(),b=(0,i.usePathname)().includes("checkout"),{currentStep:N}=(0,r.x_)(),V=(0,d.G)(e=>e.bagItemsList),w=e=>{var t,n;return e&&"object"==typeof e?{leftSph:Number(null!==(t=e.leftSph)&&void 0!==t?t:0),rightSph:Number(null!==(n=e.rightSph)&&void 0!==n?n:0),hasSphFields:"leftSph"in e||"rightSph"in e}:{leftSph:0,rightSph:0,hasSphFields:!1}},j=(0,s.useCallback)(e=>{let{leftSph:t,rightSph:n,hasSphFields:a}=w(e);return!!a&&(0!==t||0!==n)},[]),k=null==p?void 0:null===(t=p.type)||void 0===t?void 0:t.toUpperCase(),H=(0,s.useMemo)(()=>null!=V&&!!V.length&&V.some(e=>{let t=null==e?void 0:e.rx;return!!t&&j(t)}),[V,j]),L=(0,s.useMemo)(()=>{var e;return null!=p&&null!==(e=p.orderItemList)&&void 0!==e&&!!e.length&&p.orderItemList.some(e=>{let t=null==e?void 0:e.rx;return!!t&&j(t)})},[null==p?void 0:p.orderItemList,j]),_=(0,s.useMemo)(()=>x?L:H,[H,L,x]),M=(0,s.useMemo)(()=>h?"":"au"===v?_?y("bag-total-text-gst-frame"):y("bag-total-text"):"ca"===v?y("bag-total-text-import-duty"):y("bag-total-text"),[v,_,h,y]);if(!p)return null;let I=null!==(n=p.subtotalWithCurrency)&&void 0!==n?n:h?"":p.totalWithCurrency,A=!0;return"int"===v||h?A=!1:["us","ca"].includes(v)&&(g&&["checkout","myaccount"].includes(g)?"checkout"===g&&N<3&&(A=!1):A=!1),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex w-full flex-col gap-[4px] wideTablet:mt-[48px] mobile:mt-[24px]",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(C).className," text-13-").concat(C," leading-[17px]"),children:y("bag-subtotal-title")}),(0,l.jsxs)("div",(0,c._)((0,a._)({className:"".concat((0,u.sI)(C).className," text-13-").concat(C," leading-[17px]")},"int"===v&&"myaccount"!==g?{"data-ge-basket-totals":!0}:{},"int"===v&&"myaccount"===g?{"data-gem-ignore":!0}:{}),{children:[h?"-":"",I]}))]}),"OFFLINE"!==k&&(h&&(null==p?void 0:p.shippingAmount)!==0?(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(C).className," text-13-").concat(C," leading-[17px]"),children:y("bag-shipping-title")}),(0,l.jsx)("div",{className:"".concat((0,u.sI)(C).className," text-13-").concat(C," leading-[17px]"),children:"int"!==v&&p.shippingAmountWithCurrency})]}):h&&(null==p?void 0:p.shippingAmount)===0?null:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(C).className," text-13-").concat(C," leading-[17px]"),children:y("bag-shipping-title")}),(0,l.jsx)("div",{className:"".concat((0,u.sI)(C).className," text-13-").concat(C," uppercase leading-[17px]"),children:(null==p?void 0:p.shippingAmount)?"int"!==v&&p.shippingAmountWithCurrency:y("bag-shipping-text")})]}))]}),p&&(0,l.jsx)(f,{checkoutInfo:p,isPaid:x,isCanceled:h,parentPage:g,isReturnCompleted:m,isRxPurchaseFlag:L}),!!(null==p?void 0:p.discountAmount)&&(0,l.jsxs)("div",{className:"mt-[16px] flex w-full justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(C).className," text-13-").concat(C," leading-[17px]"),children:y("checkout-giftcarddeduction")}),(0,l.jsx)("div",{className:"".concat((0,u.sI)(C).className," text-13-").concat(C," leading-[17px]"),children:h?"".concat(null==p?void 0:p.discountAmountWithCurrency):"-".concat(null==p?void 0:p.discountAmountWithCurrency)})]}),(0,l.jsxs)("div",{className:"mt-[16px] w-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("div",{className:"".concat((0,u.M3)(C).className," text-13-").concat(C," leading-[17px]"),children:h?y("return-total"):y("bag-total-title")}),(0,l.jsx)("div",(0,c._)((0,a._)({className:"".concat((0,u.sI)(C).className," leading-[22px] text-18-en")},"int"===v&&"myaccount"!==g?{"data-ge-basket-totals":!0}:{},"int"===v&&"myaccount"===g?{"data-gem-ignore":!0}:{}),{children:h?"-".concat(null==p?void 0:p.grandTotalWithCurrency):(null==p?void 0:p.refundAmount)&&(null==p?void 0:p.refundAmount)>0?"-".concat(null==p?void 0:p.refundAmountWithCurrency):b&&3!==N?null==p?void 0:p.totalWithCurrency:null==p?void 0:p.grandTotalWithCurrency}))]}),A&&(0,l.jsx)("div",{className:"".concat((0,u.sI)(C).className," text-11-").concat(C," text-right leading-[15px] text-[#858585]"),children:M})]}),h&&(null==p?void 0:p.isGiftCardPayment)&&(0,l.jsx)("div",{className:"".concat((0,u.sI)(C).className," text-11-").concat(C," leading-[15px] text-[#858585]"),children:y("cancelinfo-giftcard-reactive")})]})}}
1,93540:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(57437),c=n(99376),l=n(2265),i=n(10315),s=n(12674),o=n(88542),r=n(96292),d=n(39579);function u(e){let{color:t="#111111",title:n="logo",className:c=""}=e,i=(0,l.useId)();return(0,a.jsxs)("svg",{width:"305",height:"28",viewBox:"0 0 305 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i,className:c,children:[(0,a.jsx)("title",{id:i,children:n}),(0,a.jsxs)("g",{clipPath:"url(#clip0_607_56478)",children:[(0,a.jsx)("path",{d:"M0 14.7246C0 5.94275 5.21631 1.42652 13.7206 0.736084C16.9708 0.882684 19.6713 1.50219 21.2395 2.23046L21.4575 6.45822H20.9079C18.2784 3.9471 15.9095 3.3607 13.4648 3.3607C8.72227 3.3607 5.32528 6.85546 5.32528 13.5612C5.32528 20.267 8.5375 24.561 14.2276 24.561H17.1129V15.4907L12.6973 15.8548V13.3059H22.514V13.7788C21.8223 15.1265 21.5664 15.6373 21.5664 16.5831V25.7243C20.6899 26.0885 17.5156 27.0721 12.8442 27.0721C5.58586 27.0721 0 22.083 0 14.7246Z",fill:t}),(0,a.jsx)("path",{d:"M27.8394 23.7133V4.19188C27.8394 3.46361 27.5835 3.02853 26.707 1.67603V1.20312H41.7448V4.11621H41.271C39.9207 3.56764 39.2622 3.31701 38.4236 3.31701H32.5108V12.5339L39.3332 12.1319V14.8653L32.5108 14.5012V24.6639L37.983 24.4842C39.9918 24.4132 41.0104 24.12 42.1807 23.3539L42.6923 23.5715L41.8537 26.7021H26.707V26.2292C27.5835 24.8814 27.8394 24.4463 27.8394 23.7181V23.7133Z",fill:t}),(0,a.jsx)("path",{d:"M46.9292 23.7133V3.82774C46.9292 3.17041 46.6734 2.77317 45.7969 1.68076V1.20785H50.2504L63.3883 19.2397H63.6062V4.19188C63.6062 3.46361 63.4262 3.02853 62.6208 1.67603V1.20312H67.2922V1.67603C66.4536 3.0238 66.3447 3.45888 66.3447 4.19188V26.7021H62.9145C62.6587 26.1535 62.3649 25.6475 61.967 25.099L49.8856 8.67028H49.6676V23.7133C49.6676 24.4416 49.8477 24.8767 50.6531 26.2245V26.6974H45.9437V26.2245C46.7444 24.8767 46.9292 24.4416 46.9292 23.7133Z",fill:t}),(0,a.jsx)("path",{d:"M77.5064 23.7055V3.30919H73.2708C72.4322 3.30919 71.7026 3.71116 70.755 4.14623H70.2812V1.19531H89.3319V4.14623H88.8581C87.9106 3.71116 87.181 3.30919 86.3376 3.30919H82.102V23.7103C82.102 24.4385 82.3579 24.8736 83.2344 26.2214V26.6943H76.3741V26.2214C77.2505 24.8736 77.5064 24.4385 77.5064 23.7103V23.7055Z",fill:t}),(0,a.jsx)("path",{d:"M93.6753 23.7055V4.18407C93.6753 3.45579 93.4195 3.02072 92.543 1.66822V1.19531H99.4744V1.66822C98.5979 3.01599 98.342 3.45106 98.342 4.18407V24.6561L103.596 24.4764C105.785 24.4054 106.733 24.1122 107.832 23.3461L108.343 23.5637L107.505 26.6943H92.543V26.2214C93.4195 24.8736 93.6753 24.4385 93.6753 23.7103V23.7055Z",fill:t}),(0,a.jsx)("path",{d:"M112.425 23.7133V4.19188C112.425 3.46361 112.169 3.02853 111.293 1.67603V1.20312H126.331V4.11621H125.857C124.507 3.56764 123.848 3.31701 123.01 3.31701H117.097V12.5339L123.919 12.1319V14.8653L117.097 14.5012V24.6639L122.569 24.4842C124.578 24.4132 125.596 24.12 126.767 23.3539L127.278 23.5715L126.44 26.7021H111.293V26.2292C112.169 24.8814 112.425 24.4463 112.425 23.7181V23.7133Z",fill:t}),(0,a.jsx)("path",{d:"M140.705 23.7055V4.18407C140.705 3.45579 140.449 3.02072 139.572 1.66822V1.19531H144.864L153.037 20.7215H153.255L161.797 1.19531H167.127V1.66822C166.251 3.01599 165.995 3.45106 165.995 4.18407V23.7103C165.995 24.4385 166.251 24.8736 167.127 26.2214V26.6943H160.338V26.2214C161.215 24.8736 161.47 24.4385 161.47 23.7103V8.95567H161.252L153.407 26.6943H151.365L143.666 8.95567H143.448V23.7103C143.448 24.4385 143.628 24.8736 144.433 26.2214V26.6943H139.724V26.2214C140.525 24.8736 140.709 24.4385 140.709 23.7103L140.705 23.7055Z",fill:t}),(0,a.jsx)("path",{d:"M179.649 27.1356C174.101 25.3527 170.998 20.2879 170.998 14.3152C170.998 6.04407 176.29 0.582031 185.012 0.582031C186.254 0.582031 187.495 0.652967 188.736 0.837399C193.626 2.29394 197.241 7.35874 197.241 13.3315C197.241 21.858 192.275 27.3909 183.411 27.3909C182.17 27.3909 180.782 27.32 179.654 27.1356H179.649ZM185.012 25.0217C190.12 25.0217 192.02 20.6521 192.02 15.5163C192.02 9.03282 189.466 2.91345 183.226 2.91345C177.716 2.91345 176.219 7.94042 176.219 13.3694C176.219 19.6353 179.247 25.0264 185.012 25.0264V25.0217Z",fill:t}),(0,a.jsx)("path",{d:"M202.126 23.7055V3.81993C202.126 3.16259 201.871 2.76535 200.994 1.67295V1.20004H205.448L218.586 19.2319H218.803V4.18407C218.803 3.45579 218.623 3.02072 217.818 1.66822V1.19531H222.489V1.66822C221.651 3.01599 221.542 3.45106 221.542 4.18407V26.6943H218.112C217.856 26.1457 217.562 25.6397 217.164 25.0911L205.083 8.66247H204.865V23.7055C204.865 24.4338 205.045 24.8689 205.85 26.2167V26.6896H201.141V26.2167C201.942 24.8689 202.126 24.4338 202.126 23.7055Z",fill:t}),(0,a.jsx)("path",{d:"M226.871 26.1921L226.326 21.5671H226.947C228.444 23.4635 230.595 24.92 232.931 24.92C235.266 24.92 236.981 23.4256 236.981 21.1699C236.981 19.6046 235.849 18.0393 232.054 15.4525C228.624 13.1211 226.506 11.1159 226.506 7.80089C226.506 3.17589 230.121 0.806641 235.082 0.806641C236.541 0.806641 239.203 1.24171 240.227 1.64368L240.483 5.43164H239.9C239.099 4.2683 237.379 3.13806 234.7
155 3.13806C232.348 3.13806 230.742 4.448 230.742 6.38218C230.742 8.31635 232.272 9.91477 235.484 12.2084C239.938 15.3768 241.321 17.1644 241.321 20.2241C241.321 25.1423 237.053 27.1096 232.528 27.1096C230.851 27.1096 228.406 26.7076 226.871 26.1968V26.1921Z",fill:t}),(0,a.jsx)("path",{d:"M250.845 23.7133V3.31701H246.615C245.776 3.31701 245.046 3.71897 244.099 4.15405H243.625V1.20312H262.676V4.15405H262.202C261.254 3.71897 260.525 3.31701 259.686 3.31701H255.451V23.7181C255.451 24.4463 255.706 24.8814 256.583 26.2292V26.7021H249.723V26.2292C250.599 24.8814 250.855 24.4463 250.855 23.7181L250.845 23.7133Z",fill:t}),(0,a.jsx)("path",{d:"M267.009 23.7055V4.18407C267.009 3.45579 266.753 3.02072 265.877 1.66822V1.19531H280.915V4.1084H280.441C279.091 3.55983 278.432 3.30919 277.594 3.30919H271.681V12.5261L278.503 12.1241V14.8575L271.681 14.4934V24.6561L277.153 24.4764C279.162 24.4054 280.18 24.1122 281.351 23.3461L281.862 23.5637L281.024 26.6943H265.877V26.2214C266.753 24.8736 267.009 24.4385 267.009 23.7103V23.7055Z",fill:t}),(0,a.jsx)("path",{d:"M304.999 26.2292V26.7021H299.271C299.195 26.267 298.868 25.5009 298.541 24.8814L293.249 15.3761L290.733 15.3051V23.7181C290.733 24.4463 290.989 24.8814 291.865 26.2292V26.7021H285.076V26.2292C285.953 24.8814 286.208 24.4463 286.208 23.7181V4.19188C286.208 3.46361 285.953 3.02853 285.076 1.67603V1.20312H295.149C298.835 1.20312 302.592 4.08311 302.592 8.49057C302.592 11.5503 300.948 13.3709 297.958 15.1585L303.175 24.3754C303.577 25.1037 304.231 25.7941 304.999 26.2339V26.2292ZM293.358 13.2953C295.803 13.2243 297.991 11.6543 297.991 8.41491C297.991 5.17552 296.129 3.42577 293.282 3.35011L290.728 3.27917V13.3709L293.358 13.3V13.2953Z",fill:t})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_607_56478",children:(0,a.jsx)("rect",{width:"305",height:"26.8089",fill:"white",transform:"translate(0 0.582031)"})})})]})}var p=n(41745),x=n(84647),h=n(56111),m=n(18);function f(e){let{showModal:t,setShowModal:n,id:f,sku:g,onSave:v}=e,C=(0,d.Z)(),{lang:y}=(0,c.useParams)(),b=(0,r.Z)("(max-width: 767px)"),{messages:N}=(0,p.B)(),{updateDialogAction:V}=(0,x.K)(),[w,j]=(0,l.useState)(""),[k,H]=(0,l.useState)(!1),L=(0,l.useRef)(null),_=(0,l.useRef)(null),M=e=>new TextEncoder().encode(e).length,I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,a=new TextEncoder,c="",l=0,i=-1,s=0,o=0;for(let r=0;r<e.length;r++){let d=e[r];if(l+=a.encode(d).length," "===d&&(i=r),l>t&&(i>=s?(c+="".concat(e.slice(s,i),"\n"),r=i):(c+="".concat(e.slice(s,r),"\n"),r-=1),s=r+1,l=0,i=-1,(o+=1)>=n-1))break}return s<e.length&&(c+=e.slice(s)),c},A=e=>e,E=()=>{if(!L.current)return;let e=L.current;e.style.transitionProperty="height",e.style.transitionDuration="0.3s",e.style.transitionTimingFunction="ease-out";let t=e.offsetHeight;e.style.height="".concat(t,"px"),requestAnimationFrame(()=>{e.style.height="auto";let t=e.scrollHeight;e.style.height="".concat(t,"px")})},S=()=>{let e=I(A(w.trim()),60);L.current&&(v(e,L.current.scrollHeight),b?V("CLOSE"):n(!1))},Z=()=>{if(b&&L.current){if(k)H(!1),setTimeout(()=>{requestAnimationFrame(()=>{if(L.current){L.current.readOnly=!1,L.current.blur(),L.current.focus();let e=L.current.value.length;L.current.setSelectionRange(e,e)}})},200);else{let e=L.current;e.readOnly=!1,e.focus();let t=e.value.length;e.setSelectionRange(t,t)}}};(0,l.useEffect)(()=>{if(!k&&b&&L.current){let e=L.current;setTimeout(()=>{requestAnimationFrame(()=>{e.readOnly=!1,e.blur(),e.focus();let t=e.value.length;e.setSelectionRange(t,t)})},200)}},[k,b]),(0,l.useEffect)(()=>{!k&&b&&requestAnimationFrame(()=>{var e;null===(e=L.current)||void 0===e||e.focus()})},[k,b]),(0,l.useEffect)(()=>{t&&null!==b&&setTimeout(()=>{let e=L.current,t=N.find(e=>e.id===f);t&&e?(j(t.message.replace(/\n/g," ")),H(b)):(j(""),H(!1))},50)},[t,f,N,b]),(0,l.useEffect)(()=>{!k&&L.current&&E()},[w,k]),(0,l.useEffect)(()=>{k&&L.current&&E()},[k]),(0,l.useEffect)(()=>{let e=()=>E();return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,l.useEffect)(()=>
1{if(b&&_.current&&L.current){let e=_.current.offsetWidth;b&&k?L.current.style.width="".concat(1.8*e,"px"):L.current.style.width="".concat(e,"px"),requestAnimationFrame(()=>{E()})}},[k,b]);let T=b?s.default:o.default;return(0,a.jsx)(T,{type:"dialog",showDialog:t,setShowDialog:n,closeBtnFlag:!b,backdropFlag:!0,backdropCloseFlag:!0,touchCloseFlag:!1,lockBodyScroll:!0,preventBodyScrollOnInnerScroll:!0,className:"".concat(b&&"!pb-0"),children:(0,a.jsx)("div",{className:"giftcard-modal mobile:max-h-[75.74vh] desktop:h-[100vh] desktop:overflow-y-auto desktop:px-[60px]",children:(0,a.jsxs)("div",{className:(0,h.cn)("giftcard-modal-content flex flex-col pb-[90px] mobile:pb-0"),children:[(0,a.jsx)("h2",{className:"".concat((0,m.sI)(y).className," mb-[24px] leading-[17px] text-13-").concat(y," uppercase"),children:C("giftcard-gift-message")}),(0,a.jsx)("div",{ref:_,className:"giftcard-msg ".concat(b&&k?"zoom-out preview-mode":""),role:"button",tabIndex:0,onClick:Z,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&k&&b&&(H(!1),setTimeout(()=>{L.current&&L.current.focus()},0))},children:(0,a.jsxs)("div",{className:"relative flex h-[432px] flex-col items-center justify-center bg-[#fff] mobile:h-auto mobile:pb-[66.6667%] desktop:px-[137px]",children:[(0,a.jsx)("textarea",{ref:L,rows:1,value:k?I(A(w),60):w,readOnly:!!k,onChange:e=>{let t=e.target.value;240>=M(A(t))&&j(t)},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},placeholder:C("giftcard-placeholder"),className:"giftcard-msg__textarea w-full text-center ".concat((0,m.sI)(y).className," text-14-").concat(y," leading-[22px] mobile:px-[16px] mobile:text-13-").concat(y," mobile:leading-[17px]"),onClick:Z,style:{height:"auto",overflow:"hidden",cursor:k?"pointer":"auto",width:"100%"}}),(0,a.jsx)("div",{className:"giftcard-msg__logo ".concat(b?"".concat(k?"fade-in":"fade-out"):"fade-in"),children:(0,a.jsx)(u,{})})]})}),(0,a.jsxs)("div",{className:"relative mb-[24px] mt-[12px] flex justify-center mobile:mb-0 mobile:mt-[8px] mobile:flex-col-reverse",children:[(0,a.jsx)("p",{className:"".concat((0,m.sI)(y).className," text-11-").concat(y," leading-[15px] text-[#858585] mobile:mt-[24px] mobile:text-center ").concat(b&&!k?"hidden":""),children:C("giftcard-preview-info")}),(0,a.jsxs)("p",{className:"".concat((0,m.sI)(y).className," text-11-").concat(y," absolute right-0 leading-[15px] text-[#858585] mobile:static mobile:self-end"),children:[M(w)," / ",240," bytes"]})]}),(0,a.jsx)("div",{className:"my-[24px]",children:b?(0,a.jsx)(i.KM,{variant:"default",className:"".concat((0,m.sI)(y).className," h-[48px] w-full text-13-").concat(y," uppercase"),onClick:k?S:()=>{H(e=>{let t=!e;return t||(j(w.replace(/\n/g," ")),setTimeout(()=>{requestAnimationFrame(()=>{let e=L.current;if(e){e.blur(),e.focus();let t=e.value.length;e.setSelectionRange(t,t)}})},350)),t})},children:C(k?"cta-save":"giftcard-preview")}):(0,a.jsx)(i.KM,{variant:"default",className:"".concat((0,m.sI)(y).className," h-[48px] w-full text-13-").concat(y," uppercase"),onClick:S,children:C("cta-save")})})]})})})}n(85547)},45075:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var a=n(57437),c=n(99376),l=n(2265),i=n(39579),s=n(56111),o=n(18),r=n(15550),d=n.n(r);function u(e){let{title:t,children:n,isOpen:r,onToggle:u,TitleTag:p="div",className:x,type:h="",dataGa:m}=e,{lang:f}=(0,c.useParams)(),g="footer"===h,v=(0,i.Z)(),C=(0,s.cn)("w-full",x),y=(0,s.cn)(r?"max-h-auto":"max-h-0"),b=(0,l.useRef)(null),[N,V]=(0,l.useState)("0px");return(0,l.useEffect)(()=>{b.current&&(r?V("".concat(b.current.scrollHeight,"px")):V("0px"))},[r,n]),(0,a.jsxs)("div",{className:"flex flex-col ".concat(g&&r&&"pb-[16px]"),children:[(0,a.jsx)("div",{className:"".concat(C," ").concat(d().child),children:(0,a.jsxs)("button",{type:"button",className:(0,s.cn)("flex w-full justify-between gap-[24px]"),onClick:u,"data-category":null==m?void 0:m.category,"data-action":null==m?void 0:m.action,"data-label":void 0!==m?v(null==m?void 0:m.label):void 0,"aria-expanded":r?"true":"false",children:[(0,a.jsx)("div",{className:"flex-1 text-left text-[0]",children:(0,a.jsx)(p,{className:(0,s.cn)("".concat(g&&r?"text-18-".concat(f," leading-[22px]"):"text-13-".concat(f," leading-[17px]")," ").concat(d().child_title," w-full text-left ").concat((0,o.sI)(f).className," [&_span]:transition-[font-size] [&_span]:duration-500 [&_span]:ease-in-out")),children:t})}),(0,a.jsx)("div",{className:(0,s.cn)("mt-[2px] flex items-center ".concat(d().child_button," ").concat(r?d().open:d().close),g?d().footerType:"")})]})}),(0,a.jsx)("div",{ref:b,className:"".concat(d().accordion_wrap_content," ").concat(y," "),style:{maxHeight:N},children:n})]})}},40222:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var a=n(57437),c=n(99376),l=n(2265),i=n(45075),s=n(39579),o=n(7246),r=n(48890),d=n(56111),u=n(18);function p(){let{lang:e,country:t}=(0,c.useParams)(),n=(0,l.useRef)({}),p=(0,s.Z)(),x=(0,r.G)(e=>e.bagItemsList).some(e=>{var t;return(null==e?void 0:null===(t=e.campaign)||void 0===t?void 0:t.code)===o.D}),[h,m]=(0,l.useState)(0),f={kr:[{link:"https://www.payapp.kr/cardevent/cardevent.html",terms:"checkout-accordion-kakao-kr"},{link:"https://partner.kcp.co.kr/common/notice/card",terms:"checkout-accordion-kcp-kr"},{link:"https://pgweb.tosspayments.com/tosspayments/MainPopUp.do",terms:"checkout-accordion-toss-kr"}],us:[{link:"https://www.klarna.com/us/what-is-klarna/",terms:"checkout-accordion-klarna-us"},{link:"https://www.affirm.com/",terms:"checkout-accordion-affirm-us"},{link:"https://www.paypal.com/us/digital-wallet/ways-to-pay/buy-now-pay-later",terms:"checkout-accordion-paypal-us"}],au:[{link:"https://www.klarna.com/au/what-is-klarna/",terms:"checkout-accordion-klarna-au"},{link:"https://www.afterpay.com/en-AU/how-it-works",terms:"checkout-accordion-afterpay-au"}]},g=e=>{m(t=>t===e?null:e)};return(0,a.jsx)(a.Fragment,{children:[{type:"default",title:"pdp-".concat(t,"-menu-title1"),content:[{key:"pdp-".concat(t,"-menu1-body1"),isMore:!1}]},{type:"checkout",title:"checkout-accordion-title-".concat(t),content:[{key:"checkout-accordion-body-".concat(t),isMore:!1,type:"checkout"}]}].map((c,l)=>"checkout"===c.type&&"ae"===t?null:(0,a.jsx)(i.U,{title:p.text(c.title),isOpen:h===l,onToggle:()=>g(l),className:"".concat((0,u.sI)(e).className," text-13-").concat(e," uppercase leading-[17px]"),children:(0,a.jsx)("div",{className:"content ".concat((0,u.M3)(e).className," pt-[12px] text-13-").concat(e),ref:e=>{n.current[l]=e},children:c.content.map((n,c)=>(n.key==="pdp-".concat(t,"-menu1-body2")||n.key==="pdp-".concat(t,"-menu1-body3"))&&"kr"!==t?null:(0,a.jsx)("div",{className:(0,d.cn)("".concat((0,u.M3)(e).className," text-13-").concat(e," mb-[17px] leading-[17px]")),children:(0,a.jsxs)("div",{className:"flex flex-col gap-[1lh] leading-[17px]",children:[(0,a.jsx)("div",{className:"leading-[17px]",children:"checkout"===n.type&&f["".concat(t)]?p(n.key,[...f["".concat(t)].map((e,n)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:e.link,className:"underline",target:"_blank",children:p(e.terms)},"terms"),n<f["".concat(t)].length-1&&(0,a.jsx)("span",{children:" / "})]}))]):p(n.key)}),n.key==="pdp-".concat(t,"-menu1-body1")&&x&&(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"".concat((0,u.M3)(e).className," text-13-").concat(e," leading-[17px]"),children:p("veggie-keyring-return-notice")})})]})},n.key))})},c.title))})}},75718:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(57437);
1function c(e){let{color:t="#111111",className:n="",disabled:c=!1}=e;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:c?"#858585":t,className:n,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00018 5.1515L11.1504 0.00129065L11.9991 0.849976L5.99823 6.85082L5.14954 6.00213L5.1515 6.00018L0 0.848685L0.848685 0L6.00018 5.1515Z",fill:c?"#858585":t})})}},85547:function(){},15550:function(e){e.exports={accordion:"Accordion_accordion__kWaxc",accordion_wrap:"Accordion_accordion_wrap__nsPqW",open:"Accordion_open__Peu_m",accordion_wrap_content:"Accordion_accordion_wrap_content__ME68p",child_title:"Accordion_child_title__GTmo9",child_button:"Accordion_child_button__GNvrM",footerType:"Accordion_footerType__eFhmU"}}}]);
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.