@oktis-works/admin 0.4.17 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_astro/{ActivityWidget.BoV5JMFM.js → ActivityWidget.BQVQr1OI.js} +2 -2
- package/dist/client/_astro/{AdminBar.Bzzeux86.js → AdminBar.CeAqY2Nn.js} +2 -2
- package/dist/client/_astro/{AtGlanceWidget.BIHmD0Mp.js → AtGlanceWidget.ClnyPmqR.js} +2 -2
- package/dist/client/_astro/ContentEditor.CNU6JpC2.js +1 -0
- package/dist/client/_astro/ContentList.CND9xLTq.js +1 -0
- package/dist/client/_astro/CustomFieldsManager.BZAwLlD7.js +3 -0
- package/dist/client/_astro/DashboardHome.DYshyax_.js +1 -0
- package/dist/client/_astro/DashboardLayout.CUyl_vSg.css +1 -0
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.D6MgCJGl.js +1 -0
- package/dist/client/_astro/FieldTypePicker.Cyfzqug-.js +1 -0
- package/dist/client/_astro/{Footer.LI6Cpgg_.js → Footer.B8DQezwj.js} +1 -1
- package/dist/client/_astro/GeneralSettings.DzzIY4EJ.js +1 -0
- package/dist/client/_astro/MediaLibrary.CB2vN3WX.js +1 -0
- package/dist/client/_astro/{PluginManager.BYI4SRec.js → PluginManager.CZnOmZ4H.js} +2 -2
- package/dist/client/_astro/PostTypesManager.QU-bDofy.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.Cjm5_7y-.js → QuickDraftWidget.B8sKln0S.js} +2 -2
- package/dist/client/_astro/ResourceHubs.gibltbet.js +1 -0
- package/dist/client/_astro/TaxonomiesManager.BVGc-hS0.js +1 -0
- package/dist/client/_astro/{ThemeManager.Hw1k4IW5.js → ThemeManager.b7xZdz4_.js} +2 -2
- package/dist/client/_astro/UserCreateForm.By8e9stC.js +1 -0
- package/dist/client/_astro/UsersManager.M8WCxyOI.js +1 -0
- package/dist/client/_astro/client.W0NY0lEa.js +1 -0
- package/dist/client/_astro/extensions.BC-nLC12.js +1 -0
- package/dist/client/_astro/i18n.sRt_iZ5u.js +1 -0
- package/dist/client/_astro/solid.DN8T1HsY.js +1 -0
- package/dist/client/_astro/src.DmjGg1I5.js +1 -0
- package/dist/client/_astro/{version.B9EoEAbb.js → version.CACx_Y2G.js} +1 -1
- package/dist/client/_astro/web.Bze9SKEA.js +1 -0
- package/dist/server/chunks/{ContentEditor_B_alLPkZ.mjs → ContentEditor_RKGob-Zo.mjs} +2 -2
- package/dist/server/chunks/{DashboardLayout_B1lpShsT.mjs → DashboardLayout_svhEj8jj.mjs} +12 -11
- package/dist/server/chunks/{MediaLibrary_B_mkxyGz.mjs → MediaLibrary_BCzLRYs6.mjs} +2 -2
- package/dist/server/chunks/{ResourceHubs_SnzUKv2d.mjs → ResourceHubs_BH3vCwma.mjs} +1 -1
- package/dist/server/chunks/{_slug__DK1dX6Cc.mjs → _slug__qrjLegLj.mjs} +1 -1
- package/dist/server/chunks/{access_BXua9HeF.mjs → access_DSLRN3qH.mjs} +2 -2
- package/dist/server/chunks/{custom-fields_DZxzXn_Y.mjs → custom-fields_BwLtNm1t.mjs} +2 -2
- package/dist/server/chunks/{edit_DMCL0nv5.mjs → edit_CmOvfpRE.mjs} +2 -2
- package/dist/server/chunks/{general_DY6nfeME.mjs → general_DDYnR_op.mjs} +2 -2
- package/dist/server/chunks/{i18n_BZdCNETS.mjs → i18n_BKVjk7jX.mjs} +9 -2
- package/dist/server/chunks/{index_BZU6TG9K.mjs → index_BTLdKNys.mjs} +2 -2
- package/dist/server/chunks/{index_eIvtdujt.mjs → index_DBrNG14W.mjs} +2 -2
- package/dist/server/chunks/{index_Bn9LjtxA.mjs → index_DdCS_Yn8.mjs} +2 -2
- package/dist/server/chunks/{index_BAVyaaWE.mjs → index_eYmi9sSz.mjs} +1 -1
- package/dist/server/chunks/{index_D0YtPHrm.mjs → index_w8inlUI7.mjs} +2 -2
- package/dist/server/chunks/{new_vDml0n9D.mjs → new_BeqZaUZk.mjs} +2 -2
- package/dist/server/chunks/{new_DjeZ5fm2.mjs → new_QzmF9JQw.mjs} +2 -2
- package/dist/server/chunks/{operations_wkXdEoy9.mjs → operations_CzDlpc-d.mjs} +2 -2
- package/dist/server/chunks/{plugins_BwmcMrFa.mjs → plugins_Df0WEWyi.mjs} +2 -2
- package/dist/server/chunks/{post-types_Di0TnpMF.mjs → post-types_7UOUQOdJ.mjs} +2 -2
- package/dist/server/chunks/{resources_BZh_dXsF.mjs → resources_D5QYgIOn.mjs} +2 -2
- package/dist/server/chunks/{taxonomies_CuEyvskw.mjs → taxonomies_DIuTYSy1.mjs} +2 -2
- package/dist/server/chunks/{themes_DZ9w9ECK.mjs → themes_DAbb-26x.mjs} +2 -2
- package/dist/server/chunks/{upload_Bp9adHy4.mjs → upload_Bbn1yjFV.mjs} +2 -2
- package/dist/server/entry.mjs +20 -20
- package/dist/server/virtual_astro_middleware.mjs +1 -1
- package/package.json +1 -1
- package/dist/client/_astro/ContentEditor.Bdh3rpdn.js +0 -1
- package/dist/client/_astro/ContentList.D1XcWg2t.js +0 -1
- package/dist/client/_astro/CustomFieldsManager.6c3e_83f.js +0 -3
- package/dist/client/_astro/DashboardHome.C0c91P5X.js +0 -1
- package/dist/client/_astro/DashboardLayout.CEvRGr78.css +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.CMtAy9r3.js +0 -1
- package/dist/client/_astro/FieldTypePicker.BEuYPzV8.js +0 -1
- package/dist/client/_astro/GeneralSettings.BFAXjOA2.js +0 -1
- package/dist/client/_astro/MediaLibrary.BvtJOo5A.js +0 -1
- package/dist/client/_astro/PostTypesManager.bQc6yww5.js +0 -1
- package/dist/client/_astro/ResourceHubs.MrbWi-Z_.js +0 -1
- package/dist/client/_astro/TaxonomiesManager.kwogAOFS.js +0 -1
- package/dist/client/_astro/UserCreateForm.CHb7uDCX.js +0 -1
- package/dist/client/_astro/UsersManager.Btde4I0r.js +0 -1
- package/dist/client/_astro/client.BY0Z100j.js +0 -1
- package/dist/client/_astro/extensions.Y_1XaoRs.js +0 -1
- package/dist/client/_astro/i18n.RrM42yx5.js +0 -1
- package/dist/client/_astro/src.B10HDgSa.js +0 -1
- package/dist/client/_astro/web.D_vCtCLj.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./i18n.sRt_iZ5u.js";import{d as t,i as n,l as r,m as i,r as a,s as o}from"./solid.DN8T1HsY.js";import{d as s,i as c,l,n as u,o as d,p as f,r as p}from"./web.Bze9SKEA.js";import{t as m}from"./api.DD5u5p4h.js";import{a as h,i as g,n as _,o as v,t as y}from"./src.DmjGg1I5.js";var b=f(`<div class="notice notice--error">`),x=f(`<div class=notice>`),S=f(`<table class=users-table><thead><tr><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody>`),C=f(`<div class=users-manager><!$><!/><!$><!/><div class=toolbar><!$><!/><!$><!/><a class="btn btn-primary"href=/users/new></a><!$><!/></div><!$><!/><!$><!/><!$><!/>`),w=f(`<p class=muted>`),T=f(`<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=f(`<span class=muted>`),D=f(`<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=f(`<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:u}=e(),[f,A]=t([]),[j,M]=t([]),[N,P]=t(0),[F,I]=t(1),[L,R]=t(``),[z,B]=t(``),[V,H]=t(``),[U,W]=t(``),[G,K]=t(null),[q,J]=t(!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))}};i(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(u(`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(u(`users.detail.passwordPrompt`,{email:e.email}));if(t){if(t.length<8){H(u(`users.detail.passwordError`));return}J(!0),H(``);try{await m.setUserPassword(e.id,t),W(u(`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(u(`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(u(`users.detail.confirmDelete`,{email:e.email}))){J(!0),H(``);try{await m.deleteUser(e.id),G()?.id===e.id&&K(null),W(u(`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=p(C),t=e.firstChild,[i,m]=c(t.nextSibling),A=i.nextSibling,[M,P]=c(A.nextSibling),H=M.nextSibling,W=H.firstChild,[J,Z]=c(W.nextSibling),ae=J.nextSibling,[Q,oe]=c(ae.nextSibling),$=Q.nextSibling,se=$.nextSibling,[ce,le]=c(se.nextSibling),ue=H.nextSibling,[de,fe]=c(ue.nextSibling),pe=de.nextSibling,[me,he]=c(pe.nextSibling),ge=me.nextSibling,[_e,ve]=c(ge.nextSibling);return d(e,o(n,{get when(){return V()},get children(){var e=p(b);return d(e,V),e}}),i,m),d(e,o(n,{get when(){return U()},get children(){var e=p(x);return d(e,U),e}}),M,P),d(H,o(g,{name:`user-search`,get placeholder(){return u(`users.toolbar.search`)},get value(){return L()},onInput:e=>{R(e),X()}}),J,Z),d(H,o(v,{name:`user-status`,get placeholder(){return u(`users.toolbar.allStatus`)},get value(){return z()},get options(){return[{value:`ACTIVE`,label:u(`users.toolbar.active`)},{value:`INACTIVE`,label:u(`users.toolbar.inactive`)}]},onChange:e=>{B(e),X()}}),Q,oe),d($,()=>u(`users.toolbar.newBtn`)),d(H,o(_,{variant:`secondary`,onClick:()=>void X(),get children(){return u(`users.toolbar.searchBtn`)}}),ce,le),d(e,o(n,{get when(){return f().length>0},get fallback(){return(()=>{var e=p(w);return d(e,()=>u(`users.empty`)),e})()},get children(){var e=p(S),t=e.firstChild,i=t.firstChild.firstChild,s=i.nextSibling,l=s.nextSibling,m=l.nextSibling,h=m.nextSibling,g=t.nextSibling;return d(i,()=>u(`users.table.name`)),d(s,()=>u(`users.table.email`)),d(l,()=>u(`users.table.role`)),d(m,()=>u(`users.table.status`)),d(h,()=>u(`users.table.lastAccess`)),d(g,o(a,{get each(){return f()},children:e=>(()=>{var t=p(T),i=t.firstChild,a=i.nextSibling,s=a.nextSibling,l=s.nextSibling,f=l.firstChild,m=f.nextSibling,[h,g]=c(m.nextSibling),v=l.nextSibling,b=v.nextSibling,x=b.firstChild,[S,C]=c(x.nextSibling),w=S.nextSibling,[D,O]=c(w.nextSibling);return d(i,()=>e.name),d(a,()=>e.email),d(s,o(n,{get when(){return e.roles.length>0},get fallback(){return(()=>{var e=p(E);return d(e,()=>u(`users.noRole`)),e})()},get children(){return o(y,{get children(){return e.roles.join(`, `)}})}})),d(l,()=>u(`common.status.`+e.status.toLowerCase()),h,g),d(v,()=>k(e.last_login_at)),d(b,o(_,{variant:`secondary`,size:`sm`,onClick:()=>K(e),get children(){return u(`users.table.actions.manage`)}}),S,C),d(b,o(_,{variant:`danger`,size:`sm`,onClick:()=>void re(e),get children(){return u(`users.table.actions.delete`)}}),D,O),r(n=>{var r=G()?.id===e.id,i=e.status===`ACTIVE`;return r!==n.e&&t.classList.toggle(`users-table__row--selected`,n.e=r),i!==n.t&&f.classList.toggle(`status-dot--active`,n.t=i),n},{e:void 0,t:void 0}),t})()})),e}}),de,fe),d(e,o(h,{get page(){return F()},limit:20,get total(){return N()},onPageChange:e=>{I(e),Y()}}),me,he),d(e,o(n,{get when(){return G()},children:e=>(()=>{var t=p(D),n=t.firstChild,i=n.nextSibling,f=i.firstChild,m=f.firstChild,[h,g]=c(m.nextSibling),v=h.nextSibling,y=f.nextSibling,b=y.firstChild,[x,S]=c(b.nextSibling),C=x.nextSibling,w=y.nextSibling,T=w.firstChild,[E,A]=c(T.nextSibling),M=E.nextSibling,N=M.firstChild,P=N.nextSibling,F=w.nextSibling,I=F.firstChild,[L,R]=c(I.nextSibling),z=L.nextSibling,B=z.firstChild,V=B.nextSibling,[H,U]=c(V.nextSibling),W=i.nextSibling,G=W.nextSibling,J=G.firstChild,[Y,X]=c(J.nextSibling),re=Y.nextSibling,[Z,ae]=c(re.nextSibling),Q=Z.nextSibling,[oe,$]=c(Q.nextSibling);return d(n,()=>u(`users.detail.title`)),d(f,()=>u(`users.detail.fields.name`),h,g),v.$$input=t=>K({...e(),name:t.currentTarget.value}),d(y,()=>u(`users.detail.fields.email`),x,S),C.$$input=t=>K({...e(),email:t.currentTarget.value}),d(w,()=>u(`users.detail.fields.status`),E,A),M.addEventListener(`change`,t=>K({...e(),status:t.currentTarget.value})),d(N,()=>u(`users.detail.statusOptions.active`)),d(P,()=>u(`users.detail.statusOptions.inactive`)),d(F,()=>u(`users.detail.fields.role`),L,R),z.addEventListener(`change`,t=>void ee(e(),t.currentTarget.value)),d(B,()=>u(`users.detail.rolePlaceholder`)),d(z,o(a,{get each(){return j()},children:e=>(()=>{var t=p(O),n=t.firstChild,[i,a]=c(n.nextSibling),o=i.nextSibling.nextSibling,[l,u]=c(o.nextSibling);return l.nextSibling,d(t,()=>e.name,i,a),d(t,()=>e.slug,l,u),r(()=>s(t,`value`,e.id)),t})()}),H,U),d(W,()=>u(`users.detail.meta`,{created:k(e().created_at),lastAccess:k(e().last_login_at)})),d(G,o(_,{variant:`primary`,get disabled(){return q()},get loading(){return q()},onClick:()=>void ne(e()),get children(){return u(`users.detail.actions.save`)}}),Y,X),d(G,o(_,{variant:`secondary`,get disabled(){return q()},onClick:()=>void te(e()),get children(){return u(`users.detail.actions.resetPassword`)}}),Z,ae),d(G,o(_,{variant:`secondary`,onClick:()=>K(null),get children(){return u(`users.detail.actions.close`)}}),oe,$),r(()=>s(z,`disabled`,q())),r(()=>s(v,`value`,e().name)),r(()=>s(C,`value`,e().email)),r(()=>s(M,`value`,e().status)),r(()=>s(z,`value`,ie(e())?.id??``)),l(),t})()}),_e,ve),e})()}u([`input`]);export{A as UsersManager};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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.DD5u5p4h.js";import"./src.DmjGg1I5.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,m as t}from"./solid.DN8T1HsY.js";import{t as n}from"./api.DD5u5p4h.js";var r=Object.defineProperty,i=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),a=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},o=[`pt-BR`,`en`,`es-ES`,`ru`,`uk`,`tr`,`he`,`it`,`pl`,`zh-CN`,`ja`,`ar`,`sw`,`yo`,`zu`,`am`,`ha`,`ig`],s={"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`},ee={"pt-BR":`🇧🇷`,en:`🇺🇸`,"es-ES":`🇪🇸`,ru:`🇷🇺`,uk:`🇺🇦`,tr:`🇹🇷`,he:`🇮🇱`,it:`🇮🇹`,pl:`🇵🇱`,"zh-CN":`🇨🇳`,ja:`🇯🇵`,ar:`🇸🇦`,sw:`🇹🇿`,yo:`🇳🇬`,zu:`🇿🇦`,am:`🇪🇹`,ha:`🇳🇬`,ig:`🇳🇬`},c=(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.`))))})},l=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),u=function(e){return`/`+e},d={},f=function(e){return e.pathname.endsWith(`.css`)},p=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=u(t,n);let r=s(t);if(r.href in d)return;d[r.href]=!0;let i=f(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`:l,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)})},m=new Map;async function h(e){if(m.has(e))return m.get(e);try{let t=await c(Object.assign({"./locales/ar.json":()=>p(()=>import(`./ar.DsV0P0EN.js`),[]),"./locales/en.json":()=>p(()=>Promise.resolve().then(()=>ne),void 0),"./locales/es-ES.json":()=>p(()=>import(`./es-ES.etPSaiLd.js`),[]),"./locales/he.json":()=>p(()=>import(`./he.U1Vtp3zT.js`),[]),"./locales/it.json":()=>p(()=>import(`./it.DJuI8oO_.js`),[]),"./locales/ja.json":()=>p(()=>import(`./ja.Cw8I_NUV.js`),[]),"./locales/pl.json":()=>p(()=>import(`./pl.Dsz-4G_z.js`),[]),"./locales/pt-BR.json":()=>p(()=>import(`./pt-BR.CyQAHnXs.js`),[]),"./locales/ru.json":()=>p(()=>import(`./ru.CwIIcTdy.js`),[]),"./locales/sw.json":()=>p(()=>import(`./sw.DwpL3sb6.js`),[]),"./locales/tr.json":()=>p(()=>import(`./tr.CY2JWJ7Y.js`),[]),"./locales/uk.json":()=>p(()=>import(`./uk.BudEWIU8.js`),[]),"./locales/yo.json":()=>p(()=>import(`./yo.BmoZs0fO.js`),[]),"./locales/zh-CN.json":()=>p(()=>import(`./zh-CN.khaXV6fv.js`),[])}),`./locales/${e}.json`,3),n=t.default??t;return m.set(e,n),n}catch{return e===`en`?{}:h(`en`)}}var g=`admin_locale`;function te(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(?:^|; )${g}=([^;]+)`));return e?.[1]&&o.includes(e[1])?e[1]:null}function _(e){typeof document<`u`&&(document.cookie=`${g}=${e}; path=/; max-age=31536000; SameSite=Lax`)}function v(){if(typeof navigator>`u`)return`en`;let e=navigator.language?.split(`-`)[0]?.toLowerCase(),t=navigator.language?.toLowerCase();for(let n of o)if(n.toLowerCase()===t||n.split(`-`)[0]===e)return n;return`en`}async function y(){try{let e=await n.getUserLocale();if(e&&o.includes(e))return e}catch{}return null}async function b(e){await n.setUserLocale(e)}async function x(){return te()||await y()||v()||`en`}async function S(e){_(e);try{await b(e)}catch{}}var ne=a({access:()=>A,activity:()=>I,adminBar:()=>L,common:()=>F,content:()=>T,dashboard:()=>w,default:()=>V,footer:()=>R,helpTabs:()=>z,layout:()=>C,login:()=>P,media:()=>E,operations:()=>j,plugins:()=>M,resources:()=>k,screenOptions:()=>B,settings:()=>O,themes:()=>N,users:()=>D}),C={appName:`OkCMS`,admin:`Admin`,nav:{dashboard:`Dashboard`,content:`Content`,media:`Media`,users:`Users`,settings:`Settings`,plugins:`Plugins`,themes:`Themes`},actions:{logout:`Logout`,newPost:`New Post`,uploadMedia:`Upload Media`,addUser:`Add User`,openSettings:`Settings`}},w={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.`}}},T={list:{title:`Content`,description:`Search, filter, edit and publish your content.`,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`,search:`Search`},empty:`No content found.`,statuses:{draft:`Draft`,published:`Published`,archived:`Archived`},confirmDelete:`Delete "{title}"?`,toasts:{published:`Content published ✓`,unpublished:`Content unpublished ✓`}},editor:{type:`Type`,title:`Title`,slug:`Slug`,excerpt:`Excerpt`,featuredImage:`Featured Image (media ID)`,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.`}},E={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 ✓`}},D={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}?`}},O={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)`,create:`Create`},table:{slug:`Slug`,singular:`Singular`,plural:`Plural`,source:`Source`,supports:`Supports`,archive:`Archive`,actions:{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`,edit:`Edit`,active:`Active`,inactive:`Inactive`},form:{createTitle:`Create field group`,editTitle:`Edit field group`,title:`Group name`,titlePlaceholder:`Example: Product details`,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.`}},k={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`}},A={title:`Access`,description:`Manage roles, permissions and tenants.`,roles:`Roles`,tenants:`Tenants`,permissions:`Permissions (comma separated)`,domain:`Domain`},j={title:`Operations`,description:`Manage webhooks, builds, deployments and events.`,webhooks:`Webhooks`,events:`Events`,secret:`Secret`,builds:`Builds`,deployments:`Deployments`,createBuild:`Create build`,deploy:`Deploy`},M={title:`Plugins`,description:`Manage installed plugins.`,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.`,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`},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 OkCMS`},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:C,dashboard:w,content:T,media:E,users:D,settings:O,resources:k,access:A,operations: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]=e(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([h(e),h(`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 t(async()=>{Q&&(K||=(async()=>{let t=e??await x();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 S(e)},get loading(){return Q}}}export{o as a,s as i,ie as n,i as o,ee as r,Y as t};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./i18n.sRt_iZ5u.js";import{i as t,l as n,r,s as i}from"./solid.DN8T1HsY.js";import{d as a,f as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./web.Bze9SKEA.js";var g=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}})),_=e(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),v=e(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=g(),a=_();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(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)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),y=e(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=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)}})),x=e(((e,t)=>{var n=_(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=g(),{safeRe:a,t:o}=v(),s=y(),{compareIdentifiers:c}=b(),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}}})),S=e(((e,t)=>{var n=x();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}}})),C=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),w=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),T=e(((e,t)=>{var n=x();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}}})),E=e(((e,t)=>{var n=S();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`}})),D=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).major})),O=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).minor})),k=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).patch})),A=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),j=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),M=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(t,e,r)})),N=e(((e,t)=>{var n=j();t.exports=(e,t)=>n(e,t,!0)})),P=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),F=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),I=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),L=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>0})),R=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<0})),z=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)===0})),B=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)!==0})),V=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>=0})),H=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<=0})),U=e(((e,t)=>{var n=z(),r=B(),i=L(),a=V(),o=R(),s=H();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}`)}}})),ee=e(((e,t)=>{var n=x(),r=S(),{safeRe:i,t:a}=v();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)}})),te=e(((e,t)=>{var n=S(),r=g(),i=x(),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})),ne=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}}})),W=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(b,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+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],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),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 g=new Map,_=l.map(e=>new a(e,this.options));for(let e of _){if(S(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}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(ne()),i=y(),a=G(),o=_(),s=x(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=v(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=g(),b=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}})),G=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=y(),{safeRe:i,t:a}=v(),o=U(),s=_(),c=x(),l=W()})),K=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),re=e(((e,t)=>{var n=W();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ie=e(((e,t)=>{var n=x(),r=W();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}})),ae=e(((e,t)=>{var n=x(),r=W();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}})),q=e(((e,t)=>{var n=x(),r=W(),i=L();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}})),J=e(((e,t)=>{var n=W();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=e(((e,t)=>{var n=x(),r=G(),{ANY:i}=r,a=W(),o=K(),s=L(),c=R(),l=H(),u=V();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}})),oe=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),se=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),ce=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),le=e(((e,t)=>{var n=K(),r=j();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}})),ue=e(((e,t)=>{var n=W(),r=G(),{ANY:i}=r,a=K(),o=j(),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=v(),r=g(),i=x(),a=b();t.exports={parse:S(),valid:C(),clean:w(),inc:T(),diff:E(),major:D(),minor:O(),patch:k(),prerelease:A(),compare:j(),rcompare:M(),compareLoose:N(),compareBuild:P(),sort:F(),rsort:I(),gt:L(),lt:R(),eq:z(),neq:B(),gte:V(),lte:H(),cmp:U(),coerce:ee(),truncate:te(),Comparator:G(),Range:W(),satisfies:K(),toComparators:re(),maxSatisfying:ie(),minSatisfying:ae(),minVersion:q(),validRange:J(),outside:Y(),gtr:oe(),ltr:se(),intersects:ce(),simplifyRange:le(),subset:ue(),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 de=d(`<span class=spinner aria-label=Carregando>`),fe=d(`<button>`),pe=d(`<label class=field__label><!$><!/><!$><!/><input class=input>`),me=d(`<input class=input>`),he=d(`<p class="field__error notice--error">`),ge=d(`<div><!$><!/><!$><!/><!$><!/>`),_e=d(`<span aria-hidden=true> *`),X=d(`<option value>`),ve=d(`<label class=field__label><!$><!/><select class=input><!$><!/><!$><!/>`),ye=d(`<select class=input><!$><!/><!$><!/>`),Z=d(`<div><!$><!/><!$><!/>`),Q=d(`<option>`),be=d(`<div class=card-header><h3>`),xe=d(`<span>`),Se=d(`<table class=table><thead><tr></tr></thead><tbody>`),Ce=d(`<div class=table-loading><span class=spinner aria-label=Carregando>`),we=d(`<p class=muted>`),Te=d(`<th>`),Ee=d(`<tr>`),De=d(`<td>`),$=d(`<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 →`),Oe=[`primary`,`secondary`,`danger`,`ghost`];function ke(e){let r=Oe.includes(e.variant)?e.variant:`secondary`,o=()=>[`btn`,`btn-${r}`,e.size===`sm`?`btn-sm`:``,e.class??``].filter(Boolean).join(` `);return(()=>{var r=f(fe);return r.$$click=()=>e.onClick?.(),u(r,i(t,{get when(){return e.loading},get fallback(){return e.children},get children(){return f(de)}})),n(t=>{var n=e.type??`button`,i=o(),s=e.disabled||e.loading;return n!==t.e&&h(r,`type`,t.e=n),i!==t.t&&m(r,t.t=i),s!==t.a&&a(r,`disabled`,t.a=s),t},{e:void 0,t:void 0,a:void 0}),c(),r})()}function Ae(e){let r=t=>{e.onInput?.(t.currentTarget.value)};return(()=>{var o=f(ge),l=o.firstChild,[d,g]=s(l.nextSibling),_=d.nextSibling,[v,y]=s(_.nextSibling),b=v.nextSibling,[x,S]=s(b.nextSibling);return u(o,i(t,{get when(){return e.label},get children(){var t=f(pe),i=t.firstChild,[o,l]=s(i.nextSibling),d=o.nextSibling,[m,g]=s(d.nextSibling),_=m.nextSibling;return u(t,()=>e.label,o,l),u(t,(()=>{var t=p(()=>!!e.required);return()=>t()?f(_e):null})(),m,g),_.$$input=r,n(t=>{var n=e.type??`text`,r=e.name,i=e.placeholder,o=e.disabled,s=e.required;return n!==t.e&&h(_,`type`,t.e=n),r!==t.t&&h(_,`name`,t.t=r),i!==t.a&&h(_,`placeholder`,t.a=i),o!==t.o&&a(_,`disabled`,t.o=o),s!==t.i&&a(_,`required`,t.i=s),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(_,`value`,e.value??``)),c(),t}}),d,g),u(o,i(t,{get when(){return!e.label},get children(){var t=f(me);return t.$$input=r,n(n=>{var r=e.type??`text`,i=e.name,o=e.placeholder,s=e.disabled,c=e.required;return r!==n.e&&h(t,`type`,n.e=r),i!==n.t&&h(t,`name`,n.t=i),o!==n.a&&h(t,`placeholder`,n.a=o),s!==n.o&&a(t,`disabled`,n.o=s),c!==n.i&&a(t,`required`,n.i=c),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(t,`value`,e.value??``)),c(),t}}),v,y),u(o,i(t,{get when(){return e.error},get children(){var t=f(he);return u(t,()=>e.error),t}}),x,S),n(()=>m(o,`field ${e.class??``}`.trim())),o})()}function je(e){let o=e.options;return(()=>{var c=f(Z),l=c.firstChild,[d,p]=s(l.nextSibling),g=d.nextSibling,[_,v]=s(g.nextSibling);return u(c,i(t,{get when(){return e.label},get children(){var c=f(ve),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,g=m.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling,[b,x]=s(y.nextSibling);return u(c,()=>e.label,d,p),m.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(m,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),_,v),u(m,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),b,x),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(m,`name`,t.e=n),r!==t.t&&a(m,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(m,`value`,e.value??``)),c}}),d,p),u(c,i(t,{get when(){return!e.label},get children(){var c=f(ye),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,[g,_]=s(m.nextSibling);return c.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(c,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),d,p),u(c,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),g,_),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(c,`name`,t.e=n),r!==t.t&&a(c,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(c,`value`,e.value??``)),c}}),_,v),n(()=>m(c,`field ${e.class??``}`.trim())),c})()}function Me(e){return(()=>{var r=f(Z),a=r.firstChild,[o,c]=s(a.nextSibling),l=o.nextSibling,[d,p]=s(l.nextSibling);return u(r,i(t,{get when(){return e.title},get children(){var t=f(be),n=t.firstChild;return u(n,()=>e.title),t}}),o,c),u(r,()=>e.children,d,p),n(()=>m(r,`card ${e.class??``}`.trim())),r})()}function Ne(e){let t=e.variant??`secondary`;return(()=>{var n=f(xe);return m(n,`badge badge-${t}`),u(n,()=>e.children),n})()}function Pe(e){let a=e.columns;return i(t,{get when(){return!e.loading},get fallback(){return f(Ce)},get children(){return i(t,{get when(){return e.data.length>0},get fallback(){return(()=>{var t=f(we);return u(t,()=>e.emptyMessage??`Nenhum registro.`),t})()},get children(){var s=f(Se),c=s.firstChild,l=c.firstChild,d=c.nextSibling;return u(l,i(r,{each:a,children:e=>(()=>{var t=f(Te);return u(t,()=>e.label),n(n=>o(t,e.width?{width:e.width}:void 0,n)),t})()})),u(d,i(r,{get each(){return e.data},children:e=>(()=>{var n=f(Ee);return u(n,i(r,{each:a,children:n=>(()=>{var r=f(De);return u(r,i(t,{get when(){return n.render},get fallback(){return String(e[n.key]??``)},get children(){return n.render?.(e[n.key],e)}})),r})()})),n})()})),s}})}})}function Fe(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=f($),i=t.firstChild,o=i.nextSibling,l=o.firstChild.nextSibling,[d,p]=s(l.nextSibling),m=d.nextSibling.nextSibling,[h,g]=s(m.nextSibling),_=o.nextSibling;return i.$$click=()=>e.onPageChange(e.page-1),u(o,()=>e.page,d,p),u(o,r,h,g),_.$$click=()=>e.onPageChange(e.page+1),n(t=>{var n=e.page<=1,o=e.page>=r();return n!==t.e&&a(i,`disabled`,t.e=n),o!==t.t&&a(_,`disabled`,t.t=o),t},{e:void 0,t:void 0}),c(),t}})}l([`click`,`input`]);export{Fe as a,Ae as i,ke as n,je as o,Me as r,Pe as s,Ne as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={name:`okcms`,version:`0.4.
|
|
1
|
+
var e={name:`okcms`,version:`0.4.18`,private:!0,description:`Hybrid, modular, API-first CMS`,engines:{node:`>=20.0.0`,bun:`>=1.3.0`},workspaces:[`apps/*`,`packages/*`,`plugins/*`,`themes/*`],overrides:{ioredis:`5.3.0`},scripts:{dev:`bun run --filter '@oktis-works/*' dev`,build:`bun run --filter '@oktis-works/*' build`,test:`vitest`,"test:run":`vitest run`,lint:`eslint .`,typecheck:`tsc --noEmit`,clean:`rm -rf node_modules apps/*/node_modules packages/*/node_modules`,changeset:`changeset`,"version-packages":`changeset version`,"publish:all":`node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f "$pkg/package.json" ] || continue; echo "→ publishing $pkg"; (cd "$pkg" && npm publish --access public) || exit 1; done`},devDependencies:{"@oktis-works/cms":`^0.4.18`,"@changesets/changelog-github":`^1.0.1`,"@changesets/cli":`^3.0.3`,"@types/node":`22.0.0`,"@types/semver":`7.7.0`,"@typescript-eslint/eslint-plugin":`^8.71.0`,"@typescript-eslint/parser":`8.0.0`,autoprefixer:`^10.6.1`,eslint:`9.0.0`,playwright:`1.59.1`,"playwright-core":`1.59.1`,postcss:`^8.5.28`,sass:`^1.105.1`,tailwindcss:`^4.3.3`,typescript:`5.7.3`,"typescript-eslint":`8.31.0`,vitest:`3.0.0`},packageManager:`bun@1.3.14`}.version;export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
2
|
-
import { a as For2, d as createMemo$1, f as createSignal$1, l as Show2 } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
2
|
+
import { a as For2, d as createMemo$1, f as createSignal$1, l as Show2 } from "./DashboardLayout_svhEj8jj.mjs";
|
|
3
3
|
import { t as FieldTypePicker } from "./FieldTypePicker_CXwpmcQ3.mjs";
|
|
4
4
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
5
5
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, s as renderSlot, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_D1PbsjNG.mjs";
|
|
5
|
-
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./
|
|
5
|
+
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
6
6
|
import { t as require_semver } from "./semver_WbqCUY_o.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
|
|
8
8
|
import { For, For as For2, Show, Show as Show2, createMemo as createMemo$1, createSignal, createSignal as createSignal$1, onMount, onMount as onMount$1 } from "solid-js";
|
|
@@ -479,7 +479,7 @@ function AdminBar(props) {
|
|
|
479
479
|
const [showLangMenu, setShowLangMenu] = createSignal(false);
|
|
480
480
|
const [showNotifications, setShowNotifications] = createSignal(false);
|
|
481
481
|
const [notifications, setNotifications] = createSignal([]);
|
|
482
|
-
const currentLocale = () => locale;
|
|
482
|
+
const currentLocale = () => locale();
|
|
483
483
|
const translate = t;
|
|
484
484
|
const handleClickOutside = (e) => {
|
|
485
485
|
if (!e.target.closest("#admin-bar")) {
|
|
@@ -585,7 +585,7 @@ function AdminBar(props) {
|
|
|
585
585
|
/** Versão do release atual (ex.: "0.4.0"). */
|
|
586
586
|
var APP_VERSION = {
|
|
587
587
|
name: "okcms",
|
|
588
|
-
version: "0.4.
|
|
588
|
+
version: "0.4.18",
|
|
589
589
|
"private": true,
|
|
590
590
|
description: "Hybrid, modular, API-first CMS",
|
|
591
591
|
engines: {
|
|
@@ -612,6 +612,7 @@ var APP_VERSION = {
|
|
|
612
612
|
"publish:all": "node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f \"$pkg/package.json\" ] || continue; echo \"→ publishing $pkg\"; (cd \"$pkg\" && npm publish --access public) || exit 1; done"
|
|
613
613
|
},
|
|
614
614
|
devDependencies: {
|
|
615
|
+
"@oktis-works/cms": "^0.4.18",
|
|
615
616
|
"@changesets/changelog-github": "^1.0.1",
|
|
616
617
|
"@changesets/cli": "^3.0.3",
|
|
617
618
|
"@types/node": "22.0.0",
|
|
@@ -985,37 +986,37 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
|
|
|
985
986
|
const settingsChildren = [
|
|
986
987
|
{
|
|
987
988
|
href: "/settings/general",
|
|
988
|
-
|
|
989
|
+
key: "settings.general.title",
|
|
989
990
|
active: isActive("/settings/general")
|
|
990
991
|
},
|
|
991
992
|
{
|
|
992
993
|
href: "/settings/post-types",
|
|
993
|
-
|
|
994
|
+
key: "settings.postTypes.title",
|
|
994
995
|
active: isActive("/settings/post-types")
|
|
995
996
|
},
|
|
996
997
|
{
|
|
997
998
|
href: "/settings/custom-fields",
|
|
998
|
-
|
|
999
|
+
key: "settings.customFields.title",
|
|
999
1000
|
active: isActive("/settings/custom-fields")
|
|
1000
1001
|
},
|
|
1001
1002
|
{
|
|
1002
1003
|
href: "/settings/taxonomies",
|
|
1003
|
-
|
|
1004
|
+
key: "settings.taxonomies.title",
|
|
1004
1005
|
active: isActive("/settings/taxonomies")
|
|
1005
1006
|
},
|
|
1006
1007
|
{
|
|
1007
1008
|
href: "/settings/resources",
|
|
1008
|
-
|
|
1009
|
+
key: "resources.title",
|
|
1009
1010
|
active: isActive("/settings/resources")
|
|
1010
1011
|
},
|
|
1011
1012
|
{
|
|
1012
1013
|
href: "/settings/access",
|
|
1013
|
-
|
|
1014
|
+
key: "access.title",
|
|
1014
1015
|
active: isActive("/settings/access")
|
|
1015
1016
|
},
|
|
1016
1017
|
{
|
|
1017
1018
|
href: "/settings/operations",
|
|
1018
|
-
|
|
1019
|
+
key: "operations.title",
|
|
1019
1020
|
active: isActive("/settings/operations")
|
|
1020
1021
|
}
|
|
1021
1022
|
];
|
|
@@ -1029,7 +1030,7 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
|
|
|
1029
1030
|
"client:component-hydration": "load",
|
|
1030
1031
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/admin-bar/AdminBar.tsx",
|
|
1031
1032
|
"client:component-export": "AdminBar"
|
|
1032
|
-
})}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><a href="/content"${addAttribute(["nav-item", { active: navActive.content }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-astro-cid-ynf3rr4n></path><polyline points="14 2 14 8 20 8" data-astro-cid-ynf3rr4n></polyline><line x1="16" y1="13" x2="8" y2="13" data-astro-cid-ynf3rr4n></line><line x1="16" y1="17" x2="8" y2="17" data-astro-cid-ynf3rr4n></line><polyline points="10 9 9 9 8 9" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.content")}</span></a><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><circle cx="8.5" cy="8.5" r="1.5" data-astro-cid-ynf3rr4n></circle><polyline points="21 15 16 10 5 21" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-ynf3rr4n></path><circle cx="9" cy="7" r="4" data-astro-cid-ynf3rr4n></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-astro-cid-ynf3rr4n></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.users")}</span></a><a href="/settings"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06-.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l-.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0-2.83l-.06-.06a1.65 1.65 0 0 0-.33-1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.settings")}</span></a><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu" data-astro-cid-ynf3rr4n>${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")} data-astro-cid-ynf3rr4n>${child.
|
|
1033
|
+
})}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-sidebar-i18n="layout.nav.dashboard" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><a href="/content"${addAttribute(["nav-item", { active: navActive.content }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-astro-cid-ynf3rr4n></path><polyline points="14 2 14 8 20 8" data-astro-cid-ynf3rr4n></polyline><line x1="16" y1="13" x2="8" y2="13" data-astro-cid-ynf3rr4n></line><line x1="16" y1="17" x2="8" y2="17" data-astro-cid-ynf3rr4n></line><polyline points="10 9 9 9 8 9" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.content" data-astro-cid-ynf3rr4n>${t("layout.nav.content")}</span></a><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><circle cx="8.5" cy="8.5" r="1.5" data-astro-cid-ynf3rr4n></circle><polyline points="21 15 16 10 5 21" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.media" data-astro-cid-ynf3rr4n>${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-ynf3rr4n></path><circle cx="9" cy="7" r="4" data-astro-cid-ynf3rr4n></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-astro-cid-ynf3rr4n></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.users" data-astro-cid-ynf3rr4n>${t("layout.nav.users")}</span></a><a href="/settings"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")} data-astro-cid-ynf3rr4n><svg class="settings-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 0-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" data-astro-cid-ynf3rr4n></path><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle></svg><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06-.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l-.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0-2.83l-.06-.06a1.65 1.65 0 0 0-.33-1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.settings" data-astro-cid-ynf3rr4n>${t("layout.nav.settings")}</span></a><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu" data-astro-cid-ynf3rr4n>${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")}${addAttribute(child.key, "data-sidebar-i18n")} data-astro-cid-ynf3rr4n>${t(child.key)}</a>`)}</div><a href="/plugins"${addAttribute(["nav-item", { active: navActive.plugins }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="2" y="2" width="20" height="20" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><path d="M15 7h4a2 2 0 0 1 2 2v4" data-astro-cid-ynf3rr4n></path><path d="M9 17H5a2 2 0 0 1-2-2V9" data-astro-cid-ynf3rr4n></path><line x1="8" y1="12" x2="16" y2="12" data-astro-cid-ynf3rr4n></line></svg><span class="nav-label" data-sidebar-i18n="layout.nav.plugins" data-astro-cid-ynf3rr4n>${t("layout.nav.plugins")}</span></a><a href="/themes"${addAttribute(["nav-item", { active: navActive.themes }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="10" data-astro-cid-ynf3rr4n></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-astro-cid-ynf3rr4n></path><path d="M2 12h20" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.themes" data-astro-cid-ynf3rr4n>${t("layout.nav.themes")}</span></a><!-- D1: slots de extensao — paginas de menu declaradas por plugins ativos -->${renderComponent($$result, "PluginExtensionsSlot", PluginExtensionsSlot, {
|
|
1033
1034
|
"client:load": true,
|
|
1034
1035
|
"data-astro-cid-ynf3rr4n": true,
|
|
1035
1036
|
"client:component-hydration": "load",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
2
|
-
import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
2
|
+
import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./DashboardLayout_svhEj8jj.mjs";
|
|
3
3
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
4
4
|
//#region src/components/media/MediaLibrary.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
2
2
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
3
3
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
4
4
|
//#region src/components/apps/settings/ResourceHubs.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
5
|
//#region src/pages/plugins/[slug].astro
|
|
6
6
|
var _slug__exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Slug,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as AccessManager } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
|
+
import { t as AccessManager } from "./ResourceHubs_BH3vCwma.mjs";
|
|
6
6
|
//#region src/pages/settings/access.astro
|
|
7
7
|
var access_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Access,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { t as FieldTypePicker } from "./FieldTypePicker_CXwpmcQ3.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_RKGob-Zo.mjs";
|
|
6
6
|
//#region src/pages/content/edit.astro
|
|
7
7
|
var edit_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Edit,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
//#region src/components/apps/settings/GeneralSettings.tsx
|
|
8
8
|
var _tmpl$ = [
|
|
@@ -1369,6 +1369,10 @@ async function getTFunction(locale) {
|
|
|
1369
1369
|
var currentTFunction = createTFunction(initialTranslations, initialTranslations);
|
|
1370
1370
|
var currentLocale = "en";
|
|
1371
1371
|
var isLoading = true;
|
|
1372
|
+
var LOCALE_CHANGE_EVENT = "okcms:locale-changed";
|
|
1373
|
+
function emitLocaleChange() {
|
|
1374
|
+
if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(LOCALE_CHANGE_EVENT, { detail: { locale: currentLocale } }));
|
|
1375
|
+
}
|
|
1372
1376
|
/** Hook Solid para usar traduções em componentes */
|
|
1373
1377
|
function useTranslation(initialLocale) {
|
|
1374
1378
|
onMount(async () => {
|
|
@@ -1379,16 +1383,18 @@ function useTranslation(initialLocale) {
|
|
|
1379
1383
|
currentTFunction = await getTFunction(resolvedLocale);
|
|
1380
1384
|
isLoading = false;
|
|
1381
1385
|
notifyTranslationChange((version) => version + 1);
|
|
1386
|
+
emitLocaleChange();
|
|
1382
1387
|
})();
|
|
1383
1388
|
await translationLoadPromise;
|
|
1384
1389
|
});
|
|
1385
1390
|
const changeLocaleFn = async (newLocale) => {
|
|
1386
1391
|
isLoading = true;
|
|
1387
|
-
await changeLocale(newLocale);
|
|
1388
1392
|
currentLocale = newLocale;
|
|
1389
1393
|
currentTFunction = await getTFunction(newLocale);
|
|
1390
1394
|
isLoading = false;
|
|
1391
1395
|
notifyTranslationChange((version) => version + 1);
|
|
1396
|
+
emitLocaleChange();
|
|
1397
|
+
await changeLocale(newLocale);
|
|
1392
1398
|
};
|
|
1393
1399
|
const translate = (key, params) => {
|
|
1394
1400
|
translationVersion();
|
|
@@ -1396,7 +1402,8 @@ function useTranslation(initialLocale) {
|
|
|
1396
1402
|
};
|
|
1397
1403
|
return {
|
|
1398
1404
|
t: translate,
|
|
1399
|
-
|
|
1405
|
+
locale: () => {
|
|
1406
|
+
translationVersion();
|
|
1400
1407
|
return currentLocale;
|
|
1401
1408
|
},
|
|
1402
1409
|
changeLocale: changeLocaleFn,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as MediaLibrary } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
|
+
import { t as MediaLibrary } from "./MediaLibrary_BCzLRYs6.mjs";
|
|
6
6
|
//#region src/pages/media/index.astro
|
|
7
7
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Index,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/dashboard/DashboardHome.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
//#region src/components/apps/users/UsersManager.tsx
|
|
8
8
|
var _tmpl$ = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
5
|
//#region src/pages/settings/index.astro
|
|
6
6
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Index,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { Show, createMemo, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/content/ContentList.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_RKGob-Zo.mjs";
|
|
6
6
|
//#region src/pages/content/new.astro
|
|
7
7
|
var new_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$New,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BKVjk7jX.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/users/UserCreateForm.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { r as OperationsManager } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_svhEj8jj.mjs";
|
|
5
|
+
import { r as OperationsManager } from "./ResourceHubs_BH3vCwma.mjs";
|
|
6
6
|
//#region src/pages/settings/operations.astro
|
|
7
7
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Operations,
|