adminizer 4.6.0-build.215 → 4.6.0-build.217
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/assets/RelationDialogStack-BKadPz2U.js +1 -1
- package/assets/{add-B5WchVg-.js → add-C6B3ZwYc.js} +1 -1
- package/assets/{add-group-BaRSWaZn.js → add-group-HP1jb7VA.js} +1 -1
- package/assets/{add-user-C9RAPdLa.js → add-user-CwpoBhnE.js} +1 -1
- package/assets/{app-AmBWYkgf.css → app-DaOMy1nl.css} +1 -1
- package/assets/{app-layout-DhO2brcu.js → app-layout-HwzoFLMz.js} +1 -1
- package/assets/{app-sidebar-Bx-ejd5-.js → app-sidebar-Cqj5L2kB.js} +1 -1
- package/assets/app.js +1605 -1605
- package/assets/{catalog-BbTH1Z1f.js → catalog-BiqXcqJM.js} +1 -1
- package/assets/{dashboard-DNCbwkZt.js → dashboard-CJeHMGdM.js} +1 -1
- package/assets/{form-eABT7UVv.js → form-BMWREamR.js} +1 -1
- package/assets/{history-oJaeBtAS.js → history-Yi7SOnuz.js} +1 -1
- package/assets/{home-eJEc7NAx.js → home-LTHyVJhs.js} +2 -2
- package/assets/{list-8TW-3XNA.js → list-BjO-TbRf.js} +1 -1
- package/assets/manifest.json +27 -27
- package/assets/{module-BLnYIOEE.js → module-AhIlQK_S.js} +1 -1
- package/assets/{notification-Be-SbFPT.js → notification-yiRh6g8N.js} +1 -1
- package/assets/{welcome-GbyNBCuu.js → welcome-B9W9z-dG.js} +1 -1
- package/controllers/login.d.ts +1 -1
- package/controllers/login.js +9 -7
- package/package.json +1 -1
- package/system/bindInertia.js +1 -1
- package/ui/components/VanillaJSONEditor.js +25 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as $,j as e,D as Z,U as G,b0 as J,i as Q,k as W,l as Y,b1 as I,b2 as ee,V as se,b as M,I as ae,ar as re,B as D,b3 as te,ap as le,b4 as ne,L as ie,h as ce,b5 as de,b6 as oe,b7 as F,b8 as S,b9 as xe,ba as pe,bb as he,bc as w,bd as me,be as ue,bf as je,bg as be,bh as fe,bi as z,ai as v,bj as ge,bk as E,bl as L,C as P,bm as B,bn as O,bo as A,bp as R,bq as Ne,br as ve}from"./app.js";import{NavMain as ke}from"./nav-main-8YJwixyP.js";import{r as i,a as ye}from"./handsontable-PxYdjN8c.js";import d from"./material-icon-BXxpxGAd.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";const Ce=5*1024*1024,q=i.memo(({routePrefix:t,triggerLabel:s,placeholder:a,ui:x,onClose:p})=>{const l=r=>x[r]??r,[m,k]=i.useState(""),[g,y]=i.useState(""),[j,b]=i.useState([]),[o,N]=i.useState({}),[h,_]=i.useState(!1),[C,H]=i.useState(!1),T=i.useRef(null),K=r=>{if(!r)return;const n={},u=[];Array.from(r).forEach(c=>{c.size>Ce?n[c.name]=l("File size exceeds the 5 MB limit"):u.push(c)}),b(c=>[...c,...u]),Object.keys(n).length&&N(c=>({...c,...n}))},U=r=>b(n=>n.filter((u,c)=>c!==r)),V=async r=>{var u,c;if(r.preventDefault(),!m.trim()){N({title:l("Title is required")});return}_(!0),N({});const n=new FormData;n.append("title",m.trim()),n.append("description",g.trim()),j.forEach(f=>n.append("files",f));try{await ce.post(`${t}/api/feedback`,n),H(!0)}catch(f){const X=((c=(u=f==null?void 0:f.response)==null?void 0:u.data)==null?void 0:c.error)??l("Internal server error");N({_global:X}),_(!1)}};return i.useEffect(()=>{if(!C)return;const r=setTimeout(p,2e3);return()=>clearTimeout(r)},[C,p]),C?e.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-24 text-center",children:[e.jsx(I,{size:48,className:"text-green-500 dark:text-green-400"}),e.jsx("p",{className:"text-base font-medium",children:l("Feedback sent successfully")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ee,{className:"mb-4",children:[e.jsx(se,{children:s??l("Feedback")}),a&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:a})]}),e.jsxs("form",{onSubmit:V,className:"space-y-5",noValidate:!0,children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{htmlFor:"fb-title",children:l("Title")}),e.jsx(ae,{id:"fb-title",value:m,onChange:r=>k(r.target.value),disabled:h,placeholder:l("Title"),className:o.title?"border-destructive":""}),o.title&&e.jsx("p",{className:"text-xs text-destructive",children:o.title})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{htmlFor:"fb-desc",children:l("Description")}),e.jsx(re,{id:"fb-desc",value:g,onChange:r=>y(r.target.value),disabled:h,placeholder:l("Description"),rows:5,className:"resize-none"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{children:l("Attach files")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(D,{type:"button",variant:"outline",size:"sm",onClick:()=>{var r;return(r=T.current)==null?void 0:r.click()},disabled:h,children:[e.jsx(te,{size:14,className:"mr-1"}),l("Attach files")]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:l("Max 5 MB per file")})]}),e.jsx("input",{ref:T,type:"file",multiple:!0,className:"hidden",onChange:r=>K(r.target.files),disabled:h}),j.length>0&&e.jsx("ul",{className:"mt-2 space-y-1",children:j.map((r,n)=>e.jsxs("li",{className:"flex items-center justify-between rounded-md border bg-muted/40 px-3 py-1.5 text-xs",children:[e.jsx("span",{className:"truncate max-w-[340px]",children:r.name}),e.jsx("button",{type:"button",onClick:()=>U(n),className:"ml-2 text-muted-foreground hover:text-destructive transition-colors","aria-label":l("Remove file"),disabled:h,children:e.jsx(le,{size:13})})]},n))}),Object.entries(o).filter(([r])=>r!=="title"&&r!=="_global").map(([r,n])=>e.jsx("p",{className:"text-xs text-destructive",children:n},r))]}),o._global&&e.jsx("p",{className:"text-xs text-destructive",children:o._global}),e.jsx(ne,{children:e.jsx(D,{type:"submit",disabled:h,children:h?e.jsxs(e.Fragment,{children:[e.jsx(ie,{size:14,className:"mr-1.5 animate-spin"}),l("Sending...")]}):l("Send")})})]})]})});q.displayName="FeedbackForm";function Me(){const t=$(),s=t.props.uiMessages??{},a=t.props.routePrefix??window.routePrefix??"",x=t.props.feedbackTriggerLabel??null,p=t.props.feedbackPlaceholder??null,[l,m]=i.useState(!1),[k,g]=i.useState(0),y=i.useCallback(()=>m(!1),[]),j=i.useCallback(b=>{m(b),b||g(o=>o+1)},[]);return e.jsxs(Z,{open:l,onOpenChange:j,children:[e.jsx(G,{asChild:!0,children:e.jsxs("button",{className:"flex items-center gap-1.5 text-xs opacity-60 hover:opacity-100 transition-opacity cursor-pointer mt-1 mx-auto","aria-label":x??s["Send feedback"]??"Send feedback",children:[e.jsx(J,{size:13}),x??s["Send feedback"]??"Send feedback"]})}),ye.createPortal(e.jsx(Q,{}),document.body),e.jsx(W,{children:e.jsx(Y,{children:e.jsx(q,{routePrefix:a,triggerLabel:x,placeholder:p,ui:s,onClose:y},k)})})]})}function ze(){const t=$();return e.jsxs(de,{collapsible:"icon",variant:"inset",children:[e.jsx(oe,{children:e.jsx(F,{children:e.jsxs(S,{children:[e.jsx(xe,{className:"p-0 shadow-none border-none bg-transparent hidden md:block",children:e.jsxs(pe,{children:[e.jsx(he,{asChild:!0,className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground rounded-md",children:e.jsx(w,{asChild:!0,children:e.jsx(D,{variant:"ghost",asChild:!0,className:`w-full ${t.props.section?"":"pointer-events-none"}`,children:e.jsxs("div",{children:[e.jsx(d,{name:"rocket_launch",className:"!text-[18px]"}),e.jsx("span",{className:"group-data-[state=collapsed]:hidden",children:t.props.brand}),t.props.section&&e.jsx(me,{className:"ml-auto group-data-[state=collapsed]:hidden"})]})})})}),t.props.section&&e.jsx(ue,{side:"right",className:"z-[1003]",children:t.props.section.map(s=>e.jsx("div",{children:s.subItems?e.jsxs(je,{children:[e.jsxs(be,{className:"flex gap-2 items-center cursor-pointer",children:[e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}),e.jsx(fe,{children:s.subItems.map(a=>e.jsx(z,{children:a.type==="blank"?e.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]},a.id):e.jsxs(v,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]},a.id)},a.id))})]}):e.jsx(z,{children:s.type==="blank"?e.jsxs("a",{href:s.link,target:"_blank",className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}):e.jsxs(v,{href:s.link,className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]})})},s.id))})]})}),e.jsx(ge,{className:"px-2 py-0 block md:hidden",children:e.jsx(F,{children:e.jsx(E,{asChild:!0,className:"group/collapsible",children:e.jsxs(S,{children:[e.jsx(L,{asChild:!0,children:e.jsxs(w,{children:[e.jsx(d,{name:"rocket_launch",className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:t.props.brand}),t.props.section&&e.jsx(P,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),t.props.section&&e.jsx(B,{children:e.jsx(O,{children:t.props.section&&t.props.section.map(s=>s.subItems?e.jsx(F,{children:e.jsx(E,{asChild:!0,className:"group/collapsible-sub",children:e.jsxs(S,{children:[e.jsx(L,{asChild:!0,children:e.jsxs(w,{children:[e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.title}),e.jsx(P,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible-sub:rotate-90"})]})}),e.jsx(B,{children:e.jsx(O,{children:s.subItems.map(a=>e.jsx(A,{children:e.jsx(R,{asChild:!0,children:a.type==="blank"?e.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]}):e.jsxs(v,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]})})},a.id))})})]})})},s.id):e.jsx(A,{children:e.jsx(R,{asChild:!0,children:s.type==="blank"?e.jsxs("a",{href:s.link,target:"_blank",className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}):e.jsxs(v,{href:s.link,className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]})})},s.id))})})]})})})})]},t.props.brand)})}),e.jsx(Ne,{children:e.jsx(ke,{items:t.props.menu})}),e.jsx(ve,{children:e.jsxs("div",{className:"flex flex-col items-center",children:[t.props.version&&(()=>{const s=t.props.version,a=s.text||"4.6.0",x=new Date("2026-
|
|
1
|
+
import{u as $,j as e,D as Z,U as G,b0 as J,i as Q,k as W,l as Y,b1 as I,b2 as ee,V as se,b as M,I as ae,ar as re,B as D,b3 as te,ap as le,b4 as ne,L as ie,h as ce,b5 as de,b6 as oe,b7 as F,b8 as S,b9 as xe,ba as pe,bb as he,bc as w,bd as me,be as ue,bf as je,bg as be,bh as fe,bi as z,ai as v,bj as ge,bk as E,bl as L,C as P,bm as B,bn as O,bo as A,bp as R,bq as Ne,br as ve}from"./app.js";import{NavMain as ke}from"./nav-main-8YJwixyP.js";import{r as i,a as ye}from"./handsontable-PxYdjN8c.js";import d from"./material-icon-BXxpxGAd.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";const Ce=5*1024*1024,q=i.memo(({routePrefix:t,triggerLabel:s,placeholder:a,ui:x,onClose:p})=>{const l=r=>x[r]??r,[m,k]=i.useState(""),[g,y]=i.useState(""),[j,b]=i.useState([]),[o,N]=i.useState({}),[h,_]=i.useState(!1),[C,H]=i.useState(!1),T=i.useRef(null),K=r=>{if(!r)return;const n={},u=[];Array.from(r).forEach(c=>{c.size>Ce?n[c.name]=l("File size exceeds the 5 MB limit"):u.push(c)}),b(c=>[...c,...u]),Object.keys(n).length&&N(c=>({...c,...n}))},U=r=>b(n=>n.filter((u,c)=>c!==r)),V=async r=>{var u,c;if(r.preventDefault(),!m.trim()){N({title:l("Title is required")});return}_(!0),N({});const n=new FormData;n.append("title",m.trim()),n.append("description",g.trim()),j.forEach(f=>n.append("files",f));try{await ce.post(`${t}/api/feedback`,n),H(!0)}catch(f){const X=((c=(u=f==null?void 0:f.response)==null?void 0:u.data)==null?void 0:c.error)??l("Internal server error");N({_global:X}),_(!1)}};return i.useEffect(()=>{if(!C)return;const r=setTimeout(p,2e3);return()=>clearTimeout(r)},[C,p]),C?e.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-24 text-center",children:[e.jsx(I,{size:48,className:"text-green-500 dark:text-green-400"}),e.jsx("p",{className:"text-base font-medium",children:l("Feedback sent successfully")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ee,{className:"mb-4",children:[e.jsx(se,{children:s??l("Feedback")}),a&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:a})]}),e.jsxs("form",{onSubmit:V,className:"space-y-5",noValidate:!0,children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{htmlFor:"fb-title",children:l("Title")}),e.jsx(ae,{id:"fb-title",value:m,onChange:r=>k(r.target.value),disabled:h,placeholder:l("Title"),className:o.title?"border-destructive":""}),o.title&&e.jsx("p",{className:"text-xs text-destructive",children:o.title})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{htmlFor:"fb-desc",children:l("Description")}),e.jsx(re,{id:"fb-desc",value:g,onChange:r=>y(r.target.value),disabled:h,placeholder:l("Description"),rows:5,className:"resize-none"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(M,{children:l("Attach files")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(D,{type:"button",variant:"outline",size:"sm",onClick:()=>{var r;return(r=T.current)==null?void 0:r.click()},disabled:h,children:[e.jsx(te,{size:14,className:"mr-1"}),l("Attach files")]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:l("Max 5 MB per file")})]}),e.jsx("input",{ref:T,type:"file",multiple:!0,className:"hidden",onChange:r=>K(r.target.files),disabled:h}),j.length>0&&e.jsx("ul",{className:"mt-2 space-y-1",children:j.map((r,n)=>e.jsxs("li",{className:"flex items-center justify-between rounded-md border bg-muted/40 px-3 py-1.5 text-xs",children:[e.jsx("span",{className:"truncate max-w-[340px]",children:r.name}),e.jsx("button",{type:"button",onClick:()=>U(n),className:"ml-2 text-muted-foreground hover:text-destructive transition-colors","aria-label":l("Remove file"),disabled:h,children:e.jsx(le,{size:13})})]},n))}),Object.entries(o).filter(([r])=>r!=="title"&&r!=="_global").map(([r,n])=>e.jsx("p",{className:"text-xs text-destructive",children:n},r))]}),o._global&&e.jsx("p",{className:"text-xs text-destructive",children:o._global}),e.jsx(ne,{children:e.jsx(D,{type:"submit",disabled:h,children:h?e.jsxs(e.Fragment,{children:[e.jsx(ie,{size:14,className:"mr-1.5 animate-spin"}),l("Sending...")]}):l("Send")})})]})]})});q.displayName="FeedbackForm";function Me(){const t=$(),s=t.props.uiMessages??{},a=t.props.routePrefix??window.routePrefix??"",x=t.props.feedbackTriggerLabel??null,p=t.props.feedbackPlaceholder??null,[l,m]=i.useState(!1),[k,g]=i.useState(0),y=i.useCallback(()=>m(!1),[]),j=i.useCallback(b=>{m(b),b||g(o=>o+1)},[]);return e.jsxs(Z,{open:l,onOpenChange:j,children:[e.jsx(G,{asChild:!0,children:e.jsxs("button",{className:"flex items-center gap-1.5 text-xs opacity-60 hover:opacity-100 transition-opacity cursor-pointer mt-1 mx-auto","aria-label":x??s["Send feedback"]??"Send feedback",children:[e.jsx(J,{size:13}),x??s["Send feedback"]??"Send feedback"]})}),ye.createPortal(e.jsx(Q,{}),document.body),e.jsx(W,{children:e.jsx(Y,{children:e.jsx(q,{routePrefix:a,triggerLabel:x,placeholder:p,ui:s,onClose:y},k)})})]})}function ze(){const t=$();return e.jsxs(de,{collapsible:"icon",variant:"inset",children:[e.jsx(oe,{children:e.jsx(F,{children:e.jsxs(S,{children:[e.jsx(xe,{className:"p-0 shadow-none border-none bg-transparent hidden md:block",children:e.jsxs(pe,{children:[e.jsx(he,{asChild:!0,className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground rounded-md",children:e.jsx(w,{asChild:!0,children:e.jsx(D,{variant:"ghost",asChild:!0,className:`w-full ${t.props.section?"":"pointer-events-none"}`,children:e.jsxs("div",{children:[e.jsx(d,{name:"rocket_launch",className:"!text-[18px]"}),e.jsx("span",{className:"group-data-[state=collapsed]:hidden",children:t.props.brand}),t.props.section&&e.jsx(me,{className:"ml-auto group-data-[state=collapsed]:hidden"})]})})})}),t.props.section&&e.jsx(ue,{side:"right",className:"z-[1003]",children:t.props.section.map(s=>e.jsx("div",{children:s.subItems?e.jsxs(je,{children:[e.jsxs(be,{className:"flex gap-2 items-center cursor-pointer",children:[e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}),e.jsx(fe,{children:s.subItems.map(a=>e.jsx(z,{children:a.type==="blank"?e.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]},a.id):e.jsxs(v,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]},a.id)},a.id))})]}):e.jsx(z,{children:s.type==="blank"?e.jsxs("a",{href:s.link,target:"_blank",className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}):e.jsxs(v,{href:s.link,className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]})})},s.id))})]})}),e.jsx(ge,{className:"px-2 py-0 block md:hidden",children:e.jsx(F,{children:e.jsx(E,{asChild:!0,className:"group/collapsible",children:e.jsxs(S,{children:[e.jsx(L,{asChild:!0,children:e.jsxs(w,{children:[e.jsx(d,{name:"rocket_launch",className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:t.props.brand}),t.props.section&&e.jsx(P,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),t.props.section&&e.jsx(B,{children:e.jsx(O,{children:t.props.section&&t.props.section.map(s=>s.subItems?e.jsx(F,{children:e.jsx(E,{asChild:!0,className:"group/collapsible-sub",children:e.jsxs(S,{children:[e.jsx(L,{asChild:!0,children:e.jsxs(w,{children:[e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.title}),e.jsx(P,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible-sub:rotate-90"})]})}),e.jsx(B,{children:e.jsx(O,{children:s.subItems.map(a=>e.jsx(A,{children:e.jsx(R,{asChild:!0,children:a.type==="blank"?e.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]}):e.jsxs(v,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&e.jsx(d,{name:a.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:a.title})]})})},a.id))})})]})})},s.id):e.jsx(A,{children:e.jsx(R,{asChild:!0,children:s.type==="blank"?e.jsxs("a",{href:s.link,target:"_blank",className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]}):e.jsxs(v,{href:s.link,className:"flex gap-2 items-center",children:[s.icon&&e.jsx(d,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"hover:underline",children:s.title})]})})},s.id))})})]})})})})]},t.props.brand)})}),e.jsx(Ne,{children:e.jsx(ke,{items:t.props.menu})}),e.jsx(ve,{children:e.jsxs("div",{className:"flex flex-col items-center",children:[t.props.version&&(()=>{const s=t.props.version,a=s.text||"4.6.0",x=new Date("2026-05-05T03:47:10.748Z").toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),p=s.text?`v.${a}`:`v.${a} · ${x}`,l="text-center opacity-70 hover:opacity-100 transition-opacity text-xs";return s.link?e.jsx("a",{href:s.link,target:"_blank",rel:"noreferrer",title:s.hint??void 0,className:l,children:p}):e.jsx("span",{title:s.hint??void 0,className:l,children:p})})(),t.props.showFeedback&&e.jsx(Me,{})]})})]})}export{ze as AppSidebar};
|