oasis-editor 0.0.203 → 0.0.204

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.
@@ -1 +1 @@
1
- import{A as e,Ar as t,B as o,Br as n,C as r,Ca as i,Cr as s,D as a,Da as l,E as c,F as d,Fr as u,G as p,H as g,Ha as f,I as m,Ia as v,J as b,K as h,Ka as y,L as x,M as k,N as C,Na as S,Nr as R,O as w,Oa as T,P as _,Pi as I,Pr as B,R as P,Ra as L,S as D,Sa as $,Sr as A,T as F,Ta as M,U as E,V as j,Va as O,Vi as H,X as N,Xa as z,Xr as X,Y as q,Ya as J,Za as K,_ as W,_r as U,ai as G,br as V,bt as Y,ci as Z,dr as Q,fr as ee,gr as te,hr as oe,ii as ne,j as re,ja as ie,jr as se,k as ae,lr as le,mr as ce,ni as de,oi as ue,q as pe,qa as ge,ri as fe,si as me,t as ve,ti as be,ur as he,v as ye,vr as xe,w as ke,x as Ce,xa as Se,xr as Re,yr as we,yt as Te,z as _e,zr as Ie}from"./defaultToolbar-CDrL4Brv.js";function Be(e={}){const t=l(()=>e.ui?.locale??"pt-BR"),[o,n]=y(0),[r,s]=y(null),a=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return z(()=>{const e=performance.now();let t=!1;const o=()=>{if(t)return;const r=performance.now()-e;n(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(o)};requestAnimationFrame(o),J(()=>{t=!0}),import("./OasisEditorApp-CucwP8bN.js").then(e=>{t=!0,n(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),f(M,{translator:t,get children(){return f(O,{get when(){return r()},get fallback(){return f(i,{variant:"fill",get progress(){return o()},get label(){return a()?.label},get class(){return a()?.class},get style(){return a()?.style}})},children:t=>{const o=t();return f(o,e)}})}})}function Pe(e,t={}){const o=Ie(),n=S(()=>Be({...t,runtime:{...t.runtime,client:o}}),e);return o.setDispose(()=>{n(),e.innerHTML=""}),o}function Le(e){return f(Be,ge(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function De(e,t={}){const o=Ie(),n=S(()=>Le({...t,runtime:{...t.runtime,client:o}}),e);return o.setDispose(()=>{n(),e.innerHTML=""}),o}function $e(e){return{execute(t,o){const n=$(t,o);return e.commands.execute(n.name,n.payload)},canExecute(t,o){const n=$(t,o);return e.commands.canExecute(n.name,n.payload)},state(t){const o=$(t);return e.commands.state(o.name,o.payload)}}}var Ae=["selectAll","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","strike","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","toggleTrackChanges","acceptRevisions","rejectRevisions","nextRevision","previousRevision","nextComment","previousComment","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","splitBlock","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","documentStyles","print","copy","cut","newDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageBorder","outdent","indent","togglePageBreakBefore","toggleKeepWithNext","setSpacingAfter","setSpacingBefore","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","setLineHeight","setListFormat","setListStartAt","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","setPageMargins","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellWidth","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","openSymbolDialog","openEquationDialog"];function Fe(e,t={}){const o=Ie(),n=S(()=>f(Be,ge(t,{get runtime(){return{...t.runtime,client:o}}})),e);return o.setDispose(()=>{n(),e.innerHTML=""}),Object.assign(o,{unmount:()=>o.dispose()})}function Me(e){const[t,o]=K(e,["level","class","classList","children"]),n=t.level??2;return f(T,ge({component:`h${n}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${n}`]:!0,...t.classList}}},o,{get children(){return t.children}}))}var Ee=/*#__PURE__*/L("<div>");function je(e){const[t,o]=K(e,["align","wrap","class","classList","children"]);return n=Ee(),v(n,ge({get class(){return`oasis-editor-ui-action-row ${t.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${t.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===t.wrap,...t.classList}}},o),!1,!0),ie(n,()=>t.children),n;var n}var Oe=/*#__PURE__*/L("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,o]=K(e,["align","class","style","children"]);return n=Oe(),v(n,ge({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":He[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},o),!1,!0),ie(n,()=>t.children),n;var n}var ze=/*#__PURE__*/L("<div>");function Xe(e){const[t,o]=K(e,["align","class","classList","children"]);return n=ze(),v(n,ge({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},o),!1,!0),ie(n,()=>t.children),n;var n}function qe(e,t){return void 0===e.revisionId||e.revisionId===t}function Je(e){e.matched=!0}function Ke(e,t){e.matched=!0,e.changed=!0,e.resolvedRevisionIds.add(t)}function We(e,t){e.matched=!0;const o=`${t.kind}:${t.revisionId??""}:${t.path}`;e.unresolvedKeys.has(o)||(e.unresolvedKeys.add(o),e.unresolved.push(t))}function Ue(e){const t=[],o=e=>{for(const n of e)if("paragraph"!==n.type)for(const e of n.rows)for(const t of e.cells)o(t.blocks);else{t.push(n);for(const e of n.runs)"textBox"===e.kind&&o(e.textBox.blocks)}};return o(e),t}function Ge(e){const t=Y(e);if(t)return delete t.propertyRevision,Object.keys(t).length>0?t:void 0}function Ve(e){const t=Te(e);if(t)return delete t.propertyRevision,Object.keys(t).length>0?t:void 0}function Ye(e,t,o){if(e.revisionRangeMarker&&qe(o,e.revisionRangeMarker.id))return Ke(o,e.revisionRangeMarker.id),null;if(!function(e,t,o){const n=e.revision;return!n||!qe(o,n.id)||(Ke(o,n.id),"accept"===o.action?"insert"===n.type:"delete"===n.type)}(e,0,o))return null;let n=e;e.revision&&qe(o,e.revision.id)&&(n={...n,revision:void 0});const r=function(e,t,o){const n=e?.propertyRevision;return n&&qe(o,n.id)?(Ke(o,n.id),"accept"===o.action?Ge(e):Ge(n.previous)):e}(n.styles,0,o);if(r!==n.styles&&(n={...n,styles:r}),"textBox"===n.kind){const e=nt(n.textBox.blocks,`${t}.textBox.blocks`,o);e!==n.textBox.blocks&&(n={...n,textBox:{...n.textBox,blocks:e}})}return n}function Ze(e,t,o){const n=[],r=[];let i=0,s=0;for(let d=0;d<e.runs.length;d+=1){const a=e.runs[d],l=Ye(a,`${t}.runs[${d}]`,o);if(!l&&"textBox"===a.kind)for(const t of Ue(a.textBox.blocks))o.paragraphRelocations.has(t.id)||o.paragraphRelocations.set(t.id,{paragraphId:e.id,offset:s});const c=a.text.length;r.push({oldStart:i,oldEnd:i+c,newStart:s,kept:null!==l}),i+=c,l&&(n.push(l),s+=l.text.length)}i!==s&&o.paragraphOffsetTransforms.set(e.id,{segments:r,oldLength:i,newLength:s});let a=n.length===e.runs.length&&n.every((t,o)=>t===e.runs[o])?e:{...e,runs:n};const l=function(e,t,o){const n=e?.propertyRevision;return n&&qe(o,n.id)?(Ke(o,n.id),"accept"===o.action?Ve(e):Ve(n.previous)):e}(a.style,0,o);l!==a.style&&(a={...a,style:l});const c=a.numberingRevision;return c&&qe(o,c.id)&&(Je(o),"accept"===o.action?(Ke(o,c.id),a={...a,numberingRevision:void 0}):We(o,{kind:"numbering-original-unavailable",revisionId:c.id,path:`${t}.numberingRevision`,message:"w:numberingChange only stores the previous rendered-number cache; it cannot reconstruct the previous numId/ilvl safely."})),a}function Qe(e){const t=e.mergeRevisionState;if("vertical"===t?.orientation&&1===t.currentCellCount&&1===t.previousCells.length)return structuredClone(t.previousCells[0]);const o=e.style?.revision;return"merge"===o?.type&&"continue"===o.previous?.vMerge?{...e,blocks:[],rowSpan:void 0,vMerge:"continue",style:e.style?{...e.style,revision:void 0}:e.style,mergeRevisionState:void 0}:void 0}function et(e,t,o){let n=function(e,t,o){const n=e.style?.revision,r=e.mergeRevisionState&&qe(o,e.mergeRevisionState.revisionId);if(n&&qe(o,n.id)){if(Je(o),"reject"===o.action&&"merge"===n.type){const r=Qe(e);return r?(Ke(o,n.id),r):(We(o,{kind:"cell-merge-original-unavailable",revisionId:n.id,path:t,message:"The previous merge topology lacks an exact semantic snapshot for safe restoration."}),e)}return Ke(o,n.id),{...e,style:e.style?{...e.style,revision:void 0}:e.style,..."merge"===n.type?{mergeRevisionState:void 0}:{}}}if(r){const n=e.mergeRevisionState.revisionId;if(Je(o),"accept"===o.action)return Ke(o,n),{...e,mergeRevisionState:void 0};const r=Qe(e);if(r)return Ke(o,n),r;We(o,{kind:"cell-merge-original-unavailable",revisionId:n,path:`${t}.mergeRevisionState`,message:"The preserved merge snapshot is not a supported exact vertical-cell restoration."})}return e}(e,t,o);const r=function(e,t,o){const n=e?.propertyRevision;if(!n||!qe(o,n.id))return e;Ke(o,n.id);const r=e.revision?structuredClone(e.revision):void 0,i=structuredClone("accept"===o.action?e:n.previous);return delete i.propertyRevision,r&&(i.revision=r),i}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=nt(n.blocks,`${t}.blocks`,o);return i!==n.blocks&&(n={...n,blocks:i}),n}function tt(e,t,o){let n=function(e,t,o){const n=e.style?.revision;return n&&qe(o,n.id)?(Je(o),"reject"===o.action&&"merge"===n.type?(We(o,{kind:"cell-merge-original-unavailable",revisionId:n.id,path:t,message:"The original table structure for this merge revision is not reconstructed by the core resolver yet."}),e):(Ke(o,n.id),{...e,style:e.style?{...e.style,revision:void 0}:e.style})):e}(e,t,o);const r=function(e,t,o){const n=e?.propertyRevision;if(!n||!qe(o,n.id))return e;Ke(o,n.id);const r=e.revision?structuredClone(e.revision):void 0,i=structuredClone("accept"===o.action?e:n.previous);return delete i.propertyRevision,r&&(i.revision=r),i}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=n.propertyExceptionsRevision;if(i&&qe(o,i.id))Ke(o,i.id),n={...n,propertyExceptions:"accept"===o.action?n.propertyExceptions:structuredClone(i.previous),propertyExceptionsRevision:void 0,tblPrExChangeXml:void 0};else if(n.tblPrExChangeXml&&!i){const e=(s=n.tblPrExChangeXml,/\bw:id\s*=\s*["']([^"']+)["']/.exec(s)?.[1]);e&&qe(o,e)&&(Je(o),"accept"===o.action?(Ke(o,e),n={...n,tblPrExChangeXml:void 0}):We(o,{kind:"table-property-exception-original-unavailable",revisionId:e,path:`${t}.tblPrExChangeXml`,message:"The imported w:tblPrExChange has no decodable previous w:tblPrEx snapshot."}))}var s;const a=[];let l=!1;for(let c=0;c<n.cells.length;c+=1){const e=n.cells[c],r=e.style?.revision;if(r&&qe(o,r.id)&&("accept"===o.action&&"delete"===r.type||"reject"===o.action&&"insert"===r.type)){Ke(o,r.id),l=!0;continue}const i=et(e,`${t}.cells[${c}]`,o);a.push(i),i!==e&&(l=!0)}return l&&(n={...n,cells:a}),n}function ot(e,t,o){let n=e;const r=function(e,t,o){const n=e?.revision;if(!n||!qe(o,n.id))return e;Ke(o,n.id);const r=structuredClone("accept"===o.action?e:n.previous);return delete r.revision,r}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=n.gridRevision;i&&qe(o,i.id)&&(Ke(o,i.id),n="accept"===o.action?{...n,gridRevision:void 0}:{...n,gridCols:[...i.previous],gridRevision:void 0});const s=[];let a=!1;for(let l=0;l<n.rows.length;l+=1){const e=n.rows[l],r=e.style?.revision;if(r&&qe(o,r.id)&&("accept"===o.action&&"delete"===r.type||"reject"===o.action&&"insert"===r.type)){Ke(o,r.id),a=!0;continue}const i=tt(e,`${t}.rows[${l}]`,o);s.push(i),i!==e&&(a=!0)}return a&&(n={...n,rows:s}),a&&(n=function(e){let t=!1;const o=e.rows.map((o,n)=>{let r=!1;const i=o.cells.map((t,o)=>{let i;if("restart"===t.vMerge){i=1;for(let t=n+1;t<e.rows.length;t+=1){const n=e.rows[t].cells[o];if(!n||"continue"!==n.vMerge)break;i+=1}}return t.rowSpan===i?t:(r=!0,{...t,rowSpan:i})});return r?(t=!0,{...o,cells:i}):o});return t?{...e,rows:o}:e}(n),function(e,t,o){const n=Ue([e]),r=Ue([t]),i=new Map(r.map(e=>[e.id,e]));for(let s=0;s<n.length;s+=1){const e=n[s];if(i.has(e.id)||o.paragraphRelocations.has(e.id))continue;let t=null;for(let o=s-1;o>=0;o-=1){const e=i.get(n[o].id);if(e){t={paragraphId:e.id,offset:H(e).length};break}}if(!t)for(let o=s+1;o<n.length;o+=1){const e=i.get(n[o].id);if(e){t={paragraphId:e.id,offset:0};break}}o.paragraphRelocations.set(e.id,t)}}(e,n,o)),n}function nt(e,t,o){let n=!1;const r=e.map((e,r)=>{const i=`${t}[${r}]`,s="paragraph"===e.type?Ze(e,i,o):ot(e,i,o);return s!==e&&(n=!0),s});return n?r:e}var rt=["header","firstPageHeader","evenPageHeader","footer","firstPageFooter","evenPageFooter"];function it(e,t,o){if(!e)return;let n=e.paragraphId,r=e.offset,i=!1;const s=/* @__PURE__ */new Set;for(;o.has(n);){if(s.has(n))return;s.add(n);const e=o.get(n);if(!e)return;n=e.paragraphId,r=e.offset,i=!0}if(!i){const e=t.get(n);e&&(r=function(e,t){const o=Math.max(0,Math.min(t,e.oldLength));for(const n of e.segments)if(!(o>n.oldEnd))return n.kept?n.newStart+Math.max(0,o-n.oldStart):n.newStart;return e.newLength}(e,r))}return n===e.paragraphId&&r===e.offset?e:{...e,paragraphId:n,offset:r}}function st(e,t,o){const n={action:t,revisionId:o,changed:!1,matched:!1,resolvedRevisionIds:/* @__PURE__ */new Set,unresolved:[],unresolvedKeys:/* @__PURE__ */new Set,paragraphOffsetTransforms:/* @__PURE__ */new Map,paragraphRelocations:/* @__PURE__ */new Map},i=I(e).map(r),s={...e,sections:i,footnotes:D(e.footnotes),endnotes:Ce(e.endnotes)};return function(e,t){for(let o=0;o<e.length;o+=1){let n=e[o];const r=nt(n.blocks,`sections[${o}].blocks`,t);r!==n.blocks&&(n={...n,blocks:r});for(const e of rt){const r=n[e];if(!r)continue;const i=nt(r,`sections[${o}].${e}`,t);i!==r&&(n={...n,[e]:i})}e[o]=n}}(i,n),function(e,t){if(e.footnotes){for(const[o,n]of Object.entries(e.footnotes.items))n.blocks=nt(n.blocks,`footnotes.items[${JSON.stringify(o)}].blocks`,t);e.footnotes.separator&&(e.footnotes.separator=nt(e.footnotes.separator,"footnotes.separator",t)),e.footnotes.continuationSeparator&&(e.footnotes.continuationSeparator=nt(e.footnotes.continuationSeparator,"footnotes.continuationSeparator",t))}if(e.endnotes){for(const[o,n]of Object.entries(e.endnotes.items))n.blocks=nt(n.blocks,`endnotes.items[${JSON.stringify(o)}].blocks`,t);e.endnotes.separator&&(e.endnotes.separator=nt(e.endnotes.separator,"endnotes.separator",t)),e.endnotes.continuationSeparator&&(e.endnotes.continuationSeparator=nt(e.endnotes.continuationSeparator,"endnotes.continuationSeparator",t))}}(s,n),function(e,t){for(let o=0;o<e.length;o+=1){const n=e[o],r=n.propertyRevision;if(!r||!qe(t,r.id))continue;if(Ke(t,r.id),"accept"===t.action){e[o]={...n,propertyRevision:void 0};continue}const i=structuredClone(r.previous);e[o]={...n,pageSettings:i.pageSettings,pageBorder:i.pageBorder,pageNumbering:i.pageNumbering,verticalAlignment:i.verticalAlignment,bidi:i.bidi,propertyRevision:void 0};const s=e[o+1];s&&(e[o+1]={...s,breakType:i.nextBreakType})}}(i,n),function(e,t,o){if(!e.bookmarks||0===t.size&&0===o.size)return;let n=!1;const r={...e.bookmarks.items},i=[];for(const s of e.bookmarks.order){const a=e.bookmarks.items[s];if(!a)continue;const l=it(a.start,t,o),c=it(a.end,t,o),d=l??(a.start?c:void 0),u=c??(a.end?l:void 0);d||u?(i.push(s),d===a.start&&u===a.end||(r[s]={...a,start:d,end:u},n=!0)):(delete r[s],n=!0)}n&&(e.bookmarks={...e.bookmarks,items:r,order:i})}(s,n.paragraphOffsetTransforms,n.paragraphRelocations),s.comments=function(e,t,o){if(!e||0===t.size&&0===o.size)return e;let n=!1;const r={...e.items},i=[];for(const s of e.order){const a=e.items[s];if(!a)continue;const l=it(a.start,t,o),c=it(a.end,t,o),d=l??(a.start?c:void 0),u=c??(a.end?l:void 0);d||u?(i.push(s),d===a.start&&u===a.end||(r[s]={...a,start:d,end:u},n=!0)):(delete r[s],n=!0)}return n?{...e,items:r,order:i}:e}(s.comments,n.paragraphOffsetTransforms,n.paragraphRelocations),void 0===o||n.matched||n.unresolved.push({kind:"revision-not-found",revisionId:o,path:"document",message:`Tracked revision ${o} was not found in the modeled document.`}),{document:n.changed?s:e,changed:n.changed,complete:0===n.unresolved.length,resolvedRevisionIds:[...n.resolvedRevisionIds],unresolved:n.unresolved}}function at(e,t){return st(e,t)}function lt(e,t,o){return st(e,o,t)}function ct(e,t){return at(e,"final"===t?"accept":"reject")}var dt={newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},ut={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{je as ActionRow,j as BalloonShell,P as Button,e as Checkbox,re as ColorField,U as ColorPicker,U as ToolbarColorPicker,B as CommandRegistry,oe as DEFAULT_PALETTE,o as Dialog,Xe as DialogFooter,E as DocumentShell,be as EDITOR_SCHEMA_VERSION,R as Editor,F as FieldGroup,Ne as FieldRow,N as FloatingActionButton,_ as FormField,d as Grid,te as GridPicker,te as ToolbarGridPicker,Me as Heading,p as IconButton,g as InlineShell,Re as Menu,Re as ToolbarMenu,W as MenuRegistry,w as NumberField,Ae as OASIS_BUILTIN_COMMANDS,ut as OASIS_MENU_ITEMS,dt as OASIS_TOOLBAR_ITEMS,Be as OasisEditorAppLazy,Le as OasisEditorContainer,i as OasisEditorLoading,u as PluginCollection,A as Popover,Q as RIBBON_TABS,c as Radio,a as RadioGroup,V as Select,V as ToolbarSelect,ae as SelectField,we as Separator,we as ToolbarSeparator,h as SidePanel,pe as SidePanelBody,b as SidePanelFooter,q as SidePanelHeader,xe as SplitButton,xe as ToolbarSplitButton,m as Stack,x as StatusText,ce as StyleGallery,se as SurfaceButton,_e as Tabs,t as Text,k as TextAreaField,C as TextField,ke as ToggleChip,le as Toolbar,s as ToolbarButton,he as buildRibbonTabDefinitions,de as cloneDocument,Se as commandRefName,ve as createDefaultToolbarPreset,fe as createDocument,$e as createEditorCommandBus,ne as createHeading,Pe as createOasisEditor,De as createOasisEditorContainer,G as createParagraph,ue as createTable,ye as createToolbarRegistry,n as exportEditorDocumentToHtml,X as importHtmlToEditorDocument,Fe as mount,me as normalizeDocument,ct as projectTrackedRevisions,ee as registerToolbarRenderer,at as resolveAllTrackedRevisions,$ as resolveCommandRef,lt as resolveTrackedRevision,Z as validateDocument};
1
+ import{$a as e,A as t,Aa as o,B as n,Ba as r,Bi as i,Br as s,C as a,Cr as l,D as c,Dr as d,E as u,Er as p,F as g,Fa as f,G as m,Ga as v,Gr as b,H as h,I as y,Ir as k,J as x,Ja as C,K as S,Kr as w,L as R,Lr as T,M as _,Ma as I,N as B,O as P,Oa as L,Or as $,P as D,Pa as A,R as F,Ra as M,S as E,Sr as O,T as j,Tr as H,Ua as z,V as N,Vr as q,W as J,Xt as K,Y as W,Ya as X,_ as G,_r as U,br as V,ci as Y,di as Q,eo as Z,fi as ee,gr as te,hr as oe,io as ne,j as re,k as ie,ka as se,kr as ae,li as le,mi as ce,ni as de,no as ue,pi as pe,q as ge,qi as fe,ro as me,si as ve,t as be,ui as he,v as ye,vr as ke,vt as xe,w as Ce,wr as Se,x as we,xr as Re,yt as Te,z as _e,zr as Ie}from"./defaultToolbar-CtWLFzbp.js";function Be(t={}){const n=A(()=>t.ui?.locale??"pt-BR"),[r,i]=e(0),[s,a]=e(null),l=()=>{const e=t.ui?.loading;return"object"==typeof e&&null!==e?e:void 0};return me(()=>{const e=performance.now();let t=!1;const o=()=>{if(t)return;const n=performance.now()-e;i(.9*(1-Math.exp(-n/5e3))),requestAnimationFrame(o)};requestAnimationFrame(o),ue(()=>{t=!0}),import("./OasisEditorApp-DY1Z4oeT.js").then(e=>{t=!0,i(1),setTimeout(()=>a(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),X(I,{translator:n,get children(){return X(C,{get when(){return s()},get fallback(){return X(o,{variant:"fill",get progress(){return r()},get label(){return l()?.label},get class(){return l()?.class},get style(){return l()?.style}})},children:e=>{const o=e();return X(o,t)}})}})}function Pe(e,t={}){const o=b(),n=r(()=>Be({...t,runtime:{...t.runtime,client:o}}),e);return o.setDispose(()=>{n(),e.innerHTML=""}),o}function Le(e){return X(Be,Z(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function $e(e,t={}){const o=b(),n=r(()=>Le({...t,runtime:{...t.runtime,client:o}}),e);return o.setDispose(()=>{n(),e.innerHTML=""}),o}function De(e){return{execute(t,o){const n=se(t,o);return e.commands.execute(n.name,n.payload)},canExecute(t,o){const n=se(t,o);return e.commands.canExecute(n.name,n.payload)},state(t){const o=se(t);return e.commands.state(o.name,o.payload)}}}var Ae=["selectAll","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","strike","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","toggleTrackChanges","acceptRevisions","rejectRevisions","nextRevision","previousRevision","nextComment","previousComment","newComment","replyComment","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","splitBlock","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","documentStyles","print","copy","cut","newDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageBorder","outdent","indent","togglePageBreakBefore","toggleKeepWithNext","setSpacingAfter","setSpacingBefore","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","setLineHeight","setListFormat","setListStartAt","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","setPageMargins","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellWidth","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","openSymbolDialog","openEquationDialog"];function Fe(e,t={}){const o=b(),n=r(()=>X(Be,Z(t,{get runtime(){return{...t.runtime,client:o}}})),e);return o.setDispose(()=>{n(),e.innerHTML=""}),Object.assign(o,{unmount:()=>o.dispose()})}function Me(e){const[t,o]=ne(e,["level","class","classList","children"]),n=t.level??2;return X(f,Z({component:`h${n}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${n}`]:!0,...t.classList}}},o,{get children(){return t.children}}))}var Ee=/*#__PURE__*/v("<div>");function Oe(e){const[t,o]=ne(e,["align","wrap","class","classList","children"]);return n=Ee(),z(n,Z({get class(){return`oasis-editor-ui-action-row ${t.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${t.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===t.wrap,...t.classList}}},o),!1,!0),M(n,()=>t.children),n;var n}var je=/*#__PURE__*/v("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function ze(e){const[t,o]=ne(e,["align","class","style","children"]);return n=je(),z(n,Z({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":He[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},o),!1,!0),M(n,()=>t.children),n;var n}var Ne=/*#__PURE__*/v("<div>");function qe(e){const[t,o]=ne(e,["align","class","classList","children"]);return n=Ne(),z(n,Z({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},o),!1,!0),M(n,()=>t.children),n;var n}function Je(e,t){return void 0===e.revisionId||e.revisionId===t}function Ke(e){e.matched=!0}function We(e,t){e.matched=!0,e.changed=!0,e.resolvedRevisionIds.add(t)}function Xe(e,t){e.matched=!0;const o=`${t.kind}:${t.revisionId??""}:${t.path}`;e.unresolvedKeys.has(o)||(e.unresolvedKeys.add(o),e.unresolved.push(t))}function Ge(e){const t=[],o=e=>{for(const n of e)if("paragraph"!==n.type)for(const e of n.rows)for(const t of e.cells)o(t.blocks);else{t.push(n);for(const e of n.runs)"textBox"===e.kind&&o(e.textBox.blocks)}};return o(e),t}function Ue(e){const t=Te(e);if(t)return delete t.propertyRevision,Object.keys(t).length>0?t:void 0}function Ve(e){const t=xe(e);if(t)return delete t.propertyRevision,Object.keys(t).length>0?t:void 0}function Ye(e,t,o){if(e.revisionRangeMarker&&Je(o,e.revisionRangeMarker.id))return We(o,e.revisionRangeMarker.id),null;if(!function(e,t,o){const n=e.revision;return!n||!Je(o,n.id)||(We(o,n.id),"accept"===o.action?"insert"===n.type:"delete"===n.type)}(e,0,o))return null;let n=e;e.revision&&Je(o,e.revision.id)&&(n={...n,revision:void 0});const r=function(e,t,o){const n=e?.propertyRevision;return n&&Je(o,n.id)?(We(o,n.id),"accept"===o.action?Ue(e):Ue(n.previous)):e}(n.styles,0,o);if(r!==n.styles&&(n={...n,styles:r}),"textBox"===n.kind){const e=nt(n.textBox.blocks,`${t}.textBox.blocks`,o);e!==n.textBox.blocks&&(n={...n,textBox:{...n.textBox,blocks:e}})}return n}function Qe(e,t,o){const n=[],r=[];let i=0,s=0;for(let d=0;d<e.runs.length;d+=1){const a=e.runs[d],l=Ye(a,`${t}.runs[${d}]`,o);if(!l&&"textBox"===a.kind)for(const t of Ge(a.textBox.blocks))o.paragraphRelocations.has(t.id)||o.paragraphRelocations.set(t.id,{paragraphId:e.id,offset:s});const c=a.text.length;r.push({oldStart:i,oldEnd:i+c,newStart:s,kept:null!==l}),i+=c,l&&(n.push(l),s+=l.text.length)}i!==s&&o.paragraphOffsetTransforms.set(e.id,{segments:r,oldLength:i,newLength:s});let a=n.length===e.runs.length&&n.every((t,o)=>t===e.runs[o])?e:{...e,runs:n};const l=function(e,t,o){const n=e?.propertyRevision;return n&&Je(o,n.id)?(We(o,n.id),"accept"===o.action?Ve(e):Ve(n.previous)):e}(a.style,0,o);l!==a.style&&(a={...a,style:l});const c=a.numberingRevision;return c&&Je(o,c.id)&&(Ke(o),"accept"===o.action?(We(o,c.id),a={...a,numberingRevision:void 0}):Xe(o,{kind:"numbering-original-unavailable",revisionId:c.id,path:`${t}.numberingRevision`,message:"w:numberingChange only stores the previous rendered-number cache; it cannot reconstruct the previous numId/ilvl safely."})),a}function Ze(e){const t=e.mergeRevisionState;if("vertical"===t?.orientation&&1===t.currentCellCount&&1===t.previousCells.length)return structuredClone(t.previousCells[0]);const o=e.style?.revision;return"merge"===o?.type&&"continue"===o.previous?.vMerge?{...e,blocks:[],rowSpan:void 0,vMerge:"continue",style:e.style?{...e.style,revision:void 0}:e.style,mergeRevisionState:void 0}:void 0}function et(e,t,o){let n=function(e,t,o){const n=e.style?.revision,r=e.mergeRevisionState&&Je(o,e.mergeRevisionState.revisionId);if(n&&Je(o,n.id)){if(Ke(o),"reject"===o.action&&"merge"===n.type){const r=Ze(e);return r?(We(o,n.id),r):(Xe(o,{kind:"cell-merge-original-unavailable",revisionId:n.id,path:t,message:"The previous merge topology lacks an exact semantic snapshot for safe restoration."}),e)}return We(o,n.id),{...e,style:e.style?{...e.style,revision:void 0}:e.style,..."merge"===n.type?{mergeRevisionState:void 0}:{}}}if(r){const n=e.mergeRevisionState.revisionId;if(Ke(o),"accept"===o.action)return We(o,n),{...e,mergeRevisionState:void 0};const r=Ze(e);if(r)return We(o,n),r;Xe(o,{kind:"cell-merge-original-unavailable",revisionId:n,path:`${t}.mergeRevisionState`,message:"The preserved merge snapshot is not a supported exact vertical-cell restoration."})}return e}(e,t,o);const r=function(e,t,o){const n=e?.propertyRevision;if(!n||!Je(o,n.id))return e;We(o,n.id);const r=e.revision?structuredClone(e.revision):void 0,i=structuredClone("accept"===o.action?e:n.previous);return delete i.propertyRevision,r&&(i.revision=r),i}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=nt(n.blocks,`${t}.blocks`,o);return i!==n.blocks&&(n={...n,blocks:i}),n}function tt(e,t,o){let n=function(e,t,o){const n=e.style?.revision;return n&&Je(o,n.id)?(Ke(o),"reject"===o.action&&"merge"===n.type?(Xe(o,{kind:"cell-merge-original-unavailable",revisionId:n.id,path:t,message:"The original table structure for this merge revision is not reconstructed by the core resolver yet."}),e):(We(o,n.id),{...e,style:e.style?{...e.style,revision:void 0}:e.style})):e}(e,t,o);const r=function(e,t,o){const n=e?.propertyRevision;if(!n||!Je(o,n.id))return e;We(o,n.id);const r=e.revision?structuredClone(e.revision):void 0,i=structuredClone("accept"===o.action?e:n.previous);return delete i.propertyRevision,r&&(i.revision=r),i}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=n.propertyExceptionsRevision;if(i&&Je(o,i.id))We(o,i.id),n={...n,propertyExceptions:"accept"===o.action?n.propertyExceptions:structuredClone(i.previous),propertyExceptionsRevision:void 0,tblPrExChangeXml:void 0};else if(n.tblPrExChangeXml&&!i){const e=(s=n.tblPrExChangeXml,/\bw:id\s*=\s*["']([^"']+)["']/.exec(s)?.[1]);e&&Je(o,e)&&(Ke(o),"accept"===o.action?(We(o,e),n={...n,tblPrExChangeXml:void 0}):Xe(o,{kind:"table-property-exception-original-unavailable",revisionId:e,path:`${t}.tblPrExChangeXml`,message:"The imported w:tblPrExChange has no decodable previous w:tblPrEx snapshot."}))}var s;const a=[];let l=!1;for(let c=0;c<n.cells.length;c+=1){const e=n.cells[c],r=e.style?.revision;if(r&&Je(o,r.id)&&("accept"===o.action&&"delete"===r.type||"reject"===o.action&&"insert"===r.type)){We(o,r.id),l=!0;continue}const i=et(e,`${t}.cells[${c}]`,o);a.push(i),i!==e&&(l=!0)}return l&&(n={...n,cells:a}),n}function ot(e,t,o){let n=e;const r=function(e,t,o){const n=e?.revision;if(!n||!Je(o,n.id))return e;We(o,n.id);const r=structuredClone("accept"===o.action?e:n.previous);return delete r.revision,r}(n.style,0,o);r!==n.style&&(n={...n,style:r});const i=n.gridRevision;i&&Je(o,i.id)&&(We(o,i.id),n="accept"===o.action?{...n,gridRevision:void 0}:{...n,gridCols:[...i.previous],gridRevision:void 0});const s=[];let a=!1;for(let l=0;l<n.rows.length;l+=1){const e=n.rows[l],r=e.style?.revision;if(r&&Je(o,r.id)&&("accept"===o.action&&"delete"===r.type||"reject"===o.action&&"insert"===r.type)){We(o,r.id),a=!0;continue}const i=tt(e,`${t}.rows[${l}]`,o);s.push(i),i!==e&&(a=!0)}return a&&(n={...n,rows:s}),a&&(n=function(e){let t=!1;const o=e.rows.map((o,n)=>{let r=!1;const i=o.cells.map((t,o)=>{let i;if("restart"===t.vMerge){i=1;for(let t=n+1;t<e.rows.length;t+=1){const n=e.rows[t].cells[o];if(!n||"continue"!==n.vMerge)break;i+=1}}return t.rowSpan===i?t:(r=!0,{...t,rowSpan:i})});return r?(t=!0,{...o,cells:i}):o});return t?{...e,rows:o}:e}(n),function(e,t,o){const n=Ge([e]),r=Ge([t]),i=new Map(r.map(e=>[e.id,e]));for(let s=0;s<n.length;s+=1){const e=n[s];if(i.has(e.id)||o.paragraphRelocations.has(e.id))continue;let t=null;for(let o=s-1;o>=0;o-=1){const e=i.get(n[o].id);if(e){t={paragraphId:e.id,offset:fe(e).length};break}}if(!t)for(let o=s+1;o<n.length;o+=1){const e=i.get(n[o].id);if(e){t={paragraphId:e.id,offset:0};break}}o.paragraphRelocations.set(e.id,t)}}(e,n,o)),n}function nt(e,t,o){let n=!1;const r=e.map((e,r)=>{const i=`${t}[${r}]`,s="paragraph"===e.type?Qe(e,i,o):ot(e,i,o);return s!==e&&(n=!0),s});return n?r:e}var rt=["header","firstPageHeader","evenPageHeader","footer","firstPageFooter","evenPageFooter"];function it(e,t,o){if(!e)return;let n=e.paragraphId,r=e.offset,i=!1;const s=/* @__PURE__ */new Set;for(;o.has(n);){if(s.has(n))return;s.add(n);const e=o.get(n);if(!e)return;n=e.paragraphId,r=e.offset,i=!0}if(!i){const e=t.get(n);e&&(r=function(e,t){const o=Math.max(0,Math.min(t,e.oldLength));for(const n of e.segments)if(!(o>n.oldEnd))return n.kept?n.newStart+Math.max(0,o-n.oldStart):n.newStart;return e.newLength}(e,r))}return n===e.paragraphId&&r===e.offset?e:{...e,paragraphId:n,offset:r}}function st(e,t,o){const n={action:t,revisionId:o,changed:!1,matched:!1,resolvedRevisionIds:/* @__PURE__ */new Set,unresolved:[],unresolvedKeys:/* @__PURE__ */new Set,paragraphOffsetTransforms:/* @__PURE__ */new Map,paragraphRelocations:/* @__PURE__ */new Map},r=i(e).map(a),s={...e,sections:r,footnotes:E(e.footnotes),endnotes:we(e.endnotes)};return function(e,t){for(let o=0;o<e.length;o+=1){let n=e[o];const r=nt(n.blocks,`sections[${o}].blocks`,t);r!==n.blocks&&(n={...n,blocks:r});for(const e of rt){const r=n[e];if(!r)continue;const i=nt(r,`sections[${o}].${e}`,t);i!==r&&(n={...n,[e]:i})}e[o]=n}}(r,n),function(e,t){if(e.footnotes){for(const[o,n]of Object.entries(e.footnotes.items))n.blocks=nt(n.blocks,`footnotes.items[${JSON.stringify(o)}].blocks`,t);e.footnotes.separator&&(e.footnotes.separator=nt(e.footnotes.separator,"footnotes.separator",t)),e.footnotes.continuationSeparator&&(e.footnotes.continuationSeparator=nt(e.footnotes.continuationSeparator,"footnotes.continuationSeparator",t))}if(e.endnotes){for(const[o,n]of Object.entries(e.endnotes.items))n.blocks=nt(n.blocks,`endnotes.items[${JSON.stringify(o)}].blocks`,t);e.endnotes.separator&&(e.endnotes.separator=nt(e.endnotes.separator,"endnotes.separator",t)),e.endnotes.continuationSeparator&&(e.endnotes.continuationSeparator=nt(e.endnotes.continuationSeparator,"endnotes.continuationSeparator",t))}}(s,n),function(e,t){for(let o=0;o<e.length;o+=1){const n=e[o],r=n.propertyRevision;if(!r||!Je(t,r.id))continue;if(We(t,r.id),"accept"===t.action){e[o]={...n,propertyRevision:void 0};continue}const i=structuredClone(r.previous);e[o]={...n,pageSettings:i.pageSettings,pageBorder:i.pageBorder,pageNumbering:i.pageNumbering,verticalAlignment:i.verticalAlignment,bidi:i.bidi,propertyRevision:void 0};const s=e[o+1];s&&(e[o+1]={...s,breakType:i.nextBreakType})}}(r,n),function(e,t,o){if(!e.bookmarks||0===t.size&&0===o.size)return;let n=!1;const r={...e.bookmarks.items},i=[];for(const s of e.bookmarks.order){const a=e.bookmarks.items[s];if(!a)continue;const l=it(a.start,t,o),c=it(a.end,t,o),d=l??(a.start?c:void 0),u=c??(a.end?l:void 0);d||u?(i.push(s),d===a.start&&u===a.end||(r[s]={...a,start:d,end:u},n=!0)):(delete r[s],n=!0)}n&&(e.bookmarks={...e.bookmarks,items:r,order:i})}(s,n.paragraphOffsetTransforms,n.paragraphRelocations),s.comments=function(e,t,o){if(!e||0===t.size&&0===o.size)return e;let n=!1;const r={...e.items},i=[];for(const s of e.order){const a=e.items[s];if(!a)continue;const l=it(a.start,t,o),c=it(a.end,t,o),d=l??(a.start?c:void 0),u=c??(a.end?l:void 0);d||u?(i.push(s),d===a.start&&u===a.end||(r[s]={...a,start:d,end:u},n=!0)):(delete r[s],n=!0)}return n?{...e,items:r,order:i}:e}(s.comments,n.paragraphOffsetTransforms,n.paragraphRelocations),void 0===o||n.matched||n.unresolved.push({kind:"revision-not-found",revisionId:o,path:"document",message:`Tracked revision ${o} was not found in the modeled document.`}),{document:n.changed?s:e,changed:n.changed,complete:0===n.unresolved.length,resolvedRevisionIds:[...n.resolvedRevisionIds],unresolved:n.unresolved}}function at(e,t){return st(e,t)}function lt(e,t,o){return st(e,o,t)}function ct(e,t){return at(e,"final"===t?"accept":"reject")}var dt={newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},ut={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Oe as ActionRow,n as BalloonShell,K as Button,t as Checkbox,re as ColorField,l as ColorPicker,l as ToolbarColorPicker,s as CommandRegistry,Re as DEFAULT_PALETTE,_e as Dialog,qe as DialogFooter,h as DocumentShell,ve as EDITOR_SCHEMA_VERSION,Ie as Editor,j as FieldGroup,ze as FieldRow,W as FloatingActionButton,D as FormField,g as Grid,O as GridPicker,O as ToolbarGridPicker,Me as Heading,J as IconButton,N as InlineShell,d as Menu,d as ToolbarMenu,G as MenuRegistry,P as NumberField,Ae as OASIS_BUILTIN_COMMANDS,ut as OASIS_MENU_ITEMS,dt as OASIS_TOOLBAR_ITEMS,Be as OasisEditorAppLazy,Le as OasisEditorContainer,o as OasisEditorLoading,q as PluginCollection,$ as Popover,U as RIBBON_TABS,u as Radio,c as RadioGroup,p as Select,p as ToolbarSelect,ie as SelectField,H as Separator,H as ToolbarSeparator,m as SidePanel,S as SidePanelBody,ge as SidePanelFooter,x as SidePanelHeader,Se as SplitButton,Se as ToolbarSplitButton,y as Stack,R as StatusText,V as StyleGallery,T as SurfaceButton,F as Tabs,k as Text,_ as TextAreaField,B as TextField,Ce as ToggleChip,oe as Toolbar,ae as ToolbarButton,te as buildRibbonTabDefinitions,Y as cloneDocument,L as commandRefName,be as createDefaultToolbarPreset,le as createDocument,De as createEditorCommandBus,he as createHeading,Pe as createOasisEditor,$e as createOasisEditorContainer,Q as createParagraph,ee as createTable,ye as createToolbarRegistry,w as exportEditorDocumentToHtml,de as importHtmlToEditorDocument,Fe as mount,pe as normalizeDocument,ct as projectTrackedRevisions,ke as registerToolbarRenderer,at as resolveAllTrackedRevisions,se as resolveCommandRef,lt as resolveTrackedRevision,ce as validateDocument};