1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[552],{43458:(l,e,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/carts/[cartId]/shipping",function(){return i(54970)}])},1186:(l,e,i)=>{"use strict";i.d(e,{A:()=>s});var d=i(74848),n=i(82097);function s(l){let{header:e,footer:i,children:s,className:o,fixed:t=!1}=l,{headerRef:r,footerRef:a,footerHeight:u}=(0,n.A)();return(0,d.jsxs)("div",{className:"".concat(t?"fixed":"fixed md:static"," w-full h-full z-40 overflow-auto flex flex-col left-0 top-0"),children:[(0,d.jsx)("div",{className:"w-full flex flex-col",ref:r,children:e}),(0,d.jsx)("div",{className:"overflow-y-scroll w-full flex-grow md:mb-0 overflow-x-hidden ".concat(o||""),style:{marginBottom:u},children:s}),(0,d.jsx)("div",{className:"w-full fixed bottom-0",ref:a,children:i})]})}},9588:(l,e,i)=>{"use strict";i.d(e,{A:()=>t});var d=i(74848),n=i(96540),s=i(14891),o=i(91469);function t(l){var e,i,t,r,a;let{currentAddress:u,addressMatches:c,setShowAddressValidationModal:v,setAddressLine1:p,setAddressLine2:m,setAddressCity:h,setAddressState:x,setAddressZip:_,setAddressCountry:f,setIsAddressVerified:g,setVerifiedAddress:y,setUseAsEntered:b,isLoading:j}
1=l,[N,w]=(0,n.useState)(""),[S,A]=(0,n.useState)(""),[C,k]=(0,n.useState)(""),[E,q]=(0,n.useState)(""),[U,z]=(0,n.useState)(""),[T,K]=(0,n.useState)(""),V=N!==(null==u?void 0:u.line1)||S!==(null==u?void 0:u.line2)||C!==(null==u?void 0:u.city)||E!==(null==u?void 0:u.state)||U!==(null==u?void 0:u.zip)||T!==(null==u?void 0:u.country);return(0,n.useEffect)(()=>{if(null==c?void 0:c[0]){var l,e,i,d,n;w(null==c?void 0:null===(l=c[0])||void 0===l?void 0:l.street),A(null==u?void 0:u.line2),k(null==c?void 0:null===(e=c[0])||void 0===e?void 0:e.city),q(null==c?void 0:null===(i=c[0])||void 0===i?void 0:i.state),z(null==c?void 0:null===(d=c[0])||void 0===d?void 0:d.zip),K(null==c?void 0:null===(n=c[0])||void 0===n?void 0:n.country)}},[c]),(null==c?void 0:c[0])?(0,d.jsxs)(s.A,{title:"Confirm address",onCancel:()=>v(!1),isConfirming:j,onConfirm:()=>{p(N),m(S),h(C),x(E),_(U),f(T),g(V),b(!V)},confirmText:V?"Update address":"Save",cancelText:"Cancel",children:[(0,d.jsx)("div",{className:"mb-5",children:"We found a verified format of your address. Please confirm if you would like to continue with the address you entered, or with the verified address below."}),(0,d.jsxs)("div",{className:"flex flex-col md:flex-row gap-5",children:[(0,d.jsxs)("div",{className:"md:w-1/2",children:[(0,d.jsxs)("div",{className:"flex flex-row gap-2 items-center mb-2 cursor-pointer",onClick:()=>{w(null==u?void 0:u.line1),A(null==u?void 0:u.line2),k(null==u?void 0:u.city),q(null==u?void 0:u.state),z(null==u?void 0:u.zip),K(null==u?void 0:u.country),y(!1)},children:[(0,d.jsx)(o.A,{value:!V&&!j}),(0,d.jsx)("h3",{className:"text-action-secondary",children:"Use as entered"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{children:null==u?void 0:u.line1}),(0,d.jsx)("p",{children:null==u?void 0:u.line2}),(0,d.jsx)("p",{children:null==u?void 0:u.city}),(0,d.jsx)("p",{children:null==u?void 0:u.state}),(0,d.jsx)("p",{children:null==u?void 0:u.zip}),(0,d.jsx)("p",{children:null==u?void 0:u.country})]})]}),(null==c?void 0:c[0])&&(0,d.jsxs)("div",{className:"md:w-1/2",children:[(0,d.jsxs)("div",{className:"flex flex-row gap-2 items-center mb-2 cursor-pointer",onClick:()=>{var l,e,i,d,n;w(null==c?void 0:null===(l=c[0])||void 0===l?void 0:l.street),A(null==u?void 0:u.line2),k(null==c?void 0:null===(e=c[0])||void 0===e?void 0:e.city),q(null==c?void 0:null===(i=c[0])||void 0===i?void 0:i.state),z(null==c?void 0:null===(d=c[0])||void 0===d?void 0:d.zip),K(null==c?void 0:null===(n=c[0])||void 0===n?void 0:n.country),y(null==c?void 0:c[0])},children:[(0,d.jsx)(o.A,{value:V}),(0,d.jsx)("h3",{className:"text-action-secondary",children:"Use verified address"})]}),(0,d.jsxs)("div",{className:"cursor-pointer",onClick:()=>{var l,e,i,d,n;w(null==c?void 0:null===(l=c[0])||void 0===l?void 0:l.street),A(null==u?void 0:u.line2),k(null==c?void 0:null===(e=c[0])||void 0===e?void 0:e.city),q(null==c?void 0:null===(i=c[0])||void 0===i?void 0:i.state),z(null==c?void 0:null===(d=c[0])||void 0===d?void 0:d.zip),K(null==c?void 0:null===(n=c[0])||void 0===n?void 0:n.country),y(null==c?void 0:c[0])},children:[(0,d.jsx)("p",{children:null==c?void 0:null===(e=c[0])||void 0===e?void 0:e.street}),(null==u?void 0:u.line2)&&(0,d.jsx)("p",{children:null==u?void 0:u.line2}),(0,d.jsx)("p",{children:null==c?void 0:null===(i=c[0])||void 0===i?void 0:i.city}),(0,d.jsx)("p",{children:null==c?void 0:null===(t=c[0])||void 0===t?void 0:t.state}),(0,d.jsx)("p",{children:null==c?void 0:null===(r=c[0])||void 0===r?void 0:r.zip}),(0,d.jsx)("p",{children:null==c?void 0:null===(a=c[0])||void 0===a?void 0:a.country})]})]})]})]}):(0,d.jsxs)(s.A,{title:"Confirm address",cancelText:"Edit address",onCancel:()=>v(!1),isConfirming:j,onConfirm:()=>{w(null==u?void 0:u.line1),A(null==u?void 0:u.line2),k(null==u?void 0:u.city),q(null==u?void 0:u.state),z(null==u?void 0:u.zip),K(null==u?void 0:u.country),y(!1),b(!0)},confirmText:"Use current address",children:[(0,d.jsx)("div",{className:"mb-5",children:"We couldn't find a complete match in USPS for the address provided. Continuing with this address can cause delivery issues. Click below to edit the address, or continue with the provided address."}),(0,d.jsx)("div",{className:"flex flex-col md:flex-row gap-5",children:(0,d.jsxs)("div",{className:"md:w-1/2",children:[(0,d.jsx)("h3",{className:"text-action-secondary",children:"Current address"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{children:null==u?void 0:u.line1}),(0,d.jsx)("p",{children:null==u?void 0:u.line2}),(0,d.jsxs)("p",{children:[null==u?void 0:u.city,", ",null==u?void 0:u.state]}),(0,d.jsx)("p",{children:null==u?void 0:u.zip}),(0,d.jsx)("p",{children:null==u?void 0:u.country})]})]})})]})}},29247:(l,e,i)=>{"use strict";i.d(e,{A:()=>
1o});var d=i(74848);i(96540);var n=i(86715),s=i(89459);function o(){let l=(0,n.useRouter)();return(0,d.jsxs)("div",{className:"h-screen w-screen flex flex-col p-8",style:{backgroundImage:"url('/images/gradient-bg.svg')",backgroundSize:"cover"},children:[(0,d.jsxs)("div",{className:"flex md:justify-between md:flex-row flex-col items-center",children:[(0,d.jsx)("a",{href:"https://getpaloma.com/",children:(0,d.jsx)(s.A,{src:"/images/paloma-logo.svg",height:40,width:197,className:"md:mb-0 mb-6"})}),(0,d.jsxs)("div",{className:"flex items-center flex-row gap-4",children:[(0,d.jsx)("a",{href:"https://blog.getpaloma.com/tag/case-studies/",children:(0,d.jsx)("h3",{className:"text-white",children:"Case Studies"})}),(0,d.jsx)("a",{href:"https://blog.getpaloma.com/",children:(0,d.jsx)("h3",{className:"text-white",children:"Blog"})}),(0,d.jsx)("button",{onClick:()=>l.push("/login"),type:"button",className:"border border-white rounded-md px-4 py-2.5 text-white font-bold",children:"Login"}),(0,d.jsx)("button",{onClick:()=>l.push("/signup"),type:"button",className:"rounded-md px-4 py-2.5 text-white bg-action-primary font-bold",children:"Signup"})]})]}),(0,d.jsxs)("div",{className:"mt-7 bg-white w-full h-full rounded flex flex-col-reverse md:flex-row items-center justify-center p-6 gap-5 md:gap-10",children:[(0,d.jsxs)("div",{className:"flex flex-col flex-shrink-0 items-center md:items-start",children:[(0,d.jsx)("div",{className:"text-6xl text-action-secondary md:text-left text-center",children:"Oh no!"}),(0,d.jsx)("div",{className:"text-action-secondary mt-2 md:text-left text-center",children:"We canât seem to find the page youâre looking for."}),(0,d.jsx)("div",{className:"text-action-secondary mt-2 md:text-left text-center",children:"Try again or use the button below to go home."}),(0,d.jsx)("a",{href:"https://getpaloma.com/",className:"mt-7 md:text-left text-center",children:(0,d.jsx)("button",{type:"button",className:"rounded-md px-4 py-2.5 text-white font-bold bg-action-primary",children:"Back to home"})})]}),(0,d.jsx)("div",{className:"hidden md:block w-full h-96 md:w-2/4 md:h-full",children:(0,d.jsx)("div",{className:"w-full h-full bg-contain bg-no-repeat bg-center",style:{backgroundImage:"url(/images/heros/404hero.svg)"}})})]})]})}},54970:(l,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>b});var d=i(74848),n=i(96540),s=i(97665),o=i(97286),t=i(86715),r=i(13368),a=i.n(r),u=i(29247),c=i(24186),v=i(48784),p=i(1186),m=i(13260),h=i(3991),x=i(9588),_=i(56492),f=i(47053),g=i(17775),y=i(14240);function b(){var l,e,i,r,b,j,N,w,S,A,C,k,E,q,U,z,T,K,V;let P=(0,t.useRouter)(),F=(0,s.jE)(),{custom_product_name:I,custom_price:L,conversation_id:B,organization_id:O,back_url:R}=null==P?void 0:P.query,{cartId:G}=P.query,[Q,W]=(0,n.useState)(!1),[M,X]=(0,n.useState)(!1),[Z,J]=(0,n.use
1State)(""),[D,H]=(0,n.useState)(""),[Y,$]=(0,n.useState)(""),[ll,le]=(0,n.useState)(""),[li,ld]=(0,n.useState)(null),[ln,ls]=(0,n.useState)(""),[lo,lt]=(0,n.useState)(""),[lr,la]=(0,n.useState)(""),[lu,lc]=(0,n.useState)(""),[lv,lp]=(0,n.useState)(""),[lm,lh]=(0,n.useState)(!1),[lx,l_]=(0,n.useState)(""),[lf,lg]=(0,n.useState)(!1),[ly,lb]=(0,n.useState)(!1),[lj,lN]=(0,n.useState)(!1),[lw,lS]=(0,n.useState)(!1),[lA,lC]=(0,n.useState)(!1),[lk,lE]=(0,n.useState)(!1),[lq,lU]=(0,n.useState)(!1),lz=!!(I&&L),{data:lT,error:lK,isError:lV}=(0,o.I)({queryKey:["get_buyer_cart",{id:G}],queryFn:()=>(0,y.A)("api/carts/".concat(G,"/buyer_cart"),{method:"GET"}),enabled:!!G&&!I,staleTime:0});(0,n.useEffect)(()=>{lV&&lU(lK)},[lV]);let{data:lP,error:lF,isError:lI}=(0,o.I)({queryKey:["get_invoice",{id:G}],queryFn:()=>(0,y.A)("api/carts/".concat(G,"/custom_product?custom_product_name=").concat(I,"&custom_price=").concat(L),{method:"GET"}),enabled:!!lz,staleTime:0});(0,n.useEffect)(()=>{lI&&lU(lF)},[lI]);let{data:lL}=(0,o.I)({queryKey:["get_unauthorized_organization",{id:(null==lT?void 0:null===(l=lT.cart)||void 0===l?void 0:l.organization_id)||O}],queryFn:()=>{var l;return(0,y.A)("api/organizations/".concat((null==lT?void 0:null===(l=lT.cart)||void 0===l?void 0:l.organization_id)||O),{method:"GET"})},enabled:!!((null==lT?void 0:null===(e=lT.cart)||void 0===e?void 0:e.organization_id)||O)}),lB=(null==lL?void 0:lL.location)!=="US"||!!lu,{data:lO}=(0,o.I)({queryKey:["get_stored_address",{id:null==lT?void 0:null===(i=lT.cart)||void 0===i?void 0:i.subscriber_id}],queryFn:()=>{var l;return(0,y.A)("api/subscribers/".concat(null==lT?void 0:null===(l=lT.cart)||void 0===l?void 0:l.subscriber_id,"/stored_address"),{method:"GET"})},enabled:!!(null==lT?void 0:null===(r=lT.cart)||void 0===r?void 0:r.subscriber_id)}),lR=(0,c.A)("api/carts/".concat(G,"/shipping_custom"),"put",null,{onSuccess:l=>{F.invalidateQueries({queryKey:["get_buyer_cart",{id:G}]}),J(""),lh(!1),window.location.href=null==l?void 0:l.url},onError:l=>{console.log("Error: ",l),lh(!1),J(l)}}),lG=(0,c.A)("api/carts/".concat(G,"/shipping"),"put",null,{onSuccess:l=>{F.invalidateQueries({queryKey:["get_buyer_cart",{id:G}]}),J(""),l.url?window.location.href=null==l?void 0:l.url:null==P||P.push("/carts/".concat(G,"/payment-method")),lh(!1)},onError:l=>{console.log("Error: ",l),lh(!1),J("There was an error checking out your cart. Please contact the seller for support.")}}),lQ=()=>{lz?lR.mutate({name:"".concat(D," ").concat(Y).trim()||null,address_city:(null==ll?void 0:ll.trim())||null,address_country:(null==li?void 0:li.trim())||null,address_line1:(null==ln?void 0:ln.trim())||null,address_line2:(null==lo?void 0:lo.trim())||null,address_line3:(null==lr?void 0:lr.trim())||null,address_state:(null==lu?void 0:lu.trim())||null,address_postal_code:lv,custom_product_name:I,custom_price:L,conversation_id:B,back_url:R,set_subscriber_address:lA,payment_method:null,requested_open_box:lw,open_box_duration:null==lL?void 0:lL.open_box_duration,send_as_gift:lk}):lG.mutate({back_url:R,set_subscriber_address:lA})},lW=(0,c.A)("api/carts/".concat(G,"/cart"),"PUT",F,{onSuccess:()=>{F.invalidateQueries({queryKey:["get_buyer_cart",{id:G}]}),lQ()}}),lM=(0,c.A)("api/verify_address","post",null,{onSuccess:l=>{var e,i,d,n,s,o,t,r,a,u,c;ln===(null==l?void 0:null===(i=l.address_matches)||void 0===i?void 0:null===(e=i[0])||void 0===e?void 0:e.street)&&ll===(null==l?void 0:null===(n=l.address_matches)||void 0===n?void 0:null===(d=n[0])||void 0===d?void 0:d.city)&&lu===(null==l?void 0:null===(o=l.address_matches)||void 0===o?void 0:null===(s=o[0])||void 0===s?void 0:s.state)&&lv===(null==l?void 0:null===(r=l.address_matches)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.zip)&&li===(null==l?void 0:null===(u=l.address_matches)||void 0===u?void 0:null===(a=u[0])||void 0===a?void 0:a.country)?(lh(!1),lz?lQ():lW.mutate({recipient_name:"".concat(D," ").concat(Y).trim()||null,shipping_address_city:(null==ll?void 0:ll.trim())||null,shipping_address_country:(null==li?void 0:li.trim())||null,shipping_address_line1:(null==ln?void 0:ln.trim())||null,shipping_address_line2:(null==lo?void 0:lo.trim())||null,shipping_address_line3:(null==lr?void 0:lr.trim())||null,shipping_address_state:(null==lu?void 0:lu.trim())||null,shipping_address_postal_code:(null==lv?void 0:lv.trim())||null,payment_method:null,requested_o
1pen_box:lw,open_box_duration:null==lL?void 0:lL.open_box_duration,send_as_gift:lk})):(lh(!0),l_(null==l?void 0:l.address_matches),J(!1),lg(null==l?void 0:null===(c=l.address_matches)||void 0===c?void 0:c[0]))},onError:l=>{J(l),l_("")}}),lX=(0,c.A)("api/subscribers/".concat(null==lT?void 0:null===(b=lT.cart)||void 0===b?void 0:b.subscriber_id,"/clear_saved_shipping"),"PUT",null,{});return((0,n.useEffect)(()=>{var l,e,i,d,n,s,o;null==lL||!lL.shipping_countries||(null==lT?void 0:null===(l=lT.cart)||void 0===l?void 0:l.shipping_address_country)||(null==lP?void 0:null===(e=lP.order)||void 0===e?void 0:e.address_country)||(null==lO?void 0:lO.shipping)||((null==lL?void 0:null===(i=lL.shipping_countries)||void 0===i?void 0:i.includes("US"))&&(null==lL?void 0:lL.location)==="US"?ld("US"):(null==lL?void 0:null===(d=lL.shipping_countries)||void 0===d?void 0:d.includes("UK"))&&(null==lL?void 0:lL.location)==="UK"?ld("UK"):ld(null==lL?void 0:null===(o=lL.shipping_countries)||void 0===o?void 0:null===(s=o.replace("{",""))||void 0===s?void 0:null===(n=s.replace("}",""))||void 0===n?void 0:n.split(",")[0]))},[null==lL?void 0:lL.location,null==lT?void 0:null===(j=lT.cart)||void 0===j?void 0:j.shipping_address_country,null==lP?void 0:null===(N=lP.order)||void 0===N?void 0:N.address_country,null==lO?void 0:lO.shipping]),(0,n.useEffect)(()=>{var l,e,i,d,n,s,o,t,r,a,u,c,v,p,m,h,x,_,f,g,y,b,j,N,w,S,A,C,k;if((null==lO?void 0:lO.shipping)&&lC(!0),null==lO||!lO.shipping||(null==lT?void 0:null===(l=lT.cart)||void 0===l?void 0:l.shipping_address_line1)||(null==lP?void 0:null===(e=lP.order)||void 0===e?void 0:e.address_line1)){if((null==lT?void 0:null===(i=lT.cart)||void 0===i?void 0:i.shipping_address_line1)||(null==lP?void 0:null===(d=lP.order)||void 0===d?void 0:d.address_line1)){let l=(null==lT?void 0:lT.cart)?null==lT?void 0:null===(v=lT.cart)||void 0===v?void 0:v.recipient_name:null==lP?void 0:null===(p=lP.order)||void 0===p?void 0:p.name,e=l?null==l?void 0:l.split(" ")[0]:"",i=l&&(null===(m=l.split(" "))||void 0===m?void 0:m.length)>1?l.split(" ")[1]:"";H(e),$(i),ls((null==lT?void 0:lT.cart)?null==lT?void 0:null===(h=lT.cart)||void 0===h?void 0:h.shipping_address_line1:null==lP?void 0:null===(x=lP.order)||void 0===x?void 0:x.address_line1),lt((null==lT?void 0:lT.cart)?null==lT?void 0:null===(_=lT.cart)||void 0===_?void 0:_.shipping_address_line2:null==lP?void 0:null===(f=lP.order)||void 0===f?void 0:f.address_line2),la((null==lT?void 0:lT.cart)?null==lT?void 0:null===(g=lT.cart)||void 0===g?void 0:g.shipping_address_line3:null==lP?void 0:null===(y=lP.order)||void 0===y?void 0:y.address_line3),le((null==lT?void 0:lT.cart)?null==lT?void 0:null===(b=lT.cart)||void 0===b?void 0:b.shipping_address_city:null==lP?void 0:null===(j=lP.order)||void 0===j?void 0:j.address_city),lc((null==lT?void 0:lT.cart)?null==lT?void 0:null===(N=lT.cart)||void 0===N?void 0:N.shipping_address_state:null==lP?void 0:null===(w=lP.order)||void 0===w?void 0:w.address_state),ld((null==lT?void 0:lT.cart)?null==lT?void 0:null===(S=lT.cart)||void 0===S?void 0:S.shipping_address_country:null==lP?void 0:null===(A=lP.order)||void 0===A?void 0:A.address_country),lp((null==lT?void 0:lT.cart)?null==lT?void 0:null===(C=lT.cart)||void 0===C?void 0:C.shipping_address_postal_code:null==lP?void 0:null===(k=lP.order)||void 0===k?void 0:k.address_postal_code)}}else{let l=JSON.parse(null==lO?void 0:lO.shipping);H(null==l?void 0:null===(r=l.name)||void 0===r?void 0:r.split(" ")[0]),$((null==l?void 0:null===(u=l.name)||void 0===u?void 0:null===(a=u.split(" "))||void 0===a?void 0:a.length)>1?null==l?void 0:null===(c=l.name)||void 0===c?void 0:c.split(" ")[1]:""),ls(null==l?void 0:l.line1),lt(null==l?void 0:l.line2),la(null==l?void 0:l.line3),le(null==l?void 0:l.city),lc(null==l?void 0:l.state),ld(null==l?void 0:l.country),lp(null==l?void 0:l.postal_code)}lS((null==lT?void 0:lT.cart)?null==lT?void 0:null===(n=lT.cart)||void 0===n?void 0:n.requested_open_box:null==lP?void 0:null===(s=lP.order)||void 0===s?void 0:s.requested_open_box),lE((null==lT?void 0:lT.cart)?null==lT?void 0:null===(o=lT.cart)||void 0===o?void 0:o.send_as_gift:null==lP?void 0:null===(t=lP.order)||void 0===t?void 0:t.send_as_gift)},[null==lO?void 0:lO.shipping.toString(),null==lT?void 0:null===(w=lT.cart)||void 0===w?void 0:w.toString(),null==lP?void 0:null===(S=lP.order)||void 0===S?void 0:S.toString()]),(0,n.useEffect)(()=>{W((null==lM?void 0:lM.status)==="pending"||(null==lG?void 0:lG.status)==="pending"||(null==lR?void 0:lR.status)==="pending")},[(null==lM?void 0:lM.status)==="pending",(null==lG?void 0:lG.status)==="pending",(null==lR?void 0:lR.status)==="pending"]),(0,n.useEffect)(()=>{lf&&lb(ln===(null==lf?void 0:lf.street)&&ll===(null==lf?void 0:lf.city)&&lu===(null==lf?void 0:lf.state)&&lv===(null==lf?void 0:lf.zip)&&li===(null==lf?void 0:lf.country)),lN(!1),lg()},[ln,ll,li,lu,lv,lf]),(0,n.useEffect)(()=>{(ly||lj)&&(lh(!1),lz?lQ():lW.mutate({recipient_name:"".concat(D," ").concat(Y).trim()||null,shipping_address_city:(null==ll?void 0:ll.trim())||null,shipping_address_country:(null==li?void 0:li.trim())||null,shipping_address_line1:(null==ln?void 0:ln.trim())||null,shipping_address_line2:(null==lo?void 0:lo.trim())||null,shipping_address_line3:(null==lr?void 0:lr.trim())||null,shipping_address_state:(null==lu?void 0:lu.trim())||null,shipping_address_postal_code:(null==lv?void 0:lv.trim())||null,payment_method:null,requested_o
1pen_box:lw,open_box_duration:null==lL?void 0:lL.open_box_duration,send_as_gift:lk}))},[ly,lj]),(0,n.useEffect)(()=>{"US"===li&&la("")},[li]),lq)?(0,d.jsx)(u.A,{}):lL&&((null==lT?void 0:lT.cart)||(null==lP?void 0:lP.order))?(0,d.jsx)(p.A,{footer:(0,d.jsxs)("div",{children:[Z&&(0,d.jsx)("div",{className:"w-full text-alert type-footnote md:text-center text-left p-4",style:{backgroundColor:"#F6EAEF"},children:Z}),(0,d.jsxs)("div",{className:"flex gap-3 flex-col-reverse justify-center md:flex-row w-full p-2 md:p-4 bg-white border-t border-gray-light md:border-none",children:[(0,d.jsx)(v.A,{isLoading:M,className:"button-secondary w-full md:max-w-xs",onClick:()=>(X(!0),G)?null==P?void 0:P.push("/carts/".concat(G,"/edit")):null==P?void 0:P.push(R),children:G?R?"Edit cart":"Back to cart":"Back"}),(0,d.jsx)(v.A,{disabled:"US"===li?M||!D||!Y||!ll||!li||!ln||!lv||!lB||!(null==lL?void 0:null===(E=lL.shipping_countries)||void 0===E?void 0:null===(k=E.replace("{",""))||void 0===k?void 0:null===(C=k.replace("}",""))||void 0===C?void 0:null===(A=C.split(","))||void 0===A?void 0:A.includes(li)):M||!D||!Y||!li||!ln||!(null==lL?void 0:null===(T=lL.shipping_countries)||void 0===T?void 0:null===(z=T.replace("{",""))||void 0===z?void 0:null===(U=z.replace("}",""))||void 0===U?void 0:null===(q=U.split(","))||void 0===q?void 0:q.includes(li)),isLoading:(null==lW?void 0:lW.status)==="pending"||Q,className:"button-primary w-full md:max-w-xs",onClick:()=>{"US"!==li||ly||lj?lz?lQ():lW.mutate({recipient_name:"".concat(D," ").concat(Y).trim()||null,shipping_address_city:(null==ll?void 0:ll.trim())||null,shipping_address_country:(null==li?void 0:li.trim())||null,shipping_address_line1:(null==ln?void 0:ln.trim())||null,shipping_address_line2:(null==lo?void 0:lo.trim())||null,shipping_address_line3:(null==lr?void 0:lr.trim())||null,shipping_address_state:(null==lu?void 0:lu.trim())||null,shipping_address_postal_code:(null==lv?void 0:lv.trim())||null,payment_method:null,requested_open_box:lw,open_box_duration:null==lL?void 0:lL.open_box_duration,send_as_gift:lk}):lM.mutate({street:ln,city:ll,state:lu,country:li,zip:lv})},children:"Continue to payment"})]})]}),children:(0,d.jsxs)("div",{className:"bg-white h-max pt-2 pb-8",children:[lm&&(0,d.jsx)(x.A,{currentAddress:{line1:ln,line2:lo,city:ll,state:lu,zip:lv,country:li},addressMatches:lx,setShowAddressValidationModal:lh,setAddressLine1:ls,setAddressLine2:lt,setAddressCity:le,setAddressState:lc,setAddressCountry:ld,setAddressZip:lp,setIsAddressVerified:lb,setVerifiedAddress:lg,setUseAsEntered:lN,isLoading:Q}),(0,d.jsx)(a(),{children:(0,d.jsx)("title",{children:"Shipping information - Paloma"})}),(0,d.jsxs)("div",{className:"w-full flex flex-col items-center text-center p-4 pb-0",children:[((null==lL?void 0:lL.logo)||(null==lL?void 0:lL.facebook_pic))&&(0,d.jsx)("div",{className:"rounded-full flex-shrink-0 cursor-pointer",style:{height:"70px",width:"70px",backgroundImage:"url(".concat((null==lL?void 0:lL.logo)||(null==lL?void 0:lL.facebook_pic),")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),(0,d.jsx)("h2",{className:"mt-4 text-gray",children:null==lL?void 0:lL.display_label}),(0,d.jsx)("h1",{className:"my-2",children:lz?"".concat(null==lL?void 0:lL.currency).concat(parseFloat(L/100).toFixed(2)):null==lT?void 0:null===(K=lT.cart)||void 0===K?void 0:K.total}),(0,d.jsx)("span",{className:"type-footnote mb-2 text-gray",children:"Taxes may be applied at the next step"})]}),(0,d.jsx)("div",{className:"flex justify-center mt-4",children:(0,d.jsx)("div",{className:"w-full flex flex-col max-w-160 px-4",children:(0,d.jsxs)("form",{children:[(0,d.jsxs)("div",{className:"py-4",children:[(0,d.jsx)("h2",{className:"font-light",children:"Customer information"}),(0,d.jsx)("p",{className:"text-sm mb-4",children:(null==lL?void 0:null===(V=lL.fulfillment_type)||void 0===V?void 0:V.includes("pickup"))?"Enter the address to be used for Taxes and/or Shipping. Pickup will be available to select at the next step.":"Enter the address to be used for Taxes and/or Shipping."}),(null==lL?void 0:lL.enable_gift_recipients)&&(0,d.jsxs)("div",{className:"w-full mt-2.5 flex gap-4",children:[(0,d.jsx)("p",{className:"font-bold",children:"Send as a gift"}),(0,d.jsx)(_.A,{flag:lk,onToggle:lE})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(m.A,{name:"name",title:"First name",className:"mb-2.5",value:D,setValue:H,required:!0,autoComplete:"given-name"}),(0,d.jsx)(m.A,{name:"name",title:"Last name",className:"mb-2.5",value:Y,setValue:$,required:!0,autoComplete:"family-name"}),(0,d.jsxs)("div",{className:"mb-5 w-full",children:[(0,d.jsxs)("div",{className:"flex justify-between items-end mb-2.5",children:[(0,d.jsx)("h3",{children:"Country"}),(0,d.jsx)("div",{className:"type-details text-gray-dark mb-1",children:"Required"})]}),(0,d.jsx)(f.A,{required:!0,placeholder:"Select country",className:"w-full",value:li,setValue:l=>{"US"===l&&la(""),ld(l)},options:(null==lL?void 0:lL.shipping_countries)?null==lL?void 0:lL.shipping_countries.replace("{","").replace("}","").split(",").sort().map(l=>({value:l,label:g.xp[l]})):[],autoComplete:"country"})]}),(0,d.jsx)(m.A,{name:"address-line1",title:"Address 1",className:"mb-2.5",value:ln,setValue:ls,required:!0,autoComplete:"address-line1"}),(0,d.jsx)(m.A,{name:"address-line2",title:"Address 2",className:"mb-2.5",value:lo,setValue:lt,autoComplete:"address-line2"}),"US"!==li&&(0,d.jsx)(m.A,{name:"address-line3",title:"Address 3",className:"mb-2.5",value:lr,setValue:la,autoComplete:"address-line3"}),(0,d.jsx)(m.A,{name:"city",title:"US"===li?"City":"City/Town",className:"mb-2.5",value:ll,setValue:le,required:"US"===li,autoComplete:"address-level2"}),(null==lL?void 0:lL.location)!=="UK"&&(0,d.jsx)(m.A,{name:"address-level1",title:"US"===li?"State":"State/Province/Region",className:"mb-2.5",value:lu,setValue:lc,required:"US"===li,autoComplete:"address-level1"}),(0,d.jsx)(m.A,{name:"postal-code",title:(null==lL?void 0:lL.location)==="UK"||"US"!==li?"Postal code":"Zip code",className:"mb-2.5",value:lv,setValue:lp,required:"US"===li,autoComplete:"postal-code"}),(null==lL?void 0:lL.offer_open_boxes)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h3",{className:"mt-6",children:"Keep your box open?"}),(0,d.jsxs)("p",{className:"mb-2.5",children:["Boxes can be kept open for up to"," ",null==lL?void 0:lL.open_box_duration," days, helping you save on shipping costs."]}),(0,d.jsx)("div",{className:"mb-5 w-full",children:(0,d.jsx)(f.A,{required:!0,subtit:!0,className:"w-full",value:lw,setValue:l=>lS("true"===l),options:[{value:!1,label:"Closed"},{value:!0,label:"Open"}]})})]}),(0,d.jsx)("div",{className:"w-full mt-6",children:(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("p",{className:"font-bold max-w-sm",children:"Save your shipping information for faster checkouts on future purchases?"}),(0,d.jsx)(_.A,{flag:lA,onToggle:l=>{lC(l),!1===l&&lX.mutate()}})]})})]})]})})})]})}):(0,d.jsx)("div",{className:"w-screen h-screen bg-gray-light p-9 flex flex-col",children:(0,d.jsx)(h.A,{className:"w-8 h-8 text-action-primary m-auto"})})}}},l=>{var e=e=>l(l.s=e);l.O(0,[636,6593,8792],()=>e(43458)),_N_E=l.O()}]);
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.