@brightsideoy/kama 1.0.0-alpha.24 → 1.0.0-alpha.26
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/bin/cli.js +8 -2
- package/dist/assets/AssetEditor-BQp8ufSp.js +1 -0
- package/dist/assets/CmsAccordion-91I5Rx5D.css +1 -0
- package/dist/assets/CmsAccordion-BgdaB8QZ.js +1 -0
- package/dist/assets/CmsBadge-BT2jTJUu.js +1 -0
- package/dist/assets/CmsButton-DnhPsHXA.js +1 -0
- package/dist/assets/CmsFieldTaxonomy-DkAT1fuc.js +1 -0
- package/dist/assets/CmsHelp-BIbzY-Mi.js +1 -0
- package/dist/assets/CmsImagePreview-BhM7S_v8.js +1 -0
- package/dist/assets/CmsPublisher-Dc38zXt9.js +3 -0
- package/dist/assets/CmsUserCenter-CAaiCweN.js +1 -0
- package/dist/assets/EditorSplitPreview-fCwIcjhd.js +1 -0
- package/dist/assets/FormsWorkspace-Bb6wv80Y.js +2 -0
- package/dist/assets/FormsWorkspace-CGs6eUjz.css +1 -0
- package/dist/assets/NodeContextMenu-Bt_TK17e.js +1 -0
- package/dist/assets/{NodeEditor-rrOvlGF8.css → NodeEditor-C82xLR0T.css} +1 -1
- package/dist/assets/NodeEditor-Cv8XIMCm.js +161 -0
- package/dist/assets/StatusPill-HY1gCP9c.js +1 -0
- package/dist/assets/TrashWorkspace-C-PKJBRC.js +1 -0
- package/dist/assets/{_plugin-vue_export-helper-BdT0OEbg.js → _plugin-vue_export-helper-BK_c4R_m.js} +1 -1
- package/dist/assets/circle-check-CksZGUB7.js +1 -0
- package/dist/assets/database--QlkzG9u.js +1 -0
- package/dist/assets/globe-TuZP0v6A.js +1 -0
- package/dist/assets/history-CIbqkRx3.js +1 -0
- package/dist/assets/{index-pbsspAqA.css → index-BYlliwPU.css} +1 -1
- package/dist/assets/index-C2AF4yr_.js +16 -0
- package/dist/assets/layers-BwACvD_U.js +1 -0
- package/dist/assets/loader-circle-DYEFqbD4.js +1 -0
- package/dist/assets/panel-left-close-Cpq52HZy.js +1 -0
- package/dist/assets/plus-BA5G4zTK.js +1 -0
- package/dist/assets/preload-helper-Bjoj7SyZ.js +1 -0
- package/dist/assets/rotate-ccw-DvjWccJd.js +1 -0
- package/dist/assets/save-Dwhm8QNL.js +1 -0
- package/dist/assets/send-Bs4eROle.js +1 -0
- package/dist/assets/smartphone-i429gh5p.js +1 -0
- package/dist/assets/trash-2-CrOsVo1D.js +1 -0
- package/dist/assets/{useCmsState-BblziYb-.js → useCmsState-rZqeAwK1.js} +1 -1
- package/dist/assets/{useNodes-GLoFdA2T.js → useNodes-B-Q6yDsj.js} +1 -1
- package/dist/assets/user-DKryA1QU.js +1 -0
- package/dist/assets/x-DOWbsdzd.js +1 -0
- package/dist/{dist-ZQFhgFUY.js → dist-BAUJQ0-e.js} +95 -38
- package/dist/index.html +25 -26
- package/dist/index.js +94 -37
- package/dist/{nodemailer-Ccic7tRm-Chwouykd.js → nodemailer-Ccic7tRm-Dl2YIOIv.js} +1 -1
- package/dist/schema-compiler.js +1 -1
- package/documentation/FORMS.md +181 -99
- package/package.json +1 -1
- package/templates/astro-starter/astro-preview-dev-integration.mjs +83 -0
- package/templates/astro-starter/astro.config.mjs +11 -0
- package/templates/astro-starter/src/components/global/NavigationMenu.astro +6 -5
- package/templates/astro-starter/src/lib/cms.ts +7 -0
- package/templates/astro-starter/src/middleware.ts +11 -9
- package/templates/astro-starter/src/pages/partials/nav.astro +6 -5
- package/dist/assets/AssetEditor-CVfLHR57.js +0 -1
- package/dist/assets/CmsBadge-DB0WNyWx.js +0 -1
- package/dist/assets/CmsButton-BbvewMhp.js +0 -1
- package/dist/assets/CmsFieldTaxonomy-DWlLLL92.js +0 -1
- package/dist/assets/CmsHelp-D4z0YSWX.js +0 -1
- package/dist/assets/CmsImagePreview-cWi-cfCr.js +0 -1
- package/dist/assets/CmsPublisher-Dz_XTFmW.js +0 -3
- package/dist/assets/CmsUserCenter-DE_op9OZ.js +0 -1
- package/dist/assets/EditorSplitPreview-C9Gb4usO.js +0 -1
- package/dist/assets/FormsWorkspace-DPTcxMpw.css +0 -1
- package/dist/assets/FormsWorkspace-DdYcrdg3.js +0 -1
- package/dist/assets/NodeContextMenu-qV4OaL33.js +0 -1
- package/dist/assets/NodeEditor-BNKrtv8t.js +0 -161
- package/dist/assets/StatusPill-BAnTGDR_.js +0 -1
- package/dist/assets/TrashWorkspace-DtbKBkM2.js +0 -1
- package/dist/assets/circle-check-CB39w7cZ.js +0 -1
- package/dist/assets/createLucideIcon-BIiMnJpN.js +0 -1
- package/dist/assets/database-mgNVRFlp.js +0 -1
- package/dist/assets/globe-Clq_OlnU.js +0 -1
- package/dist/assets/history-ZSqpsbjQ.js +0 -1
- package/dist/assets/index-B962oXcV.js +0 -16
- package/dist/assets/layers-CH2VvrZT.js +0 -1
- package/dist/assets/loader-circle-CwP4GuFX.js +0 -1
- package/dist/assets/panel-left-close-g4nIMIjy.js +0 -1
- package/dist/assets/plus-DCPXsir3.js +0 -1
- package/dist/assets/preload-helper-CstCHdlQ.js +0 -1
- package/dist/assets/rotate-ccw-tUaGL4DO.js +0 -1
- package/dist/assets/save-BUYaWIjt.js +0 -1
- package/dist/assets/send-UE48lWD8.js +0 -1
- package/dist/assets/smartphone-B7c4WqQk.js +0 -1
- package/dist/assets/trash-2-D8h6WxFK.js +0 -1
- package/dist/assets/user-Bo_HcyTz.js +0 -1
- package/dist/assets/x-3cfZis8N.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,g as t,k as n}from"./_plugin-vue_export-helper-BdT0OEbg.js";import{l as r,o as i,t as a,u as o}from"./useNodes-GLoFdA2T.js";import{n as s,o as c}from"./useCmsState-BblziYb-.js";import{i as l,n as u,r as d}from"./schema-helpers-uuDCw8Rb.js";import{t as f}from"./createLucideIcon-BIiMnJpN.js";n();function p(){let{allChannels:n,activeChannelSettings:f,selectedChannelId:p,selectedLanguage:m,channelSnapshot:h,channelTemplateSchema:g,channelSchemas:_,validationErrors:v,setViewMode:y}=s(),{validateAgainstSchema:b}=o(),{fetchChannels:x,syncSystemMetadata:S}=r(),{confirmNavigation:C}=i(),w=()=>u(_,c),T=t(()=>l(w())),E=()=>{h.value=JSON.stringify(f.value||{})},D=async()=>{if(!f.value)return!1;v.value={};let e=w(),t=f.value.channelType||f.value.type||Object.keys(e)[0]||`website`,r=e[t]||g.value,i=d(r,g.value);if(!await b(f.value,{fields:i},`channel`))return!1;try{let e=f.value.id,r=f.value.isNew||String(e||``).startsWith(`draft-`)?null:typeof e==`number`?e:Number(e)||null,i={...JSON.parse(JSON.stringify(f.value)),id:r,channelType:t};delete i.isNew;let a=await fetch(`/api/cms/channels.json`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(i)});if(a.ok){let e=await a.json();f.value.id=e.id,delete f.value.isNew,await S(),p.value=String(e.id);let r=n.value.find(t=>String(t.id)===String(e.id));return r&&(f.value={...r,channelType:r.channelType||r.type||t,trees:Array.isArray(r.trees)?[...r.trees]:[]}),E(),await y(`channel`,!0),!0}{let e=await a.json().catch(()=>({}));return a.status===409&&e.field?v.value={[e.field]:e.error||`This key is already in use.`}:alert(e.error||`Failed to save channel settings.`),!1}}catch(e){return console.error(`[CMS] Error saving channel:`,e),!1}},O=async()=>{f.value=null,h.value=``,await y(`none`,!0)},k=async e=>{let t=e||f.value?.id;if(t){if(String(t).startsWith(`draft-`)){await O();return}try{let e=await fetch(`/api/cms/channels.json?id=${t}`,{method:`DELETE`});if(e.ok)f.value=null,h.value=``,await S(),p.value=`all`,await y(`none`,!0);else{let t=await e.json().catch(()=>({}));alert(`Failed to delete channel. ${t.error||`Check server console.`}`)}}catch{alert(`Network error: Could not reach server to delete the channel.`)}}},A=async()=>{if(!await C())return!1;let e=p.value;(!e||e===`all`)&&n.value.length>0&&(e=String(n.value[0].id),p.value=e);let t=n.value.find(t=>String(t.id)===String(e));if(t){let e=w(),n=Object.keys(e)[0]||`website`,r=t.channelType||t.type||n,i=JSON.parse(JSON.stringify(t));i.channelType=r,i.trees=Array.isArray(t.trees)?[...t.trees]:[];let o=e[r];if(o){let e={};a(e,o),Object.keys(e).forEach(t=>{(i[t]===void 0||i[t]===null)&&(i[t]=e[t])})}f.value=i,E(),v.value={},await y(`channel`,!0)}return!0},j=async e=>{if(!await C())return!1;let t={id:`draft-${Date.now()}`,isNew:!0,key:``,label:``,channelType:``,domain:`localhost`,baseUrl:`http://localhost:3000`,defaultLanguage:`en`,trees:[]};return f.value=t,E(),v.value={},await y(`channel`,!0),!0};return{allChannels:n,activeChannelSettings:f,selectedChannelId:p,selectedLanguage:m,channelTypeOptions:T,fetchChannels:x,saveChannelSettings:D,cancelNewChannel:O,deleteChannel:k,openCurrentChannelSettings:A,handleAddNewChannel:j,onChannelSelectChange:async t=>{let n=t.target,r=String(f.value?.id||`all`);n.value===`__add_new__`?await j()||e(()=>{p.value=r}):await A()||e(()=>{p.value=r})},updateChannelSnapshot:E}}var m=f(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),h=f(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{m as n,p as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,I as t,N as n,Q as r,X as i,_ as a,b as o,k as s,m as c,ot as l,q as u,t as d,w as f,y as p,yt as m,z as h}from"./_plugin-vue_export-helper-BdT0OEbg.js";import{t as g}from"./createLucideIcon-BIiMnJpN.js";import{n as _}from"./send-UE48lWD8.js";var v=g(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),y=g(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),b=g(`arrow-left-to-line`,[[`path`,{d:`M3 19V5`,key:`rwsyhb`}],[`path`,{d:`m13 6-6 6 6 6`,key:`1yhaz7`}],[`path`,{d:`M7 12h14`,key:`uoisry`}]]),x=g(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ee=g(`arrow-right-to-line`,[[`path`,{d:`M17 12H3`,key:`8awo09`}],[`path`,{d:`m11 18 6-6-6-6`,key:`8c2y43`}],[`path`,{d:`M21 5v14`,key:`nzette`}]]),te=g(`arrow-up-to-line`,[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]),S=g(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),C=g(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),w=g(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),T=g(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),E=g(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),D=g(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),O=g(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),k=g(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),A=g(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),j=g(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),M=g(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),N=g(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),P=g(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),F=g(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),I=g(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),L=g(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),R=g(`heading-4`,[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]),z=g(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),B=g(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),V=g(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),H=g(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),U=g(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),W=g(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),G=g(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),ne=g(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),K=g(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),q=g(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),J=g(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Y=g(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),X=g(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),Z=g(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),re=g(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ie=g(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),ae=g(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),oe=g(`subscript`,[[`path`,{d:`m4 5 8 8`,key:`1eunvl`}],[`path`,{d:`m12 5-8 8`,key:`1ah0jp`}],[`path`,{d:`M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07`,key:`e8ta8j`}]]),se=g(`superscript`,[[`path`,{d:`m4 19 8-8`,key:`hr47gm`}],[`path`,{d:`m12 19-8-8`,key:`1dhhmo`}],[`path`,{d:`M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06`,key:`1dfcux`}]]),ce=g(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),le=g(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),ue=g(`unfold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]),de=g(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]);s(),u(),l();var fe={key:0,class:`badges-container`},pe={key:0,class:`overlay-badge badge-disabled`,title:`Page is disabled`},me=[`title`],Q={key:1,class:`overlay-badge badge-unpublished`,title:`Has draft changes`},he=d(e({__name:`NodeStatusBadges`,props:{evaluated:{}},setup(e){return(n,i)=>e.evaluated.isDraft?p(``,!0):(t(),o(`div`,fe,[e.evaluated.isHidden?(t(),o(`div`,pe,[f(r(C),{size:10,"stroke-width":`2.5`})])):(t(),o(c,{key:1},[e.evaluated.isScheduled?(t(),o(`div`,{key:0,class:m([`overlay-badge badge-scheduled`,{"badge-scheduled-upcoming":e.evaluated.isUpcoming,"badge-scheduled-showing":e.evaluated.isShowing,"badge-scheduled-passed":e.evaluated.isPassed}]),title:`Status: ${e.evaluated.badgeLabel}`},[f(r(_),{size:10,"stroke-width":`2.5`})],10,me)):p(``,!0),e.evaluated.hasUnpublishedChanges||e.evaluated.isUnpublishedDraft?(t(),o(`div`,Q,[f(r(q),{size:10,"stroke-width":`2.5`})])):p(``,!0)],64))]))}}),[[`__scopeId`,`data-v-98aca3b0`]]);s(),l();var ge=[`id`],_e=d(e({__name:`CmsListItem`,props:{selected:{type:Boolean},draft:{type:Boolean},media:{type:Boolean},variant:{},id:{}},setup(e){return(n,r)=>(t(),o(`div`,{id:e.id,class:m([`cms-list-item`,[e.variant===`media`||e.media?`media-list-item`:e.variant===`vault`?`vault-item`:`tree-item`,{active:e.selected,"is-draft":e.draft}]])},[h(n.$slots,`icon`,{},void 0,!0),h(n.$slots,`default`,{},void 0,!0),h(n.$slots,`actions`,{},void 0,!0)],10,ge))}}),[[`__scopeId`,`data-v-50e9ed05`]]);s(),u(),l();var ve={key:0,class:`bottom-touch-handle`,title:`Drag to resize`},ye=d(e({__name:`CmsPaneResizer`,props:{disabled:{type:Boolean,default:!1}},emits:[`drag-start`,`drag-move`,`drag-end`],setup(e,{emit:s}){let c=e,l=s,u=i(!1),d=i(!1),h=e=>{if(!c.disabled){if(u.value=!0,document.body.style.userSelect=`none`,document.body.classList.add(`cms-resizer-active-drag`),e.type===`touchstart`){d.value=!0;let t=e;t.cancelable&&t.preventDefault(),document.addEventListener(`touchmove`,_,{passive:!1}),document.addEventListener(`touchend`,v)}else e.preventDefault(),document.body.style.cursor=`col-resize`,document.addEventListener(`mousemove`,g),document.addEventListener(`mouseup`,v);l(`drag-start`,e)}},g=e=>{u.value&&l(`drag-move`,e.clientX,e)},_=e=>{!u.value||!e.touches[0]||l(`drag-move`,e.touches[0].clientX,e)},v=()=>{u.value&&(u.value=!1,document.body.style.cursor=``,document.body.style.userSelect=``,document.body.classList.remove(`cms-resizer-active-drag`),document.removeEventListener(`mousemove`,g),document.removeEventListener(`mouseup`,v),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,v),l(`drag-end`))};return n(()=>{v()}),(n,i)=>(t(),o(`div`,{class:m([`cms-pane-resizer`,{"is-dragging":u.value,"is-disabled":e.disabled}]),onMousedown:h,onTouchstart:h},[i[0]||=a(`div`,{class:`resizer-line`},null,-1),d.value?(t(),o(`div`,ve,[f(r(P),{size:14,class:`grip-icon`})])):p(``,!0)],34))}}),[[`__scopeId`,`data-v-4af20519`]]),be=`modulepreload`,xe=function(e){return`/`+e},$={},Se=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=xe(t,n),t=s(t),t in $)return;$[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:be,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})};export{I as A,E as B,U as C,z as D,B as E,j as F,te as G,w as H,A as I,b as J,ee as K,k as L,P as M,N,R as O,M as P,O as R,W as S,V as T,C as U,T as V,S as W,v as X,y as Y,J as _,de as a,ne as b,ce as c,ae as d,ie as f,Y as g,X as h,he as i,F as j,L as k,se as l,Z as m,ye as n,ue as o,re as p,x as q,_e as r,le as s,Se as t,oe as u,q as v,H as w,G as x,K as y,D as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),n=e(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),r=e(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),i=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t as i,r as n,n as r,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),n=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),n=e(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),r=e(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),i=e(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]);export{t as i,r as n,n as r,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),n=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BIiMnJpN.js";var t=e(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),n=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),r=e(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),i=e(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]);export{t as i,r as n,n as r,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,X as t,k as n,q as r}from"./_plugin-vue_export-helper-BdT0OEbg.js";import{t as i}from"./createLucideIcon-BIiMnJpN.js";r(),n();function a(n,r){let i=typeof window<`u`,a=r;if(i){let e=localStorage.getItem(n);if(e!==null)try{a=JSON.parse(e)}catch{a=e}}let o=t(a);return e(o,e=>{i&&localStorage.setItem(n,JSON.stringify(e))},{deep:!0}),o}var o=i(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),s=i(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),c=i(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),l=i(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{a,o as i,c as n,s as r,l as t};
|