"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 S=Object.create;var w=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var D=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var z=(r,i,o,u)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of B(i))!R.call(r,t)&&t!==o&&w(r,t,{get:()=>i[t],enumerable:!(u=I(i,t))||u.enumerable});return r};var p=(r,i,o)=>(o=r!=null?S(T(r)):{},z(i||!r||!r.__esModule?w(o,"default",{value:r,enumerable:!0}):o,r));var b=D((q,x)=>{x.exports=Vue});var Y=p(b());function k(r,i,...o){uni.__log__?uni.__log__(r,i,...o):console[r].apply(console,[...o,i])}function _(r,i){return typeof r=="string"?i:r}var e=p(b());var m=(r,i)=>{let o=r.__vccOpts||r;for(let[u,t]of i)o[u]=t;return o};var n=p(b());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}}},V={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(r){uni.report&&r!==""&&uni.report("title",r)}},methods:{onClick(){this.$emit("click")}}};function j(r,i,o,u,t,l){return(0,n.openBlock)(),(0,n.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,n.createElementVNode)("view",{class:"uni-section-header",onClick:i[0]||(i[0]=(...a)=>l.onClick&&l.onClick(...a))},[o.type?((0,n.openBlock)(),(0,n.createElementBlock)("view",{key:0,class:(0,n.normalizeClass)(["uni-section-header__decoration",o.type])},null,2)):(0,n.renderSlot)(r.$slots,"decoration",{key:1}),(0,n.createElementVNode)("view",{class:"uni-section-header__content"},[(0,n.createElementVNode)("u-text",{style:(0,n.normalizeStyle)({"font-size":o.titleFontSize,color:o.titleColor}),class:(0,n.normalizeClass)(["uni-section__content-title",{distraction:!o.subTitle}])},(0,n.toDisplayString)(o.title),7),o.subTitle?((0,n.openBlock)(),(0,n.createElementBlock)("u-text",{key:0,style:(0,n.normalizeStyle)({"font-size":o.subTitleFontSize,color:o.subTitleColor}),class:"uni-section-header__content-sub"},(0,n.toDisplayString)(o.subTitle),5)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,n.renderSlot)(r.$slots,"right")])]),(0,n.createElementVNode)("view",{class:"uni-section-content",style:(0,n.normalizeStyle)({padding:l._padding})},[(0,n.renderSlot)(r.$slots,"default")],4)])}var C=m(V,[["render",j],["styles",[L]]]);var N={"uni-swiper__warp":{"":{flex:1,flexDirection:"column",position:"relative",overflow:"hidden"}},"uni-swiper__dots-box":{"":{position:"absolute",bottom:10,left:0,right:0,flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center"}},"uni-swiper__dots-item":{"":{width:8,borderRadius:100,marginLeft:6,backgroundColor:"rgba(0,0,0,0.4)","marginTop:first-child":0,"marginRight:first-child":0,"marginBottom:first-child":0,"marginLeft:first-child":0}},"uni-swiper__dots-default":{"":{borderRadius:100}},"uni-swiper__dots-long":{"":{borderRadius:50}},"uni-swiper__dots-bar":{"":{borderRadius:50}},"uni-swiper__dots-nav":{"":{bottom:0,paddingTop:8,paddingRight:0,paddingBottom:8,paddingLeft:0,flex:1,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",backgroundColor:"rgba(0,0,0,0.2)"}},"uni-swiper__dots-nav-item":{"":{fontSize:14,color:"#ffffff",marginTop:0,marginRight:15,marginBottom:0,marginLeft:15}},"uni-swiper__dots-indexes":{"":{justifyContent:"center",alignItems:"center"}},"uni-swiper__dots-indexes-text":{"":{color:"#ffffff",fontSize:12,lineHeight:14}}},E={name:"UniSwiperDot",emits:["clickItem"],props:{info:{type:Array,default(){return[]}},current:{type:Number,default:0},dotsStyles:{type:Object,default(){return{}}},mode:{type:String,default:"default"},field:{type:String,default:""}},data(){return{dots:{width:6,height:6,bottom:10,color:"#fff",backgroundColor:"rgba(0, 0, 0, .3)",border:"1px rgba(0, 0, 0, .3) solid",selectedBackgroundColor:"#333",selectedBorder:"1px rgba(0, 0, 0, .9) solid"}}},watch:{dotsStyles(r){this.dots=Object.assign(this.dots,this.dotsStyles)},mode(r){r==="indexes"?(this.dots.width=14,this.dots.height=14):(this.dots.width=6,this.dots.height=6)}},created(){this.mode==="indexes"&&(this.dots.width=12,this.dots.height=12),this.dots=Object.assign(this.dots,this.dotsStyles)},methods:{clickItem(r){this.$emit("clickItem",r)}}};function U(r,i,o,u,t,l){return(0,e.openBlock)(),(0,e.createElementBlock)("view",{class:"uni-swiper__warp",renderWhole:!0},[(0,e.renderSlot)(r.$slots,"default"),o.mode==="default"?((0,e.openBlock)(),(0,e.createElementBlock)("view",{style:(0,e.normalizeStyle)({bottom:t.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"default"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.info,(a,s)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{onClick:g=>l.clickItem(s),style:(0,e.normalizeStyle)({width:(s===o.current?t.dots.width*2:t.dots.width)+"px",height:t.dots.width/2+"px","background-color":s!==o.current?t.dots.backgroundColor:t.dots.selectedBackgroundColor,"border-radius":"0px"}),key:s,class:"uni-swiper__dots-item uni-swiper__dots-bar"},null,12,["onClick"]))),128))],4)):(0,e.createCommentVNode)("",!0),o.mode==="dot"?((0,e.openBlock)(),(0,e.createElementBlock)("view",{style:(0,e.normalizeStyle)({bottom:t.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"dot"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.info,(a,s)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{onClick:g=>l.clickItem(s),style:(0,e.normalizeStyle)({width:t.dots.width+"px",height:t.dots.height+"px","background-color":s!==o.current?t.dots.backgroundColor:t.dots.selectedBackgroundColor,border:s!==o.current?t.dots.border:t.dots.selectedBorder}),key:s,class:"uni-swiper__dots-item"},null,12,["onClick"]))),128))],4)):(0,e.createCommentVNode)("",!0),o.mode==="round"?((0,e.openBlock)(),(0,e.createElementBlock)("view",{style:(0,e.normalizeStyle)({bottom:t.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"round"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.info,(a,s)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{onClick:g=>l.clickItem(s),class:(0,e.normalizeClass)([[s===o.current&&"uni-swiper__dots-long"],"uni-swiper__dots-item"]),style:(0,e.normalizeStyle)({width:(s===o.current?t.dots.width*3:t.dots.width)+"px",height:t.dots.height+"px","background-color":s!==o.current?t.dots.backgroundColor:t.dots.selectedBackgroundColor,border:s!==o.current?t.dots.border:t.dots.selectedBorder}),key:s},null,14,["onClick"]))),128))],4)):(0,e.createCommentVNode)("",!0),o.mode==="nav"?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:"nav",style:(0,e.normalizeStyle)({"background-color":o.dotsStyles.backgroundColor,bottom:"0"}),class:"uni-swiper__dots-box uni-swiper__dots-nav"},[(0,e.createElementVNode)("u-text",{style:(0,e.normalizeStyle)({color:o.dotsStyles.color}),class:"uni-swiper__dots-nav-item"},(0,e.toDisplayString)(o.current+1+"/"+o.info.length+" "+o.info[o.current][o.field]),5)],4)):(0,e.createCommentVNode)("",!0),o.mode==="indexes"?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:"indexes",style:(0,e.normalizeStyle)({bottom:t.dots.bottom+"px"}),class:"uni-swiper__dots-box"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.info,(a,s)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{onClick:g=>l.clickItem(s),style:(0,e.normalizeStyle)({width:t.dots.width+"px",height:t.dots.height+"px",color:s===o.current?t.dots.selectedColor:t.dots.color,"background-color":s!==o.current?t.dots.backgroundColor:t.dots.selectedBackgroundColor,border:s!==o.current?t.dots.border:t.dots.selectedBorder}),key:s,class:"uni-swiper__dots-item uni-swiper__dots-indexes"},[(0,e.createElementVNode)("u-text",{class:"uni-swiper__dots-indexes-text"},(0,e.toDisplayString)(s+1),1)],12,["onClick"]))),128))],4)):(0,e.createCommentVNode)("",!0)])}var A=m(E,[["render",U],["styles",[N]]]),F={"swiper-box":{"":{height:200}},"swiper-item":{"":{flexDirection:"column",justifyContent:"center",alignItems:"center",height:200,color:"#ffffff"}},"swiper-item0":{"":{backgroundColor:"#cee1fd"}},"swiper-item1":{"":{backgroundColor:"#b2cef7"}},"swiper-item2":{"":{backgroundColor:"#cee1fd"}},image:{"":{width:"750rpx"}},"uni-bg-red":{"":{backgroundColor:"#ff5a5f"}},"uni-bg-green":{"":{backgroundColor:"#09bb07"}},"uni-bg-blue":{"":{backgroundColor:"#007aff"}},"example-body":{"":{flexDirection:"row",paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx"}},"example-body-item":{"":{flexDirection:"row",justifyContent:"center",alignItems:"center",marginTop:"15rpx",marginRight:"15rpx",marginBottom:"15rpx",marginLeft:"15rpx",paddingTop:"15rpx",paddingRight:"15rpx",paddingBottom:"15rpx",paddingLeft:"15rpx",height:"60rpx",flex:1,borderColor:"#e5e5e5",borderStyle:"solid",borderWidth:1,borderRadius:5}},"example-body-item-text":{"":{fontSize:"28rpx",color:"#333333"}},"example-body-dots":{"":{width:"16rpx",height:"16rpx",borderRadius:50,backgroundColor:"#333333",marginLeft:"10rpx"}},active:{"":{borderStyle:"solid",borderColor:"#007aff",borderWidth:1}},"@FONT-FACE":[{"uni-swiper-dot-box":{"":{width:400,marginTop:8}},image:{"":{width:100}}}]},M={components:{},data(){return{info:[{colorClass:"uni-bg-red",url:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",content:"\u5185\u5BB9 A"},{colorClass:"uni-bg-green",url:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",content:"\u5185\u5BB9 B"},{colorClass:"uni-bg-blue",url:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",content:"\u5185\u5BB9 C"}],dotStyle:[{backgroundColor:"rgba(0, 0, 0, .3)",border:"1px rgba(0, 0, 0, .3) solid",color:"#fff",selectedBackgroundColor:"rgba(0, 0, 0, .9)",selectedBorder:"1px rgba(0, 0, 0, .9) solid"},{backgroundColor:"rgba(255, 90, 95,0.3)",border:"1px rgba(255, 90, 95,0.3) solid",color:"#fff",selectedBackgroundColor:"rgba(255, 90, 95,0.9)",selectedBorder:"1px rgba(255, 90, 95,0.9) solid"},{backgroundColor:"rgba(83, 200, 249,0.3)",border:"1px rgba(83, 200, 249,0.3) solid",color:"#fff",selectedBackgroundColor:"rgba(83, 200, 249,0.9)",selectedBorder:"1px rgba(83, 200, 249,0.9) solid"}],modeIndex:-1,styleIndex:-1,current:0,mode:"default",dotsStyles:{},swiperDotIndex:0}},onLoad(){},methods:{change(r){this.current=r.detail.current},selectStyle(r){this.dotsStyles=this.dotStyle[r],this.styleIndex=r},selectMode(r,i){this.mode=r,this.modeIndex=i,this.styleIndex=-1,this.dotsStyles=this.dotStyle[0]},clickItem(r){this.swiperDotIndex=r},onBanner(r){k("log","at pages/extUI/swiper-dot/swiper-dot.nvue:124",22222,r)}}};function W(r,i,o,u,t,l){let a=(0,e.resolveComponent)("swiper-item"),s=(0,e.resolveComponent)("swiper"),g=_((0,e.resolveDynamicComponent)("uni-swiper-dot"),A),h=_((0,e.resolveDynamicComponent)("uni-section"),C);return(0,e.openBlock)(),(0,e.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,e.createElementVNode)("view",{class:"content"},[(0,e.createVNode)(g,{class:"uni-swiper-dot-box",onClickItem:l.clickItem,info:t.info,current:t.current,mode:t.mode,"dots-styles":t.dotsStyles,field:"content"},{default:(0,e.withCtx)(()=>[(0,e.createVNode)(s,{class:"swiper-box",onChange:l.change,current:t.swiperDotIndex},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(3,(d,c)=>(0,e.createVNode)(a,{key:c},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["swiper-item","swiper-item"+c])},[(0,e.createElementVNode)("u-text",{style:{color:"#fff","font-size":"32px"}},(0,e.toDisplayString)(c+1),1)],2)]),_:2},1024)),64))]),_:1},8,["onChange","current"])]),_:1},8,["onClickItem","info","current","mode","dots-styles"]),(0,e.createVNode)(h,{title:"\u6A21\u5F0F\u9009\u62E9",type:"line"},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)("view",{class:"example-body"},[(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)([{active:t.modeIndex===0},"example-body-item"]),onClick:i[0]||(i[0]=d=>l.selectMode("default",0))},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text"},"default")],2),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)([{active:t.modeIndex===1},"example-body-item"]),onClick:i[1]||(i[1]=d=>l.selectMode("dot",1))},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text"},"dot")],2),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)([{active:t.modeIndex===2},"example-body-item"]),onClick:i[2]||(i[2]=d=>l.selectMode("round",2))},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text"},"round")],2),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)([{active:t.modeIndex===3},"example-body-item"]),onClick:i[3]||(i[3]=d=>l.selectMode("nav",3))},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text"},"nav")],2),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)([{active:t.modeIndex===4},"example-body-item"]),onClick:i[4]||(i[4]=d=>l.selectMode("indexes",4))},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text"},"indexes")],2)])]),_:1}),(0,e.createVNode)(h,{title:"\u989C\u8272\u6837\u5F0F\u9009\u62E9",type:"line"},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)("view",{class:"example-body"},[t.mode!=="nav"?((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:0},(0,e.renderList)(t.dotStyle,(d,c)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{class:(0,e.normalizeClass)([{active:t.styleIndex===c},"example-body-item"]),key:c,onClick:v=>l.selectStyle(c)},[(0,e.createElementVNode)("view",{style:(0,e.normalizeStyle)({"background-color":d.selectedBackgroundColor,border:d.selectedBorder}),class:"example-body-dots"},null,4),(0,e.createElementVNode)("view",{style:(0,e.normalizeStyle)({"background-color":d.backgroundColor,border:d.border}),class:"example-body-dots"},null,4),(0,e.createElementVNode)("view",{style:(0,e.normalizeStyle)({"background-color":d.backgroundColor,border:d.border}),class:"example-body-dots"},null,4)],10,["onClick"]))),128)):(0,e.createCommentVNode)("",!0),t.mode==="nav"?((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:1},(0,e.renderList)(t.dotStyle,(d,c)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{class:(0,e.normalizeClass)([{active:t.styleIndex===c},"example-body-item"]),key:c,style:(0,e.normalizeStyle)({"background-color":d.selectedBackgroundColor}),onClick:v=>l.selectStyle(c)},[(0,e.createElementVNode)("u-text",{class:"example-body-item-text",style:(0,e.normalizeStyle)({color:d.color})},"\u5185\u5BB9",4)],14,["onClick"]))),128)):(0,e.createCommentVNode)("",!0)])]),_:1})])])}var f=m(M,[["render",W],["styles",[F]]]);var y=plus.webview.currentWebview();if(y){let r=parseInt(y.id),i="pages/extUI/swiper-dot/swiper-dot",o={};try{o=JSON.parse(y.__query__)}catch(t){}f.mpType="page";let u=Vue.createPageApp(f,{$store:getApp({allowDefault:!0}).$store,__pageId:r,__pagePath:i,__pageQuery:o});u.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...f.styles||[]])),u.mount("#root")}})();
