"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var V=Object.create;var x=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var R=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var F=(i,t,e,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of C(t))!T.call(i,l)&&l!==e&&x(i,l,{get:()=>t[l],enumerable:!(d=k(t,l))||d.enumerable});return i};var g=(i,t,e)=>(e=i!=null?V(B(i)):{},F(t||!i||!i.__esModule?x(e,"default",{value:i,enumerable:!0}):e,i));var _=R((j,y)=>{y.exports=Vue});var O=g(_());function f(i,t,...e){uni.__log__?uni.__log__(i,t,...e):console[i].apply(console,[...e,t])}function h(i,t){return typeof i=="string"?t:i}var a=g(_());var m=(i,t)=>{let e=i.__vccOpts||i;for(let[d,l]of t)e[d]=l;return e};var z={"uni-card":{"":{marginTop:10,marginRight:10,marginBottom:10,marginLeft:10,paddingTop:0,paddingRight:8,paddingBottom:0,paddingLeft:8,borderRadius:4,overflow:"hidden",fontFamily:"Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif",backgroundColor:"#ffffff",flex:1}},"uni-card__cover":{".uni-card ":{position:"relative",marginTop:10,flexDirection:"row",overflow:"hidden",borderRadius:4}},"uni-card__cover-image":{".uni-card .uni-card__cover ":{flex:1}},"uni-card__header":{".uni-card ":{display:"flex",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#EBEEF5",flexDirection:"row",alignItems:"center",paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,overflow:"hidden"}},"uni-card__header-box":{".uni-card .uni-card__header ":{flex:1,flexDirection:"row",alignItems:"center",overflow:"hidden"}},"uni-card__header-avatar":{".uni-card .uni-card__header ":{width:40,height:40,overflow:"hidden",borderRadius:5,marginRight:10}},"uni-card__header-avatar-image":{".uni-card .uni-card__header .uni-card__header-avatar ":{flex:1,width:40,height:40}},"uni-card__header-content":{".uni-card .uni-card__header ":{flexDirection:"column",justifyContent:"center",flex:1,overflow:"hidden"}},"uni-card__header-content-title":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:15,color:"#3a3a3a"}},"uni-card__header-content-subtitle":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:12,marginTop:5,color:"#909399"}},"uni-card__header-extra":{".uni-card .uni-card__header ":{lineHeight:12}},"uni-card__header-extra-text":{".uni-card .uni-card__header .uni-card__header-extra ":{fontSize:12,color:"#909399"}},"uni-card__content":{".uni-card ":{paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,fontSize:14,color:"#6a6a6a",lineHeight:22}},"uni-card__actions":{".uni-card ":{fontSize:12}},"uni-card--border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#EBEEF5"}},"uni-card--shadow":{"":{position:"relative"}},"uni-card--full":{"":{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderLeftWidth:0,borderRadius:0}},"uni-ellipsis":{"":{lines:1}}},D={name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(i){this.$emit("click",i)}}};function N(i,t,e,d,l,r){return(0,a.openBlock)(),(0,a.createElementBlock)("view",{class:(0,a.normalizeClass)(["uni-card",{"uni-card--full":e.isFull,"uni-card--shadow":e.isShadow,"uni-card--border":e.border}]),style:(0,a.normalizeStyle)({margin:e.isFull?0:e.margin,padding:e.spacing,"box-shadow":e.isShadow?e.shadow:""}),renderWhole:!0},[(0,a.renderSlot)(i.$slots,"cover",{},()=>[e.cover?((0,a.openBlock)(),(0,a.createElementBlock)("view",{key:0,class:"uni-card__cover"},[(0,a.createElementVNode)("u-image",{class:"uni-card__cover-image",mode:"widthFix",onClick:t[0]||(t[0]=u=>r.onClick("cover")),src:e.cover},null,8,["src"])])):(0,a.createCommentVNode)("",!0)]),(0,a.renderSlot)(i.$slots,"title",{},()=>[e.title||e.extra?((0,a.openBlock)(),(0,a.createElementBlock)("view",{key:0,class:"uni-card__header"},[(0,a.createElementVNode)("view",{class:"uni-card__header-box",onClick:t[1]||(t[1]=u=>r.onClick("title"))},[e.thumbnail?((0,a.openBlock)(),(0,a.createElementBlock)("view",{key:0,class:"uni-card__header-avatar"},[(0,a.createElementVNode)("u-image",{class:"uni-card__header-avatar-image",src:e.thumbnail,mode:"aspectFit"},null,8,["src"])])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("view",{class:"uni-card__header-content"},[(0,a.createElementVNode)("u-text",{class:"uni-card__header-content-title uni-ellipsis"},(0,a.toDisplayString)(e.title),1),e.title&&e.subTitle?((0,a.openBlock)(),(0,a.createElementBlock)("u-text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},(0,a.toDisplayString)(e.subTitle),1)):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("view",{class:"uni-card__header-extra",onClick:t[2]||(t[2]=u=>r.onClick("extra"))},[(0,a.createElementVNode)("u-text",{class:"uni-card__header-extra-text"},(0,a.toDisplayString)(e.extra),1)])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("view",{class:"uni-card__content",style:(0,a.normalizeStyle)({padding:e.padding}),onClick:t[3]||(t[3]=u=>r.onClick("content"))},[(0,a.renderSlot)(i.$slots,"default")],4),(0,a.createElementVNode)("view",{class:"uni-card__actions",onClick:t[4]||(t[4]=u=>r.onClick("actions"))},[(0,a.renderSlot)(i.$slots,"actions")])],6)}var v=m(D,[["render",N],["styles",[z]]]);var n=g(_());var o=g(_());var L={"uni-section":{"":{backgroundColor:"#ffffff"}},"uni-section-header":{".uni-section ":{position:"relative",flexDirection:"row",alignItems:"center",paddingTop:12,paddingRight:10,paddingBottom:12,paddingLeft:10,fontWeight:"normal"}},"uni-section-header__decoration":{".uni-section ":{marginRight:6,backgroundColor:"#2979ff"},".uni-section .line":{width:4,height:12,borderRadius:10},".uni-section .circle":{width:8,height:8,borderTopRightRadius:50,borderTopLeftRadius:50,borderBottomLeftRadius:50,borderBottomRightRadius:50},".uni-section .square":{width:8,height:8}},"uni-section-header__content":{".uni-section ":{flexDirection:"column",flex:1,color:"#333333"}},distraction:{".uni-section .uni-section-header__content ":{flexDirection:"row",alignItems:"center"}},"uni-section-header__content-sub":{".uni-section ":{marginTop:2}},"uni-section-header__slot-right":{".uni-section ":{fontSize:14}},"uni-section-content":{".uni-section ":{fontSize:14}}},E={name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return typeof this.padding=="string"?this.padding:this.padding?"10px":""}},watch:{title(i){uni.report&&i!==""&&uni.report("title",i)}},methods:{onClick(){this.$emit("click")}}};function I(i,t,e,d,l,r){return(0,o.openBlock)(),(0,o.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,o.createElementVNode)("view",{class:"uni-section-header",onClick:t[0]||(t[0]=(...u)=>r.onClick&&r.onClick(...u))},[e.type?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:0,class:(0,o.normalizeClass)(["uni-section-header__decoration",e.type])},null,2)):(0,o.renderSlot)(i.$slots,"decoration",{key:1}),(0,o.createElementVNode)("view",{class:"uni-section-header__content"},[(0,o.createElementVNode)("u-text",{style:(0,o.normalizeStyle)({"font-size":e.titleFontSize,color:e.titleColor}),class:(0,o.normalizeClass)(["uni-section__content-title",{distraction:!e.subTitle}])},(0,o.toDisplayString)(e.title),7),e.subTitle?((0,o.openBlock)(),(0,o.createElementBlock)("u-text",{key:0,style:(0,o.normalizeStyle)({"font-size":e.subTitleFontSize,color:e.subTitleColor}),class:"uni-section-header__content-sub"},(0,o.toDisplayString)(e.subTitle),5)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,o.renderSlot)(i.$slots,"right")])]),(0,o.createElementVNode)("view",{class:"uni-section-content",style:(0,o.normalizeStyle)({padding:r._padding})},[(0,o.renderSlot)(i.$slots,"default")],4)])}var w=m(E,[["render",I],["styles",[L]]]);var W={"uni-numbox":{"":{flexDirection:"row"}},"uni-numbox-btns":{"":{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:8,paddingBottom:0,paddingLeft:8,backgroundColor:"#f5f5f5"}},"uni-numbox__value":{"":{marginTop:0,marginRight:2,marginBottom:0,marginLeft:2,backgroundColor:"#f5f5f5",width:40,height:26,textAlign:"center",fontSize:14,borderLeftWidth:0,borderRightWidth:0,color:"#333333"}},"uni-numbox__minus":{"":{borderTopLeftRadius:2,borderBottomLeftRadius:2}},"uni-numbox__plus":{"":{borderTopRightRadius:2,borderBottomRightRadius:2}},"uni-numbox--text":{"":{lineHeight:20,fontSize:20,fontWeight:"300",color:"#333333"}},"uni-numbox--disabled":{".uni-numbox ":{"!color":"#c0c0c0"}}},U={name:"UniNumberBox",emits:["change","input","update:modelValue","blur","focus"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},background:{type:String,default:"#f5f5f5"},color:{type:String,default:"#333"},disabled:{type:Boolean,default:!1}},data(){return{inputValue:0}},watch:{value(i){this.inputValue=+i},modelValue(i){this.inputValue=+i}},created(){this.value===1&&(this.inputValue=+this.modelValue),this.modelValue===1&&(this.inputValue=+this.value)},methods:{_calcValue(i){if(this.disabled)return;let t=this._getDecimalScale(),e=this.inputValue*t,d=this.step*t;if(i==="minus"){if(e-=d,e<this.min*t)return;e>this.max*t&&(e=this.max*t)}if(i==="plus"){if(e+=d,e>this.max*t)return;e<this.min*t&&(e=this.min*t)}this.inputValue=(e/t).toFixed(String(t).length-1),this.$emit("change",+this.inputValue),this.$emit("input",+this.inputValue),this.$emit("update:modelValue",+this.inputValue)},_getDecimalScale(){let i=1;return~~this.step!==this.step&&(i=Math.pow(10,String(this.step).split(".")[1].length)),i},_onBlur(i){this.$emit("blur",i);let t=i.detail.value;if(!t)return;t=+t,t>this.max?t=this.max:t<this.min&&(t=this.min);let e=this._getDecimalScale();this.inputValue=t.toFixed(String(e).length-1),this.$emit("change",+this.inputValue),this.$emit("input",+this.inputValue)},_onFocus(i){this.$emit("focus",i)}}};function H(i,t,e,d,l,r){return(0,n.openBlock)(),(0,n.createElementBlock)("view",{class:"uni-numbox",renderWhole:!0},[(0,n.createElementVNode)("view",{onClick:t[0]||(t[0]=u=>r._calcValue("minus")),class:"uni-numbox__minus uni-numbox-btns",style:(0,n.normalizeStyle)({background:e.background})},[(0,n.createElementVNode)("u-text",{class:(0,n.normalizeClass)(["uni-numbox--text",{"uni-numbox--disabled":l.inputValue<=e.min||e.disabled}]),style:(0,n.normalizeStyle)({color:e.color})},"-",6)],4),(0,n.createElementVNode)("u-input",{disabled:e.disabled,onFocus:t[1]||(t[1]=(...u)=>r._onFocus&&r._onFocus(...u)),onBlur:t[2]||(t[2]=(...u)=>r._onBlur&&r._onBlur(...u)),class:"uni-numbox__value",type:"number",modelValue:l.inputValue,onInput:t[3]||(t[3]=u=>l.inputValue=u.detail.value),style:(0,n.normalizeStyle)({background:e.background,color:e.color})},null,44,["disabled","modelValue"]),(0,n.createElementVNode)("view",{onClick:t[4]||(t[4]=u=>r._calcValue("plus")),class:"uni-numbox__plus uni-numbox-btns",style:(0,n.normalizeStyle)({background:e.background})},[(0,n.createElementVNode)("u-text",{class:(0,n.normalizeClass)(["uni-numbox--text",{"uni-numbox--disabled":l.inputValue>=e.max||e.disabled}]),style:(0,n.normalizeStyle)({color:e.color})},"+",6)],4)])}var M=m(U,[["render",H],["styles",[W]]]),A={components:{},data(){return{numberValue:0,vModelValue:3}},methods:{change(i){this.numberValue=i},changeValue(i){f("log","at pages/extUI/number-box/number-box.nvue:43","\u8FD4\u56DE\u6570\u503C\uFF1A",i)},blur(i){f("log","at pages/extUI/number-box/number-box.nvue:46","-------blur:",i)},focus(i){f("log","at pages/extUI/number-box/number-box.nvue:49","-------focus:",i)}}};function q(i,t,e,d,l,r){let u=h((0,n.resolveDynamicComponent)("uni-card"),v),s=h((0,n.resolveDynamicComponent)("uni-number-box"),M),c=h((0,n.resolveDynamicComponent)("uni-section"),w);return(0,n.openBlock)(),(0,n.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,n.createElementVNode)("view",{class:"page"},[(0,n.createVNode)(u,{"is-shadow":!1,"is-full":""},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("u-text",{class:"uni-h6"},"\u6570\u5B57\u8F93\u5165\u6846\u7EC4\u4EF6\u591A\u7528\u4E8E\u8D2D\u7269\u8F66\u52A0\u51CF\u5546\u54C1\u7B49\u573A\u666F")]),_:1}),(0,n.createVNode)(c,{title:"\u57FA\u672C\u7528\u6CD5",type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{onChange:r.changeValue},null,8,["onChange"])]),_:1}),(0,n.createVNode)(c,{title:"\u4F7F\u7528v-model : "+l.vModelValue,subTitle:"\u4F7F\u7528 v-model \u663E\u793A\u9ED8\u8BA4\u503C",type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{modelValue:l.vModelValue,"onUpdate:modelValue":t[0]||(t[0]=S=>l.vModelValue=S),onBlur:r.blur,onFocus:r.focus,onChange:r.changeValue},null,8,["modelValue","onBlur","onFocus","onChange"])]),_:1},8,["title"]),(0,n.createVNode)(c,{title:"\u8BBE\u7F6E\u6700\u5C0F\u503C\u548C\u6700\u5927\u503C",subTitle:"\u4F7F\u7528 min \\ max \u5C5E\u6027\u8BBE\u7F6E\u6700\u5927\u6700\u5C0F\u503C",type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{min:2,max:9,value:555})]),_:1}),(0,n.createVNode)(c,{title:"\u8BBE\u7F6E\u6B65\u957F\uFF08\u6B65\u957F0.1)",subTitle:"\u4F7F\u7528 step \u5C5E\u6027\u8BBE\u7F6E\u6B65\u957F",type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{value:1.1,step:.1})]),_:1}),(0,n.createVNode)(c,{title:"\u81EA\u5B9A\u4E49\u80CC\u666F",type:"line",subTitle:"\u4F7F\u7528 background \u5C5E\u6027\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u80CC\u666F\u8272",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{value:50,background:"#2979FF",color:"#fff"})]),_:1}),(0,n.createVNode)(c,{title:"\u7981\u7528\u72B6\u6001",subTitle:"\u4F7F\u7528 disabled \u5C5E\u6027\u8BBE\u7F6E\u7EC4\u4EF6\u7981\u7528",type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{disabled:!0})]),_:1}),(0,n.createVNode)(c,{title:"\u83B7\u53D6\u8F93\u5165\u7684\u503C : "+l.numberValue,type:"line",padding:""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{value:l.numberValue,onChange:r.change},null,8,["value","onChange"])]),_:1},8,["title"])])])}var b=m(A,[["render",q]]);var p=plus.webview.currentWebview();if(p){let i=parseInt(p.id),t="pages/extUI/number-box/number-box",e={};try{e=JSON.parse(p.__query__)}catch(l){}b.mpType="page";let d=Vue.createPageApp(b,{$store:getApp({allowDefault:!0}).$store,__pageId:i,__pagePath:t,__pageQuery:e});d.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...b.styles||[]])),d.mount("#root")}})();
