ss-component-new 1.2.6 → 1.2.8

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.
Files changed (118) hide show
  1. package/dist/OrbitControls-BoyGapft.js +419 -0
  2. package/dist/OrbitControls-D1lM0xvz.cjs +1 -0
  3. package/dist/STLLoader-BBRISxpD.js +609 -0
  4. package/dist/STLLoader-KxFIlfhN.cjs +6 -0
  5. package/dist/{animationData-GqECkAbz.js → animationData-B7Ho3YRJ.js} +6 -6
  6. package/dist/{animationData-B0K2ghu6.cjs → animationData-DZb0nCA7.cjs} +1 -1
  7. package/dist/{array-D65aMM6H.js → array-A59WrroX.js} +1 -1
  8. package/dist/{array-DMPAgNcb.cjs → array-BtZq8qON.cjs} +1 -1
  9. package/dist/{iconfont-ljBfzBSE.js → iconfont-B9HCA4uh.js} +2 -2
  10. package/dist/{iconfont-t5epssvu.cjs → iconfont-CsuwJCas.cjs} +1 -1
  11. package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
  12. package/dist/{index-BsM9qdbC.cjs → index-9VmYR-Tw.cjs} +1 -1
  13. package/dist/{index-CZaBF851.cjs → index-B1umuIRK.cjs} +1 -1
  14. package/dist/{index-D9oqICYV.cjs → index-B7R-snbI.cjs} +1 -1
  15. package/dist/{index-Bw_JtuzR.js → index-BCbxnJnH.js} +152 -152
  16. package/dist/{index-DWs7-g1h.cjs → index-BDRBkDJA.cjs} +1 -1
  17. package/dist/{index-Bs2K1FVH.js → index-BLgbZvdb.js} +2 -2
  18. package/dist/{index-CRrAiL5l.js → index-BTbyRzT-.js} +4 -4
  19. package/dist/{index-67QO-qDa.cjs → index-B_poZQZb.cjs} +1 -1
  20. package/dist/{index-HvKjB6_P.js → index-BbgLINMj.js} +3 -3
  21. package/dist/{index-D-WcrLQv.js → index-BhZsNq8s.js} +4 -4
  22. package/dist/{index-_66uQhcl.js → index-BmnY6J1z.js} +6 -6
  23. package/dist/{index-DGepdvRW.js → index-BvApH9cT.js} +2 -2
  24. package/dist/{index-CTkF2kl_.js → index-BwjuTBrR.js} +1 -1
  25. package/dist/{index-BpR7F1Fp.cjs → index-C1oE8qIa.cjs} +1 -1
  26. package/dist/{index-C1FOuBuy.js → index-C461j30b.js} +1 -1
  27. package/dist/{index-BNvpuVyw.cjs → index-C5z5UbxK.cjs} +1 -1
  28. package/dist/{index-D6mwkqWY.cjs → index-C7gejN5b.cjs} +1 -1
  29. package/dist/{index-DGi-ANHr.js → index-CCk4wLVh.js} +5 -5
  30. package/dist/{index--rLSLEk3.js → index-CIH_h4z2.js} +2 -2
  31. package/dist/{index-_uyv24Pt.cjs → index-CJK74ski.cjs} +1 -1
  32. package/dist/{index-FK1YYpjN.cjs → index-CSgKl9XW.cjs} +1 -1
  33. package/dist/{index-g4qw0jRy.js → index-CXDE4hkn.js} +6 -6
  34. package/dist/{index-DvpVQvAe.js → index-CX_HTfbe.js} +2 -2
  35. package/dist/{index-DV_ZZQBO.js → index-CYp77kPp.js} +1 -1
  36. package/dist/{index-CA-FC_OL.cjs → index-C_ti3XV8.cjs} +1 -1
  37. package/dist/{index-CePZE-QA.cjs → index-CjE91R_G.cjs} +1 -1
  38. package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
  39. package/dist/{index-9zEdW6xv.js → index-CwnxmCht.js} +2 -2
  40. package/dist/{index-8yRiF_z8.cjs → index-CxOoKysB.cjs} +1 -1
  41. package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
  42. package/dist/{index-DVmoPvzr.cjs → index-D8WF1ILq.cjs} +1 -1
  43. package/dist/{index-CArSUfnV.js → index-DEqQrElM.js} +20 -20
  44. package/dist/{index-DPBmAgEA.cjs → index-DF5Pi3ni.cjs} +1 -1
  45. package/dist/{index-B14iwpkN.cjs → index-DFGb7whK.cjs} +1 -1
  46. package/dist/{index-D8510-YQ.cjs → index-DGlPPiil.cjs} +1 -1
  47. package/dist/{index-BYUPvuvs.cjs → index-DKfCN6-m.cjs} +1 -1
  48. package/dist/{index-BHJ-tVLT.cjs → index-DLBS_tgM.cjs} +1 -1
  49. package/dist/{index-DJGsDpDp.js → index-DORLBXry.js} +3 -3
  50. package/dist/{index-C8UOMPgt.js → index-DR77gDZR.js} +2 -2
  51. package/dist/{index-BNOx3XL5.js → index-DSb6SjE3.js} +1 -1
  52. package/dist/{index-CbA74tCL.js → index-DTCYk2wI.js} +2 -2
  53. package/dist/{index-CBuqdsPh.js → index-DUeesiV8.js} +4 -4
  54. package/dist/{index-BMMYAqF1.js → index-DX6yycjK.js} +1 -1
  55. package/dist/{index-BaRkv5oc.cjs → index-DYSG1zs3.cjs} +1 -1
  56. package/dist/{index-CMCrQ36H.js → index-Da1wDO-s.js} +3 -3
  57. package/dist/{index-B7hLDNQ6.cjs → index-De5HlcQy.cjs} +1 -1
  58. package/dist/{index-DPWc4No_.js → index-DeBhlCUZ.js} +2 -2
  59. package/dist/{index-CbDu4gfZ.js → index-DgymXtI4.js} +2 -2
  60. package/dist/{index-C5CKSB0e.cjs → index-DrYODxS9.cjs} +1 -1
  61. package/dist/{index-LADv0t0E.js → index-Duk-i7rO.js} +12 -12
  62. package/dist/{index-mtuIEfrj.cjs → index-GmZ7sLUW.cjs} +1 -1
  63. package/dist/{index-DZ8a7BZ1.cjs → index-HvKkM5Lq.cjs} +1 -1
  64. package/dist/{index-CedgKpsz.cjs → index-PSFAyPDK.cjs} +1 -1
  65. package/dist/{index-8Dyi4QCI.js → index-RztQL2pV.js} +10 -10
  66. package/dist/{index-BEoEUXZe.js → index-UAR7Rrcy.js} +10 -10
  67. package/dist/{index-DcUUpSE1.cjs → index-Y6CA0bCm.cjs} +1 -1
  68. package/dist/{index-CShBWCYm.js → index-grNn6QlX.js} +1 -1
  69. package/dist/{index-87kRWJv8.cjs → index-jXcCmzjf.cjs} +1 -1
  70. package/dist/{index-CRj9VM12.js → index-kthhSPBL.js} +6 -6
  71. package/dist/{index-BsfJJu0R.js → index-oD3MoCYB.js} +6 -6
  72. package/dist/{index-Cm3z0Vmi.cjs → index-ydHaHhIm.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BhLzDN6s.js} +2 -2
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLUx599w.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-C0nr97YM.cjs} +1 -1
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DUQ6JlgC.js} +6 -6
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CQTa8bTF.cjs} +1 -1
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DQMzwdx6.js} +13 -13
  79. package/dist/{index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs → index.vue_vue_type_style_index_1_lang-BcYTED7W.cjs} +1 -1
  80. package/dist/{index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js → index.vue_vue_type_style_index_1_lang-CFvcnWO4.js} +1 -1
  81. package/dist/{index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs → index.vue_vue_type_style_index_1_lang-CfAaw5Oq.cjs} +45 -46
  82. package/dist/{index.vue_vue_type_style_index_1_lang-hBa3nAgx.js → index.vue_vue_type_style_index_1_lang-DLO5Vd6g.js} +5012 -5100
  83. package/dist/{isString--ZVOCy4V.js → isString-BNK38WbE.js} +1 -1
  84. package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
  85. package/dist/{main-CygliYyN.js → main-B7KvM2Mo.js} +5 -5
  86. package/dist/{main-C6Iw-pcH.cjs → main-BVrZ-TOJ.cjs} +1 -1
  87. package/dist/ss-component.cjs +1 -1
  88. package/dist/ss-component.css +1 -1
  89. package/dist/ss-component.js +11 -11
  90. package/dist/ss-component2.cjs +1 -1
  91. package/dist/ss-component2.js +12 -12
  92. package/dist/three-viewport-gizmo-BlxFLyPm.js +18587 -0
  93. package/dist/three-viewport-gizmo-CwaL5sMV.cjs +4195 -0
  94. package/dist/{threeLatheView-CdUoB0Te.cjs → threeLatheView-BzHB-t_G.cjs} +1 -1
  95. package/dist/{threeLatheView-DzpPpdDr.js → threeLatheView-arWFYuHh.js} +4 -4
  96. package/dist/{threeModel-BUCLJlE5.cjs → threeModel-D9BMlyjW.cjs} +1 -1
  97. package/dist/{threeModel-BfMMeZCc.js → threeModel-cQGFkPhn.js} +5 -5
  98. package/dist/threePreview-Cy7NY-gw.cjs +1 -0
  99. package/dist/threePreview-DKlyIJKv.js +1873 -0
  100. package/dist/threeSceneView-C-8QVXZL.js +1413 -0
  101. package/dist/threeSceneView-LorxQ4CB.cjs +5 -0
  102. package/dist/{threeSceneViewForCPMPIP-Bexwqkry.js → threeSceneViewForCPMPIP-DWzYs6dv.js} +27 -27
  103. package/dist/{threeSceneViewForCPMPIP-DwLWGNUd.cjs → threeSceneViewForCPMPIP-X9rajWCF.cjs} +2 -2
  104. package/dist/{threeViewerHost-CRqcYbJE.cjs → threeViewerHost-C77kS_JK.cjs} +1 -1
  105. package/dist/{threeViewerHost-CTjd2V1D.js → threeViewerHost-QFIxDBay.js} +4 -4
  106. package/dist/{useRayCaster-DN56HpNP.cjs → useRayCaster-DNSFv7lN.cjs} +1 -1
  107. package/dist/{useRayCaster-D0_7oJan.js → useRayCaster-DwVmFKhR.js} +12 -12
  108. package/package.json +1 -1
  109. package/dist/OrbitControls-Co_9huz0.cjs +0 -1
  110. package/dist/OrbitControls-DA4VpOM_.js +0 -458
  111. package/dist/STLLoader-DmGTF0Nv.js +0 -657
  112. package/dist/STLLoader-RU7KqloS.cjs +0 -6
  113. package/dist/three-viewport-gizmo-BHznJ6W3.js +0 -26015
  114. package/dist/three-viewport-gizmo-BV37JzRa.cjs +0 -4197
  115. package/dist/threePreview-BEqzg370.js +0 -1972
  116. package/dist/threePreview-C-JW_pcY.cjs +0 -1
  117. package/dist/threeSceneView-BTsG2QJg.cjs +0 -5
  118. package/dist/threeSceneView-DV5dsTZZ.js +0 -1471
