efficient-easel 27.2.0 → 27.3.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.
Files changed (97) hide show
  1. package/dist/{AddSidePanel-DoCx-ZrM.d.ts → AddSidePanel-DwfZOS5C.d.ts} +11 -3
  2. package/dist/blocks/index.d.ts +1 -1
  3. package/dist/{canvas-typing-CD1aeYnk.d.ts → canvas-typing-B33ssbpU.d.ts} +22 -3
  4. package/dist/chunk-2DFSODES.js +1 -0
  5. package/dist/{chunk-I4Z75MCX.js → chunk-2ODVRWRM.js} +1 -1
  6. package/dist/{chunk-SR2535CN.js → chunk-36AWYQLN.js} +17 -17
  7. package/dist/{chunk-JI7GUM3C.js → chunk-4JPAVKV6.js} +1 -1
  8. package/dist/{chunk-ZSP4ZAQ2.js → chunk-7WONGRN3.js} +40 -40
  9. package/dist/chunk-AI5IQV4A.js +2 -0
  10. package/dist/chunk-BDYS3UAD.js +5 -0
  11. package/dist/{chunk-3RGHXL5V.js → chunk-DFLPDOZF.js} +1 -1
  12. package/dist/chunk-IHYRYSP2.js +7 -0
  13. package/dist/chunk-JEKFHCKS.js +8 -0
  14. package/dist/{chunk-XGTO4LHI.js → chunk-JNNBGI6Y.js} +1 -1
  15. package/dist/chunk-KRONK73U.js +1 -0
  16. package/dist/{chunk-HGTDDSFJ.js → chunk-NMLAW6FI.js} +17 -17
  17. package/dist/chunk-OHHODU7N.js +26 -0
  18. package/dist/{chunk-MMHYTIUY.js → chunk-PMDIDRDB.js} +4 -4
  19. package/dist/{chunk-DQSRGKSM.js → chunk-SEC6NV6Y.js} +4 -4
  20. package/dist/{chunk-2Y4CAWZQ.js → chunk-TWXA55SR.js} +3 -3
  21. package/dist/chunk-WW24O7HT.js +1 -0
  22. package/dist/chunk-XT75WETI.js +1 -0
  23. package/dist/copy/index.d.ts +3 -3
  24. package/dist/copy/index.js +29 -29
  25. package/dist/data/index.d.ts +1 -1
  26. package/dist/drag/index.js +1 -1
  27. package/dist/easel/index.d.ts +10 -2
  28. package/dist/easel/index.js +1 -1
  29. package/dist/fields/index.d.ts +1 -1
  30. package/dist/fields/index.js +1 -1
  31. package/dist/panel/index.d.ts +5 -0
  32. package/dist/panel/index.js +1 -1
  33. package/dist/{phone-order-CRKvsTsz.d.ts → phone-order-BCM_f8A1.d.ts} +7 -1
  34. package/dist/screen/components/AddBlockRow.js +1 -1
  35. package/dist/screen/components/AddSidePanel.d.ts +2 -2
  36. package/dist/screen/components/AddSidePanel.js +1 -1
  37. package/dist/screen/components/NodeContextMenu.d.ts +2 -2
  38. package/dist/screen/components/NodeContextMenu.js +1 -1
  39. package/dist/screen/components/SaveControls.d.ts +2 -2
  40. package/dist/screen/components/ScreenChrome.js +1 -1
  41. package/dist/screen/components/ScreenDocumentContext.d.ts +1 -1
  42. package/dist/screen/components/ScreenMount.d.ts +2 -2
  43. package/dist/screen/components/ScreenMount.js +1 -1
  44. package/dist/screen/components/ScreenStoreProvider.d.ts +2 -2
  45. package/dist/screen/components/ScreenStoreProvider.js +1 -1
  46. package/dist/screen/components/SectionScreenShell.js +16 -16
  47. package/dist/screen/components/usePartBridge.d.ts +2 -2
  48. package/dist/screen/components/usePartBridge.js +1 -1
  49. package/dist/screen/index.d.ts +2 -2
  50. package/dist/screen/index.js +1 -1
  51. package/dist/screen/lib/admin-bridge.d.ts +1 -1
  52. package/dist/screen/lib/document/add-target-types.d.ts +2 -2
  53. package/dist/screen/lib/document/block-set-host.js +1 -1
  54. package/dist/screen/lib/document/block-size-fields.d.ts +1 -1
  55. package/dist/screen/lib/document/block-size-fields.js +1 -1
  56. package/dist/screen/lib/document/box-fields.d.ts +1 -1
  57. package/dist/screen/lib/document/box-fields.js +1 -1
  58. package/dist/screen/lib/document/button-fields.d.ts +1 -1
  59. package/dist/screen/lib/document/button-fields.js +1 -1
  60. package/dist/screen/lib/document/image-fields.d.ts +1 -1
  61. package/dist/screen/lib/document/image-fields.js +4 -4
  62. package/dist/screen/lib/document/new-child.d.ts +2 -2
  63. package/dist/screen/lib/document/palette-sections.d.ts +2 -2
  64. package/dist/screen/lib/document/section-doc.d.ts +1 -1
  65. package/dist/screen/lib/document/shadow-fields.d.ts +1 -1
  66. package/dist/screen/lib/document/shadow-fields.js +2 -2
  67. package/dist/screen/lib/document/slot-section-spec.d.ts +2 -2
  68. package/dist/screen/lib/document/style-clipboard.d.ts +2 -2
  69. package/dist/screen/lib/document/style-clipboard.js +1 -1
  70. package/dist/screen/lib/document/style-fields.d.ts +1 -1
  71. package/dist/screen/lib/document/style-fields.js +1 -1
  72. package/dist/screen/lib/document/use-section-ops.d.ts +37 -3
  73. package/dist/screen/lib/document/use-section-ops.js +1 -1
  74. package/dist/screen/lib/document-addressing.d.ts +1 -1
  75. package/dist/screen/lib/document-hooks.d.ts +1 -1
  76. package/dist/screen/lib/host.d.ts +1 -1
  77. package/dist/screen/lib/key-scope.js +1 -1
  78. package/dist/screen/lib/media-panel.d.ts +1 -1
  79. package/dist/screen/lib/media-picker.d.ts +1 -1
  80. package/dist/screen/lib/page-lock.d.ts +1 -1
  81. package/dist/screen/lib/screen-parts.d.ts +2 -2
  82. package/dist/screen/lib/screen-parts.js +1 -1
  83. package/dist/screen/lib/section-templates.d.ts +1 -1
  84. package/dist/screen/lib/session-context.d.ts +1 -1
  85. package/dist/screen/lib/session.d.ts +1 -1
  86. package/dist/screen/lib/shared-sections.d.ts +1 -1
  87. package/dist/text-styles/index.js +11 -11
  88. package/package.json +4 -4
  89. package/dist/chunk-D4TH4QQR.js +0 -2
  90. package/dist/chunk-DCBUJ36Q.js +0 -5
  91. package/dist/chunk-LK56FUFT.js +0 -1
  92. package/dist/chunk-M5UCPD66.js +0 -1
  93. package/dist/chunk-MNQDOSAX.js +0 -7
  94. package/dist/chunk-OSF2H3LO.js +0 -1
  95. package/dist/chunk-PTTQWCD7.js +0 -1
  96. package/dist/chunk-SDSBXW3V.js +0 -26
  97. package/dist/chunk-YCYGY54I.js +0 -8
