adminizer 4.1.0-build.34 → 4.1.0-build.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/Readme.md +1 -1
  2. package/assets/{add-NjsCZZct.js → add-BOMae0jC.js} +1 -1
  3. package/assets/{add-form-DJnEBqvy.js → add-form-DAMJbss4.js} +1 -1
  4. package/assets/{add-group-CU2zD7To.js → add-group-BHyaFPsj.js} +1 -1
  5. package/assets/{add-user-BkTa9shp.js → add-user-DjT6o3z9.js} +1 -1
  6. package/assets/{app-DVaaqBB5.css → app-BrkasjFX.css} +1 -1
  7. package/assets/{app-layout-NY6MXzc5.js → app-layout-BC2Dk0GE.js} +1 -1
  8. package/assets/{app-shell-BjaxjNs9.js → app-shell-jCQ5EbpR.js} +1 -1
  9. package/assets/{app-sidebar-header-5IaQpngt.js → app-sidebar-header-BcGzUtnn.js} +1 -1
  10. package/assets/{app-sidebar-CLu13Pcu.js → app-sidebar-wFqi5-7E.js} +1 -1
  11. package/assets/app.js +2 -2
  12. package/assets/catalog-DGH9s-S8.js +16 -0
  13. package/assets/{dashboard-BTmXuc5F.js → dashboard-DFn55U5H.js} +1 -1
  14. package/assets/{dialog-stack-BAuaxCy1.js → dialog-stack-V6c1TlnC.js} +1 -1
  15. package/assets/field-renderer-zGC76llY.js +1 -1
  16. package/assets/{form-DOt5Fa6e.js → form-B9sI77wk.js} +1 -1
  17. package/assets/{form-CN2xVSMK.js → form-DkRGBp5e.js} +1 -1
  18. package/assets/{home-3FBATYFh.js → home-BmydIqzz.js} +2 -2
  19. package/assets/{init-user-BBfP40-3.js → init-user-GyTJdhrh.js} +1 -1
  20. package/assets/{list-DqIUjXSX.js → list-Dy_nWfcN.js} +1 -1
  21. package/assets/{list-table-1aXDvDPl.js → list-table-DqU7Spnz.js} +1 -1
  22. package/assets/{login-Bv4hqwaM.js → login-BMJ97XcF.js} +1 -1
  23. package/assets/manifest.json +137 -199
  24. package/assets/module-UO5sAKpW.js +1 -0
  25. package/assets/{nav-footer-Vm24wf5X.js → nav-footer-_TcxXo9x.js} +1 -1
  26. package/assets/nav-main-DPeRWb5e.js +1 -0
  27. package/assets/{nav-user-DgYX0wO7.js → nav-user-G2BeH6Uu.js} +1 -1
  28. package/assets/{register-D8SyTFBZ.js → register-CcA8kQ56.js} +1 -1
  29. package/assets/{sidebar-DGp3i7GG.js → sidebar-CkxHTDia.js} +1 -1
  30. package/assets/sonner-Dp8PyHu_.js +1 -0
  31. package/assets/{welcome-C9BMKsoY.js → welcome-Dh8vAafD.js} +1 -1
  32. package/controllers/catalog/Catalog.js +2 -3
  33. package/controllers/catalog/FrontentCatalogAdapter.d.ts +4 -8
  34. package/controllers/catalog/FrontentCatalogAdapter.js +20 -22
  35. package/helpers/menuHelper.d.ts +4 -0
  36. package/helpers/menuHelper.js +4 -2
  37. package/interfaces/adminpanelConfig.d.ts +8 -0
  38. package/lib/v4/catalog/AbstractCatalog.d.ts +12 -23
  39. package/lib/v4/catalog/AbstractCatalog.js +5 -7
  40. package/package.json +1 -1
  41. package/system/bindInertia.js +6 -2
  42. package/system/bindModels.js +1 -1
  43. package/system/defaults.js +8 -2
  44. package/assets/catalog-CeUUKxG9.js +0 -17
  45. package/assets/group-link-add-CCNISxeF.js +0 -1
  46. package/assets/item-add-CX7EOX0H.js +0 -1
  47. package/assets/module-DziT22BH.js +0 -1
  48. package/assets/nav-main-JVt9gzn8.js +0 -1
  49. package/assets/sonner-MAL0i2dq.js +0 -1
