@gct-paas/core-web 0.1.5-dev.4 → 0.1.5-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_plugin-vue_export-helper-DySwtVV7.js +1 -0
- package/dist/icon-next-picker-CShmDJI0.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/monaco-editor-t8SRxaFC.js +1 -0
- package/dist/overlayscrollbars-vue-B2LfyB-V.js +1 -0
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/base-button/base-button.vue.mjs +1 -1
- package/es/components/field-upload/src/components/base-upload.vue.mjs +2 -2
- package/es/components/field-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +4 -3
- package/es/components/field-upload/src/components/{base-upload.vue_vue_type_style_index_0_scoped_f53b6ac6_lang.css → base-upload.vue_vue_type_style_index_0_scoped_65872e0a_lang.css} +18 -18
- package/es/components/field-upload/src/components/file-list.vue.mjs +2 -2
- package/es/components/field-upload/src/components/file-list.vue_vue_type_script_setup_true_name_fileList_lang.mjs +2 -2
- package/es/components/field-upload/src/components/{file-list.vue_vue_type_style_index_0_scoped_3918aad0_lang.css → file-list.vue_vue_type_style_index_0_scoped_543b5221_lang.css} +25 -25
- package/es/components/field-upload/src/components/upload-design.vue.mjs +2 -2
- package/es/components/field-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +4 -3
- package/es/components/field-upload/src/components/{upload-design.vue_vue_type_style_index_0_scoped_1e5189c1_lang.css → upload-design.vue_vue_type_style_index_0_scoped_5fd18cf8_lang.css} +10 -10
- package/es/components/icon-next-picker/icon-next-picker.vue.mjs +6 -0
- package/es/components/{icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs → icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs} +7 -11
- package/es/components/image-upload/index.mjs +1 -1
- package/es/components/index.d.ts +2 -5
- package/es/components/index.mjs +3 -11
- package/es/components/number-range/number-range.vue.d.ts +85 -0
- package/es/components/number-range/number-range.vue.mjs +7 -0
- package/es/components/number-range/number-range.vue_vue_type_script_setup_true_lang.mjs +91 -0
- package/es/components/number-range/number-range.vue_vue_type_style_index_0_scoped_283a5280_lang.css +8 -0
- package/es/create-app-vue.mjs +5 -3
- package/es/index.mjs +37 -39
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
- package/es/modules/formula-editor/formula-editor.mjs +1 -2
- package/es/modules/formula-editor/interface/i-formula-editor-options/i-formula-editor-options.d.ts +2 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/es/setup-app.d.ts +2 -1
- package/es/setup-app.mjs +1 -3
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/model-entity/model-entity.d.ts +28 -0
- package/es/utils/model-entity/model-entity.mjs +47 -0
- package/package.json +7 -5
- package/dist/monaco-editor-BSzX1Bsh.js +0 -1
- package/dist/useMonacoEditor-BCTpu3UR.js +0 -1
- package/es/components/assets-svg-icon/assets-svg-icon.css +0 -188
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +0 -134
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +0 -167
- package/es/components/assets-svg-icon/request.d.ts +0 -2
- package/es/components/assets-svg-icon/request.mjs +0 -68
- package/es/components/assets-svg-icon/utils.d.ts +0 -9
- package/es/components/assets-svg-icon/utils.mjs +0 -23
- package/es/components/assets-svg-icon/validate.d.ts +0 -4
- package/es/components/assets-svg-icon/validate.mjs +0 -29
- package/es/components/icon-next/data/icons.data.d.ts +0 -5
- package/es/components/icon-next/hooks/useIconAsset.d.ts +0 -16
- package/es/components/icon-next/hooks/useIconAsset.mjs +0 -36
- package/es/components/icon-next/hooks/useIconPark.d.ts +0 -16
- package/es/components/icon-next/hooks/useIconPark.mjs +0 -52
- package/es/components/icon-next/hooks/useIconPlatform.d.ts +0 -8
- package/es/components/icon-next/hooks/useIconPlatform.mjs +0 -43
- package/es/components/icon-next/index.d.ts +0 -3
- package/es/components/icon-next/index.mjs +0 -3
- package/es/components/icon-next/src/IconNext.vue.d.ts +0 -40
- package/es/components/icon-next/src/IconNext.vue.mjs +0 -7
- package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +0 -113
- package/es/components/icon-next/src/IconNext.vue_vue_type_style_index_0_scoped_360a87c9_lang.css +0 -18
- package/es/components/icon-next/src/IconNextPicker.vue.mjs +0 -6
- package/es/components/icon-next/types/index.d.ts +0 -17
- package/es/components/icon-next/types/index.mjs +0 -11
- package/es/components/svg-icon/svg-icon.vue.d.ts +0 -40
- package/es/components/svg-icon/svg-icon.vue.mjs +0 -6
- package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +0 -52
- package/es/components/svg-icon/svg-icon.vue_vue_type_style_index_0_lang.css +0 -73
- package/es/components/wujie-container/wujie-container.css +0 -74
- package/es/components/wujie-container/wujie-container.d.ts +0 -11
- package/es/components/wujie-container/wujie-container.mjs +0 -61
- /package/dist/{cropper-DyP6CFER.js → cropper-DPh9NaIi.js} +0 -0
- /package/dist/{de_DE-DIDpd1gQ.js → de_DE-BY1He8Sf.js} +0 -0
- /package/dist/{en_US-BaP-b1tP.js → en_US-CuX-vrWy.js} +0 -0
- /package/dist/{es_ES-NOVlNQnw.js → es_ES-BqHRjpc9.js} +0 -0
- /package/dist/{fr_FR-Bk_x0L7S.js → fr_FR-C4TFcMTv.js} +0 -0
- /package/dist/{ja_JP-CeseBQS9.js → ja_JP-CgXnA74i.js} +0 -0
- /package/dist/{pt_PT-DFlFmzXZ.js → pt_PT-C0ALlHDr.js} +0 -0
- /package/dist/{ru_RU-C5XPaRfl.js → ru_RU-D39vUeFW.js} +0 -0
- /package/dist/{tr_TR-CODhj5X1.js → tr_TR-Cm3P61iH.js} +0 -0
- /package/dist/{vi_VN-BjwID8XV.js → vi_VN-BZ_iPKuE.js} +0 -0
- /package/dist/{zh_CN-BKmwBYsr.js → zh_CN-DY_wA21D.js} +0 -0
- /package/dist/{zh_TW-BSGEo2Qx.js → zh_TW-A1Y7MG2g.js} +0 -0
- /package/es/components/{icon-next/src/IconNextPicker.vue.d.ts → icon-next-picker/icon-next-picker.vue.d.ts} +0 -0
- /package/es/components/{icon-next/src/IconNextPicker.vue_vue_type_style_index_0_lang.css → icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css} +0 -0
- /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r,t as n}from"./chunk-lEgNpoW5.js";import{Modal as o,OverlayContainer as i,useNamespace as a}from"@gct-paas/core";import*as s from"vue";import{computed as c,createVNode as u,defineComponent as l,h as d,isVNode as f,provide as h,reactive as g,ref as p,resolveComponent as v}from"vue";import{isFunction as m,isString as y}from"lodash-es";import{ConfigProvider as b,message as O}from"ant-design-vue";function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function D(e,t,r){return(t=function(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},T=class{info(e,t){return new Promise(r=>{O.info(e,null==t?void 0:t.duration,r)})}success(e,t){return new Promise(r=>{O.success(e,null==t?void 0:t.duration,r)})}warning(e,t){return new Promise(r=>{O.warning(e,null==t?void 0:t.duration,r)})}error(e,t){return new Promise(r=>{O.error(e,null==t?void 0:t.duration,r)})}};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){E(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach(function(t){j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function R(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function A(e){return{}.toString.call(e).includes("Object")}function M(e){return"function"==typeof e}var _=R(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),k=function(e,t){return A(t)||_("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&_("changeField"),t},L=function(e){M(e)||_("selectorType")},H=function(e){M(e)||A(e)||_("handlerType"),A(e)&&Object.values(e).some(function(e){return!M(e)})&&_("handlersType")},U=function(e){var t;e||_("initialIsRequired"),A(e)||_("initialType"),t=e,Object.keys(t).length||_("initialContent")};function F(e,t){return M(t)?t(e.current):t}function q(e,t){return e.current=x(x({},e.current),t),t}function B(e,t,r){return M(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var V,W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U(e),H(t);var r={current:e},n=R(B)(r,t),o=R(q)(r),i=R(k)(e),a=R(F)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return L(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,i,a)(e)}]},z={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},G=(V=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=V.length?V.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(z),X=function(e){var t;return e||G("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||G("configType"),e.urls?(console.warn(z.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function $(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],$(e[r],t[r]))}),P(P({},e),t)}var Y={type:"cancelation",msg:"operation is manually canceled"};function K(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(Y):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var J,Q=["monaco"],Z=function(e){if(Array.isArray(e))return e}(J=W({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(r=o.call(t)).done)&&(a.push(r.value),2!==a.length);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw n}}return a}}(J)||function(e){if(e){if("string"==typeof e)return I(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,2):void 0}}(J)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),ee=Z[0],te=Z[1];function re(e){return document.body.appendChild(e)}function ne(e){var t,r,n=ee(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function oe(){var e=ee(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;ie(r),e.resolve(r)},function(t){e.reject(t)})}function ie(e){ee().monaco||te({monaco:e})}var ae=new Promise(function(e,t){return te({resolve:e,reject:t})}),se={config:function(e){var t=X(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Q);te(function(e){return{config:$(e.config,n),monaco:r}})},init:function(){var e=ee(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(te({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),K(ae);if(window.monaco&&window.monaco.editor)return ie(window.monaco),e.resolve(window.monaco),K(ae);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(re,ne)(oe)}return K(ae)},__getMonacoInstance:function(){return ee(function(e){return e.monaco})}},ce=new class{constructor(){D(this,"_monacoInstance",null),D(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){se.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=se.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,r){return(await this.loadMonaco()).editor.createModel(e,t,r)}},ue=/* @__PURE__ */t({Vue:()=>s,Vue2:()=>{},del:()=>he,install:()=>de,isVue2:()=>!1,isVue3:()=>!0,set:()=>fe});import*as le from"vue";function de(){}function fe(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function he(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}r(ue,le);var ge=Symbol.for("DndContextType");function pe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ve="function"==typeof Symbol&&Symbol.observable||"@@observable",me=function(){return Math.random().toString(36).substring(7).split("").join(".")},ye={INIT:"@@redux/INIT"+me(),REPLACE:"@@redux/REPLACE"+me(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+me()}};function be(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(pe(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(pe(1));return r(be)(e,t)}if("function"!=typeof e)throw new Error(pe(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(pe(3));return i}function d(e){if("function"!=typeof e)throw new Error(pe(4));if(c)throw new Error(pe(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(pe(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(pe(7));if(void 0===e.type)throw new Error(pe(8));if(c)throw new Error(pe(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}return f({type:ye.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(pe(10));o=e,f({type:ye.REPLACE})}})[ve]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(pe(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[ve]=function(){return this},e},n}function Oe(e,t,...r){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,function(){return r[n++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function we(e){return"object"==typeof e}var De="dnd-core/INIT_COORDS",Se="dnd-core/BEGIN_DRAG",Te="dnd-core/PUBLISH_DRAG_SOURCE",Ie="dnd-core/HOVER",Ee="dnd-core/DROP",Ce="dnd-core/END_DRAG";function Pe(e,t){return{type:De,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var je={type:De,payload:{clientOffset:null,sourceClientOffset:null}};function Ne(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:o,getSourceClientOffset:i}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Pe(o)),function(e,t,r){Oe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Oe(r.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,a);if(null==c)return void e.dispatch(je);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Oe("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Pe(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){Oe(we(e),"Item must be an object.")}(l),s.pinSource(c),{type:Se,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!n}}):void 0}}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){xe(e,t,r[t])})}return e}function Ae(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){Oe(e.isDragging(),"Cannot call drop while not dragging."),Oe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r).forEach((o,i)=>{const a={type:Ee,payload:{dropResult:Re({},t,Me(o,i,n,r))}};e.dispatch(a)})}}function Me(e,t,r,n){const o=r.getTarget(e);let i=o?o.drop(n,e):void 0;return function(e){Oe(void 0===e||we(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function _e(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){Oe(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:Ce}}}function ke(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function Le(e){return function(t,{clientOffset:r}={}){!function(e){Oe(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const o=e[n];ke(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){Oe(t.isDragging(),"Cannot call hover while not dragging."),Oe(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];Oe(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array."),Oe(r.getTarget(t),"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){e.forEach(function(e){r.getTarget(e).hover(t,e)})}(n,o,i),{type:Ie,payload:{targetIds:n,clientOffset:r||null}}}}function He(e){return function(){if(e.getMonitor().isDragging())return{type:Te}}}var Ue=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,r=function(e){return{beginDrag:Ne(e),publishDragSource:He(e),hover:Le(e),drop:Ae(e),endDrag:_e(e)}}(this);return Object.keys(r).reduce((n,o)=>{const i=r[o];var a;return n[o]=(a=i,(...r)=>{const n=a.apply(e,r);void 0!==n&&t(n)}),n},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Fe(e,t){return{x:e.x-t.x,y:e.y-t.y}}var qe=[],Be=[];qe.__IS_NONE__=!0,Be.__IS_ALL__=!0;var Ve=class{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Oe("function"==typeof e,"listener must be a function."),Oe(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===n||o===n+1&&!function(e,t){return e!==qe&&(e===Be||void 0===t||(r=t,n=e,r.filter(e=>n.indexOf(e)>-1)).length>0);var r,n}(t.dirtyHandlerIds,r)||e()}finally{n=o}})}subscribeToOffsetChange(e){Oe("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Oe(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return Oe(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&ke(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return Oe(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ke(n,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return r?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Fe((i=n,{x:(o=t).x+i.x,y:o.y+i.y}),r):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Fe(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},We="undefined"!=typeof global?global:self,ze=We.MutationObserver||We.WebKitMutationObserver;function Ge(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var Xe,$e="function"==typeof ze?function(e){let t=1;const r=new ze(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ge,Ye=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Ke=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=$e(this.flush),this.requestErrorThrow=Ge(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Je=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Ye(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Ke.registerPendingError),Qe="dnd-core/ADD_SOURCE",Ze="dnd-core/ADD_TARGET",et="dnd-core/REMOVE_SOURCE",tt="dnd-core/REMOVE_TARGET";function rt(e,t){t&&Array.isArray(e)?e.forEach(e=>rt(e,!1)):Oe("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Xe||(Xe={}));var nt=0;function ot(e){switch(e[0]){case"S":return Xe.SOURCE;case"T":return Xe.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function it(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,o]}=r.next();if(o===t)return!0;n=!!e}while(!n);return!1}var at=class{addSource(e,t){rt(e),function(e){Oe("function"==typeof e.canDrag,"Expected canDrag to be a function."),Oe("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Oe("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Xe.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Qe,payload:{sourceId:e}}}(r)),r}addTarget(e,t){rt(e,!0),function(e){Oe("function"==typeof e.canDrop,"Expected canDrop to be a function."),Oe("function"==typeof e.hover,"Expected hover to be a function."),Oe("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Xe.TARGET,e,t);return this.store.dispatch(function(e){return{type:Ze,payload:{targetId:e}}}(r)),r}containsHandler(e){return it(this.dragSources,e)||it(this.dropTargets,e)}getSource(e,t=!1){return Oe(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Oe(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Oe(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Oe(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ot(e)===Xe.SOURCE}isTargetId(e){return ot(e)===Xe.TARGET}removeSource(e){var t;Oe(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:et,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Ke.enqueueTask(Je.create(t))}removeTarget(e){Oe(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:tt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Oe(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Oe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=function(e){const t=(nt++).toString();switch(e){case Xe.SOURCE:return`S${t}`;case Xe.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===Xe.SOURCE?this.dragSources.set(n,r):e===Xe.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},st=(e,t)=>e===t;function ct(e=qe,t){switch(t.type){case Ie:break;case Qe:case Ze:case tt:case et:return qe;default:return Be}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,o=function(e,t){const r=/* @__PURE__ */new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const o=[];return r.forEach((e,t)=>{1===e&&o.push(t)}),o}(r,n);if(!(o.length>0)&&function(e,t,r=st){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n))return qe;const i=n[n.length-1],a=r[r.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function ut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function dt(e=lt,t){const{payload:r}=t;switch(t.type){case De:case Se:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ie:return n=e.clientOffset,o=r.clientOffset,!n&&!o||n&&o&&n.x===o.x&&n.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ut(e,t,r[t])})}return e}({},e,{clientOffset:r.clientOffset});case Ce:case Ee:return lt;default:return e}var n,o}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ft(e,t,r[t])})}return e}var gt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function pt(e=gt,t){const{payload:r}=t;switch(t.type){case Se:return ht({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Te:return ht({},e,{isSourcePublic:!0});case Ie:return ht({},e,{targetIds:r.targetIds});case tt:return-1===e.targetIds.indexOf(r.targetId)?e:ht({},e,{targetIds:(n=e.targetIds,o=r.targetId,n.filter(e=>e!==o))});case Ee:return ht({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ce:return ht({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,o}function vt(e=0,t){switch(t.type){case Qe:case Ze:return e+1;case et:case tt:return e-1;default:return e}}function mt(e=0){return e+1}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){yt(e,t,r[t])})}return e}function Ot(e={},t){return{dirtyHandlerIds:ct(e.dirtyHandlerIds,{type:t.type,payload:bt({},t.payload,{prevTargetIds:(r=e,n=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,r))})}),dragOffset:dt(e.dragOffset,t),refCount:vt(e.refCount,t),dragOperation:pt(e.dragOperation,t),stateId:mt(e.stateId)};var r,n}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dt=0,St=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[St]||(o[St]=function(e,t,r={},n=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return be(Ot,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),i=new Ue(o,new Ve(o,new at(o))),a=e(i,t,r);return i.receiveBackend(a),i}(e,t,r,n)),o[St]}function It(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var Et=(0,ue.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var r,n,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[Tt(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return wt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wt(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++Dt,(0,ue.onUnmounted)(function(){if(u){var e=It();0===--Dt&&(e[St]=null)}}),r=c,(0,ue.provide)(ge,r),function(){var e;return null!==(n=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==n?n:null}}});(0,ue.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,ue.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,r=new Image;return r.src=e.src,r.onload=function(){e.connect(r),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var Ct=!1,Pt=!1,jt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){Oe(!Ct,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ct=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ct=!1}},t.isDragging=function(){if(!this.sourceId)return!1;Oe(!Pt,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Pt=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pt=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),Nt=!1,xt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;Oe(!Nt,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Nt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nt=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function Rt(e){return function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=r)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(r=e)&&!0===r.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,r}(r)){var o=r;return e(o,n),o}}}function At(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=Rt(n);t[r]=function(){return o}}}),t}function Mt(e,t,r,n){let o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=r?r.call(n,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function _t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var kt=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=At({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n=e.prototype;return n.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},n.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},n.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},n.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},n.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},n.didDragSourceOptionsChange=function(){return!Mt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},n.didDragPreviewOptionsChange=function(){return!Mt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},n.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},n.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},n.clearDragSource=function(){this.dragSourceNode=null},n.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&_t(t.prototype,r),e}();function Lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ht=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=At({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,ue.isRef)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n=e.prototype;return n.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},n.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},n.didOptionsChange=function(){return!Mt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},n.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},n.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&Lt(t.prototype,r),e}(),Ut=/* @__PURE__ */function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r,this.connector=n}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,r=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(r):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var r=this.spec,n=this.monitor,o=r.isDragging;return o?o(n):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,r=this.connector,n=e.end;n&&n(t.getItem(),t),r.reconnect()},e}();function Ft(){var e=(0,ue.inject)(ge);return Oe(null!=e,"Expected drag drop context"),e}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bt(e,t,r){var n=Ft(),o=function(e,t,r){var n=(0,ue.computed)(function(){return new Ut((0,ue.unref)(e),(0,ue.unref)(t),(0,ue.unref)(r))});return(0,ue.watchEffect)(function(){n.value.spec=(0,ue.unref)(e)}),n}(e,t,r),i=function(e){return(0,ue.computed)(function(){var t=(0,ue.unref)(e).type;return Oe(null!=t,"spec.type must be defined"),t})}(e);(0,ue.watchEffect)(function(e){if(null!=(0,ue.unref)(i)){var a=(u=function(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}((0,ue.unref)(i),(0,ue.unref)(o),(0,ue.unref)(n)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return qt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,ue.unref)(t).receiveHandlerId(s),(0,ue.unref)(r).receiveHandlerId(s),e(c)}var u,l})}function Vt(e){return(0,ue.computed)(function(){return"function"==typeof e?e():e})}var Wt=/* @__PURE__ */e(/* @__PURE__ */n((e,t)=>{t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}})());function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gt(e,t,r){var n,o,i=(n=function(e,t,r){var n=(0,ue.ref)((0,ue.unref)(t)((0,ue.unref)(e))),o=function(){var o=(0,ue.unref)(t)((0,ue.unref)(e));(0,Wt.default)(n.value,o)||(n.value=o,r&&r())};return(0,ue.watchEffect)(o),[n,o]}(e,t,r),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(n,o)||function(e,t){if(e){if("string"==typeof e)return zt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zt(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,ue.watchEffect)(function(t){var r=(0,ue.unref)(e).getHandlerId();null!=r&&t((0,ue.unref)(e).subscribeToStateChange(s,{handlerIds:[r]}))}),a}function Xt(e,t,r){return Gt(t,e||function(){return{}},function(){return(0,ue.unref)(r).reconnect()})}function $t(e,t){var r=(0,ue.reactive)({el:null,options:(0,ue.unref)(t)});return(0,ue.watchEffect)(function(){e(r)},{flush:"post"}),function(e,n){fe(r,"el",e);var o=(0,ue.unref)(t)||n;return(0,Wt.default)(r.options,o)||fe(r,"options",o),(0,ue.unref)(e)}}function Yt(e,t){return $t(function(t){(0,ue.unref)(e).hooks.dragSource()(t.el,t.options)},(0,ue.computed)(function(){return(0,ue.unref)(t).options}))}function Kt(e,t){return $t(function(t){(0,ue.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,ue.computed)(function(){return(0,ue.unref)(t).previewOptions}))}function Jt(e){var t,r=Vt(e),n=(t=Ft(),(0,ue.computed)(function(){return new jt((0,ue.unref)(t))})),o=function(e,t){var r=Ft(),n=(0,ue.computed)(function(){return new kt((0,ue.unref)(r).getBackend())});return(0,ue.watchEffect)(function(t){n.value.dragSourceOptions=(0,ue.unref)(e)||null,(0,ue.unref)(n).reconnect(),t(function(){n.value.disconnectDragSource()})}),(0,ue.watchEffect)(function(e){n.value.dragPreviewOptions=(0,ue.unref)(t)||null,(0,ue.unref)(n).reconnect(),e(function(){n.value.disconnectDragPreview()})}),n}((0,ue.computed)(function(){return(0,ue.unref)(r).options}),(0,ue.computed)(function(){return(0,ue.unref)(r).previewOptions}));return Bt(r,n,o),[Xt((0,ue.computed)(function(){return(0,ue.unref)(r).collect||function(){return{}}}),n,o),Yt(o,r),Kt(o,r)]}var Qt=/* @__PURE__ */function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function er(e,t,r){var n=Ft(),o=function(e,t){var r=(0,ue.computed)(function(){return new Qt((0,ue.unref)(e),(0,ue.unref)(t))});return(0,ue.watchEffect)(function(){r.value.spec=(0,ue.unref)(e)}),r}(e,t),i=function(e){return(0,ue.computed)(function(){var t=(0,ue.unref)(e).accept;return Oe(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,ue.watchEffect)(function(e){var a,s,c=(a=function(e,t,r){var n=(0,ue.unref)(r).getRegistry(),o=n.addTarget((0,ue.unref)(e),(0,ue.unref)(t));return[o,function(){return n.removeTarget(o)}]}(i,o,n),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return Zt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zt(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,ue.unref)(t).receiveHandlerId(u),(0,ue.unref)(r).receiveHandlerId(u),e(l)})}function tr(e,t){return $t(function(t){(0,ue.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,ue.computed)(function(){return(0,ue.unref)(t).options}))}function rr(e){var t,r=Vt(e),n=(t=Ft(),(0,ue.computed)(function(){return new xt((0,ue.unref)(t))})),o=function(e){var t=Ft(),r=(0,ue.computed)(function(){return new Ht((0,ue.unref)(t).getBackend())});return(0,ue.watchEffect)(function(t){r.value.dropTargetOptions=(0,ue.unref)(e)||null,r.value.reconnect(),t(function(){return r.value.disconnectDropTarget()})}),r}((0,ue.computed)(function(){return(0,ue.unref)(r).options}));return er(r,n,o),[Xt((0,ue.computed)(function(){return(0,ue.unref)(r).collect||function(){return{}}}),n,o),tr(o,r)]}function nr(e){let t=null;return()=>(null==t&&(t=e()),t)}var or=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=/* @__PURE__ */new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const o=[];return r.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter(e=>e!==n)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},ir=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},ar=/* @__PURE__ */t({FILE:()=>sr,HTML:()=>lr,TEXT:()=>ur,URL:()=>cr}),sr="__NATIVE_FILE__",cr="__NATIVE_URL__",ur="__NATIVE_TEXT__",lr="__NATIVE_HTML__";function dr(e,t,r){const n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}var fr={[sr]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[lr]:{exposeProperties:{html:(e,t)=>dr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[cr]:{exposeProperties:{urls:(e,t)=>dr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ur]:{exposeProperties:{text:(e,t)=>dr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function hr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(fr).filter(e=>{const r=fr[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var gr=nr(()=>/firefox/i.test(navigator.userAgent)),pr=nr(()=>Boolean(window.safari)),vr=class{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return r[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return r[a]+n[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort((t,r)=>e[t]<e[r]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<r-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const r=i[h+1],n=s+r;u.push(3*n/((n+r)/e+(n+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],r=e+u[h+1]-f-f;l.push((f-e-r)*t),d.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function mr(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function yr(e){return{x:e.clientX,y:e.clientY}}var br=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Or(e,t,r[t])})}return e}var Dr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return wr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return wr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(ar).some(t=>ar[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=fr[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new ir(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&mr(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=yr(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,o=hr(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,r,n,o){const i=function(e){var t;return"IMG"===e.nodeName&&(gr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=mr(i?e:t),s={x:r.x-a.x,y:r.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=n,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,r,n){let o=e?t.width:r,i=e?t.height:n;return pr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new vr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new vr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return pr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,r,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});n.setDragImage(o,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=hr(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:yr(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=yr(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):hr(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:yr(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new br(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new or(this.isNodeInDocument)}},Sr=function(e,t,r){return new Dr(e,t,r)},Tr={"zh-CN":()=>import("./zh_CN-BKmwBYsr.js"),"en-US":()=>import("./en_US-BaP-b1tP.js"),"pt-PT":()=>import("./pt_PT-DFlFmzXZ.js"),"tr-TR":()=>import("./tr_TR-CODhj5X1.js"),"zh-TW":()=>import("./zh_TW-BSGEo2Qx.js"),"ja-JP":()=>import("./ja_JP-CeseBQS9.js"),"vi-VN":()=>import("./vi_VN-BjwID8XV.js"),"de-GE":()=>import("./de_DE-DIDpd1gQ.js"),"fr-FR":()=>import("./fr_FR-Bk_x0L7S.js"),"es-ES":()=>import("./es_ES-NOVlNQnw.js"),"ru-RU":()=>import("./ru_RU-C5XPaRfl.js")},Ir=p({locale:""});function Er(){if(Ir.value.locale!==_gct.i18n.global.locale){const e=Tr[_gct.i18n.global.locale];e&&e().then(e=>{Ir.value=e.default})}return{getAntdLocale:Ir}}var Cr=g({});function Pr(){return{themeVars:Cr,setPrimaryColor:function(e){Cr.primaryColor=e,b.config({theme:{primaryColor:e}})}}}function jr(e,t,r={}){const n=r.minValue??10,o=p(e),i=g({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,r){const n=t,o=e;i.offsetWidth=n[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==r||r()}},moveMobileDomDown:function(e,t,r){const n=t,o=e.touches[0];o&&(i.offsetWidth=n[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==r||r()})},start:c({get:()=>o.value<n?n:o.value>i.offsetWidth-n?i.offsetWidth-n:o.value,set(e){o.value=e}})}}var Nr=/* @__PURE__ */l({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const r=a("modal"),n=p(!1),i=p(!!e.opts.defaultFullscreen),s=()=>{i.value=!i.value},c=p({});e.opts&&Object.assign(c.value,e.opts);let l=null;const g=new o({dismiss:e=>{n.value=!1,l=e,t.emit("dismiss",l)},setOptions(e){Object.assign(c.value,e)}});h("modal",g);const m=e=>g.dismiss(e);t.expose({present:()=>{n.value=!0},dismiss:m});const y=p(!1),O=async()=>{if(g.ok)try{y.value=!0;const e=await g.ok();y.value=!1,!e||!0!==e.ok&&!0!==e.close||m(e)}finally{y.value=!1}else console.warn("打开模态未实现ok方法")},w=async()=>{g.cancel&&!1===await g.cancel()||m()},{getAntdLocale:D}=Er();return()=>{var e,o;let a;const l=null===(e=(o=t.slots).default)||void 0===e?void 0:e.call(o);return l&&l.length>0&&(l[0].props.modal=g),u(b,{locale:D.value},{default:()=>{return[u(Et,{backend:Sr},(e=a=d(v("a-modal"),{visible:n.value,class:[r.b(),c.value.placement&&r.m(c.value.placement),c.value.modalClass,r.is("hidden-footer",!1===c.value.showFooter),r.is("hidden-close-btn",!1===c.value.showCloseBtn),r.is("hidden-cancel-btn",!1===c.value.showCancelBtn),r.is("full-screen",i.value)],centered:!0,onOk:O,confirmLoading:y.value,onCancel:w,okText:"确认",okButtonProps:{disabled:g.state.okDisabled},...c.value},[!1!==c.value.canFullscreen?u("div",{class:r.e("full-screen"),onClick:s},[u("i",{class:"iconfont "+(i.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)?a:{default:()=>[a]}))];var e}})}}}),xr=class{async modal(e,t,r){const n=this.createModal(e,t,r);return n.present(),n.onWillDismiss()}createModal(e,t,r){return function(e,t){return new i(Nr,e,t)}(m(e)?e:()=>d(function(e){return y(e)?v(e):e}(e),{...t}),r)}},Rr=new xr,Ar=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Mr={VS:"vs",BLACK:"hc-black",DARK:"vs-dark"},_r={JS:"javascript",SQL:"sql",PWSH:"powershell",JAVA:"java",C_SHARP:"csharp",JSON:"json"},kr=class{constructor(){D(this,"value",void 0),D(this,"title",void 0),D(this,"language",void 0),D(this,"theme",void 0),D(this,"readonly",void 0)}};export{xr as a,Pr as c,Jt as d,ce as f,D as g,S as h,Ar as i,Er as l,T as m,kr as n,Rr as o,se as p,Mr as r,jr as s,_r as t,rr as u};
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
-
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
-
/**
|
|
5
|
-
* 定义 Block 块
|
|
6
|
-
* @param {String} $block - Block 块名称
|
|
7
|
-
* @example
|
|
8
|
-
* @include b('button') {
|
|
9
|
-
* padding: 10px;
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* 定义 Element 元素
|
|
14
|
-
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
-
* @example
|
|
16
|
-
* @include b('button') {
|
|
17
|
-
* @include e('text') {
|
|
18
|
-
* color: #000;
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
* // 或传入多个元素
|
|
22
|
-
* @include b('button') {
|
|
23
|
-
* @include e(('text', 'icon')) {
|
|
24
|
-
* margin: 5px;
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* 定义 Modifier 修饰符
|
|
30
|
-
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
-
* @example
|
|
32
|
-
* @include b('button') {
|
|
33
|
-
* @include m('primary') {
|
|
34
|
-
* background: blue;
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* // 或传入多个修饰符
|
|
38
|
-
* @include b('button') {
|
|
39
|
-
* @include m(('primary', 'large')) {
|
|
40
|
-
* background: blue;
|
|
41
|
-
* font-size: 16px;
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* 定义状态选择器
|
|
47
|
-
* @param {String} $state - 状态名称
|
|
48
|
-
* @example
|
|
49
|
-
* @include b('button') {
|
|
50
|
-
* @include when('disabled') {
|
|
51
|
-
* opacity: 0.5;
|
|
52
|
-
* }
|
|
53
|
-
* }
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* 深色主题样式
|
|
57
|
-
* @param {String} $block - Block 块名称
|
|
58
|
-
* @example
|
|
59
|
-
* @include dark('button') {
|
|
60
|
-
* background: #333;
|
|
61
|
-
* color: #fff;
|
|
62
|
-
* }
|
|
63
|
-
*/
|
|
64
|
-
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
-
.gct-assets-svg-icon {
|
|
66
|
-
display: inline-block;
|
|
67
|
-
width: 1em;
|
|
68
|
-
height: 1em;
|
|
69
|
-
contain: strict;
|
|
70
|
-
fill: currentcolor;
|
|
71
|
-
box-sizing: content-box !important;
|
|
72
|
-
}
|
|
73
|
-
.gct-assets-svg-icon .ionicon {
|
|
74
|
-
stroke: currentcolor;
|
|
75
|
-
}
|
|
76
|
-
.gct-assets-svg-icon .ionicon-fill-none {
|
|
77
|
-
fill: none;
|
|
78
|
-
}
|
|
79
|
-
.gct-assets-svg-icon .ionicon-stroke-width {
|
|
80
|
-
stroke-width: var(--ionicon-stroke-width, 32px);
|
|
81
|
-
}
|
|
82
|
-
.gct-assets-svg-icon .icon-inner,
|
|
83
|
-
.gct-assets-svg-icon .ionicon,
|
|
84
|
-
.gct-assets-svg-icon svg {
|
|
85
|
-
display: block;
|
|
86
|
-
height: 100%;
|
|
87
|
-
width: 100%;
|
|
88
|
-
}
|
|
89
|
-
.gct-assets-svg-icon {
|
|
90
|
-
/* Icon RTL
|
|
91
|
-
* -----------------------------------------------------------
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* Safari <16.4 incorrectly reports
|
|
95
|
-
* that it supports :dir(rtl) when it does not.
|
|
96
|
-
* This @supports statement lets us target
|
|
97
|
-
* WebKit browsers to apply the RTL fallback.
|
|
98
|
-
* -webkit-named-image only exists on WebKit.
|
|
99
|
-
* For WebKit browsers that do support :dir(rtl)
|
|
100
|
-
* (i.e. Safari >= 16.4) then the :dir(rtl)
|
|
101
|
-
* code farther down on the page will take
|
|
102
|
-
* effect and override this fallback.
|
|
103
|
-
*/
|
|
104
|
-
}
|
|
105
|
-
@supports (background: -webkit-named-image(i)) {
|
|
106
|
-
.gct-assets-svg-icon.icon-rtl .icon-inner {
|
|
107
|
-
transform: scaleX(-1);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.gct-assets-svg-icon {
|
|
111
|
-
/**
|
|
112
|
-
* Fallback for browsers that support
|
|
113
|
-
* neither :host-context nor :dir.
|
|
114
|
-
* The icon will not react to dir
|
|
115
|
-
* changes, but it will at least
|
|
116
|
-
* respect the dir on component load.
|
|
117
|
-
*/
|
|
118
|
-
}
|
|
119
|
-
.gct-assets-svg-icon.icon-rtl .icon-inner {
|
|
120
|
-
transform: scaleX(-1);
|
|
121
|
-
}
|
|
122
|
-
.gct-assets-svg-icon {
|
|
123
|
-
/* For Vue components, we use attribute selectors instead of :host-context */
|
|
124
|
-
}
|
|
125
|
-
.gct-assets-svg-icon.flip-rtl[dir=rtl] .icon-inner {
|
|
126
|
-
transform: scaleX(-1);
|
|
127
|
-
}
|
|
128
|
-
@supports selector(:dir(rtl)) {
|
|
129
|
-
.gct-assets-svg-icon.flip-rtl:dir(rtl) .icon-inner {
|
|
130
|
-
transform: scaleX(-1);
|
|
131
|
-
}
|
|
132
|
-
.gct-assets-svg-icon {
|
|
133
|
-
/**
|
|
134
|
-
* This is needed for WebKit otherwise the fallback
|
|
135
|
-
* will always cause the icon to be flipped if the document
|
|
136
|
-
* loads in RTL.
|
|
137
|
-
*/
|
|
138
|
-
}
|
|
139
|
-
.gct-assets-svg-icon.flip-rtl:dir(ltr) .icon-inner {
|
|
140
|
-
transform: scaleX(1);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.gct-assets-svg-icon {
|
|
144
|
-
/* Icon Sizes
|
|
145
|
-
* -----------------------------------------------------------
|
|
146
|
-
*/
|
|
147
|
-
}
|
|
148
|
-
.gct-assets-svg-icon.icon-small {
|
|
149
|
-
font-size: 1.125rem !important;
|
|
150
|
-
}
|
|
151
|
-
.gct-assets-svg-icon.icon-large {
|
|
152
|
-
font-size: 2rem !important;
|
|
153
|
-
}
|
|
154
|
-
.gct-assets-svg-icon {
|
|
155
|
-
/* Icon Colors
|
|
156
|
-
* -----------------------------------------------------------
|
|
157
|
-
*/
|
|
158
|
-
}
|
|
159
|
-
.gct-assets-svg-icon.ion-color {
|
|
160
|
-
color: var(--ion-color-base) !important;
|
|
161
|
-
}
|
|
162
|
-
.gct-assets-svg-icon.ion-color-primary {
|
|
163
|
-
--ion-color-base: var(--ion-color-primary, #3880ff) !important;
|
|
164
|
-
}
|
|
165
|
-
.gct-assets-svg-icon.ion-color-secondary {
|
|
166
|
-
--ion-color-base: var(--ion-color-secondary, #3dc2ff) !important;
|
|
167
|
-
}
|
|
168
|
-
.gct-assets-svg-icon.ion-color-tertiary {
|
|
169
|
-
--ion-color-base: var(--ion-color-tertiary, #5260ff) !important;
|
|
170
|
-
}
|
|
171
|
-
.gct-assets-svg-icon.ion-color-success {
|
|
172
|
-
--ion-color-base: var(--ion-color-success, #2dd36f) !important;
|
|
173
|
-
}
|
|
174
|
-
.gct-assets-svg-icon.ion-color-warning {
|
|
175
|
-
--ion-color-base: var(--ion-color-warning, #ffc409) !important;
|
|
176
|
-
}
|
|
177
|
-
.gct-assets-svg-icon.ion-color-danger {
|
|
178
|
-
--ion-color-base: var(--ion-color-danger, #eb445a) !important;
|
|
179
|
-
}
|
|
180
|
-
.gct-assets-svg-icon.ion-color-light {
|
|
181
|
-
--ion-color-base: var(--ion-color-light, #f4f5f8) !important;
|
|
182
|
-
}
|
|
183
|
-
.gct-assets-svg-icon.ion-color-medium {
|
|
184
|
-
--ion-color-base: var(--ion-color-medium, #92949c) !important;
|
|
185
|
-
}
|
|
186
|
-
.gct-assets-svg-icon.ion-color-dark {
|
|
187
|
-
--ion-color-base: var(--ion-color-dark, #222428) !important;
|
|
188
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SVG图标组件 - 简化版本 (仅浏览器环境)
|
|
3
|
-
*
|
|
4
|
-
* 此组件是基于Stencil ion-icon组件简化的Vue实现,
|
|
5
|
-
* 专门用于浏览器环境,仅支持通过src属性加载SVG。
|
|
6
|
-
*
|
|
7
|
-
* ## 功能
|
|
8
|
-
* - 支持通过直接URL加载SVG图标
|
|
9
|
-
* - 支持懒加载
|
|
10
|
-
* - 支持RTL文本方向自动翻转
|
|
11
|
-
* - 支持颜色和大小变化
|
|
12
|
-
* - 支持SVG内容安全检查
|
|
13
|
-
*
|
|
14
|
-
* ## 使用示例
|
|
15
|
-
*
|
|
16
|
-
* // 使用 src 属性
|
|
17
|
-
* <SvgIcon src="/path/to/icon.svg" />
|
|
18
|
-
*
|
|
19
|
-
* // 设置大小和颜色
|
|
20
|
-
* <SvgIcon src="/path/to/icon.svg" size="large" color="primary" />
|
|
21
|
-
*
|
|
22
|
-
* // RTL 支持
|
|
23
|
-
* <SvgIcon src="/path/to/icon.svg" flipRtl={true} />
|
|
24
|
-
*
|
|
25
|
-
* // 懒加载
|
|
26
|
-
* <SvgIcon src="/path/to/icon.svg" lazy={true} />
|
|
27
|
-
*
|
|
28
|
-
* // 禁用 SVG 清理
|
|
29
|
-
* <SvgIcon src="/path/to/icon.svg" sanitize={false} />
|
|
30
|
-
*/
|
|
31
|
-
export declare const AssetsSvgIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
32
|
-
/**
|
|
33
|
-
* The color to use for the background of the item.
|
|
34
|
-
*/
|
|
35
|
-
color: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
|
40
|
-
*/
|
|
41
|
-
flipRtl: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the exact `src` of an SVG file to use.
|
|
46
|
-
*/
|
|
47
|
-
src: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* The size of the icon.
|
|
53
|
-
* Available options are: `"small"` and `"large"`.
|
|
54
|
-
*/
|
|
55
|
-
size: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
|
|
60
|
-
* Default, `false`.
|
|
61
|
-
*/
|
|
62
|
-
lazy: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* When set to `false`, SVG content that is HTTP fetched will not be checked
|
|
68
|
-
* if the response SVG content has any `<script>` elements, or any attributes
|
|
69
|
-
* that start with `on`, such as `onclick`.
|
|
70
|
-
* @default true
|
|
71
|
-
*/
|
|
72
|
-
sanitize: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
}>, {
|
|
77
|
-
ns: import('@gct-paas/core').Namespace;
|
|
78
|
-
svgContent: import('vue').Ref<string | undefined, string | undefined>;
|
|
79
|
-
classes: import('vue').ComputedRef<{
|
|
80
|
-
[x: string]: boolean;
|
|
81
|
-
'ion-color'?: boolean | undefined;
|
|
82
|
-
'flip-rtl': boolean;
|
|
83
|
-
'icon-rtl': boolean;
|
|
84
|
-
}>;
|
|
85
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
86
|
-
/**
|
|
87
|
-
* The color to use for the background of the item.
|
|
88
|
-
*/
|
|
89
|
-
color: {
|
|
90
|
-
type: StringConstructor;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
|
94
|
-
*/
|
|
95
|
-
flipRtl: {
|
|
96
|
-
type: BooleanConstructor;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Specifies the exact `src` of an SVG file to use.
|
|
100
|
-
*/
|
|
101
|
-
src: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
required: true;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* The size of the icon.
|
|
107
|
-
* Available options are: `"small"` and `"large"`.
|
|
108
|
-
*/
|
|
109
|
-
size: {
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
|
|
114
|
-
* Default, `false`.
|
|
115
|
-
*/
|
|
116
|
-
lazy: {
|
|
117
|
-
type: BooleanConstructor;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* When set to `false`, SVG content that is HTTP fetched will not be checked
|
|
122
|
-
* if the response SVG content has any `<script>` elements, or any attributes
|
|
123
|
-
* that start with `on`, such as `onclick`.
|
|
124
|
-
* @default true
|
|
125
|
-
*/
|
|
126
|
-
sanitize: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
}>> & Readonly<{}>, {
|
|
131
|
-
flipRtl: boolean;
|
|
132
|
-
lazy: boolean;
|
|
133
|
-
sanitize: boolean;
|
|
134
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { getSrc, isRTL } from "./utils.mjs";
|
|
2
|
-
import { getSvgContent, ioniconContent } from "./request.mjs";
|
|
3
|
-
import './assets-svg-icon.css';/* empty css */
|
|
4
|
-
import { computed, createVNode, defineComponent, getCurrentInstance, nextTick, onMounted, onUnmounted, ref, watch } from "vue";
|
|
5
|
-
import { useNamespace } from "@gct-paas/core";
|
|
6
|
-
//#region src/components/assets-svg-icon/assets-svg-icon.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Create color classes for the icon.
|
|
9
|
-
* @param color - The color of the icon.
|
|
10
|
-
* @returns The color classes for the icon.
|
|
11
|
-
*/
|
|
12
|
-
var createColorClasses = (color) => {
|
|
13
|
-
return color ? {
|
|
14
|
-
"ion-color": true,
|
|
15
|
-
[`ion-color-${color}`]: true
|
|
16
|
-
} : null;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* SVG图标组件 - 简化版本 (仅浏览器环境)
|
|
20
|
-
*
|
|
21
|
-
* 此组件是基于Stencil ion-icon组件简化的Vue实现,
|
|
22
|
-
* 专门用于浏览器环境,仅支持通过src属性加载SVG。
|
|
23
|
-
*
|
|
24
|
-
* ## 功能
|
|
25
|
-
* - 支持通过直接URL加载SVG图标
|
|
26
|
-
* - 支持懒加载
|
|
27
|
-
* - 支持RTL文本方向自动翻转
|
|
28
|
-
* - 支持颜色和大小变化
|
|
29
|
-
* - 支持SVG内容安全检查
|
|
30
|
-
*
|
|
31
|
-
* ## 使用示例
|
|
32
|
-
*
|
|
33
|
-
* // 使用 src 属性
|
|
34
|
-
* <SvgIcon src="/path/to/icon.svg" />
|
|
35
|
-
*
|
|
36
|
-
* // 设置大小和颜色
|
|
37
|
-
* <SvgIcon src="/path/to/icon.svg" size="large" color="primary" />
|
|
38
|
-
*
|
|
39
|
-
* // RTL 支持
|
|
40
|
-
* <SvgIcon src="/path/to/icon.svg" flipRtl={true} />
|
|
41
|
-
*
|
|
42
|
-
* // 懒加载
|
|
43
|
-
* <SvgIcon src="/path/to/icon.svg" lazy={true} />
|
|
44
|
-
*
|
|
45
|
-
* // 禁用 SVG 清理
|
|
46
|
-
* <SvgIcon src="/path/to/icon.svg" sanitize={false} />
|
|
47
|
-
*/
|
|
48
|
-
var AssetsSvgIcon = /* @__PURE__ */ defineComponent({
|
|
49
|
-
name: "AssetsSvgIcon",
|
|
50
|
-
props: {
|
|
51
|
-
color: { type: String },
|
|
52
|
-
flipRtl: { type: Boolean },
|
|
53
|
-
src: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: true
|
|
56
|
-
},
|
|
57
|
-
size: { type: String },
|
|
58
|
-
lazy: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: false
|
|
61
|
-
},
|
|
62
|
-
sanitize: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: true
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
setup(props) {
|
|
68
|
-
const ns = useNamespace("assets-svg-icon");
|
|
69
|
-
const instance = getCurrentInstance();
|
|
70
|
-
let io;
|
|
71
|
-
const didLoadIcon = ref(false);
|
|
72
|
-
const svgContent = ref(void 0);
|
|
73
|
-
const isVisible = ref(false);
|
|
74
|
-
/**
|
|
75
|
-
* Wait until the icon is visible in the viewport.
|
|
76
|
-
* @param el - The element to observe.
|
|
77
|
-
* @param rootMargin - The root margin of the observer.
|
|
78
|
-
* @param cb - The callback to call when the element is visible.
|
|
79
|
-
*/
|
|
80
|
-
const waitUntilVisible = (el, rootMargin, cb) => {
|
|
81
|
-
/**
|
|
82
|
-
* browser doesn't support IntersectionObserver
|
|
83
|
-
* so just fallback to always show it
|
|
84
|
-
*/
|
|
85
|
-
if (!Boolean(typeof window !== "undefined" && props.lazy && window.IntersectionObserver)) return cb();
|
|
86
|
-
const intersectionObserver = io = new window.IntersectionObserver((data) => {
|
|
87
|
-
if (data[0]?.isIntersecting) {
|
|
88
|
-
intersectionObserver.disconnect();
|
|
89
|
-
io = void 0;
|
|
90
|
-
cb();
|
|
91
|
-
}
|
|
92
|
-
}, { rootMargin });
|
|
93
|
-
intersectionObserver.observe(el);
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Load the icon using only src URL
|
|
97
|
-
*/
|
|
98
|
-
const loadIcon = () => {
|
|
99
|
-
if (typeof window !== "undefined" && isVisible.value && props.src) {
|
|
100
|
-
const url = getSrc(props.src);
|
|
101
|
-
if (url) {
|
|
102
|
-
if (ioniconContent.has(url)) svgContent.value = ioniconContent.get(url);
|
|
103
|
-
else getSvgContent(url, props.sanitize).then(() => {
|
|
104
|
-
svgContent.value = ioniconContent.get(url);
|
|
105
|
-
});
|
|
106
|
-
didLoadIcon.value = true;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
onMounted(() => {
|
|
111
|
-
const el = instance?.vnode.el;
|
|
112
|
-
if (el)
|
|
113
|
-
/**
|
|
114
|
-
* purposely do not return the promise here because loading
|
|
115
|
-
* the svg file should not hold up loading the app
|
|
116
|
-
* only load the svg if it's visible
|
|
117
|
-
*/
|
|
118
|
-
waitUntilVisible(el, "50px", () => {
|
|
119
|
-
isVisible.value = true;
|
|
120
|
-
loadIcon();
|
|
121
|
-
});
|
|
122
|
-
nextTick(() => {
|
|
123
|
-
if (!didLoadIcon.value) loadIcon();
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
onUnmounted(() => {
|
|
127
|
-
if (io) {
|
|
128
|
-
io.disconnect();
|
|
129
|
-
io = void 0;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
watch(() => props.src, () => {
|
|
133
|
-
loadIcon();
|
|
134
|
-
});
|
|
135
|
-
return {
|
|
136
|
-
ns,
|
|
137
|
-
svgContent,
|
|
138
|
-
classes: computed(() => {
|
|
139
|
-
const { flipRtl, size, color } = props;
|
|
140
|
-
const el = instance?.vnode.el;
|
|
141
|
-
/**
|
|
142
|
-
* if flipRtl is true, the icon should change direction when `dir` changes
|
|
143
|
-
*/
|
|
144
|
-
const shouldBeFlippable = flipRtl;
|
|
145
|
-
return {
|
|
146
|
-
...createColorClasses(color),
|
|
147
|
-
[`icon-${size}`]: !!size,
|
|
148
|
-
"flip-rtl": shouldBeFlippable,
|
|
149
|
-
"icon-rtl": shouldBeFlippable && isRTL(el),
|
|
150
|
-
[ns.b()]: true
|
|
151
|
-
};
|
|
152
|
-
})
|
|
153
|
-
};
|
|
154
|
-
},
|
|
155
|
-
render() {
|
|
156
|
-
const { svgContent, classes } = this;
|
|
157
|
-
return createVNode("div", {
|
|
158
|
-
"role": "img",
|
|
159
|
-
"class": classes
|
|
160
|
-
}, [typeof window !== "undefined" && svgContent ? createVNode("div", {
|
|
161
|
-
"class": "icon-inner",
|
|
162
|
-
"innerHTML": svgContent
|
|
163
|
-
}, null) : createVNode("div", { "class": "icon-inner" }, null)]);
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
//#endregion
|
|
167
|
-
export { AssetsSvgIcon };
|