@@ -1,17 +1,17 @@
1
- import{AddBlockRow as e}from"../../chunk-XGTO4LHI.js";import{configNodeDefaults as n,newChildOf as o}from"../../chunk-64NREOML.js";import{scrollPreviewToSection as t,gotoPreviewSlide as r}from"../../chunk-LUOY3A3Q.js";import{useEaselUndoKeys as s}from"../../chunk-3RGHXL5V.js";import{SlotChildActionsProvider as i}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as c}from"../../chunk-TQUEVJOO.js";import{usePartBridge as p}from"../../chunk-OSF2H3LO.js";import{useSectionOps as l}from"../../chunk-PTTQWCD7.js";import{useScreenDocument as m}from"../../chunk-OB4KI2AN.js";import"../../chunk-JUJEVGLY.js";import"../../chunk-ERR437B5.js";import"../../chunk-5HYVOOH3.js";import"../../chunk-A5USZ6Z6.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6V6LC7QV.js";import"../../chunk-7YXWWMBM.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import{SELECTION_MODE as d,useScreenPinned as a,useScreenCanvasFrame as u,useScreenInspectorPanel as h,useScreenPickFollowsSelection as k,sameInspectorMode as j,useStandaloneScreenBridges as f,useScreenBlockLook as S,useScreenBlockRules as N,isSelectionMode as y,shownChildSlotsOf as O}from"../../chunk-DCBUJ36Q.js";import{MediaPopup as C}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 E}from"../../chunk-G2VZ4DET.js";import{slotChildRowName as A}from"../../chunk-5NHQ452C.js";import"../../chunk-AJ2SUSET.js";import"../../chunk-6UAEFOJ4.js";import"../../chunk-ANPOR6EY.js";import"../../chunk-R4AUZVA3.js";import{newNodeId as D,slotFieldsOf as x,nestsInTree as R}from"../../chunk-TCAAOYQY.js";import{useEasel as T}from"../../chunk-HGTDDSFJ.js";import"../../chunk-LK56FUFT.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-SDSBXW3V.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-TDEBPOWV.js";import{LayersTree as I,Subtree as Q,TreeRow as B,TreeRowAction as Y,TreeSeam as b}from"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import{DEFAULT_TREE_WORDS as g}from"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-LDHUPZBK.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-NDRZP6YR.js";import{DEFAULT_SAVE_WORDS as M,saveIndicator as P}from"../../chunk-H6DDIBQ4.js";import{SaveState as F,panelWidthVars as V}from"../../chunk-VTY7OQB5.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-G7J6SGMF.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MNQDOSAX.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-ANBPE45L.js";import"../../chunk-C63IB4VW.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-UMTUKSE6.js";import{useWords as W}from"../../chunk-MFIRYGHW.js";import"../../chunk-DQSRGKSM.js";import"../../chunk-TQ5Y6S2X.js";import{useTreeDrag as v}from"../../chunk-QEEW4X64.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import{zoneKey as w,parseZoneKey as z}from"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";import{useState as L,useRef as G,useEffect as H,useCallback as U,useMemo as X,Fragment as J}from"react";import{Tooltip as K}from"efficient-shell/ui";import{TrashIcon as Z}from"efficient-shell/icons/efficient";import{jsxs as $,jsx as q,Fragment as _}from"react/jsx-runtime";var ee=e=>n=>{n.target.closest("button, input")||e()},ne={rowClick:ee};function oe(){const{saveState:oe,readOnly:te,readOnlyReason:re=null}=m(),se=l({readOnly:Boolean(te)}),{appState:ie,selectedItem:ce,config:pe}=T(e=>e),[le,me]=L(d),de=W("screen",E),ae=W("tree",g),ue=W("save",M),{first:he,last:ke,panelOf:je}=a(),fe=je(he),Se=u(),Ne=h(),ye=ie.data.content?.[0]??null,Oe=ye?.props.id??null,Ce=ye?.type===he,Ee=ye?.type===ke,Ae=G(null),De=G(null);s(De),k(ce?.props.id),H(()=>{Oe&&Ae.current!==Oe&&(Ae.current=Oe,Ce?me(fe??d):ce||se.select({index:0}))},[Oe,ce,se,Ce]);const xe=U(e=>me(n=>j(n,e)?n:e),[]),Re=f({kind:le.kind,mode:le,open:xe,show:e=>me(e),reveal:()=>{},select:(e,n)=>{me(e=>j(e,n)?e:n),se.select(e)}}),{selectNode:Te}=p({mode:le,setMode:me,onOpenPart:t}),Ie=S(),{labelAtLevel:Qe,Icon:Be}=Ie,{canAddTo:Ye,blockIsOffered:be,nestDepth:ge}=N(),Me=(e,n,o)=>Ye(n,ge(ie.data,n,e),o,{id:e,data:ie.data}),Pe=e=>Qe(e,"block",pe.components[e]?.label??e),Fe=e=>Qe(e,"section",Pe(e)),Ve={nodeDefaults:X(()=>n(pe),[pe]),newNodeId:D,sectionLabel:Fe,blockIsOffered:be},We=!Ce&&y(le)&&ce?.props.id===Oe,ve=ye?Ye(ye.type)?.spec??null:null,we=ye&&ve?`${ye.props.id}:${ve.slot}`:null,ze=ye&&ve&&Array.isArray(ye.props[ve.slot])?ye.props[ve.slot]:[],Le=e=>A(e,Pe,Ie.plainText),Ge=(e,n)=>{ye&&ve&&we&&(me(d),ve.slider?(r(String(ye.props.id),e),se.select({index:e,zone:we}),t(String(ye.props.id))):(se.select({index:e,zone:we}),t(n)))},He=(e,n,t,s,i)=>{const c=`${e}:${n}`,p=Me(e,i,n),l="section"===p?.source&&p.slot===n?p.spec:null,m=o(l,t,Ve);m?se.insertNode(c,s,m):se.insertComponent(c,t,s),me(d),l?.slider?requestAnimationFrame(()=>{r(e,s),se.select({index:s,zone:c})}):se.select({index:s,zone:c})},Ue=e=>x(pe,e),Xe=e=>{const{parentId:n,slot:o}=z(e),t=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of Ue(e.type)){const o=Array.isArray(e.props[n])?e.props[n]:[];for(const e of o){const n=t(e);if(n)return n}}return null},r=t(ye)?.props[o];return Array.isArray(r)?r.length:0},Je=(e,n,o)=>{const t=Math.min(Math.max(o,0),Xe(e)),r=n<t?t-1:t;r!==n&&(se.reorderComponent(e,n,r),me(d),se.select({index:r,zone:e}))},Ke=v({keyOf:e=>e.id,readOnly:Boolean(te),canDrop:(e,n)=>w(n)===e.zone&&n.index>=0&&n.index<=Xe(e.zone),onDrop:(e,n)=>Je(e.zone,e.index,n.index),onStep:(e,n)=>Je(e.zone,e.index,n<0?e.index-1:e.index+2)}),Ze=(e,n)=>/* @__PURE__ */q(b,{...te?{}:Ke.seam({place:{...z(e),index:n}})},`seam:${e}:${n}`),$e=e=>Ie.blockRowName(e,Pe),qe=(e,n,o)=>{me(d),se.select({index:n,zone:e}),t(o)},_e=(e,n,o)=>{se.insertComponent(e,n,o),me(d),se.select({index:o,zone:e})},en=(n,o,t)=>/* @__PURE__ */q(e,{choices:t,onPick:e=>_e(n,e,o)}),nn=(e,n)=>{const o=O(pe,e);const t=Me(String(e.props.id??""),e.type),r=t?.choices??null,s="footer"===t?.source?$e:Le;/* @__PURE__ */
2
- return $(_,{children:[o.map(({child:e,zone:o,index:t})=>{const r=ce?.props.id===e.props.id,i=R(pe,e.type,n),c=s(e),p=String(e.props.id),l=()=>qe(o,t,p),{rowProps:m,...a}=Ke.row({item:{id:p,zone:o,index:t},place:{...z(o),index:t}},{onClick:ee(l)});/* @__PURE__ */
3
- return $(J,{children:[0===t&&Ze(o,0),
4
- /* @__PURE__ */q(B,{words:ae,icon:/* @__PURE__ */q(Be,{type:e.type,size:13}),name:c,selected:r,onSelect:l,...a,actions:/* @__PURE__ */q(Y,{kind:"delete",label:de.deleteNamed({name:c}),onClick:()=>{return e=o,n=t,se.removeComponent(e,n),me(d),void se.select(null);var e,n},children:/* @__PURE__ */q(Z,{size:13})}),rowProps:m}),i&&/* @__PURE__ */q(Q,{children:nn(e,n+1)}),Ze(o,t+1)]},String(e.props.id??`${o}-${t}`))}),t&&r?en(`${e.props.id}:${t.slot}`,o.length,r):null]})},on="HeroSingle"===ye?.type,tn=Boolean(ye)&&(Boolean(Ye(ye.type))||Ue(ye.type).length>0),rn=Boolean(ye)&&(Boolean(ve)||Ee||Ce||on||tn);/* @__PURE__ */
5
- return $("div",{ref:De,className:"sf-editor es-editor",style:V(c),children:[
6
- /* @__PURE__ */q("div",{className:"sf-section-bar",children:/* @__PURE__ */q(F,null!==re?{tone:"off",label:re,role:"status"}:{...P(oe,ue),role:"status"})}),
7
- /* @__PURE__ */$("div",{className:"sf-body",children:[rn&&ye&&/* @__PURE__ */$("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
8
- /* @__PURE__ */q("div",{className:"sf-panel-head",children:/* @__PURE__ */q(K,{content:Ce?de.headerSettings:de.sectionSettings({name:Fe(ye.type)}),side:"bottom",children:/* @__PURE__ */q("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(We?"is-selected":""),"aria-pressed":We,onClick:()=>{Ce?me(fe??d):(me(d),se.select({index:0}))},children:Fe(ye.type)})})}),
9
- /* @__PURE__ */q(I,{className:"sf-tree sf-scroll",rootProps:Ke.rootProps(),words:ae,children:/* @__PURE__ */q(Q,{children:Ce?
10
- /* @__PURE__ */q(B,{words:ae,icon:/* @__PURE__ */q(Be,{type:"header",size:13}),name:de.headerSettings,selected:le.kind===fe?.kind,onSelect:()=>me(fe??d),rowProps:{onClick:ee(()=>me(fe??d))}}):ve?/* @__PURE__ */$(_,{children:[ze.map((e,n)=>{const o=ce?.props.id===e.props.id,t=Le(e),r=String(e.props.id),s=()=>Ge(n,r),{rowProps:i,...c}=Ke.row({item:{id:r,zone:we,index:n},place:{...z(we),index:n}},{onClick:ee(s)});/* @__PURE__ */
11
- return $(J,{children:[0===n&&Ze(we,0),
12
- /* @__PURE__ */q(B,{words:ae,icon:/* @__PURE__ */q(Be,{type:e.type,size:13}),name:t,selected:o,onSelect:s,...c,actions:/* @__PURE__ */q(Y,{kind:"delete",label:de.deleteNamed({name:t}),onClick:()=>{return e=n,void(we&&(se.removeComponent(we,e),me(d),se.select(null)));var e},children:/* @__PURE__ */q(Z,{size:13})}),rowProps:i}),Ze(we,n+1)]},String(e.props.id??n))}),
13
- /* @__PURE__ */$("button",{type:"button",className:"sf-add-card",onClick:()=>{ye&&ve&&He(String(ye.props.id),ve.slot,ve.childType,ze.length,ye.type)},children:[
14
- /* @__PURE__ */q("span",{className:"sf-plus sf-plus--sm",children:"+"}),ve.addLabel]}),Oe?Re.partRows?.(ye,ne):null]}):nn(ye,1)})})]}),
1
+ import{AddBlockRow as e}from"../../chunk-JNNBGI6Y.js";import{configNodeDefaults as n,newChildOf as o}from"../../chunk-64NREOML.js";import{scrollPreviewToSection as t,gotoPreviewSlide as r}from"../../chunk-LUOY3A3Q.js";import{useEaselUndoKeys as s}from"../../chunk-DFLPDOZF.js";import{SlotChildActionsProvider as i}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as c}from"../../chunk-TQUEVJOO.js";import{usePartBridge as p}from"../../chunk-2DFSODES.js";import{useSectionOps as l}from"../../chunk-KRONK73U.js";import{useScreenDocument as m}from"../../chunk-OB4KI2AN.js";import"../../chunk-JUJEVGLY.js";import"../../chunk-ERR437B5.js";import"../../chunk-5HYVOOH3.js";import"../../chunk-A5USZ6Z6.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-6V6LC7QV.js";import"../../chunk-7YXWWMBM.js";import"../../chunk-NQW6XCAY.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-RUQOIQWI.js";import{SELECTION_MODE as d,useScreenPinned as a,useScreenCanvasFrame as u,useScreenInspectorPanel as h,useScreenPickFollowsSelection as k,sameInspectorMode as j,useStandaloneScreenBridges as f,useScreenBlockLook as S,useScreenBlockRules as N,isSelectionMode as O,shownChildSlotsOf as y}from"../../chunk-BDYS3UAD.js";import{MediaPopup as E}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 A}from"../../chunk-G2VZ4DET.js";import{slotChildRowName as I}from"../../chunk-5NHQ452C.js";import"../../chunk-AJ2SUSET.js";import"../../chunk-6UAEFOJ4.js";import"../../chunk-ANPOR6EY.js";import"../../chunk-R4AUZVA3.js";import{newNodeId as C,slotFieldsOf as Y,nestsInTree as x}from"../../chunk-TCAAOYQY.js";import{useEasel as D}from"../../chunk-NMLAW6FI.js";import"../../chunk-XT75WETI.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-OHHODU7N.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-TDEBPOWV.js";import{LayersTree as R,Subtree as B,TreeRow as P,TreeRowAction as b,TreeSeam as g}from"../../chunk-WHS6Y55E.js";import"../../chunk-AI5IQV4A.js";import{DEFAULT_TREE_WORDS as T}from"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-LDHUPZBK.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-NDRZP6YR.js";import{DEFAULT_SAVE_WORDS as F,saveIndicator as M}from"../../chunk-H6DDIBQ4.js";import{SaveState as V,panelWidthVars as W}from"../../chunk-VTY7OQB5.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-AJSDWWJW.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-G7J6SGMF.js";import"../../chunk-RE4LP46F.js";import"../../chunk-IHYRYSP2.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-ANBPE45L.js";import"../../chunk-C63IB4VW.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-UMTUKSE6.js";import{useWords as v}from"../../chunk-MFIRYGHW.js";import"../../chunk-SEC6NV6Y.js";import"../../chunk-TQ5Y6S2X.js";import{useTreeDrag as w}from"../../chunk-QEEW4X64.js";import"../../chunk-P2VEMZH5.js";import{zoneKey as z,parseZoneKey as Q}from"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";import{useState as U,useRef as L,useEffect as H,useCallback as G,useMemo as X,Fragment as K}from"react";import{Tooltip as Z}from"efficient-shell/ui";import{TrashIcon as J}from"efficient-shell/icons/efficient";import{jsxs as $,jsx as q,Fragment as _}from"react/jsx-runtime";var ee=e=>n=>{n.target.closest("button, input")||e()},ne={rowClick:ee};function oe(){const{saveState:oe,readOnly:te,readOnlyReason:re=null}=m(),se=l({readOnly:Boolean(te)}),{appState:ie,selectedItem:ce,config:pe}=D(e=>e),[le,me]=U(d),de=v("screen",A),ae=v("tree",T),ue=v("save",F),{first:he,last:ke,panelOf:je}=a(),fe=je(he),Se=u(),Ne=h(),Oe=ie.data.content?.[0]??null,ye=Oe?.props.id??null,Ee=Oe?.type===he,Ae=Oe?.type===ke,Ie=L(null),Ce=L(null);s(Ce),k(ce?.props.id),H(()=>{ye&&Ie.current!==ye&&(Ie.current=ye,Ee?me(fe??d):ce||se.select({index:0}))},[ye,ce,se,Ee]);const Ye=G(e=>me(n=>j(n,e)?n:e),[]),xe=f({kind:le.kind,mode:le,open:Ye,show:e=>me(e),reveal:()=>{},select:(e,n)=>{me(e=>j(e,n)?e:n),se.select(e)}}),{selectNode:De}=p({mode:le,setMode:me,onOpenPart:t}),Re=S(),{labelAtLevel:Be,Icon:Pe}=Re,{canAddTo:be,blockIsOffered:ge,nestDepth:Te}=N(),Fe=(e,n,o)=>be(n,Te(ie.data,n,e),o,{id:e,data:ie.data}),Me=e=>Be(e,"block",pe.components[e]?.label??e),Ve=e=>Be(e,"section",Me(e)),We={nodeDefaults:X(()=>n(pe),[pe]),newNodeId:C,sectionLabel:Ve,blockIsOffered:ge},ve=!Ee&&O(le)&&ce?.props.id===ye,we=Oe?be(Oe.type)?.spec??null:null,ze=Oe&&we?`${Oe.props.id}:${we.slot}`:null,Qe=Oe&&we&&Array.isArray(Oe.props[we.slot])?Oe.props[we.slot]:[],Ue=e=>I(e,Me,Re.plainText),Le=(e,n)=>{Oe&&we&&ze&&(me(d),we.slider?(r(String(Oe.props.id),e),se.select({index:e,zone:ze}),t(String(Oe.props.id))):(se.select({index:e,zone:ze}),t(n)))},He=(e,n,t,s,i)=>{const c=`${e}:${n}`,p=Fe(e,i,n),l="section"===p?.source&&p.slot===n?p.spec:null,m=o(l,t,We);m?se.insertNode(c,s,m):se.insertComponent(c,t,s),me(d),l?.slider?requestAnimationFrame(()=>{r(e,s),se.select({index:s,zone:c})}):se.select({index:s,zone:c})},Ge=e=>Y(pe,e),Xe=e=>{const{parentId:n,slot:o}=Q(e),t=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of Ge(e.type)){const o=Array.isArray(e.props[n])?e.props[n]:[];for(const e of o){const n=t(e);if(n)return n}}return null},r=t(Oe)?.props[o];return Array.isArray(r)?r.length:0},Ke=(e,n,o)=>{const t=Math.min(Math.max(o,0),Xe(e)),r=n<t?t-1:t;r!==n&&(se.reorderComponent(e,n,r),me(d),se.select({index:r,zone:e}))},Ze=w({keyOf:e=>e.id,readOnly:Boolean(te),canDrop:(e,n)=>z(n)===e.zone&&n.index>=0&&n.index<=Xe(e.zone),onDrop:(e,n)=>Ke(e.zone,e.index,n.index),onStep:(e,n)=>Ke(e.zone,e.index,n<0?e.index-1:e.index+2)}),Je=(e,n)=>/* @__PURE__ */q(g,{...te?{}:Ze.seam({place:{...Q(e),index:n}})},`seam:${e}:${n}`),$e=e=>Re.blockRowName(e,Me),qe=(e,n,o)=>{me(d),se.select({index:n,zone:e}),t(o)},_e=(e,n,o)=>{se.insertComponent(e,n,o),me(d),se.select({index:o,zone:e})},en=(n,o,t)=>/* @__PURE__ */q(e,{choices:t,onPick:e=>_e(n,e,o)}),nn=(e,n)=>{const o=y(pe,e);const t=Fe(String(e.props.id??""),e.type),r=t?.choices??null,s="footer"===t?.source?$e:Ue;/* @__PURE__ */
2
+ return $(_,{children:[o.map(({child:e,zone:o,index:t})=>{const r=ce?.props.id===e.props.id,i=x(pe,e.type,n),c=s(e),p=String(e.props.id),l=()=>qe(o,t,p),{rowProps:m,...a}=Ze.row({item:{id:p,zone:o,index:t},place:{...Q(o),index:t}},{onClick:ee(l)});/* @__PURE__ */
3
+ return $(K,{children:[0===t&&Je(o,0),
4
+ /* @__PURE__ */q(P,{words:ae,icon:/* @__PURE__ */q(Pe,{type:e.type,size:13}),name:c,selected:r,onSelect:l,...a,actions:/* @__PURE__ */q(b,{kind:"delete",label:de.deleteNamed({name:c}),onClick:()=>{return e=o,n=t,se.removeComponent(e,n),me(d),void se.select(null);var e,n},children:/* @__PURE__ */q(J,{size:13})}),rowProps:m}),i&&/* @__PURE__ */q(B,{children:nn(e,n+1)}),Je(o,t+1)]},String(e.props.id??`${o}-${t}`))}),t&&r?en(`${e.props.id}:${t.slot}`,o.length,r):null]})},on="HeroSingle"===Oe?.type,tn=Boolean(Oe)&&(Boolean(be(Oe.type))||Ge(Oe.type).length>0),rn=Boolean(Oe)&&(Boolean(we)||Ae||Ee||on||tn);/* @__PURE__ */
5
+ return $("div",{ref:Ce,className:"sf-editor es-editor",style:W(c),children:[
6
+ /* @__PURE__ */q("div",{className:"sf-section-bar",children:/* @__PURE__ */q(V,null!==re?{tone:"off",label:re,role:"status"}:{...M(oe,ue),role:"status"})}),
7
+ /* @__PURE__ */$("div",{className:"sf-body",children:[rn&&Oe&&/* @__PURE__ */$("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
8
+ /* @__PURE__ */q("div",{className:"sf-panel-head",children:/* @__PURE__ */q(Z,{content:Ee?de.headerSettings:de.sectionSettings({name:Ve(Oe.type)}),side:"bottom",children:/* @__PURE__ */q("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(ve?"is-selected":""),"aria-pressed":ve,onClick:()=>{Ee?me(fe??d):(me(d),se.select({index:0}))},children:Ve(Oe.type)})})}),
9
+ /* @__PURE__ */q(R,{className:"sf-tree sf-scroll",rootProps:Ze.rootProps(),words:ae,children:/* @__PURE__ */q(B,{children:Ee?
10
+ /* @__PURE__ */q(P,{words:ae,icon:/* @__PURE__ */q(Pe,{type:"header",size:13}),name:de.headerSettings,selected:le.kind===fe?.kind,onSelect:()=>me(fe??d),rowProps:{onClick:ee(()=>me(fe??d))}}):we?/* @__PURE__ */$(_,{children:[Qe.map((e,n)=>{const o=ce?.props.id===e.props.id,t=Ue(e),r=String(e.props.id),s=()=>Le(n,r),{rowProps:i,...c}=Ze.row({item:{id:r,zone:ze,index:n},place:{...Q(ze),index:n}},{onClick:ee(s)});/* @__PURE__ */
11
+ return $(K,{children:[0===n&&Je(ze,0),
12
+ /* @__PURE__ */q(P,{words:ae,icon:/* @__PURE__ */q(Pe,{type:e.type,size:13}),name:t,selected:o,onSelect:s,...c,actions:/* @__PURE__ */q(b,{kind:"delete",label:de.deleteNamed({name:t}),onClick:()=>{return e=n,void(ze&&(se.removeComponent(ze,e),me(d),se.select(null)));var e},children:/* @__PURE__ */q(J,{size:13})}),rowProps:i}),Je(ze,n+1)]},String(e.props.id??n))}),
13
+ /* @__PURE__ */$("button",{type:"button",className:"sf-add-card",onClick:()=>{Oe&&we&&He(String(Oe.props.id),we.slot,we.childType,Qe.length,Oe.type)},children:[
14
+ /* @__PURE__ */q("span",{className:"sf-plus sf-plus--sm",children:"+"}),we.addLabel]}),ye?xe.partRows?.(Oe,ne):null]}):nn(Oe,1)})})]}),
15
15
  /* @__PURE__ */q("div",{className:"sf-center",children:/* @__PURE__ */q("div",{className:"sf-preview-host",children:/* @__PURE__ */q(Se,{})})}),
16
- /* @__PURE__ */q(i,{value:{selectChild:(e,n,o,t)=>{const{parentId:r,slot:s}=z(e);return"section"===Me(r,t,s)?.source?Ge(n,o):qe(e,n,o)},addChild:(e,n,o,t,r)=>"section"===Me(e,r,n)?.source?He(e,n,o,t,r):_e(`${e}:${n}`,o,t),childRowName:Le,blockRowName:$e},children:/* @__PURE__ */q(Ne,{mode:le,onOpenWebsiteSettings:Re.openSettings??(()=>{}),onSelectNode:Te,hideNodeActions:!0})})]}),
17
- /* @__PURE__ */q(C,{})]})}export{oe as default};
16
+ /* @__PURE__ */q(i,{value:{selectChild:(e,n,o,t)=>{const{parentId:r,slot:s}=Q(e);return"section"===Fe(r,t,s)?.source?Le(n,o):qe(e,n,o)},addChild:(e,n,o,t,r)=>"section"===Fe(e,r,n)?.source?He(e,n,o,t,r):_e(`${e}:${n}`,o,t),childRowName:Ue,blockRowName:$e},children:/* @__PURE__ */q(Ne,{mode:le,onOpenWebsiteSettings:xe.openSettings??(()=>{}),onSelectNode:De,hideNodeActions:!0})})]}),
17
+ /* @__PURE__ */q(E,{})]})}export{oe as default};
@@ -1,4 +1,4 @@
1
- import { n as ScreenInspectorMode } from '../../AddSidePanel-DoCx-ZrM.js';
1
+ import { n as ScreenInspectorMode } from '../../AddSidePanel-DwfZOS5C.js';
2
2
  import 'react';
3
3
  import '../../CanvasDragLayer-DXeQGrwJ.js';
4
4
  import '../../watch-Unf6SfUf.js';
@@ -11,7 +11,7 @@ import '../lib/document/block-choice.js';
11
11
  import '../../blocks/index.js';
12
12
  import '../../types-BljCVdzR.js';
13
13
  import '../../data/index.js';
14
- import '../../phone-order-CRKvsTsz.js';
14
+ import '../../phone-order-BCM_f8A1.js';
15
15
  import '../../plan-D0DgSLnY.js';
16
16
  import '../../types-SrGNzYeO.js';
17
17
  import '../../types-Cy7rdmXt.js';
@@ -1 +1 @@
1
- export{usePartBridge}from"../../chunk-OSF2H3LO.js";import"../../chunk-PTTQWCD7.js";import"../../chunk-DCBUJ36Q.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-R4AUZVA3.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-HGTDDSFJ.js";import"../../chunk-LK56FUFT.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-SDSBXW3V.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-TDEBPOWV.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-D4TH4QQR.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-LDHUPZBK.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-MNQDOSAX.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-ANBPE45L.js";import"../../chunk-C63IB4VW.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-UMTUKSE6.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-QEEW4X64.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";
1
+ export{usePartBridge}from"../../chunk-2DFSODES.js";import"../../chunk-KRONK73U.js";import"../../chunk-BDYS3UAD.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-R4AUZVA3.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-NMLAW6FI.js";import"../../chunk-XT75WETI.js";import"../../chunk-TBY3DFKS.js";import"../../chunk-OHHODU7N.js";import"../../chunk-BPXEFVSQ.js";import"../../chunk-YCSZAP7T.js";import"../../chunk-TDEBPOWV.js";import"../../chunk-WHS6Y55E.js";import"../../chunk-AI5IQV4A.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-56ID6FKZ.js";import"../../chunk-LDHUPZBK.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-IHYRYSP2.js";import"../../chunk-PMRN5Z3T.js";import"../../chunk-ANBPE45L.js";import"../../chunk-C63IB4VW.js";import"../../chunk-DX3VILZ3.js";import"../../chunk-MIX7EGRG.js";import"../../chunk-UMTUKSE6.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-QEEW4X64.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-467WWV4I.js";import"../../chunk-TIAWIOGD.js";import"../../chunk-MGVI67QV.js";
@@ -1,6 +1,6 @@
1
1
  export { DocumentScreen, default as ScreenMount } from './components/ScreenMount.js';
2
2
  export { default as ScreenStoreProvider } from './components/ScreenStoreProvider.js';
3
- export { C as CopyItemAction, a as CopyItemRequest, N as NodeDefaults, S as SELECTION_MODE, b as ScreenBlockLook, c as ScreenBlockRules, d as ScreenBridges, e as ScreenCanvas, f as ScreenCanvasDrag, g as ScreenCanvasDragContext, h as ScreenCanvasHeadProps, i as ScreenCanvasTargetProvider, j as ScreenDevices, k as ScreenDocumentOps, l as ScreenDragItem, m as ScreenInspector, n as ScreenInspectorMode, o as ScreenInspectorPanelProps, p as ScreenLeftPanel, q as ScreenLeftView, r as ScreenLeftViewFrame, s as ScreenLeftViewRules, t as ScreenMainAction, u as ScreenMediaDrop, v as ScreenMediaFile, w as ScreenMenuItem, x as ScreenMenuRows, y as ScreenNewNode, z as ScreenNode, A as ScreenNodeActions, B as ScreenNodeAt, D as ScreenNodeLevel, E as ScreenNodeMaker, F as ScreenPartMode, G as ScreenParts, H as ScreenPartsProvider, I as ScreenPinnedBand, J as ScreenPinnedNodes, K as ScreenRailItem, L as ScreenSelector, M as ScreenSharedSections, O as ScreenSlot, P as ScreenSlotAction, Q as ScreenSlotMode, R as ScreenStyleClipboard, T as ScreenStyleDocument, U as ScreenStylePastePlan, V as ScreenToastExtra, W as ScreenTree, X as ScreenTreeFolds, Y as ScreenTreeRows, Z as isPinnedFirst, _ as isPinnedLast, $ as isSelectionMode, a0 as isSlotMode, a1 as sameInspectorMode, a2 as screenSlotsOf, a3 as shownChildSlotsOf, a4 as shownSlotFieldsOf, a5 as useScreenBlockLook, a6 as useScreenBlockRules, a7 as useScreenBridges, a8 as useScreenCanvasDrag, a9 as useScreenCanvasFrame, aa as useScreenCanvasHead, ab as useScreenCanvasTarget, ac as useScreenDevices, ad as useScreenDocumentLabel, ae as useScreenDocumentPass, af as useScreenInspectorPanel, ag as useScreenLeftView, ah as useScreenNodeKeys, ai as useScreenNotify, aj as useScreenOwnerName, ak as useScreenParts, al as useScreenPickFollowsSelection, am as useScreenPinned, an as useScreenSaveSwitch, ao as useScreenStorageNamespace, ap as useScreenStyleClipboard, aq as useStandaloneScreenBridges } from '../AddSidePanel-DoCx-ZrM.js';
3
+ export { C as CopyItemAction, a as CopyItemRequest, I as InsertNodeOptions, N as NodeDefaults, S as SELECTION_MODE, b as ScreenBlockLook, c as ScreenBlockRules, d as ScreenBridges, e as ScreenCanvas, f as ScreenCanvasDrag, g as ScreenCanvasDragContext, h as ScreenCanvasHeadProps, i as ScreenCanvasTargetProvider, j as ScreenDevices, k as ScreenDocumentOps, l as ScreenDragItem, m as ScreenInspector, n as ScreenInspectorMode, o as ScreenInspectorPanelProps, p as ScreenLeftPanel, q as ScreenLeftView, r as ScreenLeftViewFrame, s as ScreenLeftViewRules, t as ScreenMainAction, u as ScreenMediaDrop, v as ScreenMediaFile, w as ScreenMenuItem, x as ScreenMenuRows, y as ScreenNewNode, z as ScreenNode, A as ScreenNodeActions, B as ScreenNodeAt, D as ScreenNodeLevel, E as ScreenNodeMaker, F as ScreenPartMode, G as ScreenParts, H as ScreenPartsProvider, J as ScreenPinnedBand, K as ScreenPinnedNodes, L as ScreenRailItem, M as ScreenSelector, O as ScreenSharedSections, P as ScreenSlot, Q as ScreenSlotAction, R as ScreenSlotMode, T as ScreenStyleClipboard, U as ScreenStyleDocument, V as ScreenStylePastePlan, W as ScreenToastExtra, X as ScreenTree, Y as ScreenTreeFolds, Z as ScreenTreeRows, _ as isPinnedFirst, $ as isPinnedLast, a0 as isSelectionMode, a1 as isSlotMode, a2 as sameInspectorMode, a3 as screenSlotsOf, a4 as shownChildSlotsOf, a5 as shownSlotFieldsOf, a6 as useScreenBlockLook, a7 as useScreenBlockRules, a8 as useScreenBridges, a9 as useScreenCanvasDrag, aa as useScreenCanvasFrame, ab as useScreenCanvasHead, ac as useScreenCanvasTarget, ad as useScreenDevices, ae as useScreenDocumentLabel, af as useScreenDocumentPass, ag as useScreenInspectorPanel, ah as useScreenLeftView, ai as useScreenNodeKeys, aj as useScreenNotify, ak as useScreenOwnerName, al as useScreenParts, am as useScreenPickFollowsSelection, an as useScreenPinned, ao as useScreenSaveSwitch, ap as useScreenStorageNamespace, aq as useScreenStyleClipboard, ar as useStandaloneScreenBridges } from '../AddSidePanel-DwfZOS5C.js';
4
4
  export { DefaultBackend, EFFICIENT_BACKEND, EaselSession, SessionBackend, SessionBlocks, activateEaselSession, backendOf, createEaselSession, currentEaselSession, deactivateEaselSession, efficientClientOpen, isEfficientBackend, provideDefaultBackend, resetAmbientEaselSession, sessionRegistry, setSessionBridgedSite, setSessionDocumentSite } from './lib/session.js';
5
5
  export { EaselSessionProvider, useEaselSession } from './lib/session-context.js';
6
6
  export { A as AnyDocumentAddressing, D as DETACHED_EASEL_HOST, a as DocumentAddressing, E as EaselBlockType, b as EaselFieldDescription, c as EaselHost, d as EaselHostAddress, e as EaselHostContext, f as EaselHostPanels, g as EaselHostProvider, h as EaselMessageType, i as EaselSelection, j as EaselToHostMessage, F as FIELD_DESCRIPTION_MARKER, H as HostPickedMedia, k as HostToEaselMessage, I as InboundHostMessage, N as NO_DOCUMENT_ADDRESSING, P as PageEditOp, l as PickedMediaSource, S as SectionScreenTarget, m as SendToHost, n as createEaselHost, o as describedAs, u as useEaselHost, p as useHostEscape } from '../ScreenDocumentContext-JQr4hTeP.js';
@@ -10,7 +10,7 @@ import '../blocks/index.js';
10
10
  import '../types-BljCVdzR.js';
11
11
  import '../data/index.js';
12
12
  import '../types-Dq180WRV.js';
13
- import '../phone-order-CRKvsTsz.js';
13
+ import '../phone-order-BCM_f8A1.js';
14
14
  import '../plan-D0DgSLnY.js';
15
15
  import '../CanvasDragLayer-DXeQGrwJ.js';
16
16
  import '../watch-Unf6SfUf.js';
@@ -1 +1 @@
1
- import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-2Y4CAWZQ.js";import"../chunk-GXQCZJOP.js";export{ScreenStoreProvider}from"../chunk-JI7GUM3C.js";import"../chunk-ZSP4ZAQ2.js";import"../chunk-UMBNBCL4.js";import"../chunk-OXZDSOZV.js";import"../chunk-7OCEPOEJ.js";import"../chunk-VNUXFD4X.js";import"../chunk-5XL2RXFU.js";import"../chunk-3QB2ZQXK.js";import"../chunk-ZNLODQD4.js";import"../chunk-22I55W37.js";import"../chunk-64NREOML.js";import"../chunk-LUOY3A3Q.js";import"../chunk-3RGHXL5V.js";import"../chunk-KCBEE2MC.js";import"../chunk-TQUEVJOO.js";import"../chunk-OSF2H3LO.js";import"../chunk-PTTQWCD7.js";import"../chunk-XV5D4V2T.js";import"../chunk-2EEYFRQM.js";import"../chunk-RKTF5XLP.js";import"../chunk-OB4KI2AN.js";import"../chunk-JUJEVGLY.js";import"../chunk-ERR437B5.js";import"../chunk-5HYVOOH3.js";import"../chunk-A5USZ6Z6.js";export{NO_DOCUMENT_ADDRESSING}from"../chunk-RLBXE4EU.js";import"../chunk-6V6LC7QV.js";import"../chunk-7YXWWMBM.js";import"../chunk-NQW6XCAY.js";import"../chunk-LOMEH6DG.js";import"../chunk-5545A3PC.js";import"../chunk-YCYGY54I.js";import"../chunk-GDO4QJ4G.js";import"../chunk-IZGFJWH4.js";import"../chunk-N7E6264U.js";import"../chunk-N3MJOHAG.js";import"../chunk-MTWQYLJE.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-DCBUJ36Q.js";import"../chunk-T2RINM7R.js";import"../chunk-NCXYC7WI.js";import"../chunk-M5UCPD66.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-3OOYGEJY.js";import"../chunk-G2VZ4DET.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-HGTDDSFJ.js";import"../chunk-LK56FUFT.js";import"../chunk-TBY3DFKS.js";import"../chunk-SDSBXW3V.js";import"../chunk-BPXEFVSQ.js";import"../chunk-YCSZAP7T.js";import"../chunk-TDEBPOWV.js";import"../chunk-WHS6Y55E.js";import"../chunk-D4TH4QQR.js";import"../chunk-K56YDHYQ.js";import"../chunk-56ID6FKZ.js";import"../chunk-LDHUPZBK.js";import"../chunk-P5VYGWYO.js";import"../chunk-WK3AFPXY.js";import"../chunk-TF6NAIV7.js";import"../chunk-ZKY45F5G.js";import"../chunk-FIVU2COQ.js";import"../chunk-NDRZP6YR.js";import"../chunk-H6DDIBQ4.js";import"../chunk-VTY7OQB5.js";import"../chunk-MJM6SFD3.js";import"../chunk-AJSDWWJW.js";import"../chunk-2OAZYSWJ.js";import"../chunk-G7J6SGMF.js";import"../chunk-RE4LP46F.js";import"../chunk-MNQDOSAX.js";import"../chunk-PMRN5Z3T.js";import"../chunk-ANBPE45L.js";import"../chunk-C63IB4VW.js";import"../chunk-DX3VILZ3.js";import"../chunk-MIX7EGRG.js";import"../chunk-UMTUKSE6.js";import"../chunk-MFIRYGHW.js";import"../chunk-DQSRGKSM.js";import"../chunk-TQ5Y6S2X.js";import"../chunk-QEEW4X64.js";import"../chunk-P2VEMZH5.js";import"../chunk-6GJEOER4.js";import"../chunk-FR7EEKFF.js";import"../chunk-7UFKEX72.js";import"../chunk-YDTEYXQW.js";import"../chunk-KXM6YRG2.js";import"../chunk-BSPCSC45.js";import"../chunk-467WWV4I.js";import"../chunk-TIAWIOGD.js";import"../chunk-MGVI67QV.js";
1
+ import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-TWXA55SR.js";import"../chunk-GXQCZJOP.js";export{ScreenStoreProvider}from"../chunk-4JPAVKV6.js";import"../chunk-7WONGRN3.js";import"../chunk-UMBNBCL4.js";import"../chunk-OXZDSOZV.js";import"../chunk-7OCEPOEJ.js";import"../chunk-VNUXFD4X.js";import"../chunk-5XL2RXFU.js";import"../chunk-3QB2ZQXK.js";import"../chunk-ZNLODQD4.js";import"../chunk-22I55W37.js";import"../chunk-64NREOML.js";import"../chunk-LUOY3A3Q.js";import"../chunk-DFLPDOZF.js";import"../chunk-KCBEE2MC.js";import"../chunk-TQUEVJOO.js";import"../chunk-2DFSODES.js";import"../chunk-KRONK73U.js";import"../chunk-XV5D4V2T.js";import"../chunk-2EEYFRQM.js";import"../chunk-RKTF5XLP.js";import"../chunk-OB4KI2AN.js";import"../chunk-JUJEVGLY.js";import"../chunk-ERR437B5.js";import"../chunk-5HYVOOH3.js";import"../chunk-A5USZ6Z6.js";export{NO_DOCUMENT_ADDRESSING}from"../chunk-RLBXE4EU.js";import"../chunk-6V6LC7QV.js";import"../chunk-7YXWWMBM.js";import"../chunk-NQW6XCAY.js";import"../chunk-LOMEH6DG.js";import"../chunk-5545A3PC.js";import"../chunk-JEKFHCKS.js";import"../chunk-GDO4QJ4G.js";import"../chunk-IZGFJWH4.js";import"../chunk-N7E6264U.js";import"../chunk-N3MJOHAG.js";import"../chunk-MTWQYLJE.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-BDYS3UAD.js";import"../chunk-T2RINM7R.js";import"../chunk-NCXYC7WI.js";import"../chunk-WW24O7HT.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-G2VZ4DET.js";import"../chunk-3OOYGEJY.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-NMLAW6FI.js";import"../chunk-XT75WETI.js";import"../chunk-TBY3DFKS.js";import"../chunk-OHHODU7N.js";import"../chunk-BPXEFVSQ.js";import"../chunk-YCSZAP7T.js";import"../chunk-TDEBPOWV.js";import"../chunk-WHS6Y55E.js";import"../chunk-AI5IQV4A.js";import"../chunk-K56YDHYQ.js";import"../chunk-56ID6FKZ.js";import"../chunk-LDHUPZBK.js";import"../chunk-ZKY45F5G.js";import"../chunk-FIVU2COQ.js";import"../chunk-P5VYGWYO.js";import"../chunk-WK3AFPXY.js";import"../chunk-TF6NAIV7.js";import"../chunk-NDRZP6YR.js";import"../chunk-H6DDIBQ4.js";import"../chunk-VTY7OQB5.js";import"../chunk-MJM6SFD3.js";import"../chunk-AJSDWWJW.js";import"../chunk-2OAZYSWJ.js";import"../chunk-G7J6SGMF.js";import"../chunk-RE4LP46F.js";import"../chunk-IHYRYSP2.js";import"../chunk-PMRN5Z3T.js";import"../chunk-ANBPE45L.js";import"../chunk-C63IB4VW.js";import"../chunk-DX3VILZ3.js";import"../chunk-MIX7EGRG.js";import"../chunk-UMTUKSE6.js";import"../chunk-MFIRYGHW.js";import"../chunk-SEC6NV6Y.js";import"../chunk-TQ5Y6S2X.js";import"../chunk-QEEW4X64.js";import"../chunk-P2VEMZH5.js";import"../chunk-YDTEYXQW.js";import"../chunk-KXM6YRG2.js";import"../chunk-6GJEOER4.js";import"../chunk-FR7EEKFF.js";import"../chunk-7UFKEX72.js";import"../chunk-BSPCSC45.js";import"../chunk-467WWV4I.js";import"../chunk-TIAWIOGD.js";import"../chunk-MGVI67QV.js";
@@ -4,7 +4,7 @@ import '../../blocks/index.js';
4
4
  import '../../types-BljCVdzR.js';
5
5
  import '../../data/index.js';
6
6
  import '../../types-Dq180WRV.js';
7
- import '../../phone-order-CRKvsTsz.js';
7
+ import '../../phone-order-BCM_f8A1.js';
8
8
  import '../../plan-D0DgSLnY.js';
9
9
  import './backend-error.js';
10
10
  import '../../edit-lock/index.js';
@@ -1,5 +1,5 @@
1
1
  import './block-choice.js';
2
- export { at as AddTarget, au as AddTargetSource } from '../../../AddSidePanel-DoCx-ZrM.js';
2
+ export { au as AddTarget, av as AddTargetSource } from '../../../AddSidePanel-DwfZOS5C.js';
3
3
  import 'react';
4
4
  import '../../../CanvasDragLayer-DXeQGrwJ.js';
5
5
  import '../../../watch-Unf6SfUf.js';
@@ -11,7 +11,7 @@ import '../shared-section-types.js';
11
11
  import '../../../blocks/index.js';
12
12
  import '../../../types-BljCVdzR.js';
13
13
  import '../../../data/index.js';
14
- import '../../../phone-order-CRKvsTsz.js';
14
+ import '../../../phone-order-BCM_f8A1.js';
15
15
  import '../../../plan-D0DgSLnY.js';
16
16
  import '../../../types-SrGNzYeO.js';
17
17
  import '../../../types-Cy7rdmXt.js';
@@ -1 +1 @@
1
- import{buttonFieldSet as e}from"../../../chunk-I4Z75MCX.js";import"../../../chunk-MMHYTIUY.js";import{boxFieldSet as o}from"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-PLTTPHK5.js";import{foldMetaOf as t}from"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import{phoneKey as n}from"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";function s(e){return Object.keys(e).filter(o=>{return n=e[o],!(null!==t(n));var n})}function r(e,o){const n=o.off??{},s=o.keys??{};for(const[e,o]of Object.entries(n))if(!o.trim())throw new Error(`blockSetFor: off row "${e}" needs a reason.`);for(const o of[...Object.keys(n),...Object.keys(s)]){if(!Object.hasOwn(e,o))throw new Error(`blockSetFor: the set has no row "${o}".`);if(Object.hasOwn(n,o)&&Object.hasOwn(s,o))throw new Error(`blockSetFor: row "${o}" is both off and renamed.`)}const r={};let i=[];for(const[o,c]of Object.entries(e)){const a=t(c);if(a){i=i.filter(([,e])=>t(e).level<a.level),i.push([o,c]);continue}if(Object.hasOwn(n,o))continue;for(const[e,o]of i)r[e]=o;i=[];const u=Object.hasOwn(s,o)?s[o]:o;if(Object.hasOwn(r,u)||u!==o&&Object.hasOwn(e,u))throw new Error(`blockSetFor: renamed key "${u}" is already a row.`);r[u]=c}return r}function i(e){const o=e.build();r(o,e.email),r(o,e.website);const t=s(o),n=e=>new Set(Object.keys(e.off??{})),i=n(e.email),c=n(e.website),a=[];for(const o of t)i.has(o)&&!c.has(o)&&a.push({row:o,only:"website",reason:e.email.off[o]}),c.has(o)&&!i.has(o)&&a.push({row:o,only:"email",reason:e.website.off[o]});return a}var c=["button","image","box","divider","logo","text","section","social"],a={useFill:()=>"",useText:()=>"",useBorder:()=>({width:0,color:""}),useCorners:()=>0},u={button:{build:()=>e({follows:a,padding:{fallback:{}}}),email:{editor:"email"},website:{editor:"website"}},box:{build:()=>o(),email:{editor:"email",keys:{gap:"itemGap"},off:Object.fromEntries(["sectionPaddingTop","sectionPaddingRight","sectionPaddingBottom","sectionPaddingLeft"].map(e=>[n(e),"email: a Banner Box draws in the desktop view only (admin inBannerFields)"]))},website:{editor:"website"}}},h={button:"the set is in easel; admin (A-B) and web-builder (W-B) still build their own rows (plan group 1)",image:"no easel set yet (plan group 2)",box:"the set is in easel and the email Banner Box imports it; the website Flex builds its own rows (plan group 3)",divider:"no easel set yet (plan group 4)",logo:"no easel set yet (plan group 5)",text:"no easel set yet (plan group 6)",section:"no easel set yet (plan group 7)",social:"no easel set yet (plan group 7)"};export{c as BLOCK_KINDS,h as BLOCK_SETS_STILL_TWO_COPIES,u as BLOCK_SET_PAIRS,i as blockSetDifferences,r as blockSetFor,s as blockSetRowKeys};
1
+ import{buttonFieldSet as e}from"../../../chunk-2ODVRWRM.js";import"../../../chunk-PMDIDRDB.js";import{boxFieldSet as o}from"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-PLTTPHK5.js";import{foldMetaOf as t}from"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import{phoneKey as n}from"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";function s(e){return Object.keys(e).filter(o=>{return n=e[o],!(null!==t(n));var n})}function r(e,o){const n=o.off??{},s=o.keys??{};for(const[e,o]of Object.entries(n))if(!o.trim())throw new Error(`blockSetFor: off row "${e}" needs a reason.`);for(const o of[...Object.keys(n),...Object.keys(s)]){if(!Object.hasOwn(e,o))throw new Error(`blockSetFor: the set has no row "${o}".`);if(Object.hasOwn(n,o)&&Object.hasOwn(s,o))throw new Error(`blockSetFor: row "${o}" is both off and renamed.`)}const r={};let i=[];for(const[o,c]of Object.entries(e)){const a=t(c);if(a){i=i.filter(([,e])=>t(e).level<a.level),i.push([o,c]);continue}if(Object.hasOwn(n,o))continue;for(const[e,o]of i)r[e]=o;i=[];const u=Object.hasOwn(s,o)?s[o]:o;if(Object.hasOwn(r,u)||u!==o&&Object.hasOwn(e,u))throw new Error(`blockSetFor: renamed key "${u}" is already a row.`);r[u]=c}return r}function i(e){const o=e.build();r(o,e.email),r(o,e.website);const t=s(o),n=e=>new Set(Object.keys(e.off??{})),i=n(e.email),c=n(e.website),a=[];for(const o of t)i.has(o)&&!c.has(o)&&a.push({row:o,only:"website",reason:e.email.off[o]}),c.has(o)&&!i.has(o)&&a.push({row:o,only:"email",reason:e.website.off[o]});return a}var c=["button","image","box","divider","logo","text","section","social"],a={useFill:()=>"",useText:()=>"",useBorder:()=>({width:0,color:""}),useCorners:()=>0},u={button:{build:()=>e({follows:a,padding:{fallback:{}}}),email:{editor:"email"},website:{editor:"website"}},box:{build:()=>o(),email:{editor:"email",keys:{gap:"itemGap"},off:Object.fromEntries(["sectionPaddingTop","sectionPaddingRight","sectionPaddingBottom","sectionPaddingLeft"].map(e=>[n(e),"email: a Banner Box draws in the desktop view only (admin inBannerFields)"]))},website:{editor:"website"}}},h={button:"the set is in easel; admin (A-B) and web-builder (W-B) still build their own rows (plan group 1)",image:"no easel set yet (plan group 2)",box:"the set is in easel and the email Banner Box imports it; the website Flex builds its own rows (plan group 3)",divider:"no easel set yet (plan group 4)",logo:"no easel set yet (plan group 5)",text:"no easel set yet (plan group 6)",section:"no easel set yet (plan group 7)",social:"no easel set yet (plan group 7)"};export{c as BLOCK_KINDS,h as BLOCK_SETS_STILL_TWO_COPIES,u as BLOCK_SET_PAIRS,i as blockSetDifferences,r as blockSetFor,s as blockSetRowKeys};
@@ -12,7 +12,7 @@ import '../../../blocks/index.js';
12
12
  import '../../../types-BljCVdzR.js';
13
13
  import '../../../data/index.js';
14
14
  import '../../../types-Dq180WRV.js';
15
- import '../../../phone-order-CRKvsTsz.js';
15
+ import '../../../phone-order-BCM_f8A1.js';
16
16
  import '../../../plan-D0DgSLnY.js';
17
17
  import '../document-contract.js';
18
18
  import '../document-switch.js';
@@ -1 +1 @@
1
- import{noGlyph as t,boxFieldBuilders as i,PHONE_KEY_ACCESS as n,group as o,phoneTwinFields as r}from"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";import{BLOCK_WIDTH_LIMIT as h,BLOCK_FIXED_WIDTH as m,BLOCK_WIDTH_FIT_POINTS as e,BLOCK_WIDTH_FIT_DEFAULT as s,TEXT_FIT_MIN_FONT as c,TEXT_FIT_POINTS as p}from"../../../chunk-XH4BP64C.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";import{WidthIcon as u,TextLinesIcon as k}from"efficient-shell/icons/efficient";import{jsx as j}from"react/jsx-runtime";var d=t("a value or limit row under the Width and text-fit choices; drawn bare in the approved design (owner 2026-10-29, c25 row 4); no shell glyph names a min, max or fixed width");function a(t={}){const a=i(t.say),T=t.phone??n,F=(t,i)=>r(t,i,T),x=(t,i,n,o,r)=>F(t,a.slider(i,d,n.min,n.max,n.step,o,"px",{clear:r?{hint:o,emptyLabel:r}:{hint:o}}));return{size:{_gBlockSize:o("Size"),...F("widthFit",a.segmented("Width",/* @__PURE__ */j(u,{}),[...e],s)),...x("width","Fixed width",m,m.fallback),...x("minWidth","Min width",h,h.min,"None"),...x("maxWidth","Content width",h,h.min,"None")},text:t.textFit?{_gText:o("Text"),...F("textFit",a.segmented("When the text does not fit",/* @__PURE__ */j(k,{}),[...p],t.textFit)),...x("minFont","Min font size",c,c.fallback)}:{}}}export{a as blockSizeFieldSet};
1
+ import{noGlyph as t,boxFieldBuilders as i,PHONE_KEY_ACCESS as n,group as o,phoneTwinFields as r}from"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";import{BLOCK_WIDTH_LIMIT as h,BLOCK_FIXED_WIDTH as m,BLOCK_WIDTH_FIT_POINTS as e,BLOCK_WIDTH_FIT_DEFAULT as s,TEXT_FIT_MIN_FONT as c,TEXT_FIT_POINTS as p}from"../../../chunk-XH4BP64C.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";import{WidthIcon as u,TextLinesIcon as k}from"efficient-shell/icons/efficient";import{jsx as j}from"react/jsx-runtime";var d=t("a value or limit row under the Width and text-fit choices; drawn bare in the approved design (owner 2026-10-29, c25 row 4); no shell glyph names a min, max or fixed width");function a(t={}){const a=i(t.say),T=t.phone??n,x=(t,i)=>r(t,i,T),W=(t,i,n,o,r)=>x(t,a.slider(i,d,n.min,n.max,n.step,o,"px",{clear:r?{hint:o,emptyLabel:r}:{hint:o}}));return{size:{_gBlockSize:o("Size"),...x("widthFit",a.segmented("Width",/* @__PURE__ */j(u,{}),[...e],s)),...W("width","Fixed width",m,m.fallback),...W("minWidth","Min width",h,h.min,"None"),...W("maxWidth","Content width",h,h.min,"None")},text:t.textFit?{_gText:o("Text"),...x("textFit",a.segmented("When the text does not fit",/* @__PURE__ */j(k,{}),[...p],t.textFit)),...W("minFont","Min font size",c,c.fallback)}:{}}}export{a as blockSizeFieldSet};
@@ -11,7 +11,7 @@ import '../../../blocks/index.js';
11
11
  import '../../../types-BljCVdzR.js';
12
12
  import '../../../data/index.js';
13
13
  import '../../../types-Dq180WRV.js';
14
- import '../../../phone-order-CRKvsTsz.js';
14
+ import '../../../phone-order-BCM_f8A1.js';
15
15
  import '../../../plan-D0DgSLnY.js';
16
16
  import '../document-contract.js';
17
17
  import '../document-switch.js';
@@ -1 +1 @@
1
- export{ANCHOR_LABELS,AlignmentStrip,BOX_ALIGN_POINTS,BOX_DIRECTIONS,BOX_DIRECTION_LABEL,BOX_GAP,BOX_JUSTIFY_POINTS,BOX_NUDGE_LIMIT,BOX_PLACEMENTS,BOX_PLACEMENT_DEFAULT,BOX_WIDTH,BOX_WRAP_LABEL,BOX_WRAP_POINTS,BlockAlignmentStrip,FLAT_ACCESS,OPEN_PLACEMENT_POINTS,PHONE_KEY_ACCESS,PlacementGridView,SIDE_PAD_KEYS,Segmented,SliderControl,VIEW_KEY_ACCESS,alignmentField,alignmentFields,blockAlignmentField,blockAlignmentFields,boxAlignField,boxFieldBuilders,boxFieldSet,boxJustifyField,boxWrapField,directionField,gapField,group,iconOf,isNoGlyph,noGlyph,normaliseBoxPlacement,objectAccess,onDesktopWords,phoneObjectAccess,phoneTwinFields,placementField,positionFields,positionPatch,section,segmented,select,sharedStyleKinds,sidesFromObject,sidesPaddingFields,sidesPaddingPatch,sidesToObject,slider,useAccessPatch,useAccessValue}from"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";export{FIELD_DESCRIPTION_MARKER,describedAs}from"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";
1
+ export{ANCHOR_LABELS,AlignmentStrip,BOX_ALIGN_POINTS,BOX_DIRECTIONS,BOX_DIRECTION_LABEL,BOX_GAP,BOX_JUSTIFY_POINTS,BOX_NUDGE_LIMIT,BOX_PLACEMENTS,BOX_PLACEMENT_DEFAULT,BOX_WIDTH,BOX_WRAP_LABEL,BOX_WRAP_POINTS,BlockAlignmentStrip,FLAT_ACCESS,OPEN_PLACEMENT_POINTS,PHONE_KEY_ACCESS,PlacementGridView,SIDE_PAD_KEYS,Segmented,SliderControl,VIEW_KEY_ACCESS,alignmentField,alignmentFields,blockAlignmentField,blockAlignmentFields,boxAlignField,boxFieldBuilders,boxFieldSet,boxJustifyField,boxWrapField,directionField,gapField,group,iconOf,isNoGlyph,noGlyph,normaliseBoxPlacement,objectAccess,onDesktopWords,phoneObjectAccess,phoneTwinFields,placementField,positionFields,positionPatch,section,segmented,select,sharedStyleKinds,sidesFromObject,sidesPaddingFields,sidesPaddingPatch,sidesToObject,slider,useAccessPatch,useAccessValue}from"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";export{FIELD_DESCRIPTION_MARKER,describedAs}from"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";
@@ -13,7 +13,7 @@ import '../../../blocks/index.js';
13
13
  import '../../../types-BljCVdzR.js';
14
14
  import '../../../data/index.js';
15
15
  import '../../../types-Dq180WRV.js';
16
- import '../../../phone-order-CRKvsTsz.js';
16
+ import '../../../phone-order-BCM_f8A1.js';
17
17
  import '../../../plan-D0DgSLnY.js';
18
18
  import '../document-contract.js';
19
19
  import '../document-switch.js';
@@ -1 +1 @@
1
- export{buttonFieldSet}from"../../../chunk-I4Z75MCX.js";import"../../../chunk-MMHYTIUY.js";import"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";export{BUTTON_PAD_KEYS,BUTTON_STYLE_KEYS}from"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";
1
+ export{buttonFieldSet}from"../../../chunk-2ODVRWRM.js";import"../../../chunk-PMDIDRDB.js";import"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";export{BUTTON_PAD_KEYS,BUTTON_STYLE_KEYS}from"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";
@@ -12,7 +12,7 @@ import '../../../blocks/index.js';
12
12
  import '../../../types-BljCVdzR.js';
13
13
  import '../../../data/index.js';
14
14
  import '../../../types-Dq180WRV.js';
15
- import '../../../phone-order-CRKvsTsz.js';
15
+ import '../../../phone-order-BCM_f8A1.js';
16
16
  import '../../../plan-D0DgSLnY.js';
17
17
  import '../document-contract.js';
18
18
  import '../document-switch.js';
@@ -1,5 +1,5 @@
1
- import{SettingsDefaultReset as e}from"../../../chunk-2T22IY3J.js";import{ScreenDocumentContext as n}from"../../../chunk-OB4KI2AN.js";import"../../../chunk-JUJEVGLY.js";import"../../../chunk-ERR437B5.js";import{requestMediaPick as o}from"../../../chunk-5HYVOOH3.js";import"../../../chunk-A5USZ6Z6.js";import"../../../chunk-RLBXE4EU.js";import"../../../chunk-6V6LC7QV.js";import"../../../chunk-7YXWWMBM.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{useEaselHost as t}from"../../../chunk-LX23TCTP.js";import{DEFAULT_IMAGE_ROW_WORDS as r}from"../../../chunk-G2VZ4DET.js";import{MEDIA_FIELD_MARKER as i}from"../../../chunk-ANPOR6EY.js";import{useSelectedHost as c}from"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import{DEFAULT_PANEL_WORDS as s}from"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-NDRZP6YR.js";import"../../../chunk-H6DDIBQ4.js";import"../../../chunk-G7J6SGMF.js";import"../../../chunk-RE4LP46F.js";import{phoneKey as a}from"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import{SettingsField as m}from"../../../chunk-MIX7EGRG.js";import{useWords as l}from"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import{usePreviewDevice as u}from"../../../chunk-BSPCSC45.js";import{useContext as p,useState as h}from"react";import{FOCAL_DEFAULT as f}from"efficient-shell/format";import{MediaUploadField as k,Button as d,Input as j}from"efficient-shell/ui";import{jsx as g,jsxs as v}from"react/jsx-runtime";function C(e){return"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.src?e.src:""}function y({src:e,onChange:n,tidy:o,name:t}){const[r,i]=h(null),c=!r||e!==r.text&&e!==r.from?e:r.text;/* @__PURE__ */
2
- return g(j,{size:"md",type:"url",inputMode:"url",autoComplete:"off",spellCheck:!1,value:c,placeholder:"https://…","aria-label":t,onChange:o=>{const t=o.target.value;i(n=>({text:t,from:!n||e!==n.text&&e!==n.from?e:n.from})),n(t)},onBlur:e=>{const t=e.target.value,r=o?o(t):t;r!==t&&n(r),i(null)},onKeyDown:e=>{"Enter"===e.key&&e.currentTarget.blur()}})}function E({label:i,icon:j,hint:E,value:R,onChange:b,name:D,readOnly:F,canPick:O=!0,kind:B="image",accept:M,acceptHint:Y,pickOptions:N,maxSizeBytes:S,height:G,placeholder:K,removeLabel:L,paste:T,focusKey:P,focusWhen:H,frameKey:X,note:w}){const I=l("imageRow",r),x=l("panel",s),U=t(),V=c(),W=p(n),Z="video"===B,A=function(e,n){const o=c(),t="mobile"===u();if(!e||!o)return null;const r=o.values??{};if(n&&!n(r))return null;const i="string"==typeof r[e]&&r[e]?String(r[e]):f,s=a(e),m="string"==typeof r[s]&&r[s]?String(r[s]):void 0;return{phone:t,desktop:i,own:m,focus:t?m??i:i,set:n=>o.onChange(t?s:e,n),clear:()=>o.onChange(s,void 0)}}(Z?void 0:P,H),[J,Q]=h(!1),z=!0===F||!0===V?.readOnly,q=O&&!z;if(W&&!W.capabilities.mediaEditing)/* @__PURE__ */
3
- return g(m,{label:i,icon:j,hint:E,children:/* @__PURE__ */g("div",{className:"es-image-row-note",children:Z?I.templateVideo:I.template})});const $=X&&D?{video:D,frame:X}:null,_=$?e=>e?b(e):V?.onChangeMany({[$.video]:"",[$.frame]:""}):b,ee=$?e=>V?.onChangeMany({[$.video]:e,[$.frame]:""}):b,ne=C(R),oe=A?.phone&&ne?/* @__PURE__ */g(e,{words:x,label:I.focus,changed:Boolean(A.own),detail:I.onDesktop(A.desktop),onReset:A.clear,disabled:z}):void 0,te=T&&!z&&(T.open||J);/* @__PURE__ */
1
+ import{SettingsDefaultReset as e}from"../../../chunk-2T22IY3J.js";import{ScreenDocumentContext as n}from"../../../chunk-OB4KI2AN.js";import"../../../chunk-JUJEVGLY.js";import"../../../chunk-ERR437B5.js";import{requestMediaPick as o}from"../../../chunk-5HYVOOH3.js";import"../../../chunk-A5USZ6Z6.js";import"../../../chunk-RLBXE4EU.js";import"../../../chunk-6V6LC7QV.js";import"../../../chunk-7YXWWMBM.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{useEaselHost as t}from"../../../chunk-LX23TCTP.js";import{DEFAULT_IMAGE_ROW_WORDS as r}from"../../../chunk-G2VZ4DET.js";import{MEDIA_FIELD_MARKER as i}from"../../../chunk-ANPOR6EY.js";import{useSelectedHost as c}from"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import{DEFAULT_PANEL_WORDS as s}from"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-NDRZP6YR.js";import"../../../chunk-H6DDIBQ4.js";import"../../../chunk-G7J6SGMF.js";import"../../../chunk-RE4LP46F.js";import{phoneKey as a}from"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import{SettingsField as m}from"../../../chunk-MIX7EGRG.js";import{useWords as l}from"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import{usePreviewDevice as u}from"../../../chunk-BSPCSC45.js";import{useContext as p,useState as h}from"react";import{FOCAL_DEFAULT as f}from"efficient-shell/format";import{MediaUploadField as k,Button as d,Input as j}from"efficient-shell/ui";import{jsx as g,jsxs as v}from"react/jsx-runtime";function C(e){return"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.src?e.src:""}function y({src:e,onChange:n,tidy:o,name:t}){const[r,i]=h(null),c=!r||e!==r.text&&e!==r.from?e:r.text;/* @__PURE__ */
2
+ return g(j,{size:"md",type:"url",inputMode:"url",autoComplete:"off",spellCheck:!1,value:c,placeholder:"https://…","aria-label":t,onChange:o=>{const t=o.target.value;i(n=>({text:t,from:!n||e!==n.text&&e!==n.from?e:n.from})),n(t)},onBlur:e=>{const t=e.target.value,r=o?o(t):t;r!==t&&n(r),i(null)},onKeyDown:e=>{"Enter"===e.key&&e.currentTarget.blur()}})}function E({label:i,icon:j,hint:E,value:R,onChange:Y,name:b,readOnly:B,canPick:M=!0,kind:O="image",accept:F,acceptHint:N,pickOptions:D,maxSizeBytes:I,height:L,placeholder:P,removeLabel:S,paste:T,focusKey:G,focusWhen:K,frameKey:H,note:W}){const X=l("imageRow",r),w=l("panel",s),x=t(),V=c(),U=p(n),Z="video"===O,A=function(e,n){const o=c(),t="mobile"===u();if(!e||!o)return null;const r=o.values??{};if(n&&!n(r))return null;const i="string"==typeof r[e]&&r[e]?String(r[e]):f,s=a(e),m="string"==typeof r[s]&&r[s]?String(r[s]):void 0;return{phone:t,desktop:i,own:m,focus:t?m??i:i,set:n=>o.onChange(t?s:e,n),clear:()=>o.onChange(s,void 0)}}(Z?void 0:G,K),[J,Q]=h(!1),z=!0===B||!0===V?.readOnly,q=M&&!z;if(U&&!U.capabilities.mediaEditing)/* @__PURE__ */
3
+ return g(m,{label:i,icon:j,hint:E,children:/* @__PURE__ */g("div",{className:"es-image-row-note",children:Z?X.templateVideo:X.template})});const $=H&&b?{video:b,frame:H}:null,_=$?e=>e?Y(e):V?.onChangeMany({[$.video]:"",[$.frame]:""}):Y,ee=$?e=>V?.onChangeMany({[$.video]:e,[$.frame]:""}):Y,ne=C(R),oe=A?.phone&&ne?/* @__PURE__ */g(e,{words:w,label:X.focus,changed:Boolean(A.own),detail:X.onDesktop(A.desktop),onReset:A.clear,disabled:z}):void 0,te=T&&!z&&(T.open||J);/* @__PURE__ */
4
4
  return g(m,{label:i,icon:j,hint:E,action:oe,children:/* @__PURE__ */v("div",{className:"es-image-row",children:[
5
- /* @__PURE__ */g(k,{value:ne,onChange:_,onPick:e=>{if(q)return $&&!V?Promise.resolve(null):o(U,{accept:M??(Z?"video/*":"image/*"),title:i,...e?{file:e}:{},...N?{options:N}:{}}).then(e=>e&&$?(V?.onChangeMany({[$.video]:e.url,[$.frame]:e.posterUrl??""}),null):e?.url??null)},accept:M??(Z?"video/*":"image/*"),acceptHint:Y,kind:B,maxSizeBytes:S,height:G,placeholder:K,removeLabel:L,allowReplace:q,allowRemove:!z,disabled:z||!q&&!ne,focusLabel:I.focus,...A&&!z?{focus:A.focus,onFocusChange:A.set}:A?{focus:A.focus}:{}}),w?.(ne),T&&!z?te?/* @__PURE__ */g(y,{src:ne,onChange:ee,tidy:T.tidy,name:I.pasteName}):/* @__PURE__ */g(d,{variant:"link",size:"sm",onClick:()=>Q(!0),children:I.pasteLink}):null]})})}function R(e,n,o={}){return{type:"custom",[i]:!0,render:t=>/* @__PURE__ */g(E,{...o,label:e,icon:n,value:t.value,onChange:e=>t.onChange(e),name:t.name,readOnly:t.readOnly})}}export{E as ImageRow,R as imageField,C as imageValueSrc};
5
+ /* @__PURE__ */g(k,{value:ne,onChange:_,onPick:e=>{if(q)return $&&!V?Promise.resolve(null):o(x,{accept:F??(Z?"video/*":"image/*"),title:i,...e?{file:e}:{},...D?{options:D}:{}}).then(e=>e&&$?(V?.onChangeMany({[$.video]:e.url,[$.frame]:e.posterUrl??""}),null):e?.url??null)},accept:F??(Z?"video/*":"image/*"),acceptHint:N,kind:O,maxSizeBytes:I,height:L,placeholder:P,removeLabel:S,allowReplace:q,allowRemove:!z,disabled:z||!q&&!ne,focusLabel:X.focus,...A&&!z?{focus:A.focus,onFocusChange:A.set}:A?{focus:A.focus}:{}}),W?.(ne),T&&!z?te?/* @__PURE__ */g(y,{src:ne,onChange:ee,tidy:T.tidy,name:X.pasteName}):/* @__PURE__ */g(d,{variant:"link",size:"sm",onClick:()=>Q(!0),children:X.pasteLink}):null]})})}function R(e,n,o={}){return{type:"custom",[i]:!0,render:t=>/* @__PURE__ */g(E,{...o,label:e,icon:n,value:t.value,onChange:e=>t.onChange(e),name:t.name,readOnly:t.readOnly})}}export{E as ImageRow,R as imageField,C as imageValueSrc};
@@ -1,4 +1,4 @@
1
- import { N as NodeDefaults, ar as SlotSectionSpec, E as ScreenNodeMaker, y as ScreenNewNode } from '../../../AddSidePanel-DoCx-ZrM.js';
1
+ import { N as NodeDefaults, as as SlotSectionSpec, E as ScreenNodeMaker, y as ScreenNewNode } from '../../../AddSidePanel-DwfZOS5C.js';
2
2
  import 'react';
