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,29 +1,29 @@
1
- import{SettingsSwitch as e}from"../chunk-OECWLNKJ.js";import{TEXT_STYLE_CASES as t}from"../chunk-53QUHEHK.js";import"../chunk-DIOTWSCO.js";import{selectionToVisible as n,selectionToSource as r,richLayout as l,createHistory as o,colorRunOf as a,textRange as s,selectionBox as c,placeWindow as i,offsetOrigin as u,visibleArea as d,styleChange as p,clearRangeOf as h,ColorWindow as m,markPress as f,pasteToMarkup as g,richInput as y,editVisible as v,MARKUP_CLIPBOARD_TYPE as b,markupOfRange as k}from"../chunk-MNQDOSAX.js";export{ColorWindow,MARKUP_CLIPBOARD_TYPE,TYPING_BURST_MS,clearRangeOf,colorRunOf,createHistory,editVisible,markupOfRange,newLine,pasteToMarkup,richInput,richLayout,selectionToSource,selectionToVisible,setBullet,startCanvasTyping,textMap,toSource,toSourceStart,toVisible}from"../chunk-MNQDOSAX.js";import{DEFAULT_COPY_WORDS as x}from"../chunk-PMRN5Z3T.js";import{FieldNumber as S}from"../chunk-ANBPE45L.js";import{FieldSelect as E}from"../chunk-C63IB4VW.js";import{SettingsSegmented as w}from"../chunk-DX3VILZ3.js";import{SettingsField as C}from"../chunk-MIX7EGRG.js";import"../chunk-UMTUKSE6.js";import{useWords as N}from"../chunk-MFIRYGHW.js";import{registerModalEscapeInterceptor as D,textToolbarRows as T,TextToolbar as O,textAlignWords as L,useShellStrings as R,textAlignOptions as K,TEXT_ALIGNS as j,LinkPicker as M,Tooltip as B,IconButton as F}from"efficient-shell/ui";export{TextToolbar}from"efficient-shell/ui";import{useRef as H,useState as V,useLayoutEffect as W,useEffect as $,useId as I}from"react";import{RETIRED_MARKS as P,applyMark as z,marksIn as U,STANDARD_MARKUP as q,listIn as A,colorIn as G,styleIn as X,clearStyle as Y,spanFor as _,findLink as Q,tokenizeInline as Z,colorOver as J,setList as ee,unlinkAt as te,removeLink as ne,linkOver as re,writeLink as le}from"efficient-shell/markup";import{jsxs as oe,jsx as ae,Fragment as se}from"react/jsx-runtime";import{ParagraphSpacingIcon as ce,LetterSpacingIcon as ie,LineSpacingIcon as ue,TextSizeIcon as de,StylesIcon as pe,TypeIcon as he,AlignmentIcon as me,ListFormatIcon as fe,CaseIcon as ge,ItalicIcon as ye,NumberedListIcon as ve,ListIcon as be,ListNoneIcon as ke,CaseLowerIcon as xe,CaseCapitalizedIcon as Se,CaseUpperIcon as Ee,CaseNormalIcon as we}from"efficient-shell/icons/efficient";function Ce(e,t,n,r,l){for(const o of l){if(o.kind!==n)continue;if(!e.startsWith(o.open,t))continue;const l=t+o.open.length;if(e.startsWith(r,l)&&e.startsWith(o.close,l+r.length))return o}return null}function Ne({value:e,rules:t=q,className:n,layerRef:r}){const l=function(e,t){const n=[];let r=0;for(const l of Z(e,t)){if("text"===l.kind){l.text.length>0&&(n.push({kind:"text",text:e.slice(r,r+l.text.length)}),r+=l.text.length);continue}const o=Ce(e,r,l.kind,l.text,t);if(!o)return[{kind:"text",text:e}];const a=r+o.open.length,s=a+l.text.length,c=s+o.close.length;n.push({kind:"delimiter",text:e.slice(r,a)}),n.push({kind:l.kind,text:e.slice(a,s)}),n.push({kind:"delimiter",text:e.slice(s,c)}),r=c}return n.map(e=>e.text).join("")!==e?[{kind:"text",text:e}]:n}(e,t);/* @__PURE__ */
2
- return ae("div",{ref:r,className:["es-gold-layer",n??""].filter(Boolean).join(" "),"aria-hidden":"true",children:l.map((e,t)=>function(e,t){const{kind:n,text:r}=e;switch(n){case"delimiter":/* @__PURE__ */
3
- return ae("span",{className:"es-gold-delim",children:r},t);case"accent":case"highlight":/* @__PURE__ */
4
- return ae("em",{className:"es-gold-mark es-gold-accent",children:r},t);case"bold":/* @__PURE__ */
5
- return ae("strong",{className:"es-gold-mark es-gold-bold",children:r},t);case"italic":/* @__PURE__ */
6
- return ae("em",{className:"es-gold-mark es-gold-italic",children:r},t);case"strike":/* @__PURE__ */
7
- return ae("s",{className:"es-gold-mark es-gold-strike",children:r},t);case"quiet":/* @__PURE__ */
8
- return ae("span",{className:"es-gold-mark es-gold-quiet",children:r},t);default:/* @__PURE__ */
9
- return ae("span",{className:"es-gold-text",children:r},t)}}(e,t))})}function De({value:e,onInput:t,onCommit:n,onCancel:r,multiline:l=!1,placeholder:o,className:a,rules:s=q,ariaLabel:c,disabled:i=!1,inputRef:u}){const d=H(null),p=H(e),h=H(!1);function m(e){h.current&&(h.current=!1,n?.(e))}/* @__PURE__ */
10
- return oe("div",{className:["es-gold",l?"es-gold-is-multiline":"es-gold-is-single",i?"es-gold-is-off":"",a??""].filter(Boolean).join(" "),children:[
11
- /* @__PURE__ */ae(Ne,{value:e,rules:s,layerRef:d}),o&&""===e?
12
- /* @__PURE__ */ae("div",{className:"es-gold-placeholder","aria-hidden":"true",children:o}):null,
13
- /* @__PURE__ */ae("textarea",{ref:u,className:"es-gold-input",disabled:i,value:e,placeholder:o,"aria-label":c,onChange:function(e){h.current=!0,t(e.currentTarget.value)},onFocus:function(){p.current=e,h.current=!1},onBlur:function(){m(e)},onKeyDown:function(t){return"Escape"===t.key?(t.preventDefault(),h.current=!1,void r?.(p.current)):"Enter"!==t.key||l?void 0:(t.preventDefault(),void m(e))},onScroll:function(e){const t=d.current;t&&(t.scrollTop=e.currentTarget.scrollTop,t.scrollLeft=e.currentTarget.scrollLeft)}})]})}function Te(e,t){const n=t?.selectionStart??e.length;return{start:n,end:t?.selectionEnd??n}}function Oe(e,t,n,r=z){const{start:l,end:o}=Te(e,n);return r(e,l,o,t)}function Le(e,t,n){const{start:r,end:l}=Te(e,n),o=r+t.length;return{text:e.slice(0,r)+t+e.slice(l),selectionStart:o,selectionEnd:o}}function Re(e,t,n,r,l){switch(t){case"bold":return e.createElement("strong");case"italic":return e.createElement("em");case"strike":return e.createElement("s");case"underline":return e.createElement("u");case"sup":return e.createElement("sup");case"sub":return e.createElement("sub");case"color":{const t=e.createElement("span");return t.className="es-rich-color",r&&(t.dataset.color=r,t.title=r.startsWith("#")?r.toUpperCase():r,t.style.color=r.startsWith("#")?r:`var(--es-color-${r}, inherit)`),t}case"link":{const t=e.createElement("a");return t.className="es-rich-link",n&&(t.title=n),t}default:{const n=e.createElement("span");return n.className="highlight"===t||"accent"===t?"es-rich-emphasis":`es-rich-${t}`,l&&(n.dataset.textStyle=l),n}}}function Ke(e,t,n,r){const l=e.layout.lines;if(n===t)return r>=e.lines.length?e.layout.text.length:l[r].vis;const o=e.lines.findIndex(e=>e===n||e.contains(n));if(-1===o)return 0;const a=t.ownerDocument.createRange();a.setStart(e.lines[o],0);try{a.setEnd(n,r)}catch{return l[o].vis}return l[o].vis+Math.min(a.toString().length,l[o].text.length)}function je(e,t){const n=e.layout.lines;let r=n.length-1;for(let e=0;e<n.length;e+=1)if(t<=n[e].vis+n[e].text.length){r=e;break}let l=Math.max(0,t-n[r].vis);const o=e.lines[r].ownerDocument.createTreeWalker(e.lines[r],4);let a=o.nextNode(),s=null;for(;a;){if(l<=a.data.length)return[a,l];l-=a.data.length,s=a,a=o.nextNode()}return s?[s,s.data.length]:[e.lines[r],0]}function Me({value:e,rules:t,multiline:o,readOnly:a=!1,placeholder:s,ariaLabel:c,handle:i,onEdit:u,onSelect:d,onHistory:p,onFormat:h,pending:m,onCommit:f,onCancel:x}){const S=H(null),E=H(null),w=H(null),C=H(null),N=H(null),D=H(e),[T,O]=V(0),L=H({value:e,rules:t,multiline:o,readOnly:a,pending:m,onEdit:u,onHistory:p,onFormat:h});L.current={value:e,rules:t,multiline:o,readOnly:a,pending:m,onEdit:u,onHistory:p,onFormat:h};const R=()=>{const e=S.current,t=E.current,n=e?.ownerDocument.getSelection();if(!(e&&t&&n&&0!==n.rangeCount&&n.anchorNode&&e.contains(n.anchorNode)))return null;const r=Ke(t,e,n.anchorNode,n.anchorOffset),l=n.focusNode&&e.contains(n.focusNode)?Ke(t,e,n.focusNode,n.focusOffset):r;return r<=l?[r,l]:[l,r]},K=(e,t)=>{const n=S.current,r=E.current;if(!n||!r)return;const[l,o]=je(r,e),[a,s]=je(r,t);n.ownerDocument.getSelection()?.setBaseAndExtent(l,o,a,s)};i.current={getSource(){const e=R(),t=E.current;if(!e||!t)return null;const[n,l]=r(t.layout,e[0],e[1]);return{start:n,end:l}},setSource(e,t,n){C.current={text:n,src:[e,t]},O(e=>e+1)},focus(){S.current?.focus()},rangeOf(e,t){const r=S.current,l=E.current;if(!r||!l)return null;const[o,a]=n(l.layout,e,t),[s,c]=je(l,o),[i,u]=je(l,a),d=r.ownerDocument.createRange();return d.setStart(s,c),d.setEnd(i,u),d}},W(()=>{const r=S.current;if(!r||N.current)return;const o=C.current?null:R();E.current=function(e,t){const n=e.ownerDocument;e.replaceChildren();const r=t.lines.map(t=>{const r=n.createElement("div");r.className=null!=t.number?"es-rich-line is-numbered":t.bullet?"es-rich-line is-bullet":"es-rich-line",null!=t.number&&(r.dataset.number=t.number);const l=[],o=()=>l.length?l[l.length-1].el:r;let a=null;for(const e of t.chars){let t=0;for(;t<l.length&&t<e.marks.length&&l[t].id===e.marks[t].id;)t+=1;(l.length>t||e.marks.length>t)&&(a=null),l.length=t;for(let r=t;r<e.marks.length;r+=1){const t=Re(n,e.marks[r].kind,e.marks[r].href,e.marks[r].color,e.marks[r].style);o().appendChild(t),l.push({id:e.marks[r].id,el:t})}a||(a=n.createTextNode(""),o().appendChild(a)),a.data+=e.ch}return 0===t.chars.length&&r.appendChild(n.createElement("br")),e.appendChild(r),r});return{layout:t,lines:r}}(r,l(e,t)),w.current=e;const a=C.current;if(!a||a.text!==e)return void(o&&r.ownerDocument.activeElement===r&&K(o[0],Math.min(o[1],E.current.layout.text.length)));C.current=null;const s=E.current.layout,[c,i]=a.vis??n(s,a.src[0],a.src[1]);r.ownerDocument.activeElement!==r&&r.focus(),K(c,i)},[e,t,T]);const j=(e,t,n)=>{const l=E.current,[o,a]=r(l.layout,t[0],t[1]);C.current={text:e.text,vis:[e.caret,e.caret]},e.text!==L.current.value?L.current.onEdit(e.text,{start:o,end:a},n):O(e=>e+1)};$(()=>{const e=S.current;if(!e)return;const t=t=>{const{value:n,rules:r,multiline:l,readOnly:o,pending:a}=L.current;if("insertCompositionText"===t.inputType)return;if(t.preventDefault(),o)return;const s=E.current,c=R();if(!s||!c)return;const i="function"==typeof t.getTargetRanges?t.getTargetRanges()[0]:void 0,u=i&&!i.collapsed?[Ke(s,e,i.startContainer,i.startOffset),Ke(s,e,i.endContainer,i.endOffset)]:null,d=y({value:n,rules:r,multiline:l,inputType:t.inputType,data:t.data??t.dataTransfer?.getData("text/plain")??"",html:t.dataTransfer?.getData("text/html"),doc:e.ownerDocument,sel:c,target:u,pending:a});d&&("history"!==d.kind?"format"!==d.kind?j(d.edit,d.range,d.kind):L.current.onFormat(d.style):L.current.onHistory(d.dir))},n=()=>{N.current||O(e=>e+1)};return e.addEventListener("beforeinput",t),e.addEventListener("input",n),()=>{e.removeEventListener("beforeinput",t),e.removeEventListener("input",n)}},[]),$(()=>{const e=S.current;if(!e)return;const t=e.ownerDocument,n=()=>{const e=i.current?.getSource();e&&d(e)};return t.addEventListener("selectionchange",n),()=>t.removeEventListener("selectionchange",n)});const M=(n,r=!1)=>{const l=R();if(!l||l[0]===l[1])return;n.preventDefault();const o=E.current;n.clipboardData.setData("text/plain",o.layout.text.slice(l[0],l[1])),n.clipboardData.setData(b,k(e,t,l[0],l[1])),r&&!a&&j(v(e,t,l[0],l[1],{text:""}),l,"edit")};/* @__PURE__ */
14
- return oe("div",{className:"es-rich-wrap",children:[s&&""===e?/* @__PURE__ */ae("div",{className:"es-rich-placeholder","aria-hidden":"true",children:s}):null,
15
- /* @__PURE__ */ae("div",{ref:S,className:`es-rich${o?" is-multiline":" is-single"}${a?" is-off":""}`,contentEditable:!a,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":o,"aria-label":c,"aria-readonly":a||void 0,"aria-placeholder":s,tabIndex:a?-1:0,spellCheck:!0,onFocus:()=>{D.current=e},onBlur:()=>{e!==D.current&&f?.(e),D.current=e},onKeyDown:t=>{if("Escape"===t.key)return t.preventDefault(),x?.(D.current),void(D.current=e);"Enter"!==t.key||o||(t.preventDefault(),e!==D.current&&f?.(e),D.current=e)},onCompositionStart:()=>{const e=R()??[0,0];N.current={from:e[0],to:e[1]}},onCompositionEnd:e=>{const t=N.current;if(N.current=null,!t)return;const{value:n,rules:r,pending:l}=L.current;e.data?j(v(n,r,t.from,t.to,{text:e.data,add:l?.add,drop:l?.drop,color:l?.color}),[t.from,t.to],"type"):O(e=>e+1)},onCopy:e=>M(e),onCut:e=>M(e,!0),onPaste:n=>{if(n.preventDefault(),a)return;const r=R();if(!r)return;const l=n.clipboardData.getData(b),s=l?o?l:l.replace(/\s*\r?\n\s*/g," "):g({html:n.clipboardData.getData("text/html"),text:n.clipboardData.getData("text/plain")},{doc:n.currentTarget.ownerDocument,multiline:o,rules:t});j(v(e,t,r[0],r[1],{markup:s}),r,"edit")}})]})}var Be={fontSize:{key:"fontSize",nameKey:"fontSize",icon:/* @__PURE__ */ae(de,{}),unit:"px",step:1,shiftStep:10,min:5},lineHeight:{key:"lineHeight",nameKey:"lineHeight",icon:/* @__PURE__ */ae(ue,{}),unit:"%",step:1,shiftStep:10,min:50,max:250,scale:100},letterSpacing:{key:"letterSpacing",nameKey:"letterSpacing",icon:/* @__PURE__ */ae(ie,{}),unit:"px",step:.1,shiftStep:1,min:-10},paragraphSpacing:{key:"paragraphSpacing",nameKey:"paragraphSpacing",icon:/* @__PURE__ */ae(ce,{}),unit:"px",step:1,shiftStep:10,min:0}};function Fe(e,t){return void 0===e?void 0:Number((e*t).toFixed(6))}function He({cells:e,words:t,readOnly:n=!1}){const r=t??x.cells,l=I();/* @__PURE__ */
16
- return ae("div",{className:"es-copy-cells-fit",children:/* @__PURE__ */ae("div",{className:"es-copy-cells",children:e.map(e=>{const t=e.scale??1,o=e.name??(e.nameKey?r[e.nameKey]:e.key),a=e.unit??"",s=e.step??1,c=`${l}-${e.key}`;/* @__PURE__ */
17
- return oe("div",{className:"es-copy-cell",children:[
18
- /* @__PURE__ */ae("label",{className:"es-field-label es-copy-cell-name",htmlFor:c,children:o}),
19
- /* @__PURE__ */ae(S,{id:c,value:Fe(e.value,t),styleValue:Fe(e.styleValue,t),onChange:n=>e.onChange(void 0===n?void 0:Number((n/t).toFixed(6))),min:e.min,max:e.max,step:s,shiftStep:e.shiftStep,icon:e.icon,unit:a||void 0,steppers:"compact",readOnly:n,ariaLabel:o,title:r.tip({name:o,step:s,unit:a})})]},e.key)})})})}function Ve({target:e,onChange:t}){const n=H(null);return W(()=>{const t=n.current,r=e.current;t&&r&&r.value===t.text&&(n.current=null,r.focus(),r.setSelectionRange(t.start,t.end))}),r=>{const l=r(e.current);t(l.text),n.current={start:l.selectionStart,end:l.selectionEnd,text:l.text}}}var We=/* @__PURE__ */new Set([...P,"clear"]);function $e({value:t,onChange:n,onCommit:r,onCancel:l,multiline:y=!1,placeholder:v,ariaLabel:b,className:k,readOnly:S=!1,rules:E,tools:w=[],writeMark:C,align:L,actions:R,toolbar:K,barLabel:j,renderFooter:B,inputRef:F,barShows:P="always",richText:Z=!0,defaultShowMarks:ce=!1,colors:ie,cells:ue,letterCase:de,lastTool:pe}){const he=N("copy",x),me=H(null),fe=F??me,[ge,ye]=V(!1),[ve,be]=V(null),ke=H(o()).current,xe=H(null);$(()=>{const e=xe.current;e&&t===e.to?xe.current=null:e&&t===e.from||(xe.current=null,ke.reset(),be(Te.current?.getSource()??null))},[t,ke]);const Se=e=>{xe.current={from:xe.current?.from??t,to:e},n(e)},Ee=e=>({text:t,start:e?.selectionStart??ve?.start??t.length,end:e?.selectionEnd??ve?.end??t.length}),[we,Ce]=V(ce),Ne=Z&&!(y&&we),Te=H(null),Re=I(),[Ke,je]=V(null),[Be,Fe]=V(!1),$e=()=>{if(!Ne)return fe.current;const e=Te.current?.getSource()??ve;return e?{selectionStart:e.start,selectionEnd:e.end}:null},Ie=Ve({target:fe,onChange:Se}),Pe=e=>(be({start:e.selectionStart,end:e.selectionEnd}),e),ze=(e,n)=>{if(!Ne)return void Ie(t=>(n&&ke.record(Ee(t),"edit",Date.now()),Pe(e(t))));const r=$e(),l=Pe(e(r));n&&ke.record(Ee(r),"edit",Date.now()),je(null),l.text!==t&&Se(l.text),Te.current?.setSource(l.selectionStart,l.selectionEnd,l.text)},Ue=e=>ze(e,!0),qe=e=>ze(t=>{const n=Ee(t),r=ke[e](n);return r?{text:r.text,selectionStart:r.start,selectionEnd:r.end}:{text:n.text,selectionStart:n.start,selectionEnd:n.end}},!1),Ae=H(null);W(()=>{const e=Ae.current;e&&(Ae.current=null,Ne?Te.current?.setSource(e.start,e.end,t):(fe.current?.focus(),fe.current?.setSelectionRange(e.start,e.end),be(e)))},[Ne]);const[Ge,Xe]=V(null),Ye=E??q,_e=("string"==typeof w[0]?w:w.map(e=>e.style)).filter(e=>!We.has(e)),Qe={};if(ve){const e=U(t,ve.start,ve.end,Ye);for(const t of _e){const n=e.has(t)||"highlight"===t&&e.has("accent");Qe[t]=!!Ke?.add.includes(t)||!Ke?.drop.includes(t)&&n}Qe.link=e.has("link")}const Ze=()=>{const e=$e(),n=e?.selectionStart??t.length;return{start:n,end:e?.selectionEnd??n}},Je=e=>{if("link"!==e&&_(0,e)){const{start:n,end:r}=Ze();if(n===r&&!Ne)return void Ue(n=>Oe(t,e,n,(e,t,n,r)=>z(e,t,n,r,Ye,he.placeholders)));const l=f({value:t,rules:Ye,start:n,end:r,style:e,pending:Ke});return void("pending"===l.kind?je(l.pending):Ue(()=>l.result))}if("link"!==e){const n=C??((e,t,n,r)=>z(e,t,n,r,q,he.placeholders));return void Ue(r=>Oe(t,e,r,n))}const n=$e(),r=n?.selectionStart??t.length,l=n?.selectionEnd??r;Fe(!1),Xe({start:r,end:l,link:Q(t,r,l)})},et=Boolean(ve&&ve.start!==ve.end),tt=ve?A(t,ve.start,ve.end,Ye):null,nt=ve?Ke&&void 0!==Ke.color&&Ke.at===ve.start?Ke.color:G(t,ve.start,ve.end,Ye):null,rt=a(nt,ie),lt=e=>{Ne?e?Te.current?.setSource(e.start,e.end,t):Te.current?.focus():(fe.current?.focus(),e&&fe.current?.setSelectionRange(e.start,e.end))},ot=()=>{const e=Ge;Xe(null),lt(e?{start:e.start,end:e.end}:ve)},at=()=>{const e=ct.current,t=Boolean(e&&e.querySelector(".es-copy-colors")?.contains(e.ownerDocument.activeElement));Fe(!1),t&&lt(ve)},st=H(at);st.current=at,$(()=>{if(Be)return D(e=>{const t=ct.current;return!!("Escape"===e.key&&t&&e.target instanceof Node&&t.contains(e.target))&&(st.current(),!0)},()=>ct.current?.querySelector(".es-copy-colors"))},[Be]);const ct=H(null),it=Be||null!==Ge;$(()=>{const e=ct.current;if(!it||!e)return;const t=e.ownerDocument,n=()=>{Fe(!1),Xe(null)},r=t=>{e.contains(t.target)||n()};let l;const o=r=>{const o=r.relatedTarget;o?e.contains(o)||n():(clearTimeout(l),l=setTimeout(()=>{const r=t.activeElement;t.hasFocus()&&r&&r!==t.body&&!e.contains(r)&&n()},0))};return t.addEventListener("pointerdown",r,!0),e.addEventListener("focusout",o),()=>{clearTimeout(l),t.removeEventListener("pointerdown",r,!0),e.removeEventListener("focusout",o)}},[it]);const ut=Ge??(Be?ve??{start:t.length,end:t.length}:null),dt=H(()=>{});dt.current=()=>{const e=ct.current,t=e?.querySelector(".rosh-tb-wrap > .es-copy-pop");if(!e||!t||!ut)return;const n=Ne?null:e.querySelector(".es-gold-layer"),r=Ne?Te.current?.rangeOf(ut.start,ut.end)??null:n?s(n,ut.start,ut.end):null,l=r?.endContainer,o=l?1===l.nodeType?l:l.parentElement:null,a=r?c(r,o?.closest(".es-rich-line, .es-gold-layer")??null):null;if(!a)return;const p=i({anchor:a,size:{width:t.offsetWidth,height:t.offsetHeight},within:e.getBoundingClientRect(),clip:d(e),parent:u(t)});t.style.top=`${p.top}px`,t.style.left=`${p.left}px`,t.style.setProperty("--es-pop-point",`${p.point}px`),t.dataset.side=p.above?"above":"below"},W(()=>{const e=ct.current;if(!it||!e)return;const t=()=>dt.current();t();const n=e.ownerDocument.defaultView;n?.addEventListener("resize",t);const r=e.querySelector(".rosh-tb-wrap > .es-copy-pop"),l=n?.ResizeObserver,o=l&&r?new l(t):null;return o&&r&&o.observe(r),()=>{n?.removeEventListener("resize",t),o?.disconnect()}},[it,Be,Ge,ut?.start,ut?.end,Ne]);const pt="always"===P||ge||null!==Ge||Be,ht=ie&&ie.length>0?{run:rt,open:Be,onToggle:()=>{Xe(null),Be?at():Fe(!0)}}:void 0,mt=pt?pe?pe({className:"rosh-tb-btn",disabled:S,selected:et,keepCaret:e=>e.preventDefault(),insert:e=>Ue(n=>Le(t,e,n)),style:et&&ve?X(t,ve.start,ve.end,Ye):null,applyStyle:e=>{if(S)return;const{start:n,end:r}=Ze();if(n===r)return;const l=p({value:t,start:n,end:r,id:e,rules:Ye});l?Ue(()=>l):((e,n)=>{be({start:e,end:n}),Ne?Te.current?.setSource(e,n,t):(fe.current?.focus(),fe.current?.setSelectionRange(e,n))})(n,r)}}):"classic"===K?R:void 0:void 0,ft=new Set(_e),gt=L?{value:L.value,allow:L.allow,onChange:L.onChange,disabled:L.disabled}:void 0,yt={pressed:tt,onList:e=>{const{start:n,end:r}=Ze(),l=A(t,n,r,Ye);Ue(()=>ee(t,n,r,l===e?null:e,Ye))}},vt=h(ve,t.length),bt=S||Y(t,vt.start,vt.end,Ye).text===t?void 0:{onClear:()=>{const{start:e,end:n}=h(Ze(),t.length);Ue(()=>Y(t,e,n,Ye))}},kt=T({offered:ft,color:ht,last:mt,alignment:gt,list:yt,letterCase:de,clear:bt});/* @__PURE__ */
20
- return oe("div",{ref:ct,className:"es-copy"+(k?` ${k}`:""),onFocus:()=>ye(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||ye(!1)},onKeyDown:e=>{const t=e.target===fe.current||Boolean(e.target.closest?.(".es-rich"));if(S||!t)return;if(e.altKey||e.metaKey===e.ctrlKey)return;const n=e.key.toLowerCase(),r="KeyZ"===e.code||"z"===n,l=("KeyY"===e.code||"y"===n)&&!e.shiftKey;if(r||l)return e.preventDefault(),e.stopPropagation(),void qe(l||e.shiftKey?"redo":"undo");const o={b:"bold",i:"italic",u:"underline",k:"link"}[`${e.shiftKey?"shift+":""}${n}`];o&&_e.includes(o)&&(e.preventDefault(),e.stopPropagation(),Je(o))},onPaste:e=>{const n=fe.current;if(S||!n||e.target!==n)return;e.preventDefault();const r=g({html:e.clipboardData.getData("text/html"),text:e.clipboardData.getData("text/plain")},{doc:n.ownerDocument,multiline:y,rules:Ye});Ue(e=>Le(t,r,e))},style:ie&&ie.length>0?Object.fromEntries(ie.map(e=>[`--es-color-${e.name}`,e.value])):void 0,onSelect:()=>{const e=fe.current;e&&e.ownerDocument.activeElement===e&&be({start:e.selectionStart??t.length,end:e.selectionEnd??t.length})},children:[pt&&(kt.words||kt.paragraph)?
21
- /* @__PURE__ */ae(O,{className:"es-copy-toolbar","aria-label":j??he.formatting,offered:ft,pressed:Qe,onMark:e=>Je(e),color:ht,linkOpen:null!==Ge,last:mt,alignment:gt,list:yt,letterCase:de,clear:bt,disabled:S,windows:/* @__PURE__ */oe(se,{children:[Be&&ie&&ie.length>0?/* @__PURE__ */ae(m,{colors:ie,current:nt,words:he.colors??x.colors,onPick:e=>{const{start:n,end:r}=Ze();if(n!==r)Ue(()=>J(t,n,r,e,Ye));else{if(!Ne)return;je({add:Ke?.add??[],drop:Ke?.drop??[],color:e,at:n})}}}):null,Ge?Ge&&/* @__PURE__ */ae(M,{className:"es-copy-link es-copy-pop",value:Ge.link?.href??"",onApply:e=>{const n=Ge;Xe(null),Ue(()=>Ne?re(t,n.start,n.end,e,Ye):le(t,n.start,n.end,e))},onRemove:Ge.link?()=>{const e=Ge.link,n=Ge;Xe(null),e&&Ue(()=>Ne?te(t,n.start,n.end,Ye):ne(t,e))}:void 0,onCancel:ot}):null]})}):null,ue&&ue.length>0?/* @__PURE__ */ae(He,{cells:ue,words:he.cells??x.cells,readOnly:S}):null,Ne?/* @__PURE__ */ae(Me,{value:t,rules:Ye,multiline:y,readOnly:S,placeholder:v,ariaLabel:b,handle:Te,pending:Ke??void 0,onEdit:(e,n,r)=>{ke.record({text:t,start:n.start,end:n.end},r,Date.now()),je(null),Se(e)},onSelect:e=>{be(t=>t&&t.start===e.start&&t.end===e.end?t:e),!Ke||e.start===Ke.at&&e.end===Ke.at||je(null)},onHistory:qe,onFormat:e=>{_e.includes(e)&&Je(e)},onCommit:r,onCancel:l}):/* @__PURE__ */ae(De,{value:t,onInput:e=>{ke.record(Ee(null),"type",Date.now()),Se(e)},onCommit:r,onCancel:l,multiline:y,placeholder:v,ariaLabel:b,rules:E,disabled:S,inputRef:fe,className:"es-copy-box"}),B?B({focused:ge,insert:e=>Ue(n=>Le(t,e,n))}):null,Z&&y?
22
- /* @__PURE__ */oe("div",{className:"es-copy-marks",children:[
23
- /* @__PURE__ */ae(e,{checked:we,onChange:()=>{const e=$e();Ae.current=e&&null!==e.selectionStart&&null!==e.selectionEnd?{start:e.selectionStart,end:e.selectionEnd}:ve,je(null),Ce(e=>!e)},ariaLabelledBy:Re,disabled:S}),
24
- /* @__PURE__ */ae("span",{id:Re,className:"es-copy-marks-label",children:he.showMarks??"Show marks"})]}):null]})}var Ie=["none","bullet","number"],Pe=t,ze={none:/* @__PURE__ */ae(ke,{}),bullet:/* @__PURE__ */ae(be,{}),number:/* @__PURE__ */ae(ve,{})},Ue={none:/* @__PURE__ */ae(we,{}),upper:/* @__PURE__ */ae(Ee,{}),capitalize:/* @__PURE__ */ae(Se,{}),lower:/* @__PURE__ */ae(xe,{})};function qe({label:e,icon:t,answers:n,names:r,glyphs:l,row:o,readOnly:a}){const s=o.value||o.styleValue||"";/* @__PURE__ */
25
- return ae(C,{label:e,icon:t,children:/* @__PURE__ */ae(w,{ariaLabel:e,value:s,disabled:a,onChange:e=>{a||o.onChange(function(e,t){return t===e.value||""===e.value&&t===e.styleValue?"":t}(o,e))},options:n.map(e=>({id:e,label:l[e],title:r[e]}))})})}function Ae({kept:e,keptHint:t,readOnly:n=!1,style:r,font:l,italic:o,cells:a,align:s,list:c,letterCase:i}){const u=N("copy",x),d=L(R().textToolbar),p=Object.fromEntries(K(j).map(e=>[e.value,e.icon])),h={...x.panel,...u.panel},m=r&&!n?[r.onEditStyles&&{label:h.editStyles,onSelect:r.onEditStyles},r.onUpdateStyle&&{label:h.updateStyle,onSelect:r.onUpdateStyle}].filter(e=>!!e):[],f=!!o&&(o.value??o.styleValue??!1),g=o?/* @__PURE__ */ae(B,{content:h.italic,children:/* @__PURE__ */ae(F,{size:"md",variant:"ghost","aria-label":h.italic,"aria-pressed":f,disabled:n,onClick:()=>{if(n)return;const e=!f;o.onChange(e===(o.styleValue??!1)?void 0:e)},children:/* @__PURE__ */ae(ye,{})})}):null;/* @__PURE__ */
26
- return oe("div",{className:"es-tpp",children:[e?/* @__PURE__ */oe("div",{className:"es-tpp-kept",children:[
27
- /* @__PURE__ */ae($e,{...e,readOnly:n||e.readOnly}),t?/* @__PURE__ */ae("p",{className:"es-field-hint",children:t}):null]}):null,r?/* @__PURE__ */ae(C,{label:h.style,icon:/* @__PURE__ */ae(pe,{}),children:/* @__PURE__ */ae(E,{ariaLabel:h.style,value:r.value,options:r.options,onChange:r.onChange,changed:r.changed,footer:m,readOnly:n})}):null,l?/* @__PURE__ */ae(C,{label:h.font,icon:/* @__PURE__ */ae(he,{}),children:/* @__PURE__ */oe("div",{className:"es-tpp-font",children:[
28
- /* @__PURE__ */ae("div",{className:"es-tpp-font-select",children:/* @__PURE__ */ae(E,{ariaLabel:h.font,value:l.value||void 0,placeholder:l.styleValue,options:l.options,onChange:l.onChange,searchable:l.searchable,readOnly:n})}),g]})}):g?
29
- /* @__PURE__ */ae(C,{label:h.italic,icon:/* @__PURE__ */ae(he,{}),children:/* @__PURE__ */ae("div",{className:"es-tpp-font",children:g})}):null,a?.length?/* @__PURE__ */ae(He,{cells:a,words:u.cells,readOnly:n}):null,s?/* @__PURE__ */ae(qe,{label:u.alignment,icon:/* @__PURE__ */ae(me,{}),answers:j.filter(e=>!s.allow||s.allow.includes(e)),names:d,glyphs:p,row:s,readOnly:n}):null,c?/* @__PURE__ */ae(qe,{label:h.list,icon:/* @__PURE__ */ae(fe,{}),answers:Ie,names:h.lists,glyphs:ze,row:c,readOnly:n}):null,i?/* @__PURE__ */ae(qe,{label:h.capitalization,icon:/* @__PURE__ */ae(ge,{}),answers:Pe,names:h.cases,glyphs:Ue,row:i,readOnly:n}):null]})}export{Be as COPY_CELLS,$e as CopyBox,He as CopyCells,Me as RichBox,Ae as TextPartPanel,Le as insertSelection,Oe as markSelection,Ve as useCaretEdit};
1
+ import{SettingsSwitch as e}from"../chunk-OECWLNKJ.js";import{TEXT_STYLE_CASES as t}from"../chunk-53QUHEHK.js";import"../chunk-DIOTWSCO.js";import{selectionToVisible as n,selectionToSource as r,richLayout as l,createHistory as o,colorRunOf as a,textRange as s,selectionBox as c,placeWindow as i,offsetOrigin as u,visibleArea as d,styleChange as p,clearRangeOf as h,ColorWindow as m,markPress as f,pasteToMarkup as g,richInput as y,editVisible as v,MARKUP_CLIPBOARD_TYPE as b,markupOfRange as k}from"../chunk-IHYRYSP2.js";export{ColorWindow,MARKUP_CLIPBOARD_TYPE,TYPING_BURST_MS,clearRangeOf,colorRunOf,createHistory,editVisible,markupOfRange,newLine,pasteToMarkup,richInput,richLayout,selectionToSource,selectionToVisible,setBullet,startCanvasTyping,textMap,toSource,toSourceStart,toVisible}from"../chunk-IHYRYSP2.js";import{DEFAULT_COPY_WORDS as x}from"../chunk-PMRN5Z3T.js";import{FieldNumber as S}from"../chunk-ANBPE45L.js";import{FieldSelect as E}from"../chunk-C63IB4VW.js";import{SettingsSegmented as w}from"../chunk-DX3VILZ3.js";import{SettingsField as C}from"../chunk-MIX7EGRG.js";import"../chunk-UMTUKSE6.js";import{useWords as N}from"../chunk-MFIRYGHW.js";import{registerModalEscapeInterceptor as D,textToolbarRows as T,TextToolbar as O,textAlignWords as L,useShellStrings as R,textAlignOptions as K,TEXT_ALIGNS as j,LinkPicker as B,Tooltip as H,IconButton as M}from"efficient-shell/ui";export{TextToolbar}from"efficient-shell/ui";import{useRef as $,useState as F,useLayoutEffect as I,useEffect as P,useId as W,useMemo as V}from"react";import{RETIRED_MARKS as z,applyMark as U,marksIn as Y,STANDARD_MARKUP as q,listIn as A,colorIn as G,styleIn as _,clearStyle as Z,spanFor as X,findLink as J,tokenizeInline as Q,colorOver as ee,setList as te,unlinkAt as ne,removeLink as re,linkOver as le,writeLink as oe}from"efficient-shell/markup";import{jsxs as ae,jsx as se,Fragment as ce}from"react/jsx-runtime";import{ParagraphSpacingIcon as ie,LetterSpacingIcon as ue,LineSpacingIcon as de,TextSizeIcon as pe,StylesIcon as he,TypeIcon as me,AlignmentIcon as fe,ListFormatIcon as ge,CaseIcon as ye,ItalicIcon as ve,NumberedListIcon as be,ListIcon as ke,ListNoneIcon as xe,CaseLowerIcon as Se,CaseCapitalizedIcon as Ee,CaseUpperIcon as we,CaseNormalIcon as Ce}from"efficient-shell/icons/efficient";function Ne(e,t,n,r,l){for(const o of l){if(o.kind!==n)continue;if(!e.startsWith(o.open,t))continue;const l=t+o.open.length;if(e.startsWith(r,l)&&e.startsWith(o.close,l+r.length))return o}return null}function De({value:e,rules:t=q,className:n,layerRef:r}){const l=function(e,t){const n=[];let r=0;for(const l of Q(e,t)){if("text"===l.kind){l.text.length>0&&(n.push({kind:"text",text:e.slice(r,r+l.text.length)}),r+=l.text.length);continue}const o=Ne(e,r,l.kind,l.text,t);if(!o)return[{kind:"text",text:e}];const a=r+o.open.length,s=a+l.text.length,c=s+o.close.length;n.push({kind:"delimiter",text:e.slice(r,a)}),n.push({kind:l.kind,text:e.slice(a,s)}),n.push({kind:"delimiter",text:e.slice(s,c)}),r=c}return n.map(e=>e.text).join("")!==e?[{kind:"text",text:e}]:n}(e,t);/* @__PURE__ */
2
+ return se("div",{ref:r,className:["es-gold-layer",n??""].filter(Boolean).join(" "),"aria-hidden":"true",children:l.map((e,t)=>function(e,t){const{kind:n,text:r}=e;switch(n){case"delimiter":/* @__PURE__ */
3
+ return se("span",{className:"es-gold-delim",children:r},t);case"accent":case"highlight":/* @__PURE__ */
4
+ return se("em",{className:"es-gold-mark es-gold-accent",children:r},t);case"bold":/* @__PURE__ */
5
+ return se("strong",{className:"es-gold-mark es-gold-bold",children:r},t);case"italic":/* @__PURE__ */
6
+ return se("em",{className:"es-gold-mark es-gold-italic",children:r},t);case"strike":/* @__PURE__ */
7
+ return se("s",{className:"es-gold-mark es-gold-strike",children:r},t);case"quiet":/* @__PURE__ */
8
+ return se("span",{className:"es-gold-mark es-gold-quiet",children:r},t);default:/* @__PURE__ */
9
+ return se("span",{className:"es-gold-text",children:r},t)}}(e,t))})}function Te({value:e,onInput:t,onCommit:n,onCancel:r,multiline:l=!1,placeholder:o,className:a,rules:s=q,ariaLabel:c,disabled:i=!1,inputRef:u}){const d=$(null),p=$(e),h=$(!1);function m(e){h.current&&(h.current=!1,n?.(e))}/* @__PURE__ */
10
+ return ae("div",{className:["es-gold",l?"es-gold-is-multiline":"es-gold-is-single",i?"es-gold-is-off":"",a??""].filter(Boolean).join(" "),children:[
11
+ /* @__PURE__ */se(De,{value:e,rules:s,layerRef:d}),o&&""===e?
12
+ /* @__PURE__ */se("div",{className:"es-gold-placeholder","aria-hidden":"true",children:o}):null,
13
+ /* @__PURE__ */se("textarea",{ref:u,className:"es-gold-input",disabled:i,value:e,placeholder:o,"aria-label":c,onChange:function(e){h.current=!0,t(e.currentTarget.value)},onFocus:function(){p.current=e,h.current=!1},onBlur:function(){m(e)},onKeyDown:function(t){return"Escape"===t.key?(t.preventDefault(),h.current=!1,void r?.(p.current)):"Enter"!==t.key||l?void 0:(t.preventDefault(),void m(e))},onScroll:function(e){const t=d.current;t&&(t.scrollTop=e.currentTarget.scrollTop,t.scrollLeft=e.currentTarget.scrollLeft)}})]})}function Oe(e,t){const n=t?.selectionStart??e.length;return{start:n,end:t?.selectionEnd??n}}function Le(e,t,n,r=U){const{start:l,end:o}=Oe(e,n);return r(e,l,o,t)}function Re(e,t,n){const{start:r,end:l}=Oe(e,n),o=r+t.length;return{text:e.slice(0,r)+t+e.slice(l),selectionStart:o,selectionEnd:o}}function Ke(e,t,n,r,l){switch(t){case"bold":return e.createElement("strong");case"italic":return e.createElement("em");case"strike":return e.createElement("s");case"underline":return e.createElement("u");case"sup":return e.createElement("sup");case"sub":return e.createElement("sub");case"color":{const t=e.createElement("span");return t.className="es-rich-color",r&&(t.dataset.color=r,t.title=r.startsWith("#")?r.toUpperCase():r,t.style.color=r.startsWith("#")?r:`var(--es-color-${r}, inherit)`),t}case"link":{const t=e.createElement("a");return t.className="es-rich-link",n&&(t.title=n),t}default:{const n=e.createElement("span");return n.className="highlight"===t||"accent"===t?"es-rich-emphasis":`es-rich-${t}`,l&&(n.dataset.textStyle=l),n}}}function je(e,t,n,r){const l=e.layout.lines;if(n===t)return r>=e.lines.length?e.layout.text.length:l[r].vis;const o=e.lines.findIndex(e=>e===n||e.contains(n));if(-1===o)return 0;const a=t.ownerDocument.createRange();a.setStart(e.lines[o],0);try{a.setEnd(n,r)}catch{return l[o].vis}return l[o].vis+Math.min(a.toString().length,l[o].text.length)}function Be(e,t){const n=e.layout.lines;let r=n.length-1;for(let e=0;e<n.length;e+=1)if(t<=n[e].vis+n[e].text.length){r=e;break}let l=Math.max(0,t-n[r].vis);const o=e.lines[r].ownerDocument.createTreeWalker(e.lines[r],4);let a=o.nextNode(),s=null;for(;a;){if(l<=a.data.length)return[a,l];l-=a.data.length,s=a,a=o.nextNode()}return s?[s,s.data.length]:[e.lines[r],0]}function He({value:e,rules:t,multiline:o,readOnly:a=!1,placeholder:s,ariaLabel:c,handle:i,onEdit:u,onSelect:d,onHistory:p,onFormat:h,pending:m,onCommit:f,onCancel:x}){const S=$(null),E=$(null),w=$(null),C=$(null),N=$(null),D=$(e),[T,O]=F(0),L=$({value:e,rules:t,multiline:o,readOnly:a,pending:m,onEdit:u,onHistory:p,onFormat:h});L.current={value:e,rules:t,multiline:o,readOnly:a,pending:m,onEdit:u,onHistory:p,onFormat:h};const R=()=>{const e=S.current,t=E.current,n=e?.ownerDocument.getSelection();if(!(e&&t&&n&&0!==n.rangeCount&&n.anchorNode&&e.contains(n.anchorNode)))return null;const r=je(t,e,n.anchorNode,n.anchorOffset),l=n.focusNode&&e.contains(n.focusNode)?je(t,e,n.focusNode,n.focusOffset):r;return r<=l?[r,l]:[l,r]},K=(e,t)=>{const n=S.current,r=E.current;if(!n||!r)return;const[l,o]=Be(r,e),[a,s]=Be(r,t);n.ownerDocument.getSelection()?.setBaseAndExtent(l,o,a,s)};i.current={getSource(){const e=R(),t=E.current;if(!e||!t)return null;const[n,l]=r(t.layout,e[0],e[1]);return{start:n,end:l}},setSource(e,t,n){C.current={text:n,src:[e,t]},O(e=>e+1)},focus(){S.current?.focus()},rangeOf(e,t){const r=S.current,l=E.current;if(!r||!l)return null;const[o,a]=n(l.layout,e,t),[s,c]=Be(l,o),[i,u]=Be(l,a),d=r.ownerDocument.createRange();return d.setStart(s,c),d.setEnd(i,u),d}},I(()=>{const r=S.current;if(!r||N.current)return;const o=C.current?null:R();E.current=function(e,t){const n=e.ownerDocument;e.replaceChildren();const r=t.lines.map(t=>{const r=n.createElement("div");r.className=null!=t.number?"es-rich-line is-numbered":t.bullet?"es-rich-line is-bullet":"es-rich-line",null!=t.number&&(r.dataset.number=t.number);const l=[],o=()=>l.length?l[l.length-1].el:r;let a=null;for(const e of t.chars){let t=0;for(;t<l.length&&t<e.marks.length&&l[t].id===e.marks[t].id;)t+=1;(l.length>t||e.marks.length>t)&&(a=null),l.length=t;for(let r=t;r<e.marks.length;r+=1){const t=Ke(n,e.marks[r].kind,e.marks[r].href,e.marks[r].color,e.marks[r].style);o().appendChild(t),l.push({id:e.marks[r].id,el:t})}a||(a=n.createTextNode(""),o().appendChild(a)),a.data+=e.ch}return 0===t.chars.length&&r.appendChild(n.createElement("br")),e.appendChild(r),r});return{layout:t,lines:r}}(r,l(e,t)),w.current=e;const a=C.current;if(!a||a.text!==e)return void(o&&r.ownerDocument.activeElement===r&&K(o[0],Math.min(o[1],E.current.layout.text.length)));C.current=null;const s=E.current.layout,[c,i]=a.vis??n(s,a.src[0],a.src[1]);r.ownerDocument.activeElement!==r&&r.focus(),K(c,i)},[e,t,T]);const j=(e,t,n)=>{const l=E.current,[o,a]=r(l.layout,t[0],t[1]);C.current={text:e.text,vis:[e.caret,e.caret]},e.text!==L.current.value?L.current.onEdit(e.text,{start:o,end:a},n):O(e=>e+1)};P(()=>{const e=S.current;if(!e)return;const t=t=>{const{value:n,rules:r,multiline:l,readOnly:o,pending:a}=L.current;if("insertCompositionText"===t.inputType)return;if(t.preventDefault(),o)return;const s=E.current,c=R();if(!s||!c)return;const i="function"==typeof t.getTargetRanges?t.getTargetRanges()[0]:void 0,u=i&&!i.collapsed?[je(s,e,i.startContainer,i.startOffset),je(s,e,i.endContainer,i.endOffset)]:null,d=y({value:n,rules:r,multiline:l,inputType:t.inputType,data:t.data??t.dataTransfer?.getData("text/plain")??"",html:t.dataTransfer?.getData("text/html"),doc:e.ownerDocument,sel:c,target:u,pending:a});d&&("history"!==d.kind?"format"!==d.kind?j(d.edit,d.range,d.kind):L.current.onFormat(d.style):L.current.onHistory(d.dir))},n=()=>{N.current||O(e=>e+1)};return e.addEventListener("beforeinput",t),e.addEventListener("input",n),()=>{e.removeEventListener("beforeinput",t),e.removeEventListener("input",n)}},[]),P(()=>{const e=S.current;if(!e)return;const t=e.ownerDocument,n=()=>{const e=i.current?.getSource();e&&d(e)};return t.addEventListener("selectionchange",n),()=>t.removeEventListener("selectionchange",n)});const B=(n,r=!1)=>{const l=R();if(!l||l[0]===l[1])return;n.preventDefault();const o=E.current;n.clipboardData.setData("text/plain",o.layout.text.slice(l[0],l[1])),n.clipboardData.setData(b,k(e,t,l[0],l[1])),r&&!a&&j(v(e,t,l[0],l[1],{text:""}),l,"edit")};/* @__PURE__ */
14
+ return ae("div",{className:"es-rich-wrap",children:[s&&""===e?/* @__PURE__ */se("div",{className:"es-rich-placeholder","aria-hidden":"true",children:s}):null,
15
+ /* @__PURE__ */se("div",{ref:S,className:`es-rich${o?" is-multiline":" is-single"}${a?" is-off":""}`,contentEditable:!a,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":o,"aria-label":c,"aria-readonly":a||void 0,"aria-placeholder":s,tabIndex:a?-1:0,spellCheck:!0,onFocus:()=>{D.current=e},onBlur:()=>{e!==D.current&&f?.(e),D.current=e},onKeyDown:t=>{if("Escape"===t.key)return t.preventDefault(),x?.(D.current),void(D.current=e);"Enter"!==t.key||o||(t.preventDefault(),e!==D.current&&f?.(e),D.current=e)},onCompositionStart:()=>{const e=R()??[0,0];N.current={from:e[0],to:e[1]}},onCompositionEnd:e=>{const t=N.current;if(N.current=null,!t)return;const{value:n,rules:r,pending:l}=L.current;e.data?j(v(n,r,t.from,t.to,{text:e.data,add:l?.add,drop:l?.drop,color:l?.color}),[t.from,t.to],"type"):O(e=>e+1)},onCopy:e=>B(e),onCut:e=>B(e,!0),onPaste:n=>{if(n.preventDefault(),a)return;const r=R();if(!r)return;const l=n.clipboardData.getData(b),s=l?o?l:l.replace(/\s*\r?\n\s*/g," "):g({html:n.clipboardData.getData("text/html"),text:n.clipboardData.getData("text/plain")},{doc:n.currentTarget.ownerDocument,multiline:o,rules:t});j(v(e,t,r[0],r[1],{markup:s}),r,"edit")}})]})}var Me={fontSize:{key:"fontSize",nameKey:"fontSize",icon:/* @__PURE__ */se(pe,{}),unit:"px",step:1,shiftStep:10,min:5},lineHeight:{key:"lineHeight",nameKey:"lineHeight",icon:/* @__PURE__ */se(de,{}),unit:"%",step:1,shiftStep:10,min:50,max:250,scale:100},letterSpacing:{key:"letterSpacing",nameKey:"letterSpacing",icon:/* @__PURE__ */se(ue,{}),unit:"px",step:.1,shiftStep:1,min:-10},paragraphSpacing:{key:"paragraphSpacing",nameKey:"paragraphSpacing",icon:/* @__PURE__ */se(ie,{}),unit:"px",step:1,shiftStep:10,min:0}};function $e(e,t){return void 0===e?void 0:Number((e*t).toFixed(6))}function Fe({cells:e,words:t,readOnly:n=!1}){const r=t??x.cells,l=W();/* @__PURE__ */
16
+ return se("div",{className:"es-copy-cells-fit",children:/* @__PURE__ */se("div",{className:"es-copy-cells",children:e.map(e=>{const t=e.scale??1,o=e.name??(e.nameKey?r[e.nameKey]:e.key),a=e.unit??"",s=e.step??1,c=`${l}-${e.key}`;/* @__PURE__ */
17
+ return ae("div",{className:"es-copy-cell",children:[
18
+ /* @__PURE__ */se("label",{className:"es-field-label es-copy-cell-name",htmlFor:c,children:o}),
19
+ /* @__PURE__ */se(S,{id:c,value:$e(e.value,t),styleValue:$e(e.styleValue,t),onChange:n=>e.onChange(void 0===n?void 0:Number((n/t).toFixed(6))),min:e.min,max:e.max,step:s,shiftStep:e.shiftStep,icon:e.icon,unit:a||void 0,steppers:"compact",readOnly:n,ariaLabel:o,title:r.tip({name:o,step:s,unit:a})})]},e.key)})})})}function Ie({target:e,onChange:t}){const n=$(null);return I(()=>{const t=n.current,r=e.current;t&&r&&r.value===t.text&&(n.current=null,r.focus(),r.setSelectionRange(t.start,t.end))}),r=>{const l=r(e.current);t(l.text),n.current={start:l.selectionStart,end:l.selectionEnd,text:l.text}}}var Pe=/* @__PURE__ */new Set([...z,"clear"]);function We({value:t,onChange:n,onCommit:r,onCancel:y,multiline:v=!1,placeholder:b,ariaLabel:k,className:S,readOnly:E=!1,rules:w,tools:C=[],writeMark:L,align:R,actions:K,toolbar:j,barLabel:H,renderFooter:M,inputRef:z,barShows:Q="always",richText:ie=!0,defaultShowMarks:ue=!1,colors:de,colorNameOf:pe,cells:he,letterCase:me,lastTool:fe}){const ge=N("copy",x),ye=$(null),ve=z??ye,[be,ke]=F(!1),[xe,Se]=F(null),Ee=$(o()).current,we=$(null);P(()=>{const e=we.current;e&&t===e.to?we.current=null:e&&t===e.from||(we.current=null,Ee.reset(),Se(je.current?.getSource()??null))},[t,Ee]);const Ce=e=>{we.current={from:we.current?.from??t,to:e},n(e)},Ne=e=>({text:t,start:e?.selectionStart??xe?.start??t.length,end:e?.selectionEnd??xe?.end??t.length}),[De,Oe]=F(ue),Ke=ie&&!(v&&De),je=$(null),Be=W(),[Me,$e]=F(null),[We,Ve]=F(!1),ze=()=>{if(!Ke)return ve.current;const e=je.current?.getSource()??xe;return e?{selectionStart:e.start,selectionEnd:e.end}:null},Ue=Ie({target:ve,onChange:Ce}),Ye=e=>(Se({start:e.selectionStart,end:e.selectionEnd}),e),qe=(e,n)=>{if(!Ke)return void Ue(t=>(n&&Ee.record(Ne(t),"edit",Date.now()),Ye(e(t))));const r=ze(),l=Ye(e(r));n&&Ee.record(Ne(r),"edit",Date.now()),$e(null),l.text!==t&&Ce(l.text),je.current?.setSource(l.selectionStart,l.selectionEnd,l.text)},Ae=e=>qe(e,!0),Ge=e=>qe(t=>{const n=Ne(t),r=Ee[e](n);return r?{text:r.text,selectionStart:r.start,selectionEnd:r.end}:{text:n.text,selectionStart:n.start,selectionEnd:n.end}},!1),_e=$(null);I(()=>{const e=_e.current;e&&(_e.current=null,Ke?je.current?.setSource(e.start,e.end,t):(ve.current?.focus(),ve.current?.setSelectionRange(e.start,e.end),Se(e)))},[Ke]);const[Ze,Xe]=F(null),Je=w??q,Qe=("string"==typeof C[0]?C:C.map(e=>e.style)).filter(e=>!Pe.has(e)),et={};if(xe){const e=Y(t,xe.start,xe.end,Je);for(const t of Qe){const n=e.has(t)||"highlight"===t&&e.has("accent");et[t]=!!Me?.add.includes(t)||!Me?.drop.includes(t)&&n}et.link=e.has("link")}const tt=()=>{const e=ze(),n=e?.selectionStart??t.length;return{start:n,end:e?.selectionEnd??n}},nt=e=>{if("link"!==e&&X(0,e)){const{start:n,end:r}=tt();if(n===r&&!Ke)return void Ae(n=>Le(t,e,n,(e,t,n,r)=>U(e,t,n,r,Je,ge.placeholders)));const l=f({value:t,rules:Je,start:n,end:r,style:e,pending:Me});return void("pending"===l.kind?$e(l.pending):Ae(()=>l.result))}if("link"!==e){const n=L??((e,t,n,r)=>U(e,t,n,r,q,ge.placeholders));return void Ae(r=>Le(t,e,r,n))}const n=ze(),r=n?.selectionStart??t.length,l=n?.selectionEnd??r;Ve(!1),Xe({start:r,end:l,link:J(t,r,l)})},rt=Boolean(xe&&xe.start!==xe.end),lt=xe?A(t,xe.start,xe.end,Je):null,ot=xe?Me&&void 0!==Me.color&&Me.at===xe.start?Me.color:G(t,xe.start,xe.end,Je):null,at=a(ot,de,pe),st=V(()=>{if(!de||0===de.length)return;const e=Object.fromEntries(de.map(e=>[`--es-color-${e.name}`,e.value]));if(pe)for(const n of l(t,Je).lines)for(const t of n.chars)for(const n of t.marks){const t=n.color;if(!t||t.startsWith("#")||`--es-color-${t}`in e)continue;const r=a(t,de,pe);r&&(e[`--es-color-${t}`]=r)}return e},[de,pe,t,Je]),ct=e=>{Ke?e?je.current?.setSource(e.start,e.end,t):je.current?.focus():(ve.current?.focus(),e&&ve.current?.setSelectionRange(e.start,e.end))},it=()=>{const e=Ze;Xe(null),ct(e?{start:e.start,end:e.end}:xe)},ut=()=>{const e=pt.current,t=Boolean(e&&e.querySelector(".es-copy-colors")?.contains(e.ownerDocument.activeElement));Ve(!1),t&&ct(xe)},dt=$(ut);dt.current=ut,P(()=>{if(We)return D(e=>{const t=pt.current;return!!("Escape"===e.key&&t&&e.target instanceof Node&&t.contains(e.target))&&(dt.current(),!0)},()=>pt.current?.querySelector(".es-copy-colors"))},[We]);const pt=$(null),ht=We||null!==Ze;P(()=>{const e=pt.current;if(!ht||!e)return;const t=e.ownerDocument,n=()=>{Ve(!1),Xe(null)},r=t=>{e.contains(t.target)||n()};let l;const o=r=>{const o=r.relatedTarget;o?e.contains(o)||n():(clearTimeout(l),l=setTimeout(()=>{const r=t.activeElement;t.hasFocus()&&r&&r!==t.body&&!e.contains(r)&&n()},0))};return t.addEventListener("pointerdown",r,!0),e.addEventListener("focusout",o),()=>{clearTimeout(l),t.removeEventListener("pointerdown",r,!0),e.removeEventListener("focusout",o)}},[ht]);const mt=Ze??(We?xe??{start:t.length,end:t.length}:null),ft=$(()=>{});ft.current=()=>{const e=pt.current,t=e?.querySelector(".rosh-tb-wrap > .es-copy-pop");if(!e||!t||!mt)return;const n=Ke?null:e.querySelector(".es-gold-layer"),r=Ke?je.current?.rangeOf(mt.start,mt.end)??null:n?s(n,mt.start,mt.end):null,l=r?.endContainer,o=l?1===l.nodeType?l:l.parentElement:null,a=r?c(r,o?.closest(".es-rich-line, .es-gold-layer")??null):null;if(!a)return;const p=i({anchor:a,size:{width:t.offsetWidth,height:t.offsetHeight},within:e.getBoundingClientRect(),clip:d(e),parent:u(t)});t.style.top=`${p.top}px`,t.style.left=`${p.left}px`,t.style.setProperty("--es-pop-point",`${p.point}px`),t.dataset.side=p.above?"above":"below"},I(()=>{const e=pt.current;if(!ht||!e)return;const t=()=>ft.current();t();const n=e.ownerDocument.defaultView;n?.addEventListener("resize",t);const r=e.querySelector(".rosh-tb-wrap > .es-copy-pop"),l=n?.ResizeObserver,o=l&&r?new l(t):null;return o&&r&&o.observe(r),()=>{n?.removeEventListener("resize",t),o?.disconnect()}},[ht,We,Ze,mt?.start,mt?.end,Ke]);const gt="always"===Q||be||null!==Ze||We,yt=de&&de.length>0?{run:at,open:We,onToggle:()=>{Xe(null),We?ut():Ve(!0)}}:void 0,vt=gt?fe?fe({className:"rosh-tb-btn",disabled:E,selected:rt,keepCaret:e=>e.preventDefault(),insert:e=>Ae(n=>Re(t,e,n)),style:rt&&xe?_(t,xe.start,xe.end,Je):null,applyStyle:e=>{if(E)return;const{start:n,end:r}=tt();if(n===r)return;const l=p({value:t,start:n,end:r,id:e,rules:Je});l?Ae(()=>l):((e,n)=>{Se({start:e,end:n}),Ke?je.current?.setSource(e,n,t):(ve.current?.focus(),ve.current?.setSelectionRange(e,n))})(n,r)}}):"classic"===j?K:void 0:void 0,bt=new Set(Qe),kt=R?{value:R.value,allow:R.allow,onChange:R.onChange,disabled:R.disabled}:void 0,xt={pressed:lt,onList:e=>{const{start:n,end:r}=tt(),l=A(t,n,r,Je);Ae(()=>te(t,n,r,l===e?null:e,Je))}},St=h(xe,t.length),Et=E||Z(t,St.start,St.end,Je).text===t?void 0:{onClear:()=>{const{start:e,end:n}=h(tt(),t.length);Ae(()=>Z(t,e,n,Je))}},wt=T({offered:bt,color:yt,last:vt,alignment:kt,list:xt,letterCase:me,clear:Et});/* @__PURE__ */
20
+ return ae("div",{ref:pt,className:"es-copy"+(S?` ${S}`:""),onFocus:()=>ke(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||ke(!1)},onKeyDown:e=>{const t=e.target===ve.current||Boolean(e.target.closest?.(".es-rich"));if(E||!t)return;if(e.altKey||e.metaKey===e.ctrlKey)return;const n=e.key.toLowerCase(),r="KeyZ"===e.code||"z"===n,l=("KeyY"===e.code||"y"===n)&&!e.shiftKey;if(r||l)return e.preventDefault(),e.stopPropagation(),void Ge(l||e.shiftKey?"redo":"undo");const o={b:"bold",i:"italic",u:"underline",k:"link"}[`${e.shiftKey?"shift+":""}${n}`];o&&Qe.includes(o)&&(e.preventDefault(),e.stopPropagation(),nt(o))},onPaste:e=>{const n=ve.current;if(E||!n||e.target!==n)return;e.preventDefault();const r=g({html:e.clipboardData.getData("text/html"),text:e.clipboardData.getData("text/plain")},{doc:n.ownerDocument,multiline:v,rules:Je});Ae(e=>Re(t,r,e))},style:de&&de.length>0?st:void 0,onSelect:()=>{const e=ve.current;e&&e.ownerDocument.activeElement===e&&Se({start:e.selectionStart??t.length,end:e.selectionEnd??t.length})},children:[gt&&(wt.words||wt.paragraph)?
21
+ /* @__PURE__ */se(O,{className:"es-copy-toolbar","aria-label":H??ge.formatting,offered:bt,pressed:et,onMark:e=>nt(e),color:yt,linkOpen:null!==Ze,last:vt,alignment:kt,list:xt,letterCase:me,clear:Et,disabled:E,windows:/* @__PURE__ */ae(ce,{children:[We&&de&&de.length>0?/* @__PURE__ */se(m,{colors:de,current:ot,nameOf:pe,words:ge.colors??x.colors,onPick:e=>{const{start:n,end:r}=tt();if(n!==r)Ae(()=>ee(t,n,r,e,Je));else{if(!Ke)return;$e({add:Me?.add??[],drop:Me?.drop??[],color:e,at:n})}}}):null,Ze?Ze&&/* @__PURE__ */se(B,{className:"es-copy-link es-copy-pop",value:Ze.link?.href??"",onApply:e=>{const n=Ze;Xe(null),Ae(()=>Ke?le(t,n.start,n.end,e,Je):oe(t,n.start,n.end,e))},onRemove:Ze.link?()=>{const e=Ze.link,n=Ze;Xe(null),e&&Ae(()=>Ke?ne(t,n.start,n.end,Je):re(t,e))}:void 0,onCancel:it}):null]})}):null,he&&he.length>0?/* @__PURE__ */se(Fe,{cells:he,words:ge.cells??x.cells,readOnly:E}):null,Ke?/* @__PURE__ */se(He,{value:t,rules:Je,multiline:v,readOnly:E,placeholder:b,ariaLabel:k,handle:je,pending:Me??void 0,onEdit:(e,n,r)=>{Ee.record({text:t,start:n.start,end:n.end},r,Date.now()),$e(null),Ce(e)},onSelect:e=>{Se(t=>t&&t.start===e.start&&t.end===e.end?t:e),!Me||e.start===Me.at&&e.end===Me.at||$e(null)},onHistory:Ge,onFormat:e=>{Qe.includes(e)&&nt(e)},onCommit:r,onCancel:y}):/* @__PURE__ */se(Te,{value:t,onInput:e=>{Ee.record(Ne(null),"type",Date.now()),Ce(e)},onCommit:r,onCancel:y,multiline:v,placeholder:b,ariaLabel:k,rules:w,disabled:E,inputRef:ve,className:"es-copy-box"}),M?M({focused:be,insert:e=>Ae(n=>Re(t,e,n))}):null,ie&&v?
22
+ /* @__PURE__ */ae("div",{className:"es-copy-marks",children:[
23
+ /* @__PURE__ */se(e,{checked:De,onChange:()=>{const e=ze();_e.current=e&&null!==e.selectionStart&&null!==e.selectionEnd?{start:e.selectionStart,end:e.selectionEnd}:xe,$e(null),Oe(e=>!e)},ariaLabelledBy:Be,disabled:E}),
24
+ /* @__PURE__ */se("span",{id:Be,className:"es-copy-marks-label",children:ge.showMarks??"Show marks"})]}):null]})}var Ve=["none","bullet","number"],ze=t,Ue={none:/* @__PURE__ */se(xe,{}),bullet:/* @__PURE__ */se(ke,{}),number:/* @__PURE__ */se(be,{})},Ye={none:/* @__PURE__ */se(Ce,{}),upper:/* @__PURE__ */se(we,{}),capitalize:/* @__PURE__ */se(Ee,{}),lower:/* @__PURE__ */se(Se,{})};function qe({label:e,icon:t,answers:n,names:r,glyphs:l,row:o,readOnly:a}){const s=o.value||o.styleValue||"";/* @__PURE__ */
25
+ return se(C,{label:e,icon:t,children:/* @__PURE__ */se(w,{ariaLabel:e,value:s,disabled:a,onChange:e=>{a||o.onChange(function(e,t){return t===e.value||""===e.value&&t===e.styleValue?"":t}(o,e))},options:n.map(e=>({id:e,label:l[e],title:r[e]}))})})}function Ae({kept:e,keptHint:t,readOnly:n=!1,style:r,font:l,italic:o,cells:a,align:s,list:c,letterCase:i}){const u=N("copy",x),d=L(R().textToolbar),p=Object.fromEntries(K(j).map(e=>[e.value,e.icon])),h={...x.panel,...u.panel},m=r&&!n?[r.onEditStyles&&{label:h.editStyles,onSelect:r.onEditStyles},r.onUpdateStyle&&{label:h.updateStyle,onSelect:r.onUpdateStyle}].filter(e=>!!e):[],f=!!o&&(o.value??o.styleValue??!1),g=o?/* @__PURE__ */se(H,{content:h.italic,children:/* @__PURE__ */se(M,{size:"md",variant:"ghost","aria-label":h.italic,"aria-pressed":f,disabled:n,onClick:()=>{if(n)return;const e=!f;o.onChange(e===(o.styleValue??!1)?void 0:e)},children:/* @__PURE__ */se(ve,{})})}):null;/* @__PURE__ */
26
+ return ae("div",{className:"es-tpp",children:[e?/* @__PURE__ */ae("div",{className:"es-tpp-kept",children:[
27
+ /* @__PURE__ */se(We,{...e,readOnly:n||e.readOnly}),t?/* @__PURE__ */se("p",{className:"es-field-hint",children:t}):null]}):null,r?/* @__PURE__ */se(C,{label:h.style,icon:/* @__PURE__ */se(he,{}),children:/* @__PURE__ */se(E,{ariaLabel:h.style,value:r.value,options:r.options,onChange:r.onChange,changed:r.changed,footer:m,readOnly:n})}):null,l?/* @__PURE__ */se(C,{label:h.font,icon:/* @__PURE__ */se(me,{}),children:/* @__PURE__ */ae("div",{className:"es-tpp-font",children:[
28
+ /* @__PURE__ */se("div",{className:"es-tpp-font-select",children:/* @__PURE__ */se(E,{ariaLabel:h.font,value:l.value||void 0,placeholder:l.styleValue,options:l.options,onChange:l.onChange,searchable:l.searchable,readOnly:n})}),g]})}):g?
29
+ /* @__PURE__ */se(C,{label:h.italic,icon:/* @__PURE__ */se(me,{}),children:/* @__PURE__ */se("div",{className:"es-tpp-font",children:g})}):null,a?.length?/* @__PURE__ */se(Fe,{cells:a,words:u.cells,readOnly:n}):null,s?/* @__PURE__ */se(qe,{label:u.alignment,icon:/* @__PURE__ */se(fe,{}),answers:j.filter(e=>!s.allow||s.allow.includes(e)),names:d,glyphs:p,row:s,readOnly:n}):null,c?/* @__PURE__ */se(qe,{label:h.list,icon:/* @__PURE__ */se(ge,{}),answers:Ve,names:h.lists,glyphs:Ue,row:c,readOnly:n}):null,i?/* @__PURE__ */se(qe,{label:h.capitalization,icon:/* @__PURE__ */se(ye,{}),answers:ze,names:h.cases,glyphs:Ye,row:i,readOnly:n}):null]})}export{Me as COPY_CELLS,We as CopyBox,Fe as CopyCells,He as RichBox,Ae as TextPartPanel,Re as insertSelection,Le as markSelection,Ie as useCaretEdit};
@@ -1,6 +1,6 @@
1
1
  import { N as Node, D as Data, a as DataConfig, S as SlotAddress, F as Found, P as Place, b as SlotEntry, W as WalkInfo } from '../types-Dq180WRV.js';
2
2
  export { B as BlockShape, c as FieldShape, d as FieldsShape, e as NodeProps, R as RootData } from '../types-Dq180WRV.js';
3
- export { P as PhoneOrder, R as ResolvableItem, a as ResolveCache, b as ResolveOptions, c as ResolveTrigger, d as carryPhoneOrder, e as changedProps, f as createResolveCache, g as deepEqual, i as isCustomPhoneOrder, m as movePhoneOrder, n as normalizePhoneOrder, r as resolveNodeData, s as settlePhoneOrder } from '../phone-order-CRKvsTsz.js';
3
+ export { P as PhoneOrder, R as ResolvableItem, a as ResolveCache, b as ResolveOptions, c as ResolveTrigger, d as carryPhoneOrder, e as changedProps, f as createResolveCache, g as deepEqual, i as isCustomPhoneOrder, m as movePhoneOrder, n as normalizePhoneOrder, r as resolveNodeData, s as settlePhoneOrder } from '../phone-order-BCM_f8A1.js';
4
4
 
5
5
  /**
6
6
  * Finding a node's slots, and reading or writing a value at a prop path.
@@ -1 +1 @@
1
- export{AddPanel,CanvasDragLayer,CanvasInsert,EMPTY_MEASURE,HANDLE_GRACE_MS,canvasTarget,contains,gapInZone,gapLine,insertSeams,measureCanvas,pickSource,seamsBetween,sourcesAt}from"../chunk-DQSRGKSM.js";import"../chunk-TQ5Y6S2X.js";export{AUTO_SCROLL_EDGE,AUTO_SCROLL_MAX_SPEED,autoScrollDelta,autoScrollSpeed,createDragSession,dropEffectFor,dropOnRow,frameScrollBox,gapToMoveIndex,isNoOpDrop,scrollBoxOf,scrollParent,startAutoScroll,stepGap,useTreeDrag}from"../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";
1
+ export{AddPanel,CanvasDragLayer,CanvasInsert,EMPTY_MEASURE,HANDLE_GRACE_MS,canvasTarget,contains,gapInZone,gapLine,insertSeams,measureCanvas,pickSource,seamsBetween,sourcesAt}from"../chunk-SEC6NV6Y.js";import"../chunk-TQ5Y6S2X.js";export{AUTO_SCROLL_EDGE,AUTO_SCROLL_MAX_SPEED,autoScrollDelta,autoScrollSpeed,createDragSession,dropEffectFor,dropOnRow,frameScrollBox,gapToMoveIndex,isNoOpDrop,scrollBoxOf,scrollParent,startAutoScroll,stepGap,useTreeDrag}from"../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";
@@ -4,13 +4,13 @@ export { I as ItemSelector } from '../plan-D0DgSLnY.js';
4
4
  import { E as EaselConfig, a as EaselView, b as EaselAction, P as Permissions, c as EaselCore, d as EaselUi } from '../types-BljCVdzR.js';
5
5
  export { A as AppState, e as EaselHistory, H as HistoryEntry, S as SetDataPatch } from '../types-BljCVdzR.js';
6
6
  import { S as SlotAddress, D as Data, a as DataConfig, P as Place, N as Node } from '../types-Dq180WRV.js';
7
- import { c as ResolveTrigger, a as ResolveCache, R as ResolvableItem } from '../phone-order-CRKvsTsz.js';
7
+ import { c as ResolveTrigger, a as ResolveCache, R as ResolvableItem } from '../phone-order-BCM_f8A1.js';
8
8
  import * as react from 'react';
9
9
  import { ReactNode, CSSProperties, ComponentType, ReactElement } from 'react';
10
10
  import { TextToolbarProps } from 'efficient-shell/ui';
11
11
  import { R as RepeatCopy } from '../copy-place-CQIemdtU.js';
12
12
  export { r as repeatCopyAt } from '../copy-place-CQIemdtU.js';
13
- import { C as CopyBoxLastTool, a as CopyThemeColor, b as CanvasTypingEnd } from '../canvas-typing-CD1aeYnk.js';
13
+ import { C as CopyBoxLastTool, a as CopyThemeColor, b as ColorNameOf, c as CanvasTypingEnd } from '../canvas-typing-B33ssbpU.js';
14
14
  import { InlineRule } from 'efficient-shell/markup';
15
15
  import { b as NodeOpsHost, C as ClipboardEntry } from '../useNodeOps-igxrnEhq.js';
16
16
  import { I as InspectorFields } from '../types-DcyH17ij.js';
@@ -488,6 +488,14 @@ interface CanvasTypingTarget {
488
488
  * colour is written by NAME, any colour as a hex. Left out, no colour button.
489
489
  */
490
490
  colors?: readonly CopyThemeColor[];
491
+ /**
492
+ * The host's map from a STORED colour name to the name of one of
493
+ * `colors` — the panel box's `colorNameOf` (`ColorNameOf`), for words
494
+ * saved before the host renamed a colour. Read only: the window lights
495
+ * and the A shows the mapped colour; the words are not rewritten until a
496
+ * person picks one. Left out, a stored name must match exactly.
497
+ */
498
+ colorNameOf?: ColorNameOf;
491
499
  };
492
500
  }
493
501
  type CanvasTypingState = {
@@ -1 +1 @@
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-HGTDDSFJ.js";export{repeatCopyAt}from"../chunk-LK56FUFT.js";import"../chunk-TBY3DFKS.js";import"../chunk-LDHUPZBK.js";import"../chunk-TF6NAIV7.js";import"../chunk-MNQDOSAX.js";import"../chunk-PMRN5Z3T.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";
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-NMLAW6FI.js";export{repeatCopyAt}from"../chunk-XT75WETI.js";import"../chunk-TBY3DFKS.js";import"../chunk-LDHUPZBK.js";import"../chunk-TF6NAIV7.js";import"../chunk-IHYRYSP2.js";import"../chunk-PMRN5Z3T.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";
@@ -6,7 +6,7 @@ import { ShowWhenContext } from 'efficient-shell/format';
6
6
  export { ShowWhenContext, ShowWhenRule, showWhenOf, withShowWhen } from 'efficient-shell/format';
7
7
  import { a as InspectorFieldDef, b as FieldRenderer, I as InspectorFields, c as FieldTextProps, d as FieldNumberProps, e as FieldSliderProps, f as FieldSelectManyProps, g as FieldSelectOneProps, F as FieldOption } from '../types-DcyH17ij.js';
8
8
  export { A as ArrayFieldDef, C as CustomFieldDef, h as CustomFieldRenderProps, i as FieldSelectProps, N as NumberFieldDef, O as ObjectFieldDef, R as RadioFieldDef, S as SelectFieldDef, j as SlotFieldDef, T as TextFieldDef, k as TextareaFieldDef } from '../types-DcyH17ij.js';
9
- import { R as ResolvableItem, P as PhoneOrder } from '../phone-order-CRKvsTsz.js';
9
+ import { R as ResolvableItem, P as PhoneOrder } from '../phone-order-BCM_f8A1.js';
10
10
  export { F as FieldsWords } from '../words-dNm6REMa.js';
11
11
  export { LinkFilter, LinkFilterField, LinkKindChoice, LinkOption, LinkOptionGroup, LinkPicker, LinkPickerProps, LinkRules, LinkTarget } from 'efficient-shell/ui';
12
12
  import '../types-Dq180WRV.js';
@@ -1 +1 @@
1
- export{FieldText,Inspector,InspectorField,LinkPicker,ListField,PhoneOrderField,bucketsOf,fieldShownInView,innerRowCount,insertAt,labelOf,moveTo,planFields,removeAt,rowViewState,viewReadsIn}from"../chunk-SDSBXW3V.js";export{fieldIsShown,showWhenOf,shownFields,withShowWhen}from"../chunk-BPXEFVSQ.js";import"../chunk-YCSZAP7T.js";export{FieldSlider}from"../chunk-TDEBPOWV.js";import"../chunk-WHS6Y55E.js";import"../chunk-D4TH4QQR.js";import"../chunk-K56YDHYQ.js";import"../chunk-56ID6FKZ.js";export{useResolvedFields}from"../chunk-LDHUPZBK.js";import"../chunk-FIVU2COQ.js";export{FieldNumber}from"../chunk-ANBPE45L.js";export{FieldSelect,optionFor}from"../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";
1
+ export{FieldText,Inspector,InspectorField,LinkPicker,ListField,PhoneOrderField,bucketsOf,fieldShownInView,innerRowCount,insertAt,labelOf,moveTo,planFields,removeAt,rowViewState,viewReadsIn}from"../chunk-OHHODU7N.js";export{fieldIsShown,showWhenOf,shownFields,withShowWhen}from"../chunk-BPXEFVSQ.js";import"../chunk-YCSZAP7T.js";export{FieldSlider}from"../chunk-TDEBPOWV.js";import"../chunk-WHS6Y55E.js";import"../chunk-AI5IQV4A.js";import"../chunk-K56YDHYQ.js";import"../chunk-56ID6FKZ.js";export{useResolvedFields}from"../chunk-LDHUPZBK.js";import"../chunk-FIVU2COQ.js";export{FieldNumber}from"../chunk-ANBPE45L.js";export{FieldSelect,optionFor}from"../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";
@@ -92,6 +92,11 @@ declare function SettingsSegmented<V = string>({ options, value, onChange, ariaL
92
92
  * stays mounted while folded (`keepMounted`), as it always did here, so a
93
93
  * folded group's controls keep their state. `count` is the reason a fold is
94
94
  * safe: a folded group that holds changes still says so on its pill.
95
+ *
96
+ * ONE BOX WIDTH PER BAND: the body is the shell's `SliderGroup`, so every
97
+ * slider in the band takes the widest typed box any of them needs and the
98
+ * tracks end at one x. A row whose empty state is a word ("Auto", "By
99
+ * spokes") no longer draws a wider box than the rows beside it.
95
100
  */
96
101
  declare function SettingsGroup({ title, open, onToggle, count, level, id, children, className, }: SettingsGroupProps): react.JSX.Element;
97
102
 
@@ -1 +1 @@
1
- export{BACKGROUND_WIDTHS,DEFAULT_BACKGROUND_WIDTH_WORDS,DEFAULT_CONTENT_WIDTH_WORDS,SettingsAction,SettingsBackgroundWidth,BorderInput as SettingsBorder,SettingsColour,SettingsContentWidth,CornersInput as SettingsCorners,SettingsDrill,SettingsGroupHead,SettingsGroupSub,AlignmentGrid as SettingsPlacement,SidesInput as SettingsSides,SidesEachToggle as SettingsSidesEach,borderSides,borderStartEach,sidesStartEach}from"../chunk-XWTQTANN.js";export{SettingsDefaultReset}from"../chunk-2T22IY3J.js";export{DESIGN_GROUPS,SETTINGS_BUCKETS,SettingsGroup}from"../chunk-D4TH4QQR.js";import"../chunk-56ID6FKZ.js";export{SettingsSwitch}from"../chunk-OECWLNKJ.js";export{SettingsSegmented}from"../chunk-DX3VILZ3.js";export{SettingsField}from"../chunk-MIX7EGRG.js";
1
+ export{BACKGROUND_WIDTHS,DEFAULT_BACKGROUND_WIDTH_WORDS,DEFAULT_CONTENT_WIDTH_WORDS,SettingsAction,SettingsBackgroundWidth,BorderInput as SettingsBorder,SettingsColour,SettingsContentWidth,CornersInput as SettingsCorners,SettingsDrill,SettingsGroupHead,SettingsGroupSub,AlignmentGrid as SettingsPlacement,SidesInput as SettingsSides,SidesEachToggle as SettingsSidesEach,borderSides,borderStartEach,sidesStartEach}from"../chunk-XWTQTANN.js";export{SettingsDefaultReset}from"../chunk-2T22IY3J.js";export{DESIGN_GROUPS,SETTINGS_BUCKETS,SettingsGroup}from"../chunk-AI5IQV4A.js";import"../chunk-56ID6FKZ.js";export{SettingsSwitch}from"../chunk-OECWLNKJ.js";export{SettingsSegmented}from"../chunk-DX3VILZ3.js";export{SettingsField}from"../chunk-MIX7EGRG.js";
@@ -20,7 +20,13 @@ import { a as DataConfig } from './types-Dq180WRV.js';
20
20
  *
21
21
  * Pure apart from the resolvers it calls: no React, no browser global.
22
22
  */
23
- type ResolveTrigger = 'insert' | 'replace' | 'load' | 'force' | 'move';
23
+ /**
24
+ * Why a node is resolved. `'insert'` is a node made now (its slots as
25
+ * `createNode` lays them, or as the maker wrote them); `'copy'` is a SAVED
26
+ * node put in whole (a section template), whose props and slots are a
27
+ * merchant's answers: an empty slot in it was emptied on purpose.
28
+ */
29
+ type ResolveTrigger = 'insert' | 'copy' | 'replace' | 'load' | 'force' | 'move';
24
30
  /** An item to resolve: a node, or the root (`{ props }`, no type). */
25
31
  interface ResolvableItem {
26
32
  type?: string;
@@ -1 +1 @@
1
- export{AddBlockRow as default}from"../../chunk-XGTO4LHI.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-DCBUJ36Q.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-G2VZ4DET.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";
1
+ export{AddBlockRow as default}from"../../chunk-JNNBGI6Y.js";import"../../chunk-RUQOIQWI.js";import"../../chunk-BDYS3UAD.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.js";import"../../chunk-G2VZ4DET.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";
@@ -3,7 +3,7 @@ import '../../CanvasDragLayer-DXeQGrwJ.js';
3
3
  import '../lib/section-template-types.js';
4
4
  import '../lib/shared-section-types.js';
5
5
  import '../lib/document/block-choice.js';
6
- export { aD as AddKey, aE as AddSidePanelProps, aF as blockKey, aG as default, aH as presetKey, aI as sectionKey, aJ as sharedKey, aK as templateKey } from '../../AddSidePanel-DoCx-ZrM.js';
6
+ export { aE as AddKey, aF as AddSidePanelProps, aG as blockKey, aH as default, aI as presetKey, aJ as sectionKey, aK as sharedKey, aL as templateKey } from '../../AddSidePanel-DwfZOS5C.js';
7
7
  import '../../watch-Unf6SfUf.js';
8
8
  import '../../types-Dq180WRV.js';
9
9
  import '../../words-SD4neL0n.js';
@@ -11,7 +11,7 @@ import '../lib/document/content-tree.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{blockKey,AddSidePanel as default,presetKey,sectionKey,sharedKey,templateKey}from"../../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";import"../../chunk-DCBUJ36Q.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-G2VZ4DET.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-ZKY45F5G.js";import"../../chunk-FIVU2COQ.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";
1
+ export{blockKey,AddSidePanel as default,presetKey,sectionKey,sharedKey,templateKey}from"../../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";import"../../chunk-BDYS3UAD.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-G2VZ4DET.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-TF6NAIV7.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";
@@ -8,7 +8,7 @@ import { S as StyleClipboardWords } from '../../words-CnnHb9jo.js';
8
8
  import { ScreenMenuWords } from '../words.js';
9
9
  import { C as CanvasTarget } from '../../watch-Unf6SfUf.js';
10
10
  import { R as RepeatCopy } from '../../copy-place-CQIemdtU.js';
11
- import { x as ScreenMenuRows, a as CopyItemRequest } from '../../AddSidePanel-DoCx-ZrM.js';
11
+ import { x as ScreenMenuRows, a as CopyItemRequest } from '../../AddSidePanel-DwfZOS5C.js';
12
12
  import { EaselSession } from '../lib/session.js';
13
13
  import '../../plan-D0DgSLnY.js';
14
14
  import '../../CanvasDragLayer-DXeQGrwJ.js';
@@ -20,7 +20,7 @@ import '../lib/document/block-choice.js';
20
20
  import '../../blocks/index.js';
21
21
  import '../../types-BljCVdzR.js';
22
22
  import '../../data/index.js';
23
- import '../../phone-order-CRKvsTsz.js';
23
+ import '../../phone-order-BCM_f8A1.js';
24
24
  import '../../types-SrGNzYeO.js';
25
25
  import '../../types-Cy7rdmXt.js';
26
26
  import '../../wordFit-7XpmhcaW.js';
@@ -1 +1 @@
1
- export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-M5UCPD66.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-3OOYGEJY.js";import"../../chunk-G2VZ4DET.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-LK56FUFT.js";import"../../chunk-P5VYGWYO.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";import"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";
1
+ export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-WW24O7HT.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../chunk-LX23TCTP.js";import"../../chunk-G2VZ4DET.js";import"../../chunk-3OOYGEJY.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-TCAAOYQY.js";import"../../chunk-XT75WETI.js";import"../../chunk-ZKY45F5G.js";import"../../chunk-FIVU2COQ.js";import"../../chunk-P5VYGWYO.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-TF6NAIV7.js";import"../../chunk-YDTEYXQW.js";import"../../chunk-KXM6YRG2.js";import"../../chunk-6GJEOER4.js";import"../../chunk-FR7EEKFF.js";import"../../chunk-7UFKEX72.js";
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { SaveStatusInput } from '../lib/save-status.js';
3
- import { t as ScreenMainAction } from '../../AddSidePanel-DoCx-ZrM.js';
3
+ import { t as ScreenMainAction } from '../../AddSidePanel-DwfZOS5C.js';
4
4
  import { ScreenBarWords, ScreenSaveStatusWords } from '../words.js';
5
5
  import '../../engine-CvXpFE86.js';
6
6
  import '../../types-SrGNzYeO.js';
@@ -19,7 +19,7 @@ import '../lib/document/block-choice.js';
19
19
  import '../../blocks/index.js';
20
20
  import '../../types-BljCVdzR.js';
21
21
  import '../../data/index.js';
22
- import '../../phone-order-CRKvsTsz.js';
22
+ import '../../phone-order-BCM_f8A1.js';
23
23
  import '../../plan-D0DgSLnY.js';
24
24
  import '../../copy-place-CQIemdtU.js';
25
25
  import '../../types-BbOBWXMP.js';
@@ -1 +1 @@
1
- export{ScreenChrome as default}from"../../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";import"../../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";import"../../chunk-DCBUJ36Q.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-M5UCPD66.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../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
+ export{ScreenChrome as default}from"../../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";import"../../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";import"../../chunk-BDYS3UAD.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-WW24O7HT.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../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";
@@ -9,7 +9,7 @@ import '../../engine-CvXpFE86.js';
9
9
  import '../../types-BljCVdzR.js';
10
10
  import '../../data/index.js';
11
11
  import '../../types-Dq180WRV.js';
12
- import '../../phone-order-CRKvsTsz.js';
12
+ import '../../phone-order-BCM_f8A1.js';
13
13
  import '../../plan-D0DgSLnY.js';
14
14
  import '../lib/session.js';
15
15
  import '../lib/backend-error.js';
@@ -1,12 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { q as AnyScreenTarget, A as AnyDocumentAddressing } from '../../ScreenDocumentContext-JQr4hTeP.js';
4
- import { G as ScreenParts } from '../../AddSidePanel-DoCx-ZrM.js';
4
+ import { G as ScreenParts } from '../../AddSidePanel-DwfZOS5C.js';
5
5
  import '../../blocks/index.js';
6
6
  import '../../types-BljCVdzR.js';
7
7
  import '../../data/index.js';
8
8
  import '../../types-Dq180WRV.js';
9
- import '../../phone-order-CRKvsTsz.js';
9
+ import '../../phone-order-BCM_f8A1.js';
10
10
  import '../../plan-D0DgSLnY.js';
11
11
  import '../lib/document-contract.js';
12
12
  import '../lib/document-switch.js';
@@ -1 +1 @@
1
- export{DocumentScreen,ScreenMount as default}from"../../chunk-2Y4CAWZQ.js";import"../../chunk-GXQCZJOP.js";import"../../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";import"../../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";import"../../chunk-DCBUJ36Q.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-M5UCPD66.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../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
+ export{DocumentScreen,ScreenMount as default}from"../../chunk-TWXA55SR.js";import"../../chunk-GXQCZJOP.js";import"../../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";import"../../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";import"../../chunk-BDYS3UAD.js";import"../../chunk-T2RINM7R.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-WW24O7HT.js";import"../../chunk-YM4UEGBV.js";import"../../chunk-SNF5764Q.js";import"../../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";
@@ -2,10 +2,10 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { Data } from '../../blocks/index.js';
4
4
  import { P as Permissions } from '../../types-BljCVdzR.js';
5
- import { G as ScreenParts } from '../../AddSidePanel-DoCx-ZrM.js';
5
+ import { G as ScreenParts } from '../../AddSidePanel-DwfZOS5C.js';
6
6
  import '../../data/index.js';
7
7
  import '../../types-Dq180WRV.js';
8
- import '../../phone-order-CRKvsTsz.js';
8
+ import '../../phone-order-BCM_f8A1.js';
9
9
  import '../../plan-D0DgSLnY.js';
10
10
  import '../../CanvasDragLayer-DXeQGrwJ.js';
11
11
  import '../../watch-Unf6SfUf.js';
@@ -1 +1 @@
1
- export{ScreenStoreProvider as default}from"../../chunk-JI7GUM3C.js";import"../../chunk-DCBUJ36Q.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.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";
1
+ export{ScreenStoreProvider as default}from"../../chunk-4JPAVKV6.js";import"../../chunk-BDYS3UAD.js";import"../../chunk-NCXYC7WI.js";import"../../chunk-LX23TCTP.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";