@@ -0,0 +1 @@
1
+ import{q as l,r as m,j as e}from"./app.js";import{A as a}from"./app-layout-BC2Dk0GE.js";import{L as c}from"./loader-circle-Utah5tGx.js";import"./compiler-runtime-Cj7rbuyn.js";import"./sidebar-CkxHTDia.js";import"./index-DU8vYhyh.js";import"./button-BV-GbIpN.js";import"./utils-DjqsqOe8.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";import"./app-shell-jCQ5EbpR.js";import"./app-sidebar-wFqi5-7E.js";import"./nav-main-DPeRWb5e.js";import"./material-icon-BAd3Wrgn.js";import"./chevron-right-D5q8rF7h.js";import"./index-B__NksD2.js";import"./index-oMAR28Sy.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-BcGzUtnn.js";import"./breadcrumbs-CDxSbsTe.js";import"./nav-user-G2BeH6Uu.js";import"./dropdown-menu-CeMIoM8d.js";import"./user-info-C_11jYGE.js";import"./user-menu-content-BNRzhEo_.js";import"./icon-CqJOMij7.js";import"./use-appearance-DeUiDZ72.js";const d=[];function T(){const r=l(),[i,p]=m.useState(null);return m.useEffect(()=>{const s=async()=>{const o=(await import(r.props.moduleComponent)).default;p(e.jsx(o,{message:r.props.message}))};(()=>{const t=r.props.moduleComponentCSS;if(!t||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(n=>n.href.includes(t)))return;const o=document.createElement("link");o.rel="stylesheet",o.href=t,o.type="text/css",o.onload=()=>console.log(`CSS loaded: ${t}`),o.onerror=()=>console.error(`Failed to load CSS: ${t}`),document.head.appendChild(o)})(),s()},[]),e.jsx(a,{breadcrumbs:d,children:e.jsxs("div",{className:"m-5",children:[e.jsx("div",{className:"mb-5",children:e.jsx("h1",{children:r.props.title})}),i||e.jsx(c,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})]})})}export{T as default};
@@ -1 +1 @@
1
- import{j as t}from"./app.js";import{c as m}from"./compiler-runtime-Cj7rbuyn.js";import{Icon as c}from"./icon-CqJOMij7.js";import{k as u,f as d,h as x,p as f,e as h}from"./sidebar-DGp3i7GG.js";import"./utils-DjqsqOe8.js";import"./index-DU8vYhyh.js";import"./button-BV-GbIpN.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";function F(r){const e=m.c(12);let a,o,i;e[0]!==r?({items:o,className:a,...i}=r,e[0]=r,e[1]=a,e[2]=o,e[3]=i):(a=e[1],o=e[2],i=e[3]);const p=`group-data-[collapsible=icon]:p-0 ${a||""}`;let s;e[4]!==o?(s=o.map(j),e[4]=o,e[5]=s):s=e[5];let n;e[6]!==s?(n=t.jsx(f,{children:t.jsx(h,{children:s})}),e[6]=s,e[7]=n):n=e[7];let l;return e[8]!==i||e[9]!==p||e[10]!==n?(l=t.jsx(u,{...i,className:p,children:n}),e[8]=i,e[9]=p,e[10]=n,e[11]=l):l=e[11],l}function j(r){return t.jsx(d,{children:t.jsx(x,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:t.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(c,{iconNode:r.icon,className:"h-5 w-5"}),t.jsx("span",{children:r.title})]})})},r.title)}export{F as NavFooter};
1
+ import{j as t}from"./app.js";import{c as m}from"./compiler-runtime-Cj7rbuyn.js";import{Icon as c}from"./icon-CqJOMij7.js";import{k as u,f as d,h as x,o as f,e as h}from"./sidebar-CkxHTDia.js";import"./utils-DjqsqOe8.js";import"./index-DU8vYhyh.js";import"./button-BV-GbIpN.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";function F(r){const e=m.c(12);let a,o,i;e[0]!==r?({items:o,className:a,...i}=r,e[0]=r,e[1]=a,e[2]=o,e[3]=i):(a=e[1],o=e[2],i=e[3]);const p=`group-data-[collapsible=icon]:p-0 ${a||""}`;let s;e[4]!==o?(s=o.map(j),e[4]=o,e[5]=s):s=e[5];let n;e[6]!==s?(n=t.jsx(f,{children:t.jsx(h,{children:s})}),e[6]=s,e[7]=n):n=e[7];let l;return e[8]!==i||e[9]!==p||e[10]!==n?(l=t.jsx(u,{...i,className:p,children:n}),e[8]=i,e[9]=p,e[10]=n,e[11]=l):l=e[11],l}function j(r){return t.jsx(d,{children:t.jsx(x,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:t.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(c,{iconNode:r.icon,className:"h-5 w-5"}),t.jsx("span",{children:r.title})]})})},r.title)}export{F as NavFooter};
@@ -0,0 +1 @@
1
+ import{r as c,j as t,q as D,J as E}from"./app.js";import{c as y}from"./compiler-runtime-Cj7rbuyn.js";import{f as w,h as O,c as I,i as B,j as F,k as z,n as q,o as J,e as Q}from"./sidebar-CkxHTDia.js";import S from"./material-icon-BAd3Wrgn.js";import{j as U,i as H,c as W}from"./index-BCpOvf4m.js";import{c as K,a as V}from"./index-Cq31rrfZ.js";import{u as X}from"./index-DU8vYhyh.js";import{P as _}from"./index-DN1K56yz.js";import{P as Y}from"./index-lqMxC6QB.js";import{C as $}from"./chevron-right-D5q8rF7h.js";var R="Collapsible",[Z,Ce]=K(R),[ee,P]=Z(R),A=c.forwardRef((s,e)=>{const{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:p,onOpenChange:d,...m}=s,[v,j]=U({prop:o,defaultProp:a??!1,onChange:d,caller:R});return t.jsx(ee,{scope:n,disabled:p,contentId:H(),open:v,onOpenToggle:c.useCallback(()=>j(x=>!x),[j]),children:t.jsx(_.div,{"data-state":M(v),"data-disabled":p?"":void 0,...m,ref:e})})});A.displayName=R;var T="CollapsibleTrigger",G=c.forwardRef((s,e)=>{const{__scopeCollapsible:n,...o}=s,a=P(T,n);return t.jsx(_.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":M(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:e,onClick:W(s.onClick,a.onOpenToggle)})});G.displayName=T;var k="CollapsibleContent",L=c.forwardRef((s,e)=>{const{forceMount:n,...o}=s,a=P(k,s.__scopeCollapsible);return t.jsx(Y,{present:n||a.open,children:({present:p})=>t.jsx(te,{...o,ref:e,present:p})})});L.displayName=k;var te=c.forwardRef((s,e)=>{const{__scopeCollapsible:n,present:o,children:a,...p}=s,d=P(k,n),[m,v]=c.useState(o),j=c.useRef(null),x=X(e,j),g=c.useRef(0),C=g.current,u=c.useRef(0),h=u.current,b=d.open||m,l=c.useRef(b),r=c.useRef(void 0);return c.useEffect(()=>{const i=requestAnimationFrame(()=>l.current=!1);return()=>cancelAnimationFrame(i)},[]),V(()=>{const i=j.current;if(i){r.current=r.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const N=i.getBoundingClientRect();g.current=N.height,u.current=N.width,l.current||(i.style.transitionDuration=r.current.transitionDuration,i.style.animationName=r.current.animationName),v(o)}},[d.open,o]),t.jsx(_.div,{"data-state":M(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!b,...p,ref:x,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...s.style},children:b&&a})});function M(s){return s?"open":"closed"}var ne=A;function se(s){const e=y.c(4);let n;e[0]!==s?({...n}=s,e[0]=s,e[1]=n):n=e[1];let o;return e[2]!==n?(o=t.jsx(ne,{"data-slot":"collapsible",...n}),e[2]=n,e[3]=o):o=e[3],o}function oe(s){const e=y.c(4);let n;e[0]!==s?({...n}=s,e[0]=s,e[1]=n):n=e[1];let o;return e[2]!==n?(o=t.jsx(G,{"data-slot":"collapsible-trigger",...n}),e[2]=n,e[3]=o):o=e[3],o}function re(s){const e=y.c(4);let n;e[0]!==s?({...n}=s,e[0]=s,e[1]=n):n=e[1];let o;return e[2]!==n?(o=t.jsx(L,{"data-slot":"collapsible-content",...n}),e[2]=n,e[3]=o):o=e[3],o}function ie(s){const e=y.c(15),{items:n}=s;let o;e[0]!==n?(o=n===void 0?[]:n,e[0]=n,e[1]=o):o=e[1];const a=o,p=D();let d;e[2]!==a?(d=()=>{const C={};return a.forEach(u=>{const h=u.section||"Platform";h in C||(C[h]=!0)}),C},e[2]=a,e[3]=d):d=e[3];const[m,v]=c.useState(d),j=le;let x;if(e[4]!==a||e[5]!==m||e[6]!==p){const C=a.reduce(ae,{});let u;if(e[8]!==p){u=l=>{var i,N;const{item:r}=l;return((i=r.actions)==null?void 0:i.length)>0?t.jsx(se,{asChild:!0,defaultOpen:b(r.link),className:"group/collapsible",children:t.jsxs(w,{children:[t.jsx(oe,{asChild:!0,children:t.jsxs(O,{tooltip:r.title,children:[t.jsx(S,{name:r.icon,className:"!text-[18px]"}),t.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:r.title}),t.jsx($,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),t.jsx(re,{children:t.jsx(I,{children:(N=r.actions)==null?void 0:N.map(f=>t.jsx(B,{children:t.jsx(F,{asChild:!0,isActive:b(f.link),children:f.type==="blank"?t.jsxs("a",{href:f.link,target:"_blank",rel:"noopener noreferrer",children:[f.icon&&t.jsx(S,{name:f.icon,className:"!text-[18px]"}),t.jsx("span",{children:f.title})]}):t.jsxs(E,{href:f.link,children:[f.icon&&t.jsx(S,{name:f.icon,className:"!text-[18px]"}),t.jsx("span",{children:f.title})]})})},f.id))})})]})},r.title):t.jsx(w,{children:t.jsx(O,{asChild:!0,isActive:b(r.link),tooltip:{children:r.title},children:r.type==="blank"?t.jsxs("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(S,{name:r.icon,className:"!text-[18px]"}),t.jsx("span",{children:r.title})]}):t.jsxs(E,{href:r.link,children:[r.icon&&t.jsx(S,{name:r.icon,className:"!text-[18px]"}),t.jsx("span",{children:r.title})]})})},r.title)};const b=l=>{const r=j(p.url),i=j(l);return r===i||r.startsWith(`${i}/`)};e[8]=p,e[9]=u}else u=e[9];let h;e[10]!==u||e[11]!==m?(h=b=>{const[l,r]=b;return t.jsxs(z,{className:"px-2 py-0",children:[t.jsx(q,{asChild:!0,className:"cursor-pointer",onClick:()=>v(i=>({...i,[l]:!i[l]})),children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx($,{className:`transform transition-transform duration-200 ${m[l]?"rotate-90":""}`}),t.jsx("span",{children:l})]})}),m[l]&&t.jsx(J,{children:t.jsx(Q,{children:r.map(i=>t.jsx(u,{item:i},i.id||i.title))})})]},l)},e[10]=u,e[11]=m,e[12]=h):h=e[12],x=Object.entries(C).map(h),e[4]=a,e[5]=m,e[6]=p,e[7]=x}else x=e[7];let g;return e[13]!==x?(g=t.jsx(t.Fragment,{children:x}),e[13]=x,e[14]=g):g=e[14],g}function ae(s,e){const n=e.section||"Platform";return s[n]||(s[n]=[]),s[n].push(e),s}function le(s){return s.split("?")[0].replace(/\/$/,"")}const ge=Object.freeze(Object.defineProperty({__proto__:null,NavMain:ie},Symbol.toStringTag,{value:"Module"}));export{L as C,ie as N,A as a,oe as b,ge as n};
@@ -1 +1 @@
1
- import{q as f,j as r}from"./app.js";import{c as x}from"./compiler-runtime-Cj7rbuyn.js";import{D as b,a as g,b as h}from"./dropdown-menu-CeMIoM8d.js";import{u as j,o as M,h as w,e as C,f as D}from"./sidebar-DGp3i7GG.js";import{UserInfo as S}from"./user-info-C_11jYGE.js";import{UserMenuContent as N}from"./user-menu-content-BNRzhEo_.js";import{C as U}from"./chevrons-up-down-kALltqHV.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-DU8vYhyh.js";import"./index-oMAR28Sy.js";import"./index-B__NksD2.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./utils-DjqsqOe8.js";import"./button-BV-GbIpN.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";function Q(){const e=x.c(15),{auth:t,logout:l,logoutBtn:p}=f().props,{state:c}=j(),d=M();let o;e[0]!==t.user?(o=r.jsx(S,{user:t.user}),e[0]=t.user,e[1]=o):o=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(U,{className:"ml-auto size-4"}),e[2]=m):m=e[2];let s;e[3]!==o?(s=r.jsx(b,{asChild:!0,children:r.jsxs(w,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[o,m]})}),e[3]=o,e[4]=s):s=e[4];const u=d?"bottom":c==="collapsed"?"left":"bottom";let i;e[5]!==t.user||e[6]!==l||e[7]!==p?(i=r.jsx(N,{user:t.user,logout:l,logoutBtn:p}),e[5]=t.user,e[6]=l,e[7]=p,e[8]=i):i=e[8];let n;e[9]!==u||e[10]!==i?(n=r.jsx(g,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:u,children:i}),e[9]=u,e[10]=i,e[11]=n):n=e[11];let a;return e[12]!==s||e[13]!==n?(a=r.jsx(C,{children:r.jsx(D,{children:r.jsxs(h,{children:[s,n]})})}),e[12]=s,e[13]=n,e[14]=a):a=e[14],a}export{Q as NavUser};
1
+ import{q as f,j as r}from"./app.js";import{c as x}from"./compiler-runtime-Cj7rbuyn.js";import{D as b,a as g,b as h}from"./dropdown-menu-CeMIoM8d.js";import{u as j,p as M,h as w,e as C,f as D}from"./sidebar-CkxHTDia.js";import{UserInfo as S}from"./user-info-C_11jYGE.js";import{UserMenuContent as N}from"./user-menu-content-BNRzhEo_.js";import{C as U}from"./chevrons-up-down-kALltqHV.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-DU8vYhyh.js";import"./index-oMAR28Sy.js";import"./index-B__NksD2.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./utils-DjqsqOe8.js";import"./button-BV-GbIpN.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";function Q(){const e=x.c(15),{auth:t,logout:l,logoutBtn:p}=f().props,{state:c}=j(),d=M();let o;e[0]!==t.user?(o=r.jsx(S,{user:t.user}),e[0]=t.user,e[1]=o):o=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(U,{className:"ml-auto size-4"}),e[2]=m):m=e[2];let s;e[3]!==o?(s=r.jsx(b,{asChild:!0,children:r.jsxs(w,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[o,m]})}),e[3]=o,e[4]=s):s=e[4];const u=d?"bottom":c==="collapsed"?"left":"bottom";let i;e[5]!==t.user||e[6]!==l||e[7]!==p?(i=r.jsx(N,{user:t.user,logout:l,logoutBtn:p}),e[5]=t.user,e[6]=l,e[7]=p,e[8]=i):i=e[8];let n;e[9]!==u||e[10]!==i?(n=r.jsx(g,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:u,children:i}),e[9]=u,e[10]=i,e[11]=n):n=e[11];let a;return e[12]!==s||e[13]!==n?(a=r.jsx(C,{children:r.jsx(D,{children:r.jsxs(h,{children:[s,n]})})}),e[12]=s,e[13]=n,e[14]=a):a=e[14],a}export{Q as NavUser};
@@ -1 +1 @@
1
- import{q as Pe,r as _e,S as ye,j as l,J as Se}from"./app.js";import{c as Ce}from"./compiler-runtime-Cj7rbuyn.js";import{L as W}from"./label-GEoZpZr4.js";import{I as X}from"./input-B7wUhbil.js";import Y from"./input-error-DFk1EyT_.js";import{S as ke,a as Ee,c as Te,b as Ie,d as $e}from"./select-MzwxLt1D.js";import{B as Le}from"./button-BV-GbIpN.js";import{T as qe,t as Be}from"./sonner-MAL0i2dq.js";import{i as Fe}from"./use-appearance-DeUiDZ72.js";import"./index-DN1K56yz.js";import"./index-DU8vYhyh.js";import"./utils-DjqsqOe8.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-B__NksD2.js";import"./index-CcxvoJO6.js";import"./index-DwctwfU0.js";import"./index-DoVAC0HX.js";import"./chevron-down-B5XuAFRu.js";import"./createLucideIcon-BFG25zNo.js";import"./check-LAUWAnlX.js";function is(){const e=Ce.c(151),s=Pe();let Z;e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=[],e[0]=Z):Z=e[0],_e.useEffect(Ve,Z);let ee;e[1]===Symbol.for("react.memo_cache_sentinel")?(ee={locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""},e[1]=ee):ee=e[1];const{post:ce,data:a,setData:de,processing:r,setError:fe,errors:t,clearErrors:ue}=ye(ee);let se;e[2]!==a.confirmPassword||e[3]!==a.password||e[4]!==s.props.confirmError||e[5]!==s.props.submitLink||e[6]!==ce||e[7]!==fe?(se=i=>{if(i.preventDefault(),a.password!==a.confirmPassword){fe("confirmPassword",s.props.confirmError);return}ce(s.props.submitLink,{onSuccess:Re,onError:De})},e[2]=a.confirmPassword,e[3]=a.password,e[4]=s.props.confirmError,e[5]=s.props.submitLink,e[6]=ce,e[7]=fe,e[8]=se):se=e[8];const be=se;let le;e[9]!==ue||e[10]!==de?(le=(i,ve)=>{ue(),de(i,ve)},e[9]=ue,e[10]=de,e[11]=le):le=e[11];const o=le;let re;e[12]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx(qe,{position:"top-center",richColors:!0,closeButton:!0}),e[12]=re):re=e[12];let p;e[13]!==s.props.header.title?(p=l.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[13]=s.props.header.title,e[14]=p):p=e[14];let m;e[15]!==s.props.header.desc?(m=l.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[15]=s.props.header.desc,e[16]=m):m=e[16];let ae;e[17]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx("span",{className:"text-red-500",children:"*"}),e[17]=ae):ae=e[17];let n;e[18]!==s.props.loginLabel?(n=l.jsxs(W,{htmlFor:"login",children:[s.props.loginLabel,ae]}),e[18]=s.props.loginLabel,e[19]=n):n=e[19];const he=`${t.login?"border-red-500":""}`;let c;e[20]!==o?(c=i=>{o("login",i.target.value)},e[20]=o,e[21]=c):c=e[21];let d;e[22]!==a.login||e[23]!==s.props.loginLabel||e[24]!==r||e[25]!==c||e[26]!==he?(d=l.jsx(X,{id:"login",className:he,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:a.login,disabled:r,onChange:c,placeholder:s.props.loginLabel}),e[22]=a.login,e[23]=s.props.loginLabel,e[24]=r,e[25]=c,e[26]=he,e[27]=d):d=e[27];let f;e[28]!==t.login?(f=l.jsx(Y,{message:t.login}),e[28]=t.login,e[29]=f):f=e[29];let u;e[30]!==d||e[31]!==f?(u=l.jsxs("div",{className:"relative",children:[d,f]}),e[30]=d,e[31]=f,e[32]=u):u=e[32];let b;e[33]!==u||e[34]!==n?(b=l.jsxs("div",{className:"grid gap-4",children:[n,u]}),e[33]=u,e[34]=n,e[35]=b):b=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx("span",{className:"text-red-500",children:"*"}),e[36]=te):te=e[36];let h;e[37]!==s.props.fullNameLabel?(h=l.jsxs(W,{htmlFor:"fullName",children:[s.props.fullNameLabel,te]}),e[37]=s.props.fullNameLabel,e[38]=h):h=e[38];const xe=`${t.fullName?"border-red-500":""}`;let x;e[39]!==o?(x=i=>{o("fullName",i.target.value)},e[39]=o,e[40]=x):x=e[40];let g;e[41]!==a.fullName||e[42]!==s.props.fullNameLabel||e[43]!==r||e[44]!==xe||e[45]!==x?(g=l.jsx(X,{id:"fullName",className:xe,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:a.fullName,disabled:r,onChange:x,placeholder:s.props.fullNameLabel}),e[41]=a.fullName,e[42]=s.props.fullNameLabel,e[43]=r,e[44]=xe,e[45]=x,e[46]=g):g=e[46];let w;e[47]!==t.fullName?(w=l.jsx(Y,{message:t.fullName}),e[47]=t.fullName,e[48]=w):w=e[48];let j;e[49]!==g||e[50]!==w?(j=l.jsxs("div",{className:"relative",children:[g,w]}),e[49]=g,e[50]=w,e[51]=j):j=e[51];let N;e[52]!==h||e[53]!==j?(N=l.jsxs("div",{className:"grid gap-4",children:[h,j]}),e[52]=h,e[53]=j,e[54]=N):N=e[54];let oe;e[55]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("span",{className:"text-red-500",children:"*"}),e[55]=oe):oe=e[55];let L;e[56]!==s.props.passwordLabel?(L=l.jsxs(W,{htmlFor:"password",children:[s.props.passwordLabel,oe]}),e[56]=s.props.passwordLabel,e[57]=L):L=e[57];const ge=`${t.password?"border-red-500":""}`;let v;e[58]!==o?(v=i=>{o("password",i.target.value)},e[58]=o,e[59]=v):v=e[59];let P;e[60]!==a.password||e[61]!==s.props.passwordLabel||e[62]!==r||e[63]!==ge||e[64]!==v?(P=l.jsx(X,{id:"password",className:ge,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:a.password,disabled:r,onChange:v,placeholder:s.props.passwordLabel}),e[60]=a.password,e[61]=s.props.passwordLabel,e[62]=r,e[63]=ge,e[64]=v,e[65]=P):P=e[65];let _;e[66]!==t.password?(_=l.jsx(Y,{message:t.password}),e[66]=t.password,e[67]=_):_=e[67];let y;e[68]!==P||e[69]!==_?(y=l.jsxs("div",{className:"relative",children:[P,_]}),e[68]=P,e[69]=_,e[70]=y):y=e[70];let S;e[71]!==L||e[72]!==y?(S=l.jsxs("div",{className:"grid gap-4",children:[L,y]}),e[71]=L,e[72]=y,e[73]=S):S=e[73];let ie;e[74]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx("span",{className:"text-red-500",children:"*"}),e[74]=ie):ie=e[74];let C;e[75]!==s.props.confirmPasswordLabel?(C=l.jsxs(W,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,ie]}),e[75]=s.props.confirmPasswordLabel,e[76]=C):C=e[76];const we=`${t.confirmPassword?"border-red-500":""}`;let k;e[77]!==o?(k=i=>{o("confirmPassword",i.target.value)},e[77]=o,e[78]=k):k=e[78];let E;e[79]!==a.confirmPassword||e[80]!==s.props.confirmPasswordLabel||e[81]!==r||e[82]!==we||e[83]!==k?(E=l.jsx(X,{id:"confirmPassword",className:we,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:a.confirmPassword,disabled:r,onChange:k,placeholder:s.props.confirmPasswordLabel}),e[79]=a.confirmPassword,e[80]=s.props.confirmPasswordLabel,e[81]=r,e[82]=we,e[83]=k,e[84]=E):E=e[84];let T;e[85]!==t.confirmPassword?(T=l.jsx(Y,{message:t.confirmPassword}),e[85]=t.confirmPassword,e[86]=T):T=e[86];let I;e[87]!==E||e[88]!==T?(I=l.jsxs("div",{className:"relative",children:[E,T]}),e[87]=E,e[88]=T,e[89]=I):I=e[89];let $;e[90]!==C||e[91]!==I?($=l.jsxs("div",{className:"grid gap-4",children:[C,I]}),e[90]=C,e[91]=I,e[92]=$):$=e[92];let pe;e[93]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx("span",{className:"text-red-500",children:"*"}),e[93]=pe):pe=e[93];let q;e[94]!==s.props.emailLabel?(q=l.jsxs(W,{htmlFor:"email",children:[s.props.emailLabel,pe]}),e[94]=s.props.emailLabel,e[95]=q):q=e[95];const je=`${t.email?"border-red-500":""}`;let B;e[96]!==o?(B=i=>{o("email",i.target.value)},e[96]=o,e[97]=B):B=e[97];let F;e[98]!==a.email||e[99]!==s.props.emailLabel||e[100]!==r||e[101]!==je||e[102]!==B?(F=l.jsx(X,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:a.email,disabled:r,onChange:B,placeholder:s.props.emailLabel}),e[98]=a.email,e[99]=s.props.emailLabel,e[100]=r,e[101]=je,e[102]=B,e[103]=F):F=e[103];let D;e[104]!==t.email?(D=l.jsx(Y,{message:t.email}),e[104]=t.email,e[105]=D):D=e[105];let R;e[106]!==F||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[F,D]}),e[106]=F,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==q||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[q,R]}),e[109]=q,e[110]=R,e[111]=V):V=e[111];let J;e[112]!==s.props.localeLabel?(J=l.jsx(W,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=J):J=e[113];let z;e[114]!==o?(z=i=>o("locale",i),e[114]=o,e[115]=z):z=e[115];let O;e[116]!==s.props.localeLabel?(O=l.jsx(ke,{className:"w-full cursor-pointer",children:l.jsx(Ee,{placeholder:s.props.localeLabel})}),e[116]=s.props.localeLabel,e[117]=O):O=e[117];let me;e[118]===Symbol.for("react.memo_cache_sentinel")?(me=l.jsx(Te,{children:l.jsx(Ie,{value:"en",children:"EN"})}),e[118]=me):me=e[118];let A;e[119]!==r||e[120]!==z||e[121]!==O?(A=l.jsxs($e,{onValueChange:z,defaultValue:"en",disabled:r,children:[O,me]}),e[119]=r,e[120]=z,e[121]=O,e[122]=A):A=e[122];let G;e[123]!==J||e[124]!==A?(G=l.jsxs("div",{className:"grid gap-4",children:[J,A]}),e[123]=J,e[124]=A,e[125]=G):G=e[125];let H;e[126]!==s.props.submitButton||e[127]!==r?(H=l.jsx(Le,{type:"submit",className:"w-fit",disabled:r,children:s.props.submitButton}),e[126]=s.props.submitButton,e[127]=r,e[128]=H):H=e[128];const Ne=`${r} ? 'pointer-events-none opacity-50' : ''`;let K;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(K=l.jsx(Le,{asChild:!0,variant:"outline",children:l.jsx(Se,{href:s.props.backToLogin.link,className:Ne,children:s.props.backToLogin.text})}),e[129]=s.props.backToLogin.link,e[130]=s.props.backToLogin.text,e[131]=Ne,e[132]=K):K=e[132];let M;e[133]!==H||e[134]!==K?(M=l.jsxs("div",{className:"flex gap-4",children:[H,K]}),e[133]=H,e[134]=K,e[135]=M):M=e[135];let Q;e[136]!==b||e[137]!==N||e[138]!==S||e[139]!==$||e[140]!==V||e[141]!==G||e[142]!==M?(Q=l.jsxs("div",{className:"grid gap-5",children:[b,N,S,$,V,G,M]}),e[136]=b,e[137]=N,e[138]=S,e[139]=$,e[140]=V,e[141]=G,e[142]=M,e[143]=Q):Q=e[143];let U;e[144]!==be||e[145]!==Q?(U=l.jsx("form",{onSubmit:be,className:"mt-6",children:Q}),e[144]=be,e[145]=Q,e[146]=U):U=e[146];let ne;return e[147]!==p||e[148]!==U||e[149]!==m?(ne=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[re,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[p,m,U]})]}),e[147]=p,e[148]=U,e[149]=m,e[150]=ne):ne=e[150],ne}function De(e){for(const s of Object.keys(e))Be.error(e[s])}function Re(){}function Ve(){Fe()}export{is as default};
1
+ import{q as Pe,r as _e,S as ye,j as l,J as Se}from"./app.js";import{c as Ce}from"./compiler-runtime-Cj7rbuyn.js";import{L as W}from"./label-GEoZpZr4.js";import{I as X}from"./input-B7wUhbil.js";import Y from"./input-error-DFk1EyT_.js";import{S as ke,a as Ee,c as Te,b as Ie,d as $e}from"./select-MzwxLt1D.js";import{B as Le}from"./button-BV-GbIpN.js";import{T as qe,t as Be}from"./sonner-Dp8PyHu_.js";import{i as Fe}from"./use-appearance-DeUiDZ72.js";import"./index-DN1K56yz.js";import"./index-DU8vYhyh.js";import"./utils-DjqsqOe8.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-B__NksD2.js";import"./index-CcxvoJO6.js";import"./index-DwctwfU0.js";import"./index-DoVAC0HX.js";import"./chevron-down-B5XuAFRu.js";import"./createLucideIcon-BFG25zNo.js";import"./check-LAUWAnlX.js";function is(){const e=Ce.c(151),s=Pe();let Z;e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=[],e[0]=Z):Z=e[0],_e.useEffect(Ve,Z);let ee;e[1]===Symbol.for("react.memo_cache_sentinel")?(ee={locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""},e[1]=ee):ee=e[1];const{post:ce,data:a,setData:de,processing:r,setError:fe,errors:t,clearErrors:ue}=ye(ee);let se;e[2]!==a.confirmPassword||e[3]!==a.password||e[4]!==s.props.confirmError||e[5]!==s.props.submitLink||e[6]!==ce||e[7]!==fe?(se=i=>{if(i.preventDefault(),a.password!==a.confirmPassword){fe("confirmPassword",s.props.confirmError);return}ce(s.props.submitLink,{onSuccess:Re,onError:De})},e[2]=a.confirmPassword,e[3]=a.password,e[4]=s.props.confirmError,e[5]=s.props.submitLink,e[6]=ce,e[7]=fe,e[8]=se):se=e[8];const be=se;let le;e[9]!==ue||e[10]!==de?(le=(i,ve)=>{ue(),de(i,ve)},e[9]=ue,e[10]=de,e[11]=le):le=e[11];const o=le;let re;e[12]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx(qe,{position:"top-center",richColors:!0,closeButton:!0}),e[12]=re):re=e[12];let p;e[13]!==s.props.header.title?(p=l.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[13]=s.props.header.title,e[14]=p):p=e[14];let m;e[15]!==s.props.header.desc?(m=l.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[15]=s.props.header.desc,e[16]=m):m=e[16];let ae;e[17]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx("span",{className:"text-red-500",children:"*"}),e[17]=ae):ae=e[17];let n;e[18]!==s.props.loginLabel?(n=l.jsxs(W,{htmlFor:"login",children:[s.props.loginLabel,ae]}),e[18]=s.props.loginLabel,e[19]=n):n=e[19];const he=`${t.login?"border-red-500":""}`;let c;e[20]!==o?(c=i=>{o("login",i.target.value)},e[20]=o,e[21]=c):c=e[21];let d;e[22]!==a.login||e[23]!==s.props.loginLabel||e[24]!==r||e[25]!==c||e[26]!==he?(d=l.jsx(X,{id:"login",className:he,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:a.login,disabled:r,onChange:c,placeholder:s.props.loginLabel}),e[22]=a.login,e[23]=s.props.loginLabel,e[24]=r,e[25]=c,e[26]=he,e[27]=d):d=e[27];let f;e[28]!==t.login?(f=l.jsx(Y,{message:t.login}),e[28]=t.login,e[29]=f):f=e[29];let u;e[30]!==d||e[31]!==f?(u=l.jsxs("div",{className:"relative",children:[d,f]}),e[30]=d,e[31]=f,e[32]=u):u=e[32];let b;e[33]!==u||e[34]!==n?(b=l.jsxs("div",{className:"grid gap-4",children:[n,u]}),e[33]=u,e[34]=n,e[35]=b):b=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx("span",{className:"text-red-500",children:"*"}),e[36]=te):te=e[36];let h;e[37]!==s.props.fullNameLabel?(h=l.jsxs(W,{htmlFor:"fullName",children:[s.props.fullNameLabel,te]}),e[37]=s.props.fullNameLabel,e[38]=h):h=e[38];const xe=`${t.fullName?"border-red-500":""}`;let x;e[39]!==o?(x=i=>{o("fullName",i.target.value)},e[39]=o,e[40]=x):x=e[40];let g;e[41]!==a.fullName||e[42]!==s.props.fullNameLabel||e[43]!==r||e[44]!==xe||e[45]!==x?(g=l.jsx(X,{id:"fullName",className:xe,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:a.fullName,disabled:r,onChange:x,placeholder:s.props.fullNameLabel}),e[41]=a.fullName,e[42]=s.props.fullNameLabel,e[43]=r,e[44]=xe,e[45]=x,e[46]=g):g=e[46];let w;e[47]!==t.fullName?(w=l.jsx(Y,{message:t.fullName}),e[47]=t.fullName,e[48]=w):w=e[48];let j;e[49]!==g||e[50]!==w?(j=l.jsxs("div",{className:"relative",children:[g,w]}),e[49]=g,e[50]=w,e[51]=j):j=e[51];let N;e[52]!==h||e[53]!==j?(N=l.jsxs("div",{className:"grid gap-4",children:[h,j]}),e[52]=h,e[53]=j,e[54]=N):N=e[54];let oe;e[55]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("span",{className:"text-red-500",children:"*"}),e[55]=oe):oe=e[55];let L;e[56]!==s.props.passwordLabel?(L=l.jsxs(W,{htmlFor:"password",children:[s.props.passwordLabel,oe]}),e[56]=s.props.passwordLabel,e[57]=L):L=e[57];const ge=`${t.password?"border-red-500":""}`;let v;e[58]!==o?(v=i=>{o("password",i.target.value)},e[58]=o,e[59]=v):v=e[59];let P;e[60]!==a.password||e[61]!==s.props.passwordLabel||e[62]!==r||e[63]!==ge||e[64]!==v?(P=l.jsx(X,{id:"password",className:ge,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:a.password,disabled:r,onChange:v,placeholder:s.props.passwordLabel}),e[60]=a.password,e[61]=s.props.passwordLabel,e[62]=r,e[63]=ge,e[64]=v,e[65]=P):P=e[65];let _;e[66]!==t.password?(_=l.jsx(Y,{message:t.password}),e[66]=t.password,e[67]=_):_=e[67];let y;e[68]!==P||e[69]!==_?(y=l.jsxs("div",{className:"relative",children:[P,_]}),e[68]=P,e[69]=_,e[70]=y):y=e[70];let S;e[71]!==L||e[72]!==y?(S=l.jsxs("div",{className:"grid gap-4",children:[L,y]}),e[71]=L,e[72]=y,e[73]=S):S=e[73];let ie;e[74]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx("span",{className:"text-red-500",children:"*"}),e[74]=ie):ie=e[74];let C;e[75]!==s.props.confirmPasswordLabel?(C=l.jsxs(W,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,ie]}),e[75]=s.props.confirmPasswordLabel,e[76]=C):C=e[76];const we=`${t.confirmPassword?"border-red-500":""}`;let k;e[77]!==o?(k=i=>{o("confirmPassword",i.target.value)},e[77]=o,e[78]=k):k=e[78];let E;e[79]!==a.confirmPassword||e[80]!==s.props.confirmPasswordLabel||e[81]!==r||e[82]!==we||e[83]!==k?(E=l.jsx(X,{id:"confirmPassword",className:we,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:a.confirmPassword,disabled:r,onChange:k,placeholder:s.props.confirmPasswordLabel}),e[79]=a.confirmPassword,e[80]=s.props.confirmPasswordLabel,e[81]=r,e[82]=we,e[83]=k,e[84]=E):E=e[84];let T;e[85]!==t.confirmPassword?(T=l.jsx(Y,{message:t.confirmPassword}),e[85]=t.confirmPassword,e[86]=T):T=e[86];let I;e[87]!==E||e[88]!==T?(I=l.jsxs("div",{className:"relative",children:[E,T]}),e[87]=E,e[88]=T,e[89]=I):I=e[89];let $;e[90]!==C||e[91]!==I?($=l.jsxs("div",{className:"grid gap-4",children:[C,I]}),e[90]=C,e[91]=I,e[92]=$):$=e[92];let pe;e[93]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx("span",{className:"text-red-500",children:"*"}),e[93]=pe):pe=e[93];let q;e[94]!==s.props.emailLabel?(q=l.jsxs(W,{htmlFor:"email",children:[s.props.emailLabel,pe]}),e[94]=s.props.emailLabel,e[95]=q):q=e[95];const je=`${t.email?"border-red-500":""}`;let B;e[96]!==o?(B=i=>{o("email",i.target.value)},e[96]=o,e[97]=B):B=e[97];let F;e[98]!==a.email||e[99]!==s.props.emailLabel||e[100]!==r||e[101]!==je||e[102]!==B?(F=l.jsx(X,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:a.email,disabled:r,onChange:B,placeholder:s.props.emailLabel}),e[98]=a.email,e[99]=s.props.emailLabel,e[100]=r,e[101]=je,e[102]=B,e[103]=F):F=e[103];let D;e[104]!==t.email?(D=l.jsx(Y,{message:t.email}),e[104]=t.email,e[105]=D):D=e[105];let R;e[106]!==F||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[F,D]}),e[106]=F,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==q||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[q,R]}),e[109]=q,e[110]=R,e[111]=V):V=e[111];let J;e[112]!==s.props.localeLabel?(J=l.jsx(W,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=J):J=e[113];let z;e[114]!==o?(z=i=>o("locale",i),e[114]=o,e[115]=z):z=e[115];let O;e[116]!==s.props.localeLabel?(O=l.jsx(ke,{className:"w-full cursor-pointer",children:l.jsx(Ee,{placeholder:s.props.localeLabel})}),e[116]=s.props.localeLabel,e[117]=O):O=e[117];let me;e[118]===Symbol.for("react.memo_cache_sentinel")?(me=l.jsx(Te,{children:l.jsx(Ie,{value:"en",children:"EN"})}),e[118]=me):me=e[118];let A;e[119]!==r||e[120]!==z||e[121]!==O?(A=l.jsxs($e,{onValueChange:z,defaultValue:"en",disabled:r,children:[O,me]}),e[119]=r,e[120]=z,e[121]=O,e[122]=A):A=e[122];let G;e[123]!==J||e[124]!==A?(G=l.jsxs("div",{className:"grid gap-4",children:[J,A]}),e[123]=J,e[124]=A,e[125]=G):G=e[125];let H;e[126]!==s.props.submitButton||e[127]!==r?(H=l.jsx(Le,{type:"submit",className:"w-fit",disabled:r,children:s.props.submitButton}),e[126]=s.props.submitButton,e[127]=r,e[128]=H):H=e[128];const Ne=`${r} ? 'pointer-events-none opacity-50' : ''`;let K;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(K=l.jsx(Le,{asChild:!0,variant:"outline",children:l.jsx(Se,{href:s.props.backToLogin.link,className:Ne,children:s.props.backToLogin.text})}),e[129]=s.props.backToLogin.link,e[130]=s.props.backToLogin.text,e[131]=Ne,e[132]=K):K=e[132];let M;e[133]!==H||e[134]!==K?(M=l.jsxs("div",{className:"flex gap-4",children:[H,K]}),e[133]=H,e[134]=K,e[135]=M):M=e[135];let Q;e[136]!==b||e[137]!==N||e[138]!==S||e[139]!==$||e[140]!==V||e[141]!==G||e[142]!==M?(Q=l.jsxs("div",{className:"grid gap-5",children:[b,N,S,$,V,G,M]}),e[136]=b,e[137]=N,e[138]=S,e[139]=$,e[140]=V,e[141]=G,e[142]=M,e[143]=Q):Q=e[143];let U;e[144]!==be||e[145]!==Q?(U=l.jsx("form",{onSubmit:be,className:"mt-6",children:Q}),e[144]=be,e[145]=Q,e[146]=U):U=e[146];let ne;return e[147]!==p||e[148]!==U||e[149]!==m?(ne=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[re,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[p,m,U]})]}),e[147]=p,e[148]=U,e[149]=m,e[150]=ne):ne=e[150],ne}function De(e){for(const s of Object.keys(e))Be.error(e[s])}function Re(){}function Ve(){Fe()}export{is as default};
@@ -3,4 +3,4 @@ import{r as C,j as o}from"./app.js";import{c as p}from"./compiler-runtime-Cj7rbu
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ee=Q("panel-left",Z),O=768;function te(){const l=p.c(2),[e,t]=C.useState(void 0);let a,s;return l[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const i=window.matchMedia(`(max-width: ${O-1}px)`),r=()=>{t(window.innerWidth<O)};return i.addEventListener("change",r),t(window.innerWidth<O),()=>i.removeEventListener("change",r)},s=[],l[0]=a,l[1]=s):(a=l[0],s=l[1]),C.useEffect(a,s),!!e}function ae(l){const e=p.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(K,{"data-slot":"sheet",...t}),e[2]=t,e[3]=a):a=e[3],a}function se(l){const e=p.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(G,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function ie(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("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-[1002] bg-black/50",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(X,{"data-slot":"sheet-overlay",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function le(l){const e=p.c(17);let t,a,s,i;e[0]!==l?({className:a,children:t,side:i,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);const r=i===void 0?"right":i;let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(ie,{}),e[5]=d):d=e[5];const n=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",f=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",h=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let c;e[6]!==a||e[7]!==n||e[8]!==f||e[9]!==h||e[10]!==v?(c=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n,f,h,v,a),e[6]=a,e[7]=n,e[8]=f,e[9]=h,e[10]=v,e[11]=c):c=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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",children:[o.jsx(q,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=u):u=e[12];let g;return e[13]!==t||e[14]!==s||e[15]!==c?(g=o.jsxs(se,{children:[d,o.jsxs(W,{"data-slot":"sheet-content",className:c,...s,children:[t,u]})]}),e[13]=t,e[14]=s,e[15]=c,e[16]=g):g=e[16],g}function oe(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sheet-header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ne(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("text-foreground font-semibold",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(P,{"data-slot":"sheet-title",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function re(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(H,{"data-slot":"sheet-description",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const de="sidebar_state",ce=60*60*24*7,fe="16rem",ue="18rem",be="3rem",pe="b",B=C.createContext(null);function A(){const l=C.useContext(B);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ye({defaultOpen:l=!0,open:e,onOpenChange:t,className:a,style:s,children:i,...r}){const d=te(),[n,f]=C.useState(!1),[h,v]=C.useState(l),c=e??h,u=C.useCallback(m=>{const x=typeof m=="function"?m(c):m;t?t(x):v(x),document.cookie=`${de}=${x}; path=/; max-age=${ce}`},[t,c]),g=C.useCallback(()=>d?f(m=>!m):u(m=>!m),[d,u,f]);C.useEffect(()=>{const m=x=>{x.key===pe&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[g]);const E=c?"expanded":"collapsed",N=C.useMemo(()=>({state:E,open:c,setOpen:u,isMobile:d,openMobile:n,setOpenMobile:f,toggleSidebar:g}),[E,c,u,d,n,f,g]);return o.jsx(B.Provider,{value:N,children:o.jsx(J,{delayDuration:0,children:o.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":fe,"--sidebar-width-icon":be,...s},className:b("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...r,children:i})})})}function _e(l){const e=p.c(46);let t,a,s,i,r,d;e[0]!==l?({side:i,variant:r,collapsible:d,className:a,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r,e[6]=d):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5],d=e[6]);const n=i===void 0?"left":i,f=r===void 0?"sidebar":r,h=d===void 0?"offcanvas":d,{isMobile:v,state:c,openMobile:u,setOpenMobile:g}=A();if(h==="none"){let y;e[7]!==a?(y=b("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=y):y=e[8];let $;return e[9]!==t||e[10]!==s||e[11]!==y?($=o.jsx("div",{"data-slot":"sidebar",className:y,...s,children:t}),e[9]=t,e[10]=s,e[11]=y,e[12]=$):$=e[12],$}if(v){let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y={"--sidebar-width":ue},e[13]=y):y=e[13];let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(oe,{className:"sr-only",children:[o.jsx(ne,{children:"Sidebar"}),o.jsx(re,{children:"Displays the mobile sidebar."})]}),e[14]=$):$=e[14];let I;e[15]!==t?(I=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=I):I=e[16];let k;e[17]!==n||e[18]!==I?(k=o.jsxs(le,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden z-[1002]",style:y,side:n,children:[$,I]}),e[17]=n,e[18]=I,e[19]=k):k=e[19];let D;return e[20]!==u||e[21]!==s||e[22]!==g||e[23]!==k?(D=o.jsx(ae,{open:u,onOpenChange:g,...s,children:k}),e[20]=u,e[21]=s,e[22]=g,e[23]=k,e[24]=D):D=e[24],D}const E=c==="collapsed"?h:"",N=f==="floating"||f==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let m;e[25]!==N?(m=b("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",N),e[25]=N,e[26]=m):m=e[26];let x;e[27]!==m?(x=o.jsx("div",{"data-slot":"sidebar-gap",className:m}),e[27]=m,e[28]=x):x=e[28];const _=n==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",M=f==="floating"||f==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let w;e[29]!==a||e[30]!==_||e[31]!==M?(w=b("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",_,M,a),e[29]=a,e[30]=_,e[31]=M,e[32]=w):w=e[32];let S;e[33]!==t?(S=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=S):S=e[34];let j;e[35]!==s||e[36]!==w||e[37]!==S?(j=o.jsx("div",{"data-slot":"sidebar-container",className:w,...s,children:S}),e[35]=s,e[36]=w,e[37]=S,e[38]=j):j=e[38];let z;return e[39]!==n||e[40]!==c||e[41]!==j||e[42]!==E||e[43]!==x||e[44]!==f?(z=o.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":E,"data-variant":f,"data-side":n,"data-slot":"sidebar",children:[x,j]}),e[39]=n,e[40]=c,e[41]=j,e[42]=E,e[43]=x,e[44]=f,e[45]=z):z=e[45],z}function Ce(l){const e=p.c(15);let t,a,s;e[0]!==l?({className:t,onClick:a,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const{toggleSidebar:i}=A();let r;e[4]!==t?(r=b("size-7",t),e[4]=t,e[5]=r):r=e[5];let d;e[6]!==a||e[7]!==i?(d=v=>{a==null||a(v),i()},e[6]=a,e[7]=i,e[8]=d):d=e[8];let n,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(ee,{}),f=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=f):(n=e[9],f=e[10]);let h;return e[11]!==s||e[12]!==r||e[13]!==d?(h=o.jsxs(L,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:r,onClick:d,...s,children:[n,f]}),e[11]=s,e[12]=r,e[13]=d,e[14]=h):h=e[14],h}function $e(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ee(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Me(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ie(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ke(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ze(l){const e=p.c(10);let t,a,s;e[0]!==l?({className:t,asChild:s,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const r=(s===void 0?!1:s)?T:"div";let d;e[4]!==t?(d=b("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=d):d=e[5];let n;return e[6]!==r||e[7]!==a||e[8]!==d?(n=o.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d,...a}),e[6]=r,e[7]=a,e[8]=d,e[9]=n):n=e[9],n}function De(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("w-full text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Oe(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Te(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("group/menu-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const me=R("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ae(l){const e=p.c(28);let t,a,s,i,r,d,n;e[0]!==l?({asChild:s,isActive:i,variant:r,size:d,tooltip:n,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r,e[6]=d,e[7]=n):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5],d=e[6],n=e[7]);const f=s===void 0?!1:s,h=i===void 0?!1:i,v=r===void 0?"default":r,c=d===void 0?"default":d,u=f?T:"button",{isMobile:g,state:E}=A();let N;e[8]!==t||e[9]!==c||e[10]!==v?(N=b(me({variant:v,size:c}),t),e[8]=t,e[9]=c,e[10]=v,e[11]=N):N=e[11];let m;e[12]!==u||e[13]!==h||e[14]!==a||e[15]!==c||e[16]!==N?(m=o.jsx(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":h,className:N,...a}),e[12]=u,e[13]=h,e[14]=a,e[15]=c,e[16]=N,e[17]=m):m=e[17];const x=m;if(!n)return x;if(typeof n=="string"){let j;e[18]!==n?(j={children:n},e[18]=n,e[19]=j):j=e[19],n=j}let _;e[20]!==x?(_=o.jsx(U,{asChild:!0,children:x}),e[20]=x,e[21]=_):_=e[21];const M=E!=="collapsed"||g;let w;e[22]!==M||e[23]!==n?(w=o.jsx(F,{side:"right",align:"center",hidden:M,...n}),e[22]=M,e[23]=n,e[24]=w):w=e[24];let S;return e[25]!==_||e[26]!==w?(S=o.jsxs(Y,{children:[_,w]}),e[25]=_,e[26]=w,e[27]=S):S=e[27],S}function Be(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Re(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("group/menu-sub-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Le(l){const e=p.c(16);let t,a,s,i,r;e[0]!==l?({asChild:s,size:i,isActive:r,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5]);const d=s===void 0?!1:s,n=i===void 0?"md":i,f=r===void 0?!1:r,h=d?T:"a",v=n==="sm"&&"text-xs",c=n==="md"&&"text-sm";let u;e[6]!==t||e[7]!==v||e[8]!==c?(u=b("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",v,c,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=v,e[8]=c,e[9]=u):u=e[9];let g;return e[10]!==h||e[11]!==f||e[12]!==a||e[13]!==n||e[14]!==u?(g=o.jsx(h,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":n,"data-active":f,className:u,...a}),e[10]=h,e[11]=f,e[12]=a,e[13]=n,e[14]=u,e[15]=g):g=e[15],g}export{$e as S,ye as a,Ce as b,Be as c,Ee as d,Oe as e,Te as f,Ie as g,Ae as h,Re as i,Le as j,ke as k,Me as l,_e as m,ze as n,te as o,De as p,A as u};
6
+ */const Z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ee=Q("panel-left",Z),O=768;function te(){const l=p.c(2),[e,t]=C.useState(void 0);let a,s;return l[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const i=window.matchMedia(`(max-width: ${O-1}px)`),r=()=>{t(window.innerWidth<O)};return i.addEventListener("change",r),t(window.innerWidth<O),()=>i.removeEventListener("change",r)},s=[],l[0]=a,l[1]=s):(a=l[0],s=l[1]),C.useEffect(a,s),!!e}function ae(l){const e=p.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(K,{"data-slot":"sheet",...t}),e[2]=t,e[3]=a):a=e[3],a}function se(l){const e=p.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(G,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function ie(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("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-[1002] bg-black/50",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(X,{"data-slot":"sheet-overlay",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function le(l){const e=p.c(17);let t,a,s,i;e[0]!==l?({className:a,children:t,side:i,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);const r=i===void 0?"right":i;let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(ie,{}),e[5]=d):d=e[5];const n=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",f=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",h=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let c;e[6]!==a||e[7]!==n||e[8]!==f||e[9]!==h||e[10]!==v?(c=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n,f,h,v,a),e[6]=a,e[7]=n,e[8]=f,e[9]=h,e[10]=v,e[11]=c):c=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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",children:[o.jsx(q,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=u):u=e[12];let g;return e[13]!==t||e[14]!==s||e[15]!==c?(g=o.jsxs(se,{children:[d,o.jsxs(W,{"data-slot":"sheet-content",className:c,...s,children:[t,u]})]}),e[13]=t,e[14]=s,e[15]=c,e[16]=g):g=e[16],g}function oe(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sheet-header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ne(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("text-foreground font-semibold",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(P,{"data-slot":"sheet-title",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function re(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(H,{"data-slot":"sheet-description",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const de="sidebar_state",ce=60*60*24*7,fe="16rem",ue="18rem",be="3rem",pe="b",B=C.createContext(null);function A(){const l=C.useContext(B);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ye({defaultOpen:l=!0,open:e,onOpenChange:t,className:a,style:s,children:i,...r}){const d=te(),[n,f]=C.useState(!1),[h,v]=C.useState(l),c=e??h,u=C.useCallback(m=>{const x=typeof m=="function"?m(c):m;t?t(x):v(x),document.cookie=`${de}=${x}; path=/; max-age=${ce}`},[t,c]),g=C.useCallback(()=>d?f(m=>!m):u(m=>!m),[d,u,f]);C.useEffect(()=>{const m=x=>{x.key===pe&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[g]);const E=c?"expanded":"collapsed",N=C.useMemo(()=>({state:E,open:c,setOpen:u,isMobile:d,openMobile:n,setOpenMobile:f,toggleSidebar:g}),[E,c,u,d,n,f,g]);return o.jsx(B.Provider,{value:N,children:o.jsx(J,{delayDuration:0,children:o.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":fe,"--sidebar-width-icon":be,...s},className:b("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...r,children:i})})})}function _e(l){const e=p.c(46);let t,a,s,i,r,d;e[0]!==l?({side:i,variant:r,collapsible:d,className:a,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r,e[6]=d):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5],d=e[6]);const n=i===void 0?"left":i,f=r===void 0?"sidebar":r,h=d===void 0?"offcanvas":d,{isMobile:v,state:c,openMobile:u,setOpenMobile:g}=A();if(h==="none"){let y;e[7]!==a?(y=b("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=y):y=e[8];let $;return e[9]!==t||e[10]!==s||e[11]!==y?($=o.jsx("div",{"data-slot":"sidebar",className:y,...s,children:t}),e[9]=t,e[10]=s,e[11]=y,e[12]=$):$=e[12],$}if(v){let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y={"--sidebar-width":ue},e[13]=y):y=e[13];let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(oe,{className:"sr-only",children:[o.jsx(ne,{children:"Sidebar"}),o.jsx(re,{children:"Displays the mobile sidebar."})]}),e[14]=$):$=e[14];let I;e[15]!==t?(I=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=I):I=e[16];let k;e[17]!==n||e[18]!==I?(k=o.jsxs(le,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden z-[1002]",style:y,side:n,children:[$,I]}),e[17]=n,e[18]=I,e[19]=k):k=e[19];let D;return e[20]!==u||e[21]!==s||e[22]!==g||e[23]!==k?(D=o.jsx(ae,{open:u,onOpenChange:g,...s,children:k}),e[20]=u,e[21]=s,e[22]=g,e[23]=k,e[24]=D):D=e[24],D}const E=c==="collapsed"?h:"",N=f==="floating"||f==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let m;e[25]!==N?(m=b("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",N),e[25]=N,e[26]=m):m=e[26];let x;e[27]!==m?(x=o.jsx("div",{"data-slot":"sidebar-gap",className:m}),e[27]=m,e[28]=x):x=e[28];const _=n==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",M=f==="floating"||f==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let w;e[29]!==a||e[30]!==_||e[31]!==M?(w=b("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",_,M,a),e[29]=a,e[30]=_,e[31]=M,e[32]=w):w=e[32];let S;e[33]!==t?(S=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=S):S=e[34];let j;e[35]!==s||e[36]!==w||e[37]!==S?(j=o.jsx("div",{"data-slot":"sidebar-container",className:w,...s,children:S}),e[35]=s,e[36]=w,e[37]=S,e[38]=j):j=e[38];let z;return e[39]!==n||e[40]!==c||e[41]!==j||e[42]!==E||e[43]!==x||e[44]!==f?(z=o.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":E,"data-variant":f,"data-side":n,"data-slot":"sidebar",children:[x,j]}),e[39]=n,e[40]=c,e[41]=j,e[42]=E,e[43]=x,e[44]=f,e[45]=z):z=e[45],z}function Ce(l){const e=p.c(15);let t,a,s;e[0]!==l?({className:t,onClick:a,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const{toggleSidebar:i}=A();let r;e[4]!==t?(r=b("size-7",t),e[4]=t,e[5]=r):r=e[5];let d;e[6]!==a||e[7]!==i?(d=v=>{a==null||a(v),i()},e[6]=a,e[7]=i,e[8]=d):d=e[8];let n,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(ee,{}),f=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=f):(n=e[9],f=e[10]);let h;return e[11]!==s||e[12]!==r||e[13]!==d?(h=o.jsxs(L,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:r,onClick:d,...s,children:[n,f]}),e[11]=s,e[12]=r,e[13]=d,e[14]=h):h=e[14],h}function $e(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ee(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Me(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ie(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ke(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ze(l){const e=p.c(10);let t,a,s;e[0]!==l?({className:t,asChild:s,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const r=(s===void 0?!1:s)?T:"div";let d;e[4]!==t?(d=b("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=d):d=e[5];let n;return e[6]!==r||e[7]!==a||e[8]!==d?(n=o.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d,...a}),e[6]=r,e[7]=a,e[8]=d,e[9]=n):n=e[9],n}function De(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("w-full text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Oe(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Te(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("group/menu-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const me=R("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ae(l){const e=p.c(28);let t,a,s,i,r,d,n;e[0]!==l?({asChild:s,isActive:i,variant:r,size:d,tooltip:n,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r,e[6]=d,e[7]=n):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5],d=e[6],n=e[7]);const f=s===void 0?!1:s,h=i===void 0?!1:i,v=r===void 0?"default":r,c=d===void 0?"default":d,u=f?T:"button",{isMobile:g,state:E}=A();let N;e[8]!==t||e[9]!==c||e[10]!==v?(N=b(me({variant:v,size:c}),t),e[8]=t,e[9]=c,e[10]=v,e[11]=N):N=e[11];let m;e[12]!==u||e[13]!==h||e[14]!==a||e[15]!==c||e[16]!==N?(m=o.jsx(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":h,className:N,...a}),e[12]=u,e[13]=h,e[14]=a,e[15]=c,e[16]=N,e[17]=m):m=e[17];const x=m;if(!n)return x;if(typeof n=="string"){let j;e[18]!==n?(j={children:n},e[18]=n,e[19]=j):j=e[19],n=j}let _;e[20]!==x?(_=o.jsx(U,{asChild:!0,children:x}),e[20]=x,e[21]=_):_=e[21];const M=E!=="collapsed"||g;let w;e[22]!==M||e[23]!==n?(w=o.jsx(F,{side:"right",align:"center",hidden:M,...n}),e[22]=M,e[23]=n,e[24]=w):w=e[24];let S;return e[25]!==_||e[26]!==w?(S=o.jsxs(Y,{children:[_,w]}),e[25]=_,e[26]=w,e[27]=S):S=e[27],S}function Be(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Re(l){const e=p.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=b("group/menu-sub-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Le(l){const e=p.c(16);let t,a,s,i,r;e[0]!==l?({asChild:s,size:i,isActive:r,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=r):(t=e[1],a=e[2],s=e[3],i=e[4],r=e[5]);const d=s===void 0?!1:s,n=i===void 0?"md":i,f=r===void 0?!1:r,h=d?T:"a",v=n==="sm"&&"text-xs",c=n==="md"&&"text-sm";let u;e[6]!==t||e[7]!==v||e[8]!==c?(u=b("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",v,c,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=v,e[8]=c,e[9]=u):u=e[9];let g;return e[10]!==h||e[11]!==f||e[12]!==a||e[13]!==n||e[14]!==u?(g=o.jsx(h,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":n,"data-active":f,className:u,...a}),e[10]=h,e[11]=f,e[12]=a,e[13]=n,e[14]=u,e[15]=g):g=e[15],g}export{$e as S,ye as a,Ce as b,Be as c,Ee as d,Oe as e,Te as f,Ie as g,Ae as h,Re as i,Le as j,ke as k,Me as l,_e as m,ze as n,De as o,te as p,A as u};
@@ -0,0 +1 @@
1
+ import{r as mt,W as o,R as Ut,j as Xt}from"./app.js";import{c as Kt}from"./compiler-runtime-Cj7rbuyn.js";var qt=(n,a,e,s,E,l,u,v)=>{let m=document.documentElement,i=["light","dark"];function x(g){(Array.isArray(n)?n:[n]).forEach(y=>{let W=y==="class",c=W&&l?E.map(D=>l[D]||D):E;W?(m.classList.remove(...c),m.classList.add(l&&l[g]?l[g]:g)):m.setAttribute(y,g)}),t(g)}function t(g){v&&i.includes(g)&&(m.style.colorScheme=g)}function R(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)x(s);else try{let g=localStorage.getItem(a)||e,y=u&&g==="system"?R():g;x(y)}catch{}},Gt=mt.createContext(void 0),Jt={setTheme:n=>{},themes:[]},Qt=()=>{var n;return(n=mt.useContext(Gt))!=null?n:Jt};mt.memo(({forcedTheme:n,storageKey:a,attribute:e,enableSystem:s,enableColorScheme:E,defaultTheme:l,value:u,themes:v,nonce:m,scriptProps:i})=>{let x=JSON.stringify([e,a,l,n,v,u,s,E]).slice(1,-1);return mt.createElement("script",{...i,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${qt.toString()})(${x})`}})});function Zt(n){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",a.appendChild(e),e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}const te=n=>{switch(n){case"success":return oe;case"info":return ne;case"warning":return se;case"error":return re;default:return null}},ee=Array(12).fill(0),ae=({visible:n,className:a})=>o.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":n},o.createElement("div",{className:"sonner-spinner"},ee.map((e,s)=>o.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),oe=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),se=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ne=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),re=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ie=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),le=()=>{const[n,a]=o.useState(document.hidden);return o.useEffect(()=>{const e=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),n};let xt=1;class de{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const e=this.subscribers.indexOf(a);this.subscribers.splice(e,1)}),this.publish=a=>{this.subscribers.forEach(e=>e(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var e;const{message:s,...E}=a,l=typeof(a==null?void 0:a.id)=="number"||((e=a.id)==null?void 0:e.length)>0?a.id:xt++,u=this.toasts.find(m=>m.id===l),v=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),u?this.toasts=this.toasts.map(m=>m.id===l?(this.publish({...m,...a,id:l,title:s}),{...m,...a,id:l,dismissible:v,title:s}):m):this.addToast({title:s,...E,dismissible:v,id:l}),l},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:a,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(s=>s({id:e.id,dismiss:!0}))}),a),this.message=(a,e)=>this.create({...e,message:a}),this.error=(a,e)=>this.create({...e,message:a,type:"error"}),this.success=(a,e)=>this.create({...e,type:"success",message:a}),this.info=(a,e)=>this.create({...e,type:"info",message:a}),this.warning=(a,e)=>this.create({...e,type:"warning",message:a}),this.loading=(a,e)=>this.create({...e,type:"loading",message:a}),this.promise=(a,e)=>{if(!e)return;let s;e.loading!==void 0&&(s=this.create({...e,promise:a,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));const E=Promise.resolve(a instanceof Function?a():a);let l=s!==void 0,u;const v=E.then(async i=>{if(u=["resolve",i],o.isValidElement(i))l=!1,this.create({id:s,type:"default",message:i});else if(ue(i)&&!i.ok){l=!1;const t=typeof e.error=="function"?await e.error(`HTTP error! status: ${i.status}`):e.error,R=typeof e.description=="function"?await e.description(`HTTP error! status: ${i.status}`):e.description,y=typeof t=="object"&&!o.isValidElement(t)?t:{message:t};this.create({id:s,type:"error",description:R,...y})}else if(i instanceof Error){l=!1;const t=typeof e.error=="function"?await e.error(i):e.error,R=typeof e.description=="function"?await e.description(i):e.description,y=typeof t=="object"&&!o.isValidElement(t)?t:{message:t};this.create({id:s,type:"error",description:R,...y})}else if(e.success!==void 0){l=!1;const t=typeof e.success=="function"?await e.success(i):e.success,R=typeof e.description=="function"?await e.description(i):e.description,y=typeof t=="object"&&!o.isValidElement(t)?t:{message:t};this.create({id:s,type:"success",description:R,...y})}}).catch(async i=>{if(u=["reject",i],e.error!==void 0){l=!1;const x=typeof e.error=="function"?await e.error(i):e.error,t=typeof e.description=="function"?await e.description(i):e.description,g=typeof x=="object"&&!o.isValidElement(x)?x:{message:x};this.create({id:s,type:"error",description:t,...g})}}).finally(()=>{l&&(this.dismiss(s),s=void 0),e.finally==null||e.finally.call(e)}),m=()=>new Promise((i,x)=>v.then(()=>u[0]==="reject"?x(u[1]):i(u[1])).catch(x));return typeof s!="string"&&typeof s!="number"?{unwrap:m}:Object.assign(s,{unwrap:m})},this.custom=(a,e)=>{const s=(e==null?void 0:e.id)||xt++;return this.create({jsx:a(s),id:s,...e}),s},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const k=new de,ce=(n,a)=>{const e=(a==null?void 0:a.id)||xt++;return k.addToast({title:n,...a,id:e}),e},ue=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",fe=ce,me=()=>k.toasts,pe=()=>k.getActiveToasts(),De=Object.assign(fe,{success:k.success,info:k.info,warning:k.warning,error:k.error,custom:k.custom,message:k.message,promise:k.promise,dismiss:k.dismiss,loading:k.loading},{getHistory:me,getToasts:pe});Zt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ft(n){return n.label!==void 0}const ge=3,he="24px",be="16px",Mt=4e3,ve=356,ye=14,xe=45,we=200;function L(...n){return n.filter(Boolean).join(" ")}function Ee(n){const[a,e]=n.split("-"),s=[];return a&&s.push(a),e&&s.push(e),s}const Te=n=>{var a,e,s,E,l,u,v,m,i;const{invert:x,toast:t,unstyled:R,interacting:g,setHeights:y,visibleToasts:W,heights:c,index:D,toasts:nt,expanded:Q,removeToast:rt,defaultRichColors:I,closeButton:U,style:pt,cancelButtonStyle:it,actionButtonStyle:gt,className:lt="",descriptionClassName:j="",duration:X,position:Z,gap:ht,expandByDefault:z,classNames:d,icons:C,closeButtonAriaLabel:P="Close toast"}=n,[A,tt]=o.useState(null),[f,h]=o.useState(null),[p,B]=o.useState(!1),[F,b]=o.useState(!1),[et,K]=o.useState(!1),[at,ot]=o.useState(!1),[Ct,wt]=o.useState(!1),[At,bt]=o.useState(0),[Ht,Et]=o.useState(0),st=o.useRef(t.duration||X||Mt),Tt=o.useRef(null),$=o.useRef(null),Ot=D===0,zt=D+1<=W,N=t.type,q=t.dismissible!==!1,Lt=t.className||"",jt=t.descriptionClassName||"",dt=o.useMemo(()=>c.findIndex(r=>r.toastId===t.id)||0,[c,t.id]),Pt=o.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:U},[t.closeButton,U]),St=o.useMemo(()=>t.duration||X||Mt,[t.duration,X]),vt=o.useRef(0),G=o.useRef(0),kt=o.useRef(0),J=o.useRef(null),[$t,Yt]=Z.split("-"),Nt=o.useMemo(()=>c.reduce((r,w,S)=>S>=dt?r:r+w.height,0),[c,dt]),_t=le(),Ft=t.invert||x,yt=N==="loading";G.current=o.useMemo(()=>dt*ht+Nt,[dt,Nt]),o.useEffect(()=>{st.current=St},[St]),o.useEffect(()=>{B(!0)},[]),o.useEffect(()=>{const r=$.current;if(r){const w=r.getBoundingClientRect().height;return Et(w),y(S=>[{toastId:t.id,height:w,position:t.position},...S]),()=>y(S=>S.filter(_=>_.toastId!==t.id))}},[y,t.id]),o.useLayoutEffect(()=>{if(!p)return;const r=$.current,w=r.style.height;r.style.height="auto";const S=r.getBoundingClientRect().height;r.style.height=w,Et(S),y(_=>_.find(T=>T.toastId===t.id)?_.map(T=>T.toastId===t.id?{...T,height:S}:T):[{toastId:t.id,height:S,position:t.position},..._])},[p,t.title,t.description,y,t.id]);const Y=o.useCallback(()=>{b(!0),bt(G.current),y(r=>r.filter(w=>w.toastId!==t.id)),setTimeout(()=>{rt(t)},we)},[t,rt,y,G]);o.useEffect(()=>{if(t.promise&&N==="loading"||t.duration===1/0||t.type==="loading")return;let r;return Q||g||_t?(()=>{if(kt.current<vt.current){const _=new Date().getTime()-vt.current;st.current=st.current-_}kt.current=new Date().getTime()})():(()=>{st.current!==1/0&&(vt.current=new Date().getTime(),r=setTimeout(()=>{t.onAutoClose==null||t.onAutoClose.call(t,t),Y()},st.current))})(),()=>clearTimeout(r)},[Q,g,t,N,_t,Y]),o.useEffect(()=>{t.delete&&Y()},[Y,t.delete]);function Vt(){var r;if(C!=null&&C.loading){var w;return o.createElement("div",{className:L(d==null?void 0:d.loader,t==null||(w=t.classNames)==null?void 0:w.loader,"sonner-loader"),"data-visible":N==="loading"},C.loading)}return o.createElement(ae,{className:L(d==null?void 0:d.loader,t==null||(r=t.classNames)==null?void 0:r.loader),visible:N==="loading"})}const Wt=t.icon||(C==null?void 0:C[N])||te(N);var Rt,Dt;return o.createElement("li",{tabIndex:0,ref:$,className:L(lt,Lt,d==null?void 0:d.toast,t==null||(a=t.classNames)==null?void 0:a.toast,d==null?void 0:d.default,d==null?void 0:d[N],t==null||(e=t.classNames)==null?void 0:e[N]),"data-sonner-toast":"","data-rich-colors":(Rt=t.richColors)!=null?Rt:I,"data-styled":!(t.jsx||t.unstyled||R),"data-mounted":p,"data-promise":!!t.promise,"data-swiped":Ct,"data-removed":F,"data-visible":zt,"data-y-position":$t,"data-x-position":Yt,"data-index":D,"data-front":Ot,"data-swiping":et,"data-dismissible":q,"data-type":N,"data-invert":Ft,"data-swipe-out":at,"data-swipe-direction":f,"data-expanded":!!(Q||z&&p),style:{"--index":D,"--toasts-before":D,"--z-index":nt.length-D,"--offset":`${F?At:G.current}px`,"--initial-height":z?"auto":`${Ht}px`,...pt,...t.style},onDragEnd:()=>{K(!1),tt(null),J.current=null},onPointerDown:r=>{yt||!q||(Tt.current=new Date,bt(G.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!=="BUTTON"&&(K(!0),J.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var r,w,S;if(at||!q)return;J.current=null;const _=Number(((r=$.current)==null?void 0:r.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ct=Number(((w=$.current)==null?void 0:w.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),T=new Date().getTime()-((S=Tt.current)==null?void 0:S.getTime()),M=A==="x"?_:ct,ut=Math.abs(M)/T;if(Math.abs(M)>=xe||ut>.11){bt(G.current),t.onDismiss==null||t.onDismiss.call(t,t),h(A==="x"?_>0?"right":"left":ct>0?"down":"up"),Y(),ot(!0);return}else{var H,O;(H=$.current)==null||H.style.setProperty("--swipe-amount-x","0px"),(O=$.current)==null||O.style.setProperty("--swipe-amount-y","0px")}wt(!1),K(!1),tt(null)},onPointerMove:r=>{var w,S,_;if(!J.current||!q||((w=window.getSelection())==null?void 0:w.toString().length)>0)return;const T=r.clientY-J.current.y,M=r.clientX-J.current.x;var ut;const H=(ut=n.swipeDirections)!=null?ut:Ee(Z);!A&&(Math.abs(M)>1||Math.abs(T)>1)&&tt(Math.abs(M)>Math.abs(T)?"x":"y");let O={x:0,y:0};const Bt=V=>1/(1.5+Math.abs(V)/20);if(A==="y"){if(H.includes("top")||H.includes("bottom"))if(H.includes("top")&&T<0||H.includes("bottom")&&T>0)O.y=T;else{const V=T*Bt(T);O.y=Math.abs(V)<Math.abs(T)?V:T}}else if(A==="x"&&(H.includes("left")||H.includes("right")))if(H.includes("left")&&M<0||H.includes("right")&&M>0)O.x=M;else{const V=M*Bt(M);O.x=Math.abs(V)<Math.abs(M)?V:M}(Math.abs(O.x)>0||Math.abs(O.y)>0)&&wt(!0),(S=$.current)==null||S.style.setProperty("--swipe-amount-x",`${O.x}px`),(_=$.current)==null||_.style.setProperty("--swipe-amount-y",`${O.y}px`)}},Pt&&!t.jsx&&N!=="loading"?o.createElement("button",{"aria-label":P,"data-disabled":yt,"data-close-button":!0,onClick:yt||!q?()=>{}:()=>{Y(),t.onDismiss==null||t.onDismiss.call(t,t)},className:L(d==null?void 0:d.closeButton,t==null||(s=t.classNames)==null?void 0:s.closeButton)},(Dt=C==null?void 0:C.close)!=null?Dt:ie):null,(N||t.icon||t.promise)&&t.icon!==null&&((C==null?void 0:C[N])!==null||t.icon)?o.createElement("div",{"data-icon":"",className:L(d==null?void 0:d.icon,t==null||(E=t.classNames)==null?void 0:E.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Vt():null,t.type!=="loading"?Wt:null):null,o.createElement("div",{"data-content":"",className:L(d==null?void 0:d.content,t==null||(l=t.classNames)==null?void 0:l.content)},o.createElement("div",{"data-title":"",className:L(d==null?void 0:d.title,t==null||(u=t.classNames)==null?void 0:u.title)},t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title),t.description?o.createElement("div",{"data-description":"",className:L(j,jt,d==null?void 0:d.description,t==null||(v=t.classNames)==null?void 0:v.description)},typeof t.description=="function"?t.description():t.description):null),o.isValidElement(t.cancel)?t.cancel:t.cancel&&ft(t.cancel)?o.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||it,onClick:r=>{ft(t.cancel)&&q&&(t.cancel.onClick==null||t.cancel.onClick.call(t.cancel,r),Y())},className:L(d==null?void 0:d.cancelButton,t==null||(m=t.classNames)==null?void 0:m.cancelButton)},t.cancel.label):null,o.isValidElement(t.action)?t.action:t.action&&ft(t.action)?o.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||gt,onClick:r=>{ft(t.action)&&(t.action.onClick==null||t.action.onClick.call(t.action,r),!r.defaultPrevented&&Y())},className:L(d==null?void 0:d.actionButton,t==null||(i=t.classNames)==null?void 0:i.actionButton)},t.action.label):null)};function It(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function Se(n,a){const e={};return[n,a].forEach((s,E)=>{const l=E===1,u=l?"--mobile-offset":"--offset",v=l?be:he;function m(i){["top","right","bottom","left"].forEach(x=>{e[`${u}-${x}`]=typeof i=="number"?`${i}px`:i})}typeof s=="number"||typeof s=="string"?m(s):typeof s=="object"?["top","right","bottom","left"].forEach(i=>{s[i]===void 0?e[`${u}-${i}`]=v:e[`${u}-${i}`]=typeof s[i]=="number"?`${s[i]}px`:s[i]}):m(v)}),e}const ke=o.forwardRef(function(a,e){const{invert:s,position:E="bottom-right",hotkey:l=["altKey","KeyT"],expand:u,closeButton:v,className:m,offset:i,mobileOffset:x,theme:t="light",richColors:R,duration:g,style:y,visibleToasts:W=ge,toastOptions:c,dir:D=It(),gap:nt=ye,icons:Q,containerAriaLabel:rt="Notifications"}=a,[I,U]=o.useState([]),pt=o.useMemo(()=>Array.from(new Set([E].concat(I.filter(f=>f.position).map(f=>f.position)))),[I,E]),[it,gt]=o.useState([]),[lt,j]=o.useState(!1),[X,Z]=o.useState(!1),[ht,z]=o.useState(t!=="system"?t:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=o.useRef(null),C=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=o.useRef(null),A=o.useRef(!1),tt=o.useCallback(f=>{U(h=>{var p;return(p=h.find(B=>B.id===f.id))!=null&&p.delete||k.dismiss(f.id),h.filter(({id:B})=>B!==f.id)})},[]);return o.useEffect(()=>k.subscribe(f=>{if(f.dismiss){requestAnimationFrame(()=>{U(h=>h.map(p=>p.id===f.id?{...p,delete:!0}:p))});return}setTimeout(()=>{Ut.flushSync(()=>{U(h=>{const p=h.findIndex(B=>B.id===f.id);return p!==-1?[...h.slice(0,p),{...h[p],...f},...h.slice(p+1)]:[f,...h]})})})}),[I]),o.useEffect(()=>{if(t!=="system"){z(t);return}if(t==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const f=window.matchMedia("(prefers-color-scheme: dark)");try{f.addEventListener("change",({matches:h})=>{z(h?"dark":"light")})}catch{f.addListener(({matches:p})=>{try{z(p?"dark":"light")}catch(B){console.error(B)}})}},[t]),o.useEffect(()=>{I.length<=1&&j(!1)},[I]),o.useEffect(()=>{const f=h=>{var p;if(l.every(b=>h[b]||h.code===b)){var F;j(!0),(F=d.current)==null||F.focus()}h.code==="Escape"&&(document.activeElement===d.current||(p=d.current)!=null&&p.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[l]),o.useEffect(()=>{if(d.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,A.current=!1)}},[d.current]),o.createElement("section",{ref:e,"aria-label":`${rt} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},pt.map((f,h)=>{var p;const[B,F]=f.split("-");return I.length?o.createElement("ol",{key:f,dir:D==="auto"?It():D,tabIndex:-1,ref:d,className:m,"data-sonner-toaster":!0,"data-sonner-theme":ht,"data-y-position":B,"data-lifted":lt&&I.length>1&&!u,"data-x-position":F,style:{"--front-toast-height":`${((p=it[0])==null?void 0:p.height)||0}px`,"--width":`${ve}px`,"--gap":`${nt}px`,...y,...Se(i,x)},onBlur:b=>{A.current&&!b.currentTarget.contains(b.relatedTarget)&&(A.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:b=>{b.target instanceof HTMLElement&&b.target.dataset.dismissible==="false"||A.current||(A.current=!0,P.current=b.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{X||j(!1)},onDragEnd:()=>j(!1),onPointerDown:b=>{b.target instanceof HTMLElement&&b.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},I.filter(b=>!b.position&&h===0||b.position===f).map((b,et)=>{var K,at;return o.createElement(Te,{key:b.id,icons:Q,index:et,toast:b,defaultRichColors:R,duration:(K=c==null?void 0:c.duration)!=null?K:g,className:c==null?void 0:c.className,descriptionClassName:c==null?void 0:c.descriptionClassName,invert:s,visibleToasts:W,closeButton:(at=c==null?void 0:c.closeButton)!=null?at:v,interacting:X,position:f,style:c==null?void 0:c.style,unstyled:c==null?void 0:c.unstyled,classNames:c==null?void 0:c.classNames,cancelButtonStyle:c==null?void 0:c.cancelButtonStyle,actionButtonStyle:c==null?void 0:c.actionButtonStyle,closeButtonAriaLabel:c==null?void 0:c.closeButtonAriaLabel,removeToast:tt,toasts:I.filter(ot=>ot.position==b.position),heights:it.filter(ot=>ot.position==b.position),setHeights:gt,expandByDefault:u,gap:nt,expanded:lt,swipeDirections:a.swipeDirections})})):null}))}),Be=n=>{const a=Kt.c(6);let e;a[0]!==n?({...e}=n,a[0]=n,a[1]=e):e=a[1];const{theme:s}=Qt(),l=s===void 0?"system":s;let u;a[2]===Symbol.for("react.memo_cache_sentinel")?(u={"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},a[2]=u):u=a[2];let v;return a[3]!==e||a[4]!==l?(v=Xt.jsx(ke,{theme:l,className:"toaster group",style:u,...e}),a[3]=e,a[4]=l,a[5]=v):v=a[5],v};export{Be as T,De as t};
@@ -1 +1 @@
1
- import{q as s,j as i}from"./app.js";import{c as l}from"./compiler-runtime-Cj7rbuyn.js";import{A as x}from"./app-layout-NY6MXzc5.js";import"./sidebar-DGp3i7GG.js";import"./index-DU8vYhyh.js";import"./button-BV-GbIpN.js";import"./utils-DjqsqOe8.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";import"./app-shell-BjaxjNs9.js";import"./app-sidebar-CLu13Pcu.js";import"./nav-main-JVt9gzn8.js";import"./material-icon-BAd3Wrgn.js";import"./chevron-right-D5q8rF7h.js";import"./index-B__NksD2.js";import"./index-oMAR28Sy.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-5IaQpngt.js";import"./breadcrumbs-CDxSbsTe.js";import"./nav-user-DgYX0wO7.js";import"./dropdown-menu-CeMIoM8d.js";import"./user-info-C_11jYGE.js";import"./user-menu-content-BNRzhEo_.js";import"./icon-CqJOMij7.js";import"./use-appearance-DeUiDZ72.js";const a=[];function J(){const t=l.c(8),r=s();let o;t[0]!==r.props.title?(o=r.props.title&&i.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t[0]=r.props.title,t[1]=o):o=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),t[2]=e):e=t[2];let p;t[3]!==r.props.text?(p=r.props.text&&i.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}}),t[3]=r.props.text,t[4]=p):p=t[4];let m;return t[5]!==o||t[6]!==p?(m=i.jsx(x,{breadcrumbs:a,children:i.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[o,e,p]})}),t[5]=o,t[6]=p,t[7]=m):m=t[7],m}export{J as default};
1
+ import{q as s,j as i}from"./app.js";import{c as l}from"./compiler-runtime-Cj7rbuyn.js";import{A as x}from"./app-layout-BC2Dk0GE.js";import"./sidebar-CkxHTDia.js";import"./index-DU8vYhyh.js";import"./button-BV-GbIpN.js";import"./utils-DjqsqOe8.js";import"./index-C0o7vG6r.js";import"./createLucideIcon-BFG25zNo.js";import"./index-BCpOvf4m.js";import"./index-Cq31rrfZ.js";import"./index-DN1K56yz.js";import"./index-CcxvoJO6.js";import"./index-lqMxC6QB.js";import"./tooltip-Du62rBCn.js";import"./index-DoVAC0HX.js";import"./app-shell-jCQ5EbpR.js";import"./app-sidebar-wFqi5-7E.js";import"./nav-main-DPeRWb5e.js";import"./material-icon-BAd3Wrgn.js";import"./chevron-right-D5q8rF7h.js";import"./index-B__NksD2.js";import"./index-oMAR28Sy.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-BcGzUtnn.js";import"./breadcrumbs-CDxSbsTe.js";import"./nav-user-G2BeH6Uu.js";import"./dropdown-menu-CeMIoM8d.js";import"./user-info-C_11jYGE.js";import"./user-menu-content-BNRzhEo_.js";import"./icon-CqJOMij7.js";import"./use-appearance-DeUiDZ72.js";const a=[];function J(){const t=l.c(8),r=s();let o;t[0]!==r.props.title?(o=r.props.title&&i.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t[0]=r.props.title,t[1]=o):o=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),t[2]=e):e=t[2];let p;t[3]!==r.props.text?(p=r.props.text&&i.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}}),t[3]=r.props.text,t[4]=p):p=t[4];let m;return t[5]!==o||t[6]!==p?(m=i.jsx(x,{breadcrumbs:a,children:i.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[o,e,p]})}),t[5]=o,t[6]=p,t[7]=m):m=t[7],m}export{J as default};
@@ -82,10 +82,9 @@ export async function catalogController(req, res) {
82
82
  case 'getLink':
83
83
  return res.json({ data: await frontendCatalog.getLink(data.actionId) });
84
84
  case 'handleAction':
85
- return res.json({ data: await frontendCatalog.handleAction(data.data.actionID, data.data.items, data.data.config, req) });
85
+ return res.json({ data: await frontendCatalog.handleAction(data.data.actionID, data.data.items, req) });
86
86
  case 'getPopUpHTML':
87
- // TODO: deprecated, passing react module instead html
88
- return res.json({ data: await frontendCatalog.getPopUpHTML(data.actionId) });
87
+ return res.json({ data: await frontendCatalog.getPopUpTemplate(data.actionId) });
89
88
  case 'updateItem':
90
89
  return res.json({ data: await frontendCatalog.updateItem(item, data.modelId, data.data, req) });
91
90
  }