3
3
  import '../../../CanvasDragLayer-DXeQGrwJ.js';
4
4
  import '../../../watch-Unf6SfUf.js';
@@ -11,7 +11,7 @@ import './block-choice.js';
11
11
  import '../../../blocks/index.js';
12
12
  import '../../../types-BljCVdzR.js';
13
13
  import '../../../data/index.js';
14
- import '../../../phone-order-CRKvsTsz.js';
14
+ import '../../../phone-order-BCM_f8A1.js';
15
15
  import '../../../plan-D0DgSLnY.js';
16
16
  import '../../../types-SrGNzYeO.js';
17
17
  import '../../../types-Cy7rdmXt.js';
@@ -1,10 +1,10 @@
1
1
  import '../../../blocks/index.js';
2
- export { av as PaletteLook, aw as PalettePreset, ax as PaletteSection, ay as buildPaletteSections, az as categoryLabel, aA as matchesQuery, aB as paletteWithoutPinned, aC as pinnedSection } from '../../../AddSidePanel-DoCx-ZrM.js';
2
+ export { aw as PaletteLook, ax as PalettePreset, ay as PaletteSection, az as buildPaletteSections, aA as categoryLabel, aB as matchesQuery, aC as paletteWithoutPinned, aD as pinnedSection } from '../../../AddSidePanel-DwfZOS5C.js';
3
3
  import 'react';
