403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/philiprehberger-nextjs/.next/static/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/philiprehberger-nextjs/.next/static/chunks/780-15fee00ed1100974.js
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[780],{213:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var r=l(2115);let a=r.forwardRef(function(e,t){let{title:l,titleId:a,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},s),l?r.createElement("title",{id:a},l):null,r.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",clipRule:"evenodd"}))})},663:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{isOpen:t,onClose:l,content:a,title:s}=e;return t?(0,r.jsx)("div",{className:"bg-opacity-50 fixed inset-0 z-50 flex items-center justify-center bg-black p-4",onClick:e=>{e.target===e.currentTarget&&l()},children:(0,r.jsxs)("div",{className:"flex max-h-[90vh] w-full max-w-4xl flex-col rounded-lg bg-white shadow-xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 p-6",children:[(0,r.jsx)("h3",{className:"text-lg font-medium text-gray-900",children:s}),(0,r.jsx)("button",{onClick:l,className:"text-gray-400 transition-colors hover:text-gray-600",children:(0,r.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-6",children:(0,r.jsx)("pre",{className:"overflow-auto rounded-lg bg-gray-50 p-4 font-mono text-sm whitespace-pre-wrap text-gray-800",children:(e=>{try{let t=JSON.parse(e);return JSON.stringify(t,null,2)}catch(t){return e}})(a)})}),(0,r.jsx)("div",{className:"flex justify-end border-t border-gray-200 p-6",children:(0,r.jsx)("button",{onClick:l,className:"rounded-md bg-gray-600 px-4 py-2 text-white transition-colors hover:bg-gray-700",children:"Close"})})]})}):null}l(2115)},695:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(5239),s=l(8088);function n(e){let{vehicleIconId:t,size:l=32}=e,n=(0,s.n)(t);return n?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(a.default,{src:"/public/images/vehicles/".concat(n.filename),alt:n.label,width:l,height:l}),(0,r.jsx)("span",{children:n.label})]}):null}},1073:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155);l(2115);let a={success:{bg:"bg-green-100",text:"text-green-800",defaultLabel:"Success"},error:{bg:"bg-red-100",text:"text-red-800",defaultLabel:"Failed"},warning:{bg:"bg-yellow-100",text:"text-yellow-800",defaultLabel:"Warning"},info:{bg:"bg-blue-100",text:"text-blue-800",defaultLabel:"Info"},neutral:{bg:"bg-gray-100",text:"text-gray-800",defaultLabel:"Pending"}};function s(e){let{type:t,label:l,className:s=""}=e,n=a[t];return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ".concat(n.bg," ").concat(n.text," ").concat(s),children:l||n.defaultLabel})}},1166:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2821);l(2115);let s={primary:"bg-blue-100 text-blue-700 hover:bg-blue-200 border-transparent",success:"bg-green-100 text-green-700 hover:bg-green-200 border-transparent",danger:"bg-red-100 text-red-700 hover:bg-red-200 border-transparent",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200 border-transparent"};function n(e){let{children:t,variant:l="primary",loading:n=!1,disabled:i,hoverText:o,className:c,...d}=e;return(0,r.jsx)("button",{...d,title:o,disabled:i||n,className:(0,a.A)("inline-flex items-center rounded-md border px-3 py-1 text-sm font-medium disabled:opacity-50 cursor-pointer",s[l],c),children:n?"Loading...":t})}},1480:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155);l(2115);var a=l(3107);function s(e){let{title:t,subtitle:l}=e;return(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)(a.default,{title:t}),(0,r.jsx)("h1",{className:"mb-2 text-3xl font-bold text-gray-900",children:t}),l&&(0,r.jsx)("p",{className:"text-gray-600",children:l})]})}},1838:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(5155),a=l(2115),s=l(2821),n=l(213);function i(e){let{value:t="#000000",required:l=!1,errorMessage:i,disabled:o=!1,showReset:c=!1,onChange:d,onBlur:u,onFocus:m,inputClassName:h,errorClassName:x}=e,[f,b]=(0,a.useState)(t),[g,p]=(0,a.useState)(null);return(0,a.useEffect)(()=>{b(t)},[t]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("input",{type:"color",value:f,disabled:o,onChange:e=>{var t;b(t=e.target.value),d&&d(t),p(l&&!t?"This field is required":/^#([0-9A-F]{3}){1,2}$/i.test(t)?null:i||"Invalid color format")},onBlur:u,onFocus:m,className:(0,s.A)("block w-12 h-10 cursor-pointer rounded border border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none",o&&"bg-gray-100 cursor-not-allowed opacity-70",g&&"border-red-500 focus:border-red-500 focus:ring-red-500",h)}),c&&f&&(0,r.jsx)("button",{type:"button",onClick:()=>{b("#000000"),d&&d("#000000"),p(null)},className:"absolute right-2 text-gray-400 hover:text-gray-600",children:(0,r.jsx)(n.A,{className:"h-5 w-5"})}),g&&(0,r.jsx)("span",{className:(0,s.A)("absolute -bottom-5 left-0 text-sm text-red-600",x),children:g})]})}},2079:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var r=l(5155),a=l(2115),s=l(2821),n=l(7957),i=l.n(n),o=l(8016),c=l(2622);function d(e){let{label:t,helpMessage:l,containerClassName:n,labelClassName:d,messageClassName:u,fetchOptions:m,onSelect:h,value:x="",debounceTime:f=300,...b}=e,[g,p]=(0,a.useState)(x),[y,v]=(0,a.useState)([]),[j,N]=(0,a.useState)(!1),w=(0,a.useRef)(!1),k=(0,a.useRef)(x),C=(0,a.useCallback)(i()(async e=>{if(!e)return void v([]);N(!0);try{let t=await m(e);v(t||[])}catch(e){v([])}finally{N(!1)}},f),[m,f]);return(0,a.useEffect)(()=>{if(k.current===x)return;k.current=x;let e=null!=x?x:"";w.current=!0,p(e),e||v([])},[x]),(0,a.useEffect)(()=>{if(w.current){w.current=!1;return}C(g)},[g,C]),(0,a.useEffect)(()=>()=>{C.cancel()},[C]),(0,r.jsxs)("div",{className:(0,s.A)("relative",n),children:[(0,r.jsx)(c.default,{label:t,helpMessage:l,errorMessage:b.errorMessage,labelClassName:d,messageClassName:u,children:(0,r.jsx)(o.default,{...b,value:g,onChange:e=>p(e)})}),y.length>0&&(0,r.jsx)("div",{className:"absolute z-50 top-full left-0 bg-white border border-gray-300 max-h-64 overflow-y-auto w-full shadow-md text-sm mt-1",children:y.map((e,t)=>(0,r.jsx)("div",{className:"px-3 py-2 cursor-pointer border-b border-gray-200 last:border-b-0 hover:bg-blue-50 transition",onClick:()=>{w.current=!0,p(e.label),v([]),null==h||h(e)},children:((null==e?void 0:e.label)!==(null==e?void 0:e.address1)?e.label+" ":"")+e.formated_address},t))}),j&&(0,r.jsx)("div",{className:"absolute right-2 top-9 text-gray-400 text-xs",children:"Loading..."})]})}},2177:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{message:t="Loading...",size:l="md",className:a=""}=e;return(0,r.jsxs)("div",{className:"flex items-center justify-center p-8 ".concat(a),children:[(0,r.jsx)("div",{className:"animate-spin rounded-full border-b-2 border-blue-600 ".concat({sm:"h-4 w-4 border-2",md:"h-8 w-8 border-2",lg:"h-12 w-12 border-4"}[l])}),t&&(0,r.jsx)("span",{className:"ml-3 text-gray-600",children:t})]})}l(2115)},2232:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{isOpen:t,title:l="Create Item",children:a,onClose:s,onSave:n,onCancel:i,saveLabel:o="Save",cancelLabel:c="Cancel"}=e;return t?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:e=>{e.target===e.currentTarget&&s()},children:(0,r.jsxs)("div",{className:"w-full max-w-lg rounded-lg bg-white shadow-xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[(0,r.jsx)("h3",{className:"text-lg font-medium text-gray-900",children:l}),(0,r.jsx)("button",{onClick:s,className:"text-gray-400 transition-colors hover:text-gray-600",children:"✕"})]}),(0,r.jsx)("div",{className:"p-4",children:a}),(0,r.jsxs)("div",{className:"flex justify-end gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)("button",{onClick:()=>{null==i||i(),s()},className:"rounded-md border px-4 py-2 text-gray-700 transition-colors hover:bg-gray-100",children:c}),(0,r.jsx)("button",{onClick:()=>{null==n||n(),s()},className:"rounded-md bg-blue-600 px-4 py-2 text-white transition-colors hover:bg-blue-700",children:o})]})]})}):null}l(2115)},2580:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{color:t="",label:l,className:a=""}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-2 ".concat(a),children:[(0,r.jsx)("span",{className:"inline-block h-4 w-4 rounded border",style:{backgroundColor:t}}),l&&(0,r.jsx)("span",{children:l})]})}l(2115)},2622:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155),a=l(2821);function s(e){let{label:t,helpMessage:l,errorMessage:s,containerClassName:n,labelClassName:i,messageClassName:o,children:c}=e;return(0,r.jsxs)("div",{className:(0,a.A)("flex flex-col space-y-2 mt-2",n),children:[t&&(0,r.jsx)("label",{className:(0,a.A)("text-sm font-medium text-gray-700 mb-0 ml-1",i),children:t}),c,!s&&l&&(0,r.jsx)("span",{className:(0,a.A)("text-xs text-gray-500",o),children:l})]})}l(2115)},2821:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});let r=function(){for(var e,t,l=0,r="",a=arguments.length;l<a;l++)(e=arguments[l])&&(t=function e(t){var l,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(l=0;l<s;l++)t[l]&&(r=e(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r}},2836:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(5155),a=l(2619),s=l.n(a),n=l(8499);function i(){let{isSideNavigationOpen:e,toggleSideNavigation:t}=(0,n.J)();return(0,r.jsxs)("nav",{className:"sticky top-0 z-50 flex min-h-[70px] items-center border-b border-gray-200 bg-white px-6 shadow-sm",children:[(0,r.jsx)(s(),{href:"/",className:"text-xl font-bold text-gray-900",children:"Philip Rehberger"}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-8 text-sm font-medium",children:[(0,r.jsx)(s(),{href:"/",className:"text-gray-600 transition-colors hover:text-gray-900",children:"Home"}),(0,r.jsx)(s(),{href:"/services",className:"text-gray-600 transition-colors hover:text-gray-900",children:"Services"}),(0,r.jsx)(s(),{href:"/portfolio",className:"text-gray-600 transition-colors hover:text-gray-900",children:"Portfolio"}),(0,r.jsx)(s(),{href:"/about",className:"text-gray-600 transition-colors hover:text-gray-900",children:"About"}),(0,r.jsx)(s(),{href:"/contact",className:"rounded-lg bg-blue-600 px-4 py-2 text-white transition-colors hover:bg-blue-700",children:"Contact"})]})]})}},3070:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155);l(2115);let a={GET:{bg:"bg-blue-100",text:"text-blue-800"},POST:{bg:"bg-green-100",text:"text-green-800"},PUT:{bg:"bg-yellow-100",text:"text-yellow-800"},PATCH:{bg:"bg-indigo-100",text:"text-indigo-800"},DELETE:{bg:"bg-red-100",text:"text-red-800"}};function s(e){let{method:t,className:l=""}=e,s=t.toUpperCase(),n=a[s]||{bg:"bg-gray-100",text:"text-gray-800"};return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ".concat(n.bg," ").concat(n.text," ").concat(l),children:s})}},3107:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(2115);function a(e){let{title:t}=e;return(0,r.useEffect)(()=>{document.title="".concat(t," | Party Rentals")},[t]),null}},3351:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155);l(2115);var a=l(8009);function s(e){let{startDate:t,endDate:l,onStartDateChange:s,onEndDateChange:n}=e;return(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Date Range"}),(0,r.jsxs)("div",{className:"flex space-x-4",children:[(0,r.jsx)(a.J3,{label:"Start Date",value:t,onChange:e=>{l&&e>l&&n(e),s(e)}}),(0,r.jsx)(a.J3,{label:"End Date",value:l,onChange:e=>{t&&e<t&&s(e),n(e)}})]})]})}},3788:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155);l(2115);let a={error:{container:"border-red-200 bg-red-50",text:"text-red-800",icon:"text-red-400"},success:{container:"border-green-200 bg-green-50",text:"text-green-800",icon:"text-green-400"},warning:{container:"border-yellow-200 bg-yellow-50",text:"text-yellow-800",icon:"text-yellow-400"},info:{container:"border-blue-200 bg-blue-50",text:"text-blue-800",icon:"text-blue-400"}},s={error:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1    1 0 00-1.414 1.414L8.586 10l-1.293    1.293a1 1 0 101.414 1.414L10    11.414l1.293 1.293a1 1 0    001.414-1.414L11.414 10l1.293-1.293a1    1 0 00-1.414-1.414L10 8.586    8.707 7.293z",clipRule:"evenodd"}),success:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000    16zm3.707-9.707a1 1 0    00-1.414-1.414L9 10.586    7.707 9.293a1 1 0    00-1.414 1.414l2 2a1    1 0 001.414 0l4-4z",clipRule:"evenodd"}),warning:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.721-1.36    3.486 0l6.516 11.597c.75    1.335-.213 3.004-1.742    3.004H3.483c-1.53    0-2.493-1.67-1.743-3.004L8.257    3.1zM11 13a1 1 0    11-2 0 1 1 0 012 0zm-1-6a1    1 0 00-1 1v2a1 1 0    002 0V8a1 1 0 00-1-1z",clipRule:"evenodd"}),info:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10A8 8 0 11    2 10a8 8 0 0116    0zm-7-3a1 1 0    11-2 0 1 1 0    012 0zM9 9a1 1    0 000 2v3a1 1    0 001 1h1a1 1    0 100-2v-3a1    1 0 00-1-1H9z",clipRule:"evenodd"})};function n(e){let{type:t,message:l,onAction:n,actionText:i="OK",className:o=""}=e,c=a[t],d=s[t];return(0,r.jsx)("div",{className:"mb-6 rounded-lg border p-4 ".concat(c.container," ").concat(o),children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{className:"mr-2 h-5 w-5 ".concat(c.icon),fill:"currentColor",viewBox:"0 0 20 20",children:d}),(0,r.jsx)("span",{className:"".concat(c.text),children:l})]}),n&&(0,r.jsx)("button",{onClick:n,className:"rounded-md px-3 py-2 text-sm font-medium ".concat(c.text," hover:opacity-80"),children:i})]})})}},4018:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{value:t,onChange:l}=e;return(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Status Filter"}),(0,r.jsxs)("select",{value:t,onChange:e=>l(e.target.value),className:"block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",children:[(0,r.jsx)("option",{value:"all",children:"All"}),(0,r.jsx)("option",{value:"success_only",children:"Success Only"}),(0,r.jsx)("option",{value:"failed_only",children:"Failed Only"})]})]})}l(2115)},4088:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var r=l(5155),a=l(2115),s=l(2821),n=l(8009),i=l(63);function o(e){let{allowSearchFilter:t,searchQuery:l,onSearchChange:a,toolbarLeft:s,toolbarCenter:n,toolbarRight:i}=e;return(0,r.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-2 bg-transparent",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[t&&(0,r.jsx)("input",{type:"text",placeholder:"Search...",value:l,onChange:e=>a(e.target.value),className:"bg-gray-800 text-gray-200 w-64 rounded border border-gray-600 px-3 py-2 text-sm placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"}),s]}),(0,r.jsx)("div",{className:"flex items-center gap-2",children:n}),(0,r.jsx)("div",{className:"flex items-center gap-2",children:i})]})}function c(e){let{columns:t,sortKey:l,sortDirection:a,onSort:n,headerClassName:i}=e;return(0,r.jsx)("thead",{className:"bg-gray-900",children:(0,r.jsx)("tr",{children:t.map(e=>{let t=l===e.key;return(0,r.jsx)("th",{className:(0,s.A)("px-6 py-3 text-xs font-medium tracking-wider uppercase select-none text-gray-300",e.sortable&&"cursor-pointer hover:text-gray-100","center"===e.align&&"text-center","right"===e.align&&"text-right",i),onClick:()=>e.sortable&&n(e),children:(0,r.jsxs)("span",{className:"flex items-center",children:[e.header,t&&e.sortable&&(0,r.jsx)("span",{className:"ml-1 text-gray-500",children:"asc"===a?"▲":"▼"})]})},e.key.toString())})})})}function d(e){let{data:t,columns:l,rowClassName:a,cellClassName:n,rowKey:i,getRowKey:o}=e;return(0,r.jsx)("tbody",{className:"divide-y divide-gray-700 bg-gray-800",children:t.map((e,t)=>(0,r.jsx)("tr",{className:(0,s.A)("hover:bg-gray-700",a),children:l.map(t=>(0,r.jsx)("td",{className:(0,s.A)("px-6 py-4 text-sm whitespace-nowrap text-gray-200","center"===t.align&&"text-center","right"===t.align&&"text-right",n),children:t.render?t.render(e):"actions"!==t.key?e[t.key]:null},t.key.toString()))},o?o(e,t):i&&null!=e[i]?String(e[i]):t))})}function u(e){let{page:t,totalPages:l,pageSize:a,pageSizeOptions:s,onPageChange:n,onPageSizeChange:i}=e;return(0,r.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-sm text-gray-300",children:"Rows per page:"}),(0,r.jsx)("select",{value:a,onChange:e=>{i(Number(e.target.value)),n(1)},className:"bg-gray-800 text-gray-200 border border-gray-600 rounded px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",children:s.map(e=>(0,r.jsx)("option",{value:e,children:e},e))})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:()=>n(Math.max(t-1,1)),disabled:1===t,className:"px-3 py-1 bg-gray-700 text-gray-200 border border-gray-600 rounded text-sm hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",children:"Prev"}),(0,r.jsxs)("span",{className:"text-sm text-gray-300",children:["Page ",t," of ",l]}),(0,r.jsx)("button",{onClick:()=>n(Math.min(t+1,l)),disabled:t===l,className:"px-3 py-1 bg-gray-700 text-gray-200 border border-gray-600 rounded text-sm hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})}function m(e){let{data:t=[],columns:l,usePagination:m=!1,initialPage:h=1,initialPageSize:x=25,initialSearch:f="",pageSizeOptions:b=[5,10,25,50,100],fetchData:g,refreshKey:p,showToolbar:y=!1,toolbarLeft:v,toolbarCenter:j,toolbarRight:N,allowSearchFilter:w=!1,filterKeys:k,filterFn:C,useLoadingState:_=!1,loadingStateMessage:S="Loading...",useEmptyState:P=!1,emptyStateMessage:R="No data found",emptyStateDescription:A=null,wrapperClassName:I,tableClassName:E,headerClassName:T,rowClassName:L,cellClassName:B,searchDebounceTime:M=300,onPageChange:V,onPageSizeChange:D,onSearchChange:O,onError:q,showErrorState:z=!0,errorStateMessage:G="Failed to load data",allowRetry:H=!0,rowKey:W,getRowKey:F}=e,[U,Y]=(0,a.useState)(null),[J,$]=(0,a.useState)("asc"),K=(0,i.useRouter)(),[Q,Z]=(0,a.useState)(h),[X,ee]=(0,a.useState)(x),[et,el]=(0,a.useState)(f);(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search);Z(parseInt(e.get("page")||"")||h),ee(parseInt(e.get("perPage")||"")||x),el(e.get("search")||f)},[]);let[er,ea]=(0,a.useState)(f),[es,en]=(0,a.useState)(t),[ei,eo]=(0,a.useState)(t.length),[ec,ed]=(0,a.useState)(!1),[eu,em]=(0,a.useState)(null),eh=!!g,ex=(0,a.useRef)(!1),ef=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!w)return;let e=setTimeout(()=>ea(et),M);return()=>clearTimeout(e)},[et,M,w]);let eb=async()=>{if(g){ed(!0),em(null);try{let e=await g({page:Q,pageSize:X,sortKey:null==U?void 0:U.toString(),sortDirection:J,filterQuery:er});en(e.data),eo(e.meta.total)}catch(t){let e=t instanceof Error?t:Error(String(t));em(e),q&&q(e)}finally{ed(!1)}}};(0,a.useEffect)(()=>{if(!eh)return;let e=JSON.stringify({page:Q,pageSize:X,sortKey:U,sortDirection:J,filterQuery:er});(ef.current!==e||p)&&(ef.current=e,eb())},[Q,X,U,J,er,g,eh,p]);let eg=(0,a.useMemo)(()=>{if(eh)return es;if(!w||!er.trim())return t;if(C)return t.filter(e=>C(e,er));let e=er.toLowerCase(),r=null!=k?k:l.map(e=>e.key).filter(e=>"actions"!==e);return t.filter(t=>r.some(l=>{let r=t[l];return null!=r&&r.toString().toLowerCase().includes(e)}))},[t,es,er,w,k,C,l,eh]),ep=(0,a.useMemo)(()=>eh||!U?eg:[...eg].sort((e,t)=>{let l=e[U],r=t[U];return null==l?1:null==r?-1:l<r?"asc"===J?-1:1:l>r?"asc"===J?1:-1:0}),[eg,U,J,eh]),ey=(0,a.useMemo)(()=>{if(!m||eh)return ep;let e=(Q-1)*X;return ep.slice(e,e+X)},[ep,Q,X,m,eh]),ev=(0,a.useMemo)(()=>m?Math.ceil((eh?ei:ep.length)/X):1,[m,X,ep.length,ei,eh]);return(0,a.useEffect)(()=>{if(!ex.current){ex.current=!0;return}V&&V(Q),D&&D(X),O&&O(et);let e=new URLSearchParams;Q>1&&e.set("page",Q.toString()),X!==x&&e.set("perPage",X.toString()),et&&e.set("search",et),K.replace("?".concat(e.toString()))},[Q,X,et,x,K,V,D,O]),(0,r.jsxs)("div",{children:[(y||w)&&(0,r.jsx)(o,{allowSearchFilter:w,searchQuery:et,onSearchChange:e=>{el(e),Z(e=>1!==e?1:e)},toolbarLeft:v,toolbarCenter:j,toolbarRight:N}),(0,r.jsx)("div",{className:"rounded-lg border border-gray-700 bg-gray-800 shadow-sm",children:z&&eu?(0,r.jsxs)("div",{className:"p-8 text-center",children:[(0,r.jsx)("div",{className:"text-red-400 font-semibold mb-2",children:G}),(0,r.jsx)("div",{className:"text-sm text-gray-400 mb-4",children:eu.message}),H&&(0,r.jsx)("button",{onClick:()=>{eb()},className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:"Retry"})]}):_&&ec?(0,r.jsx)(n.Gu,{message:S}):P&&0===ey.length?(0,r.jsx)(n.pp,{title:R,description:null!=A?A:void 0}):(0,r.jsx)("div",{className:(0,s.A)("overflow-x-auto",I),children:(0,r.jsxs)("table",{className:(0,s.A)("min-w-full divide-y divide-gray-700",E),children:[(0,r.jsx)(c,{columns:l,sortKey:U,sortDirection:J,onSort:e=>{if(!e.sortable||"actions"===e.key)return;let t=e.key;U===t?$(e=>"asc"===e?"desc":"asc"):(Y(t),$("asc")),Z(1)},headerClassName:T}),(0,r.jsx)(d,{data:ey,columns:l,rowClassName:L,cellClassName:B,rowKey:W,getRowKey:F})]})})}),m&&(0,r.jsx)(u,{page:Q,totalPages:ev,pageSize:X,pageSizeOptions:b,onPageChange:Z,onPageSizeChange:ee})]})}},4983:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{text:t,backgroundColor:l,textColor:a,className:s=""}=e;return(0,r.jsx)("span",{className:"inline-flex items-center rounded px-2 py-1 text-xs font-bold ".concat(s),style:{backgroundColor:l,color:a},children:t})}l(2115)},5064:(e,t,l)=>{"use strict";l.d(t,{Y:()=>r.default});var r=l(2836);l(7355)},5321:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2115),s=l(2821);function n(e){let{value:t="",required:l=!1,placeholder:n,maxLength:i,rows:o=4,errorMessage:c,disabled:d=!1,onChange:u,onBlur:m,onFocus:h,inputClassName:x,errorClassName:f}=e,[b,g]=(0,a.useState)(t),[p,y]=(0,a.useState)(null);return(0,a.useEffect)(()=>{g(t)},[t]),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("textarea",{value:b,placeholder:n,maxLength:i,rows:o,disabled:d,onChange:e=>{var t;g(t=e.target.value),y(l&&!t?"This field is required":null),u&&u(t)},onBlur:m,onFocus:h,className:(0,s.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",d&&"bg-gray-100 cursor-not-allowed opacity-70",p&&"border-red-500 focus:border-red-500 focus:ring-red-500",x)}),p&&(0,r.jsx)("span",{className:(0,s.A)("absolute -bottom-5 left-0 text-sm text-red-600",f),children:p})]})}},5564:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{isOpen:t,title:l="Edit Item",children:a,onClose:s,onSave:n,onCancel:i,saveLabel:o="Save",cancelLabel:c="Cancel"}=e;return t?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:e=>{e.target===e.currentTarget&&s()},children:(0,r.jsxs)("div",{className:"w-full max-w-lg rounded-lg bg-white shadow-xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[(0,r.jsx)("h3",{className:"text-lg font-medium text-gray-900",children:l}),(0,r.jsx)("button",{onClick:s,className:"text-gray-400 transition-colors hover:text-gray-600",children:"✕"})]}),(0,r.jsx)("div",{className:"p-4",children:a}),(0,r.jsxs)("div",{className:"flex justify-end gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)("button",{onClick:()=>{null==i||i(),s()},className:"rounded-md border px-4 py-2 text-gray-700 transition-colors hover:bg-gray-100",children:c}),(0,r.jsx)("button",{onClick:()=>{null==n||n(),s()},className:"rounded-md bg-blue-600 px-4 py-2 text-white transition-colors hover:bg-blue-700",children:o})]})]})}):null}l(2115)},5646:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2622),s=l(1838);function n(e){let{label:t,helpMessage:l,containerClassName:n,labelClassName:i,messageClassName:o,...c}=e;return(0,r.jsx)(a.default,{label:t,helpMessage:l,errorMessage:c.errorMessage,containerClassName:n,labelClassName:i,messageClassName:o,children:(0,r.jsx)(s.default,{...c})})}},6115:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var r=l(5155);l(2115);var a=l(2821);function s(e){let{label:t,value:l,onChange:s,name:n,required:i,className:o,labelClassName:c,containerClassName:d}=e;return(0,r.jsxs)("div",{className:(0,a.A)(d),children:[(0,r.jsx)("label",{className:(0,a.A)("mb-1 block text-xs text-gray-500",c),children:t}),(0,r.jsx)("input",{type:"date",name:n,value:l,onChange:e=>s(e.target.value),required:i,className:(0,a.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",o)})]})}},6257:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var r=l(5155);l(2115);var a=l(2622),s=l(8016),n=l(9494),i=l(5321),o=l(7375);let c={TextInput:s.default,NumberInput:n.default,TextareaInput:i.default,ToggleInput:o.default};function d(e){let{as:t,label:l,helpMessage:s,containerClassName:n,labelClassName:i,messageClassName:o,errorMessage:d,...u}=e,m=c[null!=t?t:"TextInput"],h={...u,errorMessage:d};return(0,r.jsx)(a.default,{label:l,helpMessage:s,errorMessage:d,containerClassName:n,labelClassName:i,messageClassName:o,children:(0,r.jsx)(m,{...h})})}},6428:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var r=l(5155),a=l(2115),s=l(6257),n=l(8967),i=l(2079);async function o(){try{let e=Object.fromEntries(Object.entries({with_states:1,with_country_address_attributes:1}).filter(e=>{let[,t]=e;return void 0!==t})),t=await fetch("/api/laravel?path=/api/countries&query_parameters=".concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-store"});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));return await t.json()}catch(e){return[]}}function c(e){var t;let{mapping:l={},value:c={},addressOptional:d=!1,locked:u=!1,onChange:m}=e,[h,x]=(0,a.useState)([]),[f,b]=(0,a.useState)(Number(c[l.countryId||"countryId"])||840*!d),[g,p]=(0,a.useState)(c);(0,a.useEffect)(()=>{!async function(){try{let e=await o();x(e)}catch(e){return e}}()},[]),(0,a.useEffect)(()=>{if(!h.length)return;let e={},t=h.find(e=>e.id===f);t&&t.address_attributes.filter(e=>1!==e.hidden).forEach(t=>{e[l[t.key]||t.key]=""}),e[l.countryId||"countryId"]=String(f),e[l.label||"label"]="",p(e),null==m||m(e)},[f,h]);let y=h.find(e=>e.id===Number(f)),v=[...d?[{label:"N/A",value:0,key:0}]:[],...h.map(e=>({key:e.id,label:e.label,value:e.id}))];return(0,r.jsxs)("div",{className:"p-2",children:[(0,r.jsx)(n.default,{label:"Country",value:f,disabled:u,options:v,onChange:e=>b(Number(e))}),y&&(0,r.jsx)(i.default,{label:"Search Address",value:String(null!=(t=g.label)?t:""),disabled:u,fetchOptions:e=>fetch("/app/mt-public-api/address_autocomplete?query=".concat(encodeURIComponent(e)).concat((null==y?void 0:y.alpha2)?"&country_code="+y.alpha2:"")).then(e=>e.json()),onSelect:e=>{let t={...g,...function(e,t){var l;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{[r.label||"label"]:e.label||e.formatted_address||"",[r.address1||"address1"]:e.street||e.address1||"",[r.city||"city"]:e.city||"",[r.state_id||"state_id"]:e.state_id||"",[r.postal_code||"postal_code"]:e.postal_code||"",[r.countryId||"countryId"]:null!=(l=e.country_id)?l:t}}(e,f,l)};p(t),null==m||m(t)}}),y&&y.address_attributes.filter(e=>1!==e.hidden).sort((e,t)=>(e.line||1)-(t.line||1)||(e.position||0)-(t.position||0)).map(e=>((e,t)=>{let a=g[l[e.key]||e.key]||"";if(e.hidden)return null;if("state_id"===e.key&&t.states){let l=t.states.map(e=>({key:e.id,label:e.name,value:e.id}));return(0,r.jsx)(n.default,{label:"".concat(e.label).concat(e.required?" *":""),value:a,disabled:u,options:l},e.key)}return(0,r.jsx)(s.default,{label:"".concat(e.label).concat(e.required?" *":""),type:"text",value:String(null!=a?a:""),placeholder:e.label,regex:e.regex,disabled:u,required:!!e.required&&(!d||0!==t.id)},e.key)})(e,y))]})}},6956:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2115),s=l(8009);function n(e){let{data:t,includeColumns:l=[],saReport:n=!1}=e,[i,o]=(0,a.useState)(null),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(null),h="/api/".concat(n?"super-admin/":"","reports/api-request-logs"),x=async(e,t)=>{try{m({id:e,type:t});let l=await fetch("/api/laravel?path=".concat(h,"/").concat(e,"/").concat(t,"-json&query_parameters=").concat(encodeURIComponent(JSON.stringify({json_format:"pretty_print"}))),{headers:{"Content-Type":"application/json"},cache:"no-store"});if(!l.ok)throw Error("Failed to fetch ".concat(t," JSON for log ").concat(e));let r=await l.json();o({content:r.data,title:"".concat("request"===t?"Request":"Response"," - ID: ").concat(e)}),d(!0)}catch(t){o({content:"Error loading data",title:"Error - ID: ".concat(e)}),d(!0)}finally{m(null)}},f={id:{key:"id",header:"Id Report",sortable:!0},created_at:{key:"created_at",header:"Timestamp",sortable:!0,render:e=>(function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US";return new Date(e).toLocaleString(l,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,...t})})(e.created_at)},company_id:{key:"company_id",header:"Company Id",sortable:!0},path:{key:"path",header:"Path",sortable:!0},success:{key:"success",header:"Status",sortable:!0,render:e=>(0,r.jsx)(s.Wh,{type:e.success?"success":"error"})},request_json:{key:"request_json",header:"Request",render:e=>(0,r.jsx)(s.$n,{variant:"primary",onClick:()=>x(e.id,"request"),loading:(null==u?void 0:u.id)===e.id&&(null==u?void 0:u.type)==="request",children:"View Request"})},response_json:{key:"response_json",header:"Response",render:e=>(0,r.jsx)(s.$n,{variant:"success",onClick:()=>x(e.id,"response"),loading:(null==u?void 0:u.id)===e.id&&(null==u?void 0:u.type)==="response",children:"View Response"})}},b=["id","created_at","success","request_json","response_json"],g=["id","created_at","company_id","path","success","request_json","response_json"].filter(e=>b.includes(e)||l.includes(e)).map(e=>f[e]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.bQ,{data:t,columns:g}),c&&i&&(0,r.jsx)(s.yg,{isOpen:c,onClose:()=>{d(!1),o(null)},content:i.content,title:i.title})]})}},7355:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var r=l(5155),a=l(2115),s=l(5239),n=l(63),i=l(463),o=l(4034);function c(e){let{title:t,icon:l,path:d,cta:u,highlightColor:m,subItems:h=[],onClick:x=()=>{},isOpen:f,isSubItem:b=!1,isSideNavigationOpen:g=!1}=e,p=(0,n.useRouter)(),y=(0,a.useMemo)(()=>m||"#FFFFFF",[m]),v=(0,a.useMemo)(()=>h&&h.length>0?f?(0,r.jsx)(i.A,{className:"size-4",style:{color:y}}):(0,r.jsx)(o.A,{className:"size-4",style:{color:y}}):null,[h,f,y]),j=(0,a.useCallback)(e=>d?p.push(d):u?null:x(e),[u,d,x,p]);return(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("li",{onClick:()=>j(t),className:"relative flex cursor-pointer items-center justify-between border-y border-black ".concat(b?"py-1 pl-[40px] hover:bg-white/40":"from-white/40 via-white/15 to-white/40 px-3 py-3 hover:border-y hover:border-white hover:bg-linear-180"),children:[(0,r.jsxs)("div",{className:"flex items-center",children:[l&&(0,r.jsx)(s.default,{src:l,alt:t,width:28,height:28}),(0,r.jsx)("h4",{style:{color:y},className:"ml-3 font-sans font-thin text-nowrap ".concat(g?"opacity-100":"opacity-0"," transition-opacity duration-500 ease-in-out"),children:t})]}),v]}),(0,r.jsx)("ul",{className:"transition-all duration-500 ease-in-out ".concat(f?"max-h-[500px] opacity-100":"max-h-0 overflow-hidden opacity-0"),children:null==h?void 0:h.map((e,t)=>(0,r.jsx)(c,{title:e.title,icon:e.icon,path:e.path,cta:e.cta,highlightColor:e.highlightColor,subItems:e.subItems,onClick:x,isOpen:f,isSubItem:!0,isSideNavigationOpen:g},t))})]})}var d=l(8499),u=l(4108);function m(e){let{isOpen:t,onClose:l,message:s}=e;return((0,a.useEffect)(()=>{if(t){let e=setTimeout(()=>{l()},3e3);return()=>clearTimeout(e)}},[t,l]),t)?(0,r.jsx)("div",{className:"bg-opacity-50 fixed inset-0 z-50 flex items-center justify-center bg-black",children:(0,r.jsxs)("div",{className:"relative mx-4 max-w-md rounded-lg bg-white p-6 shadow-lg",children:[(0,r.jsx)("button",{onClick:l,className:"absolute top-2 right-2 text-gray-400 hover:text-gray-600",children:(0,r.jsx)(u.A,{className:"h-5 w-5"})}),(0,r.jsxs)("div",{className:"pr-6",children:[(0,r.jsx)("h3",{className:"mb-2 text-lg font-semibold text-gray-900",children:"Under Construction"}),(0,r.jsx)("p",{className:"text-gray-700",children:s})]})]})}):null}let h={menuItems:[{title:"Home",icon:"/icons/dispatch2.png",path:"/",cta:null,highlightColor:null,subItems:null},{title:"Catalog",icon:"/icons/manage2.png",path:"/catalog",cta:null,highlightColor:null,subItems:null},{title:"Availability",icon:"/icons/chart-line-solid.png",path:"/availability",cta:null,highlightColor:null,subItems:null},{title:"Admin",icon:"/icons/manage2.png",path:null,cta:null,highlightColor:null,subItems:[{title:"Dashboard",icon:null,path:"/admin/dashboard",cta:null,highlightColor:null,subItems:null},{title:"Products",icon:null,path:"/admin/products",cta:null,highlightColor:null,subItems:null}]},{title:"Account",icon:"/icons/settings2.png",path:"/account",cta:null,highlightColor:null,subItems:null},{title:"Login",icon:"/icons/right-from-bracket-solid.png",path:"/login",cta:null,highlightColor:null,subItems:null},{title:"Register",icon:"/icons/circle-info-solid.png",path:"/register",cta:null,highlightColor:null,subItems:null}],accountDetails:{companyName:"Party Rentals Co.",userEmail:"guest@example.com",companyId:1,licenseNo:"N/A"}};function x(){let[e,t]=(0,a.useState)(null),[l,s]=(0,a.useState)([]),[n,i]=(0,a.useState)(null),[o,u]=(0,a.useState)(!1),{isSideNavigationOpen:x,toggleSideNavigation:f}=(0,d.J)();(0,a.useEffect)(()=>{s(h.menuItems),i(h.accountDetails)},[]),(0,a.useEffect)(()=>{x||t(null)},[x]);let b=e=>{x||f(),t(t=>t===e?null:e)};return(0,r.jsxs)("aside",{className:"no-scrollbar flex h-[calc(100vh-60px)] shrink-0 flex-col justify-between overflow-y-scroll transition-all duration-500 ease-in-out ".concat(x?"w-[269px]":"w-[60px]"," bg-black shadow-sm"),children:[(0,r.jsx)("nav",{className:"no-scrollbar flex flex-col",children:(0,r.jsx)("ul",{className:"flex-1",children:null==l?void 0:l.map((t,l)=>(0,r.jsx)(c,{title:t.title,icon:t.icon,path:t.path,cta:t.cta,highlightColor:t.highlightColor,subItems:t.subItems,onClick:b,isOpen:e===t.title,isSideNavigationOpen:x},l))})}),n&&(0,r.jsxs)("div",{className:"flex flex-col px-4 py-[50px] leading-5 text-nowrap ".concat(x?"opacity-100":"opacity-0"," transition-all duration-500 ease-in-out"),children:[(0,r.jsx)("h4",{className:"font-sans font-thin text-white",children:"".concat(n.companyName," - ").concat(n.companyId)}),(0,r.jsx)("h4",{className:"font-sans font-thin text-white",children:n.userEmail}),(0,r.jsx)("h4",{className:"font-sans font-thin text-white",children:n.licenseNo})]}),(0,r.jsx)(m,{isOpen:o,onClose:()=>u(!1),message:"Button and functionality under construction, go to Dispatch page or go back to access this functionality"})]})}},7375:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2115),s=l(2821);function n(e){let{value:t=!1,required:l=!1,disabled:n=!1,errorMessage:i,labelOn:o="On",labelOff:c="Off",showReset:d=!1,onChange:u,onBlur:m,onFocus:h,containerClassName:x,switchClassName:f,errorClassName:b}=e,[g,p]=(0,a.useState)(t),[y,v]=(0,a.useState)(null);return(0,a.useEffect)(()=>{p(t)},[t]),(0,r.jsxs)("div",{className:(0,s.A)("flex flex-col",x),children:[(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":g,onClick:()=>{if(n)return;let e=!g;p(e),v(l&&!e?"This field is required":null),u&&u(e)},onBlur:m,onFocus:h,disabled:n,className:(0,s.A)("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none",g?"bg-blue-600":"bg-gray-300",n&&"opacity-60 cursor-not-allowed",f),children:(0,r.jsx)("span",{className:(0,s.A)("inline-block h-4 w-4 transform rounded-full bg-white transition-transform",g?"translate-x-6":"translate-x-1")})}),(0,r.jsx)("span",{className:"mt-1 text-sm text-gray-600",children:g?o:c}),d&&(0,r.jsx)("button",{type:"button",onClick:()=>{p(!1),v(l?"This field is required":null),u&&u(!1)},className:"mt-1 text-xs text-gray-500 underline hover:text-gray-700 self-start",children:"Reset"}),(y||i)&&(0,r.jsx)("span",{className:(0,s.A)("mt-1 text-sm text-red-600",b),children:y||i})]})}},7957:(e,t,l)=>{var r=0/0,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,c="object"==typeof l.g&&l.g&&l.g.Object===Object&&l.g,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),m=Object.prototype.toString,h=Math.max,x=Math.min,f=function(){return u.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==m.call(t))return r;if(b(e)){var t,l="function"==typeof e.valueOf?e.valueOf():e;e=b(l)?l+"":l}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var c=n.test(e);return c||i.test(e)?o(e.slice(2),c?2:8):s.test(e)?r:+e}e.exports=function(e,t,l){var r,a,s,n,i,o,c=0,d=!1,u=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var l=r,s=a;return r=a=void 0,c=t,n=e.apply(s,l)}function y(e){var l=e-o,r=e-c;return void 0===o||l>=t||l<0||u&&r>=s}function v(){var e,l,r,a=f();if(y(a))return j(a);i=setTimeout(v,(e=a-o,l=a-c,r=t-e,u?x(r,s-l):r))}function j(e){return(i=void 0,m&&r)?p(e):(r=a=void 0,n)}function N(){var e,l=f(),s=y(l);if(r=arguments,a=this,o=l,s){if(void 0===i)return c=e=o,i=setTimeout(v,t),d?p(e):n;if(u)return i=setTimeout(v,t),p(o)}return void 0===i&&(i=setTimeout(v,t)),n}return t=g(t)||0,b(l)&&(d=!!l.leading,s=(u="maxWait"in l)?h(g(l.maxWait)||0,t):s,m="trailing"in l?!!l.trailing:m),N.cancel=function(){void 0!==i&&clearTimeout(i),c=0,r=o=a=i=void 0},N.flush=function(){return void 0===i?n:j(f())},N}},8006:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{isOpen:t,title:l="Confirm Action",message:a,onClose:s,onConfirm:n,onCancel:i,confirmLabel:o="Confirm",cancelLabel:c="Cancel"}=e;return t?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:e=>{e.target===e.currentTarget&&s()},children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-lg bg-white shadow-xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[(0,r.jsx)("h3",{className:"text-lg font-medium text-gray-900",children:l}),(0,r.jsx)("button",{onClick:s,className:"text-gray-400 transition-colors hover:text-gray-600",children:"✕"})]}),(0,r.jsx)("div",{className:"p-4 text-gray-800",children:a}),(0,r.jsxs)("div",{className:"flex justify-end gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)("button",{onClick:()=>{null==i||i(),s()},className:"rounded-md border px-4 py-2 text-gray-700 transition-colors hover:bg-gray-100",children:c}),(0,r.jsx)("button",{onClick:()=>{null==n||n(),s()},className:"rounded-md bg-red-600 px-4 py-2 text-white transition-colors hover:bg-red-700",children:o})]})]})}):null}l(2115)},8009:(e,t,l)=>{"use strict";l.d(t,{$n:()=>c.default,bQ:()=>s.default,J3:()=>r.default,pp:()=>n.default,yg:()=>a.default,Gu:()=>i.default,Wh:()=>o.default}),l(4018),l(3351),l(6428),l(9383),l(6257),l(5646),l(2079),l(2622),l(8967),l(9179);var r=l(6115);l(8016),l(1838),l(5321),l(9494),l(7375),l(5064);var a=l(663);l(5564),l(2232),l(8006);var s=l(4088);l(6956),l(3788);var n=l(8376),i=l(2177),o=l(1073);l(3070),l(1480),l(3107);var c=l(1166);l(2580),l(4983),l(695),l(5155),l(2115),l(2619)},8016:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(5155),a=l(2115),s=l(2821),n=l(213);function i(e){let{value:t="",required:l=!1,type:i="text",placeholder:o,maxLength:c,format:d,regex:u,errorMessage:m,disabled:h=!1,showReset:x=!1,icon:f,onChange:b,onBlur:g,onFocus:p,inputClassName:y,errorClassName:v}=e,[j,N]=(0,a.useState)(t),[w,k]=(0,a.useState)(null);return(0,a.useEffect)(()=>{N(t)},[t]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[f&&(0,r.jsx)("span",{className:"absolute left-3 text-gray-400",children:f}),(0,r.jsx)("input",{type:i,value:j,placeholder:o,maxLength:c,disabled:h,onChange:e=>{var t;N(t=e.target.value),b&&b(t),k(l&&!t?"This field is required":u&&!u.test(t)?m||"Invalid format":"email"===d&&t&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?m||"Invalid email":"phone"===d&&t&&!/^\+?[0-9]{7,15}$/.test(t)?m||"Invalid phone number":null)},onBlur:g,onFocus:p,className:(0,s.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",f&&"pl-10",h&&"bg-gray-100 cursor-not-allowed opacity-70",w&&"border-red-500 focus:border-red-500 focus:ring-red-500",y)}),x&&j&&(0,r.jsxs)("button",{type:"button",onClick:()=>{N(""),b&&b(""),k(null)},className:"absolute right-2 text-gray-400 hover:text-gray-600",children:[(0,r.jsx)(n.A,{className:"h-5 w-5"})," "]}),w&&(0,r.jsx)("span",{className:(0,s.A)("absolute -bottom-5 left-0 text-sm text-red-600",v),children:w})]})}},8088:(e,t,l)=>{"use strict";l.d(t,{n:()=>a,o:()=>r});let r=[{id:1,label:"Black med van",filename:"Black_med_van.png"},{id:2,label:"Black SUV",filename:"Black_SUV.png"},{id:3,label:"Black Yel pickup",filename:"Black_Yel_pickup.png"},{id:4,label:"Blk gry Car",filename:"Blk_gry_Car.png"},{id:5,label:"Blk gry Hearse",filename:"Blk_gry_Hearse.png"},{id:6,label:"Blk gry Pickup",filename:"Blk_gry_Pickup.png"},{id:7,label:"Blk gry Van",filename:"Blk_gry_Van.png"},{id:8,label:"Blk Yel Car",filename:"Blk_Yel_Car.png"},{id:9,label:"Blk Yel Hearse",filename:"Blk_Yel_Hearse.png"},{id:10,label:"Blk Yel Van",filename:"Blk_Yel_Van.png"},{id:11,label:"Blue Car",filename:"Blue_Car.png"},{id:12,label:"Blue Hearse",filename:"Blue_Hearse.png"},{id:13,label:"Blue pickup",filename:"Blue_pickup.png"},{id:14,label:"Blue small car",filename:"Blue_small_car.png"},{id:15,label:"Blue SUV",filename:"Blue_SUV.png"},{id:16,label:"Blue Van",filename:"Blue_Van.png"},{id:17,label:"DRed Hearse",filename:"DRed_Hearse.png"},{id:18,label:"DRed Pickup",filename:"DRed_Pickup.png"},{id:19,label:"D Gray car",filename:"D_Gray_car.png"},{id:20,label:"D Gray hearse",filename:"D_Gray_hearse.png"},{id:21,label:"D Gray pickup",filename:"D_Gray_pickup.png"},{id:22,label:"D Gray Van",filename:"D_Gray_Van.png"},{id:23,label:"D Red Car",filename:"D_Red_Car.png"},{id:24,label:"D Red Van",filename:"D_Red_Van.png"},{id:25,label:"Gray SUV",filename:"Gray_SUV.png"},{id:26,label:"Gray SUV isometric",filename:"Gray_SUV_isometric.png"},{id:28,label:"HD truck",filename:"HD_truck.png"},{id:29,label:"LT Gry car",filename:"LT_Gry_car.png"},{id:30,label:"LT Gry hearse",filename:"LT_Gry_hearse.png"},{id:31,label:"LT Gry Pickup",filename:"LT_Gry_Pickup.png"},{id:32,label:"LT Gry Van",filename:"LT_Gry_Van.png"},{id:33,label:"Medium van",filename:"Medium_van.png"},{id:34,label:"Red Car",filename:"Red_Car.png"},{id:35,label:"Red car isometric",filename:"Red_car_isometric.png"},{id:36,label:"Red Hearse",filename:"Red_Hearse.png"},{id:37,label:"Red Pickup",filename:"Red_Pickup.png"},{id:38,label:"Red SUV",filename:"Red_SUV.png"},{id:39,label:"Tan SUV",filename:"Tan_SUV.png"},{id:40,label:"Wht gry Car",filename:"Wht_gry_Car.png"},{id:41,label:"Wht gry Hearse",filename:"Wht_gry_Hearse.png"},{id:42,label:"Wht gry Pickup",filename:"Wht_gry_Pickup.png"},{id:43,label:"Wht gry Van",filename:"Wht_gry_Van.png"},{id:44,label:"Wht Yel Car",filename:"Wht_Yel_Car.png"},{id:45,label:"Wht Yel Pickup",filename:"Wht_Yel_Pickup.png"},{id:46,label:"Wht Yel Van",filename:"Wht_Yel_Van.png"},{id:47,label:"Wht Yel Hearse",filename:"Wht_Yel_Hearse.png"}];function a(e){return r.find(t=>t.id===e)||null}},8376:(e,t,l)=>{"use strict";l.d(t,{default:()=>a});var r=l(5155);function a(e){let{title:t,description:l,actionText:a,onAction:s,icon:n,className:i=""}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center p-12 text-center ".concat(i),children:[(0,r.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-gray-100",children:n||(0,r.jsx)("svg",{className:"h-6 w-6 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2    2 0 012-2h5.586a1 1 0    01.707.293l5.414 5.414a1 1 0    01.293.707V19a2 2 0    01-2 2z"})})}),(0,r.jsx)("h3",{className:"mt-4 text-lg font-medium text-gray-900",children:t}),l&&(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:l}),s&&a&&(0,r.jsx)("button",{onClick:s,className:"mt-4 rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700",children:a})]})}l(2115)},8499:(e,t,l)=>{"use strict";l.d(t,{J:()=>i,z:()=>n});var r=l(5155),a=l(2115);let s=(0,a.createContext)(void 0);function n(e){let{children:t}=e,[l,n]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{n(e=>!e)},[]),o=(0,a.useCallback)(()=>n(!0),[]),c=(0,a.useCallback)(()=>n(!1),[]),d=(0,a.useMemo)(()=>({isSideNavigationOpen:l,toggleSideNavigation:i,openSideNavigation:o,closeSideNavigation:c}),[l,i,o,c]);return(0,r.jsx)(s.Provider,{value:d,children:t})}function i(){let e=(0,a.useContext)(s);if(!e)throw Error("useSideNavigation must be used within a SideNavigationProvider");return e}},8967:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var r=l(5155),a=l(2622),s=l(2115),n=l(2821);function i(e){let{value:t="",required:l=!1,placeholder:a,errorMessage:i,disabled:o=!1,showReset:c=!1,options:d,onChange:u,onBlur:m,onFocus:h,selectClassName:x,errorClassName:f}=e,[b,g]=(0,s.useState)(t),[p,y]=(0,s.useState)(null);return(0,s.useEffect)(()=>{g(t)},[t]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsxs)("select",{value:b,disabled:o,onChange:e=>{var t;g(t=e.target.value),u&&u(t),y(l&&!t?i||"This field is required":null)},onBlur:m,onFocus:h,className:(0,n.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",o&&"bg-gray-100 cursor-not-allowed opacity-70",p&&"border-red-500 focus:border-red-500 focus:ring-red-500",x),children:[a&&(0,r.jsx)("option",{value:"",disabled:!0,hidden:!0,children:a}),d.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))]}),c&&b&&(0,r.jsx)("button",{type:"button",onClick:()=>{g(""),u&&u(""),y(null)},className:"absolute right-2 text-gray-400 hover:text-gray-600",children:"\xd7"}),p&&(0,r.jsx)("span",{className:(0,n.A)("absolute -bottom-5 left-0 text-sm text-red-600",f),children:p})]})}function o(e){let{label:t,helpMessage:l,containerClassName:s,labelClassName:n,messageClassName:o,...c}=e;return(0,r.jsx)(a.default,{label:t,helpMessage:l,errorMessage:c.errorMessage,containerClassName:s,labelClassName:n,messageClassName:o,children:(0,r.jsx)(i,{...c})})}},9179:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(2115),s=l(2821);function n(e){let{endpoint:t,value:l,onChange:n,dataKey:i="items",includeAll:o=!1,label:c,loadingText:d="Loading...",className:u,containerClassName:m,labelClassName:h}=e,[x,f]=(0,a.useState)([]),[b,g]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{!async function(){try{let e=await fetch(t,{headers:{"Content-Type":"application/json"},cache:"no-store"});if(!e.ok)throw Error("Failed to fetch: ".concat(e.status));let l=await e.json(),r=Array.isArray(l[i])?l[i]:[];f(r)}catch(e){f([])}finally{g(!1)}}()},[t,i]),(0,r.jsxs)("div",{className:(0,s.A)("flex flex-col space-y-2",m),children:[c&&(0,r.jsx)("label",{className:(0,s.A)("text-sm font-medium text-gray-700",h),children:c}),(0,r.jsxs)("select",{value:l,onChange:e=>n(e.target.value),className:(0,s.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",u),children:[o&&(0,r.jsx)("option",{value:"all",children:"All"}),b?(0,r.jsx)("option",{disabled:!0,children:d}):x.map(e=>(0,r.jsx)("option",{value:e,children:e},e))]})]})}},9383:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var r=l(5155),a=l(5239),s=l(8088);function n(e){let{value:t,onChange:l}=e;return(0,r.jsx)("div",{className:"grid grid-cols-4 gap-4 max-h-96 overflow-y-auto p-2 border rounded",children:s.o.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>l(e.id),className:"flex flex-col items-center p-2 border rounded hover:bg-gray-100 ".concat(t===e.id?"border-blue-500 bg-blue-50":"border-gray-200"),children:[(0,r.jsx)(a.default,{src:"/public/images/vehicles/".concat(e.filename),alt:e.label,width:48,height:48}),(0,r.jsx)("span",{className:"text-xs mt-1",children:e.label})]},e.id))})}},9494:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(5155),a=l(2115),s=l(2821),n=l(213);function i(e){var t;let{value:l=null,required:i=!1,min:o,max:c,step:d,placeholder:u,errorMessage:m,disabled:h=!1,showReset:x=!1,icon:f,onChange:b,onBlur:g,onFocus:p,inputClassName:y,errorClassName:v}=e,[j,N]=(0,a.useState)(null!=(t=null==l?void 0:l.toString())?t:""),[w,k]=(0,a.useState)(null);return(0,a.useEffect)(()=>{var e;N(null!=(e=null==l?void 0:l.toString())?e:"")},[l]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[f&&(0,r.jsx)("span",{className:"absolute left-3 text-gray-400",children:f}),(0,r.jsx)("input",{type:"number",value:j,placeholder:u,min:o,max:c,step:d,disabled:h,onChange:e=>(e=>{N(e);let t=(e=>{if(i&&""===e)return"This field is required";let t=Number(e);return""!==e&&isNaN(t)?"Must be a number":void 0!==o&&t<o?"Minimum is ".concat(o):void 0!==c&&t>c?"Maximum is ".concat(c):null})(e);k(t),b&&b(""===e||t?0:Number(e))})(e.target.value),onBlur:g,onFocus:p,className:(0,s.A)("block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-blue-500 focus:outline-none sm:text-sm",f&&"pl-10",h&&"bg-gray-100 cursor-not-allowed opacity-70",w&&"border-red-500 focus:border-red-500 focus:ring-red-500",y)}),x&&j&&(0,r.jsx)("button",{type:"button",onClick:()=>{N(""),b&&b(0),k(null)},className:"absolute right-2 text-gray-400 hover:text-gray-600",children:(0,r.jsx)(n.A,{className:"h-5 w-5"})}),w&&(0,r.jsx)("span",{className:(0,s.A)("absolute -bottom-5 left-0 text-sm text-red-600",v),children:w})]})}},9780:(e,t,l)=>{Promise.resolve().then(l.t.bind(l,2619,23)),Promise.resolve().then(l.bind(l,6428)),Promise.resolve().then(l.bind(l,4018)),Promise.resolve().then(l.bind(l,3351)),Promise.resolve().then(l.bind(l,2079)),Promise.resolve().then(l.bind(l,5646)),Promise.resolve().then(l.bind(l,2622)),Promise.resolve().then(l.bind(l,6257)),Promise.resolve().then(l.bind(l,8967)),Promise.resolve().then(l.bind(l,9179)),Promise.resolve().then(l.bind(l,1838)),Promise.resolve().then(l.bind(l,6115)),Promise.resolve().then(l.bind(l,9494)),Promise.resolve().then(l.bind(l,5321)),Promise.resolve().then(l.bind(l,8016)),Promise.resolve().then(l.bind(l,7375)),Promise.resolve().then(l.bind(l,9383)),Promise.resolve().then(l.bind(l,2836)),Promise.resolve().then(l.bind(l,7355)),Promise.resolve().then(l.bind(l,8006)),Promise.resolve().then(l.bind(l,2232)),Promise.resolve().then(l.bind(l,5564)),Promise.resolve().then(l.bind(l,663)),Promise.resolve().then(l.bind(l,6956)),Promise.resolve().then(l.bind(l,4088)),Promise.resolve().then(l.bind(l,3788)),Promise.resolve().then(l.bind(l,1166)),Promise.resolve().then(l.bind(l,2580)),Promise.resolve().then(l.bind(l,8376)),Promise.resolve().then(l.bind(l,2177)),Promise.resolve().then(l.bind(l,3070)),Promise.resolve().then(l.bind(l,1480)),Promise.resolve().then(l.bind(l,4983)),Promise.resolve().then(l.bind(l,1073)),Promise.resolve().then(l.bind(l,3107)),Promise.resolve().then(l.bind(l,695))}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit