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