1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2667],{855:(e,t,r)=>{r.d(t,{Toast:()=>o});var n=r(3345),l=r(8997),i=r(6521);let a={success:"border-green-200 bg-green-50 text-green-800",error:"border-red-200 bg-red-50 text-red-800",warning:"border-yellow-200 bg-yellow-50 text-yellow-800",info:"border-blue-200 bg-blue-50 text-blue-800"};function s(e){let{variant:t}=e,r={xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(t){case"success":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,n.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]});case"error":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,n.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]});case"warning":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,n.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]});case"info":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}}function o(e){let{message:t,variant:r="info",duration:o=5e3,onClose:d}=e;return(0,l.useEffect)(()=>{if(o<=0)return;let e=setTimeout(d,o);return()=>clearTimeout(e)},[o,d]),(0,n.jsxs)("div",{role:"alert","aria-live":"assertive",className:(0,i.cn)("animate-in slide-in-from-top-2 fade-in flex items-center gap-3 rounded-lg border px-4 py-3 shadow-md duration-300",a[r]),children:[(0,n.jsx)("span",{className:"shrink-0",children:(0,n.jsx)(s,{variant:r})}),(0,n.jsx)("p",{className:"flex-1 text-sm font-medium",children:t}),(0,n.jsx)("button",{type:"button",onClick:d,"aria-label":"Dismiss notification",className:"shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-current",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}},2066:(e,t,r)=>{r.d(t,{Input:()=>a});var n=r(3345),l=r(8997),i=r(6521);let a=(0,l.forwardRef)((e,t)=>{let{className:r,label:l,error:a,helperText:s,inputSize:o="md",id:d,...c}=e,u=d||(l?l.toLowerCase().replace(/\s+/g,"-"):void 0);return(0,n.jsxs)("div",{className:"w-full",children:[l&&(0,n.jsx)("label",{htmlFor:u,className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-slate-300",children:l}),(0,n.jsx)("input",{ref:t,id:u,"aria-invalid":a?"true":void 0,"aria-describedby":a?"".concat(u,"-error"):s?"".concat(u,"-helper"):void 0,className:(0,i.cn)("block w-full rounded-lg border bg-white transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-slate-800 dark:focus-visible:ring-offset-slate-900",{"focus-visible:ring-brand-500 border-gray-300 text-gray-900 placeholder:text-gray-400 dark:border-slate-600 dark:text-white dark:placeholder:text-slate-500":!a,"border-red-500 text-gray-900 placeholder:text-gray-400 focus-visible:ring-red-500 dark:text-white dark:placeholder:text-slate-500":!!a},{"px-3 py-1.5 text-sm":"sm"===o,"px-4 py-2 text-sm":"md"===o,"px-4 py-3 text-base":"lg"===o},r),...c}),a&&(0,n.jsx)("p",{id:"".concat(u,"-error"),className:"mt-1.5 text-sm text-red-600",role:"alert",children:a}),s&&!a&&(0,n.jsx)("p",{id:"".concat(u,"-helper"),className:"mt-1.5 text-sm text-gray-500 dark:text-slate-400",children:s})]})});a.displayName="Input"},2328:(e,t,r)=>{r.d(t,{Alert:()=>s});var n=r(3345),l=r(6521);let i={success:"border-green-200 bg-green-50 text-green-800 dark:border-green-800 dark:bg-green-900/30 dark:text-green-300",error:"border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-900/30 dark:text-red-300",warning:"border-yellow-200 bg-yellow-50 text-yellow-800 dark:border-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300",info:"border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-900/30 dark:text-blue-300"};function a(e){let{variant:t}=e,r={xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(t){case"success":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,n.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]});case"error":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,n.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]});case"warning":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,n.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]});case"info":return(0,n.jsxs)("svg",{...r,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}}function s(e){let{variant:t,title:r,children:s,dismissible:o=!1,onDismiss:d}=e;return(0,n.jsxs)("div",{role:"alert",className:(0,l.cn)("flex gap-3 rounded-lg border px-4 py-3",i[t]),children:[(0,n.jsx)("span",{className:"mt-0.5 shrink-0",children:(0,n.jsx)(a,{variant:t})}),(0,n.jsxs)("div",{className:"flex-1",children:[r&&(0,n.jsx)("p",{className:"mb-1 font-semibold",children:r}),(0,n.jsx)("div",{className:"text-sm",children:s})]}),o&&d&&(0,n.jsx)("button",{type:"button",onClick:d,"aria-label":"Dismiss alert",className:"shrink-0 self-start rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-current",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}},3837:(e,t,r)=>{r.d(t,{Checkbox:()=>a});var n=r(3345),l=r(8997),i=r(6521);let a=(0,l.forwardRef)((e,t)=>{let{className:r,label:l,description:a,id:s,...o}=e,d=s||l.toLowerCase().replace(/\s+/g,"-");return(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("input",{ref:t,id:d,type:"checkbox",className:(0,i.cn)("text-brand-600 focus:ring-brand-500 mt-0.5 h-4 w-4 shrink-0 cursor-pointer rounded border-gray-300 focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...o}),(0,n.jsxs)("div",{className:"select-none",children:[(0,n.jsx)("label",{htmlFor:d,className:"cursor-pointer text-sm font-medium text-gray-900",children:l}),a&&(0,n.jsx)("p",{className:"mt-0.5 text-sm text-gray-500",children:a})]})]})});a.displayName="Checkbox"},5941:(e,t,r)=>{r.d(t,{Modal:()=>v});var n=r(3345),l=r(8997),i=r(8824),a=r(6521);let s=0,o="",d=0,c=(0,l.createContext)(null),u=[];function x(e){let t=[],r=e;for(;r;)t.push(r.openSequence.current),r=r.parent;return t.reverse()}function b(e,t){let r=x(e),n=x(t),l=Math.min(r.length,n.length);for(let e=0;e<l;e+=1)if(r[e]!==n[e])return r[e]-n[e];return r.length-n.length}function h(){u.filter(e=>e.element.isConnected).sort((e,t)=>
1b(e.layer,t.layer)).forEach((e,t)=>{e.overlay.style.zIndex=0===t?"":String(50+t)})}function f(e,t){let r;for(let n of e)(!t||n.element.isConnected)&&(!r||b(n.layer,r.layer)>=0)&&(r=n);return r}function g(){return f(u,!0)}function m(e){return!!e&&(e.focus(),document.activeElement===e)}function v(e){let{open:t,onClose:r,dismissible:x=!0,title:v,closeLabel:p="Close dialog",children:y,size:k="md",showHeader:w=!0,disableDefaultAnimation:j=!1,overlayClassName:N,panelClassName:C,bodyClassName:L}=e,E=(0,l.useContext)(c),D=(0,l.useRef)(0),F=(0,l.useMemo)(()=>({parent:E,openSequence:D}),[E]),M=(0,l.useRef)(null),A=(0,l.useRef)(null),z=(0,l.useRef)(null);if((0,l.useEffect)(()=>{if(!t)return;let e=A.current,r=M.current;if(e&&r){var n,l;D.current=++d;let t=g(),i=document.activeElement;z.current=t&&b(t.layer,F)>0&&i&&t.element.contains(i)?t.previousFocus:i,l={element:e,overlay:r,layer:F,previousFocus:z.current},u.push(l),h(),null==(n=g())||n.element.focus()}return 0===s&&(o=document.body.style.overflow,document.body.style.overflow="hidden"),s+=1,()=>{var t,r;let n=[...u];if(e&&function(e){for(let t=u.length-1;t>=0;t-=1)if(u[t].element===e){let r=u[t];for(let t of u)t!==r&&t.previousFocus&&e.contains(t.previousFocus)&&(t.previousFocus=r.previousFocus);u.splice(t,1),h();return}}(e),0===(s=Math.max(0,s-1))&&(document.body.style.overflow=o),null===e||(null==(t=f(n,!1))?void 0:t.element)!==e)return;let l=g();if(l){let e=z.current;if((null==e?void 0:e.isConnected)&&l.element.contains(e)&&m(e))return;m(l.element);return}!function(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t].previousFocus;if((null==r?void 0:r.isConnected)&&m(r))return!0}return!1}(n)&&(null==(r=z.current)?void 0:r.isConnected)&&m(z.current)}},[F,t]),(0,l.useEffect)(()=>{if(t)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){var t;if("Escape"!==e.key&&"Tab"!==e.key)return;let n=A.current;if(n&&(null==(t=g())?void 0:t.element)===n){if("Escape"===e.key){e.preventDefault(),x&&r();return}if("Tab"===e.key){let t=n.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'),r=t[0],l=t[t.length-1],i=Array.from(t).indexOf(document.activeElement);if(!r||!l){e.preventDefault(),n.focus();return}e.shiftKey?i<=0&&(e.preventDefault(),l.focus()):(-1===i||i===t.length-1)&&(e.preventDefault(),r.focus())}}}},[x,t,r]),!t)return null;let S=(0,n.jsx)("div",{ref:M,role:"presentation",className:(0,a.cn)("fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",!j&&"animate-in fade-in duration-200",N),onClick:function(e){x&&e.target===M.current&&r()},children:(0,n.jsxs)("div",{ref:A,role:"dialog","aria-modal":"true","aria-label":v||"Dialog",tabIndex:-1,className:(0,a.cn)("relative w-full rounded-xl bg-white shadow-xl focus:outline-none dark:bg-slate-800",!j&&"animate-in zoom-in-95 fade-in duration-200",{"max-w-sm":"sm"===k,"max-w-lg":"md"===k,"max-w-2xl":"lg"===k,"max-w-5xl":"xl"===k},C),children:[v&&w&&(0,n.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 dark:border-slate-700",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:v}),(0,n.jsx)("button",{type:"button",onClick:r,disabled:!x,"aria-label":p,className:"focus-visible:ring-brand-500 flex size-11 shrink-0 items-center justify-center rounded-lg text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 focus:outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-gray-400 dark:text-slate-400 dark:hover:bg-slate-700 dark:hover:text-slate-200 dark:disabled:hover:bg-transparent dark:disabled:hover:text-slate-400",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,n.jsx)("div",{className:(0,a.cn)("px-6 py-4",L),children:(0,n.jsx)(c.Provider,{value:F,children:y})})]})});return"undefined"==typeof document?null:(0,i.createPortal)(S,document.body)}},6521:(e,t,r)=>{r.d(t,{cn:()=>i});var n=r(8682),l=r(2926);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,n.$)(t))}},7054:(e,t,r)=>{r.d(t,{Pagination:()=>i});var n=r(3345),l=r(6521);function i(e){let{currentPage:t,totalPages:r,onPageChange:i,siblingCount:a=1}=e,s=function(e,t,r){if(t<=2*r+5)return Array.from({length:t},(e,t)=>t+1);let n=Math.max(e-r,1),l=Math.min(e+r,t),i=n>2,a=l<t-1;if(!i&&a)return[...Array.from({length:3+2*r},(e,t)=>t+1),"ellipsis",t];if(i&&!a){let e=3+2*r;return[1,"ellipsis",...Array.from({length:e},(r,n)=>t-e+n+1)]}return[1,"ellipsis",...Array.from({length:l-n+1},(e,t)=>n+t),"ellipsis",t]}(t,r,a);if(r<=1)return null;let o="inline-flex items-center justify-center rounded-lg text-sm font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none h-9 min-w-9 px-3 dark:focus-visible:ring-offset-slate-900";return(0,n.jsx)("nav",{role:"navigation","aria-label":"Pagination",children:(0,n.jsxs)("ul",{className:"flex items-center gap-1",children:[(0,n.jsx)("li",{children:(0,n.jsx)("button",{type:"button",onClick:()=>i(t-1),disabled:t<=1,"aria-label":"Go to previous page",className:(0,l.cn)(o,"text-gray-700 hover:bg-gray-100 dark:text-slate-300 dark:hover:bg-slate-800"),children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("polyline",{points:"15 18 9 12 15 6"})})})}),s.map((e,r)=>"ellipsis"===e?(0,n.jsx)("li",{children:(0,n.jsx)("span",{className:"inline-flex h-9 min-w-9 items-center justify-center text-sm text-gray-400 dark:text-slate-500",children:"..."})},"ellipsis-".concat(r)):(0,n.jsx)("li",{children:(0,n.jsx)("button",{type:"button",onClick:()=>i(e),"aria-label":"Go to page ".concat(e),"aria-current":e===t?"page":void 0,className:(0,l.cn)(o,e===t?"bg-brand-600 hover:bg-brand-700 text-white":"text-gray-700 hover:bg-gray-100 dark:text-slate-300 dark:hover:bg-slate-800"),children:e})},e)),(0,n.jsx)("li",{children:(0,n.jsx)("button",{type:"button",onClick:()=>i(t+1),disabled:t>=r,"aria-label":"Go to next page",className:(0,l.cn)(o,"text-gray-700 hover:bg-gray-100 dark:text-slate-300 dark:hover:bg-slate-800"),children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("polyline",{points:"9 18 15 12 9 6"})})})})]})})}},7452:(e,t,r)=>{r.d(t,{Textarea:()=>a});var n=r(3345),l=r(8997),i=r(6521);let a=(0,l.forwardRef)((e,t)=>{let{className:r,label:l,error:a,helperText:s,id:o,rows:d=4,...c}=e,u=o||(l?l.toLowerCase().replace(/\s+/g,"-"):void 0);return(0,n.jsxs)("div",{className:"w-full",children:[l&&(0,n.jsx)("label",{htmlFor:u,className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-slate-300",children:l}),(0,n.jsx)("textarea",{ref:t,id:u,rows:d,"aria-invalid":a?"true":void 0,"aria-describedby":a?"".concat(u,"-error"):s?"".concat(u,"-helper"):void 0,className:(0,i.cn)("block w-full resize-y rounded-lg border bg-white px-4 py-2 text-sm transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-slate-800 dark:focus-visible:ring-offset-slate-900",{"focus-visible:ring-brand-500 border-gray-300 text-gray-900 placeholder:text-gray-400 dark:border-slate-600 dar
1k:text-white dark:placeholder:text-slate-500":!a,"border-red-500 text-gray-900 placeholder:text-gray-400 focus-visible:ring-red-500 dark:text-white dark:placeholder:text-slate-500":!!a},r),...c}),a&&(0,n.jsx)("p",{id:"".concat(u,"-error"),className:"mt-1.5 text-sm text-red-600",role:"alert",children:a}),s&&!a&&(0,n.jsx)("p",{id:"".concat(u,"-helper"),className:"mt-1.5 text-sm text-gray-500 dark:text-slate-400",children:s})]})});a.displayName="Textarea"},8106:(e,t,r)=>{r.d(t,{Switch:()=>i});var n=r(3345),l=r(6521);function i(e){let{checked:t,onChange:r,label:i,disabled:a,className:s}=e;return(0,n.jsx)("button",{type:"button",role:"switch","aria-label":i,"aria-checked":t,disabled:a,onClick:()=>r(!t),className:(0,l.cn)("relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors",a&&"cursor-not-allowed opacity-50",t?"bg-brand-600":"bg-gray-200",s),children:(0,n.jsx)("span",{className:(0,l.cn)("inline-block size-5 transform rounded-full bg-white shadow-[0_1px_2px_0_rgba(0,0,0,0.15)] transition-transform",t?"translate-x-[22px]":"translate-x-0.5")})})}},8722:(e,t,r)=>{r.d(t,{Tabs:()=>a});var n=r(3345),l=r(8997),i=r(6521);function a(e){var t;let{tabs:r,defaultTab:a,onChange:s}=e,[o,d]=(0,l.useState)(()=>{var e;return a||(null==(e=r[0])?void 0:e.key)||""});function c(e){d(e),null==s||s(e)}let u=null==(t=r.find(e=>e.key===o))?void 0:t.content;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{role:"tablist","aria-orientation":"horizontal",className:"flex border-b border-gray-200 dark:border-slate-700",children:r.map((e,t)=>(0,n.jsx)("button",{type:"button",role:"tab",id:"tab-".concat(e.key),"aria-selected":o===e.key,"aria-controls":"tabpanel-".concat(e.key),tabIndex:o===e.key?0:-1,onClick:()=>c(e.key),onKeyDown:e=>(function(e,t){let n=null;if("ArrowRight"===e.key?n=t<r.length-1?t+1:0:"ArrowLeft"===e.key?n=t>0?t-1:r.length-1:"Home"===e.key?n=0:"End"===e.key&&(n=r.length-1),null!==n){e.preventDefault();let t=r[n];if(t){var l;c(t.key);let r=null==(l=e.currentTarget.parentElement)?void 0:l.children[n];null==r||r.focus()}}})(e,t),className:(0,i.cn)("focus-visible:ring-brand-500 px-4 py-2.5 text-sm font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset",o===e.key?"border-brand-600 text-brand-600 border-b-2":"text-gray-500 hover:border-b-2 hover:border-gray-300 hover:text-gray-700 dark:text-slate-400 dark:hover:border-slate-500 dark:hover:text-slate-200"),children:e.label},e.key))}),(0,n.jsx)("div",{role:"tabpanel",id:"tabpanel-".concat(o),"aria-labelledby":"tab-".concat(o),tabIndex:0,className:"pt-4 focus:outline-none",children:u})]})}},9100:(e,t,r)=>{r.d(t,{Carousel:()=>c});var n=r(3345),l=r(8997),i=r(5729),a=r(9905);let s=[.22,1,.36,1];function o(){return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M15 18l-6-6 6-6"})})}function d(){return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M9 18l6-6-6-6"})})}function c(e){var t;let{slides:r,autoPlayInterval:c=5e3,transitionDuration:u=600,showArrows:x=!0,showDots:b=!0,className:h="",ariaLabel:f="Featured products and promotions",prevLabel:g="Previous slide",nextLabel:m="Next slide",goToSlideLabel:v="Go to slide"}=e,[p,y]=(0,l.useState)(0),[k,w]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),C=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");N(e.matches);let t=e=>{N(e.matches)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let L=j?0:u/1e3,E=(0,l.useCallback)(()=>{y(e=>0===e?r.length-1:e-1)},[r.length]),D=(0,l.useCallback)(()=>{y(e=>e===r.length-1?0:e+1)},[r.length]),F=(0,l.useCallback)(e=>{y(e)},[]);if((0,l.useEffect)(()=>{if(j||k||r.length<=1)return;let e=setInterval(()=>{D()},c);return()=>clearInterval(e)},[j,k,c,D,r.length]),(0,l.useEffect)(()=>{let e=e=>{var t;(null==(t=C.current)?void 0:t.contains(document.activeElement))&&("ArrowLeft"===e.key?(e.preventDefault(),E()):"ArrowRight"===e.key&&(e.preventDefault(),D()))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[E,D]),0===r.length)return null;let M=r[p];return(0,n.jsxs)("div",{ref:C,role:"region","aria-roledescription":"carousel","aria-label":f,className:"relative w-full overflow-hidden ".concat(h),onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),tabIndex:0,children:[(0,n.jsx)("div",{className:"relative aspect-[16/9] w-full md:aspect-[21/9]",children:(0,n.jsx)(i.N,{mode:"wait",children:(0,n.jsxs)(a.P.div,{role:"group","aria-roledescription":"slide","aria-label":"".concat(p+1," / ").concat(r.length),initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:L,ease:s},drag:"x",dragConstraints:{left:0,right:0},dragElastic:.2,onDragEnd:(e,t)=>{t.offset.x>50?E():t.offset.x<-50&&D()},className:"absolute inset-0 cursor-grab active:cursor-grabbing",children:[(0,n.jsx)("img",{src:null==M?void 0:M.imageUrl,alt:null!=(t=null==M?void 0:M.imageAlt)?t:"",className:"absolute inset-0 h-full w-full object-cover",draggable:!1}),(0,n.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%)"}}),(0,n.jsx)("div",{className:"absolute inset-0 flex items-end px-6 pb-8 md:items-center md:pb-0",children:(0,n.jsxs)("div",{className:"w-full max-w-[600px] text-center md:pl-12 md:text-left lg:pl-20",children:[(null==M?void 0:M.title)&&(0,n.jsx)(a.P.h2,{initial:j?{}:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:L,ease:s,delay:.1*!j},className:"font-display text-3xl font-light tracking-tight text-white md:text-5xl",children:M.title},"title-".concat(M.id)),(null==M?void 0:M.subtitle)&&(0,n.jsx)(a.P.p,{initial:j?{}:{opacity:0,y:20},animate:{opacity:.9,y:0},transition:{duration:L,ease:s,delay:.2*!j},className:"mt-3 text-base text-white/90 md:mt-4 md:text-lg",children:M.subtitle},"subtitle-".concat(M.id)),(null==M?void 0:M.ctaText)&&M.ctaUrl&&(0,n.jsx)(a.P.div,{initial:j?{}:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:L,ease:s,delay:.3*!j},className:"mt-5 md:mt-6",children:(0,n.jsx)("a",{href:M.ctaUrl,className:"bg-brand-600 hover:bg-brand-700 focus:ring-brand-500 inline-block rounded-lg px-6 py-3 text-sm font-medium text-white transition-colors focus:ring-2 focus:ring-offset-2 focus:ring-offset-transparent focus:outline-none",children:M.ctaText})},"cta-".concat(M.id))]})})]},null==M?void 0:M.id)})}),x&&r.length>1&&(0,n.jsx)("button",{type:"button",onClick:E,"aria-label":g,className:"absolute top-1/2 left-3 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/20 text-white transition-colors hover:bg-black/40 focus:ring-2 focus:ring-white/50 focus:outline-none md:left-4 md:h-12 md:w-12",children:(0,n.jsx)(o,{})}),x&&r.length>1&&(0,n.jsx)("button",{type:"button",onClick:D,"aria-label":m,className:"absolute top-1/2 right-3 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/20 text-white transition-colors hover:bg-black/40 focus:ring-2 focus:ring-white/50 focus:outline-none md:right-4 md:h-12 md:w-12",children:(0,n.jsx)(d,{})}),b&&r.length>1&&(0,n.jsx)("div",{className:"absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 gap-2 md:bottom-6",role:"tablist","aria-label":"Slide navigation",children:r.map((e,t)=>(0,n.jsx)("button",{type:"button",role:"tab","aria-selected":t===p,"aria-label":"function"==typeof v?v(t+1):"".concat(v," ").concat(t+1),onClick:()=>F(t),className:"h-2.5 w-2.5 rounded-full transition-all duration-300 focus:ring-2 focus:ring-white/50 focus:outline-none ".concat(t===p?"bg-brand-500 w-8":"bg-white/50 hover:bg-white/80")},e.id))})]})}},9134:(e,t,r)=>{r.d(t,{Select:()=>a});var n=r(3345),l=r(8997),i=r(6521);let a=(0,l.forwardRef)((e,t)=>{let{className:r,label:l,error:a,options:s,placeholder:o,id:d,...c}=e,u=d||(l?l.toLowerCase().replace(/\s+/g,"-"):void 0);return(0,n.jsxs)("div",{className:"w-full",children:[l&&(0,n.jsx)("label",{htmlFor:u,className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-slate-300",children:l}),(0,n.jsxs)("select",{ref:t,id:u,"aria-invalid":a?"true":void 0,"aria-describedby":a?"".concat(u,"-error"):void 0,className:(0,i.cn)('block min-h-11 w-full appearance-none rounded-lg border bg-white bg-[url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%236b7280%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M5.23%207.21a.75.75%200%20011.06.02L10%2011.168l3.71-3.938a.75.75%200%20111.08%201.04l-4.25%204.5a.75.75%200%2001-1.08%200l-4.25-4.5a.75.75%200%2001.02-1.06z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E")] bg-[length:20px] bg-[right_8px_center] bg-no-repeat px-4 py-2 pr-10 text-sm transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-slate-800 dark:focus-visible:ring-offset-slate-900',{"focus-visible:ring-brand-500 border-gray-300 text-gray-900 dark:border-slate-600 dar
1k:text-white":!a,"border-red-500 text-gray-900 focus-visible:ring-red-500 dark:text-white":!!a},r),...c,children:[o&&(0,n.jsx)("option",{value:"",disabled:!0,children:o}),s.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]}),a&&(0,n.jsx)("p",{id:"".concat(u,"-error"),className:"mt-1.5 text-sm text-red-600",role:"alert",children:a})]})});a.displayName="Select"}}]);
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.