4
4
  import '../../../types-BljCVdzR.js';
5
5
  import '../../../data/index.js';
6
6
  import '../../../types-Dq180WRV.js';
7
- import '../../../phone-order-CRKvsTsz.js';
7
+ import '../../../phone-order-BCM_f8A1.js';
8
8
  import '../../../plan-D0DgSLnY.js';
9
9
  import '../../../CanvasDragLayer-DXeQGrwJ.js';
10
10
  import '../../../watch-Unf6SfUf.js';
@@ -4,7 +4,7 @@ import 'react';
4
4
  import '../../../types-BljCVdzR.js';
5
5
  import '../../../data/index.js';
6
6
  import '../../../types-Dq180WRV.js';
7
- import '../../../phone-order-CRKvsTsz.js';
7
+ import '../../../phone-order-BCM_f8A1.js';
8
8
  import '../../../plan-D0DgSLnY.js';
9
9
 
10
10
  declare function nodeToDoc(node: TreeItem): Data;
@@ -13,7 +13,7 @@ import '../../../blocks/index.js';
13
13
  import '../../../types-BljCVdzR.js';
14
14
  import '../../../data/index.js';
15
15
  import '../../../types-Dq180WRV.js';
16
- import '../../../phone-order-CRKvsTsz.js';
16
+ import '../../../phone-order-BCM_f8A1.js';
17
17
  import '../../../plan-D0DgSLnY.js';