@@ -33,11 +33,11 @@ export declare class VueCatalog {
33
33
  setId(id: string): void;
34
34
  getItemType(type: string): import("../../lib/v4/catalog/AbstractCatalog").BaseItem<Item>;
35
35
  getAddTemplate(item: any, req: ReqType): Promise<{
36
- type: "component" | "navigation.item" | "navigation.group" | "navigation.link" | "model";
36
+ type: "component" | "navigation.group" | "navigation.link" | "model";
37
37
  data: any;
38
38
  }>;
39
39
  getEditTemplate(item: any, id: string | number, req: ReqType, modelId: string | number): Promise<{
40
- type: "component" | "navigation.item" | "navigation.group" | "navigation.link" | "model";
40
+ type: "component" | "navigation.group" | "navigation.link" | "model";
41
41
  data: any;
42
42
  }>;
43
43
  getitemTypes(): {
@@ -52,12 +52,8 @@ export declare class VueCatalog {
52
52
  [key: string]: string;
53
53
  };
54
54
  getActions(items: NodeModel<any>[], type: string): Promise<import("../../lib/v4/catalog/AbstractCatalog").ActionHandler[]>;
55
- handleAction(actionId: string, items: any[], config: any, req: ReqType): Promise<void>;
56
- /**
57
- * @deprecated reason: migration for intertia
58
- * // TODO: need passing custom React module
59
- */
60
- getPopUpHTML(actionId: string): Promise<string>;
55
+ handleAction(actionId: string, items: any[], req: ReqType): Promise<void>;
56
+ getPopUpTemplate(actionId: string): Promise<string>;
61
57
  getLink(actionId: string): Promise<string>;
62
58
  getCatalog(): Promise<NodeModel<Item>[]>;
63
59
  createItem(data: any, req: ReqType): Promise<any>;
@@ -39,6 +39,8 @@ export class VueCatalog {
39
39
  "OR": "",
40
40
  "Open in a new window": "",
41
41
  "Clean": "",
42
+ "Performing an action...": "",
43
+ "Action completed": "",
42
44
  };
43
45
  obj[this.catalog.name] = "";
44
46
  for (const actionHandler of this.catalog.actionHandlers) {
@@ -65,19 +67,15 @@ export class VueCatalog {
65
67
  return (await this.catalog.getActions(arrItems))?.filter(e => e.displayContext);
66
68
  }
67
69
  }
68
- async handleAction(actionId, items, config, req) {
70
+ async handleAction(actionId, items, req) {
69
71
  let arrItems = [];
70
72
  for (const item of items) {
71
73
  arrItems.push(await this.catalog.find(item.data));
72
74
  }
73
- return this.catalog.handleAction(actionId, arrItems, config, req);
75
+ return this.catalog.handleAction(actionId, arrItems, req);
74
76
  }
75
- /**
76
- * @deprecated reason: migration for intertia
77
- * // TODO: need passing custom React module
78
- */
79
- async getPopUpHTML(actionId) {
80
- return this.catalog.getPopUpHTML(actionId);
77
+ async getPopUpTemplate(actionId) {
78
+ return this.catalog.getPopUpTemplate(actionId);
81
79
  }
82
80
  async getLink(actionId) {
83
81
  return this.catalog.getLink(actionId);
@@ -88,15 +86,15 @@ export class VueCatalog {
88
86
  return VueCatalogUtils.arrayToNode(rootItems, this.catalog.getGroupType().type);
89
87
  }
90
88
  async createItem(data, req) {
89
+ // TODO It's not clear why it's here.
91
90
  //data = VueCatalogUtils.refinement(data);
92
- if (this.catalog.slug !== "navigation") {
93
- let item = data.record;
94
- item.parenId = data.parenId;
95
- return await this.catalog.createItem(item, req);
96
- }
97
- else {
98
- return await this.catalog.createItem(data, req);
99
- }
91
+ // if (this.catalog.slug !== "navigation") {
92
+ // let item = data.record;
93
+ // item.parenId = data.parenId;
94
+ // return await this.catalog.createItem(item, req);
95
+ // } else {
96
+ return await this.catalog.createItem(data, req);
97
+ // }
100
98
  }
101
99
  async getChilds(data, req) {
102
100
  data = VueCatalogUtils.refinement(data);
@@ -129,13 +127,13 @@ export class VueCatalog {
129
127
  return Promise.resolve('ok');
130
128
  }
131
129
  async updateItem(item, modelId, data, req) {
130
+ //TODO It's not clear why it's here.
132
131
  //data = VueCatalogUtils.refinement(data);
133
- if (this.catalog.slug !== "navigation") {
134
- return await this.catalog.updateModelItems(data.modelId, data.type, data.record, req);
135
- }
136
- else {
137
- return await this.catalog.updateModelItems(modelId, item.type, data, req);
138
- }
132
+ // if (this.catalog.slug !== "navigation") {
133
+ // return await this.catalog.updateModelItems(data.modelId, data.type, data.record, req);
134
+ // } else {
135
+ return await this.catalog.updateModelItems(modelId, item.type, data, req);
136
+ // }
139
137
  }
140
138
  async deleteItem(item, req) {
141
139
  // Получаем всех непосредственных потомков текущего элемента
@@ -14,6 +14,10 @@ export type MenuItem = {
14
14
  icon: string;
15
15
  accessRightsToken: string;
16
16
  entityName?: string;
17
+ /**
18
+ * Section grouping for navbar items (side navigation)
19
+ */
20
+ section?: string;
17
21
  };
18
22
  export declare class MenuHelper {
19
23
  private config;
@@ -113,7 +113,8 @@ export class MenuHelper {
113
113
  id: additionalLink.id || additionalLink.title.replace(" ", "_"),
114
114
  actions: additionalLink.subItems || null,
115
115
  icon: additionalLink.icon || null,
116
- accessRightsToken: additionalLink.accessRightsToken || null
116
+ accessRightsToken: additionalLink.accessRightsToken || null,
117
+ section: additionalLink.section || 'Platform',
117
118
  });
118
119
  });
119
120
  }
@@ -143,7 +144,8 @@ export class MenuHelper {
143
144
  actions: val.tools || null,
144
145
  id: val.title ? val.title.replace(" ", "_") : key,
145
146
  entityName: key,
146
- accessRightsToken: `read-${key}-model`
147
+ accessRightsToken: `read-${key}-model`,
148
+ section: val.navbar?.section || 'Platform',
147
149
  });
148
150
  }
149
151
  });
