@indfnd/common-mobile 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.54...v1.0.55) (2026-03-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * select组件增加enableSelectAll属性 ([515bafe](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/515bafe4893d3a631265e764c7bfe5da2062010b))
11
+
5
12
  ### [1.0.54](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.53...v1.0.54) (2026-03-10)
6
13
 
7
14
 
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.53";
6
+ const version$2 = "1.0.54";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -23187,7 +23187,7 @@ var render$q = function() {
23187
23187
  var _c = _vm._self._c || _h;
23188
23188
  return _c("div", { staticClass: "ind-input-select" }, [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, nativeOn: { "click": function($event) {
23189
23189
  return _vm.setVisible.apply(null, arguments);
23190
- } } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp }, on: { "update:show": function($event) {
23190
+ } } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp, "enableSelectAll": _vm.enableSelectAll }, on: { "update:show": function($event) {
23191
23191
  _vm.visible = $event;
23192
23192
  }, "input": function($event) {
23193
23193
  return _vm.$emit("input", $event);
@@ -23215,7 +23215,8 @@ const __vue2_script$q = {
23215
23215
  defaultExpandLevel: Number,
23216
23216
  dataApi: Function,
23217
23217
  columns: Array,
23218
- rowKey: String
23218
+ rowKey: String,
23219
+ enableSelectAll: Boolean
23219
23220
  },
23220
23221
  data() {
23221
23222
  return {
@@ -23315,9 +23316,14 @@ const __vue2_script$q = {
23315
23316
  },
23316
23317
  updateSelectedTitles() {
23317
23318
  var _a, _b, _c, _d, _e, _f, _g, _h;
23318
- let tempNodes = _.filter(this.value, (d) => {
23319
- return !d.children || d.children.length == 0;
23320
- });
23319
+ let tempNodes = [];
23320
+ if (this.enableSelectAll) {
23321
+ tempNodes = this.value;
23322
+ } else {
23323
+ tempNodes = _.filter(this.value, (d) => {
23324
+ return !d.children || d.children.length == 0;
23325
+ });
23326
+ }
23321
23327
  let textField = "title";
23322
23328
  if (((_a = this.columnsComp) == null ? void 0 : _a.length) > 1) {
23323
23329
  textField = this.columnsComp[1].field;
@@ -1,4 +1,4 @@
1
- (function(N,Hi){typeof exports=="object"&&typeof module!="undefined"?Hi(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],Hi):(N=typeof globalThis!="undefined"?globalThis:N||self,Hi(N.IndMobileCommon={},N.lodash,N["@indfnd/utils"],N.vue,N["view-design"]))})(this,function(N,Hi,O,Cp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(Cp),xp={name:"@indfnd/common-mobile",version:"1.0.53",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.36",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},$p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},kp=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Tp={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Lo={};var _p=Y(Tp,$p,kp,!1,Ip,null,null,null);function Ip(e){for(let t in Lo)this[t]=Lo[t]}var Ep=function(){return _p.exports}(),Dp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},Op=[];const Mp={name:"IndErrorContent",components:{BackBtnGroup:Ep},props:{code:String,desc:String,src:String}},Po={};var Ap=Y(Mp,Dp,Op,!1,Lp,null,null,null);function Lp(e){for(let t in Po)this[t]=Po[t]}var Qr=function(){return Ap.exports}(),Pp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Np=[];const Bp={name:"IndNotFound",components:{ErrorContent:Qr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},No={};var Fp=Y(Bp,Pp,Np,!1,Rp,null,null,null);function Rp(e){for(let t in No)this[t]=No[t]}var Ui=function(){return Fp.exports}(),Bo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zp(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Fo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Bo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,x={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(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",M={};M[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();M[j]&&(D=j),g&&(M[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;M[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},L=_;L.l=z,L.i=R,L.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,b=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)}}return new Date(D)}(g),this.init()},k.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()},k.$utils=function(){return L},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return L.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!L.u(I)||I,H=L.p(g),S=function(Tt,$t){var Ae=L.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return L.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return b(G+"Hours",0);case l:return b(G+"Minutes",1);case o:return b(G+"Seconds",2);case s:return b(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=L.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](b),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[L.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=L.p(I),S=function(F){var K=B(j);return L.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var b=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*b;return L.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),S=this.$H,b=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Ae,Tn,Zr){return $t&&($t[Ae]||$t(I,j))||Tn[Ae].slice(0,Zr)},ct=function($t){return L.s(S%12||12,$t,"0")},Tt=G||function($t,Ae,Tn){var Zr=$t<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(w,function($t,Ae){return Ae||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return L.s(I.$y,4,"0");case"M":return C+1;case"MM":return L.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return L.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return L.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return L.s(b,2,"0");case"s":return String(I.$s);case"ss":return L.s(I.$s,2,"0");case"SSS":return L.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=L.p(I),b=B(g),C=(b.utcOffset()-this.utcOffset())*n,F=this-b,K=function(){return L.m(H,b)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:L.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return L.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=M[T],B.Ls=M,B.p={},B})})(Fo);var St=Fo.exports,jp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},Hp=[];const Ro=new Date().getFullYear(),Vo=new Date().getMonth()+1,Up=`Q${O.getQuarterNum(Vo)}`,Kp=`H${O.getHalfYearNum(Vo)}`,zo=10,jo=10,Wp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ro+Up;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Ro+Kp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?O.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Ho={};var Yp=Y(Wp,jp,Hp,!1,Xp,null,null,null);function Xp(e){for(let t in Ho)this[t]=Ho[t]}var Uo=function(){return Yp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ko(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Gp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function ta(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Gp(c.id):c.id;let h=c.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}c.props=h;let d=c.enumList;if(d)try{d=JSON.parse(d)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",d),d=null}return c.enumList=d,c});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>ta(l)):o=[ta(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function In(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ta(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const qp=!1;var Le=O.useConfig(qp);function Jp(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Zp(e,t){let i=St(e).diff(St(),"day");i<=Le.leftLockDays&&t(i)}const Qp={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},tm=new _t.default,em=e=>e.children&&e.children.length,im=(e,t)=>e.some(i=>t.includes(i)),Wo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!im(e.meta.access,t):!0,nm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Yo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},rm=()=>{},Xo=(e,t)=>{let i=[];return om(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(em(n)||n.meta&&n.meta.showAlways)&&Wo(n,t)&&(r.children=Xo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Wo(n,t)&&i.push(r)}}),i},Go=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},am=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},qo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},En=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=En(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Jo=(e,t)=>{let i={};if(e.length===2)i=En(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Zo=(e,t)=>{let i=e.length,n=!1;return nm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,sm=(e,t)=>{const{name:i,path:n,meta:r}=t;let a=[...e];return a.findIndex(s=>s.name===i)>=0||a.push({name:i,path:n,meta:r}),a};function om(e,t){if(!e.length||!t)return;let i=-1,n=e.length;for(;++i<n;){let r=e[i];t(r,i,e)}}const lm=/([\:\-\_]+(.))/g,cm=/^moz([A-Z])/;function um(e){return e.replace(lm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(cm,"Moz$1")}function hm(e,t){if(!e||!t)return null;t=um(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var Qo={exports:{}};/*!
1
+ (function(N,Hi){typeof exports=="object"&&typeof module!="undefined"?Hi(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],Hi):(N=typeof globalThis!="undefined"?globalThis:N||self,Hi(N.IndMobileCommon={},N.lodash,N["@indfnd/utils"],N.vue,N["view-design"]))})(this,function(N,Hi,O,Cp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(Cp),xp={name:"@indfnd/common-mobile",version:"1.0.54",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.36",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},$p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},kp=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Tp={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Lo={};var _p=Y(Tp,$p,kp,!1,Ip,null,null,null);function Ip(e){for(let t in Lo)this[t]=Lo[t]}var Ep=function(){return _p.exports}(),Dp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},Op=[];const Mp={name:"IndErrorContent",components:{BackBtnGroup:Ep},props:{code:String,desc:String,src:String}},Po={};var Ap=Y(Mp,Dp,Op,!1,Lp,null,null,null);function Lp(e){for(let t in Po)this[t]=Po[t]}var Qr=function(){return Ap.exports}(),Pp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Np=[];const Bp={name:"IndNotFound",components:{ErrorContent:Qr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},No={};var Fp=Y(Bp,Pp,Np,!1,Rp,null,null,null);function Rp(e){for(let t in No)this[t]=No[t]}var Ui=function(){return Fp.exports}(),Bo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zp(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Fo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Bo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,x={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(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",M={};M[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();M[j]&&(D=j),g&&(M[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;M[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},L=_;L.l=z,L.i=R,L.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,b=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)}}return new Date(D)}(g),this.init()},k.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()},k.$utils=function(){return L},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return L.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!L.u(I)||I,H=L.p(g),S=function(Tt,$t){var Ae=L.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return L.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return b(G+"Hours",0);case l:return b(G+"Minutes",1);case o:return b(G+"Seconds",2);case s:return b(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=L.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](b),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[L.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=L.p(I),S=function(F){var K=B(j);return L.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var b=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*b;return L.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),S=this.$H,b=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Ae,Tn,Zr){return $t&&($t[Ae]||$t(I,j))||Tn[Ae].slice(0,Zr)},ct=function($t){return L.s(S%12||12,$t,"0")},Tt=G||function($t,Ae,Tn){var Zr=$t<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(w,function($t,Ae){return Ae||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return L.s(I.$y,4,"0");case"M":return C+1;case"MM":return L.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return L.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return L.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return L.s(b,2,"0");case"s":return String(I.$s);case"ss":return L.s(I.$s,2,"0");case"SSS":return L.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=L.p(I),b=B(g),C=(b.utcOffset()-this.utcOffset())*n,F=this-b,K=function(){return L.m(H,b)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:L.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return L.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=M[T],B.Ls=M,B.p={},B})})(Fo);var St=Fo.exports,jp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},Hp=[];const Ro=new Date().getFullYear(),Vo=new Date().getMonth()+1,Up=`Q${O.getQuarterNum(Vo)}`,Kp=`H${O.getHalfYearNum(Vo)}`,zo=10,jo=10,Wp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ro+Up;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Ro+Kp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?O.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Ho={};var Yp=Y(Wp,jp,Hp,!1,Xp,null,null,null);function Xp(e){for(let t in Ho)this[t]=Ho[t]}var Uo=function(){return Yp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ko(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Gp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function ta(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Gp(c.id):c.id;let h=c.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}c.props=h;let d=c.enumList;if(d)try{d=JSON.parse(d)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",d),d=null}return c.enumList=d,c});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>ta(l)):o=[ta(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function In(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ta(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const qp=!1;var Le=O.useConfig(qp);function Jp(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Zp(e,t){let i=St(e).diff(St(),"day");i<=Le.leftLockDays&&t(i)}const Qp={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},tm=new _t.default,em=e=>e.children&&e.children.length,im=(e,t)=>e.some(i=>t.includes(i)),Wo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!im(e.meta.access,t):!0,nm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Yo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},rm=()=>{},Xo=(e,t)=>{let i=[];return om(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(em(n)||n.meta&&n.meta.showAlways)&&Wo(n,t)&&(r.children=Xo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Wo(n,t)&&i.push(r)}}),i},Go=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},am=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},qo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},En=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=En(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Jo=(e,t)=>{let i={};if(e.length===2)i=En(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Zo=(e,t)=>{let i=e.length,n=!1;return nm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,sm=(e,t)=>{const{name:i,path:n,meta:r}=t;let a=[...e];return a.findIndex(s=>s.name===i)>=0||a.push({name:i,path:n,meta:r}),a};function om(e,t){if(!e.length||!t)return;let i=-1,n=e.length;for(;++i<n;){let r=e[i];t(r,i,e)}}const lm=/([\:\-\_]+(.))/g,cm=/^moz([A-Z])/;function um(e){return e.replace(lm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(cm,"Moz$1")}function hm(e,t){if(!e||!t)return null;t=um(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var Qo={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -10,7 +10,7 @@
10
10
 
11
11
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
12
12
 
13
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:hr(t.placement),variation:yh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ch(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ch(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var j0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:z0,data:{}};function H0(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!ye(a)||!Re(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function U0(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=s.reduce(function(l,c){return l[c]="",l},{});!ye(r)||!Re(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var K0={name:"applyStyles",enabled:!0,phase:"write",fn:H0,effect:U0,requires:["computeStyles"]},W0=[N0,F0,j0,K0],Y0=L0({defaultModifiers:W0});function X0(e,t,i){var n=hr(e),r=[hi,Li].indexOf(n)>=0?-1:1,a=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[hi,cn].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function G0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=p0.reduce(function(h,d){return h[d]=X0(d,t.rects,a),h},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var q0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G0},xh=$("popover"),J0=xh[0],fi=xh[1],Z0=J0({mixins:[os({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(zt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=Y0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},A({},q0,{options:{offset:this.offset}})]});return zt||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick(function(){!t.value||(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,i){var n=this,r=this.$createElement,a=t.icon,s=t.text,o=t.disabled,l=t.className;return r("div",{attrs:{role:"menuitem"},class:[fi("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(Z,{attrs:{name:a},class:fi("action-icon")}),r("div",{class:[fi("action-text"),qi]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,i){t.disabled||(this.$emit("select",t,i),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:fi("wrapper"),on:{click:this.onClickWrapper}},[t(Te,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:fi([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:fi("arrow")}),t("div",{class:fi("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),$h=$("progress"),Q0=$h[0],xs=$h[1],tw=Q0({mixins:[he(function(e){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],i=this.pivotText,n=this.percentage,r=i!=null?i:n+"%",a=this.showPivot&&r,s=this.inactive?"#cacaca":this.color,o={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},l={background:s,width:this.progressWidth*n/100+"px"},c={background:this.trackColor,height:st(this.strokeWidth)};return t("div",{class:xs(),style:c},[t("span",{class:xs("portion"),style:l},[a&&t("span",{ref:"pivot",style:o,class:xs("pivot")},[r])])])}}),$s=$("pull-refresh"),ew=$s[0],fr=$s[1],iw=$s[2],kh=50,nw=["pulling","loosing","success"],rw=ew({mixins:[ee],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:kh}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==kh)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=si(this.$el)},methods:{checkPullStart:function(t){this.ceiling=oi(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){!this.touchable||(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(It(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var i=+(this.pullDistance||this.headHeight);return t>i&&(t<i*2?t=i+(t-i)/2:t=i*1.5+(t-i*2)/4),Math.round(t)},setStatus:function(t,i){var n;i?n="loading":t===0?n="normal":n=t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,i=this.status,n=this.distance,r=this.slots(i,{distance:n});if(r)return r;var a=[],s=this[i+"Text"]||iw(i);return nw.indexOf(i)!==-1&&a.push(t("div",{class:fr("text")},[s])),i==="loading"&&a.push(t(de,{attrs:{size:"16"}},[s])),a},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],i={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:fr()},[t("div",{ref:"track",class:fr("track"),style:i},[t("div",{class:fr("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Th=$("rate"),aw=Th[0],pr=Th[1];function sw(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var ow=aw({mixins:[ee,We],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t=[],i=1;i<=this.count;i++)t.push(sw(this.value,i,this.allowHalf));return t},sizeWithUnit:function(){return st(this.size)},gutterWithUnit:function(){return st(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){!this.disabled&&!this.readonly&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var i=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(t);var n=this.$refs.items.map(function(a){return a.getBoundingClientRect()}),r=[];n.forEach(function(a,s){i.allowHalf?r.push({score:s+.5,left:a.left},{score:s+1,left:a.left+a.width/2}):r.push({score:s+1,left:a.left})}),this.ranges=r}},onTouchMove:function(t){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(t),this.direction==="horizontal")){It(t);var i=t.touches[0].clientX;this.select(this.getScoreByPosition(i))}},getScoreByPosition:function(t){for(var i=this.ranges.length-1;i>0;i--)if(t>this.ranges[i].left)return this.ranges[i].score;return this.allowHalf?.5:1},genStar:function(t,i){var n=this,r=this.$createElement,a=this.icon,s=this.color,o=this.count,l=this.voidIcon,c=this.disabled,h=this.voidColor,d=this.disabledColor,u=i+1,f=t==="full",p=t==="void",m;return this.gutterWithUnit&&u!==+o&&(m={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:i,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":u,"aria-checked":String(!p)},style:m,class:pr("item")},[r(Z,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:pr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(Z,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:pr("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(u-.5)}}})])}},render:function(){var t=this,i=arguments[0];return i("div",{class:pr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),_h=$("row"),lw=_h[0],cw=_h[1],uw=lw({mixins:[Ut("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(!!t){var i=[],n=[[]],r=0;return this.children.forEach(function(a,s){r+=Number(a.span),r>24?(n.push([s]),r-=24):n[n.length-1].push(s)}),n.forEach(function(a){var s=t*(a.length-1)/a.length;a.forEach(function(o,l){if(l===0)i.push({right:s});else{var c=t-i[o-1].right,h=s-c;i.push({left:c,right:h})}})}),i}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,i=arguments[0],n=this.align,r=this.justify,a=this.type==="flex";return i(this.tag,{class:cw((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),ks=$("search"),hw=ks[0],mr=ks[1],dw=ks[2];function Ih(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:mr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(at(n,"input",""),at(n,"cancel"))}return e("div",{class:mr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||dw("cancel")])}var s={attrs:n.data.attrs,on:A({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),at(n,"search",t.value)),at(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",et([{class:mr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:mr("content",t.shape)},[r(),e(ie,et([{attrs:{type:"search",border:!1,value:t.value,leftIcon:t.leftIcon,rightIcon:t.rightIcon,clearable:t.clearable,clearTrigger:t.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},s]))]),a()])}Ih.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var fw=hw(Ih),pw=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Ts=$("share-sheet"),mw=Ts[0],De=Ts[1],vw=Ts[2],gw=mw({props:A({},Nn,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,i){this.$emit("select",t,i)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return pw.indexOf(t)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,i=this.slots("title")||this.title,n=this.slots("description")||this.description;if(!(!i&&!n))return t("div",{class:De("header")},[i&&t("h2",{class:De("title")},[i]),n&&t("span",{class:De("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:De("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[De("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:De("icon")}),a.name&&r("span",{class:De("name")},[a.name]),a.description&&r("span",{class:De("option-description")},[a.description])])})])},genRows:function(){var t=this,i=this.options;return Array.isArray(i[0])?i.map(function(n,r){return t.genOptions(n,r!==0)}):this.genOptions(i)},genCancelText:function(){var t,i=this.$createElement,n=(t=this.cancelText)!=null?t:vw("cancel");if(n)return i("button",{attrs:{type:"button"},class:De("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(Te,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:De(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Eh=$("sidebar"),yw=Eh[0],bw=Eh[1],Dh=yw({mixins:[Ut("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:bw()},[this.slots()])}}),Oh=$("sidebar-item"),Sw=Oh[0],_s=Oh[1],Mh=Sw({mixins:[Ht("vanSidebar")],props:A({},Ke,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),ci(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:_s({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:_s("text")},[(t=this.slots("title"))!=null?t:this.title,n(li,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:_s("info")})])])}}),Ah=$("skeleton"),ww=Ah[0],un=Ah[1],Lh="100%",Cw="60%";function Ph(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:un("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===Lh&&d===+t.row-1?Cw:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:un("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:un("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",et([{class:un({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:un("content")},[r(),a()])])}Ph.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Lh}};var xw=ww(Ph),$w={"zh-CN":{vanSku:{select:"\u8BF7\u9009\u62E9",selected:"\u5DF2\u9009",selectSku:"\u8BF7\u5148\u9009\u62E9\u5546\u54C1\u89C4\u683C",soldout:"\u5E93\u5B58\u4E0D\u8DB3",originPrice:"\u539F\u4EF7",minusTip:"\u81F3\u5C11\u9009\u62E9\u4E00\u4EF6",minusStartTip:function(t){return t+"\u4EF6\u8D77\u552E"},unavailable:"\u5546\u54C1\u5DF2\u7ECF\u65E0\u6CD5\u8D2D\u4E70\u5566",stock:"\u5269\u4F59",stockUnit:"\u4EF6",quotaTip:function(t){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6"},quotaUsedTip:function(t,i){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6\uFF0C\u4F60\u5DF2\u8D2D\u4E70"+i+"\u4EF6"}},vanSkuActions:{buy:"\u7ACB\u5373\u8D2D\u4E70",addCart:"\u52A0\u5165\u8D2D\u7269\u8F66"},vanSkuImgUploader:{oversize:function(t){return"\u6700\u5927\u53EF\u4E0A\u4F20\u56FE\u7247\u4E3A"+t+"MB\uFF0C\u8BF7\u5C1D\u8BD5\u538B\u7F29\u56FE\u7247\u5C3A\u5BF8"},fail:"\u4E0A\u4F20\u5931\u8D25",uploading:"\u4E0A\u4F20\u4E2D..."},vanSkuStepper:{quotaLimit:function(t){return"\u9650\u8D2D"+t+"\u4EF6"},quotaStart:function(t){return t+"\u4EF6\u8D77\u552E"},comma:"\uFF0C",num:"\u8D2D\u4E70\u6570\u91CF"},vanSkuMessages:{fill:"\u8BF7\u586B\u5199",upload:"\u8BF7\u4E0A\u4F20",imageLabel:"\u4EC5\u9650\u4E00\u5F20",invalid:{tel:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u6570\u5B57\u683C\u5F0F\u7559\u8A00",mobile:"\u624B\u673A\u53F7\u957F\u5EA6\u4E3A6-20\u4F4D\u6570\u5B57",email:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u90AE\u7BB1",id_no:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},placeholder:{id_no:"\u8BF7\u586B\u5199\u8EAB\u4EFD\u8BC1\u53F7",text:"\u8BF7\u586B\u5199\u7559\u8A00",tel:"\u8BF7\u586B\u5199\u6570\u5B57",email:"\u8BF7\u586B\u5199\u90AE\u7BB1",date:"\u8BF7\u9009\u62E9\u65E5\u671F",time:"\u8BF7\u9009\u62E9\u65F6\u95F4",textarea:"\u8BF7\u586B\u5199\u7559\u8A00",mobile:"\u8BF7\u586B\u5199\u624B\u673A\u53F7"}},vanSkuRow:{multiple:"\u53EF\u591A\u9009"},vanSkuDatetimeField:{title:{date:"\u9009\u62E9\u5E74\u6708\u65E5",time:"\u9009\u62E9\u65F6\u95F4",datetime:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4"},format:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206"}}}},vr={QUOTA_LIMIT:0,STOCK_LIMIT:1},pi="",kw={LIMIT_TYPE:vr,UNSELECTED_SKU_VALUE_ID:pi},Nh=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},Tw=function(t){var i={};return t.forEach(function(n){var r={};n.v.forEach(function(a){r[a.id]=a}),i[n.k_id]=r}),i},Bh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==pi});return t.length===n.length},Fh=function(t,i){var n=t.filter(function(r){return Object.keys(i).every(function(a){return String(r[a])===String(i[a])})});return n[0]},Rh=function(t,i){var n=Nh(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==pi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},Is=function(t,i,n){var r,a=n.key,s=n.valueId,o=A({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==pi}),c=t.filter(function(d){return l.every(function(u){return String(o[u])===String(d[u])})}),h=c.reduce(function(d,u){return d+=u.stock_num,d},0);return h>0},Vh=function(t,i){var n=Tw(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(A({},n[a][s]))}),r},[])},zh=function(t,i){var n=[];return(t||[]).forEach(function(r){if(i[r.k_id]&&i[r.k_id].length>0){var a=[];r.v.forEach(function(s){i[r.k_id].indexOf(s.id)>-1&&a.push(A({},s))}),n.push(A({},r,{v:a}))}}),n},_w={normalizeSkuTree:Nh,getSkuComb:Fh,getSelectedSkuValues:Rh,isAllSelected:Bh,isSkuChoosable:Is,getSelectedPropValues:Vh,getSelectedProperties:zh},jh=$("sku-header"),Iw=jh[0],Es=jh[1];function Ew(e,t){var i;return e.tree.some(function(n){var r=t[n.k_s];if(r&&n.v){var a=n.v.filter(function(o){return o.id===r})[0]||{},s=a.previewImgUrl||a.imgUrl||a.img_url;if(s)return i=A({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function Hh(e,t,i,n){var r,a=t.sku,s=t.goods,o=t.skuEventBus,l=t.selectedSku,c=t.showHeaderImage,h=c===void 0?!0:c,d=Ew(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",et([{class:[Es(),qi]},lt(n)]),[h&&e(Oi,{attrs:{fit:"cover",src:u},class:Es("img-wrap"),on:{click:f}},[(r=i["sku-header-image-extra"])==null?void 0:r.call(i)]),e("div",{class:Es("goods-info")},[i.default==null?void 0:i.default()])])}Hh.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Uh=Iw(Hh),Kh=$("sku-header-item"),Dw=Kh[0],Ow=Kh[1];function Mw(e,t,i,n){return e("div",et([{class:Ow()},lt(n)]),[i.default&&i.default()])}var gr=Dw(Mw),Ds=$("sku-row"),Aw=Ds[0],be=Ds[1],Lw=Ds[2],Os=Aw({mixins:[Ut("vanSkuRows"),he(function(e){this.scrollable&&this.$refs.scroller&&e(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,i=t.scroller,n=t.row,r=n.offsetWidth-i.offsetWidth;this.progress=i.scrollLeft/r},genTitle:function(){var t=this.$createElement;return t("div",{class:be("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:be("title-multiple")},["\uFF08",Lw("multiple"),"\uFF09"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var i={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return t("div",{class:be("indicator-wrapper")},[t("div",{class:be("indicator")},[t("div",{class:be("indicator-slider"),style:i})])])}},genContent:function(){var t=this.$createElement,i=this.slots();if(this.skuRow.largeImageMode){var n=[],r=[];return i.forEach(function(a,s){var o=Math.floor(s/3)%2===0?n:r;o.push(a)}),t("div",{class:be("scroller"),ref:"scroller"},[t("div",{class:be("row"),ref:"row"},[n]),r.length?t("div",{class:be("row")},[r]):null])}return i},centerItem:function(t){if(!(!this.skuRow.largeImageMode||!t)){var i=this.children,n=i===void 0?[]:i,r=this.$refs,a=r.scroller,s=r.row,o=n.find(function(h){return+h.skuValue.id==+t});if(a&&s&&o&&o.$el){var l=o.$el,c=l.offsetLeft-(a.offsetWidth-l.offsetWidth)/2;a.scrollLeft=c}}}},render:function(){var t=arguments[0];return t("div",{class:[be(),qi]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Pw=$("sku-row-item"),Nw=Pw[0],Wh=Nw({mixins:[Ht("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return this.disableSoldoutSku?Is(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",A({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",A({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(Oi,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],i=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?be("image-item"):be("item");return t("span",{class:[n,i?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(Z,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Bw=$("sku-row-prop-item"),Fw=Bw[0],Yh=Fw({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var t=this.selectedProp,i=this.skuKeyStr,n=this.skuValue;return t&&t[i]?t[i].indexOf(n.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",A({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),Xh=$("stepper"),Rw=Xh[0],yr=Xh[1],Vw=600,zw=200;function br(e,t){return String(e)===String(t)}var Gh=Rw({mixins:[We],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,i=(t=this.value)!=null?t:this.defaultValue,n=this.format(i);return br(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=st(this.inputWidth)),this.buttonSize&&(t.height=st(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){br(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);br(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return rc(String(t),!this.integer)},format:function(t){return this.allowEmpty&&t===""||(t=this.formatNumber(t),t=t===""?0:+t,t=ca(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),nt(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(nt(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}br(i,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"]){this.$emit("overlimit",t);return}var i=t==="minus"?-this.step:+this.step,n=this.format(ac(+this.currentValue,i));this.emitChange(n),this.$emit(t)},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var i=this.format(t.target.value);t.target.value=i,this.emitChange(i),this.$emit("blur",t),vc()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},zw)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},Vw))},onTouchEnd:function(t){!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress&&It(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,i=arguments[0],n=function(a){return{on:{click:function(o){o.preventDefault(),t.type=a,t.onChange()},touchstart:function(){t.type=a,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return i("div",{class:yr([this.theme])},[i("button",et([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:yr("minus",{disabled:this.minusDisabled})},n("minus")])),i("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:yr("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",et([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:yr("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),qh=$("sku-stepper"),jw=qh[0],Sr=qh[2],Hw=vr.QUOTA_LIMIT,Jh=vr.STOCK_LIMIT,Zh=jw({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Jh}},watch:{currentNum:function(t){var i=parseInt(t,10);i>=this.stepperMinLimit&&i<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",i)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t=this.quota-this.quotaUsed,i;return this.quota>0&&t<=this.stock?(i=t<0?0:t,this.limitType=Hw):(i=this.stock,this.limitType=Jh),i},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,i=t.quotaText,n=t.hideQuotaText;if(n)return"";var r="";if(i)r=i;else{var a=[];this.startSaleNum>1&&a.push(Sr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(Sr("quotaLimit",this.quota)),r=a.join(Sr("comma"))}return r}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var i=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(i),this.$emit("change",i)},checkState:function(t,i){this.currentNum<t||t>i?this.currentNum=t:this.currentNum>i&&(this.currentNum=i),this.skuEventBus.$emit("sku:stepperState",{valid:t<=i,min:t,max:i,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,i=arguments[0];return i("div",{class:"van-sku-stepper-stock"},[i("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Sr("num")]),i(Gh,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(r){t.currentNum=r}}}),!this.hideQuotaText&&this.quotaText&&i("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Uw(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function Qh(e){return Array.isArray(e)?e:[e]}function td(e,t){return new Promise(function(i){if(t==="file"){i(null);return}var n=new FileReader;n.onload=function(r){i(r.target.result)},t==="dataUrl"?n.readAsDataURL(e):t==="text"&&n.readAsText(e)})}function ed(e,t){return Qh(e).some(function(i){return i?Ti(t)?t(i):i.size>t:!1})}var Kw=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Ww(e){return Kw.test(e)}function id(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?Ww(e.url):e.content?e.content.indexOf("data:image")===0:!1}var nd=$("uploader"),Yw=nd[0],xt=nd[1],rd=Yw({inheritAttrs:!1,mixins:[We],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return st(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(t){return URL.revokeObjectURL(t)})},methods:{getDetail:function(t){return t===void 0&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var i=this,n=t.target.files;if(!(this.disabled||!n.length)){if(n=n.length===1?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r){this.resetInput();return}if(An(r)){r.then(function(a){a?i.readFile(a):i.readFile(n)}).catch(this.resetInput);return}}this.readFile(n)}},readFile:function(t){var i=this,n=ed(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map(function(a){return td(a,i.resultType)})).then(function(a){var s=t.map(function(o,l){var c={file:o,status:"",message:""};return a[l]&&(c.content=a[l]),c});i.onAfterRead(s,n)})}else td(t,this.resultType).then(function(a){var s={file:t,status:"",message:""};a&&(s.content=a),i.onAfterRead(s,n)})},onAfterRead:function(t,i){var n=this;this.resetInput();var r=t;if(i){var a=t;Array.isArray(t)?(a=[],r=[],t.forEach(function(o){o.file&&(ed(o.file,n.maxSize)?a.push(o):r.push(o))})):r=null,this.$emit("oversize",a,this.getDetail())}var s=Array.isArray(r)?Boolean(r.length):Boolean(r);s&&(this.$emit("input",[].concat(this.fileList,Qh(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,i){var n,r=this,a=(n=t.beforeDelete)!=null?n:this.beforeDelete;if(a){var s=a(t,this.getDetail(i));if(!s)return;if(An(s)){s.then(function(){r.deleteFile(t,i)}).catch(Xi);return}}this.deleteFile(t,i)},deleteFile:function(t,i){var n=this.fileList.slice(0);n.splice(i,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(i))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var i=this;if(!!this.previewFullImage){var n=this.fileList.filter(function(a){return id(a)}),r=n.map(function(a){return a.file&&!a.url&&a.status!=="failed"&&(a.url=URL.createObjectURL(a.file),i.urls.push(a.url)),a.url});this.imagePreview=hs(A({images:r,startPosition:n.indexOf(t),onClose:function(){i.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var i=this.$createElement,n=t.status,r=t.message;if(n==="uploading"||n==="failed"){var a=n==="failed"?i(Z,{attrs:{name:"close"},class:xt("mask-icon")}):i(de,{class:xt("loading")}),s=nt(r)&&r!=="";return i("div",{class:xt("mask")},[a,s&&i("div",{class:xt("mask-message")},[r])])}},genPreviewItem:function(t,i){var n,r=this,a,s,o=this.$createElement,l=(n=t.deletable)!=null?n:this.deletable,c=t.status!=="uploading"&&l,h=c&&o("div",{class:xt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(Z,{attrs:{name:"cross"},class:xt("preview-delete-icon")})]),d=this.slots("preview-cover",A({index:i},t)),u=d&&o("div",{class:xt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=id(t)?o(Oi,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:xt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:xt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(Z,{class:xt("file-icon"),attrs:{name:"description"}}),o("div",{class:[xt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:xt("preview"),on:{click:function(){r.$emit("click-preview",t,r.getDetail(i))}}},[m,this.genPreviewMask(t),h])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var i=this.slots(),n=this.readonly?null:t("input",{attrs:A({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:xt("input"),on:{change:this.onChange}});if(i)return t("div",{class:xt("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,n]);var r;if(this.previewSize){var a=this.previewSizeWithUnit;r={width:a,height:a}}return t("div",{directives:[{name:"show",value:this.showUpload}],class:xt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(Z,{attrs:{name:this.uploadIcon},class:xt("upload-icon")}),this.uploadText&&t("span",{class:xt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:xt()},[t("div",{class:xt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),ad=$("sku-img-uploader"),Xw=ad[0],Ms=ad[2],Gw=Xw({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){t?this.fileList=[{url:t,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(t){var i=this;t.status="uploading",t.message=Ms("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",i.$emit("input",n)}).catch(function(){t.status="failed",t.message=Ms("fail")})},onOversize:function(){this.$toast(Ms("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var t=this;this.customUpload&&this.customUpload().then(function(i){t.fileList.push({url:i}),t.$emit("input",i)})}},render:function(){var t=this,i=arguments[0];return i(rd,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:t.fileList,callback:function(r){t.fileList=r}}})}});function qw(e){return e?new Date(e.replace(/-/g,"/")):null}function Jw(e,t){if(t===void 0&&(t="date"),!e)return"";var i=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),a=i+"-"+gt(n)+"-"+gt(r);if(t==="datetime"){var s=e.getHours(),o=e.getMinutes();a+=" "+gt(s)+":"+gt(o)}return a}var sd=$("sku-datetime-field"),Zw=sd[0],od=sd[2],Qw=Zw({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=qw(t)||new Date;break}}},computed:{title:function(){return od("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=Jw(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=od("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ie,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[i(Te,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(Au,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),As=$("sku-messages"),tC=As[0],Pi=As[1],mi=As[2],ld=tC({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var i=this.messageConfig,n=i.initialMessages,r=n===void 0?{}:n;return(t||[]).map(function(a){return{value:r[a.name]||""}})},getType:function(t){return+t.multiple==1?"textarea":t.type==="id_no"?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(i,n){t["message_"+n]=i.value}),t},getCartMessages:function(){var t=this,i={};return this.messageValues.forEach(function(n,r){var a=t.messages[r];i[a.name]=n.value}),i},getPlaceholder:function(t){var i=+t.multiple==1?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[i]||mi("placeholder."+i)},validateMessages:function(){for(var t=this.messageValues,i=0;i<t.length;i++){var n=t[i].value,r=this.messages[i];if(n===""){if(String(r.required)==="1"){var a=mi(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!la(n))return mi("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return mi("invalid.mobile");if(r.type==="email"&&!Uw(n))return mi("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return mi("invalid.id_no")}}},getFormatter:function(t){return function(n){return t.type==="mobile"||t.type==="tel"?n.replace(/[^\d.]/g,""):n}},getExtraDesc:function(t){var i=this.$createElement,n=t.extraDesc;if(n)return i("div",{class:Pi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Ft,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Pi("image-cell-value")},class:Pi("image-cell")},[r(Gw,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),r("div",{class:Pi("image-cell-label")},[mi("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(Qw,{attrs:{label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}):r("div",{class:Pi("cell-block")},[r(ie,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t),border:!1},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),this.getExtraDesc(t)])}},render:function(){var t=arguments[0];return t("div",{class:Pi()},[this.messages.map(this.genMessage)])}}),Ls=$("sku-actions"),eC=Ls[0],iC=Ls[1],cd=Ls[2];function ud(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",et([{class:iC()},lt(n)]),[t.showAddCartBtn&&e(Lt,{attrs:{size:"large",type:"warning",text:t.addCartText||cd("addCart")},on:{click:r("sku:addCart")}}),e(Lt,{attrs:{size:"large",type:"danger",text:t.buyText||cd("buy")},on:{click:r("sku:buy")}})])}ud.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var hd=eC(ud),Ps=$("sku"),nC=Ps[0],rC=Ps[1],se=Ps[2],aC=vr.QUOTA_LIMIT,Se=nC({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var t=window.innerHeight-this.bodyOffsetTop;return{maxHeight:t+"px"}}},isSkuCombSelected:function(){var t=this;return this.hasSku&&!Bh(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(i){return i.is_necessary!==!1}).some(function(i){return(t.selectedProp[i.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(this.hasSku?t=Fh(this.skuList,this.selectedSku):t={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},t&&(t.properties=zh(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return Rh(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Vh(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(i){!i.v||i.v.forEach(function(n){var r=n.previewImgUrl||n.imgUrl||n.img_url;r&&t.indexOf(r)===-1&&t.push(r)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return t!==void 0?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,i=this.customStepperConfig.stockFormatter;return i?i(this.stock):[se("stock")+" ",t("span",{class:rC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+se("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return se("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===pi}).map(function(a){return a.k}),r=this.propList.filter(function(a){return(t.selectedProp[a.k_id]||[]).length<1}).map(function(a){return a.k});return se("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new _t.default;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,i=this.initialSku.selectedNum,n=i!=null?i:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(s){t.selectedSku[s.k_s]=pi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&Is(t.skuList,t.selectedSku,{key:o,valueId:l})&&(t.selectedSku[o]=l)});var i=this.selectedSkuValues;i.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:i[i.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,r=n===void 0?{}:n;this.propList.forEach(function(s){r[s.k_id]&&(t.selectedProp[s.k_id]=r[s.k_id])}),lg(this.selectedProp)&&this.propList.forEach(function(s){var o;if((s==null||(o=s.v)==null?void 0:o.length)>0){var l=s.v,c=s.k_id,h=l.some(function(u){return+u.price!=0});if(!h){var d=l.find(function(u){return u.text_status!==0});d&&(t.selectedProp[c]=[d.id])}}});var a=this.selectedPropValues;a.length>0&&this.$emit("sku-prop-selected",{propValue:a[a.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return se("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return se("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?A({},this.selectedSku,(i={},i[t.skuKeyStr]=pi,i)):A({},this.selectedSku,(n={},n[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var i,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=A({},this.selectedProp,(i={},i[t.skuKeyStr]=n,i)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var i=this,n=this.imageList,r=0,a=n[0];t&&t.imgUrl&&(this.imageList.some(function(o,l){return o===t.imgUrl?(r=l,!0):!1}),a=t.imgUrl);var s=A({},t,{index:r,imageList:this.imageList,indexImage:a});this.$emit("open-preview",s),this.previewOnClickImage&&hs({images:this.imageList,startPosition:r,onClose:function(){i.$emit("close-preview",s)}})},onOverLimit:function(t){var i=t.action,n=t.limitType,r=t.quota,a=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;if(s){s(t);return}i==="minus"?this.startSaleNum>1?wt(se("minusStartTip",this.startSaleNum)):wt(se("minusTip")):i==="plus"&&(n===aC?a>0?wt(se("quotaUsedTip",r,a)):wt(se("quotaTip",r)):wt(se("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:A({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var i=this.validateSku();i?wt(i):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(i){var n=i.skuRow||{},r=n.k_s;i.centerItem(t.initialSku[r])})}},render:function(){var t=this,i=arguments[0];if(!this.isSkuEmpty){var n=this.sku,r=this.skuList,a=this.goods,s=this.price,o=this.lazyLoad,l=this.originPrice,c=this.skuEventBus,h=this.selectedSku,d=this.selectedProp,u=this.selectedNum,f=this.stepperTitle,p=this.selectedSkuComb,m=this.showHeaderImage,v=this.disableSoldoutSku,w={price:s,originPrice:l,selectedNum:u,skuEventBus:c,selectedSku:h,selectedSkuComb:p},x=function(z){return t.slots(z,w)},E=x("sku-header")||i(Uh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[x("sku-header-image-extra")]),x("sku-header-price")||i("div",{class:"van-sku__goods-price"},[i("span",{class:"van-sku__price-symbol"},["\uFFE5"]),i("span",{class:"van-sku__price-num"},[s]),this.priceTag&&i("span",{class:"van-sku__price-tag"},[this.priceTag])]),x("sku-header-origin-price")||l&&i(gr,[se("originPrice")," \uFFE5",l]),!this.hideStock&&i(gr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(gr,[this.selectedText]),x("sku-header-extra")]),_=x("sku-group")||this.hasSkuOrAttr&&i("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return i(Os,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(z){return i(Wh,{attrs:{skuList:r,lazyLoad:o,skuValue:z,skuKeyStr:R.k_s,selectedSku:h,skuEventBus:c,disableSoldoutSku:v,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return i(Os,{attrs:{skuRow:R}},[R.v.map(function(z){return i(Yh,{attrs:{skuValue:z,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:z.text_status===0}})})])})]),T=x("sku-stepper")||i(Zh,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:c,selectedNum:u,stepperTitle:f,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(z){t.$emit("stepper-change",z)}}}),M=x("sku-messages")||i(ld,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),X=x("sku-actions")||i(hd,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(Te,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(z){t.show=z}}},[E,i("div",{class:"van-sku-body",style:this.bodyStyle},[x("sku-body-top"),_,x("extra-sku-group"),T,x("before-sku-messages"),M,x("after-sku-messages")]),x("sku-actions-top"),X])}}});oa.add($w),Se.SkuActions=hd,Se.SkuHeader=Uh,Se.SkuHeaderItem=gr,Se.SkuMessages=ld,Se.SkuStepper=Zh,Se.SkuRow=Os,Se.SkuRowItem=Wh,Se.SkuRowPropItem=Yh,Se.skuHelper=_w,Se.skuConstants=kw;var dd=$("slider"),sC=dd[0],wr=dd[1],fd=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},oC=sC({mixins:[ee,We],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),It(t,!0),this.touchMove(t),this.dragStatus="draging";var i=this.$el.getBoundingClientRect(),n=this.vertical?this.deltaY:this.deltaX,r=this.vertical?i.height:i.width,a=n/r*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+a:this.currentValue=this.startValue+a,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var i=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-i.top:t.clientX-i.left,r=this.vertical?i.height:i.width,a=+this.min+n/r*this.scope;if(this.range){var s=this.value,o=s[0],l=s[1],c=(o+l)/2;a<=c?o=a:l=a,a=[o,l]}this.startValue=this.value,this.updateValue(a,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=Ji(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),fd(t,this.value)||this.$emit("input",t),i&&!fd(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=At(t,i,n);var a=Math.round((t-i)/r)*r;return ac(i,a)}},render:function(){var t,i=this,n,r=arguments[0],a=this.vertical,s=a?"height":"width",o=a?"width":"height",l=(t={background:this.inactiveColor},t[o]=st(this.barHeight),t),c=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[1]-p[0])*100/w+"%":(p-m)*100/w+"%"},h=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[0]-m)*100/w+"%":null},d=(n={},n[s]=c(),n.left=this.vertical?null:h(),n.top=this.vertical?h():null,n.background=this.activeColor,n);this.dragStatus&&(d.transition="none");var u=function(p){var m=["left","right"],v=typeof p=="number",w=v?i.value[p]:i.value,x=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},E=function(){return v?"wrapper"+p:"wrapper"},_=function(){if(v){var M=i.slots(p===0?"left-button":"right-button",{value:w});if(M)return M}return i.slots("button")?i.slots("button"):r("div",{class:wr("button"),style:i.buttonStyle})};return r("div",{ref:E(),attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:wr(x()),on:{touchstart:function(){v&&(i.index=p)},click:function(M){return M.stopPropagation()}}},[_()])};return r("div",{style:l,class:wr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:wr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),pd=$("step"),lC=pd[0],Qe=pd[1],cC=lC({mixins:[Ht("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var t=this.parent,i=t.activeColor,n=t.inactiveColor,r=t.center,a=t.direction,s={background:this.status==="finish"?i:n};return r&&a==="vertical"&&(s.top="50%"),s},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,i=this.parent,n=i.activeIcon,r=i.iconPrefix,a=i.activeColor,s=i.finishIcon,o=i.inactiveIcon;if(this.active)return this.slots("active-icon")||t(Z,{class:Qe("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(Z,{class:Qe("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(Z,{class:Qe("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Qe("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,i=arguments[0],n=this.status,r=this.active,a=this.parent.direction;return i("div",{class:[pe,Qe([a,(t={},t[n]=n,t)])]},[i("div",{class:Qe("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Qe("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Qe("line"),style:this.lineStyle})])}}),md=$("steps"),uC=md[0],vd=md[1],hC=uC({mixins:[Ut("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:vd([this.direction])},[t("div",{class:vd("items")},[this.slots()])])}}),Ns=$("submit-bar"),dC=Ns[0],Oe=Ns[1],fC=Ns[2];function gd(e,t,i,n){var r=t.tip,a=t.price,s=t.tipIcon;function o(){if(typeof a=="number"){var c=(a/100).toFixed(t.decimalLength).split("."),h=t.decimalLength?"."+c[1]:"";return e("div",{style:{textAlign:t.textAlign?t.textAlign:""},class:Oe("text")},[e("span",[t.label||fC("label")]),e("span",{class:Oe("price")},[t.currency,e("span",{class:Oe("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:Oe("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:Oe("tip")},[s&&e(Z,{class:Oe("tip-icon"),attrs:{name:s}}),r&&e("span",{class:Oe("tip-text")},[r]),i.tip&&i.tip()])}return e("div",et([{class:Oe({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:Oe("bar")},[i.default&&i.default(),o(),i.button?i.button():e(Lt,{attrs:{round:!0,type:t.buttonType,text:t.loading?"":t.buttonText,color:t.buttonColor,loading:t.loading,disabled:t.disabled},class:Oe("button",t.buttonType),on:{click:function(){at(n,"submit")}}})])])}gd.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"\xA5"},buttonType:{type:String,default:"danger"}};var pC=dC(gd),yd=$("swipe-cell"),mC=yd[0],Cr=yd[1],bd=.15,vC=mC({mixins:[ee,os({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){if(this.$refs[t]){var i=this.$refs[t].getBoundingClientRect();return i.width}return 0},open:function(t){var i=t==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=i,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){if(!this.disabled&&(this.touchMove(t),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var i=!this.opened||this.deltaX*this.startOffset<0;i&&It(t,this.stopPropagation),this.offset=At(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var i=Math.abs(this.offset),n=this.opened?1-bd:bd,r=this.computedLeftWidth,a=this.computedRightWidth;a&&t==="right"&&i>a*n?this.open("right"):r&&t==="left"&&i>r*n?this.open("left"):this.close()},onClick:function(t){t===void 0&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,i){var n=this;return function(r){i&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,i=this.slots("left");if(i)return t("div",{ref:"left",class:Cr("left"),on:{click:this.getClickHandler("left",!0)}},[i])},genRightPart:function(){var t=this.$createElement,i=this.slots("right");if(i)return t("div",{ref:"right",class:Cr("right"),on:{click:this.getClickHandler("right",!0)}},[i])}},render:function(){var t=arguments[0],i={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Cr(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Cr("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Sd=$("switch-cell"),gC=Sd[0],yC=Sd[1];function wd(e,t,i,n){return e(Ft,et([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:yC([t.cellSize])},lt(n)]),[e(Yn,{props:A({},t),on:A({},n.listeners)})])}wd.props=A({},Ec,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var bC=gC(wd),Cd=$("tabbar"),SC=Cd[0],xd=Cd[1],Bs=SC({mixins:[Ut("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var i=function(){t.height=t.$refs.tabbar.getBoundingClientRect().height};i(),setTimeout(i,100)}},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(i,n){i.nameMatched=i.name===t.value||n===t.value})},triggerChange:function(t,i){var n=this;Jc({interceptor:this.beforeChange,args:[t],done:function(){n.$emit("input",t),n.$emit("change",t),i()}})},genTabbar:function(){var t,i=this.$createElement;return i("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Vn]=this.border,t),xd({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:xd("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),$d=$("tabbar-item"),wC=$d[0],Fs=$d[1],Rs=wC({mixins:[Ht("vanTabbar")],props:A({},Ke,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var t=this.parent.route;if(t&&"$route"in this){var i=this.to,n=this.$route,r=ue(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=nt(r.name)&&r.name===a.name;return o||l})}return this.nameMatched}},methods:{onClick:function(t){var i=this;this.active||this.parent.triggerChange(this.name||this.index,function(){ci(i.$router,i)}),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,i=this.slots("icon",{active:this.active});if(i)return i;if(this.icon)return t(Z,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var t,i=arguments[0],n=this.active,r=this.parent[n?"activeColor":"inactiveColor"];return i("div",{class:Fs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Fs("icon")},[this.genIcon(),i(li,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Fs("text")},[this.slots("default",{active:n})])])}}),kd=$("tree-select"),CC=kd[0],Ni=kd[1];function Td(e,t,i,n){var r=t.items,a=t.height,s=t.activeId,o=t.selectedIcon,l=t.mainActiveIndex,c=r[+l]||{},h=c.children||[],d=Array.isArray(s);function u(m){return d?s.indexOf(m)!==-1:s===m}var f=r.map(function(m){var v;return e(Mh,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Ni("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Ni("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var x=w.indexOf(m.id);x!==-1?w.splice(x,1):w.length<t.max&&w.push(m.id)}at(n,"update:active-id",w),at(n,"click-item",m),at(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(Z,{attrs:{name:o},class:Ni("selected")})])})}return e("div",et([{class:Ni(),style:{height:st(a)}},lt(n)]),[e(Dh,{class:Ni("nav"),attrs:{activeKey:l},on:{change:function(v){at(n,"update:main-active-index",v),at(n,"click-nav",v),at(n,"navclick",v)}}},[f]),e("div",{class:Ni("content")},[p()])])}Td.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var xC=CC(Td);function $C(e){var t=[Ng,by,Ey,dc,Oy,Lt,Wy,Gy,cb,Ft,ou,cu,mb,bb,Cb,kb,Ib,Db,Mb,Pb,zb,es,Yb,qb,Au,ft,aS,oS,cS,fS,ie,vS,Tc,ka,yS,wS,xS,Z,Oi,hs,AS,NS,li,RS,de,oa,zS,HS,ae,JS,Rl,QS,e0,n0,Ca,Z0,Te,tw,rw,Aa,Ma,ow,uw,fw,gw,Dh,Mh,xw,Se,oC,cC,Gh,hC,tu,pC,Ku,vC,Yu,Yn,bC,Jn,Bs,Rs,Ha,Gn,wt,xC,rd];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&$C(window.Vue);var kC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-login"},[i("div",{staticClass:"ind-login-con"},[i("div",{staticClass:"ind-panel"},[i("div",{staticClass:"ind-panel-title"},[e._v("\u6B22\u8FCE\u767B\u5F55")]),i("LoginForm",{ref:"login",attrs:{msg:e.msg,loading:e.loading},on:{"on-success-valid":e.handleSubmit}})],1)])])},TC=[];const _C={name:"IndMLogin",components:{LoginForm:Vv},data(){return{loading:!1,msg:""}},mounted(){O.clearSessionStorage();let e=this.$store.getters.getTheme;wi(e)},methods:{...dl(["handleLogin"]),async handleSubmit({userName:e,password:t,validCodeInput:i,validCodeId:n}){this.msg="",this.loading=!0;try{const r=await this.handleLogin({userName:e,password:t,validCodeId:n,validCodeInput:i});r?r.startsWith("http://")||r.startsWith("https://")?location.href=r:this.$router.push(r,()=>{this.loading=!1}):this.$router.push({name:Le.homeRouteName},()=>{this.loading=!1})}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return O.cryptor.encryptForLogin(O.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},_d={};var IC=Y(_C,kC,TC,!1,EC,null,null,null);function EC(e){for(let t in _d)this[t]=_d[t]}var Vs=function(){return IC.exports}(),DC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-search",{attrs:{"show-action":e.showFilter,placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:function(n){return e.$emit("doSearch",e.searchVal)}},scopedSlots:e._u([{key:"action",fn:function(){return[i("div",{class:["toggle-condition",e.isFiltering?"active":""],on:{click:function(n){return e.$emit("showCondition")}}})]},proxy:!0}]),model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}})},OC=[];const MC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},Id={};var AC=Y(MC,DC,OC,!1,LC,null,null,null);function LC(e){for(let t in Id)this[t]=Id[t]}var PC=function(){return AC.exports}(),NC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-condition-bar"},e._l(e.searchFormFields,function(n,r){return i("div",{key:"item"+r,staticClass:"ind-mobile-condition-item"},[e._v(" "+e._s(e.searchForm[n.formKey]||n.title)+" ")])}),0)},BC=[];const FC={props:{searchForm:Object,searchFormFields:Array}},Ed={};var RC=Y(FC,NC,BC,!1,VC,null,null,null);function VC(e){for(let t in Ed)this[t]=Ed[t]}var zC=function(){return RC.exports}(),jC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-search ind-flex-no-shrink"},[i("SearchTop",{attrs:{value:e.searchVal,isFiltering:e.isFiltering,showFilter:e.showFilter},on:{input:function(n){return e.$emit("update:searchVal",n)},doSearch:function(n){return e.$emit("doSearchFilter",n)},showCondition:e.showCondition}}),e.showFilter?i("van-popup",{style:{width:"80%",marginTop:e.$config.searchPaddingTop||"0px",height:"calc(100vh - "+(e.$config.searchPaddingTop||"0px")+")",top:"calc(50% - "+(e.$config.searchPaddingTop/2||"0px")+")"},attrs:{position:"right",overlay:!e.$config.hideOverlay},model:{value:e.displayCondition,callback:function(n){e.displayCondition=n},expression:"displayCondition"}},[i("div",{staticClass:"ind-page-view ind-flex-column",staticStyle:{height:"100% !important"}},[i("IndMForm",{staticClass:"height100",staticStyle:{background:"var(--ind-white)"},attrs:{formType:"searchMobile",fieldList:e.fieldList},model:{value:e.searchForm,callback:function(n){e.searchForm=n},expression:"searchForm"}}),i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)],1)]):e._e()],1)},HC=[];const UC={components:{SearchTop:PC,ConditionBar:zC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!y.default.isEmpty(this.searchForm)}},watch:{value:{handler:function(){this.searchForm=this.value},deep:!0}},methods:{showCondition(){this.displayCondition=!0},cancel(){this.displayCondition=!1,this.$emit("cancel")},confirm(){this.displayCondition=!1,this.$emit("doSearch",this.searchForm)}}},Dd={};var KC=Y(UC,jC,HC,!1,WC,null,null,null);function WC(e){for(let t in Dd)this[t]=Dd[t]}var Od=function(){return KC.exports}(),YC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-popup",{style:{width:"100%",height:"100%"},attrs:{value:e.show,position:"right","lazy-render":!0,"get-container":"body"},on:{opened:e.getTableData}},[i("div",{staticClass:"ind-select-panel ind-vcenter",class:[e.isTree?"ind-mobile-tree":"",e.showHeader?"ind-select-panel-widthheader":""],staticStyle:{width:"100%",height:"100vh"},style:{paddingBottom:e.multiple&&!e.showHeader?"20px":"0"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u8BF7\u9009\u62E9"+e.title,"left-text":"","left-arrow":""},on:{"click-left":e.cancel}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[i("van-search",{staticClass:"ind-flex-no-shrink",staticStyle:{position:"relative","z-index":"3"},attrs:{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:e.doSearch},model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}}),i("IndTable",{ref:"table",attrs:{rowClick:"",rowBuffer:1e3,headerHeight:49,rowMultiSelectWithClick:e.multiple,isRowSelectable:e.isRowSelectable,groupSelectsChildren:e.multiple,showBottom:!1,dataApi:e.selectDataApi,searchParams:e.searchParams,columns:e.columnsData,rowKey:e.selectRowKey,showTableOption:!1,groupDefaultExpanded:3,disablePage:""},on:{"on-select-change":e.onSelectChange,"on-data-format-load":e.setLength}}),i("div",{staticClass:"ind-bottom-info ind-bottom-btn",style:{position:e.showHeader?"static":"absolute",bottom:0},attrs:{slot:"bottom"},slot:"bottom"},[e.multiple?i("div",{staticClass:"ind-flex"},[e._v(" \u5171\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.dataLen))]),e._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.selectedRows.length))]),e._v("\xA0\u6761 ")]):e._e(),i("div",{staticClass:"ind-flex ind-space-between",class:[e.multiple?"ind-mt":""]},[e.multiple?i("div",{staticClass:"ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark",staticStyle:{"margin-right":"20px"},style:{top:e.showHeader?"7px":""},on:{click:e.toggleCheckAll}},[i("div",{staticClass:"ag-checkbox-input-wrapper",class:e.allCheck?"ag-checked":""}),e._v(" \u5168\u9009 ")]):e._e(),i("div",{staticClass:"ind-flex",staticStyle:{width:"100%"}},[i("IndButton",{attrs:{bizType:"cancel"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)])])],1)],1)])},XC=[];function Md(e,t,i){Array.isArray(t)&&t.length&&y.default.forEach(t,(n,r)=>{let a=!1;if(typeof i=="function")try{const s=i(n,e,r);typeof s=="boolean"&&(a=s)}catch(s){console.error(s)}a||Md(n,n.children,i)})}const GC={props:{title:String,show:Boolean,value:Array,type:String,multiple:Boolean,options:Array,dataApi:Function,searchParams:Object,columns:Array,rowKey:String,defaultVisible:Boolean,showHeader:{type:Boolean,default:!1},enableSelectAll:Boolean},data(){return{loading:!1,searchVal:"",rows:[],selectRowKey:"",selectDataApi:null,columnsData:[],dataInited:!1,dataLen:0,allCheck:!1,selectedRows:[]}},created(){this.initConfig()},activited(){this.show&&(window.selectInst=this)},watch:{show(){window.selectInst=this},type(){this.initConfig()},multiple(){this.initConfig()},searchVal(){this.doSearch()},dataApi(){this.initConfig()},value:{handler:function(){this.setSelected()},deep:!0}},computed:{isTree(){return y.default.some(this.columnsData,e=>e.tree==!0)}},methods:{setLength(e){var t;if(this.isTree){let i=(e==null?void 0:e.data)||e,n=[];Md({},i,(r,a,s)=>{var o;(o=r==null?void 0:r.children)!=null&&o.length||n.push(r)}),this.dataLen=(n==null?void 0:n.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.data)==null?void 0:t.length)},toggleCheckAll(){this.allCheck?this.$refs.table.deselectAll():this.$refs.table.gridApi.selectAllFiltered()},isRowSelectable(e){return this.enableSelectAll||this.multiple||!this.multiple&&!(e.data.children&&e.data.children.length)},async initConfig(){if(this.dataInited=!1,!this.type){this.selectDataApi=this.dataApi,this.columnsData=this.columns,this.selectRowKey=this.rowKey,(this.defaultVisible||this.show)&&this.getTableData();return}const e={comTree:O.listComTreeApi,itemTree:O.listItemTreeApi};this.selectDataApi=e[this.type];const t={comTree:[{headerName:"\u5546\u4E1A\u516C\u53F8",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}],itemTree:[{headerName:"\u5377\u70DF\u89C4\u683C",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}]};this.columnsData=t[this.type];const i={comTree:"id",itemTree:"id"};this.selectRowKey=i[this.type],this.defaultVisible&&this.getTableData()},doSearch:y.default.debounce(function(){this.$refs.table.gridApi.setQuickFilter(this.searchVal),this.getFilteredData()},5),cancel(){this.$emit("update:show",!1)},confirm(){var t;let e=(t=this.$refs.table)==null?void 0:t.getSelection();this.$emit("input",e),this.$emit("update:show",!1)},getFilteredData(){var t;var e=[];if(this.$refs.table.gridApi.forEachNodeAfterFilterAndSort(function(i){e.push(i.data)}),this.isTree){let i=[];y.default.forEach(e,n=>{n.children.length===0&&i.push(n)}),this.dataLen=(i==null?void 0:i.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.filteredRows)==null?void 0:t.length)},getTableData(){if(console.log("getTableData",this.dataInited),this.dataInited){setTimeout(()=>{this.setSelected()},5);return}setTimeout(()=>{var e,t;this.dataInited=!0,(t=(e=this.$refs)==null?void 0:e.table)==null||t.tableRefresh(),this.setSelected()},5)},onSelectChange(e){var t,i,n,r;if(!this.multiple){let a=this.selectedRows.length,s=e.length;if(a===1&&s===0){(i=(t=this.$refs)==null?void 0:t.table)==null||i.setSelection(this.selectedRows,!0);return}else if(a===1&&s===2){let o=y.default.cloneDeep(e);y.default.remove(o,l=>y.default.some(this.selectedRows,c=>c[this.rowKey||"id"]==l[this.rowKey||"id"])),(r=(n=this.$refs)==null?void 0:n.table)==null||r.setSelection(o,!0);return}}this.isTree&&!this.enableSelectAll?this.selectedRows=y.default.filter(e,a=>{var s;return!((s=a==null?void 0:a.children)!=null&&s.length)}):this.selectedRows=e,this.allCheck=this.selectedRows.length==this.dataLen},async setSelected(){var e,t;await this.$nextTick(),(t=(e=this.$refs)==null?void 0:e.table)==null||t.setSelection(this.value,!this.multiple)}}},Ad={};var qC=Y(GC,YC,XC,!1,JC,null,null,null);function JC(e){for(let t in Ad)this[t]=Ad[t]}var Ld=function(){return qC.exports}(),ZC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.selectedTitles,title:e.selectedTitles,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},nativeOn:{click:function(n){return e.setVisible.apply(null,arguments)}}}),i("IndMSelectPanel",e._b({attrs:{defaultVisible:e.defaultVisible,title:e.title,multiple:e.showCheckbox||e.multiple,show:e.visible,value:e.value,type:e.type,dataApi:e.dataApiComp,columns:e.columnsComp,rowKey:e.rowKeyComp},on:{"update:show":function(n){e.visible=n},input:function(n){return e.$emit("input",n)}}},"IndMSelectPanel",Object.assign({},e.$attrs),!1))],1)},QC=[];const tx={inheritAttrs:!1,props:{title:String,type:{type:String,default:""},multiple:Boolean,options:Array,value:Array,defaultValue:Array,defaultVisible:Boolean,singleSel:Boolean,expandNode:Boolean,readonly:Boolean,showCheckbox:Boolean,expandAll:Boolean,defaultExpandLevel:Number,dataApi:Function,columns:Array,rowKey:String},data(){return{loading:!1,visible:!1,searchValue:"",selectedTitles:"",searchNum:0,inputIcon:"ios-arrow-forward"}},computed:{dataApiComp:function(){var e;return this.dataApi?this.dataApi:(e=this.options)!=null&&e.length?()=>Promise.resolve({data:this.options}):null},columnsComp:function(){return this.columns?this.columns:[{headerName:"\u9009\u62E9",minWidth:40,width:50,showDisabledCheckboxes:!0,type:this.multiple?"checkbox":"radio"},{headerName:"\u9009\u9879",minWidth:100,flex:1,field:"V",align:"left",showDisabledCheckboxes:!0}]},rowKeyComp:function(){var e;return this.rowKey?this.rowKey:(e=this.options)!=null&&e.length?"K":null}},created(){this.visible=this.defaultVisible,this.updateSelectedTitles()},deactivated(){this.visible=!1},watch:{value(){this.updateSelectedTitles()},options(){this.updateSelectedTitles()}},methods:{setVisible(){this.readonly||(this.visible=!0)},initSelectedTitles(e,t){this.updateSelectedTitles(t),this.loading=!1},onSelectChange(e){this.updateSelectedTitles(e),this.$emit("on-select-change",e),this.$emit("input",e),this.visible=!1},clearSelected(){this.selectedTitles=""},updateSearchNum(e){this.searchNum=e},updateSelectedTitles(){var i,n,r,a,s,o,l,c;let e=y.default.filter(this.value,h=>!h.children||h.children.length==0),t="title";((i=this.columnsComp)==null?void 0:i.length)>1?t=this.columnsComp[1].field:(n=this.options)!=null&&n.length&&(t="V"),console.log("textField is",t),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?(r=this.options)!=null&&r.length?((a=this.options.find(h=>h.K==e[0].K))==null?void 0:a.V)||((s=e[0])==null?void 0:s.V)||((o=e[0])==null?void 0:o.title):e[0][t]||((l=e[0])==null?void 0:l.V)||((c=e[0])==null?void 0:c.title):"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},Pd={};var ex=Y(tx,ZC,QC,!1,ix,null,null,null);function ix(e){for(let t in Pd)this[t]=Pd[t]}var Nd=function(){return ex.exports}(),nx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"item-select-btn-panel"},[e.multiple?i("div",{class:["ind-item-btn",e.allChecked?"checked":""],on:{click:e.toggleAll}},[e._v(" \u5168\u9009 ")]):e._e(),e._l(e.options,function(n,r){return i("div",{key:"item"+r,class:["ind-item-btn",!e.multiple&&e.value==n.K||e.multiple&&e.value&&e.value.includes(n.K)?"checked":""],on:{click:function(a){return e.toggle(n)}}},[e._v(" "+e._s(n.V)+" ")])})],2)},rx=[];const ax={props:{multiple:Boolean,options:Array,value:[String,Array]},data(){return{}},computed:{allChecked:function(){var e,t;return this.multiple&&((e=this.options)==null?void 0:e.length)==((t=this.value)==null?void 0:t.length)}},methods:{toggle(e){if(this.multiple){let t=y.default.cloneDeep(this.value);t.includes(e.K)?y.default.remove(t,i=>i==e.K):t.push(e.K),this.$emit("input",t)}else this.$emit("input",e.K==this.value?"":e.K)},toggleAll(){this.allChecked?this.$emit("input",[]):this.$emit("input",this.options.map(e=>e.K))}}},Bd={};var sx=Y(ax,nx,rx,!1,ox,null,null,null);function ox(e){for(let t in Bd)this[t]=Bd[t]}var Fd=function(){return sx.exports}(),lx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:""},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},cx=[];const ux={name:"IndMTabbar",components:{Tabbar:Bs,TabbarItem:Rs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(a=>a.extendProps).map(a=>({key:a.permissionId,parseResult:this.tryParseJson(a.extendProps)})).filter(a=>a.parseResult.success&&a.parseResult.result.hideInAppCenter).map(a=>a.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"){let a=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"});e=(a==null?void 0:a.children)||[]}let n=e.filter(a=>a.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(a.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Rd={};var hx=Y(ux,lx,cx,!1,dx,null,null,null);function dx(e){for(let t in Rd)this[t]=Rd[t]}var fx=function(){return hx.exports}(),px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:"","active-color":"var(--ind-m-van-swipe-dot-active-color)","inactive-color":"var(--ind-m-van-swipe-dot-color)"},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},mx=[];const vx={name:"IndMTabbar",components:{Tabbar:Bs,TabbarItem:Rs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(a=>a.extendProps).map(a=>({key:a.permissionId,parseResult:this.tryParseJson(a.extendProps)})).filter(a=>a.parseResult.success&&a.parseResult.result.hideInAppCenter).map(a=>a.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"){let a=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"});e=(a==null?void 0:a.children)||[]}let n=e.filter(a=>a.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(a.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Vd={};var gx=Y(vx,px,mx,!1,yx,null,null,null);function yx(e){for(let t in Vd)this[t]=Vd[t]}var bx=function(){return gx.exports}(),Sx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("tabOld"):i("tabNew")},Cx=[];const xx={components:{tabNew:bx,tabOld:fx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},zd={};var $x=Y(xx,Sx,Cx,!1,kx,null,null,null);function kx(e){for(let t in zd)this[t]=zd[t]}var ti=function(){return $x.exports}(),Tx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticClass:"app-page",staticStyle:{"padding-top":"0"}},[i("van-cell-group",{attrs:{title:"\u4E2A\u4EBA\u4FE1\u606F"}},[i("van-cell",{attrs:{title:"\u7528\u6237\u540D",value:e.user.userName}})],1),i("van-cell-group",{attrs:{title:"\u5E94\u7528"}},[i("van-cell",{attrs:{title:"\u540D\u79F0",value:e.app.name}}),i("van-cell",{attrs:{title:"\u7F16\u7801",value:e.app.appId}}),i("van-cell",{attrs:{title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{attrs:{title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}})],1),i("van-cell-group",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],attrs:{title:"v-permission=['1221001111']",value:e.app.version}}),i("van-cell",{attrs:{title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("tabbar")],1)],1)},_x=[];const Ix={components:{tabbar:ti},data(){return{app:{},user:{},message:"\u66F4\u591A\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u83B7\u53D6"}},mounted(){this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},jd={};var Ex=Y(Ix,Tx,_x,!1,Dx,null,null,null);function Dx(e){for(let t in jd)this[t]=jd[t]}var Ox=function(){return Ex.exports}(),Mx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-user-wrapper",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"40vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"home-bg",position:"center top",type:"TableData"}})],1),i("div",{staticClass:"ind-m-user-avatar-con"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar-img"},[i("van-image",{attrs:{round:"",width:"5rem",height:"5rem",fit:"cover",position:"center",src:e.user.avatar}})],1)]),i("div",{staticClass:"ind-m-user-avatar-con-name"},[e._v(e._s(e.user.userName))])]),i("IndMCard",{attrs:{title:"\u5E94\u7528\u4FE1\u606F"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"apps-o",title:"\u5E94\u7528\u540D\u79F0",value:e.app.name}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"qr",title:"\u5E94\u7528\u7F16\u7801",value:e.app.appId}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switch",title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switching",title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['1221001111']",value:e.app.version}})],1),i("IndMCard",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"setting-o",title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("IndMtabbar")],1)},Ax=[];const Lx={data(){return{app:{},user:{},isHb:!1}},mounted(){this.isHb=location.pathname.includes("scyxweb"),this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Hd={};var Px=Y(Lx,Mx,Ax,!1,Nx,null,null,null);function Nx(e){for(let t in Hd)this[t]=Hd[t]}var Bx=function(){return Px.exports}(),Fx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("userOld"):i("userNew")},Rx=[];const Vx={components:{userOld:Ox,userNew:Bx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Ud={};var zx=Y(Vx,Fx,Rx,!1,jx,null,null,null);function jx(e){for(let t in Ud)this[t]=Ud[t]}var zs=function(){return zx.exports}(),Hx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" "+e._s(e.title)+" ")])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,attrs:{to:n.uri}},[i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(n.meta.icon)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])])])}),1)],1)},Ux=[];const Kx={name:"IndMMyApps",data(){return{myAppList:[],title:"\u6211\u7684\u5E94\u7528"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList},methods:{getImg(e){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`}}},Kd={};var Wx=Y(Kx,Hx,Ux,!1,Yx,null,null,null);function Yx(e){for(let t in Kd)this[t]=Kd[t]}var js=function(){return Wx.exports}(),Xx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-app-item",on:{touchstart:function(n){return e.ontouchstart(e.item)},touchmove:function(n){return e.ontouchmove(e.item)},touchend:function(n){return e.ontouchend(e.item)},click:function(n){return e.ontouchend(e.item)}}},[e.editStatus=="minus"||e.editStatus=="plus"&&e.state?i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon)}}),i("van-badge",{staticClass:"ind-app-item-icon-imgbadge",attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:e.editStatus}})]},proxy:!0}],null,!1,1274909998)})],1)]):i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon)}})])]),i("div",{class:["ind-app-item-title",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])},Gx=[];const qx={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"}},computed:{iconSize:function(){var e,t,i,n;return(t=(e=this.$config)==null?void 0:e.systemDefaultConfig)!=null&&t.iconSize?`${(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n.iconSize}px`:"2.5rem"}},methods:{getImg(e){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},ontouchstart(e){e.move=!1},ontouchmove(e){e.move=!0},ontouchend(e){e.move||this.$emit("touchend",e)}}},Wd={};var Jx=Y(qx,Xx,Gx,!1,Zx,null,null,null);function Zx(e){for(let t in Wd)this[t]=Wd[t]}var ze=function(){return Jx.exports}(),Yd={exports:{}};/**!
13
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:hr(t.placement),variation:yh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ch(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ch(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var j0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:z0,data:{}};function H0(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!ye(a)||!Re(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function U0(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=s.reduce(function(l,c){return l[c]="",l},{});!ye(r)||!Re(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var K0={name:"applyStyles",enabled:!0,phase:"write",fn:H0,effect:U0,requires:["computeStyles"]},W0=[N0,F0,j0,K0],Y0=L0({defaultModifiers:W0});function X0(e,t,i){var n=hr(e),r=[hi,Li].indexOf(n)>=0?-1:1,a=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[hi,cn].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function G0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=p0.reduce(function(h,d){return h[d]=X0(d,t.rects,a),h},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var q0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G0},xh=$("popover"),J0=xh[0],fi=xh[1],Z0=J0({mixins:[os({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(zt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=Y0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},A({},q0,{options:{offset:this.offset}})]});return zt||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick(function(){!t.value||(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,i){var n=this,r=this.$createElement,a=t.icon,s=t.text,o=t.disabled,l=t.className;return r("div",{attrs:{role:"menuitem"},class:[fi("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(Z,{attrs:{name:a},class:fi("action-icon")}),r("div",{class:[fi("action-text"),qi]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,i){t.disabled||(this.$emit("select",t,i),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:fi("wrapper"),on:{click:this.onClickWrapper}},[t(Te,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:fi([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:fi("arrow")}),t("div",{class:fi("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),$h=$("progress"),Q0=$h[0],xs=$h[1],tw=Q0({mixins:[he(function(e){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],i=this.pivotText,n=this.percentage,r=i!=null?i:n+"%",a=this.showPivot&&r,s=this.inactive?"#cacaca":this.color,o={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},l={background:s,width:this.progressWidth*n/100+"px"},c={background:this.trackColor,height:st(this.strokeWidth)};return t("div",{class:xs(),style:c},[t("span",{class:xs("portion"),style:l},[a&&t("span",{ref:"pivot",style:o,class:xs("pivot")},[r])])])}}),$s=$("pull-refresh"),ew=$s[0],fr=$s[1],iw=$s[2],kh=50,nw=["pulling","loosing","success"],rw=ew({mixins:[ee],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:kh}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==kh)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=si(this.$el)},methods:{checkPullStart:function(t){this.ceiling=oi(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){!this.touchable||(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(It(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var i=+(this.pullDistance||this.headHeight);return t>i&&(t<i*2?t=i+(t-i)/2:t=i*1.5+(t-i*2)/4),Math.round(t)},setStatus:function(t,i){var n;i?n="loading":t===0?n="normal":n=t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,i=this.status,n=this.distance,r=this.slots(i,{distance:n});if(r)return r;var a=[],s=this[i+"Text"]||iw(i);return nw.indexOf(i)!==-1&&a.push(t("div",{class:fr("text")},[s])),i==="loading"&&a.push(t(de,{attrs:{size:"16"}},[s])),a},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],i={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:fr()},[t("div",{ref:"track",class:fr("track"),style:i},[t("div",{class:fr("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Th=$("rate"),aw=Th[0],pr=Th[1];function sw(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var ow=aw({mixins:[ee,We],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t=[],i=1;i<=this.count;i++)t.push(sw(this.value,i,this.allowHalf));return t},sizeWithUnit:function(){return st(this.size)},gutterWithUnit:function(){return st(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){!this.disabled&&!this.readonly&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var i=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(t);var n=this.$refs.items.map(function(a){return a.getBoundingClientRect()}),r=[];n.forEach(function(a,s){i.allowHalf?r.push({score:s+.5,left:a.left},{score:s+1,left:a.left+a.width/2}):r.push({score:s+1,left:a.left})}),this.ranges=r}},onTouchMove:function(t){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(t),this.direction==="horizontal")){It(t);var i=t.touches[0].clientX;this.select(this.getScoreByPosition(i))}},getScoreByPosition:function(t){for(var i=this.ranges.length-1;i>0;i--)if(t>this.ranges[i].left)return this.ranges[i].score;return this.allowHalf?.5:1},genStar:function(t,i){var n=this,r=this.$createElement,a=this.icon,s=this.color,o=this.count,l=this.voidIcon,c=this.disabled,h=this.voidColor,d=this.disabledColor,u=i+1,f=t==="full",p=t==="void",m;return this.gutterWithUnit&&u!==+o&&(m={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:i,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":u,"aria-checked":String(!p)},style:m,class:pr("item")},[r(Z,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:pr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(Z,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:pr("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(u-.5)}}})])}},render:function(){var t=this,i=arguments[0];return i("div",{class:pr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),_h=$("row"),lw=_h[0],cw=_h[1],uw=lw({mixins:[Ut("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(!!t){var i=[],n=[[]],r=0;return this.children.forEach(function(a,s){r+=Number(a.span),r>24?(n.push([s]),r-=24):n[n.length-1].push(s)}),n.forEach(function(a){var s=t*(a.length-1)/a.length;a.forEach(function(o,l){if(l===0)i.push({right:s});else{var c=t-i[o-1].right,h=s-c;i.push({left:c,right:h})}})}),i}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,i=arguments[0],n=this.align,r=this.justify,a=this.type==="flex";return i(this.tag,{class:cw((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),ks=$("search"),hw=ks[0],mr=ks[1],dw=ks[2];function Ih(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:mr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(at(n,"input",""),at(n,"cancel"))}return e("div",{class:mr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||dw("cancel")])}var s={attrs:n.data.attrs,on:A({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),at(n,"search",t.value)),at(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",et([{class:mr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:mr("content",t.shape)},[r(),e(ie,et([{attrs:{type:"search",border:!1,value:t.value,leftIcon:t.leftIcon,rightIcon:t.rightIcon,clearable:t.clearable,clearTrigger:t.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},s]))]),a()])}Ih.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var fw=hw(Ih),pw=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Ts=$("share-sheet"),mw=Ts[0],De=Ts[1],vw=Ts[2],gw=mw({props:A({},Nn,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,i){this.$emit("select",t,i)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return pw.indexOf(t)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,i=this.slots("title")||this.title,n=this.slots("description")||this.description;if(!(!i&&!n))return t("div",{class:De("header")},[i&&t("h2",{class:De("title")},[i]),n&&t("span",{class:De("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:De("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[De("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:De("icon")}),a.name&&r("span",{class:De("name")},[a.name]),a.description&&r("span",{class:De("option-description")},[a.description])])})])},genRows:function(){var t=this,i=this.options;return Array.isArray(i[0])?i.map(function(n,r){return t.genOptions(n,r!==0)}):this.genOptions(i)},genCancelText:function(){var t,i=this.$createElement,n=(t=this.cancelText)!=null?t:vw("cancel");if(n)return i("button",{attrs:{type:"button"},class:De("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(Te,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:De(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Eh=$("sidebar"),yw=Eh[0],bw=Eh[1],Dh=yw({mixins:[Ut("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:bw()},[this.slots()])}}),Oh=$("sidebar-item"),Sw=Oh[0],_s=Oh[1],Mh=Sw({mixins:[Ht("vanSidebar")],props:A({},Ke,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),ci(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:_s({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:_s("text")},[(t=this.slots("title"))!=null?t:this.title,n(li,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:_s("info")})])])}}),Ah=$("skeleton"),ww=Ah[0],un=Ah[1],Lh="100%",Cw="60%";function Ph(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:un("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===Lh&&d===+t.row-1?Cw:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:un("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:un("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",et([{class:un({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:un("content")},[r(),a()])])}Ph.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Lh}};var xw=ww(Ph),$w={"zh-CN":{vanSku:{select:"\u8BF7\u9009\u62E9",selected:"\u5DF2\u9009",selectSku:"\u8BF7\u5148\u9009\u62E9\u5546\u54C1\u89C4\u683C",soldout:"\u5E93\u5B58\u4E0D\u8DB3",originPrice:"\u539F\u4EF7",minusTip:"\u81F3\u5C11\u9009\u62E9\u4E00\u4EF6",minusStartTip:function(t){return t+"\u4EF6\u8D77\u552E"},unavailable:"\u5546\u54C1\u5DF2\u7ECF\u65E0\u6CD5\u8D2D\u4E70\u5566",stock:"\u5269\u4F59",stockUnit:"\u4EF6",quotaTip:function(t){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6"},quotaUsedTip:function(t,i){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6\uFF0C\u4F60\u5DF2\u8D2D\u4E70"+i+"\u4EF6"}},vanSkuActions:{buy:"\u7ACB\u5373\u8D2D\u4E70",addCart:"\u52A0\u5165\u8D2D\u7269\u8F66"},vanSkuImgUploader:{oversize:function(t){return"\u6700\u5927\u53EF\u4E0A\u4F20\u56FE\u7247\u4E3A"+t+"MB\uFF0C\u8BF7\u5C1D\u8BD5\u538B\u7F29\u56FE\u7247\u5C3A\u5BF8"},fail:"\u4E0A\u4F20\u5931\u8D25",uploading:"\u4E0A\u4F20\u4E2D..."},vanSkuStepper:{quotaLimit:function(t){return"\u9650\u8D2D"+t+"\u4EF6"},quotaStart:function(t){return t+"\u4EF6\u8D77\u552E"},comma:"\uFF0C",num:"\u8D2D\u4E70\u6570\u91CF"},vanSkuMessages:{fill:"\u8BF7\u586B\u5199",upload:"\u8BF7\u4E0A\u4F20",imageLabel:"\u4EC5\u9650\u4E00\u5F20",invalid:{tel:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u6570\u5B57\u683C\u5F0F\u7559\u8A00",mobile:"\u624B\u673A\u53F7\u957F\u5EA6\u4E3A6-20\u4F4D\u6570\u5B57",email:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u90AE\u7BB1",id_no:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},placeholder:{id_no:"\u8BF7\u586B\u5199\u8EAB\u4EFD\u8BC1\u53F7",text:"\u8BF7\u586B\u5199\u7559\u8A00",tel:"\u8BF7\u586B\u5199\u6570\u5B57",email:"\u8BF7\u586B\u5199\u90AE\u7BB1",date:"\u8BF7\u9009\u62E9\u65E5\u671F",time:"\u8BF7\u9009\u62E9\u65F6\u95F4",textarea:"\u8BF7\u586B\u5199\u7559\u8A00",mobile:"\u8BF7\u586B\u5199\u624B\u673A\u53F7"}},vanSkuRow:{multiple:"\u53EF\u591A\u9009"},vanSkuDatetimeField:{title:{date:"\u9009\u62E9\u5E74\u6708\u65E5",time:"\u9009\u62E9\u65F6\u95F4",datetime:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4"},format:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206"}}}},vr={QUOTA_LIMIT:0,STOCK_LIMIT:1},pi="",kw={LIMIT_TYPE:vr,UNSELECTED_SKU_VALUE_ID:pi},Nh=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},Tw=function(t){var i={};return t.forEach(function(n){var r={};n.v.forEach(function(a){r[a.id]=a}),i[n.k_id]=r}),i},Bh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==pi});return t.length===n.length},Fh=function(t,i){var n=t.filter(function(r){return Object.keys(i).every(function(a){return String(r[a])===String(i[a])})});return n[0]},Rh=function(t,i){var n=Nh(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==pi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},Is=function(t,i,n){var r,a=n.key,s=n.valueId,o=A({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==pi}),c=t.filter(function(d){return l.every(function(u){return String(o[u])===String(d[u])})}),h=c.reduce(function(d,u){return d+=u.stock_num,d},0);return h>0},Vh=function(t,i){var n=Tw(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(A({},n[a][s]))}),r},[])},zh=function(t,i){var n=[];return(t||[]).forEach(function(r){if(i[r.k_id]&&i[r.k_id].length>0){var a=[];r.v.forEach(function(s){i[r.k_id].indexOf(s.id)>-1&&a.push(A({},s))}),n.push(A({},r,{v:a}))}}),n},_w={normalizeSkuTree:Nh,getSkuComb:Fh,getSelectedSkuValues:Rh,isAllSelected:Bh,isSkuChoosable:Is,getSelectedPropValues:Vh,getSelectedProperties:zh},jh=$("sku-header"),Iw=jh[0],Es=jh[1];function Ew(e,t){var i;return e.tree.some(function(n){var r=t[n.k_s];if(r&&n.v){var a=n.v.filter(function(o){return o.id===r})[0]||{},s=a.previewImgUrl||a.imgUrl||a.img_url;if(s)return i=A({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function Hh(e,t,i,n){var r,a=t.sku,s=t.goods,o=t.skuEventBus,l=t.selectedSku,c=t.showHeaderImage,h=c===void 0?!0:c,d=Ew(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",et([{class:[Es(),qi]},lt(n)]),[h&&e(Oi,{attrs:{fit:"cover",src:u},class:Es("img-wrap"),on:{click:f}},[(r=i["sku-header-image-extra"])==null?void 0:r.call(i)]),e("div",{class:Es("goods-info")},[i.default==null?void 0:i.default()])])}Hh.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Uh=Iw(Hh),Kh=$("sku-header-item"),Dw=Kh[0],Ow=Kh[1];function Mw(e,t,i,n){return e("div",et([{class:Ow()},lt(n)]),[i.default&&i.default()])}var gr=Dw(Mw),Ds=$("sku-row"),Aw=Ds[0],be=Ds[1],Lw=Ds[2],Os=Aw({mixins:[Ut("vanSkuRows"),he(function(e){this.scrollable&&this.$refs.scroller&&e(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,i=t.scroller,n=t.row,r=n.offsetWidth-i.offsetWidth;this.progress=i.scrollLeft/r},genTitle:function(){var t=this.$createElement;return t("div",{class:be("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:be("title-multiple")},["\uFF08",Lw("multiple"),"\uFF09"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var i={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return t("div",{class:be("indicator-wrapper")},[t("div",{class:be("indicator")},[t("div",{class:be("indicator-slider"),style:i})])])}},genContent:function(){var t=this.$createElement,i=this.slots();if(this.skuRow.largeImageMode){var n=[],r=[];return i.forEach(function(a,s){var o=Math.floor(s/3)%2===0?n:r;o.push(a)}),t("div",{class:be("scroller"),ref:"scroller"},[t("div",{class:be("row"),ref:"row"},[n]),r.length?t("div",{class:be("row")},[r]):null])}return i},centerItem:function(t){if(!(!this.skuRow.largeImageMode||!t)){var i=this.children,n=i===void 0?[]:i,r=this.$refs,a=r.scroller,s=r.row,o=n.find(function(h){return+h.skuValue.id==+t});if(a&&s&&o&&o.$el){var l=o.$el,c=l.offsetLeft-(a.offsetWidth-l.offsetWidth)/2;a.scrollLeft=c}}}},render:function(){var t=arguments[0];return t("div",{class:[be(),qi]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Pw=$("sku-row-item"),Nw=Pw[0],Wh=Nw({mixins:[Ht("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return this.disableSoldoutSku?Is(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",A({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",A({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(Oi,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],i=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?be("image-item"):be("item");return t("span",{class:[n,i?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(Z,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Bw=$("sku-row-prop-item"),Fw=Bw[0],Yh=Fw({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var t=this.selectedProp,i=this.skuKeyStr,n=this.skuValue;return t&&t[i]?t[i].indexOf(n.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",A({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),Xh=$("stepper"),Rw=Xh[0],yr=Xh[1],Vw=600,zw=200;function br(e,t){return String(e)===String(t)}var Gh=Rw({mixins:[We],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,i=(t=this.value)!=null?t:this.defaultValue,n=this.format(i);return br(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=st(this.inputWidth)),this.buttonSize&&(t.height=st(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){br(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);br(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return rc(String(t),!this.integer)},format:function(t){return this.allowEmpty&&t===""||(t=this.formatNumber(t),t=t===""?0:+t,t=ca(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),nt(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(nt(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}br(i,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"]){this.$emit("overlimit",t);return}var i=t==="minus"?-this.step:+this.step,n=this.format(ac(+this.currentValue,i));this.emitChange(n),this.$emit(t)},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var i=this.format(t.target.value);t.target.value=i,this.emitChange(i),this.$emit("blur",t),vc()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},zw)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},Vw))},onTouchEnd:function(t){!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress&&It(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,i=arguments[0],n=function(a){return{on:{click:function(o){o.preventDefault(),t.type=a,t.onChange()},touchstart:function(){t.type=a,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return i("div",{class:yr([this.theme])},[i("button",et([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:yr("minus",{disabled:this.minusDisabled})},n("minus")])),i("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:yr("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",et([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:yr("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),qh=$("sku-stepper"),jw=qh[0],Sr=qh[2],Hw=vr.QUOTA_LIMIT,Jh=vr.STOCK_LIMIT,Zh=jw({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Jh}},watch:{currentNum:function(t){var i=parseInt(t,10);i>=this.stepperMinLimit&&i<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",i)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t=this.quota-this.quotaUsed,i;return this.quota>0&&t<=this.stock?(i=t<0?0:t,this.limitType=Hw):(i=this.stock,this.limitType=Jh),i},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,i=t.quotaText,n=t.hideQuotaText;if(n)return"";var r="";if(i)r=i;else{var a=[];this.startSaleNum>1&&a.push(Sr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(Sr("quotaLimit",this.quota)),r=a.join(Sr("comma"))}return r}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var i=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(i),this.$emit("change",i)},checkState:function(t,i){this.currentNum<t||t>i?this.currentNum=t:this.currentNum>i&&(this.currentNum=i),this.skuEventBus.$emit("sku:stepperState",{valid:t<=i,min:t,max:i,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,i=arguments[0];return i("div",{class:"van-sku-stepper-stock"},[i("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Sr("num")]),i(Gh,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(r){t.currentNum=r}}}),!this.hideQuotaText&&this.quotaText&&i("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Uw(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function Qh(e){return Array.isArray(e)?e:[e]}function td(e,t){return new Promise(function(i){if(t==="file"){i(null);return}var n=new FileReader;n.onload=function(r){i(r.target.result)},t==="dataUrl"?n.readAsDataURL(e):t==="text"&&n.readAsText(e)})}function ed(e,t){return Qh(e).some(function(i){return i?Ti(t)?t(i):i.size>t:!1})}var Kw=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Ww(e){return Kw.test(e)}function id(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?Ww(e.url):e.content?e.content.indexOf("data:image")===0:!1}var nd=$("uploader"),Yw=nd[0],xt=nd[1],rd=Yw({inheritAttrs:!1,mixins:[We],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return st(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(t){return URL.revokeObjectURL(t)})},methods:{getDetail:function(t){return t===void 0&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var i=this,n=t.target.files;if(!(this.disabled||!n.length)){if(n=n.length===1?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r){this.resetInput();return}if(An(r)){r.then(function(a){a?i.readFile(a):i.readFile(n)}).catch(this.resetInput);return}}this.readFile(n)}},readFile:function(t){var i=this,n=ed(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map(function(a){return td(a,i.resultType)})).then(function(a){var s=t.map(function(o,l){var c={file:o,status:"",message:""};return a[l]&&(c.content=a[l]),c});i.onAfterRead(s,n)})}else td(t,this.resultType).then(function(a){var s={file:t,status:"",message:""};a&&(s.content=a),i.onAfterRead(s,n)})},onAfterRead:function(t,i){var n=this;this.resetInput();var r=t;if(i){var a=t;Array.isArray(t)?(a=[],r=[],t.forEach(function(o){o.file&&(ed(o.file,n.maxSize)?a.push(o):r.push(o))})):r=null,this.$emit("oversize",a,this.getDetail())}var s=Array.isArray(r)?Boolean(r.length):Boolean(r);s&&(this.$emit("input",[].concat(this.fileList,Qh(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,i){var n,r=this,a=(n=t.beforeDelete)!=null?n:this.beforeDelete;if(a){var s=a(t,this.getDetail(i));if(!s)return;if(An(s)){s.then(function(){r.deleteFile(t,i)}).catch(Xi);return}}this.deleteFile(t,i)},deleteFile:function(t,i){var n=this.fileList.slice(0);n.splice(i,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(i))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var i=this;if(!!this.previewFullImage){var n=this.fileList.filter(function(a){return id(a)}),r=n.map(function(a){return a.file&&!a.url&&a.status!=="failed"&&(a.url=URL.createObjectURL(a.file),i.urls.push(a.url)),a.url});this.imagePreview=hs(A({images:r,startPosition:n.indexOf(t),onClose:function(){i.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var i=this.$createElement,n=t.status,r=t.message;if(n==="uploading"||n==="failed"){var a=n==="failed"?i(Z,{attrs:{name:"close"},class:xt("mask-icon")}):i(de,{class:xt("loading")}),s=nt(r)&&r!=="";return i("div",{class:xt("mask")},[a,s&&i("div",{class:xt("mask-message")},[r])])}},genPreviewItem:function(t,i){var n,r=this,a,s,o=this.$createElement,l=(n=t.deletable)!=null?n:this.deletable,c=t.status!=="uploading"&&l,h=c&&o("div",{class:xt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(Z,{attrs:{name:"cross"},class:xt("preview-delete-icon")})]),d=this.slots("preview-cover",A({index:i},t)),u=d&&o("div",{class:xt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=id(t)?o(Oi,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:xt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:xt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(Z,{class:xt("file-icon"),attrs:{name:"description"}}),o("div",{class:[xt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:xt("preview"),on:{click:function(){r.$emit("click-preview",t,r.getDetail(i))}}},[m,this.genPreviewMask(t),h])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var i=this.slots(),n=this.readonly?null:t("input",{attrs:A({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:xt("input"),on:{change:this.onChange}});if(i)return t("div",{class:xt("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,n]);var r;if(this.previewSize){var a=this.previewSizeWithUnit;r={width:a,height:a}}return t("div",{directives:[{name:"show",value:this.showUpload}],class:xt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(Z,{attrs:{name:this.uploadIcon},class:xt("upload-icon")}),this.uploadText&&t("span",{class:xt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:xt()},[t("div",{class:xt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),ad=$("sku-img-uploader"),Xw=ad[0],Ms=ad[2],Gw=Xw({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){t?this.fileList=[{url:t,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(t){var i=this;t.status="uploading",t.message=Ms("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",i.$emit("input",n)}).catch(function(){t.status="failed",t.message=Ms("fail")})},onOversize:function(){this.$toast(Ms("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var t=this;this.customUpload&&this.customUpload().then(function(i){t.fileList.push({url:i}),t.$emit("input",i)})}},render:function(){var t=this,i=arguments[0];return i(rd,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:t.fileList,callback:function(r){t.fileList=r}}})}});function qw(e){return e?new Date(e.replace(/-/g,"/")):null}function Jw(e,t){if(t===void 0&&(t="date"),!e)return"";var i=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),a=i+"-"+gt(n)+"-"+gt(r);if(t==="datetime"){var s=e.getHours(),o=e.getMinutes();a+=" "+gt(s)+":"+gt(o)}return a}var sd=$("sku-datetime-field"),Zw=sd[0],od=sd[2],Qw=Zw({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=qw(t)||new Date;break}}},computed:{title:function(){return od("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=Jw(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=od("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ie,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[i(Te,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(Au,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),As=$("sku-messages"),tC=As[0],Pi=As[1],mi=As[2],ld=tC({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var i=this.messageConfig,n=i.initialMessages,r=n===void 0?{}:n;return(t||[]).map(function(a){return{value:r[a.name]||""}})},getType:function(t){return+t.multiple==1?"textarea":t.type==="id_no"?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(i,n){t["message_"+n]=i.value}),t},getCartMessages:function(){var t=this,i={};return this.messageValues.forEach(function(n,r){var a=t.messages[r];i[a.name]=n.value}),i},getPlaceholder:function(t){var i=+t.multiple==1?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[i]||mi("placeholder."+i)},validateMessages:function(){for(var t=this.messageValues,i=0;i<t.length;i++){var n=t[i].value,r=this.messages[i];if(n===""){if(String(r.required)==="1"){var a=mi(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!la(n))return mi("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return mi("invalid.mobile");if(r.type==="email"&&!Uw(n))return mi("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return mi("invalid.id_no")}}},getFormatter:function(t){return function(n){return t.type==="mobile"||t.type==="tel"?n.replace(/[^\d.]/g,""):n}},getExtraDesc:function(t){var i=this.$createElement,n=t.extraDesc;if(n)return i("div",{class:Pi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Ft,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Pi("image-cell-value")},class:Pi("image-cell")},[r(Gw,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),r("div",{class:Pi("image-cell-label")},[mi("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(Qw,{attrs:{label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}):r("div",{class:Pi("cell-block")},[r(ie,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t),border:!1},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),this.getExtraDesc(t)])}},render:function(){var t=arguments[0];return t("div",{class:Pi()},[this.messages.map(this.genMessage)])}}),Ls=$("sku-actions"),eC=Ls[0],iC=Ls[1],cd=Ls[2];function ud(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",et([{class:iC()},lt(n)]),[t.showAddCartBtn&&e(Lt,{attrs:{size:"large",type:"warning",text:t.addCartText||cd("addCart")},on:{click:r("sku:addCart")}}),e(Lt,{attrs:{size:"large",type:"danger",text:t.buyText||cd("buy")},on:{click:r("sku:buy")}})])}ud.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var hd=eC(ud),Ps=$("sku"),nC=Ps[0],rC=Ps[1],se=Ps[2],aC=vr.QUOTA_LIMIT,Se=nC({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var t=window.innerHeight-this.bodyOffsetTop;return{maxHeight:t+"px"}}},isSkuCombSelected:function(){var t=this;return this.hasSku&&!Bh(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(i){return i.is_necessary!==!1}).some(function(i){return(t.selectedProp[i.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(this.hasSku?t=Fh(this.skuList,this.selectedSku):t={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},t&&(t.properties=zh(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return Rh(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Vh(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(i){!i.v||i.v.forEach(function(n){var r=n.previewImgUrl||n.imgUrl||n.img_url;r&&t.indexOf(r)===-1&&t.push(r)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return t!==void 0?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,i=this.customStepperConfig.stockFormatter;return i?i(this.stock):[se("stock")+" ",t("span",{class:rC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+se("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return se("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===pi}).map(function(a){return a.k}),r=this.propList.filter(function(a){return(t.selectedProp[a.k_id]||[]).length<1}).map(function(a){return a.k});return se("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new _t.default;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,i=this.initialSku.selectedNum,n=i!=null?i:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(s){t.selectedSku[s.k_s]=pi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&Is(t.skuList,t.selectedSku,{key:o,valueId:l})&&(t.selectedSku[o]=l)});var i=this.selectedSkuValues;i.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:i[i.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,r=n===void 0?{}:n;this.propList.forEach(function(s){r[s.k_id]&&(t.selectedProp[s.k_id]=r[s.k_id])}),lg(this.selectedProp)&&this.propList.forEach(function(s){var o;if((s==null||(o=s.v)==null?void 0:o.length)>0){var l=s.v,c=s.k_id,h=l.some(function(u){return+u.price!=0});if(!h){var d=l.find(function(u){return u.text_status!==0});d&&(t.selectedProp[c]=[d.id])}}});var a=this.selectedPropValues;a.length>0&&this.$emit("sku-prop-selected",{propValue:a[a.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return se("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return se("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?A({},this.selectedSku,(i={},i[t.skuKeyStr]=pi,i)):A({},this.selectedSku,(n={},n[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var i,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=A({},this.selectedProp,(i={},i[t.skuKeyStr]=n,i)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var i=this,n=this.imageList,r=0,a=n[0];t&&t.imgUrl&&(this.imageList.some(function(o,l){return o===t.imgUrl?(r=l,!0):!1}),a=t.imgUrl);var s=A({},t,{index:r,imageList:this.imageList,indexImage:a});this.$emit("open-preview",s),this.previewOnClickImage&&hs({images:this.imageList,startPosition:r,onClose:function(){i.$emit("close-preview",s)}})},onOverLimit:function(t){var i=t.action,n=t.limitType,r=t.quota,a=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;if(s){s(t);return}i==="minus"?this.startSaleNum>1?wt(se("minusStartTip",this.startSaleNum)):wt(se("minusTip")):i==="plus"&&(n===aC?a>0?wt(se("quotaUsedTip",r,a)):wt(se("quotaTip",r)):wt(se("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:A({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var i=this.validateSku();i?wt(i):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(i){var n=i.skuRow||{},r=n.k_s;i.centerItem(t.initialSku[r])})}},render:function(){var t=this,i=arguments[0];if(!this.isSkuEmpty){var n=this.sku,r=this.skuList,a=this.goods,s=this.price,o=this.lazyLoad,l=this.originPrice,c=this.skuEventBus,h=this.selectedSku,d=this.selectedProp,u=this.selectedNum,f=this.stepperTitle,p=this.selectedSkuComb,m=this.showHeaderImage,v=this.disableSoldoutSku,w={price:s,originPrice:l,selectedNum:u,skuEventBus:c,selectedSku:h,selectedSkuComb:p},x=function(z){return t.slots(z,w)},E=x("sku-header")||i(Uh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[x("sku-header-image-extra")]),x("sku-header-price")||i("div",{class:"van-sku__goods-price"},[i("span",{class:"van-sku__price-symbol"},["\uFFE5"]),i("span",{class:"van-sku__price-num"},[s]),this.priceTag&&i("span",{class:"van-sku__price-tag"},[this.priceTag])]),x("sku-header-origin-price")||l&&i(gr,[se("originPrice")," \uFFE5",l]),!this.hideStock&&i(gr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(gr,[this.selectedText]),x("sku-header-extra")]),_=x("sku-group")||this.hasSkuOrAttr&&i("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return i(Os,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(z){return i(Wh,{attrs:{skuList:r,lazyLoad:o,skuValue:z,skuKeyStr:R.k_s,selectedSku:h,skuEventBus:c,disableSoldoutSku:v,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return i(Os,{attrs:{skuRow:R}},[R.v.map(function(z){return i(Yh,{attrs:{skuValue:z,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:z.text_status===0}})})])})]),T=x("sku-stepper")||i(Zh,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:c,selectedNum:u,stepperTitle:f,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(z){t.$emit("stepper-change",z)}}}),M=x("sku-messages")||i(ld,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),X=x("sku-actions")||i(hd,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(Te,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(z){t.show=z}}},[E,i("div",{class:"van-sku-body",style:this.bodyStyle},[x("sku-body-top"),_,x("extra-sku-group"),T,x("before-sku-messages"),M,x("after-sku-messages")]),x("sku-actions-top"),X])}}});oa.add($w),Se.SkuActions=hd,Se.SkuHeader=Uh,Se.SkuHeaderItem=gr,Se.SkuMessages=ld,Se.SkuStepper=Zh,Se.SkuRow=Os,Se.SkuRowItem=Wh,Se.SkuRowPropItem=Yh,Se.skuHelper=_w,Se.skuConstants=kw;var dd=$("slider"),sC=dd[0],wr=dd[1],fd=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},oC=sC({mixins:[ee,We],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),It(t,!0),this.touchMove(t),this.dragStatus="draging";var i=this.$el.getBoundingClientRect(),n=this.vertical?this.deltaY:this.deltaX,r=this.vertical?i.height:i.width,a=n/r*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+a:this.currentValue=this.startValue+a,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var i=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-i.top:t.clientX-i.left,r=this.vertical?i.height:i.width,a=+this.min+n/r*this.scope;if(this.range){var s=this.value,o=s[0],l=s[1],c=(o+l)/2;a<=c?o=a:l=a,a=[o,l]}this.startValue=this.value,this.updateValue(a,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=Ji(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),fd(t,this.value)||this.$emit("input",t),i&&!fd(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=At(t,i,n);var a=Math.round((t-i)/r)*r;return ac(i,a)}},render:function(){var t,i=this,n,r=arguments[0],a=this.vertical,s=a?"height":"width",o=a?"width":"height",l=(t={background:this.inactiveColor},t[o]=st(this.barHeight),t),c=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[1]-p[0])*100/w+"%":(p-m)*100/w+"%"},h=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[0]-m)*100/w+"%":null},d=(n={},n[s]=c(),n.left=this.vertical?null:h(),n.top=this.vertical?h():null,n.background=this.activeColor,n);this.dragStatus&&(d.transition="none");var u=function(p){var m=["left","right"],v=typeof p=="number",w=v?i.value[p]:i.value,x=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},E=function(){return v?"wrapper"+p:"wrapper"},_=function(){if(v){var M=i.slots(p===0?"left-button":"right-button",{value:w});if(M)return M}return i.slots("button")?i.slots("button"):r("div",{class:wr("button"),style:i.buttonStyle})};return r("div",{ref:E(),attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:wr(x()),on:{touchstart:function(){v&&(i.index=p)},click:function(M){return M.stopPropagation()}}},[_()])};return r("div",{style:l,class:wr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:wr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),pd=$("step"),lC=pd[0],Qe=pd[1],cC=lC({mixins:[Ht("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var t=this.parent,i=t.activeColor,n=t.inactiveColor,r=t.center,a=t.direction,s={background:this.status==="finish"?i:n};return r&&a==="vertical"&&(s.top="50%"),s},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,i=this.parent,n=i.activeIcon,r=i.iconPrefix,a=i.activeColor,s=i.finishIcon,o=i.inactiveIcon;if(this.active)return this.slots("active-icon")||t(Z,{class:Qe("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(Z,{class:Qe("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(Z,{class:Qe("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Qe("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,i=arguments[0],n=this.status,r=this.active,a=this.parent.direction;return i("div",{class:[pe,Qe([a,(t={},t[n]=n,t)])]},[i("div",{class:Qe("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Qe("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Qe("line"),style:this.lineStyle})])}}),md=$("steps"),uC=md[0],vd=md[1],hC=uC({mixins:[Ut("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:vd([this.direction])},[t("div",{class:vd("items")},[this.slots()])])}}),Ns=$("submit-bar"),dC=Ns[0],Oe=Ns[1],fC=Ns[2];function gd(e,t,i,n){var r=t.tip,a=t.price,s=t.tipIcon;function o(){if(typeof a=="number"){var c=(a/100).toFixed(t.decimalLength).split("."),h=t.decimalLength?"."+c[1]:"";return e("div",{style:{textAlign:t.textAlign?t.textAlign:""},class:Oe("text")},[e("span",[t.label||fC("label")]),e("span",{class:Oe("price")},[t.currency,e("span",{class:Oe("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:Oe("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:Oe("tip")},[s&&e(Z,{class:Oe("tip-icon"),attrs:{name:s}}),r&&e("span",{class:Oe("tip-text")},[r]),i.tip&&i.tip()])}return e("div",et([{class:Oe({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:Oe("bar")},[i.default&&i.default(),o(),i.button?i.button():e(Lt,{attrs:{round:!0,type:t.buttonType,text:t.loading?"":t.buttonText,color:t.buttonColor,loading:t.loading,disabled:t.disabled},class:Oe("button",t.buttonType),on:{click:function(){at(n,"submit")}}})])])}gd.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"\xA5"},buttonType:{type:String,default:"danger"}};var pC=dC(gd),yd=$("swipe-cell"),mC=yd[0],Cr=yd[1],bd=.15,vC=mC({mixins:[ee,os({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){if(this.$refs[t]){var i=this.$refs[t].getBoundingClientRect();return i.width}return 0},open:function(t){var i=t==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=i,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){if(!this.disabled&&(this.touchMove(t),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var i=!this.opened||this.deltaX*this.startOffset<0;i&&It(t,this.stopPropagation),this.offset=At(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var i=Math.abs(this.offset),n=this.opened?1-bd:bd,r=this.computedLeftWidth,a=this.computedRightWidth;a&&t==="right"&&i>a*n?this.open("right"):r&&t==="left"&&i>r*n?this.open("left"):this.close()},onClick:function(t){t===void 0&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,i){var n=this;return function(r){i&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,i=this.slots("left");if(i)return t("div",{ref:"left",class:Cr("left"),on:{click:this.getClickHandler("left",!0)}},[i])},genRightPart:function(){var t=this.$createElement,i=this.slots("right");if(i)return t("div",{ref:"right",class:Cr("right"),on:{click:this.getClickHandler("right",!0)}},[i])}},render:function(){var t=arguments[0],i={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Cr(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Cr("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Sd=$("switch-cell"),gC=Sd[0],yC=Sd[1];function wd(e,t,i,n){return e(Ft,et([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:yC([t.cellSize])},lt(n)]),[e(Yn,{props:A({},t),on:A({},n.listeners)})])}wd.props=A({},Ec,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var bC=gC(wd),Cd=$("tabbar"),SC=Cd[0],xd=Cd[1],Bs=SC({mixins:[Ut("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var i=function(){t.height=t.$refs.tabbar.getBoundingClientRect().height};i(),setTimeout(i,100)}},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(i,n){i.nameMatched=i.name===t.value||n===t.value})},triggerChange:function(t,i){var n=this;Jc({interceptor:this.beforeChange,args:[t],done:function(){n.$emit("input",t),n.$emit("change",t),i()}})},genTabbar:function(){var t,i=this.$createElement;return i("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Vn]=this.border,t),xd({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:xd("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),$d=$("tabbar-item"),wC=$d[0],Fs=$d[1],Rs=wC({mixins:[Ht("vanTabbar")],props:A({},Ke,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var t=this.parent.route;if(t&&"$route"in this){var i=this.to,n=this.$route,r=ue(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=nt(r.name)&&r.name===a.name;return o||l})}return this.nameMatched}},methods:{onClick:function(t){var i=this;this.active||this.parent.triggerChange(this.name||this.index,function(){ci(i.$router,i)}),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,i=this.slots("icon",{active:this.active});if(i)return i;if(this.icon)return t(Z,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var t,i=arguments[0],n=this.active,r=this.parent[n?"activeColor":"inactiveColor"];return i("div",{class:Fs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Fs("icon")},[this.genIcon(),i(li,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Fs("text")},[this.slots("default",{active:n})])])}}),kd=$("tree-select"),CC=kd[0],Ni=kd[1];function Td(e,t,i,n){var r=t.items,a=t.height,s=t.activeId,o=t.selectedIcon,l=t.mainActiveIndex,c=r[+l]||{},h=c.children||[],d=Array.isArray(s);function u(m){return d?s.indexOf(m)!==-1:s===m}var f=r.map(function(m){var v;return e(Mh,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Ni("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Ni("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var x=w.indexOf(m.id);x!==-1?w.splice(x,1):w.length<t.max&&w.push(m.id)}at(n,"update:active-id",w),at(n,"click-item",m),at(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(Z,{attrs:{name:o},class:Ni("selected")})])})}return e("div",et([{class:Ni(),style:{height:st(a)}},lt(n)]),[e(Dh,{class:Ni("nav"),attrs:{activeKey:l},on:{change:function(v){at(n,"update:main-active-index",v),at(n,"click-nav",v),at(n,"navclick",v)}}},[f]),e("div",{class:Ni("content")},[p()])])}Td.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var xC=CC(Td);function $C(e){var t=[Ng,by,Ey,dc,Oy,Lt,Wy,Gy,cb,Ft,ou,cu,mb,bb,Cb,kb,Ib,Db,Mb,Pb,zb,es,Yb,qb,Au,ft,aS,oS,cS,fS,ie,vS,Tc,ka,yS,wS,xS,Z,Oi,hs,AS,NS,li,RS,de,oa,zS,HS,ae,JS,Rl,QS,e0,n0,Ca,Z0,Te,tw,rw,Aa,Ma,ow,uw,fw,gw,Dh,Mh,xw,Se,oC,cC,Gh,hC,tu,pC,Ku,vC,Yu,Yn,bC,Jn,Bs,Rs,Ha,Gn,wt,xC,rd];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&$C(window.Vue);var kC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-login"},[i("div",{staticClass:"ind-login-con"},[i("div",{staticClass:"ind-panel"},[i("div",{staticClass:"ind-panel-title"},[e._v("\u6B22\u8FCE\u767B\u5F55")]),i("LoginForm",{ref:"login",attrs:{msg:e.msg,loading:e.loading},on:{"on-success-valid":e.handleSubmit}})],1)])])},TC=[];const _C={name:"IndMLogin",components:{LoginForm:Vv},data(){return{loading:!1,msg:""}},mounted(){O.clearSessionStorage();let e=this.$store.getters.getTheme;wi(e)},methods:{...dl(["handleLogin"]),async handleSubmit({userName:e,password:t,validCodeInput:i,validCodeId:n}){this.msg="",this.loading=!0;try{const r=await this.handleLogin({userName:e,password:t,validCodeId:n,validCodeInput:i});r?r.startsWith("http://")||r.startsWith("https://")?location.href=r:this.$router.push(r,()=>{this.loading=!1}):this.$router.push({name:Le.homeRouteName},()=>{this.loading=!1})}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return O.cryptor.encryptForLogin(O.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},_d={};var IC=Y(_C,kC,TC,!1,EC,null,null,null);function EC(e){for(let t in _d)this[t]=_d[t]}var Vs=function(){return IC.exports}(),DC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-search",{attrs:{"show-action":e.showFilter,placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:function(n){return e.$emit("doSearch",e.searchVal)}},scopedSlots:e._u([{key:"action",fn:function(){return[i("div",{class:["toggle-condition",e.isFiltering?"active":""],on:{click:function(n){return e.$emit("showCondition")}}})]},proxy:!0}]),model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}})},OC=[];const MC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},Id={};var AC=Y(MC,DC,OC,!1,LC,null,null,null);function LC(e){for(let t in Id)this[t]=Id[t]}var PC=function(){return AC.exports}(),NC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-condition-bar"},e._l(e.searchFormFields,function(n,r){return i("div",{key:"item"+r,staticClass:"ind-mobile-condition-item"},[e._v(" "+e._s(e.searchForm[n.formKey]||n.title)+" ")])}),0)},BC=[];const FC={props:{searchForm:Object,searchFormFields:Array}},Ed={};var RC=Y(FC,NC,BC,!1,VC,null,null,null);function VC(e){for(let t in Ed)this[t]=Ed[t]}var zC=function(){return RC.exports}(),jC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-search ind-flex-no-shrink"},[i("SearchTop",{attrs:{value:e.searchVal,isFiltering:e.isFiltering,showFilter:e.showFilter},on:{input:function(n){return e.$emit("update:searchVal",n)},doSearch:function(n){return e.$emit("doSearchFilter",n)},showCondition:e.showCondition}}),e.showFilter?i("van-popup",{style:{width:"80%",marginTop:e.$config.searchPaddingTop||"0px",height:"calc(100vh - "+(e.$config.searchPaddingTop||"0px")+")",top:"calc(50% - "+(e.$config.searchPaddingTop/2||"0px")+")"},attrs:{position:"right",overlay:!e.$config.hideOverlay},model:{value:e.displayCondition,callback:function(n){e.displayCondition=n},expression:"displayCondition"}},[i("div",{staticClass:"ind-page-view ind-flex-column",staticStyle:{height:"100% !important"}},[i("IndMForm",{staticClass:"height100",staticStyle:{background:"var(--ind-white)"},attrs:{formType:"searchMobile",fieldList:e.fieldList},model:{value:e.searchForm,callback:function(n){e.searchForm=n},expression:"searchForm"}}),i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)],1)]):e._e()],1)},HC=[];const UC={components:{SearchTop:PC,ConditionBar:zC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!y.default.isEmpty(this.searchForm)}},watch:{value:{handler:function(){this.searchForm=this.value},deep:!0}},methods:{showCondition(){this.displayCondition=!0},cancel(){this.displayCondition=!1,this.$emit("cancel")},confirm(){this.displayCondition=!1,this.$emit("doSearch",this.searchForm)}}},Dd={};var KC=Y(UC,jC,HC,!1,WC,null,null,null);function WC(e){for(let t in Dd)this[t]=Dd[t]}var Od=function(){return KC.exports}(),YC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-popup",{style:{width:"100%",height:"100%"},attrs:{value:e.show,position:"right","lazy-render":!0,"get-container":"body"},on:{opened:e.getTableData}},[i("div",{staticClass:"ind-select-panel ind-vcenter",class:[e.isTree?"ind-mobile-tree":"",e.showHeader?"ind-select-panel-widthheader":""],staticStyle:{width:"100%",height:"100vh"},style:{paddingBottom:e.multiple&&!e.showHeader?"20px":"0"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u8BF7\u9009\u62E9"+e.title,"left-text":"","left-arrow":""},on:{"click-left":e.cancel}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[i("van-search",{staticClass:"ind-flex-no-shrink",staticStyle:{position:"relative","z-index":"3"},attrs:{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:e.doSearch},model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}}),i("IndTable",{ref:"table",attrs:{rowClick:"",rowBuffer:1e3,headerHeight:49,rowMultiSelectWithClick:e.multiple,isRowSelectable:e.isRowSelectable,groupSelectsChildren:e.multiple,showBottom:!1,dataApi:e.selectDataApi,searchParams:e.searchParams,columns:e.columnsData,rowKey:e.selectRowKey,showTableOption:!1,groupDefaultExpanded:3,disablePage:""},on:{"on-select-change":e.onSelectChange,"on-data-format-load":e.setLength}}),i("div",{staticClass:"ind-bottom-info ind-bottom-btn",style:{position:e.showHeader?"static":"absolute",bottom:0},attrs:{slot:"bottom"},slot:"bottom"},[e.multiple?i("div",{staticClass:"ind-flex"},[e._v(" \u5171\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.dataLen))]),e._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.selectedRows.length))]),e._v("\xA0\u6761 ")]):e._e(),i("div",{staticClass:"ind-flex ind-space-between",class:[e.multiple?"ind-mt":""]},[e.multiple?i("div",{staticClass:"ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark",staticStyle:{"margin-right":"20px"},style:{top:e.showHeader?"7px":""},on:{click:e.toggleCheckAll}},[i("div",{staticClass:"ag-checkbox-input-wrapper",class:e.allCheck?"ag-checked":""}),e._v(" \u5168\u9009 ")]):e._e(),i("div",{staticClass:"ind-flex",staticStyle:{width:"100%"}},[i("IndButton",{attrs:{bizType:"cancel"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)])])],1)],1)])},XC=[];function Md(e,t,i){Array.isArray(t)&&t.length&&y.default.forEach(t,(n,r)=>{let a=!1;if(typeof i=="function")try{const s=i(n,e,r);typeof s=="boolean"&&(a=s)}catch(s){console.error(s)}a||Md(n,n.children,i)})}const GC={props:{title:String,show:Boolean,value:Array,type:String,multiple:Boolean,options:Array,dataApi:Function,searchParams:Object,columns:Array,rowKey:String,defaultVisible:Boolean,showHeader:{type:Boolean,default:!1},enableSelectAll:Boolean},data(){return{loading:!1,searchVal:"",rows:[],selectRowKey:"",selectDataApi:null,columnsData:[],dataInited:!1,dataLen:0,allCheck:!1,selectedRows:[]}},created(){this.initConfig()},activited(){this.show&&(window.selectInst=this)},watch:{show(){window.selectInst=this},type(){this.initConfig()},multiple(){this.initConfig()},searchVal(){this.doSearch()},dataApi(){this.initConfig()},value:{handler:function(){this.setSelected()},deep:!0}},computed:{isTree(){return y.default.some(this.columnsData,e=>e.tree==!0)}},methods:{setLength(e){var t;if(this.isTree){let i=(e==null?void 0:e.data)||e,n=[];Md({},i,(r,a,s)=>{var o;(o=r==null?void 0:r.children)!=null&&o.length||n.push(r)}),this.dataLen=(n==null?void 0:n.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.data)==null?void 0:t.length)},toggleCheckAll(){this.allCheck?this.$refs.table.deselectAll():this.$refs.table.gridApi.selectAllFiltered()},isRowSelectable(e){return this.enableSelectAll||this.multiple||!this.multiple&&!(e.data.children&&e.data.children.length)},async initConfig(){if(this.dataInited=!1,!this.type){this.selectDataApi=this.dataApi,this.columnsData=this.columns,this.selectRowKey=this.rowKey,(this.defaultVisible||this.show)&&this.getTableData();return}const e={comTree:O.listComTreeApi,itemTree:O.listItemTreeApi};this.selectDataApi=e[this.type];const t={comTree:[{headerName:"\u5546\u4E1A\u516C\u53F8",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}],itemTree:[{headerName:"\u5377\u70DF\u89C4\u683C",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}]};this.columnsData=t[this.type];const i={comTree:"id",itemTree:"id"};this.selectRowKey=i[this.type],this.defaultVisible&&this.getTableData()},doSearch:y.default.debounce(function(){this.$refs.table.gridApi.setQuickFilter(this.searchVal),this.getFilteredData()},5),cancel(){this.$emit("update:show",!1)},confirm(){var t;let e=(t=this.$refs.table)==null?void 0:t.getSelection();this.$emit("input",e),this.$emit("update:show",!1)},getFilteredData(){var t;var e=[];if(this.$refs.table.gridApi.forEachNodeAfterFilterAndSort(function(i){e.push(i.data)}),this.isTree){let i=[];y.default.forEach(e,n=>{n.children.length===0&&i.push(n)}),this.dataLen=(i==null?void 0:i.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.filteredRows)==null?void 0:t.length)},getTableData(){if(console.log("getTableData",this.dataInited),this.dataInited){setTimeout(()=>{this.setSelected()},5);return}setTimeout(()=>{var e,t;this.dataInited=!0,(t=(e=this.$refs)==null?void 0:e.table)==null||t.tableRefresh(),this.setSelected()},5)},onSelectChange(e){var t,i,n,r;if(!this.multiple){let a=this.selectedRows.length,s=e.length;if(a===1&&s===0){(i=(t=this.$refs)==null?void 0:t.table)==null||i.setSelection(this.selectedRows,!0);return}else if(a===1&&s===2){let o=y.default.cloneDeep(e);y.default.remove(o,l=>y.default.some(this.selectedRows,c=>c[this.rowKey||"id"]==l[this.rowKey||"id"])),(r=(n=this.$refs)==null?void 0:n.table)==null||r.setSelection(o,!0);return}}this.isTree&&!this.enableSelectAll?this.selectedRows=y.default.filter(e,a=>{var s;return!((s=a==null?void 0:a.children)!=null&&s.length)}):this.selectedRows=e,this.allCheck=this.selectedRows.length==this.dataLen},async setSelected(){var e,t;await this.$nextTick(),(t=(e=this.$refs)==null?void 0:e.table)==null||t.setSelection(this.value,!this.multiple)}}},Ad={};var qC=Y(GC,YC,XC,!1,JC,null,null,null);function JC(e){for(let t in Ad)this[t]=Ad[t]}var Ld=function(){return qC.exports}(),ZC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.selectedTitles,title:e.selectedTitles,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},nativeOn:{click:function(n){return e.setVisible.apply(null,arguments)}}}),i("IndMSelectPanel",e._b({attrs:{defaultVisible:e.defaultVisible,title:e.title,multiple:e.showCheckbox||e.multiple,show:e.visible,value:e.value,type:e.type,dataApi:e.dataApiComp,columns:e.columnsComp,rowKey:e.rowKeyComp,enableSelectAll:e.enableSelectAll},on:{"update:show":function(n){e.visible=n},input:function(n){return e.$emit("input",n)}}},"IndMSelectPanel",Object.assign({},e.$attrs),!1))],1)},QC=[];const tx={inheritAttrs:!1,props:{title:String,type:{type:String,default:""},multiple:Boolean,options:Array,value:Array,defaultValue:Array,defaultVisible:Boolean,singleSel:Boolean,expandNode:Boolean,readonly:Boolean,showCheckbox:Boolean,expandAll:Boolean,defaultExpandLevel:Number,dataApi:Function,columns:Array,rowKey:String,enableSelectAll:Boolean},data(){return{loading:!1,visible:!1,searchValue:"",selectedTitles:"",searchNum:0,inputIcon:"ios-arrow-forward"}},computed:{dataApiComp:function(){var e;return this.dataApi?this.dataApi:(e=this.options)!=null&&e.length?()=>Promise.resolve({data:this.options}):null},columnsComp:function(){return this.columns?this.columns:[{headerName:"\u9009\u62E9",minWidth:40,width:50,showDisabledCheckboxes:!0,type:this.multiple?"checkbox":"radio"},{headerName:"\u9009\u9879",minWidth:100,flex:1,field:"V",align:"left",showDisabledCheckboxes:!0}]},rowKeyComp:function(){var e;return this.rowKey?this.rowKey:(e=this.options)!=null&&e.length?"K":null}},created(){this.visible=this.defaultVisible,this.updateSelectedTitles()},deactivated(){this.visible=!1},watch:{value(){this.updateSelectedTitles()},options(){this.updateSelectedTitles()}},methods:{setVisible(){this.readonly||(this.visible=!0)},initSelectedTitles(e,t){this.updateSelectedTitles(t),this.loading=!1},onSelectChange(e){this.updateSelectedTitles(e),this.$emit("on-select-change",e),this.$emit("input",e),this.visible=!1},clearSelected(){this.selectedTitles=""},updateSearchNum(e){this.searchNum=e},updateSelectedTitles(){var i,n,r,a,s,o,l,c;let e=[];this.enableSelectAll?e=this.value:e=y.default.filter(this.value,h=>!h.children||h.children.length==0);let t="title";((i=this.columnsComp)==null?void 0:i.length)>1?t=this.columnsComp[1].field:(n=this.options)!=null&&n.length&&(t="V"),console.log("textField is",t),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?(r=this.options)!=null&&r.length?((a=this.options.find(h=>h.K==e[0].K))==null?void 0:a.V)||((s=e[0])==null?void 0:s.V)||((o=e[0])==null?void 0:o.title):e[0][t]||((l=e[0])==null?void 0:l.V)||((c=e[0])==null?void 0:c.title):"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},Pd={};var ex=Y(tx,ZC,QC,!1,ix,null,null,null);function ix(e){for(let t in Pd)this[t]=Pd[t]}var Nd=function(){return ex.exports}(),nx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"item-select-btn-panel"},[e.multiple?i("div",{class:["ind-item-btn",e.allChecked?"checked":""],on:{click:e.toggleAll}},[e._v(" \u5168\u9009 ")]):e._e(),e._l(e.options,function(n,r){return i("div",{key:"item"+r,class:["ind-item-btn",!e.multiple&&e.value==n.K||e.multiple&&e.value&&e.value.includes(n.K)?"checked":""],on:{click:function(a){return e.toggle(n)}}},[e._v(" "+e._s(n.V)+" ")])})],2)},rx=[];const ax={props:{multiple:Boolean,options:Array,value:[String,Array]},data(){return{}},computed:{allChecked:function(){var e,t;return this.multiple&&((e=this.options)==null?void 0:e.length)==((t=this.value)==null?void 0:t.length)}},methods:{toggle(e){if(this.multiple){let t=y.default.cloneDeep(this.value);t.includes(e.K)?y.default.remove(t,i=>i==e.K):t.push(e.K),this.$emit("input",t)}else this.$emit("input",e.K==this.value?"":e.K)},toggleAll(){this.allChecked?this.$emit("input",[]):this.$emit("input",this.options.map(e=>e.K))}}},Bd={};var sx=Y(ax,nx,rx,!1,ox,null,null,null);function ox(e){for(let t in Bd)this[t]=Bd[t]}var Fd=function(){return sx.exports}(),lx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:""},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},cx=[];const ux={name:"IndMTabbar",components:{Tabbar:Bs,TabbarItem:Rs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(a=>a.extendProps).map(a=>({key:a.permissionId,parseResult:this.tryParseJson(a.extendProps)})).filter(a=>a.parseResult.success&&a.parseResult.result.hideInAppCenter).map(a=>a.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"){let a=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"});e=(a==null?void 0:a.children)||[]}let n=e.filter(a=>a.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(a.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Rd={};var hx=Y(ux,lx,cx,!1,dx,null,null,null);function dx(e){for(let t in Rd)this[t]=Rd[t]}var fx=function(){return hx.exports}(),px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:"","active-color":"var(--ind-m-van-swipe-dot-active-color)","inactive-color":"var(--ind-m-van-swipe-dot-color)"},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},mx=[];const vx={name:"IndMTabbar",components:{Tabbar:Bs,TabbarItem:Rs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(a=>a.extendProps).map(a=>({key:a.permissionId,parseResult:this.tryParseJson(a.extendProps)})).filter(a=>a.parseResult.success&&a.parseResult.result.hideInAppCenter).map(a=>a.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"){let a=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"});e=(a==null?void 0:a.children)||[]}let n=e.filter(a=>a.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(a.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Vd={};var gx=Y(vx,px,mx,!1,yx,null,null,null);function yx(e){for(let t in Vd)this[t]=Vd[t]}var bx=function(){return gx.exports}(),Sx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("tabOld"):i("tabNew")},Cx=[];const xx={components:{tabNew:bx,tabOld:fx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},zd={};var $x=Y(xx,Sx,Cx,!1,kx,null,null,null);function kx(e){for(let t in zd)this[t]=zd[t]}var ti=function(){return $x.exports}(),Tx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticClass:"app-page",staticStyle:{"padding-top":"0"}},[i("van-cell-group",{attrs:{title:"\u4E2A\u4EBA\u4FE1\u606F"}},[i("van-cell",{attrs:{title:"\u7528\u6237\u540D",value:e.user.userName}})],1),i("van-cell-group",{attrs:{title:"\u5E94\u7528"}},[i("van-cell",{attrs:{title:"\u540D\u79F0",value:e.app.name}}),i("van-cell",{attrs:{title:"\u7F16\u7801",value:e.app.appId}}),i("van-cell",{attrs:{title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{attrs:{title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}})],1),i("van-cell-group",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],attrs:{title:"v-permission=['1221001111']",value:e.app.version}}),i("van-cell",{attrs:{title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("tabbar")],1)],1)},_x=[];const Ix={components:{tabbar:ti},data(){return{app:{},user:{},message:"\u66F4\u591A\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u83B7\u53D6"}},mounted(){this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},jd={};var Ex=Y(Ix,Tx,_x,!1,Dx,null,null,null);function Dx(e){for(let t in jd)this[t]=jd[t]}var Ox=function(){return Ex.exports}(),Mx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-user-wrapper",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"40vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"home-bg",position:"center top",type:"TableData"}})],1),i("div",{staticClass:"ind-m-user-avatar-con"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar-img"},[i("van-image",{attrs:{round:"",width:"5rem",height:"5rem",fit:"cover",position:"center",src:e.user.avatar}})],1)]),i("div",{staticClass:"ind-m-user-avatar-con-name"},[e._v(e._s(e.user.userName))])]),i("IndMCard",{attrs:{title:"\u5E94\u7528\u4FE1\u606F"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"apps-o",title:"\u5E94\u7528\u540D\u79F0",value:e.app.name}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"qr",title:"\u5E94\u7528\u7F16\u7801",value:e.app.appId}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switch",title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switching",title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['1221001111']",value:e.app.version}})],1),i("IndMCard",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"setting-o",title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("IndMtabbar")],1)},Ax=[];const Lx={data(){return{app:{},user:{},isHb:!1}},mounted(){this.isHb=location.pathname.includes("scyxweb"),this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Hd={};var Px=Y(Lx,Mx,Ax,!1,Nx,null,null,null);function Nx(e){for(let t in Hd)this[t]=Hd[t]}var Bx=function(){return Px.exports}(),Fx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("userOld"):i("userNew")},Rx=[];const Vx={components:{userOld:Ox,userNew:Bx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Ud={};var zx=Y(Vx,Fx,Rx,!1,jx,null,null,null);function jx(e){for(let t in Ud)this[t]=Ud[t]}var zs=function(){return zx.exports}(),Hx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" "+e._s(e.title)+" ")])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,attrs:{to:n.uri}},[i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(n.meta.icon)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])])])}),1)],1)},Ux=[];const Kx={name:"IndMMyApps",data(){return{myAppList:[],title:"\u6211\u7684\u5E94\u7528"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList},methods:{getImg(e){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`}}},Kd={};var Wx=Y(Kx,Hx,Ux,!1,Yx,null,null,null);function Yx(e){for(let t in Kd)this[t]=Kd[t]}var js=function(){return Wx.exports}(),Xx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-app-item",on:{touchstart:function(n){return e.ontouchstart(e.item)},touchmove:function(n){return e.ontouchmove(e.item)},touchend:function(n){return e.ontouchend(e.item)},click:function(n){return e.ontouchend(e.item)}}},[e.editStatus=="minus"||e.editStatus=="plus"&&e.state?i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon)}}),i("van-badge",{staticClass:"ind-app-item-icon-imgbadge",attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:e.editStatus}})]},proxy:!0}],null,!1,1274909998)})],1)]):i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon)}})])]),i("div",{class:["ind-app-item-title",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])},Gx=[];const qx={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"}},computed:{iconSize:function(){var e,t,i,n;return(t=(e=this.$config)==null?void 0:e.systemDefaultConfig)!=null&&t.iconSize?`${(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n.iconSize}px`:"2.5rem"}},methods:{getImg(e){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},ontouchstart(e){e.move=!1},ontouchmove(e){e.move=!0},ontouchend(e){e.move||this.$emit("touchend",e)}}},Wd={};var Jx=Y(qx,Xx,Gx,!1,Zx,null,null,null);function Zx(e){for(let t in Wd)this[t]=Wd[t]}var ze=function(){return Jx.exports}(),Yd={exports:{}};/**!
14
14
  * Sortable 1.10.2
15
15
  * @author RubaXa <trash@rubaxa.org>
16
16
  * @author owenm <owen23355@gmail.com>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/common-mobile",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"