ss-component-new 1.1.76 → 1.1.78
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-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/array-DQ6meJk7.cjs +9 -0
- package/dist/{array-BejyPB_1.js → array-Dsurpc08.js} +247 -241
- package/dist/cloneDeep-BH_aXSAH.cjs +1 -0
- package/dist/cloneDeep-MKlVykeI.js +318 -0
- package/dist/{index-ChCXzsYf.js → index-54P6MUQ5.js} +2 -2
- package/dist/index-BCHKDSAB.cjs +1 -0
- package/dist/index-Bc2TP6E4.cjs +1 -0
- package/dist/index-C8abtcPh.cjs +87 -0
- package/dist/index-CBzgTVRc.cjs +1 -0
- package/dist/index-CRm-Cd9v.cjs +1 -0
- package/dist/index-CTc_dwbb.js +3133 -0
- package/dist/index-ChZ6L8qy.js +371 -0
- package/dist/index-ClguzCrn.js +131 -0
- package/dist/{menu-oGClEGzK.js → index-D0v2_dMz.js} +1945 -1834
- package/dist/{index-BT8Pkr84.js → index-D9tWUDyO.js} +8 -6
- package/dist/index-DB-XsCH7.cjs +1 -0
- package/dist/{index-BvoThyOF.js → index-DBKxwOZZ.js} +2 -2
- package/dist/index-DtmWzVIG.cjs +6 -0
- package/dist/{index-10n3uNlg.js → index-HDBRQNLs.js} +4 -3
- package/dist/index-YSJ2XYuj.cjs +1 -0
- package/dist/index-qogZoGJJ.js +351 -0
- package/dist/index-sjmLPf8w.cjs +1 -0
- package/dist/index-zIb6b0kg.cjs +6 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D0K1veK2.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BWOIM9wH.js +254 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-Csg3VsXp.cjs +4 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DG5vph3h.js → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DHffsUIJ.js} +39 -38
- package/dist/index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DzfJEE_l.cjs +1 -0
- package/dist/main-RfdttOpi.js +288 -0
- package/dist/main-u6M32FUn.cjs +1 -0
- package/dist/menu-BIINB-0Y.js +1013 -0
- package/dist/menu-B_Az9K_F.cjs +11 -0
- package/dist/{modelComp-CqA1NVfH.js → modelComp-B3sxj_Kp.js} +1 -1
- package/dist/modelComp-DAsVXKA0.cjs +1 -0
- package/dist/router.d.ts +1 -0
- package/dist/ss-component.cjs +1 -0
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +26 -24
- package/dist/ss-component2.cjs +1 -0
- package/dist/ss-component2.js +5 -0
- package/package.json +11 -5
- package/dist/_plugin-vue_export-helper-B7R8Jogt.js +0 -524
- package/dist/index-CCr_UQBn.js +0 -3749
- package/dist/main-BUjoLIJC.js +0 -404
- package/dist/ss-component.umd.cjs +0 -115
- /package/dist/{ss-component.d.ts → main.d.ts} +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ref as e, resolveComponent as o, createBlock as r, openBlock as n } from "vue";
|
|
2
|
-
|
|
3
|
-
import "./
|
|
4
|
-
import "
|
|
5
|
-
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
import "./array-Dsurpc08.js";
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DHffsUIJ.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BWOIM9wH.js";
|
|
6
8
|
const a = {
|
|
7
9
|
__name: "index",
|
|
8
10
|
props: {
|
|
@@ -29,7 +31,7 @@ const a = {
|
|
|
29
31
|
return n(), r(t);
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
|
-
},
|
|
34
|
+
}, x = /* @__PURE__ */ p(a, [["__scopeId", "data-v-c06bb5c0"]]);
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
x as default
|
|
35
37
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");;/* empty css */const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("vue-router");require("./array-DQ6meJk7.cjs");require("./index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DzfJEE_l.cjs");require("./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-Csg3VsXp.cjs");const o={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},setup(u){return e.ref(!1),(c,i)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(t)}}},n=r._export_sfc(o,[["__scopeId","data-v-c06bb5c0"]]);exports.default=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, onMounted as A, resolveComponent as l, createElementBlock as _, openBlock as o, Fragment as d, renderList as m, createBlock as r, withCtx as s, createVNode as I, createSlots as b, renderSlot as u, mergeProps as O, computed as S } from "vue";
|
|
2
|
-
import { u as q, s as E } from "./menu-
|
|
3
|
-
import { _ as F } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { u as q, s as E } from "./menu-BIINB-0Y.js";
|
|
3
|
+
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const R = /* @__PURE__ */ g({
|
|
5
5
|
__name: "menuItem",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),B=require("./index-zIb6b0kg.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ft=require("./cloneDeep-BH_aXSAH.cjs"),dn=require("./index-sjmLPf8w.cjs"),fn=r=>r,pn=B.buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:B.definePropType([String,Object,Array])},offset:{type:B.definePropType(Array),default:[0,0]},badgeClass:{type:String}}),hn=n.defineComponent({name:"ElBadge"}),mn=n.defineComponent({...hn,props:pn,setup(r,{expose:t}){const e=r,o=B.useNamespace("badge"),a=n.computed(()=>e.isDot?"":B.isNumber(e.value)&&B.isNumber(e.max)?e.max<e.value?`${e.max}+`:`${e.value}`:`${e.value}`),l=n.computed(()=>{var i,s,u,c,f;return[{backgroundColor:e.color,marginRight:B.addUnit(-((s=(i=e.offset)==null?void 0:i[0])!=null?s:0)),marginTop:B.addUnit((c=(u=e.offset)==null?void 0:u[1])!=null?c:0)},(f=e.badgeStyle)!=null?f:{}]});return t({content:a}),(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b())},[n.renderSlot(i.$slots,"default"),n.createVNode(n.Transition,{name:`${n.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("sup",{class:n.normalizeClass([n.unref(o).e("content"),n.unref(o).em("content",i.type),n.unref(o).is("fixed",!!i.$slots.default),n.unref(o).is("dot",i.isDot),n.unref(o).is("hide-zero",!i.showZero&&e.value===0),i.badgeClass]),style:n.normalizeStyle(n.unref(l))},[n.renderSlot(i.$slots,"content",{value:n.unref(a)},()=>[n.createTextVNode(n.toDisplayString(n.unref(a)),1)])],6),[[n.vShow,!i.hidden&&(n.unref(a)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var gn=B._export_sfc(mn,[["__file","badge.vue"]]);const vn=B.withInstall(gn);function yn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var tt={exports:{}},bn=tt.exports,Vt;function wn(){return Vt||(Vt=1,function(r,t){(function(e,o){r.exports=o()})(bn,function(){var e=1e3,o=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",y="quarter",_="year",h="date",S="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var v=["th","st","nd","rd"],g=C%100;return"["+C+(v[(g-20)%10]||v[g]||v[0])+"]"}},D=function(C,v,g){var k=String(C);return!k||k.length>=v?C:""+Array(v+1-k.length).join(g)+C},z={s:D,z:function(C){var v=-C.utcOffset(),g=Math.abs(v),k=Math.floor(g/60),E=g%60;return(v<=0?"+":"-")+D(k,2,"0")+":"+D(E,2,"0")},m:function C(v,g){if(v.date()<g.date())return-C(g,v);var k=12*(g.year()-v.year())+(g.month()-v.month()),E=v.clone().add(k,d),O=g-E<0,V=v.clone().add(k+(O?-1:1),d);return+(-(k+(g-E)/(O?E-V:V-E))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:_,w:f,d:c,D:h,h:u,m:s,s:i,ms:l,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},L="en",I={};I[L]=F;var w="$isDayjsObject",X=function(C){return C instanceof te||!(!C||!C[w])},b=function C(v,g,k){var E;if(!v)return L;if(typeof v=="string"){var O=v.toLowerCase();I[O]&&(E=O),g&&(I[O]=g,E=O);var V=v.split("-");if(!E&&V.length>1)return C(V[0])}else{var Y=v.name;I[Y]=v,E=Y}return!k&&E&&(L=E),E||!k&&L},A=function(C,v){if(X(C))return C.clone();var g=typeof v=="object"?v:{};return g.date=C,g.args=arguments,new te(g)},T=z;T.l=b,T.i=X,T.w=function(C,v){return A(C,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var te=function(){function C(g){this.$L=b(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[w]=!0}var v=C.prototype;return v.parse=function(g){this.$d=function(k){var E=k.date,O=k.utc;if(E===null)return new Date(NaN);if(T.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var V=E.match(p);if(V){var Y=V[2]-1||0,W=(V[7]||"0").substring(0,3);return O?new Date(Date.UTC(V[1],Y,V[3]||1,V[4]||0,V[5]||0,V[6]||0,W)):new Date(V[1],Y,V[3]||1,V[4]||0,V[5]||0,V[6]||0,W)}}return new Date(E)}(g),this.init()},v.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return this.$d.toString()!==S},v.isSame=function(g,k){var E=A(g);return this.startOf(k)<=E&&E<=this.endOf(k)},v.isAfter=function(g,k){return A(g)<this.startOf(k)},v.isBefore=function(g,k){return this.endOf(k)<A(g)},v.$g=function(g,k,E){return T.u(g)?this[k]:this.set(E,g)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(g,k){var E=this,O=!!T.u(k)||k,V=T.p(g),Y=function(ke,re){var we=T.w(E.$u?Date.UTC(E.$y,re,ke):new Date(E.$y,re,ke),E);return O?we:we.endOf(c)},W=function(ke,re){return T.w(E.toDate()[ke].apply(E.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(re)),E)},J=this.$W,Q=this.$M,ue=this.$D,$e="set"+(this.$u?"UTC":"");switch(V){case _:return O?Y(1,0):Y(31,11);case d:return O?Y(1,Q):Y(0,Q+1);case f:var Se=this.$locale().weekStart||0,Re=(J<Se?J+7:J)-Se;return Y(O?ue-Re:ue+(6-Re),Q);case c:case h:return W($e+"Hours",0);case u:return W($e+"Minutes",1);case s:return W($e+"Seconds",2);case i:return W($e+"Milliseconds",3);default:return this.clone()}},v.endOf=function(g){return this.startOf(g,!1)},v.$set=function(g,k){var E,O=T.p(g),V="set"+(this.$u?"UTC":""),Y=(E={},E[c]=V+"Date",E[h]=V+"Date",E[d]=V+"Month",E[_]=V+"FullYear",E[u]=V+"Hours",E[s]=V+"Minutes",E[i]=V+"Seconds",E[l]=V+"Milliseconds",E)[O],W=O===c?this.$D+(k-this.$W):k;if(O===d||O===_){var J=this.clone().set(h,1);J.$d[Y](W),J.init(),this.$d=J.set(h,Math.min(this.$D,J.daysInMonth())).$d}else Y&&this.$d[Y](W);return this.init(),this},v.set=function(g,k){return this.clone().$set(g,k)},v.get=function(g){return this[T.p(g)]()},v.add=function(g,k){var E,O=this;g=Number(g);var V=T.p(k),Y=function(Q){var ue=A(O);return T.w(ue.date(ue.date()+Math.round(Q*g)),O)};if(V===d)return this.set(d,this.$M+g);if(V===_)return this.set(_,this.$y+g);if(V===c)return Y(1);if(V===f)return Y(7);var W=(E={},E[s]=o,E[u]=a,E[i]=e,E)[V]||1,J=this.$d.getTime()+g*W;return T.w(J,this)},v.subtract=function(g,k){return this.add(-1*g,k)},v.format=function(g){var k=this,E=this.$locale();if(!this.isValid())return E.invalidDate||S;var O=g||"YYYY-MM-DDTHH:mm:ssZ",V=T.z(this),Y=this.$H,W=this.$m,J=this.$M,Q=E.weekdays,ue=E.months,$e=E.meridiem,Se=function(re,we,Fe,Ze){return re&&(re[we]||re(k,O))||Fe[we].slice(0,Ze)},Re=function(re){return T.s(Y%12||12,re,"0")},ke=$e||function(re,we,Fe){var Ze=re<12?"AM":"PM";return Fe?Ze.toLowerCase():Ze};return O.replace(M,function(re,we){return we||function(Fe){switch(Fe){case"YY":return String(k.$y).slice(-2);case"YYYY":return T.s(k.$y,4,"0");case"M":return J+1;case"MM":return T.s(J+1,2,"0");case"MMM":return Se(E.monthsShort,J,ue,3);case"MMMM":return Se(ue,J);case"D":return k.$D;case"DD":return T.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Se(E.weekdaysMin,k.$W,Q,2);case"ddd":return Se(E.weekdaysShort,k.$W,Q,3);case"dddd":return Q[k.$W];case"H":return String(Y);case"HH":return T.s(Y,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return ke(Y,W,!0);case"A":return ke(Y,W,!1);case"m":return String(W);case"mm":return T.s(W,2,"0");case"s":return String(k.$s);case"ss":return T.s(k.$s,2,"0");case"SSS":return T.s(k.$ms,3,"0");case"Z":return V}return null}(re)||V.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(g,k,E){var O,V=this,Y=T.p(k),W=A(g),J=(W.utcOffset()-this.utcOffset())*o,Q=this-W,ue=function(){return T.m(V,W)};switch(Y){case _:O=ue()/12;break;case d:O=ue();break;case y:O=ue()/3;break;case f:O=(Q-J)/6048e5;break;case c:O=(Q-J)/864e5;break;case u:O=Q/a;break;case s:O=Q/o;break;case i:O=Q/e;break;default:O=Q}return E?O:T.a(O)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return I[this.$L]},v.locale=function(g,k){if(!g)return this.$L;var E=this.clone(),O=b(g,k,!0);return O&&(E.$L=O),E},v.clone=function(){return T.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},C}(),Z=te.prototype;return A.prototype=Z,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",_],["$D",h]].forEach(function(C){Z[C[1]]=function(v){return this.$g(v,C[0],C[1])}}),A.extend=function(C,v){return C.$i||(C(v,te,A),C.$i=!0),A},A.locale=b,A.isDayjs=X,A.unix=function(C){return A(1e3*C)},A.en=I[L],A.Ls=I,A.p={},A})}(tt)),tt.exports}var _n=wn();const Wt=yn(_n),En=B.buildProps({a11y:{type:Boolean,default:!0},locale:{type:B.definePropType(Object)},size:B.useSizeProp,button:{type:B.definePropType(Object)},experimentalFeatures:{type:B.definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:B.definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...B.useEmptyValuesProps}),fe={};n.defineComponent({name:"ElConfigProvider",props:En,setup(r,{slots:t}){n.watch(()=>r.message,o=>{Object.assign(fe,o??{})},{immediate:!0,deep:!0});const e=B.provideGlobalConfig(r);return()=>n.renderSlot(t,"default",{config:e==null?void 0:e.value})}});const jt=["success","info","warning","error"],ne=fn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:B.isClient?document.body:void 0}),Cn=B.buildProps({customClass:{type:String,default:ne.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ne.dangerouslyUseHTMLString},duration:{type:Number,default:ne.duration},icon:{type:B.iconPropType,default:ne.icon},id:{type:String,default:ne.id},message:{type:B.definePropType([String,Object,Function]),default:ne.message},onClose:{type:B.definePropType(Function),default:ne.onClose},showClose:{type:Boolean,default:ne.showClose},type:{type:String,values:jt,default:ne.type},plain:{type:Boolean,default:ne.plain},offset:{type:Number,default:ne.offset},zIndex:{type:Number,default:ne.zIndex},grouping:{type:Boolean,default:ne.grouping},repeatNum:{type:Number,default:ne.repeatNum}}),Sn={destroy:()=>!0},he=n.shallowReactive([]),kn=r=>{const t=he.findIndex(a=>a.id===r),e=he[t];let o;return t>0&&(o=he[t-1]),{current:e,prev:o}},Dn=r=>{const{prev:t}=kn(r);return t?t.vm.exposed.bottom.value:0},Bn=(r,t)=>he.findIndex(o=>o.id===r)>0?16:t,xn=n.defineComponent({name:"ElMessage"}),Tn=n.defineComponent({...xn,props:Cn,emits:Sn,setup(r,{expose:t,emit:e}){const o=r,{Close:a}=B.TypeComponents,l=n.ref(!1),{ns:i,zIndex:s}=B.useGlobalComponentSettings("message"),{currentZIndex:u,nextZIndex:c}=s,f=n.ref(),d=n.ref(!1),y=n.ref(0);let _;const h=n.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),S=n.computed(()=>{const b=o.type;return{[i.bm("icon",b)]:b&&B.TypeComponentsMap[b]}}),p=n.computed(()=>o.icon||B.TypeComponentsMap[o.type]||""),M=n.computed(()=>Dn(o.id)),F=n.computed(()=>Bn(o.id,o.offset)+M.value),D=n.computed(()=>y.value+F.value),z=n.computed(()=>({top:`${F.value}px`,zIndex:u.value}));function L(){o.duration!==0&&({stop:_}=B.useTimeoutFn(()=>{w()},o.duration))}function I(){_==null||_()}function w(){d.value=!1,n.nextTick(()=>{var b;l.value||((b=o.onClose)==null||b.call(o),e("destroy"))})}function X({code:b}){b===B.EVENT_CODE.esc&&w()}return n.onMounted(()=>{L(),c(),d.value=!0}),n.watch(()=>o.repeatNum,()=>{I(),L()}),B.useEventListener(document,"keydown",X),B.useResizeObserver(f,()=>{y.value=f.value.getBoundingClientRect().height}),t({visible:d,bottom:D,close:w}),(b,A)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),onBeforeEnter:T=>l.value=!0,onBeforeLeave:b.onClose,onAfterLeave:T=>b.$emit("destroy"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{id:b.id,ref_key:"messageRef",ref:f,class:n.normalizeClass([n.unref(i).b(),{[n.unref(i).m(b.type)]:b.type},n.unref(i).is("closable",b.showClose),n.unref(i).is("plain",b.plain),b.customClass]),style:n.normalizeStyle(n.unref(z)),role:"alert",onMouseenter:I,onMouseleave:L},[b.repeatNum>1?(n.openBlock(),n.createBlock(n.unref(vn),{key:0,value:b.repeatNum,type:n.unref(h),class:n.normalizeClass(n.unref(i).e("badge"))},null,8,["value","type","class"])):n.createCommentVNode("v-if",!0),n.unref(p)?(n.openBlock(),n.createBlock(n.unref(B.ElIcon),{key:1,class:n.normalizeClass([n.unref(i).e("icon"),n.unref(S)])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(p))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),n.createElementVNode("p",{class:n.normalizeClass(n.unref(i).e("content")),innerHTML:b.message},null,10,["innerHTML"])],2112)):(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(n.unref(i).e("content"))},n.toDisplayString(b.message),3))]),b.showClose?(n.openBlock(),n.createBlock(n.unref(B.ElIcon),{key:2,class:n.normalizeClass(n.unref(i).e("closeBtn")),onClick:n.withModifiers(w,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(a))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],46,["id"]),[[n.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var $n=B._export_sfc(Tn,[["__file","message.vue"]]);let Nn=1;const Ut=r=>{const t=!r||B.isString(r)||n.isVNode(r)||B.isFunction(r)?{message:r}:r,e={...ne,...t};if(!e.appendTo)e.appendTo=document.body;else if(B.isString(e.appendTo)){let o=document.querySelector(e.appendTo);B.isElement(o)||(B.debugWarn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),o=document.body),e.appendTo=o}return B.isBoolean(fe.grouping)&&!e.grouping&&(e.grouping=fe.grouping),B.isNumber(fe.duration)&&e.duration===3e3&&(e.duration=fe.duration),B.isNumber(fe.offset)&&e.offset===16&&(e.offset=fe.offset),B.isBoolean(fe.showClose)&&!e.showClose&&(e.showClose=fe.showClose),e},On=r=>{const t=he.indexOf(r);if(t===-1)return;he.splice(t,1);const{handler:e}=r;e.close()},Mn=({appendTo:r,...t},e)=>{const o=`message_${Nn++}`,a=t.onClose,l=document.createElement("div"),i={...t,id:o,onClose:()=>{a==null||a(),On(f)},onDestroy:()=>{n.render(null,l)}},s=n.createVNode($n,i,B.isFunction(i.message)||n.isVNode(i.message)?{default:B.isFunction(i.message)?i.message:()=>i.message}:null);s.appContext=e||Ae._context,n.render(s,l),r.appendChild(l.firstElementChild);const u=s.component,f={id:o,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return f},Ae=(r={},t)=>{if(!B.isClient)return{close:()=>{}};const e=Ut(r);if(e.grouping&&he.length){const a=he.find(({vnode:l})=>{var i;return((i=l.props)==null?void 0:i.message)===e.message});if(a)return a.props.repeatNum+=1,a.props.type=e.type,a.handler}if(B.isNumber(fe.max)&&he.length>=fe.max)return{close:()=>{}};const o=Mn(e,t);return he.push(o),o.handler};jt.forEach(r=>{Ae[r]=(t={},e)=>{const o=Ut(t);return Ae({...o,type:r},e)}});function Vn(r){const t=[...he];for(const e of t)(!r||r===e.props.type)&&e.handler.close()}Ae.closeAll=Vn;Ae._context=null;const Bt=B.withInstallFunction(Ae,"$message");/**!
|
|
2
|
+
* Sortable 1.15.6
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/function It(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),e.push.apply(e,o)}return e}function ge(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?It(Object(e),!0).forEach(function(o){In(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):It(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function nt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(t){return typeof t}:nt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(r)}function In(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function ye(){return ye=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}return r},ye.apply(this,arguments)}function An(r,t){if(r==null)return{};var e={},o=Object.keys(r),a,l;for(l=0;l<o.length;l++)a=o[l],!(t.indexOf(a)>=0)&&(e[a]=r[a]);return e}function Pn(r,t){if(r==null)return{};var e=An(r,t),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)o=l[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(e[o]=r[o])}return e}var Rn="1.15.6";function ve(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var be=ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ge=ve(/Edge/i),At=ve(/firefox/i),He=ve(/safari/i)&&!ve(/chrome/i)&&!ve(/android/i),xt=ve(/iP(ad|od|hone)/i),Xt=ve(/chrome/i)&&ve(/android/i),Gt={capture:!1,passive:!1};function R(r,t,e){r.addEventListener(t,e,!be&&Gt)}function P(r,t,e){r.removeEventListener(t,e,!be&&Gt)}function lt(r,t){if(t){if(t[0]===">"&&(t=t.substring(1)),r)try{if(r.matches)return r.matches(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t)}catch{return!1}return!1}}function qt(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function pe(r,t,e,o){if(r){e=e||document;do{if(t!=null&&(t[0]===">"?r.parentNode===e&<(r,t):lt(r,t))||o&&r===e)return r;if(r===e)break}while(r=qt(r))}return null}var Pt=/\s+/g;function le(r,t,e){if(r&&t)if(r.classList)r.classList[e?"add":"remove"](t);else{var o=(" "+r.className+" ").replace(Pt," ").replace(" "+t+" "," ");r.className=(o+(e?" "+t:"")).replace(Pt," ")}}function $(r,t,e){var o=r&&r.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(e=r.currentStyle),t===void 0?e:e[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=e+(typeof e=="string"?"":"px")}}function Ie(r,t){var e="";if(typeof r=="string")e=r;else do{var o=$(r,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!t&&(r=r.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function Zt(r,t,e){if(r){var o=r.getElementsByTagName(t),a=0,l=o.length;if(e)for(;a<l;a++)e(o[a],a);return o}return[]}function me(){var r=document.scrollingElement;return r||document.documentElement}function q(r,t,e,o,a){if(!(!r.getBoundingClientRect&&r!==window)){var l,i,s,u,c,f,d;if(r!==window&&r.parentNode&&r!==me()?(l=r.getBoundingClientRect(),i=l.top,s=l.left,u=l.bottom,c=l.right,f=l.height,d=l.width):(i=0,s=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(t||e)&&r!==window&&(a=a||r.parentNode,!be))do if(a&&a.getBoundingClientRect&&($(a,"transform")!=="none"||e&&$(a,"position")!=="static")){var y=a.getBoundingClientRect();i-=y.top+parseInt($(a,"border-top-width")),s-=y.left+parseInt($(a,"border-left-width")),u=i+l.height,c=s+l.width;break}while(a=a.parentNode);if(o&&r!==window){var _=Ie(a||r),h=_&&_.a,S=_&&_.d;_&&(i/=S,s/=h,d/=h,f/=S,u=i+f,c=s+d)}return{top:i,left:s,bottom:u,right:c,width:d,height:f}}}function Rt(r,t,e){for(var o=Ce(r,!0),a=q(r)[t];o;){var l=q(o)[e],i=void 0;if(i=a>=l,!i)return o;if(o===me())break;o=Ce(o,!1)}return!1}function Pe(r,t,e,o){for(var a=0,l=0,i=r.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==x.ghost&&(o||i[l]!==x.dragged)&&pe(i[l],e.draggable,r,!1)){if(a===t)return i[l];a++}l++}return null}function Tt(r,t){for(var e=r.lastElementChild;e&&(e===x.ghost||$(e,"display")==="none"||t&&!lt(e,t));)e=e.previousElementSibling;return e||null}function ce(r,t){var e=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==x.clone&&(!t||lt(r,t))&&e++;return e}function Ft(r){var t=0,e=0,o=me();if(r)do{var a=Ie(r),l=a.a,i=a.d;t+=r.scrollLeft*l,e+=r.scrollTop*i}while(r!==o&&(r=r.parentNode));return[t,e]}function Fn(r,t){for(var e in r)if(r.hasOwnProperty(e)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===r[e][o])return Number(e)}return-1}function Ce(r,t){if(!r||!r.getBoundingClientRect)return me();var e=r,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var a=$(e);if(e.clientWidth<e.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return me();if(o||t)return e;o=!0}}while(e=e.parentNode);return me()}function zn(r,t){if(r&&t)for(var e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r}function ht(r,t){return Math.round(r.top)===Math.round(t.top)&&Math.round(r.left)===Math.round(t.left)&&Math.round(r.height)===Math.round(t.height)&&Math.round(r.width)===Math.round(t.width)}var We;function Jt(r,t){return function(){if(!We){var e=arguments,o=this;e.length===1?r.call(o,e[0]):r.apply(o,e),We=setTimeout(function(){We=void 0},t)}}}function Ln(){clearTimeout(We),We=void 0}function Kt(r,t,e){r.scrollLeft+=t,r.scrollTop+=e}function Qt(r){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(r).cloneNode(!0):e?e(r).clone(!0)[0]:r.cloneNode(!0)}function en(r,t,e){var o={};return Array.from(r.children).forEach(function(a){var l,i,s,u;if(!(!pe(a,t.draggable,r,!1)||a.animated||a===e)){var c=q(a);o.left=Math.min((l=o.left)!==null&&l!==void 0?l:1/0,c.left),o.top=Math.min((i=o.top)!==null&&i!==void 0?i:1/0,c.top),o.right=Math.max((s=o.right)!==null&&s!==void 0?s:-1/0,c.right),o.bottom=Math.max((u=o.bottom)!==null&&u!==void 0?u:-1/0,c.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var ie="Sortable"+new Date().getTime();function Yn(){var r=[],t;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!($(a,"display")==="none"||a===x.ghost)){r.push({target:a,rect:q(a)});var l=ge({},r[r.length-1].rect);if(a.thisAnimationDuration){var i=Ie(a,!0);i&&(l.top-=i.f,l.left-=i.e)}a.fromRect=l}})}},addAnimationState:function(o){r.push(o)},removeAnimationState:function(o){r.splice(Fn(r,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var l=!1,i=0;r.forEach(function(s){var u=0,c=s.target,f=c.fromRect,d=q(c),y=c.prevFromRect,_=c.prevToRect,h=s.rect,S=Ie(c,!0);S&&(d.top-=S.f,d.left-=S.e),c.toRect=d,c.thisAnimationDuration&&ht(y,d)&&!ht(f,d)&&(h.top-d.top)/(h.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=Wn(h,y,_,a.options)),ht(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=a.options.animation),a.animate(c,h,d,u)),u&&(l=!0,i=Math.max(i,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(t),l?t=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),r=[]},animate:function(o,a,l,i){if(i){$(o,"transition",""),$(o,"transform","");var s=Ie(this.el),u=s&&s.a,c=s&&s.d,f=(a.left-l.left)/(u||1),d=(a.top-l.top)/(c||1);o.animatingX=!!f,o.animatingY=!!d,$(o,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Hn(o),$(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),$(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){$(o,"transition",""),$(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function Hn(r){return r.offsetWidth}function Wn(r,t,e,o){return Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*o.animation}var Ne=[],mt={initializeByDefault:!0},qe={mount:function(t){for(var e in mt)mt.hasOwnProperty(e)&&!(e in t)&&(t[e]=mt[e]);Ne.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ne.push(t)},pluginEvent:function(t,e,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var l=t+"Global";Ne.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][l]&&e[i.pluginName][l](ge({sortable:e},o)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](ge({sortable:e},o)))})},initializePlugins:function(t,e,o,a){Ne.forEach(function(s){var u=s.pluginName;if(!(!t.options[u]&&!s.initializeByDefault)){var c=new s(t,e,t.options);c.sortable=t,c.options=t.options,t[u]=c,ye(o,c.defaults)}});for(var l in t.options)if(t.options.hasOwnProperty(l)){var i=this.modifyOption(t,l,t.options[l]);typeof i<"u"&&(t.options[l]=i)}},getEventProperties:function(t,e){var o={};return Ne.forEach(function(a){typeof a.eventProperties=="function"&&ye(o,a.eventProperties.call(e[a.pluginName],t))}),o},modifyOption:function(t,e,o){var a;return Ne.forEach(function(l){t[l.pluginName]&&l.optionListeners&&typeof l.optionListeners[e]=="function"&&(a=l.optionListeners[e].call(t[l.pluginName],o))}),a}};function jn(r){var t=r.sortable,e=r.rootEl,o=r.name,a=r.targetEl,l=r.cloneEl,i=r.toEl,s=r.fromEl,u=r.oldIndex,c=r.newIndex,f=r.oldDraggableIndex,d=r.newDraggableIndex,y=r.originalEvent,_=r.putSortable,h=r.extraEventProperties;if(t=t||e&&e[ie],!!t){var S,p=t.options,M="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!be&&!Ge?S=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(o,!0,!0)),S.to=i||e,S.from=s||e,S.item=a||e,S.clone=l,S.oldIndex=u,S.newIndex=c,S.oldDraggableIndex=f,S.newDraggableIndex=d,S.originalEvent=y,S.pullMode=_?_.lastPutMode:void 0;var F=ge(ge({},h),qe.getEventProperties(o,t));for(var D in F)S[D]=F[D];e&&e.dispatchEvent(S),p[M]&&p[M].call(t,S)}}var Un=["evt"],ae=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,l=Pn(o,Un);qe.pluginEvent.bind(x)(t,e,ge({dragEl:m,parentEl:U,ghostEl:N,rootEl:H,nextEl:xe,lastDownEl:ot,cloneEl:j,cloneHidden:Ee,dragStarted:ze,putSortable:K,activeSortable:x.active,originalEvent:a,oldIndex:Ve,oldDraggableIndex:je,newIndex:se,newDraggableIndex:_e,hideGhostForTarget:rn,unhideGhostForTarget:an,cloneNowHidden:function(){Ee=!0},cloneNowShown:function(){Ee=!1},dispatchSortableEvent:function(s){oe({sortable:e,name:s,originalEvent:a})}},l))};function oe(r){jn(ge({putSortable:K,cloneEl:j,targetEl:m,rootEl:H,oldIndex:Ve,oldDraggableIndex:je,newIndex:se,newDraggableIndex:_e},r))}var m,U,N,H,xe,ot,j,Ee,Ve,se,je,_e,Je,K,Me=!1,st=!1,ut=[],De,de,gt,vt,zt,Lt,ze,Oe,Ue,Xe=!1,Ke=!1,rt,ee,yt=[],Ct=!1,ct=[],pt=typeof document<"u",Qe=xt,Yt=Ge||be?"cssFloat":"float",Xn=pt&&!Xt&&!xt&&"draggable"in document.createElement("div"),tn=function(){if(pt){if(be)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),nn=function(t,e){var o=$(t),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),l=Pe(t,0,e),i=Pe(t,1,e),s=l&&$(l),u=i&&$(i),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+q(l).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+q(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return l&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=a&&o[Yt]==="none"||i&&o[Yt]==="none"&&c+f>a)?"vertical":"horizontal"},Gn=function(t,e,o){var a=o?t.left:t.top,l=o?t.right:t.bottom,i=o?t.width:t.height,s=o?e.left:e.top,u=o?e.right:e.bottom,c=o?e.width:e.height;return a===s||l===u||a+i/2===s+c/2},qn=function(t,e){var o;return ut.some(function(a){var l=a[ie].options.emptyInsertThreshold;if(!(!l||Tt(a))){var i=q(a),s=t>=i.left-l&&t<=i.right+l,u=e>=i.top-l&&e<=i.bottom+l;if(s&&u)return o=a}}),o},on=function(t){function e(l,i){return function(s,u,c,f){var d=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(l==null&&(i||d))return!0;if(l==null||l===!1)return!1;if(i&&l==="clone")return l;if(typeof l=="function")return e(l(s,u,c,f),i)(s,u,c,f);var y=(i?s:u).options.group.name;return l===!0||typeof l=="string"&&l===y||l.join&&l.indexOf(y)>-1}}var o={},a=t.group;(!a||nt(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=e(a.pull,!0),o.checkPut=e(a.put),o.revertClone=a.revertClone,t.group=o},rn=function(){!tn&&N&&$(N,"display","none")},an=function(){!tn&&N&&$(N,"display","")};pt&&!Xt&&document.addEventListener("click",function(r){if(st)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),st=!1,!1},!0);var Be=function(t){if(m){t=t.touches?t.touches[0]:t;var e=qn(t.clientX,t.clientY);if(e){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[ie]._onDragOver(o)}}},Zn=function(t){m&&m.parentNode[ie]._isOutsideThisEl(t.target)};function x(r,t){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=t=ye({},t),r[ie]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return nn(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,s){i.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:x.supportPointer!==!1&&"PointerEvent"in window&&(!He||xt),emptyInsertThreshold:5};qe.initializePlugins(this,r,e);for(var o in e)!(o in t)&&(t[o]=e[o]);on(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:Xn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?R(r,"pointerdown",this._onTapStart):(R(r,"mousedown",this._onTapStart),R(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(R(r,"dragover",this),R(r,"dragenter",this)),ut.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ye(this,Yn())}x.prototype={constructor:x,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Oe=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,m):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=this.el,a=this.options,l=a.preventOnFilter,i=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(s||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,f=a.filter;if(ro(o),!m&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&He&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=pe(u,a.draggable,o,!1),!(u&&u.animated)&&ot!==u)){if(Ve=ce(u),je=ce(u,a.draggable),typeof f=="function"){if(f.call(this,t,u,this)){oe({sortable:e,rootEl:c,name:"filter",targetEl:u,toEl:o,fromEl:o}),ae("filter",e,{evt:t}),l&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=pe(c,d.trim(),o,!1),d)return oe({sortable:e,rootEl:d,name:"filter",targetEl:u,fromEl:o,toEl:o}),ae("filter",e,{evt:t}),!0}),f)){l&&t.preventDefault();return}a.handle&&!pe(c,a.handle,o,!1)||this._prepareDragStart(t,s,u)}}},_prepareDragStart:function(t,e,o){var a=this,l=a.el,i=a.options,s=l.ownerDocument,u;if(o&&!m&&o.parentNode===l){var c=q(o);if(H=l,m=o,U=m.parentNode,xe=m.nextSibling,ot=o,Je=i.group,x.dragged=m,De={target:m,clientX:(e||t).clientX,clientY:(e||t).clientY},zt=De.clientX-c.left,Lt=De.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,m.style["will-change"]="all",u=function(){if(ae("delayEnded",a,{evt:t}),x.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!At&&a.nativeDraggable&&(m.draggable=!0),a._triggerDragStart(t,e),oe({sortable:a,name:"choose",originalEvent:t}),le(m,i.chosenClass,!0)},i.ignore.split(",").forEach(function(f){Zt(m,f.trim(),bt)}),R(s,"dragover",Be),R(s,"mousemove",Be),R(s,"touchmove",Be),i.supportPointer?(R(s,"pointerup",a._onDrop),!this.nativeDraggable&&R(s,"pointercancel",a._onDrop)):(R(s,"mouseup",a._onDrop),R(s,"touchend",a._onDrop),R(s,"touchcancel",a._onDrop)),At&&this.nativeDraggable&&(this.options.touchStartThreshold=4,m.draggable=!0),ae("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ge||be))){if(x.eventCanceled){this._onDrop();return}i.supportPointer?(R(s,"pointerup",a._disableDelayedDrag),R(s,"pointercancel",a._disableDelayedDrag)):(R(s,"mouseup",a._disableDelayedDrag),R(s,"touchend",a._disableDelayedDrag),R(s,"touchcancel",a._disableDelayedDrag)),R(s,"mousemove",a._delayedDragTouchMoveHandler),R(s,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&R(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){m&&bt(m),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;P(t,"mouseup",this._disableDelayedDrag),P(t,"touchend",this._disableDelayedDrag),P(t,"touchcancel",this._disableDelayedDrag),P(t,"pointerup",this._disableDelayedDrag),P(t,"pointercancel",this._disableDelayedDrag),P(t,"mousemove",this._delayedDragTouchMoveHandler),P(t,"touchmove",this._delayedDragTouchMoveHandler),P(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?R(document,"pointermove",this._onTouchMove):e?R(document,"touchmove",this._onTouchMove):R(document,"mousemove",this._onTouchMove):(R(m,"dragend",this),R(H,"dragstart",this._onDragStart));try{document.selection?at(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Me=!1,H&&m){ae("dragStarted",this,{evt:e}),this.nativeDraggable&&R(document,"dragover",Zn);var o=this.options;!t&&le(m,o.dragClass,!1),le(m,o.ghostClass,!0),x.active=this,t&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,rn();for(var t=document.elementFromPoint(de.clientX,de.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(de.clientX,de.clientY),t!==e);)e=t;if(m.parentNode[ie]._isOutsideThisEl(t),e)do{if(e[ie]){var o=void 0;if(o=e[ie]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=qt(e));an()}},_onTouchMove:function(t){if(De){var e=this.options,o=e.fallbackTolerance,a=e.fallbackOffset,l=t.touches?t.touches[0]:t,i=N&&Ie(N,!0),s=N&&i&&i.a,u=N&&i&&i.d,c=Qe&&ee&&Ft(ee),f=(l.clientX-De.clientX+a.x)/(s||1)+(c?c[0]-yt[0]:0)/(s||1),d=(l.clientY-De.clientY+a.y)/(u||1)+(c?c[1]-yt[1]:0)/(u||1);if(!x.active&&!Me){if(o&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(N){i?(i.e+=f-(gt||0),i.f+=d-(vt||0)):i={a:1,b:0,c:0,d:1,e:f,f:d};var y="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");$(N,"webkitTransform",y),$(N,"mozTransform",y),$(N,"msTransform",y),$(N,"transform",y),gt=f,vt=d,de=l}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!N){var t=this.options.fallbackOnBody?document.body:H,e=q(m,!0,Qe,!0,t),o=this.options;if(Qe){for(ee=t;$(ee,"position")==="static"&&$(ee,"transform")==="none"&&ee!==document;)ee=ee.parentNode;ee!==document.body&&ee!==document.documentElement?(ee===document&&(ee=me()),e.top+=ee.scrollTop,e.left+=ee.scrollLeft):ee=me(),yt=Ft(ee)}N=m.cloneNode(!0),le(N,o.ghostClass,!1),le(N,o.fallbackClass,!0),le(N,o.dragClass,!0),$(N,"transition",""),$(N,"transform",""),$(N,"box-sizing","border-box"),$(N,"margin",0),$(N,"top",e.top),$(N,"left",e.left),$(N,"width",e.width),$(N,"height",e.height),$(N,"opacity","0.8"),$(N,"position",Qe?"absolute":"fixed"),$(N,"zIndex","100000"),$(N,"pointerEvents","none"),x.ghost=N,t.appendChild(N),$(N,"transform-origin",zt/parseInt(N.style.width)*100+"% "+Lt/parseInt(N.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,a=t.dataTransfer,l=o.options;if(ae("dragStart",this,{evt:t}),x.eventCanceled){this._onDrop();return}ae("setupClone",this),x.eventCanceled||(j=Qt(m),j.removeAttribute("id"),j.draggable=!1,j.style["will-change"]="",this._hideClone(),le(j,this.options.chosenClass,!1),x.clone=j),o.cloneId=at(function(){ae("clone",o),!x.eventCanceled&&(o.options.removeCloneOnHide||H.insertBefore(j,m),o._hideClone(),oe({sortable:o,name:"clone"}))}),!e&&le(m,l.dragClass,!0),e?(st=!0,o._loopId=setInterval(o._emulateDragOver,50)):(P(document,"mouseup",o._onDrop),P(document,"touchend",o._onDrop),P(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",l.setData&&l.setData.call(o,a,m)),R(document,"drop",o),$(m,"transform","translateZ(0)")),Me=!0,o._dragStartId=at(o._dragStarted.bind(o,e,t)),R(document,"selectstart",o),ze=!0,window.getSelection().removeAllRanges(),He&&$(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=t.target,a,l,i,s=this.options,u=s.group,c=x.active,f=Je===u,d=s.sort,y=K||c,_,h=this,S=!1;if(Ct)return;function p(E,O){ae(E,h,ge({evt:t,isOwner:f,axis:_?"vertical":"horizontal",revert:i,dragRect:a,targetRect:l,canSort:d,fromSortable:y,target:o,completed:F,onMove:function(Y,W){return et(H,e,m,a,Y,q(Y),t,W)},changed:D},O))}function M(){p("dragOverAnimationCapture"),h.captureAnimationState(),h!==y&&y.captureAnimationState()}function F(E){return p("dragOverCompleted",{insertion:E}),E&&(f?c._hideClone():c._showClone(h),h!==y&&(le(m,K?K.options.ghostClass:c.options.ghostClass,!1),le(m,s.ghostClass,!0)),K!==h&&h!==x.active?K=h:h===x.active&&K&&(K=null),y===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){p("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(o===m&&!m.animated||o===e&&!o.animated)&&(Oe=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(m.parentNode[ie]._isOutsideThisEl(t.target),!E&&Be(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),S=!0}function D(){se=ce(m),_e=ce(m,s.draggable),oe({sortable:h,name:"change",toEl:e,newIndex:se,newDraggableIndex:_e,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=pe(o,s.draggable,e,!0),p("dragOver"),x.eventCanceled)return S;if(m.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return F(!1);if(st=!1,c&&!s.disabled&&(f?d||(i=U!==H):K===this||(this.lastPutMode=Je.checkPull(this,c,m,t))&&u.checkPut(this,c,m,t))){if(_=this._getDirection(t,o)==="vertical",a=q(m),p("dragOverValid"),x.eventCanceled)return S;if(i)return U=H,M(),this._hideClone(),p("revert"),x.eventCanceled||(xe?H.insertBefore(m,xe):H.appendChild(m)),F(!0);var z=Tt(e,s.draggable);if(!z||eo(t,_,this)&&!z.animated){if(z===m)return F(!1);if(z&&e===t.target&&(o=z),o&&(l=q(o)),et(H,e,m,a,o,l,t,!!o)!==!1)return M(),z&&z.nextSibling?e.insertBefore(m,z.nextSibling):e.appendChild(m),U=e,D(),F(!0)}else if(z&&Qn(t,_,this)){var L=Pe(e,0,s,!0);if(L===m)return F(!1);if(o=L,l=q(o),et(H,e,m,a,o,l,t,!1)!==!1)return M(),e.insertBefore(m,L),U=e,D(),F(!0)}else if(o.parentNode===e){l=q(o);var I=0,w,X=m.parentNode!==e,b=!Gn(m.animated&&m.toRect||a,o.animated&&o.toRect||l,_),A=_?"top":"left",T=Rt(o,"top","top")||Rt(m,"top","top"),te=T?T.scrollTop:void 0;Oe!==o&&(w=l[A],Xe=!1,Ke=!b&&s.invertSwap||X),I=to(t,o,l,_,b?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ke,Oe===o);var Z;if(I!==0){var C=ce(m);do C-=I,Z=U.children[C];while(Z&&($(Z,"display")==="none"||Z===N))}if(I===0||Z===o)return F(!1);Oe=o,Ue=I;var v=o.nextElementSibling,g=!1;g=I===1;var k=et(H,e,m,a,o,l,t,g);if(k!==!1)return(k===1||k===-1)&&(g=k===1),Ct=!0,setTimeout(Kn,30),M(),g&&!v?e.appendChild(m):o.parentNode.insertBefore(m,g?v:o),T&&Kt(T,0,te-T.scrollTop),U=m.parentNode,w!==void 0&&!Ke&&(rt=Math.abs(w-q(o)[A])),D(),F(!0)}if(e.contains(m))return F(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){P(document,"mousemove",this._onTouchMove),P(document,"touchmove",this._onTouchMove),P(document,"pointermove",this._onTouchMove),P(document,"dragover",Be),P(document,"mousemove",Be),P(document,"touchmove",Be)},_offUpEvents:function(){var t=this.el.ownerDocument;P(t,"mouseup",this._onDrop),P(t,"touchend",this._onDrop),P(t,"pointerup",this._onDrop),P(t,"pointercancel",this._onDrop),P(t,"touchcancel",this._onDrop),P(document,"selectstart",this)},_onDrop:function(t){var e=this.el,o=this.options;if(se=ce(m),_e=ce(m,o.draggable),ae("drop",this,{evt:t}),U=m&&m.parentNode,se=ce(m),_e=ce(m,o.draggable),x.eventCanceled){this._nulling();return}Me=!1,Ke=!1,Xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),St(this.cloneId),St(this._dragStartId),this.nativeDraggable&&(P(document,"drop",this),P(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),He&&$(document.body,"user-select",""),$(m,"transform",""),t&&(ze&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),N&&N.parentNode&&N.parentNode.removeChild(N),(H===U||K&&K.lastPutMode!=="clone")&&j&&j.parentNode&&j.parentNode.removeChild(j),m&&(this.nativeDraggable&&P(m,"dragend",this),bt(m),m.style["will-change"]="",ze&&!Me&&le(m,K?K.options.ghostClass:this.options.ghostClass,!1),le(m,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:U,newIndex:null,newDraggableIndex:null,originalEvent:t}),H!==U?(se>=0&&(oe({rootEl:U,name:"add",toEl:U,fromEl:H,originalEvent:t}),oe({sortable:this,name:"remove",toEl:U,originalEvent:t}),oe({rootEl:U,name:"sort",toEl:U,fromEl:H,originalEvent:t}),oe({sortable:this,name:"sort",toEl:U,originalEvent:t})),K&&K.save()):se!==Ve&&se>=0&&(oe({sortable:this,name:"update",toEl:U,originalEvent:t}),oe({sortable:this,name:"sort",toEl:U,originalEvent:t})),x.active&&((se==null||se===-1)&&(se=Ve,_e=je),oe({sortable:this,name:"end",toEl:U,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ae("nulling",this),H=m=U=N=xe=j=ot=Ee=De=de=ze=se=_e=Ve=je=Oe=Ue=K=Je=x.dragged=x.ghost=x.clone=x.active=null,ct.forEach(function(t){t.checked=!0}),ct.length=gt=vt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":m&&(this._onDragOver(t),Jn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,o=this.el.children,a=0,l=o.length,i=this.options;a<l;a++)e=o[a],pe(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||oo(e));return t},sort:function(t,e){var o={},a=this.el;this.toArray().forEach(function(l,i){var s=a.children[i];pe(s,this.options.draggable,a,!1)&&(o[l]=s)},this),e&&this.captureAnimationState(),t.forEach(function(l){o[l]&&(a.removeChild(o[l]),a.appendChild(o[l]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return pe(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(e===void 0)return o[t];var a=qe.modifyOption(this,t,e);typeof a<"u"?o[t]=a:o[t]=e,t==="group"&&on(o)},destroy:function(){ae("destroy",this);var t=this.el;t[ie]=null,P(t,"mousedown",this._onTapStart),P(t,"touchstart",this._onTapStart),P(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(P(t,"dragover",this),P(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ut.splice(ut.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ee){if(ae("hideClone",this),x.eventCanceled)return;$(j,"display","none"),this.options.removeCloneOnHide&&j.parentNode&&j.parentNode.removeChild(j),Ee=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ee){if(ae("showClone",this),x.eventCanceled)return;m.parentNode==H&&!this.options.group.revertClone?H.insertBefore(j,m):xe?H.insertBefore(j,xe):H.appendChild(j),this.options.group.revertClone&&this.animate(m,j),$(j,"display",""),Ee=!1}}};function Jn(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function et(r,t,e,o,a,l,i,s){var u,c=r[ie],f=c.options.onMove,d;return window.CustomEvent&&!be&&!Ge?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=r,u.dragged=e,u.draggedRect=o,u.related=a||t,u.relatedRect=l||q(t),u.willInsertAfter=s,u.originalEvent=i,r.dispatchEvent(u),f&&(d=f.call(c,u,i)),d}function bt(r){r.draggable=!1}function Kn(){Ct=!1}function Qn(r,t,e){var o=q(Pe(e.el,0,e.options,!0)),a=en(e.el,e.options,N),l=10;return t?r.clientX<a.left-l||r.clientY<o.top&&r.clientX<o.right:r.clientY<a.top-l||r.clientY<o.bottom&&r.clientX<o.left}function eo(r,t,e){var o=q(Tt(e.el,e.options.draggable)),a=en(e.el,e.options,N),l=10;return t?r.clientX>a.right+l||r.clientY>o.bottom&&r.clientX>o.left:r.clientY>a.bottom+l||r.clientX>o.right&&r.clientY>o.top}function to(r,t,e,o,a,l,i,s){var u=o?r.clientY:r.clientX,c=o?e.height:e.width,f=o?e.top:e.left,d=o?e.bottom:e.right,y=!1;if(!i){if(s&&rt<c*a){if(!Xe&&(Ue===1?u>f+c*l/2:u<d-c*l/2)&&(Xe=!0),Xe)y=!0;else if(Ue===1?u<f+rt:u>d-rt)return-Ue}else if(u>f+c*(1-a)/2&&u<d-c*(1-a)/2)return no(t)}return y=y||i,y&&(u<f+c*l/2||u>d-c*l/2)?u>f+c/2?1:-1:0}function no(r){return ce(m)<ce(r)?1:-1}function oo(r){for(var t=r.tagName+r.className+r.src+r.href+r.textContent,e=t.length,o=0;e--;)o+=t.charCodeAt(e);return o.toString(36)}function ro(r){ct.length=0;for(var t=r.getElementsByTagName("input"),e=t.length;e--;){var o=t[e];o.checked&&ct.push(o)}}function at(r){return setTimeout(r,0)}function St(r){return clearTimeout(r)}pt&&R(document,"touchmove",function(r){(x.active||Me)&&r.cancelable&&r.preventDefault()});x.utils={on:R,off:P,css:$,find:Zt,is:function(t,e){return!!pe(t,e,t,!1)},extend:zn,throttle:Jt,closest:pe,toggleClass:le,clone:Qt,index:ce,nextTick:at,cancelNextTick:St,detectDirection:nn,getChild:Pe,expando:ie};x.get=function(r){return r[ie]};x.mount=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(x.utils=ge(ge({},x.utils),o.utils)),qe.mount(o)})};x.create=function(r,t){return new x(r,t)};x.version=Rn;var G=[],Le,kt,Dt=!1,wt,_t,dt,Ye;function ao(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return r.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?R(document,"dragover",this._handleAutoScroll):this.options.supportPointer?R(document,"pointermove",this._handleFallbackAutoScroll):o.touches?R(document,"touchmove",this._handleFallbackAutoScroll):R(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?P(document,"dragover",this._handleAutoScroll):(P(document,"pointermove",this._handleFallbackAutoScroll),P(document,"touchmove",this._handleFallbackAutoScroll),P(document,"mousemove",this._handleFallbackAutoScroll)),Ht(),it(),Ln()},nulling:function(){dt=kt=Le=Dt=Ye=wt=_t=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var a=this,l=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(l,i);if(dt=e,o||this.options.forceAutoScrollFallback||Ge||be||He){Et(e,this.options,s,o);var u=Ce(s,!0);Dt&&(!Ye||l!==wt||i!==_t)&&(Ye&&Ht(),Ye=setInterval(function(){var c=Ce(document.elementFromPoint(l,i),!0);c!==u&&(u=c,it()),Et(e,a.options,c,o)},10),wt=l,_t=i)}else{if(!this.options.bubbleScroll||Ce(s,!0)===me()){it();return}Et(e,this.options,Ce(s,!1),!1)}}},ye(r,{pluginName:"scroll",initializeByDefault:!0})}function it(){G.forEach(function(r){clearInterval(r.pid)}),G=[]}function Ht(){clearInterval(Ye)}var Et=Jt(function(r,t,e,o){if(t.scroll){var a=(r.touches?r.touches[0]:r).clientX,l=(r.touches?r.touches[0]:r).clientY,i=t.scrollSensitivity,s=t.scrollSpeed,u=me(),c=!1,f;kt!==e&&(kt=e,it(),Le=t.scroll,f=t.scrollFn,Le===!0&&(Le=Ce(e,!0)));var d=0,y=Le;do{var _=y,h=q(_),S=h.top,p=h.bottom,M=h.left,F=h.right,D=h.width,z=h.height,L=void 0,I=void 0,w=_.scrollWidth,X=_.scrollHeight,b=$(_),A=_.scrollLeft,T=_.scrollTop;_===u?(L=D<w&&(b.overflowX==="auto"||b.overflowX==="scroll"||b.overflowX==="visible"),I=z<X&&(b.overflowY==="auto"||b.overflowY==="scroll"||b.overflowY==="visible")):(L=D<w&&(b.overflowX==="auto"||b.overflowX==="scroll"),I=z<X&&(b.overflowY==="auto"||b.overflowY==="scroll"));var te=L&&(Math.abs(F-a)<=i&&A+D<w)-(Math.abs(M-a)<=i&&!!A),Z=I&&(Math.abs(p-l)<=i&&T+z<X)-(Math.abs(S-l)<=i&&!!T);if(!G[d])for(var C=0;C<=d;C++)G[C]||(G[C]={});(G[d].vx!=te||G[d].vy!=Z||G[d].el!==_)&&(G[d].el=_,G[d].vx=te,G[d].vy=Z,clearInterval(G[d].pid),(te!=0||Z!=0)&&(c=!0,G[d].pid=setInterval((function(){o&&this.layer===0&&x.active._onTouchMove(dt);var v=G[this.layer].vy?G[this.layer].vy*s:0,g=G[this.layer].vx?G[this.layer].vx*s:0;typeof f=="function"&&f.call(x.dragged.parentNode[ie],g,v,r,dt,G[this.layer].el)!=="continue"||Kt(G[this.layer].el,g,v)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&y!==u&&(y=Ce(y,!1)));Dt=c}},30),ln=function(t){var e=t.originalEvent,o=t.putSortable,a=t.dragEl,l=t.activeSortable,i=t.dispatchSortableEvent,s=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(e){var c=o||l;s();var f=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function $t(){}$t.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=Pe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:ln};ye($t,{pluginName:"revertOnSpill"});function Nt(){}Nt.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,a=o||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:ln};ye(Nt,{pluginName:"removeOnSpill"});x.mount(new ao);x.mount(Nt,$t);const io={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(r){const t=r,e=n.ref(null),o=n.ref(!1),a=n.ref(null);return n.watch(()=>t==null?void 0:t.isVisible,()=>{o.value=t==null?void 0:t.isVisible},{deep:!0,immediate:!0}),n.watch(()=>a.value,()=>{n.nextTick(()=>{var l,i;(i=(l=e.value)==null?void 0:l.updatePopper)==null||i.call(l)})},{deep:!0,immediate:!0}),(l,i)=>{const s=n.resolveComponent("el-popover");return n.openBlock(),n.createBlock(s,{visible:o.value,placement:"bottom",title:t==null?void 0:t.title,width:t==null?void 0:t.width,ref_key:"popOverRef",ref:e},{reference:n.withCtx(()=>[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"reference",{ref_key:"referenceRef",ref:a})])]),default:n.withCtx(()=>[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"content")])]),_:3},8,["visible","title","width"])}}},lo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-switch");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},so={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),disabled:!(t!=null&&t.isEdit)},null,8,["modelValue","disabled"])}}},uo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-color-picker");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"show-alpha":""},null,8,["modelValue"])}}},co={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},fo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r;return(e,o)=>{var a,l,i,s,u,c;return n.openBlock(),n.createBlock(Mt,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],buttonValue:((l=t==null?void 0:t.content)==null?void 0:l.buttonValue)??[],isEnableWrap:(i=t==null?void 0:t.content)==null?void 0:i.isEnableWrap,isRowFlex:(s=t==null?void 0:t.content)==null?void 0:s.isRowFlex,isButtonRow:(u=t==null?void 0:t.content)==null?void 0:u.isButtonRow,rowValues:((c=t==null?void 0:t.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},po={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-radio"),i=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.value=s),style:{height:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.content,(s,u)=>(n.openBlock(),n.createBlock(l,{key:u,label:s.label},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s==null?void 0:s.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},ho=["onDblclick"],mo={key:1,class:"tabs-label"},go={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(r,{emit:t}){var c;const e=r,o=t,a=n.ref([]),l=n.ref((c=e==null?void 0:e.tabsContents[0])==null?void 0:c.value),i=f=>Ot(f),s=f=>{o("dblClick",f)},u=f=>{o("dbChange",f)};return n.watch(()=>e.tabsContents,()=>{a.value=ft.cloneDeep(e.tabsContents)},{deep:!0,immediate:!0}),(f,d)=>{const y=n.resolveComponent("el-tab-pane"),_=n.resolveComponent("el-tabs");return n.openBlock(),n.createBlock(_,{type:"card",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.value,(h,S)=>(n.openBlock(),n.createBlock(y,{key:S,name:h==null?void 0:h.value},{label:n.withCtx(()=>{var p;return[h!=null&&h.label?(n.openBlock(),n.createElementBlock("div",{key:0,onDblclick:M=>s(h)},n.toDisplayString(h==null?void 0:h.label),41,ho)):n.createCommentVNode("",!0),h!=null&&h.contents&&((p=h==null?void 0:h.contents)==null?void 0:p.length)>0?(n.openBlock(),n.createElementBlock("div",mo,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h==null?void 0:h.contents,(M,F)=>(n.openBlock(),n.createElementBlock("div",{key:F,class:"tabs-children"},[M!=null&&M.value||(M==null?void 0:M.value)===""?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(M==null?void 0:M.type)),{key:0,modelValue:M.value,"onUpdate:modelValue":D=>M.value=D,content:(M==null?void 0:M.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):n.createCommentVNode("",!0)]))),128))])):n.createCommentVNode("",!0),n.renderSlot(f.$slots,`${(h==null?void 0:h.value)??""}_header`,{},void 0,!0)]}),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h==null?void 0:h.children,(p,M)=>(n.openBlock(),n.createElementBlock("div",{key:M,class:"tabs-contents"},[n.renderSlot(f.$slots,`${(p==null?void 0:p.value)??""}_operateButtons`,{},void 0,!0),p!=null&&p.value||(p==null?void 0:p.value)===""?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(p==null?void 0:p.type)),{key:0,modelValue:p.value,"onUpdate:modelValue":F=>p.value=F,onDbChange:u,content:p==null?void 0:p.content},n.createSlots({_:2},[n.renderList(f.$slots,(F,D)=>({name:D,fn:n.withCtx(z=>[n.renderSlot(f.$slots,D,n.mergeProps({ref_for:!0},z||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):n.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},sn=Te._export_sfc(go,[["__scopeId","data-v-c1c693d0"]]),vo=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),yo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r;return n.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(o=>{o.style.display="block"})}),(e,o)=>{var a;return n.openBlock(),n.createBlock(sn,{tabsContents:((a=t==null?void 0:t.content)==null?void 0:a.tabsContents)??[]},n.createSlots({_:2},[n.renderList(e.$slots,(l,i)=>({name:i,fn:n.withCtx(s=>[n.renderSlot(e.$slots,i,n.normalizeProps(n.guardReactiveProps(s||{})))])}))]),1032,["tabsContents"])}}},bo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(r,{emit:t}){const e=r,o=n.ref([]);n.watch(()=>{var i;return(i=e==null?void 0:e.content)==null?void 0:i.tableData},()=>{var i,s,u,c;((s=(i=e==null?void 0:e.content)==null?void 0:i.tableData)==null?void 0:s.length)===0||!((u=e==null?void 0:e.content)!=null&&u.tableData)||(o.value=ft.cloneDeep((c=e==null?void 0:e.content)==null?void 0:c.tableData))},{deep:!0,immediate:!0});const a=t,l=i=>{var f,d,y,_;if(((f=e==null?void 0:e.content)==null?void 0:f.dbType)!=="edit"||!o.value||((d=o.value)==null?void 0:d.length)===0)return;let s=o.value,u=[];((y=s==null?void 0:s.filter(h=>(h==null?void 0:h.tableEditType)==="edit"))==null?void 0:y.length)!==(((_=e==null?void 0:e.content)==null?void 0:_.editNumber)??1)&&(s=s==null?void 0:s.map(h=>((h==null?void 0:h.id)===(i==null?void 0:i.id)&&(h.tableEditType="edit",u.push(h)),h)),a("dbChange",{content:s,item:u}))};return(i,s)=>{var u,c,f,d,y,_,h;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(i.$slots,`${(u=e==null?void 0:e.content)==null?void 0:u.value}_tableHeader`),(n.openBlock(),n.createBlock(cn,{columns:((c=e==null?void 0:e.content)==null?void 0:c.columns)??[],tableData:o.value??[],currentPage:(f=e==null?void 0:e.content)==null?void 0:f.currentPage,total:(d=e==null?void 0:e.content)==null?void 0:d.total,pageSize:(y=e==null?void 0:e.content)==null?void 0:y.pageSize,isShowPagination:(_=e==null?void 0:e.content)==null?void 0:_.isShowPagination,isShowEdit:!1,isMoveColumn:(h=e==null?void 0:e.content)==null?void 0:h.isMoveColumn,isShowDelete:!1,onDoClickRow:l,key:o.value??[]},{actions:n.withCtx(({item:S})=>{var p;return[n.renderSlot(i.$slots,`${(p=e==null?void 0:e.content)==null?void 0:p.value}_action`,{item:S})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},wo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-option"),i=n.resolveComponent("el-select");return n.openBlock(),n.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.value=s),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t==null?void 0:t.content,s=>(n.openBlock(),n.createBlock(l,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},_o={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},Eo={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(r){const t=r,e=n.ref(t.value);return(o,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),type:"textarea",disabled:!(t!=null&&t.isEdit)},null,8,["modelValue","disabled"])}}},Co=Te._export_sfc(Eo,[["__scopeId","data-v-917c453d"]]),So={class:"dialog-title"},ko={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(r,{emit:t}){const e=r,o=t,a=n.ref(!1),l=()=>{o("beforeDestroy")};return n.watch(()=>e==null?void 0:e.visible,()=>{a.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(i,s)=>{const u=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(u,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),width:e==null?void 0:e.dialogWidth,"before-close":l},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default",{},void 0,!0)]),header:n.withCtx(()=>[n.createElementVNode("div",So,n.toDisplayString(e==null?void 0:e.title),1)]),footer:n.withCtx(()=>[n.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width"])}}},un=Te._export_sfc(ko,[["__scopeId","data-v-5547662c"]]),Do={class:"upload"},Bo={class:"upload-icon"},xo={class:"dialog-footer"},To={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["uploadContents"],setup(r,{emit:t}){const e=r,o=t;n.ref(e.value);const a=n.ref([]),l=n.ref(!1),i=()=>{l.value=!0},s=async()=>{l.value=!1,Bt.success("上传成功"),o("uploadContents",a.value),a.value=[]},u=()=>{l.value=!1,a.value=[]},c=(f,d)=>{d.value=d};return(f,d)=>{const y=n.resolveComponent("el-button"),_=n.resolveComponent("el-icon"),h=n.resolveComponent("el-upload");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",null,[n.createVNode(y,{type:"primary",onClick:i},{default:n.withCtx(()=>[n.createElementVNode("div",Do,[d[1]||(d[1]=n.createElementVNode("div",{class:"upload-word"},n.toDisplayString("上传"),-1)),n.createElementVNode("div",Bo,[n.createVNode(n.unref(B.upload_filled_default))])])]),_:1})]),n.createVNode(un,{visible:l.value,onBeforeDestroy:u,title:"上传文件"},{default:n.withCtx(()=>[n.createVNode(h,{"file-list":a.value,"onUpdate:fileList":d[0]||(d[0]=S=>a.value=S),multiple:"",drag:"",action:"","auto-upload":!1,limit:1,"on-change":c},{tip:n.withCtx(()=>d[2]||(d[2]=[n.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:n.withCtx(()=>[n.createVNode(_,{class:"el-icon--upload"},{default:n.withCtx(()=>[n.createVNode(n.unref(B.upload_filled_default))]),_:1}),d[3]||(d[3]=n.createElementVNode("div",{class:"el-upload__text"},[n.createTextVNode(" 将文件拖到此处或"),n.createElementVNode("em",null,"点击上传")],-1))]),_:1,__:[3]},8,["file-list"])]),footer:n.withCtx(()=>[n.createElementVNode("div",xo,[n.createVNode(y,{onClick:u},{default:n.withCtx(()=>d[4]||(d[4]=[n.createTextVNode(n.toDisplayString("取消"))])),_:1,__:[4]}),n.createVNode(y,{type:"primary",onClick:s},{default:n.withCtx(()=>d[5]||(d[5]=[n.createTextVNode(n.toDisplayString("确认"))])),_:1,__:[5]})])]),_:1},8,["visible"])],64)}}},$o=Te._export_sfc(To,[["__scopeId","data-v-3e08e20d"]]),No={SWITCH:lo,INPUT:so,COLOR:uo,NUMBER:co,FORM:fo,RADIO:po,TAB:yo,TABLE:bo,SELECT:wo,SSMenu:dn.default,DATE:_o,TEXTAREA:Co,UPLOAD:$o};function Ot(r){return No[r.toUpperCase()]||null}const Oo=r=>r.match(/\((.*)\)/)[1],Mo=r=>{try{return Wt(r).format("YYYY-MM-DD")!=="Invalid Date"}catch{return!1}},Vo={class:"form-content-view"},Io=["onClick"],Ao=["onClick"],Po=["onClick"],Ro={__name:"index",props:{rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!0,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick"],setup(r,{emit:t}){const e=r,o=t,a=n.ref(null),l=n.ref(null),i=n.ref(),s=n.ref(),u=f=>Ot(f);n.watch(()=>e==null?void 0:e.rowContents,()=>{var d,y;if(((d=e==null?void 0:e.rowContents)==null?void 0:d.length)===0)return;const f={};(y=ft.cloneDeep(e==null?void 0:e.rowContents))==null||y.forEach(_=>{f[_.name]=_!=null&&_.value?Mo(_==null?void 0:_.value)?Wt(_==null?void 0:_.value):_==null?void 0:_.value:""}),i.value=f,s.value=f},{deep:!0,immediate:!0});const c=f=>{o("onButtonClick",{content:s.value,buttonName:f})};return n.watch(()=>s.value,()=>{o("change",s.value)},{deep:!0,immediate:!0}),(f,d)=>{var h;const y=n.resolveComponent("el-form-item"),_=n.resolveComponent("el-form");return n.openBlock(),n.createElementBlock("div",{class:"form-content",style:n.normalizeStyle({flexDirection:r.isButtonRow?"row":"column"})},[n.createElementVNode("div",Vo,[e.isEnableWrap?(n.openBlock(),n.createBlock(_,{ref_key:"formWrapRef",ref:a,model:i.value,class:"form-data",key:e.isRowFlex},{default:n.withCtx(()=>{var S;return[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.rowContents,(p,M)=>(n.openBlock(),n.createBlock(y,{key:M,class:"form-item",style:n.normalizeStyle({flexDirection:r.isRowFlex?"row":"column",alignItems:r.isRowFlex?"center":"start",height:r.isRowFlex?"100%":"auto"})},{label:n.withCtx(()=>[p!=null&&p.label?(n.openBlock(),n.createElementBlock("div",{key:0,class:"from-item-label",style:n.normalizeStyle({width:r.isRowFlex?"72px":"260px",minWidth:r.isRowFlex?"72px":"260px"})},n.toDisplayString(p==null?void 0:p.label),5)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u((p==null?void 0:p.type)??"Input")),{modelValue:s.value[p.name],"onUpdate:modelValue":F=>s.value[p.name]=F,content:(p==null?void 0:p.contents)??[],isEdit:e==null?void 0:e.isEdit},null,8,["modelValue","onUpdate:modelValue","content","isEdit"]))]),_:2},1032,["style"]))),128)),((S=e.buttonValue)==null?void 0:S.length)>0&&r.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button",style:n.normalizeStyle({paddingTop:r.isRowFlex?"0":"26px",justifyContent:r.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.buttonValue,(p,M)=>(n.openBlock(),n.createElementBlock("div",{key:M,class:"form-button-content"},[p?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(p==null?void 0:p.background)??"var(--ssComponent-primary-color)"}),onClick:F=>c(p==null?void 0:p.label)},n.toDisplayString(p==null?void 0:p.label),13,Io)):n.createCommentVNode("",!0)]))),128))],4)):n.createCommentVNode("",!0)]}),_:1},8,["model"])):(n.openBlock(),n.createBlock(_,{key:1,ref_key:"formRef",ref:l,model:s.value,class:"form-noRegular-data"},{default:n.withCtx(()=>{var S;return[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.rowContents,(p,M)=>(n.openBlock(),n.createBlock(y,{key:M,class:n.normalizeClass(["form-item",{"form-row-content":!r.isRowFlex}]),style:n.normalizeStyle({flexDirection:r.isRowFlex?"row":"column",alignItems:r.isRowFlex?"center":"start",height:r.isRowFlex?"100%":"auto",width:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`,minWidth:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`})},{label:n.withCtx(()=>[p!=null&&p.label?(n.openBlock(),n.createElementBlock("div",{key:0,class:"from-item-label",style:n.normalizeStyle({width:r.isRowFlex?"72px":"auto",minWidth:r.isRowFlex?"72px":`calc((100% / ${(p==null?void 0:p.width)??1}) - 8px)`})},n.toDisplayString(p==null?void 0:p.label),5)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u((p==null?void 0:p.type)??"Input")),{modelValue:s.value[p.name],"onUpdate:modelValue":F=>s.value[p.name]=F,isEdit:e==null?void 0:e.isEdit,content:(p==null?void 0:p.contents)??[]},null,8,["modelValue","onUpdate:modelValue","isEdit","content"]))]),_:2},1032,["class","style"]))),128)),((S=e.buttonValue)==null?void 0:S.length)>0&&r.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button",style:n.normalizeStyle({paddingTop:r.isRowFlex?"0":"26px",justifyContent:r.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.buttonValue,(p,M)=>(n.openBlock(),n.createElementBlock("div",{key:M,class:"form-button-content"},[p?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(p==null?void 0:p.background)??"var(--ssComponent-primary-color)"}),onClick:F=>c(p==null?void 0:p.label)},n.toDisplayString(p==null?void 0:p.label),13,Ao)):n.createCommentVNode("",!0)]))),128))],4)):n.createCommentVNode("",!0)]}),_:1},8,["model"]))]),((h=e.buttonValue)==null?void 0:h.length)>0&&!r.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button",style:n.normalizeStyle({justifyContent:r.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.buttonValue,(S,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:"form-button-content",onClick:M=>c(S)},[S?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(S==null?void 0:S.background)??"var(--ssComponent-primary-color)"})},n.toDisplayString(S==null?void 0:S.label),5)):n.createCommentVNode("",!0)],8,Po))),128))],4)):n.createCommentVNode("",!0)],4)}}},Mt=Te._export_sfc(Ro,[["__scopeId","data-v-39978581"]]),Fo={class:"extra-button-content"},zo={key:0,class:"extra-header"},Lo=["onClick"],Yo={class:"extra-button-filter"},Ho={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(r,{emit:t}){const e=t,o=r,a=n.ref(!1),l=n.ref([]),i=n.ref([{label:"取消"},{label:"确认"}]),s=f=>{e("buttonClick",f)},u=f=>{var d;l.value=(d=f==null?void 0:f.filter(y=>(y==null?void 0:y.label)!==""&&(y==null?void 0:y.label)!=="操作"))==null?void 0:d.map(y=>({label:(y==null?void 0:y.label)??"",value:"",name:(y==null?void 0:y.prop)??""}))},c=f=>{a.value=!1};return n.onMounted(()=>{u(o.columns)}),n.watch(()=>o.columns,()=>{u(o.columns)},{deep:!0,immediate:!0}),(f,d)=>{var _;const y=n.resolveComponent("el-tooltip");return n.openBlock(),n.createElementBlock("div",Fo,[o!=null&&o.buttons&&((_=o==null?void 0:o.buttons)==null?void 0:_.length)>0?(n.openBlock(),n.createElementBlock("div",zo,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o==null?void 0:o.buttons,(h,S)=>(n.openBlock(),n.createElementBlock("div",{class:"extra-contents",key:S},[n.createElementVNode("div",{class:"extra-content",style:n.normalizeStyle({background:(h==null?void 0:h.background)??"var(--ssComponent-primary-color)",color:"white"}),onClick:p=>s(h==null?void 0:h.label)},n.toDisplayString(h==null?void 0:h.label),13,Lo)]))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",Yo,[n.createVNode(io,{title:"筛选数据",width:500,isVisible:a.value},{reference:n.withCtx(()=>[n.createVNode(y,{content:"筛选",placement:"top-start"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"button-style",onClick:d[0]||(d[0]=h=>a.value=!a.value)},[n.createVNode(n.unref(B.filter_default))])]),_:1})]),content:n.withCtx(()=>[(n.openBlock(),n.createBlock(Mt,{rowContents:l.value,buttonValue:i.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:i.value,isStartJustify:!1,onOnButtonClick:c},null,8,["rowContents","buttonValue"]))]),_:1},8,["isVisible"])])])}}},Wo=Te._export_sfc(Ho,[["__scopeId","data-v-1d46278f"]]),jo={class:"table-content-show"},Uo=["onClick"],Xo=["onClick"],Go={key:2,style:{"font-size":"14px","font-weight":"400"}},qo={__name:"index",props:{columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick"],setup(r,{emit:t}){const e=r,o=n.ref([]),a=n.ref([]),l=n.ref(0),i=n.ref(null),s=n.ref(null),u=t;n.onMounted(()=>{o.value=e==null?void 0:e.columns,a.value=e==null?void 0:e.tableData,e.isMoveColumn&&h(),S()});const c=D=>{u("buttonClick",D)};n.watch(()=>e==null?void 0:e.tableData,()=>{a.value=e==null?void 0:e.tableData},{deep:!0});const f=D=>Ot(D),d=(D,z)=>{u("dbClickRow",D)},y=D=>{u("fixRow",D)},_=D=>{u("deleteRow",D)},h=()=>{var z;const D=(z=i.value)==null?void 0:z.$el.querySelector(".el-table__header-wrapper tr");!D||!e.isMoveColumn||x.create(D,{animation:180,delay:0,handle:".is-drag .cell",onMove:L=>!L.related.classList.contains("is-not-drag"),onEnd:L=>{l.value++;const I=L.oldIndex,w=L.newIndex,X=o.value.splice(I,1)[0];o.value.splice(w,0,X),e.isMoveColumn&&n.nextTick(()=>{h(),S()})}})};n.watch(()=>e.isMoveColumn,()=>{e.isMoveColumn&&n.nextTick(()=>{h(),S()})});const S=()=>{var z;const D=(z=i.value)==null?void 0:z.$el.querySelector(".el-table__body-wrapper tbody");D&&new x(D,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:L,oldIndex:I})=>{const w=[...a.value],[X]=w.splice(I,1);w.splice(L,0,X),a.value=w,n.nextTick(()=>{S()})}})},p=D=>{D.preventDefault();try{const L=(D.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!L)return;const I=M(L);if(!I.length)return;const{rowIndex:w,columnIndex:X}=s.value||{rowIndex:0,columnIndex:0},b=[];if(I==null||I.forEach(A=>{b.push(A.length+X)}),(b==null?void 0:b.filter(A=>{var T;return A>Object.keys((T=a.value)==null?void 0:T[0]).length}).length)>0){Bt({type:"warning",message:"所剩列数不够"});return}for(let A=0;A<I.length;A++){const T=I[A],te=a.value[w+A],Z=ft.cloneDeep(o.value).map(C=>C.prop);for(let C=0;C<T.length&&X+C<Z.length;C++){const v=Z[X+C];te[v]=T[C]||""}}}catch(z){console.error("粘贴失败:",z)}},M=D=>D.trim().split(/\r\n|\n|\r/).map(I=>I.trim()?I.split(" ").map(w=>w.replace(/^"(.*)"$/,"$1")):[""]),F=D=>{D&&(s.value={rowIndex:D==null?void 0:D.$index,columnIndex:D==null?void 0:D.cellIndex,columnProp:D.column.property})};return(D,z)=>{const L=n.resolveComponent("el-table-column"),I=n.resolveComponent("el-table");return n.openBlock(),n.createElementBlock("div",jo,[n.createVNode(Wo,{buttons:e==null?void 0:e.extraButton,onButtonClick:c,columns:o.value},null,8,["buttons","columns"]),(n.openBlock(),n.createBlock(I,{border:!0,class:"table-wrap",data:a.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:i,"empty-text":"暂无数据",onSelectionChange:D.handleTableSelectChange,onRowDblclick:d,key:l.value,onPaste:p},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,(w,X)=>(n.openBlock(),n.createBlock(L,{label:(w==null?void 0:w.label)??"",prop:(w==null?void 0:w.prop)??"",width:w!=null&&w.width?parseInt(w.width):void 0,"min-width":w!=null&&w.width?parseInt(w.width):void 0,fixed:w==null?void 0:w.fixed,key:X,align:(w==null?void 0:w.align)??"center",sortable:(w==null?void 0:w.sortable)??!0,"show-overflow-tooltip":(e==null?void 0:e.showOverflowTooltip)??!0,"class-name":((w==null?void 0:w.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{default:n.withCtx(b=>{var A,T,te,Z,C;return[((w==null?void 0:w.type)??"text")==="text"&&(((A=b==null?void 0:b.row)==null?void 0:A.tableEditType)??"text")==="text"?(n.openBlock(),n.createElementBlock("span",{key:0,style:n.normalizeStyle([{"font-size":"14px","font-weight":"400"},{cursor:(T=b==null?void 0:b.row)!=null&&T.children?"pointer":"default"}])},n.toDisplayString((te=b==null?void 0:b.row)==null?void 0:te[w==null?void 0:w.prop]),5)):n.createCommentVNode("",!0),((w==null?void 0:w.type)??"text")==="operate"?(n.openBlock(),n.createElementBlock("span",{key:1,class:"table-operate",style:n.normalizeStyle({justifyContent:r.isShowEdit&&r.isShowDelete?"space-between":"center"})},[n.renderSlot(D.$slots,"actions",{item:b==null?void 0:b.row},void 0,!0),r.isShowEdit?(n.openBlock(),n.createElementBlock("span",{key:0,onClick:v=>y(b==null?void 0:b.row),class:"blue-table-operate table-operate-content"},"编辑",8,Uo)):n.createCommentVNode("",!0),r.isShowDelete?(n.openBlock(),n.createElementBlock("span",{key:1,onClick:v=>_(b==null?void 0:b.row),class:"red-table-operate table-operate-content"},"删除",8,Xo)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),((w==null?void 0:w.type)??"text")==="edit"&&(((Z=b==null?void 0:b.row)==null?void 0:Z.tableEditType)??"text")!=="edit"||((w==null?void 0:w.type)??"text")==="text"&&(((C=b==null?void 0:b.row)==null?void 0:C.tableEditType)??"text")==="edit"?(n.openBlock(),n.createElementBlock("span",Go,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f((w==null?void 0:w.columnType)??"Input")),{modelValue:b.row[w.prop],"onUpdate:modelValue":v=>b.row[w.prop]=v,style:{height:"100%"},onFocus:v=>F(b),content:(w==null?void 0:w.contents)??[]},null,40,["modelValue","onUpdate:modelValue","onFocus","content"]))])):n.createCommentVNode("",!0)]}),_:2},1032,["label","prop","width","min-width","fixed","align","sortable","show-overflow-tooltip","class-name"]))),128))]),_:3},8,["data","onSelectionChange"]))])}}},cn=Te._export_sfc(qo,[["__scopeId","data-v-67bc73bd"]]);exports.ElMessage=Bt;exports.formGetOptions=Oo;exports.index=vo;exports.ssDialog=un;exports.ssForm=Mt;exports.ssTable=cn;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
|
-
import { _ as Lb
|
|
2
|
+
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { c as Ki } from "./cloneDeep-MKlVykeI.js";
|
|
3
4
|
/*! *****************************************************************************
|
|
4
5
|
Copyright (c) Microsoft Corporation.
|
|
5
6
|
|
|
@@ -44004,7 +44005,7 @@ const d7 = {
|
|
|
44004
44005
|
pL(g7, { optionContents: t.value }, null, 8, ["optionContents"])
|
|
44005
44006
|
]));
|
|
44006
44007
|
}
|
|
44007
|
-
},
|
|
44008
|
+
}, b7 = /* @__PURE__ */ Lb(_7, [["__scopeId", "data-v-0440fac3"]]);
|
|
44008
44009
|
export {
|
|
44009
|
-
|
|
44010
|
+
b7 as default
|
|
44010
44011
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DzfJEE_l.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function l(n,i,a,p,_,M){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu,onChangeMenuStyle:n.changeMenuStyle,class:"menuList-wrap"},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["menuList","onClickMenu","onOpenMenu","onCloseMenu","onChangeMenuStyle"])}const r=c._export_sfc(u._sfc_main,[["render",l],["__scopeId","data-v-dc84a8f7"]]);exports.default=r;
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { ref as D, onMounted as ee, createElementBlock as m, openBlock as i, Fragment as z, renderList as H, createElementVNode as N, createCommentVNode as $, toDisplayString as U, watch as O, createVNode as R, unref as F, createBlock as Y, resolveDynamicComponent as te } from "vue";
|
|
2
|
+
import { m as ae, a as ne, b as oe } from "./index-ClguzCrn.js";
|
|
3
|
+
import { p as J, u as se, b as le, i as re, e as ce, g as ue, a as ie } from "./array-Dsurpc08.js";
|
|
4
|
+
import { u as Q } from "./modelComp-B3sxj_Kp.js";
|
|
5
|
+
import { u as X, s as P } from "./menu-BIINB-0Y.js";
|
|
6
|
+
import de from "./index-54P6MUQ5.js";
|
|
7
|
+
import { e as me } from "./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BWOIM9wH.js";
|
|
8
|
+
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import { c as B } from "./cloneDeep-MKlVykeI.js";
|
|
10
|
+
const fe = { class: "bread-content" }, he = ["onClick"], ve = { key: 0 }, ge = {
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
breadArray: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["click"],
|
|
19
|
+
setup(p, { emit: k }) {
|
|
20
|
+
const t = p, d = D([]), u = k;
|
|
21
|
+
ee(() => {
|
|
22
|
+
d.value = t == null ? void 0 : t.breadArray;
|
|
23
|
+
});
|
|
24
|
+
const f = (y) => {
|
|
25
|
+
u("click", y);
|
|
26
|
+
};
|
|
27
|
+
return (y, v) => (i(), m("div", fe, [
|
|
28
|
+
(i(!0), m(z, null, H(d.value, (h, g) => (i(), m("div", {
|
|
29
|
+
key: g,
|
|
30
|
+
class: "bread-item"
|
|
31
|
+
}, [
|
|
32
|
+
N("div", {
|
|
33
|
+
class: "bread-title",
|
|
34
|
+
onClick: (A) => f(h)
|
|
35
|
+
}, U(h.value), 9, he),
|
|
36
|
+
g !== d.value.length - 1 ? (i(), m("div", ve, U("/"))) : $("", !0)
|
|
37
|
+
]))), 128))
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
}, ye = /* @__PURE__ */ q(ge, [["__scopeId", "data-v-d55d3ede"]]);
|
|
41
|
+
function _e(p) {
|
|
42
|
+
const k = [], t = {
|
|
43
|
+
"(": ")",
|
|
44
|
+
"{": "}",
|
|
45
|
+
"[": "]"
|
|
46
|
+
};
|
|
47
|
+
for (let d = 0; d < p.length; d++) {
|
|
48
|
+
const u = p[d];
|
|
49
|
+
if (t[u])
|
|
50
|
+
k.push(u);
|
|
51
|
+
else if (Object.values(t).includes(u)) {
|
|
52
|
+
const f = k.pop();
|
|
53
|
+
if (console.log("stack", k, f, t[f]), t[f] !== u)
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return k.length === 0;
|
|
58
|
+
}
|
|
59
|
+
function Ce(p) {
|
|
60
|
+
var d, u, f, y;
|
|
61
|
+
const k = (u = (d = p[0]) == null ? void 0 : d.compData) == null ? void 0 : u.filter((v) => v.key !== "formContent"), t = (y = (f = p[0]) == null ? void 0 : f.compData) == null ? void 0 : y.filter((v) => v.key === "formContent");
|
|
62
|
+
console.log("handleFormModel:", k, t, p);
|
|
63
|
+
}
|
|
64
|
+
const pe = { class: "system-wrap" }, ke = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "show-content"
|
|
67
|
+
}, De = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "item-menu-content"
|
|
70
|
+
}, Se = {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: "item-view-group"
|
|
73
|
+
}, Ie = {
|
|
74
|
+
__name: "index",
|
|
75
|
+
props: {
|
|
76
|
+
content: String,
|
|
77
|
+
jsonContents: Array
|
|
78
|
+
},
|
|
79
|
+
emits: ["change", "contentChange"],
|
|
80
|
+
setup(p, { emit: k }) {
|
|
81
|
+
const t = p, d = k, u = Q(J);
|
|
82
|
+
se(J);
|
|
83
|
+
const f = D(!0), y = X(), v = D(!0), { itemData: h } = P(u), g = le(J), { activeMenuPath: A, activeMenuOpenPaths: Z, menuTriggerType: G, menus: V } = P(y), { selectIndex: w, selectTitle: M } = P(g), b = D([]), _ = D([]), K = (e) => {
|
|
84
|
+
var n, o, a;
|
|
85
|
+
const s = (n = h.value) == null ? void 0 : n.find((l) => l.name === A.value);
|
|
86
|
+
_.value = (a = (o = s == null ? void 0 : s.compData) == null ? void 0 : o[0]) == null ? void 0 : a.contents, v.value = !0, v.value && (v.value = !1), d("change", {
|
|
87
|
+
wholeValue: b.value,
|
|
88
|
+
editValue: e
|
|
89
|
+
});
|
|
90
|
+
}, L = (e) => {
|
|
91
|
+
var S, C, T;
|
|
92
|
+
const s = B(b.value), n = s == null ? void 0 : s.map((r, I) => (I === (e == null ? void 0 : e.index) && (r.compData = e == null ? void 0 : e.contents), r));
|
|
93
|
+
let o = "";
|
|
94
|
+
(C = (S = B(n)) == null ? void 0 : S.filter((r) => (r == null ? void 0 : r.comp) === "Form")) == null || C.forEach((r) => {
|
|
95
|
+
var I;
|
|
96
|
+
(I = r == null ? void 0 : r.compData) == null || I.forEach((x) => {
|
|
97
|
+
var j;
|
|
98
|
+
(x == null ? void 0 : x.key) === "formContent" && ((j = x == null ? void 0 : x.contents) == null || j.forEach((E) => {
|
|
99
|
+
E.value !== "" && (o = o === "" ? E == null ? void 0 : E.value : o + "-" + (E == null ? void 0 : E.value));
|
|
100
|
+
}));
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
let a = M == null ? void 0 : M.value;
|
|
104
|
+
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: o } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: o })), g.setSelectTitle(a), f.value = !1, b.value = n;
|
|
105
|
+
const l = (T = h.value) == null ? void 0 : T.map((r, I) => {
|
|
106
|
+
var x;
|
|
107
|
+
return r.name === A.value && (r.compData = (x = r.compData) == null ? void 0 : x.map((j) => ((j == null ? void 0 : j.key) === "groupContents" && (j.contents = b.value), j))), r;
|
|
108
|
+
});
|
|
109
|
+
u.setItemData(l), v.value && (v.value = !1), d("contentChange", {
|
|
110
|
+
wholeContent: h.value
|
|
111
|
+
});
|
|
112
|
+
}, W = (e) => {
|
|
113
|
+
var s, n;
|
|
114
|
+
if ((e == null ? void 0 : e.key) === "main")
|
|
115
|
+
g.setSelectIndex(""), g.setSelectMenu(""), g.setSelectTitle((s = M.value) == null ? void 0 : s[0]);
|
|
116
|
+
else {
|
|
117
|
+
const o = [];
|
|
118
|
+
let a = -1;
|
|
119
|
+
(n = M.value) == null || n.forEach((l, S) => {
|
|
120
|
+
(l == null ? void 0 : l.key) === (e == null ? void 0 : e.key) && (a = S), (a === -1 || a >= S) && o.push(l);
|
|
121
|
+
}), g.setSelectTitle(o), g.setSelectMenu(e == null ? void 0 : e.key);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
O(
|
|
125
|
+
() => h.value,
|
|
126
|
+
() => {
|
|
127
|
+
var s, n, o, a, l, S, C, T;
|
|
128
|
+
if (!h.value || ((s = h.value) == null ? void 0 : s.length) === 0 || !f.value) return;
|
|
129
|
+
let e = null;
|
|
130
|
+
if (!A.value)
|
|
131
|
+
e = (o = (n = B(h.value)) == null ? void 0 : n.filter((r) => (r == null ? void 0 : r.comp) === "Group")) == null ? void 0 : o[0], y.setActiveMenuPath(e == null ? void 0 : e.name);
|
|
132
|
+
else {
|
|
133
|
+
const r = (a = B(h.value)) == null ? void 0 : a.filter((I) => (I == null ? void 0 : I.comp) === "Group");
|
|
134
|
+
e = r == null ? void 0 : r.find((I) => I.name === A.value);
|
|
135
|
+
}
|
|
136
|
+
_.value = (S = (l = e == null ? void 0 : e.compData) == null ? void 0 : l[0]) == null ? void 0 : S.contents, b.value = (T = (C = e == null ? void 0 : e.compData) == null ? void 0 : C[0]) == null ? void 0 : T.contents, console.log("itemData监听", e, A.value, h.value);
|
|
137
|
+
},
|
|
138
|
+
{ deep: !0, immediate: !0 }
|
|
139
|
+
), O(() => A.value, (e) => {
|
|
140
|
+
var s, n, o, a, l, S;
|
|
141
|
+
if (e) {
|
|
142
|
+
const C = (s = B(h.value)) == null ? void 0 : s.find((T) => T.name === e);
|
|
143
|
+
if (e && C) {
|
|
144
|
+
_.value = (o = (n = C == null ? void 0 : C.compData) == null ? void 0 : n[0]) == null ? void 0 : o.contents, b.value = (l = (a = C == null ? void 0 : C.compData) == null ? void 0 : a[0]) == null ? void 0 : l.contents, console.log("点击-新-data:", e, _.value);
|
|
145
|
+
const T = (S = _.value) == null ? void 0 : S.filter((r) => r.comp === "Form");
|
|
146
|
+
Ce(T);
|
|
147
|
+
} else
|
|
148
|
+
_.value = [], b.value = [];
|
|
149
|
+
g.setSelectTitle([]), g.setSelectIndex(""), g.setSelectMenu("");
|
|
150
|
+
}
|
|
151
|
+
}, {
|
|
152
|
+
immediate: !0
|
|
153
|
+
}), O(
|
|
154
|
+
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
155
|
+
() => {
|
|
156
|
+
var o;
|
|
157
|
+
if (((o = t == null ? void 0 : t.jsonContents) == null ? void 0 : o.length) > 0) {
|
|
158
|
+
u.setOriginalData(t == null ? void 0 : t.jsonContents), u.setItemData(t == null ? void 0 : t.jsonContents);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (!(t != null && t.content) || (t == null ? void 0 : t.content) === "") return;
|
|
162
|
+
f.value = !0;
|
|
163
|
+
let e;
|
|
164
|
+
re(t == null ? void 0 : t.content) ? e = ce(t == null ? void 0 : t.content) : e = me(t == null ? void 0 : t.content);
|
|
165
|
+
const s = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
|
|
166
|
+
var l;
|
|
167
|
+
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "MENU";
|
|
168
|
+
}));
|
|
169
|
+
y.setRawMenu(s ?? {});
|
|
170
|
+
const n = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
|
|
171
|
+
var l;
|
|
172
|
+
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "SYSTEM";
|
|
173
|
+
}));
|
|
174
|
+
y.setSystemKey((n == null ? void 0 : n.name) ?? ""), u.setOriginalData(e), u.setItemData(e);
|
|
175
|
+
},
|
|
176
|
+
{ deep: !0, immediate: !0 }
|
|
177
|
+
);
|
|
178
|
+
const c = (e) => ue(e);
|
|
179
|
+
return (e, s) => {
|
|
180
|
+
var n, o;
|
|
181
|
+
return i(), m("div", pe, [
|
|
182
|
+
R(de, { class: "sys-aside" }),
|
|
183
|
+
((n = _.value) == null ? void 0 : n.length) > 0 ? (i(), m("div", ke, [
|
|
184
|
+
((o = F(M)) == null ? void 0 : o.length) > 1 ? (i(), m("div", De, [
|
|
185
|
+
(i(), Y(ye, {
|
|
186
|
+
key: F(M),
|
|
187
|
+
breadArray: F(M),
|
|
188
|
+
onClick: W
|
|
189
|
+
}, null, 8, ["breadArray"]))
|
|
190
|
+
])) : $("", !0),
|
|
191
|
+
(i(!0), m(z, null, H(_.value, (a, l) => (i(), m("div", {
|
|
192
|
+
class: "item-content",
|
|
193
|
+
key: l
|
|
194
|
+
}, [
|
|
195
|
+
F(w) === "" || l.toString() === F(w) ? (i(), m("div", Se, U(a.name), 1)) : $("", !0),
|
|
196
|
+
F(w) === "" || l.toString() === F(w) ? (i(), Y(te(c(a.comp)), {
|
|
197
|
+
itemData: a == null ? void 0 : a.compData,
|
|
198
|
+
childItemData: a == null ? void 0 : a.itemChildData,
|
|
199
|
+
key: l,
|
|
200
|
+
onChange: K,
|
|
201
|
+
index: l,
|
|
202
|
+
onContentChange: L
|
|
203
|
+
}, null, 40, ["itemData", "childItemData", "index"])) : $("", !0)
|
|
204
|
+
]))), 128))
|
|
205
|
+
])) : $("", !0)
|
|
206
|
+
]);
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}, Me = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-38117cb6"]]), Ae = { class: "add-model-content" }, be = {
|
|
210
|
+
key: 0,
|
|
211
|
+
class: "model-import-data"
|
|
212
|
+
}, Te = { class: "import-button" }, xe = { key: 0 }, $e = {
|
|
213
|
+
key: 1,
|
|
214
|
+
class: "model-operate"
|
|
215
|
+
}, je = { class: "model-select" }, we = { class: "model-fill" }, Ee = {
|
|
216
|
+
key: 2,
|
|
217
|
+
class: "model-view"
|
|
218
|
+
}, Fe = {
|
|
219
|
+
__name: "index",
|
|
220
|
+
props: {
|
|
221
|
+
mode: {
|
|
222
|
+
type: String,
|
|
223
|
+
default: "view"
|
|
224
|
+
},
|
|
225
|
+
content: {
|
|
226
|
+
type: String,
|
|
227
|
+
default: ""
|
|
228
|
+
},
|
|
229
|
+
jsonContents: {
|
|
230
|
+
type: Array,
|
|
231
|
+
default: () => []
|
|
232
|
+
},
|
|
233
|
+
showButton: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
default: !0
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
emits: ["change", "contentChange"],
|
|
239
|
+
setup(p, { emit: k }) {
|
|
240
|
+
const t = p, d = k, u = D(""), f = D([]), y = D(0), v = Q(J), h = X(J), { itemData: g, originalData: A } = P(v), { activeMenuPath: Z } = P(h), G = D(null), V = D(0), w = D(""), M = (c) => {
|
|
241
|
+
d("contentChange", c);
|
|
242
|
+
}, b = (c) => {
|
|
243
|
+
var s;
|
|
244
|
+
const e = (s = B(c == null ? void 0 : c.wholeValue)) == null ? void 0 : s.map((n) => {
|
|
245
|
+
var o;
|
|
246
|
+
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (o = n.compData) == null ? void 0 : o.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = ie(a == null ? void 0 : a.contents)), a))), n;
|
|
247
|
+
});
|
|
248
|
+
d("change", {
|
|
249
|
+
originalContents: A.value,
|
|
250
|
+
currentContents: c == null ? void 0 : c.wholeValue,
|
|
251
|
+
editContent: c == null ? void 0 : c.editValue,
|
|
252
|
+
arrayToContents: e
|
|
253
|
+
});
|
|
254
|
+
}, _ = D([]), K = () => {
|
|
255
|
+
G.value.click();
|
|
256
|
+
}, L = (c) => {
|
|
257
|
+
const e = c.target.files[0];
|
|
258
|
+
if (!e) return;
|
|
259
|
+
const s = new FileReader();
|
|
260
|
+
s.onload = (n) => {
|
|
261
|
+
try {
|
|
262
|
+
u.value = n.target.result;
|
|
263
|
+
const o = _e(n.target.result);
|
|
264
|
+
console.log("handleFileChange-isValid", o), _.value = W(n.target.result), V.value++;
|
|
265
|
+
} catch (o) {
|
|
266
|
+
console.error("解析失败:", o);
|
|
267
|
+
}
|
|
268
|
+
}, s.onerror = (n) => {
|
|
269
|
+
console.error("文件读取错误:", n);
|
|
270
|
+
}, s.readAsText(e);
|
|
271
|
+
};
|
|
272
|
+
O(
|
|
273
|
+
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
274
|
+
() => {
|
|
275
|
+
u.value = t == null ? void 0 : t.content, f.value = t == null ? void 0 : t.jsonContents;
|
|
276
|
+
},
|
|
277
|
+
{ deep: !0, immediate: !0 }
|
|
278
|
+
), O(
|
|
279
|
+
() => V.value,
|
|
280
|
+
() => {
|
|
281
|
+
var c;
|
|
282
|
+
((c = _.value) == null ? void 0 : c.length) !== 0 && (v.setOriginalData(_.value), v.setItemData(_.value));
|
|
283
|
+
},
|
|
284
|
+
{ deep: !0, immediate: !0 }
|
|
285
|
+
);
|
|
286
|
+
const W = (c) => {
|
|
287
|
+
let e = c.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
|
|
288
|
+
e = e.replace(/(\w+)\s*:/g, "$1:"), e = e.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), e = e.replace(/,\s*([}\]])/g, "$1"), e = e.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
289
|
+
try {
|
|
290
|
+
return JSON.parse(e);
|
|
291
|
+
} catch (s) {
|
|
292
|
+
try {
|
|
293
|
+
const o = new Function(`return ${e}`)();
|
|
294
|
+
if (Array.isArray(o) || typeof o == "object")
|
|
295
|
+
return o;
|
|
296
|
+
throw new Error(`解析结果不是有效的数组或对象: ${s}`);
|
|
297
|
+
} catch (n) {
|
|
298
|
+
throw new Error(`无法解析JSON: ${n.message}`);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
return (c, e) => {
|
|
303
|
+
var s;
|
|
304
|
+
return i(), m("div", Ae, [
|
|
305
|
+
((s = t == null ? void 0 : t.jsonContents) == null ? void 0 : s.length) === 0 && (t != null && t.showButton) ? (i(), m("div", be, [
|
|
306
|
+
N("div", Te, [
|
|
307
|
+
N("input", {
|
|
308
|
+
type: "file",
|
|
309
|
+
ref_key: "fileInput",
|
|
310
|
+
ref: G,
|
|
311
|
+
accept: ".txt",
|
|
312
|
+
onChange: L,
|
|
313
|
+
style: { display: "none" }
|
|
314
|
+
}, null, 544),
|
|
315
|
+
N("button", {
|
|
316
|
+
onClick: K,
|
|
317
|
+
class: "import-button-content"
|
|
318
|
+
}, "导入文件"),
|
|
319
|
+
w.value ? (i(), m("span", xe, U(w.value), 1)) : $("", !0)
|
|
320
|
+
])
|
|
321
|
+
])) : $("", !0),
|
|
322
|
+
(t == null ? void 0 : t.mode) === "edit" ? (i(), m("div", $e, [
|
|
323
|
+
N("div", je, [
|
|
324
|
+
R(ae)
|
|
325
|
+
]),
|
|
326
|
+
(i(), m("div", {
|
|
327
|
+
class: "model-show",
|
|
328
|
+
key: y.value
|
|
329
|
+
}, [
|
|
330
|
+
R(ne)
|
|
331
|
+
])),
|
|
332
|
+
N("div", we, [
|
|
333
|
+
R(oe)
|
|
334
|
+
])
|
|
335
|
+
])) : $("", !0),
|
|
336
|
+
(t == null ? void 0 : t.mode) === "view" ? (i(), m("div", Ee, [
|
|
337
|
+
(i(), Y(Me, {
|
|
338
|
+
content: u.value,
|
|
339
|
+
onChange: b,
|
|
340
|
+
jsonContents: f.value,
|
|
341
|
+
onContentChange: M,
|
|
342
|
+
key: y.value
|
|
343
|
+
}, null, 8, ["content", "jsonContents"]))
|
|
344
|
+
])) : $("", !0)
|
|
345
|
+
]);
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}, Ke = /* @__PURE__ */ q(Fe, [["__scopeId", "data-v-876d48c6"]]);
|
|
349
|
+
export {
|
|
350
|
+
Ke as default
|
|
351
|
+
};
|