18
18
  import '../document-contract.js';
19
19
  import '../document-switch.js';
@@ -1,2 +1,2 @@
1
- import{DEFAULT_SHADOW_COLOR as o,DEFAULT_SHADOW as n,shadowValue as r,SHADOWS as i}from"../../../chunk-CRITA6CA.js";export{DEFAULT_SHADOW,DEFAULT_SHADOW_COLOR,SHADOWS,shadowValue}from"../../../chunk-CRITA6CA.js";import{styleFieldBuilders as t}from"../../../chunk-MMHYTIUY.js";import"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import{SettingsDefaultReset as s}from"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import{DEFAULT_PANEL_WORDS as e}from"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import{SettingsField as p}from"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import{useWords as c}from"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";import{ShadowIcon as h}from"efficient-shell/icons/efficient";import{IconPicker as u}from"efficient-shell/ui";import{jsx as l}from"react/jsx-runtime";var m={none:"None",soft:"Soft",lifted:"Lifted"},a={none:"none",soft:"0 1px 1px rgba(20, 20, 22, 0.10), 0 2px 4px -1px rgba(20, 20, 22, 0.14)",lifted:"0 1px 2px rgba(20, 20, 22, 0.10), 0 4px 7px -2px rgba(20, 20, 22, 0.30)"},k={display:"block",flex:"none",boxSizing:"border-box",width:16,height:11};function j({o:o,say:t,props:j}){const d=c("panel",e),f=o.builtIn??n,T=r(j.value),b=T??f,C=t(o.label);/* @__PURE__ */
2
- return l(p,{label:C,icon:o.icon??/* @__PURE__ */l(h,{}),value:t(m[b]),changed:null!==T,hint:o.hint,action:/* @__PURE__ */l(s,{words:d,label:C,changed:null!==T,detail:t(m[f]),onReset:()=>j.onChange(void 0),disabled:j.readOnly}),children:/* @__PURE__ */l(u,{label:C,value:b,options:i.map(o=>({value:o,label:t(m[o]),icon:/* @__PURE__ */l("span",{"data-shadow-chip":"",className:"border border-line bg-surface",style:{...k,boxShadow:a[o]}})})),onChange:o=>j.onChange(o),disabled:j.readOnly})})}function d(n=o=>o){const{colourField:r}=t(n);return{shadowField:o=>({type:"custom",render:r=>/* @__PURE__ */l(j,{o:o,say:n,props:r})}),shadowColourField:n=>{const i=n.follows??o;return r({key:n.key??"shadowColor",label:n.label,icon:/* @__PURE__ */l(h,{}),hint:n.hint,useFollows:()=>i})}}}var{shadowField:f,shadowColourField:T}=d();export{T as shadowColourField,f as shadowField,d as shadowFieldBuilders};
1
+ import{DEFAULT_SHADOW_COLOR as o,DEFAULT_SHADOW as n,shadowValue as r,SHADOWS as i}from"../../../chunk-CRITA6CA.js";export{DEFAULT_SHADOW,DEFAULT_SHADOW_COLOR,SHADOWS,shadowValue}from"../../../chunk-CRITA6CA.js";import{styleFieldBuilders as t}from"../../../chunk-PMDIDRDB.js";import"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import{SettingsDefaultReset as s}from"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import{DEFAULT_PANEL_WORDS as e}from"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import{SettingsField as p}from"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import{useWords as c}from"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";import{ShadowIcon as h}from"efficient-shell/icons/efficient";import{IconPicker as u}from"efficient-shell/ui";import{jsx as l}from"react/jsx-runtime";var m={none:"None",soft:"Soft",lifted:"Lifted"},a={none:"none",soft:"0 1px 1px rgba(20, 20, 22, 0.10), 0 2px 4px -1px rgba(20, 20, 22, 0.14)",lifted:"0 1px 2px rgba(20, 20, 22, 0.10), 0 4px 7px -2px rgba(20, 20, 22, 0.30)"},k={display:"block",flex:"none",boxSizing:"border-box",width:16,height:11};function j({o:o,say:t,props:j}){const d=c("panel",e),f=o.builtIn??n,b=r(j.value),T=b??f,C=t(o.label);/* @__PURE__ */
2
+ return l(p,{label:C,icon:o.icon??/* @__PURE__ */l(h,{}),value:t(m[T]),changed:null!==b,hint:o.hint,action:/* @__PURE__ */l(s,{words:d,label:C,changed:null!==b,detail:t(m[f]),onReset:()=>j.onChange(void 0),disabled:j.readOnly}),children:/* @__PURE__ */l(u,{label:C,value:T,options:i.map(o=>({value:o,label:t(m[o]),icon:/* @__PURE__ */l("span",{"data-shadow-chip":"",className:"border border-line bg-surface",style:{...k,boxShadow:a[o]}})})),onChange:o=>j.onChange(o),disabled:j.readOnly})})}function d(n=o=>o){const{colourField:r}=t(n);return{shadowField:o=>({type:"custom",render:r=>/* @__PURE__ */l(j,{o:o,say:n,props:r})}),shadowColourField:n=>{const i=n.follows??o;return r({key:n.key??"shadowColor",label:n.label,icon:/* @__PURE__ */l(h,{}),hint:n.hint,useFollows:()=>i})}}}var{shadowField:f,shadowColourField:b}=d();export{b as shadowColourField,f as shadowField,d as shadowFieldBuilders};
@@ -1,4 +1,4 @@
1
- export { as as NodeDefaults, ar as SlotSectionSpec } from '../../../AddSidePanel-DoCx-ZrM.js';
1
+ export { at as NodeDefaults, as as SlotSectionSpec } from '../../../AddSidePanel-DwfZOS5C.js';
2
2
  import 'react';
