@fewangsit/wangsvue-fats 1.0.1-rc.4 → 1.0.1-rc.7
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/animation/Animation.es.js +50 -0
- package/{components/animation/Animation.vue.d.ts → animation/index.d.ts} +1 -1
- package/approverinfo/index.es.js +127 -0
- package/approverinfo/package.json +4 -0
- package/assetinfo/AssetInfo.es.js +162 -0
- package/{components/assetinfo/AssetInfo.vue.d.ts → assetinfo/index.d.ts} +18 -4
- package/assetinfo/index.es.js +4 -0
- package/assetinfo/package.json +4 -0
- package/assets/lottiejs/loading-page.es.js +15 -0
- package/assets/lottiejs/loading-table.es.js +15 -0
- package/{no-data-DLHO1L_u.js → assets/lottiejs/no-data.es.js} +13 -2
- package/backgroundimagecropper/BackgroundImageCropper.es.js +57 -0
- package/badge/index.es.js +99 -0
- package/badge/package.json +4 -0
- package/{components/badgegroup/BadgeGroup.vue.d.ts → badgegroup/index.d.ts} +1 -1
- package/badgegroup/index.es.js +68 -0
- package/badgegroup/package.json +4 -0
- package/basecalendar/BaseCalendar.es.js +876 -0
- package/basetree/index.es.js +169 -0
- package/basetree/package.json +4 -0
- package/breadcrumb/index.es.js +46 -0
- package/breadcrumb/package.json +4 -0
- package/button/Button.es.js +120 -0
- package/{components/button/Button.vue.d.ts → button/index.d.ts} +3 -2
- package/button/index.es.js +4 -0
- package/button/package.json +4 -0
- package/{components/buttonImportExcel/ButtonImportExcel.vue.d.ts → buttonImportExcel/index.d.ts} +2 -2
- package/{components/buttonaddbyscan/ButtonAddByScan.vue.d.ts → buttonaddbyscan/index.d.ts} +2 -2
- package/buttonaddbyscan/index.es.js +148 -0
- package/buttonaddbyscan/package.json +4 -0
- package/buttonbulkaction/ButtonBulkAction.es.js +186 -0
- package/buttonbulkaction/index.es.js +4 -0
- package/buttonbulkaction/package.json +4 -0
- package/buttoncopy/index.es.js +31 -0
- package/buttoncopy/package.json +4 -0
- package/{components/buttondownload/ButtonDownload.vue.d.ts → buttondownload/index.d.ts} +1 -1
- package/buttondownload/index.es.js +113 -0
- package/buttondownload/package.json +4 -0
- package/buttonfilter/index.es.js +31 -0
- package/buttonfilter/package.json +4 -0
- package/buttonradio/index.es.js +93 -0
- package/buttonradio/package.json +4 -0
- package/buttonscan/ButtonScan.es.js +416 -0
- package/{components/buttonscan/ButtonScan.vue.d.ts → buttonscan/index.d.ts} +3 -3
- package/buttonscan/index.es.js +4 -0
- package/buttonscan/package.json +4 -0
- package/buttonsearch/index.es.js +70 -0
- package/buttonsearch/package.json +4 -0
- package/{components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts → buttonsearchbyscan/index.d.ts} +2 -2
- package/buttonsearchbyscan/index.es.js +90 -0
- package/buttonsearchbyscan/package.json +4 -0
- package/{components/buttonselecttree/ButtonSelectTree.vue.d.ts → buttonselecttree/index.d.ts} +2 -2
- package/buttonselecttree/index.es.js +220 -0
- package/buttonselecttree/package.json +4 -0
- package/buttonselectuser/index.d.ts +7 -0
- package/buttonselectuser/index.es.js +101 -0
- package/buttonselectuser/package.json +4 -0
- package/{components/buttonsplit/ButtonSplit.vue.d.ts → buttonsplit/index.d.ts} +1 -1
- package/buttonsync/index.es.js +29 -0
- package/buttonsync/package.json +4 -0
- package/{components/buttontoggle/ButtonToggle.vue.d.ts → buttontoggle/index.d.ts} +1 -4
- package/buttontoggle/index.es.js +11 -0
- package/buttontoggle/package.json +4 -0
- package/{components/buttonviewlog/ButtonViewLog.vue.d.ts → buttonviewlog/index.d.ts} +1 -1
- package/buttonviewlog/index.es.js +21 -0
- package/buttonviewlog/package.json +4 -0
- package/{components/calendar/Calendar.vue.d.ts → calendar/index.d.ts} +1 -1
- package/calendar/index.es.js +117 -0
- package/calendar/package.json +4 -0
- package/card/index.es.js +47 -0
- package/card/package.json +4 -0
- package/{components/carousel/Carousel.vue.d.ts → carousel/index.d.ts} +1 -1
- package/carousel/index.es.js +65 -0
- package/carousel/package.json +4 -0
- package/checkbox/index.es.js +135 -0
- package/checkbox/package.json +4 -0
- package/codesnippet/CodeSnippet.es.js +118 -0
- package/codesnippetadapter/CodeSnippetAdapter.es.js +26 -0
- package/columnlist/ColumnList.es.js +204 -0
- package/components.d.ts +83 -0
- package/config/defaultProps.es.js +133 -0
- package/config/index.es.js +12 -0
- package/config/locale.es.js +85 -0
- package/config/package.json +4 -0
- package/{components/customcolumn/CustomColumn.vue.d.ts → customcolumn/index.d.ts} +1 -1
- package/customcolumn/index.es.js +138 -0
- package/customcolumn/package.json +4 -0
- package/{components/datatable/DataTable.vue.d.ts → datatable/index.d.ts} +4 -4
- package/datatable/index.es.js +980 -0
- package/datatable/package.json +4 -0
- package/datepicker/index.es.js +140 -0
- package/datepicker/package.json +4 -0
- package/daypicker/index.es.js +134 -0
- package/daypicker/package.json +4 -0
- package/dialog/index.es.js +121 -0
- package/dialog/package.json +4 -0
- package/dialogassetnamedetail/index.es.js +246 -0
- package/dialogassetnamedetail/options/columns.d.ts +2 -0
- package/dialogassetnamedetail/options/filter.d.ts +2 -0
- package/dialogassetnamedetail/package.json +4 -0
- package/dialogbasictransferlog/DialogBasicTransferLog.es.js +225 -0
- package/{components/dialogconfirm/DialogConfirm.vue.d.ts → dialogconfirm/index.d.ts} +1 -1
- package/dialogconfirm/index.es.js +140 -0
- package/dialogconfirm/package.json +4 -0
- package/dialogdamagelog/index.d.ts +7 -0
- package/dialogdamagelog/index.es.js +245 -0
- package/dialogdamagelog/package.json +4 -0
- package/{components/dialogform/DialogForm.vue.d.ts → dialogform/index.d.ts} +2 -2
- package/dialogform/index.es.js +223 -0
- package/dialogform/package.json +4 -0
- package/dialogfulltransferlog/DialogFullTransferLog.es.js +237 -0
- package/{components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts → dialoglinkedasset/index.d.ts} +0 -3
- package/dialoglinkedasset/index.es.js +158 -0
- package/dialoglinkedasset/package.json +4 -0
- package/dialogprintqr/DialogPrintQR.es.js +334 -0
- package/{components/dialogprintqr/DialogPrintQR.vue.d.ts → dialogprintqr/index.d.ts} +1 -1
- package/dialogprintqr/index.es.js +4 -0
- package/dialogprintqr/package.json +4 -0
- package/{components/dialogreportdamage/DialogReportDamage.vue.d.ts → dialogreportdamage/index.d.ts} +1 -1
- package/dialogreportdamage/index.es.js +240 -0
- package/dialogreportdamage/package.json +4 -0
- package/{components/dialogreportmissing/DialogReportMissing.vue.d.ts → dialogreportmissing/index.d.ts} +1 -1
- package/dialogreportmissing/index.es.js +116 -0
- package/dialogreportmissing/package.json +4 -0
- package/{components/dialogreporttag/DialogReportTag.vue.d.ts → dialogreporttag/index.d.ts} +1 -1
- package/dialogreporttag/index.es.js +130 -0
- package/dialogreporttag/package.json +4 -0
- package/{components/dialogselecttree/DialogSelectTree.vue.d.ts → dialogselecttree/index.d.ts} +3 -3
- package/dialogselecttree/index.es.js +269 -0
- package/dialogselecttree/package.json +4 -0
- package/{components/dialogselectuser/DialogSelectUser.vue.d.ts → dialogselectuser/index.d.ts} +4 -6
- package/dialogselectuser/index.es.js +186 -0
- package/{components/dialogselectuser → dialogselectuser}/options/columns.d.ts +1 -1
- package/dialogselectuser/package.json +4 -0
- package/dialogselectuserfilter/DialogSelectUserFilter.es.js +40 -0
- package/{components/dialogtransferlog/DialogTransferLog.vue.d.ts → dialogtransferlog/index.d.ts} +1 -1
- package/dialogtransferlog/index.es.js +32 -0
- package/dialogtransferlog/package.json +4 -0
- package/directives/focus.es.js +13 -0
- package/directives/index.d.ts +1 -0
- package/directives/index.es.js +2 -0
- package/directives/package.json +4 -0
- package/directives/tooltip.d.ts +1 -0
- package/directives/tooltip.es.js +4 -0
- package/disposalreport/index.d.ts +15 -0
- package/disposalreport/index.es.js +32 -0
- package/disposalreport/package.json +4 -0
- package/disposalreportbulkaction/DisposalReportBulkAction.es.js +80 -0
- package/disposalreporttable/DisposalReportTable.es.js +311 -0
- package/disposalreporttablefilter/DisposalReportTableFilter.es.js +74 -0
- package/{components/dropdown/Dropdown.vue.d.ts → dropdown/index.d.ts} +3 -3
- package/dropdown/index.es.js +243 -0
- package/dropdown/package.json +4 -0
- package/editor/Editor.es.js +964 -0
- package/editorbutton/EditorButton.es.js +28 -0
- package/event-bus/index.d.ts +2 -2
- package/event-bus/index.es.js +6 -0
- package/event-bus/mitt.es.js +53 -0
- package/event-bus/package.json +4 -0
- package/fieldwrapper/FieldWrapper.es.js +40 -0
- package/{components/fileupload/FileUpload.vue.d.ts → fileupload/index.d.ts} +3 -3
- package/fileupload/index.es.js +176 -0
- package/fileupload/package.json +4 -0
- package/{components/filtercontainer/FilterContainer.vue.d.ts → filtercontainer/index.d.ts} +7 -10
- package/filtercontainer/index.es.js +290 -0
- package/filtercontainer/package.json +4 -0
- package/form/index.es.js +188 -0
- package/form/package.json +4 -0
- package/hardwaresync/HardwareSync.es.js +236 -0
- package/{components/icon/Icon.vue.d.ts → icon/index.d.ts} +1 -0
- package/icon/index.es.js +82 -0
- package/icon/package.json +4 -0
- package/image/index.es.js +171 -0
- package/image/package.json +4 -0
- package/{components/imagecompressor/ImageCompressor.vue.d.ts → imagecompressor/index.d.ts} +1 -1
- package/imagecompressor/index.es.js +529 -0
- package/imagecompressor/package.json +4 -0
- package/imageinputinfo/ImageInputInfo.es.js +46 -0
- package/inlinemessage/index.es.js +94 -0
- package/inlinemessage/package.json +4 -0
- package/{components/inputbadge/InputBadge.vue.d.ts → inputbadge/index.d.ts} +1 -1
- package/inputbadge/index.es.js +187 -0
- package/inputbadge/package.json +4 -0
- package/inputcurrency/InputCurrency.es.js +150 -0
- package/{components/inputcurrency/helpers/currency.helper.d.ts → inputcurrency/helpers/index.d.ts} +1 -1
- package/inputcurrency/helpers/index.es.js +5 -0
- package/inputcurrency/helpers/package.json +4 -0
- package/{components/inputcurrency/InputCurrency.vue.d.ts → inputcurrency/index.d.ts} +1 -1
- package/inputcurrency/index.es.js +4 -0
- package/inputcurrency/package.json +4 -0
- package/{components/inputemail/InputEmail.vue.d.ts → inputemail/index.d.ts} +1 -1
- package/inputemail/index.es.js +49 -0
- package/inputemail/package.json +4 -0
- package/inputgroup/InputGroup.es.js +31 -0
- package/{components/inputnumber/InputNumber.vue.d.ts → inputnumber/index.d.ts} +1 -1
- package/inputnumber/index.es.js +240 -0
- package/inputnumber/package.json +4 -0
- package/inputotp/index.es.js +30 -0
- package/inputotp/package.json +4 -0
- package/{components/inputpassword/InputPassword.vue.d.ts → inputpassword/index.d.ts} +1 -1
- package/inputpassword/index.es.js +121 -0
- package/inputpassword/package.json +4 -0
- package/inputphonenumber/index.es.js +593 -0
- package/inputphonenumber/package.json +4 -0
- package/{components/inputrangenumber/InputRangeNumber.vue.d.ts → inputrangenumber/index.d.ts} +1 -1
- package/inputrangenumber/index.es.js +134 -0
- package/inputrangenumber/package.json +4 -0
- package/{components/inputsearch/InputSearch.vue.d.ts → inputsearch/index.d.ts} +1 -4
- package/inputsearch/index.es.js +53 -0
- package/inputsearch/package.json +4 -0
- package/{components/inputtext/InputText.vue.d.ts → inputtext/index.d.ts} +1 -1
- package/inputtext/index.es.js +242 -0
- package/inputtext/package.json +4 -0
- package/{components/inputurl/InputURL.vue.d.ts → inputurl/index.d.ts} +1 -4
- package/inputurl/index.es.js +61 -0
- package/inputurl/package.json +4 -0
- package/invisiblefield/index.es.js +27 -0
- package/invisiblefield/package.json +4 -0
- package/{components/languagedropdown/LanguageDropdown.vue.d.ts → languagedropdown/index.d.ts} +1 -4
- package/languagedropdownoption/LanguageDropdownOption.es.js +51 -0
- package/languageswitcher/index.es.js +88 -0
- package/languageswitcher/package.json +4 -0
- package/{components/litedropdown/LiteDropdown.vue.d.ts → litedropdown/index.d.ts} +1 -1
- package/litedropdown/index.es.js +102 -0
- package/litedropdown/package.json +4 -0
- package/loading/index.es.js +24 -0
- package/loading/package.json +4 -0
- package/loading/store/index.es.js +5 -0
- package/loading/store/package.json +4 -0
- package/mentionlist/MentionList.es.js +58 -0
- package/mentionsection/MentionSection.es.js +52 -0
- package/menu/index.es.js +73 -0
- package/menu/package.json +4 -0
- package/menuitem/MenuItem.es.js +65 -0
- package/{components/menuitem → menuitem}/index.d.ts +1 -1
- package/multirow/MultiRow.es.js +52 -0
- package/{components/multiselect/MultiSelect.vue.d.ts → multiselect/index.d.ts} +2 -6
- package/multiselect/index.es.js +189 -0
- package/multiselect/package.json +4 -0
- package/overlaypanel/index.es.js +49 -0
- package/overlaypanel/package.json +4 -0
- package/package.json +10 -11
- package/paginator/index.es.js +50 -0
- package/paginator/package.json +4 -0
- package/plugins/VueHtmlToPaper.es.js +40 -0
- package/plugins/WangsVue.d.ts +31 -46
- package/plugins/WangsVue.es.js +345 -0
- package/plugins/basei18n.es.js +88 -0
- package/plugins/formValidation.es.js +15 -0
- package/plugins/i18n-extension.d.ts +2 -0
- package/plugins/i18n.es.js +8 -0
- package/plugins/package.json +4 -0
- package/stats.html +1 -1
- package/{components/steps/Steps.vue.d.ts → steps/index.d.ts} +1 -1
- package/steps/index.es.js +41 -0
- package/steps/package.json +4 -0
- package/style.css +3 -1
- package/tabmenu/index.es.js +29 -0
- package/tabmenu/package.json +4 -0
- package/tagtype/index.es.js +53 -0
- package/tagtype/package.json +4 -0
- package/{components/textarea/Textarea.vue.d.ts → textarea/index.d.ts} +1 -1
- package/textarea/index.es.js +108 -0
- package/textarea/package.json +4 -0
- package/{components/timeline/Timeline.vue.d.ts → timeline/index.d.ts} +2 -2
- package/timeline/index.es.js +127 -0
- package/timeline/package.json +4 -0
- package/timelinecontentbytype/TimelineContentByType.es.js +111 -0
- package/{components/toast/Toast.vue.d.ts → toast/index.d.ts} +1 -1
- package/toast/index.es.js +74 -0
- package/toast/package.json +4 -0
- package/toast/service/index.d.ts +1 -0
- package/toast/service/index.es.js +102 -0
- package/toast/service/package.json +4 -0
- package/toggleswitch/index.es.js +90 -0
- package/toggleswitch/package.json +4 -0
- package/transactionroles/index.es.js +223 -0
- package/transactionroles/package.json +4 -0
- package/tree/Tree.es.js +271 -0
- package/{components/tree → tree}/helpers/flattenTreeNodeChildren.helper.d.ts +1 -1
- package/{components/tree/Tree.vue.d.ts → tree/index.d.ts} +4 -3
- package/tree/index.es.js +4 -0
- package/tree/package.json +4 -0
- package/treenode/TreeNode.es.js +506 -0
- package/{components/basetree/TreeNode.vue.d.ts → treenode/index.d.ts} +1 -1
- package/treesearchinput/TreeSearchInput.es.js +56 -0
- package/username/index.es.js +146 -0
- package/username/package.json +4 -0
- package/{components/userwithicon/UserWithIcon.vue.d.ts → userwithicon/index.d.ts} +1 -1
- package/userwithicon/index.es.js +18 -0
- package/userwithicon/package.json +4 -0
- package/utils/addAttachment.util.es.js +10 -0
- package/utils/baseToast.util.d.ts +120 -0
- package/utils/baseToast.util.es.js +44 -0
- package/utils/date.util.es.js +219 -0
- package/utils/exportToExcel.util.d.ts +2 -6
- package/utils/exportToExcel.util.es.js +55 -0
- package/utils/filterOptions.util.es.js +4 -0
- package/utils/formatTagCode.util.es.js +18 -0
- package/utils/genPlaceholder.util.es.js +37 -0
- package/utils/getStatusSeverity.util.d.ts +1 -1
- package/utils/getStatusSeverity.util.es.js +37 -0
- package/utils/index.d.ts +3 -2
- package/utils/index.es.js +36 -0
- package/utils/isBasic.util.es.js +4 -0
- package/utils/listenSidebarChanges.util.d.ts +1 -1
- package/utils/listenSidebarChanges.util.es.js +15 -0
- package/utils/mergePropsWithDefaults.util.es.js +9 -0
- package/utils/object.util.es.js +61 -0
- package/utils/package.json +4 -0
- package/utils/role.util.es.js +71 -0
- package/utils/textFormatter.util.d.ts +29 -0
- package/utils/textFormatter.util.es.js +21 -0
- package/utils/toast.util.d.ts +3 -119
- package/utils/toast.util.es.js +15 -0
- package/utils/xlsx.util.es.js +6 -0
- package/validatormessage/index.es.js +19 -0
- package/validatormessage/package.json +4 -0
- package/vendor/@popperjs/core/lib/createPopper.es.js +122 -0
- package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +18 -0
- package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +23 -0
- package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +37 -0
- package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +32 -0
- package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +17 -0
- package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +9 -0
- package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +13 -0
- package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +6 -0
- package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +35 -0
- package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +18 -0
- package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +21 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +12 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +11 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +9 -0
- package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +20 -0
- package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +8 -0
- package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +16 -0
- package/vendor/@popperjs/core/lib/enums.es.js +22 -0
- package/vendor/@popperjs/core/lib/index.es.js +1 -0
- package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +47 -0
- package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +37 -0
- package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +98 -0
- package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +26 -0
- package/vendor/@popperjs/core/lib/modifiers/flip.es.js +74 -0
- package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -0
- package/vendor/@popperjs/core/lib/modifiers/index.es.js +1 -0
- package/vendor/@popperjs/core/lib/modifiers/offset.es.js +30 -0
- package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +19 -0
- package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +54 -0
- package/vendor/@popperjs/core/lib/popper-lite.es.js +1 -0
- package/vendor/@popperjs/core/lib/popper.es.js +16 -0
- package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +27 -0
- package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +54 -0
- package/vendor/@popperjs/core/lib/utils/debounce.es.js +13 -0
- package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +33 -0
- package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +8 -0
- package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +11 -0
- package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +14 -0
- package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +12 -0
- package/vendor/@popperjs/core/lib/utils/getVariation.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/math.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +15 -0
- package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +7 -0
- package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +31 -0
- package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +11 -0
- package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -0
- package/vendor/@popperjs/core/lib/utils/within.es.js +12 -0
- package/vendor/@tiptap/core/dist/index.es.js +2868 -0
- package/vendor/@tiptap/extension-bold/dist/index.es.js +71 -0
- package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +128 -0
- package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +53 -0
- package/vendor/@tiptap/extension-code/dist/index.es.js +51 -0
- package/vendor/@tiptap/extension-document/dist/index.es.js +9 -0
- package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +99 -0
- package/vendor/@tiptap/extension-heading/dist/index.es.js +54 -0
- package/vendor/@tiptap/extension-history/dist/index.es.js +35 -0
- package/vendor/@tiptap/extension-image/dist/index.es.js +64 -0
- package/vendor/@tiptap/extension-italic/dist/index.es.js +70 -0
- package/vendor/@tiptap/extension-link/dist/index.es.js +262 -0
- package/vendor/@tiptap/extension-list-item/dist/index.es.js +33 -0
- package/vendor/@tiptap/extension-mention/dist/index.es.js +130 -0
- package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +71 -0
- package/vendor/@tiptap/extension-paragraph/dist/index.es.js +33 -0
- package/vendor/@tiptap/extension-placeholder/dist/index.es.js +52 -0
- package/vendor/@tiptap/extension-text/dist/index.es.js +8 -0
- package/vendor/@tiptap/extension-underline/dist/index.es.js +40 -0
- package/vendor/@tiptap/pm/commands/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/history/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/keymap/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/model/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/schema-list/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/state/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/transform/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/view/dist/index.es.js +1 -0
- package/vendor/@tiptap/suggestion/dist/index.es.js +131 -0
- package/vendor/@tiptap/vue-3/dist/index.es.js +436 -0
- package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +19 -0
- package/vendor/@wangs-ui/core/components/p-BaJo52da.es.js +135 -0
- package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +149 -0
- package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +57 -0
- package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +158 -0
- package/vendor/@wangs-ui/core/components/p-DBIHoawY.es.js +171 -0
- package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +700 -0
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +34 -0
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +5 -0
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +5 -0
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +5 -0
- package/vendor/@wangs-ui/core/dist/esm/index-BRm3UDZx.es.js +324 -0
- package/vendor/@wangs-ui/core/dist/esm/index.es.js +1 -0
- package/vendor/@wangs-ui/core/dist/index.es.js +1 -0
- package/vendor/@wangs-ui/vue/dist/index.es.js +98 -0
- package/vendor/base64toblob/base64toblob.es.js +21 -0
- package/vendor/dijkstrajs/dijkstra.es.js +71 -0
- package/vendor/highlight.js/es/core.es.js +7 -0
- package/vendor/highlight.js/es/languages/javascript.es.js +656 -0
- package/vendor/highlight.js/es/languages/json.es.js +38 -0
- package/vendor/highlight.js/es/languages/typescript.es.js +743 -0
- package/vendor/highlight.js/es/languages/vbscript-html.es.js +16 -0
- package/vendor/highlight.js/lib/core.es.js +1063 -0
- package/vendor/linkifyjs/dist/linkify.es.es.js +705 -0
- package/vendor/lodash/_Symbol.es.js +11 -0
- package/vendor/lodash/_baseGetTag.es.js +16 -0
- package/vendor/lodash/_baseTrim.es.js +14 -0
- package/vendor/lodash/_freeGlobal.es.js +11 -0
- package/vendor/lodash/_getRawTag.es.js +21 -0
- package/vendor/lodash/_objectToString.es.js +13 -0
- package/vendor/lodash/_root.es.js +11 -0
- package/vendor/lodash/_trimmedEndIndex.es.js +15 -0
- package/vendor/lodash/debounce.es.js +60 -0
- package/vendor/lodash/isObject.es.js +13 -0
- package/vendor/lodash/isObjectLike.es.js +12 -0
- package/vendor/lodash/isSymbol.es.js +15 -0
- package/vendor/lodash/now.es.js +13 -0
- package/vendor/lodash/throttle.es.js +22 -0
- package/vendor/lodash/toNumber.es.js +28 -0
- package/vendor/lodash-es/_DataView.es.js +6 -0
- package/vendor/lodash-es/_Hash.es.js +20 -0
- package/vendor/lodash-es/_LazyWrapper.es.js +1 -0
- package/vendor/lodash-es/_ListCache.es.js +20 -0
- package/vendor/lodash-es/_LodashWrapper.es.js +1 -0
- package/vendor/lodash-es/_Map.es.js +6 -0
- package/vendor/lodash-es/_MapCache.es.js +20 -0
- package/vendor/lodash-es/_Promise.es.js +6 -0
- package/vendor/lodash-es/_Set.es.js +6 -0
- package/vendor/lodash-es/_SetCache.es.js +13 -0
- package/vendor/lodash-es/_Stack.es.js +18 -0
- package/vendor/lodash-es/_Symbol.es.js +5 -0
- package/vendor/lodash-es/_Uint8Array.es.js +5 -0
- package/vendor/lodash-es/_WeakMap.es.js +6 -0
- package/vendor/lodash-es/_apply.es.js +1 -0
- package/vendor/lodash-es/_arrayAggregator.es.js +1 -0
- package/vendor/lodash-es/_arrayEach.es.js +8 -0
- package/vendor/lodash-es/_arrayEachRight.es.js +1 -0
- package/vendor/lodash-es/_arrayEvery.es.js +1 -0
- package/vendor/lodash-es/_arrayFilter.es.js +10 -0
- package/vendor/lodash-es/_arrayIncludes.es.js +1 -0
- package/vendor/lodash-es/_arrayIncludesWith.es.js +1 -0
- package/vendor/lodash-es/_arrayLikeKeys.es.js +20 -0
- package/vendor/lodash-es/_arrayMap.es.js +1 -0
- package/vendor/lodash-es/_arrayPush.es.js +8 -0
- package/vendor/lodash-es/_arrayReduce.es.js +1 -0
- package/vendor/lodash-es/_arrayReduceRight.es.js +1 -0
- package/vendor/lodash-es/_arraySample.es.js +1 -0
- package/vendor/lodash-es/_arraySampleSize.es.js +1 -0
- package/vendor/lodash-es/_arrayShuffle.es.js +1 -0
- package/vendor/lodash-es/_arraySome.es.js +9 -0
- package/vendor/lodash-es/_asciiSize.es.js +1 -0
- package/vendor/lodash-es/_asciiToArray.es.js +1 -0
- package/vendor/lodash-es/_asciiWords.es.js +1 -0
- package/vendor/lodash-es/_assignMergeValue.es.js +1 -0
- package/vendor/lodash-es/_assignValue.es.js +10 -0
- package/vendor/lodash-es/_assocIndexOf.es.js +10 -0
- package/vendor/lodash-es/_baseAggregator.es.js +1 -0
- package/vendor/lodash-es/_baseAssign.es.js +1 -0
- package/vendor/lodash-es/_baseAssignIn.es.js +1 -0
- package/vendor/lodash-es/_baseAssignValue.es.js +12 -0
- package/vendor/lodash-es/_baseAt.es.js +1 -0
- package/vendor/lodash-es/_baseClamp.es.js +1 -0
- package/vendor/lodash-es/_baseClone.es.js +55 -0
- package/vendor/lodash-es/_baseConforms.es.js +1 -0
- package/vendor/lodash-es/_baseConformsTo.es.js +1 -0
- package/vendor/lodash-es/_baseCreate.es.js +17 -0
- package/vendor/lodash-es/_baseDelay.es.js +1 -0
- package/vendor/lodash-es/_baseDifference.es.js +1 -0
- package/vendor/lodash-es/_baseEach.es.js +1 -0
- package/vendor/lodash-es/_baseEachRight.es.js +1 -0
- package/vendor/lodash-es/_baseEvery.es.js +1 -0
- package/vendor/lodash-es/_baseExtremum.es.js +1 -0
- package/vendor/lodash-es/_baseFill.es.js +1 -0
- package/vendor/lodash-es/_baseFilter.es.js +1 -0
- package/vendor/lodash-es/_baseFindIndex.es.js +1 -0
- package/vendor/lodash-es/_baseFindKey.es.js +1 -0
- package/vendor/lodash-es/_baseFlatten.es.js +1 -0
- package/vendor/lodash-es/_baseFor.es.js +1 -0
- package/vendor/lodash-es/_baseForOwn.es.js +1 -0
- package/vendor/lodash-es/_baseForOwnRight.es.js +1 -0
- package/vendor/lodash-es/_baseForRight.es.js +1 -0
- package/vendor/lodash-es/_baseFunctions.es.js +1 -0
- package/vendor/lodash-es/_baseGet.es.js +1 -0
- package/vendor/lodash-es/_baseGetAllKeys.es.js +9 -0
- package/vendor/lodash-es/_baseGetTag.es.js +10 -0
- package/vendor/lodash-es/_baseGt.es.js +1 -0
- package/vendor/lodash-es/_baseHas.es.js +1 -0
- package/vendor/lodash-es/_baseHasIn.es.js +1 -0
- package/vendor/lodash-es/_baseInRange.es.js +1 -0
- package/vendor/lodash-es/_baseIndexOf.es.js +1 -0
- package/vendor/lodash-es/_baseIndexOfWith.es.js +1 -0
- package/vendor/lodash-es/_baseIntersection.es.js +1 -0
- package/vendor/lodash-es/_baseInverter.es.js +1 -0
- package/vendor/lodash-es/_baseInvoke.es.js +1 -0
- package/vendor/lodash-es/_baseIsArguments.es.js +9 -0
- package/vendor/lodash-es/_baseIsArrayBuffer.es.js +1 -0
- package/vendor/lodash-es/_baseIsDate.es.js +1 -0
- package/vendor/lodash-es/_baseIsEqual.es.js +8 -0
- package/vendor/lodash-es/_baseIsEqualDeep.es.js +32 -0
- package/vendor/lodash-es/_baseIsMap.es.js +9 -0
- package/vendor/lodash-es/_baseIsMatch.es.js +1 -0
- package/vendor/lodash-es/_baseIsNaN.es.js +1 -0
- package/vendor/lodash-es/_baseIsNative.es.js +16 -0
- package/vendor/lodash-es/_baseIsRegExp.es.js +1 -0
- package/vendor/lodash-es/_baseIsSet.es.js +9 -0
- package/vendor/lodash-es/_baseIsTypedArray.es.js +12 -0
- package/vendor/lodash-es/_baseIteratee.es.js +1 -0
- package/vendor/lodash-es/_baseKeys.es.js +14 -0
- package/vendor/lodash-es/_baseKeysIn.es.js +1 -0
- package/vendor/lodash-es/_baseLodash.es.js +1 -0
- package/vendor/lodash-es/_baseLt.es.js +1 -0
- package/vendor/lodash-es/_baseMap.es.js +1 -0
- package/vendor/lodash-es/_baseMatches.es.js +1 -0
- package/vendor/lodash-es/_baseMatchesProperty.es.js +1 -0
- package/vendor/lodash-es/_baseMean.es.js +1 -0
- package/vendor/lodash-es/_baseMerge.es.js +1 -0
- package/vendor/lodash-es/_baseMergeDeep.es.js +1 -0
- package/vendor/lodash-es/_baseNth.es.js +1 -0
- package/vendor/lodash-es/_baseOrderBy.es.js +1 -0
- package/vendor/lodash-es/_basePick.es.js +1 -0
- package/vendor/lodash-es/_basePickBy.es.js +1 -0
- package/vendor/lodash-es/_baseProperty.es.js +1 -0
- package/vendor/lodash-es/_basePropertyDeep.es.js +1 -0
- package/vendor/lodash-es/_basePropertyOf.es.js +1 -0
- package/vendor/lodash-es/_basePullAll.es.js +1 -0
- package/vendor/lodash-es/_basePullAt.es.js +1 -0
- package/vendor/lodash-es/_baseRandom.es.js +1 -0
- package/vendor/lodash-es/_baseRange.es.js +1 -0
- package/vendor/lodash-es/_baseReduce.es.js +1 -0
- package/vendor/lodash-es/_baseRepeat.es.js +1 -0
- package/vendor/lodash-es/_baseRest.es.js +1 -0
- package/vendor/lodash-es/_baseSample.es.js +1 -0
- package/vendor/lodash-es/_baseSampleSize.es.js +1 -0
- package/vendor/lodash-es/_baseSet.es.js +1 -0
- package/vendor/lodash-es/_baseSetData.es.js +1 -0
- package/vendor/lodash-es/_baseSetToString.es.js +1 -0
- package/vendor/lodash-es/_baseShuffle.es.js +1 -0
- package/vendor/lodash-es/_baseSlice.es.js +1 -0
- package/vendor/lodash-es/_baseSome.es.js +1 -0
- package/vendor/lodash-es/_baseSortBy.es.js +1 -0
- package/vendor/lodash-es/_baseSortedIndex.es.js +1 -0
- package/vendor/lodash-es/_baseSortedIndexBy.es.js +1 -0
- package/vendor/lodash-es/_baseSortedUniq.es.js +1 -0
- package/vendor/lodash-es/_baseSum.es.js +1 -0
- package/vendor/lodash-es/_baseTimes.es.js +8 -0
- package/vendor/lodash-es/_baseToNumber.es.js +1 -0
- package/vendor/lodash-es/_baseToPairs.es.js +1 -0
- package/vendor/lodash-es/_baseToString.es.js +1 -0
- package/vendor/lodash-es/_baseTrim.es.js +8 -0
- package/vendor/lodash-es/_baseUnary.es.js +8 -0
- package/vendor/lodash-es/_baseUniq.es.js +1 -0
- package/vendor/lodash-es/_baseUnset.es.js +1 -0
- package/vendor/lodash-es/_baseUpdate.es.js +1 -0
- package/vendor/lodash-es/_baseValues.es.js +1 -0
- package/vendor/lodash-es/_baseWhile.es.js +1 -0
- package/vendor/lodash-es/_baseWrapperValue.es.js +1 -0
- package/vendor/lodash-es/_baseXor.es.js +1 -0
- package/vendor/lodash-es/_baseZipObject.es.js +1 -0
- package/vendor/lodash-es/_cacheHas.es.js +6 -0
- package/vendor/lodash-es/_castArrayLikeObject.es.js +1 -0
- package/vendor/lodash-es/_castFunction.es.js +1 -0
- package/vendor/lodash-es/_castPath.es.js +1 -0
- package/vendor/lodash-es/_castRest.es.js +1 -0
- package/vendor/lodash-es/_castSlice.es.js +1 -0
- package/vendor/lodash-es/_charsEndIndex.es.js +1 -0
- package/vendor/lodash-es/_charsStartIndex.es.js +1 -0
- package/vendor/lodash-es/_cloneArrayBuffer.es.js +8 -0
- package/vendor/lodash-es/_cloneBuffer.es.js +9 -0
- package/vendor/lodash-es/_cloneDataView.es.js +8 -0
- package/vendor/lodash-es/_cloneRegExp.es.js +8 -0
- package/vendor/lodash-es/_cloneSymbol.es.js +8 -0
- package/vendor/lodash-es/_cloneTypedArray.es.js +8 -0
- package/vendor/lodash-es/_compareAscending.es.js +1 -0
- package/vendor/lodash-es/_compareMultiple.es.js +1 -0
- package/vendor/lodash-es/_composeArgs.es.js +1 -0
- package/vendor/lodash-es/_composeArgsRight.es.js +1 -0
- package/vendor/lodash-es/_copyArray.es.js +1 -0
- package/vendor/lodash-es/_copyObject.es.js +1 -0
- package/vendor/lodash-es/_copySymbols.es.js +1 -0
- package/vendor/lodash-es/_copySymbolsIn.es.js +1 -0
- package/vendor/lodash-es/_coreJsData.es.js +5 -0
- package/vendor/lodash-es/_countHolders.es.js +1 -0
- package/vendor/lodash-es/_createAggregator.es.js +1 -0
- package/vendor/lodash-es/_createAssigner.es.js +1 -0
- package/vendor/lodash-es/_createBaseEach.es.js +1 -0
- package/vendor/lodash-es/_createBaseFor.es.js +1 -0
- package/vendor/lodash-es/_createBind.es.js +1 -0
- package/vendor/lodash-es/_createCaseFirst.es.js +1 -0
- package/vendor/lodash-es/_createCompounder.es.js +1 -0
- package/vendor/lodash-es/_createCtor.es.js +1 -0
- package/vendor/lodash-es/_createCurry.es.js +1 -0
- package/vendor/lodash-es/_createFind.es.js +1 -0
- package/vendor/lodash-es/_createFlow.es.js +1 -0
- package/vendor/lodash-es/_createHybrid.es.js +1 -0
- package/vendor/lodash-es/_createInverter.es.js +1 -0
- package/vendor/lodash-es/_createMathOperation.es.js +1 -0
- package/vendor/lodash-es/_createOver.es.js +1 -0
- package/vendor/lodash-es/_createPadding.es.js +1 -0
- package/vendor/lodash-es/_createPartial.es.js +1 -0
- package/vendor/lodash-es/_createRange.es.js +1 -0
- package/vendor/lodash-es/_createRecurry.es.js +1 -0
- package/vendor/lodash-es/_createRelationalOperation.es.js +1 -0
- package/vendor/lodash-es/_createRound.es.js +1 -0
- package/vendor/lodash-es/_createSet.es.js +1 -0
- package/vendor/lodash-es/_createToPairs.es.js +1 -0
- package/vendor/lodash-es/_createWrap.es.js +1 -0
- package/vendor/lodash-es/_customDefaultsAssignIn.es.js +1 -0
- package/vendor/lodash-es/_customDefaultsMerge.es.js +1 -0
- package/vendor/lodash-es/_customOmitClone.es.js +1 -0
- package/vendor/lodash-es/_deburrLetter.es.js +1 -0
- package/vendor/lodash-es/_defineProperty.es.js +11 -0
- package/vendor/lodash-es/_equalArrays.es.js +40 -0
- package/vendor/lodash-es/_equalByTag.es.js +45 -0
- package/vendor/lodash-es/_equalObjects.es.js +36 -0
- package/vendor/lodash-es/_escapeHtmlChar.es.js +1 -0
- package/vendor/lodash-es/_escapeStringChar.es.js +1 -0
- package/vendor/lodash-es/_flatRest.es.js +1 -0
- package/vendor/lodash-es/_freeGlobal.es.js +4 -0
- package/vendor/lodash-es/_getAllKeys.es.js +9 -0
- package/vendor/lodash-es/_getAllKeysIn.es.js +1 -0
- package/vendor/lodash-es/_getData.es.js +1 -0
- package/vendor/lodash-es/_getFuncName.es.js +1 -0
- package/vendor/lodash-es/_getHolder.es.js +1 -0
- package/vendor/lodash-es/_getMapData.es.js +8 -0
- package/vendor/lodash-es/_getMatchData.es.js +1 -0
- package/vendor/lodash-es/_getNative.es.js +9 -0
- package/vendor/lodash-es/_getPrototype.es.js +5 -0
- package/vendor/lodash-es/_getRawTag.es.js +15 -0
- package/vendor/lodash-es/_getSymbols.es.js +10 -0
- package/vendor/lodash-es/_getSymbolsIn.es.js +1 -0
- package/vendor/lodash-es/_getTag.es.js +28 -0
- package/vendor/lodash-es/_getValue.es.js +6 -0
- package/vendor/lodash-es/_getView.es.js +1 -0
- package/vendor/lodash-es/_getWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_hasPath.es.js +1 -0
- package/vendor/lodash-es/_hasUnicode.es.js +1 -0
- package/vendor/lodash-es/_hasUnicodeWord.es.js +1 -0
- package/vendor/lodash-es/_hashClear.es.js +7 -0
- package/vendor/lodash-es/_hashDelete.es.js +7 -0
- package/vendor/lodash-es/_hashGet.es.js +13 -0
- package/vendor/lodash-es/_hashHas.es.js +9 -0
- package/vendor/lodash-es/_hashSet.es.js +9 -0
- package/vendor/lodash-es/_initCloneArray.es.js +8 -0
- package/vendor/lodash-es/_initCloneByTag.es.js +42 -0
- package/vendor/lodash-es/_initCloneObject.es.js +9 -0
- package/vendor/lodash-es/_insertWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_isFlattenable.es.js +1 -0
- package/vendor/lodash-es/_isIndex.es.js +8 -0
- package/vendor/lodash-es/_isIterateeCall.es.js +1 -0
- package/vendor/lodash-es/_isKey.es.js +1 -0
- package/vendor/lodash-es/_isKeyable.es.js +7 -0
- package/vendor/lodash-es/_isLaziable.es.js +1 -0
- package/vendor/lodash-es/_isMaskable.es.js +1 -0
- package/vendor/lodash-es/_isMasked.es.js +11 -0
- package/vendor/lodash-es/_isPrototype.es.js +8 -0
- package/vendor/lodash-es/_isStrictComparable.es.js +1 -0
- package/vendor/lodash-es/_iteratorToArray.es.js +1 -0
- package/vendor/lodash-es/_lazyClone.es.js +1 -0
- package/vendor/lodash-es/_lazyReverse.es.js +1 -0
- package/vendor/lodash-es/_lazyValue.es.js +1 -0
- package/vendor/lodash-es/_listCacheClear.es.js +6 -0
- package/vendor/lodash-es/_listCacheDelete.es.js +12 -0
- package/vendor/lodash-es/_listCacheGet.es.js +8 -0
- package/vendor/lodash-es/_listCacheHas.es.js +7 -0
- package/vendor/lodash-es/_listCacheSet.es.js +8 -0
- package/vendor/lodash-es/_mapCacheClear.es.js +13 -0
- package/vendor/lodash-es/_mapCacheDelete.es.js +8 -0
- package/vendor/lodash-es/_mapCacheGet.es.js +7 -0
- package/vendor/lodash-es/_mapCacheHas.es.js +7 -0
- package/vendor/lodash-es/_mapCacheSet.es.js +8 -0
- package/vendor/lodash-es/_mapToArray.es.js +9 -0
- package/vendor/lodash-es/_matchesStrictComparable.es.js +1 -0
- package/vendor/lodash-es/_memoizeCapped.es.js +1 -0
- package/vendor/lodash-es/_mergeData.es.js +1 -0
- package/vendor/lodash-es/_metaMap.es.js +1 -0
- package/vendor/lodash-es/_nativeCreate.es.js +5 -0
- package/vendor/lodash-es/_nativeKeys.es.js +5 -0
- package/vendor/lodash-es/_nativeKeysIn.es.js +1 -0
- package/vendor/lodash-es/_nodeUtil.es.js +11 -0
- package/vendor/lodash-es/_objectToString.es.js +7 -0
- package/vendor/lodash-es/_overArg.es.js +8 -0
- package/vendor/lodash-es/_overRest.es.js +1 -0
- package/vendor/lodash-es/_parent.es.js +1 -0
- package/vendor/lodash-es/_reEscape.es.js +1 -0
- package/vendor/lodash-es/_reEvaluate.es.js +1 -0
- package/vendor/lodash-es/_reInterpolate.es.js +1 -0
- package/vendor/lodash-es/_realNames.es.js +1 -0
- package/vendor/lodash-es/_reorder.es.js +1 -0
- package/vendor/lodash-es/_replaceHolders.es.js +1 -0
- package/vendor/lodash-es/_root.es.js +5 -0
- package/vendor/lodash-es/_safeGet.es.js +1 -0
- package/vendor/lodash-es/_setCacheAdd.es.js +7 -0
- package/vendor/lodash-es/_setCacheHas.es.js +6 -0
- package/vendor/lodash-es/_setData.es.js +1 -0
- package/vendor/lodash-es/_setToArray.es.js +9 -0
- package/vendor/lodash-es/_setToPairs.es.js +1 -0
- package/vendor/lodash-es/_setToString.es.js +1 -0
- package/vendor/lodash-es/_setWrapToString.es.js +1 -0
- package/vendor/lodash-es/_shortOut.es.js +1 -0
- package/vendor/lodash-es/_shuffleSelf.es.js +1 -0
- package/vendor/lodash-es/_stackClear.es.js +7 -0
- package/vendor/lodash-es/_stackDelete.es.js +7 -0
- package/vendor/lodash-es/_stackGet.es.js +6 -0
- package/vendor/lodash-es/_stackHas.es.js +6 -0
- package/vendor/lodash-es/_stackSet.es.js +17 -0
- package/vendor/lodash-es/_strictIndexOf.es.js +1 -0
- package/vendor/lodash-es/_strictLastIndexOf.es.js +1 -0
- package/vendor/lodash-es/_stringSize.es.js +1 -0
- package/vendor/lodash-es/_stringToArray.es.js +1 -0
- package/vendor/lodash-es/_stringToPath.es.js +1 -0
- package/vendor/lodash-es/_toKey.es.js +1 -0
- package/vendor/lodash-es/_toSource.es.js +17 -0
- package/vendor/lodash-es/_trimmedEndIndex.es.js +9 -0
- package/vendor/lodash-es/_unescapeHtmlChar.es.js +1 -0
- package/vendor/lodash-es/_unicodeSize.es.js +1 -0
- package/vendor/lodash-es/_unicodeToArray.es.js +1 -0
- package/vendor/lodash-es/_unicodeWords.es.js +1 -0
- package/vendor/lodash-es/_updateWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_wrapperClone.es.js +1 -0
- package/vendor/lodash-es/add.es.js +1 -0
- package/vendor/lodash-es/after.es.js +1 -0
- package/vendor/lodash-es/array.default.es.js +1 -0
- package/vendor/lodash-es/array.es.js +1 -0
- package/vendor/lodash-es/ary.es.js +1 -0
- package/vendor/lodash-es/assign.es.js +1 -0
- package/vendor/lodash-es/assignIn.es.js +1 -0
- package/vendor/lodash-es/assignInWith.es.js +1 -0
- package/vendor/lodash-es/assignWith.es.js +1 -0
- package/vendor/lodash-es/at.es.js +1 -0
- package/vendor/lodash-es/attempt.es.js +1 -0
- package/vendor/lodash-es/before.es.js +1 -0
- package/vendor/lodash-es/bind.es.js +1 -0
- package/vendor/lodash-es/bindAll.es.js +1 -0
- package/vendor/lodash-es/bindKey.es.js +1 -0
- package/vendor/lodash-es/camelCase.es.js +1 -0
- package/vendor/lodash-es/capitalize.es.js +1 -0
- package/vendor/lodash-es/castArray.es.js +1 -0
- package/vendor/lodash-es/ceil.es.js +1 -0
- package/vendor/lodash-es/chain.es.js +1 -0
- package/vendor/lodash-es/chunk.es.js +1 -0
- package/vendor/lodash-es/clamp.es.js +1 -0
- package/vendor/lodash-es/clone.es.js +1 -0
- package/vendor/lodash-es/cloneDeep.es.js +8 -0
- package/vendor/lodash-es/cloneDeepWith.es.js +1 -0
- package/vendor/lodash-es/cloneWith.es.js +1 -0
- package/vendor/lodash-es/collection.default.es.js +1 -0
- package/vendor/lodash-es/collection.es.js +1 -0
- package/vendor/lodash-es/commit.es.js +1 -0
- package/vendor/lodash-es/compact.es.js +1 -0
- package/vendor/lodash-es/concat.es.js +1 -0
- package/vendor/lodash-es/cond.es.js +1 -0
- package/vendor/lodash-es/conforms.es.js +1 -0
- package/vendor/lodash-es/conformsTo.es.js +1 -0
- package/vendor/lodash-es/constant.es.js +1 -0
- package/vendor/lodash-es/countBy.es.js +1 -0
- package/vendor/lodash-es/create.es.js +1 -0
- package/vendor/lodash-es/curry.es.js +1 -0
- package/vendor/lodash-es/curryRight.es.js +1 -0
- package/vendor/lodash-es/date.default.es.js +1 -0
- package/vendor/lodash-es/date.es.js +1 -0
- package/vendor/lodash-es/debounce.es.js +54 -0
- package/vendor/lodash-es/deburr.es.js +1 -0
- package/vendor/lodash-es/defaultTo.es.js +1 -0
- package/vendor/lodash-es/defaults.es.js +1 -0
- package/vendor/lodash-es/defaultsDeep.es.js +1 -0
- package/vendor/lodash-es/defer.es.js +1 -0
- package/vendor/lodash-es/delay.es.js +1 -0
- package/vendor/lodash-es/difference.es.js +1 -0
- package/vendor/lodash-es/differenceBy.es.js +1 -0
- package/vendor/lodash-es/differenceWith.es.js +1 -0
- package/vendor/lodash-es/divide.es.js +1 -0
- package/vendor/lodash-es/drop.es.js +1 -0
- package/vendor/lodash-es/dropRight.es.js +1 -0
- package/vendor/lodash-es/dropRightWhile.es.js +1 -0
- package/vendor/lodash-es/dropWhile.es.js +1 -0
- package/vendor/lodash-es/each.es.js +1 -0
- package/vendor/lodash-es/eachRight.es.js +1 -0
- package/vendor/lodash-es/endsWith.es.js +1 -0
- package/vendor/lodash-es/entries.es.js +1 -0
- package/vendor/lodash-es/entriesIn.es.js +1 -0
- package/vendor/lodash-es/eq.es.js +6 -0
- package/vendor/lodash-es/escape.es.js +1 -0
- package/vendor/lodash-es/escapeRegExp.es.js +1 -0
- package/vendor/lodash-es/every.es.js +1 -0
- package/vendor/lodash-es/extend.es.js +1 -0
- package/vendor/lodash-es/extendWith.es.js +1 -0
- package/vendor/lodash-es/fill.es.js +1 -0
- package/vendor/lodash-es/filter.es.js +1 -0
- package/vendor/lodash-es/find.es.js +1 -0
- package/vendor/lodash-es/findIndex.es.js +1 -0
- package/vendor/lodash-es/findKey.es.js +1 -0
- package/vendor/lodash-es/findLast.es.js +1 -0
- package/vendor/lodash-es/findLastIndex.es.js +1 -0
- package/vendor/lodash-es/findLastKey.es.js +1 -0
- package/vendor/lodash-es/first.es.js +1 -0
- package/vendor/lodash-es/flatMap.es.js +1 -0
- package/vendor/lodash-es/flatMapDeep.es.js +1 -0
- package/vendor/lodash-es/flatMapDepth.es.js +1 -0
- package/vendor/lodash-es/flatten.es.js +1 -0
- package/vendor/lodash-es/flattenDeep.es.js +1 -0
- package/vendor/lodash-es/flattenDepth.es.js +1 -0
- package/vendor/lodash-es/flip.es.js +1 -0
- package/vendor/lodash-es/floor.es.js +1 -0
- package/vendor/lodash-es/flow.es.js +1 -0
- package/vendor/lodash-es/flowRight.es.js +1 -0
- package/vendor/lodash-es/forEach.es.js +1 -0
- package/vendor/lodash-es/forEachRight.es.js +1 -0
- package/vendor/lodash-es/forIn.es.js +1 -0
- package/vendor/lodash-es/forInRight.es.js +1 -0
- package/vendor/lodash-es/forOwn.es.js +1 -0
- package/vendor/lodash-es/forOwnRight.es.js +1 -0
- package/vendor/lodash-es/fromPairs.es.js +1 -0
- package/vendor/lodash-es/function.default.es.js +1 -0
- package/vendor/lodash-es/function.es.js +1 -0
- package/vendor/lodash-es/functions.es.js +1 -0
- package/vendor/lodash-es/functionsIn.es.js +1 -0
- package/vendor/lodash-es/get.es.js +1 -0
- package/vendor/lodash-es/groupBy.es.js +1 -0
- package/vendor/lodash-es/gt.es.js +1 -0
- package/vendor/lodash-es/gte.es.js +1 -0
- package/vendor/lodash-es/has.es.js +1 -0
- package/vendor/lodash-es/hasIn.es.js +1 -0
- package/vendor/lodash-es/head.es.js +1 -0
- package/vendor/lodash-es/identity.es.js +1 -0
- package/vendor/lodash-es/inRange.es.js +1 -0
- package/vendor/lodash-es/includes.es.js +1 -0
- package/vendor/lodash-es/indexOf.es.js +1 -0
- package/vendor/lodash-es/initial.es.js +1 -0
- package/vendor/lodash-es/intersection.es.js +1 -0
- package/vendor/lodash-es/intersectionBy.es.js +1 -0
- package/vendor/lodash-es/intersectionWith.es.js +1 -0
- package/vendor/lodash-es/invert.es.js +1 -0
- package/vendor/lodash-es/invertBy.es.js +1 -0
- package/vendor/lodash-es/invoke.es.js +1 -0
- package/vendor/lodash-es/invokeMap.es.js +1 -0
- package/vendor/lodash-es/isArguments.es.js +10 -0
- package/vendor/lodash-es/isArray.es.js +4 -0
- package/vendor/lodash-es/isArrayBuffer.es.js +1 -0
- package/vendor/lodash-es/isArrayLike.es.js +8 -0
- package/vendor/lodash-es/isArrayLikeObject.es.js +1 -0
- package/vendor/lodash-es/isBoolean.es.js +1 -0
- package/vendor/lodash-es/isBuffer.es.js +6 -0
- package/vendor/lodash-es/isDate.es.js +1 -0
- package/vendor/lodash-es/isElement.es.js +1 -0
- package/vendor/lodash-es/isEmpty.es.js +1 -0
- package/vendor/lodash-es/isEqual.es.js +7 -0
- package/vendor/lodash-es/isEqualWith.es.js +1 -0
- package/vendor/lodash-es/isError.es.js +1 -0
- package/vendor/lodash-es/isFinite.es.js +1 -0
- package/vendor/lodash-es/isFunction.es.js +12 -0
- package/vendor/lodash-es/isInteger.es.js +1 -0
- package/vendor/lodash-es/isLength.es.js +7 -0
- package/vendor/lodash-es/isMap.es.js +7 -0
- package/vendor/lodash-es/isMatch.es.js +1 -0
- package/vendor/lodash-es/isMatchWith.es.js +1 -0
- package/vendor/lodash-es/isNaN.es.js +1 -0
- package/vendor/lodash-es/isNative.es.js +1 -0
- package/vendor/lodash-es/isNil.es.js +1 -0
- package/vendor/lodash-es/isNull.es.js +1 -0
- package/vendor/lodash-es/isNumber.es.js +1 -0
- package/vendor/lodash-es/isObject.es.js +7 -0
- package/vendor/lodash-es/isObjectLike.es.js +6 -0
- package/vendor/lodash-es/isPlainObject.es.js +1 -0
- package/vendor/lodash-es/isRegExp.es.js +1 -0
- package/vendor/lodash-es/isSafeInteger.es.js +1 -0
- package/vendor/lodash-es/isSet.es.js +7 -0
- package/vendor/lodash-es/isString.es.js +1 -0
- package/vendor/lodash-es/isSymbol.es.js +9 -0
- package/vendor/lodash-es/isTypedArray.es.js +7 -0
- package/vendor/lodash-es/isUndefined.es.js +1 -0
- package/vendor/lodash-es/isWeakMap.es.js +1 -0
- package/vendor/lodash-es/isWeakSet.es.js +1 -0
- package/vendor/lodash-es/iteratee.es.js +1 -0
- package/vendor/lodash-es/join.es.js +1 -0
- package/vendor/lodash-es/kebabCase.es.js +1 -0
- package/vendor/lodash-es/keyBy.es.js +1 -0
- package/vendor/lodash-es/keys.es.js +9 -0
- package/vendor/lodash-es/keysIn.es.js +1 -0
- package/vendor/lodash-es/lang.default.es.js +1 -0
- package/vendor/lodash-es/lang.es.js +1 -0
- package/vendor/lodash-es/last.es.js +1 -0
- package/vendor/lodash-es/lastIndexOf.es.js +1 -0
- package/vendor/lodash-es/lodash.default.es.js +1 -0
- package/vendor/lodash-es/lodash.es.js +1 -0
- package/vendor/lodash-es/lowerCase.es.js +1 -0
- package/vendor/lodash-es/lowerFirst.es.js +1 -0
- package/vendor/lodash-es/lt.es.js +1 -0
- package/vendor/lodash-es/lte.es.js +1 -0
- package/vendor/lodash-es/map.es.js +1 -0
- package/vendor/lodash-es/mapKeys.es.js +1 -0
- package/vendor/lodash-es/mapValues.es.js +1 -0
- package/vendor/lodash-es/matches.es.js +1 -0
- package/vendor/lodash-es/matchesProperty.es.js +1 -0
- package/vendor/lodash-es/math.default.es.js +1 -0
- package/vendor/lodash-es/math.es.js +1 -0
- package/vendor/lodash-es/max.es.js +1 -0
- package/vendor/lodash-es/maxBy.es.js +1 -0
- package/vendor/lodash-es/mean.es.js +1 -0
- package/vendor/lodash-es/meanBy.es.js +1 -0
- package/vendor/lodash-es/memoize.es.js +1 -0
- package/vendor/lodash-es/merge.es.js +1 -0
- package/vendor/lodash-es/mergeWith.es.js +1 -0
- package/vendor/lodash-es/method.es.js +1 -0
- package/vendor/lodash-es/methodOf.es.js +1 -0
- package/vendor/lodash-es/min.es.js +1 -0
- package/vendor/lodash-es/minBy.es.js +1 -0
- package/vendor/lodash-es/mixin.es.js +1 -0
- package/vendor/lodash-es/multiply.es.js +1 -0
- package/vendor/lodash-es/negate.es.js +1 -0
- package/vendor/lodash-es/next.es.js +1 -0
- package/vendor/lodash-es/noop.es.js +1 -0
- package/vendor/lodash-es/now.es.js +7 -0
- package/vendor/lodash-es/nth.es.js +1 -0
- package/vendor/lodash-es/nthArg.es.js +1 -0
- package/vendor/lodash-es/number.default.es.js +1 -0
- package/vendor/lodash-es/number.es.js +1 -0
- package/vendor/lodash-es/object.default.es.js +1 -0
- package/vendor/lodash-es/object.es.js +1 -0
- package/vendor/lodash-es/omit.es.js +1 -0
- package/vendor/lodash-es/omitBy.es.js +1 -0
- package/vendor/lodash-es/once.es.js +1 -0
- package/vendor/lodash-es/orderBy.es.js +1 -0
- package/vendor/lodash-es/over.es.js +1 -0
- package/vendor/lodash-es/overArgs.es.js +1 -0
- package/vendor/lodash-es/overEvery.es.js +1 -0
- package/vendor/lodash-es/overSome.es.js +1 -0
- package/vendor/lodash-es/pad.es.js +1 -0
- package/vendor/lodash-es/padEnd.es.js +1 -0
- package/vendor/lodash-es/padStart.es.js +1 -0
- package/vendor/lodash-es/parseInt.es.js +1 -0
- package/vendor/lodash-es/partial.es.js +1 -0
- package/vendor/lodash-es/partialRight.es.js +1 -0
- package/vendor/lodash-es/partition.es.js +1 -0
- package/vendor/lodash-es/pick.es.js +1 -0
- package/vendor/lodash-es/pickBy.es.js +1 -0
- package/vendor/lodash-es/plant.es.js +1 -0
- package/vendor/lodash-es/property.es.js +1 -0
- package/vendor/lodash-es/propertyOf.es.js +1 -0
- package/vendor/lodash-es/pull.es.js +1 -0
- package/vendor/lodash-es/pullAll.es.js +1 -0
- package/vendor/lodash-es/pullAllBy.es.js +1 -0
- package/vendor/lodash-es/pullAllWith.es.js +1 -0
- package/vendor/lodash-es/pullAt.es.js +1 -0
- package/vendor/lodash-es/random.es.js +1 -0
- package/vendor/lodash-es/range.es.js +1 -0
- package/vendor/lodash-es/rangeRight.es.js +1 -0
- package/vendor/lodash-es/rearg.es.js +1 -0
- package/vendor/lodash-es/reduce.es.js +1 -0
- package/vendor/lodash-es/reduceRight.es.js +1 -0
- package/vendor/lodash-es/reject.es.js +1 -0
- package/vendor/lodash-es/remove.es.js +1 -0
- package/vendor/lodash-es/repeat.es.js +1 -0
- package/vendor/lodash-es/replace.es.js +1 -0
- package/vendor/lodash-es/rest.es.js +1 -0
- package/vendor/lodash-es/result.es.js +1 -0
- package/vendor/lodash-es/reverse.es.js +1 -0
- package/vendor/lodash-es/round.es.js +1 -0
- package/vendor/lodash-es/sample.es.js +1 -0
- package/vendor/lodash-es/sampleSize.es.js +1 -0
- package/vendor/lodash-es/seq.default.es.js +1 -0
- package/vendor/lodash-es/seq.es.js +1 -0
- package/vendor/lodash-es/set.es.js +1 -0
- package/vendor/lodash-es/setWith.es.js +1 -0
- package/vendor/lodash-es/shuffle.es.js +1 -0
- package/vendor/lodash-es/size.es.js +1 -0
- package/vendor/lodash-es/slice.es.js +1 -0
- package/vendor/lodash-es/snakeCase.es.js +1 -0
- package/vendor/lodash-es/some.es.js +1 -0
- package/vendor/lodash-es/sortBy.es.js +1 -0
- package/vendor/lodash-es/sortedIndex.es.js +1 -0
- package/vendor/lodash-es/sortedIndexBy.es.js +1 -0
- package/vendor/lodash-es/sortedIndexOf.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndex.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndexBy.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndexOf.es.js +1 -0
- package/vendor/lodash-es/sortedUniq.es.js +1 -0
- package/vendor/lodash-es/sortedUniqBy.es.js +1 -0
- package/vendor/lodash-es/split.es.js +1 -0
- package/vendor/lodash-es/spread.es.js +1 -0
- package/vendor/lodash-es/startCase.es.js +1 -0
- package/vendor/lodash-es/startsWith.es.js +1 -0
- package/vendor/lodash-es/string.default.es.js +1 -0
- package/vendor/lodash-es/string.es.js +1 -0
- package/vendor/lodash-es/stubArray.es.js +6 -0
- package/vendor/lodash-es/stubFalse.es.js +6 -0
- package/vendor/lodash-es/stubObject.es.js +1 -0
- package/vendor/lodash-es/stubString.es.js +1 -0
- package/vendor/lodash-es/stubTrue.es.js +1 -0
- package/vendor/lodash-es/subtract.es.js +1 -0
- package/vendor/lodash-es/sum.es.js +1 -0
- package/vendor/lodash-es/sumBy.es.js +1 -0
- package/vendor/lodash-es/tail.es.js +1 -0
- package/vendor/lodash-es/take.es.js +1 -0
- package/vendor/lodash-es/takeRight.es.js +1 -0
- package/vendor/lodash-es/takeRightWhile.es.js +1 -0
- package/vendor/lodash-es/takeWhile.es.js +1 -0
- package/vendor/lodash-es/tap.es.js +1 -0
- package/vendor/lodash-es/template.es.js +1 -0
- package/vendor/lodash-es/templateSettings.es.js +1 -0
- package/vendor/lodash-es/throttle.es.js +1 -0
- package/vendor/lodash-es/thru.es.js +1 -0
- package/vendor/lodash-es/times.es.js +1 -0
- package/vendor/lodash-es/toArray.es.js +1 -0
- package/vendor/lodash-es/toFinite.es.js +1 -0
- package/vendor/lodash-es/toInteger.es.js +1 -0
- package/vendor/lodash-es/toIterator.es.js +1 -0
- package/vendor/lodash-es/toJSON.es.js +1 -0
- package/vendor/lodash-es/toLength.es.js +1 -0
- package/vendor/lodash-es/toLower.es.js +1 -0
- package/vendor/lodash-es/toNumber.es.js +22 -0
- package/vendor/lodash-es/toPairs.es.js +1 -0
- package/vendor/lodash-es/toPairsIn.es.js +1 -0
- package/vendor/lodash-es/toPath.es.js +1 -0
- package/vendor/lodash-es/toPlainObject.es.js +1 -0
- package/vendor/lodash-es/toSafeInteger.es.js +1 -0
- package/vendor/lodash-es/toString.es.js +6 -0
- package/vendor/lodash-es/toUpper.es.js +1 -0
- package/vendor/lodash-es/transform.es.js +1 -0
- package/vendor/lodash-es/trim.es.js +1 -0
- package/vendor/lodash-es/trimEnd.es.js +1 -0
- package/vendor/lodash-es/trimStart.es.js +1 -0
- package/vendor/lodash-es/truncate.es.js +1 -0
- package/vendor/lodash-es/unary.es.js +1 -0
- package/vendor/lodash-es/unescape.es.js +1 -0
- package/vendor/lodash-es/union.es.js +1 -0
- package/vendor/lodash-es/unionBy.es.js +1 -0
- package/vendor/lodash-es/unionWith.es.js +1 -0
- package/vendor/lodash-es/uniq.es.js +1 -0
- package/vendor/lodash-es/uniqBy.es.js +1 -0
- package/vendor/lodash-es/uniqWith.es.js +1 -0
- package/vendor/lodash-es/uniqueId.es.js +9 -0
- package/vendor/lodash-es/unset.es.js +1 -0
- package/vendor/lodash-es/unzip.es.js +1 -0
- package/vendor/lodash-es/unzipWith.es.js +1 -0
- package/vendor/lodash-es/update.es.js +1 -0
- package/vendor/lodash-es/updateWith.es.js +1 -0
- package/vendor/lodash-es/upperCase.es.js +1 -0
- package/vendor/lodash-es/upperFirst.es.js +1 -0
- package/vendor/lodash-es/util.default.es.js +1 -0
- package/vendor/lodash-es/util.es.js +1 -0
- package/vendor/lodash-es/value.es.js +1 -0
- package/vendor/lodash-es/valueOf.es.js +1 -0
- package/vendor/lodash-es/values.es.js +1 -0
- package/vendor/lodash-es/valuesIn.es.js +1 -0
- package/vendor/lodash-es/without.es.js +1 -0
- package/vendor/lodash-es/words.es.js +1 -0
- package/vendor/lodash-es/wrap.es.js +1 -0
- package/vendor/lodash-es/wrapperAt.es.js +1 -0
- package/vendor/lodash-es/wrapperChain.es.js +1 -0
- package/vendor/lodash-es/wrapperLodash.es.js +1 -0
- package/vendor/lodash-es/wrapperReverse.es.js +1 -0
- package/vendor/lodash-es/wrapperValue.es.js +1 -0
- package/vendor/lodash-es/xor.es.js +1 -0
- package/vendor/lodash-es/xorBy.es.js +1 -0
- package/vendor/lodash-es/xorWith.es.js +1 -0
- package/vendor/lodash-es/zip.es.js +1 -0
- package/vendor/lodash-es/zipObject.es.js +1 -0
- package/vendor/lodash-es/zipObjectDeep.es.js +1 -0
- package/vendor/lodash-es/zipWith.es.js +1 -0
- package/vendor/orderedmap/dist/index.es.js +103 -0
- package/vendor/primevue/api/api.esm.es.js +183 -0
- package/vendor/primevue/badge/badge.esm.es.js +42 -0
- package/vendor/primevue/badge/style/badgestyle.esm.es.js +25 -0
- package/vendor/primevue/base/style/basestyle.esm.es.js +140 -0
- package/vendor/primevue/basecomponent/basecomponent.esm.es.js +409 -0
- package/vendor/primevue/basedirective/basedirective.esm.es.js +255 -0
- package/vendor/primevue/baseicon/baseicon.esm.es.js +81 -0
- package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +39 -0
- package/vendor/primevue/button/button.esm.es.js +163 -0
- package/vendor/primevue/button/style/buttonstyle.esm.es.js +56 -0
- package/vendor/primevue/card/card.esm.es.js +40 -0
- package/vendor/primevue/card/style/cardstyle.esm.es.js +17 -0
- package/vendor/primevue/checkbox/checkbox.esm.es.js +189 -0
- package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +21 -0
- package/vendor/primevue/config/config.esm.es.js +212 -0
- package/vendor/primevue/dialog/dialog.esm.es.js +501 -0
- package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +55 -0
- package/vendor/primevue/dropdown/dropdown.esm.es.js +1229 -0
- package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +65 -0
- package/vendor/primevue/fileupload/fileupload.esm.es.js +761 -0
- package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +36 -0
- package/vendor/primevue/focustrap/focustrap.esm.es.js +129 -0
- package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +4 -0
- package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +24 -0
- package/vendor/primevue/icons/angledoubleright/index.esm.es.js +24 -0
- package/vendor/primevue/icons/angledown/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleleft/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleright/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleup/index.esm.es.js +22 -0
- package/vendor/primevue/icons/blank/index.esm.es.js +24 -0
- package/vendor/primevue/icons/check/index.esm.es.js +22 -0
- package/vendor/primevue/icons/chevrondown/index.esm.es.js +22 -0
- package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +28 -0
- package/vendor/primevue/icons/eye/index.esm.es.js +24 -0
- package/vendor/primevue/icons/eyeslash/index.esm.es.js +24 -0
- package/vendor/primevue/icons/infocircle/index.esm.es.js +24 -0
- package/vendor/primevue/icons/plus/index.esm.es.js +22 -0
- package/vendor/primevue/icons/refresh/index.esm.es.js +24 -0
- package/vendor/primevue/icons/search/index.esm.es.js +24 -0
- package/vendor/primevue/icons/searchminus/index.esm.es.js +24 -0
- package/vendor/primevue/icons/searchplus/index.esm.es.js +24 -0
- package/vendor/primevue/icons/spinner/index.esm.es.js +22 -0
- package/vendor/primevue/icons/times/index.esm.es.js +22 -0
- package/vendor/primevue/icons/timescircle/index.esm.es.js +24 -0
- package/vendor/primevue/icons/undo/index.esm.es.js +24 -0
- package/vendor/primevue/icons/upload/index.esm.es.js +24 -0
- package/vendor/primevue/icons/windowmaximize/index.esm.es.js +24 -0
- package/vendor/primevue/icons/windowminimize/index.esm.es.js +24 -0
- package/vendor/primevue/image/image.esm.es.js +381 -0
- package/vendor/primevue/image/style/imagestyle.esm.es.js +39 -0
- package/vendor/primevue/inputgroup/inputgroup.esm.es.js +26 -0
- package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +10 -0
- package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +26 -0
- package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +10 -0
- package/vendor/primevue/inputnumber/inputnumber.esm.es.js +937 -0
- package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +39 -0
- package/vendor/primevue/inputtext/inputtext.esm.es.js +66 -0
- package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +19 -0
- package/vendor/primevue/menu/menu.esm.es.js +508 -0
- package/vendor/primevue/menu/style/menustyle.esm.es.js +32 -0
- package/vendor/primevue/message/message.esm.es.js +201 -0
- package/vendor/primevue/message/style/messagestyle.esm.es.js +18 -0
- package/vendor/primevue/multiselect/multiselect.esm.es.js +1383 -0
- package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +74 -0
- package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +5 -0
- package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +294 -0
- package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +18 -0
- package/vendor/primevue/paginator/paginator.esm.es.js +838 -0
- package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +81 -0
- package/vendor/primevue/password/password.esm.es.js +443 -0
- package/vendor/primevue/password/style/passwordstyle.esm.es.js +45 -0
- package/vendor/primevue/portal/portal.esm.es.js +40 -0
- package/vendor/primevue/progressbar/progressbar.esm.es.js +72 -0
- package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +19 -0
- package/vendor/primevue/ripple/ripple.esm.es.js +90 -0
- package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +10 -0
- package/vendor/primevue/selectbutton/selectbutton.esm.es.js +278 -0
- package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +24 -0
- package/vendor/primevue/skeleton/skeleton.esm.es.js +67 -0
- package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +21 -0
- package/vendor/primevue/textarea/style/textareastyle.esm.es.js +18 -0
- package/vendor/primevue/textarea/textarea.esm.es.js +70 -0
- package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +19 -0
- package/vendor/primevue/timeline/timeline.esm.es.js +86 -0
- package/vendor/primevue/toast/style/toaststyle.esm.es.js +73 -0
- package/vendor/primevue/toast/toast.esm.es.js +451 -0
- package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +5 -0
- package/vendor/primevue/toastservice/toastservice.esm.es.js +24 -0
- package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +12 -0
- package/vendor/primevue/tooltip/tooltip.esm.es.js +256 -0
- package/vendor/primevue/usestyle/usestyle.esm.es.js +85 -0
- package/vendor/primevue/usetoast/usetoast.esm.es.js +12 -0
- package/vendor/primevue/utils/utils.esm.es.js +1080 -0
- package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +71 -0
- package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +704 -0
- package/vendor/prosemirror-commands/dist/index.es.js +383 -0
- package/vendor/prosemirror-history/dist/index.es.js +248 -0
- package/vendor/prosemirror-keymap/dist/index.es.js +60 -0
- package/vendor/prosemirror-model/dist/index.es.js +2736 -0
- package/vendor/prosemirror-schema-list/dist/index.es.js +87 -0
- package/vendor/prosemirror-state/dist/index.es.js +820 -0
- package/vendor/prosemirror-transform/dist/index.es.js +1507 -0
- package/vendor/prosemirror-view/dist/index.es.js +3742 -0
- package/vendor/qrcode/lib/browser.es.js +43 -0
- package/vendor/qrcode/lib/can-promise.es.js +9 -0
- package/vendor/qrcode/lib/core/alignment-pattern.es.js +25 -0
- package/vendor/qrcode/lib/core/alphanumeric-data.es.js +73 -0
- package/vendor/qrcode/lib/core/bit-buffer.es.js +28 -0
- package/vendor/qrcode/lib/core/bit-matrix.es.js +23 -0
- package/vendor/qrcode/lib/core/byte-data.es.js +23 -0
- package/vendor/qrcode/lib/core/error-correction-code.es.js +361 -0
- package/vendor/qrcode/lib/core/error-correction-level.es.js +40 -0
- package/vendor/qrcode/lib/core/finder-pattern.es.js +21 -0
- package/vendor/qrcode/lib/core/format-info.es.js +17 -0
- package/vendor/qrcode/lib/core/galois-field.es.js +23 -0
- package/vendor/qrcode/lib/core/kanji-data.es.js +36 -0
- package/vendor/qrcode/lib/core/mask-pattern.es.js +101 -0
- package/vendor/qrcode/lib/core/mode.es.js +67 -0
- package/vendor/qrcode/lib/core/numeric-data.es.js +26 -0
- package/vendor/qrcode/lib/core/polynomial.es.js +33 -0
- package/vendor/qrcode/lib/core/qrcode.es.js +153 -0
- package/vendor/qrcode/lib/core/reed-solomon-encoder.es.js +27 -0
- package/vendor/qrcode/lib/core/regex.es.js +22 -0
- package/vendor/qrcode/lib/core/segments.es.js +145 -0
- package/vendor/qrcode/lib/core/utils.es.js +73 -0
- package/vendor/qrcode/lib/core/version-check.es.js +9 -0
- package/vendor/qrcode/lib/core/version.es.js +74 -0
- package/vendor/qrcode/lib/renderer/canvas.es.js +31 -0
- package/vendor/qrcode/lib/renderer/svg-tag.es.js +31 -0
- package/vendor/qrcode/lib/renderer/utils.es.js +57 -0
- package/vendor/rope-sequence/dist/index.es.js +100 -0
- package/vendor/simplebar-core/dist/index.es.js +339 -0
- package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +176 -0
- package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +668 -0
- package/vendor/tippy.js/dist/tippy.esm.es.js +722 -0
- package/vendor/uuid/dist/esm-browser/index.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/md5.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/native.es.js +6 -0
- package/vendor/uuid/dist/esm-browser/nil.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/parse.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/regex.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/rng.es.js +10 -0
- package/vendor/uuid/dist/esm-browser/sha1.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/stringify.es.js +9 -0
- package/vendor/uuid/dist/esm-browser/v1.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v3.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v35.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v4.es.js +13 -0
- package/vendor/uuid/dist/esm-browser/v5.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/validate.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/version.es.js +1 -0
- package/vendor/vee-validate/dist/vee-validate.esm.es.js +1309 -0
- package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +1380 -0
- package/vendor/vue-demi/lib/index.es.js +1 -0
- package/vendor/w3c-keyname/index.es.js +92 -0
- package/{main.d.ts → wangsvue-fats.d.ts} +4 -6
- package/wangsvue-fats.es.js +221 -0
- package/wangsvue-fats.system.js +71 -71
- package/components/dialogassetnamedetail/options/columns.d.ts +0 -2
- package/components/dialogassetnamedetail/options/filter.d.ts +0 -2
- package/components/index.d.ts +0 -83
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-D9bw9OcI.js +0 -4
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-g0dJCy2p.js +0 -4
- package/wangsvue-fats.js +0 -57921
- /package/{components/approverinfo/ApproverInfo.vue.d.ts → approverinfo/index.d.ts} +0 -0
- /package/{loading-page-CoXtqoc9.js → assets/lottiejs/loading-plane.es.js} +0 -0
- /package/{components/badge/Badge.vue.d.ts → badge/index.d.ts} +0 -0
- /package/{components/basecomponent → basecomponent}/index.d.ts +0 -0
- /package/{components/basetree/BaseTree.vue.d.ts → basetree/index.d.ts} +0 -0
- /package/{components/breadcrumb/Breadcrumb.vue.d.ts → breadcrumb/index.d.ts} +0 -0
- /package/{components/buttonbulkaction/ButtonBulkAction.vue.d.ts → buttonbulkaction/index.d.ts} +0 -0
- /package/{components/buttoncopy/ButtonCopy.vue.d.ts → buttoncopy/index.d.ts} +0 -0
- /package/{components/buttonfilter/ButtonFilter.vue.d.ts → buttonfilter/index.d.ts} +0 -0
- /package/{components/buttonradio/ButtonRadio.vue.d.ts → buttonradio/index.d.ts} +0 -0
- /package/{components/buttonsearch/ButtonSearch.vue.d.ts → buttonsearch/index.d.ts} +0 -0
- /package/{components/buttonsync/ButtonSync.vue.d.ts → buttonsync/index.d.ts} +0 -0
- /package/{components/card/Card.vue.d.ts → card/index.d.ts} +0 -0
- /package/{components/checkbox/Checkbox.vue.d.ts → checkbox/index.d.ts} +0 -0
- /package/{components/datepicker/DatePicker.vue.d.ts → datepicker/index.d.ts} +0 -0
- /package/{components/daypicker/DayPicker.vue.d.ts → daypicker/index.d.ts} +0 -0
- /package/{components/dialog/Dialog.vue.d.ts → dialog/index.d.ts} +0 -0
- /package/{components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts → dialogassetnamedetail/index.d.ts} +0 -0
- /package/{components/editor/Editor.vue.d.ts → editor/index.d.ts} +0 -0
- /package/{components/fieldwrapper/FieldWrapper.vue.d.ts → fieldwrapper/index.d.ts} +0 -0
- /package/{components/form/Form.vue.d.ts → form/index.d.ts} +0 -0
- /package/{components/image/Image.vue.d.ts → image/index.d.ts} +0 -0
- /package/{components/inlinemessage/InlineMessage.vue.d.ts → inlinemessage/index.d.ts} +0 -0
- /package/{components/inputotp/InputOtp.vue.d.ts → inputotp/index.d.ts} +0 -0
- /package/{components/inputphonenumber/InputPhoneNumber.vue.d.ts → inputphonenumber/index.d.ts} +0 -0
- /package/{components/invisiblefield/InvisibleField.vue.d.ts → invisiblefield/index.d.ts} +0 -0
- /package/{components/languageswitcher/LanguageSwitcher.vue.d.ts → languageswitcher/index.d.ts} +0 -0
- /package/{components/loading/Loading.vue.d.ts → loading/index.d.ts} +0 -0
- /package/{components/loading/store/loading.store.d.ts → loading/store/index.d.ts} +0 -0
- /package/{components/menu/Menu.vue.d.ts → menu/index.d.ts} +0 -0
- /package/{components/overlaypanel/OverlayPanel.vue.d.ts → overlaypanel/index.d.ts} +0 -0
- /package/{components/paginator/Paginator.vue.d.ts → paginator/index.d.ts} +0 -0
- /package/{components/passthrough → passthrough}/index.d.ts +0 -0
- /package/plugins/{i18n.d.ts → basei18n.d.ts} +0 -0
- /package/{components/tabmenu/TabMenu.vue.d.ts → tabmenu/index.d.ts} +0 -0
- /package/{components/tagtype/TagType.vue.d.ts → tagtype/index.d.ts} +0 -0
- /package/{components/toggleswitch/ToggleSwitch.vue.d.ts → toggleswitch/index.d.ts} +0 -0
- /package/{components/transactionroles/TransactionRoles.vue.d.ts → transactionroles/index.d.ts} +0 -0
- /package/{components/tree → tree}/helpers/filterNodeKeys.helper.d.ts +0 -0
- /package/{components/treesearchinput/TreeSearchInput.vue.d.ts → treesearchinput/index.d.ts} +0 -0
- /package/{components/ts-helpers.d.ts → ts-helpers.d.ts} +0 -0
- /package/{components/username/UserName.vue.d.ts → username/index.d.ts} +0 -0
- /package/{components/validatormessage/ValidatorMessage.vue.d.ts → validatormessage/index.d.ts} +0 -0
|
@@ -0,0 +1,1380 @@
|
|
|
1
|
+
import { createBlock as w, openBlock as y, renderSlot as X, resolveComponent as $, createVNode as S, withCtx as B, Fragment as Rt, renderList as Mt, resolveDynamicComponent as nt, withDirectives as It, vShow as $t, mergeProps as jt, createCommentVNode as St, withModifiers as ee } from "vue";
|
|
2
|
+
function xt(t, e) {
|
|
3
|
+
var i = Object.keys(t);
|
|
4
|
+
if (Object.getOwnPropertySymbols) {
|
|
5
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
6
|
+
e && (o = o.filter(function(s) {
|
|
7
|
+
return Object.getOwnPropertyDescriptor(t, s).enumerable;
|
|
8
|
+
})), i.push.apply(i, o);
|
|
9
|
+
}
|
|
10
|
+
return i;
|
|
11
|
+
}
|
|
12
|
+
function v(t) {
|
|
13
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
15
|
+
e % 2 ? xt(Object(i), !0).forEach(function(o) {
|
|
16
|
+
C(t, o, i[o]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : xt(Object(i)).forEach(function(o) {
|
|
18
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
function C(t, e, i) {
|
|
24
|
+
return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
25
|
+
}
|
|
26
|
+
function ie(t, e) {
|
|
27
|
+
if (t == null) return {};
|
|
28
|
+
var i, o, s = function(a, h) {
|
|
29
|
+
if (a == null) return {};
|
|
30
|
+
var r, c, l = {}, u = Object.keys(a);
|
|
31
|
+
for (c = 0; c < u.length; c++) r = u[c], h.indexOf(r) >= 0 || (l[r] = a[r]);
|
|
32
|
+
return l;
|
|
33
|
+
}(t, e);
|
|
34
|
+
if (Object.getOwnPropertySymbols) {
|
|
35
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
36
|
+
for (o = 0; o < n.length; o++) i = n[o], e.indexOf(i) >= 0 || Object.prototype.propertyIsEnumerable.call(t, i) && (s[i] = t[i]);
|
|
37
|
+
}
|
|
38
|
+
return s;
|
|
39
|
+
}
|
|
40
|
+
function k(t) {
|
|
41
|
+
return function(e) {
|
|
42
|
+
if (Array.isArray(e)) return at(e);
|
|
43
|
+
}(t) || function(e) {
|
|
44
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
45
|
+
}(t) || function(e, i) {
|
|
46
|
+
if (e) {
|
|
47
|
+
if (typeof e == "string") return at(e, i);
|
|
48
|
+
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
49
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
|
50
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return at(e, i);
|
|
51
|
+
}
|
|
52
|
+
}(t) || function() {
|
|
53
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
55
|
+
}();
|
|
56
|
+
}
|
|
57
|
+
function at(t, e) {
|
|
58
|
+
(e == null || e > t.length) && (e = t.length);
|
|
59
|
+
for (var i = 0, o = new Array(e); i < e; i++) o[i] = t[i];
|
|
60
|
+
return o;
|
|
61
|
+
}
|
|
62
|
+
var Et, ne, Q, z = (Et = function(t) {
|
|
63
|
+
/*!
|
|
64
|
+
Copyright (c) 2018 Jed Watson.
|
|
65
|
+
Licensed under the MIT License (MIT), see
|
|
66
|
+
http://jedwatson.github.io/classnames
|
|
67
|
+
*/
|
|
68
|
+
(function() {
|
|
69
|
+
var e = {}.hasOwnProperty;
|
|
70
|
+
function i() {
|
|
71
|
+
for (var o = [], s = 0; s < arguments.length; s++) {
|
|
72
|
+
var n = arguments[s];
|
|
73
|
+
if (n) {
|
|
74
|
+
var a = typeof n;
|
|
75
|
+
if (a === "string" || a === "number") o.push(n);
|
|
76
|
+
else if (Array.isArray(n)) {
|
|
77
|
+
if (n.length) {
|
|
78
|
+
var h = i.apply(null, n);
|
|
79
|
+
h && o.push(h);
|
|
80
|
+
}
|
|
81
|
+
} else if (a === "object") if (n.toString === Object.prototype.toString) for (var r in n) e.call(n, r) && n[r] && o.push(r);
|
|
82
|
+
else o.push(n.toString());
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return o.join(" ");
|
|
86
|
+
}
|
|
87
|
+
t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
|
|
88
|
+
})();
|
|
89
|
+
}, Et(Q = { path: ne, exports: {}, require: function(t, e) {
|
|
90
|
+
return function() {
|
|
91
|
+
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
92
|
+
}(e == null && Q.path);
|
|
93
|
+
} }, Q.exports), Q.exports), W = function(t) {
|
|
94
|
+
return function(e, i) {
|
|
95
|
+
if (!e) return t;
|
|
96
|
+
var o;
|
|
97
|
+
typeof e == "string" ? o = e : i = e;
|
|
98
|
+
var s = t;
|
|
99
|
+
return o && (s += "__" + o), s + (i ? Object.keys(i).reduce(function(n, a) {
|
|
100
|
+
var h = i[a];
|
|
101
|
+
return h && (n += " " + (typeof h == "boolean" ? s + "--" + a : s + "--" + a + "_" + h)), n;
|
|
102
|
+
}, "") : "");
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
function mt(t, e, i) {
|
|
106
|
+
var o, s, n, a, h;
|
|
107
|
+
function r() {
|
|
108
|
+
var l = Date.now() - a;
|
|
109
|
+
l < e && l >= 0 ? o = setTimeout(r, e - l) : (o = null, i || (h = t.apply(n, s), n = s = null));
|
|
110
|
+
}
|
|
111
|
+
e == null && (e = 100);
|
|
112
|
+
var c = function() {
|
|
113
|
+
n = this, s = arguments, a = Date.now();
|
|
114
|
+
var l = i && !o;
|
|
115
|
+
return o || (o = setTimeout(r, e)), l && (h = t.apply(n, s), n = s = null), h;
|
|
116
|
+
};
|
|
117
|
+
return c.clear = function() {
|
|
118
|
+
o && (clearTimeout(o), o = null);
|
|
119
|
+
}, c.flush = function() {
|
|
120
|
+
o && (h = t.apply(n, s), n = s = null, clearTimeout(o), o = null);
|
|
121
|
+
}, c;
|
|
122
|
+
}
|
|
123
|
+
mt.debounce = mt;
|
|
124
|
+
var ft = mt, f = function() {
|
|
125
|
+
return f = Object.assign || function(t) {
|
|
126
|
+
for (var e, i = 1, o = arguments.length; i < o; i++) for (var s in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
127
|
+
return t;
|
|
128
|
+
}, f.apply(this, arguments);
|
|
129
|
+
};
|
|
130
|
+
/*! *****************************************************************************
|
|
131
|
+
Copyright (c) Microsoft Corporation.
|
|
132
|
+
|
|
133
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
134
|
+
purpose with or without fee is hereby granted.
|
|
135
|
+
|
|
136
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
137
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
138
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
139
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
140
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
141
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
142
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
143
|
+
***************************************************************************** */
|
|
144
|
+
function Bt(t, e) {
|
|
145
|
+
var i, o;
|
|
146
|
+
return t && e ? (i = "" + t + e[0].toUpperCase() + e.slice(1), o = t + "-" + e) : (i = t || e, o = t || e), { name: i, classname: o };
|
|
147
|
+
}
|
|
148
|
+
function kt(t) {
|
|
149
|
+
return /^blob:/.test(t);
|
|
150
|
+
}
|
|
151
|
+
function Ct(t) {
|
|
152
|
+
return kt(t) || function(e) {
|
|
153
|
+
return /^data:/.test(e);
|
|
154
|
+
}(t);
|
|
155
|
+
}
|
|
156
|
+
function Y(t) {
|
|
157
|
+
return !!(t && t.constructor && t.call && t.apply);
|
|
158
|
+
}
|
|
159
|
+
function A(t) {
|
|
160
|
+
return t === void 0;
|
|
161
|
+
}
|
|
162
|
+
function it(t) {
|
|
163
|
+
return typeof t == "object" && t !== null;
|
|
164
|
+
}
|
|
165
|
+
function gt(t, e, i) {
|
|
166
|
+
var o = {};
|
|
167
|
+
return it(t) ? (Object.keys(e).forEach(function(s) {
|
|
168
|
+
A(t[s]) ? o[s] = e[s] : it(e[s]) ? it(t[s]) ? o[s] = gt(t[s], e[s], i[s]) : o[s] = t[s] ? e[s] : i[s] : e[s] === !0 || e[s] === !1 ? o[s] = !!t[s] : o[s] = t[s];
|
|
169
|
+
}), o) : t ? e : i;
|
|
170
|
+
}
|
|
171
|
+
function K(t) {
|
|
172
|
+
var e = Number(t);
|
|
173
|
+
return Number.isNaN(e) ? t : e;
|
|
174
|
+
}
|
|
175
|
+
function Tt(t) {
|
|
176
|
+
return typeof (t == "number" || /* @__PURE__ */ function(e) {
|
|
177
|
+
return typeof e == "object" && e !== null;
|
|
178
|
+
}(t) && toString.call(t) == "[object Number]") && !Xt(t);
|
|
179
|
+
}
|
|
180
|
+
function Xt(t) {
|
|
181
|
+
return t != t;
|
|
182
|
+
}
|
|
183
|
+
function Yt(t, e) {
|
|
184
|
+
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
185
|
+
}
|
|
186
|
+
var V = function(t, e) {
|
|
187
|
+
t === void 0 && (t = {}), e === void 0 && (e = {}), this.type = "manipulateImage", this.move = t, this.scale = e;
|
|
188
|
+
}, oe = function(t, e) {
|
|
189
|
+
e === void 0 && (e = {}), this.type = "resize", this.directions = t, this.params = e;
|
|
190
|
+
}, wt = function(t) {
|
|
191
|
+
this.type = "move", this.directions = t;
|
|
192
|
+
}, se = function() {
|
|
193
|
+
function t(e, i, o, s, n) {
|
|
194
|
+
this.type = "drag", this.nativeEvent = e, this.position = o, this.previousPosition = s, this.element = i, this.anchor = n;
|
|
195
|
+
}
|
|
196
|
+
return t.prototype.shift = function() {
|
|
197
|
+
var e = this, i = e.element, o = e.anchor, s = e.position;
|
|
198
|
+
if (i) {
|
|
199
|
+
var n = i.getBoundingClientRect(), a = n.left, h = n.top;
|
|
200
|
+
return { left: s.left - a - o.left, top: s.top - h - o.top };
|
|
201
|
+
}
|
|
202
|
+
return { left: 0, top: 0 };
|
|
203
|
+
}, t;
|
|
204
|
+
}(), yt = { name: "DraggableElement", props: { classname: { type: String } }, beforeMount: function() {
|
|
205
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
206
|
+
}, beforeUnmount: function() {
|
|
207
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
208
|
+
}, mounted: function() {
|
|
209
|
+
if (!this.$refs.draggable) throw new Error('You should add ref "draggable" to your root element to use draggable mixin');
|
|
210
|
+
this.touches = [], this.hovered = !1;
|
|
211
|
+
}, methods: { onMouseOver: function() {
|
|
212
|
+
this.hovered || (this.hovered = !0, this.$emit("enter"));
|
|
213
|
+
}, onMouseLeave: function() {
|
|
214
|
+
this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
|
|
215
|
+
}, onTouchStart: function(t) {
|
|
216
|
+
t.cancelable && !this.disabled && t.touches.length === 1 && (this.touches = k(t.touches), this.hovered || (this.$emit("enter"), this.hovered = !0), t.touches.length && this.initAnchor(this.touches.reduce(function(e, i) {
|
|
217
|
+
return { clientX: e.clientX + i.clientX / t.touches.length, clientY: e.clientY + i.clientY / t.touches.length };
|
|
218
|
+
}, { clientX: 0, clientY: 0 })), t.preventDefault && t.preventDefault(), t.stopPropagation());
|
|
219
|
+
}, onTouchEnd: function() {
|
|
220
|
+
this.processEnd();
|
|
221
|
+
}, onTouchMove: function(t) {
|
|
222
|
+
this.touches.length && (this.processMove(t, t.touches), t.preventDefault && t.preventDefault(), t.stopPropagation && t.stopPropagation());
|
|
223
|
+
}, onMouseDown: function(t) {
|
|
224
|
+
if (!this.disabled) {
|
|
225
|
+
var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
|
|
226
|
+
this.touches = [e], this.initAnchor(e), t.stopPropagation();
|
|
227
|
+
}
|
|
228
|
+
}, onMouseMove: function(t) {
|
|
229
|
+
this.touches.length && (this.processMove(t, [{ fake: !0, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.preventDefault());
|
|
230
|
+
}, onMouseUp: function() {
|
|
231
|
+
this.processEnd();
|
|
232
|
+
}, initAnchor: function(t) {
|
|
233
|
+
var e = this.$refs.draggable.getBoundingClientRect(), i = e.left, o = e.right, s = e.bottom, n = e.top;
|
|
234
|
+
this.anchor = { left: t.clientX - i, top: t.clientY - n, bottom: s - t.clientY, right: o - t.clientX };
|
|
235
|
+
}, processMove: function(t, e) {
|
|
236
|
+
var i = k(e);
|
|
237
|
+
if (this.touches.length) {
|
|
238
|
+
if (this.touches.length === 1 && i.length === 1) {
|
|
239
|
+
var o = this.$refs.draggable;
|
|
240
|
+
this.$emit("drag", new se(t, o, { left: i[0].clientX, top: i[0].clientY }, { left: this.touches[0].clientX, top: this.touches[0].clientY }, this.anchor));
|
|
241
|
+
}
|
|
242
|
+
this.touches = i;
|
|
243
|
+
}
|
|
244
|
+
}, processEnd: function() {
|
|
245
|
+
this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
|
|
246
|
+
} }, emits: ["drag", "drag-end", "leave", "enter"] };
|
|
247
|
+
yt.render = function(t, e, i, o, s, n) {
|
|
248
|
+
return y(), w("div", { ref: "draggable", class: i.classname, onTouchstart: e[1] || (e[1] = function() {
|
|
249
|
+
return n.onTouchStart && n.onTouchStart.apply(n, arguments);
|
|
250
|
+
}), onMousedown: e[2] || (e[2] = function() {
|
|
251
|
+
return n.onMouseDown && n.onMouseDown.apply(n, arguments);
|
|
252
|
+
}), onMouseover: e[3] || (e[3] = function() {
|
|
253
|
+
return n.onMouseOver && n.onMouseOver.apply(n, arguments);
|
|
254
|
+
}), onMouseleave: e[4] || (e[4] = function() {
|
|
255
|
+
return n.onMouseLeave && n.onMouseLeave.apply(n, arguments);
|
|
256
|
+
}) }, [X(t.$slots, "default")], 34);
|
|
257
|
+
};
|
|
258
|
+
var ht = W("vue-handler-wrapper"), Ft = { name: "HandlerWrapper", components: { DraggableElement: yt }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
|
|
259
|
+
var t;
|
|
260
|
+
if (this.horizontalPosition || this.verticalPosition) {
|
|
261
|
+
var e, i = Bt(this.horizontalPosition, this.verticalPosition);
|
|
262
|
+
t = ht((C(e = {}, i.classname, !0), C(e, "disabled", this.disabled), e));
|
|
263
|
+
} else t = ht({ disabled: this.disabled });
|
|
264
|
+
return { root: t, draggable: ht("draggable") };
|
|
265
|
+
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
266
|
+
Ft.render = function(t, e, i, o, s, n) {
|
|
267
|
+
var a = $("DraggableElement");
|
|
268
|
+
return y(), w("div", { class: n.classes.root }, [S(a, { class: n.classes.draggable, onDrag: e[1] || (e[1] = function(h) {
|
|
269
|
+
return t.$emit("drag", h);
|
|
270
|
+
}), onDragEnd: e[2] || (e[2] = function(h) {
|
|
271
|
+
return t.$emit("drag-end");
|
|
272
|
+
}), onLeave: e[3] || (e[3] = function(h) {
|
|
273
|
+
return t.$emit("leave");
|
|
274
|
+
}), onEnter: e[4] || (e[4] = function(h) {
|
|
275
|
+
return t.$emit("enter");
|
|
276
|
+
}) }, { default: B(function() {
|
|
277
|
+
return [X(t.$slots, "default")];
|
|
278
|
+
}), _: 3 }, 8, ["class"])], 2);
|
|
279
|
+
};
|
|
280
|
+
var re = W("vue-line-wrapper"), Ut = { name: "LineWrapper", components: { DraggableElement: yt }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
281
|
+
var t;
|
|
282
|
+
return re((C(t = {}, this.position, !0), C(t, "disabled", this.disabled), t));
|
|
283
|
+
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
284
|
+
Ut.render = function(t, e, i, o, s, n) {
|
|
285
|
+
var a = $("DraggableElement");
|
|
286
|
+
return y(), w(a, { class: n.classname, onDrag: e[1] || (e[1] = function(h) {
|
|
287
|
+
return t.$emit("drag", h);
|
|
288
|
+
}), onDragEnd: e[2] || (e[2] = function(h) {
|
|
289
|
+
return t.$emit("drag-end");
|
|
290
|
+
}), onLeave: e[3] || (e[3] = function(h) {
|
|
291
|
+
return t.$emit("leave");
|
|
292
|
+
}), onEnter: e[4] || (e[4] = function(h) {
|
|
293
|
+
return t.$emit("enter");
|
|
294
|
+
}) }, { default: B(function() {
|
|
295
|
+
return [X(t.$slots, "default")];
|
|
296
|
+
}), _: 3 }, 8, ["class"]);
|
|
297
|
+
};
|
|
298
|
+
var O = ["left", "right", "top", "bottom"], ae = ["left", "right"], he = ["top", "bottom"], ce = ["left", "top"], le = ["fill-area", "fit-area", "stencil", "none"], Wt = { left: 0, top: 0, width: 0, height: 0 };
|
|
299
|
+
function Dt(t, e, i) {
|
|
300
|
+
return !(i = i || ["width", "height", "left", "top"]).some(function(o) {
|
|
301
|
+
return t[o] !== e[o];
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function H(t) {
|
|
305
|
+
return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
|
|
306
|
+
}
|
|
307
|
+
function F(t, e) {
|
|
308
|
+
return { left: t.left - e.left, top: t.top - e.top };
|
|
309
|
+
}
|
|
310
|
+
function R(t) {
|
|
311
|
+
return { left: t.left + t.width / 2, top: t.top + t.height / 2 };
|
|
312
|
+
}
|
|
313
|
+
function _(t, e) {
|
|
314
|
+
var i = { left: 0, top: 0, right: 0, bottom: 0 };
|
|
315
|
+
return O.forEach(function(o) {
|
|
316
|
+
var s = e[o], n = H(t)[o];
|
|
317
|
+
i[o] = s !== void 0 && n !== void 0 ? o === "left" || o === "top" ? Math.max(0, s - n) : Math.max(0, n - s) : 0;
|
|
318
|
+
}), i;
|
|
319
|
+
}
|
|
320
|
+
function D(t, e) {
|
|
321
|
+
return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
|
|
322
|
+
}
|
|
323
|
+
function ot(t) {
|
|
324
|
+
return { left: -t.left, top: -t.top };
|
|
325
|
+
}
|
|
326
|
+
function x(t, e) {
|
|
327
|
+
return f(f({}, t), { left: t.left + e.left, top: t.top + e.top });
|
|
328
|
+
}
|
|
329
|
+
function T(t, e, i, o) {
|
|
330
|
+
if (e !== 1) {
|
|
331
|
+
if (i) {
|
|
332
|
+
var s = R(t);
|
|
333
|
+
return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2 + (i.left - s.left) * (1 - e), top: t.top + t.height * (1 - e) / 2 + (i.top - s.top) * (1 - e) };
|
|
334
|
+
}
|
|
335
|
+
return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2, top: t.top + t.height * (1 - e) / 2 };
|
|
336
|
+
}
|
|
337
|
+
return t;
|
|
338
|
+
}
|
|
339
|
+
function b(t) {
|
|
340
|
+
return t.width / t.height;
|
|
341
|
+
}
|
|
342
|
+
function U(t, e) {
|
|
343
|
+
return Math.min(e.right !== void 0 && e.left !== void 0 ? (e.right - e.left) / t.width : 1 / 0, e.bottom !== void 0 && e.top !== void 0 ? (e.bottom - e.top) / t.height : 1 / 0);
|
|
344
|
+
}
|
|
345
|
+
function N(t, e) {
|
|
346
|
+
var i = { left: 0, top: 0 }, o = _(t, e);
|
|
347
|
+
return o.left && o.left > 0 ? i.left = o.left : o.right && o.right > 0 && (i.left = -o.right), o.top && o.top > 0 ? i.top = o.top : o.bottom && o.bottom > 0 && (i.top = -o.bottom), i;
|
|
348
|
+
}
|
|
349
|
+
function ct(t, e) {
|
|
350
|
+
var i;
|
|
351
|
+
return e.minimum && t < e.minimum ? i = e.minimum : e.maximum && t > e.maximum && (i = e.maximum), i;
|
|
352
|
+
}
|
|
353
|
+
function Nt(t, e) {
|
|
354
|
+
var i = b(t), o = b(e);
|
|
355
|
+
return e.width < 1 / 0 && e.height < 1 / 0 ? i > o ? { width: e.width, height: e.width / i } : { width: e.height * i, height: e.height } : e.width < 1 / 0 ? { width: e.width, height: e.width / i } : e.height < 1 / 0 ? { width: e.height * i, height: e.height } : t;
|
|
356
|
+
}
|
|
357
|
+
function Zt(t, e) {
|
|
358
|
+
var i = e * Math.PI / 180;
|
|
359
|
+
return { width: Math.abs(t.width * Math.cos(i)) + Math.abs(t.height * Math.sin(i)), height: Math.abs(t.width * Math.sin(i)) + Math.abs(t.height * Math.cos(i)) };
|
|
360
|
+
}
|
|
361
|
+
function j(t, e) {
|
|
362
|
+
var i = e * Math.PI / 180;
|
|
363
|
+
return { left: t.left * Math.cos(i) - t.top * Math.sin(i), top: t.left * Math.sin(i) + t.top * Math.cos(i) };
|
|
364
|
+
}
|
|
365
|
+
function st(t, e) {
|
|
366
|
+
var i = _(M(t, e), e);
|
|
367
|
+
return i.left + i.right + i.top + i.bottom ? i.left + i.right > i.top + i.bottom ? Math.min((t.width + i.left + i.right) / t.width, U(t, e)) : Math.min((t.height + i.top + i.bottom) / t.height, U(t, e)) : 1;
|
|
368
|
+
}
|
|
369
|
+
function M(t, e, i) {
|
|
370
|
+
i === void 0 && (i = !1);
|
|
371
|
+
var o = N(t, e);
|
|
372
|
+
return x(t, i ? ot(o) : o);
|
|
373
|
+
}
|
|
374
|
+
function pt(t) {
|
|
375
|
+
return { width: t.right !== void 0 && t.left !== void 0 ? t.right - t.left : 1 / 0, height: t.bottom !== void 0 && t.top !== void 0 ? t.bottom - t.top : 1 / 0 };
|
|
376
|
+
}
|
|
377
|
+
function ue(t, e) {
|
|
378
|
+
return f(f({}, t), { minWidth: Math.min(e.width, t.minWidth), minHeight: Math.min(e.height, t.minHeight), maxWidth: Math.min(e.width, t.maxWidth), maxHeight: Math.min(e.height, t.maxHeight) });
|
|
379
|
+
}
|
|
380
|
+
function qt(t, e, i) {
|
|
381
|
+
i === void 0 && (i = !0);
|
|
382
|
+
var o = {};
|
|
383
|
+
return O.forEach(function(s) {
|
|
384
|
+
var n = t[s], a = e[s];
|
|
385
|
+
n !== void 0 && a !== void 0 ? o[s] = s === "left" || s === "top" ? i ? Math.max(n, a) : Math.min(n, a) : i ? Math.min(n, a) : Math.max(n, a) : a !== void 0 ? o[s] = a : n !== void 0 && (o[s] = n);
|
|
386
|
+
}), o;
|
|
387
|
+
}
|
|
388
|
+
function rt(t, e) {
|
|
389
|
+
return qt(t, e, !0);
|
|
390
|
+
}
|
|
391
|
+
function Ot(t) {
|
|
392
|
+
var e = t.size, i = t.aspectRatio, o = t.ignoreMinimum, s = t.sizeRestrictions;
|
|
393
|
+
return !!((e.correctRatio || b(e) >= i.minimum && b(e) <= i.maximum) && e.height <= s.maxHeight && e.width <= s.maxWidth && e.width && e.height && (o || e.height >= s.minHeight && e.width >= s.minWidth));
|
|
394
|
+
}
|
|
395
|
+
function Ht(t, e) {
|
|
396
|
+
return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
|
|
397
|
+
}
|
|
398
|
+
function I(t) {
|
|
399
|
+
var e = t.width, i = t.height, o = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, n = { width: Math.max(o.minWidth, Math.min(o.maxWidth, e)), height: Math.max(o.minHeight, Math.min(o.maxHeight, i)) };
|
|
400
|
+
function a(c, l) {
|
|
401
|
+
return l === void 0 && (l = !1), c.reduce(function(u, d) {
|
|
402
|
+
return Ot({ size: d, aspectRatio: s, sizeRestrictions: o, ignoreMinimum: l }) && (!u || Ht(d, { width: e, height: i }) < Ht(u, { width: e, height: i })) ? d : u;
|
|
403
|
+
}, null);
|
|
404
|
+
}
|
|
405
|
+
var h = [];
|
|
406
|
+
s && [s.minimum, s.maximum].forEach(function(c) {
|
|
407
|
+
c && h.push({ width: n.width, height: n.width / c, correctRatio: !0 }, { width: n.height * c, height: n.height, correctRatio: !0 });
|
|
408
|
+
}), Ot({ size: n, aspectRatio: s, sizeRestrictions: o }) && h.push(n);
|
|
409
|
+
var r = a(h) || a(h, !0);
|
|
410
|
+
return r && { width: r.width, height: r.height };
|
|
411
|
+
}
|
|
412
|
+
function vt(t) {
|
|
413
|
+
var e = t.event, i = t.coordinates, o = t.positionRestrictions, s = o === void 0 ? {} : o, n = x(i, e.directions);
|
|
414
|
+
return x(n, N(n, s));
|
|
415
|
+
}
|
|
416
|
+
function de(t) {
|
|
417
|
+
var e = t.coordinates, i = t.transform, o = t.imageSize, s = t.sizeRestrictions, n = t.positionRestrictions, a = t.aspectRatio, h = t.visibleArea, r = function(l, u) {
|
|
418
|
+
return vt({ coordinates: l, positionRestrictions: n, event: new wt({ left: u.left - l.left, top: u.top - l.top }) });
|
|
419
|
+
}, c = f({}, e);
|
|
420
|
+
return (Array.isArray(i) ? i : [i]).forEach(function(l) {
|
|
421
|
+
var u = {};
|
|
422
|
+
A((u = typeof l == "function" ? l({ coordinates: c, imageSize: o, visibleArea: h }) : l).width) && A(u.height) || (c = function(d, m) {
|
|
423
|
+
var g = f(f(f({}, d), I({ width: m.width, height: m.height, sizeRestrictions: s, aspectRatio: a })), { left: 0, top: 0 });
|
|
424
|
+
return r(g, { left: d.left, top: d.top });
|
|
425
|
+
}(c, f(f({}, c), u))), A(u.left) && A(u.top) || (c = r(c, f(f({}, c), u)));
|
|
426
|
+
}), c;
|
|
427
|
+
}
|
|
428
|
+
function me(t) {
|
|
429
|
+
t.event;
|
|
430
|
+
var e = t.getAreaRestrictions, i = t.boundaries, o = t.coordinates, s = t.visibleArea;
|
|
431
|
+
t.aspectRatio;
|
|
432
|
+
var n = t.stencilSize, a = t.sizeRestrictions, h = t.positionRestrictions;
|
|
433
|
+
t.stencilReference;
|
|
434
|
+
var r, c, l, u = f({}, o), d = f({}, s), m = f({}, n);
|
|
435
|
+
r = b(m), c = b(u), l === void 0 && (l = 1e-3), (r === 0 || c === 0 ? Math.abs(c - r) < l : Math.abs(c / r) < 1 + l && Math.abs(c / r) > 1 - l) || (u = f(f({}, u), I({ sizeRestrictions: a, width: u.width, height: u.height, aspectRatio: { minimum: b(m), maximum: b(m) } })));
|
|
436
|
+
var g = st(d = T(d, u.width * i.width / (d.width * m.width)), e({ visibleArea: d, type: "resize" }));
|
|
437
|
+
return g !== 1 && (d = T(d, g), u = T(u, g)), d = M(d = x(d, F(R(u), R(d))), e({ visibleArea: d, type: "move" })), { coordinates: u = M(u, rt(H(d), h)), visibleArea: d };
|
|
438
|
+
}
|
|
439
|
+
function fe(t) {
|
|
440
|
+
var e = t.event, i = t.getAreaRestrictions, o = t.boundaries, s = t.coordinates, n = t.visibleArea;
|
|
441
|
+
t.aspectRatio, t.stencilSize, t.sizeRestrictions;
|
|
442
|
+
var a = t.positionRestrictions;
|
|
443
|
+
t.stencilReference;
|
|
444
|
+
var h = f({}, s), r = f({}, n);
|
|
445
|
+
if (s && n && e.type !== "manipulateImage") {
|
|
446
|
+
var c = { width: 0, height: 0 };
|
|
447
|
+
r.width, o.width, b(o) > b(h) ? (c.height = 0.8 * o.height, c.width = c.height * b(h)) : (c.width = 0.8 * o.width, c.height = c.width * b(h));
|
|
448
|
+
var l = st(r = T(r, h.width * o.width / (r.width * c.width)), i({ visibleArea: r, type: "resize" }));
|
|
449
|
+
r = T(r, l), l !== 1 && (c.height /= l, c.width /= l), r = M(r = x(r, F(R(h), R(r))), i({ visibleArea: r, type: "move" })), h = M(h, rt(H(r), a));
|
|
450
|
+
}
|
|
451
|
+
return { coordinates: h, visibleArea: r };
|
|
452
|
+
}
|
|
453
|
+
function ge(t) {
|
|
454
|
+
var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.getAreaRestrictions, n = f({}, o), a = f({}, i);
|
|
455
|
+
if (e.type === "setCoordinates") {
|
|
456
|
+
var h = Math.max(0, a.width - n.width), r = Math.max(0, a.height - n.height);
|
|
457
|
+
h > r ? n = T(n, Math.min(a.width / n.width, U(n, s({ visibleArea: n, type: "resize" })))) : r > h && (n = T(n, Math.min(a.height / n.height, U(n, s({ visibleArea: n, type: "resize" }))))), n = M(n = x(n, ot(N(a, H(n)))), s({ visibleArea: n, type: "move" }));
|
|
458
|
+
}
|
|
459
|
+
return { visibleArea: n, coordinates: a };
|
|
460
|
+
}
|
|
461
|
+
function pe(t) {
|
|
462
|
+
var e = t.imageSize, i = t.visibleArea, o = t.coordinates, s = i || e;
|
|
463
|
+
return { left: (i ? i.left : 0) + s.width / 2 - o.width / 2, top: (i ? i.top : 0) + s.height / 2 - o.height / 2 };
|
|
464
|
+
}
|
|
465
|
+
function ve(t) {
|
|
466
|
+
var e = t.imageSize, i = t.visibleArea, o = t.aspectRatio, s = t.sizeRestrictions, n = i || e, a = Math.min(o.maximum || 1 / 0, Math.max(o.minimum || 0, b(n))), h = n.width < n.height ? { width: 0.8 * n.width, height: 0.8 * n.width / a } : { height: 0.8 * n.height, width: 0.8 * n.height * a };
|
|
467
|
+
return I(f(f({}, h), { aspectRatio: o, sizeRestrictions: s }));
|
|
468
|
+
}
|
|
469
|
+
function be(t) {
|
|
470
|
+
var e, i, o = t.imageSize, s = t.visibleArea, n = t.boundaries, a = t.aspectRatio, h = t.sizeRestrictions, r = t.stencilSize, c = s || o;
|
|
471
|
+
return b(c) > b(n) ? i = (e = r.height * c.height / n.height) * b(r) : e = (i = r.width * c.width / n.width) / b(r), I({ width: i, height: e, aspectRatio: a, sizeRestrictions: h });
|
|
472
|
+
}
|
|
473
|
+
function we(t) {
|
|
474
|
+
var e = t.getAreaRestrictions, i = t.coordinates, o = t.imageSize, s = b(t.boundaries);
|
|
475
|
+
if (i) {
|
|
476
|
+
var n = { height: Math.max(i.height, o.height), width: Math.max(i.width, o.width) }, a = Nt({ width: b(n) > s ? n.width : n.height * s, height: b(n) > s ? n.width / s : n.height }, pt(e())), h = { left: i.left + i.width / 2 - a.width / 2, top: i.top + i.height / 2 - a.height / 2, width: a.width, height: a.height }, r = _(i, H(f({ left: 0, top: 0 }, o))), c = {};
|
|
477
|
+
return !r.left && !r.right && h.width <= o.width && (c.left = 0, c.right = o.width), !r.top && !r.bottom && h.height <= o.height && (c.top = 0, c.bottom = o.height), M(h, c);
|
|
478
|
+
}
|
|
479
|
+
var l = b(o);
|
|
480
|
+
return a = { height: l > s ? o.height : o.width / s, width: l > s ? o.height * s : o.width }, { left: o.width / 2 - a.width / 2, top: o.height / 2 - a.height / 2, width: a.width, height: a.height };
|
|
481
|
+
}
|
|
482
|
+
function J(t, e) {
|
|
483
|
+
return qt(t, H(e));
|
|
484
|
+
}
|
|
485
|
+
function ye(t) {
|
|
486
|
+
var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.sizeRestrictions, n = t.getAreaRestrictions, a = t.positionRestrictions, h = t.adjustStencil, r = e.scale, c = e.move, l = f({}, o), u = f({}, i), d = 1, m = 1, g = r.factor && Math.abs(r.factor - 1) > 1e-3;
|
|
487
|
+
l = x(l, { left: c.left || 0, top: c.top || 0 });
|
|
488
|
+
var p = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / u.width : 0, s.minHeight ? s.minHeight / u.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / u.width : 1 / 0, s.maxHeight ? s.maxHeight / u.height : 1 / 0, U(u, a)) }, area: { maximum: U(l, n({ visibleArea: l, type: "resize" })) } };
|
|
489
|
+
r.factor && g && (r.factor < 1 ? (m = Math.max(r.factor, p.stencil.minimum)) > 1 && (m = 1) : r.factor > 1 && (m = Math.min(r.factor, Math.min(p.area.maximum, p.stencil.maximum))) < 1 && (m = 1)), m && (l = T(l, m, r.center));
|
|
490
|
+
var E = i.left - o.left, L = o.width + o.left - (i.width + i.left), Z = i.top - o.top, G = o.height + o.top - (i.height + i.top);
|
|
491
|
+
return l = M(l = x(l, N(l, { left: a.left !== void 0 ? a.left - E * m : void 0, top: a.top !== void 0 ? a.top - Z * m : void 0, bottom: a.bottom !== void 0 ? a.bottom + G * m : void 0, right: a.right !== void 0 ? a.right + L * m : void 0 })), n({ visibleArea: l, type: "move" })), u.width = u.width * m, u.height = u.height * m, u.left = l.left + E * m, u.top = l.top + Z * m, u = M(u, rt(H(l), a)), r.factor && g && h && (r.factor > 1 ? d = Math.min(p.area.maximum, r.factor) / m : r.factor < 1 && (d = Math.max(u.height / l.height, u.width / l.width, r.factor / m)), d !== 1 && (l = x(l = M(l = T(l, d, r.factor > 1 ? r.center : R(u)), n({ visibleArea: l, type: "move" })), ot(N(u, H(l)))))), { coordinates: u, visibleArea: l };
|
|
492
|
+
}
|
|
493
|
+
function ze(t) {
|
|
494
|
+
var e = t.aspectRatio, i = t.getAreaRestrictions, o = t.coordinates, s = t.visibleArea, n = t.sizeRestrictions, a = t.positionRestrictions, h = t.imageSize, r = t.previousImageSize, c = t.angle, l = f({}, o), u = f({}, s), d = j(R(f({ left: 0, top: 0 }, r)), c);
|
|
495
|
+
return (l = f(f({}, I({ sizeRestrictions: n, aspectRatio: e, width: l.width, height: l.height })), j(R(l), c))).left -= d.left - h.width / 2 + l.width / 2, l.top -= d.top - h.height / 2 + l.height / 2, u = T(u, st(u, i({ visibleArea: u, type: "resize" }))), { coordinates: l = M(l, a), visibleArea: u = M(u = x(u, F(R(l), R(o))), i({ visibleArea: u, type: "move" })) };
|
|
496
|
+
}
|
|
497
|
+
function Ae(t) {
|
|
498
|
+
var e = t.flip, i = t.previousFlip, o = t.rotate, s = t.getAreaRestrictions, n = t.coordinates, a = t.visibleArea, h = t.imageSize, r = f({}, n), c = f({}, a), l = i.horizontal !== e.horizontal, u = i.vertical !== e.vertical;
|
|
499
|
+
if (l || u) {
|
|
500
|
+
var d = j({ left: h.width / 2, top: h.height / 2 }, -o), m = j(R(r), -o), g = j({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, o);
|
|
501
|
+
r = x(r, F(g, R(r))), m = j(R(c), -o), c = M(c = x(c, F(g = j({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, o), R(c))), s({ visibleArea: c, type: "move" }));
|
|
502
|
+
}
|
|
503
|
+
return { coordinates: r, visibleArea: c };
|
|
504
|
+
}
|
|
505
|
+
function Lt(t) {
|
|
506
|
+
var e = t.directions, i = t.coordinates, o = t.positionRestrictions, s = o === void 0 ? {} : o, n = t.sizeRestrictions, a = t.preserveRatio, h = t.compensate, r = f({}, e), c = D(i, r).width, l = D(i, r).height;
|
|
507
|
+
c < 0 && (r.left < 0 && r.right < 0 ? (r.left = -(i.width - n.minWidth) / (r.left / r.right), r.right = -(i.width - n.minWidth) / (r.right / r.left)) : r.left < 0 ? r.left = -(i.width - n.minWidth) : r.right < 0 && (r.right = -(i.width - n.minWidth))), l < 0 && (r.top < 0 && r.bottom < 0 ? (r.top = -(i.height - n.minHeight) / (r.top / r.bottom), r.bottom = -(i.height - n.minHeight) / (r.bottom / r.top)) : r.top < 0 ? r.top = -(i.height - n.minHeight) : r.bottom < 0 && (r.bottom = -(i.height - n.minHeight)));
|
|
508
|
+
var u = _(D(i, r), s);
|
|
509
|
+
h && (u.left && u.left > 0 && u.right === 0 ? (r.right += u.left, r.left -= u.left) : u.right && u.right > 0 && u.left === 0 && (r.left += u.right, r.right -= u.right), u.top && u.top > 0 && u.bottom === 0 ? (r.bottom += u.top, r.top -= u.top) : u.bottom && u.bottom > 0 && u.top === 0 && (r.top += u.bottom, r.bottom -= u.bottom), u = _(D(i, r), s));
|
|
510
|
+
var d = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
|
|
511
|
+
if (O.forEach(function(p) {
|
|
512
|
+
var E = u[p];
|
|
513
|
+
E && r[p] && (d[p] = Math.max(0, 1 - E / r[p]));
|
|
514
|
+
}), a) {
|
|
515
|
+
var m = Math.min.apply(null, O.map(function(p) {
|
|
516
|
+
return d[p];
|
|
517
|
+
}));
|
|
518
|
+
m !== 1 / 0 && O.forEach(function(p) {
|
|
519
|
+
r[p] *= m;
|
|
520
|
+
});
|
|
521
|
+
} else O.forEach(function(p) {
|
|
522
|
+
d[p] !== 1 / 0 && (r[p] *= d[p]);
|
|
523
|
+
});
|
|
524
|
+
if (c = D(i, r).width, l = D(i, r).height, r.right + r.left && (c > n.maxWidth ? d.width = (n.maxWidth - i.width) / (r.right + r.left) : c < n.minWidth && (d.width = (n.minWidth - i.width) / (r.right + r.left))), r.bottom + r.top && (l > n.maxHeight ? d.height = (n.maxHeight - i.height) / (r.bottom + r.top) : l < n.minHeight && (d.height = (n.minHeight - i.height) / (r.bottom + r.top))), a) {
|
|
525
|
+
var g = Math.min(d.width, d.height);
|
|
526
|
+
g !== 1 / 0 && O.forEach(function(p) {
|
|
527
|
+
r[p] *= g;
|
|
528
|
+
});
|
|
529
|
+
} else d.width !== 1 / 0 && ae.forEach(function(p) {
|
|
530
|
+
r[p] *= d.width;
|
|
531
|
+
}), d.height !== 1 / 0 && he.forEach(function(p) {
|
|
532
|
+
r[p] *= d.height;
|
|
533
|
+
});
|
|
534
|
+
return r;
|
|
535
|
+
}
|
|
536
|
+
function tt(t, e, i) {
|
|
537
|
+
return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
|
|
538
|
+
}
|
|
539
|
+
var Re = W("vue-simple-handler"), Me = W("vue-simple-handler-wrapper"), zt = { name: "SimpleHandler", components: { HandlerWrapper: Ft }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
540
|
+
return { hover: !1 };
|
|
541
|
+
}, computed: { classes: function() {
|
|
542
|
+
var t, e = (C(t = {}, this.horizontalPosition, !!this.horizontalPosition), C(t, this.verticalPosition, !!this.verticalPosition), C(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), C(t, "hover", this.hover), t);
|
|
543
|
+
return { default: z(Re(e), this.defaultClass, this.hover && this.hoverClass), wrapper: z(Me(e), this.wrapperClass) };
|
|
544
|
+
} }, methods: { onDrag: function(t) {
|
|
545
|
+
this.$emit("drag", t);
|
|
546
|
+
}, onEnter: function() {
|
|
547
|
+
this.hover = !0;
|
|
548
|
+
}, onLeave: function() {
|
|
549
|
+
this.hover = !1;
|
|
550
|
+
}, onDragEnd: function() {
|
|
551
|
+
this.$emit("drag-end");
|
|
552
|
+
} }, emits: ["drag", "drag-end"] };
|
|
553
|
+
zt.render = function(t, e, i, o, s, n) {
|
|
554
|
+
var a = $("HandlerWrapper");
|
|
555
|
+
return y(), w(a, { class: n.classes.wrapper, "vertical-position": i.verticalPosition, "horizontal-position": i.horizontalPosition, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: B(function() {
|
|
556
|
+
return [S("div", { class: n.classes.default }, null, 2)];
|
|
557
|
+
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
558
|
+
};
|
|
559
|
+
var Se = W("vue-simple-line"), xe = W("vue-simple-line-wrapper"), At = { name: "SimpleLine", components: { LineWrapper: Ut }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
560
|
+
return { hover: !1 };
|
|
561
|
+
}, computed: { classes: function() {
|
|
562
|
+
return { root: z(Se(C({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: z(xe(C({}, this.position, !0)), this.wrapperClass) };
|
|
563
|
+
} }, methods: { onDrag: function(t) {
|
|
564
|
+
this.$emit("drag", t);
|
|
565
|
+
}, onEnter: function() {
|
|
566
|
+
this.hover = !0;
|
|
567
|
+
}, onLeave: function() {
|
|
568
|
+
this.hover = !1;
|
|
569
|
+
}, onDragEnd: function() {
|
|
570
|
+
this.$emit("drag-end");
|
|
571
|
+
} }, emits: ["drag", "drag-end"] };
|
|
572
|
+
At.render = function(t, e, i, o, s, n) {
|
|
573
|
+
var a = $("LineWrapper");
|
|
574
|
+
return y(), w(a, { class: n.classes.wrapper, position: i.position, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: B(function() {
|
|
575
|
+
return [S("div", { class: n.classes.root }, null, 2)];
|
|
576
|
+
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
577
|
+
};
|
|
578
|
+
var lt = W("vue-bounding-box"), Ee = ["east", "west", null], Ce = ["south", "north", null], Vt = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
579
|
+
return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
|
|
580
|
+
} }, handlersComponent: { type: [Object, String], default: function() {
|
|
581
|
+
return zt;
|
|
582
|
+
} }, handlersClasses: { type: Object, default: function() {
|
|
583
|
+
return {};
|
|
584
|
+
} }, handlersWrappersClasses: { type: Object, default: function() {
|
|
585
|
+
return {};
|
|
586
|
+
} }, lines: { type: Object, default: function() {
|
|
587
|
+
return { west: !0, north: !0, east: !0, south: !0 };
|
|
588
|
+
} }, linesComponent: { type: [Object, String], default: function() {
|
|
589
|
+
return At;
|
|
590
|
+
} }, linesClasses: { type: Object, default: function() {
|
|
591
|
+
return {};
|
|
592
|
+
} }, linesWrappersClasses: { type: Object, default: function() {
|
|
593
|
+
return {};
|
|
594
|
+
} }, resizable: { type: Boolean, default: !0 } }, data: function() {
|
|
595
|
+
var t = [];
|
|
596
|
+
return Ee.forEach(function(e) {
|
|
597
|
+
Ce.forEach(function(i) {
|
|
598
|
+
if (e !== i) {
|
|
599
|
+
var o = Bt(e, i), s = o.name, n = o.classname;
|
|
600
|
+
t.push({ name: s, classname: n, verticalDirection: i, horizontalDirection: e });
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}), { points: t };
|
|
604
|
+
}, computed: { style: function() {
|
|
605
|
+
var t = {};
|
|
606
|
+
return this.width && this.height && (t.width = "".concat(this.width, "px"), t.height = "".concat(this.height, "px"), this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction))), t;
|
|
607
|
+
}, classes: function() {
|
|
608
|
+
var t = this.handlersClasses, e = this.handlersWrappersClasses, i = this.linesClasses, o = this.linesWrappersClasses;
|
|
609
|
+
return { root: lt(), handlers: t, handlersWrappers: e, lines: i, linesWrappers: o };
|
|
610
|
+
}, lineNodes: function() {
|
|
611
|
+
var t = this, e = [];
|
|
612
|
+
return this.points.forEach(function(i) {
|
|
613
|
+
i.horizontalDirection && i.verticalDirection || !t.lines[i.name] || e.push({ name: i.name, component: t.linesComponent, class: z(t.classes.lines.default, t.classes.lines[i.name], !t.resizable && t.classes.lines.disabled), wrapperClass: z(t.classes.linesWrappers.default, t.classes.linesWrappers[i.name], !t.resizable && t.classes.linesWrappers.disabled), hoverClass: t.classes.lines.hover, verticalDirection: i.verticalDirection, horizontalDirection: i.horizontalDirection, disabled: !t.resizable });
|
|
614
|
+
}), e;
|
|
615
|
+
}, handlerNodes: function() {
|
|
616
|
+
var t = this, e = [], i = this.width, o = this.height;
|
|
617
|
+
return this.points.forEach(function(s) {
|
|
618
|
+
if (t.handlers[s.name]) {
|
|
619
|
+
var n = { name: s.name, component: t.handlersComponent, class: z(t.classes.handlers.default, t.classes.handlers[s.name]), wrapperClass: z(t.classes.handlersWrappers.default, t.classes.handlersWrappers[s.name]), hoverClass: t.classes.handlers.hover, verticalDirection: s.verticalDirection, horizontalDirection: s.horizontalDirection, disabled: !t.resizable };
|
|
620
|
+
if (i && o) {
|
|
621
|
+
var a = s.horizontalDirection, h = s.verticalDirection, r = a === "east" ? i : a === "west" ? 0 : i / 2, c = h === "south" ? o : h === "north" ? 0 : o / 2;
|
|
622
|
+
n.wrapperClass = lt("handler"), n.wrapperStyle = { transform: "translate(".concat(r, "px, ").concat(c, "px)") }, t.transitions && t.transitions.enabled && (n.wrapperStyle.transition = "".concat(t.transitions.time, "ms ").concat(t.transitions.timingFunction));
|
|
623
|
+
} else n.wrapperClass = lt("handler", C({}, s.classname, !0));
|
|
624
|
+
e.push(n);
|
|
625
|
+
}
|
|
626
|
+
}), e;
|
|
627
|
+
} }, beforeMount: function() {
|
|
628
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
629
|
+
}, beforeUnmount: function() {
|
|
630
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
631
|
+
}, mounted: function() {
|
|
632
|
+
this.touches = [];
|
|
633
|
+
}, methods: { onEnd: function() {
|
|
634
|
+
this.$emit("resize-end");
|
|
635
|
+
}, onHandlerDrag: function(t, e, i) {
|
|
636
|
+
var o, s = t.shift(), n = s.left, a = s.top, h = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
637
|
+
e === "west" ? h.left -= n : e === "east" && (h.right += n), i === "north" ? h.top -= a : i === "south" && (h.bottom += a), !i && e ? o = "width" : i && !e && (o = "height"), this.resizable && this.$emit("resize", new oe(h, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: i === "south" || !i, top: i === "north" || !i }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: o }));
|
|
638
|
+
} }, emits: ["resize", "resize-end"] };
|
|
639
|
+
Vt.render = function(t, e, i, o, s, n) {
|
|
640
|
+
return y(), w("div", { ref: "box", class: n.classes.root, style: n.style }, [X(t.$slots, "default"), S("div", null, [(y(!0), w(Rt, null, Mt(n.lineNodes, function(a) {
|
|
641
|
+
return y(), w(nt(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(h) {
|
|
642
|
+
return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
|
|
643
|
+
}, onDragEnd: e[1] || (e[1] = function(h) {
|
|
644
|
+
return n.onEnd();
|
|
645
|
+
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
|
|
646
|
+
}), 128))]), (y(!0), w(Rt, null, Mt(n.handlerNodes, function(a) {
|
|
647
|
+
return y(), w("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(y(), w(nt(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(h) {
|
|
648
|
+
return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
|
|
649
|
+
}, onDragEnd: e[2] || (e[2] = function(h) {
|
|
650
|
+
return n.onEnd();
|
|
651
|
+
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
|
|
652
|
+
}), 128))], 6);
|
|
653
|
+
};
|
|
654
|
+
var Te = W("vue-draggable-area"), _t = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
|
|
655
|
+
return { default: Te() };
|
|
656
|
+
} }, beforeMount: function() {
|
|
657
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
658
|
+
}, beforeUnmount: function() {
|
|
659
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
660
|
+
}, mounted: function() {
|
|
661
|
+
this.touches = [], this.touchStarted = !1;
|
|
662
|
+
}, methods: { onTouchStart: function(t) {
|
|
663
|
+
if (t.cancelable) {
|
|
664
|
+
var e = this.movable && t.touches.length === 1;
|
|
665
|
+
e && (this.touches = k(t.touches)), (this.touchStarted || e) && (t.preventDefault(), t.stopPropagation());
|
|
666
|
+
}
|
|
667
|
+
}, onTouchEnd: function() {
|
|
668
|
+
this.touchStarted = !1, this.processEnd();
|
|
669
|
+
}, onTouchMove: function(t) {
|
|
670
|
+
this.touches.length >= 1 && (this.touchStarted ? (this.processMove(t, t.touches), t.preventDefault(), t.stopPropagation()) : Yt({ x: this.touches[0].clientX, y: this.touches[0].clientY }, { x: t.touches[0].clientX, y: t.touches[0].clientY }) > this.activationDistance && (this.initAnchor({ clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }), this.touchStarted = !0));
|
|
671
|
+
}, onMouseDown: function(t) {
|
|
672
|
+
if (this.movable && t.button === 0) {
|
|
673
|
+
var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
|
|
674
|
+
this.touches = [e], this.initAnchor(e), t.stopPropagation();
|
|
675
|
+
}
|
|
676
|
+
}, onMouseMove: function(t) {
|
|
677
|
+
this.touches.length && (this.processMove(t, [{ fake: !0, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.cancelable && t.preventDefault(), t.stopPropagation());
|
|
678
|
+
}, onMouseUp: function() {
|
|
679
|
+
this.processEnd();
|
|
680
|
+
}, initAnchor: function(t) {
|
|
681
|
+
var e = this.$refs.container.getBoundingClientRect(), i = e.left, o = e.top;
|
|
682
|
+
this.anchor = { x: t.clientX - i, y: t.clientY - o };
|
|
683
|
+
}, processMove: function(t, e) {
|
|
684
|
+
var i = k(e);
|
|
685
|
+
if (this.touches.length) {
|
|
686
|
+
var o = this.$refs.container.getBoundingClientRect(), s = o.left, n = o.top;
|
|
687
|
+
this.touches.length === 1 && i.length === 1 && this.$emit("move", new wt({ left: i[0].clientX - (s + this.anchor.x), top: i[0].clientY - (n + this.anchor.y) }));
|
|
688
|
+
}
|
|
689
|
+
}, processEnd: function() {
|
|
690
|
+
this.touches.length && this.$emit("move-end"), this.touches = [];
|
|
691
|
+
} }, emits: ["move", "move-end"] };
|
|
692
|
+
_t.render = function(t, e, i, o, s, n) {
|
|
693
|
+
return y(), w("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
694
|
+
return n.onTouchStart && n.onTouchStart.apply(n, arguments);
|
|
695
|
+
}), onMousedown: e[2] || (e[2] = function() {
|
|
696
|
+
return n.onMouseDown && n.onMouseDown.apply(n, arguments);
|
|
697
|
+
}) }, [X(t.$slots, "default")], 544);
|
|
698
|
+
};
|
|
699
|
+
function ut(t) {
|
|
700
|
+
var e, i;
|
|
701
|
+
return { rotate: t.rotate || 0, flip: { horizontal: ((e = t == null ? void 0 : t.flip) === null || e === void 0 ? void 0 : e.horizontal) || !1, vertical: ((i = t == null ? void 0 : t.flip) === null || i === void 0 ? void 0 : i.vertical) || !1 } };
|
|
702
|
+
}
|
|
703
|
+
function We(t) {
|
|
704
|
+
return new Promise(function(e, i) {
|
|
705
|
+
try {
|
|
706
|
+
if (t) if (/^data:/i.test(t)) e(function(r) {
|
|
707
|
+
r = r.replace(/^data:([^;]+);base64,/gim, "");
|
|
708
|
+
for (var c = atob(r), l = c.length, u = new ArrayBuffer(l), d = new Uint8Array(u), m = 0; m < l; m++) d[m] = c.charCodeAt(m);
|
|
709
|
+
return u;
|
|
710
|
+
}(t));
|
|
711
|
+
else if (/^blob:/i.test(t)) {
|
|
712
|
+
var o = new FileReader();
|
|
713
|
+
o.onload = function(r) {
|
|
714
|
+
e(r.target.result);
|
|
715
|
+
}, n = t, a = function(r) {
|
|
716
|
+
o.readAsArrayBuffer(r);
|
|
717
|
+
}, (h = new XMLHttpRequest()).open("GET", n, !0), h.responseType = "blob", h.onload = function() {
|
|
718
|
+
this.status != 200 && this.status !== 0 || a(this.response);
|
|
719
|
+
}, h.send();
|
|
720
|
+
} else {
|
|
721
|
+
var s = new XMLHttpRequest();
|
|
722
|
+
s.onreadystatechange = function() {
|
|
723
|
+
s.readyState === 4 && (s.status === 200 || s.status === 0 ? e(s.response) : i("Warning: could not load an image to parse its orientation"), s = null);
|
|
724
|
+
}, s.onprogress = function() {
|
|
725
|
+
s.getResponseHeader("content-type") !== "image/jpeg" && s.abort();
|
|
726
|
+
}, s.withCredentials = !1, s.open("GET", t, !0), s.responseType = "arraybuffer", s.send(null);
|
|
727
|
+
}
|
|
728
|
+
else i("Error: the image is empty");
|
|
729
|
+
} catch (r) {
|
|
730
|
+
i(r);
|
|
731
|
+
}
|
|
732
|
+
var n, a, h;
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function Gt(t) {
|
|
736
|
+
var e = t.rotate, i = t.flip, o = t.scaleX, s = t.scaleY, n = "";
|
|
737
|
+
return n += " rotate(" + e + "deg) ", n += " scaleX(" + o * (i.horizontal ? -1 : 1) + ") ", n += " scaleY(" + s * (i.vertical ? -1 : 1) + ") ";
|
|
738
|
+
}
|
|
739
|
+
function De(t) {
|
|
740
|
+
try {
|
|
741
|
+
var e, i = new DataView(t), o = void 0, s = void 0, n = void 0, a = void 0;
|
|
742
|
+
if (i.getUint8(0) === 255 && i.getUint8(1) === 216) for (var h = i.byteLength, r = 2; r + 1 < h; ) {
|
|
743
|
+
if (i.getUint8(r) === 255 && i.getUint8(r + 1) === 225) {
|
|
744
|
+
n = r;
|
|
745
|
+
break;
|
|
746
|
+
}
|
|
747
|
+
r++;
|
|
748
|
+
}
|
|
749
|
+
if (n && (o = n + 10, function(m, g, p) {
|
|
750
|
+
var E, L = "";
|
|
751
|
+
for (E = g, p += g; E < p; E++) L += String.fromCharCode(m.getUint8(E));
|
|
752
|
+
return L;
|
|
753
|
+
}(i, n + 4, 4) === "Exif")) {
|
|
754
|
+
var c = i.getUint16(o);
|
|
755
|
+
if (((s = c === 18761) || c === 19789) && i.getUint16(o + 2, s) === 42) {
|
|
756
|
+
var l = i.getUint32(o + 4, s);
|
|
757
|
+
l >= 8 && (a = o + l);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
if (a) {
|
|
761
|
+
for (var u = i.getUint16(a, s), d = 0; d < u; d++)
|
|
762
|
+
if (r = a + 12 * d + 2, i.getUint16(r, s) === 274) {
|
|
763
|
+
r += 8, e = i.getUint16(r, s), i.setUint16(r, 1, s);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
return e;
|
|
768
|
+
} catch {
|
|
769
|
+
return null;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
function Pt(t, e) {
|
|
773
|
+
var i = e.getBoundingClientRect(), o = i.left, s = i.top, n = { left: 0, top: 0 }, a = 0;
|
|
774
|
+
return t.forEach(function(h) {
|
|
775
|
+
n.left += (h.clientX - o) / t.length, n.top += (h.clientY - s) / t.length;
|
|
776
|
+
}), t.forEach(function(h) {
|
|
777
|
+
a += Yt({ x: n.left, y: n.top }, { x: h.clientX - o, y: h.clientY - s });
|
|
778
|
+
}), { centerMass: n, spread: a, count: t.length };
|
|
779
|
+
}
|
|
780
|
+
var Qt = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 }, eventsFilter: { type: Function, required: !1 } }, beforeMount: function() {
|
|
781
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
782
|
+
}, beforeUnmount: function() {
|
|
783
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
784
|
+
}, created: function() {
|
|
785
|
+
this.transforming = !1, this.debouncedProcessEnd = ft(this.processEnd), this.touches = [];
|
|
786
|
+
}, methods: { processMove: function(t, e) {
|
|
787
|
+
if (this.touches.length) {
|
|
788
|
+
if (this.touches.length === 1 && e.length === 1) this.$emit("move", new V({ left: this.touches[0].clientX - e[0].clientX, top: this.touches[0].clientY - e[0].clientY }));
|
|
789
|
+
else if (this.touches.length > 1 && this.touchResize) {
|
|
790
|
+
var i = Pt(e, this.$refs.container), o = this.oldGeometricProperties;
|
|
791
|
+
o.count === i.count && o.count > 1 && this.$emit("resize", new V({ left: o.centerMass.left - i.centerMass.left, top: o.centerMass.top - i.centerMass.top }, { factor: o.spread / i.spread, center: i.centerMass })), this.oldGeometricProperties = i;
|
|
792
|
+
}
|
|
793
|
+
this.touches = e;
|
|
794
|
+
}
|
|
795
|
+
}, processEnd: function() {
|
|
796
|
+
this.transforming && (this.transforming = !1, this.$emit("transform-end"));
|
|
797
|
+
}, processStart: function() {
|
|
798
|
+
this.transforming = !0, this.debouncedProcessEnd.clear();
|
|
799
|
+
}, processEvent: function(t) {
|
|
800
|
+
return this.eventsFilter ? this.eventsFilter(t, this.transforming) !== !1 : (t.preventDefault(), t.stopPropagation(), !0);
|
|
801
|
+
}, onTouchStart: function(t) {
|
|
802
|
+
if (t.cancelable && (this.touchMove || this.touchResize && t.touches.length > 1) && this.processEvent(t)) {
|
|
803
|
+
var e = this.$refs.container, i = e.getBoundingClientRect(), o = i.left, s = i.top, n = i.bottom, a = i.right;
|
|
804
|
+
this.touches = k(t.touches).filter(function(h) {
|
|
805
|
+
return h.clientX > o && h.clientX < a && h.clientY > s && h.clientY < n;
|
|
806
|
+
}), this.oldGeometricProperties = Pt(this.touches, e);
|
|
807
|
+
}
|
|
808
|
+
}, onTouchEnd: function(t) {
|
|
809
|
+
t.touches.length === 0 && (this.touches = [], this.processEnd());
|
|
810
|
+
}, onTouchMove: function(t) {
|
|
811
|
+
var e = this;
|
|
812
|
+
if (this.touches.length) {
|
|
813
|
+
var i = k(t.touches).filter(function(o) {
|
|
814
|
+
return !o.identifier || e.touches.find(function(s) {
|
|
815
|
+
return s.identifier === o.identifier;
|
|
816
|
+
});
|
|
817
|
+
});
|
|
818
|
+
this.processEvent(t) && (this.processMove(t, i), this.processStart());
|
|
819
|
+
}
|
|
820
|
+
}, onMouseDown: function(t) {
|
|
821
|
+
if (this.mouseMove && "buttons" in t && t.buttons === 1 && this.processEvent(t)) {
|
|
822
|
+
var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
|
|
823
|
+
this.touches = [e], this.processStart();
|
|
824
|
+
}
|
|
825
|
+
}, onMouseMove: function(t) {
|
|
826
|
+
this.touches.length && this.processEvent(t) && this.processMove(t, [{ clientX: t.clientX, clientY: t.clientY }]);
|
|
827
|
+
}, onMouseUp: function() {
|
|
828
|
+
this.touches = [], this.processEnd();
|
|
829
|
+
}, onWheel: function(t) {
|
|
830
|
+
if (this.wheelResize && this.processEvent(t)) {
|
|
831
|
+
var e = this.$refs.container.getBoundingClientRect(), i = e.left, o = e.top, s = 1 + this.wheelResize.ratio * (a = t.deltaY || t.detail || t.wheelDelta, (h = +a) == 0 || Xt(h) ? h : h > 0 ? 1 : -1), n = { left: t.clientX - i, top: t.clientY - o };
|
|
832
|
+
this.$emit("resize", new V({}, { factor: s, center: n })), this.touches.length || this.debouncedProcessEnd();
|
|
833
|
+
}
|
|
834
|
+
var a, h;
|
|
835
|
+
} }, emits: ["resize", "move", "transform-end"] };
|
|
836
|
+
Qt.render = function(t, e, i, o, s, n) {
|
|
837
|
+
return y(), w("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
838
|
+
return n.onTouchStart && n.onTouchStart.apply(n, arguments);
|
|
839
|
+
}), onMousedown: e[2] || (e[2] = function() {
|
|
840
|
+
return n.onMouseDown && n.onMouseDown.apply(n, arguments);
|
|
841
|
+
}), onWheel: e[3] || (e[3] = function() {
|
|
842
|
+
return n.onWheel && n.onWheel.apply(n, arguments);
|
|
843
|
+
}) }, [X(t.$slots, "default")], 544);
|
|
844
|
+
};
|
|
845
|
+
var bt = { components: { TransformableImage: Qt }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
|
|
846
|
+
bt.render = function(t, e, i, o, s, n) {
|
|
847
|
+
var a = $("transformable-image");
|
|
848
|
+
return y(), w(a, { "touch-move": i.touchMove, "touch-resize": i.touchResize, "mouse-move": i.mouseMove, "wheel-resize": i.wheelResize, onMove: e[1] || (e[1] = function(h) {
|
|
849
|
+
return t.$emit("move", h);
|
|
850
|
+
}), onResize: e[2] || (e[2] = function(h) {
|
|
851
|
+
return t.$emit("resize", h);
|
|
852
|
+
}) }, { default: B(function() {
|
|
853
|
+
return [X(t.$slots, "default")];
|
|
854
|
+
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
855
|
+
};
|
|
856
|
+
var et = W("vue-preview"), Kt = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
857
|
+
return {};
|
|
858
|
+
} }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
|
|
859
|
+
return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
|
|
860
|
+
}, computed: { classes: function() {
|
|
861
|
+
return { root: et({ fill: this.fill }), wrapper: et("wrapper"), imageWrapper: et("image-wrapper"), image: z(et("image"), this.imageClass) };
|
|
862
|
+
}, style: function() {
|
|
863
|
+
if (this.fill) return {};
|
|
864
|
+
var t = {};
|
|
865
|
+
return this.width && (t.width = "".concat(this.size.width, "px")), this.height && (t.height = "".concat(this.size.height, "px")), this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), t;
|
|
866
|
+
}, wrapperStyle: function() {
|
|
867
|
+
var t = { width: "".concat(this.size.width, "px"), height: "".concat(this.size.height, "px"), left: "calc(50% - ".concat(this.size.width / 2, "px)"), top: "calc(50% - ".concat(this.size.height / 2, "px)") };
|
|
868
|
+
return this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), t;
|
|
869
|
+
}, imageStyle: function() {
|
|
870
|
+
if (this.coordinates && this.image) {
|
|
871
|
+
var t = this.coordinates.width / this.size.width, e = v(v({ rotate: 0, flip: { horizontal: !1, vertical: !1 } }, this.image.transforms), {}, { scaleX: 1 / t, scaleY: 1 / t }), i = this.imageSize.width, o = this.imageSize.height, s = Zt({ width: i, height: o }, e.rotate), n = { width: "".concat(i, "px"), height: "".concat(o, "px"), left: "0px", top: "0px" }, a = { rotate: { left: (i - s.width) * e.scaleX / 2, top: (o - s.height) * e.scaleY / 2 }, scale: { left: (1 - e.scaleX) * i / 2, top: (1 - e.scaleY) * o / 2 } };
|
|
872
|
+
return n.transform = `translate(
|
|
873
|
+
`.concat(-this.coordinates.left / t - a.rotate.left - a.scale.left, "px,").concat(-this.coordinates.top / t - a.rotate.top - a.scale.top, "px) ") + Gt(e), this.transitions && this.transitions.enabled && (n.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), n;
|
|
874
|
+
}
|
|
875
|
+
return {};
|
|
876
|
+
}, size: function() {
|
|
877
|
+
return { width: this.width || this.calculatedSize.width, height: this.height || this.calculatedSize.height };
|
|
878
|
+
}, imageSize: function() {
|
|
879
|
+
return { width: this.image.width || this.calculatedImageSize.width, height: this.image.height || this.calculatedImageSize.height };
|
|
880
|
+
} }, watch: { image: function(t) {
|
|
881
|
+
(t.width || t.height) && this.onChangeImage();
|
|
882
|
+
} }, mounted: function() {
|
|
883
|
+
var t = this;
|
|
884
|
+
this.onChangeImage(), this.$refs.image.addEventListener("load", function() {
|
|
885
|
+
t.refreshImage();
|
|
886
|
+
}), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
|
|
887
|
+
}, unmounted: function() {
|
|
888
|
+
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh);
|
|
889
|
+
}, methods: { refreshImage: function() {
|
|
890
|
+
var t = this.$refs.image;
|
|
891
|
+
this.calculatedImageSize.height = t.naturalHeight, this.calculatedImageSize.width = t.naturalWidth;
|
|
892
|
+
}, refresh: function() {
|
|
893
|
+
var t = this.$refs.root;
|
|
894
|
+
this.width || (this.calculatedSize.width = t.clientWidth), this.height || (this.calculatedSize.height = t.clientHeight);
|
|
895
|
+
}, onChangeImage: function() {
|
|
896
|
+
var t = this.$refs.image;
|
|
897
|
+
t && t.complete && this.refreshImage(), this.refresh();
|
|
898
|
+
} } };
|
|
899
|
+
Kt.render = function(t, e, i, o, s, n) {
|
|
900
|
+
return y(), w("div", { ref: "root", class: n.classes.root, style: n.style }, [S("div", { ref: "wrapper", class: n.classes.wrapper, style: n.wrapperStyle }, [It(S("img", { ref: "image", src: i.image && i.image.src, class: n.classes.image, style: n.imageStyle }, null, 14, ["src"]), [[$t, i.image && i.image.src]])], 6)], 6);
|
|
901
|
+
};
|
|
902
|
+
var Jt = { components: { Preview: Kt }, inheritAttrs: !1 };
|
|
903
|
+
Jt.render = function(t, e, i, o, s, n) {
|
|
904
|
+
var a = $("preview");
|
|
905
|
+
return y(), w(a, jt(t.$attrs, { fill: !0 }), null, 16);
|
|
906
|
+
};
|
|
907
|
+
var dt = W("vue-rectangle-stencil"), te = { name: "RectangleStencil", components: { StencilPreview: Jt, BoundingBox: Vt, DraggableArea: _t }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
908
|
+
return zt;
|
|
909
|
+
} }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
|
|
910
|
+
return At;
|
|
911
|
+
} }, aspectRatio: { type: [Number, String] }, minAspectRatio: { type: [Number, String] }, maxAspectRatio: { type: [Number, String] }, movable: { type: Boolean, default: !0 }, resizable: { type: Boolean, default: !0 }, transitions: { type: Object }, movingClass: { type: String }, resizingClass: { type: String }, previewClass: { type: String }, boundingBoxClass: { type: String }, linesClasses: { type: Object, default: function() {
|
|
912
|
+
return {};
|
|
913
|
+
} }, linesWrappersClasses: { type: Object, default: function() {
|
|
914
|
+
return {};
|
|
915
|
+
} }, handlersClasses: { type: Object, default: function() {
|
|
916
|
+
return {};
|
|
917
|
+
} }, handlersWrappersClasses: { type: Object, default: function() {
|
|
918
|
+
return {};
|
|
919
|
+
} } }, data: function() {
|
|
920
|
+
return { moving: !1, resizing: !1 };
|
|
921
|
+
}, computed: { classes: function() {
|
|
922
|
+
return { stencil: z(dt({ movable: this.movable, moving: this.moving, resizing: this.resizing }), this.moving && this.movingClass, this.resizing && this.resizingClass), preview: z(dt("preview"), this.previewClass), boundingBox: z(dt("bounding-box"), this.boundingBoxClass) };
|
|
923
|
+
}, style: function() {
|
|
924
|
+
var t = this.stencilCoordinates, e = t.height, i = t.width, o = t.left, s = t.top, n = { width: "".concat(i, "px"), height: "".concat(e, "px"), transform: "translate(".concat(o, "px, ").concat(s, "px)") };
|
|
925
|
+
return this.transitions && this.transitions.enabled && (n.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), n;
|
|
926
|
+
} }, methods: { onMove: function(t) {
|
|
927
|
+
this.$emit("move", t), this.moving = !0;
|
|
928
|
+
}, onMoveEnd: function() {
|
|
929
|
+
this.$emit("move-end"), this.moving = !1;
|
|
930
|
+
}, onResize: function(t) {
|
|
931
|
+
this.$emit("resize", t), this.resizing = !0;
|
|
932
|
+
}, onResizeEnd: function() {
|
|
933
|
+
this.$emit("resize-end"), this.resizing = !1;
|
|
934
|
+
}, aspectRatios: function() {
|
|
935
|
+
return { minimum: this.aspectRatio || this.minAspectRatio, maximum: this.aspectRatio || this.maxAspectRatio };
|
|
936
|
+
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
937
|
+
te.render = function(t, e, i, o, s, n) {
|
|
938
|
+
var a = $("stencil-preview"), h = $("draggable-area"), r = $("bounding-box");
|
|
939
|
+
return y(), w("div", { class: n.classes.stencil, style: n.style }, [S(r, { width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, transitions: i.transitions, class: n.classes.boundingBox, handlers: i.handlers, "handlers-component": i.handlersComponent, "handlers-classes": i.handlersClasses, "handlers-wrappers-classes": i.handlersWrappersClasses, lines: i.lines, "lines-component": i.linesComponent, "lines-classes": i.linesClasses, "lines-wrappers-classes": i.linesWrappersClasses, resizable: i.resizable, onResize: n.onResize, onResizeEnd: n.onResizeEnd }, { default: B(function() {
|
|
940
|
+
return [S(h, { movable: i.movable, onMove: n.onMove, onMoveEnd: n.onMoveEnd }, { default: B(function() {
|
|
941
|
+
return [S(a, { image: i.image, coordinates: i.coordinates, width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, class: n.classes.preview, transitions: i.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
942
|
+
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
943
|
+
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
944
|
+
};
|
|
945
|
+
var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper", components: { BackgroundWrapper: bt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
|
|
946
|
+
return te;
|
|
947
|
+
} }, backgroundWrapperComponent: { type: [Object, String], default: function() {
|
|
948
|
+
return bt;
|
|
949
|
+
} }, stencilProps: { type: Object, default: function() {
|
|
950
|
+
return {};
|
|
951
|
+
} }, autoZoom: { type: Boolean, default: !1 }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: !0 }, checkOrientation: { type: Boolean, default: !0 }, canvas: { type: [Object, Boolean], default: !0 }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(t) {
|
|
952
|
+
return le.indexOf(t) !== -1;
|
|
953
|
+
} }, roundResult: { type: Boolean, default: !0 }, defaultSize: { type: [Function, Object] }, defaultPosition: { type: [Function, Object] }, defaultVisibleArea: { type: [Function, Object] }, defaultTransforms: { type: [Function, Object] }, defaultBoundaries: { type: [Function, String], validator: function(t) {
|
|
954
|
+
return !(typeof t == "string" && t !== "fill" && t !== "fit");
|
|
955
|
+
} }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
|
|
956
|
+
var e = t.event, i = t.coordinates, o = t.aspectRatio, s = t.positionRestrictions, n = t.sizeRestrictions, a = f(f({}, i), { right: i.left + i.width, bottom: i.top + i.height }), h = e.params || {}, r = f({}, e.directions), c = h.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
957
|
+
n.widthFrozen && (r.left = 0, r.right = 0), n.heightFrozen && (r.top = 0, r.bottom = 0), O.forEach(function(q) {
|
|
958
|
+
c[q] || (r[q] = 0);
|
|
959
|
+
});
|
|
960
|
+
var l = D(a, r = Lt({ coordinates: a, directions: r, sizeRestrictions: n, positionRestrictions: s })).width, u = D(a, r).height, d = h.preserveRatio ? b(a) : ct(l / u, o);
|
|
961
|
+
if (d) {
|
|
962
|
+
var m = h.respectDirection;
|
|
963
|
+
if (m || (m = a.width >= a.height || d === 1 ? "width" : "height"), m === "width") {
|
|
964
|
+
var g = l / d - a.height;
|
|
965
|
+
if (c.top && c.bottom) {
|
|
966
|
+
var p = r.top, E = r.bottom;
|
|
967
|
+
r.bottom = tt(g, E, p), r.top = tt(g, p, E);
|
|
968
|
+
} else c.bottom ? r.bottom = g : c.top ? r.top = g : c.right ? r.right = 0 : c.left && (r.left = 0);
|
|
969
|
+
} else if (m === "height") {
|
|
970
|
+
var L = a.width - u * d;
|
|
971
|
+
if (c.left && c.right) {
|
|
972
|
+
var Z = r.left, G = r.right;
|
|
973
|
+
r.left = -tt(L, Z, G), r.right = -tt(L, G, Z);
|
|
974
|
+
} else c.left ? r.left = -L : c.right ? r.right = -L : c.top ? r.top = 0 : c.bottom && (r.bottom = 0);
|
|
975
|
+
}
|
|
976
|
+
r = Lt({ directions: r, coordinates: a, sizeRestrictions: n, positionRestrictions: s, preserveRatio: !0, compensate: h.compensate });
|
|
977
|
+
}
|
|
978
|
+
return l = D(a, r).width, u = D(a, r).height, (d = h.preserveRatio ? b(a) : ct(l / u, o)) && Math.abs(d - l / u) > 1e-3 && O.forEach(function(q) {
|
|
979
|
+
c[q] || (r[q] = 0);
|
|
980
|
+
}), vt({ event: new wt({ left: -r.left, top: -r.top }), coordinates: { width: i.width + r.right + r.left, height: i.height + r.top + r.bottom, left: i.left, top: i.top }, positionRestrictions: s });
|
|
981
|
+
} }, moveAlgorithm: { type: Function, default: vt }, initStretcher: { type: Function, default: function(t) {
|
|
982
|
+
var e = t.stretcher, i = t.imageSize, o = b(i);
|
|
983
|
+
e.style.width = i.width + "px", e.style.height = e.clientWidth / o + "px", e.style.width = e.clientWidth + "px";
|
|
984
|
+
} }, fitCoordinates: { type: Function, default: function(t) {
|
|
985
|
+
var e = t.visibleArea, i = t.coordinates, o = t.aspectRatio, s = t.sizeRestrictions, n = t.positionRestrictions, a = f(f({}, i), I({ width: i.width, height: i.height, aspectRatio: o, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
|
|
986
|
+
return a = M(a = x(a, F(R(i), R(a))), rt(H(e), n));
|
|
987
|
+
} }, fitVisibleArea: { type: Function, default: function(t) {
|
|
988
|
+
var e = t.visibleArea, i = t.boundaries, o = t.getAreaRestrictions, s = t.coordinates, n = f({}, e);
|
|
989
|
+
n.height = n.width / b(i), n.top += (e.height - n.height) / 2, (s.height - n.height > 0 || s.width - n.width > 0) && (n = T(n, Math.max(s.height / n.height, s.width / n.width)));
|
|
990
|
+
var a = ot(N(s, H(n = T(n, st(n, o({ visibleArea: n, type: "resize" }))))));
|
|
991
|
+
return n.width < s.width && (a.left = 0), n.height < s.height && (a.top = 0), n = M(n = x(n, a), o({ visibleArea: n, type: "move" }));
|
|
992
|
+
} }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
993
|
+
var e = t.visibleArea, i = t.boundaries, o = t.imageSize, s = t.imageRestriction, n = t.type, a = {};
|
|
994
|
+
return s === "fill-area" ? a = { left: 0, top: 0, right: o.width, bottom: o.height } : s === "fit-area" && (b(i) > b(o) ? (a = { top: 0, bottom: o.height }, e && n === "move" && (e.width > o.width ? (a.left = -(e.width - o.width) / 2, a.right = o.width - a.left) : (a.left = 0, a.right = o.width))) : (a = { left: 0, right: o.width }, e && n === "move" && (e.height > o.height ? (a.top = -(e.height - o.height) / 2, a.bottom = o.height - a.top) : (a.top = 0, a.bottom = o.height)))), a;
|
|
995
|
+
} }, sizeRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
996
|
+
return { minWidth: t.minWidth, minHeight: t.minHeight, maxWidth: t.maxWidth, maxHeight: t.maxHeight };
|
|
997
|
+
} }, positionRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
998
|
+
var e = t.imageSize, i = {};
|
|
999
|
+
return t.imageRestriction !== "none" && (i = { left: 0, top: 0, right: e.width, bottom: e.height }), i;
|
|
1000
|
+
} } }, data: function() {
|
|
1001
|
+
return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates: v({}, Wt) };
|
|
1002
|
+
}, computed: { image: function() {
|
|
1003
|
+
return { src: this.imageAttributes.src, width: this.imageAttributes.width, height: this.imageAttributes.height, transforms: this.imageTransforms };
|
|
1004
|
+
}, imageTransforms: function() {
|
|
1005
|
+
return { rotate: this.appliedImageTransforms.rotate, flip: { horizontal: this.appliedImageTransforms.flip.horizontal, vertical: this.appliedImageTransforms.flip.vertical }, translateX: this.visibleArea ? this.visibleArea.left / this.coefficient : 0, translateY: this.visibleArea ? this.visibleArea.top / this.coefficient : 0, scaleX: 1 / this.coefficient, scaleY: 1 / this.coefficient };
|
|
1006
|
+
}, imageSize: function() {
|
|
1007
|
+
var t = function(e) {
|
|
1008
|
+
return e * Math.PI / 180;
|
|
1009
|
+
}(this.imageTransforms.rotate);
|
|
1010
|
+
return { width: Math.abs(this.imageAttributes.width * Math.cos(t)) + Math.abs(this.imageAttributes.height * Math.sin(t)), height: Math.abs(this.imageAttributes.width * Math.sin(t)) + Math.abs(this.imageAttributes.height * Math.cos(t)) };
|
|
1011
|
+
}, initialized: function() {
|
|
1012
|
+
return !!(this.visibleArea && this.imageLoaded);
|
|
1013
|
+
}, settings: function() {
|
|
1014
|
+
var t = gt(this.resizeImage, { touch: !0, wheel: { ratio: 0.1 }, adjustStencil: !0 }, { touch: !1, wheel: !1, adjustStencil: !1 });
|
|
1015
|
+
return { moveImage: gt(this.moveImage, { touch: !0, mouse: !0 }, { touch: !1, mouse: !1 }), resizeImage: t };
|
|
1016
|
+
}, coefficient: function() {
|
|
1017
|
+
return this.visibleArea ? this.visibleArea.width / this.boundaries.width : 0;
|
|
1018
|
+
}, areaRestrictions: function() {
|
|
1019
|
+
return this.imageLoaded ? this.areaRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction, boundaries: this.boundaries }) : {};
|
|
1020
|
+
}, transitionsOptions: function() {
|
|
1021
|
+
return { enabled: this.transitionsActive, timingFunction: "ease-in-out", time: 350 };
|
|
1022
|
+
}, sizeRestrictions: function() {
|
|
1023
|
+
if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
|
|
1024
|
+
var t = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: A(this.minWidth) ? 0 : K(this.minWidth), minHeight: A(this.minHeight) ? 0 : K(this.minHeight), maxWidth: A(this.maxWidth) ? 1 / 0 : K(this.maxWidth), maxHeight: A(this.maxHeight) ? 1 / 0 : K(this.maxHeight) });
|
|
1025
|
+
if (t = function(o) {
|
|
1026
|
+
var s = o.areaRestrictions, n = o.sizeRestrictions, a = o.boundaries, h = o.positionRestrictions, r = f(f({}, n), { minWidth: n.minWidth !== void 0 ? n.minWidth : 0, minHeight: n.minHeight !== void 0 ? n.minHeight : 0, maxWidth: n.maxWidth !== void 0 ? n.maxWidth : 1 / 0, maxHeight: n.maxHeight !== void 0 ? n.maxHeight : 1 / 0 });
|
|
1027
|
+
h.left !== void 0 && h.right !== void 0 && (r.maxWidth = Math.min(r.maxWidth, h.right - h.left)), h.bottom !== void 0 && h.top !== void 0 && (r.maxHeight = Math.min(r.maxHeight, h.bottom - h.top));
|
|
1028
|
+
var c = pt(s), l = Nt(a, c);
|
|
1029
|
+
return c.width < 1 / 0 && (!r.maxWidth || r.maxWidth > l.width) && (r.maxWidth = Math.min(r.maxWidth, l.width)), c.height < 1 / 0 && (!r.maxHeight || r.maxHeight > l.height) && (r.maxHeight = Math.min(r.maxHeight, l.height)), r.minWidth > r.maxWidth && (r.minWidth = r.maxWidth, r.widthFrozen = !0), r.minHeight > r.maxHeight && (r.minHeight = r.maxHeight, r.heightFrozen = !0), r;
|
|
1030
|
+
}({ sizeRestrictions: t, areaRestrictions: this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }), imageSize: this.imageSize, boundaries: this.boundaries, positionRestrictions: this.positionRestrictions, imageRestriction: this.imageRestriction, visibleArea: this.visibleArea, stencilSize: this.getStencilSize() }), this.visibleArea && this.stencilSize) {
|
|
1031
|
+
var e = this.getStencilSize(), i = pt(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
|
|
1032
|
+
t.maxWidth = Math.min(t.maxWidth, i.width * e.width / this.boundaries.width), t.maxHeight = Math.min(t.maxHeight, i.height * e.height / this.boundaries.height), t.maxWidth < t.minWidth && (t.minWidth = t.maxWidth), t.maxHeight < t.minHeight && (t.minHeight = t.maxHeight);
|
|
1033
|
+
}
|
|
1034
|
+
return t;
|
|
1035
|
+
}
|
|
1036
|
+
return { minWidth: 0, minHeight: 0, maxWidth: 0, maxHeight: 0 };
|
|
1037
|
+
}, positionRestrictions: function() {
|
|
1038
|
+
return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
|
|
1039
|
+
}, classes: function() {
|
|
1040
|
+
return { cropper: P(), image: z(P("image"), this.imageClass), stencil: P("stencil"), boundaries: z(P("boundaries"), this.boundariesClass), stretcher: z(P("stretcher")), background: z(P("background"), this.backgroundClass), foreground: z(P("foreground"), this.foregroundClass), imageWrapper: z(P("image-wrapper")), cropperWrapper: z(P("cropper-wrapper")) };
|
|
1041
|
+
}, stencilCoordinates: function() {
|
|
1042
|
+
if (this.initialized) {
|
|
1043
|
+
var t = this.coordinates, e = t.width, i = t.height, o = t.left, s = t.top;
|
|
1044
|
+
return { width: e / this.coefficient, height: i / this.coefficient, left: (o - this.visibleArea.left) / this.coefficient, top: (s - this.visibleArea.top) / this.coefficient };
|
|
1045
|
+
}
|
|
1046
|
+
return this.defaultCoordinates();
|
|
1047
|
+
}, boundariesStyle: function() {
|
|
1048
|
+
var t = { width: this.boundaries.width ? "".concat(Math.round(this.boundaries.width), "px") : "auto", height: this.boundaries.height ? "".concat(Math.round(this.boundaries.height), "px") : "auto", transition: "opacity ".concat(this.transitionTime, "ms"), pointerEvents: this.imageLoaded ? "all" : "none" };
|
|
1049
|
+
return this.imageLoaded || (t.opacity = "0"), t;
|
|
1050
|
+
}, imageStyle: function() {
|
|
1051
|
+
var t = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, e = { left: (t.width - this.imageSize.width) / (2 * this.coefficient), top: (t.height - this.imageSize.height) / (2 * this.coefficient) }, i = { left: (1 - 1 / this.coefficient) * t.width / 2, top: (1 - 1 / this.coefficient) * t.height / 2 }, o = v(v({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / t.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / t.height) }), s = { width: "".concat(t.width, "px"), height: "".concat(t.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-e.left - i.left - this.imageTransforms.translateX, "px, ").concat(-e.top - i.top - this.imageTransforms.translateY, "px)") + Gt(o) };
|
|
1052
|
+
return this.transitionsOptions.enabled && (s.transition = "".concat(this.transitionsOptions.time, "ms ").concat(this.transitionsOptions.timingFunction)), s;
|
|
1053
|
+
} }, watch: { src: function() {
|
|
1054
|
+
this.onChangeImage();
|
|
1055
|
+
}, stencilComponent: function() {
|
|
1056
|
+
var t = this;
|
|
1057
|
+
this.$nextTick(function() {
|
|
1058
|
+
t.resetCoordinates(), t.runAutoZoom("setCoordinates"), t.onChange();
|
|
1059
|
+
});
|
|
1060
|
+
}, minWidth: function() {
|
|
1061
|
+
this.onPropsChange();
|
|
1062
|
+
}, maxWidth: function() {
|
|
1063
|
+
this.onPropsChange();
|
|
1064
|
+
}, minHeight: function() {
|
|
1065
|
+
this.onPropsChange();
|
|
1066
|
+
}, maxHeight: function() {
|
|
1067
|
+
this.onPropsChange();
|
|
1068
|
+
}, imageRestriction: function() {
|
|
1069
|
+
this.reset();
|
|
1070
|
+
}, stencilProps: function(t, e) {
|
|
1071
|
+
["aspectRatio", "minAspectRatio", "maxAspectRatio"].find(function(i) {
|
|
1072
|
+
return t[i] !== e[i];
|
|
1073
|
+
}) && this.$nextTick(this.onPropsChange);
|
|
1074
|
+
} }, created: function() {
|
|
1075
|
+
this.debouncedUpdate = ft(this.update, this.debounce), this.debouncedDisableTransitions = ft(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
|
|
1076
|
+
}, mounted: function() {
|
|
1077
|
+
this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
|
|
1078
|
+
}, unmounted: function() {
|
|
1079
|
+
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh), this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.debouncedUpdate.clear(), this.debouncedDisableTransitions.clear();
|
|
1080
|
+
}, methods: { getResult: function() {
|
|
1081
|
+
var t = this.initialized ? this.prepareResult(v({}, this.coordinates)) : this.defaultCoordinates(), e = { rotate: this.imageTransforms.rotate % 360, flip: v({}, this.imageTransforms.flip) };
|
|
1082
|
+
if (this.src && this.imageLoaded) {
|
|
1083
|
+
var i = this;
|
|
1084
|
+
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? v({}, this.visibleArea) : null, imageTransforms: e, get canvas() {
|
|
1085
|
+
return i.canvas ? i.getCanvas() : void 0;
|
|
1086
|
+
} };
|
|
1087
|
+
}
|
|
1088
|
+
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? v({}, this.visibleArea) : null, canvas: void 0, imageTransforms: e };
|
|
1089
|
+
}, zoom: function(t, e) {
|
|
1090
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
|
|
1091
|
+
this.onManipulateImage(new V({}, { factor: 1 / t, center: e }), { normalize: !1, transitions: s });
|
|
1092
|
+
}, move: function(t, e) {
|
|
1093
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
|
|
1094
|
+
this.onManipulateImage(new V({ left: t || 0, top: e || 0 }), { normalize: !1, transitions: s });
|
|
1095
|
+
}, setCoordinates: function(t) {
|
|
1096
|
+
var e = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = i.autoZoom, s = o === void 0 || o, n = i.transitions, a = n === void 0 || n;
|
|
1097
|
+
this.$nextTick(function() {
|
|
1098
|
+
e.imageLoaded ? (e.transitionsActive || (a && e.enableTransitions(), e.coordinates = e.applyTransform(t), s && e.runAutoZoom("setCoordinates"), a && e.debouncedDisableTransitions()), e.onChange()) : e.delayedTransforms = t;
|
|
1099
|
+
});
|
|
1100
|
+
}, refresh: function() {
|
|
1101
|
+
var t = this, e = this.$refs.image;
|
|
1102
|
+
if (this.src && e) return this.initialized ? this.updateVisibleArea().then(function() {
|
|
1103
|
+
t.onChange();
|
|
1104
|
+
}) : this.resetVisibleArea().then(function() {
|
|
1105
|
+
t.onChange();
|
|
1106
|
+
});
|
|
1107
|
+
}, reset: function() {
|
|
1108
|
+
var t = this;
|
|
1109
|
+
return this.resetVisibleArea().then(function() {
|
|
1110
|
+
t.onChange(!1);
|
|
1111
|
+
});
|
|
1112
|
+
}, awaitRender: function(t) {
|
|
1113
|
+
var e = this;
|
|
1114
|
+
this.awaiting || (this.awaiting = !0, this.$nextTick(function() {
|
|
1115
|
+
t(), e.awaiting = !1;
|
|
1116
|
+
}));
|
|
1117
|
+
}, prepareResult: function(t) {
|
|
1118
|
+
return this.roundResult ? function(e) {
|
|
1119
|
+
var i = e.coordinates, o = e.sizeRestrictions, s = e.positionRestrictions, n = { width: Math.round(i.width), height: Math.round(i.height), left: Math.round(i.left), top: Math.round(i.top) };
|
|
1120
|
+
return n.width > o.maxWidth ? n.width = Math.floor(i.width) : n.width < o.minWidth && (n.width = Math.ceil(i.width)), n.height > o.maxHeight ? n.height = Math.floor(i.height) : n.height < o.minHeight && (n.height = Math.ceil(i.height)), M(n, s);
|
|
1121
|
+
}(v(v({}, this.getPublicProperties()), {}, { positionRestrictions: J(this.positionRestrictions, this.visibleArea), coordinates: t })) : t;
|
|
1122
|
+
}, processAutoZoom: function(t, e, i, o) {
|
|
1123
|
+
var s = this.autoZoomAlgorithm;
|
|
1124
|
+
s || (s = this.stencilSize ? me : this.autoZoom ? fe : ge);
|
|
1125
|
+
var n = s({ event: { type: t, params: o }, visibleArea: e, coordinates: i, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
|
|
1126
|
+
return v(v({}, n), {}, { changed: !Dt(n.visibleArea, e) || !Dt(n.coordinates, i) });
|
|
1127
|
+
}, runAutoZoom: function(t) {
|
|
1128
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transitions, o = i !== void 0 && i, s = ie(e, Oe), n = this.processAutoZoom(t, this.visibleArea, this.coordinates, s), a = n.visibleArea, h = n.coordinates, r = n.changed;
|
|
1129
|
+
o && r && this.enableTransitions(), this.visibleArea = a, this.coordinates = h, o && r && this.debouncedDisableTransitions();
|
|
1130
|
+
}, normalizeEvent: function(t) {
|
|
1131
|
+
return function(e) {
|
|
1132
|
+
var i = e.event, o = e.visibleArea, s = e.coefficient;
|
|
1133
|
+
if (i.type === "manipulateImage") return f(f({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + o.left, top: i.scale.center.top * s + o.top } : null } });
|
|
1134
|
+
if (i.type === "resize") {
|
|
1135
|
+
var n = f(f({}, i), { directions: f({}, i.directions) });
|
|
1136
|
+
return O.forEach(function(h) {
|
|
1137
|
+
n.directions[h] *= s;
|
|
1138
|
+
}), n;
|
|
1139
|
+
}
|
|
1140
|
+
if (i.type === "move") {
|
|
1141
|
+
var a = f(f({}, i), { directions: f({}, i.directions) });
|
|
1142
|
+
return ce.forEach(function(h) {
|
|
1143
|
+
a.directions[h] *= s;
|
|
1144
|
+
}), a;
|
|
1145
|
+
}
|
|
1146
|
+
return i;
|
|
1147
|
+
}(v(v({}, this.getPublicProperties()), {}, { event: t }));
|
|
1148
|
+
}, getCanvas: function() {
|
|
1149
|
+
if (this.$refs.canvas) {
|
|
1150
|
+
var t = this.$refs.canvas, e = this.$refs.image, i = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(h, r, c) {
|
|
1151
|
+
var l = c.rotate, u = c.flip, d = { width: r.naturalWidth, height: r.naturalHeight }, m = Zt(d, l), g = h.getContext("2d");
|
|
1152
|
+
h.height = m.height, h.width = m.width, g.save();
|
|
1153
|
+
var p = j(R(f({ left: 0, top: 0 }, d)), l);
|
|
1154
|
+
return g.translate(-(p.left - m.width / 2), -(p.top - m.height / 2)), g.rotate(l * Math.PI / 180), g.translate(u.horizontal ? d.width : 0, u.vertical ? d.height : 0), g.scale(u.horizontal ? -1 : 1, u.vertical ? -1 : 1), g.drawImage(r, 0, 0, d.width, d.height), g.restore(), h;
|
|
1155
|
+
}(this.$refs.sourceCanvas, e, this.imageTransforms) : e, o = v({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(h) {
|
|
1156
|
+
return h.find(function(r) {
|
|
1157
|
+
return c = r, !Number.isNaN(parseFloat(c)) && isFinite(c);
|
|
1158
|
+
var c;
|
|
1159
|
+
});
|
|
1160
|
+
}, n = I({ sizeRestrictions: { minWidth: s([o.width, o.minWidth]) || 0, minHeight: s([o.height, o.minHeight]) || 0, maxWidth: s([o.width, o.maxWidth]) || 1 / 0, maxHeight: s([o.height, o.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
|
|
1161
|
+
if (o.maxArea && n.width * n.height > o.maxArea) {
|
|
1162
|
+
var a = Math.sqrt(o.maxArea / (n.width * n.height));
|
|
1163
|
+
n = { width: Math.round(a * n.width), height: Math.round(a * n.height) };
|
|
1164
|
+
}
|
|
1165
|
+
return function(h, r, c, l, u) {
|
|
1166
|
+
h.width = l ? l.width : c.width, h.height = l ? l.height : c.height;
|
|
1167
|
+
var d = h.getContext("2d");
|
|
1168
|
+
d.clearRect(0, 0, h.width, h.height), u && (u.imageSmoothingEnabled && (d.imageSmoothingEnabled = u.imageSmoothingEnabled), u.imageSmoothingQuality && (d.imageSmoothingQuality = u.imageSmoothingQuality), u.fillColor && (d.fillStyle = u.fillColor, d.fillRect(0, 0, h.width, h.height), d.save()));
|
|
1169
|
+
var m = c.left < 0 ? -c.left : 0, g = c.top < 0 ? -c.top : 0;
|
|
1170
|
+
d.drawImage(r, c.left + m, c.top + g, c.width, c.height, m * (h.width / c.width), g * (h.height / c.height), h.width, h.height);
|
|
1171
|
+
}(t, i, this.coordinates, n, o), t;
|
|
1172
|
+
}
|
|
1173
|
+
}, update: function() {
|
|
1174
|
+
this.$emit("change", this.getResult());
|
|
1175
|
+
}, applyTransform: function(t) {
|
|
1176
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], i = this.visibleArea && e ? ue(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, o = this.visibleArea && e ? J(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
|
|
1177
|
+
return de({ transform: t, coordinates: this.coordinates, imageSize: this.imageSize, sizeRestrictions: i, positionRestrictions: o, aspectRatio: this.getAspectRatio(), visibleArea: this.visibleArea });
|
|
1178
|
+
}, resetCoordinates: function() {
|
|
1179
|
+
var t = this;
|
|
1180
|
+
if (this.$refs.image) {
|
|
1181
|
+
this.$refs.cropper, this.$refs.image;
|
|
1182
|
+
var e = this.defaultSize;
|
|
1183
|
+
e || (e = this.stencilSize ? be : ve);
|
|
1184
|
+
var i = this.sizeRestrictions;
|
|
1185
|
+
i.minWidth, i.minHeight, i.maxWidth, i.maxHeight;
|
|
1186
|
+
var o = Y(e) ? e({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : e, s = this.defaultPosition || pe, n = [o, function(a) {
|
|
1187
|
+
var h = a.coordinates;
|
|
1188
|
+
return v({}, Y(s) ? s({ coordinates: h, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
|
|
1189
|
+
}];
|
|
1190
|
+
this.delayedTransforms && n.push.apply(n, k(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(n, !0), this.delayedTransforms = null;
|
|
1191
|
+
}
|
|
1192
|
+
}, clearImage: function() {
|
|
1193
|
+
var t = this;
|
|
1194
|
+
this.imageLoaded = !1, setTimeout(function() {
|
|
1195
|
+
var e = t.$refs.stretcher;
|
|
1196
|
+
e && (e.style.height = "auto", e.style.width = "auto"), t.coordinates = t.defaultCoordinates(), t.boundaries = { width: 0, height: 0 };
|
|
1197
|
+
}, this.transitionTime);
|
|
1198
|
+
}, enableTransitions: function() {
|
|
1199
|
+
this.transitions && (this.transitionsActive = !0);
|
|
1200
|
+
}, disableTransitions: function() {
|
|
1201
|
+
this.transitionsActive = !1;
|
|
1202
|
+
}, updateBoundaries: function() {
|
|
1203
|
+
var t = this, e = this.$refs.stretcher, i = this.$refs.cropper;
|
|
1204
|
+
return this.initStretcher({ cropper: i, stretcher: e, imageSize: this.imageSize }), this.$nextTick().then(function() {
|
|
1205
|
+
var o = { cropper: i, imageSize: t.imageSize };
|
|
1206
|
+
if (Y(t.defaultBoundaries) ? t.boundaries = t.defaultBoundaries(o) : t.defaultBoundaries === "fit" ? t.boundaries = function(s) {
|
|
1207
|
+
var n = s.cropper, a = s.imageSize, h = n.clientHeight, r = n.clientWidth, c = h, l = a.width * h / a.height;
|
|
1208
|
+
return l > r && (l = r, c = a.height * r / a.width), { width: l, height: c };
|
|
1209
|
+
}(o) : t.boundaries = function(s) {
|
|
1210
|
+
var n = s.cropper;
|
|
1211
|
+
return { width: n.clientWidth, height: n.clientHeight };
|
|
1212
|
+
}(o), !t.boundaries.width || !t.boundaries.height) throw new Error("It's impossible to fit the cropper in the current container");
|
|
1213
|
+
});
|
|
1214
|
+
}, resetVisibleArea: function() {
|
|
1215
|
+
var t = this;
|
|
1216
|
+
return this.appliedImageTransforms = v(v({}, this.defaultImageTransforms), {}, { flip: v({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
|
|
1217
|
+
t.priority !== "visible-area" && (t.visibleArea = null, t.resetCoordinates());
|
|
1218
|
+
var e, i, o, s, n, a, h = t.defaultVisibleArea || we;
|
|
1219
|
+
t.visibleArea = Y(h) ? h({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, i = e.visibleArea, o = e.boundaries, s = e.getAreaRestrictions, n = f({}, i), a = b(o), n.width / n.height !== a && (n.height = n.width / a), M(n, s({ visibleArea: n, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
|
|
1220
|
+
}).catch(function() {
|
|
1221
|
+
t.visibleArea = null;
|
|
1222
|
+
});
|
|
1223
|
+
}, updateVisibleArea: function() {
|
|
1224
|
+
var t = this;
|
|
1225
|
+
return this.updateBoundaries().then(function() {
|
|
1226
|
+
t.visibleArea = t.fitVisibleArea({ imageSize: t.imageSize, boundaries: t.boundaries, visibleArea: t.visibleArea, coordinates: t.coordinates, getAreaRestrictions: t.getAreaRestrictions }), t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("updateVisibleArea");
|
|
1227
|
+
}).catch(function() {
|
|
1228
|
+
t.visibleArea = null;
|
|
1229
|
+
});
|
|
1230
|
+
}, onChange: function() {
|
|
1231
|
+
var t = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0];
|
|
1232
|
+
t && this.debounce ? this.debouncedUpdate() : this.update();
|
|
1233
|
+
}, onChangeImage: function() {
|
|
1234
|
+
var t, e = this;
|
|
1235
|
+
if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
|
|
1236
|
+
if (function(s) {
|
|
1237
|
+
if (Ct(s)) return !1;
|
|
1238
|
+
var n = window.location, a = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s) || [], h = { protocol: a[1] || "", host: a[2] || "", port: a[3] || "" }, r = function(c) {
|
|
1239
|
+
return c.port || ((c.protocol || n.protocol) === "http" ? 80 : 433);
|
|
1240
|
+
};
|
|
1241
|
+
return !(!h.protocol && !h.host && !h.port || h.protocol && h.protocol == n.protocol && h.host && h.host == n.host && h.host && r(h) == r(n));
|
|
1242
|
+
}(this.src)) {
|
|
1243
|
+
var i = A(this.crossOrigin) ? this.canvas : this.crossOrigin;
|
|
1244
|
+
i === !0 && (i = "anonymous"), this.imageAttributes.crossOrigin = i || null;
|
|
1245
|
+
}
|
|
1246
|
+
if (this.checkOrientation) {
|
|
1247
|
+
var o = (t = this.src, new Promise(function(s) {
|
|
1248
|
+
We(t).then(function(n) {
|
|
1249
|
+
var a = De(n);
|
|
1250
|
+
s(n ? { source: t, arrayBuffer: n, orientation: a } : { source: t, arrayBuffer: null, orientation: null });
|
|
1251
|
+
}).catch(function(n) {
|
|
1252
|
+
console.warn(n), s({ source: t, arrayBuffer: null, orientation: null });
|
|
1253
|
+
});
|
|
1254
|
+
}));
|
|
1255
|
+
setTimeout(function() {
|
|
1256
|
+
o.then(e.onParseImage);
|
|
1257
|
+
}, this.transitionTime);
|
|
1258
|
+
} else setTimeout(function() {
|
|
1259
|
+
e.onParseImage({ source: e.src });
|
|
1260
|
+
}, this.transitionTime);
|
|
1261
|
+
} else this.clearImage();
|
|
1262
|
+
}, onFailLoadImage: function() {
|
|
1263
|
+
this.imageAttributes.src && (this.clearImage(), this.$emit("error"));
|
|
1264
|
+
}, onSuccessLoadImage: function() {
|
|
1265
|
+
var t = this, e = this.$refs.image;
|
|
1266
|
+
e && !this.imageLoaded && (this.imageAttributes.height = e.naturalHeight, this.imageAttributes.width = e.naturalWidth, this.imageLoaded = !0, this.resetVisibleArea().then(function() {
|
|
1267
|
+
t.$emit("ready"), t.onChange(!1);
|
|
1268
|
+
}));
|
|
1269
|
+
}, onParseImage: function(t) {
|
|
1270
|
+
var e = this, i = t.source, o = t.arrayBuffer, s = t.orientation;
|
|
1271
|
+
this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, o && s && s > 1 ? kt(i) || !Ct(i) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([o])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(n) {
|
|
1272
|
+
for (var a = [], h = new Uint8Array(n); h.length > 0; ) {
|
|
1273
|
+
var r = h.subarray(0, 8192);
|
|
1274
|
+
a.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), h = h.subarray(8192);
|
|
1275
|
+
}
|
|
1276
|
+
return "data:image/jpeg;base64," + btoa(a.join(""));
|
|
1277
|
+
}(o) : this.imageAttributes.src = i, Y(this.defaultTransforms) ? this.appliedImageTransforms = ut(this.defaultTransforms()) : it(this.defaultTransforms) ? this.appliedImageTransforms = ut(this.defaultTransforms) : this.appliedImageTransforms = function(n) {
|
|
1278
|
+
var a = ut({});
|
|
1279
|
+
if (n) switch (n) {
|
|
1280
|
+
case 2:
|
|
1281
|
+
a.flip.horizontal = !0;
|
|
1282
|
+
break;
|
|
1283
|
+
case 3:
|
|
1284
|
+
a.rotate = -180;
|
|
1285
|
+
break;
|
|
1286
|
+
case 4:
|
|
1287
|
+
a.flip.vertical = !0;
|
|
1288
|
+
break;
|
|
1289
|
+
case 5:
|
|
1290
|
+
a.rotate = 90, a.flip.vertical = !0;
|
|
1291
|
+
break;
|
|
1292
|
+
case 6:
|
|
1293
|
+
a.rotate = 90;
|
|
1294
|
+
break;
|
|
1295
|
+
case 7:
|
|
1296
|
+
a.rotate = 90, a.flip.horizontal = !0;
|
|
1297
|
+
break;
|
|
1298
|
+
case 8:
|
|
1299
|
+
a.rotate = -90;
|
|
1300
|
+
}
|
|
1301
|
+
return a;
|
|
1302
|
+
}(s), this.defaultImageTransforms = v(v({}, this.appliedImageTransforms), {}, { flip: v({}, this.appliedImageTransforms.flip) }), this.$nextTick(function() {
|
|
1303
|
+
var n = e.$refs.image;
|
|
1304
|
+
n && n.complete && (function(a) {
|
|
1305
|
+
return !!a.naturalWidth;
|
|
1306
|
+
}(n) ? e.onSuccessLoadImage() : e.onFailLoadImage());
|
|
1307
|
+
});
|
|
1308
|
+
}, onResizeEnd: function() {
|
|
1309
|
+
this.runAutoZoom("resize", { transitions: !0 });
|
|
1310
|
+
}, onMoveEnd: function() {
|
|
1311
|
+
this.runAutoZoom("move", { transitions: !0 });
|
|
1312
|
+
}, onMove: function(t) {
|
|
1313
|
+
var e = this;
|
|
1314
|
+
this.transitionsOptions.enabled || this.awaitRender(function() {
|
|
1315
|
+
e.coordinates = e.moveAlgorithm(v(v({}, e.getPublicProperties()), {}, { positionRestrictions: J(e.positionRestrictions, e.visibleArea), coordinates: e.coordinates, event: e.normalizeEvent(t) })), e.onChange();
|
|
1316
|
+
});
|
|
1317
|
+
}, onResize: function(t) {
|
|
1318
|
+
var e = this;
|
|
1319
|
+
this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender(function() {
|
|
1320
|
+
var i = e.sizeRestrictions, o = Math.min(e.coordinates.width, e.coordinates.height, 20 * e.coefficient);
|
|
1321
|
+
e.coordinates = e.resizeAlgorithm(v(v({}, e.getPublicProperties()), {}, { positionRestrictions: J(e.positionRestrictions, e.visibleArea), sizeRestrictions: { maxWidth: Math.min(i.maxWidth, e.visibleArea.width), maxHeight: Math.min(i.maxHeight, e.visibleArea.height), minWidth: Math.max(i.minWidth, o), minHeight: Math.max(i.minHeight, o) }, event: e.normalizeEvent(t) })), e.onChange(), e.ticking = !1;
|
|
1322
|
+
});
|
|
1323
|
+
}, onManipulateImage: function(t) {
|
|
1324
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1325
|
+
if (!this.transitionsOptions.enabled) {
|
|
1326
|
+
var i = e.transitions, o = i !== void 0 && i, s = e.normalize, n = s === void 0 || s;
|
|
1327
|
+
o && this.enableTransitions();
|
|
1328
|
+
var a = ye(v(v({}, this.getPublicProperties()), {}, { event: n ? this.normalizeEvent(t) : t, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), h = a.visibleArea, r = a.coordinates;
|
|
1329
|
+
this.visibleArea = h, this.coordinates = r, this.runAutoZoom("manipulateImage"), this.onChange(), o && this.debouncedDisableTransitions();
|
|
1330
|
+
}
|
|
1331
|
+
}, onPropsChange: function() {
|
|
1332
|
+
this.coordinates = this.applyTransform(this.coordinates, !0), this.onChange(!1);
|
|
1333
|
+
}, getAreaRestrictions: function() {
|
|
1334
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.visibleArea, i = t.type, o = i === void 0 ? "move" : i;
|
|
1335
|
+
return this.areaRestrictionsAlgorithm({ boundaries: this.boundaries, imageSize: this.imageSize, imageRestriction: this.imageRestriction, visibleArea: e, type: o });
|
|
1336
|
+
}, getAspectRatio: function(t) {
|
|
1337
|
+
var e, i, o = this.stencilProps, s = o.aspectRatio, n = o.minAspectRatio, a = o.maxAspectRatio;
|
|
1338
|
+
if (this.$refs.stencil && this.$refs.stencil.aspectRatios) {
|
|
1339
|
+
var h = this.$refs.stencil.aspectRatios();
|
|
1340
|
+
e = h.minimum, i = h.maximum;
|
|
1341
|
+
}
|
|
1342
|
+
if (A(e) && (e = A(s) ? n : s), A(i) && (i = A(s) ? a : s), !t && (A(e) || A(i))) {
|
|
1343
|
+
var r = this.getStencilSize(), c = r ? b(r) : null;
|
|
1344
|
+
A(e) && (e = Tt(c) ? c : void 0), A(i) && (i = Tt(c) ? c : void 0);
|
|
1345
|
+
}
|
|
1346
|
+
return { minimum: e, maximum: i };
|
|
1347
|
+
}, getStencilSize: function() {
|
|
1348
|
+
if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, o = t.aspectRatio, ct(b(s = Y(i) ? i({ boundaries: e, aspectRatio: o }) : i), o) && (s = I({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: o.minimum, maximum: o.maximum } })), (s.width > e.width || s.height > e.height) && (s = I({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: b(s), maximum: b(s) } })), s;
|
|
1349
|
+
var t, e, i, o, s;
|
|
1350
|
+
}, getPublicProperties: function() {
|
|
1351
|
+
return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
|
|
1352
|
+
}, defaultCoordinates: function() {
|
|
1353
|
+
return v({}, Wt);
|
|
1354
|
+
}, flip: function(t, e) {
|
|
1355
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
|
|
1356
|
+
if (!this.transitionsActive) {
|
|
1357
|
+
s && this.enableTransitions();
|
|
1358
|
+
var n = v({}, this.imageTransforms.flip), a = Ae({ flip: { horizontal: t ? !n.horizontal : n.horizontal, vertical: e ? !n.vertical : n.vertical }, previousFlip: n, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), h = a.visibleArea, r = a.coordinates;
|
|
1359
|
+
t && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), e && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = h, this.coordinates = r, this.onChange(), s && this.debouncedDisableTransitions();
|
|
1360
|
+
}
|
|
1361
|
+
}, rotate: function(t) {
|
|
1362
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transitions, o = i === void 0 || i;
|
|
1363
|
+
if (!this.transitionsActive) {
|
|
1364
|
+
o && this.enableTransitions();
|
|
1365
|
+
var s = v({}, this.imageSize);
|
|
1366
|
+
this.appliedImageTransforms.rotate += t;
|
|
1367
|
+
var n = ze({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: s, imageSize: this.imageSize, angle: t, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), a = n.visibleArea, h = n.coordinates, r = this.processAutoZoom("rotateImage", a, h);
|
|
1368
|
+
a = r.visibleArea, h = r.coordinates, this.visibleArea = a, this.coordinates = h, this.onChange(), o && this.debouncedDisableTransitions();
|
|
1369
|
+
}
|
|
1370
|
+
} }, emits: ["change", "error", "ready"] }, Le = { key: 0, ref: "canvas", style: { display: "none" } }, Pe = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
1371
|
+
He.render = function(t, e, i, o, s, n) {
|
|
1372
|
+
return y(), w("div", { ref: "cropper", class: n.classes.cropper }, [S("div", { ref: "stretcher", class: n.classes.stretcher }, null, 2), S("div", { class: n.classes.boundaries, style: n.boundariesStyle }, [(y(), w(nt(i.backgroundWrapperComponent), { class: n.classes.cropperWrapper, "wheel-resize": n.settings.resizeImage.wheel, "touch-resize": n.settings.resizeImage.touch, "touch-move": n.settings.moveImage.touch, "mouse-move": n.settings.moveImage.mouse, onMove: n.onManipulateImage, onResize: n.onManipulateImage }, { default: B(function() {
|
|
1373
|
+
return [S("div", { class: n.classes.background, style: n.boundariesStyle }, null, 6), S("div", { class: n.classes.imageWrapper }, [S("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: n.classes.image, style: n.imageStyle, onMousedown: e[1] || (e[1] = ee(function() {
|
|
1374
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), S("div", { class: n.classes.foreground, style: n.boundariesStyle }, null, 6), It((y(), w(nt(i.stencilComponent), jt({ ref: "stencil", image: n.image, coordinates: s.coordinates, "stencil-coordinates": n.stencilCoordinates, transitions: n.transitionsOptions }, i.stencilProps, { onResize: n.onResize, onResizeEnd: n.onResizeEnd, onMove: n.onMove, onMoveEnd: n.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[$t, s.imageLoaded]]), i.canvas ? (y(), w("canvas", Le, null, 512)) : St("", !0), i.canvas ? (y(), w("canvas", Pe, null, 512)) : St("", !0)];
|
|
1375
|
+
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
1376
|
+
};
|
|
1377
|
+
export {
|
|
1378
|
+
He as f,
|
|
1379
|
+
Qt as o
|
|
1380
|
+
};
|