adminizer 4.0.0-commit.f9bffe6 → 4.1.0-build.0
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.
- package/Readme.md +36 -0
- package/assets/VanillaJSONEditor-EdDEEERs.js +3833 -0
- package/assets/add-CXBzlfCv.js +1 -0
- package/assets/add-form-C1pPO9IW.js +1 -0
- package/assets/add-group-BIVpnHvQ.js +1 -0
- package/assets/add-group-form-BWu1FoyP.js +1 -0
- package/assets/add-user-BXbPJ4kC.js +1 -0
- package/assets/add-user-form-Dm9-szTc.js +1 -0
- package/assets/{app-DiNg6K-6.css → app-DMmad2-f.css} +6 -6
- package/assets/{app-layout-CLIcmUo6.js → app-layout-HvBcNP7X.js} +1 -1
- package/assets/app-shell-CeSqdfTT.js +1 -0
- package/assets/app-sidebar-BtgeHCOh.js +1 -0
- package/assets/{app-sidebar-header-C5wVa7ER.js → app-sidebar-header-pNKH1knV.js} +2 -2
- package/assets/app.js +33 -33
- package/assets/{breadcrumbs-DlS-hpHL.js → breadcrumbs-CQNon4Vl.js} +1 -1
- package/assets/{button-CcO4Q6h6.js → button-CQ9t1kLz.js} +1 -1
- package/assets/checkbox-W0nGAXIj.js +1 -0
- package/assets/dashboard-DOZBrGfi.js +1 -0
- package/assets/{date-picker-DMW7NWSI.js → date-picker-B__dVVqj.js} +2 -2
- package/assets/dropdown-menu-SEBnEIiL.js +1 -0
- package/assets/{field-renderer-CvC9UdC0.js → field-renderer-hXvJ0krZ.js} +139 -139
- package/assets/form-BMkoRYG6.js +1 -0
- package/assets/form-yYsjEajF.js +1 -0
- package/assets/{geo-json-BVpmaj6P.js → geo-json-paEzaL-W.js} +1 -1
- package/assets/handsontable-Wf0rBy4A.js +347 -0
- package/assets/home-BGYylio4.js +2 -0
- package/assets/{icon-CgDnRol2.js → icon-Bz9BMaD0.js} +1 -1
- package/assets/index-BC0yfOHo.js +1 -0
- package/assets/index-BbXEMx9n.js +1 -0
- package/assets/index-BcE9FUM6.js +1 -0
- package/assets/index-C0SL3SHw.js +41 -0
- package/assets/index-Cdb9ACvz.js +1 -0
- package/assets/index-D5ir9iUV.js +1 -0
- package/assets/index-DEk3sC8d.js +1 -0
- package/assets/index-DTRTjOmh.js +10 -0
- package/assets/index-DrWfGwtf.js +1 -0
- package/assets/index-K81GbF6O.js +1 -0
- package/assets/init-user-D9K13Tol.js +1 -0
- package/assets/{input-coEb8Hta.js → input-DF7Ue23C.js} +1 -1
- package/assets/{input-error-Dt30bqav.js → input-error-BBygona6.js} +1 -1
- package/assets/{label-BH_NLtVH.js → label-Z506NKsW.js} +1 -1
- package/assets/{list-table-CJgy5FsP.js → list-table-CE3swbOx.js} +3 -3
- package/assets/list-vQjhDdnO.js +1 -0
- package/assets/login-BKGj0WOS.js +6 -0
- package/assets/manifest.json +552 -601
- package/assets/{material-icon-DpKyAc3Z.js → material-icon-CItZiB53.js} +1 -1
- package/assets/module-BtDdcMyj.js +1 -0
- package/assets/multi-select-DOrUHH4A.js +11 -0
- package/assets/nav-footer-BoqrRyzw.js +1 -0
- package/assets/nav-main-BL-Hmm6O.js +1 -0
- package/assets/nav-user-KahV1IDw.js +1 -0
- package/assets/{pagination-render-S4EXTE9a.js → pagination-render-B57pOpFy.js} +1 -1
- package/assets/popover-I249Gg2O.js +1 -0
- package/assets/register-r-RETuTI.js +1 -0
- package/assets/select-D1N8zRPY.js +6 -0
- package/assets/{sidebar-C9-ESAx1.js → sidebar-VU5deMRj.js} +1 -1
- package/assets/{toast-editor-X2U_pFls.js → toast-editor-BQpTg1Td.js} +43 -43
- package/assets/tooltip-D2ehgLlB.js +1 -0
- package/assets/user-info-DBYoAJYJ.js +9 -0
- package/assets/{user-menu-content-D25M1xxo.js → user-menu-content-qkvdkUVd.js} +2 -2
- package/assets/utils-DjqsqOe8.js +1 -0
- package/assets/welcome-Z0ubrSPJ.js +1 -0
- package/controllers/add.js +1 -1
- package/controllers/addGroup.js +1 -1
- package/controllers/addUser.js +1 -1
- package/controllers/catalog/Catalog.js +1 -1
- package/controllers/ckeditorUpload.js +1 -1
- package/controllers/dashboard.js +1 -1
- package/controllers/edit.js +1 -1
- package/controllers/editGroup.js +1 -1
- package/controllers/editUser.js +1 -1
- package/controllers/form.js +1 -1
- package/controllers/getAllWidgets.js +1 -1
- package/controllers/initUser.js +1 -1
- package/controllers/list.js +1 -1
- package/controllers/login.js +3 -1
- package/controllers/media-manager/mediaManagerApi.js +1 -1
- package/controllers/navigation/edit.js +1 -1
- package/controllers/processInstallFinalize.js +1 -1
- package/controllers/processInstallStep.js +1 -1
- package/controllers/register.js +1 -1
- package/controllers/remove.js +1 -1
- package/controllers/timezones.js +1 -1
- package/controllers/view.js +1 -1
- package/controllers/welcome.js +1 -1
- package/controllers/widgets/Action.js +1 -1
- package/controllers/widgets/Custom.js +1 -1
- package/controllers/widgets/Info.js +1 -1
- package/controllers/widgets/switch.js +1 -1
- package/controllers/widgetsDB.js +1 -1
- package/helpers/accessRightsHelper.js +1 -1
- package/helpers/inertiaAddHelper.d.ts +1 -0
- package/interfaces/adminpanelConfig.d.ts +5 -1
- package/lib/datatable/NodeTable.js +2 -0
- package/lib/v4/POWCaptcha.js +1 -1
- package/lib/v4/model/AbstractModel.js +2 -0
- package/lib/v4/model/adapter/sequelize.d.ts +26 -0
- package/lib/v4/model/adapter/sequelize.js +280 -0
- package/lib/v4/model/adapter/waterline.js +3 -1
- package/package.json +6 -3
- package/policies/checkAuth.js +1 -1
- package/system/bindAuthorization.js +17 -2
- package/system/bindInertia.js +1 -1
- package/system/defaults.js +3 -0
- package/assets/VanillaJSONEditor-OdBvR1ds.js +0 -3807
- package/assets/add-DtkqVKek.js +0 -1
- package/assets/add-form-D7Gz1uwX.js +0 -1
- package/assets/add-group-BIUZK9CR.js +0 -1
- package/assets/add-group-form-CFw1igaY.js +0 -1
- package/assets/add-user-5Ko0sxsj.js +0 -1
- package/assets/add-user-form-fxpU-oac.js +0 -1
- package/assets/app-shell-Dgf4uNFy.js +0 -1
- package/assets/app-sidebar-D5-eQKSx.js +0 -1
- package/assets/checkbox-zNG98WS7.js +0 -1
- package/assets/dashboard-BmEpxYnQ.js +0 -1
- package/assets/dropdown-menu-CKLjASQo.js +0 -1
- package/assets/floating-ui.react-dom-DEWQUtJU.js +0 -1
- package/assets/form-BZkPiK2Z.js +0 -1
- package/assets/form-XjYeizmY.js +0 -1
- package/assets/handsontable-D_wNwOhu.js +0 -347
- package/assets/home-CmIZ3AL2.js +0 -2
- package/assets/index-B6nPyxx_.js +0 -1
- package/assets/index-B7QLmddv.js +0 -1
- package/assets/index-BNKtUMNI.js +0 -1
- package/assets/index-C4BeqGbx.js +0 -41
- package/assets/index-CJTkueDA.js +0 -1
- package/assets/index-CNFwBlc7.js +0 -1
- package/assets/index-D8YaJIVm.js +0 -1
- package/assets/index-DZ2G3GiC.js +0 -10
- package/assets/index-DlfDI23T.js +0 -1
- package/assets/index-Dv6YbCDH.js +0 -1
- package/assets/index-S2Olh4hE.js +0 -1
- package/assets/init-user-DXTgLYcI.js +0 -1
- package/assets/list-BBJBZzsm.js +0 -1
- package/assets/login-B7INjWDi.js +0 -6
- package/assets/module-D8kHGWhF.js +0 -1
- package/assets/multi-select-CgIsryRX.js +0 -11
- package/assets/nav-footer-BioIOL2n.js +0 -1
- package/assets/nav-main-CcQo_Ho4.js +0 -1
- package/assets/nav-user-p58e1wG0.js +0 -1
- package/assets/popover-DXKNm8mO.js +0 -1
- package/assets/register-B-p6hoZb.js +0 -1
- package/assets/select-B1LhFAX0.js +0 -6
- package/assets/tooltip-DXyAGFz-.js +0 -1
- package/assets/user-info-D89n2REb.js +0 -1
- package/assets/utils-jAU0Cazi.js +0 -1
- package/assets/welcome-D1l61QW1.js +0 -1
package/assets/home-CmIZ3AL2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VanillaJSONEditor-OdBvR1ds.js","./app.js","./app-DiNg6K-6.css","./compiler-runtime-tM4jBQ-T.js","./index-Vcq4gwWv.js","./use-appearance-CL_TqHcP.js","./form-state-702tb_BV.js","./add-form-D7Gz1uwX.js","./button-CcO4Q6h6.js","./index-CNFwBlc7.js","./utils-jAU0Cazi.js","./icon-CgDnRol2.js","./label-BH_NLtVH.js","./index-Dv6YbCDH.js","./tooltip-DXyAGFz-.js","./index-B6nPyxx_.js","./index-D8YaJIVm.js","./floating-ui.react-dom-DEWQUtJU.js","./index-CJTkueDA.js","./index-DlfDI23T.js","./index-B7QLmddv.js","./index-BNKtUMNI.js","./field-renderer-CvC9UdC0.js","./checkbox-zNG98WS7.js","./index-DwctwfU0.js","./check-LAUWAnlX.js","./createLucideIcon-BFG25zNo.js","./select-B1LhFAX0.js","./index-S2Olh4hE.js","./index-C4BeqGbx.js","./chevron-down-B5XuAFRu.js","./dynamic-controls-CSVVCONh.js","./input-coEb8Hta.js","./multi-select-CgIsryRX.js","./popover-DXKNm8mO.js","./index-DZ2G3GiC.js","./search-BspystAk.js","./field-renderer-BlBZuSiD.css","./input-error-Dt30bqav.js","./move-left-BhKZRPb4.js","./loader-circle-Utah5tGx.js","./add-group-form-CFw1igaY.js","./add-user-form-fxpU-oac.js","./app-shell-Dgf4uNFy.js","./sidebar-C9-ESAx1.js","./app-sidebar-header-C5wVa7ER.js","./breadcrumbs-DlS-hpHL.js","./chevron-right-D5q8rF7h.js","./nav-user-p58e1wG0.js","./dropdown-menu-CKLjASQo.js","./user-info-D89n2REb.js","./user-menu-content-D25M1xxo.js","./chevrons-up-down-kALltqHV.js","./app-sidebar-D5-eQKSx.js","./nav-main-CcQo_Ho4.js","./material-icon-DpKyAc3Z.js","./date-picker-DMW7NWSI.js","./chevron-left-CoMhTMUD.js","./form-XjYeizmY.js","./geo-json-BVpmaj6P.js","./trash-2-BoK5Xp2F.js","./handsontable-D_wNwOhu.js","./list-table-CJgy5FsP.js","./sonner-Dzckw3U3.js","./pagination-render-S4EXTE9a.js","./monaco-editor-BWdkjOSO.js","./use-window-size-B8l6Bpkf.js","./nav-footer-BioIOL2n.js","./toast-editor-X2U_pFls.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{K as x,r as u,j as o,L as v,$ as L,_ as t}from"./app.js";const P=(m,r,_)=>{const e=m[r];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+r+(r.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function I(){const m=x(),[r,_]=u.useState(null),[e,s]=u.useState(null),n=m.props.controls,l=async()=>{const{component:i,props:p}=n[0],d=(await P(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./VanillaJSONEditor-OdBvR1ds.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./add-form-D7Gz1uwX.js"),__vite__mapDeps([7,1,2,3,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,6,38,39,40]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-CFw1igaY.js"),__vite__mapDeps([41,1,2,3,8,9,10,11,12,13,32,23,16,15,17,18,24,20,25,26,14,19,21,39,40]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-fxpU-oac.js"),__vite__mapDeps([42,1,2,3,11,10,8,9,12,13,32,27,15,16,17,18,28,19,24,21,29,30,26,25,23,20,14,38,39,40]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-Dgf4uNFy.js"),__vite__mapDeps([43,1,2,3,44,9,8,10,35,26,29,14,15,13,16,17,18,19,20,21]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-C5wVa7ER.js"),__vite__mapDeps([45,1,2,3,46,9,10,47,26,44,8,35,29,14,15,13,16,17,18,19,20,21,48,49,28,50,51,52,11,5]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-D5-eQKSx.js"),__vite__mapDeps([53,1,2,3,54,44,9,8,10,35,26,29,14,15,13,16,17,18,19,20,21,55,47,52]),import.meta.url),"../components/breadcrumbs.tsx":()=>t(()=>import("./breadcrumbs-DlS-hpHL.js"),__vite__mapDeps([46,1,2,3,9,10,47,26]),import.meta.url),"../components/date-picker.tsx":()=>t(()=>import("./date-picker-DMW7NWSI.js"),__vite__mapDeps([56,1,2,3,10,8,9,47,26,57,34,17,29]),import.meta.url),"../components/dynamic-controls.tsx":()=>t(()=>import("./dynamic-controls-CSVVCONh.js"),__vite__mapDeps([31,1,2]),import.meta.url),"../components/field-renderer.tsx":()=>t(()=>import("./field-renderer-CvC9UdC0.js"),__vite__mapDeps([22,1,2,3,23,13,16,15,17,18,24,20,10,25,26,27,28,19,21,29,30,31,32,33,8,9,34,35,36,37]),import.meta.url),"../components/form.tsx":()=>t(()=>import("./form-XjYeizmY.js"),__vite__mapDeps([58,1,2,6,7,3,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url),"../components/geo-json.tsx":()=>t(()=>import("./geo-json-BVpmaj6P.js"),__vite__mapDeps([59,1,2,3,8,9,10,26,25,60]),import.meta.url),"../components/handsontable.tsx":()=>t(()=>import("./handsontable-D_wNwOhu.js"),__vite__mapDeps([61,1,2,5,3]),import.meta.url),"../components/icon.tsx":()=>t(()=>import("./icon-CgDnRol2.js"),__vite__mapDeps([11,1,2,3,10]),import.meta.url),"../components/input-error.tsx":()=>t(()=>import("./input-error-Dt30bqav.js"),__vite__mapDeps([38,1,2,3,10]),import.meta.url),"../components/list-table.tsx":()=>t(()=>import("./list-table-CJgy5FsP.js"),__vite__mapDeps([62,1,2,8,3,9,10,11,26,32,36,55,49,15,13,16,17,18,28,20,19,29,63,35,60,27,24,21,30,25,64,57,47]),import.meta.url),"../components/material-icon.tsx":()=>t(()=>import("./material-icon-DpKyAc3Z.js"),__vite__mapDeps([55,1,2,3,10]),import.meta.url),"../components/monaco-editor.tsx":()=>t(()=>import("./monaco-editor-BWdkjOSO.js"),__vite__mapDeps([65,1,2,3,5,66]),import.meta.url),"../components/multi-select.tsx":()=>t(()=>import("./multi-select-CgIsryRX.js"),__vite__mapDeps([33,1,2,3,8,9,10,34,17,29,35,26,13,19,18,36,30,25]),import.meta.url),"../components/nav-footer.tsx":()=>t(()=>import("./nav-footer-BioIOL2n.js"),__vite__mapDeps([67,1,2,3,11,10,44,9,8,35,26,29,14,15,13,16,17,18,19,20,21]),import.meta.url),"../components/nav-main.tsx":()=>t(()=>import("./nav-main-CcQo_Ho4.js").then(E=>E.n),__vite__mapDeps([54,1,2,3,44,9,8,10,35,26,29,14,15,13,16,17,18,19,20,21,55,47]),import.meta.url),"../components/nav-user.tsx":()=>t(()=>import("./nav-user-p58e1wG0.js"),__vite__mapDeps([48,1,2,3,49,15,13,16,17,18,28,20,19,29,10,44,9,8,35,26,14,21,50,51,52]),import.meta.url),"../components/pagination-render.tsx":()=>t(()=>import("./pagination-render-S4EXTE9a.js"),__vite__mapDeps([64,1,2,3,10,8,9,57,26,47]),import.meta.url),"../components/toast-editor.tsx":()=>t(()=>import("./toast-editor-X2U_pFls.js"),__vite__mapDeps([68,1,2,3,4,66,5]),import.meta.url),"../components/user-info.tsx":()=>t(()=>import("./user-info-D89n2REb.js"),__vite__mapDeps([50,1,2,3,16,18,13,10]),import.meta.url),"../components/user-menu-content.tsx":()=>t(()=>import("./user-menu-content-D25M1xxo.js"),__vite__mapDeps([51,1,2,3,49,15,13,16,17,18,28,20,19,29,10,50,26]),import.meta.url)}),`../components/${i}.tsx`,3)).default;_(o.jsx(d,{...p}))},c=async()=>{const{component:i}=n[1],a=(await import(i)).default;s(o.jsx(a,{message:"Hello from Component B"}))};return o.jsxs(o.Fragment,{children:[o.jsx(v,{title:"Home"}),o.jsx("div",{children:o.jsx(L,{href:"/page",children:"Page"})}),o.jsx("div",{children:o.jsx("h1",{children:"Is Home"})}),o.jsxs("div",{children:[o.jsx("button",{onClick:l,children:"Загрузить компонент"}),o.jsx("p",{}),r||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]}),o.jsx("p",{}),o.jsxs("div",{children:[o.jsx("button",{onClick:c,children:"Загрузить компонент"}),o.jsx("p",{}),e||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]})]})}export{I as default};
|
package/assets/index-B6nPyxx_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as h,R as Oe}from"./app.js";import{u as z,P as O,d as Se}from"./index-Dv6YbCDH.js";import{u as S,c as Re}from"./index-D8YaJIVm.js";import{u as De,o as Le,s as Ne,f as _e,a as Te,b as Be,h as We,l as ze,c as je}from"./floating-ui.react-dom-DEWQUtJU.js";import{u as W}from"./index-CJTkueDA.js";function I(e,n,{checkForDefaultPrevented:o=!0}={}){return function(t){if(e==null||e(t),o===!1||!t.defaultPrevented)return n==null?void 0:n(t)}}function Fe(e,n=globalThis==null?void 0:globalThis.document){const o=S(e);i.useEffect(()=>{const r=t=>{t.key==="Escape"&&o(t)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[o,n])}var Ie="DismissableLayer",$="dismissableLayer.update",$e="dismissableLayer.pointerDownOutside",ke="dismissableLayer.focusOutside",V,te=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Me=i.forwardRef((e,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:t,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...f}=e,a=i.useContext(te),[l,v]=i.useState(null),p=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=i.useState({}),m=z(n,u=>v(u)),y=Array.from(a.layers),[x]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(x),w=l?y.indexOf(l):-1,j=a.layersWithOutsidePointerEventsDisabled.size>0,A=w>=g,F=Ye(u=>{const b=u.target,L=[...a.branches].some(R=>R.contains(b));!A||L||(t==null||t(u),c==null||c(u),u.defaultPrevented||d==null||d())},p),P=Xe(u=>{const b=u.target;[...a.branches].some(R=>R.contains(b))||(s==null||s(u),c==null||c(u),u.defaultPrevented||d==null||d())},p);return Fe(u=>{w===a.layers.size-1&&(r==null||r(u),!u.defaultPrevented&&d&&(u.preventDefault(),d()))},p),i.useEffect(()=>{if(l)return o&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(V=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(l)),a.layers.add(l),ee(),()=>{o&&a.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=V)}},[l,p,o,a]),i.useEffect(()=>()=>{l&&(a.layers.delete(l),a.layersWithOutsidePointerEventsDisabled.delete(l),ee())},[l,a]),i.useEffect(()=>{const u=()=>E({});return document.addEventListener($,u),()=>document.removeEventListener($,u)},[]),h.jsx(O.div,{...f,ref:m,style:{pointerEvents:j?A?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,F.onPointerDownCapture)})});Me.displayName=Ie;var Ue="DismissableLayerBranch",He=i.forwardRef((e,n)=>{const o=i.useContext(te),r=i.useRef(null),t=z(n,r);return i.useEffect(()=>{const s=r.current;if(s)return o.branches.add(s),()=>{o.branches.delete(s)}},[o.branches]),h.jsx(O.div,{...e,ref:t})});He.displayName=Ue;function Ye(e,n=globalThis==null?void 0:globalThis.document){const o=S(e),r=i.useRef(!1),t=i.useRef(()=>{});return i.useEffect(()=>{const s=d=>{if(d.target&&!r.current){let f=function(){re($e,o,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",t.current),t.current=f,n.addEventListener("click",t.current,{once:!0})):f()}else n.removeEventListener("click",t.current);r.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",t.current)}},[n,o]),{onPointerDownCapture:()=>r.current=!0}}function Xe(e,n=globalThis==null?void 0:globalThis.document){const o=S(e),r=i.useRef(!1);return i.useEffect(()=>{const t=s=>{s.target&&!r.current&&re(ke,o,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",t),()=>n.removeEventListener("focusin",t)},[n,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ee(){const e=new CustomEvent($);document.dispatchEvent(e)}function re(e,n,o,{discrete:r}){const t=o.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});n&&t.addEventListener(e,n,{once:!0}),r?Se(t,s):t.dispatchEvent(s)}var Ke="Arrow",ne=i.forwardRef((e,n)=>{const{children:o,width:r=10,height:t=5,...s}=e;return h.jsx(O.svg,{...s,ref:n,width:r,height:t,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});ne.displayName=Ke;var Ze=ne;function qe(e){const[n,o]=i.useState(void 0);return W(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;const s=t[0];let c,d;if("borderBoxSize"in s){const f=s.borderBoxSize,a=Array.isArray(f)?f[0]:f;c=a.inlineSize,d=a.blockSize}else c=e.offsetWidth,d=e.offsetHeight;o({width:c,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),n}var k="Popper",[oe,lt]=Re(k),[Ge,se]=oe(k),ie=e=>{const{__scopePopper:n,children:o}=e,[r,t]=i.useState(null);return h.jsx(Ge,{scope:n,anchor:r,onAnchorChange:t,children:o})};ie.displayName=k;var ae="PopperAnchor",ce=i.forwardRef((e,n)=>{const{__scopePopper:o,virtualRef:r,...t}=e,s=se(ae,o),c=i.useRef(null),d=z(n,c);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||c.current)}),r?null:h.jsx(O.div,{...t,ref:d})});ce.displayName=ae;var M="PopperContent",[Je,Qe]=oe(M),de=i.forwardRef((e,n)=>{var X,K,Z,q,G,J;const{__scopePopper:o,side:r="bottom",sideOffset:t=0,align:s="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:a=[],collisionPadding:l=0,sticky:v="partial",hideWhenDetached:p=!1,updatePositionStrategy:E="optimized",onPlaced:m,...y}=e,x=se(M,o),[g,w]=i.useState(null),j=z(n,D=>w(D)),[A,F]=i.useState(null),P=qe(A),u=(P==null?void 0:P.width)??0,b=(P==null?void 0:P.height)??0,L=r+(s!=="center"?"-"+s:""),R=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},U=Array.isArray(a)?a:[a],pe=U.length>0,N={padding:R,boundary:U.filter(et),altBoundary:pe},{refs:he,floatingStyles:H,placement:ve,isPositioned:_,middlewareData:C}=De({strategy:"fixed",placement:L,whileElementsMounted:(...D)=>je(...D,{animationFrame:E==="always"}),elements:{reference:x.anchor},middleware:[Le({mainAxis:t+b,alignmentAxis:c}),f&&Ne({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?ze():void 0,...N}),f&&_e({...N}),Te({...N,apply:({elements:D,rects:Q,availableWidth:Ee,availableHeight:xe})=>{const{width:Ae,height:Ce}=Q.reference,B=D.floating.style;B.setProperty("--radix-popper-available-width",`${Ee}px`),B.setProperty("--radix-popper-available-height",`${xe}px`),B.setProperty("--radix-popper-anchor-width",`${Ae}px`),B.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),A&&Be({element:A,padding:d}),tt({arrowWidth:u,arrowHeight:b}),p&&We({strategy:"referenceHidden",...N})]}),[Y,ye]=fe(ve),T=S(m);W(()=>{_&&(T==null||T())},[_,T]);const me=(X=C.arrow)==null?void 0:X.x,Pe=(K=C.arrow)==null?void 0:K.y,ge=((Z=C.arrow)==null?void 0:Z.centerOffset)!==0,[we,be]=i.useState();return W(()=>{g&&be(window.getComputedStyle(g).zIndex)},[g]),h.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:_?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(q=C.transformOrigin)==null?void 0:q.x,(G=C.transformOrigin)==null?void 0:G.y].join(" "),...((J=C.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Je,{scope:o,placedSide:Y,onArrowChange:F,arrowX:me,arrowY:Pe,shouldHideArrow:ge,children:h.jsx(O.div,{"data-side":Y,"data-align":ye,...y,ref:j,style:{...y.style,animation:_?void 0:"none"}})})})});de.displayName=M;var le="PopperArrow",Ve={top:"bottom",right:"left",bottom:"top",left:"right"},ue=i.forwardRef(function(n,o){const{__scopePopper:r,...t}=n,s=Qe(le,r),c=Ve[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(Ze,{...t,ref:o,style:{...t.style,display:"block"}})})});ue.displayName=le;function et(e){return e!==null}var tt=e=>({name:"transformOrigin",options:e,fn(n){var x,g,w;const{placement:o,rects:r,middlewareData:t}=n,c=((x=t.arrow)==null?void 0:x.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[a,l]=fe(o),v={start:"0%",center:"50%",end:"100%"}[l],p=(((g=t.arrow)==null?void 0:g.x)??0)+d/2,E=(((w=t.arrow)==null?void 0:w.y)??0)+f/2;let m="",y="";return a==="bottom"?(m=c?v:`${p}px`,y=`${-f}px`):a==="top"?(m=c?v:`${p}px`,y=`${r.floating.height+f}px`):a==="right"?(m=`${-f}px`,y=c?v:`${E}px`):a==="left"&&(m=`${r.floating.width+f}px`,y=c?v:`${E}px`),{data:{x:m,y}}}});function fe(e){const[n,o="center"]=e.split("-");return[n,o]}var ut=ie,ft=ce,pt=de,ht=ue,rt="Portal",nt=i.forwardRef((e,n)=>{var d;const{container:o,...r}=e,[t,s]=i.useState(!1);W(()=>s(!0),[]);const c=o||t&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?Oe.createPortal(h.jsx(O.div,{...r,ref:n}),c):null});nt.displayName=rt;function vt({prop:e,defaultProp:n,onChange:o=()=>{}}){const[r,t]=ot({defaultProp:n,onChange:o}),s=e!==void 0,c=s?e:r,d=S(o),f=i.useCallback(a=>{if(s){const v=typeof a=="function"?a(e):a;v!==e&&d(v)}else t(a)},[s,e,t,d]);return[c,f]}function ot({defaultProp:e,onChange:n}){const o=i.useState(e),[r]=o,t=i.useRef(r),s=S(n);return i.useEffect(()=>{t.current!==r&&(s(r),t.current=r)},[r,t,s]),o}export{ft as A,pt as C,Me as D,nt as P,ut as R,qe as a,lt as b,I as c,ht as d,vt as u};
|
package/assets/index-B7QLmddv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a}from"./app.js";import{u as E}from"./index-Dv6YbCDH.js";import{u as A}from"./index-CJTkueDA.js";function T(n,e){return a.useReducer((r,t)=>e[r][t]??r,n)}var P=n=>{const{present:e,children:r}=n,t=R(e),i=typeof r=="function"?r({present:t.isPresent}):a.Children.only(r),c=E(t.ref,v(i));return typeof r=="function"||t.isPresent?a.cloneElement(i,{ref:c}):null};P.displayName="Presence";function R(n){const[e,r]=a.useState(),t=a.useRef({}),i=a.useRef(n),c=a.useRef("none"),p=n?"mounted":"unmounted",[N,s]=T(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(t.current);c.current=N==="mounted"?o:"none"},[N]),A(()=>{const o=t.current,m=i.current;if(m!==n){const f=c.current,u=l(o);n?s("MOUNT"):u==="none"||(o==null?void 0:o.display)==="none"?s("UNMOUNT"):s(m&&f!==u?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,s]),A(()=>{if(e){let o;const m=e.ownerDocument.defaultView??window,d=u=>{const g=l(t.current).includes(u.animationName);if(u.target===e&&g&&(s("ANIMATION_END"),!i.current)){const O=e.style.animationFillMode;e.style.animationFillMode="forwards",o=m.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=O)})}},f=u=>{u.target===e&&(c.current=l(t.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{m.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(t.current=getComputedStyle(o)),r(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function v(n){var t,i;let e=(t=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:t.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}export{P};
|
package/assets/index-BNKtUMNI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as o}from"./app.js";import{P as t}from"./index-Dv6YbCDH.js";var s="VisuallyHidden",a=i.forwardRef((r,e)=>o.jsx(t.span,{...r,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...r.style}}));a.displayName=s;var n=a;export{n as R,a as V};
|
package/assets/index-C4BeqGbx.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{r as u}from"./app.js";var C=function(){return C=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},C.apply(this,arguments)};function K(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function ne(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,c;n<a;n++)(c||!(n in t))&&(c||(c=Array.prototype.slice.call(t,0,n)),c[n]=t[n]);return e.concat(c||Array.prototype.slice.call(t))}var N="right-scroll-bar-position",I="width-before-scroll-bar",ae="with-scroll-bars-hidden",oe="--removed-body-scroll-bar-size";function X(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ce(e,t){var r=u.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var ie=typeof window<"u"?u.useLayoutEffect:u.useEffect,F=new WeakMap;function ue(e,t){var r=ce(null,function(n){return e.forEach(function(a){return X(a,n)})});return ie(function(){var n=F.get(r);if(n){var a=new Set(n),c=new Set(e),l=r.current;a.forEach(function(o){c.has(o)||X(o,null)}),c.forEach(function(o){a.has(o)||X(o,l)})}F.set(r,e)},[e]),r}function le(e){return e}function fe(e,t){t===void 0&&(t=le);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var l=t(c,n);return r.push(l),function(){r=r.filter(function(o){return o!==l})}},assignSyncMedium:function(c){for(n=!0;r.length;){var l=r;r=[],l.forEach(c)}r={push:function(o){return c(o)},filter:function(){return r}}},assignMedium:function(c){n=!0;var l=[];if(r.length){var o=r;r=[],o.forEach(c),l=r}var p=function(){var v=l;l=[],v.forEach(c)},m=function(){return Promise.resolve().then(p)};m(),r={push:function(v){l.push(v),m()},filter:function(v){return l=l.filter(v),r}}}};return a}function se(e){e===void 0&&(e={});var t=fe(null);return t.options=C({async:!0,ssr:!1},e),t}var q=function(e){var t=e.sideCar,r=K(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return u.createElement(n,C({},r))};q.isSideCarExport=!0;function de(e,t){return e.useMedium(t),q}var U=se(),Y=function(){},D=u.forwardRef(function(e,t){var r=u.useRef(null),n=u.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),a=n[0],c=n[1],l=e.forwardProps,o=e.children,p=e.className,m=e.removeScrollBar,v=e.enabled,s=e.shards,d=e.sideCar,y=e.noIsolation,S=e.inert,i=e.allowPinchZoom,f=e.as,g=f===void 0?"div":f,b=e.gapMode,w=K(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,h=ue([r,t]),k=C(C({},w),a);return u.createElement(u.Fragment,null,v&&u.createElement(E,{sideCar:U,removeScrollBar:m,shards:s,noIsolation:y,inert:S,setCallbacks:c,allowPinchZoom:!!i,lockRef:r,gapMode:b}),l?u.cloneElement(u.Children.only(o),C(C({},k),{ref:h})):u.createElement(g,C({},k,{className:p,ref:h}),o))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:I,zeroRight:N};var ve=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function he(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ve();return t&&e.setAttribute("nonce",t),e}function me(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ge(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=he())&&(me(t,r),ge(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ye=function(){var e=pe();return function(t,r){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},$=function(){var e=ye(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},we={left:0,top:0,right:0,gap:0},j=function(e){return parseInt(e||"",10)||0},Se=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[j(r),j(n),j(a)]},be=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return we;var t=Se(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ce=$(),P="data-scroll-locked",Ee=function(e,t,r,n){var a=e.left,c=e.top,l=e.right,o=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
-
.`.concat(ae,` {
|
|
3
|
-
overflow: hidden `).concat(n,`;
|
|
4
|
-
padding-right: `).concat(o,"px ").concat(n,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(P,`] {
|
|
7
|
-
overflow: hidden `).concat(n,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
10
|
-
padding-left: `.concat(a,`px;
|
|
11
|
-
padding-top: `).concat(c,`px;
|
|
12
|
-
padding-right: `).concat(l,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(o,"px ").concat(n,`;
|
|
16
|
-
`),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(N,` {
|
|
20
|
-
right: `).concat(o,"px ").concat(n,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(I,` {
|
|
24
|
-
margin-right: `).concat(o,"px ").concat(n,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(N," .").concat(N,` {
|
|
28
|
-
right: 0 `).concat(n,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(I," .").concat(I,` {
|
|
32
|
-
margin-right: 0 `).concat(n,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(P,`] {
|
|
36
|
-
`).concat(oe,": ").concat(o,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},Z=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},ke=function(){u.useEffect(function(){return document.body.setAttribute(P,(Z()+1).toString()),function(){var e=Z()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}},[])},Re=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;ke();var c=u.useMemo(function(){return be(a)},[a]);return u.createElement(Ce,{styles:Ee(c,!t,a,r?"":"!important")})},H=!1;if(typeof window<"u")try{var L=Object.defineProperty({},"passive",{get:function(){return H=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch{H=!1}var R=H?{passive:!1}:!1,Ae=function(e){return e.tagName==="TEXTAREA"},J=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ae(e)&&r[t]==="visible")},Me=function(e){return J(e,"overflowY")},Pe=function(e){return J(e,"overflowX")},_=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=ee(e,n);if(a){var c=te(e,n),l=c[1],o=c[2];if(l>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},We=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Be=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ee=function(e,t){return e==="v"?Me(t):Pe(t)},te=function(e,t){return e==="v"?We(t):Be(t)},Le=function(e,t){return e==="h"&&t==="rtl"?-1:1},xe=function(e,t,r,n,a){var c=Le(e,window.getComputedStyle(t).direction),l=c*n,o=r.target,p=t.contains(o),m=!1,v=l>0,s=0,d=0;do{var y=te(e,o),S=y[0],i=y[1],f=y[2],g=i-f-c*S;(S||g)&&ee(e,o)&&(s+=g,d+=S),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!p&&o!==document.body||p&&(t.contains(o)||t===o));return(v&&Math.abs(s)<1||!v&&Math.abs(d)<1)&&(m=!0),m},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Q=function(e){return[e.deltaX,e.deltaY]},G=function(e){return e&&"current"in e?e.current:e},Te=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Oe=function(e){return`
|
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},Ne=0,A=[];function Ie(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),a=u.useState(Ne++)[0],c=u.useState($)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var i=ne([e.lockRef.current],(e.shards||[]).map(G),!0).filter(Boolean);return i.forEach(function(f){return f.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),i.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=u.useCallback(function(i,f){if("touches"in i&&i.touches.length===2||i.type==="wheel"&&i.ctrlKey)return!l.current.allowPinchZoom;var g=x(i),b=r.current,w="deltaX"in i?i.deltaX:b[0]-g[0],E="deltaY"in i?i.deltaY:b[1]-g[1],h,k=i.target,W=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in i&&W==="h"&&k.type==="range")return!1;var B=_(W,k);if(!B)return!0;if(B?h=W:(h=W==="v"?"h":"v",B=_(W,k)),!B)return!1;if(!n.current&&"changedTouches"in i&&(w||E)&&(n.current=h),!h)return!0;var z=n.current||h;return xe(z,f,i,z==="h"?w:E)},[]),p=u.useCallback(function(i){var f=i;if(!(!A.length||A[A.length-1]!==c)){var g="deltaY"in f?Q(f):x(f),b=t.current.filter(function(h){return h.name===f.type&&(h.target===f.target||f.target===h.shadowParent)&&Te(h.delta,g)})[0];if(b&&b.should){f.cancelable&&f.preventDefault();return}if(!b){var w=(l.current.shards||[]).map(G).filter(Boolean).filter(function(h){return h.contains(f.target)}),E=w.length>0?o(f,w[0]):!l.current.noIsolation;E&&f.cancelable&&f.preventDefault()}}},[]),m=u.useCallback(function(i,f,g,b){var w={name:i,delta:f,target:g,should:b,shadowParent:De(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),v=u.useCallback(function(i){r.current=x(i),n.current=void 0},[]),s=u.useCallback(function(i){m(i.type,Q(i),i.target,o(i,e.lockRef.current))},[]),d=u.useCallback(function(i){m(i.type,x(i),i.target,o(i,e.lockRef.current))},[]);u.useEffect(function(){return A.push(c),e.setCallbacks({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:d}),document.addEventListener("wheel",p,R),document.addEventListener("touchmove",p,R),document.addEventListener("touchstart",v,R),function(){A=A.filter(function(i){return i!==c}),document.removeEventListener("wheel",p,R),document.removeEventListener("touchmove",p,R),document.removeEventListener("touchstart",v,R)}},[]);var y=e.removeScrollBar,S=e.inert;return u.createElement(u.Fragment,null,S?u.createElement(c,{styles:Oe(a)}):null,y?u.createElement(Re,{gapMode:e.gapMode}):null)}function De(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xe=de(U,Ie);var Ye=u.forwardRef(function(e,t){return u.createElement(D,C({},e,{ref:t,sideCar:Xe}))});Ye.classNames=D.classNames;var je=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},M=new WeakMap,T=new WeakMap,O={},V=0,re=function(e){return e&&(e.host||re(e.parentNode))},Ve=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=re(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},He=function(e,t,r,n){var a=Ve(t,Array.isArray(e)?e:[e]);O[r]||(O[r]=new WeakMap);var c=O[r],l=[],o=new Set,p=new Set(a),m=function(s){!s||o.has(s)||(o.add(s),m(s.parentNode))};a.forEach(m);var v=function(s){!s||p.has(s)||Array.prototype.forEach.call(s.children,function(d){if(o.has(d))v(d);else try{var y=d.getAttribute(n),S=y!==null&&y!=="false",i=(M.get(d)||0)+1,f=(c.get(d)||0)+1;M.set(d,i),c.set(d,f),l.push(d),i===1&&S&&T.set(d,!0),f===1&&d.setAttribute(r,"true"),S||d.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return v(t),o.clear(),V++,function(){l.forEach(function(s){var d=M.get(s)-1,y=c.get(s)-1;M.set(s,d),c.set(s,y),d||(T.has(s)||s.removeAttribute(n),T.delete(s)),y||s.removeAttribute(r)}),V--,V||(M=new WeakMap,M=new WeakMap,T=new WeakMap,O={})}},Fe=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=je(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),He(n,a,r,"aria-hidden")):function(){return null}};export{Ye as R,Fe as h};
|
package/assets/index-CJTkueDA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o}from"./app.js";var a=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{};export{a as u};
|
package/assets/index-CNFwBlc7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as p}from"./app.js";function d(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function m(...n){return t=>{let o=!1;const r=n.map(e=>{const l=d(e,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let e=0;e<r.length;e++){const l=r[e];typeof l=="function"?l():d(n[e],null)}}}}function E(n){const t=S(n),o=i.forwardRef((r,e)=>{const{children:l,...c}=r,s=i.Children.toArray(l),f=s.find(C);if(f){const a=f.props.children,y=s.map(u=>u===f?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:u);return p.jsx(t,{...c,ref:e,children:i.isValidElement(a)?i.cloneElement(a,void 0,y):null})}return p.jsx(t,{...c,ref:e,children:l})});return o.displayName=`${n}.Slot`,o}var j=E("Slot");function S(n){const t=i.forwardRef((o,r)=>{const{children:e,...l}=o;if(i.isValidElement(e)){const c=R(e),s=h(l,e.props);return e.type!==i.Fragment&&(s.ref=r?m(r,c):c),i.cloneElement(e,s)}return i.Children.count(e)>1?i.Children.only(null):null});return t.displayName=`${n}.SlotClone`,t}var g=Symbol("radix.slottable");function C(n){return i.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===g}function h(n,t){const o={...t};for(const r in t){const e=n[r],l=t[r];/^on[A-Z]/.test(r)?e&&l?o[r]=(...s)=>{l(...s),e(...s)}:e&&(o[r]=e):r==="style"?o[r]={...e,...l}:r==="className"&&(o[r]=[e,l].filter(Boolean).join(" "))}return{...n,...o}}function R(n){var r,e;let t=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?n.ref:(t=(e=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:e.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}export{j as S,E as c};
|
package/assets/index-D8YaJIVm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,j as h}from"./app.js";function j(e,t=[]){let r=[];function i(a,n){const o=s.createContext(n),c=r.length;r=[...r,n];const m=p=>{var v;const{scope:u,children:S,...f}=p,C=((v=u==null?void 0:u[e])==null?void 0:v[c])||o,_=s.useMemo(()=>f,Object.values(f));return h.jsx(C.Provider,{value:_,children:S})};m.displayName=a+"Provider";function d(p,u){var C;const S=((C=u==null?void 0:u[e])==null?void 0:C[c])||o,f=s.useContext(S);if(f)return f;if(n!==void 0)return n;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[m,d]}const x=()=>{const a=r.map(n=>s.createContext(n));return function(o){const c=(o==null?void 0:o[e])||a;return s.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return x.scopeName=e,[i,P(x,...t)]}function P(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(x=>({useScope:x(),scopeName:x.scopeName}));return function(a){const n=i.reduce((o,{useScope:c,scopeName:m})=>{const p=c(a)[`__scope${m}`];return{...o,...p}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}function E(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}export{j as c,E as u};
|
package/assets/index-DZ2G3GiC.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{c as Oe}from"./createLucideIcon-BFG25zNo.js";import{r as i,j as d,a as Re,b as Te,R as Se}from"./app.js";import{c as oe}from"./index-CNFwBlc7.js";import{h as Ae,R as _e}from"./index-C4BeqGbx.js";/**
|
|
2
|
-
* @license lucide-react v0.485.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const we=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Dt=Oe("x",we);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function X(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ie(...e){return t=>{let n=!1;const o=e.map(r=>{const s=X(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():X(e[r],null)}}}}function A(...e){return i.useCallback(Ie(...e),e)}function Me(e,t){const n=i.createContext(t),o=s=>{const{children:c,...a}=s,l=i.useMemo(()=>a,Object.values(a));return d.jsx(n.Provider,{value:l,children:c})};o.displayName=e+"Provider";function r(s){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Fe(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),l=n.length;n=[...n,c];const u=p=>{var h;const{scope:v,children:g,...b}=p,m=((h=v==null?void 0:v[e])==null?void 0:h[l])||a,C=i.useMemo(()=>b,Object.values(b));return d.jsx(m.Provider,{value:C,children:g})};u.displayName=s+"Provider";function f(p,v){var m;const g=((m=v==null?void 0:v[e])==null?void 0:m[l])||a,b=i.useContext(g);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const l=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,Le(r,...t)]}function Le(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var M=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},je=Re[" useId ".trim().toString()]||(()=>{}),Ue=0;function U(e){const[t,n]=i.useState(je());return M(()=>{n(o=>o??String(Ue++))},[e]),e||(t?`radix-${t}`:"")}function T(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function ke({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=We({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o,a=T(n),l=i.useCallback(u=>{if(s){const p=typeof u=="function"?u(e):u;p!==e&&a(p)}else r(u)},[s,e,r,a]);return[c,l]}function We({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=T(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var $e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],P=$e.reduce((e,t)=>{const n=oe(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Be(e,t){e&&Te.flushSync(()=>e.dispatchEvent(t))}function Ke(e,t=globalThis==null?void 0:globalThis.document){const n=T(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Ge="DismissableLayer",B="dismissableLayer.update",ze="dismissableLayer.pointerDownOutside",Ve="dismissableLayer.focusOutside",Y,re=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),se=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...l}=e,u=i.useContext(re),[f,p]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),b=A(t,E=>p(E)),m=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=m.indexOf(C),x=f?m.indexOf(f):-1,D=u.layersWithOutsidePointerEventsDisabled.size>0,y=x>=h,_=Xe(E=>{const w=E.target,H=[...u.branches].some(j=>j.contains(w));!y||H||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),q=Ye(E=>{const w=E.target;[...u.branches].some(j=>j.contains(w))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return Ke(E=>{x===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Y=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Z(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Y)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Z())},[f,u]),i.useEffect(()=>{const E=()=>g({});return document.addEventListener(B,E),()=>document.removeEventListener(B,E)},[]),d.jsx(P.div,{...l,ref:b,style:{pointerEvents:D?y?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,q.onFocusCapture),onBlurCapture:R(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,_.onPointerDownCapture)})});se.displayName=Ge;var qe="DismissableLayerBranch",He=i.forwardRef((e,t)=>{const n=i.useContext(re),o=i.useRef(null),r=A(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(P.div,{...e,ref:r})});He.displayName=qe;function Xe(e,t=globalThis==null?void 0:globalThis.document){const n=T(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){ie(ze,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Ye(e,t=globalThis==null?void 0:globalThis.document){const n=T(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&ie(Ve,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Z(){const e=new CustomEvent(B);document.dispatchEvent(e)}function ie(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Be(r,s):r.dispatchEvent(s)}var k="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",J={bubbles:!1,cancelable:!0},Ze="FocusScope",ae=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,l]=i.useState(null),u=T(r),f=T(s),p=i.useRef(null),v=A(t,m=>l(m)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let m=function(D){if(g.paused||!a)return;const y=D.target;a.contains(y)?p.current=y:O(p.current,{select:!0})},C=function(D){if(g.paused||!a)return;const y=D.relatedTarget;y!==null&&(a.contains(y)||O(p.current,{select:!0}))},h=function(D){if(document.activeElement===document.body)for(const _ of D)_.removedNodes.length>0&&O(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",C);const x=new MutationObserver(h);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",C),x.disconnect()}}},[o,a,g.paused]),i.useEffect(()=>{if(a){ee.add(g);const m=document.activeElement;if(!a.contains(m)){const h=new CustomEvent(k,J);a.addEventListener(k,u),a.dispatchEvent(h),h.defaultPrevented||(Je(ot(ce(a)),{select:!0}),document.activeElement===m&&O(a))}return()=>{a.removeEventListener(k,u),setTimeout(()=>{const h=new CustomEvent(W,J);a.addEventListener(W,f),a.dispatchEvent(h),h.defaultPrevented||O(m??document.body,{select:!0}),a.removeEventListener(W,f),ee.remove(g)},0)}}},[a,u,f,g]);const b=i.useCallback(m=>{if(!n&&!o||g.paused)return;const C=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(C&&h){const x=m.currentTarget,[D,y]=Qe(x);D&&y?!m.shiftKey&&h===y?(m.preventDefault(),n&&O(D,{select:!0})):m.shiftKey&&h===D&&(m.preventDefault(),n&&O(y,{select:!0})):h===x&&m.preventDefault()}},[n,o,g.paused]);return d.jsx(P.div,{tabIndex:-1,...c,ref:v,onKeyDown:b})});ae.displayName=Ze;function Je(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(O(o,{select:t}),document.activeElement!==n)return}function Qe(e){const t=ce(e),n=Q(t,e),o=Q(t.reverse(),e);return[n,o]}function ce(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Q(e,t){for(const n of e)if(!et(n,{upTo:t}))return n}function et(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tt(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tt(e)&&t&&e.select()}}var ee=nt();function nt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=te(e,t),e.unshift(t)},remove(t){var n;e=te(e,t),(n=e[0])==null||n.resume()}}}function te(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function ot(e){return e.filter(t=>t.tagName!=="A")}var rt="Portal",ue=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);M(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?Se.createPortal(d.jsx(P.div,{...o,ref:t}),c):null});ue.displayName=rt;function st(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var L=e=>{const{present:t,children:n}=e,o=it(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=A(o.ref,at(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};L.displayName="Presence";function it(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,l]=st(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=I(o.current);s.current=a==="mounted"?u:"none"},[a]),M(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,g=I(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),M(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const m=I(o.current).includes(g.animationName);if(g.target===t&&m&&(l("ANIMATION_END"),!r.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},v=g=>{g.target===t&&(s.current=I(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function I(e){return(e==null?void 0:e.animationName)||"none"}function at(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $=0;function ct(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ne()),document.body.insertAdjacentElement("beforeend",e[1]??ne()),$++,()=>{$===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$--}},[])}function ne(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var K="Dialog",[le,Nt]=Fe(K),[ut,N]=le(K),de=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,a=i.useRef(null),l=i.useRef(null),[u=!1,f]=ke({prop:o,defaultProp:r,onChange:s});return d.jsx(ut,{scope:t,triggerRef:a,contentRef:l,contentId:U(),titleId:U(),descriptionId:U(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(p=>!p),[f]),modal:c,children:n})};de.displayName=K;var fe="DialogTrigger",me=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=N(fe,n),s=A(t,r.triggerRef);return d.jsx(P.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":V(r.open),...o,ref:s,onClick:R(e.onClick,r.onOpenToggle)})});me.displayName=fe;var G="DialogPortal",[lt,pe]=le(G,{forceMount:void 0}),ve=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=N(G,t);return d.jsx(lt,{scope:t,forceMount:n,children:i.Children.map(o,c=>d.jsx(L,{present:n||s.open,children:d.jsx(ue,{asChild:!0,container:r,children:c})}))})};ve.displayName=G;var F="DialogOverlay",ge=i.forwardRef((e,t)=>{const n=pe(F,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=N(F,e.__scopeDialog);return s.modal?d.jsx(L,{present:o||s.open,children:d.jsx(ft,{...r,ref:t})}):null});ge.displayName=F;var dt=oe("DialogOverlay.RemoveScroll"),ft=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=N(F,n);return d.jsx(_e,{as:dt,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsx(P.div,{"data-state":V(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),S="DialogContent",Ee=i.forwardRef((e,t)=>{const n=pe(S,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=N(S,e.__scopeDialog);return d.jsx(L,{present:o||s.open,children:s.modal?d.jsx(mt,{...r,ref:t}):d.jsx(pt,{...r,ref:t})})});Ee.displayName=S;var mt=i.forwardRef((e,t)=>{const n=N(S,e.__scopeDialog),o=i.useRef(null),r=A(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return Ae(s)},[]),d.jsx(he,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault())})}),pt=i.forwardRef((e,t)=>{const n=N(S,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return d.jsx(he,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),he=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,a=N(S,n),l=i.useRef(null),u=A(t,l);return ct(),d.jsxs(d.Fragment,{children:[d.jsx(ae,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:d.jsx(se,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":V(a.open),...c,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(vt,{titleId:a.titleId}),d.jsx(Et,{contentRef:l,descriptionId:a.descriptionId})]})]})}),z="DialogTitle",ye=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=N(z,n);return d.jsx(P.h2,{id:r.titleId,...o,ref:t})});ye.displayName=z;var be="DialogDescription",Ce=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=N(be,n);return d.jsx(P.p,{id:r.descriptionId,...o,ref:t})});Ce.displayName=be;var De="DialogClose",Ne=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=N(De,n);return d.jsx(P.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});Ne.displayName=De;function V(e){return e?"open":"closed"}var Pe="DialogTitleWarning",[Pt,xe]=Me(Pe,{contentName:S,titleName:z,docsSlug:"dialog"}),vt=({titleId:e})=>{const t=xe(Pe),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
7
|
-
|
|
8
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
9
|
-
|
|
10
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gt="DialogDescriptionWarning",Et=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xe(gt).contentName}}.`;return i.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},xt=de,Ot=me,Rt=ve,Tt=ge,St=Ee,At=ye,_t=Ce,wt=Ne;export{wt as C,_t as D,Tt as O,Rt as P,xt as R,Ot as T,Dt as X,At as a,St as b};
|
package/assets/index-DlfDI23T.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,a as s}from"./app.js";import{u}from"./index-CJTkueDA.js";var i=s.useId||(()=>{}),c=0;function f(r){const[t,a]=o.useState(i());return u(()=>{a(e=>e??String(c++))},[r]),t?`radix-${t}`:""}export{f as u};
|
package/assets/index-Dv6YbCDH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,j as c,b as y}from"./app.js";function p(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function d(...e){return n=>{let r=!1;const i=e.map(t=>{const o=p(t,n);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let t=0;t<i.length;t++){const o=i[t];typeof o=="function"?o():p(e[t],null)}}}}function b(...e){return s.useCallback(d(...e),e)}var m=s.forwardRef((e,n)=>{const{children:r,...i}=e,t=s.Children.toArray(r),o=t.find(v);if(o){const l=o.props.children,a=t.map(f=>f===o?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return c.jsx(u,{...i,ref:n,children:s.isValidElement(l)?s.cloneElement(l,void 0,a):null})}return c.jsx(u,{...i,ref:n,children:r})});m.displayName="Slot";var u=s.forwardRef((e,n)=>{const{children:r,...i}=e;if(s.isValidElement(r)){const t=C(r),o=g(i,r.props);return r.type!==s.Fragment&&(o.ref=n?d(n,t):t),s.cloneElement(r,o)}return s.Children.count(r)>1?s.Children.only(null):null});u.displayName="SlotClone";var h=({children:e})=>c.jsx(c.Fragment,{children:e});function v(e){return s.isValidElement(e)&&e.type===h}function g(e,n){const r={...n};for(const i in n){const t=e[i],o=n[i];/^on[A-Z]/.test(i)?t&&o?r[i]=(...a)=>{o(...a),t(...a)}:t&&(r[i]=t):i==="style"?r[i]={...t,...o}:i==="className"&&(r[i]=[t,o].filter(Boolean).join(" "))}return{...e,...r}}function C(e){var i,t;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:t.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],x=E.reduce((e,n)=>{const r=s.forwardRef((i,t)=>{const{asChild:o,...l}=i,a=o?m:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:t})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function j(e,n){e&&y.flushSync(()=>e.dispatchEvent(n))}export{x as P,d as c,j as d,b as u};
|
package/assets/index-S2Olh4hE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as c,j as C,W as S}from"./app.js";import{c as k,u as P}from"./index-D8YaJIVm.js";import{c as K,u as A,P as V}from"./index-Dv6YbCDH.js";var I=c.forwardRef((e,t)=>{const{children:n,...o}=e,i=c.Children.toArray(n),l=i.find(H);if(l){const v=l.props.children,r=i.map(b=>b===l?c.Children.count(v)>1?c.Children.only(null):c.isValidElement(v)?v.props.children:null:b);return C.jsx(M,{...o,ref:t,children:c.isValidElement(v)?c.cloneElement(v,void 0,r):null})}return C.jsx(M,{...o,ref:t,children:n})});I.displayName="Slot";var M=c.forwardRef((e,t)=>{const{children:n,...o}=e;if(c.isValidElement(n)){const i=G(n),l=q(o,n.props);return n.type!==c.Fragment&&(l.ref=t?K(t,i):i),c.cloneElement(n,l)}return c.Children.count(n)>1?c.Children.only(null):null});M.displayName="SlotClone";var W=({children:e})=>C.jsx(C.Fragment,{children:e});function H(e){return c.isValidElement(e)&&e.type===W}function q(e,t){const n={...t};for(const o in t){const i=e[o],l=t[o];/^on[A-Z]/.test(o)?i&&l?n[o]=(...r)=>{l(...r),i(...r)}:i&&(n[o]=i):o==="style"?n[o]={...i,...l}:o==="className"&&(n[o]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function G(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function re(e){const t=e+"CollectionProvider",[n,o]=k(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),v=a=>{const{scope:p,children:s}=a,d=S.useRef(null),u=S.useRef(new Map).current;return C.jsx(i,{scope:p,itemMap:u,collectionRef:d,children:s})};v.displayName=t;const r=e+"CollectionSlot",b=S.forwardRef((a,p)=>{const{scope:s,children:d}=a,u=l(r,s),m=A(p,u.collectionRef);return C.jsx(I,{ref:m,children:d})});b.displayName=r;const h=e+"CollectionItemSlot",F="data-radix-collection-item",N=S.forwardRef((a,p)=>{const{scope:s,children:d,...u}=a,m=S.useRef(null),E=A(p,m),f=l(h,s);return S.useEffect(()=>(f.itemMap.set(m,{ref:m,...u}),()=>void f.itemMap.delete(m))),C.jsx(I,{[F]:"",ref:E,children:d})});N.displayName=h;function g(a){const p=l(e+"CollectionConsumer",a);return S.useCallback(()=>{const d=p.collectionRef.current;if(!d)return[];const u=Array.from(d.querySelectorAll(`[${F}]`));return Array.from(p.itemMap.values()).sort((f,R)=>u.indexOf(f.ref.current)-u.indexOf(R.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:v,Slot:b,ItemSlot:N},g,o]}var B=c.createContext(void 0);function se(e){const t=c.useContext(B);return e||t||"ltr"}var x=0;function ce(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??L()),document.body.insertAdjacentElement("beforeend",e[1]??L()),x++,()=>{x===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),x--}},[])}function L(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var T="focusScope.autoFocusOnMount",O="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},Z="FocusScope",$=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...v}=e,[r,b]=c.useState(null),h=P(i),F=P(l),N=c.useRef(null),g=A(t,s=>b(s)),a=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let s=function(E){if(a.paused||!r)return;const f=E.target;r.contains(f)?N.current=f:y(N.current,{select:!0})},d=function(E){if(a.paused||!r)return;const f=E.relatedTarget;f!==null&&(r.contains(f)||y(N.current,{select:!0}))},u=function(E){if(document.activeElement===document.body)for(const R of E)R.removedNodes.length>0&&y(r)};document.addEventListener("focusin",s),document.addEventListener("focusout",d);const m=new MutationObserver(u);return r&&m.observe(r,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",d),m.disconnect()}}},[o,r,a.paused]),c.useEffect(()=>{if(r){j.add(a);const s=document.activeElement;if(!r.contains(s)){const u=new CustomEvent(T,_);r.addEventListener(T,h),r.dispatchEvent(u),u.defaultPrevented||(z(ee(U(r)),{select:!0}),document.activeElement===s&&y(r))}return()=>{r.removeEventListener(T,h),setTimeout(()=>{const u=new CustomEvent(O,_);r.addEventListener(O,F),r.dispatchEvent(u),u.defaultPrevented||y(s??document.body,{select:!0}),r.removeEventListener(O,F),j.remove(a)},0)}}},[r,h,F,a]);const p=c.useCallback(s=>{if(!n&&!o||a.paused)return;const d=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,u=document.activeElement;if(d&&u){const m=s.currentTarget,[E,f]=J(m);E&&f?!s.shiftKey&&u===f?(s.preventDefault(),n&&y(E,{select:!0})):s.shiftKey&&u===E&&(s.preventDefault(),n&&y(f,{select:!0})):u===m&&s.preventDefault()}},[n,o,a.paused]);return C.jsx(V.div,{tabIndex:-1,...v,ref:g,onKeyDown:p})});$.displayName=Z;function z(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(y(o,{select:t}),document.activeElement!==n)return}function J(e){const t=U(e),n=w(t,e),o=w(t.reverse(),e);return[n,o]}function U(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function w(e,t){for(const n of e)if(!Q(n,{upTo:t}))return n}function Q(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X(e){return e instanceof HTMLInputElement&&"select"in e}function y(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&X(e)&&t&&e.select()}}var j=Y();function Y(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=D(e,t),e.unshift(t)},remove(t){var n;e=D(e,t),(n=e[0])==null||n.resume()}}}function D(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function ee(e){return e.filter(t=>t.tagName!=="A")}export{$ as F,ce as a,re as c,se as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as ae,m as ie,r as pe,j as r}from"./app.js";import{c as ce}from"./compiler-runtime-tM4jBQ-T.js";import{T as ne,t as de}from"./sonner-Dzckw3U3.js";import{L as J}from"./label-BH_NLtVH.js";import{I as re}from"./input-coEb8Hta.js";import oe from"./input-error-Dt30bqav.js";import{S as me,a as fe,b as ue,c as he,d as be}from"./select-B1LhFAX0.js";import{B as xe}from"./button-CcO4Q6h6.js";import{i as we}from"./use-appearance-CL_TqHcP.js";import"./index-Dv6YbCDH.js";import"./utils-jAU0Cazi.js";import"./index-B6nPyxx_.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-S2Olh4hE.js";import"./index-DlfDI23T.js";import"./index-DwctwfU0.js";import"./index-BNKtUMNI.js";import"./index-C4BeqGbx.js";import"./chevron-down-B5XuAFRu.js";import"./createLucideIcon-BFG25zNo.js";import"./check-LAUWAnlX.js";import"./index-CNFwBlc7.js";function Je(){const e=ce.c(110),s=ae();let V;e[0]!==s.props.defaultLocale?(V={locale:s.props.defaultLocale,confirmPassword:"",password:"",login:""},e[0]=s.props.defaultLocale,e[1]=V):V=e[1];const{post:M,data:o,setData:Q,processing:l,setError:W,errors:t,clearErrors:X}=ie(V);let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=[],e[2]=R):R=e[2],pe.useEffect(ve,R);let U;e[3]!==o.confirmPassword||e[4]!==o.password||e[5]!==s.props.confirmError||e[6]!==s.props.submitLink||e[7]!==M||e[8]!==W?(U=i=>{if(i.preventDefault(),o.password!==o.confirmPassword){W("confirmPassword",s.props.confirmError);return}M(s.props.submitLink,{onSuccess:Le,onError:je})},e[3]=o.confirmPassword,e[4]=o.password,e[5]=s.props.confirmError,e[6]=s.props.submitLink,e[7]=M,e[8]=W,e[9]=U):U=e[9];const Y=U;let z;e[10]!==X||e[11]!==Q?(z=(i,te)=>{X(),Q(i,te)},e[10]=X,e[11]=Q,e[12]=z):z=e[12];const a=z;let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=r.jsx(ne,{position:"top-center",richColors:!0,closeButton:!0}),e[13]=K):K=e[13];let p;e[14]!==s.props.header.title?(p=r.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[14]=s.props.header.title,e[15]=p):p=e[15];let c;e[16]!==s.props.header.desc?(c=r.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[16]=s.props.header.desc,e[17]=c):c=e[17];let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx("span",{className:"text-red-500",children:"*"}),e[18]=O):O=e[18];let n;e[19]!==s.props.loginLabel?(n=r.jsxs(J,{htmlFor:"login",children:[s.props.loginLabel,O]}),e[19]=s.props.loginLabel,e[20]=n):n=e[20];const Z=`${t.login?"border-red-500":""}`;let d;e[21]!==a?(d=i=>{a("login",i.target.value)},e[21]=a,e[22]=d):d=e[22];let m;e[23]!==o.login||e[24]!==s.props.loginLabel||e[25]!==l||e[26]!==d||e[27]!==Z?(m=r.jsx(re,{id:"login",className:Z,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:o.login,disabled:l,onChange:d,placeholder:s.props.loginLabel}),e[23]=o.login,e[24]=s.props.loginLabel,e[25]=l,e[26]=d,e[27]=Z,e[28]=m):m=e[28];let f;e[29]!==t.login?(f=r.jsx(oe,{message:t.login}),e[29]=t.login,e[30]=f):f=e[30];let u;e[31]!==m||e[32]!==f?(u=r.jsxs("div",{className:"relative",children:[m,f]}),e[31]=m,e[32]=f,e[33]=u):u=e[33];let h;e[34]!==u||e[35]!==n?(h=r.jsxs("div",{className:"grid gap-4",children:[n,u]}),e[34]=u,e[35]=n,e[36]=h):h=e[36];let A;e[37]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx("span",{className:"text-red-500",children:"*"}),e[37]=A):A=e[37];let b;e[38]!==s.props.passwordLabel?(b=r.jsxs(J,{htmlFor:"password",children:[s.props.passwordLabel,A]}),e[38]=s.props.passwordLabel,e[39]=b):b=e[39];const ee=`${t.password?"border-red-500":""}`;let x;e[40]!==a?(x=i=>{a("password",i.target.value)},e[40]=a,e[41]=x):x=e[41];let w;e[42]!==o.password||e[43]!==s.props.passwordLabel||e[44]!==l||e[45]!==ee||e[46]!==x?(w=r.jsx(re,{id:"password",className:ee,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.password,disabled:l,onChange:x,placeholder:s.props.passwordLabel}),e[42]=o.password,e[43]=s.props.passwordLabel,e[44]=l,e[45]=ee,e[46]=x,e[47]=w):w=e[47];let g;e[48]!==t.password?(g=r.jsx(oe,{message:t.password}),e[48]=t.password,e[49]=g):g=e[49];let j;e[50]!==w||e[51]!==g?(j=r.jsxs("div",{className:"relative",children:[w,g]}),e[50]=w,e[51]=g,e[52]=j):j=e[52];let L;e[53]!==b||e[54]!==j?(L=r.jsxs("div",{className:"grid gap-4",children:[b,j]}),e[53]=b,e[54]=j,e[55]=L):L=e[55];let G;e[56]===Symbol.for("react.memo_cache_sentinel")?(G=r.jsx("span",{className:"text-red-500",children:"*"}),e[56]=G):G=e[56];let v;e[57]!==s.props.confirmPasswordLabel?(v=r.jsxs(J,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,G]}),e[57]=s.props.confirmPasswordLabel,e[58]=v):v=e[58];const se=`${t.confirmPassword?"border-red-500":""}`;let N;e[59]!==a?(N=i=>{a("confirmPassword",i.target.value)},e[59]=a,e[60]=N):N=e[60];let P;e[61]!==o.confirmPassword||e[62]!==s.props.confirmPasswordLabel||e[63]!==l||e[64]!==se||e[65]!==N?(P=r.jsx(re,{id:"confirmPassword",className:se,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.confirmPassword,disabled:l,onChange:N,placeholder:s.props.confirmPasswordLabel}),e[61]=o.confirmPassword,e[62]=s.props.confirmPasswordLabel,e[63]=l,e[64]=se,e[65]=N,e[66]=P):P=e[66];let S;e[67]!==t.confirmPassword?(S=r.jsx(oe,{message:t.confirmPassword}),e[67]=t.confirmPassword,e[68]=S):S=e[68];let _;e[69]!==P||e[70]!==S?(_=r.jsxs("div",{className:"relative",children:[P,S]}),e[69]=P,e[70]=S,e[71]=_):_=e[71];let y;e[72]!==v||e[73]!==_?(y=r.jsxs("div",{className:"grid gap-4",children:[v,_]}),e[72]=v,e[73]=_,e[74]=y):y=e[74];let C;e[75]!==s.props.localeLabel?(C=r.jsx(J,{htmlFor:"locale",children:s.props.localeLabel}),e[75]=s.props.localeLabel,e[76]=C):C=e[76];let E;e[77]!==a?(E=i=>a("locale",i),e[77]=a,e[78]=E):E=e[78];const le=s.props.defaultLocale;let I;e[79]!==s.props.localeLabel?(I=r.jsx(me,{className:"w-full cursor-pointer",children:r.jsx(fe,{placeholder:s.props.localeLabel})}),e[79]=s.props.localeLabel,e[80]=I):I=e[80];let B;e[81]!==s.props.locales?(B=s.props.locales.map(ge),e[81]=s.props.locales,e[82]=B):B=e[82];let k;e[83]!==B?(k=r.jsx(ue,{children:B}),e[83]=B,e[84]=k):k=e[84];let F;e[85]!==s.props.defaultLocale||e[86]!==l||e[87]!==E||e[88]!==I||e[89]!==k?(F=r.jsxs(he,{onValueChange:E,defaultValue:le,disabled:l,children:[I,k]}),e[85]=s.props.defaultLocale,e[86]=l,e[87]=E,e[88]=I,e[89]=k,e[90]=F):F=e[90];let T;e[91]!==C||e[92]!==F?(T=r.jsxs("div",{className:"grid gap-4",children:[C,F]}),e[91]=C,e[92]=F,e[93]=T):T=e[93];let $;e[94]!==s.props.submitButton||e[95]!==l?($=r.jsx("div",{className:"flex gap-4",children:r.jsx(xe,{type:"submit",className:"w-fit cursor-pointer",disabled:l,children:s.props.submitButton})}),e[94]=s.props.submitButton,e[95]=l,e[96]=$):$=e[96];let q;e[97]!==h||e[98]!==L||e[99]!==y||e[100]!==T||e[101]!==$?(q=r.jsxs("div",{className:"grid gap-5",children:[h,L,y,T,$]}),e[97]=h,e[98]=L,e[99]=y,e[100]=T,e[101]=$,e[102]=q):q=e[102];let D;e[103]!==Y||e[104]!==q?(D=r.jsx("form",{onSubmit:Y,className:"mt-6",children:q}),e[103]=Y,e[104]=q,e[105]=D):D=e[105];let H;return e[106]!==D||e[107]!==p||e[108]!==c?(H=r.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[K,r.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[p,c,D]})]}),e[106]=D,e[107]=p,e[108]=c,e[109]=H):H=e[109],H}function ge(e){return r.jsx(be,{value:e,children:e.toLocaleUpperCase()},e)}function je(e){for(const s of Object.keys(e))de.error(e[s])}function Le(){}function ve(){we()}export{Je as default};
|
package/assets/list-BBJBZzsm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./app.js";import{A as r}from"./app-layout-CLIcmUo6.js";import t from"./list-table-CJgy5FsP.js";import"./compiler-runtime-tM4jBQ-T.js";import"./sidebar-C9-ESAx1.js";import"./index-CNFwBlc7.js";import"./button-CcO4Q6h6.js";import"./utils-jAU0Cazi.js";import"./index-DZ2G3GiC.js";import"./createLucideIcon-BFG25zNo.js";import"./index-C4BeqGbx.js";import"./tooltip-DXyAGFz-.js";import"./index-B6nPyxx_.js";import"./index-Dv6YbCDH.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-DlfDI23T.js";import"./index-B7QLmddv.js";import"./index-BNKtUMNI.js";import"./app-shell-Dgf4uNFy.js";import"./app-sidebar-D5-eQKSx.js";import"./nav-main-CcQo_Ho4.js";import"./material-icon-DpKyAc3Z.js";import"./chevron-right-D5q8rF7h.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-C5wVa7ER.js";import"./breadcrumbs-DlS-hpHL.js";import"./nav-user-p58e1wG0.js";import"./dropdown-menu-CKLjASQo.js";import"./index-S2Olh4hE.js";import"./user-info-D89n2REb.js";import"./user-menu-content-D25M1xxo.js";import"./icon-CgDnRol2.js";import"./use-appearance-CL_TqHcP.js";import"./input-coEb8Hta.js";import"./search-BspystAk.js";import"./sonner-Dzckw3U3.js";import"./trash-2-BoK5Xp2F.js";import"./select-B1LhFAX0.js";import"./index-DwctwfU0.js";import"./chevron-down-B5XuAFRu.js";import"./check-LAUWAnlX.js";import"./pagination-render-S4EXTE9a.js";import"./chevron-left-CoMhTMUD.js";const m=[],X=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{X as default};
|
package/assets/login-B7INjWDi.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{r as ie,K as Ge,m as Ke,j as l,$ as qe}from"./app.js";import{c as Ve}from"./compiler-runtime-tM4jBQ-T.js";import{L as je}from"./label-BH_NLtVH.js";import{I as Be}from"./input-coEb8Hta.js";import{Icon as ye}from"./icon-CgDnRol2.js";import{B as Ce}from"./button-CcO4Q6h6.js";import{T as We,t as Xe}from"./sonner-Dzckw3U3.js";import we from"./input-error-Dt30bqav.js";import{i as Ye}from"./use-appearance-CL_TqHcP.js";import{c as Je}from"./createLucideIcon-BFG25zNo.js";import{L as Qe}from"./loader-circle-Utah5tGx.js";import"./index-Dv6YbCDH.js";import"./utils-jAU0Cazi.js";import"./index-CNFwBlc7.js";/**
|
|
2
|
-
* @license lucide-react v0.485.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const Ze=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ae=Je("user",Ze),Ee=(e,n,s)=>{let r=1n,t=e%s;for(;n;)n&1n&&(r=r*t%s),t=t*t%s,n=n>>1n;return r};function ae(e,n,s){return typeof e=="bigint"&&typeof n=="bigint"&&typeof s=="bigint"?Ee(e,n,s):Number(Ee(BigInt(e),BigInt(n),BigInt(s)))}const S=crypto,en=new TextEncoder,nn=new TextDecoder("utf-8",{ignoreBOM:!0}),ee={encode:e=>en.encode(e),decode:e=>nn.decode(e)},Me=(()=>{const n=[..."0123456789abcdef"],s=new Array(256);for(let r=0;r<256;r++)s[r]=`${n[r>>>4&15]}${n[r&15]}`;return s})(),tn=(()=>{const e={};for(let n=0;n<256;n++){const s=Me[n],r=s[0],t=r.toUpperCase(),c=s[1],o=c.toUpperCase();e[s]=n,e[`${r}${o}`]=n,e[`${t}${c}`]=n,e[`${t}${o}`]=n}return e})(),sn=e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e)),xe={encode:e=>{let n="";for(let s=0,r=e.length;s<r;s++)n+=Me[e[s]];return n},encodeStr:e=>xe.encode(ee.encode(e)),decode:e=>{const n=e.length/2,s=new Uint8Array(n);for(let r=0;r<n;r++)s[r]=tn[e.slice(r*2,r*2+2)];return s},decodeStr:e=>ee.decode(xe.decode(e)),is:sn},Pe=e=>xe.encode(e),Ne=new TextEncoder,le=e=>{const n=async o=>o instanceof Uint8Array?S.subtle.importKey("raw",o,{name:"PBKDF2"},!1,["deriveBits"]):typeof o=="string"?n(Ne.encode(o.normalize())):o,s=(o,i,a,d)=>(i=typeof i=="string"?Ne.encode(i):i,S.subtle.deriveBits({name:"PBKDF2",salt:i,iterations:a,hash:{name:e}},o,d)),r=async(o,i,a,d)=>{const f=await n(o);return await s(f,i,a,d*8)},t=async(o,i,a,d)=>new Uint8Array(await r(o,i,a,d)),c=async(o,i,a,d)=>Pe(await t(o,i,a,d));return c.buffer=r,c.hex=c,c.uint8=t,c},$e={sha1:le("SHA-1"),sha256:le("SHA-256"),sha384:le("SHA-384"),sha512:le("SHA-512")},be=e=>{const n=new Uint8Array(e);return S.getRandomValues(n),n},rn=new TextEncoder,de=e=>{const n=t=>(t=typeof t=="string"?rn.encode(t):t,S.subtle.digest(e,t)),s=async t=>new Uint8Array(await n(t)),r=async t=>Pe(await s(t));return r.buffer=n,r.hex=r,r.uint8=s,r};de("SHA-1");const Re=de("SHA-256");de("SHA-384");de("SHA-512");const b={encode:e=>{if(e!==e>>0)throw new Error("Invalid 32-bit integer");const n=e>>24&255,s=e>>16&255,r=e>>8&255,t=e>>0&255;return new Uint8Array([n,s,r,t])},decode:e=>{if(e.length!==4)throw new Error("Invalid 32-bit integer");const n=e[0],s=e[1],r=e[2],t=e[3];return(n<<24)+(s<<16)+(r<<8)+(t<<0)}},Fe=e=>{const n=e.reduce((r,t)=>r+t.byteLength,0),s=new Uint8Array(n);for(let r=0,t=0,c=e.length;t<c;t++)s.set(e[t],r),r+=e[t].byteLength;return s},on=async(e,n,s,r)=>{e=typeof e=="string"?ee.encode(e):e,s=typeof s=="string"?ee.encode(s):s||be(32),s=s.length===32?s:await Re.uint8(s);const t=new Uint8Array([1]),c=Math.max(1,r||0),o=await $e.sha256.uint8(n,s,c,32),i=await S.subtle.importKey("raw",o,"AES-GCM",!1,["encrypt"]),a=be(16),d=await S.subtle.encrypt({name:"AES-GCM",iv:a,length:256,tagLength:128},i,e),f=new Uint8Array(d);return Fe([t,s,b.encode(c),a,f])},cn=async(e,n)=>{if(e[0]!==1)throw new Error("Unsupported encrypted archive version");const r=e.subarray(1,33),t=b.decode(e.subarray(33,37)),c=e.subarray(37,53),o=e.subarray(53),i=await $e.sha256.uint8(n,r,t,32),a=await S.subtle.importKey("raw",i,"AES-GCM",!1,["decrypt"]),d=await S.subtle.decrypt({name:"AES-GCM",iv:c,length:256,tagLength:128},a,o);return new Uint8Array(d)},Ie=Object.freeze(Object.defineProperty({__proto__:null,decrypt:cn,encrypt:on},Symbol.toStringTag,{value:"Module"}));function Z(e){let n,s=0;return()=>((!n||s===n.length)&&(n=new e(65536/(e.BYTES_PER_ELEMENT*8)),s=0,S.getRandomValues(n)),n[s++])}function ln(e,n){let s=0,r=n;return()=>(r===n&&(s=e(),r=0),s&1<<r++?1:0)}const ne={get1:ln(Z(Uint8Array),8),get8:Z(Uint8Array),get16:Z(Uint16Array),get32:Z(Uint32Array),get64:Z(BigUint64Array)},an=Object.assign(()=>BigInt(ne.get1()),{BITS:1}),dn=Object.assign(()=>BigInt(ne.get8()),{BITS:8}),un=Object.assign(()=>BigInt(ne.get16()),{BITS:16}),fn=Object.assign(()=>BigInt(ne.get32()),{BITS:32}),pn=Object.assign(()=>ne.get64(),{BITS:64}),u=e=>{const n=e<=1?an:e<=8?dn:e<=16?un:e<=32?fn:pn,s=n.BITS;if(e===s)return n();if(e===128)return n()<<64n|n();if(e===160)return u(128)<<32n|u(32);if(e===192)return u(128)<<64n|u(64);if(e===224)return u(160)<<64n|u(64);if(e===256)return u(128)<<128n|u(128);if(e===384)return u(256)<<128n|u(128);if(e===512)return u(256)<<256n|u(256);if(e===1024)return u(512)<<512n|u(512);if(e===2048)return u(1024)<<1024n|u(1024);let r=0,t=0n;for(;r<e;){const c=Math.min(s,e-r),o=2n**BigInt(c)-1n,a=n()&o;if(e===c)return a;t=r?t|a<<BigInt(r):a,r+=c}return t},He=(e,n)=>{if(e=BigInt(e),n=BigInt(n),e<0n||n<0n)throw new Error("Negative ranges are not supported");if(n<=e)throw new Error('"max" must be at least equal to "min" plus 1');const s=n-e-1n,r=s.toString(2).length;for(;;){const t=u(r);if(!(t>s))return t+e}},Le=[2n,3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n,97n,101n,103n,107n,109n,113n,127n,131n,137n,139n,149n,151n,157n,163n,167n,173n,179n,181n,191n,193n,197n,199n,211n,223n,227n,229n,233n,239n,241n,251n,257n,263n,269n,271n,277n,281n,283n,293n,307n,311n,313n,317n,331n,337n,347n,349n,353n,359n,367n,373n,379n,383n,389n,397n,401n,409n,419n,421n,431n,433n,439n,443n,449n,457n,461n,463n,467n,479n,487n,491n,499n,503n,509n,521n,523n,541n,547n,557n,563n,569n,571n,577n,587n,593n,599n,601n,607n,613n,617n,619n,631n,641n,643n,647n,653n,659n,661n,673n,677n,683n,691n,701n,709n,719n,727n,733n,739n,743n,751n,757n,761n,769n,773n,787n,797n,809n,811n,821n,823n,827n,829n,839n,853n,857n,859n,863n,877n,881n,883n,887n,907n,911n,919n,929n,937n,941n,947n,953n,967n,971n,977n,983n,991n,997n],gn=(e,n=8)=>{if(e<=1n)return!1;for(let t=0,c=Le.length;t<c;t++){const o=Le[t];if(e%o===0n)return e===o}if(e<=1000n)return!1;let s=0n,r=e-1n;for(;(r&1n)===0n;)s+=1n,r>>=1n;for(let t=0;t<n;t++){const c=He(2n,e-2n);let o=ae(c,r,e),i=0n;for(let a=0;a<s;a++){if(i=ae(o,2n,e),i===1n&&o!==1n&&o!==e-1n)return!1;o=i}if(i!==1n)return!1}return!0},Te=(e,n=8)=>{let s=u(e);for((s&1n)===0n&&(s+=1n);;){if(gn(s,n))return s;s+=2n}},_={encode:e=>{let n=0n;for(let s=0,r=e.length;s<r;s++)n|=BigInt(e[s])<<(BigInt(r)-BigInt(s)-1n)*8n;return n},decode:e=>{if(e<0n)throw new Error("Negative BigInts are not supported");const n=[];for(;e;)n.push(Number(e&0xffn)),e>>=8n;return new Uint8Array(n.reverse())}},Ue={archive:e=>{const[n,s,r,t,c]=e,o=_.decode(n),i=b.encode(o.length),a=_.decode(s),d=b.encode(a.length),f=_.decode(r),m=b.encode(f.length),h=_.decode(t),g=b.encode(h.length);return Fe([i,o,d,a,m,f,g,h,c])},unarchive:e=>{const s=e.slice(0,4),r=b.decode(s),t=4,c=e.slice(t,t+r),o=_.encode(c),i=t+r,a=e.slice(i,i+4),d=b.decode(a),f=i+4,m=e.slice(f,f+d),h=_.encode(m),g=f+d,C=e.slice(g,g+4),p=b.decode(C),y=g+4,k=e.slice(y,y+p),A=_.encode(k),w=y+p,v=e.slice(w,w+4),E=b.decode(v),x=w+4,j=e.slice(x,x+E),B=_.encode(j),I=x+E,Q=e.slice(I);return[o,h,A,B,Q]}},mn=(e,n,s)=>{let r=e%s;if(n<=BigInt(Number.MAX_SAFE_INTEGER))for(let t=Number(n);t>0;t--)r=r*r%s;else for(let t=n;t>0n;t--)r=r*r%s;return r%s},hn={generate:async e=>{const n=e.primeBits??100,s=e.primeRounds??20,r=e.opsPerSecond??33e5,t=e.duration??1e3,c=e.message,o=Te(n,s),i=Te(n,s),a=o*i,d=(o-1n)*(i-1n),f=r,m=t,h=BigInt(Math.round(Math.max(1,f/1e3)*m)),g=await Re.uint8(be(32)),C=c,p=await Ie.encrypt(C,g),y=He(1n,a-1n),k=ae(2n,h,d),A=ae(y,k,a),w=_.encode(g)+A;return Ue.archive([a,y,h,w,p])},solve:async e=>{const[n,s,r,t,c]=Ue.unarchive(e),o=mn(s,r,n),i=_.decode(t-o),a=await Ie.decrypt(c,i);return ee.decode(a)}};function Tn(){const e=Ve.c(88),[n,s]=ie.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],ie.useEffect(wn,r);const t=Ge(),[c,o]=ie.useState("I'm not a robot"),[i,a]=ie.useState(!1);let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d={login:"",password:"",captchaSolution:""},e[1]=d):d=e[1];const{post:f,data:m,setData:h,processing:g,transform:C,errors:p,clearErrors:y}=Ke(d);let k;e[2]!==t.props.captchaTask||e[3]!==t.props.submitLink||e[4]!==f||e[5]!==C?(k=N=>{N.preventDefault(),s(!0),o("Solving CAPTCHA..."),a(!1),(async()=>{try{await function(ze){return new Promise(De=>setTimeout(De,ze))}(100);const Se=new Uint8Array(t.props.captchaTask),Oe=await hn.solve(Se);o("Verification complete!"),s(!1),a(!0),C(ke=>({...ke,captchaSolution:Oe})),f(t.props.submitLink,{onError:yn})}catch(ve){console.error("Error solving CAPTCHA:",ve),o("Error solving CAPTCHA. Try again.")}})()},e[2]=t.props.captchaTask,e[3]=t.props.submitLink,e[4]=f,e[5]=C,e[6]=k):k=e[6];const A=k;let w;e[7]!==y||e[8]!==h?(w=(N,_e)=>{y(),h(N,_e)},e[7]=y,e[8]=h,e[9]=w):w=e[9];const v=w;let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx(We,{position:"top-center",richColors:!0,closeButton:!0}),e[10]=E):E=e[10];let x;e[11]!==t.props.title?(x=l.jsx("h1",{className:"font-medium mb-6 text-xl",children:t.props.title}),e[11]=t.props.title,e[12]=x):x=e[12];let j;e[13]!==p.captchaSolution?(j=l.jsx(we,{message:p.captchaSolution}),e[13]=p.captchaSolution,e[14]=j):j=e[14];let B;e[15]!==t.props.login?(B=l.jsx(je,{htmlFor:"login",children:t.props.login}),e[15]=t.props.login,e[16]=B):B=e[16];let I;e[17]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(ye,{iconNode:Ae,className:"size-5 absolute inset-2"}),e[17]=I):I=e[17];const Q=`pl-10 ${p.login?"border-red-500":""}`,ue=g||n;let L;e[18]!==v?(L=N=>{v("login",N.target.value)},e[18]=v,e[19]=L):L=e[19];let T;e[20]!==m.login||e[21]!==t.props.login||e[22]!==ue||e[23]!==L||e[24]!==Q?(T=l.jsx(Be,{id:"login",className:Q,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:m.login,disabled:ue,onChange:L,placeholder:t.props.login}),e[20]=m.login,e[21]=t.props.login,e[22]=ue,e[23]=L,e[24]=Q,e[25]=T):T=e[25];let U;e[26]!==p.login?(U=l.jsx(we,{message:p.login}),e[26]=p.login,e[27]=U):U=e[27];let M;e[28]!==T||e[29]!==U?(M=l.jsxs("div",{className:"relative",children:[I,T,U]}),e[28]=T,e[29]=U,e[30]=M):M=e[30];let P;e[31]!==M||e[32]!==B?(P=l.jsxs("div",{className:"grid gap-4",children:[B,M]}),e[31]=M,e[32]=B,e[33]=P):P=e[33];let $;e[34]!==t.props.password?($=l.jsx(je,{htmlFor:"login",children:t.props.password}),e[34]=t.props.password,e[35]=$):$=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx(ye,{iconNode:Ae,className:"size-5 absolute inset-2"}),e[36]=te):te=e[36];const fe=`pl-10 ${p.password?"border-red-500":""}`,pe=g||n;let R;e[37]!==v?(R=N=>{v("password",N.target.value)},e[37]=v,e[38]=R):R=e[38];let F;e[39]!==m.password||e[40]!==t.props.password||e[41]!==fe||e[42]!==pe||e[43]!==R?(F=l.jsx(Be,{id:"password",className:fe,type:"password",required:!0,disabled:pe,tabIndex:1,autoComplete:"current-password",value:m.password,onChange:R,placeholder:t.props.password}),e[39]=m.password,e[40]=t.props.password,e[41]=fe,e[42]=pe,e[43]=R,e[44]=F):F=e[44];let H;e[45]!==p.password?(H=l.jsx(we,{message:p.password}),e[45]=p.password,e[46]=H):H=e[46];let O;e[47]!==F||e[48]!==H?(O=l.jsxs("div",{className:"relative",children:[te,F,H]}),e[47]=F,e[48]=H,e[49]=O):O=e[49];let z;e[50]!==$||e[51]!==O?(z=l.jsxs("div",{className:"grid gap-4",children:[$,O]}),e[50]=$,e[51]=O,e[52]=z):z=e[52];const ge=g||n;let D;e[53]!==t.props.submitButton||e[54]!==ge?(D=l.jsx(Ce,{type:"submit",className:"w-fit cursor-pointer",disabled:ge,children:t.props.submitButton}),e[53]=t.props.submitButton,e[54]=ge,e[55]=D):D=e[55];let G;e[56]!==n||e[57]!==t.props.registerLink||e[58]!==g?(G=t.props.registerLink&&l.jsx(Ce,{asChild:!0,variant:"outline",children:l.jsx(qe,{href:t.props.registerLink.link,className:`${g||n} ? 'pointer-events-none opacity-50' : ''`,children:t.props.registerLink.title})}),e[56]=n,e[57]=t.props.registerLink,e[58]=g,e[59]=G):G=e[59];let K;e[60]!==D||e[61]!==G?(K=l.jsxs("div",{className:"flex gap-4",children:[D,G]}),e[60]=D,e[61]=G,e[62]=K):K=e[62];let q;e[63]!==P||e[64]!==z||e[65]!==K||e[66]!==j?(q=l.jsxs("div",{className:"grid gap-5",children:[j,P,z,K]}),e[63]=P,e[64]=z,e[65]=K,e[66]=j,e[67]=q):q=e[67];let se;e[68]===Symbol.for("react.memo_cache_sentinel")?(se=l.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-yellow-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),e[68]=se):se=e[68];const me=`${n?"":"hidden"}`;let re;e[69]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx(ye,{iconNode:Qe,className:"animate-spin size-6 absolute inset-0 m-auto !text-gray-600"}),e[69]=re):re=e[69];let V;e[70]!==me?(V=l.jsxs("div",{className:"relative",children:[se,l.jsx("div",{className:me,children:re})]}),e[70]=me,e[71]=V):V=e[71];let W;e[72]!==c?(W=l.jsx("div",{className:"text-gray-600 font-semibold",children:c}),e[72]=c,e[73]=W):W=e[73];const he=`transition-opacity ${i?"opacity-100 visible":"opacity-0 invisible"}`;let oe;e[74]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("svg",{id:"checkmark",xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:l.jsx("path",{className:"checkmark",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e[74]=oe):oe=e[74];let X;e[75]!==he?(X=l.jsx("div",{className:he,children:oe}),e[75]=he,e[76]=X):X=e[76];let Y;e[77]!==V||e[78]!==W||e[79]!==X?(Y=l.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 mt-6 flex items-center space-x-4",children:[V,W,X]}),e[77]=V,e[78]=W,e[79]=X,e[80]=Y):Y=e[80];let J;e[81]!==A||e[82]!==q||e[83]!==Y?(J=l.jsxs("form",{onSubmit:A,children:[q,Y]}),e[81]=A,e[82]=q,e[83]=Y,e[84]=J):J=e[84];let ce;return e[85]!==J||e[86]!==x?(ce=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center",children:[E,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit mt-[15%]",children:[x,J]})]}),e[85]=J,e[86]=x,e[87]=ce):ce=e[87],ce}function yn(e){for(const n of Object.keys(e))Xe.error(e[n])}function wn(){Ye()}export{Tn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as e,r,j as t}from"./app.js";import{A as s}from"./app-layout-CLIcmUo6.js";import{L as n}from"./loader-circle-Utah5tGx.js";import"./compiler-runtime-tM4jBQ-T.js";import"./sidebar-C9-ESAx1.js";import"./index-CNFwBlc7.js";import"./button-CcO4Q6h6.js";import"./utils-jAU0Cazi.js";import"./index-DZ2G3GiC.js";import"./createLucideIcon-BFG25zNo.js";import"./index-C4BeqGbx.js";import"./tooltip-DXyAGFz-.js";import"./index-B6nPyxx_.js";import"./index-Dv6YbCDH.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-DlfDI23T.js";import"./index-B7QLmddv.js";import"./index-BNKtUMNI.js";import"./app-shell-Dgf4uNFy.js";import"./app-sidebar-D5-eQKSx.js";import"./nav-main-CcQo_Ho4.js";import"./material-icon-DpKyAc3Z.js";import"./chevron-right-D5q8rF7h.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-C5wVa7ER.js";import"./breadcrumbs-DlS-hpHL.js";import"./nav-user-p58e1wG0.js";import"./dropdown-menu-CKLjASQo.js";import"./index-S2Olh4hE.js";import"./user-info-D89n2REb.js";import"./user-menu-content-D25M1xxo.js";import"./icon-CgDnRol2.js";import"./use-appearance-CL_TqHcP.js";const a=[];function U(){const o=e(),[m,i]=r.useState(null);return r.useEffect(()=>{(async()=>{const p=(await import(o.props.moduleComponent)).default;i(t.jsx(p,{message:o.props.message}))})()},[]),t.jsx(s,{breadcrumbs:a,children:t.jsxs("div",{className:"m-5",children:[t.jsx("div",{className:"mb-5",children:t.jsx("h1",{children:o.props.title})}),m||t.jsx(n,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})]})})}export{U as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as i,j as f}from"./app.js";import{c as L}from"./compiler-runtime-tM4jBQ-T.js";import{c as Be,B as He}from"./button-CcO4Q6h6.js";import{c as V}from"./utils-jAU0Cazi.js";import{c as Ue}from"./index-CNFwBlc7.js";import{P as Xe,a as Ge,b as We}from"./popover-DXKNm8mO.js";import{R as Je,P as Ye,O as Qe,b as Ze,X as et}from"./index-DZ2G3GiC.js";import{P as H,c as pe}from"./index-Dv6YbCDH.js";import{u as de}from"./index-DlfDI23T.js";import{S as tt}from"./search-BspystAk.js";import{c as De}from"./createLucideIcon-BFG25zNo.js";import{C as Ne}from"./chevron-down-B5XuAFRu.js";import{C as rt}from"./check-LAUWAnlX.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-C4BeqGbx.js";import"./index-CJTkueDA.js";/**
|
|
2
|
-
* @license lucide-react v0.485.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const nt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Ie=De("circle-x",nt);/**
|
|
7
|
-
* @license lucide-react v0.485.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const lt=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],at=De("wand-sparkles",lt);var ot=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],it=ot.reduce((r,t)=>{const e=Ue(`Primitive.${t}`),l=i.forwardRef((n,a)=>{const{asChild:c,...m}=n,p=c?e:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(p,{...m,ref:a})});return l.displayName=`Primitive.${t}`,{...r,[t]:l}},{}),st="Separator",Re="horizontal",ct=["horizontal","vertical"],Oe=i.forwardRef((r,t)=>{const{decorative:e,orientation:l=Re,...n}=r,a=ut(l)?l:Re,m=e?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return f.jsx(it.div,{"data-orientation":a,...m,...n,ref:t})});Oe.displayName=st;function ut(r){return ct.includes(r)}var dt=Oe;function mt(r){const t=L.c(12);let e,l,n,a;t[0]!==r?({className:e,orientation:n,decorative:a,...l}=r,t[0]=r,t[1]=e,t[2]=l,t[3]=n,t[4]=a):(e=t[1],l=t[2],n=t[3],a=t[4]);const c=n===void 0?"horizontal":n,m=a===void 0?!0:a;let p;t[5]!==e?(p=V("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),t[5]=e,t[6]=p):p=t[6];let u;return t[7]!==m||t[8]!==c||t[9]!==l||t[10]!==p?(u=f.jsx(dt,{"data-slot":"separator-root",decorative:m,orientation:c,className:p,...l}),t[7]=m,t[8]=c,t[9]=l,t[10]=p,t[11]=u):u=t[11],u}var $e=1,ft=.9,pt=.8,vt=.17,we=.1,ke=.999,ht=.9999,gt=.99,xt=/[\\\/_+.#"@\[\(\{&]/,bt=/[\\\/_+.#"@\[\(\{&]/g,yt=/[\s-]/,Ve=/[\s-]/g;function Ce(r,t,e,l,n,a,c){if(a===t.length)return n===r.length?$e:gt;var m=`${n},${a}`;if(c[m]!==void 0)return c[m];for(var p=l.charAt(a),u=e.indexOf(p,n),h=0,y,I,E,R;u>=0;)y=Ce(r,t,e,l,u+1,a+1,c),y>h&&(u===n?y*=$e:xt.test(r.charAt(u-1))?(y*=pt,E=r.slice(n,u-1).match(bt),E&&n>0&&(y*=Math.pow(ke,E.length))):yt.test(r.charAt(u-1))?(y*=ft,R=r.slice(n,u-1).match(Ve),R&&n>0&&(y*=Math.pow(ke,R.length))):(y*=vt,n>0&&(y*=Math.pow(ke,u-n))),r.charAt(u)!==t.charAt(a)&&(y*=ht)),(y<we&&e.charAt(u-1)===l.charAt(a+1)||l.charAt(a+1)===l.charAt(a)&&e.charAt(u-1)!==l.charAt(a))&&(I=Ce(r,t,e,l,u+1,a+2,c),I*we>y&&(y=I*we)),y>h&&(h=y),u=e.indexOf(p,u+1);return c[m]=h,h}function Pe(r){return r.toLowerCase().replace(Ve," ")}function wt(r,t,e){return r=e&&e.length>0?`${r+" "+e.join(" ")}`:r,Ce(r,t,Pe(r),Pe(t),0,0,{})}var fe='[cmdk-group=""]',Se='[cmdk-group-items=""]',kt='[cmdk-group-heading=""]',ze='[cmdk-item=""]',Ae=`${ze}:not([aria-disabled="true"])`,je="cmdk-item-select",ce="data-value",St=(r,t,e)=>wt(r,t,e),Fe=i.createContext(void 0),ve=()=>i.useContext(Fe),Ke=i.createContext(void 0),Ee=()=>i.useContext(Ke),Le=i.createContext(void 0),Te=i.forwardRef((r,t)=>{let e=ue(()=>{var o,d;return{search:"",value:(d=(o=r.value)!=null?o:r.defaultValue)!=null?d:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),l=ue(()=>new Set),n=ue(()=>new Map),a=ue(()=>new Map),c=ue(()=>new Set),m=_e(r),{label:p,children:u,value:h,onValueChange:y,filter:I,shouldFilter:E,loop:R,disablePointerSelection:U=!1,vimBindings:A=!0,...M}=r,T=de(),he=de(),X=de(),z=i.useRef(null),k=Dt();J(()=>{if(h!==void 0){let o=h.trim();e.current.value=o,S.emit()}},[h]),J(()=>{k(6,Z)},[]);let S=i.useMemo(()=>({subscribe:o=>(c.current.add(o),()=>c.current.delete(o)),snapshot:()=>e.current,setState:(o,d,v)=>{var s,x,b,N;if(!Object.is(e.current[o],d)){if(e.current[o]=d,o==="search")_(),$(),k(1,g);else if(o==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let C=document.getElementById(X);C?C.focus():(s=document.getElementById(T))==null||s.focus()}if(k(7,()=>{var C;e.current.selectedItemId=(C=O())==null?void 0:C.id,S.emit()}),v||k(5,Z),((x=m.current)==null?void 0:x.value)!==void 0){let C=d??"";(N=(b=m.current).onValueChange)==null||N.call(b,C);return}}S.emit()}},emit:()=>{c.current.forEach(o=>o())}}),[]),D=i.useMemo(()=>({value:(o,d,v)=>{var s;d!==((s=a.current.get(o))==null?void 0:s.value)&&(a.current.set(o,{value:d,keywords:v}),e.current.filtered.items.set(o,Q(d,v)),k(2,()=>{$(),S.emit()}))},item:(o,d)=>(l.current.add(o),d&&(n.current.has(d)?n.current.get(d).add(o):n.current.set(d,new Set([o]))),k(3,()=>{_(),$(),e.current.value||g(),S.emit()}),()=>{a.current.delete(o),l.current.delete(o),e.current.filtered.items.delete(o);let v=O();k(4,()=>{_(),(v==null?void 0:v.getAttribute("id"))===o&&g(),S.emit()})}),group:o=>(n.current.has(o)||n.current.set(o,new Set),()=>{a.current.delete(o),n.current.delete(o)}),filter:()=>m.current.shouldFilter,label:p||r["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:T,inputId:X,labelId:he,listInnerRef:z}),[]);function Q(o,d){var v,s;let x=(s=(v=m.current)==null?void 0:v.filter)!=null?s:St;return o?x(o,e.current.search,d):0}function $(){if(!e.current.search||m.current.shouldFilter===!1)return;let o=e.current.filtered.items,d=[];e.current.filtered.groups.forEach(s=>{let x=n.current.get(s),b=0;x.forEach(N=>{let C=o.get(N);b=Math.max(C,b)}),d.push([s,b])});let v=z.current;P().sort((s,x)=>{var b,N;let C=s.getAttribute("id"),K=x.getAttribute("id");return((b=o.get(K))!=null?b:0)-((N=o.get(C))!=null?N:0)}).forEach(s=>{let x=s.closest(Se);x?x.appendChild(s.parentElement===x?s:s.closest(`${Se} > *`)):v.appendChild(s.parentElement===v?s:s.closest(`${Se} > *`))}),d.sort((s,x)=>x[1]-s[1]).forEach(s=>{var x;let b=(x=z.current)==null?void 0:x.querySelector(`${fe}[${ce}="${encodeURIComponent(s[0])}"]`);b==null||b.parentElement.appendChild(b)})}function g(){let o=P().find(v=>v.getAttribute("aria-disabled")!=="true"),d=o==null?void 0:o.getAttribute(ce);S.setState("value",d||void 0)}function _(){var o,d,v,s;if(!e.current.search||m.current.shouldFilter===!1){e.current.filtered.count=l.current.size;return}e.current.filtered.groups=new Set;let x=0;for(let b of l.current){let N=(d=(o=a.current.get(b))==null?void 0:o.value)!=null?d:"",C=(s=(v=a.current.get(b))==null?void 0:v.keywords)!=null?s:[],K=Q(N,C);e.current.filtered.items.set(b,K),K>0&&x++}for(let[b,N]of n.current)for(let C of N)if(e.current.filtered.items.get(C)>0){e.current.filtered.groups.add(b);break}e.current.filtered.count=x}function Z(){var o,d,v;let s=O();s&&(((o=s.parentElement)==null?void 0:o.firstChild)===s&&((v=(d=s.closest(fe))==null?void 0:d.querySelector(kt))==null||v.scrollIntoView({block:"nearest"})),s.scrollIntoView({block:"nearest"}))}function O(){var o;return(o=z.current)==null?void 0:o.querySelector(`${ze}[aria-selected="true"]`)}function P(){var o;return Array.from(((o=z.current)==null?void 0:o.querySelectorAll(Ae))||[])}function me(o){let d=P()[o];d&&S.setState("value",d.getAttribute(ce))}function q(o){var d;let v=O(),s=P(),x=s.findIndex(N=>N===v),b=s[x+o];(d=m.current)!=null&&d.loop&&(b=x+o<0?s[s.length-1]:x+o===s.length?s[0]:s[x+o]),b&&S.setState("value",b.getAttribute(ce))}function ee(o){let d=O(),v=d==null?void 0:d.closest(fe),s;for(;v&&!s;)v=o>0?At(v,fe):Mt(v,fe),s=v==null?void 0:v.querySelector(Ae);s?S.setState("value",s.getAttribute(ce)):q(o)}let G=()=>me(P().length-1),F=o=>{o.preventDefault(),o.metaKey?G():o.altKey?ee(1):q(1)},W=o=>{o.preventDefault(),o.metaKey?me(0):o.altKey?ee(-1):q(-1)};return i.createElement(H.div,{ref:t,tabIndex:-1,...M,"cmdk-root":"",onKeyDown:o=>{var d;(d=M.onKeyDown)==null||d.call(M,o);let v=o.nativeEvent.isComposing||o.keyCode===229;if(!(o.defaultPrevented||v))switch(o.key){case"n":case"j":{A&&o.ctrlKey&&F(o);break}case"ArrowDown":{F(o);break}case"p":case"k":{A&&o.ctrlKey&&W(o);break}case"ArrowUp":{W(o);break}case"Home":{o.preventDefault(),me(0);break}case"End":{o.preventDefault(),G();break}case"Enter":{o.preventDefault();let s=O();if(s){let x=new Event(je);s.dispatchEvent(x)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:Vt},p),be(r,o=>i.createElement(Ke.Provider,{value:S},i.createElement(Fe.Provider,{value:D},o))))}),Ct=i.forwardRef((r,t)=>{var e,l;let n=de(),a=i.useRef(null),c=i.useContext(Le),m=ve(),p=_e(r),u=(l=(e=p.current)==null?void 0:e.forceMount)!=null?l:c==null?void 0:c.forceMount;J(()=>{if(!u)return m.item(n,c==null?void 0:c.id)},[u]);let h=qe(n,a,[r.value,r.children,a],r.keywords),y=Ee(),I=B(k=>k.value&&k.value===h.current),E=B(k=>u||m.filter()===!1?!0:k.search?k.filtered.items.get(n)>0:!0);i.useEffect(()=>{let k=a.current;if(!(!k||r.disabled))return k.addEventListener(je,R),()=>k.removeEventListener(je,R)},[E,r.onSelect,r.disabled]);function R(){var k,S;U(),(S=(k=p.current).onSelect)==null||S.call(k,h.current)}function U(){y.setState("value",h.current,!0)}if(!E)return null;let{disabled:A,value:M,onSelect:T,forceMount:he,keywords:X,...z}=r;return i.createElement(H.div,{ref:pe(a,t),...z,id:n,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!I,"data-disabled":!!A,"data-selected":!!I,onPointerMove:A||m.getDisablePointerSelection()?void 0:U,onClick:A?void 0:R},r.children)}),jt=i.forwardRef((r,t)=>{let{heading:e,children:l,forceMount:n,...a}=r,c=de(),m=i.useRef(null),p=i.useRef(null),u=de(),h=ve(),y=B(E=>n||h.filter()===!1?!0:E.search?E.filtered.groups.has(c):!0);J(()=>h.group(c),[]),qe(c,m,[r.value,r.heading,p]);let I=i.useMemo(()=>({id:c,forceMount:n}),[n]);return i.createElement(H.div,{ref:pe(m,t),...a,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},e&&i.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:u},e),be(r,E=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":e?u:void 0},i.createElement(Le.Provider,{value:I},E))))}),Et=i.forwardRef((r,t)=>{let{alwaysRender:e,...l}=r,n=i.useRef(null),a=B(c=>!c.search);return!e&&!a?null:i.createElement(H.div,{ref:pe(n,t),...l,"cmdk-separator":"",role:"separator"})}),Nt=i.forwardRef((r,t)=>{let{onValueChange:e,...l}=r,n=r.value!=null,a=Ee(),c=B(u=>u.search),m=B(u=>u.selectedItemId),p=ve();return i.useEffect(()=>{r.value!=null&&a.setState("search",r.value)},[r.value]),i.createElement(H.input,{ref:t,...l,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":m,id:p.inputId,type:"text",value:n?r.value:c,onChange:u=>{n||a.setState("search",u.target.value),e==null||e(u.target.value)}})}),It=i.forwardRef((r,t)=>{let{children:e,label:l="Suggestions",...n}=r,a=i.useRef(null),c=i.useRef(null),m=B(u=>u.selectedItemId),p=ve();return i.useEffect(()=>{if(c.current&&a.current){let u=c.current,h=a.current,y,I=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let E=u.offsetHeight;h.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return I.observe(u),()=>{cancelAnimationFrame(y),I.unobserve(u)}}},[]),i.createElement(H.div,{ref:pe(a,t),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":l,id:p.listId},be(r,u=>i.createElement("div",{ref:pe(c,p.listInnerRef),"cmdk-list-sizer":""},u)))}),Rt=i.forwardRef((r,t)=>{let{open:e,onOpenChange:l,overlayClassName:n,contentClassName:a,container:c,...m}=r;return i.createElement(Je,{open:e,onOpenChange:l},i.createElement(Ye,{container:c},i.createElement(Qe,{"cmdk-overlay":"",className:n}),i.createElement(Ze,{"aria-label":r.label,"cmdk-dialog":"",className:a},i.createElement(Te,{ref:t,...m}))))}),$t=i.forwardRef((r,t)=>B(e=>e.filtered.count===0)?i.createElement(H.div,{ref:t,...r,"cmdk-empty":"",role:"presentation"}):null),Pt=i.forwardRef((r,t)=>{let{progress:e,children:l,label:n="Loading...",...a}=r;return i.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},be(r,c=>i.createElement("div",{"aria-hidden":!0},c)))}),Y=Object.assign(Te,{List:It,Item:Ct,Input:Nt,Group:jt,Separator:Et,Dialog:Rt,Empty:$t,Loading:Pt});function At(r,t){let e=r.nextElementSibling;for(;e;){if(e.matches(t))return e;e=e.nextElementSibling}}function Mt(r,t){let e=r.previousElementSibling;for(;e;){if(e.matches(t))return e;e=e.previousElementSibling}}function _e(r){let t=i.useRef(r);return J(()=>{t.current=r}),t}var J=typeof window>"u"?i.useEffect:i.useLayoutEffect;function ue(r){let t=i.useRef();return t.current===void 0&&(t.current=r()),t}function B(r){let t=Ee(),e=()=>r(t.snapshot());return i.useSyncExternalStore(t.subscribe,e,e)}function qe(r,t,e,l=[]){let n=i.useRef(),a=ve();return J(()=>{var c;let m=(()=>{var u;for(let h of e){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(u=h.current.textContent)==null?void 0:u.trim():n.current}})(),p=l.map(u=>u.trim());a.value(r,m,p),(c=t.current)==null||c.setAttribute(ce,m),n.current=m}),n}var Dt=()=>{let[r,t]=i.useState(),e=ue(()=>new Map);return J(()=>{e.current.forEach(l=>l()),e.current=new Map},[r]),(l,n)=>{e.current.set(l,n),t({})}};function Ot(r){let t=r.type;return typeof t=="function"?t(r.props):"render"in t?t.render(r.props):r}function be({asChild:r,children:t},e){return r&&i.isValidElement(t)?i.cloneElement(Ot(t),{ref:t.ref},e(t.props.children)):e(t)}var Vt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function zt(r){const t=L.c(8);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]!==e?(n=V("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),t[3]=e,t[4]=n):n=t[4];let a;return t[5]!==l||t[6]!==n?(a=f.jsx(Y,{"data-slot":"command",className:n,...l}),t[5]=l,t[6]=n,t[7]=a):a=t[7],a}function Ft(r){const t=L.c(9);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(tt,{className:"size-4 shrink-0 opacity-50"}),t[3]=n):n=t[3];let a;t[4]!==e?(a=V("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),t[4]=e,t[5]=a):a=t[5];let c;return t[6]!==l||t[7]!==a?(c=f.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[n,f.jsx(Y.Input,{"data-slot":"command-input",className:a,...l})]}),t[6]=l,t[7]=a,t[8]=c):c=t[8],c}function Kt(r){const t=L.c(8);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]!==e?(n=V("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),t[3]=e,t[4]=n):n=t[4];let a;return t[5]!==l||t[6]!==n?(a=f.jsx(Y.List,{"data-slot":"command-list",className:n,...l}),t[5]=l,t[6]=n,t[7]=a):a=t[7],a}function Lt(r){const t=L.c(4);let e;t[0]!==r?({...e}=r,t[0]=r,t[1]=e):e=t[1];let l;return t[2]!==e?(l=f.jsx(Y.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e}),t[2]=e,t[3]=l):l=t[3],l}function Tt(r){const t=L.c(8);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]!==e?(n=V("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),t[3]=e,t[4]=n):n=t[4];let a;return t[5]!==l||t[6]!==n?(a=f.jsx(Y.Group,{"data-slot":"command-group",className:n,...l}),t[5]=l,t[6]=n,t[7]=a):a=t[7],a}function _t(r){const t=L.c(8);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]!==e?(n=V("bg-border -mx-1 h-px",e),t[3]=e,t[4]=n):n=t[4];let a;return t[5]!==l||t[6]!==n?(a=f.jsx(Y.Separator,{"data-slot":"command-separator",className:n,...l}),t[5]=l,t[6]=n,t[7]=a):a=t[7],a}function qt(r){const t=L.c(8);let e,l;t[0]!==r?({className:e,...l}=r,t[0]=r,t[1]=e,t[2]=l):(e=t[1],l=t[2]);let n;t[3]!==e?(n=V("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),t[3]=e,t[4]=n):n=t[4];let a;return t[5]!==l||t[6]!==n?(a=f.jsx(Y.Item,{"data-slot":"command-item",className:n,...l}),t[5]=l,t[6]=n,t[7]=a):a=t[7],a}const Me=Be("m-1 flex items-center border rounded-sm px-1",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),Bt=i.forwardRef((r,t)=>{const e=L.c(85);let l,n,a,c,m,p,u,h,y,I,E,R,U,A,M;e[0]!==r?({options:a,onValueChange:n,variant:M,processing:c,defaultValue:p,placeholder:u,notFound:h,search:y,animation:I,maxCount:E,modalPopover:R,asChild:U,className:l,mode:A,...m}=r,e[0]=r,e[1]=l,e[2]=n,e[3]=a,e[4]=c,e[5]=m,e[6]=p,e[7]=u,e[8]=h,e[9]=y,e[10]=I,e[11]=E,e[12]=R,e[13]=U,e[14]=A,e[15]=M):(l=e[1],n=e[2],a=e[3],c=e[4],m=e[5],p=e[6],u=e[7],h=e[8],y=e[9],I=e[10],E=e[11],R=e[12],U=e[13],A=e[14],M=e[15]);let T;e[16]!==p?(T=p===void 0?[]:p,e[16]=p,e[17]=T):T=e[17];const he=T,X=u===void 0?"":u,z=h===void 0?"":h,k=y===void 0?"":y,S=I===void 0?0:I,D=E===void 0?3:E,Q=R===void 0?!1:R,$=A===void 0?"multiple":A,[g,_]=i.useState(he),[Z,O]=i.useState(!1),[P,me]=i.useState(!1);let q;e[18]!==n||e[19]!==g?(q=w=>{if(w.key==="Enter")O(!0);else if(w.key==="Backspace"&&!w.currentTarget.value){const j=[...g];j.pop(),_(j),n(j)}},e[18]=n,e[19]=g,e[20]=q):q=e[20];const ee=q;let G;e[21]!==$||e[22]!==n||e[23]!==g?(G=w=>{let j;$==="single"?j=g.includes(w)?[]:[w]:j=g.includes(w)?g.filter(se=>se!==w):[...g,w],_(j),n(j),$==="single"&&O(!1)},e[21]=$,e[22]=n,e[23]=g,e[24]=G):G=e[24];const F=G;let W;e[25]!==n?(W=()=>{_([]),n([])},e[25]=n,e[26]=W):W=e[26];const o=W;let d;e[27]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{O(Ht)},e[27]=d):d=e[27];const v=d;let s;e[28]!==D||e[29]!==n||e[30]!==g?(s=()=>{const w=g.slice(0,D);_(w),n(w)},e[28]=D,e[29]=n,e[30]=g,e[31]=s):s=e[31];const x=s;let b;e[32]!==l?(b=V("flex w-full p-1 rounded-md border-input border-1 min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",l),e[32]=l,e[33]=b):b=e[33];let N;e[34]!==S||e[35]!==x||e[36]!==o||e[37]!==P||e[38]!==D||e[39]!==$||e[40]!==a||e[41]!==X||e[42]!==c||e[43]!==g||e[44]!==F||e[45]!==M?(N=g.length>0?f.jsxs("div",{className:"flex justify-between items-center w-full",children:[f.jsxs("div",{className:"flex flex-wrap items-center",children:[g.slice(0,D).map(w=>{const j=a.find(ye=>ye.value===w),se=j==null?void 0:j.icon;return f.jsxs("div",{className:V(P?"animate-bounce":"",Me({variant:M})),style:{animationDuration:`${S}s`},children:[se&&f.jsx(se,{className:"h-4 w-4 mr-2"}),j==null?void 0:j.label,f.jsx(Ie,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ye=>{ye.stopPropagation(),c||F(w)}})]},w)}),$==="multiple"&&g.length>D&&f.jsxs("div",{className:V("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",P?"animate-bounce":"",Me({variant:M})),style:{animationDuration:`${S}s`},children:[`+ ${g.length-D} more`,f.jsx(Ie,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:w=>{w.stopPropagation(),x()}})]})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[g.length>0&&f.jsxs(f.Fragment,{children:[f.jsx(et,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:w=>{w.stopPropagation(),o()}}),f.jsx(mt,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),f.jsx(Ne,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):f.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[f.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:X}),f.jsx(Ne,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]}),e[34]=S,e[35]=x,e[36]=o,e[37]=P,e[38]=D,e[39]=$,e[40]=a,e[41]=X,e[42]=c,e[43]=g,e[44]=F,e[45]=M,e[46]=N):N=e[46];let C;e[47]!==m||e[48]!==t||e[49]!==b||e[50]!==N?(C=f.jsx(Xe,{asChild:!0,children:f.jsx(He,{ref:t,...m,onClick:v,className:b,children:N})}),e[47]=m,e[48]=t,e[49]=b,e[50]=N,e[51]=C):C=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=()=>O(!1),e[52]=K):K=e[52];let te;e[53]!==ee||e[54]!==k?(te=f.jsx(Ft,{placeholder:k,onKeyDown:ee}),e[53]=ee,e[54]=k,e[55]=te):te=e[55];let re;e[56]!==z?(re=f.jsx(Lt,{children:z}),e[56]=z,e[57]=re):re=e[57];let ne;if(e[58]!==a||e[59]!==g||e[60]!==F){let w;e[62]!==g||e[63]!==F?(w=j=>{const se=g.includes(j.value);return f.jsxs(qt,{onSelect:()=>F(j.value),className:"cursor-pointer",children:[f.jsx("div",{className:V("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",se?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:f.jsx(rt,{className:"h-4 w-4 text-primary-foreground"})}),j.icon&&f.jsx(j.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),f.jsx("span",{children:j.label})]},j.value)},e[62]=g,e[63]=F,e[64]=w):w=e[64],ne=a.map(w),e[58]=a,e[59]=g,e[60]=F,e[61]=ne}else ne=e[61];let le;e[65]!==ne?(le=f.jsx(Tt,{children:ne}),e[65]=ne,e[66]=le):le=e[66];let ge;e[67]===Symbol.for("react.memo_cache_sentinel")?(ge=f.jsx(_t,{}),e[67]=ge):ge=e[67];let ae;e[68]!==re||e[69]!==le?(ae=f.jsxs(Kt,{children:[re,le,ge]}),e[68]=re,e[69]=le,e[70]=ae):ae=e[70];let oe;e[71]!==te||e[72]!==ae?(oe=f.jsx(Ge,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:K,children:f.jsxs(zt,{children:[te,ae]})}),e[71]=te,e[72]=ae,e[73]=oe):oe=e[73];let ie;e[74]!==S||e[75]!==P||e[76]!==$||e[77]!==g.length?(ie=S>0&&g.length>0&&$==="multiple"&&f.jsx(at,{className:V("cursor-pointer my-2 text-foreground bg-background w-3 h-3",P?"":"text-muted-foreground"),onClick:()=>me(!P)}),e[74]=S,e[75]=P,e[76]=$,e[77]=g.length,e[78]=ie):ie=e[78];let xe;return e[79]!==Z||e[80]!==Q||e[81]!==C||e[82]!==oe||e[83]!==ie?(xe=f.jsxs(We,{open:Z,onOpenChange:O,modal:Q,children:[C,oe,ie]}),e[79]=Z,e[80]=Q,e[81]=C,e[82]=oe,e[83]=ie,e[84]=xe):xe=e[84],xe});Bt.displayName="MultiSelect";function Ht(r){return!r}export{Bt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./app.js";import{c as m}from"./compiler-runtime-tM4jBQ-T.js";import{Icon as c}from"./icon-CgDnRol2.js";import{k as d,e as u,g as x,p as f,d as h}from"./sidebar-C9-ESAx1.js";import"./utils-jAU0Cazi.js";import"./index-CNFwBlc7.js";import"./button-CcO4Q6h6.js";import"./index-DZ2G3GiC.js";import"./createLucideIcon-BFG25zNo.js";import"./index-C4BeqGbx.js";import"./tooltip-DXyAGFz-.js";import"./index-B6nPyxx_.js";import"./index-Dv6YbCDH.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-DlfDI23T.js";import"./index-B7QLmddv.js";import"./index-BNKtUMNI.js";function z(e){const r=m.c(12);let a,o,i;r[0]!==e?({items:o,className:a,...i}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=i):(a=r[1],o=r[2],i=r[3]);const l=`group-data-[collapsible=icon]:p-0 ${a||""}`;let s;r[4]!==o?(s=o.map(j),r[4]=o,r[5]=s):s=r[5];let n;r[6]!==s?(n=t.jsx(f,{children:t.jsx(h,{children:s})}),r[6]=s,r[7]=n):n=r[7];let p;return r[8]!==i||r[9]!==l||r[10]!==n?(p=t.jsx(d,{...i,className:l,children:n}),r[8]=i,r[9]=l,r[10]=n,r[11]=p):p=r[11],p}function j(e){return t.jsx(u,{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:e.href,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&t.jsx(c,{iconNode:e.icon,className:"h-5 w-5"}),t.jsx("span",{children:e.title})]})})},e.title)}export{z as NavFooter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as n,K as T,$ as w}from"./app.js";import{c as g}from"./compiler-runtime-tM4jBQ-T.js";import{e as $,g as E,h as L,i as D,j as B,n as G,k as z,d as F}from"./sidebar-C9-ESAx1.js";import v from"./material-icon-DpKyAc3Z.js";import{u as Q,c as U}from"./index-B6nPyxx_.js";import{c as q}from"./index-D8YaJIVm.js";import{u as H}from"./index-CJTkueDA.js";import{P as N,u as K}from"./index-Dv6YbCDH.js";import{P as W}from"./index-B7QLmddv.js";import{u as J}from"./index-DlfDI23T.js";import{C as V}from"./chevron-right-D5q8rF7h.js";var R="Collapsible",[X,be]=q(R),[Y,S]=X(R),A=l.forwardRef((o,e)=>{const{__scopeCollapsible:t,open:s,defaultOpen:r,disabled:i,onOpenChange:c,...h}=o,[p=!1,d]=Q({prop:s,defaultProp:r,onChange:c});return n.jsx(Y,{scope:t,disabled:i,contentId:J(),open:p,onOpenToggle:l.useCallback(()=>d(u=>!u),[d]),children:n.jsx(N.div,{"data-state":_(p),"data-disabled":i?"":void 0,...h,ref:e})})});A.displayName=R;var O="CollapsibleTrigger",k=l.forwardRef((o,e)=>{const{__scopeCollapsible:t,...s}=o,r=S(O,t);return n.jsx(N.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":_(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...s,ref:e,onClick:U(o.onClick,r.onOpenToggle)})});k.displayName=O;var y="CollapsibleContent",I=l.forwardRef((o,e)=>{const{forceMount:t,...s}=o,r=S(y,o.__scopeCollapsible);return n.jsx(W,{present:t||r.open,children:({present:i})=>n.jsx(Z,{...s,ref:e,present:i})})});I.displayName=y;var Z=l.forwardRef((o,e)=>{const{__scopeCollapsible:t,present:s,children:r,...i}=o,c=S(y,t),[h,p]=l.useState(s),d=l.useRef(null),u=K(e,d),C=l.useRef(0),a=C.current,x=l.useRef(0),b=x.current,m=c.open||h,P=l.useRef(m),j=l.useRef(void 0);return l.useEffect(()=>{const f=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(f)},[]),H(()=>{const f=d.current;if(f){j.current=j.current||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const M=f.getBoundingClientRect();C.current=M.height,x.current=M.width,P.current||(f.style.transitionDuration=j.current.transitionDuration,f.style.animationName=j.current.animationName),p(s)}},[c.open,s]),n.jsx(N.div,{"data-state":_(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":a?`${a}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...o.style},children:m&&r})});function _(o){return o?"open":"closed"}var ee=A;function te(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(ee,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=s):s=e[3],s}function ne(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(k,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=s):s=e[3],s}function se(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(I,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=s):s=e[3],s}function oe(o){const e=g.c(10),{items:t}=o;let s;e[0]!==t?(s=t===void 0?[]:t,e[0]=t,e[1]=s):s=e[1];const r=s,i=T(),c=ae;let h;e[2]!==i?(h=a=>{const x=c(i.url),b=c(a);return x===b||x.startsWith(`${b}/`)},e[2]=i,e[3]=h):h=e[3];const p=h;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(G,{children:"Platform"}),e[4]=d):d=e[4];let u;e[5]!==p||e[6]!==r?(u=r&&r.map(a=>{var x,b;return((x=a.actions)==null?void 0:x.length)>0?n.jsx(te,{asChild:!0,defaultOpen:p(a.link),className:"group/collapsible",children:n.jsxs($,{children:[n.jsx(ne,{asChild:!0,children:n.jsxs(E,{tooltip:a.title,children:[n.jsx(v,{name:a.icon,className:"!text-[18px]"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:a.title}),n.jsx(V,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),n.jsx(se,{children:n.jsx(L,{children:(b=a.actions)==null?void 0:b.map(m=>n.jsx(D,{children:n.jsx(B,{asChild:!0,isActive:p(m.link),children:n.jsxs(w,{href:m.link,prefetch:!0,children:[n.jsx(v,{name:m.icon??"",className:"!text-[18px]"}),n.jsx("span",{children:m.title})]})})},m.id))})})]})},a.title):n.jsx($,{children:n.jsx(E,{asChild:!0,isActive:p(a.link),tooltip:{children:a.title},children:n.jsxs(w,{href:a.link,prefetch:!0,children:[n.jsx(v,{name:a.icon,className:"!text-[18px]"}),n.jsx("span",{children:a.title})]})})},a.title)}),e[5]=p,e[6]=r,e[7]=u):u=e[7];let C;return e[8]!==u?(C=n.jsxs(z,{className:"px-2 py-0",children:[d,n.jsx(F,{children:u})]}),e[8]=u,e[9]=C):C=e[9],C}function ae(o){return o.split("?")[0].replace(/\/$/,"")}const Ce=Object.freeze(Object.defineProperty({__proto__:null,NavMain:oe},Symbol.toStringTag,{value:"Module"}));export{A as C,oe as N,ne as a,I as b,Ce as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as f,j as r}from"./app.js";import{c as x}from"./compiler-runtime-tM4jBQ-T.js";import{a as b,b as g,f as h}from"./dropdown-menu-CKLjASQo.js";import{u as j,o as M,g as w,d as C,e as S}from"./sidebar-C9-ESAx1.js";import{UserInfo as D}from"./user-info-D89n2REb.js";import{UserMenuContent as N}from"./user-menu-content-D25M1xxo.js";import{C as U}from"./chevrons-up-down-kALltqHV.js";import"./index-B6nPyxx_.js";import"./index-Dv6YbCDH.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-S2Olh4hE.js";import"./index-B7QLmddv.js";import"./index-DlfDI23T.js";import"./index-C4BeqGbx.js";import"./utils-jAU0Cazi.js";import"./index-CNFwBlc7.js";import"./button-CcO4Q6h6.js";import"./index-DZ2G3GiC.js";import"./createLucideIcon-BFG25zNo.js";import"./tooltip-DXyAGFz-.js";import"./index-BNKtUMNI.js";function W(){const e=x.c(15),{auth:t,logout:p,logoutBtn:l}=f().props,{state:c}=j(),d=M();let o;e[0]!==t.user?(o=r.jsx(D,{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]!==p||e[7]!==l?(i=r.jsx(N,{user:t.user,logout:p,logoutBtn:l}),e[5]=t.user,e[6]=p,e[7]=l,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(S,{children:r.jsxs(h,{children:[s,n]})})}),e[12]=s,e[13]=n,e[14]=a):a=e[14],a}export{W as NavUser};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as p,b as ct,a as ut,R as dt}from"./app.js";import{c as V}from"./compiler-runtime-tM4jBQ-T.js";import{c as Ee}from"./index-CNFwBlc7.js";import{u as lt,o as ft,s as pt,f as vt,a as mt,b as ht,h as gt,l as Pt,c as Et}from"./floating-ui.react-dom-DEWQUtJU.js";import{h as yt,R as xt}from"./index-C4BeqGbx.js";import{c as bt}from"./utils-jAU0Cazi.js";function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function le(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ct(...e){return t=>{let n=!1;const o=e.map(r=>{const s=le(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():le(e[r],null)}}}}function S(...e){return i.useCallback(Ct(...e),e)}function ye(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),d=n.length;n=[...n,c];const u=m=>{var g;const{scope:v,children:h,...E}=m,f=((g=v==null?void 0:v[e])==null?void 0:g[d])||a,x=i.useMemo(()=>E,Object.values(E));return p.jsx(f.Provider,{value:x,children:h})};u.displayName=s+"Provider";function l(m,v){var f;const h=((f=v==null?void 0:v[e])==null?void 0:f[d])||a,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,l]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const d=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return r.scopeName=e,[o,wt(r,...t)]}function wt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...a,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var At=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],A=At.reduce((e,t)=>{const n=Ee(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(d,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ot(e,t){e&&ct.flushSync(()=>e.dispatchEvent(t))}function N(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Rt(e,t=globalThis==null?void 0:globalThis.document){const n=N(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Nt="DismissableLayer",G="dismissableLayer.update",St="dismissableLayer.pointerDownOutside",Tt="dismissableLayer.focusOutside",fe,xe=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),be=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(xe),[l,m]=i.useState(null),v=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=S(t,P=>m(P)),f=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=f.indexOf(x),b=l?f.indexOf(l):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,y=b>=g,M=Mt(P=>{const _=P.target,k=[...u.branches].some(L=>L.contains(_));!y||k||(r==null||r(P),c==null||c(P),P.defaultPrevented||a==null||a())},v),w=Dt(P=>{const _=P.target;[...u.branches].some(L=>L.contains(_))||(s==null||s(P),c==null||c(P),P.defaultPrevented||a==null||a())},v);return Rt(P=>{b===u.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},v),i.useEffect(()=>{if(l)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fe=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),pe(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=fe)}},[l,v,n,u]),i.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),pe())},[l,u]),i.useEffect(()=>{const P=()=>h({});return document.addEventListener(G,P),()=>document.removeEventListener(G,P)},[]),p.jsx(A.div,{...d,ref:E,style:{pointerEvents:C?y?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,w.onFocusCapture),onBlurCapture:R(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,M.onPointerDownCapture)})});be.displayName=Nt;var _t="DismissableLayerBranch",Ft=i.forwardRef((e,t)=>{const n=i.useContext(xe),o=i.useRef(null),r=S(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(A.div,{...e,ref:r})});Ft.displayName=_t;function Mt(e,t=globalThis==null?void 0:globalThis.document){const n=N(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Ce(St,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Dt(e,t=globalThis==null?void 0:globalThis.document){const n=N(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Ce(Tt,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function pe(){const e=new CustomEvent(G);document.dispatchEvent(e)}function Ce(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Ot(r,s):r.dispatchEvent(s)}var K=0;function It(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ve()),document.body.insertAdjacentElement("beforeend",e[1]??ve()),K++,()=>{K===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),K--}},[])}function ve(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Y="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",me={bubbles:!1,cancelable:!0},Lt="FocusScope",we=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,d]=i.useState(null),u=N(r),l=N(s),m=i.useRef(null),v=S(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let f=function(C){if(h.paused||!a)return;const y=C.target;a.contains(y)?m.current=y:O(m.current,{select:!0})},x=function(C){if(h.paused||!a)return;const y=C.relatedTarget;y!==null&&(a.contains(y)||O(m.current,{select:!0}))},g=function(C){if(document.activeElement===document.body)for(const M of C)M.removedNodes.length>0&&O(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",x);const b=new MutationObserver(g);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",x),b.disconnect()}}},[o,a,h.paused]),i.useEffect(()=>{if(a){ge.add(h);const f=document.activeElement;if(!a.contains(f)){const g=new CustomEvent(Y,me);a.addEventListener(Y,u),a.dispatchEvent(g),g.defaultPrevented||(jt(Bt(Ae(a)),{select:!0}),document.activeElement===f&&O(a))}return()=>{a.removeEventListener(Y,u),setTimeout(()=>{const g=new CustomEvent(X,me);a.addEventListener(X,l),a.dispatchEvent(g),g.defaultPrevented||O(f??document.body,{select:!0}),a.removeEventListener(X,l),ge.remove(h)},0)}}},[a,u,l,h]);const E=i.useCallback(f=>{if(!n&&!o||h.paused)return;const x=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(x&&g){const b=f.currentTarget,[C,y]=$t(b);C&&y?!f.shiftKey&&g===y?(f.preventDefault(),n&&O(C,{select:!0})):f.shiftKey&&g===C&&(f.preventDefault(),n&&O(y,{select:!0})):g===b&&f.preventDefault()}},[n,o,h.paused]);return p.jsx(A.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});we.displayName=Lt;function jt(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(O(o,{select:t}),document.activeElement!==n)return}function $t(e){const t=Ae(e),n=he(t,e),o=he(t.reverse(),e);return[n,o]}function Ae(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function he(e,t){for(const n of e)if(!kt(n,{upTo:t}))return n}function kt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ut(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ut(e)&&t&&e.select()}}var ge=Wt();function Wt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pe(e,t),e.unshift(t)},remove(t){var n;e=Pe(e,t),(n=e[0])==null||n.resume()}}}function Pe(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Bt(e){return e.filter(t=>t.tagName!=="A")}var F=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},zt=ut[" useId ".trim().toString()]||(()=>{}),Ht=0;function Kt(e){const[t,n]=i.useState(zt());return F(()=>{n(o=>o??String(Ht++))},[e]),e||(t?`radix-${t}`:"")}var Yt="Arrow",Oe=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return p.jsx(A.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Oe.displayName=Yt;var Xt=Oe;function Gt(e){const[t,n]=i.useState(void 0);return F(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,a;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;c=u.inlineSize,a=u.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Z="Popper",[Re,Ne]=ye(Z),[Vt,Se]=Re(Z),Te=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return p.jsx(Vt,{scope:t,anchor:o,onAnchorChange:r,children:n})};Te.displayName=Z;var _e="PopperAnchor",Fe=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Se(_e,n),c=i.useRef(null),a=S(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:p.jsx(A.div,{...r,ref:a})});Fe.displayName=_e;var q="PopperContent",[Zt,qt]=Re(q),Me=i.forwardRef((e,t)=>{var re,se,ae,ie,ce,ue;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:E,...f}=e,x=Se(q,n),[g,b]=i.useState(null),C=S(t,j=>b(j)),[y,M]=i.useState(null),w=Gt(y),P=(w==null?void 0:w.width)??0,_=(w==null?void 0:w.height)??0,k=o+(s!=="center"?"-"+s:""),L=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},te=Array.isArray(u)?u:[u],Ve=te.length>0,U={padding:L,boundary:te.filter(Qt),altBoundary:Ve},{refs:Ze,floatingStyles:ne,placement:qe,isPositioned:W,middlewareData:D}=lt({strategy:"fixed",placement:k,whileElementsMounted:(...j)=>Et(...j,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[ft({mainAxis:r+_,alignmentAxis:c}),d&&pt({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Pt():void 0,...U}),d&&vt({...U}),mt({...U,apply:({elements:j,rects:de,availableWidth:rt,availableHeight:st})=>{const{width:at,height:it}=de.reference,z=j.floating.style;z.setProperty("--radix-popper-available-width",`${rt}px`),z.setProperty("--radix-popper-available-height",`${st}px`),z.setProperty("--radix-popper-anchor-width",`${at}px`),z.setProperty("--radix-popper-anchor-height",`${it}px`)}}),y&&ht({element:y,padding:a}),en({arrowWidth:P,arrowHeight:_}),v&>({strategy:"referenceHidden",...U})]}),[oe,Je]=Le(qe),B=N(E);F(()=>{W&&(B==null||B())},[W,B]);const Qe=(re=D.arrow)==null?void 0:re.x,et=(se=D.arrow)==null?void 0:se.y,tt=((ae=D.arrow)==null?void 0:ae.centerOffset)!==0,[nt,ot]=i.useState();return F(()=>{g&&ot(window.getComputedStyle(g).zIndex)},[g]),p.jsx("div",{ref:Ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:W?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:nt,"--radix-popper-transform-origin":[(ie=D.transformOrigin)==null?void 0:ie.x,(ce=D.transformOrigin)==null?void 0:ce.y].join(" "),...((ue=D.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Zt,{scope:n,placedSide:oe,onArrowChange:M,arrowX:Qe,arrowY:et,shouldHideArrow:tt,children:p.jsx(A.div,{"data-side":oe,"data-align":Je,...f,ref:C,style:{...f.style,animation:W?void 0:"none"}})})})});Me.displayName=q;var De="PopperArrow",Jt={top:"bottom",right:"left",bottom:"top",left:"right"},Ie=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=qt(De,o),c=Jt[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Xt,{...r,ref:n,style:{...r.style,display:"block"}})})});Ie.displayName=De;function Qt(e){return e!==null}var en=e=>({name:"transformOrigin",options:e,fn(t){var x,g,b;const{placement:n,rects:o,middlewareData:r}=t,c=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,l]=Le(n),m={start:"0%",center:"50%",end:"100%"}[l],v=(((g=r.arrow)==null?void 0:g.x)??0)+a/2,h=(((b=r.arrow)==null?void 0:b.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=c?m:`${v}px`,f=`${-d}px`):u==="top"?(E=c?m:`${v}px`,f=`${o.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=c?m:`${h}px`):u==="left"&&(E=`${o.floating.width+d}px`,f=c?m:`${h}px`),{data:{x:E,y:f}}}});function Le(e){const[t,n="center"]=e.split("-");return[t,n]}var tn=Te,je=Fe,nn=Me,on=Ie,rn="Portal",$e=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);F(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?dt.createPortal(p.jsx(A.div,{...o,ref:t}),c):null});$e.displayName=rn;function sn(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var J=e=>{const{present:t,children:n}=e,o=an(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=S(o.ref,cn(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};J.displayName="Presence";function an(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=sn(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=H(o.current);s.current=a==="mounted"?u:"none"},[a]),F(()=>{const u=o.current,l=r.current;if(l!==e){const v=s.current,h=H(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(l&&v!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),F(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,m=h=>{const f=H(o.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=h=>{h.target===t&&(s.current=H(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function H(e){return(e==null?void 0:e.animationName)||"none"}function cn(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function un({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=dn({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o,a=N(n),d=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else r(u)},[s,e,r,a]);return[c,d]}function dn({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=N(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var Q="Popover",[ke,_n]=ye(Q,[Ne]),$=Ne(),[ln,T]=ke(Q),Ue=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!1}=e,a=$(t),d=i.useRef(null),[u,l]=i.useState(!1),[m=!1,v]=un({prop:o,defaultProp:r,onChange:s});return p.jsx(tn,{...a,children:p.jsx(ln,{scope:t,contentId:Kt(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>l(!0),[]),onCustomAnchorRemove:i.useCallback(()=>l(!1),[]),modal:c,children:n})})};Ue.displayName=Q;var We="PopoverAnchor",fn=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=T(We,n),s=$(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:a}=r;return i.useEffect(()=>(c(),()=>a()),[c,a]),p.jsx(je,{...s,...o,ref:t})});fn.displayName=We;var Be="PopoverTrigger",ze=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=T(Be,n),s=$(n),c=S(t,r.triggerRef),a=p.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ge(r.open),...o,ref:c,onClick:R(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:p.jsx(je,{asChild:!0,...s,children:a})});ze.displayName=Be;var ee="PopoverPortal",[pn,vn]=ke(ee,{forceMount:void 0}),He=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=T(ee,t);return p.jsx(pn,{scope:t,forceMount:n,children:p.jsx(J,{present:n||s.open,children:p.jsx($e,{asChild:!0,container:r,children:o})})})};He.displayName=ee;var I="PopoverContent",Ke=i.forwardRef((e,t)=>{const n=vn(I,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=T(I,e.__scopePopover);return p.jsx(J,{present:o||s.open,children:s.modal?p.jsx(hn,{...r,ref:t}):p.jsx(gn,{...r,ref:t})})});Ke.displayName=I;var mn=Ee("PopoverContent.RemoveScroll"),hn=i.forwardRef((e,t)=>{const n=T(I,e.__scopePopover),o=i.useRef(null),r=S(t,o),s=i.useRef(!1);return i.useEffect(()=>{const c=o.current;if(c)return yt(c)},[]),p.jsx(xt,{as:mn,allowPinchZoom:!0,children:p.jsx(Ye,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,c=>{var a;c.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,c=>{const a=c.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,u=a.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),gn=i.forwardRef((e,t)=>{const n=T(I,e.__scopePopover),o=i.useRef(!1),r=i.useRef(!1);return p.jsx(Ye,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ye=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:l,...m}=e,v=T(I,n),h=$(n);return It(),p.jsx(we,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(be,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:l,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(nn,{"data-state":Ge(v.open),role:"dialog",id:v.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Xe="PopoverClose",Pn=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=T(Xe,n);return p.jsx(A.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});Pn.displayName=Xe;var En="PopoverArrow",yn=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=$(n);return p.jsx(on,{...r,...o,ref:t})});yn.displayName=En;function Ge(e){return e?"open":"closed"}var xn=Ue,bn=ze,Cn=He,wn=Ke;function Fn(e){const t=V.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=p.jsx(xn,{"data-slot":"popover",...n}),t[2]=n,t[3]=o):o=t[3],o}function Mn(e){const t=V.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=p.jsx(bn,{"data-slot":"popover-trigger",...n}),t[2]=n,t[3]=o):o=t[3],o}function Dn(e){const t=V.c(12);let n,o,r,s;t[0]!==e?({className:n,align:r,sideOffset:s,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r,t[4]=s):(n=t[1],o=t[2],r=t[3],s=t[4]);const c=r===void 0?"center":r,a=s===void 0?4:s;let d;t[5]!==n?(d=bt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",n),t[5]=n,t[6]=d):d=t[6];let u;return t[7]!==c||t[8]!==o||t[9]!==a||t[10]!==d?(u=p.jsx(Cn,{children:p.jsx(wn,{"data-slot":"popover-content",align:c,sideOffset:a,className:d,...o})}),t[7]=c,t[8]=o,t[9]=a,t[10]=d,t[11]=u):u=t[11],u}export{Mn as P,Dn as a,Fn as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as Pe,r as _e,m as ye,j as l,$ as Se}from"./app.js";import{c as Ce}from"./compiler-runtime-tM4jBQ-T.js";import{L as W}from"./label-BH_NLtVH.js";import{I as X}from"./input-coEb8Hta.js";import Y from"./input-error-Dt30bqav.js";import{S as ke,a as Ee,b as Te,d as Ie,c as $e}from"./select-B1LhFAX0.js";import{B as Le}from"./button-CcO4Q6h6.js";import{T as Be,t as Fe}from"./sonner-Dzckw3U3.js";import{i as qe}from"./use-appearance-CL_TqHcP.js";import"./index-Dv6YbCDH.js";import"./utils-jAU0Cazi.js";import"./index-B6nPyxx_.js";import"./index-D8YaJIVm.js";import"./floating-ui.react-dom-DEWQUtJU.js";import"./index-CJTkueDA.js";import"./index-S2Olh4hE.js";import"./index-DlfDI23T.js";import"./index-DwctwfU0.js";import"./index-BNKtUMNI.js";import"./index-C4BeqGbx.js";import"./chevron-down-B5XuAFRu.js";import"./createLucideIcon-BFG25zNo.js";import"./check-LAUWAnlX.js";import"./index-CNFwBlc7.js";function ns(){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(Be,{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 B;e[94]!==s.props.emailLabel?(B=l.jsxs(W,{htmlFor:"email",children:[s.props.emailLabel,pe]}),e[94]=s.props.emailLabel,e[95]=B):B=e[95];const je=`${t.email?"border-red-500":""}`;let F;e[96]!==o?(F=i=>{o("email",i.target.value)},e[96]=o,e[97]=F):F=e[97];let q;e[98]!==a.email||e[99]!==s.props.emailLabel||e[100]!==r||e[101]!==je||e[102]!==F?(q=l.jsx(X,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:a.email,disabled:r,onChange:F,placeholder:s.props.emailLabel}),e[98]=a.email,e[99]=s.props.emailLabel,e[100]=r,e[101]=je,e[102]=F,e[103]=q):q=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]!==q||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[q,D]}),e[106]=q,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==B||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[B,R]}),e[109]=B,e[110]=R,e[111]=V):V=e[111];let z;e[112]!==s.props.localeLabel?(z=l.jsx(W,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=z):z=e[113];let K;e[114]!==o?(K=i=>o("locale",i),e[114]=o,e[115]=K):K=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]!==K||e[121]!==O?(A=l.jsxs($e,{onValueChange:K,defaultValue:"en",disabled:r,children:[O,me]}),e[119]=r,e[120]=K,e[121]=O,e[122]=A):A=e[122];let G;e[123]!==z||e[124]!==A?(G=l.jsxs("div",{className:"grid gap-4",children:[z,A]}),e[123]=z,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 cursor-pointer",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 J;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(J=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]=J):J=e[132];let M;e[133]!==H||e[134]!==J?(M=l.jsxs("div",{className:"flex gap-4",children:[H,J]}),e[133]=H,e[134]=J,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))Fe.error(e[s])}function Re(){}function Ve(){qe()}export{ns as default};
|