3
3
  import '../../../CanvasDragLayer-DXeQGrwJ.js';
4
4
  import '../../../watch-Unf6SfUf.js';
@@ -11,7 +11,7 @@ import './block-choice.js';
11
11
  import '../../../blocks/index.js';
12
12
  import '../../../types-BljCVdzR.js';
13
13
  import '../../../data/index.js';
14
- import '../../../phone-order-CRKvsTsz.js';
14
+ import '../../../phone-order-BCM_f8A1.js';
15
15
  import '../../../plan-D0DgSLnY.js';
16
16
  import '../../../types-SrGNzYeO.js';
17
17
  import '../../../types-Cy7rdmXt.js';
@@ -1,6 +1,6 @@
1
1
  import { StyleRow } from '../../../style-clipboard/index.js';
2
2
  import { S as StyleClipboardWords } from '../../../words-CnnHb9jo.js';
3
- import { T as ScreenStyleDocument, z as ScreenNode, U as ScreenStylePastePlan, R as ScreenStyleClipboard } from '../../../AddSidePanel-DoCx-ZrM.js';
3
+ import { U as ScreenStyleDocument, z as ScreenNode, V as ScreenStylePastePlan, T as ScreenStyleClipboard } from '../../../AddSidePanel-DwfZOS5C.js';
4
4
  import { panelFieldsOf } from './panel-fields.js';
