efficient-easel 26.12.0 → 26.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/{chunk-P4XLNW3E.js → chunk-6FOXOYXW.js} +1 -1
- package/dist/{chunk-7GGNFLHT.js → chunk-BLE3U2GS.js} +1 -1
- package/dist/{chunk-Q3VAJMXS.js → chunk-C4TJN6GR.js} +1 -1
- package/dist/chunk-CLJ3KXYF.js +5 -0
- package/dist/{chunk-BYONFJVQ.js → chunk-CPIWSFGR.js} +2 -2
- package/dist/{chunk-IVSPOIOU.js → chunk-DTVOOBD4.js} +1 -1
- package/dist/chunk-DX7UGNIP.js +17 -0
- package/dist/{chunk-KWGABNNM.js → chunk-FDIGXBUW.js} +1 -1
- package/dist/{chunk-STQDOTHF.js → chunk-H4TUOPI7.js} +1 -1
- package/dist/chunk-ITRBDUAM.js +19 -0
- package/dist/{chunk-CVS3RPO6.js → chunk-JREIRJVH.js} +1 -1
- package/dist/{chunk-W2UMJ7WO.js → chunk-KR2JYQLM.js} +8 -8
- package/dist/{chunk-TOEJCZUO.js → chunk-MGEXTIZH.js} +1 -1
- package/dist/{chunk-QVQ7764L.js → chunk-QPZQFWS6.js} +4 -4
- package/dist/chunk-QYQG36CI.js +1 -0
- package/dist/{chunk-JYVQ62TL.js → chunk-U4TG43PD.js} +1 -1
- package/dist/chunk-XE5LSM3G.js +64 -0
- package/dist/chunk-YIZIW6GJ.js +1 -0
- package/dist/{chunk-I7NHUVP6.js → chunk-ZWQKRSOI.js} +4 -4
- package/dist/easel/index.d.ts +45 -7
- package/dist/easel/index.js +1 -1
- package/dist/screen/components/AddBlockRow.js +1 -1
- package/dist/screen/components/AddSidePanel.js +1 -1
- package/dist/screen/components/NodeContextMenu.js +1 -1
- package/dist/screen/components/PageEditGuardNotices.js +1 -1
- package/dist/screen/components/ScreenChrome.js +1 -1
- package/dist/screen/components/ScreenDocumentContext.js +1 -1
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.js +1 -1
- package/dist/screen/components/SectionScreenShell.js +17 -17
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.js +1 -1
- package/dist/screen/lib/document/block-set-host.js +1 -1
- package/dist/screen/lib/document/block-size-fields.js +1 -1
- package/dist/screen/lib/document/box-fields.d.ts +13 -6
- package/dist/screen/lib/document/box-fields.js +1 -1
- package/dist/screen/lib/document/button-fields.js +1 -1
- package/dist/screen/lib/document/device-fields.js +1 -1
- package/dist/screen/lib/document/image-fields.d.ts +1 -2
- package/dist/screen/lib/document/image-fields.js +4 -4
- package/dist/screen/lib/document/shadow-fields.js +1 -1
- package/dist/screen/lib/document/style-clipboard.js +1 -1
- package/dist/screen/lib/document/style-fields.js +1 -1
- package/dist/screen/lib/document/use-section-ops.js +1 -1
- package/dist/screen/lib/key-scope.js +1 -1
- package/dist/screen/lib/screen-parts.js +1 -1
- package/dist/screen/words.d.ts +2 -0
- package/dist/screen/words.js +1 -1
- package/dist/strings/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4SYDN43N.js +0 -1
- package/dist/chunk-CQVSWONH.js +0 -1
- package/dist/chunk-EVYIDHCK.js +0 -19
- package/dist/chunk-UMRYCN7L.js +0 -16
- package/dist/chunk-UR7YBZJR.js +0 -5
- package/dist/chunk-YQXHRQXH.js +0 -64
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import{markedTreeNodeId as e,revealSelectedTreeRow as n,sameSelector as t}from"./chunk-UMBNBCL4.js";import{cloneNodeWithFreshIds as o}from"./chunk-OXZDSOZV.js";import{dedupeSlotChildren as r}from"./chunk-7OCEPOEJ.js";import{styleClipboardOf as i}from"./chunk-U4TG43PD.js";import{scrollPreviewToSection as l,gotoPreviewSlide as s}from"./chunk-LUOY3A3Q.js";import{useEaselKeyTarget as d,useEaselUndoKeys as a,useEaselSaveKey as c,editorRootFocus as p}from"./chunk-JREIRJVH.js";import{SlotChildActionsProvider as u}from"./chunk-KCBEE2MC.js";import{screenStorageKeys as f,DEFAULT_PANEL_W as h,clampPanelWidth as m}from"./chunk-6EDVZBUO.js";import{usePartBridge as g}from"./chunk-QYQG36CI.js";import{useSectionOps as y}from"./chunk-DTVOOBD4.js";import{PageEditGuardNotices as v}from"./chunk-MGEXTIZH.js";import{ScreenSaveIcon as b,ScreenMainButton as k}from"./chunk-PVBDKBJB.js";import{useBrowserOffline as S}from"./chunk-RKTF5XLP.js";import{useScreenDocument as w}from"./chunk-CPIWSFGR.js";import{requestMediaPick as x}from"./chunk-JIP5JNRB.js";import{AddChildRow as z}from"./chunk-5545A3PC.js";import{AddSidePanel as C}from"./chunk-KR2JYQLM.js";import{keepsSharedSections as I,sharedSectionsOf as O}from"./chunk-N3MJOHAG.js";import{PanelHideButton as B,SidePanelHead as N,PanelShowStrip as P}from"./chunk-SBVIW3KJ.js";import{offeredChoices as T}from"./chunk-RUQOIQWI.js";import{useScreenSaveSwitch as $,useScreenNodeKeys as M,useScreenPinned as j,useScreenDocumentLabel as E,useScreenCanvasFrame as L,useScreenInspectorPanel as A,useScreenDevices as R,useScreenPickFollowsSelection as D,useScreenLeftView as F,SELECTION_MODE as V,isSelectionMode as H,sameInspectorMode as W,useScreenBridges as U,useScreenBlockRules as J,useScreenBlockLook as Y,useScreenStorageNamespace as X,useScreenNotify as G,useScreenCanvasHead as K,isSlotMode as Q,useScreenStyleClipboard as Z,useScreenDocumentPass as _,useScreenCanvasDrag as q,ScreenCanvasTargetProvider as ee,isPinnedFirst as ne,isPinnedLast as te,screenSlotsOf as oe,shownChildSlotsOf as re}from"./chunk-CLJ3KXYF.js";import{MediaPopup as ie}from"./chunk-T2RINM7R.js";import{useMediaPanel as le,usePanelPick as se,useMediaBrowsing as de,useOpenMediaBrowse as ae,useMediaPlace as ce}from"./chunk-NCXYC7WI.js";import{useNodeClipboard as pe,useNodeContextMenu as ue}from"./chunk-H4TUOPI7.js";import{useEaselSession as fe}from"./chunk-YM4UEGBV.js";import{useEaselHost as he,useHostEscape as me}from"./chunk-LX23TCTP.js";import{LayersIcon as ge,MediaIcon as ye}from"./chunk-XFYFKITX.js";import{DEFAULT_SCREEN_WORDS as ve}from"./chunk-C4TJN6GR.js";import{heldStyle as be,styleShortcut as ke}from"./chunk-CWELHADJ.js";import{DEFAULT_STYLE_CLIPBOARD_WORDS as Se}from"./chunk-6WY6ZXJG.js";import{rootRowName as we,slotChildRowName as xe,slotChildRenameProp as ze,sectionRenameProp as Ce}from"./chunk-5NHQ452C.js";import{ROOT_ZONE as Ie,blockNodeActions as Oe,TREE_MAX_DEPTH as Be,childSlotsOf as Ne,slotFieldsOf as Pe,newNodeId as Te,slotChildrenIn as $e,nestsInTree as Me}from"./chunk-TCAAOYQY.js";import{useEasel as je,useEaselApi as Ee,useSettledAction as Le,subscribeLateWrites as Ae,CanvasPartsContext as Re,partHasOwnBox as De,CanvasPassThroughContext as Fe,CanvasSharedContext as Ve}from"./chunk-ITRBDUAM.js";import{TreeRow as He,Subtree as We,LayersTree as Ue,TreeGroupLabel as Je,TreeRowAction as Ye,TreeSeam as Xe}from"./chunk-WHS6Y55E.js";import{DEFAULT_TREE_WORDS as Ge}from"./chunk-K56YDHYQ.js";import{DEFAULT_NODE_MENU_WORDS as Ke}from"./chunk-WK3AFPXY.js";import{toItemSelector as Qe,useNodeOps as Ze,clickPick as _e}from"./chunk-QTHQPJWA.js";import{EaselTopBar as qe,EaselIconButton as en,TopBarCluster as nn,DeviceSwitch as tn,InspectorIconButton as on,PanelResizeHandle as rn,MAX_PANEL_W as ln,MIN_PANEL_W_BY_SIDE as sn,panelWidthVars as dn}from"./chunk-VBEVZZTV.js";import{DEFAULT_NOTICE_WORDS as an,DEFAULT_CHROME_WORDS as cn}from"./chunk-AJSDWWJW.js";import{holderOf as pn,nameOrSomeone as un}from"./chunk-YYD257TD.js";import{DEFAULT_LOCK_WORDS as fn}from"./chunk-RE4LP46F.js";import{useWords as hn}from"./chunk-MFIRYGHW.js";import{insertSeams as mn,CanvasDragLayer as gn,CanvasInsert as yn}from"./chunk-SQTVXE5D.js";import{DEFAULT_DRAG_WORDS as vn}from"./chunk-TQ5Y6S2X.js";import{createDragSession as bn,useTreeDrag as kn,gapToMoveIndex as Sn}from"./chunk-3XECMGXX.js";import{useCanvasFrame as wn,LIST_SELECTOR as xn,BLOCK_SELECTOR as zn,useCanvasTyping as Cn,useCanvasEvent as In}from"./chunk-TOKMFZPB.js";import{nodeIdAt as On,frameRectToHost as Bn,BLOCK_ATTRIBUTE as Nn,drawnBox as Pn}from"./chunk-FR7EEKFF.js";import{queryMainCopy as Tn}from"./chunk-7UFKEX72.js";import{ROOT_ID as $n,ROOT_SLOT as Mn,zoneKey as jn,parseZoneKey as En,find as Ln,DataError as An}from"./chunk-EUFDQ4KL.js";import{useRef as Rn,useMemo as Dn,useState as Fn,useEffect as Vn,useCallback as Hn,useLayoutEffect as Wn,useContext as Un,Fragment as Jn,useId as Yn}from"react";import{ColoredBadge as Xn,Button as Gn,Tabs as Kn,toast as Qn,readMediaFileDrag as Zn,Tooltip as _n,groupColors as qn,Dialog as et,FormField as nt,Input as tt,MEDIA_FILE_DRAG_TYPE as ot}from"efficient-shell/ui";import{UndoIcon as rt,RedoIcon as it,RefreshIcon as lt,AddIcon as st,TrashIcon as dt,EyeOffIcon as at,EyeIcon as ct,SharedIcon as pt,DuplicateIcon as ut}from"efficient-shell/icons/efficient";import{jsx as ft,jsxs as ht,Fragment as mt}from"react/jsx-runtime";var gt="media-file";function yt({name:e,onMake:n,onCancel:t}){const o=hn("screen",ve).shared,[r,i]=Fn(e),[l,s]=Fn(!1),d=Yn(),a=Rn(null),c=async()=>{const e=r.trim();if(e&&!l){s(!0);try{await n(e)}finally{s(!1)}}};/* @__PURE__ */
|
|
2
|
+
return ft(et,{open:!0,size:"sm",title:o.makeShared,description:o.makeSharedHint,onClose:t,initialFocus:a,footer:/* @__PURE__ */ht(mt,{children:[
|
|
3
|
+
/* @__PURE__ */ft(Gn,{variant:"secondary",onClick:t,children:o.cancel}),
|
|
4
|
+
/* @__PURE__ */ft(Gn,{variant:"primary",loading:l,disabled:!r.trim(),onClick:()=>{c()},children:o.makeShared})]}),children:/* @__PURE__ */ft("form",{onSubmit:e=>{e.preventDefault(),c()},children:/* @__PURE__ */ft(nt,{label:o.name,htmlFor:d,children:/* @__PURE__ */ft(tt,{id:d,ref:a,value:r,onChange:e=>i(e.target.value)})})})})}var vt=/* @__PURE__ */new WeakSet;function bt(e,n,t){const o=Ln(e,n,t);if(!o)return null;const r=o.path.find(e=>"root"!==e.parentId);return r?r.parentId:t}function kt({canvas:e,tabs:n,onSelect:t}){const o=Rn(null),[r,i]=Fn({}),l=n.map(e=>`${e.id}:${e.below?1:e.above?2:0}`).join("|");return Wn(()=>{const t=e?.document,r=e?.window,l=e?.frame;if(!t||!r||!l||0===n.length)return void i({});let s=0;const d=()=>{s=0;const e=o.current;if(!e)return;const d=Bn(l,{left:0,top:0,width:r.innerWidth,height:r.innerHeight},e),a={};for(const o of n){const n=Tn(t,`[${Nn}="${r.CSS?.escape?r.CSS.escape(o.id):o.id}"]`),i=n?Pn(n):null;if(!i||0===i.height){a[o.id]=null;continue}const s=Bn(l,{left:i.left,top:i.top,width:i.width,height:i.height},e),c=s.top+s.height;if(c<d.top||s.top>d.top+d.height){a[o.id]=null;continue}const p=!0===o.above&&s.top-4>d.top,u=o.below?c+4:p?s.top-4:Math.max(s.top,d.top)+6;a[o.id]={left:Math.max(s.left,d.left)+(o.above?0:6),top:u,above:p}}i(a)},a=()=>{s||(s=r.requestAnimationFrame(d))};d(),r.addEventListener("scroll",a,!0),r.addEventListener("resize",a);const c=new r.MutationObserver(a);return c.observe(t.body,{childList:!0,subtree:!0,attributes:!0}),()=>{s&&r.cancelAnimationFrame(s),r.removeEventListener("scroll",a,!0),r.removeEventListener("resize",a),c.disconnect()}},[e,l]),/* @__PURE__ */ft("div",{ref:o,className:"es-band-tabs","aria-hidden":"true",children:n.map(e=>{const n=r[e.id];return n?/* @__PURE__ */ft("span",{className:"es-band-tab"+(n.above?" is-above":""),"data-band-tab":e.id,style:{left:n.left,top:n.top},onClick:n=>{n.stopPropagation(),t(e.id)},children:e.reach?
|
|
5
|
+
/* @__PURE__ */ft(_n,{content:e.reach,children:/* @__PURE__ */ht(Xn,{colorClass:qn("success","solid"),size:"sm",children:[
|
|
6
|
+
/* @__PURE__ */ft("span",{className:"es-band-tab-mark",children:/* @__PURE__ */ft(pt,{size:12})}),e.label]})}):/* @__PURE__ */ft(Xn,{colorClass:qn("info","solid"),size:"sm",children:e.label})},e.id):null})})}function St({expand:e}){/* @__PURE__ */
|
|
7
|
+
return ft("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */ht(mt,e?{children:[
|
|
8
|
+
/* @__PURE__ */ft("path",{d:"M8 9l4-4 4 4"}),
|
|
9
|
+
/* @__PURE__ */ft("path",{d:"M8 15l4 4 4-4"})]}:{children:[
|
|
10
|
+
/* @__PURE__ */ft("path",{d:"M8 4l4 4 4-4"}),
|
|
11
|
+
/* @__PURE__ */ft("path",{d:"M8 20l4-4 4 4"}),
|
|
12
|
+
/* @__PURE__ */ft("path",{d:"M5 12h14"})]})})}var wt=`${xn}, ${zn}`;function xt(e,n,t){const o=t-n;if(o<6)return null;if(o<24)return{top:Math.round((n+t)/2),height:Math.round(o)};return{top:Math.round(Math.min(Math.max(e,n+12),t-12))}}var zt="__rungs",Ct=e=>"template"===e.kind?e.template.id:"shared"===e.kind?e.section.id:"preset"===e.kind?e.preset.key:e.type;var It="screen:band",Ot={duplicate:!0,delete:!0},Bt=()=>null;function Nt(){const xn=he(),Bn=xn.panels?.Toolbar,Nn=(xn.panels?.useRight??Bt)(),{target:Pn,docId:Yn,capabilities:_n,currentSlug:qn,siteId:et,onPublish:nt,saveState:tt,saveConflict:pt,retrySave:Nt,toggleAutoSave:Pt,flushSave:Tt,access:$t,saveUnreachable:Mt=!1,readOnly:jt,readOnlyReason:Et=null}=w(),Lt=$(),At=M(),{mediaEditing:Rt,hasEditGuard:Dt,hasPinnedChrome:Ft}=_n,{appState:Vt,dispatch:Ht,history:Wt,selectedItem:Ut,getSelectorForId:Jt,config:Yt}=je(e=>e),Xt=j(),{first:Gt,firstGroup:Kt,lastGroup:Qt,isSectionGroup:Zt,sectionGroupZone:_t,panelOf:qt}=Xt,eo=qt(Gt),no=e=>ne(Xt,e),to=e=>te(Xt,e),oo="node"===Xt.firstRow,ro=Xt.band??null,io=hn("screen",ve),lo=hn("tree",Ge),so=hn("drag",vn),ao=hn("notice",an),co=hn("lock",fn),po=hn("menu",Ke),uo=hn("styleClipboard",Se),fo=hn("chrome",cn),ho=E()??`/${qn}`,mo=L(),go=A(),yo=y({readOnly:jt}),vo=y({readOnly:jt,foldIntoHistory:!0}),bo=Rn(null),ko=Ee(),So=Dn(()=>({...yo,select:e=>{bo.current=e,yo.select(e)},commitDocument:(e,n)=>{if(void 0!==n){const t=ko.config;bo.current=Qe(e,t,n)}yo.commitDocument(e,n)}}),[yo,ko]),wo=Vt.ui,xo=wo.leftSideBarVisible,zo=wo.rightSideBarVisible,{options:Co,widths:Io,initial:Oo,fluid:Bo,fit:No}=R(),[Po,To]=Fn(Oo),$o=le(),Mo=Rt&&null!==$o;se(),de();const jo=ae();D(Ut?.props.id);const{read:Eo,write:Lo,forSelection:Ao}=F(),[Ro,Do]=Fn(Eo);Vn(()=>{Lo(Ro)},[Ro]);const[Fo,Vo]=Fn(0),Ho=Rn(null),Wo=Rn(null),Uo=wn(Wo,{readySelector:wt}),Jo=Cn(Uo),Yo=d(Wo);a(Wo,Uo);const Xo=S(),Go=pn($t),Ko={state:tt,offline:Xo||tt.failed&&Mt,readOnlyReason:Et,editing:Go?ao.editing({name:un(Go.name,co),noun:io.noun}):null,conflict:null!=pt,notSaving:io.bar.notSaving},Qo=Le({onPress:()=>{jt||(tt.failed?Nt():Tt())}}).onPress;c(Wo,Uo,Qo);const[Zo,_o]=Fn(!1),qo=Rn(!1),[er,nr]=Fn(null),[tr,or]=Fn([]),[rr,ir]=Fn(V);H(rr);const lr=e(rr,Ut?.props.id),[sr,dr]=Fn(null);Vn(()=>{sr&&(n(),dr(null))},[sr]);const ar=Rn(Jt);ar.current=Jt;const cr=Hn((e,{scroll:n})=>{Do(n=>Ao(e,n)),n&&dr(e);const t=[];let o=e;for(let e=0;e<4;e++){const e=ar.current(o)?.zone;if(!e||!e.includes(":"))break;const n=e.split(":")[0];t.push(n),t.push(e),o=n}0!==t.length&&Fr(e=>{if(t.every(n=>!e.has(n)))return e;const n=new Set(e);return t.forEach(e=>n.delete(e)),n})},[]),pr=Rn(null);Vn(()=>{const e=pr.current;pr.current=null;const n=null==Ut?.props.id?null:String(Ut.props.id);ir(t=>e&&e.id===n?e.mode:"part"===t.kind&&"nodeId"in t&&t.nodeId===n?t:qt(Ut?.type)??V);const o=Ut?.props.id,r=bo.current;if(bo.current=null,!o)return;const i=Jt(o);cr(String(o),{scroll:!t(r,i??null,Ie)})},[Ut?.props.id,cr]);const ur=Hn(e=>{ir(n=>W(n,e)?n:e),Ht({type:"setUi",ui:{rightSideBarVisible:!0}})},[Ht]),fr=Rn(()=>{});fr.current=(e,n)=>{const t=e?Ai(e.zone??Ie)[e.index]?.props.id:null,o=null==t?null:String(t),r=null==Ut?.props.id?null:String(Ut.props.id);ir(e=>W(e,n)?e:n),o!==r&&(pr.current={id:o,mode:n},So.select(e))};const hr=Hn((e,n)=>fr.current(e,n),[]),mr={kind:rr.kind,mode:rr,open:ur,show:e=>ir(e),reveal:()=>{zo||Ht({type:"setUi",ui:{rightSideBarVisible:!0}})},select:hr},gr=U(mr,{data:Vt.data,selected:Ut??null,zoneOf:e=>Jt(e)?.zone,readOnly:Boolean(jt),select:e=>{ir(V),So.select({index:e})},replace:(e,n)=>So.replaceComponent(Ie,e,n),scrollTo:e=>l(e)},{device:Po,refreshes:Fo},{setView:Do,reveal:()=>{xo||Ht({type:"setUi",ui:{leftSideBarVisible:!0}})}}),yr=gr.resolveLeftView?gr.resolveLeftView(Ro):"sections",vr=J(),{isLockedBlock:br,duplicateBlocked:kr,nestDepth:Sr,newSectionNode:wr,canAddTo:xr,blockIsOffered:zr}=vr,Cr=e=>({id:String(e.props.id??""),data:Vt?.data}),Ir=Y(),{labelAtLevel:Or,Icon:Br,useProducts:Nr}=Ir,Pr=Ir.rowName?(e,n,t)=>Ir.rowName(e,n,t):void 0,Tr=Hn(e=>{Ht({type:"setUi",ui:{rightSideBarVisible:!0}}),l(e),cr(e,{scroll:!0})},[Ht,cr]),{selectNode:$r,openPartId:Mr}=g({mode:rr,setMode:ir,onOpenPart:Tr}),[jr,Er]=Fn(null);me(null!==jr,()=>Er(null));const Lr=f(X()),Ar=Lr.collapsed,Rr=Lr.panelWidths,[Dr,Fr]=Fn(()=>{if("undefined"==typeof window)/* @__PURE__ */return new Set;try{const e=window.localStorage.getItem(Ar);return new Set(e?JSON.parse(e):[])}catch{/* @__PURE__ */
|
|
13
|
+
return new Set}});Vn(()=>{try{window.localStorage.setItem(Ar,JSON.stringify([...Dr]))}catch{}},[Dr]);const[Vr,Hr]=Fn(()=>{if("undefined"==typeof window)return{...h};try{const e=window.localStorage.getItem(Rr);if(!e)return{...h};const n=JSON.parse(e);return{left:m(Number(n.left)||h.left,"left"),right:m(Number(n.right)||h.right,"right")}}catch{return{...h}}});Vn(()=>{const e=setTimeout(()=>{try{window.localStorage.setItem(Rr,JSON.stringify(Vr))}catch{}},300);return()=>clearTimeout(e)},[Vr]);const Wr=Hn((e,n)=>Hr(t=>{const o="function"==typeof n?n(t[e]):n;return t[e]===o?t:{...t,[e]:o}}),[]),Ur=Hn(e=>Wr("left",e),[Wr]),Jr=Hn(e=>Wr("right",e),[Wr]),Yr=e=>Dr.has(e),Xr=e=>Fr(n=>{const t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t}),Gr=Rn(!1),Kr=Rn(null);Vn(()=>{if(Gr.current&&!Zo){const e=Kr.current,n=e&&e.isConnected&&!e.closest('[aria-hidden="true"]')?e:null;(n??Wo.current?.querySelector(`button[aria-label="${CSS.escape(io.add.title)}"]`))?.focus(),Kr.current=null}Gr.current=Zo},[Zo]),Vn(()=>{if(!Zo||!Yo)return;const e=e=>{"Escape"===e.key&&gl()};return Yo.addEventListener("keydown",e),()=>Yo.removeEventListener("keydown",e)},[Zo,Yo]),me(Zo,()=>gl()),Vn(()=>{!xo&&Zo&&(_o(!1),nr(null),qo.current=!1)},[xo]);const Qr=G(),Zr=(e,n="success",t)=>{if(Qr)return void(t?Qr(e,"error"===n?"error":"info",t):Qr(e,"error"===n?"error":"info"));const o={sound:!1,action:t?.action,onClose:t?.onClose};"error"===n?Qn.error(e,{...o,duration:t?.duration??3200}):Qn.success(e,{...o,duration:t?.duration??1900})},_r=Le(gr.mainAction??{label:io.done,onPress:()=>{nt(ko.getState().appState.data)}}),qr=Rn(Zr);qr.current=Zr,Vn(()=>Ae(ko,()=>qr.current(io.writeLate,"error")),[ko,io]);const ei=Rn(null),[ni,ti]=Fn(0),[oi,ri]=Fn(0),ii=K(),li=Rn(null),si=e=>Math.max(0,e.clientHeight-(li.current?.offsetHeight??0));Vn(()=>{const e=ei.current;if(!e)return;const n=()=>{ti(e.clientWidth),ri(si(e))};n();const t=new ResizeObserver(n);return t.observe(e),li.current&&t.observe(li.current),()=>t.disconnect()},[]),Wn(()=>{ei.current&&(ti(ei.current.clientWidth),ri(si(ei.current)))},[Vr,xo,zo]);const di=Po===Bo?ni>0?ni:Io[Bo]:Io[Po],ai=ni>0?Math.min(ni/di,"shrink"===No?1:2):1,ci=di*ai,pi=ni>0&&ci>ni+1,ui={width:ci,height:oi||"100%",flex:"none",position:"relative"},fi={width:di,height:oi?oi/ai:"100%",maxHeight:"none",transform:1!==ai?`scale(${ai})`:void 0,transformOrigin:"top left"},hi=()=>Ht({type:"setUi",ui:{leftSideBarVisible:!xo}}),mi=()=>Ht({type:"setUi",ui:{rightSideBarVisible:!zo}}),gi=e=>{Zo&&(_o(!1),nr(null),qo.current=!1,xo&&Ro===e)||(Do(e),xo||Ht({type:"setUi",ui:{leftSideBarVisible:!0}}))},yi=()=>{ir(eo??V),zo||Ht({type:"setUi",ui:{rightSideBarVisible:!0}})},vi=Vt.data.content??[],bi=()=>{const e=vi.findIndex(no),n=vi.findIndex(to);return{floor:e>=0?e+1:0,cap:n>=0?n:vi.length}},ki=Yt,Si=vr.stripCopy,wi=e=>o(e,Si),xi=pe(),zi=Ze({data:Vt.data,config:ki,readOnly:Boolean(jt),clipboard:xi,strip:Si?e=>Si(e):void 0,afterRemove:"none",stepBounds:(e,n)=>{if(e.parentId!==$n||e.slot!==Mn)return{min:0,max:n-1};const{floor:t,cap:o}=bi();return{min:t,max:o-1}},commit:(e,{select:n})=>{void 0!==n&&ir(V);const t=void 0===n||"node"===n?.kind?n:null;So.commitDocument(e,t)}}),Ci=fe(),[Ii,Oi]=Fn(null),Bi=e=>{const n=vi.find(n=>String(n.props.id)===e),t=Xt.shared;n&&t&&zi.swap(e,t.detach(n))},Ni=e=>{const n=Ln(Vt.data,Yt,e);if(!n)return!1;const t=jn(n.place),o=n.node,r=t===Ie?ji(o):Ki(o),i=t===Ie?Xt.shared?.usedOn(o):null;return!!zi.remove(e)&&(Zr(i?io.shared.removed({count:Math.max(0,i.length-1)}):io.deleted({name:r}),"success",{duration:8e3,action:{label:io.bar.undo,onClick:()=>{zi.restore(n.node,n.place)}}}),!0)},Pi={...zi,remove:Ni},Ti=e=>Or(e,"block",Yt.components[e]?.label??e),$i=Hn(e=>Yt.components[e]?.defaultProps??{},[Yt]),Mi=e=>Or(e,"section",Ti(e)),ji=e=>we({type:e.type,props:e.props??{}},Mi(e.type),Pr),{nodeAddresses:Ei,zoneItems:Li}=Dn(()=>{const e=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,t=(o,r,i)=>{n.set(r,o),o.forEach((n,o)=>{const l=String(n.props?.id??"");if(l&&e.set(l,{zone:r,index:o}),i>=Be)return;const s=/* @__PURE__ */new Map;for(const{child:e,zone:t}of Ne(Yt,n))s.set(t,[...s.get(t)??[],e]);for(const[e,n]of s)t(n,e,i+1)})};return t(vi,Ie,0),{nodeAddresses:e,zoneItems:n}},[vi,Yt]),Ai=Hn(e=>Li.get(e)??[],[Li]),Ri=e=>{const n=Ei.get(e);return n?Ai(n.zone)[n.index]:void 0},Di=e=>oe(vr,Yt,e),Fi=e=>{if(!vr.slotsOf||e===Ie)return null;const n=e.lastIndexOf(":");if(n<=0)return null;const t=Ri(e.slice(0,n));if(!t)return null;const o=Di(t).filter(e=>e.rung),r=o.findIndex(t=>t.slot===e.slice(n+1));return r<0?null:{node:t,slot:o[r],position:r}},Vi=(()=>{if(!Q(rr))return null;const e=`${rr.nodeId}:${rr.slot}`;return Fi(e)?.slot.panel===rr.kind?e:null})(),Hi=Rn(null);Vn(()=>{const e=Hi.current;if(Hi.current=null,!Vi||!Q(rr))return;const n=rr.nodeId;cr(n,{scroll:e!==Vi}),Fr(e=>{if(!e.has(n))return e;const t=new Set(e);return t.delete(n),t})},[rr]);const Wi=e=>{const n=Ei.get(e);n&&(n.zone===Ie?al(n.index):Ll(n.zone,n.index,e,Ri(n.zone.slice(0,n.zone.lastIndexOf(":")))?.type??""))},Ui=(e,n,t)=>{const o=String(e.props.id);if(!n.panel)return void Wi(o);const r={kind:n.panel,nodeId:o,slot:n.slot},i=`${o}:${n.slot}`;t&&Vi!==i&&(Hi.current=i),hr(null,r),zo||Ht({type:"setUi",ui:{rightSideBarVisible:!0}}),l(o)},Ji=(e,n,t)=>{const o=`${e}:${n}`;if(Fr(n=>{if(!n.has(o)&&!n.has(e))return n;const t=new Set(n);return t.delete(o),t.delete(e),t}),!t)return;Vi!==o&&(Hi.current=o);hr(null,{kind:t,nodeId:e,slot:n})},Yi=(e,n,t)=>{if(jt||!vr.moveSlot)return;const o=Ri(e),r=o?Di(o).filter(e=>e.rung):[],i=r[n];if(!i)return;const l={parentId:e,slot:zt,index:n},s=Sn(l,{...l,index:Math.min(Math.max(t,0),r.length)});if(s===n)return;const d=vr.moveSlot(e,n,s);"string"==typeof d&&Ji(e,d,i.panel)},Xi=Nr(),Gi=Dn(()=>{const e=/* @__PURE__ */new Map;for(const n of Xi??[])e.set(n.slug,n.name);return e},[Xi]),Ki=e=>xe(e,Ti,Ir.plainText,e=>Gi.get(e),Ir.rowName),Qi=(e,n)=>{const t=Yt.components[e.type]?.fields,o=n===Ie||ds(n)?"section":"block",r=n===Ie&&(no(e)||to(e)||Zt(e.type)),i="block"===o?ze(t):r?null:Ce(t);return Ir.renamePropOf?Ir.renamePropOf(e,o,i):i},Zi=(e,n,t,o)=>{if(!(!jt&&jr?.zone===e&&jr.index===n))return;const r=(t,o)=>{Er(null),o&&((e,n,t)=>{const o=Ai(e)[n];if(!o)return;const r=Qi(o,e);r&&So.replaceComponent(e,n,{...o,props:{...o.props,[r]:t.trim()}})})(e,n,t)};/* @__PURE__ */
|
|
14
|
+
return ft("input",{className:"es-tree-rename",defaultValue:o,autoFocus:!0,"aria-label":io.rename,onClick:e=>e.stopPropagation(),onBlur:e=>r(e.currentTarget.value,!0),onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),r(e.currentTarget.value,!0)):"Escape"===e.key&&(e.preventDefault(),r("",!1))}},t)},_i=i(Z(),uo),qi=_i.scope({target:Pn,siteId:et,docId:Yn}),el=Yt,nl=(e,n)=>n===Ie?Mi(e):Ti(e),tl=(e,n,t)=>{const o=_i.plan(qi,t,nl(t.type,e),el);o&&(o.changed&&So.replaceComponent(e,n,{...t,props:{...o.props,id:t.props.id}}),Zr(o.message))},ol=ue({nodesIn:Ai,nodeAt:(e,n)=>Ai(e)[n]??null,labelOf:(e,n)=>n===Ie?Mi(e):Ti(e),renamePropOf:Qi,beginRename:(e,n)=>Er({zone:e,index:n}),history:{hasPast:Wt.hasPast,hasFuture:Wt.hasFuture,back:()=>Wt.back(),forward:()=>Wt.forward()},openPageStyles:gr.openPageStyles,pageStylesLabel:io.pageStyles,words:{menu:po,styleClipboard:uo,screen:io.menu},readOnly:Boolean(jt),collapseAll:()=>Fr(new Set(Ai(Ie).map(e=>String(e.props.id)))),onPasteRefused:e=>Zr(e?io.pasteRefused({name:e.label}):io.menu.clipboardRefused,"error"),canPasteAt:(e,n)=>ps(e,n),copyItem:gr.onCopyItem,menuRows:(e,n,t)=>{const o=gr.menuRows?.(e,n,t)??null,r=((e,n)=>{const t=Xt.shared;if(!t||n!==Ie)return null;const o=t.usedOn(e);if(o){const n={pick:[{label:io.shared.onPages({count:o.length}),onClick:()=>{},children:o.map(e=>({label:e.title,onClick:()=>t.openPage(e)}))}]};return jt||br(e.type,e)?n:{...n,change:[{label:io.shared.detach,onClick:()=>Bi(e.props.id)}],remove:[{label:io.shared.removeFromPage,danger:!0,onClick:()=>{Ni(e.props.id)}}]}}return jt||no(e)||to(e)||Zt(e.type)?null:I(Ci)?{change:[{label:io.shared.makeShared,onClick:()=>Oi({id:e.props.id,name:ji(e)})}]}:null})(e,n);if(!r)return o;return Object.fromEntries(["pick","make","change","remove"].map(e=>[e,[...o?.[e]??[],...r[e]??[]]]).filter(([,e])=>e.length>0))},isLocked:e=>br(e.type,e),duplicateBlocked:e=>kr(Vt.data,e),permits:e=>{const n=Oe(Yt,e.type);return Xt.shared?.usedOn(e)?{...n,delete:!1}:n},nodeOps:Pi,isPinned:(e,n)=>n===Ie&&(no(e)||to(e)),sectionBand:bi,locate:e=>Ei.get(e)??null,rowNameOf:(e,n)=>n===Ie?ji(e):Ki(e),selectAt:(e,n,t,o)=>{e===Ie?al(n):Ll(e,n,t,o??"")},slotRung:e=>{const n=Fi(e);return n?.slot.panel?{label:n.slot.label,select:()=>Ui(n.node,n.slot,!1)}:null},style:{held:()=>be(qi),canCopy:e=>_i.rows(el,e).some(e=>!1!==e.counted),copy:(e,n)=>_i.copy(qi,e,nl(e.type,n),el),paste:(e,n,t)=>tl(e,n,t)},keys:At?{target:Yo,selected:()=>{const e=Vt.ui.itemSelector;return e?{zone:e.zone??Ie,index:e.index}:null},held:()=>xi.get(),readOnly:Boolean(jt),onDone:({done:e,name:n})=>{"copied"===e&&Zr(io.copied({name:n}))}}:void 0},Uo),rl=Rn({copy:(e,n)=>{},paste:(e,n,t)=>{},at:()=>null,readOnly:!1});Vn(()=>{rl.current={copy:(e,n)=>_i.copy(qi,e,nl(e.type,n),el),paste:tl,at:()=>{const e=Vt.ui.itemSelector;if(!e)return null;const n=e.zone??Ie,t=Ai(n)[e.index];return t?{zone:n,index:e.index,node:t}:null},readOnly:Boolean(jt)}});const il=Hn(e=>{const n=ke(e);if(!n)return;const t=rl.current,o=t.at();o&&(e.preventDefault(),"copy"===n?t.copy(o.node,o.zone):t.readOnly||t.paste(o.zone,o.index,o.node))},[]);Vn(()=>{if(!Yo)return;const e=e=>il(e);return Yo.addEventListener("keydown",e),()=>Yo.removeEventListener("keydown",e)},[il,Yo]),In(Uo,"keydown",il);const ll=vi.map(e=>e.props.id).join("|");Vn(()=>{const e=Uo?.document??null,n=Uo?.window??null;let t=0;const o=[],r=()=>{if(!e)return void or(e=>e.length?[]:e);const n=vi.findIndex(to),t=n>=0?n:vi.length,o=n=>{const t=vi[n]?.props?.id;return null==t?null:Tn(e,`[data-easel-block="${CSS.escape(String(t))}"]`)},r=e=>e?[...e.querySelectorAll(zn)].map(e=>e.getBoundingClientRect()).filter(e=>e.width>0||e.height>0):[],i=[];for(let e=vi.length>0&&!no(vi[0])?0:1;e<=t;e++){const n=o(e),t=o(e-1),l=n?.getBoundingClientRect()??null,s=t?.getBoundingClientRect()??null;if(!l&&!s)continue;const d=xt(l&&s?(s.bottom+l.top)/2:l?0===e?l.top+12:l.top:s.bottom,Math.max(0===e?0:-1/0,...r(t).map(e=>e.bottom)),Math.min(1/0,...r(n).map(e=>e.top)));d&&i.push({...d,index:e})}or(e=>function(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t].top!==n[t].top||e[t].index!==n[t].index||e[t].height!==n[t].height)return!1;return!0}(e,i)?e:i)},i=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(r)};if(!e||!n)return void r();n.addEventListener("scroll",i,{passive:!0});const l=new ResizeObserver(i);return l.observe(e.documentElement),r(),o.push(setTimeout(r,150),setTimeout(r,450)),()=>{cancelAnimationFrame(t),o.forEach(clearTimeout),n.removeEventListener("scroll",i),l.disconnect()}},[Uo,ll,Po,ai,xo,zo,Ut?.props.id]);const sl=Uo?.document??null,dl=Uo?.window??null;Vn(()=>{const e=Ho.current;if(!e||!sl||!dl)return;const n=[],t=()=>{const n=Tn(sl,`[data-easel-block="${CSS.escape(e.id)}"]`);if(!n)return!1;const t=n.getBoundingClientRect().top-e.offset;return Math.abs(t)>1&&dl.scrollTo({left:dl.scrollX,top:dl.scrollY+t,behavior:"instant"}),!0};return Ho.current=null,t()&&n.push(setTimeout(t,150),setTimeout(t,450)),()=>n.forEach(clearTimeout)},[sl,dl]);const al=e=>{ir(V),So.select({index:e}),gr.sectionPressed?.(vi[e]);const n=vi[e]?.props?.id;n&&l(n)},cl=e=>{const{floor:n,cap:t}=bi(),o=e=>Math.min(Math.max(n,e),t);if("number"==typeof e)return o(e);const r=Ut&&rr.kind!==eo?.kind?vi.findIndex(e=>e.props.id===Ut.props.id):-1;return o(r>=0?r+1:t)},pl=(e,n)=>{const{floor:t,cap:o}=bi(),r=Math.min(Math.max(n,t),o),i=e<r?r-1:r;return i===e?{moved:!1,dest:e}:(So.reorderComponent(Ie,e,i),So.select({index:i}),{moved:!0,dest:i})},ul=(e,n,t,o)=>{ir(V),So.select(o?{index:o.index,zone:o.zone}:{index:e}),l(n),Zr(io.sectionAdded({name:t}))},fl=(e,n)=>{const t=cl(n),o=wr(e,{nodeDefaults:$i,newNodeId:Te,sectionLabel:Mi,blockIsOffered:zr}),r=o?So.insertNode(Ie,t,o):So.insertSection(e,t);return ul(t,r,Mi(e),o?((e,n,t)=>{if(e.type===t)return null;const o={at:null},r=(e,n,i)=>{const l=i.filter(n=>n===e.type).length;for(const{child:s,zone:d,index:a}of Ne(Yt,e)){if(s.type===t&&(!o.at||n>o.at.depth)){const r=xr(e.type,l,d.slice(d.lastIndexOf(":")+1),Cr(e)),i=r?.choices??(r?.spec?[{type:r.spec.childType,label:r.spec.childType}]:[]);null!==r&&"footer"!==r.source&&`${e.props.id}:${r.slot}`===d&&i.some(e=>e.type===t)&&(o.at={zone:d,index:a,depth:n})}r(s,n+1,[...i,e.type])}};return r({type:e.type,props:{...e.props,id:n}},1,[]),o.at?{zone:o.at.zone,index:o.at.index}:null})(o,r,e):null),t},hl=e=>ml(Ie,e),ml=(e,n)=>{Kr.current=document.activeElement??null,nr(null===n?null:{zone:e,index:n}),_o(!0),xo||(qo.current=!0,Ht({type:"setUi",ui:{leftSideBarVisible:!0}}))},gl=()=>{_o(!1),nr(null),qo.current&&Ht({type:"setUi",ui:{leftSideBarVisible:!1}}),qo.current=!1},yl=(e,n)=>Ir.rowName?n?no(e)?Ir.rowName(e,"section",io.header):to(e)?Ir.rowName(e,"section",io.footer):Zt(e.type)?Ir.rowName(e,"section",Ti(e.type)):ji(e):Ki(e):n?Mi(e.type):Ti(e.type),vl=e=>n=>{e()},bl=(e,n,t)=>{if(jt)return null;const o=Ai(e)[n];return o&&!Oe(Yt,o.type).delete||o&&br(o.type,o)?null:/* @__PURE__ */ft(Ye,{kind:"delete",label:e===Ie&&o&&Xt.shared?.usedOn(o)?io.shared.removeFromPage:io.deleteNamed({name:t}),onClick:()=>((e,n)=>{const t=Ai(e)[n]?.props?.id;null!=t&&Ni(String(t))})(e,n),children:/* @__PURE__ */ft(dt,{size:15})})},kl=e=>Ir.rowPreview?.(e)||void 0,Sl=e=>Ir.rowMarks?.(e)??void 0,wl=(e,n,t)=>Ir.rowActions?.(e,n,t)??null,xl=(e,n,t,o)=>{if(jt)return null;if(br(t.type,t))return null;const r=Boolean(t.props._hidden);/* @__PURE__ */
|
|
15
|
+
return ft(Ye,{kind:"eye",label:r?io.showNamed({name:o}):io.hideNamed({name:o}),onClick:()=>Cl(e,n,t),children:/* @__PURE__ */ft(r?at:ct,{size:14,strokeWidth:1.8,strokeLinecap:void 0,strokeLinejoin:void 0})})},zl=e=>id(Ie,e),Cl=(e,n,t)=>{So.replaceComponent(e,n,{...t,props:{...t.props,_hidden:!t.props._hidden}})},Il=e=>Pe(Yt,e),Ol=e=>Ne(Yt,e),Bl=e=>vr.slotsOf?Di(e).map(n=>({slot:n.slot,rung:n.rung?n:null,kids:$e(e,n.slot)})):[{slot:null,rung:null,kids:re(Yt,e)}],Nl=e=>vr.slotsOf?Bl(e).flatMap(e=>e.kids):re(Yt,e),Pl=e=>Boolean(vr.slotsOf)&&Di(e).some(e=>e.rung),Tl=(e,n,t)=>xr(e.type,n,t??void 0,Cr(e)),$l=(e,n,t)=>{const o=Me(Yt,e.type,n)&&(t||Nl(e).length>0||Pl(e));return{collapsible:o,folded:o&&Yr(String(e.props.id))}},Ml=(e,n,t)=>Bl(e).flatMap(o=>{const r=o.rung?n+1:n,i=o.kids.flatMap(({child:e})=>$l(e,r,t(e.type)).collapsible?[String(e.props.id),...Ml(e,r+1,t)]:[]);return o.rung?[`${e.props.id}:${o.rung.slot}`,...i]:i}),jl=e=>Nl(e).length>0||Pl(e)||Boolean(xr(e.type)),El=e=>Boolean(xr(e)),Ll=(e,n,t,o)=>{if(ir(V),xr(o)?.spec?.slider){const t=e.split(":")[0];s(t,n),So.select({index:n,zone:e}),l(t)}else So.select({index:n,zone:e}),l(t)},Al=(e,n,t,o,r)=>{const i=`${e}:${n}`;So.insertComponent(i,t,o),xr(r)?.spec?.slider?requestAnimationFrame(()=>{s(e,o),So.select({index:o,zone:i})}):So.select({index:o,zone:i})},Rl=Rn(/* @__PURE__ */new Set);Vn(()=>{vi.forEach(e=>{const n=xr(e.type)?.spec;if(!n)return;const t=e.props.id;if(Rl.current.has(t))return;Rl.current.add(t);if((Array.isArray(e.props[n.slot])?e.props[n.slot]:[]).length>0)return;if(n.skipSeed?.(e.props))return;const o=`${t}:${n.slot}`,r=n.legacy?.(e.props)??[];(r.length?r:n.seeds($i)).forEach((e,t)=>vo.seedChild(o,t,n.childType,e))})},[vi,vo,$i]);const Dl=Rn(/* @__PURE__ */new Set);Vn(()=>{vi.forEach((e,n)=>{const t=e.props.id;if(Dl.current.has(t))return;const o=r(e,Il(e.type));Dl.current.add(t),o&&vo.replaceComponent(Ie,n,{...e,props:o})})},[vi,vo]),_(vo,Yt);const Fl=vi.findIndex(to),Vl=Fl>=0?vi[Fl]:null,Hl=oo?vi.findIndex(no):-1,Wl=Hl>=0?vi[Hl]:null,Ul=Xt.groupTab,Jl=Dn(()=>Ul?e=>Zt(e.type):void 0,[Ul]),Yl=Boolean(Xt.groupBadge),Xl=Xt.sharedReach,Gl=e=>Xl?.(e)??void 0,Kl=Dn(()=>Xl?new Set(vi.filter(e=>Gl(e)).map(e=>String(e.props.id))):null,[vi,Xl]),Ql=Dn(()=>Kl?e=>Kl.has(e):void 0,[Kl]),Zl=Xt.first?Xl?.({type:Xt.first,props:{id:""}})??void 0:void 0,_l=Xt.groupBadge?/* @__PURE__ */ft("span",{className:"es-tree-group-badge",children:/* @__PURE__ */ft(Xn,{tone:"info",size:"xs",children:Xt.groupBadge})}):void 0,ql=vi.find(e=>e.type===Kt)??null,es=vi.find(e=>e.type===Qt)??null,ns=Fl>=0?Fl:vi.length,ts=[];vi.forEach(e=>{to(e)||(jl(e)&&ts.push(String(e.props.id)),ts.push(...Ml(e,1,El)))}),Vl&&(ts.push(String(Vl.props.id)),ts.push(...Ml(Vl,1,El)));const os=ts.length>0&&ts.every(e=>Dr.has(e)),rs=e=>{const n=Ir.blockRowName(e,Ti);return Ir.rowName?Ir.rowName(e,"block",n):n},is=(e,n,t,o)=>{const r=Ai(e)[t];if(!r)return;const i={...En(e),index:t},l={...En(n),index:Math.min(Math.max(o,0),Ai(n).length)},s=Sn(i,l);if(e!==n||s!==t)try{zi.move(String(r.props.id),{...l,index:s})}catch(e){if(!(e instanceof An))throw e}},ls=e=>{const n=/* @__PURE__ */new Set,t=e=>{for(const{child:o,zone:r}of Ol(e))n.add(r),t(o)};for(const t of Il(e.type))n.add(`${e.props.id}:${t}`);return t(e),n},ss=e=>{let n=e.slice(0,e.indexOf(":"));for(let e=0;e<64;e++){const e=Ei.get(n);if(!e)return null;if(e.zone===Ie)return n;n=e.zone.slice(0,e.zone.indexOf(":"))}return null},ds=e=>{const n=e.slice(0,e.indexOf(":")),t=vi.find(e=>Zt(e.type)&&String(e.props.id)===n);return t&&_t(n)===e?t:null},as=(e,n)=>{const t=ds(e);return!t||(!Xt.groupAccepts||Xt.groupAccepts(t.type,n,Ai(e).length))},cs=(e,n,t)=>{if(e.rung){const t=Ri(e.rung.nodeId),o=t?Di(t).filter(e=>e.rung).length:0;return n.parentId===e.rung.nodeId&&n.slot===zt&&n.index>=0&&n.index<=o}if(n.slot===zt)return!1;if(e.add)return hs(e.add,n);const o=jn(n);if(Zt(e.type))return!1;const r=ds(o),i=ds(e.zone);if(r||i)return!(!r||!i)&&(!(r!==i&&!as(o,e.type))&&(n.index>=0&&n.index<=Ai(o).length));if(e.zone===Ie||o===Ie){if(e.zone!==o)return!1;const{floor:t,cap:r}=bi();return n.index>=t&&n.index<=r}if(n.index<0||n.index>Ai(o).length)return!1;if(e.zone===o)return!0;const l=Vl&&!Xt.lastIsOpen?String(Vl.props.id):null;return(!l||ss(e.zone)!==l&&ss(o)!==l)&&((e,n,t,o)=>{if(e===n)return!0;const r=o??Ai(e)[t];if(!r)return!1;const i=n.split(":")[0],l=Ei.get(i),s=l?Ai(l.zone)[l.index]:void 0;if(!s)return!1;if(!o&&ls(r).has(n))return!1;const d=xr(s.type,Sr(Vt?.data,s.type,i),n.slice(n.lastIndexOf(":")+1),Cr(s));return!!d&&(!!(d.choices?d.choices.some(e=>e.type===r.type):d.spec?.childType===r.type)&&!d.spec?.addBlocked?.(Ai(n),r))})(e.zone,o,e.index,t)},ps=(e,n)=>{const t=jn(e.from),o=e.node;return t===jn(n)?as(t,o.type):cs({id:String(o.props?.id??""),zone:t,index:-1,type:o.type},n,o)},us=e=>{const n=e.slice(0,e.indexOf(":")),t=Ei.get(n),o=t?Ai(t.zone)[t.index]:void 0;if(!t||!o)return null;const r=xr(o.type,Sr(Vt?.data,o.type,n),e.slice(e.lastIndexOf(":")+1),Cr(o));if(!r||`${n}:${r.slot}`!==e)return null;if("footer"===r.source)return null;const i=T(r.choices??(r.spec?[{type:r.spec.childType,label:Ti(r.spec.childType)}]:[])),l=Fi(e);return{parent:o,parentId:n,target:r,choices:i,parentName:l?l.slot.label:yl(o,t.zone===Ie)}},fs=(e,n)=>{if("section"!==e.kind)return e;const t=jn(n);return t===Ie||ds(t)?e:us(t)?.choices.some(n=>n.type===e.type)?{kind:"block",type:e.type}:e},hs=(e,n)=>{const t=fs(e,n),o=jn(n);if("shared"===t.kind){if(o!==Ie||!Xt.shared?.nodeOf(t.section))return!1;const{floor:e,cap:r}=bi();return n.index>=e&&n.index<=r}if("block"!==t.kind){if(ds(o)){if("preset"===t.kind)return!1;const e="section"===t.kind?t.type:t.template.node.type;return as(o,e)&&n.index>=0&&n.index<=Ai(o).length}if(o!==Ie)return!1;const{floor:e,cap:r}=bi();return n.index>=e&&n.index<=r}if(o===Ie)return!1;const r=us(o);return!(!r||!r.choices.some(e=>e.type===t.type))&&!r.target.spec?.addBlocked?.(Ai(o))},ms=(e,n)=>{const t=fs(e,n);if("block"!==t.kind&&ds(jn(n)))return void((e,n,t)=>{const o="section"===e.kind?e.type:"template"===e.kind?e.template.node.type:null;if(o&&as(n,o)){if("section"===e.kind)So.insertComponent(n,e.type,t);else{if("template"!==e.kind)return;So.insertNode(n,t,wi(e.template.node))}ir(V),So.select({index:t,zone:n})}})(t,jn(n),n.index);if("section"===t.kind)return void fl(t.type,n.index);if("template"===t.kind)return void((e,n,t)=>{const o=cl(t),r=So.insertNode(Ie,o,n);ul(o,r,e)})(t.template.name,wi(t.template.node),n.index);if("preset"===t.kind)return void((e,n,t)=>{const o=n({nodeDefaults:$i,newNodeId:Te,sectionLabel:Mi,blockIsOffered:zr});if(!o)return;const r=cl(t),i=So.insertNode(Ie,r,o);ul(r,i,e)})(t.preset.label,t.preset.insert,n.index);if("shared"===t.kind){const e=Xt.shared?.nodeOf(t.section);if(!e)return;const o=cl(n.index);return void(zi.restore(e,{parentId:$n,slot:Mn,index:o})&&ul(o,e.props.id,t.section.title))}const o=jn(n),r=us(o);r&&(r.target.spec?Al(r.parentId,r.target.slot,t.type,n.index,r.parent.type):((e,n,t)=>{So.insertComponent(e,n,t),ir(V),So.select({index:t,zone:e})})(o,t.type,n.index))},gs=(e,n)=>{e.media?function(e){const n=ed();if(!n||!Zs)return;td(n).then(n=>{n&&function(e,n){if(!Zs)return;const t=Zs.create(e,{nodeDefaults:$i,newNodeId:Te,sectionLabel:Mi,blockIsOffered:zr}),o=jn(n);if(o===Ie){const e=cl(n.index),o=So.insertNode(Ie,e,t);return void ul(e,o,Mi(t.type))}So.insertNode(o,n.index,t),ir(V),So.select({index:n.index,zone:o})}(n,e)})}(n):e.rung?Yi(e.rung.nodeId,e.index,n.index):e.add?ms(e.add,n):e.zone===Ie?pl(e.index,n.index):is(e.zone,jn(n),e.index,n.index)},[ys]=Fn(()=>bn()),vs=kn({keyOf:e=>e.id,readOnly:Boolean(jt),session:ys,canDrop:cs,onDrop:gs,onStep:(e,n)=>{e.rung?Yi(e.rung.nodeId,e.index,n<0?e.index-1:e.index+2):e.zone===Ie?((e,n)=>{const t=Mi(vi[e]?.type??""),o=pl(e,n<0?e-1:e+2);if(!o.moved)return void Zr(n<0?io.sectionFirst({name:t}):io.sectionLast({name:t}));const{floor:r,cap:i}=bi();Zr(io.sectionMoved({name:t,n:o.dest-r+1,total:i-r}))})(e.index,n):is(e.zone,e.zone,e.index,n<0?e.index-1:e.index+2)}}),bs=Hn(e=>{const{floor:n,cap:t}=bi(),o=[];for(const r of e.nodes){const e=jn(r.place),i=Ai(e)[r.place.index];if(!i||String(i.props.id)!==r.id)continue;if(no(i)||to(i)||br(i.type,i))continue;if(Zt(i.type))continue;const l=Boolean(ds(e)),s=e===Ie||l;e===Ie&&t-n<2||o.push({key:r.id,item:{id:r.id,zone:e,index:r.place.index,type:i.type},box:r.box,label:s?Mi(i.type):Ki(i),from:r.place})}const r=e.zones.flatMap(e=>{const n=jn(e.list);if(n===Ie&&0===e.children.length)return[{...e,addLabel:io.addSection,addAlways:!0}];const t=us(n),o=t?.target.spec?.addLabel;return e.children.length>0||Boolean(t?.choices.length)||Boolean(ds(n))?[o?{...e,addLabel:o}:e]:[]}),i=r.flatMap(e=>{const n=jn(e.list),t=n===Ie||ds(n)?null:us(n);return t?.choices.length?mn(e,t.target.spec?.addLabel??io.addBlockHere):[]});return{sources:o,zones:r,seams:i}},[Vt.data]),ks=null==Ut?.props.id?null:String(Ut.props.id),Ss=Un(Re),ws=Ss?.selected()&&Uo?.document&&ks?Ss.selectedPart?.(Uo.document)??null:null,xs=ws&&ks&&De(Vt.data,Yt,ks,ws)?ws:null,zs=xs?.label?{element:xs.element,label:xs.label}:null,Cs=null!==xs,Is=Hn(e=>{const n=Yt,t=e=>!e.item.rung&&null!==Ln(Vt.data,n,e.item.id),o=e[e.length-1];if(!t(o))return o;const r=n=>e.find(e=>t(e)&&e.item.id===n),i=r(ks);return i?Cs?null:i:r(_e(Vt.data,n,o.item.id,ks,Jl))??o},[Vt.data,Yt,ks,Jl,Cs]),[Os,Bs]=Fn(null),[Ns,Ps]=Fn(null),Ts=Ir.canvasTab,$s=Boolean(Ul||Xl||Ts);In(Uo,"mouseover",e=>{if(!$s)return;const n=On(e.target),t=n?bt(Vt.data,Yt,n):null;t!==Os&&Bs(t),Ts&&n!==Ns&&Ps(n)}),In(Uo,"mouseout",e=>{$s&&!e.relatedTarget&&(Bs(null),Ps(null))});const Ms=e=>no(e)||to(e)||Zt(e.type),js=e=>{const n=Zt(e.type)?Ti(e.type):no(e)?io.header:to(e)?io.footer:null;return null===n?ji(e):Ir.rowName?Ir.rowName(e,"section",n):n},Es=[];if($s){const e=ks?bt(Vt.data,Yt,ks):null;for(const n of/* @__PURE__ */new Set([e,Os])){const e=n?vi.find(e=>String(e.props.id)===n):void 0;if(!e)continue;const t=no(e)||e.type===Kt,o=Gl(e);if(o){Es.push({id:String(e.props.id),label:js(e),below:t,reach:o});continue}if(!Ul||!Ms(e))continue;const r=Ul(e);r&&Es.push({id:String(e.props.id),label:r,below:t})}for(const e of Ts?/* @__PURE__ */new Set([ks,Ns]):[]){const n=e?Ri(e):void 0,t=n?Ts(n):null;t&&!Es.some(n=>n.id===e)&&Es.push({id:e,label:t,below:!1,above:!0})}}const Ls=fe(),As=Rn(null);Vn(()=>{const e=Xt.changeNotice;if(!e)return;const n=JSON.stringify(vi.filter(Ms)),t=As.current;if(As.current={doc:Yn,bands:n,index:Wt.index},!t||t.doc!==Yn||t.bands===n)return;Wt.hasPast&&Wt.index>=t.index&&!vt.has(Ls)&&(vt.add(Ls),Zr(e,"success",{action:{label:io.bar.undo,onClick:()=>Wt.back()},duration:8e3}))},[vi]);const Rs=e=>{ir(V),So.select(e.zone===Ie?{index:e.index}:{index:e.index,zone:e.zone})},Ds=q(),Fs=()=>({data:Vt.data,device:Po,ops:So,inspector:mr}),Vs=Ds?.model,Hs=Dn(()=>Vs?e=>Vs(e,bs(e),Fs()):bs,[Vs,bs,Po]),Ws=Ds?.measure,Us=Ws?(e,n)=>Ws(e,n,Fs()):void 0,Js=Ds?.canDrop,Ys=Js?(e,n)=>Js(e,n,cs,Fs()):cs,Xs=Ds?.drop,Gs=Xs?(e,n)=>Xs(e,n,gs,Fs()):gs,Ks=Ds?.pick,Qs=Ks?e=>Ks(e,Rs,Fs()):Rs,Zs=Ds?.media??null,_s=Rn(null),qs=Dn(()=>Zs?{id:gt,zone:"",index:-1,type:Zs.adds.type,add:{kind:Zs.adds.kind,type:Zs.adds.type},media:!0}:null,[Zs]);Vn(()=>{if(!qs||jt||"undefined"==typeof document)return;const e=e=>{(e=>Array.from(e.dataTransfer?.types??[]).includes(ot))(e)&&(_s.current=null,ys.start({key:gt,item:qs}))},n=e=>{ys.get()?.item.media&&(_s.current=Zn(e.dataTransfer))},t=()=>{ys.get()?.item.media&&ys.end()};return document.addEventListener("dragstart",e),document.addEventListener("drop",n,!0),document.addEventListener("dragend",t,!0),()=>{document.removeEventListener("dragstart",e),document.removeEventListener("drop",n,!0),document.removeEventListener("dragend",t,!0)}},[qs,jt,ys]);const ed=()=>{const e=_s.current;return _s.current=null,e},nd=ce(),td=async e=>{if(!nd)return e;const n=await nd(e);return n?{...e,id:n.id,url:n.url}:null};const od=(e,n)=>{if(!Zs)return;const t=Ln(ko.getState().appState.data,ki,n);if(!t)return;const o=t.node;So.replaceComponent(jn(t.place),t.place.index,{...o,props:{...Zs.replace(o,e),id:o.props.id}})},rd=e=>{const n=jn(e),t=Fi(n);t&&Ui(t.node,t.slot,!1),ml(n,e.index)},id=(e,n)=>/* @__PURE__ */ft(Xe,{...jt?{}:vs.seam({place:{...En(e),index:n}})},`seam:${e}:${n}`),ld={rowClick:vl,isCollapsed:Yr,toggleCollapse:Xr},sd=e=>{const n=String(e.props.id),t=vi.findIndex(e=>String(e.props.id)===n),o=_t(n),r=Ai(o),i=Yr(n),l=Ti(e.type),s=Ir.rowName?Ir.rowName(e,"section",l):l,d=e=>id(o,e);/* @__PURE__ */
|
|
16
|
+
return ht(mt,{children:[
|
|
17
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:e.type,size:13}),name:s,preview:kl(e),marks:Sl(e),onSelect:()=>al(t),nameSlot:Zi(Ie,t,n,s),selected:lr===n,badge:Gl(e)?void 0:_l,shared:Gl(e),actions:wl(e,Ie,t)??void 0,rowProps:{"data-node-id":n,onClick:vl(()=>al(t))},fold:{open:!i,label:"section",onToggle:()=>Xr(n)}}),!i&&/* @__PURE__ */ht(We,{children:[r.map((n,t)=>{const r=String(n.props.id),i=ji(n),l=jl(n),s=l&&Yr(r),a=()=>Ll(o,t,r,e.type),{rowProps:c,...p}=vs.row({item:{id:r,zone:o,index:t,type:n.type},place:{...En(o),index:t}},{"data-node-id":r,onClick:vl(a)});/* @__PURE__ */
|
|
18
|
+
return ht(Jn,{children:[d(t),
|
|
19
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:n.type,size:13}),name:i,preview:kl(n),marks:Sl(n),onSelect:a,nameSlot:Zi(o,t,r,i),selected:lr===r,hidden:Boolean(n.props._hidden),...p,fold:l?{open:!s,label:"section",onToggle:()=>Xr(r)}:void 0,actions:/* @__PURE__ */ht(mt,{children:[bl(o,t,i),wl(n,o,t),xl(o,t,n,i)]}),rowProps:c}),l&&!s&&/* @__PURE__ */ft(We,{children:cd(n,2)})]},r)}),d(r.length)]})]})},dd=(e,n,t,o,r)=>{const i=String(e.props.id),l=`${i}:${n.slot}`,s=vs.dragging,d=!Yr(l)&&s?.rung?.nodeId!==i,a={...En(l),index:0},c=s&&!s.rung&&cs(s,a)?a:void 0,p=()=>Ui(e,n,!0),{rowProps:u,...f}=vs.row({item:{id:`rung:${l}`,zone:`${i}:${zt}`,index:t,type:e.type,rung:{nodeId:i,slot:n.slot}},place:{parentId:i,slot:zt,index:t},into:c,canDrag:Boolean(vr.moveSlot)&&!1!==n.movable&&o>1},{"data-slot-zone":l,onClick:vl(p)}),h=jt?null:vr.slotActions?.(e,n.slot);/* @__PURE__ */
|
|
20
|
+
return ht(Jn,{children:[n.heading,
|
|
21
|
+
/* @__PURE__ */ft(He,{words:lo,icon:n.glyph??null,name:n.label,badge:n.badge,onSelect:p,selected:Vi===l,...f,dragHint:n.dragHint,fold:{open:d,label:n.label,onToggle:()=>Xr(l)},actions:h&&h.length>0?/* @__PURE__ */ft(mt,{children:h.map((t,o)=>/* @__PURE__ */ft(Ye,{kind:"delete"===t.kind?"delete":"plain",label:t.label,disabled:t.disabled,onClick:()=>((e,n,t)=>{if(jt||t.disabled)return;const o=String(e.props.id),r=e=>{"string"==typeof e&&Ji(o,e,n.panel)},i=t.run();i&&"function"==typeof i.then?i.then(r):r(i)})(e,n,t),children:"delete"===t.kind?/* @__PURE__ */ft(dt,{size:15}):/* @__PURE__ */ft(ut,{size:15})},`${o}:${t.kind}`))}):void 0,rowProps:u}),d&&/* @__PURE__ */ft(We,{children:r})]},l)},ad=(e,n)=>{const t=Bl(e),o=t.filter(e=>e.rung).length;let r=0;/* @__PURE__ */
|
|
22
|
+
return ft(mt,{children:t.map(t=>{const i=t.kids,l=t.rung?n+1:n,s=Tl(e,void 0,t.slot),d=s?`${e.props.id}:${s.slot}`:null,a=null===t.slot?null:`${e.props.id}:${t.slot}`,c=(e,n)=>id(e,n),p=/* @__PURE__ */ht(mt,{children:[i.map(({child:n,zone:t,index:o})=>{const r=lr===String(n.props.id),{collapsible:i,folded:s}=$l(n,l,El(n.type)),d=String(n.props.id),a=rs(n),p=()=>Ll(t,o,d,e.type),{rowProps:u,...f}=vs.row({item:{id:d,zone:t,index:o,type:n.type},place:{...En(t),index:o}},{"data-node-id":d,onClick:vl(p)});/* @__PURE__ */
|
|
23
|
+
return ht(Jn,{children:[0===o&&c(t,0),
|
|
24
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:n.type,size:13}),name:a,preview:kl(n),marks:Sl(n),onSelect:p,nameSlot:Zi(t,o,d,a),selected:r,hidden:Boolean(n.props._hidden),...f,fold:i?{open:!s,label:"group",onToggle:()=>Xr(d)}:void 0,actions:/* @__PURE__ */ht(mt,{children:[bl(t,o,a),wl(n,t,o),xl(t,o,n,a)]}),rowProps:u}),i&&!s&&/* @__PURE__ */ft(We,{children:ad(n,l+1)}),c(t,o+1)]},String(n.props.id??`${t}-${o}`))}),null===a?d&&!i.some(e=>e.zone===d)?c(d,0):null:0!==i.length||!t.rung&&d!==a?null:c(a,0)]});return t.rung?dd(e,t.rung,r++,o,p):/* @__PURE__ */ft(Jn,{children:p},t.slot??"")})})},cd=(e,n)=>{const t=Sr(Vt?.data,e.type,String(e.props.id)),o=Bl(e),r=o.filter(e=>e.rung).length;let i=0;/* @__PURE__ */
|
|
25
|
+
return ft(mt,{children:o.map(o=>{const l=o.kids,s=o.rung?n+1:n,d=Tl(e,t,o.slot),a=d?.spec??null,c=a&&Array.isArray(e.props[a.slot])?e.props[a.slot]:[],p=d&&d.choices?{slot:d.slot,choices:d.choices}:null,u=String(e.props.id),f=a&&!a.fixed?`${u}:${a.slot}`:null,h=p?`${u}:${p.slot}`:null,m=(e,n)=>id(e,n),g=null===o.slot?null:`${u}:${o.slot}`,y=Boolean(a&&!a.fixed&&(null===g||g===f)),v=/* @__PURE__ */ht(mt,{children:[l.map(({child:n,zone:t,index:o})=>{const r=lr===String(n.props.id),i=Ki(n),l=String(n.props.id),{collapsible:d,folded:a}=$l(n,s,El(n.type)),c=Il(n.type),p=1===c.length?`${l}:${c[0]}`:null,u=p?{...En(p),index:Ai(p).length}:void 0,f=vs.dragging,h=u&&f&&cs(f,u)?u:void 0,g=()=>Ll(t,o,l,e.type),{rowProps:y,...v}=vs.row({item:{id:l,zone:t,index:o,type:n.type},place:{...En(t),index:o},into:h,canDrag:!br(n.type,n)},{"data-node-id":l,onClick:vl(g)});/* @__PURE__ */
|
|
26
|
+
return ht(Jn,{children:[0===o&&m(t,0),
|
|
27
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:n.type,size:13}),name:i,preview:kl(n),marks:Sl(n),onSelect:g,nameSlot:Zi(t,o,l,i),selected:r,hidden:Boolean(n.props._hidden),...v,fold:d?{open:!a,label:"group",onToggle:()=>Xr(l)}:void 0,actions:br(n.type,n)?wl(n,t,o)??void 0:/* @__PURE__ */ht(mt,{children:[bl(t,o,i),wl(n,t,o),xl(t,o,n,i)]}),rowProps:y}),d&&!a&&/* @__PURE__ */ft(We,{children:cd(n,s+1)}),m(t,o+1)]},String(n.props.id??`${t}-${o}`))}),y&&a&&
|
|
28
|
+
/* @__PURE__ */ft(z,{small:!0,label:a.addLabel,blocked:a.addBlocked?.(c)??null,onAdd:()=>Al(e.props.id,a.slot,a.childType,c.length,e.type)}),null===g?h&&!l.some(e=>e.zone===h)?m(h,0):null:0!==l.length||(o.rung?y:g!==h)?null:m(g,0)]});return o.rung?dd(e,o.rung,i++,r,v):/* @__PURE__ */ft(Jn,{children:v},o.slot??"")})})},pd=Zo,ud=e=>"panel"in e?{id:e.id,label:e.label,icon:e.icon,active:xo&&!pd&&yr===e.id,onSelect:()=>gi(e.id)}:e,fd=[...(gr.railLead??[]).map(ud),{id:"sections",label:io.layers,icon:/* @__PURE__ */ft(ge,{}),active:xo&&!pd&&"sections"===yr,onSelect:()=>gi("sections")},...(gr.railTrail??[]).map(ud)],hd=Mo?{onPress:jo}:Rt?{onPress:()=>{x(xn,{accept:"image/*",title:fo.mediaLibrary})}}:null,md={value:fd.find(e=>!0===e.active)?.id??"",press:e=>{const n=fd.find(n=>n.id===e);n&&!n.disabled&&!0!==n.active&&n.onSelect?.()},items:fd.map(e=>({id:e.id,icon:e.icon,label:/* @__PURE__ */ft("span",{className:"sr-only",children:e.label}),tooltip:e.label,disabled:e.disabled}))},gd=[...gr.railLead??[],...gr.railTrail??[]].find(e=>"panel"in e&&e.id===yr),yd=Boolean(ro?.foldable),vd=ro?.label??(Dt?io.pageSections:io.templateSections),bd=yd&&Yr(It),kd=/* @__PURE__ */ht(mt,{children:[vi.map((e,n)=>{if(no(e)||to(e)||Zt(e.type))return null;const t=lr===String(e.props.id),o=Boolean(e.props._hidden);Ol(e);const r=String(e.props.id),i=gr.hasOwnRows?.(e)??!1,l=jl(e)||i,s=l&&Yr(r),d=Il(e.type),a=1===d.length?`${r}:${d[0]}`:null,c=a?{...En(a),index:Ai(a).length}:void 0,p=vs.dragging,u=c&&p&&cs(p,c)?c:void 0,{rowProps:f,...h}=vs.row({item:{id:r,zone:Ie,index:n,type:e.type},place:{...En(Ie),index:n},into:u,canDrag:!br(e.type,e)},{"data-node-id":r,onClick:vl(()=>al(n))});/* @__PURE__ */
|
|
29
|
+
return ht(Jn,{children:[n>0&&zl(n),
|
|
30
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:e.type,size:13}),name:ji(e),preview:kl(e),marks:Sl(e),shared:Gl(e),onSelect:()=>al(n),nameSlot:Zi(Ie,n,r,ji(e)),selected:t,hidden:o,...h,fold:l?{open:!s,label:"section",onToggle:()=>Xr(r)}:void 0,actions:/* @__PURE__ */ht(mt,{children:[bl(Ie,n,ji(e)),wl(e,Ie,n),xl(Ie,n,e,ji(e))]}),rowProps:f}),jl(e)&&!s&&/* @__PURE__ */ht(We,{children:[cd(e,1),gr.partRows?.(e,ld)]}),i&&!s&&/* @__PURE__ */ft(We,{children:gr.ownRows?.(e,n,ld)})]},String(e.props.id??n))}),ns>0&&zl(ns)]}),Sd=(e,n,t)=>{const o=String(e.props.id),r=Nl(e).length>0||Pl(e)||Boolean(xr(e.type)),i=r&&Yr(o),l="header"===t?io.header:io.footer,s=Ir.rowName?Ir.rowName(e,"section",l):l;/* @__PURE__ */
|
|
31
|
+
return ht(mt,{children:[
|
|
32
|
+
/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:t,size:13}),name:s,preview:kl(e),marks:Sl(e),badge:Gl(e)?void 0:_l,shared:Gl(e),onSelect:()=>al(n),nameSlot:Zi(Ie,n,o,s),selected:lr===String(e.props.id),fold:r?{open:!i,label:"section",onToggle:()=>Xr(o)}:void 0,actions:wl(e,Ie,n)??void 0,rowProps:{"data-node-id":o,onClick:vl(()=>al(n))}}),r&&!i&&/* @__PURE__ */ft(We,{children:ad(e,1)})]})};return(gr.wrap??(e=>e))(
|
|
33
|
+
/* @__PURE__ */ft(ee,{target:Uo,children:/* @__PURE__ */ht("div",{ref:Wo,className:"sf-editor es-editor",style:dn(Vr),onContextMenu:ol.onEditorContextMenu,...p(xn),children:[
|
|
34
|
+
/* @__PURE__ */ht(qe,{children:[
|
|
35
|
+
/* @__PURE__ */ht("div",{className:"es-cluster es-cluster--left",children:[hd?/* @__PURE__ */ft(Gn,{variant:"secondary",className:"es-barbtn",leftIcon:/* @__PURE__ */ft(ye,{}),onClick:hd.onPress,children:io.railMedia}):null,
|
|
36
|
+
/* @__PURE__ */ft(en,{label:io.bar.undo,disabled:Boolean(jt)||!Wt.hasPast,onClick:()=>Wt.back(),children:/* @__PURE__ */ft(rt,{})}),
|
|
37
|
+
/* @__PURE__ */ft(en,{label:io.bar.redo,disabled:Boolean(jt)||!Wt.hasFuture,onClick:()=>Wt.forward(),children:/* @__PURE__ */ft(it,{})})]}),
|
|
38
|
+
/* @__PURE__ */ht(nn,{children:[
|
|
39
|
+
/* @__PURE__ */ft(tn,{devices:Co,value:Po,onChange:To}),
|
|
40
|
+
/* @__PURE__ */ft(en,{label:io.bar.refresh,tip:io.bar.refreshTip,onClick:()=>{Ho.current=(()=>{const e=Uo?.document;if(!e)return null;const n=vi.findIndex(to),t=n>=0?n:vi.length;let o=null;for(let n=0;n<t;n++){const t=vi[n]?.props?.id;if(null==t)continue;const r=Tn(e,`[data-easel-block="${CSS.escape(String(t))}"]`);if(!r)continue;const i=r.getBoundingClientRect().top;i<=4&&(null===o||i>o.offset)&&(o={id:String(t),offset:i})}if(!o){const e=Ut?.props?.id??vi[0]?.props?.id;null!=e&&(o={id:String(e),offset:0})}return o})(),Vo(e=>e+1)},children:/* @__PURE__ */ft(lt,{})}),gr.barView?.()]}),
|
|
41
|
+
/* @__PURE__ */ht(nn,{kind:"right",style:{minWidth:300},children:[
|
|
42
|
+
/* @__PURE__ */ft(b,{input:Ko,words:io.saveStatus}),Bn?/* @__PURE__ */ft(Bn,{}):null,gr.barLead?.(),gr.barTrail?.(),gr.mainAction||!gr.barMain?/* @__PURE__ */ft(k,{input:Ko,action:_r,readOnly:Boolean(jt),saveSwitch:Lt,onToggleAutoSave:Pt,onSaveNow:Qo,bar:io.bar,words:io.saveStatus}):gr.barMain()]})]}),
|
|
43
|
+
/* @__PURE__ */ft(v,{}),
|
|
44
|
+
/* @__PURE__ */ht("div",{className:"sf-body",children:[xo?/* @__PURE__ */ht(mt,{children:[
|
|
45
|
+
/* @__PURE__ */ht("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left","aria-label":io.leftPanel,children:[
|
|
46
|
+
/* @__PURE__ */ht("div",{className:"es-paneltabs es-paneltabs--with-hide",children:[
|
|
47
|
+
/* @__PURE__ */ft(B,{side:"left",onHide:hi}),
|
|
48
|
+
/* @__PURE__ */ft("span",{className:"es-paneltabs-divider","aria-hidden":"true"}),
|
|
49
|
+
/* @__PURE__ */ft(Kn,{variant:"underline",block:!0,"aria-label":io.bar.views,value:md.value,onChange:md.press,items:md.items})]}),Zo?/* @__PURE__ */ft(C,{at:er?{label:(e=>{const n=ds(e.zone);if(n)return io.add.addingTo({name:Ir.rowName?yl(n,!0):Ti(n.type)});if(e.zone===Ie){const n=vi[e.index];return n&&!to(n)?io.add.addingBefore({name:yl(n,!0)}):io.add.addingAtEnd}const t=us(e.zone);return t?io.add.addingTo({name:t.parentName}):io.add.addingHere})(er),onClear:()=>nr(null)}:void 0,placeBlocks:er&&er.zone!==Ie?us(er.zone)?.choices:void 0,canTake:er?e=>{if(!er)return null;const n={...En(er.zone),index:er.index};if(hs(e,n))return null;if("shared"===e.kind&&er.zone===Ie&&!Xt.shared?.nodeOf(e.section))return io.shared.alreadyHere;const t=ds(er.zone);if(t)return io.add.notInside({name:yl(t,!0)});if(er.zone===Ie)return io.add.onlySections;const o=us(er.zone);return o?io.add.notInside({name:o.parentName}):io.add.onlySections}:void 0,onPick:er?e=>{if(!er)return;const n={...En(er.zone),index:er.index};hs(e,n)&&(ms(e,n),gl())}:void 0,itemFor:e=>({id:`new:${e.kind}:${Ct(e)}`,zone:"",index:-1,type:"template"===e.kind?e.template.node.type:"shared"===e.kind?e.section.node.type:Ct(e),add:e}),session:ys,siteWide:gr.addPanelRow?.(gl),onClose:gl,readOnly:Boolean(jt)}):gd?gd.panel({onHide:hi,notify:Zr}):/* @__PURE__ */ht(mt,{children:[
|
|
50
|
+
/* @__PURE__ */ft(N,{icon:/* @__PURE__ */ft(ge,{}),title:io.layers,context:ho,actions:/* @__PURE__ */ht(mt,{children:[!jt&&/* @__PURE__ */ft(on,{label:io.add.title,onClick:()=>hl(null),children:/* @__PURE__ */ft(st,{size:15})}),
|
|
51
|
+
/* @__PURE__ */ft(on,{label:os?io.expandAll:io.collapseAll,title:0===ts.length?io.nothingToFold:void 0,disabled:0===ts.length,onClick:()=>Fr(e=>{const n=new Set(ts);return os?new Set([...e].filter(e=>!n.has(e))):/* @__PURE__ */new Set([...e,...ts])}),children:/* @__PURE__ */ft(St,{expand:os})})]})}),
|
|
52
|
+
/* @__PURE__ */ht(Ue,{className:"sf-tree sf-scroll",words:lo,children:[ql&&/* @__PURE__ */ht(mt,{children:[!Yl&&/* @__PURE__ */ft(Je,{children:io.header}),sd(ql)]}),Ft&&!(Yl&&ql)&&/* @__PURE__ */ht(mt,{children:[!Yl&&/* @__PURE__ */ft(Je,{children:io.header}),!oo&&/* @__PURE__ */ft(He,{words:lo,icon:/* @__PURE__ */ft(Br,{type:"header",size:13}),name:io.header,badge:Zl?void 0:_l,shared:Zl,onSelect:yi,selected:rr.kind===eo?.kind,rowProps:{onClick:vl(yi)}})]}),Wl&&!(Yl&&ql)&&Sd(Wl,Hl,"header"),!yd&&/* @__PURE__ */ft(Je,{children:vd}),yd?/* @__PURE__ */ht(mt,{children:[
|
|
53
|
+
/* @__PURE__ */ft(He,{words:lo,icon:null,name:vd,fold:{open:!bd,label:vd,onToggle:()=>Xr(It)}}),!bd&&/* @__PURE__ */ft(We,{children:kd})]}):kd,Ft&&!Yl&&/* @__PURE__ */ft(Je,{children:io.footer}),Vl&&!(Yl&&es)&&Sd(Vl,Fl,"footer"),es&&sd(es),gr.treeFoot?.()]})]})]}),
|
|
54
|
+
/* @__PURE__ */ft(rn,{side:"left",width:Vr.left,min:sn.left,max:ln,defaultWidth:h.left,label:io.resizeLeftPanel,onResize:Ur})]}):/* @__PURE__ */ft(P,{side:"left",onShow:hi}),
|
|
55
|
+
/* @__PURE__ */ht("div",{ref:ei,className:"sf-center sf-scroll","data-sf-canvas-head":ii?"":void 0,style:{overflowX:pi?"auto":"hidden",overflowY:"hidden"},children:[ii&&/* @__PURE__ */ft("div",{ref:li,className:"sf-canvas-head",children:/* @__PURE__ */ft(ii,{device:Po})}),
|
|
56
|
+
/* @__PURE__ */ht("div",{className:"sf-frame-scaler",style:ui,children:[
|
|
57
|
+
/* @__PURE__ */ft("div",{className:"sf-frame "+(Po===Bo?"":`sf-frame--${Po}`),style:fi,children:/* @__PURE__ */ht("div",{className:"sf-preview-host",children:[
|
|
58
|
+
/* @__PURE__ */ft(Fe.Provider,{value:Jl,children:/* @__PURE__ */ft(Ve.Provider,{value:Ql,children:/* @__PURE__ */ft(mo,{},Fo)})}),
|
|
59
|
+
/* @__PURE__ */ft(gn,{canvas:Uo,session:ys,model:Hs,measure:Us,canDrop:Ys,onDrop:Gs,choose:Is,tag:zs,onPick:Qs,dropOn:Zs?{accepts:(e,n)=>{if(!e.media||!Zs||n.item.rung)return!1;const t=Ln(Vt.data,ki,n.item.id);return null!==t&&Zs.takes(t.node)},onDrop:(e,n)=>(e=>{const n=ed();n&&Zs&&td(n).then(n=>{n&&od(n,e.item.id)})})(n),label:()=>io.canvasReplaceImage}:void 0,onZoneAdd:rd,onSeamAdd:rd,zoneAddLabel:io.canvasAddBlock,words:so.canvas,readOnly:Boolean(jt),revision:Vt.data}),tr.length>0&&!Jo&&/* @__PURE__ */ft("div",{className:"sf-preview-gaps",children:tr.map(e=>
|
|
60
|
+
/* @__PURE__ */ft(yn,{index:e.index,label:io.addSectionHere,onInsert:()=>hl(e.index),className:void 0===e.height?"sf-preview-gap":"sf-preview-gap sf-preview-gap--tight",style:void 0===e.height?{top:e.top}:{top:e.top,height:e.height}},e.index))})]})}),$s?/* @__PURE__ */ft(kt,{canvas:Uo,tabs:Es,onSelect:Wi}):null]})]}),zo?/* @__PURE__ */ht(mt,{children:[Nn?
|
|
61
|
+
/* @__PURE__ */ft("div",{className:"es-sidepanel es-sidepanel--right","data-es-host-panel":"",children:Nn}):/* @__PURE__ */ft(mt,{children:/* @__PURE__ */ft(u,{value:{selectChild:Ll,addChild:Al,childRowName:Ki,blockRowName:rs},children:/* @__PURE__ */ft(go,{mode:rr,onOpenWebsiteSettings:gr.openSettings??(()=>{}),onOpenSiteStyles:gr.openStyles,onOpenPageStyles:gr.openPageStyles,onSelectNode:$r,onNotify:Zr,onHidePanel:mi,nodeActions:Ut?Oe(Yt,Ut.type):Ot})})}),
|
|
62
|
+
/* @__PURE__ */ft(rn,{side:"right",width:Vr.right,min:sn.right,max:ln,defaultWidth:h.right,label:io.resizeSettingsPanel,onResize:Jr})]}):
|
|
63
|
+
/* @__PURE__ */ft(P,{side:"right",onShow:mi})]}),ol.menu,
|
|
64
|
+
/* @__PURE__ */ft(ie,{}),Ii?/* @__PURE__ */ft(yt,{name:Ii.name,onMake:e=>(async(e,n)=>{const t=vi.find(n=>String(n.props.id)===e),o=Xt.shared;if(!t||!o)return;let r;try{r=await O(Ci).create(n,t)}catch{return void Zr(io.shared.makeFailed,"error")}o.adopt(t,r),Oi(null)})(Ii.id,e),onCancel:()=>Oi(null)}):null]})}))}export{Nt as ScreenChrome};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styleFieldBuilders as e,keptByRow as s}from"./chunk-ZWQKRSOI.js";import{boxFieldBuilders as o,PHONE_KEY_ACCESS as l,phoneTwinFields as r,section as i}from"./chunk-DX7UGNIP.js";import{deviceField as t}from"./chunk-BLE3U2GS.js";import{BUTTON_STYLE_KEYS as c,BUTTON_PAD_KEYS as n}from"./chunk-PLTTPHK5.js";import{TextColorIcon as u,GroundIcon as d}from"efficient-shell/icons/efficient";import{jsx as f}from"react/jsx-runtime";function a(a){const p=o(a.say),y=e(a.say),m=c,F=a.style,k=a.phone??l;return{...a.padding&&{_dSize:i("Size"),...p.sidesPaddingFields({keys:n,group:!1,...a.padding})},_dDesign:i("Design"),[m.fill]:y.colourField({key:m.fill,access:F,label:"Fill color",icon:/* @__PURE__ */f(d,{}),useFollows:a.follows.useFill,usePresets:a.usePresets,resetTo:a.resetTo,opacity:{key:m.fillOpacity,useUnset:a.follows.useFillOpacity}}),[m.fillOpacity]:s(m.fill),[m.border]:y.borderField({key:m.border,access:F,useFollows:a.follows.useBorder}),[m.text]:y.colourField({key:m.text,access:F,label:"Text color",icon:/* @__PURE__ */f(u,{}),useFollows:a.follows.useText,usePresets:a.usePresets,resetTo:a.resetTo}),[m.corners]:y.cornersField({key:m.corners,access:F,sidesKey:m.cornerSides,useFollows:a.follows.useCorners,useFollowsSides:a.follows.useCornerSides}),[m.cornerSides]:s(m.corners),_dLayout:i("Layout"),...r("align",p.blockAlignmentField({phone:!0},""),k),align:t("desktop",p.blockAlignmentField())}}export{a as buttonFieldSet};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useAccessPatch as e,FLAT_ACCESS as o,onDesktopWords as r,useAccessValue as t}from"./chunk-
|
|
2
|
-
return w(n,{label:s(t.label),icon:t.icon,hint:t.hint,value:B,onChange:e=>b(""===e?
|
|
3
|
-
return w(h,{label:o("Border"),icon:/* @__PURE__ */w(b,{}),action:d?/* @__PURE__ */w(i,{label:o("Border"),changed:f,detail:r(o,`${p}px`),disabled:t.readOnly,onReset:()=>c(void 0)}):void 0,children:/* @__PURE__ */w(l,{label:o("Border"),value:a,each:!1,onChange:o=>c(function(e){const o=Object.fromEntries(Object.entries(e).filter(([,e])=>null!=e&&""!==e));return Object.keys(o).length?o:void 0}(e.styles?{width:o.width,color:o.color,style:o.style}:{width:o.width,color:o.color})),placeholder:{sides:{top:p,right:p,bottom:p,left:p},style:u.style??"solid",color:y},presets:[y],words:m,styles:e.styles??!1,max:20,readOnly:t.readOnly})})}var A=40,
|
|
4
|
-
return w(h,{label:t("Corners"),icon:/* @__PURE__ */w(m,{}),changed:null!==C||Array.isArray(b),action:/* @__PURE__ */w(i,{label:t("Corners"),changed:null!==C||Array.isArray(b),detail:`${c}px`,onReset:()=>Array.isArray(b)?v([[r.key,j],[r.sidesKey,j]]):y(j),words:n}),children:/* @__PURE__ */w(s,{label:t("Corners"),value:O,corners:A,onChange:e=>{const o=u.filter(o=>e.includes(o)),r=o.length===B.length&&o.every(e=>B.includes(e));g(r?j:o)},radius:C,onRadiusChange:e=>y(e??j),radiusMin:0,radiusMax:40,radiusStep:r.step??1,radiusPlaceholder:String(c),disabled:l.readOnly})})}function
|
|
1
|
+
import{useAccessPatch as e,FLAT_ACCESS as o,onDesktopWords as r,useAccessValue as t}from"./chunk-DX7UGNIP.js";import{CornersInput as s,BorderInput as l,SettingsColour as n}from"./chunk-CLAADE4J.js";import{SettingsDefaultReset as i}from"./chunk-2T22IY3J.js";import{noControlField as c,NoControlMark as a}from"./chunk-22I55W37.js";import{normalizeCornerSides as d,CORNER_SIDES as u}from"./chunk-PLTTPHK5.js";import{DEFAULT_PANEL_WORDS as p,DEFAULT_COLOUR_ROW_WORDS as y}from"./chunk-56ID6FKZ.js";import{SettingsField as h}from"./chunk-MIX7EGRG.js";import{useWords as f}from"./chunk-MFIRYGHW.js";import{CornerIcon as m,BorderAllIcon as b}from"efficient-shell/icons/efficient";import{jsx as w}from"react/jsx-runtime";var g=e=>e;function v(e,o){const r=o.twinAccess;return r?{key:e.key,access:r,ownField:r.ownField}:e}function k(e,r){const s=!e.access||e.ownField?{value:r.value,onChange:r.onChange}:void 0;return t(e.access??o,e.key,s)}function F(e,r){return t(e.access??o,r??"")}function j(e){return{...c({type:"custom",render:()=>/* @__PURE__ */w(a,{})},"always"),reachedBy:e}}function C({o:t,say:s,props:l}){const i=f("colourRow",y),c=f("panel",p),a=t.useFollows(),d=t.usePresets?.(),u=t.opacity?.useUnset?.()??100,h=v(t,l),[m,b]=k(h,l),[g,j]=F(h,t.opacity?.key),C=e(h.access??o),B="string"==typeof m?m:"",O="number"==typeof g,A="follows"in l,T=(A&&"string"==typeof l.follows&&""!==l.follows?l.follows:void 0)??a,x=t.access||A?void 0:"";/* @__PURE__ */
|
|
2
|
+
return w(n,{label:s(t.label),icon:t.icon,hint:t.hint,value:B,onChange:e=>b(""===e?x:e),inherited:T,presets:d,changed:""!==B||O,onReset:()=>{O&&t.opacity?C([[t.key,x],[t.opacity.key,void 0]]):b(x)},resetTo:A?r(s,T.toUpperCase()):t.resetTo?t.resetTo(a.toUpperCase()):a.toUpperCase(),...t.opacity?{opacity:O?g:u,onOpacityChange:e=>j(e)}:{},readOnly:l.readOnly,words:i,resetWords:c})}var B=20;function O({o:e,say:o,props:t}){const s=e.useFollows(),[n,c]=k(v(e,t),t),a=n&&"object"==typeof n?n:{},d="follows"in t,u=d&&t.follows&&"object"==typeof t.follows?t.follows:{},p="number"==typeof u.width?u.width:s.width,y="string"==typeof u.color&&""!==u.color?u.color:s.color,f=Object.keys(a).length>0,m={width:o("Border width"),sides:{top:o("Border top"),right:o("Border right"),bottom:o("Border bottom"),left:o("Border left")},style:o("Border style"),styles:{solid:o("Solid"),dashed:o("Dashed"),dotted:o("Dotted")},color:o("Border color"),unit:"px"};/* @__PURE__ */
|
|
3
|
+
return w(h,{label:o("Border"),icon:/* @__PURE__ */w(b,{}),action:d?/* @__PURE__ */w(i,{label:o("Border"),changed:f,detail:r(o,`${p}px`),disabled:t.readOnly,onReset:()=>c(void 0)}):void 0,children:/* @__PURE__ */w(l,{label:o("Border"),value:a,each:!1,onChange:o=>c(function(e){const o=Object.fromEntries(Object.entries(e).filter(([,e])=>null!=e&&""!==e));return Object.keys(o).length?o:void 0}(e.styles?{width:o.width,color:o.color,style:o.style}:{width:o.width,color:o.color})),placeholder:{sides:{top:p,right:p,bottom:p,left:p},style:u.style??"solid",color:y},presets:[y],words:m,styles:e.styles??!1,max:20,readOnly:t.readOnly})})}var A=40,T=()=>null;function x({o:r,say:t,props:l}){const n=f("panel",p),c=r.useFollows(),[a,y]=k(r,l),[b,g]=F(r,r.sidesKey),v=e(r.access??o),j=r.access?void 0:null,C="number"==typeof a&&Number.isFinite(a)?a:null,B=d((r.useFollowsSides??T)())??[...u],O=d(b)??B,A=[{value:"tl",label:t("Top left")},{value:"tr",label:t("Top right")},{value:"bl",label:t("Bottom left")},{value:"br",label:t("Bottom right")}];/* @__PURE__ */
|
|
4
|
+
return w(h,{label:t("Corners"),icon:/* @__PURE__ */w(m,{}),changed:null!==C||Array.isArray(b),action:/* @__PURE__ */w(i,{label:t("Corners"),changed:null!==C||Array.isArray(b),detail:`${c}px`,onReset:()=>Array.isArray(b)?v([[r.key,j],[r.sidesKey,j]]):y(j),words:n}),children:/* @__PURE__ */w(s,{label:t("Corners"),value:O,corners:A,onChange:e=>{const o=u.filter(o=>e.includes(o)),r=o.length===B.length&&o.every(e=>B.includes(e));g(r?j:o)},radius:C,onRadiusChange:e=>y(e??j),radiusMin:0,radiusMax:40,radiusStep:r.step??1,radiusPlaceholder:String(c),disabled:l.readOnly})})}function R(e=g){return{colourField:o=>({type:"custom",render:r=>/* @__PURE__ */w(C,{o:o,say:e,props:r})}),borderField:o=>({type:"custom",render:r=>/* @__PURE__ */w(O,{o:o,say:e,props:r})}),cornersField:o=>({type:"custom",render:r=>/* @__PURE__ */w(x,{o:o,say:e,props:r})})}}var{colourField:I,borderField:D,cornersField:P}=R();export{B as BORDER_WIDTH_MAX,A as CORNER_RADIUS_MAX,D as borderField,I as colourField,P as cornersField,j as keptByRow,R as styleFieldBuilders};
|
package/dist/easel/index.d.ts
CHANGED
|
@@ -663,21 +663,59 @@ interface SelectedFields {
|
|
|
663
663
|
node: ResolvableItem;
|
|
664
664
|
/** Its fields, resolved as the old library resolved them (`resolveFields` with the old library's params, parent included). */
|
|
665
665
|
fields: InspectorFields;
|
|
666
|
-
/** What the fields show. */
|
|
666
|
+
/** What the fields show: the stored props, with the writes not landed yet on top. */
|
|
667
667
|
values: Record<string, unknown>;
|
|
668
668
|
/** The block's (or the root's) `edit` permission is off. */
|
|
669
669
|
readOnly: boolean;
|
|
670
|
-
/** Write one field: `resolveData` as the old library ran it, then ONE replace — one undo step. */
|
|
670
|
+
/** Write one field: `resolveData` as the old library ran it, then ONE replace — one undo step. The value goes on the latest node by what it changed from `values`. */
|
|
671
671
|
onChange: (name: string, value: unknown) => void;
|
|
672
672
|
/**
|
|
673
673
|
* Write SEVERAL fields at once: one merged props object, `resolveData` once,
|
|
674
674
|
* ONE replace — one undo step. For a row that sets more than one prop in one
|
|
675
|
-
* click (a padding pair's left AND right).
|
|
676
|
-
*
|
|
677
|
-
*
|
|
675
|
+
* click (a padding pair's left AND right).
|
|
676
|
+
*
|
|
677
|
+
* One node's writes run one at a time, and the writes made while one runs become
|
|
678
|
+
* the next write, in the order they were made. A write that finds the node changed
|
|
679
|
+
* by anything else while its resolver ran runs again on the latest node, and one
|
|
680
|
+
* whose resolver does not answer in `WRITE_WAIT_MS` lands without the answer. A
|
|
681
|
+
* patch built from the node's own value (one key of a stored object, a list with
|
|
682
|
+
* one item changed) must be a function with no side effect: it is called with the
|
|
683
|
+
* latest props on each run and to show the write in `values`, and `null` writes
|
|
684
|
+
* nothing. A plain record replaces those keys with what the caller read.
|
|
678
685
|
*/
|
|
679
|
-
onChangeMany: (patch:
|
|
686
|
+
onChangeMany: (patch: FieldsPatch) => void;
|
|
680
687
|
}
|
|
688
|
+
/** What a write changes: the props, or a function of the node's latest props. */
|
|
689
|
+
type FieldsPatch = Record<string, unknown> | ((latest: Record<string, unknown>) => Record<string, unknown> | null);
|
|
690
|
+
/** Resolves when no node of this easel has a write that has not landed. For a press
|
|
691
|
+
* that reads the document (Publish): a waiting write is not in the store yet. */
|
|
692
|
+
declare function writesSettled(easel: object): Promise<void>;
|
|
693
|
+
/**
|
|
694
|
+
* A press that reads the document (Publish), run once every write of this easel has
|
|
695
|
+
* landed AND this component has rendered since: a host that reads the document of its
|
|
696
|
+
* last render (a ref set in render) then sees what landed, not the render before it.
|
|
697
|
+
* The screen passes its main action and Save now through it ({@link useSettledAction});
|
|
698
|
+
* a layer's own `barMain` goes around the screen and must wait itself. A press
|
|
699
|
+
* made while one waits is ignored, and `waiting` is true until the press runs, so the
|
|
700
|
+
* button is busy. Pass a press that reads the latest action, not the pressed render's.
|
|
701
|
+
* A press pending when the component unmounts does not run.
|
|
702
|
+
*/
|
|
703
|
+
declare function useSettledPress(): {
|
|
704
|
+
run: (press: () => void) => void;
|
|
705
|
+
waiting: boolean;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* `action` with its press run by {@link useSettledPress}: busy while it waits, and
|
|
709
|
+
* after the wait the press of the latest render's action runs, not the pressed
|
|
710
|
+
* one's (its closure may hold values from before the writes landed). The screen
|
|
711
|
+
* passes every main action and Save now through it.
|
|
712
|
+
*/
|
|
713
|
+
declare function useSettledAction<A extends {
|
|
714
|
+
onPress: () => void;
|
|
715
|
+
busy?: boolean;
|
|
716
|
+
}>(action: A): A;
|
|
717
|
+
/** Calls `listener` each time a write lands without its resolver's answer. */
|
|
718
|
+
declare function subscribeLateWrites(easel: object, listener: () => void): () => void;
|
|
681
719
|
/**
|
|
682
720
|
* The settings panel's host: the selected node's fields and the write that
|
|
683
721
|
* changes one — what `EmailFields` and `SiteFields` each did against the old library,
|
|
@@ -760,4 +798,4 @@ declare function bindUndoKeys(doc: Document, easel: Pick<Easel, 'undo' | 'redo'>
|
|
|
760
798
|
leaveTyping?: boolean;
|
|
761
799
|
}): () => void;
|
|
762
800
|
|
|
763
|
-
export { CHROME_ATTR, type CanvasChrome, CanvasChromeContext, type CanvasCopyPlace, type CanvasCopyText, CanvasFrame, type CanvasFrameProps, type CanvasOverlay, type CanvasPart, type CanvasParts, CanvasPartsContext, CanvasPassThroughContext, CanvasSharedContext, type CanvasSlotProps, type CanvasTyping, type CanvasTypingState, type CanvasTypingTarget, DEFAULT_UI, type Easel, EaselAction, EaselCanvas, type EaselCanvasProps, EaselConfig, EaselCore, type EaselOptions, EaselProvider, type EaselProviderProps, EaselUi, EaselView, EditDocument, NodeSelection, Permissions, RepeatCopy, RootHostScope, type SelectedFields, bindUndoKeys, createEasel, createUseEasel, partHasOwnBox, recordsByDefault, reduce, uiView, useEasel, useEaselApi, useEaselNodeOps, useRootFields, useSelectedFields, useSelectedHost, validSelection };
|
|
801
|
+
export { CHROME_ATTR, type CanvasChrome, CanvasChromeContext, type CanvasCopyPlace, type CanvasCopyText, CanvasFrame, type CanvasFrameProps, type CanvasOverlay, type CanvasPart, type CanvasParts, CanvasPartsContext, CanvasPassThroughContext, CanvasSharedContext, type CanvasSlotProps, type CanvasTyping, type CanvasTypingState, type CanvasTypingTarget, DEFAULT_UI, type Easel, EaselAction, EaselCanvas, type EaselCanvasProps, EaselConfig, EaselCore, type EaselOptions, EaselProvider, type EaselProviderProps, EaselUi, EaselView, EditDocument, type FieldsPatch, NodeSelection, Permissions, RepeatCopy, RootHostScope, type SelectedFields, bindUndoKeys, createEasel, createUseEasel, partHasOwnBox, recordsByDefault, reduce, subscribeLateWrites, uiView, useEasel, useEaselApi, useEaselNodeOps, useRootFields, useSelectedFields, useSelectedHost, useSettledAction, useSettledPress, validSelection, writesSettled };
|
package/dist/easel/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CHROME_ATTR,CanvasChromeContext,CanvasFrame,CanvasPartsContext,CanvasPassThroughContext,CanvasSharedContext,DEFAULT_UI,EaselCanvas,EaselProvider,EditDocument,RootHostScope,bindUndoKeys,createEasel,createUseEasel,partHasOwnBox,recordsByDefault,reduce,uiView,useEasel,useEaselApi,useEaselNodeOps,useRootFields,useSelectedFields,useSelectedHost,validSelection}from"../chunk-
|
|
1
|
+
export{CHROME_ATTR,CanvasChromeContext,CanvasFrame,CanvasPartsContext,CanvasPassThroughContext,CanvasSharedContext,DEFAULT_UI,EaselCanvas,EaselProvider,EditDocument,RootHostScope,bindUndoKeys,createEasel,createUseEasel,partHasOwnBox,recordsByDefault,reduce,subscribeLateWrites,uiView,useEasel,useEaselApi,useEaselNodeOps,useRootFields,useSelectedFields,useSelectedHost,useSettledAction,useSettledPress,validSelection,writesSettled}from"../chunk-ITRBDUAM.js";export{repeatCopyAt}from"../chunk-JQQFB7EZ.js";import"../chunk-TBY3DFKS.js";import"../chunk-K53PQAMP.js";import"../chunk-QTHQPJWA.js";import"../chunk-HZSZT3BE.js";import"../chunk-PMRN5Z3T.js";import"../chunk-MFIRYGHW.js";import"../chunk-TOKMFZPB.js";import"../chunk-FR7EEKFF.js";import"../chunk-7UFKEX72.js";import"../chunk-EUFDQ4KL.js";import"../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AddBlockRow as default}from"../../chunk-
|
|
1
|
+
export{AddBlockRow as default}from"../../chunk-FDIGXBUW.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{blockKey,AddSidePanel as default,presetKey,sectionKey,sharedKey,templateKey}from"../../chunk-
|
|
1
|
+
export{blockKey,AddSidePanel as default,presetKey,sectionKey,sharedKey,templateKey}from"../../chunk-KR2JYQLM.js";import"../../chunk-GDO4QJ4G.js";import"../../chunk-IZGFJWH4.js";import"../../chunk-N7E6264U.js";import"../../chunk-N3MJOHAG.js";import"../../chunk-SBVIW3KJ.js";import"../../chunk-UMDQ6CLQ.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-VBEVZZTV.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-SQTVXE5D.js";import"../../chunk-TQ5Y6S2X.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-
|
|
1
|
+
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-H4TUOPI7.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-CWELHADJ.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-P5VYGWYO.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PageEditGuardNotices as default}from"../../chunk-
|
|
1
|
+
export{PageEditGuardNotices as default}from"../../chunk-MGEXTIZH.js";import"../../chunk-CPIWSFGR.js";import"../../chunk-QZJKWKGH.js";import"../../chunk-ERR437B5.js";import"../../chunk-JIP5JNRB.js";import"../../chunk-GR3XRILS.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6ATIYLUL.js";import"../../chunk-KO47WAWR.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-NDRZP6YR.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-VBEVZZTV.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenChrome as default}from"../../chunk-
|
|
1
|
+
export{ScreenChrome as default}from"../../chunk-XE5LSM3G.js";import"../../chunk-UMBNBCL4.js";import"../../chunk-OXZDSOZV.js";import"../../chunk-7OCEPOEJ.js";import"../../chunk-U4TG43PD.js";import"../../chunk-5XL2RXFU.js";import"../../chunk-3QB2ZQXK.js";import"../../chunk-BLE3U2GS.js";import"../../chunk-22I55W37.js";import"../../chunk-LUOY3A3Q.js";import"../../chunk-JREIRJVH.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-6EDVZBUO.js";import"../../chunk-QYQG36CI.js";import"../../chunk-DTVOOBD4.js";import"../../chunk-MGEXTIZH.js";import"../../chunk-PVBDKBJB.js";import"../../chunk-RKTF5XLP.js";import"../../chunk-CPIWSFGR.js";import"../../chunk-QZJKWKGH.js";import"../../chunk-ERR437B5.js";import"../../chunk-JIP5JNRB.js";import"../../chunk-GR3XRILS.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6ATIYLUL.js";import"../../chunk-KO47WAWR.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-5545A3PC.js";import"../../chunk-KR2JYQLM.js";import"../../chunk-GDO4QJ4G.js";import"../../chunk-IZGFJWH4.js";import"../../chunk-N7E6264U.js";import"../../chunk-N3MJOHAG.js";import"../../chunk-SBVIW3KJ.js";import"../../chunk-UMDQ6CLQ.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-H4TUOPI7.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-XFYFKITX.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-CWELHADJ.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-5NHQ452C.js";import"../../chunk-AJ2SUSET.js";import"../../chunk-6UAEFOJ4.js";import"../../chunk-ANPOR6EY.js";import"../../chunk-R4AUZVA3.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-P5VYGWYO.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-NDRZP6YR.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-VBEVZZTV.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-SQTVXE5D.js";import"../../chunk-TQ5Y6S2X.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-BSPCSC45.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-
|
|
1
|
+
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-CPIWSFGR.js";import"../../chunk-QZJKWKGH.js";import"../../chunk-ERR437B5.js";import"../../chunk-JIP5JNRB.js";import"../../chunk-GR3XRILS.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6ATIYLUL.js";import"../../chunk-KO47WAWR.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-NDRZP6YR.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DocumentScreen,ScreenMount as default}from"../../chunk-
|
|
1
|
+
export{DocumentScreen,ScreenMount as default}from"../../chunk-QPZQFWS6.js";import"../../chunk-GXQCZJOP.js";import"../../chunk-6FOXOYXW.js";import"../../chunk-XE5LSM3G.js";import"../../chunk-UMBNBCL4.js";import"../../chunk-OXZDSOZV.js";import"../../chunk-7OCEPOEJ.js";import"../../chunk-U4TG43PD.js";import"../../chunk-5XL2RXFU.js";import"../../chunk-3QB2ZQXK.js";import"../../chunk-BLE3U2GS.js";import"../../chunk-22I55W37.js";import"../../chunk-LUOY3A3Q.js";import"../../chunk-JREIRJVH.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-6EDVZBUO.js";import"../../chunk-QYQG36CI.js";import"../../chunk-DTVOOBD4.js";import"../../chunk-MGEXTIZH.js";import"../../chunk-PVBDKBJB.js";import"../../chunk-RKTF5XLP.js";import"../../chunk-CPIWSFGR.js";import"../../chunk-QZJKWKGH.js";import"../../chunk-ERR437B5.js";import"../../chunk-JIP5JNRB.js";import"../../chunk-GR3XRILS.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6ATIYLUL.js";import"../../chunk-KO47WAWR.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-5545A3PC.js";import"../../chunk-KR2JYQLM.js";import"../../chunk-GDO4QJ4G.js";import"../../chunk-IZGFJWH4.js";import"../../chunk-N7E6264U.js";import"../../chunk-N3MJOHAG.js";import"../../chunk-SBVIW3KJ.js";import"../../chunk-UMDQ6CLQ.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-H4TUOPI7.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-XFYFKITX.js";import"../../chunk-C4TJN6GR.js";import"../../chunk-CWELHADJ.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-5NHQ452C.js";import"../../chunk-AJ2SUSET.js";import"../../chunk-6UAEFOJ4.js";import"../../chunk-ANPOR6EY.js";import"../../chunk-R4AUZVA3.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-P5VYGWYO.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-NDRZP6YR.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-VBEVZZTV.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-SQTVXE5D.js";import"../../chunk-TQ5Y6S2X.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-BSPCSC45.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenStoreProvider as default}from"../../chunk-
|
|
1
|
+
export{ScreenStoreProvider as default}from"../../chunk-6FOXOYXW.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import{AddBlockRow as e}from"../../chunk-
|
|
2
|
-
return
|
|
3
|
-
return
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
return
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
1
|
+
import{AddBlockRow as e}from"../../chunk-FDIGXBUW.js";import{scrollPreviewToSection as n,gotoPreviewSlide as o}from"../../chunk-LUOY3A3Q.js";import{useEaselUndoKeys as r}from"../../chunk-JREIRJVH.js";import{SlotChildActionsProvider as t}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as s}from"../../chunk-6EDVZBUO.js";import{usePartBridge as i}from"../../chunk-QYQG36CI.js";import{useSectionOps as c}from"../../chunk-DTVOOBD4.js";import{useScreenDocument as p}from"../../chunk-CPIWSFGR.js";import"../../chunk-QZJKWKGH.js";import"../../chunk-ERR437B5.js";import"../../chunk-JIP5JNRB.js";import"../../chunk-GR3XRILS.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6ATIYLUL.js";import"../../chunk-KO47WAWR.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import{SELECTION_MODE as l,useScreenPinned as m,useScreenCanvasFrame as d,useScreenInspectorPanel as u,useScreenPickFollowsSelection as a,sameInspectorMode as h,useStandaloneScreenBridges as k,useScreenBlockLook as j,useScreenBlockRules as f,isSelectionMode as S,shownChildSlotsOf as C}from"../../chunk-CLJ3KXYF.js";import{MediaPopup as y}from"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import{DEFAULT_SCREEN_WORDS as N}from"../../chunk-C4TJN6GR.js";import{slotChildRowName as R}from"../../chunk-5NHQ452C.js";import"../../chunk-AJ2SUSET.js";import"../../chunk-6UAEFOJ4.js";import"../../chunk-ANPOR6EY.js";import"../../chunk-R4AUZVA3.js";import{slotFieldsOf as E,nestsInTree as A}from"../../chunk-TCAAOYQY.js";import{useEasel as x}from"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import{LayersTree as Q,Subtree as I,TreeRow as P,TreeRowAction as T,TreeSeam as F}from"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import{DEFAULT_TREE_WORDS as B}from"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-NDRZP6YR.js";import{DEFAULT_SAVE_WORDS as D,saveIndicator as Y}from"../../chunk-H6DDIBQ4.js";import{SaveState as g,panelWidthVars as O}from"../../chunk-VBEVZZTV.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-YYD257TD.js";import"../../chunk-RE4LP46F.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import{useWords as W}from"../../chunk-MFIRYGHW.js";import"../../chunk-SQTVXE5D.js";import"../../chunk-TQ5Y6S2X.js";import{useTreeDrag as v}from"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import{zoneKey as M,parseZoneKey as b}from"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";import{useState as z,useRef as w,useEffect as V,useCallback as X,Fragment as G}from"react";import{Tooltip as J}from"efficient-shell/ui";import{TrashIcon as K}from"efficient-shell/icons/efficient";import{jsxs as Z,jsx as H,Fragment as L}from"react/jsx-runtime";var U=e=>n=>{n.target.closest("button, input")||e()},$={rowClick:U};function q(){const{saveState:q,readOnly:_,readOnlyReason:ee=null}=p(),ne=c(),{appState:oe,selectedItem:re,config:te}=x(e=>e),[se,ie]=z(l),ce=W("screen",N),pe=W("tree",B),le=W("save",D),{first:me,last:de,panelOf:ue}=m(),ae=ue(me),he=d(),ke=u(),je=oe.data.content?.[0]??null,fe=je?.props.id??null,Se=je?.type===me,Ce=je?.type===de,ye=w(null),Ne=w(null);r(Ne),a(re?.props.id),V(()=>{fe&&ye.current!==fe&&(ye.current=fe,Se?ie(ae??l):re||ne.select({index:0}))},[fe,re,ne,Se]);const Re=X(e=>ie(n=>h(n,e)?n:e),[]),Ee=k({kind:se.kind,mode:se,open:Re,show:e=>ie(e),reveal:()=>{},select:(e,n)=>{ie(e=>h(e,n)?e:n),ne.select(e)}}),{selectNode:Ae}=i({mode:se,setMode:ie,onOpenPart:n}),xe=j(),{labelAtLevel:Qe,Icon:Ie}=xe,{canAddTo:Pe}=f(),Te=e=>Qe(e,"block",te.components[e]?.label??e),Fe=e=>Qe(e,"section",Te(e)),Be=!Se&&S(se)&&re?.props.id===fe,De=je?Pe(je.type)?.spec??null:null,Ye=je&&De?`${je.props.id}:${De.slot}`:null,ge=je&&De&&Array.isArray(je.props[De.slot])?je.props[De.slot]:[],Oe=e=>R(e,Te,xe.plainText),We=(e,r)=>{je&&De&&Ye&&(ie(l),De.slider?(o(String(je.props.id),e),ne.select({index:e,zone:Ye}),n(String(je.props.id))):(ne.select({index:e,zone:Ye}),n(r)))},ve=()=>{if(!je||!De||!Ye)return;const e=ge.length;ne.insertComponent(Ye,De.childType,e),ie(l),De.slider?requestAnimationFrame(()=>{o(String(je.props.id),e),ne.select({index:e,zone:Ye})}):ne.select({index:e,zone:Ye})},Me=e=>E(te,e),be=e=>{const{parentId:n,slot:o}=b(e),r=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of Me(e.type)){const o=Array.isArray(e.props[n])?e.props[n]:[];for(const e of o){const n=r(e);if(n)return n}}return null},t=r(je)?.props[o];return Array.isArray(t)?t.length:0},ze=(e,n,o)=>{const r=Math.min(Math.max(o,0),be(e)),t=n<r?r-1:r;t!==n&&(ne.reorderComponent(e,n,t),ie(l),ne.select({index:t,zone:e}))},we=v({keyOf:e=>e.id,readOnly:Boolean(_),canDrop:(e,n)=>M(n)===e.zone&&n.index>=0&&n.index<=be(e.zone),onDrop:(e,n)=>ze(e.zone,e.index,n.index),onStep:(e,n)=>ze(e.zone,e.index,n<0?e.index-1:e.index+2)}),Ve=(e,n)=>/* @__PURE__ */H(F,{..._?{}:we.seam({place:{...b(e),index:n}})},`seam:${e}:${n}`),Xe=e=>xe.blockRowName(e,Te),Ge=(e,o,r)=>{ie(l),ne.select({index:o,zone:e}),n(r)},Je=(e,n,o)=>{ne.insertComponent(e,n,o),ie(l),ne.select({index:o,zone:e})},Ke=(n,o,r)=>/* @__PURE__ */H(e,{choices:r,onPick:e=>Je(n,e,o)}),Ze=(e,n)=>{const o=C(te,e);const r=Pe(e.type,void 0,void 0,{id:String(e.props.id??""),data:oe.data}),t=r?.choices??null,s="footer"===r?.source?Xe:Oe;/* @__PURE__ */
|
|
2
|
+
return Z(L,{children:[o.map(({child:e,zone:o,index:r})=>{const t=re?.props.id===e.props.id,i=A(te,e.type,n),c=s(e),p=String(e.props.id),m=()=>Ge(o,r,p),{rowProps:d,...u}=we.row({item:{id:p,zone:o,index:r},place:{...b(o),index:r}},{onClick:U(m)});/* @__PURE__ */
|
|
3
|
+
return Z(G,{children:[0===r&&Ve(o,0),
|
|
4
|
+
/* @__PURE__ */H(P,{words:pe,icon:/* @__PURE__ */H(Ie,{type:e.type,size:13}),name:c,selected:t,onSelect:m,...u,actions:/* @__PURE__ */H(T,{kind:"delete",label:ce.deleteNamed({name:c}),onClick:()=>{return e=o,n=r,ne.removeComponent(e,n),ie(l),void ne.select(null);var e,n},children:/* @__PURE__ */H(K,{size:13})}),rowProps:d}),i&&/* @__PURE__ */H(I,{children:Ze(e,n+1)}),Ve(o,r+1)]},String(e.props.id??`${o}-${r}`))}),r&&t?Ke(`${e.props.id}:${r.slot}`,o.length,t):null]})},He="HeroSingle"===je?.type,Le=Boolean(je)&&(Boolean(Pe(je.type))||Me(je.type).length>0),Ue=Boolean(je)&&(Boolean(De)||Ce||Se||He||Le);/* @__PURE__ */
|
|
5
|
+
return Z("div",{ref:Ne,className:"sf-editor es-editor",style:O(s),children:[
|
|
6
|
+
/* @__PURE__ */H("div",{className:"sf-section-bar",children:/* @__PURE__ */H(g,null!==ee?{tone:"off",label:ee,role:"status"}:{...Y(q,le),role:"status"})}),
|
|
7
|
+
/* @__PURE__ */Z("div",{className:"sf-body",children:[Ue&&je&&/* @__PURE__ */Z("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
|
|
8
|
+
/* @__PURE__ */H("div",{className:"sf-panel-head",children:/* @__PURE__ */H(J,{content:Se?ce.headerSettings:ce.sectionSettings({name:Fe(je.type)}),side:"bottom",children:/* @__PURE__ */H("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(Be?"is-selected":""),"aria-pressed":Be,onClick:()=>{Se?ie(ae??l):(ie(l),ne.select({index:0}))},children:Fe(je.type)})})}),
|
|
9
|
+
/* @__PURE__ */H(Q,{className:"sf-tree sf-scroll",rootProps:we.rootProps(),words:pe,children:/* @__PURE__ */H(I,{children:Se?
|
|
10
|
+
/* @__PURE__ */H(P,{words:pe,icon:/* @__PURE__ */H(Ie,{type:"header",size:13}),name:ce.headerSettings,selected:se.kind===ae?.kind,onSelect:()=>ie(ae??l),rowProps:{onClick:U(()=>ie(ae??l))}}):De?/* @__PURE__ */Z(L,{children:[ge.map((e,n)=>{const o=re?.props.id===e.props.id,r=Oe(e),t=String(e.props.id),s=()=>We(n,t),{rowProps:i,...c}=we.row({item:{id:t,zone:Ye,index:n},place:{...b(Ye),index:n}},{onClick:U(s)});/* @__PURE__ */
|
|
11
|
+
return Z(G,{children:[0===n&&Ve(Ye,0),
|
|
12
|
+
/* @__PURE__ */H(P,{words:pe,icon:/* @__PURE__ */H(Ie,{type:e.type,size:13}),name:r,selected:o,onSelect:s,...c,actions:/* @__PURE__ */H(T,{kind:"delete",label:ce.deleteNamed({name:r}),onClick:()=>{return e=n,void(Ye&&(ne.removeComponent(Ye,e),ie(l),ne.select(null)));var e},children:/* @__PURE__ */H(K,{size:13})}),rowProps:i}),Ve(Ye,n+1)]},String(e.props.id??n))}),
|
|
13
|
+
/* @__PURE__ */Z("button",{type:"button",className:"sf-add-card",onClick:ve,children:[
|
|
14
|
+
/* @__PURE__ */H("span",{className:"sf-plus sf-plus--sm",children:"+"}),De.addLabel]}),fe?Ee.partRows?.(je,$):null]}):Ze(je,1)})})]}),
|
|
15
|
+
/* @__PURE__ */H("div",{className:"sf-center",children:/* @__PURE__ */H("div",{className:"sf-preview-host",children:/* @__PURE__ */H(he,{})})}),
|
|
16
|
+
/* @__PURE__ */H(t,{value:{selectChild:(e,n,o,r)=>"section"===Pe(r)?.source?We(n,o):Ge(e,n,o),addChild:(e,n,o,r,t)=>"section"===Pe(t)?.source?ve():Je(`${e}:${n}`,o,r),childRowName:Oe,blockRowName:Xe},children:/* @__PURE__ */H(ke,{mode:se,onOpenWebsiteSettings:Ee.openSettings??(()=>{}),onSelectNode:Ae,hideNodeActions:!0})})]}),
|
|
17
|
+
/* @__PURE__ */H(y,{})]})}export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{usePartBridge}from"../../chunk-
|
|
1
|
+
export{usePartBridge}from"../../chunk-QYQG36CI.js";import"../../chunk-DTVOOBD4.js";import"../../chunk-CLJ3KXYF.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-R4AUZVA3.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-ITRBDUAM.js";import"../../chunk-JQQFB7EZ.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-WMC6FE3G.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-ZEH6QLBH.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-K53PQAMP.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-QTHQPJWA.js";import"../../chunk-HZSZT3BE.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-Y2T3JX7K.js";import"../../chunk-KFWNGPW3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-JACEEVVF.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-3XECMGXX.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-TOKMFZPB.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-EUFDQ4KL.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";
|
package/dist/screen/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-
|
|
1
|
+
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-QPZQFWS6.js";import"../chunk-GXQCZJOP.js";export{ScreenStoreProvider}from"../chunk-6FOXOYXW.js";import"../chunk-XE5LSM3G.js";import"../chunk-UMBNBCL4.js";import"../chunk-OXZDSOZV.js";import"../chunk-7OCEPOEJ.js";import"../chunk-U4TG43PD.js";import"../chunk-5XL2RXFU.js";import"../chunk-3QB2ZQXK.js";import"../chunk-BLE3U2GS.js";import"../chunk-22I55W37.js";import"../chunk-LUOY3A3Q.js";import"../chunk-JREIRJVH.js";import"../chunk-KCBEE2MC.js";import"../chunk-6EDVZBUO.js";import"../chunk-QYQG36CI.js";import"../chunk-DTVOOBD4.js";import"../chunk-MGEXTIZH.js";import"../chunk-PVBDKBJB.js";import"../chunk-RKTF5XLP.js";import"../chunk-CPIWSFGR.js";import"../chunk-QZJKWKGH.js";import"../chunk-ERR437B5.js";import"../chunk-JIP5JNRB.js";import"../chunk-GR3XRILS.js";export{NO_DOCUMENT_ADDRESSING}from"../chunk-RLBXE4EU.js";import"../chunk-6ATIYLUL.js";import"../chunk-KO47WAWR.js";import"../chunk-NQW6XCAY.js";import"../chunk-LOMEH6DG.js";import"../chunk-5545A3PC.js";import"../chunk-KR2JYQLM.js";import"../chunk-GDO4QJ4G.js";import"../chunk-IZGFJWH4.js";import"../chunk-N7E6264U.js";import"../chunk-N3MJOHAG.js";import"../chunk-SBVIW3KJ.js";import"../chunk-UMDQ6CLQ.js";import"../chunk-KCOBHPN6.js";import"../chunk-RUQOIQWI.js";export{SELECTION_MODE,ScreenCanvasTargetProvider,ScreenPartsProvider,isPinnedFirst,isPinnedLast,isSelectionMode,isSlotMode,sameInspectorMode,screenSlotsOf,shownChildSlotsOf,shownSlotFieldsOf,useScreenBlockLook,useScreenBlockRules,useScreenBridges,useScreenCanvasDrag,useScreenCanvasFrame,useScreenCanvasHead,useScreenCanvasTarget,useScreenDevices,useScreenDocumentLabel,useScreenDocumentPass,useScreenInspectorPanel,useScreenLeftView,useScreenNodeKeys,useScreenNotify,useScreenOwnerName,useScreenParts,useScreenPickFollowsSelection,useScreenPinned,useScreenSaveSwitch,useScreenStorageNamespace,useScreenStyleClipboard,useStandaloneScreenBridges}from"../chunk-CLJ3KXYF.js";import"../chunk-T2RINM7R.js";import"../chunk-NCXYC7WI.js";import"../chunk-H4TUOPI7.js";export{EaselSessionProvider,useEaselSession}from"../chunk-YM4UEGBV.js";export{EFFICIENT_BACKEND,activateEaselSession,backendOf,createEaselSession,currentEaselSession,deactivateEaselSession,efficientClientOpen,isEfficientBackend,provideDefaultBackend,resetAmbientEaselSession,sessionRegistry,setSessionBridgedSite,setSessionDocumentSite}from"../chunk-SNF5764Q.js";export{DETACHED_EASEL_HOST,EaselHostContext,EaselHostProvider,FIELD_DESCRIPTION_MARKER,createEaselHost,describedAs,useEaselHost,useHostEscape}from"../chunk-LX23TCTP.js";import"../chunk-XFYFKITX.js";import"../chunk-C4TJN6GR.js";import"../chunk-CWELHADJ.js";import"../chunk-6WY6ZXJG.js";import"../chunk-5NHQ452C.js";import"../chunk-AJ2SUSET.js";import"../chunk-6UAEFOJ4.js";import"../chunk-ANPOR6EY.js";import"../chunk-R4AUZVA3.js";import"../chunk-TCAAOYQY.js";import"../chunk-ITRBDUAM.js";import"../chunk-JQQFB7EZ.js";import"../chunk-TBY3DFKS.js";import"../chunk-WMC6FE3G.js";import"../chunk-BPXEFVSQ.js";import"../chunk-YCSZAP7T.js";import"../chunk-ZEH6QLBH.js";import"../chunk-WHS6Y55E.js";import"../chunk-D4TH4QQR.js";import"../chunk-K56YDHYQ.js";import"../chunk-56ID6FKZ.js";import"../chunk-K53PQAMP.js";import"../chunk-ZKY45F5G.js";import"../chunk-FIVU2COQ.js";import"../chunk-P5VYGWYO.js";import"../chunk-WK3AFPXY.js";import"../chunk-QTHQPJWA.js";import"../chunk-NDRZP6YR.js";import"../chunk-H6DDIBQ4.js";import"../chunk-VBEVZZTV.js";import"../chunk-MJM6SFD3.js";import"../chunk-AJSDWWJW.js";import"../chunk-2OAZYSWJ.js";import"../chunk-YYD257TD.js";import"../chunk-RE4LP46F.js";import"../chunk-HZSZT3BE.js";import"../chunk-PMRN5Z3T.js";import"../chunk-Y2T3JX7K.js";import"../chunk-KFWNGPW3.js";import"../chunk-MIX7EGRG.js";import"../chunk-DX3VILZ3.js";import"../chunk-JACEEVVF.js";import"../chunk-MFIRYGHW.js";import"../chunk-SQTVXE5D.js";import"../chunk-TQ5Y6S2X.js";import"../chunk-3XECMGXX.js";import"../chunk-P2VEMZH5.js";import"../chunk-TOKMFZPB.js";import"../chunk-FR7EEKFF.js";import"../chunk-7UFKEX72.js";import"../chunk-EUFDQ4KL.js";import"../chunk-KXM6YRG2.js";import"../chunk-BSPCSC45.js";import"../chunk-467WWV4I.js";import"../chunk-TIAWIOGD.js";import"../chunk-MGVI67QV.js";
|