@isardsat/editorial-admin 6.6.4 → 6.8.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/build/client/assets/{dashboard._collection._document-D6q5k-Kf.js → dashboard._collection._document-CC9YQNUJ.js} +1 -1
- package/build/client/assets/{dashboard._collection.new-DGIvigrJ.js → dashboard._collection.new-BzhhS7bY.js} +1 -1
- package/build/client/assets/{dashboard._layout-BJ3aBcCE.js → dashboard._layout-C7VDt_lg.js} +10 -10
- package/build/client/assets/{itemForm-Cg4BG9pI.js → itemForm-CHorGD8x.js} +1 -1
- package/build/client/assets/{manifest-bbc74605.js → manifest-f0acaf83.js} +1 -1
- package/build/client/index.html +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as m,p as e}from"./chunk-EF7DTUVF-CaKisB5m.js";import{I as n}from"./itemForm-
|
|
1
|
+
import{w as m,p as e}from"./chunk-EF7DTUVF-CaKisB5m.js";import{I as n}from"./itemForm-CHorGD8x.js";import{l,o as p}from"./utils-C_m54IzT.js";import"./button-BGHUMWDX.js";import"./index-DO7DtA1Q.js";import"./types-CBu8yk7G.js";import"./index-Ct_4ArX8.js";import"./index-BJ-ODQ_I.js";import"./createLucideIcon-BweVylaW.js";import"./index-Bb8pHI6J.js";import"./tslib.es6-De9GV7Vy.js";const w=m(function({params:s}){const{collectionId:t,documentId:i}=s,{data:o,isFetching:a}=l(t),{data:r,isFetching:c}=p({itemType:t,id:i});return!o||(a||c)?null:e.jsx("div",{className:"overflow-auto scrollbar-stable",children:e.jsx("div",{className:"flex p-4 gap-4",children:e.jsx(n,{itemType:t,fields:o.fields,data:r},`${t}-${i}`)})})});export{w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as i,p as o}from"./chunk-EF7DTUVF-CaKisB5m.js";import{I as s}from"./itemForm-
|
|
1
|
+
import{w as i,p as o}from"./chunk-EF7DTUVF-CaKisB5m.js";import{I as s}from"./itemForm-CHorGD8x.js";import{l as m}from"./utils-C_m54IzT.js";import"./button-BGHUMWDX.js";import"./index-DO7DtA1Q.js";import"./types-CBu8yk7G.js";import"./index-Ct_4ArX8.js";import"./index-BJ-ODQ_I.js";import"./createLucideIcon-BweVylaW.js";import"./index-Bb8pHI6J.js";import"./tslib.es6-De9GV7Vy.js";const v=i(function({params:r}){const{collectionId:t}=r,{data:e}=m(t);return e?o.jsx("div",{className:"overflow-auto",children:o.jsx("div",{className:"flex p-4 gap-4",children:o.jsx(s,{itemType:t,fields:e.fields,isNew:!0})})}):null});export{v as default};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import{p as e,a as
|
|
1
|
+
import{p as e,a as r,x as N,y as W,v as le,z as ce,R as ue,w as he,O as pe}from"./chunk-EF7DTUVF-CaKisB5m.js";import{u as xe,d as O,e as fe}from"./authSlice-tIqx9OEB.js";import{a as d,b as R,d as be,f as me,g as ge,h as je,u as ve}from"./utils-C_m54IzT.js";import{R as Q,C as X,a as Z,T as Y,D as J,P as ee,O as te,u as we}from"./index-Bb8pHI6J.js";import{X as ae}from"./x-BI8YVnoZ.js";import{B as _}from"./button-BGHUMWDX.js";import{c as g}from"./createLucideIcon-BweVylaW.js";import{S as D,c as ye,u as Ne}from"./index-DO7DtA1Q.js";import{R as Ce,P as Se,a as ke,T as _e,b as Me,C as ze,A as Oe}from"./index-kynsXaDO.js";import{u as Re,c as De,P as E,a as Ee,b as Ae,d as Pe}from"./index-Ct_4ArX8.js";import{C as $}from"./chevron-down-CtNmiOMb.js";import{U as Ie}from"./upload-C84AIRF5.js";import{E as Te}from"./external-link-LWykkN17.js";import{L as Le}from"./Loading-BsRbgW--.js";import{C as $e}from"./chevron-right-haBQNeuE.js";import"./tslib.es6-De9GV7Vy.js";import"./index-BJ-ODQ_I.js";import"./index-BDqB5AyL.js";/**
|
|
2
2
|
* @license lucide-react v0.487.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const Be=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ge=
|
|
6
|
+
*/const Be=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ge=g("arrow-down",Be);/**
|
|
7
7
|
* @license lucide-react v0.487.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const He=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Fe=
|
|
11
|
+
*/const He=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Fe=g("arrow-up",He);/**
|
|
12
12
|
* @license lucide-react v0.487.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const qe=[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]],Ve=
|
|
16
|
+
*/const qe=[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]],Ve=g("blocks",qe);/**
|
|
17
17
|
* @license lucide-react v0.487.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const Ke=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],Ue=
|
|
21
|
+
*/const Ke=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],Ue=g("files",Ke);/**
|
|
22
22
|
* @license lucide-react v0.487.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const We=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Qe=
|
|
26
|
+
*/const We=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Qe=g("grid-3x3",We);/**
|
|
27
27
|
* @license lucide-react v0.487.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const Xe=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ze=
|
|
31
|
+
*/const Xe=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ze=g("heart",Xe);/**
|
|
32
32
|
* @license lucide-react v0.487.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const Ye=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Je=
|
|
36
|
+
*/const Ye=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Je=g("log-out",Ye);/**
|
|
37
37
|
* @license lucide-react v0.487.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const et=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tt=
|
|
41
|
+
*/const et=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tt=g("panel-left",et);/**
|
|
42
42
|
* @license lucide-react v0.487.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const at=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],st=b("square",at);function nt({...t}){return e.jsx(Q,{"data-slot":"dialog",...t})}function ot({...t}){return e.jsx(ee,{"data-slot":"dialog-portal",...t})}function it({className:t,...a}){return e.jsx(te,{"data-slot":"dialog-overlay",className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function rt({className:t,children:a,...n}){return e.jsxs(ot,{"data-slot":"dialog-portal",children:[e.jsx(it,{}),e.jsxs(X,{"data-slot":"dialog-content",className:r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...n,children:[a,e.jsxs(Z,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsx(ae,{}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function dt({className:t,...a}){return e.jsx("div",{"data-slot":"dialog-header",className:r("flex flex-col gap-2 text-center sm:text-left",t),...a})}function lt({className:t,...a}){return e.jsx("div",{"data-slot":"dialog-footer",className:r("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function ct({className:t,...a}){return e.jsx(Y,{"data-slot":"dialog-title",className:r("text-lg leading-none font-semibold",t),...a})}function ut({className:t,...a}){return e.jsx(J,{"data-slot":"dialog-description",className:r("text-muted-foreground text-sm",t),...a})}const ht="#181717",pt=d.forwardRef(function({title:a="GitHub",color:n="currentColor",size:s=24,...o},i){return n==="default"&&(n=ht),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:a}),e.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}),xt="#85EA2D",$=d.forwardRef(function({title:a="Swagger",color:n="currentColor",size:s=24,...o},i){return n==="default"&&(n=xt),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:a}),e.jsx("path",{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12c6.616 0 12-5.383 12-12S18.616 0 12 0zm0 1.144c5.995 0 10.856 4.86 10.856 10.856 0 5.995-4.86 10.856-10.856 10.856-5.996 0-10.856-4.86-10.856-10.856C1.144 6.004 6.004 1.144 12 1.144zM8.37 5.868a6.707 6.707 0 0 0-.423.005c-.983.056-1.573.517-1.735 1.472-.115.665-.096 1.348-.143 2.017-.013.35-.05.697-.115 1.038-.134.609-.397.798-1.016.83a2.65 2.65 0 0 0-.244.042v1.463c1.126.055 1.278.452 1.37 1.629.033.429-.013.858.015 1.287.018.406.073.808.156 1.2.259 1.075 1.307 1.435 2.575 1.218v-1.283c-.203 0-.383.005-.558 0-.43-.013-.591-.12-.632-.535-.056-.535-.042-1.08-.075-1.62-.064-1.001-.175-1.988-1.153-2.625.503-.37.868-.812.983-1.398.083-.41.134-.821.166-1.237.028-.415-.023-.84.014-1.25.06-.665.102-.937.9-.91.12 0 .235-.017.369-.027v-1.31c-.16 0-.31-.004-.454-.006zm7.593.009a4.247 4.247 0 0 0-.813.06v1.274c.245 0 .434 0 .623.005.328.004.577.13.61.494.032.332.031.669.064 1.006.065.669.101 1.347.217 2.007.102.544.475.95.941 1.283-.817.549-1.057 1.333-1.098 2.215-.023.604-.037 1.213-.069 1.822-.028.554-.222.734-.78.748-.157.004-.31.018-.484.028v1.305c.327 0 .627.019.927 0 .932-.055 1.495-.507 1.68-1.412.078-.498.124-1 .138-1.504.032-.461.028-.927.074-1.384.069-.715.397-1.01 1.112-1.057a.972.972 0 0 0 .199-.046v-1.463c-.12-.014-.204-.027-.291-.032-.536-.023-.804-.203-.937-.71a5.146 5.146 0 0 1-.152-.993c-.037-.618-.033-1.241-.074-1.86-.08-1.192-.794-1.753-1.887-1.786zm-6.89 5.28a.844.844 0 0 0-.083 1.684h.055a.83.83 0 0 0 .877-.78v-.046a.845.845 0 0 0-.83-.858zm2.911 0a.808.808 0 0 0-.834.78c0 .027 0 .05.004.078 0 .503.342.826.859.826.507 0 .826-.332.826-.853-.005-.503-.342-.836-.855-.831zm2.963 0a.861.861 0 0 0-.876.835c0 .47.378.849.849.849h.009c.425.074.853-.337.881-.83.023-.457-.392-.854-.863-.854z"})]})});function ft({isOpen:t,setOpen:a}){return e.jsx(nt,{open:t,onOpenChange:n=>a(n),children:e.jsxs(rt,{children:[e.jsxs(dt,{children:[e.jsx(ct,{children:"Editorial"}),e.jsx(ut,{children:"A simple CMS for static websites"})]}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(y,{to:"https://lobelia-earth.github.io/editorial/",children:[e.jsx($,{size:14}),"Documentation"]})}),e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(y,{to:"/doc/ui",children:[e.jsx($,{size:14}),"Swagger API UI"]})}),e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(y,{to:"https://github.com/Lobelia-Earth/editorial",children:[e.jsx(pt,{size:14}),"GitHub repository"]})})]}),e.jsx(lt,{children:e.jsxs("p",{className:"flex items-center gap-1",children:["Created with",e.jsx(Ze,{size:14,className:"stroke-red-500 fill-red-500"})," by"," ",e.jsx(y,{to:"https://lobelia.earth",className:"underline hover:text-blue-500",children:"Lobelia.earth"})]})})]})})}function bt({className:t,orientation:a="horizontal",decorative:n=!0,...s}){return e.jsx(Ce,{"data-slot":"separator-root",decorative:n,orientation:a,className:r("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}function mt({...t}){return e.jsx(Q,{"data-slot":"sheet",...t})}function gt({...t}){return e.jsx(ee,{"data-slot":"sheet-portal",...t})}function jt({className:t,...a}){return e.jsx(te,{"data-slot":"sheet-overlay",className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function vt({className:t,children:a,side:n="right",...s}){return e.jsxs(gt,{children:[e.jsx(jt,{}),e.jsxs(X,{"data-slot":"sheet-content",className:r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[a,e.jsxs(Z,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(ae,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function wt({className:t,...a}){return e.jsx("div",{"data-slot":"sheet-header",className:r("flex flex-col gap-1.5 p-4",t),...a})}function yt({className:t,...a}){return e.jsx(Y,{"data-slot":"sheet-title",className:r("text-foreground font-semibold",t),...a})}function Nt({className:t,...a}){return e.jsx(J,{"data-slot":"sheet-description",className:r("text-muted-foreground text-sm",t),...a})}function se({delayDuration:t=0,...a}){return e.jsx(Se,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function Ct({...t}){return e.jsx(se,{children:e.jsx(ke,{"data-slot":"tooltip",...t})})}function St({...t}){return e.jsx(_e,{"data-slot":"tooltip-trigger",...t})}function kt({className:t,sideOffset:a=0,children:n,...s}){return e.jsx(Me,{children:e.jsxs(ze,{"data-slot":"tooltip-content",sideOffset:a,className:r("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...s,children:[n,e.jsx(Re,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const z=768;function _t(){const[t,a]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${z-1}px)`),s=()=>{a(window.innerWidth<z)};return n.addEventListener("change",s),a(window.innerWidth<z),()=>n.removeEventListener("change",s)},[]),!!t}const Mt="sidebar_state",zt=3600*24*7,Rt="16rem",Dt="18rem",Et="3rem",Ot="b",ne=d.createContext(null);function O(){const t=d.useContext(ne);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function At({defaultOpen:t=!0,open:a,onOpenChange:n,className:s,style:o,children:i,...l}){const c=_t(),[x,p]=d.useState(!1),[m,C]=d.useState(t),g=a??m,j=d.useCallback(h=>{const u=typeof h=="function"?h(g):h;n?n(u):C(u),document.cookie=`${Mt}=${u}; path=/; max-age=${zt}`},[n,g]),v=d.useCallback(()=>c?p(h=>!h):j(h=>!h),[c,j,p]);d.useEffect(()=>{const h=u=>{u.key===Ot&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),v())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[v]);const N=g?"expanded":"collapsed",S=d.useMemo(()=>({state:N,open:g,setOpen:j,isMobile:c,openMobile:x,setOpenMobile:p,toggleSidebar:v}),[N,g,j,c,x,p,v]);return e.jsx(ne.Provider,{value:S,children:e.jsx(se,{delayDuration:0,children:e.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Rt,"--sidebar-width-icon":Et,...o},className:r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...l,children:i})})})}function Pt({side:t="left",variant:a="sidebar",collapsible:n="offcanvas",className:s,children:o,...i}){const{isMobile:l,state:c,openMobile:x,setOpenMobile:p}=O();return n==="none"?e.jsx("div",{"data-slot":"sidebar",className:r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...i,children:o}):l?e.jsx(mt,{open:x,onOpenChange:p,...i,children:e.jsxs(vt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Dt},side:t,children:[e.jsxs(wt,{className:"sr-only",children:[e.jsx(yt,{children:"Sidebar"}),e.jsx(Nt,{children:"Displays the mobile sidebar."})]}),e.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):e.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[e.jsx("div",{"data-slot":"sidebar-gap",className:r("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{"data-slot":"sidebar-container",className:r("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:e.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function It({className:t,onClick:a,...n}){const{toggleSidebar:s}=O();return e.jsxs(_,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:r("size-7",t),onClick:o=>{a?.(o),s()},...n,children:[e.jsx(tt,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Tt({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r("flex flex-col gap-2 p-2",t),...a})}function Lt({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r("flex flex-col gap-2 p-2",t),...a})}function $t({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function k({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r("relative flex w-full min-w-0 flex-col p-2",t),...a})}function B({className:t,asChild:a=!1,...n}){const s=a?D:"div";return e.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...n})}function G({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r("w-full text-sm",t),...a})}function H({className:t,...a}){return e.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r("flex w-full min-w-0 flex-col gap-1",t),...a})}function w({className:t,...a}){return e.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r("group/menu-item relative",t),...a})}const Bt=ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function f({asChild:t=!1,isActive:a=!1,variant:n="default",size:s="default",tooltip:o,className:i,...l}){const c=t?D:"button",{isMobile:x,state:p}=O(),m=e.jsx(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":a,className:r(Bt({variant:n,size:s}),i),...l});return o?(typeof o=="string"&&(o={children:o}),e.jsxs(Ct,{children:[e.jsx(St,{asChild:!0,children:m}),e.jsx(kt,{side:"right",align:"center",hidden:p!=="collapsed"||x,...o})]})):m}function Gt({className:t,...a}){return e.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...a})}function Ht({asChild:t=!1,size:a="md",isActive:n=!1,className:s,...o}){const i=t?D:"a";return e.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":n,className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...o})}function F({singleton:t}){const{data:a}=W(),{data:n}=be();if(!a)return null;const s=d.useMemo(()=>Object.entries(a).filter(([,o])=>t?o.singleton:!o.singleton).toSorted(([o],[i])=>o.localeCompare(i)),[a,t]);return e.jsx(e.Fragment,{children:s.map(([o,i])=>e.jsx(Gt,{children:e.jsx(U,{to:t?`/admin/dashboard/${o}/default`:`/admin/dashboard/${o}`,className:({isActive:l,isPending:c})=>c?"pending":l?"active":"",children:({isActive:l})=>e.jsx(Ht,{isActive:l,asChild:!0,children:e.jsxs("div",{children:[e.jsx("span",{className:"inline-block overflow-hidden whitespace-nowrap text-ellipsis text-nowrap",children:i.displayName}),!t&&n?.[o]&&e.jsx("span",{className:"text-xs text-gray-500 ml-auto pr-1 min-w-[25px] text-right",children:Object.keys(n[o]).length})]})})})},i.displayName))})}var M="Collapsible",[Ft,xa]=Ee(M),[qt,A]=Ft(M),oe=d.forwardRef((t,a)=>{const{__scopeCollapsible:n,open:s,defaultOpen:o,disabled:i,onOpenChange:l,...c}=t,[x,p]=De({prop:s,defaultProp:o??!1,onChange:l,caller:M});return e.jsx(qt,{scope:n,disabled:i,contentId:we(),open:x,onOpenToggle:d.useCallback(()=>p(m=>!m),[p]),children:e.jsx(E.div,{"data-state":I(x),"data-disabled":i?"":void 0,...c,ref:a})})});oe.displayName=M;var ie="CollapsibleTrigger",re=d.forwardRef((t,a)=>{const{__scopeCollapsible:n,...s}=t,o=A(ie,n);return e.jsx(E.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":I(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:a,onClick:Oe(t.onClick,o.onOpenToggle)})});re.displayName=ie;var P="CollapsibleContent",de=d.forwardRef((t,a)=>{const{forceMount:n,...s}=t,o=A(P,t.__scopeCollapsible);return e.jsx(Ae,{present:n||o.open,children:({present:i})=>e.jsx(Vt,{...s,ref:a,present:i})})});de.displayName=P;var Vt=d.forwardRef((t,a)=>{const{__scopeCollapsible:n,present:s,children:o,...i}=t,l=A(P,n),[c,x]=d.useState(s),p=d.useRef(null),m=Ne(a,p),C=d.useRef(0),g=C.current,j=d.useRef(0),v=j.current,N=l.open||c,S=d.useRef(N),h=d.useRef(void 0);return d.useEffect(()=>{const u=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(u)},[]),Pe(()=>{const u=p.current;if(u){h.current=h.current||{transitionDuration:u.style.transitionDuration,animationName:u.style.animationName},u.style.transitionDuration="0s",u.style.animationName="none";const T=u.getBoundingClientRect();C.current=T.height,j.current=T.width,S.current||(u.style.transitionDuration=h.current.transitionDuration,u.style.animationName=h.current.animationName),x(s)}},[l.open,s]),e.jsx(E.div,{"data-state":I(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!N,...i,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:N&&o})});function I(t){return t?"open":"closed"}var Kt=oe;function q({...t}){return e.jsx(Kt,{"data-slot":"collapsible",...t})}function V({...t}){return e.jsx(re,{"data-slot":"collapsible-trigger",...t})}function K({...t}){return e.jsx(de,{"data-slot":"collapsible-content",...t})}function Ut(){const t=xe(),[a,n]=d.useState(!1),[s]=me(),[o]=ge(),[i]=je(),{data:l}=ve(),c=R(x=>x.auth.user);return e.jsxs(Pt,{className:"z-50",children:[e.jsx(ft,{isOpen:a,setOpen:n}),e.jsx(Tt,{className:"h-14 justify-center",children:e.jsx(k,{children:e.jsx(y,{to:"/admin/dashboard",className:"text-3xl font-semibold tracking-tight transition-colors",children:l?.name})})}),e.jsxs($t,{children:[e.jsxs(k,{children:[e.jsx(B,{children:"Content"}),e.jsx(G,{children:e.jsxs(H,{children:[e.jsx(q,{className:"group/collapsible",children:e.jsxs(w,{children:[e.jsx(V,{asChild:!0,children:e.jsxs(f,{className:"group",children:[e.jsx(Qe,{}),e.jsx("span",{children:"Collections"}),e.jsx(L,{className:"transition-transform ml-auto -mr-[2px] group-data-[state=open]:rotate-180"})]})}),e.jsx(K,{children:e.jsx(F,{})})]})}),e.jsx(q,{className:"group/collapsible",children:e.jsxs(w,{children:[e.jsx(V,{asChild:!0,children:e.jsxs(f,{className:"group",children:[e.jsx(st,{}),e.jsx("span",{children:"Singles"}),e.jsx(L,{className:"transition-transform ml-auto -mr-[2px] group-data-[state=open]:rotate-180"})]})}),e.jsx(K,{children:e.jsx(F,{singleton:!0})})]})}),e.jsx(w,{children:e.jsx(f,{asChild:!0,children:e.jsxs(y,{to:"/admin/dashboard/files",children:[e.jsx(Ue,{}),e.jsx("span",{children:"Files"})]})})}),e.jsx(w,{children:e.jsxs(f,{disabled:!0,children:[e.jsx(Ve,{}),e.jsx("span",{children:"Components"})]})})]})})]}),e.jsxs(k,{children:[e.jsx(B,{children:"Actions"}),e.jsx(G,{children:e.jsxs(H,{children:[c?.role==="developer"&&e.jsxs(e.Fragment,{children:[e.jsx(w,{children:e.jsxs(f,{className:"cursor-pointer",onClick:()=>o(),children:[e.jsx(Ge,{}),e.jsx("span",{children:"Pull from repo"})]})}),e.jsx(w,{children:e.jsxs(f,{className:"cursor-pointer",onClick:()=>i({author:c.email}),children:[e.jsx(Fe,{}),e.jsx("span",{children:"Push to repo"})]})})]}),c&&e.jsx(w,{children:e.jsxs(f,{className:"cursor-pointer",onClick:()=>s({author:c.email}),children:[e.jsx(Ie,{}),e.jsx("span",{children:"Publish"})]})})]})})]}),e.jsx(k,{})]}),e.jsxs(Lt,{children:[e.jsx(f,{asChild:!0,children:e.jsxs(y,{to:l?.previewUrl,children:["Preview",e.jsx(Te,{className:"ml-auto"})]})}),e.jsx(f,{className:"cursor-pointer",onClick:()=>n(!0),children:"About"}),e.jsxs(f,{className:"cursor-pointer",onClick:()=>t(fe()),children:[e.jsx(Je,{}),"Log out"]})]})]})}function Wt({children:t}){const a=le(),n=R(o=>o.auth.user),s=R(o=>o.auth.isLoading);return d.useEffect(()=>{!s&&!n&&a("/admin")},[s,a,n]),s||!n?e.jsx(Le,{}):t}function Qt(){const{pathname:t}=ce(),{data:a}=W(),n=t.split("/").filter(s=>!["admin","dashboard"].includes(s)&&s!=="");return a?e.jsx(e.Fragment,{children:n.map((s,o,i)=>e.jsxs(ue.Fragment,{children:[i.length>1&&o>=1&&e.jsx($e,{size:12,className:"text-gray-500 pt-[1px]"}),e.jsxs("p",{className:"text-sm leading-none tracking-tight capitalize text-gray-500 last:text-foreground",children:[o<i.length-1&&a[s]&&a[s].singleton&&(a[s]?a[s].displayName:s),o<i.length-1&&a[s]&&!a[s].singleton&&e.jsx(U,{to:`/admin/dashboard/${s}`,className:({isActive:l,isPending:c})=>c?"pending":l?"active":"",children:a[s]?a[s].displayName:s}),o===i.length-1&&(a[s]?a[s].displayName:s)]},s)]},o))}):null}const fa=he(function(){return e.jsx(Wt,{children:e.jsxs(At,{className:"flex h-full",children:[e.jsx(Ut,{}),e.jsxs("main",{className:"flex flex-col flex-1 h-full w-0",children:[e.jsx("header",{className:"flex sticky bg-sidebar dark:bg-sidebar z-40 top-0 h-14 shrink-0 items-center gap-2 border-b",children:e.jsxs("div",{className:"flex items-center gap-2 px-3",children:[e.jsx(It,{}),e.jsx(bt,{orientation:"vertical",className:"h-4"}),e.jsx(Qt,{})]})}),e.jsx(pe,{})]})]})})});export{fa as default};
|
|
46
|
+
*/const at=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],st=g("square",at);function nt({...t}){return e.jsx(Q,{"data-slot":"dialog",...t})}function ot({...t}){return e.jsx(ee,{"data-slot":"dialog-portal",...t})}function it({className:t,...a}){return e.jsx(te,{"data-slot":"dialog-overlay",className:d("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function rt({className:t,children:a,...n}){return e.jsxs(ot,{"data-slot":"dialog-portal",children:[e.jsx(it,{}),e.jsxs(X,{"data-slot":"dialog-content",className:d("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...n,children:[a,e.jsxs(Z,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsx(ae,{}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function dt({className:t,...a}){return e.jsx("div",{"data-slot":"dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",t),...a})}function lt({className:t,...a}){return e.jsx("div",{"data-slot":"dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function ct({className:t,...a}){return e.jsx(Y,{"data-slot":"dialog-title",className:d("text-lg leading-none font-semibold",t),...a})}function ut({className:t,...a}){return e.jsx(J,{"data-slot":"dialog-description",className:d("text-muted-foreground text-sm",t),...a})}const ht="#181717",pt=r.forwardRef(function({title:a="GitHub",color:n="currentColor",size:s=24,...o},i){return n==="default"&&(n=ht),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:a}),e.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}),xt="#85EA2D",B=r.forwardRef(function({title:a="Swagger",color:n="currentColor",size:s=24,...o},i){return n==="default"&&(n=xt),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:a}),e.jsx("path",{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12c6.616 0 12-5.383 12-12S18.616 0 12 0zm0 1.144c5.995 0 10.856 4.86 10.856 10.856 0 5.995-4.86 10.856-10.856 10.856-5.996 0-10.856-4.86-10.856-10.856C1.144 6.004 6.004 1.144 12 1.144zM8.37 5.868a6.707 6.707 0 0 0-.423.005c-.983.056-1.573.517-1.735 1.472-.115.665-.096 1.348-.143 2.017-.013.35-.05.697-.115 1.038-.134.609-.397.798-1.016.83a2.65 2.65 0 0 0-.244.042v1.463c1.126.055 1.278.452 1.37 1.629.033.429-.013.858.015 1.287.018.406.073.808.156 1.2.259 1.075 1.307 1.435 2.575 1.218v-1.283c-.203 0-.383.005-.558 0-.43-.013-.591-.12-.632-.535-.056-.535-.042-1.08-.075-1.62-.064-1.001-.175-1.988-1.153-2.625.503-.37.868-.812.983-1.398.083-.41.134-.821.166-1.237.028-.415-.023-.84.014-1.25.06-.665.102-.937.9-.91.12 0 .235-.017.369-.027v-1.31c-.16 0-.31-.004-.454-.006zm7.593.009a4.247 4.247 0 0 0-.813.06v1.274c.245 0 .434 0 .623.005.328.004.577.13.61.494.032.332.031.669.064 1.006.065.669.101 1.347.217 2.007.102.544.475.95.941 1.283-.817.549-1.057 1.333-1.098 2.215-.023.604-.037 1.213-.069 1.822-.028.554-.222.734-.78.748-.157.004-.31.018-.484.028v1.305c.327 0 .627.019.927 0 .932-.055 1.495-.507 1.68-1.412.078-.498.124-1 .138-1.504.032-.461.028-.927.074-1.384.069-.715.397-1.01 1.112-1.057a.972.972 0 0 0 .199-.046v-1.463c-.12-.014-.204-.027-.291-.032-.536-.023-.804-.203-.937-.71a5.146 5.146 0 0 1-.152-.993c-.037-.618-.033-1.241-.074-1.86-.08-1.192-.794-1.753-1.887-1.786zm-6.89 5.28a.844.844 0 0 0-.083 1.684h.055a.83.83 0 0 0 .877-.78v-.046a.845.845 0 0 0-.83-.858zm2.911 0a.808.808 0 0 0-.834.78c0 .027 0 .05.004.078 0 .503.342.826.859.826.507 0 .826-.332.826-.853-.005-.503-.342-.836-.855-.831zm2.963 0a.861.861 0 0 0-.876.835c0 .47.378.849.849.849h.009c.425.074.853-.337.881-.83.023-.457-.392-.854-.863-.854z"})]})});function ft({isOpen:t,setOpen:a}){return e.jsx(nt,{open:t,onOpenChange:n=>a(n),children:e.jsxs(rt,{children:[e.jsxs(dt,{children:[e.jsx(ct,{children:"Editorial"}),e.jsx(ut,{children:"A simple CMS for static websites"})]}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(N,{to:"https://lobelia-earth.github.io/editorial/",children:[e.jsx(B,{size:14}),"Documentation"]})}),e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(N,{to:"/doc/ui",children:[e.jsx(B,{size:14}),"Swagger API UI"]})}),e.jsx(_,{asChild:!0,variant:"ghost",children:e.jsxs(N,{to:"https://github.com/Lobelia-Earth/editorial",children:[e.jsx(pt,{size:14}),"GitHub repository"]})})]}),e.jsx(lt,{children:e.jsxs("p",{className:"flex items-center gap-1",children:["Created with",e.jsx(Ze,{size:14,className:"stroke-red-500 fill-red-500"})," by"," ",e.jsx(N,{to:"https://lobelia.earth",className:"underline hover:text-blue-500",children:"Lobelia.earth"})]})})]})})}function bt({className:t,orientation:a="horizontal",decorative:n=!0,...s}){return e.jsx(Ce,{"data-slot":"separator-root",decorative:n,orientation:a,className:d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}function mt({...t}){return e.jsx(Q,{"data-slot":"sheet",...t})}function gt({...t}){return e.jsx(ee,{"data-slot":"sheet-portal",...t})}function jt({className:t,...a}){return e.jsx(te,{"data-slot":"sheet-overlay",className:d("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function vt({className:t,children:a,side:n="right",...s}){return e.jsxs(gt,{children:[e.jsx(jt,{}),e.jsxs(X,{"data-slot":"sheet-content",className:d("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[a,e.jsxs(Z,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(ae,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function wt({className:t,...a}){return e.jsx("div",{"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",t),...a})}function yt({className:t,...a}){return e.jsx(Y,{"data-slot":"sheet-title",className:d("text-foreground font-semibold",t),...a})}function Nt({className:t,...a}){return e.jsx(J,{"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",t),...a})}function se({delayDuration:t=0,...a}){return e.jsx(Se,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function Ct({...t}){return e.jsx(se,{children:e.jsx(ke,{"data-slot":"tooltip",...t})})}function St({...t}){return e.jsx(_e,{"data-slot":"tooltip-trigger",...t})}function kt({className:t,sideOffset:a=0,children:n,...s}){return e.jsx(Me,{children:e.jsxs(ze,{"data-slot":"tooltip-content",sideOffset:a,className:d("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...s,children:[n,e.jsx(Oe,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const z=768;function _t(){const[t,a]=r.useState(void 0);return r.useEffect(()=>{const n=window.matchMedia(`(max-width: ${z-1}px)`),s=()=>{a(window.innerWidth<z)};return n.addEventListener("change",s),a(window.innerWidth<z),()=>n.removeEventListener("change",s)},[]),!!t}const Mt="sidebar_state",zt=3600*24*7,Ot="16rem",Rt="18rem",Dt="3rem",Et="b",ne=r.createContext(null);function A(){const t=r.useContext(ne);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function At({defaultOpen:t=!0,open:a,onOpenChange:n,className:s,style:o,children:i,...c}){const l=_t(),[x,h]=r.useState(!1),[f,b]=r.useState(t),j=a??f,v=r.useCallback(p=>{const u=typeof p=="function"?p(j):p;n?n(u):b(u),document.cookie=`${Mt}=${u}; path=/; max-age=${zt}`},[n,j]),w=r.useCallback(()=>l?h(p=>!p):v(p=>!p),[l,v,h]);r.useEffect(()=>{const p=u=>{u.key===Et&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),w())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[w]);const C=j?"expanded":"collapsed",S=r.useMemo(()=>({state:C,open:j,setOpen:v,isMobile:l,openMobile:x,setOpenMobile:h,toggleSidebar:w}),[C,j,v,l,x,h,w]);return e.jsx(ne.Provider,{value:S,children:e.jsx(se,{delayDuration:0,children:e.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ot,"--sidebar-width-icon":Dt,...o},className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...c,children:i})})})}function Pt({side:t="left",variant:a="sidebar",collapsible:n="offcanvas",className:s,children:o,...i}){const{isMobile:c,state:l,openMobile:x,setOpenMobile:h}=A();return n==="none"?e.jsx("div",{"data-slot":"sidebar",className:d("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...i,children:o}):c?e.jsx(mt,{open:x,onOpenChange:h,...i,children:e.jsxs(vt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Rt},side:t,children:[e.jsxs(wt,{className:"sr-only",children:[e.jsx(yt,{children:"Sidebar"}),e.jsx(Nt,{children:"Displays the mobile sidebar."})]}),e.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):e.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[e.jsx("div",{"data-slot":"sidebar-gap",className:d("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{"data-slot":"sidebar-container",className:d("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:e.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function It({className:t,onClick:a,...n}){const{toggleSidebar:s}=A();return e.jsxs(_,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d("size-7",t),onClick:o=>{a?.(o),s()},...n,children:[e.jsx(tt,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Tt({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-2 p-2",t),...a})}function Lt({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:d("flex flex-col gap-2 p-2",t),...a})}function $t({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:d("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function k({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:d("relative flex w-full min-w-0 flex-col p-2",t),...a})}function G({className:t,asChild:a=!1,...n}){const s=a?D:"div";return e.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...n})}function H({className:t,...a}){return e.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",t),...a})}function F({className:t,...a}){return e.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",t),...a})}function y({className:t,...a}){return e.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative",t),...a})}const Bt=ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function m({asChild:t=!1,isActive:a=!1,variant:n="default",size:s="default",tooltip:o,className:i,...c}){const l=t?D:"button",{isMobile:x,state:h}=A(),f=e.jsx(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":a,className:d(Bt({variant:n,size:s}),i),...c});return o?(typeof o=="string"&&(o={children:o}),e.jsxs(Ct,{children:[e.jsx(St,{asChild:!0,children:f}),e.jsx(kt,{side:"right",align:"center",hidden:h!=="collapsed"||x,...o})]})):f}function Gt({className:t,...a}){return e.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:d("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...a})}function Ht({asChild:t=!1,size:a="md",isActive:n=!1,className:s,...o}){const i=t?D:"a";return e.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":n,className:d("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...o})}function q({singleton:t}){const{data:a}=R(),{data:n}=be();if(!a)return null;const s=r.useMemo(()=>Object.entries(a).filter(([,o])=>t?o.singleton:!o.singleton).toSorted(([o],[i])=>o.localeCompare(i)),[a,t]);return e.jsx(e.Fragment,{children:s.map(([o,i])=>e.jsx(Gt,{children:e.jsx(W,{to:t?`/admin/dashboard/${o}/default`:`/admin/dashboard/${o}`,className:({isActive:c,isPending:l})=>l?"pending":c?"active":"",children:({isActive:c})=>e.jsx(Ht,{isActive:c,asChild:!0,children:e.jsxs("div",{children:[e.jsx("span",{className:"inline-block overflow-hidden whitespace-nowrap text-ellipsis text-nowrap",children:i.displayName}),!t&&n?.[o]&&e.jsx("span",{className:"text-xs text-gray-500 ml-auto pr-1 min-w-[25px] text-right",children:Object.keys(n[o]).length})]})})})},i.displayName))})}var M="Collapsible",[Ft,xa]=De(M),[qt,P]=Ft(M),oe=r.forwardRef((t,a)=>{const{__scopeCollapsible:n,open:s,defaultOpen:o,disabled:i,onOpenChange:c,...l}=t,[x,h]=Re({prop:s,defaultProp:o??!1,onChange:c,caller:M});return e.jsx(qt,{scope:n,disabled:i,contentId:we(),open:x,onOpenToggle:r.useCallback(()=>h(f=>!f),[h]),children:e.jsx(E.div,{"data-state":T(x),"data-disabled":i?"":void 0,...l,ref:a})})});oe.displayName=M;var ie="CollapsibleTrigger",re=r.forwardRef((t,a)=>{const{__scopeCollapsible:n,...s}=t,o=P(ie,n);return e.jsx(E.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:a,onClick:Ee(t.onClick,o.onOpenToggle)})});re.displayName=ie;var I="CollapsibleContent",de=r.forwardRef((t,a)=>{const{forceMount:n,...s}=t,o=P(I,t.__scopeCollapsible);return e.jsx(Ae,{present:n||o.open,children:({present:i})=>e.jsx(Vt,{...s,ref:a,present:i})})});de.displayName=I;var Vt=r.forwardRef((t,a)=>{const{__scopeCollapsible:n,present:s,children:o,...i}=t,c=P(I,n),[l,x]=r.useState(s),h=r.useRef(null),f=Ne(a,h),b=r.useRef(0),j=b.current,v=r.useRef(0),w=v.current,C=c.open||l,S=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const u=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(u)},[]),Pe(()=>{const u=h.current;if(u){p.current=p.current||{transitionDuration:u.style.transitionDuration,animationName:u.style.animationName},u.style.transitionDuration="0s",u.style.animationName="none";const L=u.getBoundingClientRect();b.current=L.height,v.current=L.width,S.current||(u.style.transitionDuration=p.current.transitionDuration,u.style.animationName=p.current.animationName),x(s)}},[c.open,s]),e.jsx(E.div,{"data-state":T(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!C,...i,ref:f,style:{"--radix-collapsible-content-height":j?`${j}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:C&&o})});function T(t){return t?"open":"closed"}var Kt=oe;function V({...t}){return e.jsx(Kt,{"data-slot":"collapsible",...t})}function K({...t}){return e.jsx(re,{"data-slot":"collapsible-trigger",...t})}function U({...t}){return e.jsx(de,{"data-slot":"collapsible-content",...t})}function Ut(){const t=xe(),[a,n]=r.useState(!1),[s]=me(),[o]=ge(),[i]=je(),{data:c}=ve(),{data:l}=R(),x=r.useMemo(()=>l&&!!Object.values(l).find(b=>!b.singleton),[l]),h=r.useMemo(()=>l&&!!Object.values(l).find(b=>b.singleton),[l]),f=O(b=>b.auth.user);return e.jsxs(Pt,{className:"z-50",children:[e.jsx(ft,{isOpen:a,setOpen:n}),e.jsx(Tt,{className:"h-14 justify-center",children:e.jsx(k,{children:e.jsx(N,{to:"/admin/dashboard",className:"text-3xl font-semibold tracking-tight transition-colors",children:c?.name})})}),e.jsxs($t,{children:[e.jsxs(k,{children:[e.jsx(G,{children:"Content"}),e.jsx(H,{children:e.jsxs(F,{children:[e.jsx(V,{className:"group/collapsible",disabled:!x,children:e.jsxs(y,{children:[e.jsx(K,{asChild:!0,children:e.jsxs(m,{className:"group",children:[e.jsx(Qe,{}),e.jsx("span",{children:"Collections"}),e.jsx($,{className:"transition-transform ml-auto -mr-[2px] group-data-[state=open]:rotate-180"})]})}),e.jsx(U,{children:e.jsx(q,{})})]})}),e.jsx(V,{className:"group/collapsible",disabled:!h,children:e.jsxs(y,{children:[e.jsx(K,{asChild:!0,children:e.jsxs(m,{className:"group",children:[e.jsx(st,{}),e.jsx("span",{children:"Singles"}),e.jsx($,{className:"transition-transform ml-auto -mr-[2px] group-data-[state=open]:rotate-180"})]})}),e.jsx(U,{children:e.jsx(q,{singleton:!0})})]})}),e.jsx(y,{children:e.jsx(m,{asChild:!0,children:e.jsxs(N,{to:"/admin/dashboard/files",children:[e.jsx(Ue,{}),e.jsx("span",{children:"Files"})]})})}),e.jsx(y,{children:e.jsxs(m,{disabled:!0,children:[e.jsx(Ve,{}),e.jsx("span",{children:"Components"})]})})]})})]}),e.jsxs(k,{children:[e.jsx(G,{children:"Actions"}),e.jsx(H,{children:e.jsxs(F,{children:[f?.role==="developer"&&e.jsxs(e.Fragment,{children:[e.jsx(y,{children:e.jsxs(m,{className:"cursor-pointer",onClick:()=>o(),children:[e.jsx(Ge,{}),e.jsx("span",{children:"Pull from repo"})]})}),e.jsx(y,{children:e.jsxs(m,{className:"cursor-pointer",onClick:()=>i({author:f.email}),children:[e.jsx(Fe,{}),e.jsx("span",{children:"Push to repo"})]})})]}),f&&e.jsx(y,{children:e.jsxs(m,{className:"cursor-pointer",onClick:()=>s({author:f.email}),children:[e.jsx(Ie,{}),e.jsx("span",{children:"Publish"})]})})]})})]}),e.jsx(k,{})]}),e.jsxs(Lt,{children:[e.jsx(m,{asChild:!0,children:e.jsxs(N,{to:c?.previewUrl,children:["Preview",e.jsx(Te,{className:"ml-auto"})]})}),e.jsx(m,{className:"cursor-pointer",onClick:()=>n(!0),children:"About"}),e.jsxs(m,{className:"cursor-pointer",onClick:()=>t(fe()),children:[e.jsx(Je,{}),"Log out"]})]})]})}function Wt({children:t}){const a=le(),n=O(o=>o.auth.user),s=O(o=>o.auth.isLoading);return r.useEffect(()=>{!s&&!n&&a("/admin")},[s,a,n]),s||!n?e.jsx(Le,{}):t}function Qt(){const{pathname:t}=ce(),{data:a}=R(),n=t.split("/").filter(s=>!["admin","dashboard"].includes(s)&&s!=="");return a?e.jsx(e.Fragment,{children:n.map((s,o,i)=>e.jsxs(ue.Fragment,{children:[i.length>1&&o>=1&&e.jsx($e,{size:12,className:"text-gray-500 pt-[1px]"}),e.jsxs("p",{className:"text-sm leading-none tracking-tight capitalize text-gray-500 last:text-foreground",children:[o<i.length-1&&a[s]&&a[s].singleton&&(a[s]?a[s].displayName:s),o<i.length-1&&a[s]&&!a[s].singleton&&e.jsx(W,{to:`/admin/dashboard/${s}`,className:({isActive:c,isPending:l})=>l?"pending":c?"active":"",children:a[s]?a[s].displayName:s}),o===i.length-1&&(a[s]?a[s].displayName:s)]},s)]},o))}):null}const fa=he(function(){return e.jsx(Wt,{children:e.jsxs(At,{className:"flex h-full",children:[e.jsx(Ut,{}),e.jsxs("main",{className:"flex flex-col flex-1 h-full w-0",children:[e.jsx("header",{className:"flex sticky bg-sidebar dark:bg-sidebar z-40 top-0 h-14 shrink-0 items-center gap-2 border-b",children:e.jsxs("div",{className:"flex items-center gap-2 px-3",children:[e.jsx(It,{}),e.jsx(bt,{orientation:"vertical",className:"h-4"}),e.jsx(Qt,{})]})}),e.jsx(pe,{})]})]})})});export{fa as default};
|
|
@@ -10,4 +10,4 @@ You can add a description to the \`${j}\` by passing a \`${B}\` component as a c
|
|
|
10
10
|
|
|
11
11
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${j}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
12
12
|
|
|
13
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(a.current?.getAttribute("aria-describedby"))||console.warn(o)},[o,a]),null},Re=F,Oe=$,Te=V,Ie=z,Le=H,Me=Y,ke=U,Fe=G;function $e({...a}){return e.jsx(Re,{"data-slot":"alert-dialog",...a})}function Ve({...a}){return e.jsx(Oe,{"data-slot":"alert-dialog-portal",...a})}function ze({className:a,...o}){return e.jsx(Te,{"data-slot":"alert-dialog-overlay",className:x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...o})}function qe({className:a,...o}){return e.jsxs(Ve,{children:[e.jsx(ze,{}),e.jsx(Ie,{"data-slot":"alert-dialog-content",className:x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",a),...o})]})}function Ue({className:a,...o}){return e.jsx("div",{"data-slot":"alert-dialog-header",className:x("flex flex-col gap-2 text-center sm:text-left",a),...o})}function Be({className:a,...o}){return e.jsx("div",{"data-slot":"alert-dialog-footer",className:x("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...o})}function Ge({className:a,...o}){return e.jsx(ke,{"data-slot":"alert-dialog-title",className:x("text-lg font-semibold",a),...o})}function He({className:a,...o}){return e.jsx(Fe,{"data-slot":"alert-dialog-description",className:x("text-muted-foreground text-sm",a),...o})}function We({className:a,...o}){return e.jsx(Le,{className:x(T(),a),...o})}function Ye({className:a,...o}){return e.jsx(Me,{className:x(T({variant:"outline"}),a),...o})}function Ke({hasUnsavedChanges:a,title:o="Unsaved Changes",description:s="You have unsaved changes. Are you sure you want to leave this page? Your changes will be lost.",stayButtonText:l="Stay on Page",leaveButtonText:u="Leave Page"}){const f=K(({currentLocation:h,nextLocation:t})=>a&&h.pathname!==t.pathname),[m,g]=p.useState(!1),n=()=>{f.state==="blocked"&&f.proceed()},d=()=>{f.state==="blocked"&&f.reset()};return p.useEffect(()=>{g(f.state==="blocked")},[f.state,m]),p.useEffect(()=>{const h=t=>{a&&(t.preventDefault(),t.returnValue="")};return a&&window.addEventListener("beforeunload",h),()=>{window.removeEventListener("beforeunload",h)}},[a]),e.jsx($e,{open:m,onOpenChange:g,children:e.jsxs(qe,{children:[e.jsxs(Ue,{children:[e.jsx(Ge,{children:o}),e.jsx(He,{children:s})]}),e.jsxs(Be,{children:[e.jsx(Ye,{onClick:d,children:l}),e.jsx(We,{onClick:n,children:u})]})]})})}const Je=A.lazy(()=>y(()=>import("./FilePicker-Dd0_TkEg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Qe=A.lazy(()=>y(()=>import("./markdownEditor-BRduGGxR.js"),__vite__mapDeps([15,1,16,17,2,12,18,11,4,10,6,19,20,21,22]))),Xe=A.lazy(()=>y(()=>import("./date-picker-CSMApwxu.js"),__vite__mapDeps([23,1,9,4,2,24,6,25,8,19,11,12,18,17,20,26]))),Ze=A.lazy(()=>y(()=>import("./datetime-picker-D57VpP_6.js"),__vite__mapDeps([27,1,9,4,2,24,6,25,8,19,11,12,18,17,20,10,26]))),et=A.lazy(()=>y(()=>import("./URLInput-DAvqcRfP.js"),__vite__mapDeps([28,1,10,4,2,11,12,6,13])));function dt({itemType:a,fields:o,data:s,isNew:l}){const[u]=ge(),[f]=fe(),m=p.useCallback(t=>({id:s?.id??"",isDraft:String(l?!0:s?.isDraft??!1),...Object.fromEntries(Object.keys(t).map(r=>[r,s?.[r]??(t[r].type==="boolean"?!1:"")]))}),[s,o]),g=p.useMemo(()=>{const t={id:v().min(1,"ID is required").regex(/^[a-z0-9-]+$/,"ID can only include lowercase letters and numbers"),isDraft:v()};return Object.entries(o).forEach(([r,i])=>{let c;switch(i.type){case"boolean":c=Q();break;case"number":c=v().refine(S=>!isNaN(Number(S)),"Must be a valid number");break;case"url":c=v().url("Must be a valid URL");break;case"date":c=v();break;case"datetime":c=v();break;default:c=v()}i.
|
|
13
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(a.current?.getAttribute("aria-describedby"))||console.warn(o)},[o,a]),null},Re=F,Oe=$,Te=V,Ie=z,Le=H,Me=Y,ke=U,Fe=G;function $e({...a}){return e.jsx(Re,{"data-slot":"alert-dialog",...a})}function Ve({...a}){return e.jsx(Oe,{"data-slot":"alert-dialog-portal",...a})}function ze({className:a,...o}){return e.jsx(Te,{"data-slot":"alert-dialog-overlay",className:x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...o})}function qe({className:a,...o}){return e.jsxs(Ve,{children:[e.jsx(ze,{}),e.jsx(Ie,{"data-slot":"alert-dialog-content",className:x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",a),...o})]})}function Ue({className:a,...o}){return e.jsx("div",{"data-slot":"alert-dialog-header",className:x("flex flex-col gap-2 text-center sm:text-left",a),...o})}function Be({className:a,...o}){return e.jsx("div",{"data-slot":"alert-dialog-footer",className:x("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...o})}function Ge({className:a,...o}){return e.jsx(ke,{"data-slot":"alert-dialog-title",className:x("text-lg font-semibold",a),...o})}function He({className:a,...o}){return e.jsx(Fe,{"data-slot":"alert-dialog-description",className:x("text-muted-foreground text-sm",a),...o})}function We({className:a,...o}){return e.jsx(Le,{className:x(T(),a),...o})}function Ye({className:a,...o}){return e.jsx(Me,{className:x(T({variant:"outline"}),a),...o})}function Ke({hasUnsavedChanges:a,title:o="Unsaved Changes",description:s="You have unsaved changes. Are you sure you want to leave this page? Your changes will be lost.",stayButtonText:l="Stay on Page",leaveButtonText:u="Leave Page"}){const f=K(({currentLocation:h,nextLocation:t})=>a&&h.pathname!==t.pathname),[m,g]=p.useState(!1),n=()=>{f.state==="blocked"&&f.proceed()},d=()=>{f.state==="blocked"&&f.reset()};return p.useEffect(()=>{g(f.state==="blocked")},[f.state,m]),p.useEffect(()=>{const h=t=>{a&&(t.preventDefault(),t.returnValue="")};return a&&window.addEventListener("beforeunload",h),()=>{window.removeEventListener("beforeunload",h)}},[a]),e.jsx($e,{open:m,onOpenChange:g,children:e.jsxs(qe,{children:[e.jsxs(Ue,{children:[e.jsx(Ge,{children:o}),e.jsx(He,{children:s})]}),e.jsxs(Be,{children:[e.jsx(Ye,{onClick:d,children:l}),e.jsx(We,{onClick:n,children:u})]})]})})}const Je=A.lazy(()=>y(()=>import("./FilePicker-Dd0_TkEg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Qe=A.lazy(()=>y(()=>import("./markdownEditor-BRduGGxR.js"),__vite__mapDeps([15,1,16,17,2,12,18,11,4,10,6,19,20,21,22]))),Xe=A.lazy(()=>y(()=>import("./date-picker-CSMApwxu.js"),__vite__mapDeps([23,1,9,4,2,24,6,25,8,19,11,12,18,17,20,26]))),Ze=A.lazy(()=>y(()=>import("./datetime-picker-D57VpP_6.js"),__vite__mapDeps([27,1,9,4,2,24,6,25,8,19,11,12,18,17,20,10,26]))),et=A.lazy(()=>y(()=>import("./URLInput-DAvqcRfP.js"),__vite__mapDeps([28,1,10,4,2,11,12,6,13])));function dt({itemType:a,fields:o,data:s,isNew:l}){const[u]=ge(),[f]=fe(),m=p.useCallback(t=>({id:s?.id??"",isDraft:String(l?!0:s?.isDraft??!1),...Object.fromEntries(Object.keys(t).map(r=>[r,s?.[r]??(t[r].type==="boolean"?!1:"")]))}),[s,o]),g=p.useMemo(()=>{const t={id:v().min(1,"ID is required").regex(/^[a-z0-9-]+$/,"ID can only include lowercase letters and numbers"),isDraft:v()};return Object.entries(o).forEach(([r,i])=>{let c;switch(i.type){case"boolean":c=Q();break;case"number":c=v().refine(S=>!isNaN(Number(S)),"Must be a valid number");break;case"url":c=v().url("Must be a valid URL");break;case"date":c=v();break;case"datetime":c=v();break;default:c=v()}i.optional?c=c.optional().or(X("")):i.type!=="boolean"&&(c=c.min(1,`${i.displayName} is required`)),t[r]=c}),Z(t)},[o]),n=ee({resolver:te(g),defaultValues:m(o)});p.useEffect(()=>{if(!n)return;const t=window.location.hash;t&&n.setFocus(t.substring(1))},[n]),p.useEffect(()=>{const t=r=>{(r.ctrlKey||r.metaKey)&&r.key==="s"&&(r.preventDefault(),(n.formState.isDirty||l)&&n.handleSubmit(d)())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[n,l,d]);async function d(t){const r={...t,isDraft:t.isDraft==="true",type:a};l?u(r):f(r)}const h=p.useMemo(()=>Object.entries(o).filter(([,t])=>t.type==="boolean"),[o]);return e.jsxs(ae,{...n,children:[e.jsxs("form",{onSubmit:n.handleSubmit(d),className:"space-y-4 max-w-[800px] w-[800px]",children:[e.jsx(N,{name:"id",control:n.control,rules:{required:!0},render:({field:t})=>e.jsxs(C,{id:"id",className:x(s?.id==="default"&&"hidden"),children:[e.jsx(b,{className:"flex gap-1 items-baseline",children:"ID"}),e.jsx(E,{children:e.jsx(P,{placeholder:"item-id",...n.register("id"),...t,onChange:r=>{const i=r.target.value.toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/[^a-z0-9-]/g,"");t.onChange(i)},onBlur:r=>{const i=r.target.value.trim().replace(/^-+|-+$/g,"");t.onChange(i)}})}),e.jsx(_,{})]})}),e.jsx(N,{name:"isDraft",control:n.control,render:({field:t})=>e.jsxs(C,{id:"isDraft",className:x("flex flex-col items-start",s?.id==="default"&&"hidden"),children:[e.jsxs("div",{className:"flex flex-row space-x-2",children:[e.jsx(E,{children:e.jsx(R,{id:"isDraft",...n.register("isDraft"),checked:t.value==="true",onCheckedChange:r=>{t.onChange(r===!0?"true":"false")}})}),e.jsx(b,{className:"flex gap-1 items-baseline",children:"Draft"})]}),e.jsx(w,{children:"Draft items are not visible on the published site"}),e.jsx(_,{})]})}),h.length>0&&e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(b,{children:"Flags"}),e.jsx("div",{className:"flex flex-row flex-wrap gap-4",children:h.map(([t,r])=>e.jsx(N,{name:t,control:n.control,render:({field:i})=>e.jsxs(C,{className:"flex flex-col items-start",children:[e.jsxs("div",{className:"flex flex-row space-x-2",children:[e.jsx(E,{children:e.jsx(R,{id:t,...n.register(t),checked:i.value==="true",onCheckedChange:c=>{i.onChange(c===!0?"true":"false")}})}),e.jsx(b,{className:"flex gap-1 items-baseline",children:r.displayName})]}),r.displayExtra&&e.jsx(w,{children:r.displayExtra}),e.jsx(_,{})]})},t))})]}),Object.entries(o).filter(([,t])=>t.type!=="boolean").map(([t,r])=>e.jsx(N,{name:t,control:n.control,rules:{required:!r.optional},render:({field:i})=>e.jsxs(C,{id:t,children:[e.jsxs(b,{className:"flex gap-1 items-baseline",children:[r.displayName,r.optional&&e.jsx("span",{className:"text-gray-400",children:"(optional)"})]}),e.jsx(E,{children:r.type==="markdown"?e.jsx(Qe,{name:t,register:n.register,className:"h-52",markdown:i.value,onChange:(c,S)=>{S||i.onChange(c)},placeholder:r.placeholder,fieldDisplayName:r.displayName}):r.type==="url"?e.jsx(et,{id:t,...n.register(t),placeholder:r.placeholder??"https://example.website/",...i}):r.type==="string"&&r.isUploadedFile?e.jsx(Je,{id:t,name:t,register:n.register,value:i.value,onChange:i.onChange}):r.type==="date"?e.jsx(Xe,{...n.register(t),date:i.value?new Date(i.value):void 0,onDateChange:c=>{i.onChange(c?c.toISOString():void 0)},placeholder:r.placeholder??"Select date"}):r.type==="datetime"?e.jsx(Ze,{id:t,...n.register(t),date:i.value?new Date(i.value):void 0,onDateTimeChange:c=>{i.onChange(c?c.toISOString():void 0)},placeholder:r.placeholder??"Select date and time"}):e.jsx(P,{...n.register(t),placeholder:r.placeholder,...i})}),r.displayExtra&&e.jsx(w,{children:r.displayExtra}),e.jsx(_,{})]})},t)),e.jsxs(J,{disabled:!n.formState.isDirty&&!l,type:"submit",children:[e.jsx(De,{})," ",n.watch("isDraft")==="true"?"Save Draft":"Save"]})]}),e.jsx(Ke,{hasUnsavedChanges:n.formState.isDirty})]})}export{dt as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Be049MAC.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/index-BJ-ODQ_I.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/root-BJWxWRqp.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/index-BJ-ODQ_I.js","/assets/authSlice-tIqx9OEB.js","/assets/utils-C_m54IzT.js","/assets/Loading-BsRbgW--.js","/assets/tslib.es6-De9GV7Vy.js","/assets/createLucideIcon-BweVylaW.js"],"css":["/assets/root-BctYpWwq.css"]},"routes/home":{"id":"routes/home","parentId":"root","path":"/admin","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/home-B4RFD4yZ.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/Loading-BsRbgW--.js","/assets/button-BGHUMWDX.js","/assets/types-CBu8yk7G.js","/assets/authSlice-tIqx9OEB.js","/assets/utils-C_m54IzT.js","/assets/createLucideIcon-BweVylaW.js","/assets/index-DO7DtA1Q.js","/assets/index-Ct_4ArX8.js","/assets/index-BJ-ODQ_I.js","/assets/tslib.es6-De9GV7Vy.js"],"css":[]},"routes/dashboard._layout":{"id":"routes/dashboard._layout","parentId":"root","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._layout-
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Be049MAC.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/index-BJ-ODQ_I.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/root-BJWxWRqp.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/index-BJ-ODQ_I.js","/assets/authSlice-tIqx9OEB.js","/assets/utils-C_m54IzT.js","/assets/Loading-BsRbgW--.js","/assets/tslib.es6-De9GV7Vy.js","/assets/createLucideIcon-BweVylaW.js"],"css":["/assets/root-BctYpWwq.css"]},"routes/home":{"id":"routes/home","parentId":"root","path":"/admin","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/home-B4RFD4yZ.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/Loading-BsRbgW--.js","/assets/button-BGHUMWDX.js","/assets/types-CBu8yk7G.js","/assets/authSlice-tIqx9OEB.js","/assets/utils-C_m54IzT.js","/assets/createLucideIcon-BweVylaW.js","/assets/index-DO7DtA1Q.js","/assets/index-Ct_4ArX8.js","/assets/index-BJ-ODQ_I.js","/assets/tslib.es6-De9GV7Vy.js"],"css":[]},"routes/dashboard._layout":{"id":"routes/dashboard._layout","parentId":"root","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._layout-C7VDt_lg.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/authSlice-tIqx9OEB.js","/assets/utils-C_m54IzT.js","/assets/index-Bb8pHI6J.js","/assets/x-BI8YVnoZ.js","/assets/button-BGHUMWDX.js","/assets/createLucideIcon-BweVylaW.js","/assets/index-DO7DtA1Q.js","/assets/index-kynsXaDO.js","/assets/index-Ct_4ArX8.js","/assets/chevron-down-CtNmiOMb.js","/assets/upload-C84AIRF5.js","/assets/external-link-LWykkN17.js","/assets/Loading-BsRbgW--.js","/assets/chevron-right-haBQNeuE.js","/assets/tslib.es6-De9GV7Vy.js","/assets/index-BJ-ODQ_I.js","/assets/index-BDqB5AyL.js"],"css":[]},"routes/dashboard":{"id":"routes/dashboard","parentId":"routes/dashboard._layout","path":"/admin/dashboard","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard-BgukdHmI.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/utils-C_m54IzT.js","/assets/index-g23Or4wZ.js"],"css":[]},"routes/dashboard.$collection.new":{"id":"routes/dashboard.$collection.new","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId/new","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection.new-BzhhS7bY.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/itemForm-CHorGD8x.js","/assets/utils-C_m54IzT.js","/assets/button-BGHUMWDX.js","/assets/index-DO7DtA1Q.js","/assets/types-CBu8yk7G.js","/assets/index-Ct_4ArX8.js","/assets/index-BJ-ODQ_I.js","/assets/createLucideIcon-BweVylaW.js","/assets/index-Bb8pHI6J.js","/assets/tslib.es6-De9GV7Vy.js"],"css":[]},"routes/dashboard.$collection":{"id":"routes/dashboard.$collection","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection-C3PwVUY_.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/button-BGHUMWDX.js","/assets/utils-C_m54IzT.js","/assets/index-g23Or4wZ.js","/assets/createLucideIcon-BweVylaW.js","/assets/calendar-DVBBYeOW.js","/assets/trash-BPu8wmdf.js","/assets/external-link-LWykkN17.js","/assets/index-DO7DtA1Q.js"],"css":[]},"routes/dashboard.$collection.$document":{"id":"routes/dashboard.$collection.$document","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId/:documentId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection._document-CC9YQNUJ.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/itemForm-CHorGD8x.js","/assets/utils-C_m54IzT.js","/assets/button-BGHUMWDX.js","/assets/index-DO7DtA1Q.js","/assets/types-CBu8yk7G.js","/assets/index-Ct_4ArX8.js","/assets/index-BJ-ODQ_I.js","/assets/createLucideIcon-BweVylaW.js","/assets/index-Bb8pHI6J.js","/assets/tslib.es6-De9GV7Vy.js"],"css":[]},"routes/dashboard.files":{"id":"routes/dashboard.files","parentId":"routes/dashboard._layout","path":"/admin/dashboard/files","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard.files-NMQ4Pzxd.js","imports":["/assets/chunk-EF7DTUVF-CaKisB5m.js","/assets/files-Qh5oy2Yj.js","/assets/utils-C_m54IzT.js","/assets/index-DO7DtA1Q.js","/assets/upload-C84AIRF5.js","/assets/createLucideIcon-BweVylaW.js","/assets/trash-BPu8wmdf.js","/assets/chevron-down-CtNmiOMb.js"],"css":[]}},"url":"/assets/manifest-f0acaf83.js","version":"f0acaf83"};
|
package/build/client/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="min-h-screen"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="modulepreload" href="/assets/manifest-
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="min-h-screen"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="modulepreload" href="/assets/manifest-f0acaf83.js"/><link rel="modulepreload" href="/assets/entry.client-Be049MAC.js"/><link rel="modulepreload" href="/assets/chunk-EF7DTUVF-CaKisB5m.js"/><link rel="modulepreload" href="/assets/index-BJ-ODQ_I.js"/><link rel="modulepreload" href="/assets/root-BJWxWRqp.js"/><link rel="modulepreload" href="/assets/authSlice-tIqx9OEB.js"/><link rel="modulepreload" href="/assets/utils-C_m54IzT.js"/><link rel="modulepreload" href="/assets/Loading-BsRbgW--.js"/><link rel="modulepreload" href="/assets/tslib.es6-De9GV7Vy.js"/><link rel="modulepreload" href="/assets/createLucideIcon-BweVylaW.js"/><title>Editorial Admin</title><meta name="robots" content="noindex"/><link rel="stylesheet" href="/assets/root-BctYpWwq.css"/></head><body class="h-full min-h-screen bg-background font-sans antialiased"><div class="flex gap-1 items-center justify-center min-h-screen"><svg xmlns="http://www.w3.org/2000/svg" width="28px" height="28px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg><p class="text-gray-600">Loading Editorial...</p></div><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_middleware":false,"unstable_optimizeDeps":false,"unstable_splitRouteModules":false,"unstable_subResourceIntegrity":false,"unstable_viteEnvironmentApi":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-f0acaf83.js";
|
|
2
2
|
import * as route0 from "/assets/root-BJWxWRqp.js";
|
|
3
3
|
|
|
4
4
|
window.__reactRouterRouteModules = {"root":route0};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isardsat/editorial-admin",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"tailwindcss": "^4.1.3",
|
|
78
78
|
"tailwindcss-animate": "^1.0.7",
|
|
79
79
|
"vaul": "^1.1.2",
|
|
80
|
-
"zod": "^
|
|
81
|
-
"@isardsat/editorial-common": "^6.
|
|
80
|
+
"zod": "^4.1.11",
|
|
81
|
+
"@isardsat/editorial-common": "^6.8.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@react-router/dev": "^7.7.0",
|