PageSourceSearch

https://www.vanzzz.co.uk/_next/static/chunks/pages/dashboard/customers-d30434994ece215c.js

js vanzzz.co.uk collected 2026-10-07 19:32:24 UTC 9,178 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]="e5e78bf2-c4c5-4365-98df-8ad93ee28737",e._sentryDebugIdIdentifier="sentry-dbid-e5e78bf2-c4c5-4365-98df-8ad93ee28737")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41525],{30942:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/customers",function(){return a(78541)}])},23112:function(e,t,a){"use strict";a.d(t,{c:function(){return _}});var r=a(85893),s=a(25675),l=a.n(s),n=a(78051),o=a(39332),d=a(67294),i=a(28116),c=a(12003),f=a(8971),m=a(26806);let u=d.forwardRef((e,t)=>{let{className:a,children:s,...l}=e;return(0,r.jsxs)(i.fC,{ref:t,className:(0,m.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...l,children:[s,(0,r.jsx)(j,{})]})});u.displayName=i.fC.displayName;let x=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.aV,{ref:t,className:(0,m.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...s})});x.displayName=i.aV.displayName;let h=i.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"),b=d.forwardRef((e,t)=>{let{className:a,children:s,...l}=e;return(0,r.jsxs)(i.xz,{ref:t,className:(0,m.cn)(p(),"group",a),...l,children:[s," ",(0,r.jsx)(f.default,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});b.displayName=i.xz.displayName;let g=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.VY,{ref:t,className:(0,m.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),...s})});g.displayName=i.VY.displayName;let N=i.rU,j=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{className:(0,m.cn)("absolute left-0 top-full flex justify-center"),children:(0,r.jsx)(i.l_,{className:(0,m.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,...s})})});j.displayName=i.l_.displayName;let w=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.z$,{ref:t,className:(0,m.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),...s,children:(0,r.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})});w.displayName=i.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"}],y={href:"/api/auth/logout",text:"Logout",icon:(0,r.jsx)(n.default,{className:"text-xl mr-2"})},_=e=>{let{children:t}=e,a=(0,o.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)(l(),{src:"/small-logo.webp",width:40,height:40,alt:"logo",className:"mr-4"}),(0,r.jsx)(u,{children:(0,r.jsx)(x,{children:v.map(e=>{let t=a===e.href;return(0,r.jsx)(h,{children:(0,r.jsx)(N,{href:e.href,className:(0,m.cn)("flex items-center px-3 py-2",t&&"bg-accent"),children:(0,r.jsx)("span",{children:e.text})})},e.href)})})})]}),(0,r.jsx)(u,{children:(0,r.jsx)(x,{children:(0,r.jsx)(h,{children:(0,r.jsxs)(N,{href:y.href,className:"flex items-center px-3 py-2",children:[y.icon,(0,r.jsx)("span",{children:y.text})]})})})})]})}),(0,r.jsx)("main",{className:"p-6",children:t})]})}},4992:function(e,t,a){"use strict";a.d(t,{w:function(){return b}});var r=a(85893),s=a(50381),l=a(67294),n=a(26806);let o=l.forwardRef((e,t)=>
1{let{className:a,...s}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-auto",children:(0,r.jsx)("table",{ref:t,className:(0,n.cn)("w-full caption-bottom text-sm",a),...s})})});o.displayName="Table";let d=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("thead",{ref:t,className:(0,n.cn)("[&_tr]:border-b",a),...s})});d.displayName="TableHeader";let i=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tbody",{ref:t,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...s})});i.displayName="TableBody";let c=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tfoot",{ref:t,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...s})});c.displayName="TableFooter";let f=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tr",{ref:t,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...s})});f.displayName="TableRow";let m=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("th",{ref:t,className:(0,n.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),...s})});m.displayName="TableHead";let u=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("td",{ref:t,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...s})});u.displayName="TableCell";let x=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("caption",{ref:t,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...s})});x.displayName="TableCaption";var h=a(74094),p=a(27060);let b=e=>{var t;let{columns:a,data:n}=e,[c,x]=(0,l.useState)([]),[b,g]=(0,l.useState)([]),N=(0,h.b7)({data:n,columns:a,getCoreRowModel:(0,p.sC)(),onSortingChange:x,getSortedRowModel:(0,p.tj)(),state:{sorting:c,globalFilter:b},onGlobalFilterChange:g,getFilteredRowModel:(0,p.vL)()});return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"flex items-center pb-4",children:(0,r.jsx)(s.I,{placeholder:"Filter",value:null!=b?b:"",onChange:e=>N.setGlobalFilter(String(e.target.value)),className:"max-w-sm"})}),(0,r.jsxs)(o,{children:[(0,r.jsx)(d,{children:N.getHeaderGroups().map(e=>(0,r.jsx)(f,{children:e.headers.map(e=>(0,r.jsx)(m,{className:"p-4 text-left font-bold",children:e.isPlaceholder?null:(0,h.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,r.jsx)(i,{children:(null===(t=N.getRowModel().rows)||void 0===t?void 0:t.length)?N.getRowModel().rows.map(e=>(0,r.jsx)(f,{"data-state":e.getIsSelected()&&"selected",className:"border-t border-gray-300 hover:bg-gray-50",children:e.getVisibleCells().map((e,t)=>(0,r.jsx)(u,{className:"p-4",children:(0,h.ie)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,r.jsx)(f,{children:(0,r.jsx)(u,{colSpan:a.length+1,className:"h-24 text-center",children:"No results."})})})]})]})}},50381:function(e,t,a){"use strict";a.d(t,{I:function(){return n}});var r=a(85893),s=a(67294),l=a(26806);let n=s.forwardRef((e,t)=>{let{className:a,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,l.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,...n})});n.displayName="Input"},78541:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return d},default:function(){return i}});var r=a(85893),s=a(23112),l=a(4992),n=a(61667);let o=[{accessorKey:"name",header:"Name"},{accessorKey:"email",header:"Email"},{accessorKey:"phone",header:"Phone"},{accessorKey:"bookings",header:"Bookings",cell:e=>{var t;let{row:a}=e,r=a.original.bookings;return null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0}}];var d=!0;function i(){let{data:e}=(0,n.zQ)();return(0,r.jsxs)(s.c,{children:[(0,r.jsx)("div",{className:"flex justify-between items-center mb-5",children:(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:"Customers"})}),e&&(0,r.jsx)(l.w,{data:e.users,columns:o})]})}}},function(e){e.O(0,[45738,95475,74094,61667,49774,92888,40179],function(){return e(e.s=30942)}),_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.