1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2527],{32527:function(e,n,t){t.d(n,{Z:function(){return B}});var r=t(52322),a=t(2784),i=t(96577),l=t.n(i),s=t(5632),o=t(21509),d=t(11122),c=t(27718),u=t(38379),x=t(51063),m=t(78022);function p(e){return(0,r.jsxs)(m.Z,{viewBox:"0 0 20 20",...e,children:[(0,r.jsx)("path",{d:"M13.1604 13.2521C13.3093 12.8888 13.4782 12.477 13.944 12.2082C14.0691 12.136 14.2291 12.1787 14.3013 12.304C14.3737 12.4292 14.3308 12.5892 14.2056 12.6614C13.8947 12.8409 13.7788 13.1234 13.6446 13.4506C13.4895 13.829 13.3139 14.2581 12.811 14.5484C12.7697 14.5721 12.7248 14.5834 12.6802 14.5834C12.5899 14.5834 12.5019 14.5364 12.4535 14.4525C12.3813 14.3273 12.4242 14.1674 12.5491 14.0952C12.8974 13.8941 13.0192 13.5966 13.1604 13.2521M8.57978 13.4736C8.53134 13.5575 8.44325 13.6045 8.35276 13.6045C8.30842 13.6045 8.2635 13.5931 8.22223 13.5694C7.75648 13.3006 7.58759 12.8886 7.43876 12.5255C7.29748 12.181 7.17568 11.8835 6.82763 11.6826C6.70243 11.6102 6.6596 11.4503 6.73173 11.3251C6.80413 11.1999 6.96408 11.157 7.08928 11.2292C7.59215 11.5195 7.7678 11.9486 7.92306 12.3269C8.05711 12.6542 8.17293 12.9366 8.48386 13.1162C8.60906 13.1884 8.6519 13.3484 8.57976 13.4735M12.9098 11.2292C13.035 11.157 13.1949 11.1999 13.2673 11.325C13.3394 11.4502 13.2966 11.6102 13.1714 11.6826C12.8605 11.862 12.7447 12.1446 12.6106 12.4717C12.4553 12.8502 12.2797 13.2791 11.7768 13.5694C11.7356 13.5931 11.6906 13.6045 11.6463 13.6045C11.5558 13.6045 11.4677 13.5577 11.4193 13.4737C11.3471 13.3485 11.39 13.1886 11.5152 13.1162C11.8632 12.9152 11.985 12.6176 12.1263 12.2733C12.2751 11.91 12.444 11.4983 12.9098 11.2292M9.99944 18.5965L1.50594 13.044L3.67328 11.6271L9.10978 15.1813C9.15392 15.2101 9.20359 15.224 9.25268 15.224C9.33803 15.224 9.42177 15.1821 9.47208 15.1054C9.55105 14.9843 9.5172 14.8223 9.39617 14.7431L4.15167 11.3145L7.674 9.01179C7.71775 9.09545 7.80519 9.15261 7.90597 9.15261H8.09815V10.8969C8.09815 11.8565 8.8128 12.6519 9.73794 12.7798V15.4501C9.73794 15.5946 9.85506 15.7118 9.99959 15.7118C10.1441 15.7118 10.2612 15.5946 10.2612 15.4501V12.7798C11.1864 12.6519 11.901 11.8565 11.901 10.8969V9.15261H12.0932C12.194 9.15261 12.2814 9.09545 12.3252 9.01179L18.493 13.044L9.99944 18.5965ZM11.8313 6.35337H8.16778V5.75525H11.8313V6.35337ZM7.45661 2.73303H8.05518V4.31285C8.05518 4.45738 8.1723 4.57444 8.31683 4.57444C8.46136 4.57444 8.57848 4.45738 8.57848 4.31285V2.73303H9.17685V4.31285C9.17685 4.45738 9.29416 4.57444 9.43869 4.57444C9.58323 4.57444 9.70035 4.45738 9.70035 4.31285V2.73303H10.2986V4.31285C10.2986 4.45738 10.416 4.57444 10.5603 4.57444C10.7048 4.57444 10.8221 4.45738 10.8221 4.31285V2.73303H11.4205V4.31285C11.4205 4.45738 11.5376 4.57444 11.6822 4.57444C11.8267 4.57444 11.9438 4.45738 11.9438 4.31285V2.73303H12.5424V5.23204H7.45655L7.45661 2.73303ZM6.10635 1.22743H13.893V2.20954H6.10635V1.22743ZM11.8313 8.62927H8.16785V6.87694H11.8313V8.62927ZM11.3777 9.75069H8.62136V9.15257H11.3777V9.75069ZM9.99956 12.2749C9.23953 12.2749 8.62143 11.6567 8.62143 10.8969V10.274H11.3778V10.8969C11.3778 11.6567 10.7597 12.2749 9.99963 12.2749M19.1145 12.8249L12.355 8.40592V5.75525H12.8042C12.9488 5.75525 13.0659 5.63813 13.0659 5.4936V2.73293H14.1548C14.2993 2.73293 14.4164 2.61562 14.4164 2.47108V0.965685C14.4164 0.821153 14.2993 0.704102 14.1548 0.704102H5.84493C5.7004 0.704102 5.58328 0.821158 5.58328 0.965685V2.47108C5.58328 2.61562 5.7004 2.73293 5.84493 2.73293H6.93353V5.4936C6.93353 5.63813 7.05065 5.75525 7.19518 5.75525H7.64446V8.40592L0.884962 12.8249C0.811133 12.8732 0.766602 12.9556 0.766602 13.0439C0.766602 13.1323 0.811133 13.2146 0.884962 13.2631L9.85663 19.1281C9.89992 19.1565 9.94986 19.1707 9.99973 19.1707C10.0496 19.1707 10.0995 19.1565 10.1428 19.1281L19.1145 13.2631C19.1883 13.2146 19.2329 13.1323 19.2329 13.0439C19.2329 12.9557 19.1883 12.8732 19.1145 12.8249",fill:"currentColor"}),(0,r.jsx)("clipPath",{children:(0,r.jsx)("rect",{width:"20",height:"20",fill:"white"})})]})}var v=t(48271),f=t(96053),g=t(49427),h=t(74741),b=t(66590),j=t(54719);let C=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",r=null==e?void 0:e.builderEngravingdata;if(!r)return null;let a=r;if("json"===t&&"string"==typeof r)try{a=JSON.parse(r)}catch(e){return console.error("Error parsing engraving data:",e),null}if(n){var i;return null!==(i=null==a?void 0:a[n])&&void 0!==i?i:null}return a};var y=t(88158),w=t(46133),N=t(56729),k=t(59038);let P=(e,n)=>RegExp("\\b(".concat(e.join("|"),")\\b"),"i").test(n);var V=t(72198),L=t(92938);let Z=/^[a-zA-Z0-9\s#&$\-!.,'"â/]+$/,S=e=>["pulseid","previewUrl",{...e}];var H=t(28316),_=t(2774),z=t(89309),M=t(69448),I=t(35130);function D(e){var n,t,i,l;let{onClose:u,children:x,open:m,onSubmitFormData:p,isLoading:f,canSave:w,engravingPrice:N,engravingPriceCurrency:k}=e,{t:P}=(0,d.$G)(["common"]),V=(0,a.useContext)(b.N),{ssrDataPreferences:L}=(0,h.F)(),Z=C(L,"data"),{locale:S}=(0,s.useRouter)(),{formatPrice:D}=(0,y.p)(),E="number"==typeof N?N:Number(N),B=Number.isFinite(E)&&E>0,F=(0,j.o)(L,"engraving-option-product-price-label","json"),U=(0,a.useRef)(null);return((0,a.useEffect)(()=>(U.current&&(m?(0,_.Qp)(U.current):(0,_.tG)(U.current)),m?document.body.classList.add("engraving-modal-open"):document.body.classList.remove("engraving-modal-open"),()=>{(0,_.tP)()}
1),[m]),"undefined"==typeof document)?null:(0,H.createPortal)((0,r.jsx)(z.d,{open:null!=m&&m,onClose:u,isLoading:f,className:"overflow-auto ",children:(0,r.jsxs)("div",{className:" md:pb-[1.875rem] max-h-screen md:max-h-[51.5625rem] pb-28 ",children:[(0,r.jsxs)("header",{className:"flex items-center justify-between px-5 pt-[1.875rem] pb-[0.813rem]",children:[(0,r.jsx)("h1",{className:"typography-headline-4 md:typography-headline-3 !font-fontSecondary font-normal !text-engraving-hdr !text-[24px] !leading-[32px]",children:"fr"===S?null==Z?void 0:null===(n=Z.title)||void 0===n?void 0:n.fr:null==Z?void 0:null===(t=Z.title)||void 0===t?void 0:t.Default}),V===g.iI.Movado&&(0,r.jsx)(c.V,{square:!0,variant:o.ke.secondary,className:"active:bg-transparent",onClick:u,"data-testid":"close-modal",style:{width:"30px",height:"30px"},children:(0,r.jsx)(v.Z,{})}),(V===g.iI.MovadoCompanyStore||V===g.iI.OliviaBurtonUk)&&(0,r.jsx)(c.V,{square:!0,variant:o.ke.secondary,className:"active:bg-transparent !rounded-2xl",onClick:u,"data-testid":"close-modal",style:{width:"30px",height:"30px"},children:(0,r.jsx)(v.Z,{})})]}),(0,r.jsx)("div",{className:"max-w-[37.5rem] mx-auto px-5",children:(0,r.jsx)("p",{className:"text-left font-fontSecondary text-black text-[12px] leading-[18px] font-normal",children:"fr"===S?null==Z?void 0:null===(i=Z.description)||void 0===i?void 0:i.fr:null==Z?void 0:null===(l=Z.description)||void 0===l?void 0:l.Default})}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p((0,I.z)(e.target))},children:[f&&(0,r.jsx)("div",{className:"fixed top-0 left-0 w-full bg-engraving-loader h-full max-h-screen",children:(0,r.jsx)(M.T,{})}),x,(0,r.jsxs)("div",{className:"w-full pb-3 px-5 my-[3.8rem]",children:[(0,r.jsxs)("h3",{className:"text-[14px] font-fontSecondary font-normal text-center leading-5",children:[null==F?void 0:F.modal,B&&" ".concat(D({amount:N,currency:null!=k?k:"USD"}))]}),(0,r.jsxs)("div",{className:"flex justify-center gap-[6px] mt-[1.375rem] md:mt-6",children:[(0,r.jsx)(c.V,{"data-testid":"form-cancel",onClick:u,variant:o.ke.secondary,className:"w-[183px] h-[45px] rounded-[120px] px-[32px] py-[14px] border border-solid !text-[12px] !font-normal !leading-[17px]","aria-label":P("form.cancel"),children:P("form.cancel")}),(0,r.jsx)(c.V,{variant:o.ke.primary,className:"w-[183px] h-[45px] rounded-[120px] px-[32px] py-[14px] border border-solid !text-[12px] !font-normal !leading-[17px] ".concat(f||!w?"opacity-50":""),"data-testid":"save",type:"submit",disabled:f||!w,"aria-label":P("form.save"),children:P("form.save")})]})]})]})]})}),document.getElementById("mainPage"))}D.defaultProps={isLoading:!1,onClose:void 0,submitLabel:void 0};var E=e=>{let{size:n=20,color:t="currentColor",className:a=""}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a,children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polygon",{points:"10 8 16 12 10 16",fill:"none",stroke:t})]})};function B(e){var n,t;let{productId:i,hide:m=!1,price:H,addButtonText:_,removeButtonText:z,casebackImage:M="",isEnabled:I=!1,modalHeading:B="",modalDescription:F,totalText:U,badWordsList:T="",itemId:q="",pageType:O=k.B.PDP,lineItemQuantity:$=1,engravingPriceCurrency:A,engravingPrice:R}=e,{t:G}=(0,d.$G)("product"),{textOne:W,textTwo:Y,previewData:J,isFetching:K,isSaved:Q,previewUrl:X,showModal:ee,error:en,previewLoaded:et,handleRemove:er,setShowModal:ea,handleClose:ei,handleSave:el,setTextOne:es,setTextTwo:eo,handleShowPreview:ed,setPreviewLoaded:ec,handleClearTextOne:eu}=function(e){let{productId:n,casebackImage:t,badWordsList:r,itemId:i,pageType:l,price:s=0,lineItemQuantity:o=1}=e,{t:c}=(0,d.$G)("product"),u=(0,V._8)(),[x,m]=(0,a.useState)(!1),[p,v]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[h,b]=(0,a.useState)(""),[j,C]=(0,a.useState)({textOne:f,textTwo:h,productId:n,timestamp:""}),[y,w]=(0,a.useState)(t),[H,_]=(0,a.useState)(!1),z=(0,L.V)(i,!0),[M,I]=(0,a.useState)(!1),{data:D,isFetching:E}=(0,N.a)(S(j),()=>u.unified.getEngravingPreviewUrl(j),{refetchOnMount:!1,refetchOnWindowFocus:!1,enabled:!!j.textOne});(0,a.useEffect)(()=>{(null==D?void 0:D.success)&&(null==D?void 0:D.previewUrl)&&w(null==D?void 0:D.previewUrl)},[null==D?void 0:D.success]),(0,a.useEffect)(()=>{t&&w(t)},[t]);let B=()=>{m(!1),w(t),v(""),g(""),b("")};return{textOne:f,textTwo:h,error:p,previewUrl:y,showModal:x,isSaved:M,previewData:D,isFetching:E,previewLoaded:H,setShowModal:m,setTextOne:g,setTextTwo:b,handleClose:B,handleSave:()=>{(null==D?void 0:D.previewUrl)&&f&&(l===k.B.Cart?(z.mutate({quantity:o,optionItems:[{optionId:"pulseIdEngraving",optionValueId:"Engraving",price:null!=s?s:0,c_engraveMessageLine1:f,c_engraveMessageLine2:h,c_pulseIDAssociatedProductId:n,c_pulseIDPreviewURL:y}]}),B()):(m(!1),I(!0)))},handleRemove:()=>{I(!1),w(t),g(""),b("")},handleShowPreview:()=>
1{if(v(""),_(!1),!f||f.length>15||h.length>15||!Z.test(f)||(null==h?void 0:h.trim())&&!Z.test(h)){v(c("engraving.lineError"));return}if(r){var e,t,a;let n=null!==(a=null==r?void 0:null===(t=r.split(","))||void 0===t?void 0:null===(e=t.filter(e=>""!==e.trim()))||void 0===e?void 0:e.map(e=>e.trim()))&&void 0!==a?a:[];if(P(n,f)||P(n,h)){v(c("engraving.lineBadWordError"));return}}C({productId:n,textOne:f,textTwo:h,timestamp:Date.now().toString()})},setPreviewLoaded:_,handleClearTextOne:()=>{g(""),v("")}}}({productId:i,casebackImage:M,badWordsList:T,itemId:q,pageType:O,price:H,lineItemQuantity:$}),ex=(0,a.useContext)(b.N),em=(0,w.y)("engraving"),{ssrDataPreferences:ep}=(0,h.F)(),ev=C(ep,"data"),ef=ex===g.iI.Movado,eg=ex===g.iI.MovadoCompanyStore||ex===g.iI.OliviaBurtonUk,{locale:eh}=(0,s.useRouter)(),{formatPrice:eb}=(0,y.p)(),ej="number"==typeof R?R:Number(R),eC=Number.isFinite(ej)&&ej>0;if(!I||m||!ef&&!eg)return null;let ey=!Q,ew=(0,j.o)(ep,"engraving-option-product-price-label","json");return ef?(0,r.jsxs)(r.Fragment,{children:[em&&O===k.B.PDP&&(0,r.jsxs)("div",{className:"product-customisation pb-5 border-b border-engraving-separator md:mx-auto md:w-full md:max-w-[344px]",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsxs)("div",{className:"font-fontPrimary font-semibold",children:[null==ew?void 0:ew.pdp,eC&&" ".concat(eb({amount:R,currency:null!=A?A:"USD"}))]}),Q?(0,r.jsxs)(c.V,{variant:o.ke.secondary,onClick:er,size:o.YC.sm,className:"flex items-center capitalize",children:[(0,r.jsx)(x.Z,{size:"xs",className:"w-[13px] h-[13px]"}),(0,r.jsx)("span",{className:"block leading-4",children:z})]}):(0,r.jsxs)(c.V,{variant:o.ke.secondary,size:o.YC.sm,onClick:()=>ea(!0),className:"flex items-center !rounded-[100px] capitalize !border-white",children:[(0,r.jsx)(u.Z,{size:"xs",className:"w-[13px] h-[13px]"}),(0,r.jsx)("span",{className:"block leading-4",children:_})]})]}),Q&&(0,r.jsxs)("div",{className:"w-full text-[13px] flex flex-col font-fontPrimary font-semibold pt-2.5",children:[(0,r.jsx)("span",{children:W}),(0,r.jsx)("span",{children:Y})]}),I&&Q&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_textOne"),value:W}),(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_textTwo"),value:Y}),(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_previewUrl"),value:X})]})]}),O===k.B.Cart&&(0,r.jsx)(c.V,{square:!0,variant:"tertiary",className:"!font-fontPrimary !normal-case !text-sm !tracking-extra-global !p-0 !gap-[5px] active:!bg-transparent focus-visible:outline-dotted focus-visible:outline-primary-900 focus-visible:outline-1 focus-visible:outline-offset-4 !font-normal !text-cart-list-link",onClick:()=>ea(!0),slotPrefix:(0,r.jsx)(p,{size:"sm"}),children:(0,r.jsx)("span",{className:"underline underline-offset-4",children:_})}),(0,r.jsxs)(D,{heading:B,description:F,open:ee,submitLabel:G("save"),isLoading:K,onSubmitFormData:el,onClose:ei,totalText:U,disableClickAway:!0,canSave:!!(null==J?void 0:J.previewUrl)&&!!W&&et&&M!==X,engravingPrice:R,engravingPriceCurrency:A,children:[(0,r.jsx)("div",{className:"flex justify-center mt-2.5 mb-[15px] md:my-[1.875rem] p-[1.063rem] md:p-0",children:!!X&&(0,r.jsx)(l(),{onLoad:()=>ec(!0),src:X,width:300,height:300,alt:G("previewAltText"),className:"object-contain aspect-square max-h-[20rem] md:max-h-[18rem]"})}),(0,r.jsxs)("div",{className:"mx-[20px] w-full max-w-[21.25rem]",children:[(null==J?void 0:J.success)===!1&&!K&&!en&&(0,r.jsx)("p",{className:"text-engraving-error font-fontPrimary text-xs mb-5",children:G("engraving.apiError")}),en&&(0,r.jsx)("p",{className:"text-engraving-error font-fontPrimary text-xs mb-5",children:en}),(0,r.jsxs)("div",{className:"relative w-full mb-5",children:[(0,r.jsx)(f.Z,{type:"text",label:"".concat(G("engraving.line1Text"),"*"),value:W,onChange:e=>es(e.target.value),className:"font-fontPrimary pr-8",wrapperClassName:"!ring-0 border-0 border-b border-engraving-input-b rounded-none !px-0 h-[3.188rem] text-[0.938rem] font-normal"}),W.length>0&&(0,r.jsx)(c.V,{variant:"tertiary",onClick:eu,slotPrefix:(0,r.jsx)(v.Z,{size:"xs",className:"w-2.5 h-2.5"}),className:"absolute right-2 top-1/2 transform -translate-y-1/2 w-5 h-5 rounded-full border !p-0.5 border-engraving-input-close-b bg-white"})]}),(0,r.jsx)(f.Z,{type:"text",placeholder:G("engraving.line2Text"),onChange:e=>eo(e.target.value),value:Y,className:"font-fontPrimary bg-engraving-input-bg",wrapperClassName:"!ring-0 border-0 border-b border-engraving-input-b roun
1ded-none h-[3.188rem] !px-0 mb-5 text-[0.938rem] font-medium"}),(0,r.jsx)("p",{className:"text-left font-fontPrimary text-engraving-txt text-[10px] leading-[1.3] tracking-[0.25px] pt-3 font-medium",children:"fr"===eh?null==ev?void 0:ev.instruction.fr:null==ev?void 0:null===(t=ev.instruction)||void 0===t?void 0:t.Default}),(0,r.jsxs)("button",{type:"button",onClick:ed,className:"flex items-center space-x-2 underline pt-5","aria-label":G("engraving.seePreview"),children:[(0,r.jsx)(E,{}),(0,r.jsx)("span",{className:"!text-[14px] font-fontPrimary leading-4 tracking-[0.25px]",children:G("engraving.seePreview")})]})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[em&&O===k.B.PDP&&(0,r.jsxs)("div",{className:"product-customisation pb-5 border-b border-engraving-separator md:mx-auto md:w-full ".concat(eg?"md:max-w-[544px] border-t py-5":"md:max-w-[344px]"),children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsxs)("div",{className:"font-fontPrimary font-semibold",children:[null==ew?void 0:ew.pdp,eC&&" ".concat(eb({amount:R,currency:null!=A?A:"USD"}))]}),(0,r.jsxs)(c.V,{variant:o.ke.secondary,size:o.YC.sm,onClick:ey?()=>ea(!0):er,"aria-label":ey&&!eg?"Add engraving":void 0,className:ey?"flex items-center !rounded-[100px] capitalize ".concat(eg?"!px-2 ml-auto":"!border-white"):"flex items-center capitalize",children:[ey?(0,r.jsx)(u.Z,{size:"xs",className:"w-[13px] h-[13px]"}):(0,r.jsx)(x.Z,{size:"xs",className:"w-[13px] h-[13px]"}),(0,r.jsx)("span",{className:"block leading-4",children:ey?_:z})]})]}),Q&&(0,r.jsxs)("div",{className:"w-full text-[13px] flex flex-col font-fontPrimary ".concat(eg?"font-[600] pt-2 gap-2":"font-semibold pt-2.5"),children:[(0,r.jsxs)("span",{children:[W," "]})," ",(0,r.jsx)("span",{children:Y})]}),I&&Q&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_textOne"),value:W}),(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_textTwo"),value:Y}),(0,r.jsx)("input",{type:"hidden",name:"engrave_".concat(i,"_previewUrl"),value:X})]})]}),O===k.B.Cart&&(0,r.jsx)(c.V,{square:!0,variant:"tertiary",className:"!font-fontPrimary !normal-case !text-sm !tracking-extra-global !p-0 !gap-[5px] active:!bg-transparent focus-visible:outline-dotted focus-visible:outline-primary-900 focus-visible:outline-1 focus-visible:outline-offset-4 !font-normal !text-cart-list-link","data-testid":"this-is-a-gift-item",onClick:()=>ea(!0),slotPrefix:(0,r.jsx)(p,{size:"sm"}),children:(0,r.jsx)("span",{className:"underline underline-offset-4",children:_})}),(0,r.jsxs)(D,{heading:B,description:F,open:ee,submitLabel:G("save"),isLoading:K,onSubmitFormData:el,onClose:ei,totalText:U,disableClickAway:!0,canSave:!!(null==J?void 0:J.previewUrl)&&!!W&&et&&M!==X,engravingPrice:R,engravingPriceCurrency:A,children:[(0,r.jsx)("div",{className:"flex justify-center mt-2.5 mb-[15px] md:my-[1.875rem] p-[1.063rem] md:p-0",children:!!X&&(0,r.jsx)(l(),{onLoad:()=>ec(!0),src:X,width:300,height:300,alt:G("previewAltText"),className:"object-contain aspect-square max-h-[20rem] md:max-h-[18rem]"})}),(0,r.jsxs)("div",{className:"mx-[20px] w-full max-w-[21.25rem]",children:[(null==J?void 0:J.success)===!1&&!K&&!en&&(0,r.jsx)("p",{className:"text-engraving-error font-fontPrimary text-xs mb-5",children:G("engraving.apiError")}),en&&(0,r.jsx)("p",{className:"text-engraving-error font-fontPrimary text-xs mb-5",children:en}),(0,r.jsxs)("div",{className:"relative w-full mb-5",children:[(0,r.jsx)(f.Z,{type:"text",label:"".concat(G("engraving.line1Text"),"*"),value:W,onChange:e=>es(e.target.value),className:"font-fontPrimary pr-8 !font-normal !leading-5 ",wrapperClassName:"!ring-0 border-0 border-b border-engraving-input-b rounded-none !px-0 h-[3.188rem] text-[0.938rem] font-normal",borderClass:"!border-0"}),W.length>0&&(0,r.jsx)(c.V,{variant:"tertiary",onClick:eu,slotPrefix:(0,r.jsx)(v.Z,{size:"xs",className:"w-2.5 h-2.5"}),className:"absolute right-2 top-1/2 transform -translate-y-1/2 w-5 h-5 rounded-full border !p-0.5 border-engraving-input-close-b bg-white"})]}),(0,r.jsx)(f.Z,{type:"text",label:G("engraving.line2Text"),onChange:e=>eo(e.target.value),value:Y,className:"font-fontPrimary !font-normal
1!leading-5 ",wrapperClassName:"!ring-0 border-0 border-b rounded-none h-[3.188rem] !px-0 mb-5 text-[0.938rem] ",borderClass:"!border-0"}),(0,r.jsx)("p",{className:"text-left font-fontPrimary text-engraving-txt text-[10px] leading-[1.3] tracking-[0.25px] pt-3 font-medium",children:"fr"===eh?null==ev?void 0:ev.instruction.fr:null==ev?void 0:null===(n=ev.instruction)||void 0===n?void 0:n.Default}),(0,r.jsxs)("button",{type:"button",onClick:ed,className:"flex items-center space-x-2 underline pt-5","aria-label":G("engraving.seePreview"),children:[(0,r.jsx)(E,{}),(0,r.jsx)("span",{className:"!text-[14px] font-fontPrimary leading-4 tracking-[0.25px]",children:G("engraving.seePreview")})]})]})]})]})}},59038:function(e,n,t){var r,a;t.d(n,{B:function(){return r}}),(a=r||(r={})).Cart="cart",a.PDP="pdp"},51063:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(52322),a=t(78022);function i(e){return(0,r.jsx)(a.Z,{viewBox:"0 0 25 24",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square",strokeLinejoin:"round",d:"M6.1,12h14"})})}},38379:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(52322),a=t(78022);function i(e){return(0,r.jsx)(a.Z,{viewBox:"0 0 25 24",...e,children:(0,r.jsx)("path",{d:"M12.5,4v7.5H5v0.9h7.5V20h0.9v-7.5H21v-0.9h-7.5V4H12.5z"})})}},96053:function(e,n,t){var r=t(52322),a=t(21509),i=t(98087),l=t(502),s=t(94184),o=t.n(s);let d={[a.y$.sm]:" h-[30px]",[a.y$.base]:"h-[48px]",[a.y$.lg]:"h-[48px]"},c=(0,i.K)((e,n)=>{let{wrapperAs:t,size:i=a.y$.base,slotPrefix:s,slotSuffix:c,disabled:u,invalid:x,className:m,wrapperClassName:p,label:v,isDirty:f,placeholder:g=" ",borderClass:h,...b}=e,{isFocusVisible:j}=(0,l._)({isTextInput:!0});return(0,r.jsxs)(t||"span",{className:o()(["flex flex-col bg-input-bg border-b border-input relative font-fontPrimary hover:shadow-input-hover text-base text-input",{invalid:x,valid:!x&&f&&!u,"focus-within:outline !outline-transparent focus-within:outline-offset":j},d[i],p]),"data-testid":"input",children:[s,(0,r.jsx)("input",{className:o()(["min-w-[80px] w-full text-base outline-none appearance-none text-input placeholder-input disabled:cursor-not-allowed bg-transparent pt-3.5 pb-2 h-full z-20 pr-[32px]",m,h]),type:"text","data-testid":"input-field",size:1,placeholder:g,"aria-label":v,...b,ref:n}),c,v&&(0,r.jsx)("label",{className:"absolute z-[1] left-0 font-medium text-base top-4 tracking-[0.5px] capitalize pointer-events-none",htmlFor:null==b?void 0:b.id,children:v})]})});n.Z=c},35130:function(e,n,t){t.d(n,{z:function(){return i}});var r=t(41242);let a=e=>""===e?null:e;function i(e){let n=Object.fromEntries(new FormData(e).entries());return(0,r.Z)(n,a)}},92938:function(e,n,t){t.d(n,{E:function(){return l},V:function(){return i}});var r=t(72198),a=t(45316);function i(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=(0,r._8)();return(0,a.nX)(["updateCartLineItem",e],async n=>t.unified.updateCartLineItem({lineItemId:e,...n}),{...n&&{meta:(0,a.Fq)("updateCart")}})}function l(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,r._8)();return(0,a.Gs)(["updateCartLineItemSilent",e],async n=>t.unified.updateCartLineItem({lineItemId:e,...n}),{...n&&{meta:(0,a.Fq)("updateCart")}})}}}]);
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.