@heyirisai/docx-editor-vue 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +116 -0
- package/dist/KeyboardShortcutsDialog-B0fEvXnH.js +2799 -0
- package/dist/KeyboardShortcutsDialog-Cmezq6eJ.cjs +1 -0
- package/dist/RenderedDomContext-CHc18N_2.js +2 -0
- package/dist/TablePropertiesDialog-B6ncvNnv.cjs +1 -0
- package/dist/TablePropertiesDialog-P_vyKNTn.js +1145 -0
- package/dist/_plugin-vue_export-helper-B52Kst-M.js +8 -0
- package/dist/_plugin-vue_export-helper-CX7YVcP6.cjs +1 -0
- package/dist/components/DocxEditor/types.d.ts +193 -0
- package/dist/components/EditorToolbarContext.d.ts +9 -0
- package/dist/components/Toolbar/presets.d.ts +20 -0
- package/dist/components/dialogs/index.d.ts +27 -0
- package/dist/components/imageContextMenuTypes.d.ts +30 -0
- package/dist/components/imageSelectionTypes.d.ts +14 -0
- package/dist/components/insertTableState.d.ts +9 -0
- package/dist/components/sidebar/cardStyles.d.ts +3 -0
- package/dist/components/sidebar/cardUtils.d.ts +1 -0
- package/dist/components/sidebar/resolveItemPositions.d.ts +4 -0
- package/dist/components/sidebar/sidebarUtils.d.ts +4 -0
- package/dist/components/tableStylePresets.d.ts +53 -0
- package/dist/components/toolbarUtils.d.ts +1 -0
- package/dist/components/ui/Icons.d.ts +1 -0
- package/dist/components/ui/fontPickerValue.d.ts +1 -0
- package/dist/components/ui/fontPickerValue.test.d.ts +1 -0
- package/dist/components/ui/hyperlinkPopupTypes.d.ts +20 -0
- package/dist/composables/fileOpen.test.d.ts +1 -0
- package/dist/composables/imageOverlayRect.d.ts +44 -0
- package/dist/composables/imageOverlayRect.test.d.ts +1 -0
- package/dist/composables/index.d.ts +30 -0
- package/dist/composables/useAutoSave.d.ts +40 -0
- package/dist/composables/useClipboard.d.ts +22 -0
- package/dist/composables/useColorMode.d.ts +8 -0
- package/dist/composables/useCommentLifecycle.d.ts +62 -0
- package/dist/composables/useCommentManagement.d.ts +68 -0
- package/dist/composables/useCommentSidebarItems.d.ts +24 -0
- package/dist/composables/useCommentSidebarItems.test.d.ts +1 -0
- package/dist/composables/useContextMenus.cut.test.d.ts +1 -0
- package/dist/composables/useContextMenus.d.ts +39 -0
- package/dist/composables/useControllableBoolean.d.ts +16 -0
- package/dist/composables/useControllableBoolean.test.d.ts +1 -0
- package/dist/composables/useDocumentLifecycle.d.ts +11 -0
- package/dist/composables/useDocxEditor.d.ts +96 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +53 -0
- package/dist/composables/useDragAutoScroll.d.ts +11 -0
- package/dist/composables/useFileIO.d.ts +41 -0
- package/dist/composables/useFindReplace.d.ts +34 -0
- package/dist/composables/useFixedDropdown.d.ts +14 -0
- package/dist/composables/useFontLifecycle.d.ts +12 -0
- package/dist/composables/useFormattingActions.d.ts +31 -0
- package/dist/composables/useHistory.d.ts +9 -0
- package/dist/composables/useHostCallbacks.d.ts +7 -0
- package/dist/composables/useHyperlinkManagement.d.ts +38 -0
- package/dist/composables/useImageActions.d.ts +24 -0
- package/dist/composables/useKeyboardShortcuts.d.ts +25 -0
- package/dist/composables/useMenuActions.d.ts +26 -0
- package/dist/composables/useOutlineSidebar.d.ts +24 -0
- package/dist/composables/useOutlineSidebar.test.d.ts +1 -0
- package/dist/composables/usePageSetupControls.d.ts +22 -0
- package/dist/composables/usePagesPointer.d.ts +86 -0
- package/dist/composables/useParagraphStyleOptions.d.ts +18 -0
- package/dist/composables/usePortalClass.d.ts +8 -0
- package/dist/composables/useSelectionHighlight.d.ts +19 -0
- package/dist/composables/useSelectionSync.d.ts +36 -0
- package/dist/composables/useTableResize.d.ts +7 -0
- package/dist/composables/useTableSelection.d.ts +10 -0
- package/dist/composables/useToolbarDropdowns.d.ts +15 -0
- package/dist/composables/useToolbarFontSize.d.ts +15 -0
- package/dist/composables/useTrackedChanges.d.ts +12 -0
- package/dist/composables/useVisualLineNavigation.d.ts +11 -0
- package/dist/composables/useWatermarkControls.d.ts +15 -0
- package/dist/composables/useWheelZoom.d.ts +10 -0
- package/dist/composables/useZoom.d.ts +16 -0
- package/dist/composables.cjs +1 -0
- package/dist/composables.js +401 -0
- package/dist/dialogs.cjs +1 -0
- package/dist/dialogs.js +3 -0
- package/dist/docx-editor-vue.css +2 -0
- package/dist/i18n/LocaleContext.d.ts +1 -0
- package/dist/i18n/index.d.ts +26 -0
- package/dist/index.cjs +19 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +4449 -0
- package/dist/lib/utils.d.ts +10 -0
- package/dist/plugin-api/RenderedDomContext.d.ts +1 -0
- package/dist/plugin-api/index.d.ts +18 -0
- package/dist/plugin-api/types.d.ts +28 -0
- package/dist/plugin-api.cjs +1 -0
- package/dist/plugin-api.js +62 -0
- package/dist/renderAsync.d.ts +31 -0
- package/dist/styles/index.d.ts +12 -0
- package/dist/styles/zIndex.d.ts +24 -0
- package/dist/styles.cjs +1 -0
- package/dist/styles.js +5 -0
- package/dist/ui.cjs +18 -0
- package/dist/ui.d.ts +79 -0
- package/dist/ui.js +986 -0
- package/dist/useCommentSidebarItems-DBeGKNGA.cjs +1 -0
- package/dist/useCommentSidebarItems-DXbF857R.js +45 -0
- package/dist/useDragAutoScroll-CVltVfKK.js +520 -0
- package/dist/useDragAutoScroll-liP5PRvM.cjs +1 -0
- package/dist/usePortalClass-B9gFYxe0.cjs +4 -0
- package/dist/usePortalClass-HM-UHRlE.js +3534 -0
- package/dist/utils/domQueries.d.ts +39 -0
- package/dist/utils/imageClipboard.d.ts +9 -0
- package/dist/utils/refApiQueries.d.ts +10 -0
- package/dist/zIndex-CH0jZ7U7.cjs +1 -0
- package/dist/zIndex-CxELVe_L.js +12 -0
- package/package.json +119 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let t=require(`vue`),n=require(`prosemirror-state`),r=require(`@heyirisai/docx-editor-core/utils`);var i={undo:[`M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z`],redo:[`M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z`],print:[`M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z`],file_download:[`M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`],file_upload:[`M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`],format_bold:[`M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200H272Zm121-112h104q48 0 58.5-24.5T566-372q0-11-10.5-35.5T494-432H393v120Zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95v109Z`],format_italic:[`M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z`],format_underlined:[`M200-120v-80h560v80H200Zm123-223q-56-63-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63q-101 0-157-63Z`],strikethrough_s:[`M486-160q-76 0-135-45t-85-123l88-38q14 48 48.5 79t85.5 31q42 0 76-20t34-64q0-18-7-33t-19-27h112q5 14 7.5 28.5T694-340q0 86-61.5 133T486-160ZM80-480v-80h800v80H80Zm402-326q66 0 115.5 32.5T674-674l-88 39q-9-29-33.5-52T484-710q-41 0-68 18.5T386-640h-96q2-69 54.5-117.5T482-806Z`],superscript:[`M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z`],subscript:[`M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z`],link:[`M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z`],format_clear:[`m528-546-93-93-121-121h486v120H568l-40 94ZM792-56 460-388l-80 188H249l119-280L56-792l56-56 736 736-56 56Z`],format_align_left:[`M120-120v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Z`],format_align_center:[`M120-120v-80h720v80H120Zm160-160v-80h400v80H280ZM120-440v-80h720v80H120Zm160-160v-80h400v80H280ZM120-760v-80h720v80H120Z`],format_align_right:[`M120-760v-80h720v80H120Zm240 160v-80h480v80H360ZM120-440v-80h720v80H120Zm240 160v-80h480v80H360ZM120-120v-80h720v80H120Z`],format_align_justify:[`M120-120v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Z`],format_line_spacing:[`M240-160 80-320l56-56 64 62v-332l-64 62-56-56 160-160 160 160-56 56-64-62v332l64-62 56 56-160 160Zm240-40v-80h400v80H480Zm0-240v-80h400v80H480Zm0-240v-80h400v80H480Z`],format_list_bulleted:[`M360-200v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360ZM200-160q-33 0-56.5-23.5T120-240q0-33 23.5-56.5T200-320q33 0 56.5 23.5T280-240q0 33-23.5 56.5T200-160Zm0-240q-33 0-56.5-23.5T120-480q0-33 23.5-56.5T200-560q33 0 56.5 23.5T280-480q0 33-23.5 56.5T200-400Zm-56.5-263.5Q120-687 120-720t23.5-56.5Q167-800 200-800t56.5 23.5Q280-753 280-720t-23.5 56.5Q233-640 200-640t-56.5-23.5Z`],format_list_numbered:[`M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z`],format_indent_increase:[`M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm0 440v-320l160 160-160 160Z`],format_indent_decrease:[`M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm160 440L120-480l160-160v320Z`],format_color_text:[`M80 0v-160h800V0H80Zm140-280 210-560h100l210 560h-96l-50-144H368l-52 144h-96Zm176-224h168l-82-232h-4l-82 232Z`],ink_highlighter:[`M544-400 440-504 240-304l104 104 200-200Zm-47-161 104 104 199-199-104-104-199 199Zm-84-28 216 216-229 229q-24 24-56 24t-56-24l-2-2-26 26H60l126-126-2-2q-24-24-24-56t24-56l229-229Zm0 0 227-227q24-24 56-24t56 24l104 104q24 24 24 56t-24 56L629-373 413-589Z`],format_color_reset:[`M800-436q0 36-8 69t-22 63l-62-60q6-17 9-34.5t3-37.5q0-47-17.5-89T650-600L480-768l-88 86-56-56 144-142 226 222q44 42 69 99.5T800-436Zm-8 380L668-180q-41 29-88 44.5T480-120q-133 0-226.5-92.5T160-436q0-51 16-98t48-90L56-792l56-56 736 736-56 56ZM480-200q36 0 68.5-10t61.5-28L280-566q-21 32-30.5 64t-9.5 66q0 98 70 167t170 69Zm-37-204Zm110-116Z`],arrow_drop_down:[`M480-360 280-560h400L480-360Z`],table:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm240-240H200v160h240v-160Zm80 0v160h240v-160H520Zm-80-80v-160H200v160h240Zm80 0h240v-160H520v160ZM200-680h560v-80H200v80Z`],table_chart:[`M760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120ZM200-640h560v-120H200v120Zm100 80H200v360h100v-360Zm360 0v360h100v-360H660Zm-80 0H380v360h200v-360Z`],grid_on:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133ZM200-413h133v-134H200v134Zm213 0h134v-134H413v134Zm214 0h133v-134H627v134ZM200-627h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133Z`],table_rows:[`M760-200v-120H200v120h560Zm0-200v-160H200v160h560Zm0-240v-120H200v120h560ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z`],view_column:[`M121-280v-400q0-33 23.5-56.5T201-760h559q33 0 56.5 23.5T840-680v400q0 33-23.5 56.5T760-200H201q-33 0-56.5-23.5T121-280Zm79 0h133v-400H200v400Zm213 0h133v-400H413v400Zm213 0h133v-400H626v400Z`],border_all:[`M120-120v-720h720v720H120Zm640-80v-240H520v240h240Zm0-560H520v240h240v-240Zm-560 0v240h240v-240H200Zm0 560h240v-240H200v240Z`],select_all:[`M360-360h240v-240H360v240ZM200-120q-33 0-56.5-23.5T120-200h80v80Zm-80-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T200-840v80Zm80 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80q0 33-23.5 56.5T760-120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80q33 0 56.5 23.5T840-760h-80Z`],border_outer:[`M200-200h560v-560H200v560Zm-80 80v-720h720v720H120Zm160-320v-80h80v80h-80Zm160 160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 160v-80h80v80h-80Z`],border_inner:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm320 640v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm-160 0v-80h80v80h-80ZM440-120v-320H120v-80h320v-320h80v320h320v80H520v320h-80Z`],border_clear:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],add:[`M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z`],remove:[`M200-440v-80h560v80H200Z`],delete:[`M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z`],delete_sweep:[`M600-240v-80h160v80H600Zm0-320v-80h280v80H600Zm0 160v-80h240v80H600ZM120-640H80v-80h160v-60h160v60h160v80h-40v360q0 33-23.5 56.5T440-200H200q-33 0-56.5-23.5T120-280v-360Zm80 0v360h240v-360H200Zm0 0v360-360Z`],call_merge:[`m296-160-56-56 200-200v-269L337-582l-57-57 200-200 201 201-57 57-104-104v301L296-160Zm368 1L536-286l57-57 127 128-56 56Z`],call_split:[`M440-160v-304L240-664v104h-80v-240h240v80H296l224 224v336h-80Zm154-376-58-58 128-126H560v-80h240v240h-80v-104L594-536Z`],drag_indicator:[`M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z`],image:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z`],format_image_left:[`M120-280v-400h400v400H120Zm80-80h240v-240H200v240Zm-80-400v-80h720v80H120Zm480 160v-80h240v80H600Zm0 160v-80h240v80H600Zm0 160v-80h240v80H600ZM120-120v-80h720v80H120Z`],format_image_right:[`M440-280v-400h400v400H440Zm80-80h240v-240H520v240ZM120-120v-80h720v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h720v80H120Z`],horizontal_rule:[`M160-440v-80h640v80H160Z`],flip_to_back:[`M200-120q-33 0-56.5-23.5T120-200v-480h80v480h480v80H200Zm160-240v80q-33 0-56.5-23.5T280-360h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T360-840v80Zm80 480v-80h80v80h-80Zm0-480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0 480v-80h80v80h-80Zm160-480v-80q33 0 56.5 23.5T840-760h-80Zm0 400h80q0 33-23.5 56.5T760-280v-80Zm0-80v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],flip_to_front:[`M360-280q-33 0-56.5-23.5T280-360v-400q0-33 23.5-56.5T360-840h400q33 0 56.5 23.5T840-760v400q0 33-23.5 56.5T760-280H360Zm0-80h400v-400H360v400ZM200-200v80q-33 0-56.5-23.5T120-200h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z`],open_with:[`M480-80 310-250l57-57 73 73v-166h80v165l72-73 58 58L480-80ZM250-310 80-480l169-169 57 57-72 72h166v80H235l73 72-58 58Zm460 0-57-57 73-73H560v-80h165l-73-72 58-58 170 170-170 170ZM440-560v-166l-73 73-57-57 170-170 170 170-57 57-73-73v166h-80Z`],tune:[`M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z`],rotate_right:[`M522-80v-82q34-5 66.5-18t61.5-34l56 58q-42 32-88 51.5T522-80Zm-80 0Q304-98 213-199.5T122-438q0-75 28.5-140.5t77-114q48.5-48.5 114-77T482-798h6l-62-62 56-58 160 160-160 160-56-56 64-64h-8q-117 0-198.5 81.5T202-438q0 104 68 182.5T442-162v82Zm322-134-58-56q21-29 34-61.5t18-66.5h82q-5 50-24.5 96T764-214Zm76-264h-82q-5-34-18-66.5T706-606l58-56q32 39 51 86t25 98Z`],rotate_left:[`M440-80q-50-5-96-24.5T256-156l56-58q29 21 61.5 34t66.5 18v82Zm80 0v-82q104-15 172-93.5T760-438q0-117-81.5-198.5T480-718h-8l64 64-56 56-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-438q0 137-91 238.5T520-80ZM198-214q-32-42-51.5-88T122-398h82q5 34 18 66.5t34 61.5l-58 56Zm-76-264q6-51 25-98t51-86l58 56q-21 29-34 61.5T204-478h-82Z`],swap_horiz:[`M280-160 80-360l200-200 56 57-103 103h287v80H233l103 103-56 57Zm400-240-56-57 103-103H440v-80h287L624-743l56-57 200 200-200 200Z`],swap_vert:[`M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z`],shapes:[`M600-360ZM320-242q10 1 19.5 1.5t20.5.5q11 0 20.5-.5T400-242v82h400v-400h-82q1-10 1.5-19.5t.5-20.5q0-11-.5-20.5T718-640h82q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400q-33 0-56.5-23.5T320-160v-82Zm40-78q-117 0-198.5-81.5T80-600q0-117 81.5-198.5T360-880q117 0 198.5 81.5T640-600q0 117-81.5 198.5T360-320Zm0-80q83 0 141.5-58.5T560-600q0-83-58.5-141.5T360-800q-83 0-141.5 58.5T160-600q0 83 58.5 141.5T360-400Zm0-200Z`],format_paint:[`M440-80q-33 0-56.5-23.5T360-160v-160H240q-33 0-56.5-23.5T160-400v-280q0-66 47-113t113-47h480v440q0 33-23.5 56.5T720-320H600v160q0 33-23.5 56.5T520-80h-80ZM240-560h480v-200h-40v160h-80v-160h-40v80h-80v-80H320q-33 0-56.5 23.5T240-680v120Zm0 160h480v-80H240v80Zm0 0v-80 80Z`],expand_more:[`M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z`],expand_less:[`m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z`],border_top:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h720v80H120Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_bottom:[`M120-120v-80h720v80H120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_left:[`M120-120v-720h80v720h-80Zm160 0v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_right:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-720h80v720h-80Z`],border_horizontal:[`M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h720v60H120Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Z`],border_vertical:[`M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-720h60v720h-60Zm165 0v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Z`],padding:[`M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm160 0q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm160 0q17 0 28.5-11.5T680-640q0-17-11.5-28.5T640-680q-17 0-28.5 11.5T600-640q0 17 11.5 28.5T640-600ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z`],text_rotation_none:[`M160-200v-80h528l-42-42 56-56 138 138-138 138-56-56 42-42H160Zm116-200 164-440h80l164 440h-76l-38-112H392l-40 112h-76Zm138-176h132l-64-182h-4l-64 182Z`],wrap_text:[`M588-132 440-280l148-148 56 58-50 50h96q29 0 49.5-20.5T760-390q0-29-20.5-49.5T690-460H160v-80h530q63 0 106.5 43.5T840-390q0 63-43.5 106.5T690-240h-96l50 50-56 58ZM160-240v-80h200v80H160Zm0-440v-80h640v80H160Z`],height:[`M480-120 320-280l56-56 64 63v-414l-64 63-56-56 160-160 160 160-56 57-64-64v414l64-63 56 56-160 160Z`],fit_width:[`M120-120v-720h80v720h-80Zm640 0v-720h80v720h-80ZM280-440v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z`],settings:[`m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z`],border_color:[`M80 0v-160h800V0H80Zm160-320h56l312-311-29-29-28-28-311 312v56Zm-80 80v-170l448-447q11-11 25.5-17t30.5-6q16 0 31 6t27 18l55 56q12 11 17.5 26t5.5 31q0 15-5.5 29.5T777-687L330-240H160Zm560-504-56-56 56 56ZM608-631l-29-29-28-28 57 57Z`],format_color_fill:[`m247-904 57-56 343 343q23 23 23 57t-23 57L457-313q-23 23-57 23t-57-23L153-503q-23-23-23-57t23-57l190-191-96-96Zm153 153L209-560h382L400-751Zm360 471q-33 0-56.5-23.5T680-360q0-21 12.5-45t27.5-45q9-12 19-25t21-25q11 12 21 25t19 25q15 21 27.5 45t12.5 45q0 33-23.5 56.5T760-280ZM80 0v-160h800V0H80Z`],vertical_align_top:[`M160-760v-80h640v80H160Zm280 640v-408L336-424l-56-56 200-200 200 200-56 56-104-104v408h-80Z`],vertical_align_center:[`M440-80v-168l-64 64-56-56 160-160 160 160-56 56-64-64v168h-80ZM160-440v-80h640v80H160Zm320-120L320-720l56-56 64 64v-168h80v168l64-64 56 56-160 160Z`],vertical_align_bottom:[`M160-120v-80h640v80H160Zm320-160L280-480l56-56 104 104v-408h80v408l104-104 56 56-200 200Z`],line_weight:[`M120-160v-40h720v40H120Zm0-120v-80h720v80H120Zm0-160v-120h720v120H120Zm0-200v-160h720v160H120Z`],keyboard_arrow_up:[`M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z`],keyboard_arrow_down:[`M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z`],keyboard_arrow_left:[`M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z`],keyboard_arrow_right:[`M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z`],more_vert:[`M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z`],page_break:[`M120-440v-80h160v80H120Zm200 0v-80h160v80H320Zm200 0v-80h160v80H520Zm200 0v-80h120v80H720ZM240-120q-33 0-56.5-23.5T160-200v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-120H240Zm-80-520v-120q0-33 23.5-56.5T240-840h480q33 0 56.5 23.5T800-760v120h-80v-120H240v120h-80Z`],arrow_back:[`M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z`],branding_watermark:[`M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm320-60q66 0 113-37t47-93q0-29-13-58t-34-55q-21-26-50-49t-50-31q-21 8-50 31t-50 49q-21 26-34 55t-13 58q0 56 47 93t140 37Z`],done_all:[`M268-240 42-466l57-56 170 170 56 56-57 56Zm226 0L268-466l56-57 170 170 368-368 57 57-425 424Zm0-226-57-56 198-198 57 56-198 198Z`],check_circle:[`m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z`],chat_bubble_outline:[`M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],chat_bubble_check:[`M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],check:[`M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z`],close:[`m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z`],add_comment:[`M440-400h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],comment:[`M240-400h480v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],edit_note:[`M160-400h280v-80H160v80Zm0-160h440v-80H160v80Zm0-160h440v-80H160v80Zm360 360v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22q0 11-4 22.5T863-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z`],rate_review:[`M240-400h122l200-200q9-9 13.5-20.5T580-643q0-11-5-21.5T562-684l-36-38q-9-9-20-13.5t-23-4.5q-11 0-22.5 4.5T440-722L240-522v122Zm280-243-37-37 37 37ZM300-460v-38l101-101 20 18 18 20-101 101h-38Zm121-121 18 20-38-38 20 18Zm26 181h273v-80H527l-80 80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],visibility:[`M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z`],format_textdirection_l_to_r:[`M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z`],format_textdirection_r_to_l:[`M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z`],"agent-sparkle":[`m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z`]},a=[`width`,`height`],o=[`d`],s=(0,t.defineComponent)({__name:`MaterialSymbol`,props:{name:{},size:{default:20},className:{default:``},style:{}},setup(e){let n=e,r=(0,t.computed)(()=>i[n.name]||(typeof console<`u`&&console.warn(`Icon not found: ${n.name}`),null));return(n,i)=>r.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{key:0,xmlns:`http://www.w3.org/2000/svg`,width:e.size,height:e.size,viewBox:`0 -960 960 960`,fill:`currentColor`,class:(0,t.normalizeClass)(e.className),style:(0,t.normalizeStyle)({display:`inline-flex`,flexShrink:0,...e.style??{}}),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`path`,{key:n,d:e},null,8,o))),128))],14,a)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)(e.className),style:(0,t.normalizeStyle)({fontSize:`${e.size}px`,width:`${e.size}px`,height:`${e.size}px`,display:`inline-flex`,...e.style??{}})},(0,t.toDisplayString)(e.name),7))}}),c={_lang:`en`,common:{cancel:`Cancel`,insert:`Insert`,apply:`Apply`,close:`Close`,delete:`Delete`,update:`Update`,save:`Save`,retry:`Retry`,send:`Send`,edit:`Edit`,comment:`Comment`,reply:`Reply`,accept:`Accept`,reject:`Reject`,dismiss:`Dismiss`,change:`Change`,clear:`Clear`,px:`px`,closeDialog:`Close dialog`},toolbar:{ariaLabel:`Formatting toolbar`,file:`File`,format:`Format`,insert:`Insert`,open:`Open`,openShortcut:`Ctrl+O`,save:`Save`,saveShortcut:`Ctrl+S`,print:`Print`,printShortcut:`Ctrl+P`,pageSetup:`Page setup`,leftToRight:`Left-to-right text`,rightToLeft:`Right-to-left text`,image:`Image`,table:`Table`,break:`Break`,pageBreak:`Page break`,sectionBreakNextPage:`Section break (next page)`,sectionBreakContinuous:`Section break (continuous)`,tableOfContents:`Table of contents`,symbol:`Symbol`,watermark:`Watermark`,help:`Help`,reportIssue:`Report issue`},formattingBar:{groups:{history:`History`,zoom:`Zoom`,styles:`Styles`,font:`Font`,textFormatting:`Text formatting`,script:`Script`,alignment:`Alignment`,listFormatting:`List formatting`,image:`Image`,table:`Table`},undo:`Undo`,undoShortcut:`Undo (Ctrl+Z)`,redo:`Redo`,redoShortcut:`Redo (Ctrl+Y)`,bold:`Bold`,boldShortcut:`Bold (Ctrl+B)`,italic:`Italic`,italicShortcut:`Italic (Ctrl+I)`,underline:`Underline`,underlineShortcut:`Underline (Ctrl+U)`,strikethrough:`Strikethrough`,fontColor:`Font Color`,highlightColor:`Text Highlight Color`,insertLink:`Insert link`,insertLinkShortcut:`Insert link (Ctrl+K)`,superscript:`Superscript`,superscriptShortcut:`Superscript (Ctrl+Shift+=)`,subscript:`Subscript`,subscriptShortcut:`Subscript (Ctrl+=)`,imageProperties:`Image properties`,imagePropertiesShortcut:`Image properties (alt text, border)...`,clearFormatting:`Clear formatting`,commentsAndChanges:`Comments & Changes`,moreItems:`{count, plural, one {# more item} other {# more items}}`},alignment:{alignLeft:`Align Left`,alignLeftShortcut:`Ctrl+L`,center:`Center`,centerShortcut:`Ctrl+E`,alignRight:`Align Right`,alignRightShortcut:`Ctrl+R`,justify:`Justify`,justifyShortcut:`Ctrl+J`},lists:{ariaLabel:`List formatting`,typeAriaLabel:`List type`,indentationAriaLabel:`List indentation`,bulletList:`Bullet List`,numberedList:`Numbered List`,decreaseIndent:`Decrease Indent`,increaseIndent:`Increase Indent`},lineSpacing:{label:`Line spacing`,single:`Single`,double:`Double`,lineSpacingTitle:`Line spacing: {label}`,paragraphSpacing:`Paragraph spacing`},styles:{selectAriaLabel:`Select paragraph style`,normalText:`Normal text`,title:`Title`,subtitle:`Subtitle`,heading1:`Heading 1`,heading2:`Heading 2`,heading3:`Heading 3`},font:{selectAriaLabel:`Select font family`,sansSerif:`Sans Serif`,serif:`Serif`,monospace:`Monospace`,other:`Other`,documentFonts:`Document fonts`},fontSize:{decrease:`Decrease font size`,increase:`Increase font size`,label:`Font size`,listLabel:`Font sizes`},zoom:{ariaLabel:`Zoom: {label}`,zoomOut:`Zoom out`,zoomIn:`Zoom in`,zoomLevel:`Zoom level`},colorPicker:{ariaLabel:`{type} color picker`,highlightColors:`Highlight Colors`,customColor:`Custom Color`,noColor:`No Color`,automatic:`Automatic`,themeColors:`Theme Colors`,standardColors:`Standard Colors`,colors:{black:`Black`,darkRed:`Dark Red`,red:`Red`,orange:`Orange`,yellow:`Yellow`,darkYellow:`Dark Yellow`,green:`Green`,darkGreen:`Dark Green`,teal:`Teal`,darkTeal:`Dark Teal`,blue:`Blue`,darkBlue:`Dark Blue`,purple:`Purple`,darkPurple:`Dark Purple`,brown:`Brown`,grey50:`Grey 50%`,grey25:`Grey 25%`,grey10:`Grey 10%`,white:`White`,lightRed:`Light Red`,lightOrange:`Light Orange`,lightYellow:`Light Yellow`,lightGreen:`Light Green`,lightBlue:`Light Blue`,lightPurple:`Light Purple`,pink:`Pink`,rose:`Rose`,gold:`Gold`,aqua:`Aqua`,lavender:`Lavender`,silver:`Silver`,darkOrange:`Dark Orange`,darkGray:`Dark Gray`,gray:`Gray`,cyan:`Cyan`,magenta:`Magenta`,paleGreen:`Pale Green`,lightCyan:`Light Cyan`,skyBlue:`Sky Blue`,lightBlue2:`Light Blue 2`,lightMagenta:`Light Magenta`,brightGreen:`Bright Green`,violet:`Violet`}},dialogs:{findReplace:{titleFind:`Find`,titleFindReplace:`Find and Replace`,findLabel:`Find:`,findPlaceholder:`Enter text to find...`,findAriaLabel:`Find text`,findPrevious:`Find previous`,findPreviousTitle:`Find Previous (Shift+Enter)`,findNext:`Find next`,findNextTitle:`Find Next (Enter)`,matchCount:`{current} of {total} matches`,noResults:`No results found`,replaceLabel:`Replace:`,replacePlaceholder:`Enter replacement text...`,replaceAriaLabel:`Replace text`,replaceButton:`Replace`,replaceCurrentTitle:`Replace current match`,replaceAllButton:`Replace All`,replaceAllTitle:`Replace all matches`,matchCase:`Match case`,wholeWords:`Whole words`,matchesFound:`{total} matches`,toggleReplace:`+ Replace`},hyperlink:{titleEdit:`Edit Hyperlink`,titleInsert:`Insert Hyperlink`,tabWebAddress:`Web Address`,tabBookmark:`Bookmark`,urlLabel:`URL`,urlPlaceholder:`https://example.com`,urlHint:`Enter a web address, email (mailto:), or phone (tel:)`,bookmarkLabel:`Bookmark`,bookmarkPlaceholder:`Select a bookmark...`,displayTextLabel:`Display Text`,displayTextPlaceholder:`Text to display (optional)`,displayTextHint:`Leave empty to use the selected text`,tooltipLabel:`Tooltip (optional)`,tooltipPlaceholder:`Text shown on hover`,removeLink:`Remove Link`,invalidUrl:`Please enter a valid URL`,urlRequired:`URL is required`},insertTable:{title:`Insert Table`,hoverToSelect:`Hover to select size`,tableSize:`{cols} x {rows} Table`,orSpecifySize:`or specify size`,rowsLabel:`Rows:`,columnsLabel:`Columns:`,insertButton:`Insert Table`,sizeSelector:`Table size selector`,columnWidthLabel:`Column width`,fixedWidth:`Fixed`,autofit:`Auto-fit to contents`,tableStyleLabel:`Table style`,validationHint:`Rows: {minRows}-{maxRows}, Columns: {minCols}-{maxCols}`},watermark:{title:`Watermark`,noWatermark:`No watermark`,picture:`Picture watermark`,text:`Text watermark`,selectPicture:`Select Picture...`,scale:`Scale`,washout:`Washout`,textLabel:`Text`,fontLabel:`Font`,sizeLabel:`Size`,sizeAuto:`Auto`,colorLabel:`Color`,layoutLabel:`Layout`,diagonal:`Diagonal`,horizontal:`Horizontal`,semitransparent:`Semitransparent`,presetLabel:`Preset`,applyButton:`Apply`,cancelButton:`Cancel`},splitCell:{title:`Split Cell`,description:`Set how many rows and columns to split the selected cell into.`,rowsLabel:`Rows:`,columnsLabel:`Columns:`,currentMinimum:`Minimum from current span: {rows} row(s) x {cols} column(s)`,minValue:`Use at least {rows} row(s) and {cols} column(s).`,notOneByOne:`Choose at least two resulting cells.`},insertImage:{title:`Insert Image`,uploadAriaLabel:`Click or drag to upload image`,uploadText:`Click to select or drag and drop an image`,uploadSubtext:`PNG, JPG, GIF up to 10MB`,dimensions:`Dimensions`,widthLabel:`Width:`,heightLabel:`Height:`,aspectRatioLocked:`Aspect ratio locked`,aspectRatioUnlocked:`Aspect ratio unlocked`,altTextLabel:`Alt Text (optional)`,altTextPlaceholder:`Describe the image for accessibility`,insertButton:`Insert Image`,invalidFile:`Please select a valid image file`,fileTooLarge:`Image file is too large (max 10MB)`,readFailed:`Failed to read image file`,loadFailed:`Failed to load image`,preview:`Preview`},insertSymbol:{title:`Insert Symbol`,searchPlaceholder:`Search symbols (character or Unicode)...`,noResultsEmpty:`No symbols found`,noResults:`No symbols found for "{query}"`,decimal:`Decimal: {value}`,recent:`Recent:`,categories:{common:`Common`,arrows:`Arrows`,math:`Math`,greek:`Greek`,shapes:`Shapes`,punctuation:`Punctuation`,currency:`Currency`,music:`Music`,emoji:`Emoji`}},imageProperties:{title:`Image Properties`,altText:`Alt Text`,altTextPlaceholder:`Describe this image for accessibility...`,border:`Border`,width:`Width`,style:`Style`,color:`Color`,preview:`Preview`,textWrapping:`Text wrapping`,dimensions:`Dimensions`,widthLabel:`Width:`,heightLabel:`Height:`,lockAspectRatio:`Lock aspect ratio`,wrapOptions:{inline:`Inline with text`,wrapRight:`Wrap text, float left`,wrapLeft:`Wrap text, float right`,topAndBottom:`Top and bottom`,behind:`Behind text`,inFront:`In front of text`},borderStyles:{solid:`Solid`,dashed:`Dashed`,dotted:`Dotted`,double:`Double`,groove:`Groove`,ridge:`Ridge`,inset:`Inset`,outset:`Outset`}},imagePosition:{title:`Image Position`,horizontal:`Horizontal`,vertical:`Vertical`,position:`Position`,alignment:`Alignment`,offset:`Offset`,offsetPx:`Offset (px)`,align:`Align`,relativeTo:`Relative to`,alignOptions:{left:`Left`,center:`Center`,right:`Right`,top:`Top`,bottom:`Bottom`},relativeOptions:{page:`Page`,column:`Column`,margin:`Margin`,character:`Character`,paragraph:`Paragraph`,line:`Line`}},pageSetup:{title:`Page Setup`,pageSize:`PAGE SIZE`,sizeLabel:`Size`,custom:`Custom`,orientation:`Orientation`,portrait:`Portrait`,landscape:`Landscape`,margins:`MARGINS`,top:`Top`,bottom:`Bottom`,left:`Left`,right:`Right`,pageSizes:{letter:`Letter (8.5" × 11")`,a4:`A4 (8.27" × 11.69")`,legal:`Legal (8.5" × 14")`,a3:`A3 (11.69" × 16.54")`,a5:`A5 (5.83" × 8.27")`,b5:`B5 (6.93" × 9.84")`,executive:`Executive (7.25" × 10.5")`}},tableProperties:{title:`Table Properties`,widthType:`Width type`,widthLabel:`Width`,alignmentLabel:`Alignment`,widthTypes:{auto:`Auto`,fixed:`Fixed (twips)`,percentage:`Percentage`},units:{fiftiethsPercent:`(50ths of %)`,twips:`tw`},alignOptions:{left:`Left`,center:`Center`,right:`Right`}},pasteSpecial:{title:`Paste Special`,keepFormatting:`Keep Source Formatting`,keepFormattingDescription:`Paste with original formatting`,keepFormattingShortcut:`Ctrl+V`,plainText:`Paste as Plain Text`,plainTextDescription:`Paste without any formatting`,plainTextShortcut:`Ctrl+Shift+V`,readingClipboard:`Reading clipboard...`,preview:`Preview:`,noContent:`No content available to paste`,clipboardError:`Unable to read clipboard. Please use Ctrl+V to paste.`},footnoteProperties:{title:`Footnote & Endnote Properties`,footnotes:`Footnotes`,endnotes:`Endnotes`,position:`Position`,numberFormat:`Number format`,startAt:`Start at`,numbering:`Numbering`,footnotePositions:{bottomOfPage:`Bottom of page`,belowText:`Below text`},endnotePositions:{endOfDocument:`End of document`,endOfSection:`End of section`},numberingOptions:{continuous:`Continuous`,restartSection:`Restart each section`,restartPage:`Restart each page`},formats:{decimal:`1, 2, 3, ...`,lowerRoman:`i, ii, iii, ...`,upperRoman:`I, II, III, ...`,lowerAlpha:`a, b, c, ...`,upperAlpha:`A, B, C, ...`,symbols:`*, †, ‡, ...`}},keyboardShortcuts:{ariaLabel:`Keyboard Shortcuts`,searchPlaceholder:`Search shortcuts...`,categories:{editing:`Editing`,formatting:`Formatting`,navigation:`Navigation`,clipboard:`Clipboard`,selection:`Selection`,view:`View`,file:`File`,other:`Other`},shortcuts:{save:`Save`,saveDescription:`Save document`,print:`Print`,printDescription:`Print document`,undo:`Undo`,undoDescription:`Undo last action`,redo:`Redo`,redoDescription:`Redo last action`,delete:`Delete`,deleteDescription:`Delete selected text`,find:`Find`,findDescription:`Find text in document`,findReplace:`Find & Replace`,findReplaceDescription:`Find and replace text`,cut:`Cut`,cutDescription:`Cut selected text`,copy:`Copy`,copyDescription:`Copy selected text`,paste:`Paste`,pasteDescription:`Paste from clipboard`,pastePlainText:`Paste as Plain Text`,pastePlainTextDescription:`Paste without formatting`,bold:`Bold`,boldDescription:`Toggle bold formatting`,italic:`Italic`,italicDescription:`Toggle italic formatting`,underline:`Underline`,underlineDescription:`Toggle underline formatting`,strikethrough:`Strikethrough`,strikethroughDescription:`Toggle strikethrough`,subscript:`Subscript`,subscriptDescription:`Toggle subscript`,superscript:`Superscript`,superscriptDescription:`Toggle superscript`,alignLeft:`Align Left`,alignLeftDescription:`Left align paragraph`,alignCenter:`Align Center`,alignCenterDescription:`Center align paragraph`,alignRight:`Align Right`,alignRightDescription:`Right align paragraph`,justify:`Justify`,justifyDescription:`Justify paragraph`,increaseIndent:`Increase Indent`,increaseIndentDescription:`Increase paragraph indent`,decreaseIndent:`Decrease Indent`,decreaseIndentDescription:`Decrease paragraph indent`,selectAll:`Select All`,selectAllDescription:`Select all content`,selectWord:`Select Word`,selectWordDescription:`Select current word`,selectParagraph:`Select Paragraph`,selectParagraphDescription:`Select current paragraph`,extendSelectionByWord:`Extend Selection by Word`,extendSelectionByWordDescription:`Extend selection to next/previous word`,extendSelectionToLineEdge:`Extend Selection to Line Edge`,extendSelectionToLineEdgeDescription:`Extend selection to line start/end`,moveByWord:`Move by Word`,moveByWordDescription:`Move cursor to next/previous word`,moveToLineStart:`Move to Line Start`,moveToLineStartDescription:`Move cursor to start of line`,moveToLineEnd:`Move to Line End`,moveToLineEndDescription:`Move cursor to end of line`,moveToDocumentStart:`Move to Document Start`,moveToDocumentStartDescription:`Move cursor to start of document`,moveToDocumentEnd:`Move to Document End`,moveToDocumentEndDescription:`Move cursor to end of document`,pageUp:`Page Up`,pageUpDescription:`Scroll up one page`,pageDown:`Page Down`,pageDownDescription:`Scroll down one page`,zoomIn:`Zoom In`,zoomInDescription:`Increase zoom level`,zoomOut:`Zoom Out`,zoomOutDescription:`Decrease zoom level`,resetZoom:`Reset Zoom`,resetZoomDescription:`Reset zoom to 100%`,keyboardShortcuts:`Keyboard Shortcuts`,keyboardShortcutsDescription:`Show this help dialog`,insertLink:`Insert Link`,insertLinkDescription:`Insert or edit hyperlink`},noResults:`No shortcuts found matching "{query}"`,pressEscToClose:`Press {key} to close`,or:`or`}},comments:{resolved:`Resolved`,resolve:`Resolve`,reopen:`Reopen`,moreOptions:`More options`,unknown:`Unknown`,addComment:`Add a comment...`,replyPlaceholder:`Reply or add others with @`,replyCount:`{count, plural, one {# reply} other {# replies}}`},trackedChanges:{unknown:`Unknown`,replaced:`Replaced`,with:`with`,added:`Added`,deleted:`Deleted`},revisions:{paragraphMarkInserted:`Inserted paragraph break`,paragraphMarkDeleted:`Deleted paragraph break`,paragraphPropertiesChanged:`Changed paragraph properties`,rowInserted:`Inserted row`,rowDeleted:`Deleted row`,rowPropertiesChanged:`Changed row properties`,cellInserted:`Inserted cell`,cellDeleted:`Deleted cell`,cellMerged:`Merged cells`,cellPropertiesChanged:`Changed cell properties`,tablePropertiesChanged:`Changed table properties`,tableInserted:`Inserted table`,tableDeleted:`Deleted table`},contextMenu:{ariaLabel:`AI actions menu`,textMenuAriaLabel:`Text editing menu`,customPromptPlaceholder:`Enter custom prompt...`,cut:`Cut`,cutShortcut:`Ctrl+X`,copy:`Copy`,copyShortcut:`Ctrl+C`,paste:`Paste`,pasteShortcut:`Ctrl+V`,pastePlainText:`Paste as Plain Text`,pastePlainTextShortcut:`Ctrl+Shift+V`,delete:`Delete`,deleteShortcut:`Del`,selectAll:`Select All`,selectAllShortcut:`Ctrl+A`,selected:`Selected:`,aiActions:{askAi:`Ask AI`,rewrite:`Rewrite`,expand:`Expand`,summarize:`Summarize`,translate:`Translate`,explain:`Explain`,fixGrammar:`Fix Grammar`,makeFormal:`Make Formal`,makeCasual:`Make Casual`,custom:`Custom`}},documentOutline:{ariaLabel:`Document outline`,closeAriaLabel:`Close outline`,closeTitle:`Close outline`,title:`Outline`,noHeadings:`No headings found. Add headings to your document to see them here.`},sidebar:{ariaLabel:`Annotations sidebar`},viewer:{pageIndicator:`{current} of {total}`},titleBar:{untitled:`Untitled`,documentNameAriaLabel:`Document name`,menuBarAriaLabel:`Menu bar`},errors:{loadingDocument:`Loading document...`,noDocumentLoaded:`No document loaded`,failedToLoad:`Failed to Load Document`,unableToParse:`Unable to Parse Document`,somethingWentWrong:`Something went wrong`,errorDescription:`An error occurred while rendering this component. Please try again or contact support if the problem persists.`,errorLabel:`Error:`,componentStack:`Component Stack:`,tryAgain:`Try Again`,showDetails:`Show details`,hideDetails:`Hide details`,unsavedChanges:`You have unsaved changes. Are you sure you want to leave?`},table:{insertRowAbove:`Insert row above`,insertRowBelow:`Insert row below`,insertColumnLeft:`Insert column left`,insertColumnRight:`Insert column right`,deleteRow:`Delete row`,deleteColumn:`Delete column`,deleteTable:`Delete table`,selectTable:`Select entire table`,mergeCells:`Merge cells`,splitCell:`Split cell`,editingTools:`Table editing tools`,label:`Table:`,cellFillColor:`Cell Fill Color`,borderColor:`Border Color`,borderWidth:`Border width`,unknownAction:`Unknown Action`,borders:{all:`All borders`,outside:`Outside borders`,inside:`Inside borders`,none:`No borders`,remove:`Remove borders`,top:`Top border`,bottom:`Bottom border`,left:`Left border`,right:`Right border`,styleAriaLabel:`Border style`,tooltip:`Borders`},moreOptions:`More table options`,styles:{title:`Table Styles`,label:`Styles`,normalTable:`Normal Table`,tableGrid:`Table Grid`,gridTableLight:`Grid Table Light`,plainTable1:`Plain Table 1`,plainTable2:`Plain Table 2`,plainTable3:`Plain Table 3`,plainTable4:`Plain Table 4`,gridTable1Light:`Grid Table 1 Light`,gridTable4Accent1:`Grid Table 4 Accent 1`,gridTable5Dark:`Grid Table 5 Dark`,listTable3Accent2:`List Table 3 Accent 2`,listTable4Accent3:`List Table 4 Accent 3`,gridTable4Accent5:`Grid Table 4 Accent 5`,gridTable4Accent6:`Grid Table 4 Accent 6`}},tableAdvanced:{verticalAlignment:`Vertical alignment`,top:`Top`,middle:`Middle`,bottom:`Bottom`,cellMargins:`Cell margins`,textDirection:`Text direction`,textDirections:{horizontal:`Horizontal (LR)`,verticalRL:`Vertical (top-bottom, RL)`,verticalLR:`Vertical (bottom-top, LR)`},toggleNoWrap:`Toggle no-wrap`,rowHeight:`Row height`,heightRules:{auto:`Auto`,atLeast:`At least`,exact:`Exact`},rule:`Rule`,height:`Height`,toggleHeaderRow:`Toggle header row`,distributeColumns:`Distribute columns evenly`,autoFit:`Auto-fit to contents`,tableProperties:`Table properties...`,tableAlignment:`Table alignment`,alignTableLeft:`Align table left`,alignTableCenter:`Align table center`,alignTableRight:`Align table right`,tableOptionsMenu:`Table options menu`,tableOptions:`Table options`},imageTransform:{tooltip:`Transform`,rotateClockwise:`Rotate clockwise`,rotateCounterClockwise:`Rotate counter-clockwise`,flipHorizontal:`Flip horizontal`,flipVertical:`Flip vertical`},imageWrap:{inline:`In Line with Text`,floatLeft:`Square Left`,floatRight:`Square Right`,topAndBottom:`Top and Bottom`,behindText:`Behind Text`,inFrontOfText:`In Front of Text`,tooltipPrefix:`Wrap: {label}`,menu:{inLineWithText:`In Line with Text`,squareLeft:`Square Left`,squareRight:`Square Right`,behindText:`Behind Text`,inFrontOfText:`In Front of Text`,ariaLabel:`Image layout options`,imageProperties:`Image properties…`},menuDesc:{inLineWithText:`Image flows in the line as a glyph`,squareLeft:`Image floats left, text wraps on the right`,squareRight:`Image floats right, text wraps on the left`,behindText:`Image paints behind body text`,inFrontOfText:`Image paints over body text`}},responsePreview:{loading:`{action}...`,result:`{action} Result`,closeEsc:`Close (Esc)`,editPrompt:`Edit the result before accepting:`,changes:`Changes:`,original:`Original:`,new:`New:`,cancelEdit:`Cancel Edit`},commentMarkers:{resolvedComment:`Resolved comment`,comment:`Comment`},editor:{toggleCommentsSidebar:`Toggle comments sidebar`,showDocumentOutline:`Show document outline`,editing:`Editing`,editingDescription:`Edit document directly`,suggesting:`Suggesting`,suggestingDescription:`Edits become suggestions`,viewing:`Viewing`,viewingDescription:`Read-only, no edits`,failedToParse:`Failed to parse document`,linkRemoved:`Link removed`,linkCopied:`Link copied to clipboard`,failedToSave:`Failed to save document`},hyperlinkPopup:{displayTextPlaceholder:`Display text`,urlPlaceholder:`https://example.com`,copyLink:`Copy link`,editLink:`Edit link`,removeLink:`Remove link`},headerFooter:{header:`Header`,footer:`Footer`,options:`Options`,insertPageNumber:`Insert current page number`,insertTotalPages:`Insert total page count`,remove:`Remove {label}`,closeEditing:`Close {label} editing`},image:{placeholder:`Image placeholder`,placeholderText:`[Image]`,editableAriaLabel:`Editable image`},imageOverlay:{rotate:`Rotate`,imageProperties:`Image properties`,deleteImage:`Delete image`,replaceImage:`Replace image…`},ruler:{horizontal:`Horizontal ruler`,vertical:`Vertical ruler`,firstLineIndent:`First line indent`,leftIndent:`Left indent`,rightIndent:`Right indent`,topMargin:`Top margin`,bottomMargin:`Bottom margin`},print:{label:`Print`,allPages:`All ({totalPages} pages)`,singlePage:`Page {start}`,pageRange:`Pages {start}-{end}`},unsaved:{unsaved:`Unsaved`,saved:`Saved`,unsavedTitle:`Document has unsaved changes`,savedTitle:`All changes saved`,unsavedAriaLabel:`Unsaved changes`,savedAriaLabel:`All changes saved`},loading:{label:`Loading`},agentPanel:{defaultTitle:`Assistant`,toggle:`Open assistant`,close:`Close panel`,resizeHandle:`Resize agent panel`,thinking:`Assistant is thinking`,composerPlaceholder:`Ask the assistant…`,send:`Send`,timeline:{working:`Working… {count, plural, one {# step} other {# steps}}`,summary:`{count, plural, one {# step} other {# steps}}`,earlier:`+ {count, plural, one {# earlier step} other {# earlier steps}}`}}};function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function u(e,t){if(!t)return e;let n={...e};for(let r of Object.keys(t)){let i=t[r];i!==null&&(l(e[r])&&l(i)?n[r]=u(e[r],i):i!==void 0&&(n[r]=i))}return n}function d(e,t){let n=e;for(let e of t.split(`.`)){if(!l(n))return;n=n[e]}return typeof n==`string`?n:void 0}function f(e){let t={},n=/(=\d+|\w+)\s*\{([^}]*)\}/g,r;for(;(r=n.exec(e))!==null;)t[r[1]]=r[2];return t}function p(e,t,n){return t?e.replace(/\{(\w+),\s*plural,((?:[^{}]|\{[^{}]*\})*)\}/g,(e,r,i)=>{let a=Number(t[r]);if(isNaN(a))return e;let o=f(i),s=o[`=${a}`];if(s!==void 0)return s.replace(/#/g,String(a));let c;try{c=new Intl.PluralRules(n||`en`).select(a)}catch{c=a===1?`one`:`other`}return(o[c]??o.other??``).replace(/#/g,String(a))}).replace(/\{(\w+)\}/g,(e,n)=>{let r=t[n];return r===void 0?`{${n}}`:String(r)}):e}function m(e,t=`en`){return(n,r)=>p(d(e,n)??n,r,t)}var h=Symbol(`docx-locale`),g=Symbol(`docx-lang`);function _(e){return{strings:(0,t.computed)(()=>u(c,(0,t.unref)(e))),lang:(0,t.computed)(()=>{let n=(0,t.unref)(e)?._lang;return typeof n==`string`?n:`en`})}}function v(e){let{strings:n,lang:r}=_(e);(0,t.provide)(h,n),(0,t.provide)(g,r)}function y(e){let{strings:n,lang:r}=_(e);return{t:(e,i)=>m((0,t.unref)(n),(0,t.unref)(r))(e,i)}}function b(){let e=(0,t.inject)(h,c),n=(0,t.inject)(g,`en`);return{t:(r,i)=>m((0,t.unref)(e),(0,t.unref)(n))(r,i)}}var x={install(e,t){let n=typeof t?._lang==`string`?t._lang:`en`,r=u(c,t);e.provide(h,r),e.provide(g,n)}},S={class:`find-replace-dialog__header`},C={class:`find-replace-dialog__title`},w=[`title`],T={class:`find-replace-dialog__body`},E={class:`find-replace-dialog__row`},D=[`placeholder`,`aria-label`],O={class:`find-replace-dialog__count`},ee=[`title`],te=[`title`],ne={class:`find-replace-dialog__options`},re=[`title`],ie={key:0,class:`find-replace-dialog__row`},k=[`placeholder`,`aria-label`,`onKeydown`],A=[`title`],j=[`title`],M=(0,t.defineComponent)({__name:`FindReplaceDialog`,props:{isOpen:{type:Boolean},view:{},scrollVisiblePositionIntoView:{type:Function}},emits:[`close`],setup(e,{emit:r}){let{t:i}=b(),a=e,o=r,s=(0,t.ref)(null),c=(0,t.ref)(``),l=(0,t.ref)(``),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)([]),m=(0,t.ref)(-1),h=(0,t.computed)(()=>c.value.trim()?p.value.length===0?i(`dialogs.findReplace.noResults`):m.value<0?i(`dialogs.findReplace.matchesFound`,{total:p.value.length}):i(`dialogs.findReplace.matchCount`,{current:m.value+1,total:p.value.length}):``);(0,t.watch)(()=>a.isOpen,async e=>{e?(await(0,t.nextTick)(),s.value?.focus(),s.value?.select(),_()):P()});function g(){P(),o(`close`)}function _(){p.value=[],m.value=-1;let e=a.view;if(!e||!c.value.trim()){P();return}let t=e.state.doc,n=c.value,r=!u.value,i=[];t.descendants((e,a)=>{if(!e.isTextblock)return!0;let o=t.textBetween(a+1,a+e.nodeSize-1,``,``);if(!o)return!1;let s=r?n.toLowerCase():n,c=r?o.toLowerCase():o,l=0;for(;l<c.length;){let e;if(d.value){let t=s.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),n=r?`gi`:`g`,i=RegExp(`\\b${t}\\b`,n);i.lastIndex=l;let a=i.exec(c);if(!a)break;e=a.index}else if(e=c.indexOf(s,l),e===-1)break;let t=a+1+e,o=t+n.length;i.push({from:t,to:o}),l=e+Math.max(1,n.length)}return!1}),p.value=i,i.length>0&&(m.value=0,v(0))}function v(e){let t=a.view;if(!t||p.value.length===0)return;let r=p.value[e];if(!r)return;m.value=e;let{from:i,to:o}=r;try{let e=t.state.doc.resolve(i),r=t.state.doc.resolve(o),s=n.TextSelection.between(e,r);t.dispatch(t.state.tr.setSelection(s)),a.scrollVisiblePositionIntoView?.(i)}catch{}}function y(){if(p.value.length===0){_();return}v((m.value+1)%p.value.length)}function x(){p.value.length!==0&&v((m.value-1+p.value.length)%p.value.length)}function M(){let e=a.view;if(!e||m.value<0||p.value.length===0)return;let t=p.value[m.value];if(t){try{let n;n=l.value?e.state.tr.replaceWith(t.from,t.to,e.state.schema.text(l.value)):e.state.tr.delete(t.from,t.to),e.dispatch(n)}catch{}_()}}function N(){let e=a.view;if(!e||p.value.length===0)return;let t=[...p.value].sort((e,t)=>t.from-e.from),n=e.state.tr;for(let r of t)try{n=l.value?n.replaceWith(r.from,r.to,e.state.schema.text(l.value)):n.delete(r.from,r.to)}catch{}e.dispatch(n),_()}function P(){p.value=[],m.value=-1}function F(e){e.key===`Enter`?(e.preventDefault(),e.shiftKey?x():y()):e.key===`Escape`&&g()}return(n,r)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`find-replace-dialog`,onMousedown:r[5]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:r[6]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,S,[(0,t.createElementVNode)(`span`,C,(0,t.toDisplayString)(f.value?(0,t.unref)(i)(`dialogs.findReplace.titleFindReplace`):(0,t.unref)(i)(`dialogs.findReplace.titleFind`)),1),(0,t.createElementVNode)(`button`,{class:`find-replace-dialog__close`,onClick:g,title:(0,t.unref)(i)(`common.closeDialog`)},` ✕ `,8,w)]),(0,t.createElementVNode)(`div`,T,[(0,t.createElementVNode)(`div`,E,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`searchInputRef`,ref:s,"onUpdate:modelValue":r[0]||=e=>c.value=e,class:`find-replace-dialog__input`,placeholder:(0,t.unref)(i)(`dialogs.findReplace.findPlaceholder`),"aria-label":(0,t.unref)(i)(`dialogs.findReplace.findAriaLabel`),onKeydown:F,onInput:_},null,40,D),[[t.vModelText,c.value]]),(0,t.createElementVNode)(`span`,O,(0,t.toDisplayString)(h.value),1),(0,t.createElementVNode)(`button`,{title:(0,t.unref)(i)(`dialogs.findReplace.findPreviousTitle`),onMousedown:(0,t.withModifiers)(x,[`prevent`])},` ▲ `,40,ee),(0,t.createElementVNode)(`button`,{title:(0,t.unref)(i)(`dialogs.findReplace.findNextTitle`),onMousedown:(0,t.withModifiers)(y,[`prevent`])},` ▼ `,40,te)]),(0,t.createElementVNode)(`div`,ne,[(0,t.createElementVNode)(`label`,null,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{type:`checkbox`,"onUpdate:modelValue":r[1]||=e=>u.value=e,onChange:_},null,544),[[t.vModelCheckbox,u.value]]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.findReplace.matchCase`)),1)]),(0,t.createElementVNode)(`label`,null,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{type:`checkbox`,"onUpdate:modelValue":r[2]||=e=>d.value=e,onChange:_},null,544),[[t.vModelCheckbox,d.value]]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.findReplace.wholeWords`)),1)]),(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`find-replace-dialog__toggle`,{active:f.value}]),onMousedown:r[3]||=(0,t.withModifiers)(e=>f.value=!f.value,[`prevent`]),title:(0,t.unref)(i)(`dialogs.findReplace.toggleReplace`)},` ↔ `+(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.findReplace.replaceButton`)),43,re)]),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ie,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":r[4]||=e=>l.value=e,class:`find-replace-dialog__input`,placeholder:(0,t.unref)(i)(`dialogs.findReplace.replacePlaceholder`),"aria-label":(0,t.unref)(i)(`dialogs.findReplace.replaceAriaLabel`),onKeydown:(0,t.withKeys)((0,t.withModifiers)(M,[`prevent`]),[`enter`])},null,40,k),[[t.vModelText,l.value]]),(0,t.createElementVNode)(`button`,{title:(0,t.unref)(i)(`dialogs.findReplace.replaceCurrentTitle`),onMousedown:(0,t.withModifiers)(M,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.findReplace.replaceButton`)),41,A),(0,t.createElementVNode)(`button`,{title:(0,t.unref)(i)(`dialogs.findReplace.replaceAllTitle`),onMousedown:(0,t.withModifiers)(N,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.findReplace.replaceAllButton`)),41,j)])):(0,t.createCommentVNode)(``,!0)])],32)):(0,t.createCommentVNode)(``,!0)}}),N=e.t(M,[[`__scopeId`,`data-v-88f1979d`]]),P={class:`dialog__header`},F={class:`dialog__title`},I=[`aria-label`],L={class:`dialog__body`},R={key:0,class:`link-tabs`,role:`tablist`},z=[`aria-selected`],B=[`aria-selected`],V={key:1,class:`field`},H={class:`field__label`},U=[`placeholder`,`aria-invalid`,`onKeydown`],W={key:0,class:`field__error`},G={key:1,class:`field__hint`},K={key:2,class:`field`},q={class:`field__label`},J=[`onKeydown`],Y={value:``},ae=[`value`],oe={class:`field`},se={class:`field__label`},ce=[`placeholder`],le={class:`field__hint`},ue={class:`field`},de={class:`field__label`},fe=[`placeholder`],pe={class:`dialog__actions`},me=[`disabled`],he=(0,t.defineComponent)({__name:`HyperlinkDialog`,props:{isOpen:{type:Boolean},view:{},bookmarks:{}},emits:[`close`,`submit`,`remove`],setup(e,{emit:n}){let{t:r}=b(),i=e,a=n,o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)(`url`),l=(0,t.ref)(``),u=(0,t.ref)(``),d=(0,t.ref)(``),f=(0,t.ref)(``),p=(0,t.ref)(!1),m=(0,t.ref)(``),h=(0,t.ref)(!1),g=(0,t.computed)(()=>i.bookmarks??[]),_=(0,t.computed)(()=>c.value===`bookmark`?!!u.value:!!l.value.trim()&&!m.value);(0,t.watch)(l,()=>{m.value&&=``});function v(e){let t=e.trim();if(!t)return!1;if(/^(mailto:|tel:)/i.test(t))return t.replace(/^(mailto:|tel:)/i,``).length>0;if(/^ftp:\/\//i.test(t))return t.length>6;try{let e=new URL(/^https?:\/\//i.test(t)?t:`https://${t}`);return e.protocol===`http:`||e.protocol===`https:`}catch{return!1}}function y(e){let t=e.trim();return/^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t)?t:`https://${t}`}(0,t.watch)(()=>i.isOpen,async e=>{if(e){let e=i.view;if(e){let{$from:t,empty:n,from:r,to:i}=e.state.selection,a=(e.state.storedMarks||t.marks()).find(e=>e.type.name===`hyperlink`);if(a){let e=a.attrs.href||``;e.startsWith(`#`)?(c.value=`bookmark`,u.value=e.slice(1),l.value=``):(c.value=`url`,l.value=e,u.value=``),f.value=a.attrs.tooltip||``,p.value=!0}else c.value=`url`,l.value=``,u.value=``,f.value=``,p.value=!1;n?d.value=``:d.value=e.state.doc.textBetween(r,i)}await(0,t.nextTick)(),c.value===`bookmark`?s.value?.focus():o.value?.focus()}else h.value=!1,m.value=``});function x(){a(`close`)}function S(){if(c.value===`bookmark`){if(!u.value)return;a(`submit`,{bookmark:u.value,displayText:d.value,tooltip:f.value}),x();return}if(h.value=!0,!v(l.value)){m.value=l.value.trim()?r(`dialogs.hyperlink.invalidUrl`):r(`dialogs.hyperlink.urlRequired`);return}a(`submit`,{url:y(l.value),displayText:d.value,tooltip:f.value}),x()}function C(){if(c.value===`url`){if(h.value=!0,!l.value.trim()){m.value=``;return}m.value=v(l.value)?``:r(`dialogs.hyperlink.invalidUrl`)}}function w(){a(`remove`),x()}return(n,i)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`dialog-overlay`,onMousedown:(0,t.withModifiers)(x,[`self`])},[(0,t.createElementVNode)(`div`,{class:`dialog`,onMousedown:i[6]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:i[7]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,P,[(0,t.createElementVNode)(`span`,F,(0,t.toDisplayString)(p.value?(0,t.unref)(r)(`dialogs.hyperlink.titleEdit`):(0,t.unref)(r)(`dialogs.hyperlink.titleInsert`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__close`,"aria-label":(0,t.unref)(r)(`common.closeDialog`),onClick:x},` ✕ `,8,I)]),(0,t.createElementVNode)(`div`,L,[g.value.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,R,[(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`link-tab`,{active:c.value===`url`}]),role:`tab`,"aria-selected":c.value===`url`,onMousedown:i[0]||=(0,t.withModifiers)(e=>c.value=`url`,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.tabWebAddress`)),43,z),(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`link-tab`,{active:c.value===`bookmark`}]),role:`tab`,"aria-selected":c.value===`bookmark`,onMousedown:i[1]||=(0,t.withModifiers)(e=>c.value=`bookmark`,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.tabBookmark`)),43,B)])):(0,t.createCommentVNode)(``,!0),c.value===`url`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,V,[(0,t.createElementVNode)(`label`,H,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.urlLabel`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`urlInputRef`,ref:o,"onUpdate:modelValue":i[2]||=e=>l.value=e,class:(0,t.normalizeClass)([`field__input`,{"field__input--error":h.value&&!!m.value}]),placeholder:(0,t.unref)(r)(`dialogs.hyperlink.urlPlaceholder`),"aria-invalid":h.value&&!!m.value,onKeydown:(0,t.withKeys)((0,t.withModifiers)(S,[`prevent`]),[`enter`]),onBlur:C},null,42,U),[[t.vModelText,l.value]]),h.value&&m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,W,(0,t.toDisplayString)(m.value),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,G,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.urlHint`)),1))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,K,[(0,t.createElementVNode)(`label`,q,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.bookmarkLabel`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`select`,{ref_key:`bookmarkSelectRef`,ref:s,"onUpdate:modelValue":i[3]||=e=>u.value=e,class:`field__input`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(S,[`prevent`]),[`enter`])},[(0,t.createElementVNode)(`option`,Y,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.bookmarkPlaceholder`)),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.name,value:e.name},(0,t.toDisplayString)(e.label||e.name),9,ae))),128))],40,J),[[t.vModelSelect,u.value]])])),(0,t.createElementVNode)(`div`,oe,[(0,t.createElementVNode)(`label`,se,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.displayTextLabel`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[4]||=e=>d.value=e,class:`field__input`,placeholder:(0,t.unref)(r)(`dialogs.hyperlink.displayTextPlaceholder`)},null,8,ce),[[t.vModelText,d.value]]),(0,t.createElementVNode)(`div`,le,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.displayTextHint`)),1)]),(0,t.createElementVNode)(`div`,ue,[(0,t.createElementVNode)(`label`,de,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.tooltipLabel`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[5]||=e=>f.value=e,class:`field__input`,placeholder:(0,t.unref)(r)(`dialogs.hyperlink.tooltipPlaceholder`)},null,8,fe),[[t.vModelText,f.value]])]),(0,t.createElementVNode)(`div`,pe,[p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,class:`dialog__btn dialog__btn--danger`,onMousedown:(0,t.withModifiers)(w,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.hyperlink.removeLink`)),33)):(0,t.createCommentVNode)(``,!0),i[8]||=(0,t.createElementVNode)(`div`,{style:{flex:`1`}},null,-1),(0,t.createElementVNode)(`button`,{class:`dialog__btn`,onClick:x},(0,t.toDisplayString)((0,t.unref)(r)(`common.cancel`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__btn dialog__btn--primary`,onMousedown:(0,t.withModifiers)(S,[`prevent`]),disabled:!_.value},(0,t.toDisplayString)(p.value?(0,t.unref)(r)(`common.update`):(0,t.unref)(r)(`common.insert`)),41,me)])])],32)],32)):(0,t.createCommentVNode)(``,!0)}}),ge=e.t(he,[[`__scopeId`,`data-v-3677ac5b`]]),_e={class:`dialog__header`},ve={class:`dialog__title`},ye=[`title`],be={class:`dialog__body`},xe=[`placeholder`],Se={key:0,class:`symbol-tabs`},Ce=[`onMousedown`],we={class:`symbol-grid`},Te=[`title`,`onClick`,`onDblclick`],Ee={key:0,class:`symbol-empty`},De={key:1,class:`symbol-preview`},Oe={class:`symbol-preview__char`},ke={class:`symbol-preview__info`},Ae={key:2,class:`symbol-recent`},je={class:`symbol-recent__label`},Me=[`onDblclick`,`onClick`],Ne={class:`dialog__actions`},Pe=[`disabled`],Fe=(0,t.defineComponent)({__name:`InsertSymbolDialog`,props:{isOpen:{type:Boolean}},emits:[`close`,`insert`],setup(e,{emit:n}){let{t:r}=b(),i=e,a=n,o=(0,t.ref)(null),s=(0,t.ref)(``),c=(0,t.ref)(`Common`),l=(0,t.ref)(``),u=(0,t.ref)([]),d=[{name:`Common`,nameKey:`dialogs.insertSymbol.categories.common`,symbols:[{char:`©`,name:`Copyright`},{char:`®`,name:`Registered`},{char:`™`,name:`Trademark`},{char:`•`,name:`Bullet`},{char:`…`,name:`Ellipsis`},{char:`—`,name:`Em dash`},{char:`–`,name:`En dash`},{char:`±`,name:`Plus-minus`},{char:`×`,name:`Multiply`},{char:`÷`,name:`Divide`},{char:`≠`,name:`Not equal`},{char:`≈`,name:`Approximately`},{char:`≤`,name:`Less or equal`},{char:`≥`,name:`Greater or equal`},{char:`°`,name:`Degree`},{char:`µ`,name:`Micro`},{char:`¶`,name:`Pilcrow`},{char:`§`,name:`Section`},{char:`†`,name:`Dagger`},{char:`‡`,name:`Double dagger`},{char:`¿`,name:`Inverted question`},{char:`¡`,name:`Inverted exclamation`},{char:`‰`,name:`Per mille`},{char:`∞`,name:`Infinity`}]},{name:`Arrows`,nameKey:`dialogs.insertSymbol.categories.arrows`,symbols:[{char:`←`,name:`Left`},{char:`→`,name:`Right`},{char:`↑`,name:`Up`},{char:`↓`,name:`Down`},{char:`↔`,name:`Left-right`},{char:`↕`,name:`Up-down`},{char:`⇐`,name:`Double left`},{char:`⇒`,name:`Double right`},{char:`⇑`,name:`Double up`},{char:`⇓`,name:`Double down`},{char:`⇔`,name:`Double left-right`},{char:`➡`,name:`Heavy right`},{char:`↩`,name:`Return`},{char:`↪`,name:`Curved right`},{char:`↻`,name:`Clockwise`},{char:`↺`,name:`Counter-clockwise`}]},{name:`Math`,nameKey:`dialogs.insertSymbol.categories.math`,symbols:[{char:`∑`,name:`Summation`},{char:`∏`,name:`Product`},{char:`∫`,name:`Integral`},{char:`√`,name:`Square root`},{char:`∂`,name:`Partial diff`},{char:`∇`,name:`Nabla`},{char:`∈`,name:`Element of`},{char:`∉`,name:`Not element`},{char:`⊂`,name:`Subset`},{char:`⊃`,name:`Superset`},{char:`∪`,name:`Union`},{char:`∩`,name:`Intersection`},{char:`∧`,name:`And`},{char:`∨`,name:`Or`},{char:`¬`,name:`Not`},{char:`∀`,name:`For all`},{char:`∃`,name:`Exists`},{char:`∅`,name:`Empty set`},{char:`∝`,name:`Proportional`},{char:`∠`,name:`Angle`}]},{name:`Greek`,nameKey:`dialogs.insertSymbol.categories.greek`,symbols:[{char:`α`,name:`alpha`},{char:`β`,name:`beta`},{char:`γ`,name:`gamma`},{char:`δ`,name:`delta`},{char:`ε`,name:`epsilon`},{char:`ζ`,name:`zeta`},{char:`η`,name:`eta`},{char:`θ`,name:`theta`},{char:`λ`,name:`lambda`},{char:`μ`,name:`mu`},{char:`π`,name:`pi`},{char:`ρ`,name:`rho`},{char:`σ`,name:`sigma`},{char:`τ`,name:`tau`},{char:`φ`,name:`phi`},{char:`ψ`,name:`psi`},{char:`ω`,name:`omega`},{char:`Δ`,name:`Delta`},{char:`Σ`,name:`Sigma`},{char:`Ω`,name:`Omega`},{char:`Π`,name:`Pi`},{char:`Φ`,name:`Phi`},{char:`Ψ`,name:`Psi`},{char:`Θ`,name:`Theta`}]},{name:`Currency`,nameKey:`dialogs.insertSymbol.categories.currency`,symbols:[{char:`$`,name:`Dollar`},{char:`€`,name:`Euro`},{char:`£`,name:`Pound`},{char:`¥`,name:`Yen`},{char:`₹`,name:`Rupee`},{char:`₽`,name:`Ruble`},{char:`₩`,name:`Won`},{char:`₿`,name:`Bitcoin`},{char:`¢`,name:`Cent`},{char:`₫`,name:`Dong`},{char:`₺`,name:`Lira`},{char:`₴`,name:`Hryvnia`}]},{name:`Shapes`,nameKey:`dialogs.insertSymbol.categories.shapes`,symbols:[{char:`■`,name:`Black square`},{char:`□`,name:`White square`},{char:`▲`,name:`Up triangle`},{char:`▼`,name:`Down triangle`},{char:`●`,name:`Black circle`},{char:`○`,name:`White circle`},{char:`◆`,name:`Black diamond`},{char:`◇`,name:`White diamond`},{char:`★`,name:`Black star`},{char:`☆`,name:`White star`},{char:`♠`,name:`Spade`},{char:`♥`,name:`Heart`},{char:`♦`,name:`Diamond`},{char:`♣`,name:`Club`},{char:`✓`,name:`Check mark`},{char:`✗`,name:`Ballot X`},{char:`✦`,name:`Four pointed star`},{char:`◌`,name:`Dotted circle`}]}],f=(0,t.computed)(()=>{let e=[];for(let t of d)for(let n of t.symbols)e.push({...n,category:t.name});return e}),p=(0,t.computed)(()=>{if(s.value){let e=s.value.toLowerCase();return f.value.filter(t=>t.name.toLowerCase().includes(e)||t.char===e)}let e=d.find(e=>e.name===c.value);return e?e.symbols.map(t=>({...t,category:e.name})):[]});(0,t.watch)(()=>i.isOpen,async e=>{e&&(await(0,t.nextTick)(),o.value?.focus())});function m(){a(`close`)}function h(e){e&&(u.value=[e,...u.value.filter(t=>t!==e)].slice(0,10),a(`insert`,e))}return(n,i)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`dialog-overlay`,onMousedown:(0,t.withModifiers)(m,[`self`])},[(0,t.createElementVNode)(`div`,{class:`dialog symbol-dialog`,onMousedown:i[2]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:i[3]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,_e,[(0,t.createElementVNode)(`span`,ve,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.insertSymbol.title`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__close`,title:(0,t.unref)(r)(`common.closeDialog`),onClick:m},`✕`,8,ye)]),(0,t.createElementVNode)(`div`,be,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`searchRef`,ref:o,"onUpdate:modelValue":i[0]||=e=>s.value=e,class:`symbol-search`,placeholder:(0,t.unref)(r)(`dialogs.insertSymbol.searchPlaceholder`),onKeydown:(0,t.withKeys)(m,[`escape`])},null,40,xe),[[t.vModelText,s.value]]),s.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Se,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d,e=>(0,t.createElementVNode)(`button`,{key:e.name,class:(0,t.normalizeClass)([`symbol-tab`,{active:c.value===e.name}]),onMousedown:(0,t.withModifiers)(t=>c.value=e.name,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(r)(e.nameKey)),43,Ce)),64))])),(0,t.createElementVNode)(`div`,we,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(p.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.char,class:(0,t.normalizeClass)([`symbol-cell`,{selected:l.value===e.char}]),title:e.name,onClick:t=>l.value=e.char,onDblclick:t=>h(e.char)},(0,t.toDisplayString)(e.char),43,Te))),128)),p.value.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ee,(0,t.toDisplayString)(s.value?(0,t.unref)(r)(`dialogs.insertSymbol.noResults`,{query:s.value}):(0,t.unref)(r)(`dialogs.insertSymbol.noResultsEmpty`)),1)):(0,t.createCommentVNode)(``,!0)]),l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,De,[(0,t.createElementVNode)(`span`,Oe,(0,t.toDisplayString)(l.value),1),(0,t.createElementVNode)(`span`,ke,`U+`+(0,t.toDisplayString)(l.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4,`0`)),1)])):(0,t.createCommentVNode)(``,!0),u.value.length>0&&!s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ae,[(0,t.createElementVNode)(`div`,je,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.insertSymbol.recent`)),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,class:`symbol-cell symbol-cell--small`,onDblclick:t=>h(e),onClick:t=>l.value=e},(0,t.toDisplayString)(e),41,Me))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Ne,[(0,t.createElementVNode)(`button`,{class:`dialog__btn`,onClick:m},(0,t.toDisplayString)((0,t.unref)(r)(`common.cancel`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__btn dialog__btn--primary`,onMousedown:i[1]||=(0,t.withModifiers)(e=>h(l.value),[`prevent`]),disabled:!l.value},(0,t.toDisplayString)((0,t.unref)(r)(`common.insert`)),41,Pe)])])],32)],32)):(0,t.createCommentVNode)(``,!0)}}),Ie=e.t(Fe,[[`__scopeId`,`data-v-a0833b79`]]),Le={class:`dialog__header`},Re={class:`dialog__title`},ze=[`aria-label`],Be={class:`dialog__body`},Ve={class:`field`},He={class:`field__label`},Ue=[`placeholder`],We={class:`field`},Ge={class:`field__label`},Ke={value:`inline`},qe={value:`wrapRight`},Je={value:`wrapLeft`},Ye={value:`topAndBottom`},Xe={value:`behind`},Ze={value:`inFront`},Qe={class:`field`},$e={class:`field__label`},et={class:`field-row`},tt={value:`solid`},nt={value:`dashed`},rt={value:`dotted`},it={value:`double`},at={class:`field`},ot={class:`field__label`},st={class:`field-row`},ct=[`value`],lt=[`value`],ut={class:`field__checkbox`},dt={class:`dialog__actions`},ft=(0,t.defineComponent)({__name:`ImagePropertiesDialog`,props:{isOpen:{type:Boolean},view:{},pmPos:{}},emits:[`close`],setup(e,{emit:n}){let{t:r}=b(),i=e,a=n,o=(0,t.ref)(``),s=(0,t.ref)(`inline`),c=(0,t.ref)(0),l=(0,t.ref)(`solid`),u=(0,t.ref)(`#000000`),d=(0,t.ref)(200),f=(0,t.ref)(150),p=(0,t.ref)(!0),m=1;(0,t.watch)(()=>i.isOpen,e=>{if(!(!e||!i.view||i.pmPos===null))try{let e=i.view.state.doc.nodeAt(i.pmPos);if(e&&e.type.name===`image`){o.value=e.attrs.alt||``,c.value=e.attrs.borderWidth||0,l.value=e.attrs.borderStyle||`solid`,u.value=e.attrs.borderColor||`#000000`,d.value=e.attrs.width||200,f.value=e.attrs.height||150,m=d.value/(f.value||1),p.value=!0;let t=e.attrs.displayMode,n=e.attrs.cssFloat,r=e.attrs.wrapType;t===`float`&&n===`left`?s.value=`wrapRight`:t===`float`&&n===`right`?s.value=`wrapLeft`:t===`block`?s.value=`topAndBottom`:r===`behind`?s.value=`behind`:r===`inFront`?s.value=`inFront`:s.value=`inline`}}catch{}});function h(e){let t=Number(e.target.value);isNaN(t)||t<1||(d.value=t,p.value&&m>0&&(f.value=Math.round(t/m)))}function g(e){let t=Number(e.target.value);isNaN(t)||t<1||(f.value=t,p.value&&m>0&&(d.value=Math.round(t*m)))}function _(){a(`close`)}function v(){let e=i.view;if(!(!e||i.pmPos===null)){try{let t=e.state.doc.nodeAt(i.pmPos);if(!t||t.type.name!==`image`)return;let n=`inline`,r=null,a=`inline`;switch(s.value){case`wrapRight`:n=`float`,r=`left`,a=`square`;break;case`wrapLeft`:n=`float`,r=`right`,a=`square`;break;case`topAndBottom`:n=`block`,a=`topAndBottom`;break;case`behind`:n=`float`,r=`none`,a=`behind`;break;case`inFront`:n=`float`,r=`none`,a=`inFront`;break;default:n=`inline`,a=`inline`;break}let p=e.state.tr.setNodeMarkup(i.pmPos,void 0,{...t.attrs,alt:o.value,width:d.value,height:f.value,borderWidth:c.value||void 0,borderStyle:c.value>0?l.value:void 0,borderColor:c.value>0?u.value:void 0,displayMode:n,cssFloat:r,wrapType:a});e.dispatch(p)}catch{}_()}}return(n,i)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`dialog-overlay`,onMousedown:(0,t.withModifiers)(_,[`self`])},[(0,t.createElementVNode)(`div`,{class:`dialog`,onMousedown:i[6]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:i[7]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Le,[(0,t.createElementVNode)(`span`,Re,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.title`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__close`,"aria-label":(0,t.unref)(r)(`common.closeDialog`),onClick:_},` ✕ `,8,ze)]),(0,t.createElementVNode)(`div`,Be,[(0,t.createElementVNode)(`div`,Ve,[(0,t.createElementVNode)(`label`,He,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.altText`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`textarea`,{"onUpdate:modelValue":i[0]||=e=>o.value=e,class:`field__textarea`,placeholder:(0,t.unref)(r)(`dialogs.imageProperties.altTextPlaceholder`),rows:`2`},null,8,Ue),[[t.vModelText,o.value]])]),(0,t.createElementVNode)(`div`,We,[(0,t.createElementVNode)(`label`,Ge,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.textWrapping`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`select`,{"onUpdate:modelValue":i[1]||=e=>s.value=e,class:`field__select`},[(0,t.createElementVNode)(`option`,Ke,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.inline`)),1),(0,t.createElementVNode)(`option`,qe,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.wrapRight`)),1),(0,t.createElementVNode)(`option`,Je,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.wrapLeft`)),1),(0,t.createElementVNode)(`option`,Ye,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.topAndBottom`)),1),(0,t.createElementVNode)(`option`,Xe,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.behind`)),1),(0,t.createElementVNode)(`option`,Ze,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.wrapOptions.inFront`)),1)],512),[[t.vModelSelect,s.value]])]),(0,t.createElementVNode)(`div`,Qe,[(0,t.createElementVNode)(`label`,$e,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.border`)),1),(0,t.createElementVNode)(`div`,et,[(0,t.createElementVNode)(`label`,null,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.width`))+`: `,1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[2]||=e=>c.value=e,type:`number`,min:`0`,max:`20`,step:`0.5`,class:`field__input--small`},null,512),[[t.vModelText,c.value,void 0,{number:!0}]]),(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`common.px`)),1)]),(0,t.createElementVNode)(`label`,null,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.style`))+`: `,1),(0,t.withDirectives)((0,t.createElementVNode)(`select`,{"onUpdate:modelValue":i[3]||=e=>l.value=e,class:`field__select--small`},[(0,t.createElementVNode)(`option`,tt,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.borderStyles.solid`)),1),(0,t.createElementVNode)(`option`,nt,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.borderStyles.dashed`)),1),(0,t.createElementVNode)(`option`,rt,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.borderStyles.dotted`)),1),(0,t.createElementVNode)(`option`,it,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.borderStyles.double`)),1)],512),[[t.vModelSelect,l.value]])]),(0,t.createElementVNode)(`label`,null,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.color`))+`: `,1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[4]||=e=>u.value=e,type:`color`,class:`field__color`},null,512),[[t.vModelText,u.value]])])])]),(0,t.createElementVNode)(`div`,at,[(0,t.createElementVNode)(`label`,ot,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.dimensions`)),1),(0,t.createElementVNode)(`div`,st,[(0,t.createElementVNode)(`label`,null,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.widthLabel`))+` `,1),(0,t.createElementVNode)(`input`,{value:d.value,type:`number`,min:`1`,max:`2000`,class:`field__input--small`,onInput:h},null,40,ct),(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`common.px`)),1)]),(0,t.createElementVNode)(`label`,null,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.heightLabel`))+` `,1),(0,t.createElementVNode)(`input`,{value:f.value,type:`number`,min:`1`,max:`2000`,class:`field__input--small`,onInput:g},null,40,lt),(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`common.px`)),1)])]),(0,t.createElementVNode)(`label`,ut,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[5]||=e=>p.value=e,type:`checkbox`},null,512),[[t.vModelCheckbox,p.value]]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.imageProperties.lockAspectRatio`)),1)])]),(0,t.createElementVNode)(`div`,dt,[(0,t.createElementVNode)(`button`,{class:`dialog__btn`,onClick:_},(0,t.toDisplayString)((0,t.unref)(r)(`common.cancel`)),1),(0,t.createElementVNode)(`button`,{class:`dialog__btn dialog__btn--primary`,onMousedown:(0,t.withModifiers)(v,[`prevent`])},(0,t.toDisplayString)((0,t.unref)(r)(`common.apply`)),33)])])],32)],32)):(0,t.createCommentVNode)(``,!0)}}),pt=e.t(ft,[[`__scopeId`,`data-v-e3e3414c`]]),mt=[`aria-label`],ht={class:`ps-header`},gt={class:`ps-body`},_t={class:`ps-section-label`},vt={class:`ps-row`},yt={class:`ps-label`},bt=[`value`],xt=[`value`],St={key:0,value:-1},Ct={class:`ps-row`},wt={class:`ps-label`},Tt=[`value`],Et={value:`portrait`},Dt={value:`landscape`},Ot={class:`ps-section-label ps-section-label--spaced`},kt={class:`ps-row`},At={class:`ps-label`},jt={class:`ps-row`},Mt={class:`ps-label`},Nt={class:`ps-row`},Pt={class:`ps-label`},Ft={class:`ps-row`},It={class:`ps-label`},Lt={class:`ps-footer`},X=12240,Z=15840,Q=1440,Rt=(0,t.defineComponent)({__name:`PageSetupDialog`,props:{isOpen:{type:Boolean},sectionProperties:{}},emits:[`close`,`apply`],setup(e,{emit:n}){let{t:i}=b(),a=[{labelKey:`dialogs.pageSetup.pageSizes.letter`,width:12240,height:15840},{labelKey:`dialogs.pageSetup.pageSizes.a4`,width:11906,height:16838},{labelKey:`dialogs.pageSetup.pageSizes.legal`,width:12240,height:20160},{labelKey:`dialogs.pageSetup.pageSizes.a3`,width:16838,height:23811},{labelKey:`dialogs.pageSetup.pageSizes.a5`,width:8391,height:11906},{labelKey:`dialogs.pageSetup.pageSizes.b5`,width:9979,height:14175},{labelKey:`dialogs.pageSetup.pageSizes.executive`,width:10440,height:15120}],o=e,s=n,c=(0,t.ref)(X),l=(0,t.ref)(Z),u=(0,t.ref)(`portrait`),d=(0,t.ref)(1),f=(0,t.ref)(1),p=(0,t.ref)(1),m=(0,t.ref)(1);function h(e){return Math.round(e/r.TWIPS_PER_INCH*100)/100}function g(e){return Math.round((Number(e)||0)*r.TWIPS_PER_INCH)}let _=(0,t.computed)(()=>{let e=Math.min(c.value,l.value),t=Math.max(c.value,l.value);return a.findIndex(n=>Math.abs(n.width-e)<20&&Math.abs(n.height-t)<20)});(0,t.watch)(()=>o.isOpen,e=>{if(!e)return;let t=o.sectionProperties,n=t?.pageWidth||X,r=t?.pageHeight||Z;c.value=n,l.value=r,u.value=t?.orientation||(n>r?`landscape`:`portrait`),d.value=h(t?.marginTop??Q),f.value=h(t?.marginBottom??Q),p.value=h(t?.marginLeft??Q),m.value=h(t?.marginRight??Q)},{immediate:!0});function v(e){let t=Number(e.target.value);if(t<0)return;let n=a[t];u.value===`landscape`?(c.value=n.height,l.value=n.width):(c.value=n.width,l.value=n.height)}function y(e){let t=e.target.value;if(t===u.value)return;u.value=t;let n=c.value;c.value=l.value,l.value=n}function x(){s(`close`)}function S(){s(`apply`,{pageWidth:c.value,pageHeight:l.value,orientation:u.value,marginTop:g(d.value),marginBottom:g(f.value),marginLeft:g(p.value),marginRight:g(m.value)}),x()}function C(e){e.key===`Escape`&&x(),e.key===`Enter`&&S()}return(n,r)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`ps-overlay`,onMousedown:(0,t.withModifiers)(x,[`self`]),onKeydown:C},[(0,t.createElementVNode)(`div`,{class:`ps-dialog`,role:`dialog`,"aria-label":(0,t.unref)(i)(`dialogs.pageSetup.title`),onMousedown:r[4]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,ht,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.title`)),1),(0,t.createElementVNode)(`div`,gt,[(0,t.createElementVNode)(`div`,_t,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.pageSize`)),1),(0,t.createElementVNode)(`div`,vt,[(0,t.createElementVNode)(`label`,yt,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.sizeLabel`)),1),(0,t.createElementVNode)(`select`,{class:`ps-input`,value:_.value,onChange:v},[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a,(e,n)=>(0,t.createElementVNode)(`option`,{key:e.labelKey,value:n},(0,t.toDisplayString)((0,t.unref)(i)(e.labelKey)),9,xt)),64)),_.value<0?((0,t.openBlock)(),(0,t.createElementBlock)(`option`,St,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.custom`)),1)):(0,t.createCommentVNode)(``,!0)],40,bt)]),(0,t.createElementVNode)(`div`,Ct,[(0,t.createElementVNode)(`label`,wt,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.orientation`)),1),(0,t.createElementVNode)(`select`,{class:`ps-input`,value:u.value,onChange:y},[(0,t.createElementVNode)(`option`,Et,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.portrait`)),1),(0,t.createElementVNode)(`option`,Dt,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.landscape`)),1)],40,Tt)]),(0,t.createElementVNode)(`div`,Ot,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.margins`)),1),(0,t.createElementVNode)(`div`,kt,[(0,t.createElementVNode)(`label`,At,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.top`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`ps-input`,type:`number`,min:`0`,max:`10`,step:`0.1`,"onUpdate:modelValue":r[0]||=e=>d.value=e},null,512),[[t.vModelText,d.value,void 0,{number:!0}]]),r[5]||=(0,t.createElementVNode)(`span`,{class:`ps-unit`},`in`,-1)]),(0,t.createElementVNode)(`div`,jt,[(0,t.createElementVNode)(`label`,Mt,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.bottom`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`ps-input`,type:`number`,min:`0`,max:`10`,step:`0.1`,"onUpdate:modelValue":r[1]||=e=>f.value=e},null,512),[[t.vModelText,f.value,void 0,{number:!0}]]),r[6]||=(0,t.createElementVNode)(`span`,{class:`ps-unit`},`in`,-1)]),(0,t.createElementVNode)(`div`,Nt,[(0,t.createElementVNode)(`label`,Pt,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.left`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`ps-input`,type:`number`,min:`0`,max:`10`,step:`0.1`,"onUpdate:modelValue":r[2]||=e=>p.value=e},null,512),[[t.vModelText,p.value,void 0,{number:!0}]]),r[7]||=(0,t.createElementVNode)(`span`,{class:`ps-unit`},`in`,-1)]),(0,t.createElementVNode)(`div`,Ft,[(0,t.createElementVNode)(`label`,It,(0,t.toDisplayString)((0,t.unref)(i)(`dialogs.pageSetup.right`)),1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`ps-input`,type:`number`,min:`0`,max:`10`,step:`0.1`,"onUpdate:modelValue":r[3]||=e=>m.value=e},null,512),[[t.vModelText,m.value,void 0,{number:!0}]]),r[8]||=(0,t.createElementVNode)(`span`,{class:`ps-unit`},`in`,-1)])]),(0,t.createElementVNode)(`div`,Lt,[(0,t.createElementVNode)(`button`,{type:`button`,class:`ps-btn`,onClick:x},(0,t.toDisplayString)((0,t.unref)(i)(`common.cancel`)),1),(0,t.createElementVNode)(`button`,{type:`button`,class:`ps-btn ps-btn--primary`,onClick:S},(0,t.toDisplayString)((0,t.unref)(i)(`common.apply`)),1)])],40,mt)],32)):(0,t.createCommentVNode)(``,!0)}}),zt=e.t(Rt,[[`__scopeId`,`data-v-84701763`]]),Bt={class:`kbd-dialog__header`},$={class:`kbd-dialog__title`},Vt=[`aria-label`],Ht={key:0,class:`kbd-dialog__search`},Ut=[`placeholder`],Wt={class:`kbd-dialog__body`},Gt={class:`kbd-category`},Kt={class:`kbd-item__info`},qt={class:`kbd-item__name`},Jt={class:`kbd-item__desc`},Yt={class:`kbd-item__keys`},Xt={class:`kbd-badge`},Zt={class:`kbd-or`},Qt={class:`kbd-badge`},$t={key:0,class:`kbd-dialog__empty`},en={class:`kbd-dialog__footer`},tn={key:0,class:`kbd-badge kbd-badge--small`},nn=(0,t.defineComponent)({__name:`KeyboardShortcutsDialog`,props:{isOpen:{type:Boolean},showSearch:{type:Boolean,default:!0}},emits:[`close`],setup(e,{emit:n}){let{t:r}=b(),i=e,a=n,o=(0,t.ref)(null),s=(0,t.ref)(``),c=typeof navigator<`u`&&/Mac/.test(navigator.platform);function l(e){return c?e.replace(/Ctrl/g,`⌘`).replace(/Alt/g,`⌥`).replace(/Shift/g,`⇧`):e}function u(){s.value=``,a(`close`)}(0,t.watch)(()=>i.isOpen,e=>{e&&(0,t.nextTick)(()=>o.value?.focus())});let d=(0,t.computed)(()=>r(`dialogs.keyboardShortcuts.pressEscToClose`,{key:`Esc`}).split(`Esc`)),f=[{id:`undo`,nameKey:`dialogs.keyboardShortcuts.shortcuts.undo`,name:`Undo`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.undoDescription`,description:`Undo last action`,keys:`Ctrl+Z`,category:`Editing`},{id:`redo`,nameKey:`dialogs.keyboardShortcuts.shortcuts.redo`,name:`Redo`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.redoDescription`,description:`Redo last action`,keys:`Ctrl+Y`,altKeys:`Ctrl+Shift+Z`,category:`Editing`},{id:`find`,nameKey:`dialogs.keyboardShortcuts.shortcuts.find`,name:`Find`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.findDescription`,description:`Open find dialog`,keys:`Ctrl+F`,category:`Editing`},{id:`replace`,nameKey:`dialogs.keyboardShortcuts.shortcuts.findReplace`,name:`Find & Replace`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.findReplaceDescription`,description:`Open find and replace`,keys:`Ctrl+H`,category:`Editing`},{id:`delete`,nameKey:`dialogs.keyboardShortcuts.shortcuts.delete`,name:`Delete`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.deleteDescription`,description:`Delete selected content`,keys:`Del`,altKeys:`Backspace`,category:`Editing`},{id:`cut`,nameKey:`dialogs.keyboardShortcuts.shortcuts.cut`,name:`Cut`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.cutDescription`,description:`Cut selection`,keys:`Ctrl+X`,category:`Clipboard`},{id:`copy`,nameKey:`dialogs.keyboardShortcuts.shortcuts.copy`,name:`Copy`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.copyDescription`,description:`Copy selection`,keys:`Ctrl+C`,category:`Clipboard`},{id:`paste`,nameKey:`dialogs.keyboardShortcuts.shortcuts.paste`,name:`Paste`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.pasteDescription`,description:`Paste content`,keys:`Ctrl+V`,category:`Clipboard`},{id:`bold`,nameKey:`dialogs.keyboardShortcuts.shortcuts.bold`,name:`Bold`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.boldDescription`,description:`Toggle bold`,keys:`Ctrl+B`,category:`Formatting`},{id:`italic`,nameKey:`dialogs.keyboardShortcuts.shortcuts.italic`,name:`Italic`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.italicDescription`,description:`Toggle italic`,keys:`Ctrl+I`,category:`Formatting`},{id:`underline`,nameKey:`dialogs.keyboardShortcuts.shortcuts.underline`,name:`Underline`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.underlineDescription`,description:`Toggle underline`,keys:`Ctrl+U`,category:`Formatting`},{id:`strike`,nameKey:`dialogs.keyboardShortcuts.shortcuts.strikethrough`,name:`Strikethrough`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.strikethroughDescription`,description:`Toggle strikethrough`,keys:`Ctrl+Shift+X`,category:`Formatting`},{id:`subscript`,nameKey:`dialogs.keyboardShortcuts.shortcuts.subscript`,name:`Subscript`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.subscriptDescription`,description:`Toggle subscript`,keys:`Ctrl+=`,category:`Formatting`},{id:`superscript`,nameKey:`dialogs.keyboardShortcuts.shortcuts.superscript`,name:`Superscript`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.superscriptDescription`,description:`Toggle superscript`,keys:`Ctrl+Shift+=`,category:`Formatting`},{id:`alignLeft`,nameKey:`dialogs.keyboardShortcuts.shortcuts.alignLeft`,name:`Align Left`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.alignLeftDescription`,description:`Left alignment`,keys:`Ctrl+L`,category:`Formatting`},{id:`alignCenter`,nameKey:`dialogs.keyboardShortcuts.shortcuts.alignCenter`,name:`Align Center`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.alignCenterDescription`,description:`Center alignment`,keys:`Ctrl+E`,category:`Formatting`},{id:`alignRight`,nameKey:`dialogs.keyboardShortcuts.shortcuts.alignRight`,name:`Align Right`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.alignRightDescription`,description:`Right alignment`,keys:`Ctrl+R`,category:`Formatting`},{id:`justify`,nameKey:`dialogs.keyboardShortcuts.shortcuts.justify`,name:`Justify`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.justifyDescription`,description:`Justify alignment`,keys:`Ctrl+J`,category:`Formatting`},{id:`indent`,nameKey:`dialogs.keyboardShortcuts.shortcuts.increaseIndent`,name:`Increase Indent`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.increaseIndentDescription`,description:`Increase indent level`,keys:`Tab`,category:`Formatting`},{id:`outdent`,nameKey:`dialogs.keyboardShortcuts.shortcuts.decreaseIndent`,name:`Decrease Indent`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.decreaseIndentDescription`,description:`Decrease indent level`,keys:`Shift+Tab`,category:`Formatting`},{id:`link`,nameKey:`dialogs.keyboardShortcuts.shortcuts.insertLink`,name:`Insert Link`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.insertLinkDescription`,description:`Insert or edit hyperlink`,keys:`Ctrl+K`,category:`Formatting`},{id:`selectAll`,nameKey:`dialogs.keyboardShortcuts.shortcuts.selectAll`,name:`Select All`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.selectAllDescription`,description:`Select all content`,keys:`Ctrl+A`,category:`Selection`},{id:`selectWord`,nameKey:`dialogs.keyboardShortcuts.shortcuts.selectWord`,name:`Select Word`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.selectWordDescription`,description:`Select current word`,keys:`Double-click`,category:`Selection`},{id:`selectPara`,nameKey:`dialogs.keyboardShortcuts.shortcuts.selectParagraph`,name:`Select Paragraph`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.selectParagraphDescription`,description:`Select current paragraph`,keys:`Triple-click`,category:`Selection`},{id:`moveWord`,nameKey:`dialogs.keyboardShortcuts.shortcuts.moveByWord`,name:`Move by Word`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.moveByWordDescription`,description:`Jump to next/previous word`,keys:`Ctrl+Arrow`,category:`Navigation`},{id:`lineStart`,nameKey:`dialogs.keyboardShortcuts.shortcuts.moveToLineStart`,name:`Line Start`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.moveToLineStartDescription`,description:`Move to start of line`,keys:`Home`,category:`Navigation`},{id:`lineEnd`,nameKey:`dialogs.keyboardShortcuts.shortcuts.moveToLineEnd`,name:`Line End`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.moveToLineEndDescription`,description:`Move to end of line`,keys:`End`,category:`Navigation`},{id:`docStart`,nameKey:`dialogs.keyboardShortcuts.shortcuts.moveToDocumentStart`,name:`Document Start`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.moveToDocumentStartDescription`,description:`Move to start of document`,keys:`Ctrl+Home`,category:`Navigation`},{id:`docEnd`,nameKey:`dialogs.keyboardShortcuts.shortcuts.moveToDocumentEnd`,name:`Document End`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.moveToDocumentEndDescription`,description:`Move to end of document`,keys:`Ctrl+End`,category:`Navigation`},{id:`zoomIn`,nameKey:`dialogs.keyboardShortcuts.shortcuts.zoomIn`,name:`Zoom In`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.zoomInDescription`,description:`Increase zoom level`,keys:`Ctrl++`,altKeys:`Ctrl+=`,category:`View`},{id:`zoomOut`,nameKey:`dialogs.keyboardShortcuts.shortcuts.zoomOut`,name:`Zoom Out`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.zoomOutDescription`,description:`Decrease zoom level`,keys:`Ctrl+-`,category:`View`},{id:`zoomReset`,nameKey:`dialogs.keyboardShortcuts.shortcuts.resetZoom`,name:`Reset Zoom`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.resetZoomDescription`,description:`Reset to 100% zoom`,keys:`Ctrl+0`,category:`View`},{id:`shortcuts`,nameKey:`dialogs.keyboardShortcuts.shortcuts.keyboardShortcuts`,name:`Keyboard Shortcuts`,descriptionKey:`dialogs.keyboardShortcuts.shortcuts.keyboardShortcutsDescription`,description:`Show this dialog`,keys:`Ctrl+/`,altKeys:`F1`,category:`View`}],p={Editing:`dialogs.keyboardShortcuts.categories.editing`,Clipboard:`dialogs.keyboardShortcuts.categories.clipboard`,Formatting:`dialogs.keyboardShortcuts.categories.formatting`,Selection:`dialogs.keyboardShortcuts.categories.selection`,Navigation:`dialogs.keyboardShortcuts.categories.navigation`,View:`dialogs.keyboardShortcuts.categories.view`},m=[`Editing`,`Clipboard`,`Formatting`,`Selection`,`Navigation`,`View`],h=(0,t.computed)(()=>{let e=s.value.toLowerCase().trim(),t=[];for(let n of m){let i=f.filter(e=>e.category===n);e&&(i=i.filter(t=>{let n=t.nameKey?r(t.nameKey):t.name,i=t.descriptionKey?r(t.descriptionKey):t.description;return n.toLowerCase().includes(e)||i.toLowerCase().includes(e)||t.keys.toLowerCase().includes(e)||t.altKeys!=null&&t.altKeys.toLowerCase().includes(e)})),i.length>0&&t.push({name:n,labelKey:p[n],shortcuts:i})}return t});return(n,i)=>e.isOpen?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`kbd-overlay`,onMousedown:(0,t.withModifiers)(u,[`self`])},[(0,t.createElementVNode)(`div`,{class:`kbd-dialog`,onMousedown:i[1]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:i[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Bt,[(0,t.createElementVNode)(`span`,$,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.keyboardShortcuts.ariaLabel`)),1),(0,t.createElementVNode)(`button`,{class:`kbd-dialog__close`,"aria-label":(0,t.unref)(r)(`common.closeDialog`),onClick:u},` ✕ `,8,Vt)]),e.showSearch?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ht,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`searchInput`,ref:o,"onUpdate:modelValue":i[0]||=e=>s.value=e,class:`kbd-dialog__search-input`,placeholder:(0,t.unref)(r)(`dialogs.keyboardShortcuts.searchPlaceholder`),type:`text`},null,8,Ut),[[t.vModelText,s.value]])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Wt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(h.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.name},[(0,t.createElementVNode)(`div`,Gt,(0,t.toDisplayString)((0,t.unref)(r)(e.labelKey).toUpperCase()),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`kbd-item`},[(0,t.createElementVNode)(`div`,Kt,[(0,t.createElementVNode)(`span`,qt,(0,t.toDisplayString)(e.nameKey?(0,t.unref)(r)(e.nameKey):e.name),1),(0,t.createElementVNode)(`span`,Jt,(0,t.toDisplayString)(e.descriptionKey?(0,t.unref)(r)(e.descriptionKey):e.description),1)]),(0,t.createElementVNode)(`div`,Yt,[(0,t.createElementVNode)(`kbd`,Xt,(0,t.toDisplayString)(l(e.keys)),1),e.altKeys?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`span`,Zt,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.keyboardShortcuts.or`)),1),(0,t.createElementVNode)(`kbd`,Qt,(0,t.toDisplayString)(l(e.altKeys)),1)],64)):(0,t.createCommentVNode)(``,!0)])]))),128))],64))),128)),h.value.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$t,(0,t.toDisplayString)((0,t.unref)(r)(`dialogs.keyboardShortcuts.noResults`,{query:s.value})),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,en,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1),n<d.value.length-1?((0,t.openBlock)(),(0,t.createElementBlock)(`kbd`,tn,`Esc`)):(0,t.createCommentVNode)(``,!0)],64))),128))])],32)],32)):(0,t.createCommentVNode)(``,!0)}}),rn=e.t(nn,[[`__scopeId`,`data-v-06644bb3`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return rn}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./KeyboardShortcutsDialog-Cmezq6eJ.cjs`),t=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let n=require(`vue`);var r=e=>({style:`single`,size:4,color:{rgb:e}}),i=[{id:`TableNormal`,name:`Normal Table`,look:{firstRow:!1,lastRow:!1,noHBand:!0,noVBand:!0}},{id:`TableGrid`,name:`Table Grid`,tableBorders:{top:r(`000000`),bottom:r(`000000`),left:r(`000000`),right:r(`000000`),insideH:r(`000000`),insideV:r(`000000`)},look:{firstRow:!1,lastRow:!1,noHBand:!0,noVBand:!0}},{id:`TableGridLight`,name:`Grid Table Light`,tableBorders:{top:r(`BFBFBF`),bottom:r(`BFBFBF`),left:r(`BFBFBF`),right:r(`BFBFBF`),insideH:r(`BFBFBF`),insideV:r(`BFBFBF`)},look:{firstRow:!0,lastRow:!1,noHBand:!0,noVBand:!0},conditionals:{firstRow:{bold:!0,borders:{bottom:r(`000000`)}}}},{id:`PlainTable1`,name:`Plain Table 1`,tableBorders:{top:r(`BFBFBF`),bottom:r(`BFBFBF`),insideH:r(`BFBFBF`)},look:{firstRow:!0,lastRow:!1,noHBand:!0,noVBand:!0},conditionals:{firstRow:{bold:!0}}},{id:`PlainTable2`,name:`Plain Table 2`,look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,borders:{bottom:r(`7F7F7F`)}},band1Horz:{backgroundColor:`#F2F2F2`}}},{id:`PlainTable3`,name:`Plain Table 3`,look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#A5A5A5`},band1Horz:{backgroundColor:`#E7E7E7`}}},{id:`PlainTable4`,name:`Plain Table 4`,look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#000000`},band1Horz:{backgroundColor:`#F2F2F2`}}},{id:`GridTable1Light-Accent1`,name:`Grid Table 1 Light`,tableBorders:{top:r(`B4C6E7`),bottom:r(`B4C6E7`),left:r(`B4C6E7`),right:r(`B4C6E7`),insideH:r(`B4C6E7`),insideV:r(`B4C6E7`)},look:{firstRow:!0,lastRow:!1,noHBand:!0,noVBand:!0},conditionals:{firstRow:{bold:!0,borders:{bottom:r(`4472C4`)}}}},{id:`GridTable4-Accent1`,name:`Grid Table 4 Accent 1`,tableBorders:{top:r(`4472C4`),bottom:r(`4472C4`),left:r(`4472C4`),right:r(`4472C4`),insideH:r(`4472C4`),insideV:r(`4472C4`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#4472C4`},band1Horz:{backgroundColor:`#D6E4F0`}}},{id:`GridTable5Dark-Accent1`,name:`Grid Table 5 Dark`,tableBorders:{top:r(`FFFFFF`),bottom:r(`FFFFFF`),left:r(`FFFFFF`),right:r(`FFFFFF`),insideH:r(`FFFFFF`),insideV:r(`FFFFFF`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#4472C4`},band1Horz:{backgroundColor:`#D6E4F0`},band2Horz:{backgroundColor:`#B4C6E7`}}},{id:`ListTable3-Accent2`,name:`List Table 3 Accent 2`,tableBorders:{top:r(`ED7D31`),bottom:r(`ED7D31`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#ED7D31`},band1Horz:{backgroundColor:`#FBE4D5`}}},{id:`ListTable4-Accent3`,name:`List Table 4 Accent 3`,tableBorders:{top:r(`A5A5A5`),bottom:r(`A5A5A5`),insideH:r(`A5A5A5`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#A5A5A5`},band1Horz:{backgroundColor:`#EDEDED`}}},{id:`GridTable4-Accent5`,name:`Grid Table 4 Accent 5`,tableBorders:{top:r(`5B9BD5`),bottom:r(`5B9BD5`),left:r(`5B9BD5`),right:r(`5B9BD5`),insideH:r(`5B9BD5`),insideV:r(`5B9BD5`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#5B9BD5`},band1Horz:{backgroundColor:`#DEEAF6`}}},{id:`GridTable4-Accent6`,name:`Grid Table 4 Accent 6`,tableBorders:{top:r(`70AD47`),bottom:r(`70AD47`),left:r(`70AD47`),right:r(`70AD47`),insideH:r(`70AD47`),insideV:r(`70AD47`)},look:{firstRow:!0,lastRow:!1,noHBand:!1,noVBand:!0},conditionals:{firstRow:{bold:!0,color:`#FFFFFF`,backgroundColor:`#70AD47`},band1Horz:{backgroundColor:`#E2EFDA`}}}],a={TableNormal:`table.styles.normalTable`,TableGrid:`table.styles.tableGrid`,TableGridLight:`table.styles.gridTableLight`,PlainTable1:`table.styles.plainTable1`,PlainTable2:`table.styles.plainTable2`,PlainTable3:`table.styles.plainTable3`,PlainTable4:`table.styles.plainTable4`,"GridTable1Light-Accent1":`table.styles.gridTable1Light`,"GridTable4-Accent1":`table.styles.gridTable4Accent1`,"GridTable5Dark-Accent1":`table.styles.gridTable5Dark`,"ListTable3-Accent2":`table.styles.listTable3Accent2`,"ListTable4-Accent3":`table.styles.listTable4Accent3`,"GridTable4-Accent5":`table.styles.gridTable4Accent5`,"GridTable4-Accent6":`table.styles.gridTable4Accent6`},o=4,s=3;function c(e){return!e||e.style===`none`?`none`:`${e.size?Math.max(1,Math.round(e.size/8)):1}px solid ${e.color?.rgb?`#${e.color.rgb}`:`#000`}`}function l(e,t=o,n=s){let r=e.look??{},i=e.conditionals??{},a=e.tableBorders,l=[],u=0;for(let e=0;e<t;e++){let o=e===0&&!!r.firstRow,s=e===t-1&&!!r.lastRow,d=r.noHBand!==!0,f;o?f=`firstRow`:s?f=`lastRow`:(d&&(f=u%2==0?`band1Horz`:`band2Horz`),u++);for(let u=0;u<n;u++){let d=f,p=u===0&&!!r.firstCol,m=u===n-1&&!!r.lastCol;o&&p&&i.nwCell?d=`nwCell`:o&&m&&i.neCell?d=`neCell`:s&&p&&i.swCell?d=`swCell`:s&&m&&i.seCell?d=`seCell`:p?d=`firstCol`:m&&(d=`lastCol`);let h=d?i[d]:void 0,g=h?.borders,_={width:`20px`,height:`10px`,boxSizing:`border-box`,backgroundColor:h?.backgroundColor??`transparent`,borderTop:g?.top===void 0?c(e>0?a?.insideH??a?.top:a?.top):c(g.top),borderBottom:g?.bottom===void 0?e<t-1?c(a?.insideH??a?.bottom):c(a?.bottom):c(g.bottom),borderLeft:g?.left===void 0?c(u>0?a?.insideV??a?.left:a?.left):c(g.left),borderRight:g?.right===void 0?u<n-1?c(a?.insideV??a?.right):c(a?.right):c(g.right)};l.push(_)}}return l}var u={class:`tsg`},d={class:`tsg__grid`},f=[`title`,`onMousedown`],p={class:`tsg__preview`},m={class:`tsg__name`},h=(0,n.defineComponent)({__name:`TableStyleGallery`,props:{currentStyleId:{}},emits:[`apply`],setup(t){let{t:r}=e.u(),o=i;function s(e){let t=a[e.id];return t?r(t):e.name}return(e,r)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,u,[(0,n.createElementVNode)(`div`,d,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(o),r=>((0,n.openBlock)(),(0,n.createElementBlock)(`button`,{key:r.id,class:(0,n.normalizeClass)([`tsg__item`,{"tsg__item--selected":t.currentStyleId===r.id}]),title:s(r),onMousedown:(0,n.withModifiers)(t=>e.$emit(`apply`,r.id),[`prevent`])},[(0,n.createElementVNode)(`div`,p,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l)(r),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:t,class:`tsg__cell`,style:(0,n.normalizeStyle)(e)},null,4))),128))]),(0,n.createElementVNode)(`span`,m,(0,n.toDisplayString)(s(r)),1)],42,f))),128))])]))}}),g=t.t(h,[[`__scopeId`,`data-v-fad5fdfb`]]),_={class:`fnpd-dialog__header`},v={class:`fnpd-dialog__body`},y={class:`fnpd-fieldset`},b={class:`fnpd-legend`},x={class:`fnpd-row`},S={class:`fnpd-label`},C={value:`pageBottom`},ee={value:`beneathText`},te={class:`fnpd-row`},ne={class:`fnpd-label`},re=[`value`],ie={class:`fnpd-row`},ae={class:`fnpd-label`},oe={class:`fnpd-row`},w={class:`fnpd-label`},T={value:`continuous`},E={value:`eachSect`},D={value:`eachPage`},O={class:`fnpd-fieldset`},k={class:`fnpd-legend`},A={class:`fnpd-row`},j={class:`fnpd-label`},M={value:`docEnd`},N={value:`sectEnd`},P={class:`fnpd-row`},F={class:`fnpd-label`},I=[`value`],L={class:`fnpd-row`},R={class:`fnpd-label`},z={class:`fnpd-row`},B={class:`fnpd-label`},V={value:`continuous`},H={value:`eachSect`},U={class:`fnpd-dialog__footer`},W=(0,n.defineComponent)({__name:`FootnotePropertiesDialog`,props:{isOpen:{type:Boolean},footnotePr:{},endnotePr:{}},emits:[`close`,`apply`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.computed)(()=>[{value:`decimal`,label:i(`dialogs.footnoteProperties.formats.decimal`)},{value:`lowerLetter`,label:i(`dialogs.footnoteProperties.formats.lowerAlpha`)},{value:`upperLetter`,label:i(`dialogs.footnoteProperties.formats.upperAlpha`)},{value:`lowerRoman`,label:i(`dialogs.footnoteProperties.formats.lowerRoman`)},{value:`upperRoman`,label:i(`dialogs.footnoteProperties.formats.upperRoman`)},{value:`chicago`,label:i(`dialogs.footnoteProperties.formats.symbols`)}]),c=(0,n.ref)(`pageBottom`),l=(0,n.ref)(`decimal`),u=(0,n.ref)(1),d=(0,n.ref)(`continuous`),f=(0,n.ref)(`docEnd`),p=(0,n.ref)(`lowerRoman`),m=(0,n.ref)(1),h=(0,n.ref)(`continuous`);(0,n.watch)(()=>a.isOpen,e=>{e&&(c.value=a.footnotePr?.position??`pageBottom`,l.value=a.footnotePr?.numFmt??`decimal`,u.value=a.footnotePr?.numStart??1,d.value=a.footnotePr?.numRestart??`continuous`,f.value=a.endnotePr?.position??`docEnd`,p.value=a.endnotePr?.numFmt??`lowerRoman`,m.value=a.endnotePr?.numStart??1,h.value=a.endnotePr?.numRestart??`continuous`)});function g(){o(`apply`,{position:c.value,numFmt:l.value,numStart:u.value,numRestart:d.value},{position:f.value,numFmt:p.value,numStart:m.value,numRestart:h.value}),o(`close`)}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`fnpd-overlay`,onMousedown:r[10]||=(0,n.withModifiers)(t=>e.$emit(`close`),[`self`])},[(0,n.createElementVNode)(`div`,{class:`fnpd-dialog`,onKeydown:r[9]||=(0,n.withKeys)(t=>e.$emit(`close`),[`escape`])},[(0,n.createElementVNode)(`div`,_,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.title`)),1),(0,n.createElementVNode)(`div`,v,[(0,n.createElementVNode)(`fieldset`,y,[(0,n.createElementVNode)(`legend`,b,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.footnotes`)),1),(0,n.createElementVNode)(`div`,x,[(0,n.createElementVNode)(`label`,S,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.position`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[0]||=e=>c.value=e,class:`fnpd-select`},[(0,n.createElementVNode)(`option`,C,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.footnotePositions.bottomOfPage`)),1),(0,n.createElementVNode)(`option`,ee,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.footnotePositions.belowText`)),1)],512),[[n.vModelSelect,c.value]])]),(0,n.createElementVNode)(`div`,te,[(0,n.createElementVNode)(`label`,ne,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberFormat`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[1]||=e=>l.value=e,class:`fnpd-select`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,e=>((0,n.openBlock)(),(0,n.createElementBlock)(`option`,{key:e.value,value:e.value},(0,n.toDisplayString)(e.label),9,re))),128))],512),[[n.vModelSelect,l.value]])]),(0,n.createElementVNode)(`div`,ie,[(0,n.createElementVNode)(`label`,ae,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.startAt`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[2]||=e=>u.value=e,type:`number`,class:`fnpd-input`,min:`1`},null,512),[[n.vModelText,u.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`div`,oe,[(0,n.createElementVNode)(`label`,w,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numbering`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[3]||=e=>d.value=e,class:`fnpd-select`},[(0,n.createElementVNode)(`option`,T,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberingOptions.continuous`)),1),(0,n.createElementVNode)(`option`,E,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberingOptions.restartSection`)),1),(0,n.createElementVNode)(`option`,D,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberingOptions.restartPage`)),1)],512),[[n.vModelSelect,d.value]])])]),(0,n.createElementVNode)(`fieldset`,O,[(0,n.createElementVNode)(`legend`,k,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.endnotes`)),1),(0,n.createElementVNode)(`div`,A,[(0,n.createElementVNode)(`label`,j,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.position`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[4]||=e=>f.value=e,class:`fnpd-select`},[(0,n.createElementVNode)(`option`,M,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.endnotePositions.endOfDocument`)),1),(0,n.createElementVNode)(`option`,N,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.endnotePositions.endOfSection`)),1)],512),[[n.vModelSelect,f.value]])]),(0,n.createElementVNode)(`div`,P,[(0,n.createElementVNode)(`label`,F,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberFormat`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[5]||=e=>p.value=e,class:`fnpd-select`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,e=>((0,n.openBlock)(),(0,n.createElementBlock)(`option`,{key:e.value,value:e.value},(0,n.toDisplayString)(e.label),9,I))),128))],512),[[n.vModelSelect,p.value]])]),(0,n.createElementVNode)(`div`,L,[(0,n.createElementVNode)(`label`,R,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.startAt`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[6]||=e=>m.value=e,type:`number`,class:`fnpd-input`,min:`1`},null,512),[[n.vModelText,m.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`div`,z,[(0,n.createElementVNode)(`label`,B,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numbering`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[7]||=e=>h.value=e,class:`fnpd-select`},[(0,n.createElementVNode)(`option`,V,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberingOptions.continuous`)),1),(0,n.createElementVNode)(`option`,H,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.footnoteProperties.numberingOptions.restartSection`)),1)],512),[[n.vModelSelect,h.value]])])])]),(0,n.createElementVNode)(`div`,U,[(0,n.createElementVNode)(`button`,{class:`fnpd-btn`,onClick:r[8]||=t=>e.$emit(`close`)},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),1),(0,n.createElementVNode)(`button`,{class:`fnpd-btn fnpd-btn--primary`,onClick:g},(0,n.toDisplayString)((0,n.unref)(i)(`common.apply`)),1)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),G=t.t(W,[[`__scopeId`,`data-v-77c85a25`]]),K={class:`ipd-dialog__header`},q={class:`ipd-dialog__body`},se={class:`ipd-fieldset`},ce={class:`ipd-legend`},le={class:`ipd-row`},ue={value:`align`},de={value:`offset`},fe={key:0,class:`ipd-row`},pe={class:`ipd-label`},me={value:`left`},he={value:`center`},ge={value:`right`},_e={key:1,class:`ipd-row`},ve={class:`ipd-label`},ye={class:`ipd-row`},be={class:`ipd-label`},xe={value:`page`},Se={value:`column`},Ce={value:`margin`},we={value:`character`},Te={class:`ipd-fieldset`},Ee={class:`ipd-legend`},De={class:`ipd-row`},Oe={value:`align`},ke={value:`offset`},Ae={key:0,class:`ipd-row`},je={class:`ipd-label`},Me={value:`top`},Ne={value:`center`},Pe={value:`bottom`},Fe={key:1,class:`ipd-row`},Ie={class:`ipd-label`},Le={class:`ipd-row`},Re={class:`ipd-label`},ze={value:`page`},Be={value:`margin`},Ve={value:`paragraph`},He={value:`line`},Ue={class:`ipd-fieldset`},We={class:`ipd-row`},Ge={class:`ipd-label`},Ke={class:`ipd-label`,style:{width:`60px`}},qe={class:`ipd-row`},Je={class:`ipd-label`},Ye={class:`ipd-label`,style:{width:`60px`}},Xe={class:`ipd-dialog__footer`},Ze=(0,n.defineComponent)({__name:`ImagePositionDialog`,props:{isOpen:{type:Boolean},currentData:{}},emits:[`close`,`apply`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.ref)(`align`),c=(0,n.ref)(`left`),l=(0,n.ref)(0),u=(0,n.ref)(`column`),d=(0,n.ref)(`align`),f=(0,n.ref)(`top`),p=(0,n.ref)(0),m=(0,n.ref)(`paragraph`),h=(0,n.ref)(0),g=(0,n.ref)(0),_=(0,n.ref)(0),v=(0,n.ref)(0);(0,n.watch)(()=>a.isOpen,e=>{if(!e)return;let t=a.currentData;t?.horizontal?.align?(s.value=`align`,c.value=t.horizontal.align):t?.horizontal?.posOffset!=null&&(s.value=`offset`,l.value=t.horizontal.posOffset),u.value=t?.horizontal?.relativeTo??`column`,t?.vertical?.align?(d.value=`align`,f.value=t.vertical.align):t?.vertical?.posOffset!=null&&(d.value=`offset`,p.value=t.vertical.posOffset),m.value=t?.vertical?.relativeTo??`paragraph`,h.value=t?.distTop??0,g.value=t?.distBottom??0,_.value=t?.distLeft??0,v.value=t?.distRight??0});function y(){o(`apply`,{horizontal:{relativeTo:u.value,...s.value===`align`?{align:c.value}:{posOffset:l.value}},vertical:{relativeTo:m.value,...d.value===`align`?{align:f.value}:{posOffset:p.value}},distTop:h.value,distBottom:g.value,distLeft:_.value,distRight:v.value}),o(`close`)}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`ipd-overlay`,onMousedown:r[14]||=(0,n.withModifiers)(t=>e.$emit(`close`),[`self`])},[(0,n.createElementVNode)(`div`,{class:`ipd-dialog`,onKeydown:r[13]||=(0,n.withKeys)(t=>e.$emit(`close`),[`escape`])},[(0,n.createElementVNode)(`div`,K,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.title`)),1),(0,n.createElementVNode)(`div`,q,[(0,n.createElementVNode)(`fieldset`,se,[(0,n.createElementVNode)(`legend`,ce,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.horizontal`)),1),(0,n.createElementVNode)(`div`,le,[r[15]||=(0,n.createElementVNode)(`label`,{class:`ipd-label`},`Mode`,-1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[0]||=e=>s.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,ue,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignment`)),1),(0,n.createElementVNode)(`option`,de,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.offset`)),1)],512),[[n.vModelSelect,s.value]])]),s.value===`align`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,fe,[(0,n.createElementVNode)(`label`,pe,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.align`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[1]||=e=>c.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,me,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.left`)),1),(0,n.createElementVNode)(`option`,he,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.center`)),1),(0,n.createElementVNode)(`option`,ge,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.right`)),1)],512),[[n.vModelSelect,c.value]])])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,_e,[(0,n.createElementVNode)(`label`,ve,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.offsetPx`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[2]||=e=>l.value=e,type:`number`,class:`ipd-input`},null,512),[[n.vModelText,l.value,void 0,{number:!0}]])])),(0,n.createElementVNode)(`div`,ye,[(0,n.createElementVNode)(`label`,be,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeTo`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[3]||=e=>u.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,xe,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.page`)),1),(0,n.createElementVNode)(`option`,Se,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.column`)),1),(0,n.createElementVNode)(`option`,Ce,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.margin`)),1),(0,n.createElementVNode)(`option`,we,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.character`)),1)],512),[[n.vModelSelect,u.value]])])]),(0,n.createElementVNode)(`fieldset`,Te,[(0,n.createElementVNode)(`legend`,Ee,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.vertical`)),1),(0,n.createElementVNode)(`div`,De,[r[16]||=(0,n.createElementVNode)(`label`,{class:`ipd-label`},`Mode`,-1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[4]||=e=>d.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,Oe,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignment`)),1),(0,n.createElementVNode)(`option`,ke,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.offset`)),1)],512),[[n.vModelSelect,d.value]])]),d.value===`align`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Ae,[(0,n.createElementVNode)(`label`,je,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.align`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[5]||=e=>f.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,Me,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.top`)),1),(0,n.createElementVNode)(`option`,Ne,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.center`)),1),(0,n.createElementVNode)(`option`,Pe,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.bottom`)),1)],512),[[n.vModelSelect,f.value]])])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Fe,[(0,n.createElementVNode)(`label`,Ie,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.offsetPx`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[6]||=e=>p.value=e,type:`number`,class:`ipd-input`},null,512),[[n.vModelText,p.value,void 0,{number:!0}]])])),(0,n.createElementVNode)(`div`,Le,[(0,n.createElementVNode)(`label`,Re,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeTo`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[7]||=e=>m.value=e,class:`ipd-select`},[(0,n.createElementVNode)(`option`,ze,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.page`)),1),(0,n.createElementVNode)(`option`,Be,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.margin`)),1),(0,n.createElementVNode)(`option`,Ve,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.paragraph`)),1),(0,n.createElementVNode)(`option`,He,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.relativeOptions.line`)),1)],512),[[n.vModelSelect,m.value]])])]),(0,n.createElementVNode)(`fieldset`,Ue,[r[17]||=(0,n.createElementVNode)(`legend`,{class:`ipd-legend`},`Distance from text (px)`,-1),(0,n.createElementVNode)(`div`,We,[(0,n.createElementVNode)(`label`,Ge,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.top`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[8]||=e=>h.value=e,type:`number`,class:`ipd-input`,min:`0`},null,512),[[n.vModelText,h.value,void 0,{number:!0}]]),(0,n.createElementVNode)(`label`,Ke,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.bottom`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[9]||=e=>g.value=e,type:`number`,class:`ipd-input`,min:`0`},null,512),[[n.vModelText,g.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`div`,qe,[(0,n.createElementVNode)(`label`,Je,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.left`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[10]||=e=>_.value=e,type:`number`,class:`ipd-input`,min:`0`},null,512),[[n.vModelText,_.value,void 0,{number:!0}]]),(0,n.createElementVNode)(`label`,Ye,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.imagePosition.alignOptions.right`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[11]||=e=>v.value=e,type:`number`,class:`ipd-input`,min:`0`},null,512),[[n.vModelText,v.value,void 0,{number:!0}]])])])]),(0,n.createElementVNode)(`div`,Xe,[(0,n.createElementVNode)(`button`,{class:`ipd-btn`,onClick:r[12]||=t=>e.$emit(`close`)},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),1),(0,n.createElementVNode)(`button`,{class:`ipd-btn ipd-btn--primary`,onClick:y},(0,n.toDisplayString)((0,n.unref)(i)(`common.apply`)),1)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),Qe=t.t(Ze,[[`__scopeId`,`data-v-ccee8027`]]),$e={class:`dialog__header`},et={class:`dialog__title`},tt=[`aria-label`],nt={class:`dialog__body`},rt={class:`drop-zone__icon`},it={class:`drop-zone__text`},at={class:`drop-zone__hint`},ot=[`src`,`alt`],st=[`aria-label`],ct={key:0,class:`drop-zone__error`},lt={key:1,class:`image-controls`},ut={class:`lock-label`},dt={key:2,class:`image-controls`},ft={style:{flex:`1`}},pt=[`placeholder`],mt={key:3,class:`dialog__actions`},ht=(0,n.defineComponent)({__name:`InsertImageDialog`,props:{isOpen:{type:Boolean}},emits:[`close`,`insert`],setup(t,{emit:r}){let{t:i}=e.u(),a=r,o=(0,n.ref)(null),s=(0,n.ref)(``),c=(0,n.ref)(400),l=(0,n.ref)(300),u=(0,n.ref)(!0),d=(0,n.ref)(``),f=(0,n.ref)(``),p=(0,n.ref)(!1),m=1;function h(){a(`close`)}function g(){s.value=``,f.value=``,d.value=``,c.value=400,l.value=300}function _(e){p.value=!1;let t=e.dataTransfer?.files?.[0];t&&y(t)}function v(e){let t=e.target.files?.[0];t&&y(t)}function y(e){if(f.value=``,!e.type.startsWith(`image/`)){f.value=i(`dialogs.insertImage.invalidFile`);return}if(e.size>10*1024*1024){f.value=i(`dialogs.insertImage.fileTooLarge`);return}d.value=e.name.replace(/\.[^.]+$/,``);let t=new FileReader;t.onload=()=>{let e=t.result,n=new Image;n.onload=()=>{let t=n.naturalWidth,r=n.naturalHeight;t>800&&(r=Math.round(800/t*r),t=800),r>600&&(t=Math.round(600/r*t),r=600),c.value=t,l.value=r,m=t/r,s.value=e},n.onerror=()=>{f.value=i(`dialogs.insertImage.loadFailed`)},n.src=e},t.onerror=()=>{f.value=i(`dialogs.insertImage.readFailed`)},t.readAsDataURL(e)}function b(){u.value&&m&&(l.value=Math.round(c.value/m))}function x(){u.value&&m&&(c.value=Math.round(l.value*m))}function S(){s.value&&(a(`insert`,{src:s.value,width:c.value,height:l.value,alt:d.value}),g(),h())}return(r,a)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`dialog-overlay`,onMousedown:(0,n.withModifiers)(h,[`self`])},[(0,n.createElementVNode)(`div`,{class:`dialog`,onMousedown:a[7]||=(0,n.withModifiers)(()=>{},[`stop`]),onKeydown:a[8]||=(0,n.withModifiers)(()=>{},[`stop`])},[(0,n.createElementVNode)(`div`,$e,[(0,n.createElementVNode)(`span`,et,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.title`)),1),(0,n.createElementVNode)(`button`,{class:`dialog__close`,"aria-label":(0,n.unref)(i)(`common.closeDialog`),onClick:h},` ✕ `,8,tt)]),(0,n.createElementVNode)(`div`,nt,[(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`drop-zone`,{"drop-zone--active":p.value}]),onDragover:a[0]||=(0,n.withModifiers)(e=>p.value=!0,[`prevent`]),onDragleave:a[1]||=e=>p.value=!1,onDrop:(0,n.withModifiers)(_,[`prevent`]),onClick:a[2]||=e=>o.value?.click()},[s.value?((0,n.openBlock)(),(0,n.createElementBlock)(`img`,{key:1,src:s.value,class:`drop-zone__preview`,alt:(0,n.unref)(i)(`dialogs.insertImage.preview`)},null,8,ot)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)(`div`,rt,[(0,n.createVNode)(e.f,{name:`image`,size:48})]),(0,n.createElementVNode)(`div`,it,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.uploadText`)),1),(0,n.createElementVNode)(`div`,at,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.uploadSubtext`)),1)],64))],34),(0,n.createElementVNode)(`input`,{ref_key:`fileInput`,ref:o,type:`file`,accept:`image/*`,style:{display:`none`},"aria-label":(0,n.unref)(i)(`dialogs.insertImage.uploadAriaLabel`),onChange:v},null,40,st),f.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,ct,(0,n.toDisplayString)(f.value),1)):(0,n.createCommentVNode)(``,!0),s.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,lt,[(0,n.createElementVNode)(`label`,null,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.widthLabel`))+` `,1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":a[3]||=e=>c.value=e,type:`number`,min:`1`,max:`2000`,class:`dim-input`,onInput:b},null,544),[[n.vModelText,c.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`label`,null,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.heightLabel`))+` `,1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":a[4]||=e=>l.value=e,type:`number`,min:`1`,max:`2000`,class:`dim-input`,onInput:x},null,544),[[n.vModelText,l.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`label`,ut,[(0,n.withDirectives)((0,n.createElementVNode)(`input`,{type:`checkbox`,"onUpdate:modelValue":a[5]||=e=>u.value=e},null,512),[[n.vModelCheckbox,u.value]]),(0,n.createTextVNode)(` `+(0,n.toDisplayString)(u.value?(0,n.unref)(i)(`dialogs.insertImage.aspectRatioLocked`):(0,n.unref)(i)(`dialogs.insertImage.aspectRatioUnlocked`)),1)])])):(0,n.createCommentVNode)(``,!0),s.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,dt,[(0,n.createElementVNode)(`label`,ft,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.altTextLabel`))+` `,1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":a[6]||=e=>d.value=e,class:`alt-input`,placeholder:(0,n.unref)(i)(`dialogs.insertImage.altTextPlaceholder`)},null,8,pt),[[n.vModelText,d.value]])])])):(0,n.createCommentVNode)(``,!0),s.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,mt,[(0,n.createElementVNode)(`button`,{class:`dialog__btn`,onClick:g},(0,n.toDisplayString)((0,n.unref)(i)(`common.clear`)),1),(0,n.createElementVNode)(`button`,{class:`dialog__btn dialog__btn--primary`,onMousedown:(0,n.withModifiers)(S,[`prevent`])},(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertImage.insertButton`)),33)])):(0,n.createCommentVNode)(``,!0)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),gt=t.t(ht,[[`__scopeId`,`data-v-4ab86ad1`]]),J=(0,n.reactive)({rows:3,cols:3}),_t={class:`dialog__header`},vt={class:`dialog__title`},yt=[`title`],bt={class:`dialog__body`},xt=[`aria-label`],St=[`onMouseenter`,`onMousedown`],Ct={class:`table-grid__label`},wt={class:`dialog__separator`},Tt={class:`table-manual`},Et={class:`table-manual__field`},Dt={class:`table-manual__field`},Ot={class:`table-options`},kt={class:`table-options__radio`},At={class:`table-options__radio`},jt={class:`table-options`},Mt={class:`table-options__label`},Nt={class:`dialog__footer`},Pt=[`disabled`],Ft=8,It=10,Y=1,X=100,Z=1,Q=20,Lt=(0,n.defineComponent)({__name:`InsertTableDialog`,props:{isOpen:{type:Boolean}},emits:[`close`,`insert`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.ref)(0),c=(0,n.ref)(0),l=(0,n.ref)(J.rows),u=(0,n.ref)(J.cols),d=(0,n.ref)(`fixed`),f=(0,n.ref)(null);(0,n.watch)(()=>a.isOpen,e=>{e&&(l.value=J.rows,u.value=J.cols,s.value=0,c.value=0)});let p=(0,n.computed)(()=>Number.parseInt(String(l.value),10)),m=(0,n.computed)(()=>Number.parseInt(String(u.value),10)),h=(0,n.computed)(()=>Number.isFinite(p.value)&&p.value>=Y&&p.value<=X),_=(0,n.computed)(()=>Number.isFinite(m.value)&&m.value>=Z&&m.value<=Q),v=(0,n.computed)(()=>h.value&&_.value);function y(){o(`close`)}function b(e,t){s.value=e,c.value=t,l.value=e,u.value=t}function x(e){f.value=f.value===e?null:e}function S(e){e.key===`Escape`?y():e.key===`Enter`&&(e.preventDefault(),C())}function C(){if(!v.value)return;let e=Math.min(Math.max(Y,p.value),X),t=Math.min(Math.max(Z,m.value),Q);J.rows=e,J.cols=t,o(`insert`,{rows:e,cols:t,autofit:d.value===`autofit`,styleId:f.value}),y()}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`dialog-overlay`,onMousedown:(0,n.withModifiers)(y,[`self`])},[(0,n.createElementVNode)(`div`,{class:`dialog`,onMousedown:r[6]||=(0,n.withModifiers)(()=>{},[`stop`]),onKeydown:(0,n.withModifiers)(S,[`stop`])},[(0,n.createElementVNode)(`div`,_t,[(0,n.createElementVNode)(`span`,vt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.title`)),1),(0,n.createElementVNode)(`button`,{class:`dialog__close`,title:(0,n.unref)(i)(`common.closeDialog`),onClick:y},`✕`,8,yt)]),(0,n.createElementVNode)(`div`,bt,[(0,n.createElementVNode)(`div`,{class:`table-grid`,"aria-label":(0,n.unref)(i)(`dialogs.insertTable.sizeSelector`),onMouseleave:r[0]||=e=>{s.value=0,c.value=0}},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(Ft,e=>(0,n.createElementVNode)(`div`,{key:e,class:`table-grid__row`},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(It,t=>(0,n.createElementVNode)(`div`,{key:t,class:(0,n.normalizeClass)([`table-grid__cell`,{highlight:e<=s.value&&t<=c.value}]),onMouseenter:n=>{s.value=e,c.value=t},onMousedown:(0,n.withModifiers)(n=>b(e,t),[`prevent`])},null,42,St)),64))])),64))],40,xt),(0,n.createElementVNode)(`div`,Ct,(0,n.toDisplayString)(s.value>0?(0,n.unref)(i)(`dialogs.insertTable.tableSize`,{cols:c.value,rows:s.value}):(0,n.unref)(i)(`dialogs.insertTable.hoverToSelect`)),1),(0,n.createElementVNode)(`div`,wt,[(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.orSpecifySize`)),1)]),(0,n.createElementVNode)(`div`,Tt,[(0,n.createElementVNode)(`label`,Et,[(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.rowsLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[1]||=e=>l.value=e,type:`number`,min:Y,max:X,class:(0,n.normalizeClass)([`table-manual__input`,{"table-manual__input--invalid":!h.value}])},null,2),[[n.vModelText,l.value]])]),(0,n.createElementVNode)(`label`,Dt,[(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.columnsLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[2]||=e=>u.value=e,type:`number`,min:Z,max:Q,class:(0,n.normalizeClass)([`table-manual__input`,{"table-manual__input--invalid":!_.value}])},null,2),[[n.vModelText,u.value]])])]),(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`table-manual__hint`,{"table-manual__hint--error":!v.value}])},(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.validationHint`,{minRows:Y,maxRows:X,minCols:Z,maxCols:Q})),3),(0,n.createElementVNode)(`fieldset`,Ot,[(0,n.createElementVNode)(`legend`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.columnWidthLabel`)),1),(0,n.createElementVNode)(`label`,kt,[(0,n.withDirectives)((0,n.createElementVNode)(`input`,{type:`radio`,value:`fixed`,"onUpdate:modelValue":r[3]||=e=>d.value=e},null,512),[[n.vModelRadio,d.value]]),(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.fixedWidth`)),1)]),(0,n.createElementVNode)(`label`,At,[(0,n.withDirectives)((0,n.createElementVNode)(`input`,{type:`radio`,value:`autofit`,"onUpdate:modelValue":r[4]||=e=>d.value=e},null,512),[[n.vModelRadio,d.value]]),(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.autofit`)),1)])]),(0,n.createElementVNode)(`div`,jt,[(0,n.createElementVNode)(`div`,Mt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.tableStyleLabel`)),1),(0,n.createVNode)(g,{"current-style-id":f.value,onApply:x},null,8,[`current-style-id`])])]),(0,n.createElementVNode)(`div`,Nt,[(0,n.createElementVNode)(`button`,{class:`dialog__btn`,onMousedown:(0,n.withModifiers)(y,[`prevent`])},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),33),(0,n.createElementVNode)(`button`,{class:`dialog__btn dialog__btn--primary`,disabled:!v.value,onMousedown:r[5]||=(0,n.withModifiers)(e=>C(),[`prevent`])},(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.insertTable.insertButton`)),41,Pt)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),Rt=t.t(Lt,[[`__scopeId`,`data-v-82c01bcb`]]),zt={class:`psd-dialog__header`},Bt={class:`psd-dialog__body`},Vt={key:0,class:`psd-preview`},Ht={class:`psd-preview__label`},Ut={class:`psd-preview__text`},Wt={class:`psd-options`},Gt={class:`psd-option__info`},Kt={class:`psd-option__name`},qt={class:`psd-option__desc`},Jt={class:`psd-option__info`},Yt={class:`psd-option__name`},Xt={class:`psd-option__desc`},Zt={class:`psd-dialog__footer`},Qt=(0,n.defineComponent)({__name:`PasteSpecialDialog`,props:{isOpen:{type:Boolean}},emits:[`close`,`paste`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.ref)(`formatted`),c=(0,n.ref)(``);(0,n.watch)(()=>a.isOpen,async e=>{if(e){s.value=`formatted`;try{let e=await navigator.clipboard.readText();c.value=e.length>80?e.slice(0,80)+`...`:e}catch{c.value=``}}});function l(){o(`paste`,s.value),o(`close`)}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`psd-overlay`,onMousedown:r[4]||=(0,n.withModifiers)(t=>e.$emit(`close`),[`self`])},[(0,n.createElementVNode)(`div`,{class:`psd-dialog`,onKeydown:[r[3]||=(0,n.withKeys)(t=>e.$emit(`close`),[`escape`]),(0,n.withKeys)(l,[`enter`])]},[(0,n.createElementVNode)(`div`,zt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.title`)),1),(0,n.createElementVNode)(`div`,Bt,[c.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Vt,[(0,n.createElementVNode)(`span`,Ht,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.preview`)),1),(0,n.createElementVNode)(`span`,Ut,(0,n.toDisplayString)(c.value),1)])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`div`,Wt,[(0,n.createElementVNode)(`label`,{class:(0,n.normalizeClass)([`psd-option`,{"psd-option--selected":s.value===`formatted`}])},[(0,n.withDirectives)((0,n.createElementVNode)(`input`,{type:`radio`,"onUpdate:modelValue":r[0]||=e=>s.value=e,value:`formatted`},null,512),[[n.vModelRadio,s.value]]),(0,n.createElementVNode)(`div`,Gt,[(0,n.createElementVNode)(`span`,Kt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.keepFormatting`)),1),(0,n.createElementVNode)(`span`,qt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.keepFormattingDescription`)),1)])],2),(0,n.createElementVNode)(`label`,{class:(0,n.normalizeClass)([`psd-option`,{"psd-option--selected":s.value===`plain`}])},[(0,n.withDirectives)((0,n.createElementVNode)(`input`,{type:`radio`,"onUpdate:modelValue":r[1]||=e=>s.value=e,value:`plain`},null,512),[[n.vModelRadio,s.value]]),(0,n.createElementVNode)(`div`,Jt,[(0,n.createElementVNode)(`span`,Yt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.plainText`)),1),(0,n.createElementVNode)(`span`,Xt,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.pasteSpecial.plainTextDescription`)),1)])],2)])]),(0,n.createElementVNode)(`div`,Zt,[(0,n.createElementVNode)(`button`,{class:`psd-btn`,onClick:r[2]||=t=>e.$emit(`close`)},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),1),(0,n.createElementVNode)(`button`,{class:`psd-btn psd-btn--primary`,onClick:l},(0,n.toDisplayString)((0,n.unref)(i)(`contextMenu.paste`)),1)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),$t=t.t(Qt,[[`__scopeId`,`data-v-8276806d`]]),en={class:`docx-split-cell__dialog`},tn={class:`docx-split-cell__header`},nn={class:`docx-split-cell__body`},rn={class:`docx-split-cell__row`},an={class:`docx-split-cell__label`},on=[`min`,`onKeydown`],sn={class:`docx-split-cell__row`},cn={class:`docx-split-cell__label`},ln=[`min`,`onKeydown`],un={class:`docx-split-cell__footer`},dn=[`disabled`],fn=(0,n.defineComponent)({__name:`SplitCellDialog`,props:{isOpen:{type:Boolean},initialRows:{default:1},initialCols:{default:2},minRows:{default:1},minCols:{default:1}},emits:[`close`,`apply`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.ref)(a.initialRows),c=(0,n.ref)(a.initialCols);(0,n.watch)(()=>a.isOpen,e=>{e&&(s.value=a.initialRows,c.value=a.initialCols)});let l=(0,n.computed)(()=>Number.isFinite(s.value)&&Number.isFinite(c.value)&&s.value>=a.minRows&&c.value>=a.minCols&&s.value*c.value>1);function u(){l.value&&o(`apply`,s.value,c.value)}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`docx-split-cell`,onClick:r[3]||=(0,n.withModifiers)(t=>e.$emit(`close`),[`self`])},[(0,n.createElementVNode)(`div`,en,[(0,n.createElementVNode)(`div`,tn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.splitCell.title`)),1),(0,n.createElementVNode)(`div`,nn,[(0,n.createElementVNode)(`label`,rn,[(0,n.createElementVNode)(`span`,an,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.splitCell.rowsLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[0]||=e=>s.value=e,type:`number`,class:`docx-split-cell__input`,min:t.minRows,max:20,onKeydown:(0,n.withKeys)((0,n.withModifiers)(u,[`prevent`]),[`enter`])},null,40,on),[[n.vModelText,s.value,void 0,{number:!0}]])]),(0,n.createElementVNode)(`label`,sn,[(0,n.createElementVNode)(`span`,cn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.splitCell.columnsLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[1]||=e=>c.value=e,type:`number`,class:`docx-split-cell__input`,min:t.minCols,max:20,onKeydown:(0,n.withKeys)((0,n.withModifiers)(u,[`prevent`]),[`enter`])},null,40,ln),[[n.vModelText,c.value,void 0,{number:!0}]])])]),(0,n.createElementVNode)(`div`,un,[(0,n.createElementVNode)(`button`,{class:`docx-split-cell__cancel`,onClick:r[2]||=t=>e.$emit(`close`)},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),1),(0,n.createElementVNode)(`button`,{class:`docx-split-cell__apply`,disabled:!l.value,onClick:u},(0,n.toDisplayString)((0,n.unref)(i)(`common.apply`)),9,dn)])])])):(0,n.createCommentVNode)(``,!0)}}),pn=t.t(fn,[[`__scopeId`,`data-v-20cfd7b1`]]),mn={class:`tpd-dialog__header`},hn={class:`tpd-dialog__body`},gn={class:`tpd-row`},_n={class:`tpd-label`},vn={value:`auto`},yn={value:`dxa`},$={value:`pct`},bn={key:0,class:`tpd-row`},xn={class:`tpd-label`},Sn=[`step`],Cn={class:`tpd-unit`},wn={class:`tpd-row`},Tn={class:`tpd-label`},En={value:`left`},Dn={value:`center`},On={value:`right`},kn={class:`tpd-dialog__footer`},An=(0,n.defineComponent)({__name:`TablePropertiesDialog`,props:{isOpen:{type:Boolean},currentProps:{}},emits:[`close`,`apply`],setup(t,{emit:r}){let{t:i}=e.u(),a=t,o=r,s=(0,n.ref)(0),c=(0,n.ref)(`auto`),l=(0,n.ref)(`left`);(0,n.watch)(()=>a.isOpen,e=>{e&&(s.value=a.currentProps?.width??0,c.value=a.currentProps?.widthType??`auto`,l.value=a.currentProps?.justification??`left`)});function u(){let e={justification:l.value};c.value===`auto`?(e.width=null,e.widthType=`auto`):(e.width=s.value,e.widthType=c.value),o(`apply`,e),o(`close`)}return(e,r)=>t.isOpen?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:`tpd-overlay`,onMousedown:r[5]||=(0,n.withModifiers)(t=>e.$emit(`close`),[`self`])},[(0,n.createElementVNode)(`div`,{class:`tpd-dialog`,onKeydown:[r[4]||=(0,n.withKeys)(t=>e.$emit(`close`),[`escape`]),(0,n.withKeys)(u,[`enter`])]},[(0,n.createElementVNode)(`div`,mn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.title`)),1),(0,n.createElementVNode)(`div`,hn,[(0,n.createElementVNode)(`div`,gn,[(0,n.createElementVNode)(`label`,_n,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.widthType`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[0]||=e=>c.value=e,class:`tpd-select`},[(0,n.createElementVNode)(`option`,vn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.widthTypes.auto`)),1),(0,n.createElementVNode)(`option`,yn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.widthTypes.fixed`)),1),(0,n.createElementVNode)(`option`,$,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.widthTypes.percentage`)),1)],512),[[n.vModelSelect,c.value]])]),c.value===`auto`?(0,n.createCommentVNode)(``,!0):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,bn,[(0,n.createElementVNode)(`label`,xn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.widthLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`input`,{"onUpdate:modelValue":r[1]||=e=>s.value=e,type:`number`,class:`tpd-input`,min:0,step:c.value===`pct`?5:100},null,8,Sn),[[n.vModelText,s.value,void 0,{number:!0}]]),(0,n.createElementVNode)(`span`,Cn,(0,n.toDisplayString)(c.value===`pct`?(0,n.unref)(i)(`dialogs.tableProperties.units.fiftiethsPercent`):(0,n.unref)(i)(`dialogs.tableProperties.units.twips`)),1)])),(0,n.createElementVNode)(`div`,wn,[(0,n.createElementVNode)(`label`,Tn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.alignmentLabel`)),1),(0,n.withDirectives)((0,n.createElementVNode)(`select`,{"onUpdate:modelValue":r[2]||=e=>l.value=e,class:`tpd-select`},[(0,n.createElementVNode)(`option`,En,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.alignOptions.left`)),1),(0,n.createElementVNode)(`option`,Dn,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.alignOptions.center`)),1),(0,n.createElementVNode)(`option`,On,(0,n.toDisplayString)((0,n.unref)(i)(`dialogs.tableProperties.alignOptions.right`)),1)],512),[[n.vModelSelect,l.value]])])]),(0,n.createElementVNode)(`div`,kn,[(0,n.createElementVNode)(`button`,{class:`tpd-btn`,onClick:r[3]||=t=>e.$emit(`close`)},(0,n.toDisplayString)((0,n.unref)(i)(`common.cancel`)),1),(0,n.createElementVNode)(`button`,{class:`tpd-btn tpd-btn--primary`,onClick:u},(0,n.toDisplayString)((0,n.unref)(i)(`common.apply`)),1)])],32)],32)):(0,n.createCommentVNode)(``,!0)}}),jn=t.t(An,[[`__scopeId`,`data-v-4ed16c50`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return jn}});
|