5
5
  import '../../../types-BbOBWXMP.js';
6
6
  import 'react';
@@ -15,7 +15,7 @@ import './block-choice.js';
15
15
  import '../../../blocks/index.js';
16
16
  import '../../../types-BljCVdzR.js';
17
17
  import '../../../data/index.js';
18
- import '../../../phone-order-CRKvsTsz.js';
18
+ import '../../../phone-order-BCM_f8A1.js';
19
19
  import '../../../plan-D0DgSLnY.js';
20
20
  import '../../../types-SrGNzYeO.js';
21
21
  import '../../../types-Cy7rdmXt.js';
@@ -1 +1 @@
1
- export{copyNodeStyle,nodeStyleRows,planNodePaste,shopFieldKind,siteStyleScope,styleClipboardOf}from"../../../chunk-VNUXFD4X.js";import"../../../chunk-5XL2RXFU.js";import"../../../chunk-3QB2ZQXK.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-BPXEFVSQ.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";
1
+ export{copyNodeStyle,nodeStyleRows,planNodePaste,shopFieldKind,siteStyleScope,styleClipboardOf}from"../../../chunk-VNUXFD4X.js";import"../../../chunk-5XL2RXFU.js";import"../../../chunk-3QB2ZQXK.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-BPXEFVSQ.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";
@@ -13,7 +13,7 @@ import '../../../blocks/index.js';
13
13
  import '../../../types-BljCVdzR.js';
