(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[536],{5149:(e,t,a)=>{Promise.resolve().then(a.bind(a,1838))},1979:(e,t,a)=>{"use strict";a.d(t,{FO:()=>r,Ob:()=>i,XE:()=>l,dX:()=>s,dt:()=>o,uF:()=>n});let s={mobileNumber:"07356 073332",email:"hello@irisgallery.co.uk"},i=[{id:1,title:"1 iris",desc:"Sphere design",img:"/images/1eyeGallaxyEffect.jpg",link:"https://lama.dev"},{id:2,title:"2 iris",desc:"Big Bang design",img:"/images/2 eyes.jpg",link:"https://lama.dev"},{id:3,title:"3 iris",desc:"Stars design",img:"/images/2eyesInfinityEffect.jpg",link:"https://lama.dev"},{id:4,title:"4 iris",desc:"Gallaxy design",img:"/images/4eyesGallaxyEffect2.jpg",link:"https://lama.dev"}],r=[{id:1,title:"1 iris",desc:"Sphere design",img:"/images/1 iris.jpg",link:"/projects/1-iris-photo"},{id:2,title:"2 iris",desc:"Big Bang design",img:"/images/2eyesBigBangEffect.jpg",link:"/projects/2-iris-photo"},{id:3,title:"3 iris",desc:"Stars design",img:"/images/3eyesStarsEffect.jpg",link:"/projects/3-iris-photo"},{id:4,title:"4 iris",desc:"Gallaxy design",img:"/images/4eyesGallaxyEffect.jpg",link:"/projects/4-iris-photo"},{id:5,title:"5 iris",desc:"Sphere design",img:"/images/5spheres.jpg",link:"/projects/5-iris-photo"}],l=[{id:1,title:"1 iris",img:"/images/gallery/interior1.jpg"},{id:2,title:"2 iris",img:"/images/gallery/interior2.jpg"},{id:3,title:"3 iris",img:"/images/gallery/interior3.jpg"},{id:4,title:"4 iris",img:"/images/gallery/interior4.jpg"},{id:5,title:"5 iris",img:"/images/gallery/interior5.jpg"},{id:6,title:"5 iris",img:"/images/gallery/interior6.jpg"}],n=[{id:1,title:"IRIS capturing",desc:"Our team will drive to your home and professionaly take a picture of your iris. Capturing the eye is a process that lasts 5 minutes. It is safe for the health of your eyes, for children and adults.",img:"/svgs/camera.svg"},{id:2,title:"Post-production",desc:"We will edit the photo to express the full beauty of the artwork and show it in natural colours.",img:"/svgs/display.svg"},{id:3,title:"Printing",desc:"The step begins when the artwork is finished and ready to be printed.",img:"/svgs/printer.svg"},{id:4,title:"Framing",desc:"An optional step, we will provide you with a choice of frames from which you can choose - framing the unique artwork.",img:"/svgs/picture.svg"},{id:5,title:"Delivery",desc:"We will deliver your unique artwork to your address within 7 days.",img:"/svgs/truck.svg"}],o=[[{id:1,title:"Sphere",img:"/images/projects/sphere1.jpg"},{id:2,title:"Gallaxy",img:"/images/projects/gallaxy1.jpg"},{id:3,title:"Orbital",img:"/images/projects/orbital1.jpg"},{id:4,title:"Stars",img:"/images/projects/stars1.jpg"}],[{id:1,title:"Halfmoon",img:"/images/projects/halfmoon2.jpg"},{id:2,title:"Big Bang",img:"/images/projects/bigbang2.jpg"},{id:3,title:"Infinity",img:"/images/projects/infinity2.jpg"},{id:4,title:"Gallaxy",img:"/images/projects/gallaxy2.jpg"},{id:5,title:"Orbital",img:"/images/projects/orbital2.jpg"},{id:6,title:"Stars",img:"/images/projects/stars2.jpg"}],[{id:1,title:"Sphere",img:"/images/projects/sphere3.jpg"},{id:2,title:"Gallaxy",img:"/images/projects/gallaxy3.jpg"},{id:3,title:"Orbital",img:"/images/projects/orbital3.jpg"},{id:4,title:"Stars",img:"/images/projects/stars3.jpg"}],[{id:1,title:"Sphere",img:"/images/projects/sphere4.jpg"},{id:2,title:"Gallaxy",img:"/images/projects/gallaxy4.jpg"},{id:3,title:"Orbital",img:"/images/projects/orbital4.jpg"},{id:4,title:"Stars",img:"/images/projects/stars4.jpg"}],[{id:1,title:"Sphere",img:"/images/projects/sphere5.jpg"},{id:2,title:"Gallaxy",img:"/images/projects/gallaxy5.jpg"},{id:3,title:"Orbital",img:"/images/projects/orbital5.jpg"},{id:4,title:"Stars",img:"/images/projects/stars5.jpg"}]]},1838:(e,t,a)=>{"use strict";a.d(t,{default:()=>X});var s=a(5155),i=a(5246),r=a(990),l=a(5565),n=a(1979),o=a(2115),d=a(6367),c=a(8173),m=a.n(c),g=a(32),p=a(3518),u=a(6967),f=a(2222),h=a(532),x=a(3463),b=a(9795);function y(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,b.QP)((0,x.$)(t))}var j=a(2317);let v=(0,a(1027).F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),w=o.forwardRef((e,t)=>{let{className:a,variant:i,size:r,asChild:l=!1,...n}=e,o=l?j.DX:"button";return(0,s.jsx)(o,{className:y(v({variant:i,size:r,className:a})),ref:t,...n})});function N(e){let{className:t,classNames:a,showOutsideDays:i=!0,...r}=e;return(0,s.jsx)(f.hv,{locale:h.b,showOutsideDays:i,className:y("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(v({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md","range"===r.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(v({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:e=>{let{className:t,...a}=e;return(0,s.jsx)(p.A,{className:y("h-4 w-4",t),...a})},IconRight:e=>{let{className:t,...a}=e;return(0,s.jsx)(u.A,{className:y("h-4 w-4",t),...a})}},...r})}w.displayName="Button",N.displayName="Calendar";var S=a(1151);let k=S.bL,_=S.l9;S.Mz;let O=o.forwardRef((e,t)=>{let{className:a,align:i="center",sideOffset:r=4,...l}=e;return(0,s.jsx)(S.ZL,{children:(0,s.jsx)(S.UC,{ref:t,align:i,sideOffset:r,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...l})})});O.displayName=S.UC.displayName;var P=a(4505);function D(e){let{availableDates:t,onDateSelect:a,loading:i}=e,[r,l]=(0,o.useState)(null);return(0,s.jsxs)(k,{children:[(0,s.jsx)(_,{asChild:!0,children:(0,s.jsx)(w,{variant:"outline",className:"w-1/2 py-5 text-lg",children:i?(0,s.jsx)(P.A,{className:"animate-spin h-5 w-5"}):r?(0,g.GP)(r,"PPP"):"Pick a date"})}),(0,s.jsx)(O,{children:i?(0,s.jsxs)("div",{className:"flex justify-center items-center p-4",children:[(0,s.jsx)(P.A,{className:"animate-spin h-6 w-6"})," "]}):(0,s.jsx)(N,{mode:"single",defaultMonth:r||void 0,selected:r||void 0,onSelect:e=>{l(e||null),a(e||null)},disabled:e=>!t.some(t=>e.toISOString().split("T")[0]===t.toISOString().split("T")[0])})})]})}var z=a(5058),A=a(8867),C=a(3565);let E=z.bL,I=z.l9;z.YJ,z.ZL,z.Pb,z.z6,o.forwardRef((e,t)=>{let{className:a,inset:i,children:r,...l}=e;return(0,s.jsxs)(z.ZP,{ref:t,className:y("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",i&&"pl-8",a),...l,children:[r,(0,s.jsx)(u.A,{className:"ml-auto"})]})}).displayName=z.ZP.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)(z.G5,{ref:t,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...i})}).displayName=z.G5.displayName;let G=o.forwardRef((e,t)=>{let{className:a,sideOffset:i=4,...r}=e;return(0,s.jsx)(z.ZL,{children:(0,s.jsx)(z.UC,{ref:t,sideOffset:i,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})})});G.displayName=z.UC.displayName;let R=o.forwardRef((e,t)=>{let{className:a,inset:i,...r}=e;return(0,s.jsx)(z.q7,{ref:t,className:y("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",i&&"pl-8",a),...r})});function T(e){let{availableTimes:t,dateSelected:a,onTimeSelect:i}=e,[r,l]=(0,o.useState)(),n=e=>{l(e),i(e)};return(0,s.jsxs)(E,{children:[(0,s.jsx)(I,{asChild:!0,children:(0,s.jsx)(w,{variant:"outline",className:"w-1/2 py-5 text-lg",children:r||"Pick a time"})}),(0,s.jsx)(G,{className:"w-64 p-2",children:0===t.length?(0,s.jsx)(R,{disabled:!0,children:a?"No available times":"Please select a date first"}):(0,s.jsx)("div",{className:"grid grid-cols-4 gap-2",children:t.map((e,t)=>(0,s.jsx)(R,{onClick:()=>n(e),className:"text-center cursor-pointer",children:e},t))})})]})}R.displayName=z.q7.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,checked:r,...l}=e;return(0,s.jsxs)(z.H_,{ref:t,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(z.VF,{children:(0,s.jsx)(A.A,{className:"h-4 w-4"})})}),i]})}).displayName=z.H_.displayName,o.forwardRef((e,t)=>{let{className:a,children:i,...r}=e;return(0,s.jsxs)(z.hN,{ref:t,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(z.VF,{children:(0,s.jsx)(C.A,{className:"h-2 w-2 fill-current"})})}),i]})}).displayName=z.hN.displayName,o.forwardRef((e,t)=>{let{className:a,inset:i,...r}=e;return(0,s.jsx)(z.JU,{ref:t,className:y("px-2 py-1.5 text-sm font-semibold",i&&"pl-8",a),...r})}).displayName=z.JU.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)(z.wv,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",a),...i})}).displayName=z.wv.displayName;let F=()=>{let[e,t]=(0,o.useState)({}),[a,i]=(0,o.useState)(null),[r,l]=(0,o.useState)([]),[n,d]=(0,o.useState)(null),[c,m]=(0,o.useState)(!0);(0,o.useEffect)(()=>{m(!0),fetch("/api/freebusy",{method:"POST"}).then(e=>e.json()).then(e=>{if(null==e?void 0:e.calendars){var a;t(g((null===(a=e.calendars["1e66e06dad95fec0f06c1615404c85b7fba59c874fcabcf4268b1dc67f652443@group.calendar.google.com"])||void 0===a?void 0:a.busy)||[]))}}).finally(()=>m(!1))},[]),(0,o.useEffect)(()=>{a?l(e[a.toISOString().split("T")[0]]||[]):l([])},[a,e]);let g=e=>{let t=new Date,a=new Date;a.setMonth(t.getMonth()+3);let s={};for(let i=new Date(t);i<=a;i.setDate(i.getDate()+1)){let t=i.toISOString().split("T")[0],a=p(i).filter(t=>{let a=new Date(t.start).getTime(),s=new Date(t.end).getTime();return!e.some(e=>{let t=new Date(e.start).getTime();return a<new Date(e.end).getTime()&&s>t})});a.length>0&&(s[t]=a.map(e=>e.label))}return s},p=e=>{let t=[];for(let a=8;a<=21;a++)for(let s=0;s<60;s+=30){let i=new Date(e);i.setHours(a,s,0,0);let r=new Date(i);r.setMinutes(i.getMinutes()+30),t.push({start:i.toISOString(),end:r.toISOString(),label:"".concat(a.toString().padStart(2,"0"),":").concat(s.toString().padStart(2,"0"))})}return t};return(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(D,{availableDates:Object.keys(e).map(e=>{let t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate())}),onDateSelect:e=>{i(e),d(null)},loading:c}),(0,s.jsx)(T,{availableTimes:r,dateSelected:a,onTimeSelect:e=>d(e)}),(0,s.jsx)("input",{type:"hidden",name:"selected_date",value:a?a.toISOString():""}),(0,s.jsx)("input",{type:"hidden",name:"selected_time",value:n||""})]})},X=()=>{let[e,t]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),[g,p]=(0,o.useState)(!1),[u,f]=(0,o.useState)(null),h=(0,o.useRef)(null);return(0,s.jsx)("div",{className:"min-h-screen h-screen pt-[100px] bg-black",children:(0,s.jsxs)("div",{className:"h-full flex flex-col lg:flex-row px-4 sm:px-8 md:px-12 lg:px-20 xl:px-48",children:[(0,s.jsxs)(i.P.div,{className:"min-h-1/2 lg:h-full lg:w-1/2 flex flex-col items-start justify-center text-6xl",initial:{scale:"0%"},animate:{scale:"100%"},transition:{duration:.4},children:[(0,s.jsx)(r.A,{text:"Schedule your iris photoshoot!",className:"text-white my-5 text-4xl"}),(0,s.jsxs)("span",{className:"text-center md:text-left text-white text-2xl/10 my-5 font-thin",children:["Schedule your photoshoot appointment now and have your own unique iris masterpiece.",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Alternatively, you can also",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Contact us online:",(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex mb-5",children:[(0,s.jsx)(l.default,{src:"/svgs/card-text.svg",alt:"Contact Form",className:"mr-5",width:32,height:32}),(0,s.jsx)(m(),{href:"/contact",className:"link-underline",children:"Via Contact Form"})]}),"Send an email at:",(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex mb-5",children:[(0,s.jsx)(l.default,{src:"/svgs/email.svg",alt:"Email Address",className:"mr-5",width:32,height:32}),(0,s.jsx)("a",{href:"mailto:".concat(n.dX.email),className:"link-underline",children:n.dX.email})]}),"Call us on:",(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex mb-5",children:[(0,s.jsx)(l.default,{src:"/svgs/phone.svg",alt:"Phone number",className:"mr-5",width:32,height:32}),(0,s.jsx)("a",{href:"tel:".concat(n.dX.mobileNumber.replaceAll(" ","")),className:"link-underline",children:n.dX.mobileNumber})]})]})]}),(0,s.jsxs)(i.P.form,{onSubmit:e=>{if(e.preventDefault(),p(!0),c(!1),t(!1),h.current){if(!(e=>{let t=e.get("user_email"),a=e.get("user_phone");return a||t?a&&/^\d+$/.test(a)?t&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?(f("Please provide a valid email address."),!1):(f(null),!0):(f("Phone number is required and must only contain numbers."),!1):(f("Please enter either a phone number, email or both."),!1)})(new FormData(h.current))){p(!1);return}d.Ay.sendForm("service_uhixyi9","template_xt7ddk7",h.current,"FkzuKOEuCsb_nofMf").then(()=>{var e;t(!0),p(!1),null===(e=h.current)||void 0===e||e.reset()},()=>{p(!1),c(!0)}).catch(e=>console.error("EmailJS error:",e))}},ref:h,className:"lg:w-1/2 bg-white rounded-xl text-xl flex flex-col gap-8 justify-center p-10 lg:p-24 mb-10",initial:{scale:"0%"},animate:{scale:"100%"},transition:{duration:.4},children:[(0,s.jsx)("input",{placeholder:"Your Name",name:"user_name",type:"text",className:"bg-transparent border-b-2 border-b-gray-300 focus:border-b-black outline-none"}),(0,s.jsx)("input",{placeholder:"Your Email",name:"user_email",type:"text",className:"bg-transparent border-b-2 border-b-gray-300 focus:border-b-black outline-none"}),(0,s.jsx)("input",{placeholder:"Your Phone Number",name:"user_phone",type:"text",className:"bg-transparent border-b-2 border-b-gray-300 focus:border-b-black outline-none"}),(0,s.jsx)("input",{placeholder:"Your Address",name:"user_address",type:"text",className:"bg-transparent border-b-2 border-b-gray-300 focus:border-b-black outline-none"}),(0,s.jsx)(F,{}),u&&(0,s.jsx)("span",{className:"text-red-600 font-semibold",children:u}),(0,s.jsx)("button",{className:"bg-black hover:bg-gray-900 text-white rounded font-semibold p-4",children:g?"Sending...":"Submit"}),e&&(0,s.jsx)("span",{className:"text-green-600 font-semibold",children:"You succesfully booked your photoshoot!"}),a&&(0,s.jsxs)("span",{className:"text-red-600 font-semibold",children:["The form couldn't be sent, please either: ",(0,s.jsx)("br",{}),"send us an email at: ",(0,s.jsx)("a",{href:"mailto:".concat(n.dX.email),className:"link-underline",children:n.dX.email})," or",(0,s.jsx)("br",{}),"call us on: ",(0,s.jsx)("a",{href:"tel:".concat(n.dX.mobileNumber.replaceAll(" ","")),className:"link-underline",children:n.dX.mobileNumber})]})]})]})})}},990:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(5155);a(2115);var i=a(5246);let r=e=>{let{text:t,className:a}=e;return(0,s.jsx)("div",{className:a,children:t.split("").map((e,t)=>(0,s.jsx)(i.P.span,{initial:{opacity:1},animate:{opacity:0},transition:{duration:3,repeat:1/0,delay:.1*t},style:{willChange:"opacity"},children:e},t))})}}},e=>{var t=t=>e(e.s=t);e.O(0,[970,218,173,187,441,517,358],()=>t(5149)),_N_E=e.O()}]);