PageSourceSearch

https://www.vanzzz.co.uk/_next/static/chunks/pages/dashboard/content-f243ba2a5d69c1d6.js

js vanzzz.co.uk collected 2026-10-07 19:32:23 UTC 21,328 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="05043a28-0155-44d7-b3ec-ef3b31145c8a",e._sentryDebugIdIdentifier="sentry-dbid-05043a28-0155-44d7-b3ec-ef3b31145c8a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70071],{12625:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/content",function(){return a(90064)}])},84491:function(e,t,a){"use strict";a.d(t,{I:function(){return s},J:function(){return n}});var l=a(87066);let r="https://vanzzz-backend-production.up.railway.app",n=async()=>{let{data:e}=await l.Z.get("".concat(r,"/images/all"));return e},s=async e=>{let t=new FormData;t.append("image",e);let{data:a}=await l.Z.post("".concat(r,"/images/upload"),t,{headers:{"Content-Type":"multipart/form-data"}});return a}},23112:function(e,t,a){"use strict";a.d(t,{c:function(){return C}});var l=a(85893),r=a(25675),n=a.n(r),s=a(78051),i=a(39332),o=a(67294),d=a(28116),c=a(12003),u=a(8971),f=a(26806);let m=o.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,l.jsxs)(d.fC,{ref:t,className:(0,f.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...n,children:[r,(0,l.jsx)(y,{})]})});m.displayName=d.fC.displayName;let x=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(d.aV,{ref:t,className:(0,f.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...r})});x.displayName=d.aV.displayName;let h=d.ck,p=(0,c.j)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),g=o.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,l.jsxs)(d.xz,{ref:t,className:(0,f.cn)(p(),"group",a),...n,children:[r," ",(0,l.jsx)(u.default,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});g.displayName=d.xz.displayName;let v=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(d.VY,{ref:t,className:(0,f.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...r})});v.displayName=d.VY.displayName;let j=d.rU,y=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{className:(0,f.cn)("absolute left-0 top-full flex justify-center"),children:(0,l.jsx)(d.l_,{className:(0,f.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",a),ref:t,...r})})});y.displayName=d.l_.displayName;let w=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(d.z$,{ref:t,className:(0,f.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",a),...r,children:(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})});w.displayName=d.z$.displayName;let N=[{href:"/dashboard",text:"Dashboard"},{href:"/dashboard/customers",text:"Customers"},{href:"/dashboard/bookings",text:"Bookings"},{href:"/dashboard/vans",text:"Vans"},{href:"/dashboard/van-variations",text:"Van Variations"},{href:"/dashboard/extras",text:"Extras"},{href:"/dashboard/images",text:"Images"},{href:"/dashboard/content",text:"Content"}],b={href:"/api/auth/logout",text:"Logout",icon:(0,l.jsx)(s.default,{className:"text-xl mr-2"})},C=e=>{let{children:t}=e,a=(0,i.usePathname)();return(0,l.jsxs)("div",{className:"min-h-screen",children:[(0,l.jsx)("nav",{className:"border-b",children:(0,l.jsxs)("div",{className:"flex items-center justify-between px-6 py-3",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(n(),{src:"/small-logo.webp",width:40,height:40,alt:"logo",className:"mr-4"}),(0,l.jsx)(m,{children:(0,l.jsx)(x,{children:N.map(e=>{let t=a===e.href;return(0,l.jsx)(h,{children:(0,l.jsx)(j,{href:e.href,className:(0,f.cn)("flex items-center px-3 py-2",t&&"bg-accent"),children:(0,l.jsx)("span",{children:e.text})})},e.href)})})})]}),(0,l.jsx)(m,{children:(0,l.jsx)(x,{children:(0,l.jsx)(h,{children:(0,l.jsxs)(j,{href:b.href,className:"flex items-center px-3 py-2",children:[b.icon,(0,l.jsx)("span",{children:b.text})]})})})})]})}),(0,l.jsx)("main",{className:"p-6",children:t})]})}},16838:function(e,t,a){"use strict";a.d(t,{M:function(){return d}});var l=a(85893),r=a(84491),n=a(25675),s=a.n(n),i=a(67294),o=a(26806);let d=e=>{let{selectedImageUrls:t=[],onSelect:a,maxSelect:n,heroImageUrl:d,onHeroSelect:c}=e,[u,f]=(0,i.useState)(t.map(e=>({url:e,name:e.split("/").pop()||""}))),[m,x]=(0,i.useState)([]),[h,p]=(0,i.useState)(!0);(0,i.useEffect)(()=>{let e=async()=>{p(!0);let e=await (0,r.J)();x(e.resources),p(!1)};e()},[]);let g=e=>{let t=u.some(t=>t.url===e.url);if(t){let t=u.filter(t=>t.url!==e.url);f(t),null==a||a(t.map(e=>e.url)),d===e.url&&(null==c||c(null))}else{if(n&&u.length>=n)return;let t=[...u,e];f(t),null==a||a(t.map(e=>e.url))}},v=(e,t)=>
1{t.preventDefault(),t.stopPropagation(),d===e.url?null==c||c(null):null==c||c(e.url)},j=e=>u.some(t=>t.url===e.url),y=e=>d===e.url;return(0,l.jsx)("div",{className:"w-full",children:h?(0,l.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,l.jsx)("div",{className:"text-gray-500",children:"Loading images..."})}):(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[n&&(0,l.jsxs)("div",{className:"text-sm text-gray-600",children:["Selected: ",u.length,"/",n," images"]}),c&&(0,l.jsx)("div",{className:"text-sm text-gray-600 flex items-center gap-2",children:d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-yellow-500",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),"Hero image selected"]}),u.some(e=>e.url===d)&&(0,l.jsx)("span",{className:"text-xs text-blue-600 bg-blue-100 px-2 py-1 rounded-full",children:"Also selected"})]}):"No hero image selected"})]}),(0,l.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-10 gap-2",children:m.map(e=>{let t=j(e),a=y(e);return(0,l.jsxs)("div",{className:(0,o.cn)("relative group cursor-pointer rounded-lg overflow-hidden border-2 transition-all duration-200 hover:shadow-md",a?"border-yellow-500 shadow-md":t?"border-blue-500 shadow-md":"border-gray-200 hover:border-gray-300"),onClick:()=>g(e),children:[(0,l.jsxs)("div",{className:"aspect-square relative",children:[(0,l.jsx)(s(),{src:e.url.replace(".heic",".jpg"),alt:e.name,fill:!0,className:"object-cover",sizes:"(max-width: 640px) 50vw, (max-width: 768px) 33vw, (max-width: 1024px) 25vw, (max-width: 1280px) 20vw, 16vw"}),a&&(0,l.jsx)("div",{className:"absolute inset-0 bg-yellow-500 bg-opacity-20 flex items-center justify-center",children:(0,l.jsx)("div",{className:"bg-yellow-500 text-white rounded-full w-6 h-6 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})})})}),t&&!a&&(0,l.jsx)("div",{className:"absolute inset-0 bg-blue-500 bg-opacity-20 flex items-center justify-center",children:(0,l.jsx)("div",{className:"bg-blue-500 text-white rounded-full w-4 h-4 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})}),t&&a&&(0,l.jsx)("div",{className:"absolute bottom-1 left-1 bg-blue-500 text-white rounded-full w-4 h-4 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),(0,l.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-20 transition-all duration-200 flex items-center justify-center",children:!t&&!a&&(0,l.jsx)("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:(0,l.jsx)("div",{className:"bg-white text-gray-700 rounded-full w-4 h-4 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-3 h-3",fill:"
1currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})})})})}),c&&(0,l.jsx)("button",{type:"button",className:"absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200 bg-white rounded-full p-1 shadow-md hover:bg-gray-100",onClick:t=>v(e,t),title:a?"Remove as hero image":"Set as hero image",children:a?(0,l.jsx)("svg",{className:"w-3 h-3 text-yellow-600",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}):(0,l.jsx)("svg",{className:"w-3 h-3 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})})]}),(0,l.jsx)("div",{className:"p-1 bg-white",children:(0,l.jsx)("p",{className:"text-xs text-gray-600 truncate",title:e.name,children:e.name})})]},e.url)})})]})})}},9383:function(e,t,a){"use strict";a.d(t,{Ol:function(){return i},Zb:function(){return s},aY:function(){return c},ll:function(){return o}});var l=a(85893),r=a(67294),n=a(26806);let s=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});s.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});i.displayName="CardHeader";let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});o.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",a),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},31158:function(e,t,a){"use strict";a.d(t,{$N:function(){return h},Vq:function(){return o},cN:function(){return x},cZ:function(){return f},fK:function(){return m},hg:function(){return d}});var l=a(85893),r=a(67294),n=a(12854),s=a(41352),i=a(26806);let o=n.fC,d=n.xz,c=n.h_;n.x8;let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(n.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r})});u.displayName=n.aV.displayName;let f=r.forwardRef((e,t)=>{let{className:a,children:r,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(u,{}),(0,l.jsxs)(n.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
1nded-lg",a),...o,children:[r,(0,l.jsxs)(n.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(s.default,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.VY.displayName;let m=e=>{let{className:t,...a}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};m.displayName="DialogHeader";let x=e=>{let{className:t,...a}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};x.displayName="DialogFooter";let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(n.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...r})});h.displayName=n.Dx.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(n.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...r})});p.displayName=n.dk.displayName},49235:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var l=a(85893),r=a(67294),n=a(63452),s=a(26806);let i=r.forwardRef((e,t)=>{let{className:a,orientation:r="horizontal",decorative:i=!0,...o}=e;return(0,l.jsx)(n.f,{ref:t,decorative:i,orientation:r,className:(0,s.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...o})});i.displayName=n.f.displayName},42660:function(e,t,a){"use strict";a.d(t,{T:function(){return l}});let l={bookingHero:"bookingHero",homeGallery:"homeGallery"}},90064:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return p},default:function(){return g}});var l=a(85893),r=a(23112),n=a(16838),s=a(14685),i=a(9383),o=a(31158),d=a(49235),c=a(42660),u=a(61667),f=a(56967),m=a(67294),x=a(25675),h=a.n(x),p=!0;function g(){var e,t,a;let[x,p]=(0,m.useState)(!1),[g,v]=(0,m.useState)(""),{toast:j}=(0,f.pm)(),[y,w]=(0,m.useState)([]),[N]=(0,u.Kv)(),{data:b,refetch:C}=(0,u._f)({variables:{type:c.T.bookingHero}}),{data:k,refetch:z}=(0,u._f)({variables:{type:c.T.homeGallery}}),{homeGallery:R,bookingHero:_}=c.T,S=async(e,t)=>{if(e&&t.length)try{await N({variables:{type:e,content:t}}),p(!1),v(""),j({title:"Content updated successfully"}),w([]),e===_?C():e===R&&z()}catch(e){j({title:"Something went wrong updating content",description:"Please try again",variant:"destructive"})}},V=e=>{v(e),p(!0)};(0,m.useEffect)(()=>{var e,t,a,l;x&&(g===R?w((null==k?void 0:null===(e=k.findOne)||void 0===e?void 0:null===(t=e.content)||void 0===t?void 0:t.filter(e=>null!==e))||[]):g===_&&w((null==b?void 0:null===(a=b.findOne)||void 0===a?void 0:null===(l=a.content)||void 0===l?void 0:l.filter(e=>null!==e))||[]))},[x,g]);let O=e=>{w(e)};return(0,l.jsxs)(r.c,{children:[(0,l.jsx)(o.Vq,{open:x,onOpenChange:p,children:(0,l.jsxs)(o.cZ,{className:"max-h-[90vh] overflow-hidden flex flex-col",children:[(0,l.jsx)(o.fK,{children:(0,l.jsx)(o.$N,{children:"Manage Images"})}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,l.jsx)(n.M,{onSelect:O,maxSelect:g===R?8:1,selectedImageUrls:y})}),(0,l.jsx)(o.cN,{children:(0,l.jsx)(s.z,{onClick:()=>S(g,y),children:"Submit"})})]})}),(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold",children:"Content management"}),(0,l.jsxs)(i.Zb,{children:[(0,l.jsx)(i.Ol,{children:(0,l.jsx)("h2",{className:"text-lg font-semibold",children:"Booking Page Hero"})}),(0,l.jsxs)(i.aY,{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select the hero image that will be displayed on the booking page"}),(0,l.jsx)(s.z,{onClick:()=>V(_),children:"Select Image"})]}),(null==b?void 0:null===(e=b.findOne)||void 0===e?void 0:null===(t=e.content)||void 0===t?void 0:t[0])&&(0,l.jsx)("div",{className:"relative w-full h-48 rounded-lg overflow-hidden",children:(0,l.jsx)(h(),{src:b.findOne.content[0].replace(/.heic/g,".jpg"),alt:"Booking hero preview",className:"object-cover",fill:!0,sizes:"(max-width: 768px) 100vw, 50vw"})})]})]}),(0,l.jsx)(d.Z,{}),(0,l.jsxs)(i.Zb,{children:[(0,l.jsx)(i.Ol,{children:(0,l.jsx)("h2",{className:"text-lg font-semibold",children:"Home Page Gallery"})}),(0,l.jsxs)(i.aY,{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose 8 images to display in the home page gallery"}),(0,l.jsx)(s.z,{onClick:()=>V(R),children:"Select Images"})]}),(null==k?void 0:null===(a=k.findOne)||void 0===a?void 0:a.content)&&(0,l.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:k.findOne.content.map((e,t)=>(0,l.jsx)("div",{className:"relative aspect-square rounded-lg overflow-hidden",children:(0,l.jsx)(h(),{src:(null==e?void 0:e.replace(/.heic/g,".jpg"))||"",alt:"Gallery image ".concat(t+1),className:"object-cover",fill:!0,sizes:"(max-width: 768px) 50vw, 25vw"})},t))})]})]})]})]})}},63452:function(e,t,a){"use strict";a.d(t,{f:function(){return x}});var l=a(67294);a(73935);var r=a(28771),n=a(85893),s=l.forwardRef((e,t)=>
1{let{children:a,...r}=e,s=l.Children.toArray(a),o=s.find(d);if(o){let e=o.props.children,a=s.map(t=>t!==o?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,n.jsx)(i,{...r,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,a):null})}return(0,n.jsx)(i,{...r,ref:t,children:a})});s.displayName="Slot";var i=l.forwardRef((e,t)=>{let{children:a,...n}=e;if(l.isValidElement(a)){let e,s;let i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?a.ref:(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?a.props.ref:a.props.ref||a.ref,o=function(e,t){let a={...t};for(let l in t){let r=e[l],n=t[l],s=/^on[A-Z]/.test(l);s?r&&n?a[l]=(...e)=>{n(...e),r(...e)}:r&&(a[l]=r):"style"===l?a[l]={...r,...n}:"className"===l&&(a[l]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}(n,a.props);return a.type!==l.Fragment&&(o.ref=t?(0,r.F)(t,i):i),l.cloneElement(a,o)}return l.Children.count(a)>1?l.Children.only(null):null});i.displayName="SlotClone";var o=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function d(e){return l.isValidElement(e)&&e.type===o}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let a=l.forwardRef((e,a)=>{let{asChild:l,...r}=e,i=l?s:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(i,{...r,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),u="horizontal",f=["horizontal","vertical"],m=l.forwardRef((e,t)=>{let{decorative:a,orientation:l=u,...r}=e,s=f.includes(l)?l:u;return(0,n.jsx)(c.div,{"data-orientation":s,...a?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...r,ref:t})});m.displayName="Separator";var x=m}},function(e){e.O(0,[45738,95475,87066,61667,49774,92888,40179],function(){return e(e.s=12625)}),_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.