@oktis-works/admin 0.4.22 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/client/_astro/{ActivityWidget.DPHDSR70.js → ActivityWidget.DaftIB1V.js} +2 -2
  2. package/dist/client/_astro/{AdminBar.Cfe6Btfm.js → AdminBar.B-diRxPt.js} +2 -2
  3. package/dist/client/_astro/{AtGlanceWidget.BdmMxHd5.js → AtGlanceWidget.DcgTCF-o.js} +2 -2
  4. package/dist/client/_astro/BaseLayout.sayhdG_g.css +1 -0
  5. package/dist/client/_astro/ContentEditor.B1b1Ixz0.js +3 -0
  6. package/dist/client/_astro/ContentEditor.DGTZ51kU.js +1 -0
  7. package/dist/client/_astro/{ContentTypeWorkspace.C-17fiDL.js → ContentTypeWorkspace.CFzwh3Rc.js} +1 -1
  8. package/dist/client/_astro/CustomFieldsManager.DqCE6rSX.js +5 -0
  9. package/dist/client/_astro/DashboardHome.HrqKA0mK.js +1 -0
  10. package/dist/client/_astro/DashboardLayout.BEes7o_t.css +1 -0
  11. package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.CKDcT5kP.js → DashboardLayout.astro_astro_type_script_index_0_lang.sBNUxHjt.js} +1 -1
  12. package/dist/client/_astro/{Footer.CIzMoBJk.js → Footer.BYqLZvjY.js} +6 -6
  13. package/dist/client/_astro/{GeneralSettings.XVjUJxtp.js → GeneralSettings.C5lXnnvB.js} +1 -1
  14. package/dist/client/_astro/LogsManager.BSXD0gFG.js +1 -0
  15. package/dist/client/_astro/MediaLibrary.9tlXDGsx.js +1 -0
  16. package/dist/client/_astro/MenuManager.CfLmtMhF.js +1 -0
  17. package/dist/client/_astro/{PluginManager.D65lPRrH.js → PluginManager.Ba2R7ZVx.js} +2 -2
  18. package/dist/client/_astro/{PostTypesManager.dsx3ybTa.js → PostTypesManager.DqbyhhLF.js} +1 -1
  19. package/dist/client/_astro/{QuickDraftWidget.DYsI_PJ5.js → QuickDraftWidget.Dwsa5EVP.js} +2 -2
  20. package/dist/client/_astro/ResourceHubs.sI10AY3z.js +1 -0
  21. package/dist/client/_astro/TaxonomiesManager.BFd3zjNe.js +1 -0
  22. package/dist/client/_astro/TaxonomyTermsManager.C7ClYXtt.js +1 -0
  23. package/dist/client/_astro/{ThemeManager.CuhjguCi.js → ThemeManager.C4t-yZay.js} +2 -2
  24. package/dist/client/_astro/UserCreateForm.B-7pKOO6.js +1 -0
  25. package/dist/client/_astro/UsersManager.aI6-3vtM.js +1 -0
  26. package/dist/client/_astro/WebhooksManager.C3E91U9V.js +1 -0
  27. package/dist/client/_astro/api.DSIz0zxF.js +1 -0
  28. package/dist/client/_astro/client.BDaUmf7m.js +1 -0
  29. package/dist/client/_astro/custom-fields.pl-GPt9A.css +1 -0
  30. package/dist/client/_astro/dist.BqeNZlzo.js +1 -0
  31. package/dist/client/_astro/extensions.BD4YTWQq.js +1 -0
  32. package/dist/client/_astro/i18n.Tk18hqHh.js +1 -0
  33. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.DHHzJWgm.js → login.astro_astro_type_script_index_0_lang.CJiWhdn-.js} +1 -1
  34. package/dist/client/_astro/pt-BR.BvjbjXKW.js +1 -0
  35. package/dist/client/_astro/solid.TEtyrbLc.js +1 -0
  36. package/dist/client/_astro/{version.DPFOQ4hp.js → version.DWxe0ErB.js} +1 -1
  37. package/dist/client/_astro/web.C8wWxyYF.js +1 -0
  38. package/dist/server/chunks/{ContentEditor_Dat_38Nz.mjs → ContentEditor_Dv_mBfuW.mjs} +6 -6
  39. package/dist/server/chunks/{DashboardLayout_DsYrIyKK.mjs → DashboardLayout_BXHo9BuG.mjs} +32 -7
  40. package/dist/server/chunks/MediaLibrary_D_sY4Gec.mjs +466 -0
  41. package/dist/server/chunks/{_slug__MPfKFp1f.mjs → _slug__B8tdH53X.mjs} +1 -1
  42. package/dist/server/chunks/{access_dvh8pEEF.mjs → access_DGwoebwJ.mjs} +2 -2
  43. package/dist/server/chunks/custom-fields_D4w-58YN.mjs +1297 -0
  44. package/dist/server/chunks/{edit_BaSFaTjX.mjs → edit_CmlcxPrx.mjs} +2 -2
  45. package/dist/server/chunks/{general_CWkM-QPS.mjs → general_CqL-s9JH.mjs} +2 -2
  46. package/dist/server/chunks/{i18n_BJJWXenY.mjs → i18n_BgHPm3Sm.mjs} +227 -5
  47. package/dist/server/chunks/{index_DA7KSBNI.mjs → index_C-sL6cpt.mjs} +1 -1
  48. package/dist/server/chunks/{index_1F1_RTJb.mjs → index_CnISgdQh.mjs} +2 -2
  49. package/dist/server/chunks/{index_B4nb6VH_.mjs → index_D7qi5N5q.mjs} +2 -2
  50. package/dist/server/chunks/{index_Bck2SDPK.mjs → index_Ja5uaaGW.mjs} +2 -2
  51. package/dist/server/chunks/{index_DCsZz61C.mjs → index_ecE7x9Pe.mjs} +3 -3
  52. package/dist/server/chunks/{login_DnB1gNqL.mjs → login_s3hMBW1K.mjs} +1 -1
  53. package/dist/server/chunks/{logs_BArVlSoG.mjs → logs_CNOk_Lo5.mjs} +2 -2
  54. package/dist/server/chunks/menus_C-s2xfcQ.mjs +532 -0
  55. package/dist/server/chunks/{new_CSaDDm4Z.mjs → new_C74ZJuZQ.mjs} +2 -2
  56. package/dist/server/chunks/{new_D4KZk7Yr.mjs → new_HQ5WL67T.mjs} +2 -2
  57. package/dist/server/chunks/{plugins_Rnyim3HN.mjs → plugins_By35JLjE.mjs} +2 -2
  58. package/dist/server/chunks/{post-types_B9aran6P.mjs → post-types_Bh1mw5z0.mjs} +2 -2
  59. package/dist/server/chunks/{pt-BR_C4s8qQI4.mjs → pt-BR_CoM1872j.mjs} +184 -4
  60. package/dist/server/chunks/{taxonomies_BoQfQyXo.mjs → taxonomies_0otf1N0J.mjs} +2 -2
  61. package/dist/server/chunks/{taxonomy_IQtZsy_i.mjs → taxonomy_DFWo1ROb.mjs} +2 -2
  62. package/dist/server/chunks/{themes_DbXTXyPr.mjs → themes_BtciwLOq.mjs} +2 -2
  63. package/dist/server/chunks/{upload_DFhwOXyV.mjs → upload_DcYzx57H.mjs} +2 -2
  64. package/dist/server/chunks/{webhooks_rjPh4g3b.mjs → webhooks_3iJ3tOP0.mjs} +114 -31
  65. package/dist/server/entry.mjs +23 -23
  66. package/dist/server/virtual_astro_middleware.mjs +1 -1
  67. package/package.json +1 -1
  68. package/dist/client/_astro/BaseLayout.DZs74Ly2.css +0 -1
  69. package/dist/client/_astro/ContentEditor.C0QRayGL.js +0 -3
  70. package/dist/client/_astro/ContentEditor.DI_TzQ3t.js +0 -1
  71. package/dist/client/_astro/CustomFieldsManager.DWfyFNKg.js +0 -3
  72. package/dist/client/_astro/DashboardHome.DogWw0Mx.js +0 -1
  73. package/dist/client/_astro/DashboardLayout.cOPI1C7I.css +0 -1
  74. package/dist/client/_astro/LogsManager.Dj9eegoH.js +0 -1
  75. package/dist/client/_astro/MediaLibrary.DFdil0q8.js +0 -1
  76. package/dist/client/_astro/MenuManager.CInlK214.js +0 -19
  77. package/dist/client/_astro/ResourceHubs.C3EJHpe7.js +0 -1
  78. package/dist/client/_astro/TaxonomiesManager.BYcDeL3s.js +0 -1
  79. package/dist/client/_astro/TaxonomyTermsManager.DLD_SWSE.js +0 -1
  80. package/dist/client/_astro/UserCreateForm.YrvnokVf.js +0 -1
  81. package/dist/client/_astro/UsersManager.BWkuqIyw.js +0 -1
  82. package/dist/client/_astro/WebhooksManager.BLy6DI8f.js +0 -1
  83. package/dist/client/_astro/api.DSW9LMA5.js +0 -1
  84. package/dist/client/_astro/client.W0NY0lEa.js +0 -1
  85. package/dist/client/_astro/custom-fields.XYcte01g.css +0 -1
  86. package/dist/client/_astro/dist.Di6E6ZlC.js +0 -1
  87. package/dist/client/_astro/extensions.BbGSgyUX.js +0 -1
  88. package/dist/client/_astro/i18n.Ck_XVuPY.js +0 -1
  89. package/dist/client/_astro/pt-BR.BNlZx8-w.js +0 -1
  90. package/dist/client/_astro/solid.DN8T1HsY.js +0 -1
  91. package/dist/client/_astro/web.Bze9SKEA.js +0 -1
  92. package/dist/server/chunks/MediaLibrary_BmYgO6Lm.mjs +0 -335
  93. package/dist/server/chunks/custom-fields_Dp_CVTYc.mjs +0 -591
  94. package/dist/server/chunks/menus_CYoSRDEL.mjs +0 -170
  95. /package/dist/server/chunks/{BaseLayout_C_gR8Xx3.mjs → BaseLayout_CXafpVV9.mjs} +0 -0
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,u as m}from"./web.Bze9SKEA.js";import{n as h}from"./i18n.Ck_XVuPY.js";import{t as g}from"./api.DSW9LMA5.js";import{a as _,i as v,n as y,o as b}from"./dist.Di6E6ZlC.js";var x=d(`<div class="notice notice--error">`),S=d(`<div class=notice>`),C=d(`<div class=media-grid>`),w=d(`<div class=media-library><!$><!/><!$><!/><div class=upload-zone><p><strong></strong> ou</p><label class="btn btn-primary"style=cursor:pointer><!$><!/><input type=file multiple style=display:none></label><p class=muted></p></div><div class=toolbar><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/><!$><!/>`),ee=d(`<p class=muted>`),te=d(`<img loading=lazy>`,!0,!1,!1),T=d(`<button type=button class=media-card><div class=media-card__preview></div><div class=media-card__meta><span class=media-card__name></span><span class=muted>`),E=d(`<span class=media-card__ext>`),ne=d(`<img>`),re=d(`<div class="card media-details"><h3></h3><div class=media-details__preview></div><dl class=media-details__list><dt></dt><dd></dd><dt></dt><dd></dd><dt></dt><dd></dd><dt></dt><dd class=media-details__url><code></code><button class="btn btn-secondary btn-sm"type=button></button></dd></dl><!$><!/><!$><!/><div class=media-details__actions><!$><!/><!$><!/><!$><!/>`);function D(e){return Number.isFinite(e)?e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`:`—`}var O=e=>e.mime_type.startsWith(`image/`);function k(l){let{t:d}=h(),[k,A]=e([]),[ie,j]=e(0),[M,N]=e(1),[P,F]=e(``),[I,L]=e(``),[R,z]=e(``),[B,V]=e(``),[H,U]=e(!1),[W,G]=e(null),[ae,K]=e(!1),[q,J]=e(!1),Y=async()=>{try{let e=await g.listMedia({page:M(),limit:24,search:P()||void 0,mimeType:I()||void 0});A(e.data??[]),j(e.total??0)}catch(e){z(e instanceof Error?e.message:String(e))}};r(Y);let X=async()=>{N(1),await Y()},Z=async e=>{if(e.length===0)return;U(!0),z(``),V(``);let t=0;for(let n of Array.from(e))try{await g.uploadMedia(n,{alt:``}),t+=1}catch(e){z(`${n.name}: ${e instanceof Error?e.message:String(e)}`)}U(!1),t>0&&(V(d(`media.toasts.uploaded`,{count:t})),N(1),await Y())},oe=async e=>{if(confirm(d(`media.details.confirmDelete`,{filename:e.filename})))try{await g.deleteMedia(e.id),W()?.id===e.id&&G(null),await Y()}catch(e){z(e instanceof Error?e.message:String(e))}},se=async()=>{let e=W();if(e){J(!0),z(``);try{let t=await g.updateMedia(e.id,{alt:e.alt??``,caption:e.caption??``});G({...e,...t}),V(d(`media.details.saved`)),await Y()}catch(e){z(e instanceof Error?e.message:String(e))}finally{J(!1)}}},ce=async e=>{try{await navigator.clipboard.writeText(e),V(d(`media.details.copied`))}catch{z(d(`media.details.copyError`))}};return(()=>{var e=f(w),r=e.firstChild,[h,g]=s(r.nextSibling),A=h.nextSibling,[j,z]=s(A.nextSibling),V=j.nextSibling,U=V.firstChild,J=U.firstChild,Q=U.nextSibling,le=Q.firstChild,[ue,de]=s(le.nextSibling),fe=ue.nextSibling,pe=Q.nextSibling,$=V.nextSibling,me=$.firstChild,[he,ge]=s(me.nextSibling),_e=he.nextSibling,[ve,ye]=s(_e.nextSibling),be=ve.nextSibling,[xe,Se]=s(be.nextSibling),Ce=$.nextSibling,[we,Te]=s(Ce.nextSibling),Ee=we.nextSibling,[De,Oe]=s(Ee.nextSibling),ke=De.nextSibling,[Ae,je]=s(ke.nextSibling);return u(e,a(t,{get when(){return R()},get children(){var e=f(x);return u(e,R),e}}),h,g),u(e,a(t,{get when(){return B()},get children(){var e=f(S);return u(e,B),e}}),j,z),V.addEventListener(`drop`,e=>{e.preventDefault(),K(!1),e.dataTransfer&&Z(e.dataTransfer.files)}),V.addEventListener(`dragleave`,()=>K(!1)),V.addEventListener(`dragover`,e=>{e.preventDefault(),K(!0)}),u(J,()=>d(`media.upload.dropzone`)),u(Q,(()=>{var e=p(()=>!!H());return()=>e()?d(`media.upload.uploading`):d(`media.upload.select`)})(),ue,de),fe.addEventListener(`change`,e=>{e.currentTarget.files&&Z(e.currentTarget.files),e.currentTarget.value=``}),u(pe,()=>d(`media.upload.hint`)),u($,a(v,{name:`media-search`,get placeholder(){return d(`media.toolbar.search`)},get value(){return P()},onInput:e=>{F(e),X()}}),he,ge),u($,a(b,{name:`media-mime`,get placeholder(){return d(`media.toolbar.allTypes`)},get value(){return I()},get options(){return[{value:`image/png`,label:d(`media.mimeTypes.png`)},{value:`image/jpeg`,label:d(`media.mimeTypes.jpeg`)},{value:`image/gif`,label:d(`media.mimeTypes.gif`)},{value:`image/webp`,label:d(`media.mimeTypes.webp`)},{value:`image/svg+xml`,label:d(`media.mimeTypes.svg`)},{value:`application/pdf`,label:d(`media.mimeTypes.pdf`)},{value:`video/mp4`,label:d(`media.mimeTypes.mp4`)},{value:`audio/mpeg`,label:d(`media.mimeTypes.mp3`)}]},onChange:e=>{L(e),X()}}),ve,ye),u($,a(y,{variant:`secondary`,onClick:()=>void X(),get children(){return d(`media.toolbar.searchBtn`)}}),xe,Se),u(e,a(t,{get when(){return k().length>0},get fallback(){return(()=>{var e=f(ee);return u(e,()=>d(`media.empty`)),e})()},get children(){var e=f(C);return u(e,a(i,{get each(){return k()},children:e=>(()=>{var r=f(T),i=r.firstChild,o=i.nextSibling.firstChild,s=o.nextSibling;return r.$$click=()=>G(e),u(i,a(t,{get when(){return O(e)},get fallback(){return(()=>{var t=f(E);return u(t,()=>e.mime_type.split(`/`)[1]?.toUpperCase()??`FILE`),t})()},get children(){var t=f(te);return n(n=>{var r=e.url,i=e.alt??e.filename;return r!==n.e&&m(t,`src`,n.e=r),i!==n.t&&m(t,`alt`,n.t=i),n},{e:void 0,t:void 0}),t}})),u(o,()=>e.filename),u(s,()=>D(e.size)),n(t=>{var n=W()?.id===e.id,i=e.filename;return n!==t.e&&r.classList.toggle(`media-card--selected`,t.e=n),i!==t.t&&m(o,`title`,t.t=i),t},{e:void 0,t:void 0}),c(),r})()})),e}}),we,Te),u(e,a(_,{get page(){return M()},limit:24,get total(){return ie()},onPageChange:e=>{N(e),Y()}}),De,Oe),u(e,a(t,{get when(){return W()},children:e=>(()=>{var r=f(re),i=r.firstChild,o=i.nextSibling,l=o.nextSibling,p=l.firstChild,h=p.nextSibling,g=h.nextSibling,_=g.nextSibling,b=_.nextSibling,x=b.nextSibling,S=x.nextSibling,C=S.nextSibling.firstChild,w=C.nextSibling,te=l.nextSibling,[T,E]=s(te.nextSibling),k=T.nextSibling,[A,ie]=s(k.nextSibling),j=A.nextSibling,M=j.firstChild,[N,P]=s(M.nextSibling),F=N.nextSibling,[I,L]=s(F.nextSibling),R=I.nextSibling,[z,B]=s(R.nextSibling);return u(i,()=>d(`media.details.title`)),u(o,a(t,{get when(){return O(e())},get fallback(){return(()=>{var t=f(ee);return u(t,()=>e().mime_type),t})()},get children(){var t=f(ne);return n(n=>{var r=e().url,i=e().alt??``;return r!==n.e&&m(t,`src`,n.e=r),i!==n.t&&m(t,`alt`,n.t=i),n},{e:void 0,t:void 0}),t}})),u(p,()=>d(`media.details.file`)),u(h,()=>e().filename),u(g,()=>d(`media.details.type`)),u(_,()=>e().mime_type),u(b,()=>d(`media.details.size`)),u(x,()=>D(e().size)),u(S,()=>d(`media.details.url`)),u(C,()=>e().url),w.$$click=()=>void ce(e().url),u(w,()=>d(`media.details.copy`)),u(r,a(v,{name:`media-alt`,get label(){return d(`media.details.alt`)},get value(){return e().alt??``},onInput:t=>G({...e(),alt:t})}),T,E),u(r,a(v,{name:`media-caption`,get label(){return d(`media.details.caption`)},get value(){return e().caption??``},onInput:t=>G({...e(),caption:t})}),A,ie),u(j,a(y,{variant:`primary`,get disabled(){return q()},get loading(){return q()},onClick:()=>void se(),get children(){return d(`media.details.save`)}}),N,P),u(j,a(y,{variant:`danger`,onClick:()=>void oe(e()),get children(){return d(`media.details.delete`)}}),I,L),u(j,a(y,{variant:`secondary`,onClick:()=>G(null),get children(){return d(`media.details.close`)}}),z,B),c(),r})()}),Ae,je),n(e=>{var t=!!(ae()||l.focusUpload),n=H();return t!==e.e&&V.classList.toggle(`upload-zone--active`,e.e=t),n!==e.t&&o(fe,`disabled`,e.t=n),e},{e:void 0,t:void 0}),e})()}l([`click`]);export{k as MediaLibrary};
@@ -1,19 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p}from"./web.Bze9SKEA.js";import{n as m}from"./i18n.Ck_XVuPY.js";import{t as h}from"./api.DSW9LMA5.js";var g=d(`<div class="notice notice--error">`),_=d(`<div class=notice>`),v=d(`<table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody>`),y=d(`<div class=card>`),b=d(`<div class=menus-manager><!$><!/><!$><!/><div class=manager-toolbar><p class=muted></p><button class="btn btn-primary"type=button>+ <!$><!/></button></div><!$><!/><!$><!/><style>
2
- .manager-toolbar {
3
- display: flex;
4
- align-items: center;
5
- justify-content: space-between;
6
- gap: 1rem;
7
- margin-bottom: 1rem;
8
- }
9
- .manager-toolbar p { margin: 0; }
10
- .menu-form { display: grid; gap: 1rem; margin-bottom: 1rem; }
11
- .menu-form h3 { margin: 0; }
12
- .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
13
- .menu-form label { display: grid; gap: 0.4rem; }
14
- .menu-items-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
15
- .form-actions { display: flex; gap: 0.5rem; }
16
- .empty-state { margin: 0; }
17
- .menu-actions { white-space: nowrap; text-align: right; }
18
- @media (max-width: 720px) { .manager-toolbar, .form-grid { grid-template-columns: 1fr; display: grid; } }
19
- `),x=d(`<form class="card menu-form"><h3></h3><div class=form-grid><label><!$><!/><input class=input required></label><label><!$><!/><input class=input></label></div><label><!$><!/><textarea class="input menu-items-input"rows=12></textarea><small class=muted></small></label><div class=form-actions><button class="btn btn-primary"type=submit></button><button class=btn type=button>`),S=d(`<div class=skeleton>`),C=d(`<p class="muted empty-state">`),w=d(`<tr><td></td><td><code></code></td><td></td><td class=menu-actions><button class="btn btn-secondary btn-sm"type=button></button> <button class="btn btn-danger btn-sm"type=button>`);function T(e){return e.toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^a-z0-9]+/g,`-`).replace(/(^-|-$)/g,``)}function E(e){return JSON.stringify(e??[],null,2)}function D(){let{t:l}=m(),[d,D]=e([]),[O,k]=e(null),[A,j]=e(!0),[M,N]=e(!1),[P,F]=e(``),[I,L]=e(``),R=async()=>{j(!0);try{D(await h.getMenus())}catch(e){F(e instanceof Error?e.message:String(e))}finally{j(!1)}};r(R);let z=e=>{k({id:e?.id,name:e?.name??``,slug:e?.slug??``,items:E(e?.items)}),F(``),L(``)},B=async e=>{e.preventDefault();let t=O();if(t){N(!0),F(``);try{let e=JSON.parse(t.items||`[]`);if(!Array.isArray(e))throw Error(l(`menus.invalidItems`));let n={name:t.name,slug:t.slug||T(t.name),items:e};t.id?await h.updateMenu(t.id,n):await h.createMenu(n),k(null),L(l(`menus.saved`)),await R()}catch(e){F(e instanceof Error?e.message:String(e))}finally{N(!1)}}},V=async e=>{if(e.id&&confirm(l(`menus.confirmDelete`,{name:e.name}))){F(``);try{await h.deleteMenu(e.id),L(l(`menus.deleted`)),await R()}catch(e){F(e instanceof Error?e.message:String(e))}}};return(()=>{var e=f(b),r=e.firstChild,[m,h]=s(r.nextSibling),T=m.nextSibling,[E,D]=s(T.nextSibling),j=E.nextSibling,N=j.firstChild,F=N.nextSibling,L=F.firstChild.nextSibling,[R,H]=s(L.nextSibling),U=j.nextSibling,[W,G]=s(U.nextSibling),K=W.nextSibling,[q,J]=s(K.nextSibling);return q.nextSibling,u(e,a(t,{get when(){return P()},get children(){var e=f(g);return u(e,P),e}}),m,h),u(e,a(t,{get when(){return I()},get children(){var e=f(_);return u(e,I),e}}),E,D),u(N,()=>l(`menus.hint`)),F.$$click=()=>z(),u(F,()=>l(`menus.new`),R,H),u(e,a(t,{get when(){return O()},children:e=>(()=>{var t=f(x),r=t.firstChild,i=r.nextSibling,a=i.firstChild,d=a.firstChild,[m,h]=s(d.nextSibling),g=m.nextSibling,_=a.nextSibling,v=_.firstChild,[y,b]=s(v.nextSibling),S=y.nextSibling,C=i.nextSibling,w=C.firstChild,[T,E]=s(w.nextSibling),D=T.nextSibling,O=D.nextSibling,A=C.nextSibling.firstChild,j=A.nextSibling;return t.addEventListener(`submit`,B),u(r,(()=>{var t=p(()=>!!e().id);return()=>t()?l(`menus.edit`):l(`menus.create`)})()),u(a,()=>l(`menus.name`),m,h),g.$$input=t=>k({...e(),name:t.currentTarget.value}),u(_,()=>l(`menus.slug`),y,b),S.$$input=t=>k({...e(),slug:t.currentTarget.value}),u(C,()=>l(`menus.items`),T,E),D.$$input=t=>k({...e(),items:t.currentTarget.value}),u(O,()=>l(`menus.itemsHint`)),u(A,()=>l(`common.save`)),j.$$click=()=>k(null),u(j,()=>l(`common.cancel`)),n(()=>o(A,`disabled`,M())),n(()=>o(g,`value`,e().name)),n(()=>o(S,`value`,e().slug)),n(()=>o(D,`value`,e().items)),c(),t})()}),W,G),u(e,a(t,{get when(){return!A()},get fallback(){return(()=>{var e=f(S);return u(e,()=>l(`common.loading`)),e})()},get children(){var e=f(y);return u(e,a(t,{get when(){return d().length>0},get fallback(){return(()=>{var e=f(C);return u(e,()=>l(`menus.empty`)),e})()},get children(){var e=f(v),t=e.firstChild,n=t.firstChild.firstChild,r=n.nextSibling,o=r.nextSibling,s=t.nextSibling;return u(n,()=>l(`menus.name`)),u(r,()=>l(`menus.slug`)),u(o,()=>l(`menus.items`)),u(s,a(i,{get each(){return d()},children:e=>(()=>{var t=f(w),n=t.firstChild,r=n.nextSibling,i=r.firstChild,a=r.nextSibling,o=a.nextSibling.firstChild,s=o.nextSibling.nextSibling;return u(n,()=>e.name),u(i,()=>e.slug),u(a,(()=>{var t=p(()=>!!Array.isArray(e.items));return()=>t()?e.items.length:0})()),o.$$click=()=>z(e),u(o,()=>l(`common.edit`)),s.$$click=()=>void V(e),u(s,()=>l(`common.delete`)),c(),t})()})),e}})),e}}),q,J),c(),e})()}l([`click`,`input`]);export{D as MenuManager};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,u as p}from"./web.Bze9SKEA.js";import{n as m}from"./i18n.Ck_XVuPY.js";import{t as h}from"./api.DSW9LMA5.js";var g=d(`<div class="notice notice--error">`),_=d(`<div class=resource-hub><!$><!/><div class=access-grid><section class=card><h3></h3><button class="btn btn-primary"type=button>+ <!$><!/></button><!$><!/><table class=table><tbody></tbody></table></section><section class=card><h3></h3><button class="btn btn-primary"type=button>+ <!$><!/></button><!$><!/><table class=table><tbody>`),v=d(`<form class=resource-form><input class=input required><input class=input required><input class=input><button class="btn btn-primary"type=submit>`),y=d(`<button class="btn btn-danger"type=button>`),b=d(`<tr><td></td><td></td><td><button class=btn type=button></button><!$><!/>`),x=d(`<tr><td></td><td></td><td></td><td><button class=btn type=button></button><button class="btn btn-danger"type=button>`);function S(){let{t:l}=m(),[d,S]=e([]),[C,w]=e([]),[T,E]=e(null),[D,O]=e(null),[k,A]=e(``),j=async()=>{try{S(await h.listRoles()),w((await h.listTenants({limit:100})).data??[])}catch(e){A(e instanceof Error?e.message:String(e))}};return r(j),(()=>{var e=f(_),r=e.firstChild,[m,S]=s(r.nextSibling),w=m.nextSibling.firstChild,M=w.firstChild,N=M.nextSibling,P=N.firstChild.nextSibling,[F,I]=s(P.nextSibling),L=N.nextSibling,[R,z]=s(L.nextSibling),B=R.nextSibling.firstChild,V=w.nextSibling,H=V.firstChild,U=H.nextSibling,W=U.firstChild.nextSibling,[G,K]=s(W.nextSibling),q=U.nextSibling,[J,Y]=s(q.nextSibling),X=J.nextSibling.firstChild;return u(e,a(t,{get when(){return k()},get children(){var e=f(g);return u(e,k),e}}),m,S),u(M,()=>l(`access.roles`)),N.$$click=()=>E({name:``,slug:``,permissions:[]}),u(N,()=>l(`common.create`),F,I),u(w,a(t,{get when(){return T()},children:e=>(()=>{var t=f(v),r=t.firstChild,i=r.nextSibling,a=i.nextSibling,s=a.nextSibling;return t.addEventListener(`submit`,t=>{t.preventDefault(),(e().id?h.updateRole(e().id,e()):h.createRole(e())).then(()=>(E(null),j())).catch(e=>A(e instanceof Error?e.message:String(e)))}),r.$$input=t=>E({...e(),name:t.currentTarget.value}),i.$$input=t=>E({...e(),slug:t.currentTarget.value}),a.$$input=t=>E({...e(),permissions:t.currentTarget.value.split(`,`).map(e=>e.trim()).filter(Boolean)}),u(s,()=>l(`common.save`)),n(e=>{var t=l(`resources.name`),n=l(`resources.slug`),o=l(`access.permissions`);return t!==e.e&&p(r,`placeholder`,e.e=t),n!==e.t&&p(i,`placeholder`,e.t=n),o!==e.a&&p(a,`placeholder`,e.a=o),e},{e:void 0,t:void 0,a:void 0}),n(()=>o(r,`value`,e().name??``)),n(()=>o(i,`value`,e().slug??``)),n(()=>o(a,`value`,(e().permissions??[]).join(`, `))),c(),t})()}),R,z),u(B,a(i,{get each(){return d()},children:e=>(()=>{var n=f(b),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,d=o.firstChild,p=d.nextSibling,[m,g]=s(p.nextSibling);return u(r,()=>e.name),u(i,()=>e.slug),d.$$click=()=>E(e),u(d,()=>l(`common.edit`)),u(o,a(t,{get when(){return!e.is_system},get children(){var t=f(y);return t.$$click=()=>void h.deleteRole(e.id).then(j),u(t,()=>l(`common.delete`)),c(),t}}),m,g),c(),n})()})),u(H,()=>l(`access.tenants`)),U.$$click=()=>O({name:``,slug:``}),u(U,()=>l(`common.create`),G,K),u(V,a(t,{get when(){return D()},children:e=>(()=>{var t=f(v),r=t.firstChild,i=r.nextSibling,a=i.nextSibling,s=a.nextSibling;return t.addEventListener(`submit`,t=>{t.preventDefault(),(e().id?h.updateTenant(e().id,e()):h.createTenant(e())).then(()=>(O(null),j())).catch(e=>A(e instanceof Error?e.message:String(e)))}),r.$$input=t=>O({...e(),name:t.currentTarget.value}),i.$$input=t=>O({...e(),slug:t.currentTarget.value}),a.$$input=t=>O({...e(),domain:t.currentTarget.value}),u(s,()=>l(`common.save`)),n(e=>{var t=l(`resources.name`),n=l(`resources.slug`),o=l(`access.domain`);return t!==e.e&&p(r,`placeholder`,e.e=t),n!==e.t&&p(i,`placeholder`,e.t=n),o!==e.a&&p(a,`placeholder`,e.a=o),e},{e:void 0,t:void 0,a:void 0}),n(()=>o(r,`value`,e().name??``)),n(()=>o(i,`value`,e().slug??``)),n(()=>o(a,`value`,e().domain??``)),c(),t})()}),J,Y),u(X,a(i,{get each(){return C()},children:e=>(()=>{var t=f(x),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.nextSibling.firstChild,o=a.nextSibling;return u(n,()=>e.name),u(r,()=>e.slug),u(i,()=>e.status),a.$$click=()=>O(e),u(a,()=>l(`common.edit`)),o.$$click=()=>e.id&&void h.deleteTenant(e.id).then(j),u(o,()=>l(`common.delete`)),c(),t})()})),c(),e})()}l([`click`,`input`]);export{S as AccessManager};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,u as m}from"./web.Bze9SKEA.js";import{n as h}from"./i18n.Ck_XVuPY.js";import{t as g}from"./api.DSW9LMA5.js";var _=d(`<div class="notice notice--error">`),v=d(`<div class=taxonomies-manager><!$><!/><form class=card><h3></h3><div class=form-grid><label><!$><!/><input class=input required></label><label><!$><!/><input class=input pattern=[a-z0-9_]*></label><label><input type=checkbox> <!$><!/></label></div><fieldset><legend></legend><!$><!/></fieldset><button type=submit class="btn btn-primary"></button></form><table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody>`),y=d(`<label><input type=checkbox> <!$><!/> (<!$><!/>)`),b=d(`<button type=button class="btn btn-danger">`),x=d(`<tr><td><!$><!/> (<!$><!/>)</td><td></td><td></td><td>`),ee=d(`<label style=margin-right:0.75rem><input type=checkbox> <!$><!/>`);function S(){let{t:l}=h(),[d,S]=e([]),[C,w]=e([]),[T,E]=e(``),[D,O]=e(!1),[k,A]=e({name:``,slug:``,hierarchical:!1,attachTo:[]}),j=async()=>{try{let[e,t]=await Promise.all([g.getTaxonomies(),g.getContentTypes()]);S(e),w(t)}catch(e){E(e instanceof Error?e.message:String(e))}};r(j);let M=async e=>{e.preventDefault(),E(``),O(!0);try{await g.createTaxonomy({name:k().name,slug:k().slug||void 0,hierarchical:k().hierarchical,attachTo:k().attachTo,labels:{singular_name:k().name}}),A({name:``,slug:``,hierarchical:!1,attachTo:[]}),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}finally{O(!1)}},N=async(e,t)=>{let n=e.attachTo?.includes(t);try{n?await g.detachTaxonomy(e.slug,t):await g.attachTaxonomy(e.slug,t),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}},P=async e=>{try{await g.deleteTaxonomy(e),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}};return(()=>{var e=f(v),r=e.firstChild,[h,g]=s(r.nextSibling),S=h.nextSibling,w=S.firstChild,E=w.nextSibling,O=E.firstChild,j=O.firstChild,[F,I]=s(j.nextSibling),L=F.nextSibling,R=O.nextSibling,z=R.firstChild,[B,V]=s(z.nextSibling),H=B.nextSibling,U=R.nextSibling,W=U.firstChild,G=W.nextSibling.nextSibling,[K,q]=s(G.nextSibling),J=E.nextSibling,Y=J.firstChild,te=Y.nextSibling,[ne,re]=s(te.nextSibling),X=J.nextSibling,Z=S.nextSibling.firstChild,Q=Z.firstChild.firstChild,$=Q.nextSibling,ie=$.nextSibling,ae=Z.nextSibling;return u(e,a(t,{get when(){return T()},get children(){var e=f(_);return u(e,T),e}}),h,g),S.addEventListener(`submit`,M),u(w,()=>l(`settings.taxonomies.form.title`)),u(O,()=>l(`settings.taxonomies.form.name`),F,I),L.$$input=e=>A({...k(),name:e.currentTarget.value}),u(R,()=>l(`settings.taxonomies.form.slug`),B,V),H.$$input=e=>A({...k(),slug:e.currentTarget.value}),W.addEventListener(`change`,e=>A({...k(),hierarchical:e.currentTarget.checked})),u(U,()=>l(`settings.taxonomies.form.hierarchical`),K,q),u(Y,()=>l(`settings.taxonomies.form.attachTo`)),u(J,a(i,{get each(){return C()},children:e=>(()=>{var t=f(y),r=t.firstChild,i=r.nextSibling.nextSibling,[a,c]=s(i.nextSibling),l=a.nextSibling.nextSibling,[d,p]=s(l.nextSibling);return d.nextSibling,r.addEventListener(`change`,t=>A({...k(),attachTo:t.currentTarget.checked?[...k().attachTo,e.slug]:k().attachTo.filter(t=>t!==e.slug)})),u(t,()=>e.pluralLabel,a,c),u(t,()=>e.slug,d,p),n(()=>o(r,`checked`,k().attachTo.includes(e.slug))),t})()}),ne,re),u(X,()=>l(`settings.taxonomies.form.create`)),u(Q,()=>l(`settings.taxonomies.table.taxonomy`)),u($,()=>l(`settings.taxonomies.table.hierarchical`)),u(ie,()=>l(`settings.taxonomies.table.attachedTypes`)),u(ae,a(i,{get each(){return d()},children:e=>(()=>{var r=f(x),d=r.firstChild,m=d.firstChild,[h,g]=s(m.nextSibling),_=h.nextSibling.nextSibling,[v,y]=s(_.nextSibling);v.nextSibling;var S=d.nextSibling,w=S.nextSibling,T=w.nextSibling;return u(d,()=>e.name,h,g),u(d,()=>e.slug,v,y),u(S,(()=>{var t=p(()=>!!e.hierarchical);return()=>t()?l(`common.yes`):l(`common.no`)})()),u(w,a(i,{get each(){return C()},children:t=>(()=>{var r=f(ee),i=r.firstChild,a=i.nextSibling.nextSibling,[c,l]=s(a.nextSibling);return i.addEventListener(`change`,()=>N(e,t.slug)),u(r,()=>t.slug,c,l),n(()=>o(i,`checked`,e.attachTo?.includes(t.slug)??!1)),r})()})),u(T,a(t,{get when(){return e.source!==`CORE`},get children(){var t=f(b);return t.$$click=()=>P(e.slug),u(t,()=>l(`settings.taxonomies.table.actions.remove`)),c(),t}})),r})()})),n(e=>{var t=l(`settings.taxonomies.form.slugHint`),n=D();return t!==e.e&&m(H,`title`,e.e=t),n!==e.t&&o(X,`disabled`,e.t=n),e},{e:void 0,t:void 0}),n(()=>o(L,`value`,k().name)),n(()=>o(H,`value`,k().slug)),n(()=>o(W,`checked`,k().hierarchical)),c(),e})()}l([`input`,`click`]);export{S as TaxonomiesManager};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p}from"./web.Bze9SKEA.js";import{n as m}from"./i18n.Ck_XVuPY.js";import{t as h}from"./api.DSW9LMA5.js";var g=d(`<div class="notice notice--error">`),_=d(`<button class=btn type=button>`),v=d(`<form class="card term-form"><h3></h3><label><!$><!/><input class=input required></label><label><!$><!/><input class=input></label><label><!$><!/><textarea class=input rows=3></textarea></label><div class=form-actions><button class="btn btn-primary"type=submit></button><!$><!/>`),y=d(`<table class=table><thead><tr><th></th><th></th><th></th></tr></thead><tbody>`),b=d(`<div class=card><div class=card-header><div><h3></h3><p class=muted></p></div><span class=badge></span></div><!$><!/>`),x=d(`<div class=terms-panel><!$><!/><!$><!/><!$><!/>`),S=d(`<p class=muted>`),C=d(`<tr><td></td><td></td><td><button class="btn btn-secondary btn-sm"type=button></button> <button class="btn btn-danger btn-sm"type=button>`);function w(l){let{t:d}=m(),[w,T]=e(null),[E,D]=e([]),[O,k]=e(``),[A,j]=e(``),[M,N]=e(``),[P,F]=e(null),[I,L]=e(``),[R,z]=e(!1),B=async()=>{if(l.taxonomySlug)try{let[e,t]=await Promise.all([h.getTaxonomies(),h.getTaxonomyTerms(l.taxonomySlug)]);T(e.find(e=>e.slug===l.taxonomySlug)??null),D(t)}catch(e){L(e instanceof Error?e.message:String(e))}};r(B);let V=()=>{F(null),k(``),j(``),N(``)},H=e=>{F(e.id??null),k(e.name),j(e.slug),N(e.description??``),L(``)},U=async e=>{e.preventDefault(),L(``),z(!0);try{let e={name:O(),slug:A()||void 0,description:M()||void 0};P()?await h.updateTaxonomyTerm(l.taxonomySlug,P(),e):await h.createTaxonomyTerm(l.taxonomySlug,e),V(),await B()}catch(e){L(e instanceof Error?e.message:String(e))}finally{z(!1)}},W=async e=>{if(e.id&&confirm(d(`content.taxonomy.confirmDelete`,{name:e.name})))try{await h.deleteTaxonomyTerm(l.taxonomySlug,e.id),await B()}catch(e){L(e instanceof Error?e.message:String(e))}};return(()=>{var e=f(x),r=e.firstChild,[m,h]=s(r.nextSibling),T=m.nextSibling,[D,F]=s(T.nextSibling),L=D.nextSibling,[z,B]=s(L.nextSibling);return u(e,a(t,{get when(){return I()},get children(){var e=f(g);return u(e,I),e}}),m,h),u(e,a(t,{get when(){return p(()=>!w())()&&l.taxonomySlug},get children(){var e=f(g);return u(e,()=>d(`content.taxonomy.notFound`)),e}}),D,F),u(e,a(t,{get when(){return w()},get children(){return[(()=>{var e=f(v),r=e.firstChild,i=r.nextSibling,l=i.firstChild,[m,h]=s(l.nextSibling),g=m.nextSibling,y=i.nextSibling,b=y.firstChild,[x,S]=s(b.nextSibling),C=x.nextSibling,w=y.nextSibling,T=w.firstChild,[E,D]=s(T.nextSibling),F=E.nextSibling,I=w.nextSibling,L=I.firstChild,z=L.nextSibling,[B,H]=s(z.nextSibling);return e.addEventListener(`submit`,U),u(r,(()=>{var e=p(()=>!!P());return()=>e()?d(`content.taxonomy.editTerm`):d(`content.taxonomy.addTerm`)})()),u(i,()=>d(`content.taxonomy.name`),m,h),g.$$input=e=>k(e.currentTarget.value),u(y,()=>d(`content.taxonomy.slug`),x,S),C.$$input=e=>j(e.currentTarget.value),u(w,()=>d(`content.taxonomy.description`),E,D),F.$$input=e=>N(e.currentTarget.value),u(L,(()=>{var e=p(()=>!!P());return()=>e()?d(`common.save`):d(`content.taxonomy.add`)})()),u(I,a(t,{get when(){return P()},get children(){var e=f(_);return e.$$click=V,u(e,()=>d(`common.cancel`)),c(),e}}),B,H),n(()=>o(L,`disabled`,R())),n(()=>o(g,`value`,O())),n(()=>o(C,`value`,A())),n(()=>o(F,`value`,M())),c(),e})(),(()=>{var e=f(b),n=e.firstChild,r=n.firstChild,o=r.firstChild,m=o.nextSibling,h=r.nextSibling,g=n.nextSibling,[_,v]=s(g.nextSibling);return u(o,()=>w().name),u(m,(()=>{var e=p(()=>!!l.contentType);return()=>e()?`${d(`content.taxonomy.attachedTo`)}: ${l.contentType}`:d(`content.taxonomy.descriptionHint`)})()),u(h,()=>E().length),u(e,a(t,{get when(){return E().length>0},get fallback(){return(()=>{var e=f(S);return u(e,()=>d(`content.taxonomy.empty`)),e})()},get children(){var e=f(y),t=e.firstChild,n=t.firstChild.firstChild,r=n.nextSibling,o=t.nextSibling;return u(n,()=>d(`content.taxonomy.name`)),u(r,()=>d(`content.taxonomy.slug`)),u(o,a(i,{get each(){return E()},children:e=>(()=>{var t=f(C),n=t.firstChild,r=n.nextSibling,i=r.nextSibling.firstChild,a=i.nextSibling.nextSibling;return u(n,()=>e.name),u(r,()=>e.slug),i.$$click=()=>H(e),u(i,()=>d(`common.edit`)),a.$$click=()=>void W(e),u(a,()=>d(`content.taxonomy.delete`)),c(),t})()})),e}}),_,v),e})()]}}),z,B),e})()}l([`input`,`click`]);export{w as TaxonomyTermsManager};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p}from"./web.Bze9SKEA.js";import{n as m}from"./i18n.Ck_XVuPY.js";import{t as h}from"./api.DSW9LMA5.js";var g=d(`<div class="notice notice--error">`),_=d(`<div class=user-create><!$><!/><form class=card><h3></h3><div class=form-grid><label><!$><!/><input class=input required></label><label><!$><!/><input class=input type=email required></label><label><!$><!/><span class=muted></span><input class=input type=password required minlength=8></label><label><!$><!/><select class=input><option value></option><!$><!/></select></label></div><p class=muted><!$><!/> <!$><!/> — <!$><!/> <!$><!/>.</p><div class=media-details__actions><button class="btn btn-primary"type=submit></button><a class="btn btn-secondary"href=/users>`),ee=d(`<option><!$><!/> (<!$><!/>)`);function v(){let{t:l}=m(),[d,v]=e(``),[y,te]=e(``),[b,ne]=e(``),[x,S]=e(``),[C,w]=e([]),[T,E]=e(``),[D,O]=e(!1);r(async()=>{try{let e=await h.listRoles();w(e),S(e.find(e=>e.slug===`EDITOR`)?.id??e[0]?.id??``)}catch{}});let re=async e=>{if(e.preventDefault(),E(``),b().length<8){E(l(`users.detail.passwordError`));return}O(!0);try{await h.createUser({name:d(),email:y(),password:b(),roleId:x()||void 0}),window.location.href=`/users`}catch(e){E(e instanceof Error?e.message:String(e)),O(!1)}};return(()=>{var e=f(_),r=e.firstChild,[m,h]=s(r.nextSibling),w=m.nextSibling,E=w.firstChild,O=E.nextSibling,k=O.firstChild,ie=k.firstChild,[A,j]=s(ie.nextSibling),M=A.nextSibling,N=k.nextSibling,P=N.firstChild,[F,ae]=s(P.nextSibling),I=F.nextSibling,L=N.nextSibling,oe=L.firstChild,[R,z]=s(oe.nextSibling),B=R.nextSibling,V=B.nextSibling,H=L.nextSibling,U=H.firstChild,[W,G]=s(U.nextSibling),K=W.nextSibling,q=K.firstChild,se=q.nextSibling,[ce,le]=s(se.nextSibling),J=O.nextSibling,ue=J.firstChild,[Y,de]=s(ue.nextSibling),fe=Y.nextSibling.nextSibling,[X,pe]=s(fe.nextSibling),me=X.nextSibling.nextSibling,[Z,he]=s(me.nextSibling),ge=Z.nextSibling.nextSibling,[Q,_e]=s(ge.nextSibling);Q.nextSibling;var $=J.nextSibling.firstChild,ve=$.nextSibling;return u(e,a(t,{get when(){return T()},get children(){var e=f(g);return u(e,T),e}}),m,h),w.addEventListener(`submit`,re),u(E,()=>l(`users.new`)),u(k,()=>l(`users.detail.fields.name`),A,j),M.$$input=e=>v(e.currentTarget.value),u(N,()=>l(`users.detail.fields.email`),F,ae),I.$$input=e=>te(e.currentTarget.value),u(L,()=>l(`users.detail.fields.password`),R,z),u(B,()=>l(`users.detail.passwordPrompt`,{email:``})),V.$$input=e=>ne(e.currentTarget.value),u(H,()=>l(`users.detail.fields.role`),W,G),K.addEventListener(`change`,e=>S(e.currentTarget.value)),u(q,()=>l(`users.detail.rolePlaceholder`)),u(K,a(i,{get each(){return C()},children:e=>(()=>{var t=f(ee),r=t.firstChild,[i,a]=s(r.nextSibling),c=i.nextSibling.nextSibling,[l,d]=s(c.nextSibling);return l.nextSibling,u(t,()=>e.name,i,a),u(t,()=>e.slug,l,d),n(()=>o(t,`value`,e.id)),t})()}),ce,le),u(J,()=>l(`common.save`),Y,de),u(J,()=>l(`users.new`).toLowerCase(),X,pe),u(J,()=>l(`users.detail.fields.role`),Z,he),u(J,()=>l(`users.toolbar.newBtn`).toLowerCase(),Q,_e),u($,(()=>{var e=p(()=>!!D());return()=>e()?l(`common.loading`):l(`common.create`)})()),u(ve,()=>l(`common.back`)),n(()=>o($,`disabled`,D())),n(()=>o(M,`value`,d())),n(()=>o(I,`value`,y())),n(()=>o(V,`value`,b())),n(()=>o(K,`value`,x())),c(),e})()}l([`input`]);export{v as UserCreateForm};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f}from"./web.Bze9SKEA.js";import{n as p}from"./i18n.Ck_XVuPY.js";import{t as m}from"./api.DSW9LMA5.js";import{a as h,i as g,n as _,o as v,t as y}from"./dist.Di6E6ZlC.js";var b=d(`<div class="notice notice--error">`),x=d(`<div class=notice>`),S=d(`<table class=users-table><thead><tr><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody>`),C=d(`<div class=users-manager><!$><!/><!$><!/><div class=toolbar><!$><!/><!$><!/><a class="btn btn-primary"href=/users/new></a><!$><!/></div><!$><!/><!$><!/><!$><!/>`),w=d(`<p class=muted>`),T=d(`<tr><td></td><td class=muted></td><td></td><td><span class=status-dot></span><!$><!/></td><td class=muted></td><td class=users-table__actions><!$><!/><!$><!/>`),E=d(`<span class=muted>`),D=d(`<div class="card user-details"><h3></h3><div class=form-grid><label><!$><!/><input class=input></label><label><!$><!/><input class=input type=email></label><label><!$><!/><select class=input><option value=ACTIVE></option><option value=INACTIVE></option></select></label><label><!$><!/><select class=input><option value></option><!$><!/></select></label></div><p class=muted></p><div class=media-details__actions><!$><!/><!$><!/><!$><!/>`),O=d(`<option><!$><!/> (<!$><!/>)`);function k(e){if(!e)return`—`;let t=new Date(e);return Number.isNaN(t.getTime())?`—`:t.toLocaleString(`pt-BR`)}function A(){let{t:l}=p(),[d,A]=e([]),[j,M]=e([]),[N,P]=e(0),[F,I]=e(1),[L,R]=e(``),[z,B]=e(``),[V,H]=e(``),[U,W]=e(``),[G,K]=e(null),[q,J]=e(!1),Y=async()=>{try{let e=await m.listUsers({page:F(),limit:20,search:L()||void 0,status:z()||void 0});A(e.data??[]),P(e.total??0)}catch(e){H(e instanceof Error?e.message:String(e))}};r(async()=>{await Y();try{M(await m.listRoles())}catch{}});let X=async()=>{I(1),await Y()},ee=async(e,t)=>{if(t){J(!0),H(``);try{let n=await m.assignRole(e.id,t);K({...e,roles:n.roles}),W(l(`users.detail.toasts.roleUpdated`,{name:e.name})),await Y()}catch(e){H(e instanceof Error?e.message:String(e))}finally{J(!1)}}},te=async e=>{let t=prompt(l(`users.detail.passwordPrompt`,{email:e.email}));if(t){if(t.length<8){H(l(`users.detail.passwordError`));return}J(!0),H(``);try{await m.setUserPassword(e.id,t),W(l(`users.detail.toasts.passwordChanged`,{name:e.name}))}catch(e){H(e instanceof Error?e.message:String(e))}finally{J(!1)}}},ne=async e=>{J(!0),H(``);try{await m.updateUser(e.id,{name:e.name,email:e.email,status:e.status}),W(l(`users.detail.toasts.saved`,{name:e.name})),K(null),await Y()}catch(e){H(e instanceof Error?e.message:String(e))}finally{J(!1)}},re=async e=>{if(confirm(l(`users.detail.confirmDelete`,{email:e.email}))){J(!0),H(``);try{await m.deleteUser(e.id),G()?.id===e.id&&K(null),W(l(`users.detail.toasts.deleted`,{name:e.name})),await Y()}catch(e){H(e instanceof Error?e.message:String(e))}finally{J(!1)}}},ie=e=>j().find(t=>t.slug===e.roles[0]);return(()=>{var e=f(C),r=e.firstChild,[p,m]=s(r.nextSibling),A=p.nextSibling,[M,P]=s(A.nextSibling),H=M.nextSibling,W=H.firstChild,[J,Z]=s(W.nextSibling),ae=J.nextSibling,[Q,oe]=s(ae.nextSibling),$=Q.nextSibling,se=$.nextSibling,[ce,le]=s(se.nextSibling),ue=H.nextSibling,[de,fe]=s(ue.nextSibling),pe=de.nextSibling,[me,he]=s(pe.nextSibling),ge=me.nextSibling,[_e,ve]=s(ge.nextSibling);return u(e,a(t,{get when(){return V()},get children(){var e=f(b);return u(e,V),e}}),p,m),u(e,a(t,{get when(){return U()},get children(){var e=f(x);return u(e,U),e}}),M,P),u(H,a(g,{name:`user-search`,get placeholder(){return l(`users.toolbar.search`)},get value(){return L()},onInput:e=>{R(e),X()}}),J,Z),u(H,a(v,{name:`user-status`,get placeholder(){return l(`users.toolbar.allStatus`)},get value(){return z()},get options(){return[{value:`ACTIVE`,label:l(`users.toolbar.active`)},{value:`INACTIVE`,label:l(`users.toolbar.inactive`)}]},onChange:e=>{B(e),X()}}),Q,oe),u($,()=>l(`users.toolbar.newBtn`)),u(H,a(_,{variant:`secondary`,onClick:()=>void X(),get children(){return l(`users.toolbar.searchBtn`)}}),ce,le),u(e,a(t,{get when(){return d().length>0},get fallback(){return(()=>{var e=f(w);return u(e,()=>l(`users.empty`)),e})()},get children(){var e=f(S),r=e.firstChild,o=r.firstChild.firstChild,c=o.nextSibling,p=c.nextSibling,m=p.nextSibling,h=m.nextSibling,g=r.nextSibling;return u(o,()=>l(`users.table.name`)),u(c,()=>l(`users.table.email`)),u(p,()=>l(`users.table.role`)),u(m,()=>l(`users.table.status`)),u(h,()=>l(`users.table.lastAccess`)),u(g,a(i,{get each(){return d()},children:e=>(()=>{var r=f(T),i=r.firstChild,o=i.nextSibling,c=o.nextSibling,d=c.nextSibling,p=d.firstChild,m=p.nextSibling,[h,g]=s(m.nextSibling),v=d.nextSibling,b=v.nextSibling,x=b.firstChild,[S,C]=s(x.nextSibling),w=S.nextSibling,[D,O]=s(w.nextSibling);return u(i,()=>e.name),u(o,()=>e.email),u(c,a(t,{get when(){return e.roles.length>0},get fallback(){return(()=>{var e=f(E);return u(e,()=>l(`users.noRole`)),e})()},get children(){return a(y,{get children(){return e.roles.join(`, `)}})}})),u(d,()=>l(`common.status.`+e.status.toLowerCase()),h,g),u(v,()=>k(e.last_login_at)),u(b,a(_,{variant:`secondary`,size:`sm`,onClick:()=>K(e),get children(){return l(`users.table.actions.manage`)}}),S,C),u(b,a(_,{variant:`danger`,size:`sm`,onClick:()=>void re(e),get children(){return l(`users.table.actions.delete`)}}),D,O),n(t=>{var n=G()?.id===e.id,i=e.status===`ACTIVE`;return n!==t.e&&r.classList.toggle(`users-table__row--selected`,t.e=n),i!==t.t&&p.classList.toggle(`status-dot--active`,t.t=i),t},{e:void 0,t:void 0}),r})()})),e}}),de,fe),u(e,a(h,{get page(){return F()},limit:20,get total(){return N()},onPageChange:e=>{I(e),Y()}}),me,he),u(e,a(t,{get when(){return G()},children:e=>(()=>{var t=f(D),r=t.firstChild,d=r.nextSibling,p=d.firstChild,m=p.firstChild,[h,g]=s(m.nextSibling),v=h.nextSibling,y=p.nextSibling,b=y.firstChild,[x,S]=s(b.nextSibling),C=x.nextSibling,w=y.nextSibling,T=w.firstChild,[E,A]=s(T.nextSibling),M=E.nextSibling,N=M.firstChild,P=N.nextSibling,F=w.nextSibling,I=F.firstChild,[L,R]=s(I.nextSibling),z=L.nextSibling,B=z.firstChild,V=B.nextSibling,[H,U]=s(V.nextSibling),W=d.nextSibling,G=W.nextSibling,J=G.firstChild,[Y,X]=s(J.nextSibling),re=Y.nextSibling,[Z,ae]=s(re.nextSibling),Q=Z.nextSibling,[oe,$]=s(Q.nextSibling);return u(r,()=>l(`users.detail.title`)),u(p,()=>l(`users.detail.fields.name`),h,g),v.$$input=t=>K({...e(),name:t.currentTarget.value}),u(y,()=>l(`users.detail.fields.email`),x,S),C.$$input=t=>K({...e(),email:t.currentTarget.value}),u(w,()=>l(`users.detail.fields.status`),E,A),M.addEventListener(`change`,t=>K({...e(),status:t.currentTarget.value})),u(N,()=>l(`users.detail.statusOptions.active`)),u(P,()=>l(`users.detail.statusOptions.inactive`)),u(F,()=>l(`users.detail.fields.role`),L,R),z.addEventListener(`change`,t=>void ee(e(),t.currentTarget.value)),u(B,()=>l(`users.detail.rolePlaceholder`)),u(z,a(i,{get each(){return j()},children:e=>(()=>{var t=f(O),r=t.firstChild,[i,a]=s(r.nextSibling),c=i.nextSibling.nextSibling,[l,d]=s(c.nextSibling);return l.nextSibling,u(t,()=>e.name,i,a),u(t,()=>e.slug,l,d),n(()=>o(t,`value`,e.id)),t})()}),H,U),u(W,()=>l(`users.detail.meta`,{created:k(e().created_at),lastAccess:k(e().last_login_at)})),u(G,a(_,{variant:`primary`,get disabled(){return q()},get loading(){return q()},onClick:()=>void ne(e()),get children(){return l(`users.detail.actions.save`)}}),Y,X),u(G,a(_,{variant:`secondary`,get disabled(){return q()},onClick:()=>void te(e()),get children(){return l(`users.detail.actions.resetPassword`)}}),Z,ae),u(G,a(_,{variant:`secondary`,onClick:()=>K(null),get children(){return l(`users.detail.actions.close`)}}),oe,$),n(()=>o(z,`disabled`,q())),n(()=>o(v,`value`,e().name)),n(()=>o(C,`value`,e().email)),n(()=>o(M,`value`,e().status)),n(()=>o(z,`value`,ie(e())?.id??``)),c(),t})()}),_e,ve),e})()}l([`input`]);export{A as UsersManager};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{d as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,u as m}from"./web.Bze9SKEA.js";import{n as h}from"./i18n.Ck_XVuPY.js";import{t as g}from"./api.DSW9LMA5.js";var _=d(`<div class="notice notice--error">`),v=d(`<div class=table-scroll><table class=table><thead><tr><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody>`),y=d(`<div class="resource-hub webhooks-manager"><!$><!/><div class=card-header-row><div><h3></h3><p></p></div><button class="btn btn-primary"type=button></button></div><!$><!/><section class=card>`),b=d(`<label><!$><!/><input class=input type=password>`),x=d(`<div class=form-grid><label><!$><!/><input class=input></label><label><!$><!/><input class=input type=password>`),ee=d(`<div class=form-grid><label><!$><!/><input class=input type=password></label><label><!$><!/><input class=input>`),te=d(`<section class=card><h3></h3><form class=resource-form><label><!$><!/><input class=input required type=url></label><label><!$><!/><select class=input multiple required></select></label><label><!$><!/><select class=input><option value=none></option><option value=bearer></option><option value=basic></option><option value=api_key></option><option value=hmac_sha256></option></select></label><!$><!/><!$><!/><!$><!/><!$><!/><label class=checkbox-label><input type=checkbox> <!$><!/></label><div><button class="btn btn-primary"type=submit></button> <button class=btn type=button>`),ne=d(`<option>`),S=d(`<p>`),C=d(`<tr><td></td><td></td><td></td><td></td><td><button class=btn type=button></button> <button class="btn btn-danger"type=button>`),w=()=>({url:``,events:[],active:!0,auth_type:`hmac_sha256`,auth_config:{signatureHeader:`X-Webhook-Signature`}});function T(){let{t:l}=h(),[d,T]=e([]),[E,D]=e([]),[O,k]=e(null),[A,j]=e(``),[M,N]=e(!0),P=async()=>{N(!0);try{let[e,t]=await Promise.all([g.getWebhooks(),g.getWebhookEvents()]);T(e),D(t)}catch(e){j(e instanceof Error?e.message:String(e))}finally{N(!1)}};r(P);let F=e=>{if(!e){k(w());return}k({...e,events:[...e.events??[]],auth_type:e.auth_type??`hmac_sha256`,auth_config:{...e.auth_config??{}}})},I=(e,t)=>{let n=O();n&&k({...n,auth_config:{...n.auth_config,[e]:t}})},re=async e=>{e.preventDefault();let t=O();if(!t)return;let n=Object.fromEntries(Object.entries(t.auth_config).filter(([,e])=>e));try{t.id?await g.updateWebhook(t.id,{...t,auth_config:n}):await g.createWebhook({...t,auth_config:n}),k(null),await P()}catch(e){j(e instanceof Error?e.message:String(e))}};return(()=>{var e=f(y),r=e.firstChild,[h,w]=s(r.nextSibling),T=h.nextSibling,D=T.firstChild,j=D.firstChild,N=j.nextSibling,L=D.nextSibling,R=T.nextSibling,[z,B]=s(R.nextSibling),V=z.nextSibling;return u(e,a(t,{get when(){return A()},get children(){var e=f(_);return u(e,A),e}}),h,w),u(j,()=>l(`webhooks.listTitle`)),u(N,()=>l(`webhooks.description`)),L.$$click=()=>F(),u(L,()=>l(`webhooks.new`)),u(e,a(t,{get when(){return O()},children:e=>(()=>{var r=f(te),i=r.firstChild,d=i.nextSibling,h=d.firstChild,g=h.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling,S=h.nextSibling,C=S.firstChild,[w,T]=s(C.nextSibling),D=w.nextSibling,O=S.nextSibling,A=O.firstChild,[j,M]=s(A.nextSibling),N=j.nextSibling,P=N.firstChild,F=P.nextSibling,L=F.nextSibling,R=L.nextSibling,z=R.nextSibling,B=O.nextSibling,[V,ie]=s(B.nextSibling),ae=V.nextSibling,[H,U]=s(ae.nextSibling),W=H.nextSibling,[G,K]=s(W.nextSibling),q=G.nextSibling,[J,oe]=s(q.nextSibling),Y=J.nextSibling,X=Y.firstChild,Z=X.nextSibling.nextSibling,[se,ce]=s(Z.nextSibling),Q=Y.nextSibling.firstChild,$=Q.nextSibling.nextSibling;return u(i,(()=>{var t=p(()=>!!e().id);return()=>t()?l(`webhooks.edit`):l(`webhooks.create`)})()),d.addEventListener(`submit`,re),u(h,()=>l(`webhooks.url`),_,v),y.$$input=t=>k({...e(),url:t.currentTarget.value}),u(S,()=>l(`webhooks.events`),w,T),D.addEventListener(`change`,t=>k({...e(),events:Array.from(t.currentTarget.selectedOptions,e=>e.value)})),u(D,()=>E().map(e=>(()=>{var t=f(ne);return u(t,()=>e.label),n(()=>o(t,`value`,e.value)),t})())),u(O,()=>l(`webhooks.authentication`),j,M),N.addEventListener(`change`,t=>k({...e(),auth_type:t.currentTarget.value,auth_config:{}})),u(P,()=>l(`webhooks.auth.none`)),u(F,()=>l(`webhooks.auth.bearer`)),u(L,()=>l(`webhooks.auth.basic`)),u(R,()=>l(`webhooks.auth.apiKey`)),u(z,()=>l(`webhooks.auth.hmac`)),u(d,a(t,{get when(){return e().auth_type===`bearer`},get children(){var t=f(b),r=t.firstChild,[i,a]=s(r.nextSibling),d=i.nextSibling;return u(t,()=>l(`webhooks.token`),i,a),d.$$input=e=>I(`token`,e.currentTarget.value),n(()=>m(d,`placeholder`,e().id?l(`webhooks.keepExisting`):``)),n(()=>o(d,`value`,e().auth_config.token??``)),c(),t}}),V,ie),u(d,a(t,{get when(){return e().auth_type===`basic`},get children(){var t=f(x),r=t.firstChild,i=r.firstChild,[a,d]=s(i.nextSibling),p=a.nextSibling,h=r.nextSibling,g=h.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling;return u(r,()=>l(`webhooks.username`),a,d),p.$$input=e=>I(`username`,e.currentTarget.value),u(h,()=>l(`webhooks.password`),_,v),y.$$input=e=>I(`password`,e.currentTarget.value),n(()=>m(y,`placeholder`,e().id?l(`webhooks.keepExisting`):``)),n(()=>o(p,`value`,e().auth_config.username??``)),n(()=>o(y,`value`,e().auth_config.password??``)),c(),t}}),H,U),u(d,a(t,{get when(){return e().auth_type===`api_key`},get children(){var t=f(x),r=t.firstChild,i=r.firstChild,[a,d]=s(i.nextSibling),p=a.nextSibling,h=r.nextSibling,g=h.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling;return u(r,()=>l(`webhooks.headerName`),a,d),p.$$input=e=>I(`headerName`,e.currentTarget.value),u(h,()=>l(`webhooks.apiKeyValue`),_,v),y.$$input=e=>I(`value`,e.currentTarget.value),n(()=>m(y,`placeholder`,e().id?l(`webhooks.keepExisting`):``)),n(()=>o(p,`value`,e().auth_config.headerName??``)),n(()=>o(y,`value`,e().auth_config.value??``)),c(),t}}),G,K),u(d,a(t,{get when(){return e().auth_type===`hmac_sha256`},get children(){var t=f(ee),r=t.firstChild,i=r.firstChild,[a,d]=s(i.nextSibling),p=a.nextSibling,h=r.nextSibling,g=h.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling;return u(r,()=>l(`webhooks.secret`),a,d),p.$$input=e=>I(`secret`,e.currentTarget.value),u(h,()=>l(`webhooks.signatureHeader`),_,v),y.$$input=e=>I(`signatureHeader`,e.currentTarget.value),n(t=>{var n=!e().id,r=e().id?l(`webhooks.keepExisting`):``;return n!==t.e&&o(p,`required`,t.e=n),r!==t.t&&m(p,`placeholder`,t.t=r),t},{e:void 0,t:void 0}),n(()=>o(p,`value`,e().auth_config.secret??``)),n(()=>o(y,`value`,e().auth_config.signatureHeader??`X-Webhook-Signature`)),c(),t}}),J,oe),X.addEventListener(`change`,t=>k({...e(),active:t.currentTarget.checked})),u(Y,()=>l(`webhooks.active`),se,ce),u(Q,()=>l(`common.save`)),$.$$click=()=>k(null),u($,()=>l(`common.cancel`)),n(()=>o(y,`value`,e().url??``)),n(()=>o(D,`value`,e().events??[])),n(()=>o(N,`value`,e().auth_type)),n(()=>o(X,`checked`,e().active??!0)),c(),r})()}),z,B),u(V,a(t,{get when(){return!M()},get fallback(){return(()=>{var e=f(S);return u(e,()=>l(`webhooks.loading`)),e})()},get children(){return a(t,{get when(){return d().length>0},get fallback(){return(()=>{var e=f(S);return u(e,()=>l(`webhooks.empty`)),e})()},get children(){var e=f(v),t=e.firstChild.firstChild,n=t.firstChild.firstChild,r=n.nextSibling,o=r.nextSibling,s=o.nextSibling,m=s.nextSibling,h=t.nextSibling;return u(n,()=>l(`webhooks.url`)),u(r,()=>l(`webhooks.events`)),u(o,()=>l(`webhooks.authentication`)),u(s,()=>l(`webhooks.active`)),u(m,()=>l(`common.actions`)),u(h,a(i,{get each(){return d()},children:e=>(()=>{var t=f(C),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.nextSibling,o=a.nextSibling.firstChild,s=o.nextSibling.nextSibling;return u(n,()=>e.url),u(r,()=>(e.events??[]).join(`, `)),u(i,()=>l(`webhooks.auth.${e.auth_type??`hmac_sha256`}`)),u(a,(()=>{var t=p(()=>!!e.active);return()=>t()?l(`common.yes`):l(`common.no`)})()),o.$$click=()=>F(e),u(o,()=>l(`common.edit`)),s.$$click=()=>e.id&&void g.deleteWebhook(e.id).then(P),u(s,()=>l(`common.delete`)),c(),t})()})),e}})}})),c(),e})()}l([`click`,`input`]);export{T as WebhooksManager};
@@ -1 +0,0 @@
1
- function e(){if(typeof document<`u`){let e=document.querySelector(`meta[name="okcms-api-url"]`)?.getAttribute(`content`)?.trim();if(e)return e.replace(/\/$/,``)}return``}var t=e(),n=new class{baseUrl;csrfToken=null;refreshPromise=null;refreshOwner=typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():Math.random().toString(36).slice(2);refreshLockKey=`okcms:auth:refresh-lock`;constructor(e=t){this.baseUrl=e}async init(){try{await this.ensureCsrfToken()}catch{}}async isLoggedIn(){try{return await this.request(`GET`,`/api/v1/auth/me`),!0}catch{return!1}}async getTenantId(){try{return(await this.request(`GET`,`/api/v1/auth/me`)).tenantId??null}catch{return null}}async getUserLocale(){try{return(await this.request(`GET`,`/api/v1/users/me/locale`)).locale??`pt-BR`}catch{return`pt-BR`}}async setUserLocale(e){await this.request(`PUT`,`/api/v1/users/me/locale`,{locale:e})}async getMe(){return this.request(`GET`,`/api/v1/auth/me`)}async getAuditLogs(e=8){return this.request(`GET`,`/api/v1/audit-logs?limit=${e}`)}async getAuditLogConfig(){return this.request(`GET`,`/api/v1/audit-logs/config`)}async updateAuditLogConfig(e){return this.request(`PUT`,`/api/v1/audit-logs/config`,{retentionDays:e})}async listAuditLogs(e){let t=new URLSearchParams;return e?.limit&&t.set(`limit`,String(e.limit)),e?.action&&t.set(`action`,e.action),e?.resourceType&&t.set(`resourceType`,e.resourceType),this.request(`GET`,`/api/v1/audit-logs?${t.toString()}`)}async login(e){return await this.ensureCsrfToken(),await this.request(`POST`,`/api/v1/auth/login`,e)}async logout(){await this.request(`POST`,`/api/v1/auth/logout`,{}),this.csrfToken=null}async refreshTokens(){return this.refreshPromise||=this.refreshWithCrossTabLock().finally(()=>{this.refreshPromise=null}),this.refreshPromise}async refreshWithCrossTabLock(){if(typeof window>`u`||typeof localStorage>`u`){await this.request(`POST`,`/api/v1/auth/refresh`,{},void 0,{skipRefresh:!0});return}let e=Date.now(),t;try{t=JSON.parse(localStorage.getItem(this.refreshLockKey)??`null`)}catch{await this.request(`POST`,`/api/v1/auth/refresh`,{},void 0,{skipRefresh:!0});return}if(t?.owner&&t.owner!==this.refreshOwner&&Number(t.expiresAt)>e){await this.waitForOtherTabRefresh(Number(t.expiresAt));return}try{localStorage.setItem(this.refreshLockKey,JSON.stringify({owner:this.refreshOwner,expiresAt:e+1e4}))}catch{await this.request(`POST`,`/api/v1/auth/refresh`,{},void 0,{skipRefresh:!0});return}try{await this.request(`POST`,`/api/v1/auth/refresh`,{},void 0,{skipRefresh:!0})}finally{try{JSON.parse(localStorage.getItem(this.refreshLockKey)??`null`)?.owner===this.refreshOwner&&localStorage.removeItem(this.refreshLockKey)}catch{}}}async waitForOtherTabRefresh(e){for(;Date.now()<Math.min(e,Date.now()+1e4);){await new Promise(e=>setTimeout(e,100));try{let e=JSON.parse(localStorage.getItem(this.refreshLockKey)??`null`);if(!e||Number(e.expiresAt)<=Date.now())return}catch{return}}}async request(e,t,n,r,i){let a=`${this.baseUrl}${t}`,o=async()=>{let t={"Content-Type":`application/json`,...r};if(![`GET`,`HEAD`,`OPTIONS`].includes(e.toUpperCase())){let e=await this.ensureCsrfToken();e&&(t[`x-csrf-token`]=e)}return fetch(a,{method:e,headers:t,credentials:`include`,body:n?JSON.stringify(n):void 0})},s=await o();if(s.status===401&&!i?.skipRefresh&&!t.includes(`/auth/refresh`)&&!t.includes(`/auth/logout`)&&(await this.refreshTokens(),s=await o()),s.status===403&&!i?.skipCsrfRecovery){let e=``;try{e=(await(typeof s.clone==`function`?s.clone():s).json()).error??``}catch{}e===`CSRF_TOKEN_INVALID`&&(await this.ensureCsrfToken(!0),s=await o())}if(!s.ok){let e=await s.json().catch(()=>({error:`Request failed`}));throw Error(e.error??`Request failed: ${s.status}`)}return s.json()}async ensureCsrfToken(e=!1){let t=this.readCsrfCookie();if(!e&&t)return this.csrfToken=t,t;if(!e&&this.csrfToken)return this.csrfToken;try{let e=await fetch(`${this.baseUrl}/api/v1/auth/csrf`,{credentials:`include`,headers:{Accept:`application/json`}});if(!e.ok)return this.csrfToken;let t=await e.json();this.csrfToken=t.csrfToken??this.readCsrfCookie()}catch{}return this.csrfToken}readCsrfCookie(){if(typeof document<`u`){let e=document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/);if(e?.[1])return e[1]}return this.csrfToken}async getContent(e){let t=new URLSearchParams;return e?.page&&t.set(`page`,String(e.page)),e?.limit&&t.set(`limit`,String(e.limit)),e?.type&&t.set(`type`,e.type),e?.status&&t.set(`status`,e.status),e?.search&&t.set(`search`,e.search),this.request(`GET`,`/api/v1/content?${t.toString()}`)}async getContentById(e){return this.request(`GET`,`/api/v1/content/${e}`)}async getSingletonContent(e){let t=await this.request(`GET`,`/api/v1/content/singleton/${encodeURIComponent(e)}`);return`content`in t?t.content:t}async createContent(e){return this.request(`POST`,`/api/v1/content`,e)}async updateContent(e,t){return this.request(`PUT`,`/api/v1/content/${e}`,t)}async deleteContent(e){await this.request(`DELETE`,`/api/v1/content/${e}`)}async publishContent(e){let t=await this.request(`POST`,`/api/v1/content/${e}/publish`);return`content`in t?t.content:t}async unpublishContent(e){let t=await this.request(`POST`,`/api/v1/content/${e}/unpublish`);return`content`in t?t.content:t}async publishToggle(e,t){return t?this.unpublishContent(e):this.publishContent(e)}async getContentTypes(){return this.request(`GET`,`/api/v1/content-types`)}async createContentType(e){return this.request(`POST`,`/api/v1/content-types`,e)}async updateContentType(e,t){return this.request(`PUT`,`/api/v1/content-types/${e}`,t)}async deleteContentType(e){await this.request(`DELETE`,`/api/v1/content-types/${e}`)}async getTaxonomies(){return this.request(`GET`,`/api/v1/taxonomies`)}async createTaxonomy(e){return this.request(`POST`,`/api/v1/taxonomies`,e)}async attachTaxonomy(e,t){await this.request(`POST`,`/api/v1/taxonomies/${e}/attach`,{contentType:t})}async detachTaxonomy(e,t){await this.request(`POST`,`/api/v1/taxonomies/${e}/detach`,{contentType:t})}async deleteTaxonomy(e){await this.request(`DELETE`,`/api/v1/taxonomies/${e}`)}async getTaxonomyTerms(e){return this.request(`GET`,`/api/v1/taxonomies/${encodeURIComponent(e)}/terms`)}async createTaxonomyTerm(e,t){return this.request(`POST`,`/api/v1/taxonomies/${encodeURIComponent(e)}/terms`,t)}async updateTaxonomyTerm(e,t,n){return this.request(`PUT`,`/api/v1/taxonomies/${encodeURIComponent(e)}/terms/${t}`,n)}async deleteTaxonomyTerm(e,t){await this.request(`DELETE`,`/api/v1/taxonomies/${encodeURIComponent(e)}/terms/${t}`)}async getCategories(){return this.request(`GET`,`/api/v1/categories`)}async createCategory(e){return this.request(`POST`,`/api/v1/categories`,e)}async updateCategory(e,t){return this.request(`PUT`,`/api/v1/categories/${e}`,t)}async deleteCategory(e){await this.request(`DELETE`,`/api/v1/categories/${e}`)}async getTags(){return this.request(`GET`,`/api/v1/tags`)}async createTag(e){return this.request(`POST`,`/api/v1/tags`,e)}async updateTag(e,t){return this.request(`PUT`,`/api/v1/tags/${e}`,t)}async deleteTag(e){await this.request(`DELETE`,`/api/v1/tags/${e}`)}async getMenus(){return this.request(`GET`,`/api/v1/menus`)}async createMenu(e){return this.request(`POST`,`/api/v1/menus`,e)}async updateMenu(e,t){return this.request(`PUT`,`/api/v1/menus/${e}`,t)}async deleteMenu(e){await this.request(`DELETE`,`/api/v1/menus/${e}`)}async getFieldGroups(e){if(e?.type){let t=new URLSearchParams({type:e.type});for(let[n,r]of Object.entries(e))n!==`type`&&r&&t.set(n,r);return this.request(`GET`,`/api/v1/field-groups?${t.toString()}`)}return this.request(`GET`,`/api/v1/field-groups`)}async getFieldGroup(e){return this.request(`GET`,`/api/v1/field-groups/${e}`)}async createFieldGroup(e){return this.request(`POST`,`/api/v1/field-groups`,e)}async updateFieldGroup(e,t){return this.request(`PUT`,`/api/v1/field-groups/${e}`,t)}async deleteFieldGroup(e){await this.request(`DELETE`,`/api/v1/field-groups/${e}`)}async getFieldTypes(e){let t=e?`?category=${encodeURIComponent(e)}`:``;return this.request(`GET`,`/api/v1/field-types${t}`)}async getWebhooks(){return this.request(`GET`,`/api/v1/webhooks`)}async getWebhookEvents(){return(await this.request(`GET`,`/api/v1/webhooks/events`)).data}async createWebhook(e){return this.request(`POST`,`/api/v1/webhooks`,e)}async updateWebhook(e,t){return this.request(`PUT`,`/api/v1/webhooks/${e}`,t)}async deleteWebhook(e){await this.request(`DELETE`,`/api/v1/webhooks/${e}`)}async listMedia(e){let t=new URLSearchParams;return e?.page&&t.set(`page`,String(e.page)),e?.limit&&t.set(`limit`,String(e.limit)),e?.mimeType&&t.set(`mimeType`,e.mimeType),e?.search&&t.set(`search`,e.search),this.request(`GET`,`/api/v1/media?${t.toString()}`)}async getMedia(e){return this.request(`GET`,`/api/v1/media/${e}`)}async uploadMedia(e,t){let n=new FormData;n.append(`file`,e),t?.alt&&n.append(`alt`,t.alt),t?.caption&&n.append(`caption`,t.caption);let r=`${this.baseUrl}/api/v1/media/upload`,i=async()=>{let e=await this.ensureCsrfToken(),t={};return e&&(t[`x-csrf-token`]=e),fetch(r,{method:`POST`,headers:t,credentials:`include`,body:n})},a=await i();if(a.status===401&&(await this.refreshTokens(),a=await i()),a.status===403){let e=``;try{e=(await a.clone().json()).error??``}catch{}e===`CSRF_TOKEN_INVALID`&&(await this.ensureCsrfToken(!0),a=await i())}if(!a.ok){let e=await a.json().catch(()=>({error:`Upload failed: ${a.status}`}));throw Error(e.error??`Upload failed: ${a.status}`)}return a.json()}async updateMedia(e,t){return this.request(`PUT`,`/api/v1/media/${e}`,t)}async deleteMedia(e){await this.request(`DELETE`,`/api/v1/media/${e}`)}async listUsers(e){let t=new URLSearchParams;return e?.page&&t.set(`page`,String(e.page)),e?.limit&&t.set(`limit`,String(e.limit)),e?.search&&t.set(`search`,e.search),e?.status&&t.set(`status`,e.status),this.request(`GET`,`/api/v1/users?${t.toString()}`)}async getUser(e){return this.request(`GET`,`/api/v1/users/${e}`)}async createUser(e){return this.request(`POST`,`/api/v1/users`,e)}async updateUser(e,t){return this.request(`PUT`,`/api/v1/users/${e}`,t)}async deleteUser(e){await this.request(`DELETE`,`/api/v1/users/${e}`)}async setUserPassword(e,t){await this.request(`PUT`,`/api/v1/users/${e}/password`,{password:t})}async assignRole(e,t){return this.request(`POST`,`/api/v1/users/${e}/roles`,{roleId:t})}async removeRole(e,t){return this.request(`DELETE`,`/api/v1/users/${e}/roles/${t}`)}async listRoles(){return this.request(`GET`,`/api/v1/roles`)}async createRole(e){return this.request(`POST`,`/api/v1/roles`,e)}async updateRole(e,t){return this.request(`PUT`,`/api/v1/roles/${e}`,t)}async deleteRole(e){await this.request(`DELETE`,`/api/v1/roles/${e}`)}async listTenants(e){let t=new URLSearchParams;return e?.page&&t.set(`page`,String(e.page)),e?.limit&&t.set(`limit`,String(e.limit)),e?.search&&t.set(`search`,e.search),this.request(`GET`,`/api/v1/tenants?${t.toString()}`)}async createTenant(e){return this.request(`POST`,`/api/v1/tenants`,e)}async updateTenant(e,t){return this.request(`PUT`,`/api/v1/tenants/${e}`,t)}async deleteTenant(e){await this.request(`DELETE`,`/api/v1/tenants/${e}`)}async getSettings(e){let t=e?`?group=${encodeURIComponent(e)}`:``;return this.request(`GET`,`/api/v1/settings${t}`)}async updateSettings(e){await this.request(`PUT`,`/api/v1/settings`,e)}async healthCheck(){return this.request(`GET`,`/health`)}async getThemes(){return(await this.request(`GET`,`/api/v1/themes`)).map(e=>({id:String(e.id??``),name:String(e.name??``),version:e.version?String(e.version):void 0,status:String(e.status??`INSTALLED`),manifest:e.manifest??null}))}async activateTheme(e){return this.request(`POST`,`/api/v1/themes/${e}/activate`)}async deactivateTheme(e){return this.request(`POST`,`/api/v1/themes/${e}/deactivate`)}async installTheme(e){return this.request(`POST`,`/api/v1/themes/install`,e)}async uninstallTheme(e){await this.request(`DELETE`,`/api/v1/themes/${e}`)}async getPlugins(){return(await this.request(`GET`,`/api/v1/plugins`)).map(e=>({id:String(e.id??``),name:String(e.name??``),version:String(e.version??``),status:String(e.status??`INSTALLED`),manifest:e.manifest??null}))}async activatePlugin(e){return this.request(`POST`,`/api/v1/plugins/${e}/activate`)}async deactivatePlugin(e){return this.request(`POST`,`/api/v1/plugins/${e}/deactivate`)}async installPlugin(e){return this.request(`POST`,`/api/v1/plugins/install`,e)}async uninstallPlugin(e){await this.request(`DELETE`,`/api/v1/plugins/${e}`)}};export{n as t};
@@ -1 +0,0 @@
1
- import{a as e,d as t,n,o as r,p as i,s as a,t as o}from"./solid.DN8T1HsY.js";import{a as s,c}from"./web.Bze9SKEA.js";var l=Symbol(`store-raw`),u=Symbol(`store-node`),d=Symbol(`store-has`),f=Symbol(`store-self`);function p(e){let t=e[o];if(!t&&(Object.defineProperty(e,o,{value:t=new Proxy(e,x)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function m(e){let t;return typeof e==`object`&&!!e&&(e[o]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function h(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[l])return n;if(!m(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=h(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=h(i,t))!==i&&(e[a]=r))}return e}function g(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function _(e,n,r){if(e[n])return e[n];let[i,a]=t(r,{equals:!1,internal:!0});return i.$=a,e[n]=i}function v(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===o||t===u?n:(delete n.value,delete n.writable,n.get=()=>e[o][t],n)}function y(e){i()&&_(g(e,u),f)()}function b(e){return y(e),Reflect.ownKeys(e)}var x={get(e,t,r){if(t===l)return e;if(t===o)return r;if(t===n)return y(e),r;let a=g(e,u),s=a[t],c=s?s():e[t];if(t===u||t===d||t===`__proto__`)return c;if(!s){let n=Object.getOwnPropertyDescriptor(e,t);i()&&(typeof c!=`function`||Object.prototype.hasOwnProperty.call(e,t))&&!(n&&n.get)&&(c=_(a,t,c)())}return m(c)?p(c):c},has(e,t){return t===l||t===o||t===n||t===u||t===d||t===`__proto__`||(i()&&_(g(e,d),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:b,getOwnPropertyDescriptor:v};function S(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[d]&&e[d][t]&&i!==void 0&&e[d][t].$()):(e[t]=n,e[d]&&e[d][t]&&i===void 0&&e[d][t].$());let o=g(e,u),s;if((s=_(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=_(o,`length`,a))&&s.$(e.length)}(s=o[f])&&s.$()}function C(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];w(i)||S(e,i,t[i])}}function w(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function T(e,t){if(typeof t==`function`&&(t=t(e)),t=h(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&S(e,n,r)}S(e,`length`,r)}else C(e,t)}function E(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&w(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)E(e,[r[i]].concat(t),n);return}if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&E(e,[i].concat(t),n);return}if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)E(e,[r].concat(t),n);return}if(t.length>1){E(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||(r!==void 0||a!=null)&&(a=h(a),r===void 0||m(i)&&m(a)&&!Array.isArray(a)?C(i,a):S(e,r,a))}function D(...[e,t]){let n=h(e||{}),i=Array.isArray(n),a=p(n);function o(...e){r(()=>{i&&e.length===1?T(n,e[0]):E(n,e)})}return[a,o]}var O=Symbol(`store-root`);function k(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function A(e,t,n,r,i){if(k(n))return;let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==O&&(!m(e)||!m(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){S(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)A(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)S(a,n,e[n]);for(;n<e.length;n++)S(a,n,f[n]),A(e[n],a,n,r,i);a.length>e.length&&S(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?(S(a,n,f[n]),A(e[n],a,n,r,i)):S(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)A(e[t],a,t,r,i);a.length>e.length&&S(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)k(s[t])||A(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&S(a,c[t],void 0)}function j(e,t={}){let{merge:n,key:r=`id`}=t,i=h(e);return e=>{if(!m(e)||!m(i))return i;let t=A(i,{[O]:e},O,n,r);return t===void 0?e:t}}var M=new WeakMap,N=t=>(n,r,i,{client:o})=>{if(!t.hasAttribute(`ssr`))return;let l=o!==`only`,u,d={};if(Object.keys(i).length>0){if(o!==`only`){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,e=>e===t?NodeFilter.FILTER_SKIP:e.nodeName===`ASTRO-SLOT`?NodeFilter.FILTER_ACCEPT:e.nodeName===`ASTRO-ISLAND`?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP);for(;u=e.nextNode();)d[u.getAttribute(`name`)||`default`]=u}for(let[e,t]of Object.entries(i))d[e]||(d[e]=document.createElement(`astro-slot`),e!=="default"&&d[e].setAttribute(`name`,e),d[e].innerHTML=t)}let{default:f,...p}=d,m=t.dataset.solidRenderId;if(M.has(t))M.get(t)(j({...r,...p,children:f}));else{let[i,o]=D({...r,...p,children:f});M.set(t,o);let u=()=>{let t=()=>a(n,i);return l?a(e,{get children(){return t()}}):t()},d;l?d=s(u,t,{renderId:m}):(t.innerHTML=``,d=c(u,t)),t.addEventListener(`astro:unmount`,()=>d(),{once:!0})}};export{N as default};
@@ -1 +0,0 @@
1
- .settings-page[data-astro-cid-2wrpkwch] .page-header[data-astro-cid-2wrpkwch]{margin-bottom:1rem}.custom-fields-toolbar[data-astro-cid-2wrpkwch],.section-heading[data-astro-cid-2wrpkwch],.fields-editor-heading[data-astro-cid-2wrpkwch],.editable-field__topline[data-astro-cid-2wrpkwch],.group-row[data-astro-cid-2wrpkwch],.group-row__actions[data-astro-cid-2wrpkwch],.standard-field-control[data-astro-cid-2wrpkwch],.editor-actions[data-astro-cid-2wrpkwch]{align-items:center;display:flex}.custom-fields-toolbar[data-astro-cid-2wrpkwch],.section-heading[data-astro-cid-2wrpkwch],.fields-editor-heading[data-astro-cid-2wrpkwch],.editable-field__topline[data-astro-cid-2wrpkwch],.group-row[data-astro-cid-2wrpkwch],.editor-actions[data-astro-cid-2wrpkwch]{justify-content:space-between;gap:1rem}.custom-fields-toolbar[data-astro-cid-2wrpkwch]{margin-bottom:1rem}.custom-fields-toolbar[data-astro-cid-2wrpkwch] label[data-astro-cid-2wrpkwch],.field-group-editor[data-astro-cid-2wrpkwch] label[data-astro-cid-2wrpkwch],.field-group-editor[data-astro-cid-2wrpkwch] fieldset[data-astro-cid-2wrpkwch]{flex-direction:column;gap:.35rem;display:flex}.custom-fields-toolbar[data-astro-cid-2wrpkwch] label[data-astro-cid-2wrpkwch]{flex-direction:row;align-items:center;gap:.75rem}.custom-fields-toolbar[data-astro-cid-2wrpkwch] .input[data-astro-cid-2wrpkwch]{min-width:220px}.standard-fields-card[data-astro-cid-2wrpkwch],.field-group-editor[data-astro-cid-2wrpkwch],.groups-card[data-astro-cid-2wrpkwch]{margin-bottom:1rem}.acf-assignment[data-astro-cid-2wrpkwch]{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-hover);grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);align-items:end;gap:1rem;margin:1rem 0;padding:1rem;display:grid}.acf-assignment[data-astro-cid-2wrpkwch] h4[data-astro-cid-2wrpkwch],.acf-assignment[data-astro-cid-2wrpkwch] p[data-astro-cid-2wrpkwch]{margin:0}.section-heading[data-astro-cid-2wrpkwch]{margin-bottom:1rem}.section-heading[data-astro-cid-2wrpkwch] h3[data-astro-cid-2wrpkwch],.fields-editor-heading[data-astro-cid-2wrpkwch] h4[data-astro-cid-2wrpkwch]{margin:0}.section-heading[data-astro-cid-2wrpkwch] p[data-astro-cid-2wrpkwch]{margin-top:.35rem}.standard-fields-list[data-astro-cid-2wrpkwch],.groups-list[data-astro-cid-2wrpkwch],.editable-fields-list[data-astro-cid-2wrpkwch]{gap:.65rem;display:grid}.standard-field-row[data-astro-cid-2wrpkwch],.group-row[data-astro-cid-2wrpkwch]{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-hover);justify-content:space-between;gap:1rem;padding:.75rem}.standard-field-row[data-astro-cid-2wrpkwch]>span[data-astro-cid-2wrpkwch]:first-child,.group-row[data-astro-cid-2wrpkwch]>div[data-astro-cid-2wrpkwch]:first-child{gap:.2rem;display:grid}.standard-field-row[data-astro-cid-2wrpkwch] small[data-astro-cid-2wrpkwch],.group-row[data-astro-cid-2wrpkwch] small[data-astro-cid-2wrpkwch]{color:var(--color-muted);font-size:.75rem}.standard-field-control[data-astro-cid-2wrpkwch]{gap:.65rem}.form-grid[data-astro-cid-2wrpkwch],.field-grid[data-astro-cid-2wrpkwch]{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.checkbox-label[data-astro-cid-2wrpkwch]{align-self:end;align-items:center;flex-direction:row!important}.fields-editor-heading[data-astro-cid-2wrpkwch]{margin:1.25rem 0 .75rem}.editable-field[data-astro-cid-2wrpkwch]{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-hover);gap:.85rem;padding:1rem;display:grid}.location-rules-editor[data-astro-cid-2wrpkwch]{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-hover);margin:1.25rem 0;padding:1rem}.location-rule-group[data-astro-cid-2wrpkwch]{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-white);gap:.65rem;padding:.75rem;display:grid}.location-rule-row[data-astro-cid-2wrpkwch]{grid-template-columns:minmax(150px,1fr) minmax(110px,.7fr) minmax(180px,1.4fr) auto;align-items:center;gap:.65rem;display:grid}.rule-connector[data-astro-cid-2wrpkwch]{color:var(--color-muted);text-align:center;font-size:.75rem;font-weight:700}.rule-add[data-astro-cid-2wrpkwch]{justify-self:start}.editable-field[data-astro-cid-2wrpkwch].is-dragging{opacity:.55;border-color:var(--color-primary)}.editable-field__topline[data-astro-cid-2wrpkwch]{justify-content:flex-start}.editable-field__topline[data-astro-cid-2wrpkwch] .btn-danger[data-astro-cid-2wrpkwch]{margin-left:auto}.drag-handle[data-astro-cid-2wrpkwch]{color:var(--color-muted);cursor:grab;user-select:none;font-size:1.4rem}.field-type-picker[data-astro-cid-2wrpkwch]{position:relative}.field-type-picker__trigger{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-white);width:100%;min-height:2.35rem;color:var(--color-text);text-align:left;padding:.45rem .65rem}.field-type-picker__selected{align-items:center;gap:.45rem;display:inline-flex}.field-type-picker__selected svg,.field-type-picker__group-label svg,.field-type-picker__option svg{flex:none;width:16px;height:16px}.field-type-picker__panel{z-index:20;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-white);width:min(360px,90vw);max-height:320px;box-shadow:var(--shadow-lg);padding:.5rem;position:absolute;overflow:auto}.field-type-picker__search{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;padding:.45rem}.field-type-picker__group-label{color:var(--color-muted);padding:.65rem .4rem .25rem;font-size:.75rem;font-weight:600}.field-type-picker__option{text-align:left;background:0 0;border:0;gap:.5rem;width:100%;padding:.45rem;display:flex}.field-type-picker__option:hover,.field-type-picker__option.is-selected{background:var(--color-primary-soft)}.editor-actions[data-astro-cid-2wrpkwch]{margin-top:1rem}@media (width<=720px){.acf-assignment[data-astro-cid-2wrpkwch]{grid-template-columns:1fr}.custom-fields-toolbar[data-astro-cid-2wrpkwch],.group-row[data-astro-cid-2wrpkwch],.custom-fields-toolbar[data-astro-cid-2wrpkwch] label[data-astro-cid-2wrpkwch]{flex-direction:column;align-items:stretch}.custom-fields-toolbar[data-astro-cid-2wrpkwch] .input[data-astro-cid-2wrpkwch]{min-width:0}.group-row__actions[data-astro-cid-2wrpkwch]{flex-wrap:wrap}.location-rule-row[data-astro-cid-2wrpkwch]{grid-template-columns:1fr}}
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime.BpQH8Ho1.js";import{i as t,l as n,r,s as i}from"./solid.DN8T1HsY.js";import{f as a,n as o,o as s,p as c,s as l,t as u,u as d}from"./web.Bze9SKEA.js";var f=e(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),p=e(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),m=e(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=f(),a=p();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,m=`[a-zA-Z0-9-]`,h=[[`\\s`,1],[`\\d`,i],[m,r]],g=e=>{for(let[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=g(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${m}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${m}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),h=e(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),g=e(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),_=e(((e,t)=>{var n=p(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=f(),{safeRe:a,t:o}=m(),s=h(),{compareIdentifiers:c}=g(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),v=e(((e,t)=>{var n=_();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),y=e(((e,t)=>{var n=v();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),b=e(((e,t)=>{var n=v();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),x=e(((e,t)=>{var n=_();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),S=e(((e,t)=>{var n=v();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),C=e(((e,t)=>{var n=_();t.exports=(e,t)=>new n(e,t).major})),w=e(((e,t)=>{var n=_();t.exports=(e,t)=>new n(e,t).minor})),T=e(((e,t)=>{var n=_();t.exports=(e,t)=>new n(e,t).patch})),E=e(((e,t)=>{var n=v();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),D=e(((e,t)=>{var n=_();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),O=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(t,e,r)})),k=e(((e,t)=>{var n=D();t.exports=(e,t)=>n(e,t,!0)})),A=e(((e,t)=>{var n=_();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),j=e(((e,t)=>{var n=A();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),M=e(((e,t)=>{var n=A();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),N=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)>0})),P=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)<0})),F=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)===0})),I=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)!==0})),L=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)>=0})),R=e(((e,t)=>{var n=D();t.exports=(e,t,r)=>n(e,t,r)<=0})),z=e(((e,t)=>{var n=F(),r=I(),i=N(),a=L(),o=P(),s=R();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),B=e(((e,t)=>{var n=_(),r=v(),{safeRe:i,t:a}=m();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),ee=e(((e,t)=>{var n=v(),r=f(),i=_(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),te=e(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),V=e(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!S(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&C(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(x,``);let t=((this.options.includePrerelease&&y)|(this.options.loose&&b))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,I(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],g),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],v),o(`caret trim`,e);let l=e.split(` `).map(e=>T(e,this.options)).join(` `).split(/\s+/).map(e=>F(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let f=new Map,p=l.map(e=>new a(e,this.options));for(let e of p){if(S(e))return[e];f.set(e.value,e)}f.size>1&&f.has(``)&&f.delete(``);let m=[...f.values()];return r.set(t,m),m}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>w(e,n)&&t.set.some(t=>w(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}};var r=new(te()),i=h(),a=H(),o=p(),s=_(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:g,caretTrimReplace:v}=m(),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:b}=f(),x=new RegExp(l[u.BUILD],`g`),S=e=>e.value===`<0.0.0-0`,C=e=>e.value===``,w=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},T=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=A(e,t),o(`caret`,e),e=O(e,t),o(`tildes`,e),e=M(e,t),o(`xrange`,e),e=P(e,t),o(`stars`,e),e),E=e=>!e||e.toLowerCase()===`x`||e===`*`,D=(e,t,n)=>E(e)&&!E(t)||E(t)&&n&&!E(n),O=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(` `),k=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},M=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>N(e,t)).join(` `)),N=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),D(i,a,s))return e;let l=E(i),u=l||E(a),d=u||E(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},P=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),F=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),I=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=E(r)?``:E(i)?`>=${r}.0.0${e?`-0`:``}`:E(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=E(l)?``:E(u)?`<${+l+1}.0.0-0`:E(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),H=e(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=h(),{safeRe:i,t:a}=m(),o=z(),s=p(),c=_(),l=V()})),U=e(((e,t)=>{var n=V();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),ne=e(((e,t)=>{var n=V();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),re=e(((e,t)=>{var n=_(),r=V();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),ie=e(((e,t)=>{var n=_(),r=V();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),W=e(((e,t)=>{var n=_(),r=V(),i=N();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),G=e(((e,t)=>{var n=V();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),K=e(((e,t)=>{var n=_(),r=H(),{ANY:i}=r,a=V(),o=U(),s=N(),c=P(),l=R(),u=L();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),q=e(((e,t)=>{var n=K();t.exports=(e,t,r)=>n(e,t,`>`,r)})),J=e(((e,t)=>{var n=K();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Y=e(((e,t)=>{var n=V();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),ae=e(((e,t)=>{var n=U(),r=D();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),oe=e(((e,t)=>{var n=V(),r=H(),{ANY:i}=r,a=U(),o=D(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s}));e(((e,t)=>{var n=m(),r=f(),i=_(),a=g();t.exports={parse:v(),valid:y(),clean:b(),inc:x(),diff:S(),major:C(),minor:w(),patch:T(),prerelease:E(),compare:D(),rcompare:O(),compareLoose:k(),compareBuild:A(),sort:j(),rsort:M(),gt:N(),lt:P(),eq:F(),neq:I(),gte:L(),lte:R(),cmp:z(),coerce:B(),truncate:ee(),Comparator:H(),Range:V(),satisfies:U(),toComparators:ne(),maxSatisfying:re(),minSatisfying:ie(),minVersion:W(),validRange:G(),outside:K(),gtr:q(),ltr:J(),intersects:Y(),simplifyRange:ae(),subset:oe(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))();var se=c(`<span class=spinner aria-label=Carregando>`),ce=c(`<button>`),le=c(`<label class=field__label><input class=input>`),ue=c(`<input class=input>`),de=c(`<p class="field__error notice--error">`),X=c(`<div>`),fe=c(`<span aria-hidden=true> *`),Z=c(`<option value>`),pe=c(`<label class=field__label><select class=input>`),me=c(`<select class=input>`),Q=c(`<option>`),he=c(`<div class=card-header><h3>`),ge=c(`<span>`),_e=c(`<table class=table><thead><tr></tr></thead><tbody>`),ve=c(`<div class=table-loading><span class=spinner aria-label=Carregando>`),ye=c(`<p class=muted>`),be=c(`<th>`),$=c(`<tr>`),xe=c(`<td>`),Se=c(`<div class=pagination><button class="btn btn-secondary btn-sm"type=button>← Anterior</button><span class=muted>Página <!> de </span><button class="btn btn-secondary btn-sm"type=button>Próxima →`),Ce=[`primary`,`secondary`,`danger`,`ghost`];function we(e){let r=Ce.includes(e.variant)?e.variant:`secondary`,a=()=>[`btn`,`btn-${r}`,e.size===`sm`?`btn-sm`:``,e.class??``].filter(Boolean).join(` `);return(()=>{var r=ce();return r.$$click=()=>e.onClick?.call(e),s(r,i(t,{get when(){return e.loading},get fallback(){return e.children},get children(){return se()}})),n(t=>{var n=e.type??`button`,i=a(),o=e.disabled||e.loading;return n!==t.e&&d(r,`type`,t.e=n),i!==t.t&&u(r,t.t=i),o!==t.a&&(r.disabled=t.a=o),t},{e:void 0,t:void 0,a:void 0}),r})()}function Te(e){let r=t=>{var n;(n=e.onInput)==null||n.call(e,t.currentTarget.value)};return(()=>{var a=X();return s(a,i(t,{get when(){return e.label},get children(){var t=le(),i=t.firstChild;return s(t,()=>e.label,i),s(t,(()=>{var t=l(()=>!!e.required);return()=>t()?fe():null})(),i),i.$$input=r,n(t=>{var n=e.type??`text`,r=e.name,a=e.placeholder,o=e.disabled,s=e.required;return n!==t.e&&d(i,`type`,t.e=n),r!==t.t&&d(i,`name`,t.t=r),a!==t.a&&d(i,`placeholder`,t.a=a),o!==t.o&&(i.disabled=t.o=o),s!==t.i&&(i.required=t.i=s),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>i.value=e.value??``),t}}),null),s(a,i(t,{get when(){return!e.label},get children(){var t=ue();return t.$$input=r,n(n=>{var r=e.type??`text`,i=e.name,a=e.placeholder,o=e.disabled,s=e.required;return r!==n.e&&d(t,`type`,n.e=r),i!==n.t&&d(t,`name`,n.t=i),a!==n.a&&d(t,`placeholder`,n.a=a),o!==n.o&&(t.disabled=n.o=o),s!==n.i&&(t.required=n.i=s),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>t.value=e.value??``),t}}),null),s(a,i(t,{get when(){return e.error},get children(){var t=de();return s(t,()=>e.error),t}}),null),n(()=>u(a,`field ${e.class??``}`.trim())),a})()}function Ee(e){let a=e.options;return(()=>{var o=X();return s(o,i(t,{get when(){return e.label},get children(){var o=pe(),c=o.firstChild;return s(o,()=>e.label,c),c.addEventListener(`change`,t=>e.onChange?.call(e,t.currentTarget.value)),s(c,i(t,{get when(){return e.placeholder},get children(){var t=Z();return s(t,()=>e.placeholder),t}}),null),s(c,i(r,{each:a,children:e=>(()=>{var t=Q();return s(t,()=>e.label),n(()=>t.value=e.value),t})()}),null),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&d(c,`name`,t.e=n),r!==t.t&&(c.disabled=t.t=r),t},{e:void 0,t:void 0}),n(()=>c.value=e.value??``),o}}),null),s(o,i(t,{get when(){return!e.label},get children(){var o=me();return o.addEventListener(`change`,t=>e.onChange?.call(e,t.currentTarget.value)),s(o,i(t,{get when(){return e.placeholder},get children(){var t=Z();return s(t,()=>e.placeholder),t}}),null),s(o,i(r,{each:a,children:e=>(()=>{var t=Q();return s(t,()=>e.label),n(()=>t.value=e.value),t})()}),null),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&d(o,`name`,t.e=n),r!==t.t&&(o.disabled=t.t=r),t},{e:void 0,t:void 0}),n(()=>o.value=e.value??``),o}}),null),n(()=>u(o,`field ${e.class??``}`.trim())),o})()}function De(e){return(()=>{var r=X();return s(r,i(t,{get when(){return e.title},get children(){var t=he(),n=t.firstChild;return s(n,()=>e.title),t}}),null),s(r,()=>e.children,null),n(()=>u(r,`card ${e.class??``}`.trim())),r})()}function Oe(e){let t=e.variant??`secondary`;return(()=>{var n=ge();return u(n,`badge badge-${t}`),s(n,()=>e.children),n})()}function ke(e){let o=e.columns;return i(t,{get when(){return!e.loading},get fallback(){return ve()},get children(){return i(t,{get when(){return e.data.length>0},get fallback(){return(()=>{var t=ye();return s(t,()=>e.emptyMessage??`Nenhum registro.`),t})()},get children(){var c=_e(),l=c.firstChild,u=l.firstChild,d=l.nextSibling;return s(u,i(r,{each:o,children:e=>(()=>{var t=be();return s(t,()=>e.label),n(n=>a(t,e.width?{width:e.width}:void 0,n)),t})()})),s(d,i(r,{get each(){return e.data},children:e=>(()=>{var n=$();return s(n,i(r,{each:o,children:n=>(()=>{var r=xe();return s(r,i(t,{get when(){return n.render},get fallback(){return String(e[n.key]??``)},get children(){return n.render?.call(n,e[n.key],e)}})),r})()})),n})()})),c}})}})}function Ae(e){let r=()=>Math.max(1,Math.ceil(e.total/Math.max(1,e.limit)));return i(t,{get when(){return r()>1},get children(){var t=Se(),i=t.firstChild,a=i.nextSibling,o=a.firstChild.nextSibling;o.nextSibling;var c=a.nextSibling;return i.$$click=()=>e.onPageChange(e.page-1),s(a,()=>e.page,o),s(a,r,null),c.$$click=()=>e.onPageChange(e.page+1),n(t=>{var n=e.page<=1,a=e.page>=r();return n!==t.e&&(i.disabled=t.e=n),a!==t.t&&(c.disabled=t.t=a),t},{e:void 0,t:void 0}),t}})}o([`click`,`input`]);export{Ae as a,Te as i,we as n,Ee as o,De as r,ke as s,Oe as t};
@@ -1 +0,0 @@
1
- import{d as e,i as t,l as n,m as r,r as i,s as a}from"./solid.DN8T1HsY.js";import{i as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p}from"./web.Bze9SKEA.js";import{t as m}from"./api.DSW9LMA5.js";import"./dist.Di6E6ZlC.js";var h=l(`<a class=sidebar__link><!$><!/> <!$><!/>`),g=l(`<span aria-hidden=true>`);function _(e){let t=()=>e.extensions.menuPages.filter(t=>e.can(t.capability??`read`));return a(i,{get each(){return t()},children:e=>(()=>{var t=u(h),r=t.firstChild,[i,a]=o(r.nextSibling),s=i.nextSibling.nextSibling,[l,f]=o(s.nextSibling);return c(t,(()=>{var t=d(()=>!!e.icon);return()=>t()?(()=>{var t=u(g);return c(t,()=>e.icon),t})():null})(),i,a),c(t,()=>e.label,l,f),n(()=>p(t,`href`,`/plugins/${e.slug}`)),t})()})}s([`click`]);var v=l(`<div class=sidebar-plugins data-extensions=sidebar><!$><!/><!$><!/>`),y=l(`<div><span>`);function b(){return{menuPages:[],submenuPages:[],dashboardWidgets:[],metaBoxes:[],notices:[],columns:{},columnRenderers:{},actionLinks:[]}}function x(e){let t=b();for(let n of e){if(n.status!==`ACTIVE`&&n.status!==`ACTIVATED`)continue;let e=n.manifest?.admin;if(!e)continue;let r=n.slug??n.name;t.menuPages.push(...e.menuPages?.map(e=>({...e,slug:e.slug.startsWith(`${r}/`)?e.slug:`${r}/${e.slug}`}))??[]),t.dashboardWidgets.push(...e.dashboardWidgets?.map(e=>({...e,id:e.id.includes(`:`)?e.id:`${r}:${e.id}`,componentId:e.componentId.includes(`:`)?e.componentId:`${r}:${e.componentId}`}))??[]),t.notices.push(...e.notices?.map(e=>({...e,id:e.id.includes(`:`)?e.id:`${r}:${e.id}`}))??[])}return t}function S(){let[s,l]=e(b());r(async()=>{try{let e=await m.getPlugins();l(x(e))}catch{}});let d=()=>!0;return a(t,{get when(){return s().menuPages.length>0},get children(){var e=u(v),t=e.firstChild,[r,l]=o(t.nextSibling),m=r.nextSibling,[h,g]=o(m.nextSibling);return c(e,a(i,{get each(){return s().notices},children:e=>(()=>{var t=u(y),r=t.firstChild;return c(r,()=>e.message),n(n=>{var r=`notice notice--${e.level}`,i=e.id.split(`:`)[0];return r!==n.e&&f(t,n.e=r),i!==n.t&&p(t,`data-plugin`,n.t=i),n},{e:void 0,t:void 0}),t})()}),r,l),c(e,a(_,{get extensions(){return s()},can:d}),h,g),e}})}export{S as PluginExtensionsSlot,b as emptyExtensionsState,x as extensionsFromPlugins};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime.BpQH8Ho1.js";import{d as t,m as n}from"./solid.DN8T1HsY.js";import{t as r}from"./api.DSW9LMA5.js";var i=[`pt-BR`,`en`,`es-ES`,`ru`,`uk`,`tr`,`he`,`it`,`pl`,`zh-CN`,`ja`,`ar`,`sw`,`yo`,`zu`,`am`,`ha`,`ig`],a={"pt-BR":`Português (Brasil)`,en:`English`,"es-ES":`Español`,ru:`Русский`,uk:`Українська`,tr:`Türkçe`,he:`עברית`,it:`Italiano`,pl:`Polski`,"zh-CN":`中文 (简体)`,ja:`日本語`,ar:`العربية`,sw:`Kiswahili`,yo:`Yorùbá`,zu:`isiZulu`,am:`አማርኛ`,ha:`Hausa`,ig:`Igbo`},o={"pt-BR":`🇧🇷`,en:`🇺🇸`,"es-ES":`🇪🇸`,ru:`🇷🇺`,uk:`🇺🇦`,tr:`🇹🇷`,he:`🇮🇱`,it:`🇮🇹`,pl:`🇵🇱`,"zh-CN":`🇨🇳`,ja:`🇯🇵`,ar:`🇸🇦`,sw:`🇹🇿`,yo:`🇳🇬`,zu:`🇿🇦`,am:`🇪🇹`,ha:`🇳🇬`,ig:`🇳🇬`},s=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},c=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),ee=function(e){return`/`+e},l={},u=function(e){return e.pathname.endsWith(`.css`)},d=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ee(t,n);let r=s(t);if(r.href in l)return;l[r.href]=!0;let i=u(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:c,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},f=new Map;async function p(e){if(f.has(e))return f.get(e);try{let t=await s(Object.assign({"./locales/ar.json":()=>d(()=>import(`./ar.9BcNkJMI.js`),[]),"./locales/en.json":()=>d(()=>Promise.resolve().then(()=>b),void 0),"./locales/es-ES.json":()=>d(()=>import(`./es-ES.DgqDFCmG.js`),[]),"./locales/he.json":()=>d(()=>import(`./he.11dIJHQw.js`),[]),"./locales/it.json":()=>d(()=>import(`./it.yCdgk3Xj.js`),[]),"./locales/ja.json":()=>d(()=>import(`./ja.BIm7Hwe_.js`),[]),"./locales/pl.json":()=>d(()=>import(`./pl.dUwrcITB.js`),[]),"./locales/pt-BR.json":()=>d(()=>import(`./pt-BR.BNlZx8-w.js`),[]),"./locales/ru.json":()=>d(()=>import(`./ru.lmDiQaSu.js`),[]),"./locales/sw.json":()=>d(()=>import(`./sw._qHdoFbp.js`),[]),"./locales/tr.json":()=>d(()=>import(`./tr.Do-lr98T.js`),[]),"./locales/uk.json":()=>d(()=>import(`./uk.DTUX-N1c.js`),[]),"./locales/yo.json":()=>d(()=>import(`./yo.BIYG0J7I.js`),[]),"./locales/zh-CN.json":()=>d(()=>import(`./zh-CN.C7Iod1E1.js`),[])}),`./locales/${e}.json`,3),n=t.default??t;return f.set(e,n),n}catch{return e===`en`?{}:p(`en`)}}var m=`admin_locale`;function h(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(?:^|; )${m}=([^;]+)`));return e?.[1]&&i.includes(e[1])?e[1]:null}function g(e){typeof document<`u`&&(document.cookie=`${m}=${e}; path=/; max-age=31536000; SameSite=Lax`)}function _(){if(typeof navigator>`u`)return`en`;let e=navigator.language?.split(`-`)[0]?.toLowerCase(),t=navigator.language?.toLowerCase();for(let n of i)if(n.toLowerCase()===t||n.split(`-`)[0]===e)return n;return`en`}async function te(){try{let e=await r.getUserLocale();if(e&&i.includes(e))return e}catch{}return null}async function ne(e){await r.setUserLocale(e)}async function v(){return h()||await te()||_()||`en`}async function y(e){g(e);try{await ne(e)}catch{}}var b=e({access:()=>k,activity:()=>I,adminBar:()=>L,common:()=>F,content:()=>C,dashboard:()=>S,default:()=>V,footer:()=>R,helpTabs:()=>z,layout:()=>x,login:()=>P,logs:()=>A,media:()=>w,menus:()=>D,plugins:()=>M,resources:()=>O,screenOptions:()=>B,settings:()=>E,themes:()=>N,users:()=>T,webhooks:()=>j}),x={appName:`OkCMS`,admin:`Admin`,nav:{dashboard:`Dashboard`,content:`Content`,media:`Media`,users:`Users`,menus:`Menus`,settings:`Settings`,plugins:`Plugins`,themes:`Themes`},actions:{logout:`Logout`,newPost:`New Post`,uploadMedia:`Upload Media`,addUser:`Add User`,openSettings:`Settings`}},S={title:`Dashboard`,stats:{totalContent:`Total Content`,published:`Published`,drafts:`Drafts`,mediaFiles:`Media Files`,users:`Users`},recent:{title:`Recent Content`,viewAll:`View All`,empty:`No content yet — create your first!`,columns:{title:`Title`,type:`Type`,status:`Status`,updated:`Updated`}},widgets:{atGlance:`At a Glance`,posts:`Posts`,postsDesc:`Published / Drafts / Trash`,pages:`Pages`,pagesDesc:`Published / Drafts / Trash`,media:`Media`,mediaDesc:`Files in the library`,users:`Users`,usersDesc:`Total / Active / Inactive`,version:`Version`,storage:`Storage`,quickDraft:{title:`Quick Draft`,heading:`Title`,headingPlaceholder:`Give your draft a title`,content:`Content`,contentPlaceholder:`What's on your mind?`,save:`Save Draft`,yourDrafts:`Your Drafts`,noDrafts:`No drafts yet.`},activity:{title:`Activity`,empty:`No activity yet.`}}},C={list:{title:`Content`,description:`Search, filter, edit and publish your content.`,typeNotFound:`This content type was not found.`,columns:{title:`Title`,type:`Type`,status:`Status`,updated:`Updated`},actions:{edit:`Edit`,publish:`Publish`,unpublish:`Unpublish`,delete:`Delete`},filters:{search:`Search content…`,allTypes:`All types`,allStatus:`All status`},buttons:{new:`+ New content`,addNew:`+ Add new`,search:`Search`},all:`All content`,empty:`No content found.`,statuses:{draft:`Draft`,published:`Published`,archived:`Archived`},confirmDelete:`Delete "{title}"?`,toasts:{published:`Content published ✓`,unpublished:`Content unpublished ✓`}},editor:{type:`Type`,adding:`Add new`,editing:`Edit`,backToList:`Back to list`,saving:`Saving…`,title:`Title`,titlePlaceholder:`Add title`,slug:`Slug`,slugPlaceholder:`auto-generated-from-title`,toolbar:`Editor toolbar`,bodyPlaceholder:`Start writing…`,linkPrompt:`Enter the URL:`,excerpt:`Excerpt`,featuredImage:`Featured Image (media ID)`,mediaIdPlaceholder:`Media ID`,featuredImageHint:`Choose a media item from the Media library.`,pageAttributes:`Page attributes`,publishPanel:`Publish`,status:`Status`,statusOptions:{draft:`Draft`,published:`Published`,archived:`Archived`},layout:`Layout`,layoutAuto:`Automatic (theme hierarchy)`,customFields:`Custom Fields`,inspectTypes:`Inspect available types`,save:`Save`,saved:`Content saved successfully.`},taxonomy:{title:`Taxonomy terms`,back:`← Back to content`,choose:`Choose a taxonomy from the content menu.`,notFound:`Taxonomy not found.`,addTerm:`Add new term`,editTerm:`Edit term`,name:`Name`,slug:`Slug`,description:`Description`,descriptionHint:`Manage the terms used by this content type.`,attachedTo:`Attached to`,add:`Add term`,delete:`Delete`,empty:`No terms yet.`,confirmDelete:`Delete "{name}"?`}},w={title:`Media Library`,description:"Upload and manage images, videos and documents. Files are stored in `uploads/` and served publicly.",upload:{dropzone:`Drop files here or`,select:`Select files`,uploading:`Uploading…`,hint:`Images, videos, audio and documents · up to 25MB per file`},toolbar:{search:`Search by name or alt…`,allTypes:`All types`,searchBtn:`Search`},mimeTypes:{png:`PNG`,jpeg:`JPEG`,gif:`GIF`,webp:`WebP`,svg:`SVG`,pdf:`PDF`,mp4:`MP4`,mp3:`MP3`},empty:`No files yet. Upload the first one!`,details:{title:`Details`,file:`File`,type:`Type`,size:`Size`,url:`URL`,copy:`Copy`,alt:`Alt text`,caption:`Caption`,save:`Save details`,delete:`Delete`,close:`Close`,confirmDelete:`Delete "{filename}"? The file will be removed from disk.`,saved:`Details saved ✓`,copied:`URL copied ✓`,copyError:`Could not copy URL`},toasts:{uploaded:`{count} file(s) uploaded ✓`}},T={title:`Users`,description:`Manage accounts, roles and project access.`,new:`New User`,toolbar:{search:`Search by name or email…`,allStatus:`All status`,active:`Active`,inactive:`Inactive`,newBtn:`+ New user`,searchBtn:`Search`},table:{name:`Name`,email:`Email`,role:`Role`,status:`Status`,lastAccess:`Last access`,actions:{manage:`Manage`,delete:`Delete`}},empty:`No users found.`,noRole:`No role`,detail:{title:`Manage user`,fields:{name:`Name`,email:`Email`,status:`Status`,role:`Role`,password:`Password`},statusOptions:{active:`Active`,inactive:`Inactive`},rolePlaceholder:`— no role —`,meta:`Created on {created} · last access {lastAccess}`,actions:{save:`Save`,resetPassword:`Reset password`,close:`Close`},passwordPrompt:`New password for {email} (minimum 8 chars):`,passwordError:`Password must be at least 8 characters`,toasts:{roleUpdated:`Role for {name} updated ✓`,passwordChanged:`Password for {name} changed ✓`,saved:`User {name} saved ✓`,deleted:`User {name} deleted ✓`},confirmDelete:`Delete user {email}?`}},E={general:{title:`General`,description:`Basic information displayed on the site.`,back:`← All settings`,fields:{siteTitle:`Site Title`,siteTitlePlaceholder:`My Site`,siteDescription:`Description`,siteDescriptionPlaceholder:`A new site built with OkCMS`,language:`Language`,timezone:`Timezone`,timezonePlaceholder:`America/Sao_Paulo`},saved:`Settings saved ✓`,loading:`Loading…`,save:`Save`},postTypes:{title:`Content Types`,description:`Create custom content types (CPTs) beyond Posts and Pages.`,form:{title:`Create Content Type`,slug:`Slug (singular, e.g.: portfolio)`,slugHint:`Only lowercase letters, numbers and underscore`,singular:`Singular name`,plural:`Plural name`,supports:`Supports`,supportsOptions:{title:`Title`,editor:`Editor`,thumbnail:`Featured Image`,excerpt:`Excerpt`,revisions:`Revisions`},hasArchive:`Has public archive (/slug)`,singleton:`Singleton (only one content entry)`,icon:`Sidebar icon (Lucide name)`,iconHint:`Examples: box, package, shopping-bag, file-text`,editTitle:`Edit Content Type`,update:`Update`,cancel:`Cancel`,create:`Create`},table:{slug:`Slug`,singular:`Singular`,plural:`Plural`,source:`Source`,supports:`Supports`,archive:`Archive`,mode:`Mode`,singleton:`Singleton`,collection:`Collection`,icon:`Icon`,actions:{edit:`Edit`,remove:`Remove`}},sources:{admin:`Admin`,core:`Core`}},taxonomies:{title:`Taxonomies`,description:`Create custom taxonomies and link them to content types.`,form:{title:`Create Taxonomy`,name:`Name (e.g.: Genre)`,slug:`Slug (optional, generated from name)`,slugHint:`Only lowercase letters, numbers and underscore`,hierarchical:`Hierarchical (allows parent/child terms)`,attachTo:`Link to content types`,create:`Create`},table:{taxonomy:`Taxonomy`,hierarchical:`Hierarchical`,attachedTypes:`Linked content types`,actions:{remove:`Remove`}}},customFields:{title:`Custom Fields`,description:`Create field groups, arrange fields and choose which standard fields are visible for each content type.`,contentType:`Content type`,location:{title:`Location rules`,description:`Choose where this field group appears. Rules in the same group use AND; groups use OR.`,parameter:`Location parameter`,operator:`Operator`,chooseValue:`Choose a value`,valuePlaceholder:`Enter a value or slug`,required:`Add a value to every location rule.`,addRule:`Add condition`,addGroup:`Add OR group`,remove:`Remove`,and:`AND`,or:`OR`,params:{content_type:`Post type`,content_slug:`Post slug`,taxonomy:`Taxonomy`,term:`Term slug`,user_role:`User role`,page_template:`Page template`,post_status:`Post status`},operators:{eq:`is`,neq:`is not`}},standard:{title:`Standard fields`,description:`Title and slug are required. The other standard fields can be enabled or disabled.`,enabled:`Enabled`,locked:`Required`,fields:{title:`Title`,slug:`Slug`,content:`Content`,excerpt:`Excerpt`,featured_image:`Featured image`,seo_title:`SEO title`,seo_description:`SEO description`,status:`Status`,author:`Author`}},groups:{title:`Field groups`,new:`New field group`,empty:`No custom field groups yet.`,fields:`fields`,appliesTo:`Applies to`,allContentTypes:`All content types`,edit:`Edit`,active:`Active`,inactive:`Inactive`},form:{createTitle:`Create field group`,editTitle:`Edit field group`,title:`Group name`,titlePlaceholder:`Example: Product details`,assignTitle:`Location`,assignDescription:`Choose the content type where this field group will be available.`,contentType:`Content type`,position:`Position`,positions:{normal:`Normal`,side:`Sidebar`,acf_after_title:`After title`},displayStyle:`Display style`,displayStyles:{standard:`Standard`,seamless:`Seamless`,grouped:`Grouped`},field:`Field`,fieldName:`Name/key`,fieldNamePlaceholder:`product_code`,fieldLabel:`Label`,fieldLabelPlaceholder:`Product code`,fieldType:`Type`,instructions:`Instructions`,instructionsPlaceholder:`Optional help text for editors`,required:`Required`,options:`Options`,optionsHint:`One option per line: value|Label`,addField:`Add field`,removeField:`Remove`,dragHint:`Drag to reorder`,save:`Save group`,cancel:`Cancel`,newFieldDefault:`New field`,saved:`Field group saved.`,deleted:`Field group deleted.`},actions:{delete:`Delete`,confirmDelete:`Delete this field group?`},loading:`Loading custom fields…`,loadError:`Could not load custom fields.`}},D={title:`Menus`,description:`Create and manage the navigation menus used by your site.`,hint:`Menus are independent from content types and can be rendered by your theme.`,new:`New menu`,create:`Create menu`,edit:`Edit menu`,name:`Name`,slug:`Slug`,items:`Menu items (JSON)`,itemsHint:`Use an array of menu item objects. Your theme controls how they are rendered.`,invalidItems:`Menu items must be a valid JSON array.`,saved:`Menu saved.`,deleted:`Menu deleted.`,empty:`No menus yet.`,confirmDelete:`Delete menu "{name}"?`},O={title:`Content Resources`,description:`Description`,tabs:{category:`Categories`,tag:`Tags`,menu:`Menus`},new:`New resource`,name:`Name`,slug:`Slug`,items:`Menu items (JSON)`,saved:`Resource saved.`,confirmDelete:`Delete this resource?`,form:{new:`Create resource`,edit:`Edit resource`},terms:{title:`Taxonomy terms`,choose:`Choose a taxonomy`,new:`New term`}},k={title:`Access`,description:`Manage roles, permissions and tenants.`,roles:`Roles`,tenants:`Tenants`,permissions:`Permissions (comma separated)`,domain:`Domain`},A={title:`Logs`,description:`Complete audit history of actions performed in the CMS.`,retentionTitle:`Log retention`,retentionDescription:`Logs older than this period are removed automatically.`,retentionDays:`Keep logs for (days)`,retentionSaved:`Log retention updated.`,historyTitle:`Audit history`,actionFilter:`Filter by action`,resourceFilter:`Filter by resource`,loading:`Loading logs…`,empty:`No actions recorded yet.`,system:`System`,columns:{date:`Date`,action:`Action`,resource:`Resource`,user:`User`,status:`Status`,ip:`IP`}},j={title:`Webhooks`,description:`Send CMS events to external services with configurable authentication.`,listTitle:`Configured webhooks`,new:`New webhook`,create:`Create webhook`,edit:`Edit webhook`,url:`Endpoint URL`,events:`Events`,authentication:`Authentication`,active:`Active`,token:`Bearer token`,username:`Username`,password:`Password`,headerName:`Header name`,apiKeyValue:`API key value`,secret:`HMAC secret`,signatureHeader:`Signature header`,keepExisting:`Leave blank to keep current value`,loading:`Loading webhooks…`,empty:`No webhooks configured.`,auth:{none:`None`,bearer:`Bearer token`,basic:`Basic authentication`,apiKey:`API key`,hmac_sha256:`HMAC SHA-256`}},M={title:`Plugins`,description:`Manage installed plugins.`,directoryHint:`Detected automatically from the project's plugins/ directory. Use the CLI or deploy files to add extensions.`,columns:{name:`Name`,version:`Version`,status:`Status`,actions:`Actions`},status:{active:`Active`,installed:`Installed`,inactive:`Inactive`},activate:`Activate`,deactivate:`Deactivate`,install:`Install plugin`,uninstall:`Uninstall`,confirmUninstall:`Uninstall {name}?`,name:`Plugin name`,version:`Version`,manifest:`Manifest (JSON)`,loadError:`Could not load plugins.`,activateError:`Could not activate the plugin.`,deactivateError:`Could not deactivate the plugin.`,installError:`Could not install the plugin.`,uninstallError:`Could not uninstall the plugin.`,empty:`No plugins installed.`},N={title:`Themes`,description:`Manage installed themes.`,directoryHint:`Detected automatically from the project's themes/ directory. Use the CLI or deploy files to add themes.`,version:`Version`,active:`Active`,status:{active:`Active`,installed:`Installed`,inactive:`Inactive`},activate:`Activate`,deactivate:`Deactivate`,install:`Install theme`,uninstall:`Uninstall`,confirmUninstall:`Uninstall {name}?`,name:`Theme name`,manifest:`Manifest (JSON)`,loadError:`Could not load themes.`,activateError:`Could not activate the theme.`,deactivateError:`Could not deactivate the theme.`,installError:`Could not install the theme.`,uninstallError:`Could not uninstall the theme.`,empty:`No themes installed.`},P={title:`Login`,subtitle:`Sign in to your account`,email:`Email`,password:`Password`,submit:`Sign In`,failed:`Invalid email or password`},F={save:`Save`,cancel:`Cancel`,delete:`Delete`,edit:`Edit`,close:`Close`,confirm:`Confirm`,loading:`Loading…`,yes:`Yes`,no:`No`,search:`Search`,filter:`Filter`,create:`Create`,update:`Update`,remove:`Remove`,viewAll:`View All`,back:`Back`,next:`Next`,previous:`Previous`,page:`Page`,of:`of`,items:`items`,item:`item`,empty:`No {items} found.`,toast:{success:`✓`,error:`Error: {message}`},status:{active:`Active`,inactive:`Inactive`,draft:`Draft`,published:`Published`,archived:`Archived`,locked:`Locked`},language:`Language`,refresh:`Refresh`,actions:`Actions`},I={justNow:`just now`,minAgo:`minutes ago`,ago:`ago`,published:`Published`,updated:`Updated`,newUser:`New user: {name}`},L={mainMenu:`Main menu`,notifications:`Notifications`,notificationsEmpty:`No recent activity`,settings:`Settings`,toggleSidebar:`Toggle sidebar`,userMenu:`User menu`},R={copyright:`© 2026 OkCMS. All rights reserved.`,links:`Links`,website:`Website`,github:`GitHub`,docs:`Documentation`,community:`Community`,poweredBy:`Powered by Oktis Works`},z={title:`Help`,label:`Help`,tabs:`Help topics`,topics:{overview:{label:`Overview`,content:`<h4>Welcome to the OkCMS Dashboard</h4><p>This dashboard gives you an overview of your site's content and activity.</p><h4>Available Widgets</h4><ul><li><strong>At a Glance:</strong> overview of posts, pages, media, and users</li><li><strong>Quick Draft:</strong> save drafts quickly from the dashboard</li><li><strong>Activity:</strong> recent site activity and updates</li></ul>`},content:{label:`Content Management`,content:`<h4>Managing Content</h4><p>Create, edit, and publish content from the Content section.</p><h4>Quick Actions</h4><ul><li>Click "New Content" to create a new post or page</li><li>Use filters to find specific content</li><li>Bulk actions available for multiple items</li></ul>`},media:{label:`Media Library`,content:`<h4>Managing Media</h4><p>Upload and manage images, videos, and documents.</p><h4>Tips</h4><ul><li>Drag and drop files to upload</li><li>Add alt text for accessibility</li><li>Organize with folders (coming soon)</li></ul>`}}},B={title:`Screen Options`,label:`Screen Options`,showOnScreen:`Show on screen`},V={layout:x,dashboard:S,content:C,media:w,users:T,settings:E,menus:D,resources:O,access:k,logs:A,webhooks:j,plugins:M,themes:N,login:P,common:F,activity:I,adminBar:L,footer:R,helpTabs:z,screenOptions:B},H=new Map,U=V,[W,G]=t(0),K=null;function q(e){return(e.split(`.`).at(-1)??e).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).replace(/\s+/g,` `).trim().replace(/^\w/,e=>e.toUpperCase())}function J(e,t){return function(n,r){let i=n.split(`.`),a=e;for(let e of i)if(a&&typeof a==`object`&&e in a)a=a[e];else{a=t;for(let e of i)if(a&&typeof a==`object`&&e in a)a=a[e];else return q(n);break}return typeof a==`string`?r?a.replace(/\{(\w+)\}/g,(e,t)=>String(r[t]??``)):a:q(n)}}async function Y(e){if(H.has(e))return H.get(e);let[t,n]=await Promise.all([p(e),p(`en`)]),r=J(t,n);return H.set(e,r),r}var X=J(U,U),Z=`en`,Q=!0,re=`okcms:locale-changed`;function $(){typeof window<`u`&&window.dispatchEvent(new CustomEvent(re,{detail:{locale:Z}}))}function ie(e){return n(async()=>{Q&&(K||=(async()=>{let t=e??await v();Z=t,X=await Y(t),Q=!1,G(e=>e+1),$()})(),await K)}),{t:(e,t)=>(W(),X(e,t)),locale:()=>(W(),Z),changeLocale:async e=>{Q=!0,Z=e,X=await Y(e),Q=!1,G(e=>e+1),$(),await y(e)},get loading(){return Q}}}export{i as a,a as i,ie as n,o as r,Y as t};
@@ -1 +0,0 @@
1
- var e={appName:`OkCMS`,admin:`Admin`,nav:{dashboard:`Painel`,content:`Conteúdo`,media:`Mídia`,users:`Usuários`,menus:`Menus`,settings:`Configurações`,plugins:`Plugins`,themes:`Temas`},actions:{logout:`Sair`,newPost:`Novo Post`,uploadMedia:`Enviar Mídia`,addUser:`Adicionar Usuário`,openSettings:`Configurações`}},t={title:`Painel`,stats:{totalContent:`Total de Conteúdos`,published:`Publicados`,drafts:`Rascunhos`,mediaFiles:`Arquivos de Mídia`,users:`Usuários`},recent:{title:`Conteúdos Recentes`,viewAll:`Ver Todos`,empty:`Nenhum conteúdo ainda — crie o primeiro!`,columns:{title:`Título`,type:`Tipo`,status:`Status`,updated:`Atualizado`}},widgets:{atGlance:`De relance`,posts:`Posts`,postsDesc:`Publicados / Rascunhos / Lixeira`,pages:`Páginas`,pagesDesc:`Publicadas / Rascunhos / Lixeira`,media:`Mídia`,mediaDesc:`Arquivos na biblioteca`,users:`Usuários`,usersDesc:`Total / Ativos / Inativos`,version:`Versão`,storage:`Armazenamento`,quickDraft:{title:`Rascunho rápido`,heading:`Título`,headingPlaceholder:`Dê um título ao seu rascunho`,content:`Conteúdo`,contentPlaceholder:`O que está pensando?`,save:`Salvar rascunho`,yourDrafts:`Seus rascunhos`,noDrafts:`Nenhum rascunho ainda.`},activity:{title:`Atividade`,empty:`Nenhuma atividade ainda.`}}},n={list:{title:`Conteúdo`,description:`Busque, filtre, edite e publique seu conteúdo.`,typeNotFound:`Este tipo de conteúdo não foi encontrado.`,columns:{title:`Título`,type:`Tipo`,status:`Status`,updated:`Atualizado`},actions:{edit:`Editar`,publish:`Publicar`,unpublish:`Despublicar`,delete:`Excluir`},filters:{search:`Buscar conteúdo…`,allTypes:`Todos os tipos`,allStatus:`Todos os status`},buttons:{new:`+ Novo conteúdo`,addNew:`+ Adicionar novo`,search:`Buscar`},all:`Todo o conteúdo`,empty:`Nenhum conteúdo encontrado.`,statuses:{draft:`Rascunho`,published:`Publicado`,archived:`Arquivado`},confirmDelete:`Excluir "{title}"?`,toasts:{published:`Conteúdo publicado ✓`,unpublished:`Conteúdo despublicado ✓`}},editor:{type:`Tipo`,adding:`Adicionar novo`,editing:`Editar`,backToList:`Voltar para a lista`,saving:`Salvando…`,title:`Título`,titlePlaceholder:`Adicione um título`,slug:`Slug`,slugPlaceholder:`gerado-a-partir-do-titulo`,toolbar:`Barra de ferramentas do editor`,bodyPlaceholder:`Comece a escrever…`,linkPrompt:`Digite a URL:`,excerpt:`Resumo`,featuredImage:`Imagem destacada (ID da mídia)`,mediaIdPlaceholder:`ID da mídia`,featuredImageHint:`Escolha um item na Biblioteca de Mídia.`,pageAttributes:`Atributos da página`,publishPanel:`Publicar`,status:`Status`,statusOptions:{draft:`Rascunho`,published:`Publicado`,archived:`Arquivado`},layout:`Layout`,layoutAuto:`Automático (hierarquia do tema)`,customFields:`Campos personalizados`,inspectTypes:`Inspecionar tipos disponíveis`,save:`Salvar`,saved:`Conteúdo salvo com sucesso.`},taxonomy:{title:`Termos da taxonomia`,back:`← Voltar para o conteúdo`,choose:`Escolha uma taxonomia no menu de conteúdo.`,notFound:`Taxonomia não encontrada.`,addTerm:`Adicionar novo termo`,editTerm:`Editar termo`,name:`Nome`,slug:`Slug`,description:`Descrição`,descriptionHint:`Gerencie os termos usados por este tipo de conteúdo.`,attachedTo:`Vinculada a`,add:`Adicionar termo`,delete:`Excluir`,empty:`Nenhum termo ainda.`,confirmDelete:`Excluir "{name}"?`}},r={title:`Biblioteca de Mídia`,description:"Envie e gerencie imagens, vídeos e documentos. Os arquivos ficam em `uploads/` e são servidos publicamente.",upload:{dropzone:`Arraste arquivos aqui ou`,select:`Selecionar arquivos`,uploading:`Enviando…`,hint:`Imagens, vídeos, áudios e documentos · até 25MB por arquivo`},toolbar:{search:`Buscar por nome ou alt…`,allTypes:`Todos os tipos`,searchBtn:`Buscar`},mimeTypes:{png:`PNG`,jpeg:`JPEG`,gif:`GIF`,webp:`WebP`,svg:`SVG`,pdf:`PDF`,mp4:`MP4`,mp3:`MP3`},empty:`Nenhum arquivo ainda. Envie o primeiro!`,details:{title:`Detalhes`,file:`Arquivo`,type:`Tipo`,size:`Tamanho`,url:`URL`,copy:`Copiar`,alt:`Texto alternativo (alt)`,caption:`Legenda`,save:`Salvar detalhes`,delete:`Excluir`,close:`Fechar`,confirmDelete:`Excluir "{filename}"? O arquivo será removido do disco.`,saved:`Detalhes salvos ✓`,copied:`URL copiada ✓`,copyError:`Não foi possível copiar a URL`},toasts:{uploaded:`{count} arquivo(s) enviado(s) ✓`}},i={title:`Usuários`,description:`Gerencie contas, papéis (roles) e acessos do projeto.`,new:`Novo Usuário`,toolbar:{search:`Buscar por nome ou email…`,allStatus:`Todos os status`,active:`Ativos`,inactive:`Inativos`,newBtn:`+ Novo usuário`,searchBtn:`Buscar`},table:{name:`Nome`,email:`Email`,role:`Papel`,status:`Status`,lastAccess:`Último acesso`,actions:{manage:`Gerenciar`,delete:`Excluir`}},empty:`Nenhum usuário encontrado.`,noRole:`Sem função`,detail:{title:`Gerenciar usuário`,fields:{name:`Nome`,email:`Email`,status:`Status`,role:`Papel`,password:`Senha`},statusOptions:{active:`Ativo`,inactive:`Inativo`},rolePlaceholder:`— sem papel —`,meta:`Criado em {created} · último acesso {lastAccess}`,actions:{save:`Salvar`,resetPassword:`Redefinir senha`,close:`Fechar`},passwordPrompt:`Nova senha para {email} (mínimo 8 caracteres):`,passwordError:`A senha precisa de pelo menos 8 caracteres`,toasts:{roleUpdated:`Papel de {name} atualizado ✓`,passwordChanged:`Senha de {name} alterada ✓`,saved:`Usuário {name} salvo ✓`,deleted:`Usuário {name} excluído ✓`},confirmDelete:`Excluir o usuário {email}?`}},a={general:{title:`Geral`,description:`Informações básicas exibidas no site.`,back:`← Todas as configurações`,fields:{siteTitle:`Título do site`,siteTitlePlaceholder:`Meu Site`,siteDescription:`Descrição`,siteDescriptionPlaceholder:`Um novo site feito com OkCMS`,language:`Idioma`,timezone:`Fuso horário`,timezonePlaceholder:`America/Sao_Paulo`},saved:`Configurações salvas ✓`,loading:`Carregando…`,save:`Salvar`},postTypes:{title:`Tipos de Conteúdo`,description:`Crie tipos de conteúdo personalizados (CPTs) além de Posts e Páginas.`,form:{title:`Criar Tipo de Conteúdo`,slug:`Slug (singular, ex.: portfolio)`,slugHint:`Apenas letras minúsculas, números e underscore`,singular:`Nome no singular`,plural:`Nome no plural`,supports:`Suporta`,supportsOptions:{title:`Título`,editor:`Editor`,thumbnail:`Imagem destacada`,excerpt:`Resumo`,revisions:`Revisões`},hasArchive:`Possui arquivo público (/slug)`,singleton:`Singleton (apenas um conteúdo)`,icon:`Ícone do sidebar (nome Lucide)`,iconHint:`Exemplos: box, package, shopping-bag, file-text`,editTitle:`Editar Tipo de Conteúdo`,update:`Atualizar`,cancel:`Cancelar`,create:`Criar`},table:{slug:`Slug`,singular:`Singular`,plural:`Plural`,source:`Origem`,supports:`Suporta`,archive:`Arquivo`,mode:`Modo`,singleton:`Singleton`,collection:`Coleção`,icon:`Ícone`,actions:{edit:`Editar`,remove:`Remover`}},sources:{admin:`Admin`,core:`Core`}},taxonomies:{title:`Taxonomias`,description:`Crie taxonomias personalizadas e vincule-as aos content types.`,form:{title:`Criar Taxonomia`,name:`Nome (ex.: Gênero)`,slug:`Slug (opcional, gerado do nome)`,slugHint:`Apenas letras minúsculas, números e underscore`,hierarchical:`Hierárquica (permite termos pai/filho)`,attachTo:`Vincular aos content types`,create:`Criar`},table:{taxonomy:`Taxonomia`,hierarchical:`Hierárquica`,attachedTypes:`Content types vinculados`,actions:{remove:`Remover`}}},customFields:{title:`Campos personalizados`,description:`Crie grupos de campos, organize os campos e escolha quais campos padrão ficam visíveis em cada tipo de conteúdo.`,contentType:`Tipo de conteúdo`,location:{title:`Regras de localização`,description:`Escolha onde este grupo aparece. Regras no mesmo grupo usam E; grupos diferentes usam OU.`,parameter:`Parâmetro de localização`,operator:`Operador`,chooseValue:`Escolha um valor`,valuePlaceholder:`Digite um valor ou slug`,required:`Adicione um valor a todas as regras de localização.`,addRule:`Adicionar condição`,addGroup:`Adicionar grupo OU`,remove:`Remover`,and:`E`,or:`OU`,params:{content_type:`Tipo de post`,content_slug:`Slug do post`,taxonomy:`Taxonomia`,term:`Slug do termo`,user_role:`Papel do usuário`,page_template:`Template da página`,post_status:`Status do post`},operators:{eq:`é`,neq:`não é`}},standard:{title:`Campos padrão`,description:`Título e slug são obrigatórios. Os demais campos padrão podem ser ativados ou desativados.`,enabled:`Ativo`,locked:`Obrigatório`,fields:{title:`Título`,slug:`Slug`,content:`Conteúdo`,excerpt:`Resumo`,featured_image:`Imagem destacada`,seo_title:`Título SEO`,seo_description:`Descrição SEO`,status:`Status`,author:`Autor`}},groups:{title:`Grupos de campos`,new:`Novo grupo de campos`,empty:`Ainda não há grupos de campos personalizados.`,fields:`campos`,appliesTo:`Aplicado a`,allContentTypes:`Todos os tipos de conteúdo`,edit:`Editar`,active:`Ativo`,inactive:`Inativo`},form:{createTitle:`Criar grupo de campos`,editTitle:`Editar grupo de campos`,title:`Nome do grupo`,titlePlaceholder:`Ex.: Detalhes do produto`,assignTitle:`Localização`,assignDescription:`Escolha o content type onde este grupo de campos estará disponível.`,contentType:`Content type`,position:`Posição`,positions:{normal:`Normal`,side:`Barra lateral`,acf_after_title:`Após o título`},displayStyle:`Estilo de exibição`,displayStyles:{standard:`Padrão`,seamless:`Contínuo`,grouped:`Agrupado`},field:`Campo`,fieldName:`Nome/chave`,fieldNamePlaceholder:`codigo_produto`,fieldLabel:`Rótulo`,fieldLabelPlaceholder:`Código do produto`,fieldType:`Tipo`,instructions:`Instruções`,instructionsPlaceholder:`Texto de ajuda opcional para editores`,required:`Obrigatório`,options:`Opções`,optionsHint:`Uma opção por linha: valor|Rótulo`,addField:`Adicionar campo`,removeField:`Remover`,dragHint:`Arraste para reordenar`,save:`Salvar grupo`,cancel:`Cancelar`,newFieldDefault:`Novo campo`,saved:`Grupo de campos salvo.`,deleted:`Grupo de campos excluído.`},actions:{delete:`Excluir`,confirmDelete:`Excluir este grupo de campos?`},loading:`Carregando campos personalizados…`,loadError:`Não foi possível carregar os campos personalizados.`}},o={title:`Menus`,description:`Crie e gerencie os menus de navegação usados pelo seu site.`,hint:`Os menus são independentes dos content types e podem ser renderizados pelo seu tema.`,new:`Novo menu`,create:`Criar menu`,edit:`Editar menu`,name:`Nome`,slug:`Slug`,items:`Itens do menu (JSON)`,itemsHint:`Use uma lista JSON de objetos de menu. O tema controla como eles serão exibidos.`,invalidItems:`Os itens do menu precisam ser uma lista JSON válida.`,saved:`Menu salvo.`,deleted:`Menu excluído.`,empty:`Ainda não há menus.`,confirmDelete:`Excluir o menu "{name}"?`},s={title:`Recursos de conteúdo`,description:`Descrição`,tabs:{category:`Categorias`,tag:`Tags`,menu:`Menus`},new:`Novo recurso`,name:`Nome`,slug:`Slug`,items:`Itens do menu (JSON)`,saved:`Recurso salvo.`,confirmDelete:`Excluir este recurso?`,form:{new:`Criar recurso`,edit:`Editar recurso`},terms:{title:`Termos de taxonomia`,choose:`Escolha uma taxonomia`,new:`Novo termo`}},c={title:`Acesso`,description:`Gerencie papéis, permissões e tenants.`,roles:`Papéis`,tenants:`Tenants`,permissions:`Permissões (separadas por vírgula)`,domain:`Domínio`},l={title:`Logs`,description:`Histórico completo das ações realizadas dentro do CMS.`,retentionTitle:`Retenção dos logs`,retentionDescription:`Logs mais antigos que este período serão removidos automaticamente.`,retentionDays:`Manter logs por (dias)`,retentionSaved:`Retenção dos logs atualizada.`,historyTitle:`Histórico de auditoria`,actionFilter:`Filtrar por ação`,resourceFilter:`Filtrar por recurso`,loading:`Carregando logs…`,empty:`Nenhuma ação registrada ainda.`,system:`Sistema`,columns:{date:`Data`,action:`Ação`,resource:`Recurso`,user:`Usuário`,status:`Status`,ip:`IP`}},u={title:`Webhooks`,description:`Envie eventos do CMS para serviços externos com autenticação configurável.`,listTitle:`Webhooks configurados`,new:`Novo webhook`,create:`Criar webhook`,edit:`Editar webhook`,url:`URL do endpoint`,events:`Eventos`,authentication:`Autenticação`,active:`Ativo`,token:`Token Bearer`,username:`Usuário`,password:`Senha`,headerName:`Nome do header`,apiKeyValue:`Valor da API key`,secret:`Segredo HMAC`,signatureHeader:`Header da assinatura`,keepExisting:`Deixe em branco para manter o valor atual`,loading:`Carregando webhooks…`,empty:`Nenhum webhook configurado.`,auth:{none:`Nenhuma`,bearer:`Token Bearer`,basic:`Autenticação básica`,apiKey:`API key`,hmac_sha256:`HMAC SHA-256`}},d={title:`Plugins`,description:`Gerencie os plugins instalados.`,directoryHint:`Detectados automaticamente no diretório plugins/ do projeto. Use a CLI ou o deploy para adicionar extensões.`,columns:{name:`Nome`,version:`Versão`,status:`Status`,actions:`Ações`},status:{active:`Ativo`,installed:`Instalado`,inactive:`Inativo`},activate:`Ativar`,deactivate:`Desativar`,install:`Instalar plugin`,uninstall:`Desinstalar`,confirmUninstall:`Desinstalar {name}?`,name:`Nome do plugin`,version:`Versão`,manifest:`Manifesto (JSON)`,loadError:`Não foi possível carregar os plugins.`,activateError:`Não foi possível ativar o plugin.`,deactivateError:`Não foi possível desativar o plugin.`,installError:`Não foi possível instalar o plugin.`,uninstallError:`Não foi possível desinstalar o plugin.`,empty:`Nenhum plugin instalado.`},f={title:`Temas`,description:`Gerencie os temas instalados.`,directoryHint:`Detectados automaticamente no diretório themes/ do projeto. Use a CLI ou o deploy para adicionar temas.`,version:`Versão`,active:`Ativo`,status:{active:`Ativo`,installed:`Instalado`,inactive:`Inativo`},activate:`Ativar`,deactivate:`Desativar`,install:`Instalar tema`,uninstall:`Desinstalar`,confirmUninstall:`Desinstalar {name}?`,name:`Nome do tema`,manifest:`Manifesto (JSON)`,loadError:`Não foi possível carregar os temas.`,activateError:`Não foi possível ativar o tema.`,deactivateError:`Não foi possível desativar o tema.`,installError:`Não foi possível instalar o tema.`,uninstallError:`Não foi possível desinstalar o tema.`,empty:`Nenhum tema instalado.`},p={title:`Login`,subtitle:`Entre na sua conta`,email:`Email`,password:`Senha`,submit:`Entrar`,failed:`Email ou senha inválidos`},m={save:`Salvar`,cancel:`Cancelar`,delete:`Excluir`,edit:`Editar`,close:`Fechar`,confirm:`Confirmar`,loading:`Carregando…`,yes:`Sim`,no:`Não`,search:`Buscar`,filter:`Filtrar`,create:`Criar`,update:`Atualizar`,remove:`Remover`,viewAll:`Ver Todos`,back:`Voltar`,next:`Próximo`,previous:`Anterior`,page:`Página`,of:`de`,items:`itens`,item:`item`,empty:`Nenhum {items} encontrado.`,toast:{success:`✓`,error:`Erro: {message}`},status:{active:`Ativo`,inactive:`Inativo`,draft:`Rascunho`,published:`Publicado`,archived:`Arquivado`,locked:`Bloqueado`},language:`Idioma`,refresh:`Atualizar`,actions:`Ações`},h={justNow:`agora mesmo`,minAgo:`minutos atrás`,ago:`atrás`,published:`Publicado`,updated:`Atualizado`,newUser:`Novo usuário: {name}`},g={mainMenu:`Menu principal`,notifications:`Notificações`,notificationsEmpty:`Nenhuma atividade recente`,settings:`Configurações`,toggleSidebar:`Alternar barra lateral`,userMenu:`Menu do usuário`},_={copyright:`© 2026 OkCMS. Todos os direitos reservados.`,links:`Links`,website:`Site`,github:`GitHub`,docs:`Documentação`,community:`Comunidade`,poweredBy:`Desenvolvido com Oktis Works`},v={title:`Ajuda`,label:`Ajuda`,tabs:`Tópicos de ajuda`,topics:{overview:{label:`De relance`,content:`<h4>Bem-vindo ao Painel do OkCMS</h4><p>Este painel oferece uma visão geral do conteúdo e da atividade do seu site.</p><h4>Widgets disponíveis</h4><ul><li><strong>De relance:</strong> visão geral de posts, páginas, mídia e usuários</li><li><strong>Rascunho rápido:</strong> salve rascunhos rapidamente pelo painel</li><li><strong>Atividade:</strong> atividade e atualizações recentes do site</li></ul>`},content:{label:`Gestão de conteúdo`,content:`<h4>Gerenciando conteúdo</h4><p>Crie, edite e publique conteúdo na seção Conteúdo.</p><h4>Ações rápidas</h4><ul><li>Clique em "Novo conteúdo" para criar um novo post ou página</li><li>Use filtros para encontrar conteúdo específico</li><li>Ações em lote disponíveis para vários itens</li></ul>`},media:{label:`Biblioteca de mídia`,content:`<h4>Gerenciando mídia</h4><p>Envie e gerencie imagens, vídeos e documentos.</p><h4>Dicas</h4><ul><li>Arraste e solte arquivos para enviar</li><li>Adicione texto alternativo para acessibilidade</li><li>Organize com pastas (em breve)</li></ul>`}}},y={title:`Opções de tela`,label:`Opções de tela`,showOnScreen:`Mostrar na tela`},b={layout:e,dashboard:t,content:n,media:r,users:i,settings:a,menus:o,resources:s,access:c,logs:l,webhooks:u,plugins:d,themes:f,login:p,common:m,activity:h,adminBar:g,footer:_,helpTabs:v,screenOptions:y};export{c as access,h as activity,g as adminBar,m as common,n as content,t as dashboard,b as default,_ as footer,v as helpTabs,e as layout,p as login,l as logs,r as media,o as menus,d as plugins,s as resources,y as screenOptions,a as settings,f as themes,i as users,u as webhooks};
@@ -1 +0,0 @@
1
- var e={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return t(this.context.count)},getNextContextId(){return t(this.context.count++)}};function t(t){let n=String(t),r=n.length-1;return e.context.id+(r?String.fromCharCode(96+r):``)+n}function n(t){e.context=t}function r(){return{...e.context,id:e.getNextContextId(),count:0}}var i=(e,t)=>e===t,a=Symbol(`solid-proxy`),o=Symbol(`solid-track`),s={equals:i},c=null,l=V,u=1,d=2,f={owned:null,cleanups:null,context:null,owner:null},p=null,m=null,h=null,g=null,_=null,v=0;function y(e,t){let n=h,r=p,i=e.length===0,a=t===void 0?r:t,o=i?f:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>w(()=>G(o)));p=o,h=null;try{return B(s,!0)}finally{h=n,p=r}}function b(e,t){t=t?Object.assign({},s,t):s;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[P.bind(n),e=>(typeof e==`function`&&(e=m&&m.running&&m.sources.has(n)?e(n.tValue):e(n.value)),F(n,e))]}function x(e,t,n){I(R(e,t,!1,u))}function S(e,t,n){l=H;let r=R(e,t,!1,u),i=M&&A(M);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),_?_.push(r):I(r)}function C(e,t,n){n=n?Object.assign({},s,n):s;let r=R(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,I(r),P.bind(r)}function ee(e){return B(e,!1)}function w(e){if(h===null)return e();let t=h;h=null;try{return e()}finally{h=t}}function T(e){S(()=>w(e))}function E(e){return p===null||(p.cleanups===null?p.cleanups=[e]:p.cleanups.push(e)),e}function te(){return h}function D(){return p}var[ne,O]=b(!1);function re(e){_.push.apply(_,e),e.length=0}function k(e,t){let n=Symbol(`context`);return{id:n,Provider:ae(n),defaultValue:e}}function A(e){let t;return p&&p.context&&(t=p.context[e.id])!==void 0?t:e.defaultValue}function j(e){let t=C(e),n=C(()=>X(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var M;function N(){return M||=k()}function P(){let e=m&&m.running;if(this.sources&&(e?this.tState:this.state)){if((e?this.tState:this.state)===u)I(this);else{let e=g;g=null,B(()=>U(this),!1),g=e}}if(h){let e=this.observers;if(!e||e[e.length-1]!==h){let t=e?e.length:0;h.sources?(h.sources.push(this),h.sourceSlots.push(t)):(h.sources=[this],h.sourceSlots=[t]),e?(e.push(h),this.observerSlots.push(h.sources.length-1)):(this.observers=[h],this.observerSlots=[h.sources.length-1])}}return e&&m.sources.has(this)?this.tValue:this.value}function F(e,t,n){let r=m&&m.running&&m.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(m){let r=m.running;(r||!n&&m.sources.has(e))&&(m.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&B(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=m&&m.running;r&&m.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?g.push(n):_.push(n),n.observers&&W(n)),r?n.tState=u:n.state=u)}if(g.length>1e6)throw g=[],Error()},!1)}return t}function I(e){if(!e.fn)return;G(e);let t=v;L(e,m&&m.running&&m.sources.has(e)?e.tValue:e.value,t),m&&!m.running&&m.sources.has(e)&&queueMicrotask(()=>{B(()=>{m&&(m.running=!0),h=p=e,L(e,e.tValue,t),h=p=null},!1)})}function L(e,t,n){let r,i=p,a=h;h=p=e;try{r=e.fn(t)}catch(t){return e.pure&&(m&&m.running?(e.tState=u,e.tOwned&&e.tOwned.forEach(G),e.tOwned=void 0):(e.state=u,e.owned&&e.owned.forEach(G),e.owned=null)),e.updatedAt=n+1,Y(t)}finally{h=a,p=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?F(e,r,!0):m&&m.running&&e.pure?(m.sources.has(e)||(e.value=r),m.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function R(e,t,n,r=u,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:p,context:p?p.context:null,pure:n};return m&&m.running&&(a.state=0,a.tState=r),p===null||p!==f&&(m&&m.running&&p.pure?p.tOwned?p.tOwned.push(a):p.tOwned=[a]:p.owned?p.owned.push(a):p.owned=[a]),a}function z(e){let t=m&&m.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===d)return U(e);if(e.suspense&&w(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<v);){if(t&&m.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(m.disposed.has(t))return}if((t?e.tState:e.state)===u)I(e);else if((t?e.tState:e.state)===d){let t=g;g=null,B(()=>U(e,n[0]),!1),g=t}}}function B(e,t){if(g)return e();let n=!1;t||(g=[]),_?n=!0:_=[],v++;try{let t=e();return ie(n),t}catch(e){n||(_=null),g=null,Y(e)}}function ie(e){if(g&&=(V(g),null),e)return;let t;if(m){if(!m.promises.size&&!m.queue.size){let e=m.sources,n=m.disposed;_.push.apply(_,m.effects),t=m.resolve;for(let e of _)`tState`in e&&(e.state=e.tState),delete e.tState;m=null,B(()=>{for(let e of n)G(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)G(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}O(!1)},!1)}else if(m.running){m.running=!1,m.effects.push.apply(m.effects,_),_=null,O(!0);return}}let n=_;_=null,n.length&&B(()=>l(n),!1),t&&t()}function V(e){for(let t=0;t<e.length;t++)z(e[t])}function H(t){let r,i=0;for(r=0;r<t.length;r++){let e=t[r];e.user?t[i++]=e:z(e)}if(e.context){if(e.count){e.effects||=[],e.effects.push(...t.slice(0,i));return}n()}for(e.effects&&(e.done||!e.count)&&(t=[...e.effects,...t],i+=e.effects.length,delete e.effects),r=0;r<i;r++)z(t[r])}function U(e,t){let n=m&&m.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===u?i!==t&&(!i.updatedAt||i.updatedAt<v)&&z(i):e===d&&U(i,t)}}}function W(e){let t=m&&m.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=d:r.state=d,r.pure?g.push(r):_.push(r),r.observers&&W(r))}}function G(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)G(e.tOwned[t]);delete e.tOwned}if(m&&m.running&&e.pure)K(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)G(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}m&&m.running?e.tState=0:e.state=0}function K(e,t){if(t||(e.tState=0,m.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)K(e.owned[t])}function q(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function J(e,t,n){try{for(let n of t)n(e)}catch(e){Y(e,n&&n.owner||null)}}function Y(e,t=p){let n=c&&t&&t.context&&t.context[c],r=q(e);if(!n)throw r;_?_.push({fn(){J(r,n,t)},state:u}):J(r,n,t)}function X(e){if(typeof e==`function`&&!e.length)return X(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=X(e[n]);if(Array.isArray(r)){if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e])}else t.push(r)}return t}return e}function ae(e,t){return function(t){let n;return x(()=>n=w(()=>(p.context={...p.context,[e]:t.value},j(()=>t.children))),void 0),n}}var oe=Symbol(`fallback`);function Z(e){for(let t=0;t<e.length;t++)e[t]()}function se(e,t,n={}){let r=[],i=[],a=[],s=0,c=t.length>1?[]:null;return E(()=>Z(a)),()=>{let l=e()||[],u=l.length,d,f;return l[o],w(()=>{let e,t,o,m,h,g,_,v,b;if(u===0)s!==0&&(Z(a),a=[],r=[],i=[],s=0,c&&=[]),n.fallback&&(r=[oe],i[0]=y(e=>(a[0]=e,n.fallback())),s=1);else if(s===0){for(i=Array(u),f=0;f<u;f++)r[f]=l[f],i[f]=y(p);s=u}else{for(o=Array(u),m=Array(u),c&&(h=Array(u)),g=0,_=Math.min(s,u);g<_&&r[g]===l[g];g++);for(_=s-1,v=u-1;_>=g&&v>=g&&r[_]===l[v];_--,v--)o[v]=i[_],m[v]=a[_],c&&(h[v]=c[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)b=l[f],d=e.get(b),t[f]=d===void 0?-1:d,e.set(b,f);for(d=g;d<=_;d++)b=r[d],f=e.get(b),f!==void 0&&f!==-1?(o[f]=i[d],m[f]=a[d],c&&(h[f]=c[d]),f=t[f],e.set(b,f)):a[d]();for(f=g;f<u;f++)f in o?(i[f]=o[f],a[f]=m[f],c&&(c[f]=h[f],c[f](f))):i[f]=y(p);i=i.slice(0,s=u),r=l.slice(0)}return i});function p(e){if(a[f]=e,c){let[e,n]=b(f);return c[f]=n,t(l[f],e)}return t(l[f])}}}var Q=!1;function ce(){Q=!0}function $(t,i){if(Q&&e.context){let a=e.context;n(r());let o=w(()=>t(i||{}));return n(a),o}return w(()=>t(i||{}))}var le=e=>`Stale read from <${e}>.`;function ue(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return C(se(()=>e.each,e.children,t||void 0))}function de(e){let t=e.keyed,n=C(()=>e.when,void 0,void 0),r=t?n:C(n,void 0,{equals:(e,t)=>!e==!t});return C(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?w(()=>a(t?i:()=>{if(!w(r))throw le(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var fe=k();function pe(t){let r=0,i,a,o,s,c,[l,u]=b(!1),d=N(),f={increment:()=>{++r===1&&u(!0)},decrement:()=>{--r===0&&u(!1)},inFallback:l,effects:[],resolved:!1},p=D();if(e.context&&e.load){let t=e.getContextId(),r=e.load(t);if(r&&(typeof r!=`object`||r.s!==1?o=r:e.gather(t)),o&&o!==`$$f`){let[r,i]=b(void 0,{equals:!1});s=r,o.then(()=>{if(e.done)return i();e.gather(t),n(a),i(),n()},e=>{c=e,i()})}}let m=A(fe);m&&(i=m.register(f.inFallback));let h;return E(()=>h&&h()),$(d.Provider,{value:f,get children(){return C(()=>{if(c)throw c;if(a=e.context,s){s(),s=void 0;return}a&&o===`$$f`&&n();let r=C(()=>t.children);return C(e=>{let s=f.inFallback(),{showContent:c=!0,showFallback:l=!0}=i?i():{};if((!s||o&&o!==`$$f`)&&c)return f.resolved=!0,h&&h(),h=a=o=void 0,re(f.effects),r();if(l)return h?e:y(e=>(h=e,a&&=(n({id:a.id+`F`,count:0}),void 0),t.fallback),p)})})}})}export{pe as a,C as c,b as d,ce as f,w as g,e as h,de as i,x as l,T as m,o as n,ee as o,te as p,ue as r,$ as s,a as t,y as u};
@@ -1 +0,0 @@
1
- import{c as e,f as t,g as n,h as r,l as i,u as a}from"./solid.DN8T1HsY.js";var o=t=>e(()=>t());function s(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null){if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&(d=l.get(t[c]))!=null&&d===r+u;)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++}else t[o++].remove()}}}var c=`_$DX_DELEGATE`;function l(e,t,n,r={}){let i;return a(r=>{i=r,t===document?e():g(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function u(e,t,r,i){let a,o=()=>{let t=i?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,r?t.content.firstChild.firstChild:i?t.firstChild:t.content.firstChild},s=t?()=>n(()=>document.importNode(a||=o(),!0)):()=>(a||=o()).cloneNode(!0);return s.cloneNode=s,s}function d(e,t=window.document){let n=t[c]||(t[c]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,S))}}function f(e,t,n){x(e)||(e[t]=(t===`value`||t===`defaultValue`)&&(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`)?n??``:n)}function p(e,t,n){x(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function m(e,t){x(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function h(e,t,n){if(!t)return n?p(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function g(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return C(e,t,r,n);i(r=>C(e,t(),r,n),r)}function _(e,t,n={}){if(globalThis._$HY.done)return l(e,t,[...t.childNodes],n);r.completed=globalThis._$HY.completed,r.events=globalThis._$HY.events,r.load=e=>globalThis._$HY.r[e],r.has=e=>e in globalThis._$HY.r,r.gather=e=>D(t,e),r.registry=new Map,r.context={id:n.renderId||``,count:0};try{return D(t,n.renderId),l(e,t,[...t.childNodes],n)}finally{r.context=null}}function v(e){let t,n;return!x()||!(t=r.registry.get(n=O()))?e():(r.completed&&r.completed.add(t),r.registry.delete(n),t)}function y(e){let t=e,n=0,r=[];if(x(e))for(;t;){if(t.nodeType===8){let e=t.nodeValue;if(e===`$`)n++;else if(e===`/`){if(n===0)return[t,r];n--}}r.push(t),t=t.nextSibling}return[t,r]}function b(){r.events&&!r.events.queued&&(queueMicrotask(()=>{let{completed:e,events:t}=r;if(t){for(t.queued=!1;t.length;){let[n,r]=t[0];if(!e.has(n))return;t.shift(),S(r)}r.done&&(r.events=_$HY.events=null,r.completed=_$HY.completed=null)}}),r.events.queued=!0)}function x(e){return!!r.context&&!r.done&&(!e||e.isConnected)}function S(e){if(r.registry&&r.events&&r.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,i=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),r.registry&&!r.done&&(r.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(i)}function C(e,t,n,r,a){let o=x(e);if(o){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let c=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,c===`string`||c===`number`){if(o||c===`number`&&(t=t.toString(),t===n))return n;if(l){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=E(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||c===`boolean`){if(o)return n;n=E(e,n,r)}else if(c===`function`)return i(()=>{let i=t();for(;typeof i==`function`;)i=i();n=C(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(w(c,t,n,a))return i(()=>n=C(e,c,n,r,!0)),()=>n;if(o){if(!c.length)return n;if(r===void 0)return n=[...e.childNodes];let t=c[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(c.length===0){if(n=E(e,n,r),l)return n}else u?n.length===0?T(e,c,r):s(e,n,c):(n&&E(e),T(e,c));n=c}else if(t.nodeType){if(o&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=E(e,n,r,t);E(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function w(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(o!=null&&o!==!0&&o!==!1){if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=w(e,o,s)||i;else if(c===`function`){if(r){for(;typeof o==`function`;)o=o();i=w(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0}else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}}return i}function T(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function E(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function D(e,t){let n=e.querySelectorAll(`*[data-hk]`);for(let e=0;e<n.length;e++){let i=n[e],a=i.getAttribute(`data-hk`);(!t||a.startsWith(t))&&!r.registry.has(a)&&r.registry.set(a,i)}}function O(){return r.getNextContextId()}var k=(...e)=>(t(),_(...e));export{k as a,l as c,f as d,h as f,y as i,b as l,d as n,g as o,u as p,v as r,o as s,m as t,p as u};