PageSourceSearch

https://www.vanzzz.co.uk/_next/static/chunks/pages/dashboard/extras-6bc2c0b1efd0c8cb.js

js vanzzz.co.uk collected 2026-10-07 19:32:25 UTC 38,896 bytes, 6 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]="af34c53a-a71e-417c-a475-ec590b698dd0",e._sentryDebugIdIdentifier="sentry-dbid-af34c53a-a71e-417c-a475-ec590b698dd0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53512],{13742:function(e,t,a){"use strict";a.r(t),a.d(t,{__iconNode:function(){return n},default:function(){return s}});var r=a(72919);/**
2 * @license lucide-react v0.525.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],s=(0,r.Z)("check",n)},10440:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/extras",function(){return a(39360)}])},23112:function(e,t,a){"use strict";a.d(t,{c:function(){return C}});var r=a(85893),n=a(25675),s=a.n(n),l=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:n,...s}=e;return(0,r.jsxs)(d.fC,{ref:t,className:(0,f.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...s,children:[n,(0,r.jsx)(b,{})]})});m.displayName=d.fC.displayName;let x=o.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(d.aV,{ref:t,className:(0,f.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...n})});x.displayName=d.aV.displayName;let p=d.ck,h=(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:n,...s}=e;return(0,r.jsxs)(d.xz,{ref:t,className:(0,f.cn)(h(),"group",a),...s,children:[n," ",(0,r.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 y=o.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.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),...n})});y.displayName=d.VY.displayName;let j=d.rU,b=o.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{className:(0,f.cn)("absolute left-0 top-full flex justify-center"),children:(0,r.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,...n})})});b.displayName=d.l_.displayName;let N=o.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.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),...n,children:(0,r.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})});N.displayName=d.z$.displayName;let v=[{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"}],w={href:"/api/auth/logout",text:"Logout",icon:(0,r.jsx)(l.default,{className:"text-xl mr-2"})},C=e=>{let{children:t}=e,a=(0,i.usePathname)();return(0,r.jsxs)("div",{className:"min-h-screen",children:[(0,r.jsx)("nav",{className:"border-b",children:(0,r.jsxs)("div",{className:"flex items-center justify-between px-6 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(s(),{src:"/small-logo.webp",width:40,height:40,alt:"logo",className:"mr-4"}),(0,r.jsx)(m,{children:(0,r.jsx)(x,{children:v.map(e=>{let t=a===e.href;return(0,r.jsx)(p,{children:(0,r.jsx)(j,{href:e.href,className:(0,f.cn)("flex items-center px-3 py-2",t&&"bg-accent"),children:(0,r.jsx)("span",{children:e.text})})},e.href)})})})]}),(0,r.jsx)(m,{children:(0,r.jsx)(x,{children:(0,r.jsx)(p,{children:(0,r.jsxs)(j,{href:w.href,className:"flex items-center px-3 py-2",children:[w.icon,(0,r.jsx)("span",{children:w.text})]})})})})]})}),(0,r.jsx)("main",{className:"p-6",children:t})]})}},80444:function(e,t,a){"use strict";a.d(t,{n:function(){return x}});var r=a(85893),n=a(9404),s=a(95052),l=a(20348),i=a(14685),o=a(67294);let d=()=>{let[e,t]=(0,o.useState)(null),a=e=>t(e),r=()=>t(null);return{currentAction:e,openDialog:a,closeDialog:r}};var c=a(31158),u=a(41664),f=a.n(u);let m=e=>{let{title:t,description:a,onConfirm:n,onCancel:s,confirmText:i="Confirm",confirmVariant:o="default"}=e;return(0,r.jsxs)(l._T,{children:[(0,r.jsxs)(l.fY,{children:[(0,r.jsx)(l.f$,{children:t}),(0,r.jsx)(l.yT,{children:a})]}),(0,r.jsxs)(l.xo,{children:[(0,r.jsx)(l.le,{onClick:s,children:"Cancel"}),(0,r.jsx)(l.OL,{onClick:n,className:"destructive"===o?"bg-red-600":"",children:i})]})]})},x=e=>{let{entity:t,actions:a,editDialog:u,editLink:x,manageImagesDialog:p}=e,{currentAction:h,openDialog:g,closeDialog:y}=d(),[j,b]=(0,o.useState)(!1),[N,v]=(0,o.useState)(!1);return t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.h_,{children:[(0,r.jsx)(s.$F,{asChild:!0,children:(0,r.jsx)(i.z,{variant:"ghost",className:"h-8 w-8 p-0",children:(0,r.jsx)(n.default,{className:"h-4 w-4"})})}),(0,r.jsxs)(s.AW,{align:"end",children:[(0,r.jsx)(s.Ju,{children:"Actions"}),x?(0,r.jsx)(s.Xi,{asChild:!0,children:(0,r.jsx)(f(),{href:x,children:"Edit"})}):u?(0,r.jsx)(s.Xi,{onSelect:()=>b(!0),children:"Edit"}):null,p&&(0,r.jsx)(s.Xi,{onSelect:()=>v(!0),children:"Manage images"}),Object.keys(a).map(e=>(0,r.jsx)(s.Xi,{onSelect:()=>g(e),className:"destructive"===a[e].confirmVariant?"text-red-600":void 0,children:a[e].confirmText},e))]})]}),h&&(0,r.jsx)(l.aR,{open:!!h,onOpenChange:e=>!e&&y(),children:(0,r.jsx)(m,{...a[h],onCancel:y})}),u&&(0,r.jsx)(c.Vq,{open:j,onOpenChange:b,children:(0,r.jsxs)(c.cZ,{children:[(0,r.jsx)(c.fK,{children:(0,r.jsx)(c.$N,{children:u.title})}),u.renderContent(()=>b(!1))]})}),p&&(0,r.jsx)(c.Vq,{open:N,onOpenChange:v,children:(0,r.jsxs)(c.cZ,{className:"max-h-[90vh] overflow-hidden flex flex-col ",children:[(0,r.jsx)(c.fK,{children:(0,r.jsx)(c.$N,{children:p.title})}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto",children:p.renderContent(()=>v(!1))}),(0,r.jsx)(c.cN,{children:(0,r.jsx)(i.z,{onClick:p.onConfirm,children:"Submit"})})]})})]}):null}},20348:function(e,t,a){"use strict";a.d(t,{OL:function(){return h},_T:function(){return u},aR:function(){return o},f$:function(){return x},fY:function(){return f},le:function(){return g},xo:function(){return m},yT:function(){return p}});var r=a(85893),n=a(67294),s=a(89532),l=a(26806),i=a(14685);let o=s.fC;s.xz;let d=s.h_,c=n.forwardRef((e,t)=>
6{let{className:a,...n}=e;return(0,r.jsx)(s.aV,{className:(0,l.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),...n,ref:t})});c.displayName=s.aV.displayName;let u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(s.VY,{ref:t,className:(0,l.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:rounded-lg",a),...n})]})});u.displayName=s.VY.displayName;let f=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};f.displayName="AlertDialogHeader";let m=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};m.displayName="AlertDialogFooter";let x=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold",a),...n})});x.displayName=s.Dx.displayName;let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...n})});p.displayName=s.dk.displayName;let h=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.aU,{ref:t,className:(0,l.cn)((0,i.d)(),a),...n})});h.displayName=s.aU.displayName;let g=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.$j,{ref:t,className:(0,l.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",a),...n})});g.displayName=s.$j.displayName},98141:function(e,t,a){"use strict";a.d(t,{X:function(){return o}});var r=a(85893),n=a(67294),s=a(46069),l=a(13742),i=a(26806);let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.fC,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...n,children:(0,r.jsx)(s.z$,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(l.default,{className:"h-4 w-4"})})})});o.displayName=s.fC.displayName},4992:function(e,t,a){"use strict";a.d(t,{w:function(){return g}});var r=a(85893),n=a(50381),s=a(67294),l=a(26806);let i=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-auto",children:(0,r.jsx)("table",{ref:t,className:(0,l.cn)("w-full caption-bottom text-sm",a),...n})})});i.displayName="Table";let o=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("thead",{ref:t,className:(0,l.cn)("[&_tr]:border-b",a),...n})});o.displayName="TableHeader";let d=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("tbody",{ref:t,className:(0,l.cn)("[&_tr:last-child]:border-0",a),...n})});d.displayName="TableBody";let c=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("tfoot",{ref:t,className:(0,l.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...n})});c.displayName="TableFooter";let u=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("tr",{ref:t,className:(0,l.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...n})});u.displayName="TableRow";let f=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("th",{ref:t,className:(0,l.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});f.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("td",{ref:t,className:(0,l.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});m.displayName="TableCell";let x=s.forwardRef((e,t)=>
6{let{className:a,...n}=e;return(0,r.jsx)("caption",{ref:t,className:(0,l.cn)("mt-4 text-sm text-muted-foreground",a),...n})});x.displayName="TableCaption";var p=a(74094),h=a(27060);let g=e=>{var t;let{columns:a,data:l}=e,[c,x]=(0,s.useState)([]),[g,y]=(0,s.useState)([]),j=(0,p.b7)({data:l,columns:a,getCoreRowModel:(0,h.sC)(),onSortingChange:x,getSortedRowModel:(0,h.tj)(),state:{sorting:c,globalFilter:g},onGlobalFilterChange:y,getFilteredRowModel:(0,h.vL)()});return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"flex items-center pb-4",children:(0,r.jsx)(n.I,{placeholder:"Filter",value:null!=g?g:"",onChange:e=>j.setGlobalFilter(String(e.target.value)),className:"max-w-sm"})}),(0,r.jsxs)(i,{children:[(0,r.jsx)(o,{children:j.getHeaderGroups().map(e=>(0,r.jsx)(u,{children:e.headers.map(e=>(0,r.jsx)(f,{className:"p-4 text-left font-bold",children:e.isPlaceholder?null:(0,p.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,r.jsx)(d,{children:(null===(t=j.getRowModel().rows)||void 0===t?void 0:t.length)?j.getRowModel().rows.map(e=>(0,r.jsx)(u,{"data-state":e.getIsSelected()&&"selected",className:"border-t border-gray-300 hover:bg-gray-50",children:e.getVisibleCells().map((e,t)=>(0,r.jsx)(m,{className:"p-4",children:(0,p.ie)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,r.jsx)(u,{children:(0,r.jsx)(m,{colSpan:a.length+1,className:"h-24 text-center",children:"No results."})})})]})]})}},31158:function(e,t,a){"use strict";a.d(t,{$N:function(){return p},Vq:function(){return o},cN:function(){return x},cZ:function(){return f},fK:function(){return m},hg:function(){return d}});var r=a(85893),n=a(67294),s=a(12854),l=a(41352),i=a(26806);let o=s.fC,d=s.xz,c=s.h_;s.x8;let u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.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),...n})});u.displayName=s.aV.displayName;let f=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(u,{}),(0,r.jsxs)(s.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:rounded-lg",a),...o,children:[n,(0,r.jsxs)(s.x8,{className:"absolute right-4 top-4 roun
6ded-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,r.jsx)(l.default,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=s.VY.displayName;let m=e=>{let{className:t,...a}=e;return(0,r.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,r.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 p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...n})});p.displayName=s.Dx.displayName;let h=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...n})});h.displayName=s.dk.displayName},95052:function(e,t,a){"use strict";a.d(t,{$F:function(){return u},AW:function(){return x},Ju:function(){return y},Xi:function(){return p},h_:function(){return c}});var r=a(85893),n=a(67294),s=a(93133),l=a(64998),i=a(13742),o=a(50316),d=a(26806);let c=s.fC,u=s.xz;s.ZA,s.Uv,s.Tr,s.Ee;let f=n.forwardRef((e,t)=>{let{className:a,inset:n,children:i,...o}=e;return(0,r.jsxs)(s.fF,{ref:t,className:(0,d.cn)("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",n&&"pl-8",a),...o,children:[i,(0,r.jsx)(l.default,{className:"ml-auto"})]})});f.displayName=s.fF.displayName;let m=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.tu,{ref:t,className:(0,d.cn)("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),...n})});m.displayName=s.tu.displayName;let x=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...l}=e;return(0,r.jsx)(s.Uv,{children:(0,r.jsx)(s.VY,{ref:t,sideOffset:n,className:(0,d.cn)("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),...l})})});x.displayName=s.VY.displayName;let p=n.forwardRef((e,t)=>{let{className:a,inset:n,...l}=e;return(0,r.jsx)(s.ck,{ref:t,className:(0,d.cn)("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",n&&"pl-8",a),...l})});p.displayName=s.ck.displayName;let h=n.forwardRef((e,t)=>{let{className:a,children:n,checked:l,...o}=e;return(0,r.jsxs)(s.oC,{ref:t,className:(0,d.cn)("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:l,...o,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.wU,{children:(0,r.jsx)(i.default,{className:"h-4 w-4"})})}),n]})});h.displayName=s.oC.displayName;let g=n.forwardRef((e,t)=>{let{className:a,children:n,...l}=e;return(0,r.jsxs)(s.Rk,{ref:t,className:(0,d.cn)("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),...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.wU,{children:(0,r.jsx)(o.default,{className:"h-2 w-2 fill-current"})})}),n]})});g.displayName=s.Rk.displayName;let y=n.forwardRef((e,t)=>
6{let{className:a,inset:n,...l}=e;return(0,r.jsx)(s.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",a),...l})});y.displayName=s.__.displayName;let j=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});j.displayName=s.Z0.displayName;let b=e=>{let{className:t,...a}=e;return(0,r.jsx)("span",{className:(0,d.cn)("ml-auto text-xs tracking-widest opacity-60",t),...a})};b.displayName="DropdownMenuShortcut"},32383:function(e,t,a){"use strict";a.d(t,{l0:function(){return f},NI:function(){return j},Wi:function(){return x},xJ:function(){return g},lX:function(){return y},zG:function(){return N}});var r=a(85893),n=a(67294),s=a(88426),l=a(87536),i=a(26806),o=a(49102),d=a(12003);let c=(0,d.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.f,{ref:t,className:(0,i.cn)(c(),a),...n})});u.displayName=o.f.displayName;let f=l.RV,m=n.createContext({}),x=e=>{let{...t}=e;return(0,r.jsx)(m.Provider,{value:{name:t.name},children:(0,r.jsx)(l.Qr,{...t})})},p=()=>{let e=n.useContext(m),t=n.useContext(h),{getFieldState:a,formState:r}=(0,l.Gc)(),s=a(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...s}},h=n.createContext({}),g=n.forwardRef((e,t)=>{let{className:a,...s}=e,l=n.useId();return(0,r.jsx)(h.Provider,{value:{id:l},children:(0,r.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",a),...s})})});g.displayName="FormItem";let y=n.forwardRef((e,t)=>{let{className:a,...n}=e,{error:s,formItemId:l}=p();return(0,r.jsx)(u,{ref:t,className:(0,i.cn)(s&&"text-destructive",a),htmlFor:l,...n})});y.displayName="FormLabel";let j=n.forwardRef((e,t)=>{let{...a}=e,{error:n,formItemId:l,formDescriptionId:i,formMessageId:o}=p();return(0,r.jsx)(s.g7,{ref:t,id:l,"aria-describedby":n?"".concat(i," ").concat(o):"".concat(i),"aria-invalid":!!n,...a})});j.displayName="FormControl";let b=n.forwardRef((e,t)=>{let{className:a,...n}=e,{formDescriptionId:s}=p();return(0,r.jsx)("p",{ref:t,id:s,className:(0,i.cn)("text-[0.8rem] text-muted-foreground",a),...n})});b.displayName="FormDescription";let N=n.forwardRef((e,t)=>{let{className:a,children:n,...s}=e,{error:l,formMessageId:o}=p(),d=l?String(null==l?void 0:l.message):n;return d?(0,r.jsx)("p",{ref:t,id:o,className:(0,i.cn)("text-[0.8rem] font-medium text-destructive",a),...s,children:d}):null});N.displayName="FormMessage"},50381:function(e,t,a){"use strict";a.d(t,{I:function(){return l}});var r=a(85893),n=a(67294),s=a(26806);let l=n.forwardRef((e,t)=>{let{className:a,type:n,...l}=e;return(0,r.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:t,...l})});l.displayName="Input"},49128:function(e,t,a){"use strict";a.d(t,{Bw:function(){return p},Ph:function(){return c},Ql:function(){return g},i4:function(){return f},ki:function(){return u}});var r=a(85893),n=a(67294),s=a(95059),l=a(8971),i=a(84979),o=a(13742),d=a(26806);let c=s.fC;s.ZA;let u=s.B4,f=n.forwardRef((e,t)=>{let{className:a,children:n,...i}=e;return(0,r.jsxs)(s.xz,{ref:t,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...i,children:[n,(0,r.jsx)(s.JO,{asChild:!0,children:(0,r.jsx)(l.default,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=s.xz.displayName;let m=n.forwardRef((e,t)=>
6{let{className:a,...n}=e;return(0,r.jsx)(s.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,r.jsx)(i.default,{className:"h-4 w-4"})})});m.displayName=s.u_.displayName;let x=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,r.jsx)(l.default,{className:"h-4 w-4"})})});x.displayName=s.$G.displayName;let p=n.forwardRef((e,t)=>{let{className:a,children:n,position:l="popper",...i}=e;return(0,r.jsx)(s.h_,{children:(0,r.jsxs)(s.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...i,children:[(0,r.jsx)(m,{}),(0,r.jsx)(s.l_,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,r.jsx)(x,{})]})})});p.displayName=s.VY.displayName;let h=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",a),...n})});h.displayName=s.__.displayName;let g=n.forwardRef((e,t)=>{let{className:a,children:n,...l}=e;return(0,r.jsxs)(s.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...l,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.wU,{children:(0,r.jsx)(o.default,{className:"h-4 w-4"})})}),(0,r.jsx)(s.eT,{children:n})]})});g.displayName=s.ck.displayName;let y=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});y.displayName=s.Z0.displayName},39360:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return R},default:function(){return k}});var r=a(85893),n=a(67294),s=a(31158),l=a(14685),i=a(32383),o=a(50381),d=a(61667),c=a(56312),u=a(87536),f=a(1604);let m=f.z.object({name:f.z.string().min(1),pricingType:f.z.enum([d._H.Fixed,d._H.Daily]),initialDailyPrice:f.z.number().min(0),fixedPrice:f.z.number().min(0),subsequentDailyPrice:f.z.number().min(0)});var x=a(49128),p=a(98141);let h=e=>{let{onConfirm:t,defaultValues:a={name:"",pricingType:d._H.Fixed,initialDailyPrice:0,fixedPrice:0,subsequentDailyPrice:0}}=e,s=(0,u.cI)({resolver:(0,c.F)(m),defaultValues:a}),f=e=>{t({...e})},[h,g]=(0,n.useState)(0!==a.subsequentDailyPrice);return(0,r.jsx)(i.l0,{...s,children:(0,r.jsxs)("form",{onSubmit:s.handleSubmit(f),className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(i.Wi,{control:s.control,name:"name",render:e=>{let{field:t}=e;return(0,r.jsxs)(i.xJ,{children:[(0,r.jsx)(i.lX,{children:"Name"}),(0,r.jsx)(i.NI,{children:(0,r.jsx)(o.I,{placeholder:"Enter name",...t})}),(0,r.jsx)(i.zG,{})]})}}),(0,r.jsx)(i.Wi,{control:s.control,name:"pricingType",render:e=>{let{field:t}=e;return(0,r.jsxs)(i.xJ,{children:[(0,r.jsx)(i.lX,{children:"Price type"}),(0,r.jsx)(i.NI,{children:(0,r.jsxs)(x.Ph,{value:t.value,onValueChange:e=>{t.onChange(e),e===d._H.Fixed&&g(!1)},children:[(0,r.jsx)(x.i4,{children:(0,r.jsx)(x.ki,{placeholder:"Select pricing type"})}),(0,r.jsxs)(x.Bw,{children:[(0,r.jsx)(x.Ql,{value:d._H.Fixed,children:"Fixed"}),(0,r.jsx)(x.Ql,{value:d._H.Daily,children:"Daily"})]})]})}),(0,r.jsx)(i.zG,{})]})}}),s.getValues("pricingType")===d._H.Daily&&(0,r.jsx)(i.Wi,{control:s.control,name:"initialDailyPrice",render:e=>{let{field:t}=e;return(0,r.jsxs)(i.xJ,{children:[(0,r.jsx)(i.lX,{children:"Initial Daily Price"}),(0,r.jsx)(i.NI,{children:(0,r.jsx)(o.I,{...t,placeholder:"Enter initial daily price",onChange:e=>
6{t.onChange(Number(e.target.value))}})}),(0,r.jsx)(i.zG,{})]})}}),s.getValues("pricingType")===d._H.Daily&&(0,r.jsx)(i.xJ,{children:(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(p.X,{id:"subsequentPrice",onCheckedChange:e=>{g(e),e||s.setValue("subsequentDailyPrice",0)},defaultChecked:0!==s.watch("subsequentDailyPrice")}),(0,r.jsx)("label",{htmlFor:"subsequentPrice",className:"text-sm font-medium leading-none",children:"Add subsequent daily price"})]})}),s.getValues("pricingType")===d._H.Daily&&h&&(0,r.jsx)(i.Wi,{control:s.control,name:"subsequentDailyPrice",render:e=>{let{field:t}=e;return(0,r.jsxs)(i.xJ,{children:[(0,r.jsx)(i.lX,{children:"Subsequent daily price (after 3 days)"}),(0,r.jsx)(i.NI,{children:(0,r.jsx)(o.I,{...t,placeholder:"Enter subsequent daily price",onChange:e=>{t.onChange(Number(e.target.value))}})}),(0,r.jsx)(i.zG,{})]})}}),s.getValues("pricingType")===d._H.Fixed&&(0,r.jsx)(i.Wi,{control:s.control,name:"fixedPrice",render:e=>{let{field:t}=e;return(0,r.jsxs)(i.xJ,{children:[(0,r.jsx)(i.lX,{children:"Fixed Price"}),(0,r.jsx)(i.NI,{children:(0,r.jsx)(o.I,{...t,placeholder:"Enter fixed price",onChange:e=>{t.onChange(Number(e.target.value))}})}),(0,r.jsx)(i.zG,{})]})}})]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(l.z,{type:"submit",children:"Submit"})})]})})};var g=a(56967);let y=e=>{let{trigger:t}
6=e,[a,l]=(0,n.useState)(!1),[i]=(0,d.Tk)(),{refetch:o}=(0,d.Jc)(),{toast:c}=(0,g.pm)(),u=async e=>{try{await i({variables:{createExtraInput:e}}),c({title:"Extra created"}),l(!1),o()}catch(e){c({title:"Something went wrong, please try again",variant:"destructive"})}};return(0,r.jsxs)(s.Vq,{open:a,onOpenChange:l,children:[(0,r.jsx)(s.hg,{asChild:!0,children:t}),(0,r.jsxs)(s.cZ,{children:[(0,r.jsx)(s.fK,{children:(0,r.jsx)(s.$N,{children:"Create extra"})}),(0,r.jsx)(h,{onConfirm:u})]})]})};var j=a(23112),b=a(4992),N=a(80444),v=a(61932);let w=e=>{var t,a,s,l,i;let{extra:o,onEdit:c,onDelete:u}=e,f=(0,n.useMemo)(()=>({delete:{title:"Delete extra",description:"This action cannot be undone. Are you sure you want to delete this extra?",confirmText:"Delete",confirmVariant:"destructive",onConfirm:async()=>{await u(o.id)}}}),[o,c,u]);return(0,r.jsx)(N.n,{entity:o,actions:f,editDialog:{title:"Edit Extra",renderContent:e=>(0,r.jsx)(h,{onConfirm:async t=>{await c(o.id,t),e()},defaultValues:{name:null!==(t=o.name)&&void 0!==t?t:"",pricingType:null!==(a=o.pricingType)&&void 0!==a?a:d._H.Fixed,initialDailyPrice:null!==(s=o.initialDailyPrice)&&void 0!==s?s:0,fixedPrice:null!==(l=o.fixedPrice)&&void 0!==l?l:0,subsequentDailyPrice:null!==(i=o.subsequentDailyPrice)&&void 0!==i?i:0}})}})},C=e=>{let{onDelete:t,onEdit:a}=e;return[{accessorKey:"name",header:e=>{let{column:t}=e;return(0,r.jsxs)(l.z,{className:"px-0 hover:bg-transparent",variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Name",(0,r.jsx)(v.default,{className:"ml-2 h-4 w-4"})]})}},{accessorKey:"pricingType",header:e=>{let{column:t}=e;return(0,r.jsxs)(l.z,{className:"px-0 hover:bg-transparent",variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Price type",(0,r.jsx)(v.default,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e,a=t.original;return(0,r.jsx)("div",{children:a.pricingType===d._H.Fixed?"Fixed":"Daily"})}},{accessorKey:"fixedPrice",header:"Fixed price",cell:e=>{let{row:t}=e,a=t.original,n=a.pricingType===d._H.Fixed;return(0,r.jsx)("div",{className:n?"":"text-gray-400",children:n?"\xa3".concat(a.fixedPrice):"N/A"})}},{accessorKey:"initialDailyPrice",header:"Initial daily price",cell:e=>{let{row:t}=e,a=t.original,n=a.pricingType===d._H.Daily;return(0,r.jsx)("div",{className:n?"":"text-gray-400",children:n?"\xa3".concat(a.initialDailyPrice):"N/A"})}},{accessorKey:"subsequentDailyPrice",header:"Subsequent daily price (after 3 days)",cell:e=>{let{row:t}=e,a=t.original,n=a.pricingType===d._H.Daily&&0!==a.subsequentDailyPrice;return(0,r.jsx)("div",{className:n?"":"text-gray-400",children:n?"\xa3".concat(a.subsequentDailyPrice):"N/A"})}},{id:"actions",cell:e=>{let{row:n}=e;return(0,r.jsx)(w,{extra:n.original,onDelete:t,onEdit:a})}}]};var R=!0;function k(){let{data:e,refetch:t}=(0,d.Jc)(),[a]=(0,d.ZN)(),[n]=(0,d.qK)(),{toast:s}=(0,g.pm)(),i=async(e,r)=>{try{await a({variables:{updateExtraId:e,updateExtraInput:r}}),s({title:"Van variation updated",variant:"default"}),t()}catch(e){s({title:"Something went wrong, please try again",variant:"destructive"})}},o=async e=>{try{await n({variables:{removeExtraId:e}}),s({title:"Extra deleted",variant:"default"}),t()}catch(e){s({title:"Something went wrong, please try again",variant:"destructive"})}};return e?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(j.c,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-5",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:"Extras"}),(0,r.jsx)(y,{trigger:(0,r.jsx)(l.z,{children:"Create"})})]}),(0,r.jsx)(b.w,{columns:C({onDelete:o,onEdit:i}),data:null==e?void 0:e.extras})]})}):null}},42614:function(e,t,a){"use strict";function r(e,[t,a]){return Math.min(a,Math.max(t,e))}a.d(t,{u:function(){return r}})},46069:function(e,t,a){"use strict";a.d(t,{fC:function(){return C},z$:function(){return R}});var r=a(67294),n=a(28771),s=a(25360),l=a(36206),i=a(77342),o=a(57898),d=a(7546),c=a(29115),u=a(75320),f=a(85893),m="Checkbox",[x,p]=(0,s.b)(m),[h,g]=x(m),y=r.forwardRef((e,t)=>{let{__scopeCheckbox:a,name:s,checked:o,defaultChecked:d,required:c,disabled:m,value:x="on",onCheckedChange:p,form:g,...y}=e,[j,b]=r.useState(null),C=(0,n.e)(t,e=>b(e)),R=r.useRef(!1),k=!j||g||!!j.closest("form"),[D=!1,_]=(0,i.T)({prop:o,defaultProp:d,onChange:p}),z=r.useRef(D);return r.useEffect(()=>{let e=j?.form;if(e){let t=()=>_(z.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[j,_]),(0,f.jsxs)(h,{scope:a,state:D,disabled:m,children:[(0,f.jsx)(u.WV.button,{type:"button",role:"checkbox","aria-checked":v(D)?"mixed":D,"aria-required":c,"data-state":w(D),"data-disabled":m?"":void 0,disabled:m,value:x,...y,ref:C,onKeyDown:(0,l.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.M)(e.onClick,e=>{_(e=>!!v(e)||!e),k&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),k&&(0,f.jsx)(N,{control:j,bubbles:!R.current,name:s,value:x,checked:D,required:c,disabled:m,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!v(d)&&d})]})});y.displayName=m;var j="CheckboxIndicator",b=r.forwardRef((e,t)=>
6{let{__scopeCheckbox:a,forceMount:r,...n}=e,s=g(j,a);return(0,f.jsx)(c.z,{present:r||v(s.state)||!0===s.state,children:(0,f.jsx)(u.WV.span,{"data-state":w(s.state),"data-disabled":s.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=j;var N=e=>{let{control:t,checked:a,bubbles:n=!0,defaultChecked:s,...l}=e,i=r.useRef(null),c=(0,o.D)(a),u=(0,d.t)(t);r.useEffect(()=>{let e=i.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked"),s=r.set;if(c!==a&&s){let t=new Event("click",{bubbles:n});e.indeterminate=v(a),s.call(e,!v(a)&&a),e.dispatchEvent(t)}},[c,a,n]);let m=r.useRef(!v(a)&&a);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s??m.current,...l,tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function v(e){return"indeterminate"===e}function w(e){return v(e)?"indeterminate":e?"checked":"unchecked"}var C=y,R=b},66681:function(e,t,a){"use strict";a.d(t,{Pc:function(){return N},ck:function(){return I},fC:function(){return F}});var r=a(67294),n=a(36206),s=a(65936),l=a(28771),i=a(25360),o=a(91276),d=a(75320),c=a(79698),u=a(77342),f=a(78990),m=a(85893),x="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,y,j]=(0,s.B)(h),[b,N]=(0,i.b)(h,[j]),[v,w]=b(h),C=r.forwardRef((e,t)=>(0,m.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(R,{...e,ref:t})})}));C.displayName=h;var R=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:s,loop:i=!1,dir:o,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:j,onEntryFocus:b,preventScrollOnEntryFocus:N=!1,...w}=e,C=r.useRef(null),R=(0,l.e)(t,C),k=(0,f.gm)(o),[D=null,_]=(0,u.T)({prop:h,defaultProp:g,onChange:j}),[F,I]=r.useState(!1),P=(0,c.W)(b),T=y(a),E=r.useRef(!1),[S,V]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(x,P),()=>e.removeEventListener(x,P)},[P]),(0,m.jsx)(v,{scope:a,orientation:s,dir:k,loop:i,currentTabStopId:D,onItemFocus:r.useCallback(e=>_(e),[_]),onItemShiftTab:r.useCallback(()=>I(!0),[]),onFocusableItemAdd:r.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>V(e=>e-1),[]),children:(0,m.jsx)(d.WV.div,{tabIndex:F||0===S?-1:0,"data-orientation":s,...w,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,n.M)(e.onMouseDown,()=>{E.current=!0}),onFocus:(0,n.M)(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!F){let t=new CustomEvent(x,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable),t=e.find(e=>e.active),a=e.find(e=>e.id===D),r=[t,a,...e].filter(Boolean),n=r.map(e=>e.ref.current);z(n,N)}}E.current=!1}),onBlur:(0,n.M)(e.onBlur,()=>I(!1))})})}),k="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:s=!0,active:l=!1,tabStopId:i,...c}=e,u=(0,o.M)(),f=i||u,x=w(k,a),p=x.currentTabStopId===f,h=y(a),{onFocusableItemAdd:j,onFocusableItemRemove:b}=x;return r.useEffect(()=>{if(s)return j(),()=>b()},[s,j,b]),(0,m.jsx)(g.ItemSlot,{scope:a,id:f,focusable:s,active:l,children:(0,m.jsx)(d.WV.span,{tabIndex:p?0:-1,"data-orientation":x.orientation,...c,ref:t,onMouseDown:(0,n.M)(e.onMouseDown,e=>{s?x.onItemFocus(f):e.preventDefault()}),onFocus:(0,n.M)(e.onFocus,()=>x.onItemFocus(f)),onKeyDown:(0,n.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){x.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,a){var r;let n=(r=e.key,"rtl"!==a?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return _[n]}(e,x.orientation,x.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable),s=n.map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var a,r;"prev"===t&&s.reverse();let n=s.indexOf(e.currentTarget);s=x.loop?(a=s,r=n+1,a.map((e,t)=>a[(r+t)%a.length])):s.slice(n+1)}setTimeout(()=>z(s))}})})})});D.displayName=k;var _={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function z(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}var F=C,I=D}},function(e){e.O(0,[45738,95475,87536,33397,77763,74094,18550,5307,61667,49774,92888,40179],function(){return e(e.s=10440)}),_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.