@harbour-enterprises/superdoc 0.11.31 → 0.11.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css CHANGED
@@ -78,7 +78,7 @@
78
78
  .superdoc .ai-textarea-icon.error > svg {
79
79
  fill: #ed4337;
80
80
  }
81
- .selected[data-v-0a2a8b4e]{background-color:#dbdbdb}.mentions-container[data-v-0a2a8b4e]{outline:none!important;border:none;max-height:300px;overflow-y:auto}.mentions-container[data-v-0a2a8b4e]:focus{border:none;outline:none!important}.user-row[data-v-0a2a8b4e]{padding:10px 15px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.toolbar-icon[data-v-6d7523ab]{display:flex;align-items:center;justify-content:center;flex-shrink:0}.toolbar-icon__icon[data-v-6d7523ab]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;height:16px}.toolbar-icon__icon--highlight[data-v-6d7523ab]{width:16px;margin-left:3px;margin-bottom:1px}.toolbar-icon__icon[data-v-6d7523ab] svg{width:auto;max-height:16px}.toolbar-icon__icon--color[data-v-6d7523ab] svg{max-height:14px;margin-top:-3px}.toolbar-button[data-v-6d7523ab]:hover{color:#000;background-color:#d8dee5}.toolbar-button[data-v-6d7523ab]:active,.active[data-v-6d7523ab]{background-color:#c8d0d8}.color-bar[data-v-6d7523ab]{border-radius:4px;position:absolute;z-index:5;height:4px;left:50%;bottom:6px;transform:translate(-50%);width:16px}.toolbar-item[data-v-33900b15]{position:relative;z-index:1;min-width:30px;margin:0 1px}.toolbar-button[data-v-33900b15]{padding:5px;height:32px;max-height:32px;border-radius:6px;overflow-y:visible;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#47484a;transition:all .2s ease-out;user-select:none;position:relative;box-sizing:border-box}.toolbar-button[data-v-33900b15]:hover{background-color:#dbdbdb}.toolbar-button[data-v-33900b15]:active,.active[data-v-33900b15]{background-color:#c8d0d8}.button-label[data-v-33900b15]{overflow:hidden;width:100%;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:15px;margin:5px}.toolbar-icon+.dropdown-caret[data-v-33900b15]{margin-left:4px}.left[data-v-33900b15],.right[data-v-33900b15]{width:50%;height:100%;background-color:#dbdbdb;border-radius:60%}.has-inline-text-input[data-v-33900b15]:hover{cursor:text}.disabled[data-v-33900b15]{cursor:default}.disabled[data-v-33900b15]:hover{cursor:default;background-color:initial}.disabled .toolbar-icon[data-v-33900b15],.disabled .caret[data-v-33900b15],.disabled .button-label[data-v-33900b15]{opacity:.35}.caret[data-v-33900b15]{font-size:1em;padding-left:2px;padding-right:2px}.button-text-input[data-v-33900b15]{color:#47484a;border-radius:4px;text-align:center;width:30px;font-size:14px;margin-right:5px;font-weight:400;background-color:transparent;padding:2px 0;outline:none;border:1px solid #d8dee5;box-sizing:border-box}.button-text-input[data-v-33900b15]::placeholder{color:#47484a}.dropdown-caret[data-v-33900b15]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:auto;width:10px;height:10px}@media (max-width: 1280px){.toolbar-item--doc-mode .button-label[data-v-33900b15]{display:none}.toolbar-item--doc-mode .toolbar-icon[data-v-33900b15]{margin-right:5px}.toolbar-item--linked-styles[data-v-33900b15]{width:auto!important}.toolbar-item--linked-styles .button-label[data-v-33900b15]{display:none}}.toolbar-separator[data-v-ac2ee4f9]{height:32px;border-radius:6px;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;color:#dbdbdb;transition:all .2s ease-out;user-select:none;overflow:hidden}.toolbar-separator .separator-inner[data-v-ac2ee4f9]{width:1.5px;height:20px;background-color:#dbdbdb}.toolbar-button[data-v-ac2ee4f9]:hover{color:#000;background-color:#d8dee5}.toolbar-button[data-v-ac2ee4f9]:active,.active[data-v-ac2ee4f9]{background-color:#c8d0d8}.overflow-menu[data-v-ca29bf1d]{position:relative}.overflow-menu_items[data-v-ca29bf1d]{position:absolute;width:200px;top:calc(100% + 3px);right:0;padding:4px 8px;background-color:#fff;border-radius:8px;z-index:100;box-shadow:0 2px 4px #00000040;box-sizing:border-box}.superdoc-toolbar-overflow[data-v-ca29bf1d]{min-width:auto!important;max-width:200px;flex-wrap:wrap}@media (max-width: 300px){.overflow-menu_items[data-v-ca29bf1d]{right:auto;left:0;transform:translate(-50%)}}.sd-editor-toolbar-dropdown{border-radius:8px;min-width:80px;cursor:pointer}.sd-editor-toolbar-dropdown .n-dropdown-option-body:hover:before,.sd-editor-toolbar-dropdown .n-dropdown-option-body:hover:after{background-color:#d8dee5!important}.sd-editor-toolbar-tooltip,.sd-editor-toolbar-tooltip.n-popover{background-color:#333!important;font-size:14px;border-radius:8px!important}.button-group[data-v-7a2db351]{display:flex}.superdoc-toolbar[data-v-ac3df73e]{display:flex;width:100%;justify-content:space-between;padding:4px 16px;box-sizing:border-box}@media (max-width: 1280px){.superdoc-toolbar-group-side[data-v-ac3df73e]{min-width:auto!important}}@media (max-width: 768px){.superdoc-toolbar[data-v-ac3df73e]{padding:4px 10px;justify-content:inherit}}.prosemirror-isolated[data-v-b140a4fa]{z-index:100;position:relative}.ai-writer[data-v-b140a4fa]{display:flex;flex-direction:column;width:300px;border-radius:5px;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;padding:.75rem;box-shadow:0 0 2px 2px #7715b366;border:1px solid #7715b3}.ai-writer[data-v-b140a4fa]::-webkit-scrollbar{display:none}.ai-textarea[data-v-b140a4fa]{padding-left:8px;width:100%;color:#47484a;font-size:12px;border:none;background:transparent;outline:none;resize:none;overflow:hidden;height:100%;font-family:Inter,sans-serif}.ai-textarea[data-v-b140a4fa]::placeholder{color:#666;font-weight:400}.ai-user-input-field[data-v-b140a4fa]{line-height:13px;display:flex;flex-direction:row;min-height:50px;resize:none;border:none;border-radius:8px;margin-bottom:10px}.ai-textarea-icon[data-v-b140a4fa]{display:block;font-weight:800;font-size:14px;width:16px;height:16px}.ai-textarea-icon svg[data-v-b140a4fa]{height:16px;width:16px}.ai-textarea-icon.loading[data-v-b140a4fa]{animation:spin-b140a4fa 2s linear infinite}.loading i[data-v-b140a4fa]{display:flex}.error[data-v-b140a4fa]{fill:#ed4337}.ai-submit-button[data-v-b140a4fa]{border:none;padding:0;margin:0;cursor:pointer;display:flex;align-items:center}.ai-submit-button[data-v-b140a4fa]:hover{opacity:.8}@keyframes spin-b140a4fa{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ai-loader[data-v-b140a4fa]{display:flex;height:14px;justify-content:flex-end;align-items:center}.sd-input-active{border:1px solid #1355ff!important}.sd-super-editor-html .ProseMirror{border:1px solid #d9d9d9;border-radius:8px;height:100%;width:100%;outline:none}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror li:has(>ul:first-child,>ol:first-child):not(:has(>p)){list-style-type:none}.ProseMirror li:has(>ul:first-child,>ol:first-child):not(:has(>p))::marker{content:""}.ProseMirror li::marker{font-size:var(--marker-font-size);font-family:var(--marker-font-family)}.ProseMirror li[data-marker-type]{list-style:none;display:grid;grid-template-columns:max-content 1fr;column-gap:.5em;align-items:start}.ProseMirror li[data-marker-type]::marker{content:""}.ProseMirror li[data-marker-type]:before{content:attr(data-marker-type);white-space:pre;font-size:var(--marker-font-size);font-family:var(--marker-font-family);grid-column:1}.ProseMirror li[data-marker-type]>*{grid-column:2;margin:0}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection *{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;inset:-2px -2px -2px -32px;border:2px solid #8cf;pointer-events:none}.ProseMirror img{height:auto;max-width:100%}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}.ProseMirror .sd-editor-tab{display:inline-block;vertical-align:text-bottom}.ProseMirror u .sd-editor-tab:not(.pagination-inner .sd-editor-tab){white-space:pre;border-bottom:1px solid #000;margin-bottom:1.5px}.ProseMirror.resize-cursor{cursor:ew-resize;cursor:col-resize}.ProseMirror .tableWrapper{--table-border-width: 1px;--offset: 2px;overflow-x:auto;scrollbar-width:thin;width:calc(100% + (var(--table-border-width) + var(--offset)))}.ProseMirror table{border-collapse:collapse;border-spacing:0;table-layout:fixed;overflow:hidden;margin:0}.ProseMirror tr{position:relative}.ProseMirror td,.ProseMirror th{min-width:1em;padding:3px 2px;position:relative;vertical-align:top;box-sizing:border-box;overflow-wrap:anywhere}.ProseMirror th{font-weight:700;text-align:left}.ProseMirror table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;z-index:20;background-color:#adf;pointer-events:none}.ProseMirror table .selectedCell:after{position:absolute;content:"";inset:0;background:#c8c8ff66;pointer-events:none;z-index:2}.ProseMirror .track-insert-dec,.ProseMirror .track-delete-dec,.ProseMirror .track-format-dec{pointer-events:none}.ProseMirror .track-insert-dec.hidden,.ProseMirror .track-delete-dec.hidden{display:none}.ProseMirror .track-insert-dec.highlighted{border-top:1px dashed #00853D;border-bottom:1px dashed #00853D;background-color:#399c7222}.ProseMirror .track-delete-dec.highlighted{border-top:1px dashed #CB0E47;border-bottom:1px dashed #CB0E47;background-color:#cb0e4722;text-decoration:line-through;text-decoration-thickness:2px}.ProseMirror .track-format-dec.highlighted{border-bottom:2px solid gold}.ProseMirror .track-delete-widget{visibility:hidden}.ProseMirror>.ProseMirror-yjs-cursor:first-child{margin-top:16px}.ProseMirror-yjs-cursor{position:relative;margin-left:-1px;margin-right:-1px;border-left:1px solid black;border-right:1px solid black;border-color:orange;word-break:normal;pointer-events:none}.ProseMirror-yjs-cursor>div{position:absolute;top:-1.05em;left:-1px;font-size:13px;background-color:#fa8100;font-family:serif;font-style:normal;font-weight:400;line-height:normal;user-select:none;color:#fff;padding-left:2px;padding-right:2px;white-space:nowrap}.ProseMirror placeholder{display:inline;border:1px solid #ccc;color:#ccc}.ProseMirror placeholder:after{content:"☁";font-size:200%;line-height:.1;font-weight:700}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute;margin:0}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid black;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.ProseMirror div[data-type=contentBlock]{position:absolute;outline:none;user-select:none;z-index:-1}.sd-editor-dropcap{float:left;display:flex;align-items:baseline;margin-top:-5px}.ProseMirror-search-match{background-color:#ffff0054}.ProseMirror-active-search-match{background-color:#ff6a0054}.superdoc-toolbar svg{width:100%;height:100%;display:block;fill:currentColor}.superdoc-toolbar svg path{stroke:currentColor}.sd-editor-toolbar-dropdown .n-dropdown-option .dropdown-select-icon{display:flex;width:12px;height:12px}.toolbar-icon__icon--ai{position:relative;z-index:1}.toolbar-icon__icon--ai svg{fill:transparent}.toolbar-icon__icon--ai:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#dad77680 -20%,#bf6464 30%,#4d52d9 60%,#ffdb66 150%);-webkit-mask:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.7-53.3L160 80l-53.3-26.7L80 0 53.3 53.3 0 80l53.3 26.7L80 160zm352 128l-26.7 53.3L352 368l53.3 26.7L432 448l26.7-53.3L512 368l-53.3-26.7L432 288zm70.6-193.8L417.8 9.4C411.5 3.1 403.3 0 395.2 0c-8.2 0-16.4 3.1-22.6 9.4L9.4 372.5c-12.5 12.5-12.5 32.8 0 45.3l84.9 84.9c6.3 6.3 14.4 9.4 22.6 9.4 8.2 0 16.4-3.1 22.6-9.4l363.1-363.2c12.5-12.5 12.5-32.8 0-45.2zM359.5 203.5l-50.9-50.9 86.6-86.6 50.9 50.9-86.6 86.6z'/></svg>") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.7-53.3L160 80l-53.3-26.7L80 0 53.3 53.3 0 80l53.3 26.7L80 160zm352 128l-26.7 53.3L352 368l53.3 26.7L432 448l26.7-53.3L512 368l-53.3-26.7L432 288zm70.6-193.8L417.8 9.4C411.5 3.1 403.3 0 395.2 0c-8.2 0-16.4 3.1-22.6 9.4L9.4 372.5c-12.5 12.5-12.5 32.8 0 45.3l84.9 84.9c6.3 6.3 14.4 9.4 22.6 9.4 8.2 0 16.4-3.1 22.6-9.4l363.1-363.2c12.5-12.5 12.5-32.8 0-45.2zM359.5 203.5l-50.9-50.9 86.6-86.6 50.9 50.9-86.6 86.6z'/></svg>") center / contain no-repeat;filter:brightness(1.2);transition:filter .2s ease}.toolbar-icon__icon--ai:hover:before{filter:brightness(1.3)}@keyframes aiTextAppear{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.sd-ai-text-appear{display:inline;opacity:0;animation:aiTextAppear .7s ease-out forwards;animation-fill-mode:both;will-change:opacity,transform;contain:content}.sd-ai-loader{display:flex;justify-content:flex-start}.sd-ai-loader>img{width:fit-content;height:40px}@keyframes ai-pulse{0%{background-color:#6366f11a}50%{background-color:#6366f160}to{background-color:#6366f11a}}.sd-ai-highlight-pulse{animation:ai-pulse 1.5s ease-in-out infinite}.pagination-section-header{cursor:default}.pagination-section-footer{position:relative;width:100%;min-width:100%;display:flex;flex-direction:column;justify-content:flex-end;cursor:default}.pagination-break-wrapper{width:100%;margin:0;padding:0;cursor:default;position:relative}.pagination-separator{position:relative;display:block;height:18px;min-height:18px;min-width:100%;width:100%;border-top:1px solid #DBDBDB;border-bottom:1px solid #DBDBDB;cursor:default}.pagination-inner{position:absolute;top:0;left:0;display:flex;flex-direction:column;background-color:#fff}.pagination-section-footer .sd-editor-shape-container:has([data-id=auto-page-number],[data-id=auto-total-pages]){margin-left:auto}.pagination-section-header img[contenteditable=false],.pagination-section-footer img[contenteditable=false]{pointer-events:none}.sd-editor-popover{background-color:#fff;border-radius:8px;-webkit-box-shadow:0px 4px 12px 0px rgba(50,50,50,.15);-moz-box-shadow:0px 4px 12px 0px rgba(50,50,50,.15);box-shadow:0 4px 12px #32323226;padding:0;width:auto;height:auto;font-size:14px;color:#333;z-index:1000}.sd-editor-popover .popover-header{font-weight:700;margin-bottom:8px}.tippy-box[data-theme~=sd-editor-popover]{background-color:#fff;border-radius:8px;box-shadow:0 4px 8px #0000001a;border:none!important;padding:0!important}.tippy-box[data-theme~=sd-editor-popover] .tippy-arrow{color:#fff;border:1px solid #dbdbdb}.tippy-box[data-theme~=sd-editor-popover] .tippy-content{padding:0}.sd-editor-placeholder:before{content:attr(data-placeholder);color:#aaa;pointer-events:none;display:block;height:0}.sd-editor-mention{background-color:#1355ff15;color:#222;font-weight:400;border-radius:3px;padding:0 5px;cursor:default;display:inline-block;box-sizing:border-box}.sd-editor-comment-highlight{transition:background-color .25s ease}.sd-editor-comment-highlight:hover{background-color:#1354ff55}.alignment-buttons[data-v-d6fae878]{display:flex;justify-content:space-between;width:100%;padding:8px;box-sizing:border-box}.button-icon[data-v-d6fae878]{cursor:pointer;padding:5px;font-size:16px;width:25px;height:25px;border-radius:4px;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.button-icon[data-v-d6fae878]:hover{background-color:#d8dee5}.button-icon[data-v-d6fae878] svg{width:100%;height:100%;display:block;fill:currentColor}.link-input-ctn[data-v-6990d5b2] svg{width:100%;height:100%;display:block;fill:currentColor}.open-link-icon[data-v-6990d5b2]{margin-left:10px;width:30px;height:30px;border-radius:50%;border:1px solid transparent;display:flex;justify-content:center;align-items:center;flex-shrink:0;transition:all .2s ease;cursor:pointer}.open-link-icon[data-v-6990d5b2]:hover{color:#1355ff;background-color:#fff;border:1px solid #dbdbdb}.open-link-icon[data-v-6990d5b2] svg{width:15px;height:15px}.disabled[data-v-6990d5b2]{opacity:.6;cursor:not-allowed;pointer-events:none}.link-buttons[data-v-6990d5b2]{display:flex;justify-content:flex-end;margin-top:10px}.remove-btn__icon[data-v-6990d5b2]{display:inline-flex;width:13px;height:13px;flex-shrink:0;margin-right:4px}.link-buttons button[data-v-6990d5b2]{margin-left:5px}.disable-btn[data-v-6990d5b2]{opacity:.6;cursor:not-allowed;pointer-events:none}.go-to-anchor a[data-v-6990d5b2]{font-size:14px;text-decoration:underline}.clickable[data-v-6990d5b2]{cursor:pointer}.link-title[data-v-6990d5b2]{font-size:14px;font-weight:600;margin-bottom:10px}.input-icon[data-v-6990d5b2]{position:absolute;transform:rotate(45deg);left:25px;width:auto;height:12px;color:#999;pointer-events:none}.hasBottomMargin[data-v-6990d5b2]{margin-bottom:1em}.link-input-ctn[data-v-6990d5b2]{width:320px;display:flex;flex-direction:column;padding:1em;border-radius:5px;background-color:#fff;box-sizing:border-box}.remove-btn[data-v-6990d5b2]{display:inline-flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;background-color:#fff;color:#000;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;border:1px solid #ebebeb;box-sizing:border-box}.remove-btn[data-v-6990d5b2]:hover{background-color:#dbdbdb}.submit-btn[data-v-6990d5b2]{display:inline-flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;border:none;background-color:#1355ff;color:#fff;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.submit-btn[data-v-6990d5b2]:hover{background-color:#0d47c1}.input-row[data-v-6990d5b2]{align-content:baseline;display:flex;align-items:center}.input-row input[data-v-6990d5b2]{font-size:13px;flex-grow:1;border-radius:8px;padding:10px 10px 10px 32px;box-shadow:0 4px 12px #00000026;color:#666;border:1px solid #ddd;box-sizing:border-box}.input-row input[data-v-6990d5b2]:active,.input-row input[data-v-6990d5b2]:focus{outline:none;border:1px solid #1355ff}.input-row[data-v-6990d5b2]{font-size:16px}.error[data-v-6990d5b2]{border-color:red!important;background-color:#ff00001a}.submit[data-v-6990d5b2]{cursor:pointer}.document-mode[data-v-f86e1477] svg{width:100%;height:100%;display:block;fill:currentColor}.disabled[data-v-f86e1477]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.document-mode[data-v-f86e1477]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box}.option-item[data-v-f86e1477]{display:flex;flex-direction:row;background-color:#fff;padding:10px;border-radius:4px;cursor:pointer;box-sizing:border-box}.document-mode-column[data-v-f86e1477]{display:flex;flex-direction:column}.document-mode-type[data-v-f86e1477]{font-weight:400;font-size:15px;color:#222}.icon-column[data-v-f86e1477]{margin-right:5px;justify-content:flex-start;align-items:center;padding:0 5px;color:#000;height:100%;box-sizing:border-box}.icon-column__icon[data-v-f86e1477]{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;height:18px;color:#47484a}.icon-column__icon[data-v-f86e1477] svg{width:auto;max-height:18px}.document-mode-description[data-v-f86e1477]{font-size:12px;color:#666}.option-item[data-v-f86e1477]:hover{background-color:#c8d0d8}.style-name[data-v-97e3296a]{padding:16px 10px}.style-name[data-v-97e3296a]:hover{background-color:#c8d0d8}.linked-style-buttons[data-v-97e3296a]{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-height:400px;width:200px;padding:0;margin:0;overflow:auto}.button-icon[data-v-97e3296a]{cursor:pointer;padding:5px;font-size:16px;width:25px;height:25px;border-radius:4px;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.button-icon[data-v-97e3296a]:hover{background-color:#d8dee5}.button-icon[data-v-97e3296a] svg{width:100%;height:100%;display:block;fill:currentColor}.option-row[data-v-6a2a9a40]{display:flex;flex-direction:row}.option[data-v-6a2a9a40]{border-radius:50%;cursor:pointer;padding:3px;display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box}.option[data-v-6a2a9a40]:hover{background-color:#dbdbdb}.option__icon[data-v-6a2a9a40]{width:20px;height:20px;flex-shrink:0}.option__check[data-v-6a2a9a40]{width:14px;height:14px;flex-shrink:0;position:absolute}.options-grid-wrap[data-v-47b783db]{padding:5px;border-radius:5px}.none-option[data-v-47b783db]{display:flex;align-items:center;gap:4px;padding:4px}.none-option[data-v-47b783db]:hover{opacity:.65}.none-icon[data-v-47b783db]{width:16px}.option-grid-ctn[data-v-47b783db]{display:flex;flex-direction:column;background-color:#fff;z-index:3;box-sizing:border-box}.option-grid-ctn__subtitle[data-v-47b783db]{padding:3px;font-size:12px;font-weight:600}.option-grid-ctn[data-v-47b783db] svg{width:100%;height:100%;display:block;fill:currentColor}.toolbar-table-grid[data-v-06352ab9]{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:8px;box-sizing:border-box}.toolbar-table-grid__item[data-v-06352ab9]{width:20px;height:20px;border:1px solid #d3d3d3;cursor:pointer;transition:all .15s}.toolbar-table-grid__item.selected[data-v-06352ab9]{background-color:#dbdbdb}.toolbar-table-grid-value[data-v-06352ab9]{font-size:13px;line-height:1.1;padding:0 8px 2px}.toolbar-table-actions[data-v-9a702d7f]{display:flex;flex-direction:column;gap:6px;padding:10px;box-sizing:border-box}.toolbar-table-actions[data-v-9a702d7f] svg{width:100%;height:100%;display:block;fill:currentColor}.toolbar-table-actions__item[data-v-9a702d7f]{display:flex;gap:5px;background-color:#fff;padding:4px 10px;border-radius:4px;cursor:pointer;box-sizing:border-box;position:relative}.toolbar-table-actions__item[data-v-9a702d7f]:hover{background-color:#c8d0d8}.toolbar-table-actions__item--border[data-v-9a702d7f]:after{content:"";display:block;position:absolute;bottom:-3px;left:-10px;right:0;height:1px;width:calc(100% + 20px);background:#c8d0d8}.toolbar-table-actions__icon[data-v-9a702d7f]{display:flex;justify-content:center;align-items:center;width:20px;color:#000;box-sizing:border-box}.toolbar-table-actions__icon-wrapper[data-v-9a702d7f]{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;height:14px;color:#47484a}.toolbar-table-actions__icon-wrapper[data-v-9a702d7f] svg{width:auto;max-height:14px}.toolbar-table-actions__label[data-v-9a702d7f]{font-size:15px;font-weight:400;color:#222;white-space:nowrap}.search-input-ctn[data-v-af870fbd]{padding:10px;border-radius:5px}.search-input-ctn .search-input[data-v-af870fbd]{min-width:200px;font-size:13px;flex-grow:1;padding:10px;border-radius:8px;color:#666;border:1px solid #ddd;box-sizing:border-box;box-shadow:0 4px 12px #00000026}.search-input-ctn .search-input[data-v-af870fbd]:active,.search-input-ctn .search-input[data-v-af870fbd]:focus{outline:none;border:1px solid #1355ff}.search-input-ctn .row[data-v-af870fbd]{display:flex}.search-input-ctn .row.submit[data-v-af870fbd]{margin-top:10px;flex-direction:row-reverse}.search-input-ctn .submit-btn[data-v-af870fbd]{display:flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;border:none;background-color:#1355ff;color:#fff;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.vertical-indicator[data-v-ad77036c]{position:absolute;height:0px;min-width:1px;background-color:#aaa;top:20px;z-index:100}.margin-handle[data-v-ad77036c]{width:56px;min-width:5px;max-width:5px;background-color:var(--ruler-handle-color);height:20px;cursor:grab;position:absolute;margin-left:-2px;border-radius:4px 4px 0 0;transition:background-color .25s ease}.margin-handle[data-v-ad77036c]:hover{background-color:var(--ruler-handle-active-color)}.ruler[data-v-ad77036c]{max-height:25px;height:25px;max-width:8.5in;display:flex;margin:0;padding:0;align-items:var(--alignment);box-sizing:border-box;position:relative;color:#666}.mouse-tracker[data-v-ad77036c]{position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--color);pointer-events:none}.numbering[data-v-ad77036c]{position:absolute;top:-16px;left:-2px;font-size:10px;pointer-events:none;user-select:none}.ruler-section[data-v-ad77036c]{position:relative;display:flex;align-items:var(--alignment);pointer-events:none;user-select:none}.super-editor-container[data-v-ff8f86f4]{width:auto;height:auto;min-width:8in;min-height:11in;position:relative;display:flex;flex-direction:column}.ruler[data-v-ff8f86f4]{margin-bottom:2px}.super-editor[data-v-ff8f86f4]{color:initial}.placeholder-editor[data-v-ff8f86f4]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:8px;padding:1in;z-index:5;background-color:#fff;box-sizing:border-box}.placeholder-title[data-v-ff8f86f4]{display:flex;justify-content:center;margin-bottom:40px}.super-editor[data-v-4d5cff52]{box-sizing:border-box;width:100%;height:100%;border:1px solid #999;outline:none;transition:border .2s ease;background-color:#fff}.super-input[data-v-4d5cff52]{font-size:13px;font-family:inherit}.editor-element[data-v-4d5cff52]{height:100%;width:100%;border:none;outline:none}.super-input-active[data-v-4d5cff52]{border:1px solid #007bff;outline:none}
81
+ .selected[data-v-0a2a8b4e]{background-color:#dbdbdb}.mentions-container[data-v-0a2a8b4e]{outline:none!important;border:none;max-height:300px;overflow-y:auto}.mentions-container[data-v-0a2a8b4e]:focus{border:none;outline:none!important}.user-row[data-v-0a2a8b4e]{padding:10px 15px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.toolbar-icon[data-v-6d7523ab]{display:flex;align-items:center;justify-content:center;flex-shrink:0}.toolbar-icon__icon[data-v-6d7523ab]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;height:16px}.toolbar-icon__icon--highlight[data-v-6d7523ab]{width:16px;margin-left:3px;margin-bottom:1px}.toolbar-icon__icon[data-v-6d7523ab] svg{width:auto;max-height:16px}.toolbar-icon__icon--color[data-v-6d7523ab] svg{max-height:14px;margin-top:-3px}.toolbar-button[data-v-6d7523ab]:hover{color:#000;background-color:#d8dee5}.toolbar-button[data-v-6d7523ab]:active,.active[data-v-6d7523ab]{background-color:#c8d0d8}.color-bar[data-v-6d7523ab]{border-radius:4px;position:absolute;z-index:5;height:4px;left:50%;bottom:6px;transform:translate(-50%);width:16px}.toolbar-item[data-v-33900b15]{position:relative;z-index:1;min-width:30px;margin:0 1px}.toolbar-button[data-v-33900b15]{padding:5px;height:32px;max-height:32px;border-radius:6px;overflow-y:visible;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#47484a;transition:all .2s ease-out;user-select:none;position:relative;box-sizing:border-box}.toolbar-button[data-v-33900b15]:hover{background-color:#dbdbdb}.toolbar-button[data-v-33900b15]:active,.active[data-v-33900b15]{background-color:#c8d0d8}.button-label[data-v-33900b15]{overflow:hidden;width:100%;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:15px;margin:5px}.toolbar-icon+.dropdown-caret[data-v-33900b15]{margin-left:4px}.left[data-v-33900b15],.right[data-v-33900b15]{width:50%;height:100%;background-color:#dbdbdb;border-radius:60%}.has-inline-text-input[data-v-33900b15]:hover{cursor:text}.disabled[data-v-33900b15]{cursor:default}.disabled[data-v-33900b15]:hover{cursor:default;background-color:initial}.disabled .toolbar-icon[data-v-33900b15],.disabled .caret[data-v-33900b15],.disabled .button-label[data-v-33900b15]{opacity:.35}.caret[data-v-33900b15]{font-size:1em;padding-left:2px;padding-right:2px}.button-text-input[data-v-33900b15]{color:#47484a;border-radius:4px;text-align:center;width:30px;font-size:14px;margin-right:5px;font-weight:400;background-color:transparent;padding:2px 0;outline:none;border:1px solid #d8dee5;box-sizing:border-box}.button-text-input[data-v-33900b15]::placeholder{color:#47484a}.dropdown-caret[data-v-33900b15]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:auto;width:10px;height:10px}@media (max-width: 1280px){.toolbar-item--doc-mode .button-label[data-v-33900b15]{display:none}.toolbar-item--doc-mode .toolbar-icon[data-v-33900b15]{margin-right:5px}.toolbar-item--linked-styles[data-v-33900b15]{width:auto!important}.toolbar-item--linked-styles .button-label[data-v-33900b15]{display:none}}.toolbar-separator[data-v-ac2ee4f9]{height:32px;border-radius:6px;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;color:#dbdbdb;transition:all .2s ease-out;user-select:none;overflow:hidden}.toolbar-separator .separator-inner[data-v-ac2ee4f9]{width:1.5px;height:20px;background-color:#dbdbdb}.toolbar-button[data-v-ac2ee4f9]:hover{color:#000;background-color:#d8dee5}.toolbar-button[data-v-ac2ee4f9]:active,.active[data-v-ac2ee4f9]{background-color:#c8d0d8}.overflow-menu[data-v-ca29bf1d]{position:relative}.overflow-menu_items[data-v-ca29bf1d]{position:absolute;width:200px;top:calc(100% + 3px);right:0;padding:4px 8px;background-color:#fff;border-radius:8px;z-index:100;box-shadow:0 2px 4px #00000040;box-sizing:border-box}.superdoc-toolbar-overflow[data-v-ca29bf1d]{min-width:auto!important;max-width:200px;flex-wrap:wrap}@media (max-width: 300px){.overflow-menu_items[data-v-ca29bf1d]{right:auto;left:0;transform:translate(-50%)}}.sd-editor-toolbar-dropdown{border-radius:8px;min-width:80px;cursor:pointer}.sd-editor-toolbar-dropdown .n-dropdown-option-body:hover:before,.sd-editor-toolbar-dropdown .n-dropdown-option-body:hover:after{background-color:#d8dee5!important}.sd-editor-toolbar-tooltip,.sd-editor-toolbar-tooltip.n-popover{background-color:#333!important;font-size:14px;border-radius:8px!important}.button-group[data-v-7a2db351]{display:flex}.superdoc-toolbar[data-v-ac3df73e]{display:flex;width:100%;justify-content:space-between;padding:4px 16px;box-sizing:border-box}@media (max-width: 1280px){.superdoc-toolbar-group-side[data-v-ac3df73e]{min-width:auto!important}}@media (max-width: 768px){.superdoc-toolbar[data-v-ac3df73e]{padding:4px 10px;justify-content:inherit}}.prosemirror-isolated[data-v-4cf86e1f]{z-index:100;position:relative}.ai-writer[data-v-4cf86e1f]{display:flex;flex-direction:column;width:300px;border-radius:5px;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;padding:.75rem;box-shadow:0 0 2px 2px #7715b366;border:1px solid #7715b3}.ai-writer[data-v-4cf86e1f]::-webkit-scrollbar{display:none}.ai-textarea[data-v-4cf86e1f]{padding-left:8px;width:100%;color:#47484a;font-size:12px;border:none;background:transparent;outline:none;resize:none;overflow:hidden;height:100%;font-family:Inter,sans-serif}.ai-textarea[data-v-4cf86e1f]::placeholder{color:#666;font-weight:400}.ai-user-input-field[data-v-4cf86e1f]{line-height:13px;display:flex;flex-direction:row;min-height:50px;resize:none;border:none;border-radius:8px;margin-bottom:10px}.ai-textarea-icon[data-v-4cf86e1f]{display:block;font-weight:800;font-size:14px;width:16px;height:16px}.ai-textarea-icon svg[data-v-4cf86e1f]{height:16px;width:16px}.ai-textarea-icon.loading[data-v-4cf86e1f]{animation:spin-4cf86e1f 2s linear infinite}.loading i[data-v-4cf86e1f]{display:flex}.error[data-v-4cf86e1f]{fill:#ed4337}.ai-submit-button[data-v-4cf86e1f]{border:none;padding:0;margin:0;cursor:pointer;display:flex;align-items:center}.ai-submit-button[data-v-4cf86e1f]:hover{opacity:.8}@keyframes spin-4cf86e1f{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ai-loader[data-v-4cf86e1f]{display:flex;height:14px;justify-content:flex-end;align-items:center}.sd-input-active{border:1px solid #1355ff!important}.sd-super-editor-html .ProseMirror{border:1px solid #d9d9d9;border-radius:8px;height:100%;width:100%;outline:none}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror li:has(>ul:first-child,>ol:first-child):not(:has(>p)){list-style-type:none}.ProseMirror li:has(>ul:first-child,>ol:first-child):not(:has(>p))::marker{content:""}.ProseMirror li::marker{font-size:var(--marker-font-size);font-family:var(--marker-font-family)}.ProseMirror li[data-marker-type]{list-style:none;display:grid;grid-template-columns:max-content 1fr;column-gap:.5em;align-items:start}.ProseMirror li[data-marker-type]::marker{content:""}.ProseMirror li[data-marker-type]:before{content:attr(data-marker-type);white-space:pre;font-size:var(--marker-font-size);font-family:var(--marker-font-family);grid-column:1}.ProseMirror li[data-marker-type]>*{grid-column:2;margin:0}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection *{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;inset:-2px -2px -2px -32px;border:2px solid #8cf;pointer-events:none}.ProseMirror img{height:auto;max-width:100%}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}.ProseMirror .sd-editor-tab{display:inline-block;vertical-align:text-bottom}.ProseMirror u .sd-editor-tab:not(.pagination-inner .sd-editor-tab){white-space:pre;border-bottom:1px solid #000;margin-bottom:1.5px}.ProseMirror.resize-cursor{cursor:ew-resize;cursor:col-resize}.ProseMirror .tableWrapper{--table-border-width: 1px;--offset: 2px;overflow-x:auto;scrollbar-width:thin;width:calc(100% + (var(--table-border-width) + var(--offset)))}.ProseMirror table{border-collapse:collapse;border-spacing:0;table-layout:fixed;overflow:hidden;margin:0}.ProseMirror tr{position:relative}.ProseMirror td,.ProseMirror th{min-width:1em;padding:3px 2px;position:relative;vertical-align:top;box-sizing:border-box;overflow-wrap:anywhere}.ProseMirror th{font-weight:700;text-align:left}.ProseMirror table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;z-index:20;background-color:#adf;pointer-events:none}.ProseMirror table .selectedCell:after{position:absolute;content:"";inset:0;background:#c8c8ff66;pointer-events:none;z-index:2}.ProseMirror .track-insert-dec,.ProseMirror .track-delete-dec,.ProseMirror .track-format-dec{pointer-events:none}.ProseMirror .track-insert-dec.hidden,.ProseMirror .track-delete-dec.hidden{display:none}.ProseMirror .track-insert-dec.highlighted{border-top:1px dashed #00853D;border-bottom:1px dashed #00853D;background-color:#399c7222}.ProseMirror .track-delete-dec.highlighted{border-top:1px dashed #CB0E47;border-bottom:1px dashed #CB0E47;background-color:#cb0e4722;text-decoration:line-through;text-decoration-thickness:2px}.ProseMirror .track-format-dec.highlighted{border-bottom:2px solid gold}.ProseMirror .track-delete-widget{visibility:hidden}.ProseMirror>.ProseMirror-yjs-cursor:first-child{margin-top:16px}.ProseMirror-yjs-cursor{position:relative;margin-left:-1px;margin-right:-1px;border-left:1px solid black;border-right:1px solid black;border-color:orange;word-break:normal;pointer-events:none}.ProseMirror-yjs-cursor>div{position:absolute;top:-1.05em;left:-1px;font-size:13px;background-color:#fa8100;font-family:serif;font-style:normal;font-weight:400;line-height:normal;user-select:none;color:#fff;padding-left:2px;padding-right:2px;white-space:nowrap}.ProseMirror placeholder{display:inline;border:1px solid #ccc;color:#ccc}.ProseMirror placeholder:after{content:"☁";font-size:200%;line-height:.1;font-weight:700}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute;margin:0}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid black;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.ProseMirror div[data-type=contentBlock]{position:absolute;outline:none;user-select:none;z-index:-1}.sd-editor-dropcap{float:left;display:flex;align-items:baseline;margin-top:-5px}.ProseMirror-search-match{background-color:#ffff0054}.ProseMirror-active-search-match{background-color:#ff6a0054}.superdoc-toolbar svg{width:100%;height:100%;display:block;fill:currentColor}.superdoc-toolbar svg path{stroke:currentColor}.sd-editor-toolbar-dropdown .n-dropdown-option .dropdown-select-icon{display:flex;width:12px;height:12px}.toolbar-icon__icon--ai{position:relative;z-index:1}.toolbar-icon__icon--ai svg{fill:transparent}.toolbar-icon__icon--ai:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#dad77680 -20%,#bf6464 30%,#4d52d9 60%,#ffdb66 150%);-webkit-mask:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.7-53.3L160 80l-53.3-26.7L80 0 53.3 53.3 0 80l53.3 26.7L80 160zm352 128l-26.7 53.3L352 368l53.3 26.7L432 448l26.7-53.3L512 368l-53.3-26.7L432 288zm70.6-193.8L417.8 9.4C411.5 3.1 403.3 0 395.2 0c-8.2 0-16.4 3.1-22.6 9.4L9.4 372.5c-12.5 12.5-12.5 32.8 0 45.3l84.9 84.9c6.3 6.3 14.4 9.4 22.6 9.4 8.2 0 16.4-3.1 22.6-9.4l363.1-363.2c12.5-12.5 12.5-32.8 0-45.2zM359.5 203.5l-50.9-50.9 86.6-86.6 50.9 50.9-86.6 86.6z'/></svg>") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.7-53.3L160 80l-53.3-26.7L80 0 53.3 53.3 0 80l53.3 26.7L80 160zm352 128l-26.7 53.3L352 368l53.3 26.7L432 448l26.7-53.3L512 368l-53.3-26.7L432 288zm70.6-193.8L417.8 9.4C411.5 3.1 403.3 0 395.2 0c-8.2 0-16.4 3.1-22.6 9.4L9.4 372.5c-12.5 12.5-12.5 32.8 0 45.3l84.9 84.9c6.3 6.3 14.4 9.4 22.6 9.4 8.2 0 16.4-3.1 22.6-9.4l363.1-363.2c12.5-12.5 12.5-32.8 0-45.2zM359.5 203.5l-50.9-50.9 86.6-86.6 50.9 50.9-86.6 86.6z'/></svg>") center / contain no-repeat;filter:brightness(1.2);transition:filter .2s ease}.toolbar-icon__icon--ai:hover:before{filter:brightness(1.3)}@keyframes aiTextAppear{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.sd-ai-text-appear{display:inline;opacity:0;animation:aiTextAppear .7s ease-out forwards;animation-fill-mode:both;will-change:opacity,transform;contain:content}.sd-ai-loader{display:flex;justify-content:flex-start}.sd-ai-loader>img{width:fit-content;height:40px}@keyframes ai-pulse{0%{background-color:#6366f11a}50%{background-color:#6366f160}to{background-color:#6366f11a}}.sd-ai-highlight-pulse{animation:ai-pulse 1.5s ease-in-out infinite}.pagination-section-header{cursor:default}.pagination-section-footer{position:relative;width:100%;min-width:100%;display:flex;flex-direction:column;justify-content:flex-end;cursor:default}.pagination-break-wrapper{width:100%;margin:0;padding:0;cursor:default;position:relative}.pagination-separator{position:relative;display:block;height:18px;min-height:18px;min-width:100%;width:100%;border-top:1px solid #DBDBDB;border-bottom:1px solid #DBDBDB;cursor:default}.pagination-inner{position:absolute;top:0;left:0;display:flex;flex-direction:column;background-color:#fff}.pagination-section-footer .sd-editor-shape-container:has([data-id=auto-page-number],[data-id=auto-total-pages]){margin-left:auto}.pagination-section-header img[contenteditable=false],.pagination-section-footer img[contenteditable=false]{pointer-events:none}.sd-editor-popover{background-color:#fff;border-radius:8px;-webkit-box-shadow:0px 4px 12px 0px rgba(50,50,50,.15);-moz-box-shadow:0px 4px 12px 0px rgba(50,50,50,.15);box-shadow:0 4px 12px #32323226;padding:0;width:auto;height:auto;font-size:14px;color:#333;z-index:1000}.sd-editor-popover .popover-header{font-weight:700;margin-bottom:8px}.tippy-box[data-theme~=sd-editor-popover]{background-color:#fff;border-radius:8px;box-shadow:0 4px 8px #0000001a;border:none!important;padding:0!important}.tippy-box[data-theme~=sd-editor-popover] .tippy-arrow{color:#fff;border:1px solid #dbdbdb}.tippy-box[data-theme~=sd-editor-popover] .tippy-content{padding:0}.sd-editor-placeholder:before{content:attr(data-placeholder);color:#aaa;pointer-events:none;display:block;height:0}.sd-editor-mention{background-color:#1355ff15;color:#222;font-weight:400;border-radius:3px;padding:0 5px;cursor:default;display:inline-block;box-sizing:border-box}.sd-editor-comment-highlight{transition:background-color .25s ease}.sd-editor-comment-highlight:hover{background-color:#1354ff55}.alignment-buttons[data-v-d6fae878]{display:flex;justify-content:space-between;width:100%;padding:8px;box-sizing:border-box}.button-icon[data-v-d6fae878]{cursor:pointer;padding:5px;font-size:16px;width:25px;height:25px;border-radius:4px;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.button-icon[data-v-d6fae878]:hover{background-color:#d8dee5}.button-icon[data-v-d6fae878] svg{width:100%;height:100%;display:block;fill:currentColor}.link-input-ctn[data-v-6990d5b2] svg{width:100%;height:100%;display:block;fill:currentColor}.open-link-icon[data-v-6990d5b2]{margin-left:10px;width:30px;height:30px;border-radius:50%;border:1px solid transparent;display:flex;justify-content:center;align-items:center;flex-shrink:0;transition:all .2s ease;cursor:pointer}.open-link-icon[data-v-6990d5b2]:hover{color:#1355ff;background-color:#fff;border:1px solid #dbdbdb}.open-link-icon[data-v-6990d5b2] svg{width:15px;height:15px}.disabled[data-v-6990d5b2]{opacity:.6;cursor:not-allowed;pointer-events:none}.link-buttons[data-v-6990d5b2]{display:flex;justify-content:flex-end;margin-top:10px}.remove-btn__icon[data-v-6990d5b2]{display:inline-flex;width:13px;height:13px;flex-shrink:0;margin-right:4px}.link-buttons button[data-v-6990d5b2]{margin-left:5px}.disable-btn[data-v-6990d5b2]{opacity:.6;cursor:not-allowed;pointer-events:none}.go-to-anchor a[data-v-6990d5b2]{font-size:14px;text-decoration:underline}.clickable[data-v-6990d5b2]{cursor:pointer}.link-title[data-v-6990d5b2]{font-size:14px;font-weight:600;margin-bottom:10px}.input-icon[data-v-6990d5b2]{position:absolute;transform:rotate(45deg);left:25px;width:auto;height:12px;color:#999;pointer-events:none}.hasBottomMargin[data-v-6990d5b2]{margin-bottom:1em}.link-input-ctn[data-v-6990d5b2]{width:320px;display:flex;flex-direction:column;padding:1em;border-radius:5px;background-color:#fff;box-sizing:border-box}.remove-btn[data-v-6990d5b2]{display:inline-flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;background-color:#fff;color:#000;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;border:1px solid #ebebeb;box-sizing:border-box}.remove-btn[data-v-6990d5b2]:hover{background-color:#dbdbdb}.submit-btn[data-v-6990d5b2]{display:inline-flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;border:none;background-color:#1355ff;color:#fff;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.submit-btn[data-v-6990d5b2]:hover{background-color:#0d47c1}.input-row[data-v-6990d5b2]{align-content:baseline;display:flex;align-items:center}.input-row input[data-v-6990d5b2]{font-size:13px;flex-grow:1;border-radius:8px;padding:10px 10px 10px 32px;box-shadow:0 4px 12px #00000026;color:#666;border:1px solid #ddd;box-sizing:border-box}.input-row input[data-v-6990d5b2]:active,.input-row input[data-v-6990d5b2]:focus{outline:none;border:1px solid #1355ff}.input-row[data-v-6990d5b2]{font-size:16px}.error[data-v-6990d5b2]{border-color:red!important;background-color:#ff00001a}.submit[data-v-6990d5b2]{cursor:pointer}.document-mode[data-v-f86e1477] svg{width:100%;height:100%;display:block;fill:currentColor}.disabled[data-v-f86e1477]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.document-mode[data-v-f86e1477]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box}.option-item[data-v-f86e1477]{display:flex;flex-direction:row;background-color:#fff;padding:10px;border-radius:4px;cursor:pointer;box-sizing:border-box}.document-mode-column[data-v-f86e1477]{display:flex;flex-direction:column}.document-mode-type[data-v-f86e1477]{font-weight:400;font-size:15px;color:#222}.icon-column[data-v-f86e1477]{margin-right:5px;justify-content:flex-start;align-items:center;padding:0 5px;color:#000;height:100%;box-sizing:border-box}.icon-column__icon[data-v-f86e1477]{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;height:18px;color:#47484a}.icon-column__icon[data-v-f86e1477] svg{width:auto;max-height:18px}.document-mode-description[data-v-f86e1477]{font-size:12px;color:#666}.option-item[data-v-f86e1477]:hover{background-color:#c8d0d8}.style-name[data-v-97e3296a]{padding:16px 10px}.style-name[data-v-97e3296a]:hover{background-color:#c8d0d8}.linked-style-buttons[data-v-97e3296a]{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-height:400px;width:200px;padding:0;margin:0;overflow:auto}.button-icon[data-v-97e3296a]{cursor:pointer;padding:5px;font-size:16px;width:25px;height:25px;border-radius:4px;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.button-icon[data-v-97e3296a]:hover{background-color:#d8dee5}.button-icon[data-v-97e3296a] svg{width:100%;height:100%;display:block;fill:currentColor}.option-row[data-v-6a2a9a40]{display:flex;flex-direction:row}.option[data-v-6a2a9a40]{border-radius:50%;cursor:pointer;padding:3px;display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box}.option[data-v-6a2a9a40]:hover{background-color:#dbdbdb}.option__icon[data-v-6a2a9a40]{width:20px;height:20px;flex-shrink:0}.option__check[data-v-6a2a9a40]{width:14px;height:14px;flex-shrink:0;position:absolute}.options-grid-wrap[data-v-47b783db]{padding:5px;border-radius:5px}.none-option[data-v-47b783db]{display:flex;align-items:center;gap:4px;padding:4px}.none-option[data-v-47b783db]:hover{opacity:.65}.none-icon[data-v-47b783db]{width:16px}.option-grid-ctn[data-v-47b783db]{display:flex;flex-direction:column;background-color:#fff;z-index:3;box-sizing:border-box}.option-grid-ctn__subtitle[data-v-47b783db]{padding:3px;font-size:12px;font-weight:600}.option-grid-ctn[data-v-47b783db] svg{width:100%;height:100%;display:block;fill:currentColor}.toolbar-table-grid[data-v-06352ab9]{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:8px;box-sizing:border-box}.toolbar-table-grid__item[data-v-06352ab9]{width:20px;height:20px;border:1px solid #d3d3d3;cursor:pointer;transition:all .15s}.toolbar-table-grid__item.selected[data-v-06352ab9]{background-color:#dbdbdb}.toolbar-table-grid-value[data-v-06352ab9]{font-size:13px;line-height:1.1;padding:0 8px 2px}.toolbar-table-actions[data-v-9a702d7f]{display:flex;flex-direction:column;gap:6px;padding:10px;box-sizing:border-box}.toolbar-table-actions[data-v-9a702d7f] svg{width:100%;height:100%;display:block;fill:currentColor}.toolbar-table-actions__item[data-v-9a702d7f]{display:flex;gap:5px;background-color:#fff;padding:4px 10px;border-radius:4px;cursor:pointer;box-sizing:border-box;position:relative}.toolbar-table-actions__item[data-v-9a702d7f]:hover{background-color:#c8d0d8}.toolbar-table-actions__item--border[data-v-9a702d7f]:after{content:"";display:block;position:absolute;bottom:-3px;left:-10px;right:0;height:1px;width:calc(100% + 20px);background:#c8d0d8}.toolbar-table-actions__icon[data-v-9a702d7f]{display:flex;justify-content:center;align-items:center;width:20px;color:#000;box-sizing:border-box}.toolbar-table-actions__icon-wrapper[data-v-9a702d7f]{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;height:14px;color:#47484a}.toolbar-table-actions__icon-wrapper[data-v-9a702d7f] svg{width:auto;max-height:14px}.toolbar-table-actions__label[data-v-9a702d7f]{font-size:15px;font-weight:400;color:#222;white-space:nowrap}.search-input-ctn[data-v-af870fbd]{padding:10px;border-radius:5px}.search-input-ctn .search-input[data-v-af870fbd]{min-width:200px;font-size:13px;flex-grow:1;padding:10px;border-radius:8px;color:#666;border:1px solid #ddd;box-sizing:border-box;box-shadow:0 4px 12px #00000026}.search-input-ctn .search-input[data-v-af870fbd]:active,.search-input-ctn .search-input[data-v-af870fbd]:focus{outline:none;border:1px solid #1355ff}.search-input-ctn .row[data-v-af870fbd]{display:flex}.search-input-ctn .row.submit[data-v-af870fbd]{margin-top:10px;flex-direction:row-reverse}.search-input-ctn .submit-btn[data-v-af870fbd]{display:flex;justify-content:center;align-items:center;padding:10px 16px;border-radius:8px;outline:none;border:none;background-color:#1355ff;color:#fff;font-weight:400;font-size:13px;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.vertical-indicator[data-v-ad77036c]{position:absolute;height:0px;min-width:1px;background-color:#aaa;top:20px;z-index:100}.margin-handle[data-v-ad77036c]{width:56px;min-width:5px;max-width:5px;background-color:var(--ruler-handle-color);height:20px;cursor:grab;position:absolute;margin-left:-2px;border-radius:4px 4px 0 0;transition:background-color .25s ease}.margin-handle[data-v-ad77036c]:hover{background-color:var(--ruler-handle-active-color)}.ruler[data-v-ad77036c]{max-height:25px;height:25px;max-width:8.5in;display:flex;margin:0;padding:0;align-items:var(--alignment);box-sizing:border-box;position:relative;color:#666}.mouse-tracker[data-v-ad77036c]{position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--color);pointer-events:none}.numbering[data-v-ad77036c]{position:absolute;top:-16px;left:-2px;font-size:10px;pointer-events:none;user-select:none}.ruler-section[data-v-ad77036c]{position:relative;display:flex;align-items:var(--alignment);pointer-events:none;user-select:none}.super-editor-container[data-v-ff8f86f4]{width:auto;height:auto;min-width:8in;min-height:11in;position:relative;display:flex;flex-direction:column}.ruler[data-v-ff8f86f4]{margin-bottom:2px}.super-editor[data-v-ff8f86f4]{color:initial}.placeholder-editor[data-v-ff8f86f4]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:8px;padding:1in;z-index:5;background-color:#fff;box-sizing:border-box}.placeholder-title[data-v-ff8f86f4]{display:flex;justify-content:center;margin-bottom:40px}.super-editor[data-v-4d5cff52]{box-sizing:border-box;width:100%;height:100%;border:1px solid #999;outline:none;transition:border .2s ease;background-color:#fff}.super-input[data-v-4d5cff52]{font-size:13px;font-family:inherit}.editor-element[data-v-4d5cff52]{height:100%;width:100%;border:none;outline:none}.super-input-active[data-v-4d5cff52]{border:1px solid #007bff;outline:none}
82
82
 
83
83
  .user-container[data-v-53e13009] {
84
84
  border-radius: 50%;
@@ -1,98 +1,173 @@
1
- import { ref as u, onMounted as X, onUnmounted as q, computed as S, createElementBlock as A, openBlock as M, withModifiers as E, createElementVNode as h, withDirectives as $, unref as I, vModelText as B, createCommentVNode as G, nextTick as U } from "vue";
2
- import { T as Y } from "./chunks/converter-hZK1xKPW.js";
3
- import { _ as J } from "./chunks/editor-GtdcYA5D.js";
4
- const Q = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", C = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
5
- async function D(i, r = {}) {
6
- const e = r.apiKey, s = r.endpoint || Q;
1
+ import { ref as x, onMounted as G, onUnmounted as U, computed as D, createElementBlock as O, openBlock as R, withModifiers as H, createElementVNode as S, withDirectives as Y, unref as N, vModelText as J, createCommentVNode as Q, nextTick as K } from "vue";
2
+ import { T as Z } from "./chunks/converter-ajcAkpke.js";
3
+ import { _ as ee } from "./chunks/editor-CI9Y8Eul.js";
4
+ const te = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", z = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
5
+ async function V(r, o = {}) {
6
+ const e = o.apiKey, a = o.endpoint || te;
7
7
  try {
8
- const o = {
8
+ const s = {
9
9
  "Content-Type": "application/json"
10
10
  };
11
- e && (o["x-api-key"] = e);
12
- const n = await fetch(s, {
11
+ e && (s["x-api-key"] = e);
12
+ const n = await fetch(a, {
13
13
  method: "POST",
14
- headers: o,
15
- body: JSON.stringify(i)
14
+ headers: s,
15
+ body: JSON.stringify(r)
16
16
  });
17
17
  if (!n.ok) {
18
- const l = await n.text();
19
- throw new Error(`Harbour API error: ${n.status} - ${l}`);
18
+ const m = await n.text();
19
+ throw new Error(`Harbour API error: ${n.status} - ${m}`);
20
20
  }
21
21
  return n;
22
- } catch (o) {
23
- throw console.error("Error calling Harbour API:", o), o;
22
+ } catch (s) {
23
+ throw console.error("Error calling Harbour API:", s), s;
24
24
  }
25
25
  }
26
- async function F(i, r, e) {
27
- const s = i.getReader(), o = new TextDecoder();
28
- let n = "", l = "";
26
+ async function j(r, o, e) {
27
+ const a = r.getReader(), s = new TextDecoder();
28
+ let n = "", m = "";
29
29
  try {
30
30
  for (; ; ) {
31
- const { done: d, value: v } = await s.read();
32
- if (d) {
31
+ const { done: h, value: g } = await a.read();
32
+ if (h) {
33
33
  typeof e == "function" && e();
34
34
  break;
35
35
  }
36
- const w = o.decode(v, { stream: !0 });
37
- typeof r == "function" && r(w);
36
+ const _ = s.decode(g, { stream: !0 });
37
+ typeof o == "function" && o(_);
38
38
  }
39
- let c = Z(l);
40
- return c !== null && (n = c), n || "";
41
- } catch (c) {
42
- throw console.error("Error reading stream:", c), c;
39
+ let l = oe(m);
40
+ return l !== null && (n = l), n || "";
41
+ } catch (l) {
42
+ throw console.error("Error reading stream:", l), l;
43
43
  } finally {
44
- s.releaseLock();
44
+ a.releaseLock();
45
45
  }
46
46
  }
47
- function Z(i) {
47
+ function oe(r) {
48
48
  try {
49
- const r = /```json\s*\n([\s\S]*?)\n\s*```/, e = i.match(r);
49
+ const o = /```json\s*\n([\s\S]*?)\n\s*```/, e = r.match(o);
50
50
  if (e && e[1]) {
51
- const s = JSON.parse(e[1]);
52
- if (s.custom_prompt && s.custom_prompt.value !== void 0)
53
- return s.custom_prompt.value || "";
51
+ const a = JSON.parse(e[1]);
52
+ if (a.custom_prompt && a.custom_prompt.value !== void 0)
53
+ return a.custom_prompt.value || "";
54
54
  }
55
55
  return null;
56
56
  } catch {
57
57
  return null;
58
58
  }
59
59
  }
60
- async function ee(i, r = {}, e, s) {
61
- if (!i)
60
+ async function ne(r, o = {}, e, a) {
61
+ if (!r)
62
62
  throw new Error("Prompt is required for text generation");
63
- const o = {
63
+ const s = {
64
64
  stream: !0,
65
- context: C,
65
+ context: z,
66
66
  doc_text: "",
67
67
  insights: [
68
68
  {
69
69
  type: "custom_prompt",
70
70
  name: "text_generation",
71
- message: `Generate text based on the following prompt: ${i}`
71
+ message: `Generate text based on the following prompt: ${r}`
72
72
  }
73
73
  ]
74
74
  };
75
- r.documentXml && (o.document_content = r.documentXml);
76
- const n = await D(o, r.config || {});
77
- return n.body ? await F(n.body, e, s) : "";
75
+ o.documentXml && (s.document_content = o.documentXml);
76
+ const n = await V(s, o.config || {});
77
+ return n.body ? await j(n.body, e, a) : "";
78
78
  }
79
- async function te(i, r = "", e = {}, s, o) {
80
- if (!i)
79
+ async function re(r, o = "", e = {}, a, s) {
80
+ if (!r)
81
81
  throw new Error("Text is required for rewriting");
82
82
  const n = {
83
83
  stream: !0,
84
- context: C,
84
+ context: z,
85
85
  insights: [
86
86
  {
87
87
  type: "custom_prompt",
88
88
  name: "text_rewrite",
89
- message: `Rewrite the following text: "${i}" using these instructions: ${r}`
89
+ message: `Rewrite the following text: "${r}" using these instructions: ${o}`
90
90
  }
91
91
  ]
92
- }, l = await D(n, e.config || {});
93
- return l.body ? await F(l.body, s, o) : "";
92
+ }, m = await V(n, e.config || {});
93
+ return m.body ? await j(m.body, a, s) : "";
94
+ }
95
+ const se = {
96
+ rules: [
97
+ {
98
+ name: "bold",
99
+ pattern: /\*\*(.*?)\*\*/g,
100
+ transform: (r, o, e) => ({
101
+ type: "text",
102
+ marks: [{ type: "bold" }],
103
+ text: o
104
+ })
105
+ }
106
+ ]
107
+ };
108
+ function ae(r) {
109
+ try {
110
+ let o = r.state.doc;
111
+ const e = o.textContent || "";
112
+ if (!e) return;
113
+ se.rules.forEach((a) => {
114
+ a.pattern.lastIndex = 0;
115
+ const s = [];
116
+ let n;
117
+ for (; (n = a.pattern.exec(e)) !== null; )
118
+ s.push({
119
+ rule: a,
120
+ startPos: n.index,
121
+ endPos: n.index + n[0].length,
122
+ originalText: n[0],
123
+ contentText: n[1]
124
+ });
125
+ s.sort((m, l) => l.startPos - m.startPos);
126
+ for (const m of s) {
127
+ const { startPos: l, endPos: h, originalText: g, contentText: _ } = m;
128
+ try {
129
+ let v = r.state.tr;
130
+ const L = a.transform(g, _, r), w = [];
131
+ if (o.nodesBetween(l, Math.min(h, o.content.size), (y, f) => (y.isText && w.push({ node: y, pos: f }), !0)), w.length > 0) {
132
+ let y = !1, f = -1, T = -1;
133
+ for (let c = 0; c < w.length; c++) {
134
+ const d = w[c], b = d.node.text || "", p = d.pos;
135
+ if (b.includes(g)) {
136
+ const u = b.indexOf(g);
137
+ f = p + u, T = f + g.length, y = !0;
138
+ break;
139
+ }
140
+ }
141
+ if (!y) {
142
+ let c = "", d = [], b = w[0].pos;
143
+ for (const u of w) {
144
+ const I = u.node.text || "", E = u.pos - b;
145
+ for (let k = 0; k < I.length; k++)
146
+ d.push(E + k);
147
+ c += I;
148
+ }
149
+ const p = c.indexOf(g);
150
+ if (p >= 0) {
151
+ f = b + d[p];
152
+ const u = p + g.length - 1;
153
+ T = b + (d[u] || 0) + 1, y = !0;
154
+ }
155
+ }
156
+ if (y) {
157
+ const c = L.marks ? L.marks.map((d) => r.schema.marks[d.type].create(d.attrs)) : [];
158
+ v = v.delete(f, T), v = v.insert(f, r.schema.text(L.text, c)), v.docChanged && (r.view.dispatch(v), o = r.state.doc);
159
+ }
160
+ }
161
+ } catch (v) {
162
+ console.error("Error processing match:", v);
163
+ }
164
+ }
165
+ });
166
+ } catch (o) {
167
+ console.error("Error formatting document:", o);
168
+ }
94
169
  }
95
- const oe = `<!-- @note: includes color gradient for inline svg AI Writer -->
170
+ const ie = `<!-- @note: includes color gradient for inline svg AI Writer -->
96
171
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
97
172
  <linearGradient id="gradient" x1="125%" y1="50%" x2="-25%" y2="50%">
98
173
  <stop offset="-20%" stop-color="rgba(218, 215, 118, 0.5)" />
@@ -101,7 +176,7 @@ const oe = `<!-- @note: includes color gradient for inline svg AI Writer -->
101
176
  <stop offset="150%" stop-color="rgb(255, 219, 102)" />
102
177
  </linearGradient>
103
178
  <path fill="url(#gradient)" d="M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1 .8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"/>
104
- </svg>`, re = `<!-- @note: includes color gradient for inline svg AI Writer -->
179
+ </svg>`, ce = `<!-- @note: includes color gradient for inline svg AI Writer -->
105
180
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
106
181
  <defs>
107
182
  <linearGradient id="gradient" x1="125%" y1="50%" x2="-25%" y2="50%">
@@ -112,7 +187,7 @@ const oe = `<!-- @note: includes color gradient for inline svg AI Writer -->
112
187
  </linearGradient>
113
188
  </defs>
114
189
  <path fill="url(#gradient)" d="M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"/>
115
- </svg>`, ne = { class: "ai-user-input-field" }, se = ["innerHTML"], ae = ["placeholder"], ie = { class: "ai-loader" }, ce = ["innerHTML"], le = {
190
+ </svg>`, le = { class: "ai-user-input-field" }, de = ["innerHTML"], ue = ["placeholder"], me = { class: "ai-loader" }, fe = ["innerHTML"], pe = {
116
191
  __name: "AIWriter",
117
192
  props: {
118
193
  selectedText: {
@@ -145,56 +220,56 @@ const oe = `<!-- @note: includes color gradient for inline svg AI Writer -->
145
220
  }
146
221
  },
147
222
  emits: ["ai-highlight"],
148
- setup(i, { emit: r }) {
149
- const e = i, s = r, o = u(null), n = u(null), l = (t) => {
150
- n.value && !n.value.contains(t.target) && (m.value || d("remove"), e.handleClose());
151
- }, c = u(null), d = (t, a = null) => {
152
- e.superToolbar ? e.superToolbar.emit("ai-highlight", { type: t, data: a }) : s("ai-highlight", { type: t, data: a });
153
- }, v = () => {
154
- e.selectedText && (o.value = {
223
+ setup(r, { emit: o }) {
224
+ const e = r, a = o, s = x(null), n = x(null), m = (t) => {
225
+ n.value && !n.value.contains(t.target) && (f.value || h("remove"), e.handleClose());
226
+ }, l = x(null), h = (t, i = null) => {
227
+ e.superToolbar ? e.superToolbar.emit("ai-highlight", { type: t, data: i }) : a("ai-highlight", { type: t, data: i });
228
+ }, g = () => {
229
+ e.selectedText && (s.value = {
155
230
  ...e.editor.state.selection,
156
231
  from: e.editor.state.selection.from,
157
232
  to: e.editor.state.selection.to
158
- }, e.editor.commands.setMeta("storedSelection", o.value), d("add"));
159
- }, w = () => {
160
- U(() => {
161
- c.value && c.value.focus();
233
+ }, e.editor.commands.setMeta("storedSelection", s.value), h("add"));
234
+ }, _ = () => {
235
+ K(() => {
236
+ l.value && l.value.focus();
162
237
  });
163
- }, P = () => {
164
- document.addEventListener("mousedown", l), document.addEventListener("keydown", x, !0);
165
- }, H = () => {
166
- document.removeEventListener("mousedown", l), document.removeEventListener("keydown", x, !0);
238
+ }, v = () => {
239
+ document.addEventListener("mousedown", m), document.addEventListener("keydown", w, !0);
240
+ }, L = () => {
241
+ document.removeEventListener("mousedown", m), document.removeEventListener("keydown", w, !0);
167
242
  };
168
- X(() => {
169
- v(), w(), P();
170
- }), q(() => {
171
- m.value || d("remove"), H();
243
+ G(() => {
244
+ g(), _(), v();
245
+ }), U(() => {
246
+ f.value || h("remove"), L();
172
247
  });
173
- const x = (t) => {
174
- c.value && t.target === c.value && ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(t.key) && t.stopPropagation();
175
- }, N = S(
248
+ const w = (t) => {
249
+ l.value && t.target === l.value && ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(t.key) && t.stopPropagation();
250
+ }, y = D(
176
251
  () => e.selectedText ? "Insert prompt to update text" : "Insert prompt to generate text"
177
- ), m = u(!1), f = u(""), p = u(""), g = u(!1), O = u(""), b = S(() => e.editor.isInSuggestingMode?.() || !1), R = () => {
252
+ ), f = x(!1), T = x(""), c = x(""), d = x(!1), b = x(""), p = x(!1), u = x(!1), I = D(() => e.editor.isInSuggestingMode?.() || !1), E = () => {
178
253
  try {
179
254
  return e.editor.state.doc.textContent || "";
180
255
  } catch (t) {
181
256
  return console.error("Error getting document XML:", t), "";
182
257
  }
183
- }, T = (t) => {
258
+ }, k = async (t) => {
184
259
  try {
185
- if (e.editor.commands.removeAiNode("aiLoaderNode"), e.selectedText && !g.value) {
186
- if (d("remove"), e.editor.commands.clearAiHighlightStyle(), o.value) {
187
- const { state: k } = e.editor, { from: j, to: z } = o.value, W = k.tr.setSelection(
188
- Y.create(k.doc, j, z)
260
+ if (e.editor.commands.removeAiNode("aiLoaderNode"), e.selectedText && !d.value) {
261
+ if (h("remove"), e.editor.commands.clearAiHighlightStyle(), s.value) {
262
+ const { state: F } = e.editor, { from: q, to: B } = s.value, $ = F.tr.setSelection(
263
+ Z.create(F.doc, q, B)
189
264
  );
190
- e.editor.view.dispatch(W);
265
+ e.editor.view.dispatch($);
191
266
  } else
192
267
  console.warn("[AIWriter] No stored selection to restore");
193
- e.editor.commands.deleteSelection(), g.value = !0;
268
+ e.editor.commands.deleteSelection(), d.value = !0;
194
269
  }
195
270
  if (t == null || t === "")
196
271
  return;
197
- const a = String(t), y = {
272
+ const i = String(t), A = {
198
273
  type: "text",
199
274
  marks: [{
200
275
  type: "aiAnimationMark",
@@ -203,79 +278,91 @@ const oe = `<!-- @note: includes color gradient for inline svg AI Writer -->
203
278
  dataMarkId: `ai-animation-${Date.now()}`
204
279
  }
205
280
  }],
206
- text: a
281
+ text: i
207
282
  };
208
- e.editor.commands.insertContent(y), e.handleClose();
209
- } catch (a) {
210
- console.error("Error handling text chunk:", a);
283
+ e.editor.commands.insertContent(A), u.value = !0, p.value || await M(), e.handleClose();
284
+ } catch (i) {
285
+ console.error("Error handling text chunk:", i);
211
286
  }
212
- }, _ = () => {
213
- setTimeout(() => {
214
- e.editor.commands.removeAiMark("aiAnimationMark"), d("remove");
287
+ }, M = async () => {
288
+ if (!p.value)
289
+ try {
290
+ p.value = !0, u.value = !1, await K(), ae(e.editor), u.value && (u.value = !1, await M());
291
+ } finally {
292
+ p.value = !1;
293
+ }
294
+ }, P = async () => {
295
+ (u.value || p.value) && (u.value = !0, await new Promise((t) => {
296
+ const i = () => {
297
+ !p.value && !u.value ? t() : setTimeout(i, 100);
298
+ };
299
+ i();
300
+ })), await M(), setTimeout(() => {
301
+ e.editor.commands.removeAiMark("aiAnimationMark"), h("remove");
215
302
  }, 1e3);
216
- }, L = async () => {
217
- f.value = "", g.value = !1, O.value = "", m.value = !0;
303
+ }, C = async () => {
304
+ T.value = "", d.value = !1, b.value = "", f.value = !0;
218
305
  try {
219
- e.handleClose(), e.selectedText ? d("update") : e.editor.commands.insertContent({
306
+ e.handleClose(), e.selectedText ? h("update") : e.editor.commands.insertContent({
220
307
  type: "aiLoaderNode"
221
- }), b.value && e.editor.commands.enableTrackChanges();
222
- const a = {
308
+ }), I.value && e.editor.commands.enableTrackChanges();
309
+ const i = {
223
310
  // @todo: implement grabbing document text
224
311
  docText: "",
225
- documentXml: R(),
312
+ documentXml: E(),
226
313
  config: {
227
314
  // Pass the aiApiKey to the AI helper functions
228
315
  apiKey: e.apiKey,
229
316
  endpoint: e.endpoint
230
317
  }
231
318
  };
232
- e.selectedText ? await te(e.selectedText, p.value, a, T, _) : await ee(p.value, a, T, _);
319
+ e.selectedText ? await re(e.selectedText, c.value, i, k, P) : await ne(c.value, i, k, P);
233
320
  } catch (t) {
234
- console.error("AI generation error:", t), f.value = t.message || "An error occurred";
321
+ console.error("AI generation error:", t), T.value = t.message || "An error occurred";
235
322
  } finally {
236
- p.value = "", b.value && e.editor.commands.disableTrackChanges(), m.value = !1, g.value = !1;
323
+ c.value = "", I.value && e.editor.commands.disableTrackChanges(), f.value = !1, d.value = !1;
237
324
  }
238
- }, K = (t) => {
239
- t.key === "Enter" && !t.shiftKey && (t.preventDefault(), L());
240
- }, V = (t) => {
241
- f.value && (f.value = ""), p.value = t.target.value;
325
+ }, W = (t) => {
326
+ t.key === "Enter" && !t.shiftKey && (t.preventDefault(), C());
327
+ }, X = (t) => {
328
+ T.value && (T.value = ""), c.value = t.target.value;
242
329
  };
243
- return (t, a) => (M(), A("div", {
330
+ return (t, i) => (R(), O("div", {
244
331
  class: "ai-writer prosemirror-isolated",
245
332
  ref_key: "aiWriterRef",
246
333
  ref: n,
247
- onMousedown: a[1] || (a[1] = E(() => {
334
+ onMousedown: i[1] || (i[1] = H(() => {
248
335
  }, ["stop"]))
249
336
  }, [
250
- h("div", ne, [
251
- h("span", {
337
+ S("div", le, [
338
+ S("span", {
252
339
  class: "ai-textarea-icon",
253
- innerHTML: I(oe)
254
- }, null, 8, se),
255
- $(h("textarea", {
340
+ innerHTML: N(ie)
341
+ }, null, 8, de),
342
+ Y(S("textarea", {
256
343
  ref_key: "editableRef",
257
- ref: c,
344
+ ref: l,
258
345
  class: "ai-textarea",
259
- placeholder: N.value,
260
- onKeydown: K,
261
- onInput: V,
262
- "onUpdate:modelValue": a[0] || (a[0] = (y) => p.value = y),
346
+ placeholder: y.value,
347
+ onKeydown: W,
348
+ onInput: X,
349
+ "onUpdate:modelValue": i[0] || (i[0] = (A) => c.value = A),
263
350
  rows: "4"
264
- }, null, 40, ae), [
265
- [B, p.value]
351
+ }, null, 40, ue), [
352
+ [J, c.value]
266
353
  ])
267
354
  ]),
268
- h("div", ie, [
269
- p.value ? (M(), A("span", {
355
+ S("div", me, [
356
+ c.value ? (R(), O("span", {
270
357
  key: 0,
271
358
  class: "ai-textarea-icon ai-submit-button",
272
- onClick: E(L, ["stop"]),
273
- innerHTML: I(re)
274
- }, null, 8, ce)) : G("", !0)
359
+ onClick: H(C, ["stop"]),
360
+ innerHTML: N(ce)
361
+ }, null, 8, fe)) : Q("", !0)
275
362
  ])
276
363
  ], 544));
277
364
  }
278
- }, me = /* @__PURE__ */ J(le, [["__scopeId", "data-v-b140a4fa"]]);
365
+ }, xe = /* @__PURE__ */ ee(pe, [["__scopeId", "data-v-4cf86e1f"]]);
279
366
  export {
280
- me as default
367
+ xe as default
281
368
  };
@@ -16739,7 +16739,7 @@ const pt = class pt {
16739
16739
  return;
16740
16740
  }
16741
16741
  }
16742
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.31") {
16742
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.32") {
16743
16743
  const n = "docProps/custom.xml";
16744
16744
  e[n] || (e[n] = Fu());
16745
16745
  const i = e["docProps/custom.xml"];
@@ -17002,7 +17002,7 @@ function Cp(r) {
17002
17002
  function Fu() {
17003
17003
  return Gf;
17004
17004
  }
17005
- function Bu(r = 2, e = "0.11.31") {
17005
+ function Bu(r = 2, e = "0.11.32") {
17006
17006
  return {
17007
17007
  type: "element",
17008
17008
  name: "property",
@@ -1,4 +1,4 @@
1
- import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-hZK1xKPW.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-ajcAkpke.js";
2
2
  function kt(bt) {
3
3
  throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }