diff --git a/README.md b/README.md index 1e77adac..d27fe1cf 100644 --- a/README.md +++ b/README.md @@ -38,32 +38,32 @@ pnpm dev |-------|-------------| | `/` | Product landing page | | `/docs` | Component library documentation (rendered from Markdown) | -| `/docs/demos?tab=single` | Single-instance editor demo | -| `/docs/demos?tab=multi` | Multi-instance Tab demo | +| `/docs/demos/single` | Single-instance editor demo | +| `/docs/demos/multi` | Multi-instance Tab demo | 3. Upload a file → edit → export -Legacy routes `/examples` and `/multi` redirect to the multi-instance demo tab. +Legacy routes `/examples` and `/multi` redirect to the multi-instance demo. ## Component Library Docs **API details live in the component library docs**, not duplicated here. - **Entry**: [Component README (English)](src/components/onlyoffice-web-comp/readme.md) -- **Overview**: [docs/00-概述.md](src/components/onlyoffice-web-comp/docs/00-概述.md) +- **Overview**: [docs/概述.md](src/components/onlyoffice-web-comp/docs/概述.md) | Doc | Topic | |-----|-------| -| [01 Quick Start](src/components/onlyoffice-web-comp/docs/01-快速开始.md) | Init and container mount | -| [02 Core API](src/components/onlyoffice-web-comp/docs/02-核心API.md) | `OnlyOfficeManager`, multi-instance | -| [03 Events](src/components/onlyoffice-web-comp/docs/03-事件系统.md) | EventBus | -| [04 Examples](src/components/onlyoffice-web-comp/docs/04-完整示例.md) | React integration patterns | -| [05 Reference](src/components/onlyoffice-web-comp/docs/05-API参考.md) | Constants and types | -| [06 Notes & Formats](src/components/onlyoffice-web-comp/docs/06-注意事项与支持格式.md) | Prerequisites and formats | -| [10 Fonts](src/components/onlyoffice-web-comp/docs/10-字体配置.md) | Custom font registration | -| [07 Comments & Revisions](src/components/onlyoffice-web-comp/docs/07-批注修订与-Word-API.md) | Comments and revisions | -| [08 Single-instance Demo](src/components/onlyoffice-web-comp/docs/08-单实例示例.md) | Single editor demo + source | -| [09 Multi-instance Demo](src/components/onlyoffice-web-comp/docs/09-多实例示例.md) | Full Tab demo source | +| [Quick Start](src/components/onlyoffice-web-comp/docs/快速开始.md) | Init and container mount | +| [Core API](src/components/onlyoffice-web-comp/docs/核心API.md) | `OnlyOfficeManager`, multi-instance | +| [Events](src/components/onlyoffice-web-comp/docs/事件系统.md) | EventBus | +| [Examples](src/components/onlyoffice-web-comp/docs/完整示例.md) | React integration patterns | +| [Reference](src/components/onlyoffice-web-comp/docs/API参考.md) | Constants and types | +| [Notes & Formats](src/components/onlyoffice-web-comp/docs/注意事项与支持格式.md) | Prerequisites and formats | +| [Fonts](src/components/onlyoffice-web-comp/docs/字体配置.md) | Custom font registration | +| [Comments & Revisions](src/components/onlyoffice-web-comp/docs/批注修订与-Word-API.md) | Comments and revisions | +| [Single-instance Demo](src/components/onlyoffice-web-comp/docs/单实例示例.md) | Single editor demo + source | +| [Multi-instance Demo](src/components/onlyoffice-web-comp/docs/多实例示例.md) | Full Tab demo source | ```typescript import { OnlyOfficeManager, FILE_TYPE, ONLYOFFICE_ID } from "@/components/onlyoffice-web-comp"; @@ -79,7 +79,7 @@ onlyoffice-web-comp/ │ │ ├── docs/ # Documentation site │ │ │ ├── page.tsx # /docs (overview md) │ │ │ ├── [slug]/page.tsx # /docs/* -│ │ │ └── demos/page.tsx # /docs/demos?tab=single|multi +│ │ │ └── demos/ # /docs/demos/single|multi │ │ └── examples/ # → redirect to multi demo │ ├── features/ │ │ ├── docs/ # Docs shell, markdown renderer, site-map @@ -143,7 +143,7 @@ OnlyOfficeManager.registerStaticResource({ ## Fonts -Custom fonts are registered via **`__custom_font_registry__`**, with **`ttf-to-catalog-font.mjs`** producing OnlyOffice catalog wire-format files. See **[10 - Fonts](src/components/onlyoffice-web-comp/docs/10-字体配置.md)** in the component docs for the full guide. +Custom fonts are registered via **`__custom_font_registry__`**, with **`ttf-to-catalog-font.mjs`** producing OnlyOffice catalog wire-format files. See **[Fonts](src/components/onlyoffice-web-comp/docs/字体配置.md)** in the component docs for the full guide. Quick outline: diff --git a/README.zh.md b/README.zh.md index b5f45e57..4c0b9a2f 100644 --- a/README.zh.md +++ b/README.zh.md @@ -38,32 +38,32 @@ pnpm dev |------|------| | `/` | 产品主页 | | `/docs` | 组件库文档(直接渲染 Markdown) | -| `/docs/demos?tab=single` | 单实例在线示例 | -| `/docs/demos?tab=multi` | 多实例 Tab 在线示例 | +| `/docs/demos/single` | 单实例在线示例 | +| `/docs/demos/multi` | 多实例 Tab 在线示例 | 3. 上传本地文件 → 编辑 → 导出 -旧路由 `/examples`、`/multi` 会重定向到多实例示例 Tab。 +旧路由 `/examples`、`/multi` 会重定向到多实例示例。 ## 组件库文档 **API 与接入说明不在本 README 重复**,请阅读组件库文档: - **入口**:[组件库 README(中文)](src/components/onlyoffice-web-comp/readme.zh.md) -- **概述**:[docs/00-概述.md](src/components/onlyoffice-web-comp/docs/00-概述.md) +- **概述**:[docs/概述.md](src/components/onlyoffice-web-comp/docs/概述.md) | 文档 | 内容 | |------|------| -| [01-快速开始](src/components/onlyoffice-web-comp/docs/01-快速开始.md) | 初始化与容器挂载 | -| [02-核心API](src/components/onlyoffice-web-comp/docs/02-核心API.md) | `OnlyOfficeManager`、多实例 | -| [03-事件系统](src/components/onlyoffice-web-comp/docs/03-事件系统.md) | EventBus | -| [04-完整示例](src/components/onlyoffice-web-comp/docs/04-完整示例.md) | React 集成模式 | -| [05-API参考](src/components/onlyoffice-web-comp/docs/05-API参考.md) | 常量与类型 | -| [06-注意事项与格式](src/components/onlyoffice-web-comp/docs/06-注意事项与支持格式.md) | 前置条件与格式 | -| [10-字体配置](src/components/onlyoffice-web-comp/docs/10-字体配置.md) | 自定义字体注册 | -| [07-批注修订](src/components/onlyoffice-web-comp/docs/07-批注修订与-Word-API.md) | 批注、修订 | -| [08-单实例示例](src/components/onlyoffice-web-comp/docs/08-单实例示例.md) | 单实例 Demo 与源码说明 | -| [09-多实例示例](src/components/onlyoffice-web-comp/docs/09-多实例示例.md) | Tab 多实例完整源码 | +| [快速开始](src/components/onlyoffice-web-comp/docs/快速开始.md) | 初始化与容器挂载 | +| [核心API](src/components/onlyoffice-web-comp/docs/核心API.md) | `OnlyOfficeManager`、多实例 | +| [事件系统](src/components/onlyoffice-web-comp/docs/事件系统.md) | EventBus | +| [完整示例](src/components/onlyoffice-web-comp/docs/完整示例.md) | React 集成模式 | +| [API参考](src/components/onlyoffice-web-comp/docs/API参考.md) | 常量与类型 | +| [注意事项与格式](src/components/onlyoffice-web-comp/docs/注意事项与支持格式.md) | 前置条件与格式 | +| [字体配置](src/components/onlyoffice-web-comp/docs/字体配置.md) | 自定义字体注册 | +| [批注修订](src/components/onlyoffice-web-comp/docs/批注修订与-Word-API.md) | 批注、修订 | +| [单实例示例](src/components/onlyoffice-web-comp/docs/单实例示例.md) | 单实例 Demo 与源码说明 | +| [多实例示例](src/components/onlyoffice-web-comp/docs/多实例示例.md) | Tab 多实例完整源码 | ```typescript import { OnlyOfficeManager, FILE_TYPE, ONLYOFFICE_ID } from "@/components/onlyoffice-web-comp"; @@ -79,7 +79,7 @@ onlyoffice-web-comp/ │ │ ├── docs/ # 文档站 │ │ │ ├── page.tsx # /docs(概述 md) │ │ │ ├── [slug]/page.tsx # /docs/* -│ │ │ └── demos/page.tsx # /docs/demos?tab=single|multi +│ │ │ └── demos/ # /docs/demos/single|multi │ │ └── examples/ # → 重定向至多实例示例 │ ├── features/ │ │ ├── docs/ # 文档壳、Markdown 渲染、site-map @@ -143,7 +143,7 @@ OnlyOfficeManager.registerStaticResource({ ## 字体配置 -自定义字体通过 **`__custom_font_registry__`** 注册,配合 **`ttf-to-catalog-font.mjs`** 生成 OnlyOffice catalog 线格式。完整步骤见组件库文档 **[10 - 字体配置](src/components/onlyoffice-web-comp/docs/10-字体配置.md)**。 +自定义字体通过 **`__custom_font_registry__`** 注册,配合 **`ttf-to-catalog-font.mjs`** 生成 OnlyOffice catalog 线格式。完整步骤见组件库文档 **[字体配置](src/components/onlyoffice-web-comp/docs/字体配置.md)**。 简要流程: diff --git a/public/packages/onlyoffice/9.3.0/plugins.json b/public/packages/onlyoffice/9.3.0/plugins.json new file mode 100644 index 00000000..62895290 --- /dev/null +++ b/public/packages/onlyoffice/9.3.0/plugins.json @@ -0,0 +1,3 @@ +{ + "pluginsData": [] +} diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/3rd-Party.txt b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/3rd-Party.txt deleted file mode 100644 index aa030cb0..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/3rd-Party.txt +++ /dev/null @@ -1,7 +0,0 @@ -This plugin uses code from the following 3rd party projects. - - -1. jQuery - Query is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. (http://jquery.com/) - -License: MIT License -License File: jQuery.license \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/CHANGELOG.md b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/CHANGELOG.md deleted file mode 100644 index acbc2006..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/CHANGELOG.md +++ /dev/null @@ -1,29 +0,0 @@ -# Change Log - -## 1.0.0 - -* Initial release. - -## 1.0.1 - -* Add loader. -* Fix problem with internet checking. -* Fix problem for Windows XP. - -## 1.0.2 - -* Enable plugin for viewer mode. -* Add button and new window for developer mode. -* Rename window for notification when removeing plugin into desktop. - -## 1.0.3 - -* Add "pdf" to the supported editors. - -## 1.0.4 - -* Change developer window (add warnign - bug 66451). - -## 1.0.5 - -* Fix problem into desktop with deletting manually installed plugins. \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/config.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/config.json deleted file mode 100644 index 59519625..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/config.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "name" : "Plugin Manager", - "nameLocale": { - "ru": "Менеджер плагинов", - "fr": "Gestionnaire de Plugins", - "it": "Plugin Manager", - "ja": "プラグインマネージャー", - "es": "Administrador de Complementos", - "de": "Plugin-Verwaltung", - "cs": "Správce Pluginů", - "si": "පේනු කළමනාකරු", - "zh": "插件管理器", - "pt-BR": "Gerenciador de plug-ins", - "sq-AL": "Menaxheri i shtojcës", - "sr-Cyrl-RS": "Менаџер додатака", - "sr-Latn-RS": "Menadžer dodataka" - }, - "guid" : "asc.{AA2EA9B6-9EC2-415F-9762-634EE8D9A95E}", - "version": "1.0.5", - "group" : { - "name" : "Plugin Manager", - "rank" : 1 - }, - "loader": false, - "variations" : [ - { - "description" : "Plugin Manager", - "url" : "index.html", - "icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ], - "icons2": [ - { - "style" : "light", - - "100%": { - "normal": "resources/light/icon.png" - }, - "125%": { - "normal": "resources/light/icon@1.25x.png" - }, - "150%": { - "normal": "resources/light/icon@1.5x.png" - }, - "175%": { - "normal": "resources/light/icon@1.75x.png" - }, - "200%": { - "normal": "resources/light/icon@2x.png" - }, - "*": { - "normal": "resources/light/icon.svg" - } - }, - { - "style" : "dark", - - "100%": { - "normal": "resources/dark/icon.png" - }, - "125%": { - "normal": "resources/dark/icon@1.25x.png" - }, - "150%": { - "normal": "resources/dark/icon@1.5x.png" - }, - "175%": { - "normal": "resources/dark/icon@1.75x.png" - }, - "200%": { - "normal": "resources/dark/icon@2x.png" - }, - "*": { - "normal": "resources/dark/icon.svg" - } - } - ], - "isViewer" : true, - "EditorsSupport" : ["word", "cell", "slide", "pdf"], - "isVisual" : true, - "isModal" : true, - "isInsideMode" : false, - "isSystem" : false, - "initDataType" : "none", - "isUpdateOleOnResize" : false, - "size" : [608, 600], - "buttons" : [] - } - ] -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/developer.html b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/developer.html deleted file mode 100644 index a93bee8c..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/developer.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Developer Mode - - - - - - - -
-
-
- -
- - - -
- - \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/index.html b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/index.html deleted file mode 100644 index 5a93aa3b..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/index.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Marketplace - - - - - - - - - - - - - \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/Select2.license b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/Select2.license deleted file mode 100644 index 8cb8a2b1..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/Select2.license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/jQuery.license b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/jQuery.license deleted file mode 100644 index 1e8b433d..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/licenses/jQuery.license +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2009 John Resig, http://jquery.com/ - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/css/styles.css b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/css/styles.css deleted file mode 100644 index 478050a3..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/css/styles.css +++ /dev/null @@ -1,74 +0,0 @@ -iframe { - width: 100%; - height: 100%; - border: none; -} -html, body { - margin: 0px !important; - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; - flex-flow: column; -} -.notification { - display: flex; - justify-content: center; - align-items: center; -} -.hidden { - display: none !important; -} -.lab{ - border: none !important; - background-color: transparent !important; - font-size: 15px !important; -} -.img_warning { - background: url(../img/warnings_s.svg) no-repeat center; - width: 40px; - height: 40px; -} -.modal { - margin: 10px; -} -.warning { - display: flex; - /* justify-content: center; */ - align-items: center; -} -.question { - margin-left: 5px; - color: red; -} -.info { - margin-top: 10px; -} -.loader { - margin: 0 !important; - position: absolute; - right: 0; - top: 0; - width: 100%; - height: 100% !important; - background-color: rgba(128, 128, 128, 0.5); -} -.div_developer { - display: flex; - flex-flow: column; - width: calc(100% - 40px); - margin: 20px; -} -.link_submit { - text-decoration: underline dotted !important; - text-underline-offset: 4px; - margin-top: 15px; - cursor: pointer; -} -.link_submit:hover { - text-decoration: underline dotted !important; -} -.lab_developer { - margin-bottom: 5px; -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.png deleted file mode 100644 index 44ff857d..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.svg b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.svg deleted file mode 100644 index ced49ca5..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.25x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.25x.png deleted file mode 100644 index c3e3e74c..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.25x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.5x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.5x.png deleted file mode 100644 index d8d0b970..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.5x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.75x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.75x.png deleted file mode 100644 index 391619e8..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@1.75x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@2x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@2x.png deleted file mode 100644 index f8fab565..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/dark/icon@2x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/img/warnings_s.svg b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/img/warnings_s.svg deleted file mode 100644 index 718e8da8..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/img/warnings_s.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.png deleted file mode 100644 index a913ffae..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.svg b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.svg deleted file mode 100644 index 2d94f572..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.25x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.25x.png deleted file mode 100644 index b08dc574..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.25x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.5x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.5x.png deleted file mode 100644 index bee16e42..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.5x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.75x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.75x.png deleted file mode 100644 index ddc5f076..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@1.75x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@2x.png b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@2x.png deleted file mode 100644 index d04a5cd6..00000000 Binary files a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/resources/light/icon@2x.png and /dev/null differ diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/code.js b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/code.js deleted file mode 100644 index 0a42f82f..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/code.js +++ /dev/null @@ -1,338 +0,0 @@ -/** - * - * (c) Copyright Ascensio System SIA 2020 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -(function(window, undefined) { - const isLocal = ( (window.AscDesktopEditor !== undefined) && (window.location.protocol.indexOf('file') !== -1) ); - let interval = null; - let errTimeout = null; - let loader = null; - let loaderTimeout = null; - - // create iframe - const iframe = document.createElement('iframe'); - - let warningWindow = null; - let developerWindow = null; - let removeGuid = null; - let BFrameReady = false; - let BPluginReady = false; - let editorVersion = null; - let marketplaceURl = null; - const OOMarketplaceUrl = isLocal ? './store/index.html' : 'https://onlyoffice.github.io/store/index.html'; - try { - // for incognito mode - marketplaceURl = localStorage.getItem('DeveloperMarketplaceUrl') || OOMarketplaceUrl; - } catch (err) { - marketplaceURl = OOMarketplaceUrl; - } - - window.Asc.plugin.init = function() { - window.Asc.plugin.executeMethod('ShowButton',['developer', true, 'right']); - // resize window - window.Asc.plugin.resizeWindow(608, 600, 608, 600, 0, 0); - if (!isLocal) { - checkInternet(true); - loaderTimeout = setTimeout(createLoader, 500); - } else { - initPlugin(); - } - }; - - function postMessage(message) { - iframe.contentWindow.postMessage(JSON.stringify(message), '*'); - }; - - function initPlugin() { - document.body.appendChild(iframe); - if (marketplaceURl !== OOMarketplaceUrl) - document.getElementById('notification').classList.remove('hidden'); - - // send message that plugin is ready - window.Asc.plugin.executeMethod('GetVersion', null, function(version) { - editorVersion = version; - BPluginReady = true; - if (BFrameReady) - postMessage( { type: 'PluginReady', version: editorVersion } ); - }); - - let divNoInt = document.getElementById('div_noIternet'); - let style = document.getElementsByTagName('head')[0].lastChild; - let pageUrl = marketplaceURl; - iframe.src = pageUrl + window.location.search; - iframe.onload = function() { - BFrameReady = true; - if (BPluginReady) { - if (!divNoInt.classList.contains('hidden')) { - divNoInt.classList.add('hidden'); - clearInterval(interval); - interval = null; - } - postMessage( { type: 'Theme', theme: window.Asc.plugin.theme, style : style.innerHTML } ); - postMessage( { type: 'PluginReady', version: editorVersion } ); - } - }; - }; - - window.Asc.plugin.button = function(id, windowID) { - if (warningWindow && warningWindow.id == windowID) { - switch (id) { - case 0: - removePlugin(false); - break; - case 1: - removePlugin(true); - break; - default: - postMessage( {type: 'Removed', guid: ''} ); - break; - } - window.Asc.plugin.executeMethod('CloseWindow', [windowID]); - } else if (developerWindow && developerWindow.id == windowID) { - if (id == 0) - developerWindow.command('onClickBtn'); - else - window.Asc.plugin.executeMethod('CloseWindow', [windowID]); - } else if (id == 'back') { - window.Asc.plugin.executeMethod('ShowButton',['back', false]); - if (iframe && iframe.contentWindow) - postMessage( { type: 'onClickBack' } ); - } else if (id == 'developer') { - createWindow('developer'); - } else { - this.executeCommand('close', ''); - } - }; - - window.addEventListener('message', function(message) { - // getting messages from marketplace - let data = JSON.parse(message.data); - - switch (data.type) { - case 'getInstalled': - // данное сообщение используется только при инициализации плагина и по умолчанию идёт парсинг и отрисовка плагинов из стора - // добавлен флаг updateInstalled - в этом случае не загружаем плагины из стора повторно, работаем только с установленными - - window.Asc.plugin.executeMethod('GetInstalledPlugins', null, function(result) { - postMessage({ type: 'InstalledPlugins', data: result, updateInstalled: data.updateInstalled } ); - }); - break; - case 'install': - window.Asc.plugin.executeMethod('InstallPlugin', [data.config, data.guid], function(result) { - postMessage(result); - }); - break; - case 'remove': - removeGuid = data.guid; - if ( Number( editorVersion.split('.').join('') < 740) ) - removePlugin(true); - else if ( !data.backup ) - removePlugin(data.backup); - else - createWindow('warning'); - break; - case 'update': - window.Asc.plugin.executeMethod('UpdatePlugin', [data.config, data.guid], function(result) { - postMessage(result); - }); - break; - case 'showButton' : - window.Asc.plugin.executeMethod('ShowButton',['back', true]); - break; - } - - }, false); - - window.Asc.plugin.onExternalMouseUp = function() { - // mouse up event outside the plugin window - if (iframe && iframe.contentWindow) { - postMessage( { type: 'onExternalMouseUp' } ); - } - }; - - window.Asc.plugin.onThemeChanged = function(theme) { - // theme changed event - if ( theme.type.indexOf('light') !== -1 ) { - theme['background-toolbar'] = '#fff'; - } - window.Asc.plugin.onThemeChangedBase(theme); - let style = document.getElementsByTagName('head')[0].lastChild; - if (iframe && iframe.contentWindow) - postMessage( { type: 'Theme', theme: theme, style : style.innerHTML } ); - }; - - window.Asc.plugin.onTranslate = function() { - let label = document.getElementById('lb_notification'); - if (label) - label.innerHTML = window.Asc.plugin.tr(label.innerHTML); - - label = document.getElementById('lb_noInternet'); - if (label) - label.innerHTML = window.Asc.plugin.tr(label.innerHTML); - }; - - function checkInternet(bSetTimeout) { - try { - let xhr = new XMLHttpRequest(); - let url = 'https://onlyoffice.github.io/store/translations/langs.json'; - xhr.open('GET', url, true); - - xhr.onload = function () { - if (this.readyState == 4) { - if (this.status >= 200 && this.status < 300) { - endInternetChecking(true); - } - } - }; - - xhr.onerror = function (err) { - endInternetChecking(false); - }; - - xhr.send(null); - } catch (error) { - endInternetChecking(false); - } - if (bSetTimeout) { - errTimeout = setTimeout(function() { - // if loading is too long show the error (because sometimes requests can not send error) - endInternetChecking(false); - }, 15000); - } - }; - - function endInternetChecking(isOnline) { - clearTimeout(errTimeout); - errTimeout = null; - destroyLoader(); - if (isOnline) { - initPlugin(); - } else { - document.getElementById('div_noIternet').classList.remove('hidden'); - if (!interval) { - interval = setInterval(function() { - checkInternet(false); - }, 5000); - } - } - }; - - function createWindow(type) { - let fileName = type + '.html'; - let description = window.Asc.plugin.tr('Warning'); - let size = [350, 100]; - let buttons = [ - { - 'text': window.Asc.plugin.tr('Yes'), - 'primary': true - }, - { - 'text': window.Asc.plugin.tr('No'), - 'primary': false - } - ]; - if (type == 'developer') { - fileName = 'developer.html'; - description = window.Asc.plugin.tr('Developer Mode'); - size = [500, 150]; - buttons = [ - { - 'text': window.Asc.plugin.tr('Ok'), - 'primary': true - }, - { - 'text': window.Asc.plugin.tr('Cancel'), - 'primary': false - } - ]; - } - let location = window.location; - let start = location.pathname.lastIndexOf('/') + 1; - let file = location.pathname.substring(start); - - let variation = { - url : location.href.replace(file, fileName), - description : description, - isVisual : true, - isModal : true, - isViewer: true, - EditorsSupport : ['word', 'cell', 'slide', 'pdf'], - size : size, - buttons : buttons - }; - - if (type == 'warning') { - if (!warningWindow) { - warningWindow = new window.Asc.PluginWindow(); - } - warningWindow.show(variation); - } else { - if (!developerWindow) { - developerWindow = new window.Asc.PluginWindow(); - developerWindow.attachEvent('onWindowMessage', function(message) { - if (message.type == 'SetURL') { - if (message.url.length) { - marketplaceURl = message.url; - localStorage.setItem('DeveloperMarketplaceUrl', marketplaceURl); - document.getElementById('notification').classList.remove('hidden'); - } else { - marketplaceURl = OOMarketplaceUrl; - localStorage.removeItem('DeveloperMarketplaceUrl'); - document.getElementById('notification').classList.add('hidden'); - } - iframe.src = marketplaceURl + window.location.search; - } - window.Asc.plugin.executeMethod('CloseWindow', [developerWindow.id]); - }); - } - developerWindow.show(variation); - } - - }; - - function removePlugin(backup) { - if (removeGuid) - window.Asc.plugin.executeMethod('RemovePlugin', [removeGuid, backup], function(result) { - postMessage(result); - }); - - removeGuid = null; - }; - - window.onresize = function() { - // zoom for all elements in plugin window - let zoom = 1; - if (window.devicePixelRatio < 1) - zoom = 1 / window.devicePixelRatio; - - document.getElementsByTagName('html')[0].style.zoom = zoom; - }; - - function createLoader() { - $('#loader-container').removeClass( 'hidden' ); - loader && (loader.remove ? loader.remove() : $('#loader-container')[0].removeChild(loader)); - loader = showLoader($('#loader-container')[0], window.Asc.plugin.tr('Checking internet connection...')); - }; - - function destroyLoader() { - clearTimeout(loaderTimeout); - loaderTimeout = null; - $('#loader-container').addClass( 'hidden' ) - loader && (loader.remove ? loader.remove() : $('#loader-container')[0].removeChild(loader)); - loader = undefined; - }; - -})(window, undefined); diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/developer.js b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/developer.js deleted file mode 100644 index 44737596..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/developer.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * (c) Copyright Ascensio System SIA 2020 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -(function(window, undefined) { - - window.Asc.plugin.init = function() { - document.getElementById('inp_url').value = localStorage.getItem('DeveloperMarketplaceUrl') || ''; - document.getElementById('lbl_reset').onclick = function() { - document.getElementById('inp_url').value = ''; - }; - }; - - window.Asc.plugin.onThemeChanged = function(theme) { - window.Asc.plugin.onThemeChangedBase(theme); - }; - - window.Asc.plugin.onTranslate = function() { - let elements = document.getElementsByClassName('i18n'); - - for (let index = 0; index < elements.length; index++) { - const element = elements[index]; - element.innerHTML = window.Asc.plugin.tr(element.innerHTML); - } - document.getElementById('inp_url').setAttribute('placeholder', window.Asc.plugin.tr('Enter URL')); - }; - - window.Asc.plugin.attachEvent("onClickBtn", function(){ - sendPluginMessage({type: 'SetURL', url: document.getElementById('inp_url').value.trim()}); - }); - - function sendPluginMessage(message) { - window.Asc.plugin.sendToPlugin("onWindowMessage", message); - }; - -})(window, undefined); diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/warning.js b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/warning.js deleted file mode 100644 index ec0e0692..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/scripts/warning.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * (c) Copyright Ascensio System SIA 2020 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -(function(window, undefined) { - - window.Asc.plugin.init = function() {}; - - window.Asc.plugin.onThemeChanged = function(theme) { - window.Asc.plugin.onThemeChangedBase(theme); - }; - - window.Asc.plugin.onTranslate = function() { - let elements = document.getElementsByClassName('i18n'); - - for (let index = 0; index < elements.length; index++) { - const element = elements[index]; - element.innerHTML = window.Asc.plugin.tr(element.innerHTML); - } - }; -})(window, undefined); diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/cs-CZ.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/cs-CZ.json deleted file mode 100644 index 1f4cbd34..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/cs-CZ.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Tato verze \"Správce pluginů\" není oficiální.", - "No Internet Connection.": "Žádné Připojení K Internetu.", - "Warning" : "Varování", - "Yes" : "Ano", - "No" : "Ne", - "Do you want to completely remove this plugin?" : "Chcete tento plugin úplně odstranit?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Pokud zvolíte \"Ne\", budete moci tento plugin obnovit později na Správce Pluginů.", - "Enter the URL for your marketplace page here" : "Zde zadejte adresu URL své stránky marketplace", - "Return to default settings" : "Návrat na výchozí nastavení", - "Enter URL" : "Zadejte URL", - "Cancel" : "Zrušit", - "Be careful! Avoid using the untrusted URLs." : "Buď opatrný! Nepoužívejte nedůvěryhodné adresy URL." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/de-DE.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/de-DE.json deleted file mode 100644 index 7d7e7bf0..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/de-DE.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Diese Version von \"Plugin Manager\" ist nicht offiziell.", - "No Internet Connection.": "Keine Internetverbindung.", - "Warning" : "Warnung", - "Yes" : "Ja", - "No" : "Nein", - "Do you want to completely remove this plugin?" : "Möchten Sie dieses Plugin vollständig entfernen?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Wenn Sie \"Nein\" wählen, können Sie dieses Plugin später auf dem Plugin-Verwaltung wiederherstellen.", - "Enter the URL for your marketplace page here" : "Geben Sie hier die URL für Ihre Marktplatz-Seite ein", - "Return to default settings" : "Zu den Standardeinstellungen zurückkehren", - "Enter URL" : "URL eingeben", - "Cancel" : "Stornieren", - "Be careful! Avoid using the untrusted URLs." : "Sei vorsichtig! Vermeiden Sie die Verwendung nicht vertrauenswürdiger URLs." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/es-ES.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/es-ES.json deleted file mode 100644 index 55eb1c90..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/es-ES.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Esta versión de \"Plugin Manager\" no es oficial.", - "No Internet Connection.": "Sin Conexión a Internet.", - "Warning" : "Advertencia", - "Yes" : "Sí", - "No" : "No", - "Do you want to completely remove this plugin?" : "¿Quieres eliminar por completo este plugin?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Si elige \"No\", podrá restaurar este complemento más adelante en el Administrador de Complementos.", - "Enter the URL for your marketplace page here" : "Ingrese la URL de su página de mercado aquí", - "Return to default settings" : "Volver a la configuración predeterminada", - "Enter URL" : "Introduzca la URL", - "Cancel" : "Cancelar", - "Be careful! Avoid using the untrusted URLs." : "¡Ten cuidado! Evite usar URL que no sean de confianza." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/fr-FR.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/fr-FR.json deleted file mode 100644 index c57cab4d..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/fr-FR.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Cette version de \"Plugin Manager\" n'est pas officielle.", - "No Internet Connection.": "Pas De Connexion Internet.", - "Warning" : "Avertissement", - "Yes" : "Oui", - "No" : "Aucun", - "Do you want to completely remove this plugin?" : "Voulez-vous supprimer complètement ce plugin?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Si vous choisissez \"Aucun\", vous pourrez restaurer ce plugin plus tard sur le Gestionnaire de Plugins.", - "Enter the URL for your marketplace page here" : "Entrez l'URL de votre page marketplace ici", - "Return to default settings" : "Retour aux paramètres par défaut", - "Enter URL" : "Entrez l'URL", - "Cancel" : "Annuler", - "Be careful! Avoid using the untrusted URLs." : "Soyez prudent! Évitez d'utiliser les URL non fiables." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/it-IT.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/it-IT.json deleted file mode 100644 index 0440cce9..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/it-IT.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Questa versione di \"Plugin Manager\" non è ufficiale.", - "No Internet Connection.": "Nessuna connessione internet.", - "Warning" : "Avviso", - "Yes" : "Sì", - "No" : "No", - "Do you want to completely remove this plugin?" : "Vuoi rimuovere completamente questo plugin?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Se scegli \"No\", potrai ripristinare questo plugin più tardi nel Marketplace.", - "Enter the URL for your marketplace page here" : "Inserisci qui l'URL della pagina del tuo marketplace", - "Return to default settings" : "Ritorno alle impostazioni predefinite", - "Enter URL" : "Inserisci URL", - "Cancel" : "Annulla", - "Be careful! Avoid using the untrusted URLs." : "Attenzione! Evita di utilizzare URL non affidabili." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ja-JA.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ja-JA.json deleted file mode 100644 index 894880b2..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ja-JA.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "この\"Plugin Manager\"のバージョンは正式なものではありません。", - "No Internet Connection.": "インターネットに接続されていません。", - "Warning" : "注意", - "Yes" : "はい", - "No" : "いいえ", - "Do you want to completely remove this plugin?" : "このプラグインを完全に削除しますか?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "\"No\" を選んでも、後でマーケットプレイスでこのプラグインを復元できます。", - "Enter the URL for your marketplace page here" : "マーケットプレイスページのURLをここに入力してください", - "Return to default settings" : "デフォルト設定に戻す", - "Enter URL" : "URLを入力する", - "Cancel" : "キャンセル", - "Be careful! Avoid using the untrusted URLs." : "ご注意!信頼できないURLの使用は避けてください。" -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/langs.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/langs.json deleted file mode 100644 index 89559faf..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/langs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - "cs-CZ", - "de-DE", - "es-ES", - "fr-FR", - "it-IT", - "ja-JA", - "ru-RU", - "si-SI", - "zh-ZH", - "pt-BR", - "sr-Cyrl-RS", - "sr-Latn-RS" -] \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/pt-BR.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/pt-BR.json deleted file mode 100644 index dd664c71..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/pt-BR.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Esta versão do \"Plugin Manager\" não é oficial.", - "No Internet Connection.": "Sem conexão com a Internet.", - "Warning" : "Aviso", - "Yes" : "Sim", - "No" : "No", - "Do you want to completely remove this plugin?" : "Deseja remover completamente este plugin?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Se você escolher \"Não\", você poderá restaurar este plugin mais tarde no mercado.", - "Enter the URL for your marketplace page here" : "Insira o URL da sua página de mercado aqui", - "Return to default settings" : "Retornar às configurações padrão", - "Enter URL" : "Insira o URL", - "Cancel" : "Cancelar", - "Be careful! Avoid using the untrusted URLs." : "Tenha cuidado! Evite usar URLs não confiáveis." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ru-RU.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ru-RU.json deleted file mode 100644 index 16520316..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/ru-RU.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Эта версия \"Менеджера Плагинов\" не является официальной.", - "No Internet Connection.": "Отсутствует соединение с интернетом.", - "Warning" : "Предупреждение", - "Yes" : "Да", - "No" : "Нет", - "Do you want to completely remove this plugin?" : "Вы хотите полностью удалить этот плагин?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Если вы выберете \"Нет\", вы сможете восстановить этот плагин позже в Менеджере плагинов.", - "Enter the URL for your marketplace page here" : "Введите URL для вашей страницы менеджера плагинов здесь", - "Return to default settings" : "Вернуть настройки по умолчанию", - "Enter URL" : "Введите URL", - "Cancel" : "Отмена", - "Be careful! Avoid using the untrusted URLs." : "Будьте осторожны! Избегайте использования ненадежных URL-адресов." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/si-SI.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/si-SI.json deleted file mode 100644 index 06e2f8ed..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/si-SI.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "මෙය නිල නොවන \"පේනු කළමනාකරු\" අනුවාදයකි.", - "No Internet Connection.": "අන්තර්ජාල සම්බන්ධතාවයක් නැත.", - "Warning" : "අවවාදයයි", - "Yes" : "ඔව්", - "No" : "නැහැ", - "Do you want to completely remove this plugin?" : "ඔබට මෙම පේනුව සම්පූර්ණයෙන්ම ඉවත් කිරීමට වුවමනා ද?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "ඔබ \"නැත\" තෝරන්නේ නම්, මෙම පේනුව පසුව වෙළඳපොළෙන් ප්‍රත්‍යර්පණයට හැකි වනු ඇත.", - "Checking internet connection..." : "සම්බන්ධතාවය පරීක්‍ෂා වෙමින්...", - "Be careful! Avoid using the untrusted URLs." : "පරිස්සමින්! විශ්වාස කළ නොහැකි Url භාවිතා කිරීමෙන් වළකින්න." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sq-AL.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sq-AL.json deleted file mode 100644 index 3d0403f8..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sq-AL.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Ky version i \"Menaxherit të shtojcës\" is nuk është zyrtar.", - "No Internet Connection.": "Nuk ka lidhje interneti.", - "Warning" : "Paralajmërim", - "Yes" : "Po", - "No" : "Jo", - "Do you want to completely remove this plugin?" : "Dëshironi që të fshini këtë shtojcë komplet.", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Në qoftë se ju zgjidhni \"Jo\", do të mund të riktheni këtë shtojcë më vonë në marketplace.", - "Enter the URL for your marketplace page here" : "Futni URL-në e faqes suaj të marketplace-it këtu", - "Return to default settings" : "Kthehuni në cilësimet e parazgjedhura", - "Enter URL" : "Futni URL", - "Cancel" : "Anuloni", - "Be careful! Avoid using the untrusted URLs." : "Bëni kujdes! Shmangni përdorimin e URL-ve të pa besueshme." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Cyrl-RS.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Cyrl-RS.json deleted file mode 100644 index f2066d3e..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Cyrl-RS.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Ова верзија \"Менаџера додатака\" није званична.", - "No Internet Connection.": "Нема Интернет конекције.", - "Warning" : "Упозорење", - "Yes" : "Да", - "No" : "Не", - "Do you want to completely remove this plugin?" : "Да ли желите да потпуно уклоните овај додатак?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Ако изаберете \"Не\", моћи ћете да обновите овај додатак касније на тржишту.", - "Enter the URL for your marketplace page here" : "Унесите URL за вашу страницу тржишта овде", - "Return to default settings" : "Вратите се на подразумевана подешавања", - "Enter URL" : "Унесите URL", - "Cancel" : "Откажи", - "Be careful! Avoid using the untrusted URLs." : "Пазите! Избегавајте да користите непоуздане URL-ове." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Latn-RS.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Latn-RS.json deleted file mode 100644 index 3ba1620d..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/sr-Latn-RS.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "Ova verzija \"Menadžera dodataka\" nije zvanična.", - "No Internet Connection.": "Nema Internet konekcije.", - "Warning" : "Upozorenje", - "Yes" : "Da", - "No" : "Ne", - "Do you want to completely remove this plugin?" : "Da li želite da potpuno uklonite ovaj dodatak?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "Ako izaberete \"Ne\", moći ćete da obnovite ovaj dodatak kasnije na tržištu.", - "Enter the URL for your marketplace page here" : "Unesite URL za vašu stranicu tržišta ovde", - "Return to default settings" : "Vratite se na podrazumevana podešavanja", - "Enter URL" : "Unesite URL", - "Cancel" : "Otkaži", - "Be careful! Avoid using the untrusted URLs." : "Pazite! Izbegavajte da koristite nepouzdane URL-ove." -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/zh-ZH.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/zh-ZH.json deleted file mode 100644 index 2beaa50c..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/translations/zh-ZH.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "This version of \"Plugin Manager\" is not official." : "此版本的\"插件管理器\"不是官方的。", - "No Internet Connection.": "没有网络连接。", - "Warning" : "警告", - "Yes" : "是", - "No" : "否", - "Do you want to completely remove this plugin?" : "您想彻底删除这个插件吗?", - "If you choose \"No\", you will be able to restore this plugin later in the marketplace." : "如果您选择\"否\",稍后可以在市场中恢复此插件。", - "Enter the URL for your marketplace page here" : "在此处输入市场页面的网址", - "Return to default settings" : "返回默认设置", - "Enter URL" : "输入网址", - "Cancel" : "取消", - "Be careful! Avoid using the untrusted URLs." : "当心!避免使用不受信任的网址" -} \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/vendor/jquery/jquery-3.7.1.min.js b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/vendor/jquery/jquery-3.7.1.min.js deleted file mode 100644 index 7f37b5d9..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/marketplace/vendor/jquery/jquery-3.7.1.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 - - - - - Notification - - - - - - - - - - \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/plugin-list-default.json b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/plugin-list-default.json deleted file mode 100644 index 39943421..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/plugin-list-default.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - "ai", - "highlightcode", - "mendeley", - "ocr", - "photoeditor", - "speech", - "speechrecognition", - "thesaurus", - "translator", - "youtube", - "zotero" -] \ No newline at end of file diff --git a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/pluginBase.js b/public/packages/onlyoffice/9.3.0/sdkjs-plugins/pluginBase.js deleted file mode 100644 index bd3065b9..00000000 --- a/public/packages/onlyoffice/9.3.0/sdkjs-plugins/pluginBase.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * - * (c) Copyright Ascensio System SIA 2021 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -(function(a,u){function w(c){a.Asc.plugin.ie_channel?a.Asc.plugin.ie_channel.postMessage(c):a.parent.postMessage(c,"*")}function r(c,d){if(!c||"object"!=typeof c&&"array"!=typeof c)return c;d=d===u?{}:d;for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h]&&"object"===typeof c[h]?r(c[h]):c[h]);return d}function p(c){var d=a.location.search,h=c+"=";c=d.indexOf(h);return 0<=c?(c+=h.length,h=d.indexOf("&",c),0>h&&(h=d.length),d.substring(c,h)):u}function n(){var c=p("windowID");c&&(a.Asc.plugin.windowID=c, -a.Asc.plugin.guid||(a.Asc.plugin.guid=decodeURIComponent(p("guid"))));return u!==c?!0:!1}function q(c){if(a.Asc&&a.Asc.plugin)if(a.plugin_onMessage)a.Asc.supportOrigins[c.origin]&&a.plugin_onMessage(c);else if(a.Asc.plugin._initInternal&&"string"==typeof c.data){var d={};try{d=JSON.parse(c.data)}catch(h){d={}}"plugin_init"==d.type&&(a.Asc.supportOrigins[c.origin]=!0,a.Asc.plugin.ie_channel_check(c),eval(d.data))}}a.Asc=a.Asc||{};a.Asc.plugin={};a.Asc.plugin.ie_channel=null;a.Asc.plugin.ie_channel_check= -function(c){var d=navigator.userAgent.toLowerCase();(-1t[n]-t[o]-1&&(t.reach[h]="end"),e&&(f.dispatchEvent(c("ps-scroll-"+h)),e<0?f.dispatchEvent(c("ps-scroll-"+u)):e>0&&f.dispatchEvent(c("ps-scroll-"+d)),r&&a(t,h)),t.reach[h]&&(e||l)&&f.dispatchEvent(c("ps-"+h+"-reach-"+t.reach[h]))}function u(t){return parseInt(t,10)||0}function d(t){return r(t,"input,[contenteditable]")||r(t,"select,[contenteditable]")||r(t,"textarea,[contenteditable]")||r(t,"button,[contenteditable]")}function f(e){var i=t(e);return u(i.width)+u(i.paddingLeft)+u(i.paddingRight)+u(i.borderLeftWidth)+u(i.borderRightWidth)}function p(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function b(t,i){var r={width:i.railXWidth},l=Math.floor(t.scrollTop);i.isRtl?r.left=i.negativeScrollAdjustment+t.scrollLeft+i.containerWidth-i.contentWidth:r.left=t.scrollLeft,i.isScrollbarXUsingBottom?r.bottom=i.scrollbarXBottom-l:r.top=i.scrollbarXTop+l,e(i.scrollbarXRail,r);var n={top:l,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?n.right=i.contentWidth-(i.negativeScrollAdjustment+t.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:n.right=i.scrollbarYRight-t.scrollLeft:i.isRtl?n.left=i.negativeScrollAdjustment+t.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:n.left=i.scrollbarYLeft+t.scrollLeft,e(i.scrollbarYRail,n),e(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),e(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function g(t,e){function i(e){b[d]=g+Y*(e[a]-v),o(t,f),R(t),e.stopPropagation(),e.preventDefault()}function r(){s(t,f),t[p].classList.remove(m.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",i)}var l=e[0],n=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],f=e[7],p=e[8],b=t.element,g=null,v=null,Y=null;t.event.bind(t[h],"mousedown",function(e){g=b[d],v=e[a],Y=(t[n]-t[l])/(t[c]-t[u]),t.event.bind(t.ownerDocument,"mousemove",i),t.event.once(t.ownerDocument,"mouseup",r),t[p].classList.add(m.state.clicking),e.stopPropagation()/*,e.preventDefault()*/})}var v="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),m={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Y={x:null,y:null},X=function(t){this.element=t,this.handlers={}},w={isEmpty:{configurable:!0}};X.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},X.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(r){return!(!e||r===e)||(i.element.removeEventListener(t,r,!1),!1)})},X.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},w.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(X.prototype,w);var y=function(){this.eventElements=[]};y.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new X(t),this.eventElements.push(e)),e},y.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},y.prototype.unbind=function(t,e,i){var r=this.eventElement(t);r.unbind(e,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},y.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},y.prototype.once=function(t,e,i){var r=this.eventElement(t),l=function(t){r.unbind(e,l),i(t)};r.bind(e,l)};var W=function(t,e,i,r,l){void 0===r&&(r=!0),void 0===l&&(l=!1);var n;if("top"===e)n=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");n=["contentWidth","containerWidth","scrollLeft","x","left","right"]}h(t,i,n,r,l)},L={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},R=function(t){var e=t.element,i=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(n(e,m.element.rail("x")).forEach(function(t){return l(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(n(e,m.element.rail("y")).forEach(function(t){return l(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),b(e,t),t.scrollbarXActive?e.classList.add(m.state.active("x")):(e.classList.remove(m.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(m.state.active("y")):(e.classList.remove(m.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},T={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,R(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,R(t),e.stopPropagation()})},"drag-thumb":function(t){g(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){function e(e,r){var l=Math.floor(i.scrollTop);if(0===e){if(!t.scrollbarYActive)return!1;if(0===l&&r>0||l>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var n=i.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===n&&e<0||n>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}var i=t.element,l=function(){return r(i,":hover")},n=function(){return r(t.scrollbarX,":focus")||r(t.scrollbarY,":focus")};t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(l()||n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(d(o))return}var s=0,a=0;switch(r.which){case 37:s=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:a=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:s=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:a=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:a=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==a||(i.scrollTop-=a,i.scrollLeft+=s,R(t),e(s,a)&&r.preventDefault())}})},wheel:function(e){function i(t,i){var r=Math.floor(o.scrollTop),l=0===o.scrollTop,n=r+o.offsetHeight===o.scrollHeight,s=0===o.scrollLeft,a=o.scrollLeft+o.offsetWidth===o.scrollWidth;return!(Math.abs(i)>Math.abs(t)?l||n:s||a)||!e.settings.wheelPropagation}function r(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!==e&&i!==i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}function l(e,i,r){if(!L.isWebKit&&o.querySelector("select:focus"))return!0;if(!o.contains(e))return!1;for(var l=e;l&&l!==o;){if(l.classList.contains(m.element.consuming))return!0;var n=t(l);if([n.overflow,n.overflowX,n.overflowY].join("").match(/(scroll|auto)/)){var s=l.scrollHeight-l.clientHeight;if(s>0&&!(0===l.scrollTop&&r>0||l.scrollTop===s&&r<0))return!0;var a=l.scrollWidth-l.clientWidth;if(a>0&&!(0===l.scrollLeft&&i<0||l.scrollLeft===a&&i>0))return!0}l=l.parentNode}return!1}function n(t){var n=r(t),s=n[0],a=n[1];if(!l(t.target,s,a)){var c=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?o.scrollTop-=a*e.settings.wheelSpeed:o.scrollTop+=s*e.settings.wheelSpeed,c=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(s?o.scrollLeft+=s*e.settings.wheelSpeed:o.scrollLeft-=a*e.settings.wheelSpeed,c=!0):(o.scrollTop-=a*e.settings.wheelSpeed,o.scrollLeft+=s*e.settings.wheelSpeed),R(e),(c=c||i(s,a))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault())}}var o=e.element;void 0!==window.onwheel?e.event.bind(o,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(o,"mousewheel",n)},touch:function(e){function i(t,i){var r=Math.floor(h.scrollTop),l=h.scrollLeft,n=Math.abs(t),o=Math.abs(i);if(o>n){if(i<0&&r===e.contentHeight-e.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&L.isChrome}else if(n>o&&(t<0&&l===e.contentWidth-e.containerWidth||t>0&&0===l))return!0;return!0}function r(t,i){h.scrollTop-=i,h.scrollLeft-=t,R(e)}function l(t){return t.targetTouches?t.targetTouches[0]:t}function n(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function o(t){if(n(t)){var e=l(t);u.pageX=e.pageX,u.pageY=e.pageY,d=(new Date).getTime(),null!==p&&clearInterval(p)}}function s(e,i,r){if(!h.contains(e))return!1;for(var l=e;l&&l!==h;){if(l.classList.contains(m.element.consuming))return!0;var n=t(l);if([n.overflow,n.overflowX,n.overflowY].join("").match(/(scroll|auto)/)){var o=l.scrollHeight-l.clientHeight;if(o>0&&!(0===l.scrollTop&&r>0||l.scrollTop===o&&r<0))return!0;var s=l.scrollLeft-l.clientWidth;if(s>0&&!(0===l.scrollLeft&&i<0||l.scrollLeft===s&&i>0))return!0}l=l.parentNode}return!1}function a(t){if(n(t)){var e=l(t),o={pageX:e.pageX,pageY:e.pageY},a=o.pageX-u.pageX,c=o.pageY-u.pageY;if(s(t.target,a,c))return;r(a,c),u=o;var h=(new Date).getTime(),p=h-d;p>0&&(f.x=a/p,f.y=c/p,d=h),i(a,c)&&t.preventDefault()}}function c(){e.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){e.isInitialized?clearInterval(p):f.x||f.y?Math.abs(f.x)<.01&&Math.abs(f.y)<.01?clearInterval(p):(r(30*f.x,30*f.y),f.x*=.8,f.y*=.8):clearInterval(p)},10))}if(L.supportsTouch||L.supportsIePointer){var h=e.element,u={},d=0,f={},p=null;L.supportsTouch?(e.event.bind(h,"touchstart",o),e.event.bind(h,"touchmove",a),e.event.bind(h,"touchend",c)):L.supportsIePointer&&(window.PointerEvent?(e.event.bind(h,"pointerdown",o),e.event.bind(h,"pointermove",a),e.event.bind(h,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(h,"MSPointerDown",o),e.event.bind(h,"MSPointerMove",a),e.event.bind(h,"MSPointerUp",c)))}}},H=function(r,l){var n=this;if(void 0===l&&(l={}),"string"==typeof r&&(r=document.querySelector(r)),!r||!r.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=r,r.classList.add(m.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:0.35};for(var o in l)n.settings[o]=l[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return r.classList.add(m.state.focus)},a=function(){return r.classList.remove(m.state.focus)};this.isRtl="rtl"===t(r).direction,this.isNegativeScroll=function(){var t=r.scrollLeft,e=null;return r.scrollLeft=-1,e=r.scrollLeft<0,r.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?r.scrollWidth-r.clientWidth:0,this.event=new y,this.ownerDocument=r.ownerDocument||document,this.scrollbarXRail=i(m.element.rail("x")),r.appendChild(this.scrollbarXRail),this.scrollbarX=i(m.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=t(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(c.borderLeftWidth)+u(c.borderRightWidth),e(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),e(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(m.element.rail("y")),r.appendChild(this.scrollbarYRail),this.scrollbarY=i(m.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var h=t(this.scrollbarYRail);this.scrollbarYRight=parseInt(h.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(h.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?f(this.scrollbarY):null,this.railBorderYWidth=u(h.borderTopWidth)+u(h.borderBottomWidth),e(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(h.marginTop)+u(h.marginBottom),e(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:r.scrollLeft<=0?"start":r.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:r.scrollTop<=0?"start":r.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return T[t](n)}),this.lastScrollTop=Math.floor(r.scrollTop),this.lastScrollLeft=r.scrollLeft,this.event.bind(this.element,"scroll",function(t){return n.onScroll(t)}),R(this)};return H.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,e(this.scrollbarXRail,{display:"block"}),e(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(t(this.scrollbarXRail).marginLeft)+u(t(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(t(this.scrollbarYRail).marginTop)+u(t(this.scrollbarYRail).marginBottom),e(this.scrollbarXRail,{display:"none"}),e(this.scrollbarYRail,{display:"none"}),R(this),W(this,"top",0,!1,!0),W(this,"left",0,!1,!0),e(this.scrollbarXRail,{display:""}),e(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(t){this.isAlive&&(R(this),W(this,"top",this.element.scrollTop-this.lastScrollTop),W(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},H}); -var Ps = null; -/** - * - * var loader = showLoader(document.getElementById("parent-id")) - * loader.remove() - * - * parent must have position: relative - */ -showLoader = function (parent, text) { - var themeType = window.Asc && window.Asc.plugin && window.Asc.plugin.theme && window.Asc.plugin.theme.type; - var loader = document.createElement('div'); - loader.className = 'asc-plugin-loader'; - loader.innerHTML = '
' + (text || "Loading") + '
'; - parent.append ? parent.append(loader) : parent.appendChild(loader); - return loader; -}; -// check css load -if (document.currentScript && document.currentScript.src) { - if (document.currentScript.getAttribute("loadCss") === "true") { - var scriptDirectory = document.currentScript.src; - var lastSlash = scriptDirectory.lastIndexOf("/"); - if (0 < lastSlash) scriptDirectory = scriptDirectory.substr(0, lastSlash); - - var link = document.createElement("link"); - link.rel = "stylesheet"; - link.type = "text/css"; - link.href = scriptDirectory + "/plugins.css"; - document.getElementsByTagName('HEAD')[0].appendChild(link); - } -} -// escape and unescape func -!function(e){function n(n){function t(e){return n[e]}var e="(?:"+Object.keys(n).join("|")+")",u=RegExp(e),c=RegExp(e,"g");return function(e){return e=null==e?"":""+e,u.test(e)?e.replace(c,t):e}}escape=n({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),unescape=n({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"}),e.escape=escape,e.unescape=unescape}(window); - -// select2 fix search field -var select2_amd,select2_defaults;"undefined"!=typeof jQuery&&null!=$.fn.select2&&(select2_amd=$.fn.select2.amd,select2_defaults=$.fn.select2.defaults,$.fn.select2.amd.define("SearchableSingleSelection",["select2/utils","select2/selection/single","select2/selection/eventRelay","select2/dropdown/search"],function(e,t,n,l){var s=e.Decorate(t,l);(s=e.Decorate(s,n)).prototype.render=function(){var e=l.prototype.render.call(this,t.prototype.render);return this.$searchContainer.hide(),this.$element.siblings(".select2").find(".selection").prepend(this.$searchContainer),e};var c=s.prototype.bind;return s.prototype.bind=function(e){var t=this;c.apply(this,arguments),e.on("open",function(){t.$selection.hide(),t.$searchContainer.show()}),e.on("close",function(){t.$searchContainer.hide(),t.$selection.show()})},s}),$.fn.select2.amd.define("UnsearchableDropdown",["select2/utils","select2/dropdown","select2/dropdown/attachBody","select2/dropdown/closeOnSelect"],function(e,t,n,l){n=e.Decorate(t,n);return n=e.Decorate(n,l)}),select2_amd.define("jquery.select2_",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(s,e,c,t,o){var r;return null!=s.fn.select2&&(r=["open","close","destroy"],s.fn.select2=function(l){if((l=l||{}).selectionAdapter=!1!==l.selectionAdapter?select2_amd.require("SearchableSingleSelection"):void 0,l.dropdownAdapter=!1!==l.dropdownAdapter?select2_amd.require("UnsearchableDropdown"):void 0,"object"==typeof l)return this.each(function(){var e=s.extend(!0,{},l),t=new c(s(this),e),n=s(this).next().find(".select2-search.select2-search--dropdown"),e=s(this).next().find("span.selection").find(".select2-selection__arrow").clone();s(e).click(function(){t.close()}),e.appendTo(n)}),this;if("string"!=typeof l)throw new Error("Invalid arguments for Select2: "+l);var t,n=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+l+"') method was called on an element that is not using Select2."),t=e[l].apply(e,n)}),-1