UNPKG

xc-workflow-ui

Version:

基于vant二次封装工作流组件库

1 lines 43.8 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["xc-workflow-ui"]=e(require("vue")):t["xc-workflow-ui"]=e(t.Vue)}(self,(t=>(()=>{"use strict";var e={6568:t=>{function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},e.apply(this,arguments)}var i=["attrs","props","domProps"],n=["class","style","directives"],o=["on","nativeOn"],r=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,s){for(var a in s)if(t[a])if(-1!==i.indexOf(a))t[a]=e({},t[a],s[a]);else if(-1!==n.indexOf(a)){var c=t[a]instanceof Array?t[a]:[t[a]],l=s[a]instanceof Array?s[a]:[s[a]];t[a]=[].concat(c,l)}else if(-1!==o.indexOf(a))for(var u in s[a])if(t[a][u]){var h=t[a][u]instanceof Array?t[a][u]:[t[a][u]],d=s[a][u]instanceof Array?s[a][u]:[s[a][u]];t[a][u]=[].concat(h,d)}else t[a][u]=s[a][u];else if("hook"===a)for(var f in s[a])t[a][f]=t[a][f]?r(t[a][f],s[a][f]):s[a][f];else t[a]=s[a];else t[a]=s[a];return t}),{})}},4592:(t,e,i)=>{i.d(e,{Ih:()=>o,TD:()=>n,u7:()=>s,xd:()=>r});var n=function(t){return function(e){e.component(t.name,t)}},o=function(t){return{type:String,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||""}},r=function(t){return{type:Boolean,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||!1}},s=function(t){return{type:Array,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||[]}}},6618:(t,e,i)=>{i.d(e,{X9:()=>l});var n=i(4592);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={title:{type:String,default:""},propertyName:{type:String,default:""},componentType:{type:String,default:""},formValue:{type:String,default:""}},l=(s(s({},c),{},{fieldName:(0,n.Ih)(""),fromStorage:(0,n.xd)(!1)}),s(s({},c),{},{dictCode:{type:String,default:""}}),s(s({},c),{},{mediaType:(0,n.Ih)("",!0),formValue:(0,n.u7)([],!0)}));s(s({},c),{},{formValue:(0,n.u7)([],!0)}),s(s({},c),{},{center:(0,n.u7)([]),mobileMapSource:(0,n.Ih)(),gridName:(0,n.Ih)(),districtName:(0,n.Ih)(),townName:(0,n.Ih)(),villageName:(0,n.Ih)(),regionName:(0,n.Ih)(),gridCode:(0,n.Ih)()})},2293:()=>{},6018:()=>{},8010:()=>{},1383:()=>{},5388:()=>{},6799:()=>{},677:()=>{},6629:()=>{},2254:()=>{},9415:()=>{},1392:(t,e,i)=>{i.d(e,{Z:()=>v});var n=i(6568),o=i.n(n),r=i(5976),s=i(216),a=i(6122),c=i(7937),l=(0,r.d)("icon"),u=l[0],h=l[1];var d={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function f(t,e,i,n){var r,l=function(t){return t&&d[t]||t}(e.name),u=function(t){return!!t&&-1!==t.indexOf("/")}(l);return t(e.tag,o()([{class:[e.classPrefix,u?"":e.classPrefix+"-"+l],style:{color:e.color,fontSize:(0,s.N)(e.size)}},(0,a.ED)(n,!0)]),[i.default&&i.default(),u&&t("img",{class:h("image"),attrs:{src:l}}),t(c.Z,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}f.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:h()}};const v=u(f)},3307:(t,e,i)=>{i(6629),i(1383),i(2293)},2685:(t,e,i)=>{i.d(e,{Z:()=>_});var n=i(9592),o=i(1895),r=i.n(o),s=i(5976),a=(0,s.d)("image-preview"),c=a[0],l=a[1],u=i(9339),h=i(4611),d=i(9045),f=i(1392),v=i(591),m=i(5566),p=i(2036),g=i(8169),y=i(9345),w=(0,s.d)("swipe"),S=w[0],b=w[1];const x=S({mixins:[h.D,(0,y.G)("vanSwipe"),(0,d.X)((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!(0,v.x)(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&((0,m.PF)(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=e/(Date.now()-this.touchStartTime);if((Math.abs(i)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var n=this.vertical?this.offsetY:this.offsetX,o=0;o=this.loop?n>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:o,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?(0,g.w6)(e+t,-1,i):(0,g.w6)(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=e-i;return this.loop||(n=(0,g.w6)(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,o=void 0===n?0:n,r=t.emitChange,s=this.loop,a=this.count,c=this.active,l=this.children,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,o);if(s){if(l[0]&&f!==h){var v=f<h;l[0].offset=v?u:0}if(l[a-1]&&0!==f){var m=f>0;l[a-1].offset=m?-u:0}}this.active=d,this.offset=f,r&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),(0,p.d1)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),(0,p.d1)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),(0,p.d1)((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?(0,p.d1)((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,o=this.slots("indicator");return o||(this.showIndicators&&i>1?e("div",{class:b("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,o){return e("i",{class:b("indicator",{active:o===n}),style:o===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:b()},[t("div",{ref:"track",style:this.trackStyle,class:b("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}});var C=i(4951),$=i(3432),z=(0,s.d)("swipe-item"),E=z[0],k=z[1];const O=E({mixins:[(0,y.j)("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return i&&(t[n?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,n=this.mounted;if(!i.lazyRender||e)return!0;if(!n)return!1;var o=i.activeIndicator,r=i.count-1,s=0===o&&i.loop?r:o-1,a=o===r&&i.loop?0:o+1,c=t===o||t===s||t===a;return c&&(this.inited=!0),c}},render:function(){return(0,arguments[0])("div",{class:k(),style:this.style,on:(0,n.Z)({},this.$listeners)},[this.shouldRender&&this.slots()])}});function T(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}const I={mixins:[h.D],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=(0,g.w6)(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,n=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.fingerNum=e.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===this.fingerNum&&1!==this.scale,this.zooming=2===this.fingerNum&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=T(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&(0,m.PF)(t,!0),this.moving){var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=(0,g.w6)(i,-this.maxMoveX,this.maxMoveX),this.moveY=(0,g.w6)(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var o=T(e),r=this.startScale*o/this.startDistance;this.setScale(r)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=(0,g.w6)(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=(0,g.w6)(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),(0,m.PF)(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this;if(!(this.fingerNum>1)){var e=this.offsetX,i=void 0===e?0:e,n=this.offsetY,o=void 0===n?0:n,r=new Date-this.touchStartTime;i<5&&o<5&&r<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))}},onLoad:function(t){var e=t.target,i=e.naturalWidth,n=e.naturalHeight;this.imageRatio=n/i}},render:function(){var t=arguments[0],e={loading:function(){return t($.Z,{attrs:{type:"spinner"}})}};return t(O,{class:l("swipe-item")},[t(C.Z,{attrs:{src:this.src,fit:"contain"},class:l("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},P=c({mixins:[h.D,(0,u.e)({skipToggleEvent:!0}),(0,d.X)((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,overlayStyle:Object,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:l("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:l("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:l("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(x,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:l("swipe"),on:{change:this.setActive}},[this.images.map((function(i){return e(I,{attrs:{src:i,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(f.Z,{attrs:{role:"button",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[l(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}});var N,D=i(8546),M={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",overlayStyle:null,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},X=function(){N=new(r().extend(P))({el:document.createElement("div")}),document.body.appendChild(N.$el),N.$on("change",(function(t){N.onChange&&N.onChange(t)})),N.$on("scale",(function(t){N.onScale&&N.onScale(t)}))},j=function(t,e){if(void 0===e&&(e=0),!D.sk){N||X();var i=Array.isArray(t)?{images:t,startPosition:e}:t;return(0,n.Z)(N,M,i),N.$once("input",(function(t){N.value=t})),N.$once("closed",(function(){N.images=[]})),i.onClose&&(N.$off("close"),N.$once("close",i.onClose)),N}};j.Component=P,j.install=function(){r().use(P)};const _=j},4951:(t,e,i)=>{i.d(e,{Z:()=>d});var n=i(6568),o=i.n(n),r=i(5976),s=i(8546),a=i(216),c=i(1392),l=(0,r.d)("image"),u=l[0],h=l[1];const d=u({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return(0,s.Xq)(this.width)&&(t.width=(0,a.N)(this.width)),(0,s.Xq)(this.height)&&(t.height=(0,a.N)(this.height)),(0,s.Xq)(this.radius)&&(t.overflow="hidden",t.borderRadius=(0,a.N)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&s._f&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:h("loading")},[this.slots("loading")||t(c.Z,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:h("loading-icon")})]):this.error&&this.showError?t("div",{class:h("error")},[this.slots("error")||t(c.Z,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:h("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:h("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",o()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",o()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){return(0,arguments[0])("div",{class:h({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}})},7937:(t,e,i)=>{i.d(e,{Z:()=>d});var n=i(6568),o=i.n(n),r=i(5976),s=i(8546),a=i(6122),c=(0,r.d)("info"),l=c[0],u=c[1];function h(t,e,i,n){var r=e.dot,c=e.info,l=(0,s.Xq)(c)&&""!==c;if(r||l)return t("div",o()([{class:u({dot:r})},(0,a.ED)(n,!0)]),[r?"":e.info])}h.props={dot:Boolean,info:[Number,String]};const d=l(h)},3432:(t,e,i)=>{i.d(e,{Z:()=>v});var n=i(6568),o=i.n(n),r=i(5976),s=i(216),a=i(6122),c=(0,r.d)("loading"),l=c[0],u=c[1];function h(t,e){if("spinner"===e.type){for(var i=[],n=0;n<12;n++)i.push(t("i"));return i}return t("svg",{class:u("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function d(t,e,i){if(i.default){var n,o={fontSize:(0,s.N)(e.textSize),color:null!=(n=e.textColor)?n:e.color};return t("span",{class:u("text"),style:o},[i.default()])}}function f(t,e,i,n){var r=e.color,c=e.size,l=e.type,f={color:r};if(c){var v=(0,s.N)(c);f.width=v,f.height=v}return t("div",o()([{class:u([l,{vertical:e.vertical}])},(0,a.ED)(n,!0)]),[t("span",{class:u("spinner",l),style:f},[h(t,e)]),d(t,e,i)])}f.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};const v=l(f)},9045:(t,e,i)=>{i.d(e,{X:()=>r});var n=i(5566),o=0;function r(t){var e="binded_"+o++;function i(){this[e]||(t.call(this,n.on,!0),this[e]=!0)}function r(){this[e]&&(t.call(this,n.S1,!1),this[e]=!1)}return{mounted:i,activated:i,deactivated:r,beforeDestroy:r}}},9339:(t,e,i)=>{i.d(e,{e:()=>k});var n={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var i=this.stack.indexOf(e);this.stack.splice(i,1)}}},o=i(9592),r=i(6568),s=i.n(r),a=i(5976),c=i(8546),l=i(6122),u=i(5566),h=(0,a.d)("overlay"),d=h[0],f=h[1];function v(t){(0,u.PF)(t,!0)}function m(t,e,i,n){var r=(0,o.Z)({zIndex:e.zIndex},e.customStyle);return(0,c.Xq)(e.duration)&&(r.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",s()([{directives:[{name:"show",value:e.show}],style:r,class:[f(),e.className],on:{touchmove:e.lockScroll?v:c.ZT}},(0,l.ED)(n,!0)]),[null==i.default?void 0:i.default()])])}m.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};const p=d(m);var g=i(4042),y={className:"",customStyle:{}};function w(t){return(0,l.LI)(p,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function S(t){var e=n.find(t);if(e){var i=t.$el,r=e.config,s=e.overlay;i&&i.parentNode&&i.parentNode.insertBefore(s.$el,i),(0,o.Z)(s,y,r,{show:!0})}}function b(t){var e=n.find(t);e&&(e.overlay.show=!1)}var x=i(1750),C=i(4611);function $(t){var e=void 0===t?{}:t,i=e.ref,n=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,o=this.getContainer,r=i?this.$refs[i]:this.$el;o?t="string"==typeof(e=o)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==r.parentNode&&t.appendChild(r),n&&n.call(this)}}}}var z={mixins:[(0,i(9045).X)((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?u.on:u.S1)(window,"popstate",this.onPopstate))}}},E={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function k(t){return void 0===t&&(t={}),{mixins:[C.D,z,$({afterPortal:function(){this.overlay&&S()}})],provide:function(){return{vanPopup:this}},props:E,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=n.find(t))&&((0,g.Z)(e.overlay.$el),n.remove(t)),this.opened&&this.removeLock(),this.getContainer&&(0,g.Z)(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(n.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&((0,u.on)(document,"touchstart",this.touchStart),(0,u.on)(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.add("van-overflow-hidden"),n.lockCount++)},removeLock:function(){this.lockScroll&&n.lockCount&&(n.lockCount--,(0,u.S1)(document,"touchstart",this.touchStart),(0,u.S1)(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(b(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=(0,x.Ob)(t.target,this.$el),n=i.scrollHeight,o=i.offsetHeight,r=i.scrollTop,s="11";0===r?s=o>=n?"00":"01":r+o>=n&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(e,2)||(0,u.PF)(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?function(t,e){var i=n.find(t);if(i)i.config=e;else{var o=w(t);n.stack.push({vm:t,config:e,overlay:o})}S(t)}(t,{zIndex:n.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):b(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++n.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}},9345:(t,e,i)=>{i.d(e,{G:()=>r,j:()=>o});var n=i(1150);function o(t,e){var i,o;void 0===e&&(e={});var r=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(o={parent:function(){return this.disableBindRelation?null:this[t]}},o[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},o),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);(0,n.e)(t,this.parent),this.parent.children=t}}}}}function r(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}},4611:(t,e,i)=>{i.d(e,{D:()=>o});var n=i(5566);var o={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX<0?0:e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var i,n;(!this.direction||this.offsetX<10&&this.offsetY<10)&&(this.direction=(i=this.offsetX,n=this.offsetY,i>n?"horizontal":n>i?"vertical":""))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,i=this.onTouchMove,o=this.onTouchEnd;(0,n.on)(t,"touchstart",e),(0,n.on)(t,"touchmove",i),o&&((0,n.on)(t,"touchend",o),(0,n.on)(t,"touchcancel",o))}}}},5976:(t,e,i)=>{function n(t,e){return e?"string"==typeof e?" "+t+"--"+e:Array.isArray(e)?e.reduce((function(e,i){return e+n(t,i)}),""):Object.keys(e).reduce((function(i,o){return i+(e[o]?n(t,o):"")}),""):""}function o(t){return function(e,i){return e&&"string"!=typeof e&&(i=e,e=""),""+(e=e?t+"__"+e:t)+n(e,i)}}i.d(e,{d:()=>w});var r=i(8546),s=i(4873),a={methods:{slots:function(t,e){void 0===t&&(t="default");var i=this.$slots,n=this.$scopedSlots[t];return n?n(e):i[t]}}},c=i(1895),l=i.n(c);function u(t){var e=this.name;t.component(e,this),t.component((0,s._)("-"+e),this)}function h(t){return{functional:!0,props:t.props,model:t.model,render:function(e,i){return t(e,i.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},i=t.slots();return Object.keys(i).forEach((function(t){e[t]||(e[t]=function(){return i[t]})})),e}(i),i)}}}function d(t){return function(e){return(0,r.mf)(e)&&(e=h(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(a)),e.name=t,e.install=u,e}}var f=Object.prototype.hasOwnProperty;function v(t,e){return Object.keys(e).forEach((function(i){!function(t,e,i){var n=e[i];(0,r.Xq)(n)&&(f.call(t,i)&&(0,r.Kn)(n)?t[i]=v(Object(t[i]),e[i]):t[i]=n)}(t,e,i)})),t}var m=l().prototype,p=l().util.defineReactive;p(m,"$vantLang","zh-CN"),p(m,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});const g={messages:function(){return m.$vantMessages[m.$vantLang]},use:function(t,e){var i;m.$vantLang=t,this.add(((i={})[t]=e,i))},add:function(t){void 0===t&&(t={}),v(m.$vantMessages,t)}};function y(t){var e=(0,s._)(t)+".";return function(t){for(var i=g.messages(),n=(0,r.U2)(i,e+t)||(0,r.U2)(i,t),o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return(0,r.mf)(n)?n.apply(void 0,s):n}}function w(t){return[d(t="van-"+t),o(t),y(t)]}},5566:(t,e,i)=>{i.d(e,{PF:()=>c,S1:()=>a,on:()=>s});var n=i(8546),o=!1;if(!n.sk)try{var r={};Object.defineProperty(r,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,r)}catch(t){}function s(t,e,i,r){void 0===r&&(r=!1),n.sk||t.addEventListener(e,i,!!o&&{capture:!1,passive:r})}function a(t,e,i){n.sk||t.removeEventListener(e,i)}function c(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&function(t){t.stopPropagation()}(t)}},4042:(t,e,i)=>{function n(t){var e=t.parentNode;e&&e.removeChild(t)}i.d(e,{Z:()=>n})},2036:(t,e,i)=>{i.d(e,{d1:()=>c});var n=i(8546),o=Date.now();var r=n.sk?i.g:window,s=r.requestAnimationFrame||function(t){var e=Date.now(),i=Math.max(0,16-(e-o)),n=setTimeout(t,i);return o=e+i,n};r.cancelAnimationFrame||r.clearTimeout;function a(t){return s.call(r,t)}function c(t){a((function(){a(t)}))}},1750:(t,e,i)=>{i.d(e,{Ob:()=>o});var n=/scroll|auto|overlay/i;function o(t,e){void 0===e&&(e=window);for(var i=t;i&&"HTML"!==i.tagName&&"BODY"!==i.tagName&&1===i.nodeType&&i!==e;){var o=window.getComputedStyle(i).overflowY;if(n.test(o))return i;i=i.parentNode}return e}},591:(t,e,i)=>{function n(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}i.d(e,{x:()=>n})},8169:(t,e,i)=>{function n(t,e,i){return Math.min(Math.max(t,e),i)}i.d(e,{w6:()=>n})},4873:(t,e,i)=>{i.d(e,{_:()=>o});var n=/-(\w)/g;function o(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}},216:(t,e,i)=>{i.d(e,{N:()=>r});var n=i(8546),o=i(139);function r(t){if((0,n.Xq)(t))return t=String(t),(0,o.k)(t)?t+"px":t}},6122:(t,e,i)=>{i.d(e,{ED:()=>c,LI:()=>l});var n=i(9592),o=i(1895),r=i.n(o),s=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],a={nativeOn:"on"};function c(t,e){var i=s.reduce((function(e,i){return t.data[i]&&(e[a[i]||i]=t.data[i]),e}),{});return e&&(i.on=i.on||{},(0,n.Z)(i.on,t.data.on)),i}function l(t,e){var i=new(r())({el:document.createElement("div"),props:t.props,render:function(i){return i(t,(0,n.Z)({props:this.$props},e))}});return document.body.appendChild(i.$el),i}},8546:(t,e,i)=>{i.d(e,{Kn:()=>l,U2:()=>u,Xq:()=>a,ZT:()=>s,_f:()=>o,mf:()=>c,sk:()=>r});var n=i(1895),o="undefined"!=typeof window,r=i.n(n)().prototype.$isServer;function s(){}function a(t){return null!=t}function c(t){return"function"==typeof t}function l(t){return null!==t&&"object"==typeof t}function u(t,e){var i=e.split("."),n=t;return i.forEach((function(t){var e;n=l(n)&&null!=(e=n[t])?e:""})),n}},139:(t,e,i)=>{function n(t){return/^\d+(\.\d+)?$/.test(t)}i.d(e,{k:()=>n})},1150:(t,e,i)=>{function n(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var n=function(t){var e=[];return function t(i){i.forEach((function(i){e.push(i),i.componentInstance&&t(i.componentInstance.$children.map((function(t){return t.$vnode}))),i.children&&t(i.children)}))}(t),e}(i.children);t.sort((function(t,e){return n.indexOf(t.$vnode)-n.indexOf(e.$vnode)}))}}i.d(e,{e:()=>n})},1900:(t,e,i)=>{function n(t,e,i,n,o,r,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}i.d(e,{Z:()=>n})},1895:e=>{e.exports=t},9592:(t,e,i)=>{function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.apply(this,arguments)}i.d(e,{Z:()=>n})}},i={};function n(t){var o=i[t];if(void 0!==o)return o.exports;var r=i[t]={exports:{}};return e[t](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};return(()=>{n.d(o,{default:()=>P});var t=function(){var t=this,e=t.$createElement,i=t._self._c||e;return"1"===t.mediaType?i("base-image",{attrs:{images:t.mediaSource}}):"2"===t.mediaType?i("base-video",{attrs:{videos:t.mediaSource}}):"3"===t.mediaType?i("base-file",{attrs:{files:t.mediaSource}}):i("van-empty",{attrs:{image:"https://img01.yzcdn.cn/vant/custom-empty-image.png",description:"暂无数据","image-size":"50"}})};t._withStripped=!0;n(6629);var e=n(5976),i=n(216),r="van-empty-network-";const s={render:function(){var t=arguments[0],e=function(e,i,n){return t("stop",{attrs:{"stop-color":e,offset:i+"%","stop-opacity":n}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:r+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:r+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:r+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:r+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+r+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+r+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+r+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+r+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+r+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+r+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+r+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+r+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+r+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+r+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}};var a=(0,e.d)("empty"),c=a[0],l=a[1],u=["error","search","default"];const h=c({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(s);var i=this.image;return-1!==u.indexOf(i)&&(i="https://img01.yzcdn.cn/vant/empty-image-"+i+".png"),t("img",{attrs:{src:i}})},genImage:function(){var t=this.$createElement,e={width:(0,i.N)(this.imageSize),height:(0,i.N)(this.imageSize)};return t("div",{class:l("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:l("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:l("bottom")},[e])}},render:function(){return(0,arguments[0])("div",{class:l()},[this.genImage(),this.genDescription(),this.genBottom()])}});var d=n(6618),f=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"base-image__container"},t._l(t.images,(function(e,n){return i("van-image",{key:n,attrs:{src:e,fit:"cover",radius:"4"},on:{click:function(e){return t.handleImgClick(t.images,n)}}})})),1)};f._withStripped=!0;n(6799),n(1383),n(2293),n(8010),n(677),n(5388),n(9415),n(2254),n(6018);var v=n(2685);const m={name:"BaseImage",components:{VanImage:n(4951).Z},props:{images:{type:Array,required:!0}},methods:{handleImgClick:function(t,e){(0,v.Z)({images:t,closeable:!0,startPosition:e})}}};var p=n(1900);const g=(0,p.Z)(m,f,[],!1,null,"858e04ea",null).exports;var y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"base-video__container"},t._l(t.videos,(function(t,e){return i("video",{key:e,attrs:{src:t,controls:""}})})),0)};y._withStripped=!0;const w={name:"BaseVideo",props:{videos:{type:Array,required:!0}}};const S=(0,p.Z)(w,y,[],!1,null,null,null).exports;var b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"base-file__container"},t._l(t.wrapperFiles,(function(e,n){var o=e.fileName,r=e.fileUrl,s=e.iconName;return i("div",{key:n},[i("van-icon",{attrs:{name:s+"-o"}}),t._v(" "),i("a",{attrs:{href:r,download:"fileName"}},[t._v(t._s(o))])],1)})),0)};b._withStripped=!0;n(3307);var x=n(1392),C=["xbm","tif","pjp","svgz","jpg","jpeg","ico","tiff","gif","svg","jfif","webp","png","bmp","pjpeg","avif"],$=["mpg","mpeg","avi","rm","rmvb","mov","wmv","asf","dat","asx","wvx","mpe","mpa","mp4"];function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r,s,a=[],c=!0,l=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;c=!1}else for(;!(c=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}const k={name:"BaseFile",components:{VanIcon:x.Z},props:{files:{type:Array,required:!0}},computed:{wrapperFiles:function(){return this.files.map((function(t){var e=z(t.split("/").reverse(),1)[0],i=z(e.split("."),2),n=(i[0],i[1]);return{fileUrl:t,fileName:e,iconName:$.includes(n)?"video":C.includes(n)?"photo":"orders"}}))}}};const O={name:"XcAttachment",components:{BaseImage:g,BaseVideo:S,BaseFile:(0,p.Z)(k,b,[],!1,null,null,null).exports,VanEmpty:h},props:d.X9,computed:{mediaSource:function(){return this.formValue.map((function(t){return t.link}))}}};const T=(0,p.Z)(O,t,[],!1,null,"0a755320",null).exports;var I=n(4592);T.install=(0,I.TD)(T);const P=T})(),o=o.default})()));