1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{1668:(e,t,a)=>{Promise.resolve().then(a.bind(a,70064)),Promise.resolve().then(a.bind(a,55074)),Promise.resolve().then(a.bind(a,5908)),Promise.resolve().then(a.bind(a,44687)),Promise.resolve().then(a.bind(a,84704)),Promise.resolve().then(a.bind(a,37930)),Promise.resolve().then(a.bind(a,15267)),Promise.resolve().then(a.bind(a,32464)),Promise.resolve().then(a.bind(a,6277)),Promise.resolve().then(a.bind(a,11055)),Promise.resolve().then(a.bind(a,55853))},50809:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(95155),r=a(52659);let i=e=>{let{title:t,description:a,link:i,buttonTitle:l,onClick:n,withButton:o=!0}=e;return(0,s.jsx)("div",{className:"flex flex-col h-full mt-[10%] items-center justify-center section-padding",children:(0,s.jsxs)("div",{className:"max-w-[448px] mx-auto",children:[(0,s.jsx)("h3",{className:"heading-2 text-center",children:t}),(0,s.jsx)("p",{className:"mt-6 text-center text-sans-m max-md:text-sans-s",children:a}),o&&(0,s.jsx)("div",{className:"flex gap-2 mt-10 items-center justify-center",children:(0,s.jsx)(r.default,{href:i,className:"max-w-[176px] text-center hover:opacity-100 caption pt-4 pb-3.5 rounded-full w-full border border-black-25 hover:border-black transition-colors duration-300",onClick:n,children:l})})]})})}},37193:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);let r=e=>{let{className:t,...a}=e;return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:t,...a,children:[(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",stroke:"currentColor"}),(0,s.jsx)("path",{d:"M4 8L7 11L12 4",stroke:"currentColor",strokeWidth:"1.2"})]})}},45509:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);let r=e=>{let{className:t,...a}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:t,...a,children:(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.5"})})}},67205:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);let r=e=>{let{className:t,...a}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...a,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8.00004 8.70711L12.6465 13.3536L13.3536 12.6465L8.70715 8.00001L13.3536 3.35356L12.6465 2.64645L8.00004 7.2929L3.35359 2.64645L2.64648 3.35356L7.29293 8.00001L2.64648 12.6465L3.35359 13.3536L8.00004 8.70711Z",className:t,fill:"currentColor"})})}},61401:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);let r=e=>{let{className:t,classStroke:a,classFill:r,...i}=e;return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...i,className:t,children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2021_8669)",children:[(0,s.jsx)("path",{d:"M8 14.2929L2.20917 8.50206C0.827317 7.12021 0.827318 4.87979 2.20917 3.49794C3.51658 2.19052 5.61018 2.11012 7.01402 3.31341L7.6746 3.87963L8 4.15854L8.3254 3.87963L8.98598 3.31341C10.3898 2.11012 12.4834 2.19052 13.7908 3.49794C15.1727 4.87979 15.1727 7.12021 13.7908 8.50206L8 14.2929Z",stroke:"#121719",className:a}),(0,s.jsx)("path",{d:"M8 15.5L1.85561 9.35561C0.278501 7.7785 0.278502 5.2215 1.85561 3.64439C3.34777 2.15223 5.7372 2.06046 7.33941 3.43378L8 4L8.66059 3.43378C10.2628 2.06046 12.6522 2.15223 14.1444 3.64439C15.7215 5.2215 15.7215 7.7785 14.1444 9.35561L8 15.5Z",fill:"#121719",className:r})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2021_8669",children:(0,s.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}},52484:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);let r=e=>{let{className:t,...a}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1295 181",fill:"none",preserveAspectRatio:"xMinYMin meet",className:t,...a,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384.933 29.6513L353.957 4.2987C334.292 8.37773 328.524 20.5889 328.524 30.4961C328.524 43.1681 335.013 52.0001 358.245 73.8497C384.933 98.4641 397.029 116.397 397.029 133.139C397.029 156.333 376.562 180.487 341.311 180.487C329.1 180.487 316.773 178.912 302.028 172V145.389L340.652 176.756C365.272 171.792 375.295 155.603 375.295 142.01C375.295 128.877 369.266 119.123 344.421 95.6609C322.802 76.3457 307.941 57.9521 307.941 40.0577C307.941 16.6337 328.409 0.313721 355.365 0.313721C368.268 0.313721 375.948 3.53932 384.933 8.37773V29.6513ZM1282.53 29.6513L1251.56 4.2987C1231.89 8.37773 1226.12 20.5889 1226.12 30.4961C1226.12 43.1681 1232.61 52.0001 1255.85 73.8497C1282.53 98.4641 1294.63 116.397 1294.63 133.139C1294.63 156.333 1274.16 180.487 1238.91 180.487C1226.7 180.487 1214.37 178.912 1199.63 172V145.389L1238.25 176.756C1262.87 171.792 1272.89 155.603 1272.89 142.01C1272.89 128.877 1266.87 119.123 1242.02 95.6609C1220.4 76.3457 1205.54 57.9521 1205.54 40.0577C1205.54 16.6337 1226.01 0.313721 1252.97 0.313721C1265.87 0.313721 1273.55 3.53932 1282.53 8.37773V29.6513ZM1013.48 4.2987L1044.45 29.6513V8.37773C1035.47 3.53932 1027.79 0.313721 1014.89 0.313721C987.929 0.313721 967.461 16.6337 967.461 40.0577C967.461 57.9521 982.322 76.3457 1003.94 95.6609C1028.79 119.123 1034.82 128.877 1034.82 142.01C1034.82 155.603 1024.79 171.792 1000.17 176.756L961.548 145.389V172C976.293 178.912 988.62 180.487 1000.83 180.487C1036.08 180.487 1056.55 156.333 1056.55 133.139C1056.55 116.397 1044.45 98.4641 1017.77 73.8497C994.533 52.0001 988.044 43.1681 988.044 30.4961C988.044 20.5889 993.8
112 8.37773 1013.48 4.2987ZM914.469 176.8V159.558L843.179 173.382V82.1056H891.467V76.3456H843.179V7.47162L897.918 20.7808V3.99996H812.767L817.087 18.976L818.527 32.8V148L817.087 161.824L812.767 176.8L914.469 176.8ZM237.761 3.99996H203.52L207.84 18.976L208.309 23.476V157.324L207.84 161.824L203.52 176.8H237.761L233.441 161.824L232.962 157.219V23.581L233.441 18.976L237.761 3.99996ZM1108.52 3.99996H1144.68L1140.36 18.976L1138.92 32.7475V148.052L1140.36 161.824L1144.68 176.8L1138.92 176.8L1138.92 176.8H1114.28L1114.27 176.8L1108.52 176.8L1112.84 161.824L1114.27 148.054V32.746L1112.84 18.976L1108.52 3.99996ZM484.436 161.824L480.116 176.8H515.951L511.631 161.824L510.214 148.217V8.03197L556.678 25.1584V3.99996H439.328V25.1584L485.792 8.03197V148.814L484.436 161.824ZM13.44 176.8L13.4402 176.798H16.3716L16.3709 176.8H26.9309L27.8025 161.882L29.3111 153.003L42.3153 109.293H95.4739L117.883 162.813L118.966 176.8L123.507 176.8L123.515 176.8H150.904L143.704 161.824L141.308 156.517L89.1713 31.5884L85.23 18.976L83.79 3.99996H50.0737L57.2737 18.976L62.5901 30.7538L63.5811 33.1214L63.5597 33.1697L63.54 33.1234L14.5423 152.969L9.93044 161.824L0.959961 176.8H13.44ZM44.0506 103.533H93.0622L66.3168 39.6552L66.2519 39.8178L44.0506 103.533ZM725.051 3.97749H719.291L723.611 18.9535L724.957 31.882V148.328L723.552 161.824L719.232 176.8H724.957V176.884H749.917V176.8H755.583L751.263 161.824L749.917 148.909V31.8905L751.263 18.9755L755.583 3.99953H749.823V4.0839H725.051V3.97749ZM641.761 18.9755L640.477 31.301V149.498L641.761 161.824L646.081 176.8H640.477V176.884H615.517V176.8H609.757L614.077 161.824L615.517 148V32.7995L614.077 18.9755L609.757 3.99953H615.517V4.0839H640.321V3.99953H646.081L641.761 18.9755ZM657.6 101.19V85.4464L708.979 76V91.9744L657.6 101.19Z",fill:"currentColor"})})}},83652:(e,t,a)=>{"use strict";a.d(t,{r:()=>s});let s={default:{active:{backgroundColor:"var(--emerald)",color:"var(--white)",borderColor:"var(--emerald)"},inactive:{backgroundColor:"var(--white)",color:"var(--black)",borderColor:"var(--black-25)"}},slateDark:{active:{backgroundColor:"var(--white)",color:"var(--black)",borderColor:"var(--white)"},inactive:{backgroundColor:"var(--slate-dark)",color:"var(--white)",borderColor:"var(--white-25)"}},grayLight:{active:{backgroundColor:"var(--black)",color:"var(--gray-light)",borderColor:"var(--black)"},inactive:{backgroundColor:"var(--gray-light)",color:"var(--black)",borderColor:"var(--black-25)"}}}},83230:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(95155),r=a(68201),i=a(66494),l=a(43463),n=a(83652),o=a(12115),c=a(6001),d=a(94928),m=a(87475),x=a(67205),u=a(19124);let h=e=>{let{id:t,price:a,size:h="small",color:p="default",plain:f=!1,isActive:v=!0,isArtworkPage:L=!1}=e,[w,g]=(0,o.useState)(!1),[b,j]=(0,d.fp)(m.ix);(0,o.useEffect)(()=>{g(b.includes(t))},[b,t]);let N=()=>{j(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])};return f?(0,s.jsx)(r.P.button,{initial:!1,animate:w?"active":"inactive",whileHover:{borderColor:"slateDark"===p?"var(--white)":"var(--black)"},transition:{duration:.2},className:(0,l.A)("caption grid w-8 h-8 cursor-pointer place-items-center rounded-[24px] border whitespace-nowrap select-none"),onClick:N,children:(0,s.jsx)(x.A,{})}):(0,s.jsxs)("div",{className:"flex items-center content-start max-w-max\n gap-2 max-md:flex-col flex-wrap max-md:items-start ".concat(L?"":"max-md:mt-[-10px]"),children:[!L&&(0,s.jsxs)("span",{className:"caption whitespace-nowrap",children:["\xa3 ",(0,c.u)(a)]}),(0,s.jsx)(r.P.button,{initial:!1,animate:v?w?"active":"inactive":void 0,whileHover:{borderColor:v?"slateDark"===p?"var(--white)":"var(--black)":void 0},variants:n.r[p],transition:{duration:.2},className:(0,l.A)("caption grid place-items-center rounded-[24px] border whitespace-nowrap select-none",{"pt-4 pb-3.5 px-5 w-[125px]":"large"===h,"px-3 pb-1.5 pt-2 w-[108px]":"small"===h,"cursor-default":!v,"cursor-pointer":v}),disabled:!v,onClick:N,children:(0,s.jsx)(i.N,{mode:"wait",children:v?w?(0,s.jsx)(r.P.span,{initial:{opacity:0,y:-3},animate:{opacity:1,y:0},exit:{opacity:0,y:3},transition:{duration:.3,ease:u.lN},className:"inline-block",children:"IN THE CART"},"in-the-cart"):(0,s.jsx)(r.P.span,{initial:{opacity:0,y:-3}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:3},transition:{duration:.2,ease:u.lN},className:"inline-block",children:"ADD TO CART"},"add-to-cart"):"SOLD"})})]})}},7912:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(95155),r=a(71714);let i=e=>{let{onClick:t,className:a,onMouseEnter:i,onMouseLeave:l,style:n}=e;return(0,s.jsx)(r.P.button,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:n,className:"fixed top-6 max-md:top-4 right-6 max-md:right-4 text-sans-l max-md:text-sans-s select-none transition-opacity duration-500 hover:opacity-70 ".concat(a),onClick:t,onMouseEnter:i,onMouseLeave:l,children:"Close"})}},99446:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(95155),r=a(61401),i=a(68201),l=a(83652),n=a(12115),o=a(43463),c=a(87475),d=a(75828);let m=(0,d.createServerReference)("7f2df3201a3d92025e3da5b157e208de3197f6fe64",d.callServer,void 0,d.findSourceMapURL,"favoritesProductToggle");var x=a(94928),u=a(90696);let h=e=>{let{id:t,category:a,color:d="default",size:h="small",className:p}=e,[f,v]=(0,n.useState)(!1),L=(0,x.Xr)(c.kw),[w,g]=(0,x.fp)(c.xL),b=(0,u.wV)();(0,n.useEffect)(()=>{var e,s;"artist"===a&&"authenticated"===b.status&&v((null==w?void 0:null===(e=w.artist)||void 0===e?void 0:e.includes(t))||!1),"artwork"===a&&"authenticated"===b.status&&v((null==w?void 0:null===(s=w.artwork)||void 0===s?void 0:s.includes(t))||!1)},[w]);let j=async()=>{let e;g(s=>{var r,i;return e={...s,..."artist"===a?{artist:(null==s?void 0:null===(r=s.artist)||void 0===r?void 0:r.includes(t))?s.artist.filter(e=>e!==t):[...s.artist||[],t]}:{artwork:(null==s?void 0:null===(i=s.artwork)||void 0===i?void 0:i.includes(t))?s.artwork.filter(e=>e!==t):[...s.artwork||[],t]}}}),await m(e,a),"unauthenticated"===b.status&&L(!0)};return(0,s.jsx)(i.P.button,{initial:!1,animate:f?"active":"inactive",variants:l.r[d],whileHover:{borderColor:"slateDark"===d?"var(--white)":"var(--black)"},transition:{duration:.2},className:(0,o.A)("relative grid cursor-pointer shrink-0 place-items-center rounded-full border select-none",{"border-white-25":"slateDark"===d,"border-black-25":"grayLight"===d,"size-8":"small"===h,"size-12":"large"===h},p),onClick:()=>j(),children:(0,s.jsx)(r.A,{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",classFill:(0,o.A)("transition-opacity duration-200",{"fill-white":"default"===d,"fill-brand-slate-dark":"slateDark"===d,"fill-gray-light ":"grayLight"===d,"opacity-100":f,"opacity-0":!f}),classStroke:(0,o.A)("transition-opacity duration-200",{"stroke-black":"default"===d||"grayLight"===d,"stroke-white":"slateDark"===d})})})}},40558:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(95155),r=a(61401),i=a(68201),l=a(83652),n=a(43463),o=a(87475),c=a(75828);let d=(0,c.createServerReference)("7f4f586901311bf1ebc915f76360e7ad46c80cdb16",c.callServer,void 0,c.findSourceMapURL,"favoritesGiftCardToggle");var m=a(94928),x=a(90696);let u=e=>{let{color:t="default",size:a="small",className:c}=e,[u,h]=(0,m.fp)(o.CK),p=(0,m.Xr)(o.kw),f=(0,x.wV)(),v=async()=>{if(h(e=>!e),"unauthenticated"===f.status){p(!0),h(!1);return}await d()};return(0,s.jsx)(i.P.button,{initial:!1,animate:u?"active":"inactive",variants:l.r[t],whileHover:{borderColor:"slateDark"===t?"var(--white)":"var(--black)"},transition:{duration:.2},className:(0,n.A)("relative grid cursor-pointer shrink-0 place-items-center rounded-full border select-none",{"border-white-25":"slateDark"===t,"border-black-25":"grayLight"===t,"size-8":"small"===a,"size-12":"large"===a},c),onClick:()=>v(),children:(0,s.jsx)(r.A,{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",classFill:(0,n.A)("transition-opacity duration-200",{"fill-white":"default"===t,"fill-brand-slate-dark":"slateDark"===t,"fill-gray-light ":"grayLight"===t,"opacity-100":u,"opacity-0":!u}),classStroke:(0,n.A)("transition-opacity duration-200",{"stroke-black":"default"===t||"grayLight"===t,"stroke-white":"slateDark"===t})})})}},19323:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(95155),r=a(48173),i=a.n(r);let l=e=>{let{className:t}=e;return(0,s.jsxs)("p",{className:"text-sans-s text-black-50 text-center ".concat(t),children:["This site is protected by reCAPTCHA, and the Google ",(0,s.jsx)(i(),{href:"https://policies.google.com/privacy",target:"_blank",className:"underline",children:"Privacy Policy"})," and ",(0,s.jsx)(i(),{href:"https://policies.google.com/terms",target:"_blank",className:"underline",children:"Terms of Service"})," apply."]})}},959:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155);a(12115);let r=e=>{let{id:t,name:a,label:r,type:i="text",placeholder:l=" ",error:n,defaultValue:o,autocomplete:c,value:d,onChange:m,onFocusSelect:x=!1}=e;return(0,s.jsxs)("div",{className:"auth relative w-full",children:[n?(0,s.jsx)("p",{className:"text-alert text-sans-s absolute top-[-1px] left-0",children:n}):(0,s.jsx)("label",{htmlFor:t,className:"absolute top-[55%] left-0 -translate-y-1/2 text-sans-l max-md:text-sans-m text-black-50 transition-all duration-300 ease-in-out origin-top-left pointer-events-none select-none",children:r}),(0,s.jsx)("div",{className:"input-container h-14 max-md:h-[52px] flex items-end pb-[11px] w-full border-b border-black-25 text-black",children:(0,s.jsx)("input",{name:a,defaultValue:o,type:i,id:t,value:d,placeholder:l,autoComplete:c||void 0,onChange:m,onFocus:x?e=>e.target.select():void 0,className:"w-full bg-transparent border-solid rounded-none focus-visible:border-b-black outline-none transition-colors duration-300 font-roman text-serif-l max-md:text-serif-m"},a)})]})}},84704:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var s=a(12115),r=a(76046),i=a(5908);let l=()=>{let e=(0,r.usePathname)(),t=(0,i.xP)();return(0,s.useEffect)(()=>{t&&"/"!==e&&t.scrollTo(0)},[e,t]),null}},37930:(e,t,a)=>{"use strict";a.d(t,{default:()=>U});var s=a(95155),r=a(12115),i=a(68201),l=a(66494),n=a(7912),o=a(87475),c=a(94928),d=a(19124),m=a(43439),x=a(40714);let u=async e=>{let t=(0,m.E)('\n *[_type == "work" && isActive && _id in $ids] {\n ...,\n "artistReference": artistReference->{...}\n }\n');try{return await x.v.fetch(t,{ids:e})||[]}catch(e){return console.error("Error fetching artworks by IDs:",e),[]}};var h=a(5565),p=a(35301),f=a(99446),v=a(83230),L=a(6001),w=a(50596),g=a(959),b=a(4017),j=a(64417),N=a(90757),y=a(75828);
1let C=(0,y.createServerReference)("7e3197cba3fc990b6890903d2ec5cb464bcf926c7b",y.callServer,void 0,y.findSourceMapURL,"orderFromCart");var k=a(47650),P=a(48173),V=a.n(P),A=a(37193),S=a(45509),H=a(26474),_=a(19323),M=a(43463);let E=e=>{let{isActive:t,setIsClicked:a}=e,{pending:r}=(0,k.useFormStatus)();return(0,s.jsx)(i.P.button,{whileTap:{x:t?[-5,5,-5,5,0]:0},onTap:a,className:"caption pt-4 pb-3.5 rounded-full w-[126px] border border-black-25 hover:border-black transition-colors duration-300 disabled:cursor-pointer",disabled:r||t,children:r?"Sending...":"Send Inquiry"})},q=e=>{var t,a,i,l,n;let{user:d,products:m,setIsOrdered:x,totalPrice:u}=e,[h,p]=(0,r.useState)(!1),f=(0,c.md)(o.SW),[v,L]=(0,r.useState)(!1),[y,k]=(0,r.useActionState)(z,void 0),[P,q]=(0,b.mN)({lastResult:y,onValidate(e){let{formData:t}=e;return(0,j.L)(t,{schema:N.qV})},shouldValidate:"onSubmit",shouldRevalidate:"onInput"});async function z(e,t){let a=await (0,H.y)("order"),s=await C(y,t,a,m,f,u);return s.success?(P.reset(),x(!0)):console.log(s.message),s}let T=null==d?void 0:null===(t=d.name)||void 0===t?void 0:t.split(" ")[0],Z=null==d?void 0:null===(a=d.name)||void 0===a?void 0:a.split(" ")[1],R=null==d?void 0:d.email;return(0,s.jsxs)("form",{id:P.id,onSubmit:P.onSubmit,action:k,className:"flex flex-col gap-6 w-full",children:[(0,s.jsxs)("div",{className:"flex gap-6",children:[(0,s.jsx)(g.A,{id:"firstName",name:q.firstName.name,label:"First Name",type:"text",placeholder:" ",error:null===(i=q.firstName.errors)||void 0===i?void 0:i.join(", "),defaultValue:d?T:q.firstName.initialValue}),(0,s.jsx)(g.A,{id:"lastName",name:q.lastName.name,label:"Last Name",type:"text",placeholder:" ",error:null===(l=q.lastName.errors)||void 0===l?void 0:l.join(", "),defaultValue:d?Z:q.lastName.initialValue})]}),(0,s.jsx)(g.A,{id:"email",name:q.email.name,label:"Email",type:"email",placeholder:" ",error:null===(n=q.email.errors)||void 0===n?void 0:n.join(", "),defaultValue:d?R:q.email.initialValue}),(0,s.jsxs)("div",{className:"flex flex-col items-center mt-4 max-md:mt-2",children:[(0,s.jsx)(E,{isActive:!h,setIsClicked:()=>L(!0)}),(0,s.jsxs)("div",{className:"flex gap-2 cursor-pointer text-sans-s mt-6",onClick:e=>{"A"===e.target.tagName?e.stopPropagation():p(!h)},children:[(0,s.jsx)("div",{className:(0,M.A)("flex items-center justify-center transition-all",{"text-alert":v&&!h,"text-black":v&&h}),children:h?(0,s.jsx)(A.A,{}):(0,s.jsx)(S.A,{})}),(0,s.jsxs)("p",{className:(0,M.A)("select-none",{"text-alert":v&&!h,"text-black":v&&h}),children:["I agree with ",(0,s.jsx)(V(),{href:(0,w.FD)(),className:"underline",target:"_blank",rel:"noopener noreferrer",children:"Terms and Conditions"})]}),(0,s.jsx)("input",{type:"checkbox",id:"terms",checked:h,onChange:()=>{},className:"hidden"})]}),(0,s.jsx)(_.A,{className:"mt-4"}),(0,s.jsx)("p",{className:"text-center text-sans-s max-w-[330px]"})]})]})};var z=a(40558),T=a(67205);let Z=e=>{let{id:t,color:a="default",active:r=!0}=e,l=(0,c.Xr)(o.SW);return(0,s.jsx)(i.P.button,{initial:!1,animate:r?"active":"inactive",whileHover:{borderColor:"slateDark"===a?"var(--white)":"var(--black)"},transition:{duration:.2},className:(0,M.A)("caption grid w-8 h-8 cursor-pointer place-items-center rounded-[24px] border whitespace-nowrap select-none"),onClick:()=>{l(e=>e.filter(e=>e.id!==t))},children:(0,s.jsx)(T.A,{})})};var R=a(52659);let I=i.P.create(e=>{let{...t}=e;return(0,s.jsx)("div",{style:{width:"100%",height:"auto",aspectRatio:"3 / 2"},className:"flex items-center justify-center bg-gray-light-50",children:(0,s.jsxs)("svg",{viewBox:"0 0 566 358",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_3022_4476)",children:[(0,s.jsx)("path",{d:"M0 -9.15527e-05H566V357.808H0V-9.15527e-05Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M174.188 47.5227C159.141 91.1266 136.262 97.3365 106.613 87.1047C76.9635 76.8729 62.7839 57.8743 77.8314 14.2705C92.8789 -29.3333 115.758 -35.5432 145.407 -25.3115C175.056 -15.0797 189.236 3.91888 174.188 47.5227Z",fill:"white"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M89.8501 63.3481L92.6391 56.5527L94.7497 52.6638L107.678 34.3952L131.876 42.7456L133.493 71.1355L131.744 77.8053L146.281 82.8221L145.405 74.732L145.166 71.8898L141.467 5.64758L141.696 -0.832327L143.442 -8.01763L109.753 -19.6433L106.29 -9.60616L128.405 -10.3778L128.97 -5.22379L129.573 2.34013L129.556 2.35922L129.554 2.33462L88.0325 50.3282L84.5132 53.7185L78.0284 59.2685L89.8501 63.3481ZM109.392 31.9912L131.701 39.6901L129.771 5.80604L129.715 5.87137L109.392 31.9912Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M166.513 11.1764L147.71 -4.64387L148.296 -6.34247L169.976 1.13928L166.513 11.1764Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M206.195 292.634L272.337 256.608L312.465 302.46L329.22 361.043L263.078 397.069L222.95 351.217L206.195 292.634Z",fill:"white"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M267.302 375.423L264.163 368.782L262.713 364.602L257.935 342.737L280.414 330.493L302.474 348.436L306.221 354.224L319.727 346.868L313.161 342.062L310.9 340.323L259.478 298.401L254.845 293.864L250.715 287.73L219.418 304.777L224.497 314.102L238.835 297.246L243.023 300.303L249.017 304.957L249.019 304.982L249 304.967L256.46 367.989L256.592 372.874L256.32 381.405L267.302 375.423ZM257.314 339.851L278.04 328.562L251.71 307.147L251.721 307.232L257.314 339.851Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M280.444 283.628L256.084 286.852L255.224 285.274L275.365 274.304L280.444 283.628Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M561.955 194.319L520.452 165.216L503.925 180.703L494.741 178.789L478.99 155.523L484.168 130.68L484.754 127.758L491.2 96.9476L514.934 81.913L524.119 83.8275L533.081 104.628L582.755 94.5309L608.554 116.618L605.988 128.925L584.221 143.293L583.488 146.746L582.78 150.204L596.994 172.071L594.429 184.379L561.955 194.319Z",fill:"white"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M580.045 170.131L572.952 168.223L568.827 166.622L549.071 156.107L554.294 131.048L582.252 125.853L589.089 126.745L592.227 111.69L584.313 113.582L581.524 114.179L516.281 126.224L509.824 126.817L502.476 125.993L495.203 160.882L505.598 163.048L502.036 141.208L507.077 139.995L514.504 138.441L514.525 138.456L514.501 138.461L567.36 173.58L571.168 176.642L577.493 182.373L580.045 170.131ZM546.469 154.711L551.285 131.607L517.917 137.807L517.989 137.854L546.469 154.711Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M518.599 100.681L505.283 121.333L503.524 120.966L508.204 98.5141L518.599 100.681Z",fill:"#121719"}),(0,s.jsx)("path",{d:"M244.015 169.771L239.427 166.044C236.514 166.644 235.66 168.439 235.66 169.896C235.66 171.759 236.621 173.057 240.062 176.27C244.015 179.889 245.807 182.525 245.807 184.987C245.807 188.397 242.775 191.948 237.554 191.948C235.745 191.948 233.92 191.717 231.736 190.701V186.788L237.456 191.4C241.103 190.67 242.588 188.29 242.588 186.291C242.588 184.36 241.695 182.926 238.015 179.477C234.813 176.637 232.612 173.932 232.612 171.301C232.612 167.857 235.643 165.458 239.636 165.458C241.547 165.458 242.684 165.932 244.015 166.644V169.771Z",fill:"white"}),(0,s.jsx)("path",{d:"M376.965 169.771L372.377 166.044C369.464 166.644 368.61 168.439 368.61 169.896C368.61 171.759 369.571 173.057 373.012 176.27C376.965 179.889 378.757 182.525 378.757 184.987C378.757 188.397 375.725 191.948 370.504 191.948C368.695 191.948 366.87 191.717 364.686 190.701V186.788L370.406 191.4C374.053 190.67 375.538 188.29 375.538 186.291C375.538 184.36 374.645 182.926 370.965 179.477C367.763 176.637 365.562 173.932 365.562 171.301C365.562 167.857 368.593 165.458 372.586 165.458C374.497 165.458 375.634 165.932 376.965 166.644V169.771Z",fill:"white"}),(0,s.jsx)("path",{d:"M337.114 166.044L341.702 169.771V166.644C340.371 165.932 339.233 165.458 337.322 165.458C333.329 165.458 330.298 167.857 330.298 171.301C330.298 173.932 332.499 176.637 335.701 179.477C339.381 182.926 340.274 184.36 340.274 186.291C340.274 188.29 338.79 190.67 335.
1143 191.4L329.422 186.788V190.701C331.606 191.717 333.432 191.948 335.24 191.948C340.462 191.948 343.493 188.397 343.493 184.987C343.493 182.525 341.702 179.889 337.749 176.27C334.308 173.057 333.346 171.759 333.346 169.896C333.346 168.439 334.201 166.644 337.114 166.044Z",fill:"white"}),(0,s.jsx)("path",{d:"M322.449 191.406V188.871L311.889 190.904V177.484H319.042V176.637H311.889V166.51L319.997 168.467V166H307.385L308.025 168.202L308.238 170.234V187.172L308.025 189.204L307.385 191.406H322.449Z",fill:"white"}),(0,s.jsx)("path",{d:"M222.217 166H217.145L217.785 168.202L217.854 168.863V188.543L217.785 189.204L217.145 191.406H222.217L221.577 189.204L221.506 188.527V168.879L221.577 168.202L222.217 166Z",fill:"white"}),(0,s.jsx)("path",{d:"M351.19 166H356.547L355.907 168.202L355.694 170.227V187.18L355.907 189.204L356.547 191.406H351.19L351.83 189.204L352.043 187.18V170.226L351.83 168.202L351.19 166Z",fill:"white"}),(0,s.jsx)("path",{d:"M258.753 189.204L258.114 191.406H263.421L262.781 189.204L262.572 187.204V166.593L269.454 169.111V166H252.072V169.111L258.954 166.593V187.292L258.753 189.204Z",fill:"white"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.989 191.406L191.118 189.213L191.341 187.908L193.268 181.481H201.141L204.46 189.35L204.621 191.406H205.294H205.295H209.351L208.285 189.204L207.93 188.424L200.208 170.056L199.624 168.202L199.411 166H194.417L195.483 168.202L196.271 169.933L196.417 170.282L196.414 170.289L196.411 170.282L189.154 187.903L188.471 189.204L187.142 191.406H190.989ZM193.525 180.634H200.784L196.823 171.242L196.813 171.266L193.525 180.634Z",fill:"white"}),(0,s.jsx)("path",{d:"M294.393 165.997H293.539L294.179 168.199L294.379 170.099V187.22L294.171 189.204L293.531 191.406H294.379V191.419H298.076V191.406H298.915L298.275 189.204L298.076 187.306V170.101L298.275 168.202L298.915 166H298.062V166.012H294.393V165.997Z",fill:"white"}),(0,s.jsx)("path",{d:"M282.056 168.202L281.866 170.014V187.392L282.056 189.204L282.696 191.406H281.866V191.419H278.169V191.406H277.316L277.956 189.204L278.169 187.172V170.234L277.956 168.202L277.316 166H278.169V166.012H281.843V166H282.696L282.056 168.202Z",fill:"white"}),(0,s.jsx)("path",{d:"M284.402 180.29V177.975L292.012 176.586V178.935L284.402 180.29Z",fill:"white"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_3022_4476",children:(0,s.jsx)("rect",{width:"566",height:"357.808",rx:"16.9377",fill:"white"})})})]})})}),U=e=>{let{session:t}=e,[a,m]=(0,c.fp)(o.Wr),[x,g]=(0,r.useState)(0),[b,j]=(0,r.useState)([]),[N,y]=(0,c.fp)(o.SW),[C,k]=(0,c.fp)(o.ix),[P,V]=(0,r.useState)(0),[A,S]=(0,r.useState)(!1);(0,r.useEffect)(()=>{g(C.length+N.length),C.length>0?u(C.map(e=>e)).then(e=>{j(e),V(e.reduce((e,t)=>e+(t.price||0),0)+N.reduce((e,t)=>e+t.cardValue,0))}).catch(e=>{console.error("Failed to fetch artworks:",e)}):(j([]),V(N.reduce((e,t)=>e+t.cardValue,0)))},[C,N]);let H=()=>{S(!1),m(!1)};return(0,s.jsx)(l.N,{children:a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.P.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{duration:.7,ease:d.lN}},exit:{opacity:0,transition:{duration:.3,ease:d.lN}},className:"fixed inset-0 z-[2000] h-full w-full bg-gray-light-50"}),(0,s.jsxs)(i.P.div,{initial:{x:"100%"},animate:{x:"0%",transition:{duration:.9,ease:d.lN}},exit:{x:"100%",transition:{duration:.9,ease:d.lN}},transition:{duration:1,ease:d.lN},className:"cart-main-layout min-h-screen w-full fixed inset-0 z-[2001] parent-grid-cols-2",children:[(0,s.jsx)("div",{className:"col-span-1 w-full h-full cursor-pointer",onClick:()=>{A&&(k([]),y([])),H()}}),(0,s.jsx)(i.P.div,{"data-lenis-prevent":!0,layout:"position",style:{overscrollBehavior:"contain",overflowY:"scroll"},className:"cart-content relative z-10 col-start-2 col-span-1 max-md:col-start-1 max-md:col-span-2 max-md:ml-0 max-md:w-full -ml-6 w-[calc(100%+24px)] h-full min-h-screen bg-white pb-20 max-md:pb-24",children:(0,s.jsx)(l.N,{mode:"wait",children:A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.A,{onClick:()=>{H(),k([]),y([])}}),(0,r.createElement)(i.P.div,{...d.vL,key:"success",className:"max-w-[448px] h-full mx-auto flex flex-col items-center justify-center",children:[(0,s.jsx)("h3",{className:"heading-2 text-center",children:"Your inquiry has\xa0been sent!"}),(0,s.jsx)("p",{className:"mt-6 text-center text-sans-m max-md:text-sans-s",children:"We will contact you by email as soon as possible."}),(0,s.jsx)("div",{className:"flex gap-2 mt-10 justify-center",children:(0,s.jsx)(R.default,{href:(0,w.eP)(),className:"text-center hover:opacity-100 caption pt-4 pb-3.5 rounded-full w-[176px] border border-black-25 hover:border-black transition-colors duration-300",onClick:()=>{H(),k([]),y([])},children:"Go to Gallery"})})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.P.div,{className:"section-padding pt-5",children:[(0,s.jsxs)("h3",{className:"heading-3 max-md:heading-2 flex gap-1",children:["Your Cart",(0,s.jsxs)("span",{className:"caption",children:["(",(0,s.jsx)(l.N,{mode:"wait",children:(0,s.jsx)(i.P.span,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.3,ease:d.lN},className:"inline-block",children:x||0},x)}),")"]})]}),(0,s.jsx)(n.A,{onClick:H})]},"order"),(0,s.jsx)(l.N,{children:b.length>0||N.length>0?(0,s.jsx)(i.P.div,{...d.vL,layout:!0,className:"flex flex-col gap-6 section-padding pt-[100px] max-md:pt-[28px]",children:(0,s.jsxs)(l.N,{children:[b.map(e=>{var t,a,r,l,n,o,c,m;return(0,s.jsxs)(i.P.div,{layout:!0,animate:{opacity:1},exit:{opacity:0,y:-50},transition:{duration:.6,ease:d.lN},className:"parent-grid-cols-2",children:[(0,s.jsx)(h.default,{src:(0,p.b)(null==e?void 0:null===(t=e.images)||void 0===t?void 0:t[0]),alt:"",width:300,height:300,className:"w-full object-contain col-span-1"}),(0,s.jsxs)("div",{className:"col-span-1 flex flex-col gap-3 max-md:gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("h3",{className:"text-sans-m max-md:text-sans-s",children:[null===(a=e.artistReference)||void 0===a?void 0:a.firstName," ",null===(r=e.artistReference)||void 0===r?void 0:r.lastName]}),(0,s.jsxs)("h4",{className:"text-serif-m font-roman max-md:text-serif-s",children:[e.title,", ",e.year]}),(0,s.jsxs)("span",{className:"text-sans-s text-black-50 mt-1",children:[e.materialPainting?e.materialPainting:e.materialObject,", ",e.dimensionsPainting?"(".concat(null===(l=e.dimensionsPainting)||void 0===l?void 0:l.width," \xd7 ").concat(null===(n=e.dimensionsPainting)||void 0===n?void 0:n.height,")"):"(".concat(null===(o=e.dimensionsObject)||void 0===o?void 0:o.width," \xd7 ").concat(null===(c=e.dimensionsObject)||void 0===c?void 0:c.height," \xd7 ").concat(null===(m=e.dimensionsObject)||void 0===m?void 0:m.depth,")")]})]}),(0,s.jsx)("div",{className:"h-[1px] w-full bg-black-10"}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)("span",{className:"heading-4 max-md:text-sans-m",children:["\xa3 ",(0,L.u)(e.price)]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(f.A,{id:e._id,category:"artwork"}),(0,s.jsx)(v.A,{id:e._id,plain:!0,price:e.price})]})]})]})]},e._id)}),N.length>0&&N.map(e=>
1(0,s.jsxs)(i.P.div,{layout:!0,animate:{opacity:1},exit:{opacity:0,y:-50},transition:{duration:.6,ease:d.lN},className:"parent-grid-cols-2",children:[(0,s.jsx)(I,{initial:{color:e.color,width:"70.57%"},animate:{color:e.color,width:"70.57%"},style:{width:"70.57%"}}),(0,s.jsxs)("div",{className:"col-span-1 flex flex-col gap-3 max-md:gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h3",{className:"text-sans-m max-md:text-sans-s",children:"Aisthesis"}),(0,s.jsx)("h4",{className:"text-serif-m font-roman max-md:text-serif-s",children:"Digital Gift Card"}),(0,s.jsx)("span",{className:"text-sans-s text-black-50 mt-1",children:"Selected colours, any value"})]}),(0,s.jsx)("div",{className:"h-[1px] w-full bg-black-10"}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)("span",{className:"heading-4 max-md:text-sans-m",children:["\xa3 ",(0,L.u)(e.cardValue)]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(z.A,{size:"small"}),(0,s.jsx)(Z,{id:e.id})]})]})]})]},e.id)),(0,s.jsxs)(i.P.div,{transition:{duration:.6,ease:d.lN},layout:!0,className:"flex flex-col gap-4 ",children:[(0,s.jsx)("div",{className:"h-[1px] w-full bg-black-10"}),(0,s.jsxs)("div",{className:"parent-grid-cols-2",children:[(0,s.jsxs)("div",{className:"col-span-1 flex flex-col gap-1",children:[(0,s.jsx)("h4",{className:"heading-4 max-md:text-sans-m",children:"Subtotal"}),(0,s.jsx)("span",{className:"text-sans-s text-black-50",children:"We'll send you the final cost on email"})]}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(l.N,{mode:"wait",children:(0,s.jsxs)(i.P.span,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.3,ease:d.lN},className:"inline-block heading-4 max-md:text-sans-m",children:["\xa3 ",(0,L.u)(P)]},"total_".concat(x))})})]})]},"total-price"),(0,s.jsx)(i.P.div,{transition:{duration:.6,ease:d.lN},layout:!0,className:"pt-20 max-md:pt-16",children:(0,s.jsxs)("div",{className:"flex flex-col gap-10 max-md:gap-8",children:[(0,s.jsx)("h3",{className:"heading-3 text-center",children:"Contact Us To Buy These\xa0Items"}),(0,s.jsx)(q,{user:t,products:b,setIsOrdered:S,totalPrice:P})]})},"form")]})},"full"):(0,s.jsx)(i.P.div,{...d.vL,className:"flex flex-col h-full items-center justify-center section-padding",children:(0,s.jsxs)("div",{className:"max-w-[448px] mx-auto",children:[(0,s.jsx)("h3",{className:"heading-2 text-center",children:"Your cart is empty"}),(0,s.jsx)("p",{className:"mt-6 text-center text-sans-m max-md:text-sans-s",children:"Add some artwork and submit a purchase inquiry."}),(0,s.jsx)("div",{className:"flex gap-2 mt-10 items-center justify-center",children:(0,s.jsx)(R.default,{href:(0,w.eP)(),className:"max-w-[176px] text-center hover:opacity-100 caption pt-4 pb-3.5 rounded-full w-full border border-black-25 hover:border-black transition-colors duration-300",onClick:()=>H(),children:"Go to gallery"})})]})},"empty")})]})})}),")"]})]})})}},15267:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var s=a(95155),r=a(12115),i=a(13030),l=a(7912),n=a(66494),o=a(68201),c=a(19124);let d=()=>{let[e,t]=(0,r.useState)(null),[a,d]=(0,r.useState)(!0),[m,x]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=(0,i.getCookie)("ga_consent");e&&t(e),d(!1)},[]),a||"accepted"===e)?null:(0,s.jsx)(n.N,{children:!m&&(0,s.jsxs)(o.P.div,{initial:{opacity:0,y:"100%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"100%"},transition:{duration:.3,ease:c.lN},className:"fixed bottom-0 right-0 z-[2000] w-[calc(50%-12px)] max-md:w-full 3xl:max-w-[948px] bg-gray-light p-6 parent-grid-cols-6 max-md:p-4 max-md:max-w-none",children:[(0,s.jsx)(l.A,{onClick:()=>{x(!0)},className:"absolute right-6 max-md:4 top-0"}),(0,s.jsxs)("div",{className:"col-span-5 flex flex-col gap-4",children:[(0,s.jsx)("h3",{className:"heading-3 max-md:heading-2",children:"We Use Cookies"}),(0,s.jsx)("p",{className:"text-sans-m max-md:text-sans-s",children:"To enhance your browsing experience, we use cookies to remember your preferences and improve our services."}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("button",{onClick:()=>{x(!0),setTimeout(()=>{(0,i.setCookie)("ga_consent","accepted",{maxAge:31536e3}),t("accepted")},300)},className:"rounded-full border border-black-25 caption px-5 pt-4 pb-3.5 hover:border-black transition-colors duration-300",children:"Accept"}),(0,s.jsx)("button",{onClick:()=>{x(!0),setTimeout(()=>{(0,i.setCookie)("ga_consent","declined",{maxAge:31536e3}),t("declined")},300)},className:"rounded-full caption px-5 pt-4 pb-3.5 hover:opacity-70 transition-opacity duration-300",children:"Decline"})]})]})]},"cookie-popup")})}},32464:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var s=a(95155),r=a(94928),i=a(87475),l=a(25683),n=a(71714),o=a(19124),c=a(7912),d=a(50809),m=a(50596);let x=()=>{let[e,t]=(0,r.fp)(i.kw),a=()=>{t(!1)};return(0,s.jsx)(l.N,{children:e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:.5,transition:{duration:.7,ease:o.lN}},exit:{opacity:0,transition:{duration:.3,ease:o.lN}},className:"fixed inset-0 z-[2000] h-full w-full bg-gray-light-50"}),(0,s.jsxs)(n.P.div,{initial:{x:"100%"},animate:{x:"0%",transition:{duration:.9,ease:o.lN}},exit:{x:"100%",transition:{duration:.9,ease:o.lN}},className:"cart-main-layout min-h-screen w-full fixed inset-0 z-[2001] parent-grid-cols-2",children:[(0,s.jsx)("div",{className:"col-span-1 w-full h-full cursor-pointer",onClick:a}),(0,s.jsx)(c.A,{onClick:a}),(0,s.jsx)("div",{className:"col-span-1 max-md:col-start-1 max-md:col-span-2 bg-white h-full min-h-screen pb-[10%]",children:(0,s.jsx)(d.A,{title:"Gather Your Collection of Favorites",description:"Create a free profile to add works and authors to your favorites.",link:(0,m.pM)(),buttonTitle:"Log in",onClick:a})})]})]})})}},23635:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>L,lj:()=>f,xd:()=>p});var s=a(95155),r=a(52484),i=a(50596),l=a(94928),n=a(87475),o=a(71714),c=a(7912),d=a(19124),m=a(12115),x=a(90696),u=a(48173),h=a.n(u);let p=[{name:"Gallery",href:(0,i.eP)()},{name:"Artists",href:(0,i.IL)()},{name:"Journal",href:(0,i.HY)()},{name:"Curated Edits",href:(0,i.te)()},{name:"About",href:(0,i.$p)()}],f=[{name:"Facebook",href:"https://www.facebook.com"},{name:"Instagram",href:"https://www.instagram.com"},{name:"X (Twitter)",href:"https://twitter.com"}],v={initial:{opacity:0,y:-20},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3,ease:d.lN}},exit:{opacity:0,y:-20,transition:{delay:0,duration:.1,ease:d.lN}}},L=()=>{let e=(0,l.Xr)(n.tX),t=(0,l.Xr)(n.BZ),a=(0,l.Xr)(n.Wr),u=(0,l.md)(n.SW),L=(0,l.md)(n.ix),[w,g]=(0,m.useState)(0),b=(0,x.wV)();return(0,m.useEffect)(()=>{g(L.length+u.length)},[L,u]),(0,s.jsxs)(o.P.nav,{layout:!0,style:{transformOrigin:"50% 0%"},initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%",transition:{delay:.2,ease:d.lN}},transition:{ease:d.lN,duration:.61},className:"fixed z-[10000] inset-0 section-padding py-6 parent-grid-cols-12 max-md:parent-grid-cols-6 grid-rows-2 bg-brand-emerald h-screen max-md:h-dvh w-screen text-white max-md:py-4",children:[(0,s.jsx)(c.A,{onClick:()=>{e(!1),t(!0)}}),(0,s.jsx)(o.P.div,{...v,className:"col-start-1 col-span-6 row-start-1 row-span-1 max-md:mt-1 w-max",children:(0,s.jsx)(h(),{href:"/",onClick:()=>{e(!1),t(!0)},children:(0,s.jsx)(r.A,{className:"w-[180px] h-[24px] max-md:w-[105px] text-white"})})}),(0,s.jsx)(o.P.div,{...v,className:"flex flex-col pointer-events-none col-start-7 -mt-2 col-span-3 max-md:justify-center max-md:row-span-2 max-md:row-start-1 max-md:col-start-1 max-md:col-end-[-1]",children:p.map(a=>(0,s.jsx)(h(),{href:a.href,prefetch:!0,className:"heading-3 pointer-events-auto max-md:heading-2 w-max whitespace-nowrap",onClick:()=>{e(!1),t(!0)},children:a.name},a.href))}),(0,s.jsxs)(o.P.div,{style:{fontFeatureSettings:"'salt' on, 'ss01' on, 'ss03' on, 'ss05' on",fontVariantNumeric:"lining-nums proportional-nums ordinal"},...v,className:"flex flex-col justify-between col-start-10 col-span-3 row-start-1 row-span-2 max-md:col-start-4 max-md:col-end-[-1] text-sans-l max-md:text-sans-s pointer-events-none",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("button",{className:"pointer-events-auto flex gap-0.5 hover:opacity-70 transition-opacity duration-500 w-max",onClick:()=>{e(!1),t(!0),setTimeout(()=>{a(!0)},400)},children:[(0,s.jsx)("span",{children:"Cart"}),(0,s.jsxs)("span",{className:"caption",children:["(",w,")"]})]}),(0,s.jsx)(h(),{href:(0,i.bL)(),className:"pointer-events-auto flex gap-0.5 w-max",onClick:()=>{e(!1),t(!0)},children:"authenticated"===b.status?"Profile":"Login/Register"})]}),(0,s.jsx)("div",{className:"flex flex-col",children:f.map(a=>(0,s.jsx)(h(),{href:a.href,className:"pointer-events-auto w-max",onClick:()=>{e(!1),t(!0)},children:a.name},a.href))})]})]})}},6277:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var s=a(95155),r=a(23635),i=a(94928),l=a(87475),n=a(25683),o=a(71714),c=a(76046),d=a(52484),m=a(19124),x=a(12115),u=a(98220),h=a(52659);let p=e=>{let{authPage:t=!1}=e,[a,p]=(0,i.fp)(l.tX),[f,v]=(0,i.fp)(l.BZ),L=(0,i.md)(l.YY),w=(0,i.md)(l.AU),g=(0,i.md)(l.SW),[b,j]=(0,i.fp)(l.Wr),N=(0,c.usePathname)(),{width:y}=(0,u.A)(),C=(0,i.md)(l.ix),[k,P]=(0,x.useState)(0),[V,A]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{P(C.length+g.length)},[C,g]),(0,x.useEffect)(()=>{L&&A(!0)},[L]),(0,s.jsxs)(s.Fragment,{children:["/"!==N&&(0,s.jsx)("header",{className:"fixed z-50 left-6 top-6 max-md:left-4 max-md:top-[17px]",children:(0,s.jsx)(h.default,{href:"/",children:(0,s.jsx)(d.A,{className:"w-[180px] h-[24px] max-md:w-[105px]",style:{color:t?y>768?"var(--white)":"var(--black)":w}})})}),(0,s.jsx)(n.N,{children:a&&(0,s.jsx)(r.Ay,{})}),(0,s.jsx)("div",{className:"parent-grid-cols-12 section-padding max-md:parent-grid-cols-6 pointer-events-none fixed z-50 w-full top-6 max-md:top-4 flex justify-end",style:{fontFeatureSettings:"'salt' on, 'ss01' on, 'ss03' on, 'ss05' on",fontVariantNumeric:"lining-nums proportional-nums ordinal"},children:(0,s.jsx)(n.N,{initial:!1,children:f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.N,{children:V&&k>0&&L&&!b&&(0,s.jsx)(o.P.button,{initial:{opacity:0,y:-5}
1,animate:{opacity:1,y:0,transition:{delay:.6}},exit:{opacity:0,y:-20},transition:{ease:m.lN,duration:.3},style:{color:t?"var(--black)":w},className:"text-sans-l max-md:text-sans-s col-start-10 col-span-1 max-md:col-start-4 pointer-events-auto w-max",onClick:()=>j(!0),children:(0,s.jsxs)(o.P.span,{className:"flex gap-0.5",children:["Cart",(0,s.jsxs)("span",{className:"caption flex",children:["(",(0,s.jsx)(n.N,{mode:"wait",children:(0,s.jsx)(o.P.span,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.3,ease:m.lN},className:"inline-block",children:k},k)}),")"]})]})})}),(0,s.jsx)("button",{style:{color:t?"var(--black)":w},className:"col-start-11 col-span-2 max-md:col-start-6 pointer-events-auto text-sans-l max-md:text-sans-s ml-auto",onClick:()=>{p(!a),v(!1)},children:(0,s.jsx)(o.P.span,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.6}},exit:{opacity:0,transition:{delay:0}},transition:{ease:m.lN,duration:.3},className:"flex",children:"Menu"})})]})})})]})}},11055:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var s=a(95155),r=a(66494),i=a(68201),l=a(19124),n=a(7912),o=a(12115),c=a(37193),d=a(45509),m=a(48173),x=a.n(m),u=a(50596),h=a(94928),p=a(87475);let f={wait:"Please Wait...",success:"Your Subscription To Our List Has Been Confirmed",error:"Something Went Wrong...",alreadySubscribed:"This Email Is Already Subscribed"},v=()=>{let[e,t]=(0,h.fp)(p.BC),[a,m]=(0,o.useState)(!1),[v,L]=(0,o.useState)(""),[w,g]=(0,o.useState)(""),[b,j]=(0,o.useState)(!1),[N,y]=(0,o.useState)(!1),C=async e=>{e.preventDefault();let t=e=>{m(!0),L(e)};t(f.wait);try{let e=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w})});await e.json(),200===e.status&&t(f.success),500===e.status&&t(f.error),400===e.status&&t(f.alreadySubscribed)}catch(e){console.debug(e),t(f.error)}};return(0,s.jsx)(r.N,{children:e&&!N&&(0,s.jsxs)(i.P.div,{initial:{opacity:0,y:"100%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"100%"},transition:{duration:.3,ease:l.lN},className:"fixed bottom-0 right-0 z-[1000] w-[calc(50%-12px)] 3xl:max-w-[948px] h-[416px] max-md:h-[444px] max-md:w-full max-md:max-w-none bg-black text-white p-6 max-md:p-4",children:[(0,s.jsx)(n.A,{onClick:()=>{t(!1),m(!1),g(""),y(!0)},className:"absolute right-6 max-md:4 top-0"}),a?(0,s.jsx)("div",{className:"flex flex-col justify-center items-center h-full gap-6",children:(0,s.jsxs)(r.N,{mode:"wait",children:[v===f.wait&&(0,s.jsx)(i.P.h3,{...l.vL,className:"heading-3 max-md:heading-2 text-center",children:f.wait},"wait"),v===f.success&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.P.h3,{...l.vL,className:"heading-3 max-md:heading-2 text-center",children:f.success},"success"),(0,s.jsx)(i.P.p,{...l.vL,className:"text-center",children:"Thank you for subscribing! Look out for news and updates."},"success_p")]}),v===f.error&&(0,s.jsx)(i.P.h3,{...l.vL,className:"heading-3 max-md:heading-2 text-center",children:f.error},"error"),v===f.alreadySubscribed&&(0,s.jsx)(i.P.h3,{...l.vL,className:"heading-3 max-md:heading-2 text-center",children:f.alreadySubscribed},"alreadySubscribed")]})}):(0,s.jsxs)("div",{className:"flex flex-col mt-8",children:[(0,s.jsx)("h3",{className:"heading-3 max-md:heading-2 text-center py-16 max-md:py-12",children:"Subscribe To Our\xa0Newsletter"}),(0,s.jsx)("div",{className:"flex flex-col py-8",children:(0,s.jsxs)("form",{onSubmit:C,className:"flex flex-col gap-8 max-md:gap-4",children:[(0,s.jsxs)("div",{className:"sub relative flex gap-4 max-md:flex-col max-md:gap-8",children:[(0,s.jsx)("input",{type:"email",name:"email",value:w,onChange:e=>g(e.target.value),required:!0,placeholder:" ",className:"h-12 w-full bg-transparent border-solid rounded-none border-b border-white-25 text-white active:border-b-white focus-visible:border-b-white outline-none transition-colors duration-300 font-roman text-serif-l max-md:text-serif-m"}),(0,s.jsx)("label",{htmlFor:"email",className:"absolute top-1/2 left-0 -translate-y-1/2 text-sans-l max-md:text-sans-m max-md:top-1/4 text-white-50 transition-all duration-300 ease-in-out origin-top-left pointer-events-none select-none",children:"Email"}),(0,s.jsx)("button",{type:"submit",disabled:!b,className:"disabled:text-white-50 rounded-full border border-white-25 caption px-5 pt-4 pb-3.5 hover:border-white transition-colors duration-300 max-md:w-[108px] self-center",children:"Subscribe"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer text-sans-s self-center",onClick:e=>{"A"===e.target.tagName?e.stopPropagation():j(!b)},children:[(0,s.jsx)("div",{className:"flex items-center justify-center transition-all",children:b?(0,s.jsx)(c.A,{className:"text-white"}):(0,s.jsx)(d.A,{className:"text-white"})}),(0,s.jsxs)("span",{className:"text-white cursor-pointer select-none",children:["I agree with"," ",(0,s.jsx)(x(),{href:(0,u.FD)(),target:"_blank",rel:"noopener noreferrer",className:"underline",onClick:e=>e.stopPropagation(),children:"Terms & Conditions"})]}),(0,s.jsx)("input",{type:"checkbox",id:"terms",checked:b,onChange:()=>{},className:"hidden"})]})]})})]})]},"subscribe-popup")})}},52659:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var s=a(95155),r=a(48173),i=a.n(r);a(12115);var l=a(76046),n=a(87475),o=a(94928);function c(e){return new Promise(t=>setTimeout(t,e))}let d=e=>{let{children:t,href:a,className:r,ref:d,onClick:m,...x}=e,u=(0,o.Xr)(n.BE),h=(0,l.useRouter)(),p=async e=>{e.preventDefault(),m&&m(),u({isActive:!0,isExiting:!1}),await c(1e3),h.push(a),await c(500),u({isActive:!0,isExiting:!0}),await c(1e3),u({isActive:!1,isExiting:!1})};return(0,s.jsx)(i(),{ref:d,onClick:p,href:a,className:r,...x,children:t})}},55853:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var s=a(12115),r=a(94928),i=a(87475),l=a(90696);let n=e=>{let{favorites:t,favoriteGiftCard:a}=e,n=(0,r.Xr)(i.xL),o=(0,r.Xr)(i.CK),c=(0,l.wV)();return(0,s.useEffect)(()=>{(async()=>{await c.update()})(),n({artist:null==t?void 0:t.artist,artwork:null==t?void 0:t.artwork}),o(a.favoriteGiftCard||!1)},[]),null}},6001:(e,t,a)=>{"use strict";function s(e){return new Intl.NumberFormat("en-GB").format(e)}a.d(t,{u:()=>s})},98220:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(12115);let r=()=>
1{let[e,t]=(0,s.useState)({width:0,height:0}),a=()=>{let{innerWidth:e,innerHeight:a}=window;t({width:e,height:a})};return(0,s.useEffect)(()=>(a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[]),e}},35301:(e,t,a)=>{"use strict";a.d(t,{b:()=>c});var s=a(31103),r=a(40304),i=a(87358);let l=(0,s.UU)({projectId:r.Lg,dataset:r.RT,apiVersion:r.XV,useCdn:!0,stega:{studioUrl:"https://".concat(i.env.VERCEL_URL,"/studio")}});var n=a(59371);let o=a.n(n)()(l);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"webp";return e?o.image(e).format(t).url():""}},19124:(e,t,a)=>{"use strict";a.d(t,{GS:()=>o,Zk:()=>n,lN:()=>c,vL:()=>d});var s=a(95155),r=a(5565),i=a(68201),l=a(52659);let n=i.P.create(e=>(0,s.jsx)(r.default,{...e})),o=i.P.create(e=>(0,s.jsx)(l.default,{...e})),c=[.645,.045,.355,1],d={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.8,ease:c}}},50596:(e,t,a)=>{"use strict";a.d(t,{$p:()=>s,BD:()=>d,CN:()=>r,FD:()=>i,HY:()=>p,IL:()=>u,Jj:()=>c,RV:()=>o,bL:()=>l,eP:()=>m,i9:()=>x,pM:()=>n,te:()=>h});let s=()=>"/about",r=()=>"/privacy-policy",i=()=>"/terms-and-conditions",l=e=>e?"/profile/".concat(e):"/profile",n=e=>e?"/login?callbackUrl=".concat(e):"/login",o=e=>e?"/register?callbackUrl=".concat(e):"/register",c=e=>"/quiz/".concat(e),d=()=>"/forgot-password",m=e=>e?"/gallery/".concat(e):"/gallery",x=()=>"/gift-card",u=e=>e?"/artists/".concat(e):"/artists",h=e=>e?"/curated-edits/".concat(e):"/curated-edits",p=e=>e?"/journal/".concat(e):"/journal"},90757:(e,t,a)=>{"use strict";a.d(t,{ar:()=>i,i5:()=>d,m4:()=>l,oW:()=>o,qV:()=>n,qp:()=>c,yb:()=>r});var s=a(43415);let r=s.z.object({email:s.z.string({required_error:"Email is required"}).email("Invalid email address"),password:s.z.string({required_error:"Password is required"}).min(8,"Password must be at least 8 characters")}),i=s.z.object({email:s.z.string({required_error:"Email is required"}).email("Invalid email address")}),l=s.z.object({firstName:s.z.string({required_error:"First Name is required"}),lastName:s.z.string({required_error:"Last Name is required"}),email:s.z.string({required_error:"Email is required"}).email("Invalid email address"),password:s.z.string({required_error:"Password is required"}).min(8,"Password must be at least 8 characters"),confirmPassword:s.z.string({required_error:"Confirmation of the password is required"}).min(8,"Confirm password must be at least 8 characters")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),n=s.z.object({firstName:s.z.string({required_error:"First Name is required"}),lastName:s.z.string({required_error:"Last Name is required"}),email:s.z.string({required_error:"Email is required"}).email("Invalid email address")}),o=s.z.object({password:s.z.string({required_error:"Password is required"}).min(8,"Password must be at least 8 characters"),confirmPassword:s.z.string({required_error:"Confirmation of the password is required"}).min(8,"Confirm password must be at least 8 characters")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),c=s.z.object({firstName:s.z.string({required_error:"First Name is required"}),lastName:s.z.string({required_error:"Last Name is required"}),currentPassword:s.z.string().optional(),newPassword:s.z.string().optional(),confirmNewPassword:s.z.string().optional()}).superRefine((e,t)=>{(e.newPassword||e.confirmNewPassword)&&!e.currentPassword&&t.addIssue({code:"custom",path:["currentPassword"],message:"Current Password is required when changing passwords"}),e.currentPassword&&(e.newPassword||t.addIssue({code:"custom",path:["newPassword"],message:"New Password is required when Current Password is provided"}),e.confirmNewPassword||t.addIssue({code:"custom",path:["confirmNewPassword"],message:"Confirm Password is required when Current Password is provided"})),e.newPassword&&e.newPassword.length<8&&t.addIssue({code:"custom",path:["newPassword"],message:"New Password must be at least 8 characters"}),e.newPassword&&e.confirmNewPassword&&e.newPassword!==e.confirmNewPassword&&t.addIssue({code:"custom",path:["confirmNewPassword"],message:"Passwords do not match"})}),d=s.z.object({recipientName:s.z.string({required_error:"Recipient Name is required"}),recipientEmail:s.z.string({required_error:"Recipient Email is required"}).email("Invalid email address"),senderName:s.z.string({required_error:"Sender Name is required"}),senderEmail:s.z.string({required_error:"Sender Email is required"}).email("Invalid email address"),giftMessage:s.z.string().max(75).optional()})},40304:(e,t,a)=>{"use strict";a.d(t,{Lg:()=>i,RT:()=>r,XV:()=>s});let s=a(87358).env.NEXT_PUBLIC_SANITY_API_VERSION||"2024-12-18",r=l("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),i=l("lich8ipg","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");function l(e,t){if(void 0===e)throw Error(t);return e}},40714:(e,t,a)=>{"use strict";a.d(t,{v:()=>i});var s=a(31103),r=a(40304);let i=(0,s.UU)({projectId:r.Lg,dataset:r.RT,apiVersion:r.XV,useCdn:!1})},87475:(e,t,a)=>{"use strict";a.d(t,{AU:()=>h,BC:()=>d,BE:()=>i,BZ:()=>o,CK:()=>w,CP:()=>b,E1:()=>c,Ic:()=>l,JH:()=>g,PB:()=>j,SW:()=>L,Wr:()=>u,YY:()=>p,cs:()=>N,ix:()=>f,kw:()=>m,tX:()=>n,vi:()=>x,xL:()=>v});var s=a(21416),r=a(71094);let i=(0,s.eU)({isActive:!1,isExiting:!1}),l=(0,r.tG)("productCardSize","small"),n=(0,s.eU)(!1),o=(0,s.eU)(!0),c=(0,s.eU)(!1),d=(0,s.eU)(!1),m=(0,s.eU)(!1),x=(0,s.eU)(!1),u=(0,s.eU)(!1),h=(0,s.eU)(""),p=(0,s.eU)(!0),f=(0,r.tG)("cart",[]),v=(0,r.tG)("favorites",{artist:[],artwork:[]}),L=(0,r.tG)("gift-cards",[]),w=(0,r.tG)("favorite-gift-card",!1),g=(0,r.tG)("card-color",{id:"",color:"#305041",cardValue:null,recipient:"",recipientEmail:"",sender:"",senderEmail:"",g
1iftMessage:""}),b=(0,s.eU)(0),j=(0,s.eU)({}),N=(0,s.eU)(!1)},26474:(e,t,a)=>{"use strict";async function s(e){return new Promise(t=>{if(!grecaptcha){console.error("grecaptcha is not loaded"),t(null);return}grecaptcha.ready(()=>{let a="6LeTZbMqAAAAAElKGNF0_g85hCYWBeLiNgXn06YA";if(!a){console.error("Captcha site key is missing"),t(null);return}try{grecaptcha.execute(a,{action:e}).then(e=>{e?t(e):(console.error("Empty token received from reCAPTCHA"),t(null))})}catch(e){console.error("Error executing reCAPTCHA",e),t(null)}})})}a.d(t,{y:()=>s}),a(87358)},4047:(e,t,a)=>{"use strict";a.d(t,{Q:()=>r});var s=a(75828);let r=(0,s.createServerReference)("7fd80666517cff09b17f959f7c4f2d927d0bc7af46",s.callServer,void 0,s.findSourceMapURL,"revalidateSyncTags")}},e=>{var t=t=>e(e.s=t);e.O(0,[1103,1200,9465,8201,696,1714,9371,3749,4321,5908,6698,8441,1517,7358],()=>t(1668)),_N_E=e.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.