@@ -1,4 +1,4 @@
1
- "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const Gg=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),li=require("./index-BOJUyAaV.cjs");function uW(r,e){return Gg.setToString(Gg.overRest(r,e,Gg.identity),r+"")}function sit(r,e,t){if(!li.isObject(t))return!1;var n=typeof e;return(n=="number"?li.isArrayLike(t)&&li.isIndex(e,t.length):n=="string"&&e in t)?li.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!li.isObjectLike(r)||li.baseGetTag(r)!=uit)return!1;var e=li.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!li.eq(r[e],t)||t===void 0&&!(e in r))&&li.baseAssignValue(r,e,t)}function dW(r){return li.isObjectLike(r)&&li.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return li.copyObject(r,li.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=li.isArray(l),d=!h&&li.isBuffer(l),p=!h&&!d&&li.isTypedArray(l);c=l,h||d||p?li.isArray(s)?c=s:dW(s)?c=li.copyArray(s):d?(f=!1,c=li.cloneBuffer(l,!0)):p?(f=!1,c=li.cloneTypedArray(l,!0)):c=[]:fW(l)||li.isArguments(l)?(c=s,li.isArguments(s)?c=vit(s):(!li.isObject(s)||li.isFunction$1(s))&&(c=li.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new li.Stack),li.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},li.keysIn)}var Zh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,v={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(D){var T=["th","st","nd","rd"],A=D%100;return"["+D+(T[(A-20)%10]||T[A]||T[0])+"]"}},b=function(D,T,A){var I=String(D);return!I||I.length>=T?D:""+Array(T+1-I.length).join(A)+D},w={s:b,z:function(D){var T=-D.utcOffset(),A=Math.abs(T),I=Math.floor(A/60),M=A%60;return(T<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(T,A){if(T.date()<A.date())return-D(A,T);var I=12*(A.year()-T.year())+(A.month()-T.month()),M=T.clone().add(I,f),L=A-M<0,z=T.clone().add(I+(L?-1:1),f);return+(-(I+(A-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",k=function(D){return D instanceof F||!(!D||!D[S])},C=function D(T,A,I){var M;if(!T)return _;if(typeof T=="string"){var L=T.toLowerCase();x[L]&&(M=L),A&&(x[L]=A,M=L);var z=T.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=T.name;x[N]=T,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,T){if(k(D))return D.clone();var A=typeof T=="object"?T:{};return A.date=D,A.args=arguments,new F(A)},O=w;O.l=C,O.i=k,O.w=function(D,T){return B(D,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var F=function(){function D(A){this.$L=C(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[S]=!0}var T=D.prototype;return T.parse=function(A){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(A),this.init()},T.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},T.$utils=function(){return O},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(A,I){var M=B(A);return this.startOf(I)<=M&&M<=this.endOf(I)},T.isAfter=function(A,I){return B(A)<this.startOf(I)},T.isBefore=function(A,I){return this.endOf(I)<B(A)},T.$g=function(A,I,M){return O.u(A)?this[I]:this.set(M,A)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(A,I){var M=this,L=!!O.u(I)||I,z=O.p(A),N=function(pt,rt){var Y=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?Y:Y.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,X=this.$D,tt="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?X-ot:X+(6-ot),G);case u:case p:return U(tt+"Hours",0);case l:return U(tt+"Minutes",1);case s:return U(tt+"Seconds",2);case o:return U(tt+"Milliseconds",3);default:return this.clone()}},T.endOf=function(A){return this.startOf(A,!1)},T.$set=function(A,I){var M,L=O.p(A),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},T.set=function(A,I){return this.clone().$set(A,I)},T.get=function(A){return this[O.p(A)]()},T.add=function(A,I){var M,L=this;A=Number(A);var z=O.p(I),N=function(G){var X=B(L);return O.w(X.date(X.date()+Math.round(G*A)),L)};if(z===f)return this.set(f,this.$M+A);if(z===d)return this.set(d,this.$y+A);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+A*U;return O.w(V,this)},T.subtract=function(A,I){return this.add(-1*A,I)},T.format=function(A){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=A||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,X=M.months,tt=M.meridiem,yt=function(rt,Y,et,ut){return rt&&(rt[Y]||rt(I,L))||et[Y].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=tt||function(rt,Y,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,Y){return Y||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,X,3);case"MMMM":return yt(X,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(A,I,M){var L,z=this,N=O.p(I),U=B(A),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,X=function(){return O.m(z,U)};switch(N){case d:L=X()/12;break;case f:L=X();break;case h:L=X()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return x[this.$L]},T.locale=function(A,I){if(!A)return this.$L;var M=this.clone(),L=C(A,I,!0);return L&&(M.$L=L),M},T.clone=function(){return O.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(T){return this.$g(T,D[0],D[1])}}),B.extend=function(D,T){return D.$i||(D(T,F,B),D.$i=!0),B},B.locale=C,B.isDayjs=k,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=li.useLoginState(li.pinia),{loginUserInfo:BT}=li.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(x=>{});let t="";const n=await Gg.menuToParent(r==null?void 0:r.menuSelect);if(n==null||n.forEach(x=>{var S,k;(x==null?void 0:x.name)===(((k=(S=r==null?void 0:r.groupSelect)==null?void 0:S[0])==null?void 0:k.replaceAll("'",""))??"")&&(t=x==null?void 0:x.id)}),t!==""){const x=(s=(o=(a=n==null?void 0:n.find(C=>(C==null?void 0:C.id)===t))==null?void 0:a.compData)==null?void 0:o.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:s.contents;let S=0;x.every(C=>Array.isArray(C))?S=(l=x==null?void 0:x[0])==null?void 0:l.findIndex(C=>{var B,O,F;return(C==null?void 0:C.label)===((F=(O=(B=r==null?void 0:r.groupSelect)==null?void 0:B[1])==null?void 0:O.replaceAll("[",""))==null?void 0:F.replaceAll("]",""))}):S=x==null?void 0:x.findIndex(C=>{var B,O,F;return(C==null?void 0:C.label)===((F=(O=(B=r==null?void 0:r.groupSelect)==null?void 0:B[1])==null?void 0:O.replaceAll("[",""))==null?void 0:F.replaceAll("]",""))});let k=(h=(f=(c=(u=n==null?void 0:n.find(C=>(C==null?void 0:C.id)===t))==null?void 0:u.compData)==null?void 0:c.find(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:f.contents)==null?void 0:h.map(C=>(C=C==null?void 0:C.filter(B=>!(B!=null&&B.id)),C));if((r==null?void 0:r.filter)!==""){let C={};C[(p=(d=r==null?void 0:r.filter)==null?void 0:d.split("#"))==null?void 0:p[0]]=(m=(g=r==null?void 0:r.filter)==null?void 0:g.split("#"))==null?void 0:m[1];let B=(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[1];B==="@loginUser"&&(B=((b=BT.value)==null?void 0:b.姓名)||((w=BT.value)==null?void 0:w.account)||((_=BT.value)==null?void 0:_.账号));let O=x==null?void 0:x.findIndex(F=>{var E,D;return(F==null?void 0:F.prop)===((D=(E=Object.keys(C))==null?void 0:E[0])==null?void 0:D.replaceAll("'",""))});k=k==null?void 0:k.filter(F=>(F==null?void 0:F[O])===B)}k==null||k.forEach(C=>{e.push({label:C==null?void 0:C[S],value:C==null?void 0:C[S]})})}return e};/**!
1
+ "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const Gg=require("./index.vue_vue_type_style_index_1_lang-BcYTED7W.cjs"),li=require("./index-1z9RrjZc.cjs");function uW(r,e){return Gg.setToString(Gg.overRest(r,e,Gg.identity),r+"")}function sit(r,e,t){if(!li.isObject(t))return!1;var n=typeof e;return(n=="number"?li.isArrayLike(t)&&li.isIndex(e,t.length):n=="string"&&e in t)?li.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!li.isObjectLike(r)||li.baseGetTag(r)!=uit)return!1;var e=li.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!li.eq(r[e],t)||t===void 0&&!(e in r))&&li.baseAssignValue(r,e,t)}function dW(r){return li.isObjectLike(r)&&li.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return li.copyObject(r,li.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=li.isArray(l),d=!h&&li.isBuffer(l),p=!h&&!d&&li.isTypedArray(l);c=l,h||d||p?li.isArray(s)?c=s:dW(s)?c=li.copyArray(s):d?(f=!1,c=li.cloneBuffer(l,!0)):p?(f=!1,c=li.cloneTypedArray(l,!0)):c=[]:fW(l)||li.isArguments(l)?(c=s,li.isArguments(s)?c=vit(s):(!li.isObject(s)||li.isFunction$1(s))&&(c=li.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new li.Stack),li.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},li.keysIn)}var Zh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,v={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(D){var T=["th","st","nd","rd"],A=D%100;return"["+D+(T[(A-20)%10]||T[A]||T[0])+"]"}},b=function(D,T,A){var I=String(D);return!I||I.length>=T?D:""+Array(T+1-I.length).join(A)+D},w={s:b,z:function(D){var T=-D.utcOffset(),A=Math.abs(T),I=Math.floor(A/60),M=A%60;return(T<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(T,A){if(T.date()<A.date())return-D(A,T);var I=12*(A.year()-T.year())+(A.month()-T.month()),M=T.clone().add(I,f),L=A-M<0,z=T.clone().add(I+(L?-1:1),f);return+(-(I+(A-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",k=function(D){return D instanceof F||!(!D||!D[S])},C=function D(T,A,I){var M;if(!T)return _;if(typeof T=="string"){var L=T.toLowerCase();x[L]&&(M=L),A&&(x[L]=A,M=L);var z=T.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=T.name;x[N]=T,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,T){if(k(D))return D.clone();var A=typeof T=="object"?T:{};return A.date=D,A.args=arguments,new F(A)},O=w;O.l=C,O.i=k,O.w=function(D,T){return B(D,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var F=function(){function D(A){this.$L=C(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[S]=!0}var T=D.prototype;return T.parse=function(A){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(A),this.init()},T.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},T.$utils=function(){return O},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(A,I){var M=B(A);return this.startOf(I)<=M&&M<=this.endOf(I)},T.isAfter=function(A,I){return B(A)<this.startOf(I)},T.isBefore=function(A,I){return this.endOf(I)<B(A)},T.$g=function(A,I,M){return O.u(A)?this[I]:this.set(M,A)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(A,I){var M=this,L=!!O.u(I)||I,z=O.p(A),N=function(pt,rt){var Y=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?Y:Y.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,X=this.$D,tt="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?X-ot:X+(6-ot),G);case u:case p:return U(tt+"Hours",0);case l:return U(tt+"Minutes",1);case s:return U(tt+"Seconds",2);case o:return U(tt+"Milliseconds",3);default:return this.clone()}},T.endOf=function(A){return this.startOf(A,!1)},T.$set=function(A,I){var M,L=O.p(A),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},T.set=function(A,I){return this.clone().$set(A,I)},T.get=function(A){return this[O.p(A)]()},T.add=function(A,I){var M,L=this;A=Number(A);var z=O.p(I),N=function(G){var X=B(L);return O.w(X.date(X.date()+Math.round(G*A)),L)};if(z===f)return this.set(f,this.$M+A);if(z===d)return this.set(d,this.$y+A);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+A*U;return O.w(V,this)},T.subtract=function(A,I){return this.add(-1*A,I)},T.format=function(A){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=A||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,X=M.months,tt=M.meridiem,yt=function(rt,Y,et,ut){return rt&&(rt[Y]||rt(I,L))||et[Y].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=tt||function(rt,Y,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,Y){return Y||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,X,3);case"MMMM":return yt(X,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(A,I,M){var L,z=this,N=O.p(I),U=B(A),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,X=function(){return O.m(z,U)};switch(N){case d:L=X()/12;break;case f:L=X();break;case h:L=X()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return x[this.$L]},T.locale=function(A,I){if(!A)return this.$L;var M=this.clone(),L=C(A,I,!0);return L&&(M.$L=L),M},T.clone=function(){return O.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(T){return this.$g(T,D[0],D[1])}}),B.extend=function(D,T){return D.$i||(D(T,F,B),D.$i=!0),B},B.locale=C,B.isDayjs=k,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=li.useLoginState(li.pinia),{loginUserInfo:BT}=li.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(x=>{});let t="";const n=await Gg.menuToParent(r==null?void 0:r.menuSelect);if(n==null||n.forEach(x=>{var S,k;(x==null?void 0:x.name)===(((k=(S=r==null?void 0:r.groupSelect)==null?void 0:S[0])==null?void 0:k.replaceAll("'",""))??"")&&(t=x==null?void 0:x.id)}),t!==""){const x=(s=(o=(a=n==null?void 0:n.find(C=>(C==null?void 0:C.id)===t))==null?void 0:a.compData)==null?void 0:o.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:s.contents;let S=0;x.every(C=>Array.isArray(C))?S=(l=x==null?void 0:x[0])==null?void 0:l.findIndex(C=>{var B,O,F;return(C==null?void 0:C.label)===((F=(O=(B=r==null?void 0:r.groupSelect)==null?void 0:B[1])==null?void 0:O.replaceAll("[",""))==null?void 0:F.replaceAll("]",""))}):S=x==null?void 0:x.findIndex(C=>{var B,O,F;return(C==null?void 0:C.label)===((F=(O=(B=r==null?void 0:r.groupSelect)==null?void 0:B[1])==null?void 0:O.replaceAll("[",""))==null?void 0:F.replaceAll("]",""))});let k=(h=(f=(c=(u=n==null?void 0:n.find(C=>(C==null?void 0:C.id)===t))==null?void 0:u.compData)==null?void 0:c.find(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:f.contents)==null?void 0:h.map(C=>(C=C==null?void 0:C.filter(B=>!(B!=null&&B.id)),C));if((r==null?void 0:r.filter)!==""){let C={};C[(p=(d=r==null?void 0:r.filter)==null?void 0:d.split("#"))==null?void 0:p[0]]=(m=(g=r==null?void 0:r.filter)==null?void 0:g.split("#"))==null?void 0:m[1];let B=(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[1];B==="@loginUser"&&(B=((b=BT.value)==null?void 0:b.姓名)||((w=BT.value)==null?void 0:w.account)||((_=BT.value)==null?void 0:_.账号));let O=x==null?void 0:x.findIndex(F=>{var E,D;return(F==null?void 0:F.prop)===((D=(E=Object.keys(C))==null?void 0:E[0])==null?void 0:D.replaceAll("'",""))});k=k==null?void 0:k.filter(F=>(F==null?void 0:F[O])===B)}k==null||k.forEach(C=>{e.push({label:C==null?void 0:C[S],value:C==null?void 0:C[S]})})}return e};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-BOJUyAaV.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),le=require("./index-8yRiF_z8.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-D8510-YQ.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D6mwkqWY.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLUx599w.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-BcYTED7W.cjs"),le=require("./index-CxOoKysB.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-DGlPPiil.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C7gejN5b.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as ne, computed as D, onMounted as z, resolveComponent as le, createBlock as U, openBlock as V, withCtx as ae, resolveDynamicComponent as oe, defineComponent as ue, defineProps as ce, ref as g, watch as ie, reactive as pe } from "vue";
2
2
  import { S as ge } from "./index-BHtNKL1L.js";
3
- import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-DV_ZZQBO.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js";
5
- import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
6
- import { s as Ae } from "./index-BMMYAqF1.js";
3
+ import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-CYp77kPp.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BhLzDN6s.js";
5
+ import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-CFvcnWO4.js";
6
+ import { s as Ae } from "./index-DX6yycjK.js";
7
7
  import { useRouter as we } from "vue-router";
8
8
  import { e as Te, g as ke, h as Se, a as De, d as Pe } from "./index-C2usxP_Q.js";
9
- import { g as _e } from "./index-8Dyi4QCI.js";
10
- const b = ne(() => import("./index-_66uQhcl.js").then((p) => p.j));
9
+ import { g as _e } from "./index-RztQL2pV.js";
10
+ const b = ne(() => import("./index-BmnY6J1z.js").then((p) => p.j));
11
11
  b.install = (p) => {
12
12
  p.component("ssMenu", b);
13
13
  };