14
14
  import '../../../data/index.js';
15
15
  import '../../../types-Dq180WRV.js';
16
- import '../../../phone-order-CRKvsTsz.js';
16
+ import '../../../phone-order-BCM_f8A1.js';
17
17
  import '../../../plan-D0DgSLnY.js';
18
18
  import '../document-contract.js';
19
19
  import '../document-switch.js';
@@ -1 +1 @@
1
- export{BORDER_WIDTH_MAX,CORNER_RADIUS_MAX,borderField,colourField,cornersField,keptByRow,styleFieldBuilders}from"../../../chunk-MMHYTIUY.js";import"../../../chunk-SR2535CN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-6WY6ZXJG.js";export{CORNER_SIDES}from"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-HGTDDSFJ.js";import"../../../chunk-LK56FUFT.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-D4TH4QQR.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-MNQDOSAX.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-BSPCSC45.js";
1
+ export{BORDER_WIDTH_MAX,CORNER_RADIUS_MAX,borderField,colourField,cornersField,keptByRow,styleFieldBuilders}from"../../../chunk-PMDIDRDB.js";import"../../../chunk-36AWYQLN.js";import"../../../chunk-XWTQTANN.js";import"../../../chunk-2T22IY3J.js";import"../../../chunk-ZNLODQD4.js";import"../../../chunk-22I55W37.js";import"../../../chunk-LX23TCTP.js";import"../../../chunk-G2VZ4DET.js";import"../../../chunk-3OOYGEJY.js";import"../../../chunk-6WY6ZXJG.js";export{CORNER_SIDES}from"../../../chunk-PLTTPHK5.js";import"../../../chunk-ANPOR6EY.js";import"../../../chunk-NMLAW6FI.js";import"../../../chunk-XT75WETI.js";import"../../../chunk-TBY3DFKS.js";import"../../../chunk-YCSZAP7T.js";import"../../../chunk-AI5IQV4A.js";import"../../../chunk-56ID6FKZ.js";import"../../../chunk-LDHUPZBK.js";import"../../../chunk-TF6NAIV7.js";import"../../../chunk-OECWLNKJ.js";import"../../../chunk-DIOTWSCO.js";import"../../../chunk-IHYRYSP2.js";import"../../../chunk-PMRN5Z3T.js";import"../../../chunk-C63IB4VW.js";import"../../../chunk-DX3VILZ3.js";import"../../../chunk-MIX7EGRG.js";import"../../../chunk-UMTUKSE6.js";import"../../../chunk-MFIRYGHW.js";import"../../../chunk-YDTEYXQW.js";import"../../../chunk-KXM6YRG2.js";import"../../../chunk-6GJEOER4.js";import"../../../chunk-FR7EEKFF.js";import"../../../chunk-7UFKEX72.js";import"../../../chunk-BSPCSC45.js";
@@ -1,11 +1,40 @@
1
1
  import { N as NodeSelection } from '../../../plan-D0DgSLnY.js';
2
2
  import { Data } from '../../../blocks/index.js';
3
+ import { I as InsertNodeOptions } from '../../../AddSidePanel-DwfZOS5C.js';
3
4
  import { TreeItem } from './content-tree.js';
4
5
  import '../../../types-Dq180WRV.js';
5
6
  import 'react';
6
7
  import '../../../types-BljCVdzR.js';
7
8
  import '../../../data/index.js';
8
- import '../../../phone-order-CRKvsTsz.js';
9
+ import '../../../phone-order-BCM_f8A1.js';
10
+ import '../../../CanvasDragLayer-DXeQGrwJ.js';
11
+ import '../../../watch-Unf6SfUf.js';
12
+ import '../../../words-SD4neL0n.js';
13
+ import '../section-template-types.js';
14
+ import '../shared-section-types.js';
15
+ import './block-choice.js';
16
+ import '../../../types-SrGNzYeO.js';
17
+ import '../../../types-Cy7rdmXt.js';
18
+ import '../../../wordFit-7XpmhcaW.js';
19
+ import '../../../edit-lock/index.js';
20
+ import '../../../panelWidths-DgQXiPXU.js';
21
+ import '../../../copy-place-CQIemdtU.js';
22
+ import '../../../types-BbOBWXMP.js';
23
+ import '../../../style-clipboard/index.js';
24
+ import '../../../words-CnnHb9jo.js';
25
+ import '../../../types-CoUTWUwB.js';
26
+ import 'efficient-shell/ui';
27
+ import '../../../words-Cl9xMUYY.js';
28
+ import '../../../ScreenDocumentContext-JQr4hTeP.js';
29
+ import '../document-contract.js';
30
+ import '../document-switch.js';
31
+ import '../../../engine-CvXpFE86.js';
32
+ import '../admin-bridge.js';
33
+ import '../session.js';
34
+ import '../backend-error.js';
35
+ import '../host-chrome.js';
36
+ import '../links/link-filters.js';
37
+ import '../document-hooks.js';
9
38
 
10
39
  type NodeSelector = {
11
40
  index: number;
@@ -26,8 +55,12 @@ type SectionOps = {
26
55
  * (zone, index); returns its id. The same insert-then-replace pattern as
27
56
  * seedChild, one level up: how a saved section template lands in a page.
28
57
  * Callers pass a node whose ids are already fresh (cloneNodeWithFreshIds).
58
+ *
59
+ * `copy: true` says the node is a SAVED one (a section template), not one
60
+ * made now (a preset, a new section): it is resolved with trigger `"copy"`
61
+ * in place of `"insert"`, so its slots are the merchant's answers.
29
62
  */
30
- insertNode: (zone: string, index: number, node: TreeItem) => string;
63
+ insertNode: (zone: string, index: number, node: TreeItem, options?: InsertNodeOptions) => string;
31
64
  /** Remove the node at (zone, index). A normal dispatch, so Undo restores it. */
32
65
  removeComponent: (zone: string, index: number) => void;
33
66
  /**
@@ -83,7 +116,8 @@ type SectionOpsOptions = {
83
116
  */
84
117
  readOnly?: boolean;
85
118
  /**
86
- * Resolve each node an op puts in (`easel.resolveNode`, trigger `"insert"`).
119
+ * Resolve each node an op puts in (`easel.resolveNode`, trigger `"insert"`;
120
+ * `"copy"` for a saved node, `insertNode(…, { copy: true })`).
87
121
  * Default: the layer's rule (`ScreenBlockRules.resolveOnInsert`), else
88
122
  * false — no op resolves anything, as before 0.103.0.
89
123
  */