https://donizo.com/_next/static/chunks/6392-6cdde3dd46d6e667.js?dpl=dpl_GcBHUsCjBkePSxFjpDdFWtLvLdw4
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6392],{3998:(e,t,a)=>{a.d(t,{$:()=>i,r:()=>o});var n=a(95155);a(12115);var r=a(32467),s=a(83101),l=a(64269);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary-hover",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:a,size:s,asChild:i=!1,...d}=e,c=i?r.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,l.cn)(o({variant:a,size:s,className:t})),...d})}},51834:(e,t,a)=>{a.d(t,{Cf:()=>f,Es:()=>p,HM:()=>c,L3:()=>x,LC:()=>u,ZJ:()=>d,c7:()=>g,lG:()=>o,rr:()=>m,zM:()=>i});var n=a(95155);a(12115);var r=a(99968),s=a(65229),l=a(64269);function o(e){let{...t}=e;return(0,n.jsx)(r.bL,{"data-slot":"dialog",...t})}function i(e){let{...t}=e;return(0,n.jsx)(r.l9,{"data-slot":"dialog-trigger",...t})}function d(e){let{...t}=e;return(0,n.jsx)(r.ZL,{"data-slot":"dialog-portal",...t})}function c(e){let{...t}=e;return(0,n.jsx)(r.bm,{"data-slot":"dialog-close",...t})}function u(e){let{className:t,...a}=e;return(0,n.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function f(e){let{className:t,children:a,...o}=e;return(0,n.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,n.jsx)(u,{}),(0,n.jsxs)(r.UC,{"data-slot":"dialog-content",className:(0,l.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o,children:[a,(0,n.jsxs)(r.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,n.jsx)(s.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function g(e){let{className:t,...a}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,l.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function p(e){let{className:t,...a}=e;return(0,n.jsx)("div",{"data-slot":"dialog-footer",className:(0,l.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function x(e){let{className:t,...a}=e;return(0,n.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,l.cn)("text-lg leading-none font-semibold",t),...a})}function m(e){let{className:t,...a}=e;return(0,n.jsx)(r.VY,{"data-slot":"dialog-description",className:(0,l.cn)("text-muted-foreground text-sm",t),...a})}},64269:(e,t,a)=>{a.d(t,{Y:()=>c,b:()=>u,cn:()=>d});var n=a(2821),r=a(75889),s=a(73683),l=a(47251),o=a(80731),i=a(85665);function d(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.QP)((0,n.$)(t))}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return t.startsWith("fr")?(0,s.GP)(new Date(e),"d MMMM yyyy",{locale:l.fr}):"en-GB"===t?(0,s.GP)(new Date(e),"d MMMM yyyy",{locale:o.b}):(0,s.GP)(new Date(e),"MMMM d, yyyy",{locale:i.c})}let u=e=>{if(e)return e.startsWith("bg-")?e.substring(3):e}},76144:(e,t,a)=>{a.d(t,{Spinner:()=>c});var n=a(95155),r=a(42348),s=a(35299),l=a(6577),o=a(64269);let i={default:r.A,circle:s.A,pinwheel:l.A},d={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},c=e=>{let{variant:t="default",size:a="md",className:r=""}=e,s=i[t]||i.default,l=d[a]||d.md;
1return(0,n.jsx)(s,{className:(0,o.cn)("text-foreground/50 animate-spin",l,r)})}},85234:(e,t,a)=>{a.d(t,{Sw:()=>k,Ey:()=>_,fx:()=>M});var n=a(95155),r=a(12115),s=a(84598),l=a(64269),o=a(3998);function i(e){let{...t}=e;return(0,n.jsx)(s.bL,{"data-slot":"alert-dialog",...t})}function d(e){let{...t}=e;return(0,n.jsx)(s.ZL,{"data-slot":"alert-dialog-portal",...t})}function c(e){let{className:t,...a}=e;return(0,n.jsx)(s.hJ,{"data-slot":"alert-dialog-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function u(e){let{className:t,...a}=e;return(0,n.jsxs)(d,{children:[(0,n.jsx)(c,{}),(0,n.jsx)(s.UC,{"data-slot":"alert-dialog-content",className:(0,l.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a})]})}function f(e){let{className:t,...a}=e;return(0,n.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,l.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function g(e){let{className:t,...a}=e;return(0,n.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,l.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function p(e){let{className:t,...a}=e;return(0,n.jsx)(s.hE,{"data-slot":"alert-dialog-title",className:(0,l.cn)("text-lg font-semibold",t),...a})}function x(e){let{className:t,...a}=e;return(0,n.jsx)(s.VY,{"data-slot":"alert-dialog-description",className:(0,l.cn)("text-muted-foreground text-sm",t),...a})}function m(e){let{className:t,...a}=e;return(0,n.jsx)(s.rc,{className:(0,l.cn)((0,o.r)(),t),...a})}function h(e){let{className:t,...a}=e;return(0,n.jsx)(s.ZD,{className:(0,l.cn)((0,o.r)({variant:"outline"}),t),...a})}let v=r.memo(e=>{let{open:t,onOpenChange:a,title:r="Alert",description:s,variant:l="default",children:o}=e;return(0,n.jsx)(i,{open:t,onOpenChange:a,children:(0,n.jsxs)(u,{children:[(0,n.jsxs)(f,{children:[(0,n.jsx)(p,{children:r}),s&&(0,n.jsx)(x,{children:s})]}),(0,n.jsx)(g,{children:o})]})})});v.displayName="Alert";let b=r.memo(e=>{let{open:t,onOpenChange:a,title:r="Confirm",description:s,variant:l="default",confirmLabel:o="Confirm",cancelLabel:i="Cancel",onConfirm:d}=e;return(0,n.jsxs)(v,{open:t,onOpenChange:a,title:r,description:s,variant:l,children:[(0,n.jsx)(h,{children:i}),(0,n.jsx)(m,{onClick:()=>{d(),a(!1)},className:"destructive"===l?"bg-red-600 hover:bg-red-700":void 0,children:o})]})});b.displayName="ConfirmAlert";let y=r.memo(e=>{let{open:t,onOpenChange:a,title:r="Confirm Delete",description:s,itemName:l,confirmLabel:o="Delete",cancelLabel:i="Cancel",onConfirm:d}=e;return(0,n.jsx)(b,{open:t,onOpenChange:a,title:r,description:s||"Are you sure you want to delete ".concat(l?'"'.concat(l,'"'):"this item","? This action cannot be undone."),variant:"destructive",confirmLabel:o,cancelLabel:i,onConfirm:d})});y.displayName="ConfirmAlertDelete";let j={alerts:[]},w=(e,t)=>{switch(t.type){case"ADD_ALERT":return{...e,alerts:[...e.alerts,t.payload]};case"REMOVE_ALERT":return{...e,alerts:e.alerts.filter(e=>e.id!==t.payload.id)};case"SET_ALERT_OPEN":return{...e,alerts:e.alerts.map(e=>e.id===t.payload.id?{...e,open:t.payload.open}:e)};default:return e}},N=()=>Math.random().toString(36).substr(2,9),C=(0,r.createContext)(void 0),k=e=>{let{children:t}=e,[a,s]=(0,r.useReducer)(w,j),l=(0,r.useCallback)((e,t)=>{if(t)s({type:"SET_ALERT_OPEN",payload:{id:e,open:t}});else{s({type:"SET_ALERT_OPEN",payload:{id:e,open:t}});let a=setTimeout(()=>{s({type:"REMOVE_ALERT",payload:{id:e}})},300);return()=>clearTimeout(a)}},[]),o=(0,r.useCallback)(e=>{s({type:"ADD_ALERT",payload:{id:N(),type:"confirm",open:!0,props:e}})},[]),i=(0,r.useCallback)(e=>{s({type:"ADD_ALERT",payload:{id:N(),type:"delete",open:!0,props:e}})},[]),d={alerts:a.alerts,confirmAlert:o,confirmAlertDelete:i,handleOpenChange:l};return(0,n.jsxs)(C.Provider,{value:d,children:[t,(0,n.jsx)(E,{})]})},E=r.memo(()=>{let e=(0,r.useContext)(C);if(!e)return null;let{alerts:t,handleOpenChange:a}=e;return 0===t.length?null:(0,n.jsx)(n.Fragment,{children:t.map(e=>{let t=t=>a(e.id,t);if("confirm"===e.type){let{props:a}=e;return(0,n.jsx)(b,{open:e.open,onOpenChange:t,...a}
1,e.id)}if("delete"===e.type){let{props:a}=e;return(0,n.jsx)(y,{open:e.open,onOpenChange:t,...a},e.id)}return null})})});E.displayName="AlertRenderer";let A=()=>{let e=(0,r.useContext)(C);if(void 0===e)throw Error("useAlerts must be used within an AlertProvider");return e},_=()=>{let{confirmAlert:e}=A();return e},M=()=>{let{confirmAlertDelete:e}=A();return e}}}]);
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.