@@ -190,6 +190,10 @@ export interface ModelConfig {
190
190
  * For which it will be shown if not established will be shown to all groups who have the rights to read
191
191
  */
192
192
  groupsAccessRights?: string[];
193
+ /**
194
+ * Optional section grouping for navbar items (side navigation)
195
+ */
196
+ section?: string;
193
197
  };
194
198
  /**
195
199
  * Entity fields configuration
@@ -405,6 +409,10 @@ export interface HrefConfig {
405
409
  * For menu items only
406
410
  * */
407
411
  subItems?: HrefConfig[];
412
+ /**
413
+ * Optional section grouping for navbar items (side navigation)
414
+ */
415
+ section?: string;
408
416
  }
409
417
  export interface NavigationItemTypeConfig {
410
418
  model: string;
@@ -1,4 +1,3 @@
1
- import { JSONSchema4 } from "json-schema";
2
1
  import { Adminizer } from "../../Adminizer";
3
2
  /**
4
3
  * Interface `Item` describes the data that the UI will operate on
@@ -91,7 +90,7 @@ export declare abstract class BaseItem<T extends Item> {
91
90
  * @param req
92
91
  */
93
92
  abstract getAddTemplate(req: ReqType): Promise<{
94
- type: 'component' | 'navigation.item' | 'navigation.group' | 'navigation.link' | 'model';
93
+ type: 'component' | 'navigation.group' | 'navigation.link' | 'model';
95
94
  data: any;
96
95
  }>;
97
96
  /**
@@ -102,7 +101,7 @@ export declare abstract class BaseItem<T extends Item> {
102
101
  * @param modelId
103
102
  */
104
103
  abstract getEditTemplate(id: string | number, catalogId: string, req: ReqType, modelId?: string | number): Promise<{
105
- type: 'component' | 'navigation.item' | 'navigation.group' | 'navigation.link' | 'model';
104
+ type: 'component' | 'navigation.group' | 'navigation.link' | 'model';
106
105
  data: any;
107
106
  }>;
108
107
  _getChilds(parentId: string | number, catalogId: string, req?: ReqType): Promise<Item[]>;
@@ -122,7 +121,7 @@ export declare abstract class ActionHandler {
122
121
  * Three actions are possible, without configuration, configuration via pop-up, and just external action
123
122
  * For the first two, a handler is provided, but the third type of action simply calls the HTML in the popup; the controller will be implemented externally
124
123
  * */
125
- abstract readonly type: "basic" | "json-forms" | "external" | "link" | "partial";
124
+ abstract readonly type: "basic" | "external" | "link";
126
125
  /**
127
126
  * Will be shown in the context menu section
128
127
  */
@@ -131,18 +130,10 @@ export declare abstract class ActionHandler {
131
130
  * Will be shown in the toolbox section
132
131
  */
133
132
  abstract readonly displayTool: boolean;
134
- /** (!*1)
135
- * Only for json-forms
136
- * ref: https://jsonforms.io/docs
137
- */
138
- abstract readonly uiSchema: any;
139
- abstract readonly jsonSchema: JSONSchema4;
140
133
  /**
141
- * For "json-forms" | "external"
142
- * @deprecated reason: migration for intertia
143
- * // TODO: need passing custom React module
134
+ * For "external"
144
135
  */
145
- abstract getPopUpHTML(data?: any): Promise<string>;
136
+ abstract getPopUpTemplate(data?: any): Promise<string>;
146
137
  /**
147
138
  * Only for link type
148
139
  */
@@ -161,9 +152,9 @@ export declare abstract class ActionHandler {
161
152
  * Implementation of a method that will do something with elements.
162
153
  * there's really not much you can do with the context menu
163
154
  * @param items
164
- * @param config
155
+ * @param req
165
156
  */
166
- abstract handler(items: Item[], data?: any, req?: ReqType): Promise<void>;
157
+ abstract handler(items: Item[], req?: ReqType): Promise<void>;
167
158
  }
168
159
  /**
169
160
  *
@@ -238,7 +229,7 @@ export declare abstract class AbstractCatalog {
238
229
  * @param modelId
239
230
  */
240
231
  getEditTemplate(item: Item, id: string | number, req: ReqType, modelId?: string | number): Promise<{
241
- type: "component" | "navigation.item" | "navigation.group" | "navigation.link" | "model";
232
+ type: "component" | "navigation.group" | "navigation.link" | "model";
242
233
  data: any;
243
234
  }>;
244
235
  /**
@@ -247,7 +238,7 @@ export declare abstract class AbstractCatalog {
247
238
  * @param req
248
239
  */
249
240
  getAddTemplate(item: Item, req: ReqType): Promise<{
250
- type: "component" | "navigation.item" | "navigation.group" | "navigation.link" | "model";
241
+ type: "component" | "navigation.group" | "navigation.link" | "model";
251
242
  data: any;
252
243
  }>;
253
244
  addActionHandler(actionHandler: ActionHandler): void;
@@ -259,19 +250,17 @@ export declare abstract class AbstractCatalog {
259
250
  /**
260
251
  * Implements search and execution of a specific action.handler
261
252
  */
262
- handleAction(actionId: string, items?: Item[], config?: any, req?: ReqType): Promise<void>;
253
+ handleAction(actionId: string, items?: Item[], req?: ReqType): Promise<void>;
263
254
  /**
264
255
  * Only For a Link action
265
256
  * @param actionId
266
257
  */
267
258
  getLink(actionId: string): Promise<string>;
268
259
  /**
269
- * For Extermal and JsonForms actions
260
+ * For Extermal and actions
270
261
  * @param actionId
271
- * @deprecated reason: migration for intertia
272
- * // TODO: need passing custom React module
273
262
  */
274
- getPopUpHTML(actionId: string): Promise<string>;
263
+ getPopUpTemplate(actionId: string): Promise<string>;
275
264
  /**
276
265
  *
277
266
  * @param data