@indfnd/common-mobile 0.1.0 → 1.0.0
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,20 @@
|
|
|
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.0](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.121...v1.0.0) (2025-12-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 应用广场样式;查询条件弹窗增加searchPaddingTop配置项 ([20435ce](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/20435ce8030e51b9b13b2654181df6726f332dcc))
|
|
11
|
+
|
|
12
|
+
### [0.0.121](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.1.0...v0.0.121) (2025-12-26)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 应用广场样式;查询条件弹窗增加searchPaddingTop配置项 ([c0185bc](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c0185bc2e4459fc577a026d62eb817486c01df14))
|
|
18
|
+
|
|
5
19
|
## [0.1.0](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.120...v0.1.0) (2025-12-26)
|
|
6
20
|
|
|
7
21
|
### [0.0.120](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.119...v0.0.120) (2025-12-26)
|
|
@@ -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 = "0.0.
|
|
6
|
+
const version$2 = "0.0.121";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@ const scripts$1 = {
|
|
|
38
38
|
build: "yarn build:prod && yarn build:style",
|
|
39
39
|
"type-check": "vue-tsc --noEmit -p tsconfig.check.json --composite false",
|
|
40
40
|
dts: "vue-tsc -p tsconfig.types.json",
|
|
41
|
-
release: "node build/auto-build.js && yarn release-
|
|
41
|
+
release: "node build/auto-build.js && yarn release-major && git push --follow-tags && yarn re-publish",
|
|
42
42
|
"release-major": "standard-version --release-as major",
|
|
43
43
|
"release-minor": "standard-version --release-as minor",
|
|
44
44
|
"release-patch": "standard-version --release-as patch",
|
|
@@ -22468,10 +22468,11 @@ var render$f = function() {
|
|
|
22468
22468
|
}, "showCondition": _vm.showCondition } }), _vm.showFilter ? _c("van-popup", { style: {
|
|
22469
22469
|
width: "80%",
|
|
22470
22470
|
marginTop: _vm.$config.searchPaddingTop || "0px",
|
|
22471
|
-
height: "calc(
|
|
22472
|
-
|
|
22471
|
+
height: "calc(100vh - " + (_vm.$config.searchPaddingTop || "0px") + ")",
|
|
22472
|
+
top: "calc(100vh - " + (_vm.$config.searchPaddingTop / 2 || "0px") + ")"
|
|
22473
|
+
}, attrs: { "position": "right", "overlay": !_vm.$config.hideOverlay }, model: { value: _vm.displayCondition, callback: function($$v) {
|
|
22473
22474
|
_vm.displayCondition = $$v;
|
|
22474
|
-
}, expression: "displayCondition" } }, [_c("div", { staticClass: "ind-page-view ind-flex-column", staticStyle: { "height": "
|
|
22475
|
+
}, expression: "displayCondition" } }, [_c("div", { staticClass: "ind-page-view ind-flex-column", staticStyle: { "height": "100% !important" } }, [_c("IndMForm", { staticClass: "height100", staticStyle: { "background": "var(--ind-white)" }, attrs: { "formType": "searchMobile", "fieldList": _vm.fieldList }, model: { value: _vm.searchForm, callback: function($$v) {
|
|
22475
22476
|
_vm.searchForm = $$v;
|
|
22476
22477
|
}, expression: "searchForm" } }), _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1)], 1)]) : _vm._e()], 1);
|
|
22477
22478
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Y,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(Y=typeof globalThis!="undefined"?globalThis:Y||self,ji(Y.IndMobileCommon={},Y.lodash,Y["@indfnd/utils"],Y.vue,Y["view-design"]))})(this,function(Y,ji,N,Wf,$e){"use strict";function _o(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=_o(ji),Tt=_o(Wf),Yf={name:"@indfnd/common-mobile",version:"0.0.120",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-minor && 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.26",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"}},Xf=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)},qf=[];function at(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 Gf={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)}}},Eo={};var Jf=at(Gf,Xf,qf,!1,Zf,null,null,null);function Zf(e){for(let t in Eo)this[t]=Eo[t]}var Qf=function(){return Jf.exports}(),tp=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))])])])])},ep=[];const ip={name:"IndErrorContent",components:{BackBtnGroup:Qf},props:{code:String,desc:String,src:String}},Do={};var np=at(ip,tp,ep,!1,rp,null,null,null);function rp(e){for(let t in Do)this[t]=Do[t]}var Jr=function(){return np.exports}(),ap=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}})},sp=[];const op={name:"IndNotFound",components:{ErrorContent:Jr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var lp=at(op,ap,sp,!1,cp,null,null,null);function cp(e){for(let t in Oo)this[t]=Oo[t]}var zi=function(){return lp.exports}(),Mo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(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 Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Mo,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,k={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(F){var T=["th","st","nd","rd"],g=F%100;return"["+F+(T[(g-20)%10]||T[g]||T[0])+"]"}},_=function(F,T,g){var I=String(F);return!I||I.length>=T?F:""+Array(T+1-I.length).join(g)+F},x={s:_,z:function(F){var T=-F.utcOffset(),g=Math.abs(T),I=Math.floor(g/60),E=g%60;return(T<=0?"+":"-")+_(I,2,"0")+":"+_(E,2,"0")},m:function F(T,g){if(T.date()<g.date())return-F(g,T);var I=12*(g.year()-T.year())+(g.month()-T.month()),E=T.clone().add(I,d),j=g-E<0,z=T.clone().add(I+(j?-1:1),d);return+(-(I+(g-E)/(j?E-z:z-E))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},D="en",A={};A[D]=k;var W="$isDayjsObject",R=function(F){return F instanceof et||!(!F||!F[W])},V=function F(T,g,I){var E;if(!T)return D;if(typeof T=="string"){var j=T.toLowerCase();A[j]&&(E=j),g&&(A[j]=g,E=j);var z=T.split("-");if(!E&&z.length>1)return F(z[0])}else{var S=T.name;A[S]=T,E=S}return!I&&E&&(D=E),E||!I&&D},P=function(F,T){if(R(F))return F.clone();var g=typeof T=="object"?T:{};return g.date=F,g.args=arguments,new et(g)},M=x;M.l=V,M.i=R,M.w=function(F,T){return P(F,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var et=function(){function F(g){this.$L=V(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[W]=!0}var T=F.prototype;return T.parse=function(g){this.$d=function(I){var E=I.date,j=I.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var z=E.match(v);if(z){var S=z[2]-1||0,y=(z[7]||"0").substring(0,3);return j?new Date(Date.UTC(z[1],S,z[3]||1,z[4]||0,z[5]||0,z[6]||0,y)):new Date(z[1],S,z[3]||1,z[4]||0,z[5]||0,z[6]||0,y)}}return new Date(E)}(g),this.init()},T.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()},T.$utils=function(){return M},T.isValid=function(){return this.$d.toString()!==m},T.isSame=function(g,I){var E=P(g);return this.startOf(I)<=E&&E<=this.endOf(I)},T.isAfter=function(g,I){return P(g)<this.startOf(I)},T.isBefore=function(g,I){return this.endOf(I)<P(g)},T.$g=function(g,I,E){return M.u(g)?this[I]:this.set(E,g)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(g,I){var E=this,j=!!M.u(I)||I,z=M.p(g),S=function(kt,xt){var Me=M.w(E.$u?Date.UTC(E.$y,xt,kt):new Date(E.$y,xt,kt),E);return j?Me:Me.endOf(c)},y=function(kt,xt){return M.w(E.toDate()[kt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),E)},C=this.$W,B=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(z){case f:return j?S(1,0):S(31,11);case d:return j?S(1,B):S(0,B+1);case h:var Q=this.$locale().weekStart||0,ct=(C<Q?C+7:C)-Q;return S(j?U-ct:U+(6-ct),B);case c:case p:return y(X+"Hours",0);case l:return y(X+"Minutes",1);case o:return y(X+"Seconds",2);case s:return y(X+"Milliseconds",3);default:return this.clone()}},T.endOf=function(g){return this.startOf(g,!1)},T.$set=function(g,I){var E,j=M.p(g),z="set"+(this.$u?"UTC":""),S=(E={},E[c]=z+"Date",E[p]=z+"Date",E[d]=z+"Month",E[f]=z+"FullYear",E[l]=z+"Hours",E[o]=z+"Minutes",E[s]=z+"Seconds",E[a]=z+"Milliseconds",E)[j],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](y),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},T.set=function(g,I){return this.clone().$set(g,I)},T.get=function(g){return this[M.p(g)]()},T.add=function(g,I){var E,j=this;g=Number(g);var z=M.p(I),S=function(B){var U=P(j);return M.w(U.date(U.date()+Math.round(B*g)),j)};if(z===d)return this.set(d,this.$M+g);if(z===f)return this.set(f,this.$y+g);if(z===c)return S(1);if(z===h)return S(7);var y=(E={},E[o]=n,E[l]=r,E[s]=i,E)[z]||1,C=this.$d.getTime()+g*y;return M.w(C,this)},T.subtract=function(g,I){return this.add(-1*g,I)},T.format=function(g){var I=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),S=this.$H,y=this.$m,C=this.$M,B=E.weekdays,U=E.months,X=E.meridiem,Q=function(xt,Me,wn,Gr){return xt&&(xt[Me]||xt(I,j))||wn[Me].slice(0,Gr)},ct=function(xt){return M.s(S%12||12,xt,"0")},kt=X||function(xt,Me,wn){var Gr=xt<12?"AM":"PM";return wn?Gr.toLowerCase():Gr};return j.replace(w,function(xt,Me){return Me||function(wn){switch(wn){case"YY":return String(I.$y).slice(-2);case"YYYY":return M.s(I.$y,4,"0");case"M":return C+1;case"MM":return M.s(C+1,2,"0");case"MMM":return Q(E.monthsShort,C,U,3);case"MMMM":return Q(U,C);case"D":return I.$D;case"DD":return M.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return Q(E.weekdaysMin,I.$W,B,2);case"ddd":return Q(E.weekdaysShort,I.$W,B,3);case"dddd":return B[I.$W];case"H":return String(S);case"HH":return M.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return M.s(y,2,"0");case"s":return String(I.$s);case"ss":return M.s(I.$s,2,"0");case"SSS":return M.s(I.$ms,3,"0");case"Z":return z}return null}(xt)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(g,I,E){var j,z=this,S=M.p(I),y=P(g),C=(y.utcOffset()-this.utcOffset())*n,B=this-y,U=function(){return M.m(z,y)};switch(S){case f:j=U()/12;break;case d:j=U();break;case u:j=U()/3;break;case h:j=(B-C)/6048e5;break;case c:j=(B-C)/864e5;break;case l:j=B/r;break;case o:j=B/n;break;case s:j=B/i;break;default:j=B}return E?j:M.a(j)},T.daysInMonth=function(){return this.endOf(d).$D},T.$locale=function(){return A[this.$L]},T.locale=function(g,I){if(!g)return this.$L;var E=this.clone(),j=V(g,I,!0);return j&&(E.$L=j),E},T.clone=function(){return M.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},F}(),ot=et.prototype;return P.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(F){ot[F[1]]=function(T){return this.$g(T,F[0],F[1])}}),P.extend=function(F,T){return F.$i||(F(T,et,P),F.$i=!0),P},P.locale=V,P.isDayjs=R,P.unix=function(F){return P(1e3*F)},P.en=A[D],P.Ls=A,P.p={},P})})(Lo);var yi=Lo.exports,dp=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)},fp=[];const Ao=new Date().getFullYear(),No=new Date().getMonth()+1,pp=`Q${N.getQuarterNum(No)}`,mp=`H${N.getHalfYearNum(No)}`,Po=10,Bo=10,vp={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?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ao+pp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;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:Ao+mp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;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?yi(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?N.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(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}}},Ro={};var gp=at(vp,dp,fp,!1,yp,null,null,null);function yp(e){for(let t in Ro)this[t]=Ro[t]}var Fo=function(){return gp.exports}();function Zr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function bp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Sp(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 Qr(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Sp(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=>Qr(l)):o=[Qr(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return Qr(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 Cp=!1;var je=N.useConfig(Cp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},xp=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},$p=(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},Vo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},kp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(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=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Tp=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={exports:{}};/*!
|
|
1
|
+
(function(Y,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(Y=typeof globalThis!="undefined"?globalThis:Y||self,ji(Y.IndMobileCommon={},Y.lodash,Y["@indfnd/utils"],Y.vue,Y["view-design"]))})(this,function(Y,ji,N,Wf,$e){"use strict";function _o(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=_o(ji),Tt=_o(Wf),Yf={name:"@indfnd/common-mobile",version:"0.0.121",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-major && 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.26",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"}},Xf=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)},qf=[];function at(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 Gf={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)}}},Eo={};var Jf=at(Gf,Xf,qf,!1,Zf,null,null,null);function Zf(e){for(let t in Eo)this[t]=Eo[t]}var Qf=function(){return Jf.exports}(),tp=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))])])])])},ep=[];const ip={name:"IndErrorContent",components:{BackBtnGroup:Qf},props:{code:String,desc:String,src:String}},Do={};var np=at(ip,tp,ep,!1,rp,null,null,null);function rp(e){for(let t in Do)this[t]=Do[t]}var Jr=function(){return np.exports}(),ap=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}})},sp=[];const op={name:"IndNotFound",components:{ErrorContent:Jr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var lp=at(op,ap,sp,!1,cp,null,null,null);function cp(e){for(let t in Oo)this[t]=Oo[t]}var zi=function(){return lp.exports}(),Mo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(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 Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Mo,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,k={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(F){var T=["th","st","nd","rd"],g=F%100;return"["+F+(T[(g-20)%10]||T[g]||T[0])+"]"}},_=function(F,T,g){var I=String(F);return!I||I.length>=T?F:""+Array(T+1-I.length).join(g)+F},x={s:_,z:function(F){var T=-F.utcOffset(),g=Math.abs(T),I=Math.floor(g/60),E=g%60;return(T<=0?"+":"-")+_(I,2,"0")+":"+_(E,2,"0")},m:function F(T,g){if(T.date()<g.date())return-F(g,T);var I=12*(g.year()-T.year())+(g.month()-T.month()),E=T.clone().add(I,d),j=g-E<0,z=T.clone().add(I+(j?-1:1),d);return+(-(I+(g-E)/(j?E-z:z-E))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},D="en",A={};A[D]=k;var W="$isDayjsObject",R=function(F){return F instanceof et||!(!F||!F[W])},V=function F(T,g,I){var E;if(!T)return D;if(typeof T=="string"){var j=T.toLowerCase();A[j]&&(E=j),g&&(A[j]=g,E=j);var z=T.split("-");if(!E&&z.length>1)return F(z[0])}else{var S=T.name;A[S]=T,E=S}return!I&&E&&(D=E),E||!I&&D},P=function(F,T){if(R(F))return F.clone();var g=typeof T=="object"?T:{};return g.date=F,g.args=arguments,new et(g)},M=x;M.l=V,M.i=R,M.w=function(F,T){return P(F,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var et=function(){function F(g){this.$L=V(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[W]=!0}var T=F.prototype;return T.parse=function(g){this.$d=function(I){var E=I.date,j=I.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var z=E.match(v);if(z){var S=z[2]-1||0,y=(z[7]||"0").substring(0,3);return j?new Date(Date.UTC(z[1],S,z[3]||1,z[4]||0,z[5]||0,z[6]||0,y)):new Date(z[1],S,z[3]||1,z[4]||0,z[5]||0,z[6]||0,y)}}return new Date(E)}(g),this.init()},T.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()},T.$utils=function(){return M},T.isValid=function(){return this.$d.toString()!==m},T.isSame=function(g,I){var E=P(g);return this.startOf(I)<=E&&E<=this.endOf(I)},T.isAfter=function(g,I){return P(g)<this.startOf(I)},T.isBefore=function(g,I){return this.endOf(I)<P(g)},T.$g=function(g,I,E){return M.u(g)?this[I]:this.set(E,g)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(g,I){var E=this,j=!!M.u(I)||I,z=M.p(g),S=function(kt,xt){var Me=M.w(E.$u?Date.UTC(E.$y,xt,kt):new Date(E.$y,xt,kt),E);return j?Me:Me.endOf(c)},y=function(kt,xt){return M.w(E.toDate()[kt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),E)},C=this.$W,B=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(z){case f:return j?S(1,0):S(31,11);case d:return j?S(1,B):S(0,B+1);case h:var Q=this.$locale().weekStart||0,ct=(C<Q?C+7:C)-Q;return S(j?U-ct:U+(6-ct),B);case c:case p:return y(X+"Hours",0);case l:return y(X+"Minutes",1);case o:return y(X+"Seconds",2);case s:return y(X+"Milliseconds",3);default:return this.clone()}},T.endOf=function(g){return this.startOf(g,!1)},T.$set=function(g,I){var E,j=M.p(g),z="set"+(this.$u?"UTC":""),S=(E={},E[c]=z+"Date",E[p]=z+"Date",E[d]=z+"Month",E[f]=z+"FullYear",E[l]=z+"Hours",E[o]=z+"Minutes",E[s]=z+"Seconds",E[a]=z+"Milliseconds",E)[j],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](y),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},T.set=function(g,I){return this.clone().$set(g,I)},T.get=function(g){return this[M.p(g)]()},T.add=function(g,I){var E,j=this;g=Number(g);var z=M.p(I),S=function(B){var U=P(j);return M.w(U.date(U.date()+Math.round(B*g)),j)};if(z===d)return this.set(d,this.$M+g);if(z===f)return this.set(f,this.$y+g);if(z===c)return S(1);if(z===h)return S(7);var y=(E={},E[o]=n,E[l]=r,E[s]=i,E)[z]||1,C=this.$d.getTime()+g*y;return M.w(C,this)},T.subtract=function(g,I){return this.add(-1*g,I)},T.format=function(g){var I=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),S=this.$H,y=this.$m,C=this.$M,B=E.weekdays,U=E.months,X=E.meridiem,Q=function(xt,Me,wn,Gr){return xt&&(xt[Me]||xt(I,j))||wn[Me].slice(0,Gr)},ct=function(xt){return M.s(S%12||12,xt,"0")},kt=X||function(xt,Me,wn){var Gr=xt<12?"AM":"PM";return wn?Gr.toLowerCase():Gr};return j.replace(w,function(xt,Me){return Me||function(wn){switch(wn){case"YY":return String(I.$y).slice(-2);case"YYYY":return M.s(I.$y,4,"0");case"M":return C+1;case"MM":return M.s(C+1,2,"0");case"MMM":return Q(E.monthsShort,C,U,3);case"MMMM":return Q(U,C);case"D":return I.$D;case"DD":return M.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return Q(E.weekdaysMin,I.$W,B,2);case"ddd":return Q(E.weekdaysShort,I.$W,B,3);case"dddd":return B[I.$W];case"H":return String(S);case"HH":return M.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return M.s(y,2,"0");case"s":return String(I.$s);case"ss":return M.s(I.$s,2,"0");case"SSS":return M.s(I.$ms,3,"0");case"Z":return z}return null}(xt)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(g,I,E){var j,z=this,S=M.p(I),y=P(g),C=(y.utcOffset()-this.utcOffset())*n,B=this-y,U=function(){return M.m(z,y)};switch(S){case f:j=U()/12;break;case d:j=U();break;case u:j=U()/3;break;case h:j=(B-C)/6048e5;break;case c:j=(B-C)/864e5;break;case l:j=B/r;break;case o:j=B/n;break;case s:j=B/i;break;default:j=B}return E?j:M.a(j)},T.daysInMonth=function(){return this.endOf(d).$D},T.$locale=function(){return A[this.$L]},T.locale=function(g,I){if(!g)return this.$L;var E=this.clone(),j=V(g,I,!0);return j&&(E.$L=j),E},T.clone=function(){return M.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},F}(),ot=et.prototype;return P.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(F){ot[F[1]]=function(T){return this.$g(T,F[0],F[1])}}),P.extend=function(F,T){return F.$i||(F(T,et,P),F.$i=!0),P},P.locale=V,P.isDayjs=R,P.unix=function(F){return P(1e3*F)},P.en=A[D],P.Ls=A,P.p={},P})})(Lo);var yi=Lo.exports,dp=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)},fp=[];const Ao=new Date().getFullYear(),No=new Date().getMonth()+1,pp=`Q${N.getQuarterNum(No)}`,mp=`H${N.getHalfYearNum(No)}`,Po=10,Bo=10,vp={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?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ao+pp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;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:Ao+mp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;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?yi(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?N.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(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}}},Ro={};var gp=at(vp,dp,fp,!1,yp,null,null,null);function yp(e){for(let t in Ro)this[t]=Ro[t]}var Fo=function(){return gp.exports}();function Zr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function bp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Sp(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 Qr(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Sp(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=>Qr(l)):o=[Qr(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return Qr(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 Cp=!1;var je=N.useConfig(Cp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},xp=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},$p=(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},Vo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},kp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(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=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Tp=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={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:lr(t.placement),variation:nh(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,oh(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,oh(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 ZS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JS,data:{}};function QS(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];!ge(a)||!Be(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 t0(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},{});!ge(r)||!Be(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var e0={name:"applyStyles",enabled:!0,phase:"write",fn:QS,effect:t0,requires:["computeStyles"]},i0=[WS,XS,ZS,e0],n0=US({defaultModifiers:i0});function r0(e,t,i){var n=lr(e),r=[li,Oi].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,[li,rn].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function a0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=$S.reduce(function(h,d){return h[d]=r0(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 s0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a0},lh=$("popover"),o0=lh[0],ui=lh[1],l0=o0({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&&(Vt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=n0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},O({},s0,{options:{offset:this.offset}})]});return Vt||(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:[ui("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(J,{attrs:{name:a},class:ui("action-icon")}),r("div",{class:[ui("action-text"),Ki]},[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:ui("wrapper"),on:{click:this.onClickWrapper}},[t(ke,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:ui([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:ui("arrow")}),t("div",{class:ui("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),ch=$("progress"),c0=ch[0],xs=ch[1],u0=c0({mixins:[ue(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"),h0=$s[0],ur=$s[1],d0=$s[2],uh=50,f0=["pulling","loosing","success"],p0=h0({mixins:[te],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:uh}},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!==uh)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=ni(this.$el)},methods:{checkPullStart:function(t){this.ceiling=ri(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"]||d0(i);return f0.indexOf(i)!==-1&&a.push(t("div",{class:ur("text")},[s])),i==="loading"&&a.push(t(he,{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:ur()},[t("div",{ref:"track",class:ur("track"),style:i},[t("div",{class:ur("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),hh=$("rate"),m0=hh[0],hr=hh[1];function v0(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var g0=m0({mixins:[te,Ue],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(v0(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:hr("item")},[r(J,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:hr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(J,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:hr("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:hr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),dh=$("row"),y0=dh[0],b0=dh[1],S0=y0({mixins:[Ht("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:b0((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),ks=$("search"),C0=ks[0],dr=ks[1],w0=ks[2];function fh(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:dr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(rt(n,"input",""),rt(n,"cancel"))}return e("div",{class:dr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||w0("cancel")])}var s={attrs:n.data.attrs,on:O({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),rt(n,"search",t.value)),rt(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",tt([{class:dr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:dr("content",t.shape)},[r(),e(ee,tt([{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()])}fh.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 x0=C0(fh),$0=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Ts=$("share-sheet"),k0=Ts[0],Ee=Ts[1],T0=Ts[2],I0=k0({props:O({},Ln,{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 $0.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:Ee("header")},[i&&t("h2",{class:Ee("title")},[i]),n&&t("span",{class:Ee("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:Ee("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[Ee("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:Ee("icon")}),a.name&&r("span",{class:Ee("name")},[a.name]),a.description&&r("span",{class:Ee("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:T0("cancel");if(n)return i("button",{attrs:{type:"button"},class:Ee("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(ke,{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:Ee(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),ph=$("sidebar"),_0=ph[0],E0=ph[1],mh=_0({mixins:[Ht("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:E0()},[this.slots()])}}),vh=$("sidebar-item"),D0=vh[0],Is=vh[1],gh=D0({mixins:[zt("vanSidebar")],props:O({},He,{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),si(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:Is({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Is("text")},[(t=this.slots("title"))!=null?t:this.title,n(ai,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:Is("info")})])])}}),yh=$("skeleton"),O0=yh[0],an=yh[1],bh="100%",M0="60%";function Sh(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:an("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===bh&&d===+t.row-1?M0:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:an("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:an("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",tt([{class:an({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:an("content")},[r(),a()])])}Sh.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:bh}};var L0=O0(Sh),A0={"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"}}}},fr={QUOTA_LIMIT:0,STOCK_LIMIT:1},hi="",N0={LIMIT_TYPE:fr,UNSELECTED_SKU_VALUE_ID:hi},Ch=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},P0=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},wh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==hi});return t.length===n.length},xh=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]},$h=function(t,i){var n=Ch(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==hi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},_s=function(t,i,n){var r,a=n.key,s=n.valueId,o=O({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==hi}),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},kh=function(t,i){var n=P0(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(O({},n[a][s]))}),r},[])},Th=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(O({},s))}),n.push(O({},r,{v:a}))}}),n},B0={normalizeSkuTree:Ch,getSkuComb:xh,getSelectedSkuValues:$h,isAllSelected:wh,isSkuChoosable:_s,getSelectedPropValues:kh,getSelectedProperties:Th},Ih=$("sku-header"),R0=Ih[0],Es=Ih[1];function F0(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=O({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function _h(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=F0(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",tt([{class:[Es(),Ki]},lt(n)]),[h&&e(_i,{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()])])}_h.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Eh=R0(_h),Dh=$("sku-header-item"),V0=Dh[0],j0=Dh[1];function z0(e,t,i,n){return e("div",tt([{class:j0()},lt(n)]),[i.default&&i.default()])}var pr=V0(z0),Ds=$("sku-row"),H0=Ds[0],ye=Ds[1],U0=Ds[2],Os=H0({mixins:[Ht("vanSkuRows"),ue(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:ye("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:ye("title-multiple")},["\uFF08",U0("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:ye("indicator-wrapper")},[t("div",{class:ye("indicator")},[t("div",{class:ye("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:ye("scroller"),ref:"scroller"},[t("div",{class:ye("row"),ref:"row"},[n]),r.length?t("div",{class:ye("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:[ye(),Ki]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),K0=$("sku-row-item"),W0=K0[0],Oh=W0({mixins:[zt("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?_s(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",O({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",O({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(_i,{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?ye("image-item"):ye("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(J,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Y0=$("sku-row-prop-item"),X0=Y0[0],Mh=X0({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",O({},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])])}}),Lh=$("stepper"),q0=Lh[0],mr=Lh[1],G0=600,J0=200;function vr(e,t){return String(e)===String(t)}var Ah=q0({mixins:[Ue],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 vr(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){vr(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);vr(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return Hl(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),it(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(it(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}vr(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(Ul(+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),ec()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},J0)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},G0))},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:mr([this.theme])},[i("button",tt([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:mr("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:mr("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",tt([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:mr("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Nh=$("sku-stepper"),Z0=Nh[0],gr=Nh[2],Q0=fr.QUOTA_LIMIT,Ph=fr.STOCK_LIMIT,Bh=Z0({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:Ph}},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=Q0):(i=this.stock,this.limitType=Ph),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(gr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(gr("quotaLimit",this.quota)),r=a.join(gr("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||gr("num")]),i(Ah,{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 tC(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function Rh(e){return Array.isArray(e)?e:[e]}function Fh(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 Vh(e,t){return Rh(e).some(function(i){return i?xi(t)?t(i):i.size>t:!1})}var eC=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function iC(e){return eC.test(e)}function jh(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?iC(e.url):e.content?e.content.indexOf("data:image")===0:!1}var zh=$("uploader"),nC=zh[0],wt=zh[1],Hh=nC({inheritAttrs:!1,mixins:[Ue],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(Dn(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=Vh(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 Fh(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 Fh(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&&(Vh(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,Rh(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(Dn(s)){s.then(function(){r.deleteFile(t,i)}).catch(Hi);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 jh(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(O({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(J,{attrs:{name:"close"},class:wt("mask-icon")}):i(he,{class:wt("loading")}),s=it(r)&&r!=="";return i("div",{class:wt("mask")},[a,s&&i("div",{class:wt("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:wt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(J,{attrs:{name:"cross"},class:wt("preview-delete-icon")})]),d=this.slots("preview-cover",O({index:i},t)),u=d&&o("div",{class:wt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=jh(t)?o(_i,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:wt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:wt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(J,{class:wt("file-icon"),attrs:{name:"description"}}),o("div",{class:[wt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:wt("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:O({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:wt("input"),on:{change:this.onChange}});if(i)return t("div",{class:wt("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:wt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(J,{attrs:{name:this.uploadIcon},class:wt("upload-icon")}),this.uploadText&&t("span",{class:wt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:wt()},[t("div",{class:wt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Uh=$("sku-img-uploader"),rC=Uh[0],Ms=Uh[2],aC=rC({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(Hh,{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 sC(e){return e?new Date(e.replace(/-/g,"/")):null}function oC(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 Kh=$("sku-datetime-field"),lC=Kh[0],Wh=Kh[2],cC=lC({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=sC(t)||new Date;break}}},computed:{title:function(){return Wh("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=oC(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=Wh("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ee,{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(ke,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(yu,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Ls=$("sku-messages"),uC=Ls[0],Mi=Ls[1],di=Ls[2],Yh=uC({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]||di("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=di(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!la(n))return di("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return di("invalid.mobile");if(r.type==="email"&&!tC(n))return di("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return di("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:Mi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Bt,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Mi("image-cell-value")},class:Mi("image-cell")},[r(aC,{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:Mi("image-cell-label")},[di("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(cC,{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:Mi("cell-block")},[r(ee,{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:Mi()},[this.messages.map(this.genMessage)])}}),As=$("sku-actions"),hC=As[0],dC=As[1],Xh=As[2];function qh(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",tt([{class:dC()},lt(n)]),[t.showAddCartBtn&&e(Lt,{attrs:{size:"large",type:"warning",text:t.addCartText||Xh("addCart")},on:{click:r("sku:addCart")}}),e(Lt,{attrs:{size:"large",type:"danger",text:t.buyText||Xh("buy")},on:{click:r("sku:buy")}})])}qh.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var Gh=hC(qh),Ns=$("sku"),fC=Ns[0],pC=Ns[1],ae=Ns[2],mC=fr.QUOTA_LIMIT,be=fC({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&&!wh(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=xh(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=Th(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return $h(this.skuTree,this.selectedSku)},selectedPropValues:function(){return kh(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):[ae("stock")+" ",t("span",{class:pC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+ae("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return ae("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===hi}).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 ae("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new Tt.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]=hi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&_s(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])}),yv(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 ae("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return ae("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?O({},this.selectedSku,(i={},i[t.skuKeyStr]=hi,i)):O({},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=O({},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=O({},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?St(ae("minusStartTip",this.startSaleNum)):St(ae("minusTip")):i==="plus"&&(n===mC?a>0?St(ae("quotaUsedTip",r,a)):St(ae("quotaTip",r)):St(ae("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:O({},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?St(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},k=function(V){return t.slots(V,w)},_=k("sku-header")||i(Eh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[k("sku-header-image-extra")]),k("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])]),k("sku-header-origin-price")||l&&i(pr,[ae("originPrice")," \uFFE5",l]),!this.hideStock&&i(pr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(pr,[this.selectedText]),k("sku-header-extra")]),x=k("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(V){return i(Oh,{attrs:{skuList:r,lazyLoad:o,skuValue:V,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(V){return i(Mh,{attrs:{skuValue:V,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:V.text_status===0}})})])})]),D=k("sku-stepper")||i(Bh,{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(V){t.$emit("stepper-change",V)}}}),A=k("sku-messages")||i(Yh,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),W=k("sku-actions")||i(Gh,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(ke,{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(V){t.show=V}}},[_,i("div",{class:"van-sku-body",style:this.bodyStyle},[k("sku-body-top"),x,k("extra-sku-group"),D,k("before-sku-messages"),A,k("after-sku-messages")]),k("sku-actions-top"),W])}}});oa.add(A0),be.SkuActions=Gh,be.SkuHeader=Eh,be.SkuHeaderItem=pr,be.SkuMessages=Yh,be.SkuStepper=Bh,be.SkuRow=Os,be.SkuRowItem=Oh,be.SkuRowPropItem=Mh,be.skuHelper=B0,be.skuConstants=N0;var Jh=$("slider"),vC=Jh[0],yr=Jh[1],Zh=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},gC=vC({mixins:[te,Ue],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=Wi(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),Zh(t,this.value)||this.$emit("input",t),i&&!Zh(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=Mt(t,i,n);var a=Math.round((t-i)/r)*r;return Ul(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,k=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},_=function(){return v?"wrapper"+p:"wrapper"},x=function(){if(v){var A=i.slots(p===0?"left-button":"right-button",{value:w});if(A)return A}return i.slots("button")?i.slots("button"):r("div",{class:yr("button"),style:i.buttonStyle})};return r("div",{ref:_(),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:yr(k()),on:{touchstart:function(){v&&(i.index=p)},click:function(A){return A.stopPropagation()}}},[x()])};return r("div",{style:l,class:yr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:yr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),Qh=$("step"),yC=Qh[0],Je=Qh[1],bC=yC({mixins:[zt("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(J,{class:Je("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(J,{class:Je("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(J,{class:Je("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Je("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:[fe,Je([a,(t={},t[n]=n,t)])]},[i("div",{class:Je("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Je("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Je("line"),style:this.lineStyle})])}}),td=$("steps"),SC=td[0],ed=td[1],CC=SC({mixins:[Ht("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:ed([this.direction])},[t("div",{class:ed("items")},[this.slots()])])}}),Ps=$("submit-bar"),wC=Ps[0],De=Ps[1],xC=Ps[2];function id(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:De("text")},[e("span",[t.label||xC("label")]),e("span",{class:De("price")},[t.currency,e("span",{class:De("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:De("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:De("tip")},[s&&e(J,{class:De("tip-icon"),attrs:{name:s}}),r&&e("span",{class:De("tip-text")},[r]),i.tip&&i.tip()])}return e("div",tt([{class:De({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:De("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:De("button",t.buttonType),on:{click:function(){rt(n,"submit")}}})])])}id.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 $C=wC(id),nd=$("swipe-cell"),kC=nd[0],br=nd[1],rd=.15,TC=kC({mixins:[te,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=Mt(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-rd:rd,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:br("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:br("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:br(),on:{click:this.getClickHandler("cell")}},[t("div",{class:br("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),ad=$("switch-cell"),IC=ad[0],_C=ad[1];function sd(e,t,i,n){return e(Bt,tt([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:_C([t.cellSize])},lt(n)]),[e(Un,{props:O({},t),on:O({},n.listeners)})])}sd.props=O({},pc,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var EC=IC(sd),od=$("tabbar"),DC=od[0],ld=od[1],cd=DC({mixins:[Ht("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;Pc({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[Bn]=this.border,t),ld({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:ld("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),ud=$("tabbar-item"),OC=ud[0],Bs=ud[1],hd=OC({mixins:[zt("vanTabbar")],props:O({},He,{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=ce(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=it(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(){si(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(J,{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:Bs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Bs("icon")},[this.genIcon(),i(ai,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Bs("text")},[this.slots("default",{active:n})])])}}),dd=$("tree-select"),MC=dd[0],Li=dd[1];function fd(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(gh,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Li("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Li("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var k=w.indexOf(m.id);k!==-1?w.splice(k,1):w.length<t.max&&w.push(m.id)}rt(n,"update:active-id",w),rt(n,"click-item",m),rt(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(J,{attrs:{name:o},class:Li("selected")})])})}return e("div",tt([{class:Li(),style:{height:st(a)}},lt(n)]),[e(mh,{class:Li("nav"),attrs:{activeKey:l},on:{change:function(v){rt(n,"update:main-active-index",v),rt(n,"click-nav",v),rt(n,"navclick",v)}}},[f]),e("div",{class:Li("content")},[p()])])}fd.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 LC=MC(fd);function AC(e){var t=[Wv,Eg,Fg,Jl,jg,Lt,iy,ay,by,Bt,Wc,Xc,ky,Ey,My,Ny,Ry,Vy,zy,Ky,Jy,es,nb,sb,yu,ft,mb,gb,bb,xb,ee,Tb,hc,ka,_b,Ob,Lb,J,_i,hs,Hb,Wb,ai,qb,he,oa,Jb,Qb,re,oS,$l,cS,hS,fS,wa,l0,ke,u0,p0,La,Ma,g0,S0,x0,I0,mh,gh,L0,be,gC,bC,Ah,CC,Fc,$C,Du,TC,Mu,Un,EC,Xn,cd,hd,Ha,Wn,St,LC,Hh];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&AC(window.Vue);var NC=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)])])},PC=[];const BC={name:"IndMLogin",components:{LoginForm:Gm},data(){return{loading:!1,msg:""}},mounted(){N.clearSessionStorage();let e=this.$store.getters.getTheme;Tn(e)},methods:{...Qo(["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:je.homeRouteName},()=>{this.loading=!1})}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return N.cryptor.encryptForLogin(N.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},pd={};var RC=at(BC,NC,PC,!1,FC,null,null,null);function FC(e){for(let t in pd)this[t]=pd[t]}var Rs=function(){return RC.exports}(),VC=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"}})},jC=[];const zC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},md={};var HC=at(zC,VC,jC,!1,UC,null,null,null);function UC(e){for(let t in md)this[t]=md[t]}var KC=function(){return HC.exports}(),WC=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)},YC=[];const XC={props:{searchForm:Object,searchFormFields:Array}},vd={};var qC=at(XC,WC,YC,!1,GC,null,null,null);function GC(e){for(let t in vd)this[t]=vd[t]}var JC=function(){return qC.exports}(),ZC=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(100% - "+(e.$config.searchPaddingTop||"0px")+")"},attrs:{position:"right"},model:{value:e.displayCondition,callback:function(n){e.displayCondition=n},expression:"displayCondition"}},[i("div",{staticClass:"ind-page-view ind-flex-column",staticStyle:{height:"100vh"}},[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)},QC=[];const tw={components:{SearchTop:KC,ConditionBar:JC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!b.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)}}},gd={};var ew=at(tw,ZC,QC,!1,iw,null,null,null);function iw(e){for(let t in gd)this[t]=gd[t]}var yd=function(){return ew.exports}(),nw=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)])},rw=[];function bd(e,t,i){Array.isArray(t)&&t.length&&b.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||bd(n,n.children,i)})}const aw={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}},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 b.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=[];bd({},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.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:N.listComTreeApi,itemTree:N.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:b.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=[];b.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=b.default.cloneDeep(e);b.default.remove(o,l=>b.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.selectedRows=b.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)}}},Sd={};var sw=at(aw,nw,rw,!1,ow,null,null,null);function ow(e){for(let t in Sd)this[t]=Sd[t]}var Cd=function(){return sw.exports}(),lw=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)},cw=[];const uw={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(){var e;return this.columns?this.columns:(e=this.options)!=null&&e.length?[{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}]:null},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;let e=b.default.filter(this.value,n=>!n.children||n.children.length==0),t="title";((i=this.columnsComp)==null?void 0:i.length)>1&&(t=this.columnsComp[1].field),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?e[0][t]:"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},wd={};var hw=at(uw,lw,cw,!1,dw,null,null,null);function dw(e){for(let t in wd)this[t]=wd[t]}var xd=function(){return hw.exports}(),fw=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)},pw=[];const mw={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=b.default.cloneDeep(this.value);t.includes(e.K)?b.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))}}},$d={};var vw=at(mw,fw,pw,!1,gw,null,null,null);function gw(e){for(let t in $d)this[t]=$d[t]}var kd=function(){return vw.exports}(),yw=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)},bw=[];const Sw={name:"IndMTabbar",components:{Tabbar:cd,TabbarItem:hd},data(){return{tab_menus:[]}},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));this.tab_menus=n,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}}}}},Td={};var Cw=at(Sw,yw,bw,!1,ww,null,null,null);function ww(e){for(let t in Td)this[t]=Td[t]}var Ai=function(){return Cw.exports}(),xw=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)},$w=[];const kw={components:{tabbar:Ai},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}},Id={};var Tw=at(kw,xw,$w,!1,Iw,null,null,null);function Iw(e){for(let t in Id)this[t]=Id[t]}var Fs=function(){return Tw.exports}(),_w=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)},Ew=[];const Dw={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}`}}},_d={};var Ow=at(Dw,_w,Ew,!1,Mw,null,null,null);function Mw(e){for(let t in _d)this[t]=_d[t]}var Vs=function(){return Ow.exports}(),Lw=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{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",{staticStyle:{"text-align":"center"}},[i("van-badge",{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)},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(e.item.meta.icon)}})],1)],1):i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(e.item.meta.icon)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",{class:["app-item",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])])},Aw=[];const Nw={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"}},data(){return{}},computed:{},methods:{getImg(e){console.log(location.origin+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)}}},Ed={};var Pw=at(Nw,Lw,Aw,!1,Bw,null,null,null);function Bw(e){for(let t in Ed)this[t]=Ed[t]}var sn=function(){return Pw.exports}(),Dd={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:lr(t.placement),variation:nh(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,oh(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,oh(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 ZS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JS,data:{}};function QS(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];!ge(a)||!Be(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 t0(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},{});!ge(r)||!Be(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var e0={name:"applyStyles",enabled:!0,phase:"write",fn:QS,effect:t0,requires:["computeStyles"]},i0=[WS,XS,ZS,e0],n0=US({defaultModifiers:i0});function r0(e,t,i){var n=lr(e),r=[li,Oi].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,[li,rn].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function a0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=$S.reduce(function(h,d){return h[d]=r0(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 s0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a0},lh=$("popover"),o0=lh[0],ui=lh[1],l0=o0({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&&(Vt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=n0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},O({},s0,{options:{offset:this.offset}})]});return Vt||(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:[ui("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(J,{attrs:{name:a},class:ui("action-icon")}),r("div",{class:[ui("action-text"),Ki]},[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:ui("wrapper"),on:{click:this.onClickWrapper}},[t(ke,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:ui([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:ui("arrow")}),t("div",{class:ui("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),ch=$("progress"),c0=ch[0],xs=ch[1],u0=c0({mixins:[ue(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"),h0=$s[0],ur=$s[1],d0=$s[2],uh=50,f0=["pulling","loosing","success"],p0=h0({mixins:[te],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:uh}},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!==uh)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=ni(this.$el)},methods:{checkPullStart:function(t){this.ceiling=ri(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"]||d0(i);return f0.indexOf(i)!==-1&&a.push(t("div",{class:ur("text")},[s])),i==="loading"&&a.push(t(he,{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:ur()},[t("div",{ref:"track",class:ur("track"),style:i},[t("div",{class:ur("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),hh=$("rate"),m0=hh[0],hr=hh[1];function v0(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var g0=m0({mixins:[te,Ue],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(v0(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:hr("item")},[r(J,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:hr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(J,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:hr("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:hr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),dh=$("row"),y0=dh[0],b0=dh[1],S0=y0({mixins:[Ht("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:b0((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),ks=$("search"),C0=ks[0],dr=ks[1],w0=ks[2];function fh(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:dr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(rt(n,"input",""),rt(n,"cancel"))}return e("div",{class:dr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||w0("cancel")])}var s={attrs:n.data.attrs,on:O({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),rt(n,"search",t.value)),rt(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",tt([{class:dr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:dr("content",t.shape)},[r(),e(ee,tt([{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()])}fh.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 x0=C0(fh),$0=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Ts=$("share-sheet"),k0=Ts[0],Ee=Ts[1],T0=Ts[2],I0=k0({props:O({},Ln,{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 $0.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:Ee("header")},[i&&t("h2",{class:Ee("title")},[i]),n&&t("span",{class:Ee("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:Ee("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[Ee("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:Ee("icon")}),a.name&&r("span",{class:Ee("name")},[a.name]),a.description&&r("span",{class:Ee("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:T0("cancel");if(n)return i("button",{attrs:{type:"button"},class:Ee("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(ke,{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:Ee(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),ph=$("sidebar"),_0=ph[0],E0=ph[1],mh=_0({mixins:[Ht("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:E0()},[this.slots()])}}),vh=$("sidebar-item"),D0=vh[0],Is=vh[1],gh=D0({mixins:[zt("vanSidebar")],props:O({},He,{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),si(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:Is({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Is("text")},[(t=this.slots("title"))!=null?t:this.title,n(ai,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:Is("info")})])])}}),yh=$("skeleton"),O0=yh[0],an=yh[1],bh="100%",M0="60%";function Sh(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:an("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===bh&&d===+t.row-1?M0:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:an("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:an("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",tt([{class:an({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:an("content")},[r(),a()])])}Sh.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:bh}};var L0=O0(Sh),A0={"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"}}}},fr={QUOTA_LIMIT:0,STOCK_LIMIT:1},hi="",N0={LIMIT_TYPE:fr,UNSELECTED_SKU_VALUE_ID:hi},Ch=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},P0=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},wh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==hi});return t.length===n.length},xh=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]},$h=function(t,i){var n=Ch(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==hi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},_s=function(t,i,n){var r,a=n.key,s=n.valueId,o=O({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==hi}),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},kh=function(t,i){var n=P0(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(O({},n[a][s]))}),r},[])},Th=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(O({},s))}),n.push(O({},r,{v:a}))}}),n},B0={normalizeSkuTree:Ch,getSkuComb:xh,getSelectedSkuValues:$h,isAllSelected:wh,isSkuChoosable:_s,getSelectedPropValues:kh,getSelectedProperties:Th},Ih=$("sku-header"),R0=Ih[0],Es=Ih[1];function F0(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=O({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function _h(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=F0(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",tt([{class:[Es(),Ki]},lt(n)]),[h&&e(_i,{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()])])}_h.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Eh=R0(_h),Dh=$("sku-header-item"),V0=Dh[0],j0=Dh[1];function z0(e,t,i,n){return e("div",tt([{class:j0()},lt(n)]),[i.default&&i.default()])}var pr=V0(z0),Ds=$("sku-row"),H0=Ds[0],ye=Ds[1],U0=Ds[2],Os=H0({mixins:[Ht("vanSkuRows"),ue(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:ye("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:ye("title-multiple")},["\uFF08",U0("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:ye("indicator-wrapper")},[t("div",{class:ye("indicator")},[t("div",{class:ye("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:ye("scroller"),ref:"scroller"},[t("div",{class:ye("row"),ref:"row"},[n]),r.length?t("div",{class:ye("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:[ye(),Ki]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),K0=$("sku-row-item"),W0=K0[0],Oh=W0({mixins:[zt("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?_s(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",O({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",O({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(_i,{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?ye("image-item"):ye("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(J,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Y0=$("sku-row-prop-item"),X0=Y0[0],Mh=X0({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",O({},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])])}}),Lh=$("stepper"),q0=Lh[0],mr=Lh[1],G0=600,J0=200;function vr(e,t){return String(e)===String(t)}var Ah=q0({mixins:[Ue],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 vr(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){vr(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);vr(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return Hl(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),it(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(it(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}vr(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(Ul(+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),ec()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},J0)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},G0))},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:mr([this.theme])},[i("button",tt([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:mr("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:mr("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",tt([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:mr("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Nh=$("sku-stepper"),Z0=Nh[0],gr=Nh[2],Q0=fr.QUOTA_LIMIT,Ph=fr.STOCK_LIMIT,Bh=Z0({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:Ph}},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=Q0):(i=this.stock,this.limitType=Ph),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(gr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(gr("quotaLimit",this.quota)),r=a.join(gr("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||gr("num")]),i(Ah,{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 tC(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function Rh(e){return Array.isArray(e)?e:[e]}function Fh(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 Vh(e,t){return Rh(e).some(function(i){return i?xi(t)?t(i):i.size>t:!1})}var eC=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function iC(e){return eC.test(e)}function jh(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?iC(e.url):e.content?e.content.indexOf("data:image")===0:!1}var zh=$("uploader"),nC=zh[0],wt=zh[1],Hh=nC({inheritAttrs:!1,mixins:[Ue],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(Dn(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=Vh(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 Fh(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 Fh(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&&(Vh(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,Rh(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(Dn(s)){s.then(function(){r.deleteFile(t,i)}).catch(Hi);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 jh(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(O({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(J,{attrs:{name:"close"},class:wt("mask-icon")}):i(he,{class:wt("loading")}),s=it(r)&&r!=="";return i("div",{class:wt("mask")},[a,s&&i("div",{class:wt("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:wt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(J,{attrs:{name:"cross"},class:wt("preview-delete-icon")})]),d=this.slots("preview-cover",O({index:i},t)),u=d&&o("div",{class:wt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=jh(t)?o(_i,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:wt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:wt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(J,{class:wt("file-icon"),attrs:{name:"description"}}),o("div",{class:[wt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:wt("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:O({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:wt("input"),on:{change:this.onChange}});if(i)return t("div",{class:wt("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:wt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(J,{attrs:{name:this.uploadIcon},class:wt("upload-icon")}),this.uploadText&&t("span",{class:wt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:wt()},[t("div",{class:wt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Uh=$("sku-img-uploader"),rC=Uh[0],Ms=Uh[2],aC=rC({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(Hh,{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 sC(e){return e?new Date(e.replace(/-/g,"/")):null}function oC(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 Kh=$("sku-datetime-field"),lC=Kh[0],Wh=Kh[2],cC=lC({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=sC(t)||new Date;break}}},computed:{title:function(){return Wh("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=oC(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=Wh("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ee,{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(ke,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(yu,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Ls=$("sku-messages"),uC=Ls[0],Mi=Ls[1],di=Ls[2],Yh=uC({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]||di("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=di(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!la(n))return di("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return di("invalid.mobile");if(r.type==="email"&&!tC(n))return di("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return di("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:Mi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Bt,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Mi("image-cell-value")},class:Mi("image-cell")},[r(aC,{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:Mi("image-cell-label")},[di("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(cC,{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:Mi("cell-block")},[r(ee,{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:Mi()},[this.messages.map(this.genMessage)])}}),As=$("sku-actions"),hC=As[0],dC=As[1],Xh=As[2];function qh(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",tt([{class:dC()},lt(n)]),[t.showAddCartBtn&&e(Lt,{attrs:{size:"large",type:"warning",text:t.addCartText||Xh("addCart")},on:{click:r("sku:addCart")}}),e(Lt,{attrs:{size:"large",type:"danger",text:t.buyText||Xh("buy")},on:{click:r("sku:buy")}})])}qh.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var Gh=hC(qh),Ns=$("sku"),fC=Ns[0],pC=Ns[1],ae=Ns[2],mC=fr.QUOTA_LIMIT,be=fC({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&&!wh(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=xh(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=Th(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return $h(this.skuTree,this.selectedSku)},selectedPropValues:function(){return kh(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):[ae("stock")+" ",t("span",{class:pC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+ae("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return ae("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===hi}).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 ae("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new Tt.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]=hi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&_s(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])}),yv(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 ae("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return ae("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?O({},this.selectedSku,(i={},i[t.skuKeyStr]=hi,i)):O({},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=O({},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=O({},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?St(ae("minusStartTip",this.startSaleNum)):St(ae("minusTip")):i==="plus"&&(n===mC?a>0?St(ae("quotaUsedTip",r,a)):St(ae("quotaTip",r)):St(ae("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:O({},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?St(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},k=function(V){return t.slots(V,w)},_=k("sku-header")||i(Eh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[k("sku-header-image-extra")]),k("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])]),k("sku-header-origin-price")||l&&i(pr,[ae("originPrice")," \uFFE5",l]),!this.hideStock&&i(pr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(pr,[this.selectedText]),k("sku-header-extra")]),x=k("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(V){return i(Oh,{attrs:{skuList:r,lazyLoad:o,skuValue:V,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(V){return i(Mh,{attrs:{skuValue:V,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:V.text_status===0}})})])})]),D=k("sku-stepper")||i(Bh,{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(V){t.$emit("stepper-change",V)}}}),A=k("sku-messages")||i(Yh,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),W=k("sku-actions")||i(Gh,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(ke,{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(V){t.show=V}}},[_,i("div",{class:"van-sku-body",style:this.bodyStyle},[k("sku-body-top"),x,k("extra-sku-group"),D,k("before-sku-messages"),A,k("after-sku-messages")]),k("sku-actions-top"),W])}}});oa.add(A0),be.SkuActions=Gh,be.SkuHeader=Eh,be.SkuHeaderItem=pr,be.SkuMessages=Yh,be.SkuStepper=Bh,be.SkuRow=Os,be.SkuRowItem=Oh,be.SkuRowPropItem=Mh,be.skuHelper=B0,be.skuConstants=N0;var Jh=$("slider"),vC=Jh[0],yr=Jh[1],Zh=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},gC=vC({mixins:[te,Ue],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=Wi(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),Zh(t,this.value)||this.$emit("input",t),i&&!Zh(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=Mt(t,i,n);var a=Math.round((t-i)/r)*r;return Ul(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,k=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},_=function(){return v?"wrapper"+p:"wrapper"},x=function(){if(v){var A=i.slots(p===0?"left-button":"right-button",{value:w});if(A)return A}return i.slots("button")?i.slots("button"):r("div",{class:yr("button"),style:i.buttonStyle})};return r("div",{ref:_(),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:yr(k()),on:{touchstart:function(){v&&(i.index=p)},click:function(A){return A.stopPropagation()}}},[x()])};return r("div",{style:l,class:yr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:yr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),Qh=$("step"),yC=Qh[0],Je=Qh[1],bC=yC({mixins:[zt("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(J,{class:Je("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(J,{class:Je("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(J,{class:Je("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Je("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:[fe,Je([a,(t={},t[n]=n,t)])]},[i("div",{class:Je("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Je("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Je("line"),style:this.lineStyle})])}}),td=$("steps"),SC=td[0],ed=td[1],CC=SC({mixins:[Ht("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:ed([this.direction])},[t("div",{class:ed("items")},[this.slots()])])}}),Ps=$("submit-bar"),wC=Ps[0],De=Ps[1],xC=Ps[2];function id(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:De("text")},[e("span",[t.label||xC("label")]),e("span",{class:De("price")},[t.currency,e("span",{class:De("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:De("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:De("tip")},[s&&e(J,{class:De("tip-icon"),attrs:{name:s}}),r&&e("span",{class:De("tip-text")},[r]),i.tip&&i.tip()])}return e("div",tt([{class:De({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:De("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:De("button",t.buttonType),on:{click:function(){rt(n,"submit")}}})])])}id.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 $C=wC(id),nd=$("swipe-cell"),kC=nd[0],br=nd[1],rd=.15,TC=kC({mixins:[te,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=Mt(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-rd:rd,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:br("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:br("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:br(),on:{click:this.getClickHandler("cell")}},[t("div",{class:br("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),ad=$("switch-cell"),IC=ad[0],_C=ad[1];function sd(e,t,i,n){return e(Bt,tt([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:_C([t.cellSize])},lt(n)]),[e(Un,{props:O({},t),on:O({},n.listeners)})])}sd.props=O({},pc,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var EC=IC(sd),od=$("tabbar"),DC=od[0],ld=od[1],cd=DC({mixins:[Ht("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;Pc({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[Bn]=this.border,t),ld({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:ld("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),ud=$("tabbar-item"),OC=ud[0],Bs=ud[1],hd=OC({mixins:[zt("vanTabbar")],props:O({},He,{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=ce(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=it(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(){si(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(J,{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:Bs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Bs("icon")},[this.genIcon(),i(ai,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Bs("text")},[this.slots("default",{active:n})])])}}),dd=$("tree-select"),MC=dd[0],Li=dd[1];function fd(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(gh,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Li("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Li("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var k=w.indexOf(m.id);k!==-1?w.splice(k,1):w.length<t.max&&w.push(m.id)}rt(n,"update:active-id",w),rt(n,"click-item",m),rt(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(J,{attrs:{name:o},class:Li("selected")})])})}return e("div",tt([{class:Li(),style:{height:st(a)}},lt(n)]),[e(mh,{class:Li("nav"),attrs:{activeKey:l},on:{change:function(v){rt(n,"update:main-active-index",v),rt(n,"click-nav",v),rt(n,"navclick",v)}}},[f]),e("div",{class:Li("content")},[p()])])}fd.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 LC=MC(fd);function AC(e){var t=[Wv,Eg,Fg,Jl,jg,Lt,iy,ay,by,Bt,Wc,Xc,ky,Ey,My,Ny,Ry,Vy,zy,Ky,Jy,es,nb,sb,yu,ft,mb,gb,bb,xb,ee,Tb,hc,ka,_b,Ob,Lb,J,_i,hs,Hb,Wb,ai,qb,he,oa,Jb,Qb,re,oS,$l,cS,hS,fS,wa,l0,ke,u0,p0,La,Ma,g0,S0,x0,I0,mh,gh,L0,be,gC,bC,Ah,CC,Fc,$C,Du,TC,Mu,Un,EC,Xn,cd,hd,Ha,Wn,St,LC,Hh];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&AC(window.Vue);var NC=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)])])},PC=[];const BC={name:"IndMLogin",components:{LoginForm:Gm},data(){return{loading:!1,msg:""}},mounted(){N.clearSessionStorage();let e=this.$store.getters.getTheme;Tn(e)},methods:{...Qo(["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:je.homeRouteName},()=>{this.loading=!1})}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return N.cryptor.encryptForLogin(N.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},pd={};var RC=at(BC,NC,PC,!1,FC,null,null,null);function FC(e){for(let t in pd)this[t]=pd[t]}var Rs=function(){return RC.exports}(),VC=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"}})},jC=[];const zC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},md={};var HC=at(zC,VC,jC,!1,UC,null,null,null);function UC(e){for(let t in md)this[t]=md[t]}var KC=function(){return HC.exports}(),WC=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)},YC=[];const XC={props:{searchForm:Object,searchFormFields:Array}},vd={};var qC=at(XC,WC,YC,!1,GC,null,null,null);function GC(e){for(let t in vd)this[t]=vd[t]}var JC=function(){return qC.exports}(),ZC=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(100vh - "+(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)},QC=[];const tw={components:{SearchTop:KC,ConditionBar:JC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!b.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)}}},gd={};var ew=at(tw,ZC,QC,!1,iw,null,null,null);function iw(e){for(let t in gd)this[t]=gd[t]}var yd=function(){return ew.exports}(),nw=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)])},rw=[];function bd(e,t,i){Array.isArray(t)&&t.length&&b.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||bd(n,n.children,i)})}const aw={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}},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 b.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=[];bd({},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.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:N.listComTreeApi,itemTree:N.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:b.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=[];b.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=b.default.cloneDeep(e);b.default.remove(o,l=>b.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.selectedRows=b.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)}}},Sd={};var sw=at(aw,nw,rw,!1,ow,null,null,null);function ow(e){for(let t in Sd)this[t]=Sd[t]}var Cd=function(){return sw.exports}(),lw=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)},cw=[];const uw={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(){var e;return this.columns?this.columns:(e=this.options)!=null&&e.length?[{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}]:null},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;let e=b.default.filter(this.value,n=>!n.children||n.children.length==0),t="title";((i=this.columnsComp)==null?void 0:i.length)>1&&(t=this.columnsComp[1].field),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?e[0][t]:"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},wd={};var hw=at(uw,lw,cw,!1,dw,null,null,null);function dw(e){for(let t in wd)this[t]=wd[t]}var xd=function(){return hw.exports}(),fw=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)},pw=[];const mw={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=b.default.cloneDeep(this.value);t.includes(e.K)?b.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))}}},$d={};var vw=at(mw,fw,pw,!1,gw,null,null,null);function gw(e){for(let t in $d)this[t]=$d[t]}var kd=function(){return vw.exports}(),yw=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)},bw=[];const Sw={name:"IndMTabbar",components:{Tabbar:cd,TabbarItem:hd},data(){return{tab_menus:[]}},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));this.tab_menus=n,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}}}}},Td={};var Cw=at(Sw,yw,bw,!1,ww,null,null,null);function ww(e){for(let t in Td)this[t]=Td[t]}var Ai=function(){return Cw.exports}(),xw=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)},$w=[];const kw={components:{tabbar:Ai},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}},Id={};var Tw=at(kw,xw,$w,!1,Iw,null,null,null);function Iw(e){for(let t in Id)this[t]=Id[t]}var Fs=function(){return Tw.exports}(),_w=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)},Ew=[];const Dw={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}`}}},_d={};var Ow=at(Dw,_w,Ew,!1,Mw,null,null,null);function Mw(e){for(let t in _d)this[t]=_d[t]}var Vs=function(){return Ow.exports}(),Lw=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{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",{staticStyle:{"text-align":"center"}},[i("van-badge",{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)},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(e.item.meta.icon)}})],1)],1):i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(e.item.meta.icon)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",{class:["app-item",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])])},Aw=[];const Nw={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"}},data(){return{}},computed:{},methods:{getImg(e){console.log(location.origin+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)}}},Ed={};var Pw=at(Nw,Lw,Aw,!1,Bw,null,null,null);function Bw(e){for(let t in Ed)this[t]=Ed[t]}var sn=function(){return Pw.exports}(),Dd={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": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"author": "huxuetong",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"build": "yarn build:prod && yarn build:style",
|
|
36
36
|
"type-check": "vue-tsc --noEmit -p tsconfig.check.json --composite false",
|
|
37
37
|
"dts": "vue-tsc -p tsconfig.types.json",
|
|
38
|
-
"release": "node build/auto-build.js && yarn release-
|
|
38
|
+
"release": "node build/auto-build.js && yarn release-major && git push --follow-tags && yarn re-publish",
|
|
39
39
|
"release-major": "standard-version --release-as major",
|
|
40
40
|
"release-minor": "standard-version --release-as minor",
|
|
41
41
|
"release-patch": "standard-version --release-as patch",
|