mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
51 KiB
JavaScript
2 lines
51 KiB
JavaScript
/*! For license information please see 5484.c96084ea.js.LICENSE.txt */
|
|
(self.webpackChunk=self.webpackChunk||[]).push([["5484"],{55046:function(e,a,l){"use strict";let t=l("87434").Z;a.Z=t},96195:function(e,a,l){"use strict";let t=l("18909").Z;a.Z=t},90917:function(e,a,l){"use strict";let t=l("31685").Z;a.Z=t},92167:function(e,a,l){"use strict";let t=l("34472").Z;a.Z=t},22014:function(e,a,l){"use strict";let t=l("53714").Z;a.Z=t},82813:function(e,a,l){"use strict";let t=l("93647").Z;a.Z=t},54183:function(e,a,l){"use strict";let t=l("52733").Z;a.Z=t},10125:function(e,a,l){"use strict";l.r(a);let t=l("13585").Z;a.default=t},87434:function(e,a,l){"use strict";var t=l("80681"),n=l("11848"),r=l("57122"),i=l("85865"),u=l("51041"),o=l("99497"),d=l("19231"),s=l("54369"),c={style:{margin:"16px 16px 0"}};a.Z=(0,t.aZ)({__name:"BasicUsage",setup(e){var a=(0,s.q)({"zh-CN":{submit:"\u63D0\u4EA4",username:"\u7528\u6237\u540D",password:"\u5BC6\u7801",requireUsername:"\u8BF7\u586B\u5199\u7528\u6237\u540D",requirePassword:"\u8BF7\u586B\u5199\u5BC6\u7801"},"en-US":{submit:"Submit",username:"Username",password:"Password",requireUsername:"Username is required",requirePassword:"Password is required"}}),l=(0,n.iH)(""),m=(0,n.iH)(""),v=e=>{console.log("submit",e)},p=e=>{console.log("failed",e)};return(e,s)=>{var h=(0,t.up)("demo-block");return(0,t.wg)(),(0,t.j4)(h,{title:(0,n.SU)(a)("basicUsage")},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(i.ZP),{onSubmit:v,onFailed:p},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(d.ZP),{inset:""},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=e=>l.value=e),name:"username",label:(0,n.SU)(a)("username"),rules:[{required:!0,message:(0,n.SU)(a)("requireUsername")}],placeholder:(0,n.SU)(a)("username")},null,8,["modelValue","label","rules","placeholder"]),(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:m.value,"onUpdate:modelValue":s[1]||(s[1]=e=>m.value=e),type:"password",name:"password",label:(0,n.SU)(a)("password"),rules:[{required:!0,message:(0,n.SU)(a)("requirePassword")}],placeholder:(0,n.SU)(a)("password")},null,8,["modelValue","label","rules","placeholder"])]),_:1}),(0,t._)("div",c,[(0,t.Wm)((0,n.SU)(o.ZP),{round:"",block:"",type:"primary","native-type":"submit"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("submit")),1)]),_:1})])]),_:1})]),_:1},8,["title"])}}})},18909:function(e,a,l){"use strict";var t=l("80681"),n=l("11848"),r=l("57122"),i=l("54369"),u=l("24647"),o=l("85865"),d=l("77279"),s=l("98003"),c=l("51041"),m=l("99497"),v=l("73393"),p=l("41936"),h=l("16977"),g=l("12813"),f=l("37187"),b=l("19231"),S=l("12659"),y=l("74644"),U=l("90917"),V=l("82813"),w=l("92167"),x=l("22014"),Z={style:{margin:"16px 16px 0"}};a.Z=(0,t.aZ)({__name:"FieldType",setup(e){var a=(0,i.q)({"zh-CN":{rate:"\u8BC4\u5206",radio:"\u5355\u9009\u6846",submit:"\u63D0\u4EA4",switch:"\u5F00\u5173",slider:"\u6ED1\u5757",picker:"\u9009\u62E9\u5668",stepper:"\u6B65\u8FDB\u5668",checkbox:"\u590D\u9009\u6846",uploader:"\u6587\u4EF6\u4E0A\u4F20",fieldType:"\u8868\u5355\u9879\u7C7B\u578B",checkboxGroup:"\u590D\u9009\u6846\u7EC4",requireCheckbox:"\u8BF7\u52FE\u9009\u590D\u9009\u6846"},"en-US":{rate:"Rate",radio:"Radio",submit:"Submit",switch:"Switch",slider:"Slider",picker:"Picker",stepper:"Stepper",checkbox:"Checkbox",uploader:"Uploader",fieldType:"Field Type",checkboxGroup:"Checkbox Group",requireCheckbox:"Checkbox is required"}}),l=(0,n.iH)(3),P=(0,n.iH)("1"),W=(0,n.iH)(50),k=(0,n.iH)(1),C=(0,n.iH)([{url:(0,u.RQ)("leaf.jpeg")}]),H=(0,n.iH)(!1),F=(0,n.iH)([]),N=(0,n.iH)(!1),z=e=>{console.log(e)};return(e,i)=>{var u=(0,t.up)("demo-block");return(0,t.wg)(),(0,t.j4)(u,{title:(0,n.SU)(a)("fieldType")},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(o.ZP),{onSubmit:z},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(b.ZP),{inset:""},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(c.ZP),{name:"switch",label:(0,n.SU)(a)("switch")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(p.ZP),{modelValue:N.value,"onUpdate:modelValue":i[0]||(i[0]=e=>N.value=e)},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"checkbox",label:(0,n.SU)(a)("checkbox")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(g.ZP),{modelValue:H.value,"onUpdate:modelValue":i[1]||(i[1]=e=>H.value=e),shape:"square"},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"checkboxGroup",label:(0,n.SU)(a)("checkboxGroup")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(y.ZP),{modelValue:F.value,"onUpdate:modelValue":i[2]||(i[2]=e=>F.value=e),direction:"horizontal"},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(g.ZP),{name:"1",shape:"square"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("checkbox"))+" 1 ",1)]),_:1}),(0,t.Wm)((0,n.SU)(g.ZP),{name:"2",shape:"square"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("checkbox"))+" 2 ",1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"radio",label:(0,n.SU)(a)("radio")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(S.ZP),{modelValue:P.value,"onUpdate:modelValue":i[3]||(i[3]=e=>P.value=e),direction:"horizontal"},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(s.ZP),{name:"1"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("radio"))+" 1",1)]),_:1}),(0,t.Wm)((0,n.SU)(s.ZP),{name:"2"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("radio"))+" 2",1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"stepper",label:(0,n.SU)(a)("stepper")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(h.ZP),{modelValue:k.value,"onUpdate:modelValue":i[4]||(i[4]=e=>k.value=e)},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"rate",label:(0,n.SU)(a)("rate")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(d.ZP),{modelValue:l.value,"onUpdate:modelValue":i[5]||(i[5]=e=>l.value=e)},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"slider",label:(0,n.SU)(a)("slider")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(v.ZP),{modelValue:W.value,"onUpdate:modelValue":i[6]||(i[6]=e=>W.value=e)},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)((0,n.SU)(c.ZP),{name:"uploader",label:(0,n.SU)(a)("uploader")},{input:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(f.ZP),{modelValue:C.value,"onUpdate:modelValue":i[7]||(i[7]=e=>C.value=e),"max-count":"2"},null,8,["modelValue"])]),_:1},8,["label"]),(0,t.Wm)(V.Z),(0,t.Wm)(x.Z),(0,t.Wm)(U.Z),(0,t.Wm)(w.Z)]),_:1}),(0,t._)("div",Z,[(0,t.Wm)((0,n.SU)(m.ZP),{round:"",block:"",type:"primary","native-type":"submit"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("submit")),1)]),_:1})])]),_:1})]),_:1},8,["title"])}}})},31685:function(e,a,l){"use strict";l("66786"),l("14529");var t=l("80681"),n=l("11848"),r=l("20665"),i=l("51041"),u=l("97760"),o=l("90872"),d=l("54369"),s=l("21847");a.Z=(0,t.aZ)({__name:"FieldTypeArea",setup(e){var a=(0,d.q)({"zh-CN":{picker:"\u5730\u533A\u9009\u62E9",areaList:o.H,placeholder:"\u70B9\u51FB\u9009\u62E9\u7701\u5E02\u533A"},"en-US":{picker:"Area Picker",areaList:s.T,placeholder:"Select area"}}),l=(0,n.iH)(""),c=(0,n.iH)(!1),m=e=>{var{selectedOptions:a}=e;l.value=a.map(e=>e.text).join("/"),c.value=!1},v=()=>{c.value=!1};return(e,o)=>((0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)((0,n.SU)(i.ZP),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=e=>l.value=e),"is-link":"",readonly:"",name:"area",label:(0,n.SU)(a)("picker"),placeholder:(0,n.SU)(a)("placeholder"),onClick:o[1]||(o[1]=e=>c.value=!0)},null,8,["modelValue","label","placeholder"]),(0,t.Wm)((0,n.SU)(u.ZP),{show:c.value,"onUpdate:show":o[2]||(o[2]=e=>c.value=e),round:"",position:"bottom",teleport:"body"},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(r.ZP),{"area-list":(0,n.SU)(a)("areaList"),onConfirm:m,onCancel:v},null,8,["area-list"])]),_:1},8,["show"])],64))}})},34472:function(e,a,l){"use strict";var t=l("80681"),n=l("11848"),r=l("51041"),i=l("11136"),u=l("54369");a.Z=(0,t.aZ)({__name:"FieldTypeCalendar",setup(e){var a=(0,u.q)({"zh-CN":{calendar:"\u65E5\u5386",placeholder:"\u70B9\u51FB\u9009\u62E9\u65E5\u671F"},"en-US":{calendar:"Calendar",placeholder:"Select date"}}),l=(0,n.iH)(""),o=(0,n.iH)(!1),d=e=>"".concat(e.getMonth()+1,"/").concat(e.getDate()),s=e=>{l.value=d(e),o.value=!1};return(e,u)=>((0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)((0,n.SU)(r.ZP),{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=e=>l.value=e),"is-link":"",readonly:"",name:"calendar",label:(0,n.SU)(a)("calendar"),placeholder:(0,n.SU)(a)("placeholder"),onClick:u[1]||(u[1]=e=>o.value=!0)},null,8,["modelValue","label","placeholder"]),(0,t.Wm)((0,n.SU)(i.ZP),{show:o.value,"onUpdate:show":u[2]||(u[2]=e=>o.value=e),round:"",teleport:"body",onConfirm:s},null,8,["show"])],64))}})},53714:function(e,a,l){"use strict";var t=l("80681"),n=l("11848"),r=l("51041"),i=l("97760"),u=l("20133"),o=l("54369");a.Z=(0,t.aZ)({__name:"FieldTypeDatePicker",setup(e){var a=(0,o.q)({"zh-CN":{label:"\u65F6\u95F4\u9009\u62E9",placeholder:"\u70B9\u51FB\u9009\u62E9\u65F6\u95F4"},"en-US":{label:"Datetime Picker",placeholder:"Select time"}}),l=(0,n.iH)(""),d=(0,n.iH)(!1),s=e=>{var{selectedValues:a}=e;l.value=a.join("/"),d.value=!1},c=()=>{d.value=!1};return(e,o)=>((0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)((0,n.SU)(r.ZP),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=e=>l.value=e),"is-link":"",readonly:"",name:"datePicker",label:(0,n.SU)(a)("label"),placeholder:(0,n.SU)(a)("placeholder"),onClick:o[1]||(o[1]=e=>d.value=!0)},null,8,["modelValue","label","placeholder"]),(0,t.Wm)((0,n.SU)(i.ZP),{show:d.value,"onUpdate:show":o[2]||(o[2]=e=>d.value=e),round:"",position:"bottom",teleport:"body"},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(u.ZP),{onConfirm:s,onCancel:c})]),_:1},8,["show"])],64))}})},93647:function(e,a,l){"use strict";var t=l("80681"),n=l("11848"),r=l("51041"),i=l("97760"),u=l("54854"),o=l("54369"),d=l("57308");a.Z=(0,t.aZ)({__name:"FieldTypePicker",setup(e){var a=(0,o.q)({"zh-CN":{picker:"\u9009\u62E9\u5668",placeholder:"\u70B9\u51FB\u9009\u62E9\u57CE\u5E02",textColumns:d.$T["zh-CN"]},"en-US":{picker:"Picker",placeholder:"Select city",textColumns:d.$T["en-US"]}}),l=(0,n.iH)(""),s=(0,n.iH)(!1),c=e=>{var a,{selectedOptions:t}=e;l.value=(null===(a=t[0])||void 0===a?void 0:a.text)||"",s.value=!1},m=()=>{s.value=!1};return(e,o)=>((0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)((0,n.SU)(r.ZP),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=e=>l.value=e),"is-link":"",readonly:"",name:"picker",label:(0,n.SU)(a)("picker"),placeholder:(0,n.SU)(a)("placeholder"),onClick:o[1]||(o[1]=e=>s.value=!0)},null,8,["modelValue","label","placeholder"]),(0,t.Wm)((0,n.SU)(i.ZP),{show:s.value,"onUpdate:show":o[2]||(o[2]=e=>s.value=e),round:"",position:"bottom",teleport:"body"},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(u.ZP),{columns:(0,n.SU)(a)("textColumns"),onConfirm:c,onCancel:m},null,8,["columns"])]),_:1},8,["show"])],64))}})},52733:function(e,a,l){"use strict";l("59644"),l("40944");var t=l("80681"),n=l("11848"),r=l("57122"),i=l("85865"),u=l("51041"),o=l("99497"),d=l("19231"),s=l("54369"),c=l("13118"),m={style:{margin:"16px 16px 0"}};a.Z=(0,t.aZ)({__name:"ValidateRules",setup(e){var a=(0,s.q)({"zh-CN":{label:"\u6587\u672C",title:"\u6821\u9A8C\u89C4\u5219",submit:"\u63D0\u4EA4",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u5185\u5BB9",invalid:e=>"".concat(e," \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),pattern:"\u6B63\u5219\u6821\u9A8C",validator:"\u51FD\u6570\u6821\u9A8C",validating:"\u9A8C\u8BC1\u4E2D...",asyncValidator:"\u5F02\u6B65\u51FD\u6570\u6821\u9A8C",validatorMessage:"\u6821\u9A8C\u51FD\u6570\u8FD4\u56DE\u9519\u8BEF\u63D0\u793A"},"en-US":{label:"Label",title:"Validate Rules",submit:"Submit",message:"Error message",invalid:e=>"".concat(e," is invalid"),pattern:"Use pattern",validator:"Use validator",validating:"Validating...",asyncValidator:"Use async validator",validatorMessage:"Use validator to return message"}}),l=(0,n.iH)(""),v=(0,n.iH)(""),p=(0,n.iH)("abc"),h=(0,n.iH)(""),g=/\d{6}/,f=e=>/1\d{10}/.test(e),b=e=>a("invalid",e),S=e=>new Promise(l=>{(0,c.di)(a("validating")),setTimeout(()=>{(0,c.yg)(),l("1234"===e)},1e3)}),y=e=>{console.log("submit",e)},U=e=>{console.log("failed",e)};return(e,s)=>{var c=(0,t.up)("demo-block");return(0,t.wg)(),(0,t.j4)(c,{title:(0,n.SU)(a)("title")},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(i.ZP),{onSumbit:y,onFailed:U},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(d.ZP),{inset:""},{default:(0,t.w5)(()=>[(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=e=>l.value=e),name:"pattern",label:(0,n.SU)(a)("label"),rules:[{pattern:g,message:(0,n.SU)(a)("message")}],placeholder:(0,n.SU)(a)("pattern")},null,8,["modelValue","label","rules","placeholder"]),(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:v.value,"onUpdate:modelValue":s[1]||(s[1]=e=>v.value=e),name:"validator",label:(0,n.SU)(a)("label"),rules:[{validator:f,message:(0,n.SU)(a)("message")}],placeholder:(0,n.SU)(a)("validator")},null,8,["modelValue","label","rules","placeholder"]),(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:p.value,"onUpdate:modelValue":s[2]||(s[2]=e=>p.value=e),name:"validatorMessage",label:(0,n.SU)(a)("label"),rules:[{validator:b}],placeholder:(0,n.SU)(a)("validatorMessage")},null,8,["modelValue","label","rules","placeholder"]),(0,t.Wm)((0,n.SU)(u.ZP),{modelValue:h.value,"onUpdate:modelValue":s[3]||(s[3]=e=>h.value=e),name:"asyncValidator",label:(0,n.SU)(a)("label"),rules:[{validator:S,message:(0,n.SU)(a)("message")}],placeholder:(0,n.SU)(a)("asyncValidator")},null,8,["modelValue","label","rules","placeholder"])]),_:1}),(0,t._)("div",m,[(0,t.Wm)((0,n.SU)(o.ZP),{round:"",block:"",type:"primary","native-type":"submit"},{default:(0,t.w5)(()=>[(0,t.Uk)((0,r.zw)((0,n.SU)(a)("submit")),1)]),_:1})])]),_:1})]),_:1},8,["title"])}}})},13585:function(e,a,l){"use strict";var t=l("80681"),n=l("55046"),r=l("54183"),i=l("96195");a.Z=(0,t.aZ)({__name:"index",setup:e=>(e,a)=>((0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(n.Z),(0,t.Wm)(r.Z),(0,t.Wm)(i.Z)],64))})},21847:function(e,a,l){"use strict";l.d(a,{T:function(){return t}});var t={province_list:{11e4:"Beijing",33e4:"Zhejiang",81e4:"Hong Kong"},city_list:{110100:"Beijing City",330100:"Hangzhou",330200:"Ningbo",330300:"Wenzhou",330400:"Jiaxin",331100:"Lishui",810100:"Hong Kong Island",810200:"Kowloon",810300:"New Territories"},county_list:{110101:"Dongcheng",110102:"Xicheng",110105:"Chaoyang",110106:"Fengtai",110108:"Haidian",110111:"Fangshan",110112:"Tongzhou",110113:"Shunyi",110114:"Changping",110115:"Daxing",330105:"Gongshu",330106:"Xihu",330108:"Binjiang",330109:"Xiaoshan",330110:"Yuhang",330111:"Fuyang",330127:"Chunan",330182:"Jiande",330185:"Linan",330206:"Beilun",330211:"Zhenhai",330225:"Xiangshan",330226:"Ninghai",330281:"Yuyao",330282:"Cixi",330302:"Lucheng",330328:"Wencheng",330329:"Shuntai",330381:"Ruian",330382:"Yueqing",330402:"Nanhu",330421:"Jiashan",330424:"Haiyan",330481:"Haining",330482:"Pinghu",330483:"Tongxiang",331102:"Liandu District",331121:"Qingtian County",331125:"Yunhe County",331181:"Longquan County",810101:"Central",810102:"Wan Chai",810202:"Mong Kok",810203:"Sham Shui Po",810204:"Chuk Un",810205:"Kwun Tong",810303:"Sha Tin",810305:"Yuen Long",810306:"Tuen Mun",810307:"Tsuen Wan",810309:"Lantau Island"}}},20665:function(e,a,l){"use strict";l.d(a,{uN:function(){return r}});var t=l("63112"),n=l("74868"),r=(0,t.n)(n.Z);a.ZP=r},77830:function(e,a,l){"use strict";l.d(a,{If:function(){return u},NC:function(){return r},eW:function(){return n},h5:function(){return t}}),l("24836"),l("41712"),l("80855"),l("10502"),l("7978"),l("66746"),l("17530"),l("87604"),l("57024"),l("22175"),l("85322"),l("47897"),l("48943"),l("43356"),l("82116"),l("17989"),l("31564"),l("8649"),l("70629"),l("61557"),l("51185");var t="000000",n=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],r=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return{text:e,value:a,children:l}};function u(e){var{areaList:a,columnsNum:l,columnsPlaceholder:n}=e,{city_list:r={},county_list:u={},province_list:o={}}=a,d=+l>1,s=+l>2,c=()=>{if(d)return n.length?[i(n[0],t,s?[]:void 0)]:[]},m=new Map;Object.keys(o).forEach(e=>{m.set(e.slice(0,2),i(o[e],e,c()))});var v=new Map;if(d){var p=()=>{if(s)return n.length?[i(n[1])]:[]};Object.keys(r).forEach(e=>{var a=i(r[e],e,p());v.set(e.slice(0,4),a);var l=m.get(e.slice(0,2));l&&l.children.push(a)})}s&&Object.keys(u).forEach(e=>{var a=v.get(e.slice(0,4));a&&a.children.push(i(u[e],e))});var h=Array.from(m.values());if(n.length){var g=s?[i(n[2])]:void 0,f=d?[i(n[1],t,g)]:void 0;h.unshift(i(n[0],t,f))}return h}},19231:function(e,a,l){"use strict";var t=l("63112"),n=l("73769"),r=(0,t.n)(n.Z);a.ZP=r},74644:function(e,a,l){"use strict";var t=l("63112"),n=l("1241"),r=(0,t.n)(n.ZP);a.ZP=r},12813:function(e,a,l){"use strict";l.d(a,{XZ:function(){return r}});var t=l("63112"),n=l("73198"),r=(0,t.n)(n.Z);a.ZP=r},20133:function(e,a,l){"use strict";var t=l("63112"),n=l("65786"),r=(0,t.n)(n.Z);a.ZP=r},85865:function(e,a,l){"use strict";l.d(a,{l0:function(){return r}});var t=l("63112"),n=l("48641"),r=(0,t.n)(n.Z);a.ZP=r},57308:function(e,a,l){"use strict";l.d(a,{$T:function(){return t},S3:function(){return r},tG:function(){return i},u9:function(){return u},vN:function(){return n}});var t={"zh-CN":[{text:"\u676D\u5DDE",value:"Hangzhou"},{text:"\u5B81\u6CE2",value:"Ningbo"},{text:"\u6E29\u5DDE",value:"Wenzhou"},{text:"\u7ECD\u5174",value:"Shaoxing"},{text:"\u6E56\u5DDE",value:"Huzhou"}],"en-US":[{text:"Delaware",value:"Delaware"},{text:"Florida",value:"Florida"},{text:"Wenzhou",value:"Wenzhou"},{text:"Indiana",value:"Indiana"},{text:"Maine",value:"Maine"}]},n={"zh-CN":[[{text:"\u5468\u4E00",value:"Monday"},{text:"\u5468\u4E8C",value:"Tuesday"},{text:"\u5468\u4E09",value:"Wednesday"},{text:"\u5468\u56DB",value:"Thursday"},{text:"\u5468\u4E94",value:"Friday"}],[{text:"\u4E0A\u5348",value:"Morning"},{text:"\u4E0B\u5348",value:"Afternoon"},{text:"\u665A\u4E0A",value:"Evening"}]],"en-US":[[{text:"Monday",value:"Monday"},{text:"Tuesday",value:"Tuesday"},{text:"Wednesday",value:"Wednesday"},{text:"Thursday",value:"Thursday"},{text:"Friday",value:"Friday"}],[{text:"Morning",value:"Morning"},{text:"Afternoon",value:"Afternoon"},{text:"Evening",value:"Evening"}]]},r={"zh-CN":[{text:"\u6D59\u6C5F",value:"Zhejiang",children:[{text:"\u676D\u5DDE",value:"Hangzhou",children:[{text:"\u897F\u6E56\u533A",value:"Xihu"},{text:"\u4F59\u676D\u533A",value:"Yuhang"}]},{text:"\u6E29\u5DDE",value:"Wenzhou",children:[{text:"\u9E7F\u57CE\u533A",value:"Lucheng"},{text:"\u74EF\u6D77\u533A",value:"Ouhai"}]}]},{text:"\u798F\u5EFA",value:"Fujian",children:[{text:"\u798F\u5DDE",value:"Fuzhou",children:[{text:"\u9F13\u697C\u533A",value:"Gulou"},{text:"\u53F0\u6C5F\u533A",value:"Taijiang"}]},{text:"\u53A6\u95E8",value:"Xiamen",children:[{text:"\u601D\u660E\u533A",value:"Siming"},{text:"\u6D77\u6CA7\u533A",value:"Haicang"}]}]}],"en-US":[{text:"Zhejiang",value:"Zhejiang",children:[{text:"Hangzhou",value:"Hangzhou",children:[{text:"Xihu",value:"Xihu"},{text:"Yuhang",value:"Yuhang"}]},{text:"Wenzhou",value:"Wenzhou",children:[{text:"Lucheng",value:"Lucheng"},{text:"Ouhai",value:"Ouhai"}]}]},{text:"Fujian",value:"Fujian",children:[{text:"Fuzhou",value:"Fuzhou",children:[{text:"Gulou",value:"Gulou"},{text:"Taijiang",value:"Taijiang"}]},{text:"Xiamen",value:"Xiamen",children:[{text:"Siming",value:"Siming"},{text:"Haicang",value:"Haicang"}]}]}]},i={"zh-CN":[{cityName:"\u6D59\u6C5F",cities:[{cityName:"\u676D\u5DDE",cities:[{cityName:"\u897F\u6E56\u533A"},{cityName:"\u4F59\u676D\u533A"}]},{cityName:"\u6E29\u5DDE",cities:[{cityName:"\u9E7F\u57CE\u533A"},{cityName:"\u74EF\u6D77\u533A"}]}]},{cityName:"\u798F\u5EFA",cities:[{cityName:"\u798F\u5DDE",cities:[{cityName:"\u9F13\u697C\u533A"},{cityName:"\u53F0\u6C5F\u533A"}]},{cityName:"\u53A6\u95E8",cities:[{cityName:"\u601D\u660E\u533A"},{cityName:"\u6D77\u6CA7\u533A"}]}]}],"en-US":[{cityName:"Zhejiang",cities:[{cityName:"Hangzhou",cities:[{cityName:"Xihu"},{cityName:"Yuhang"}]},{cityName:"Wenzhou",cities:[{cityName:"Lucheng"},{cityName:"Ouhai"}]}]},{cityName:"Fujian",cities:[{cityName:"Fuzhou",cities:[{cityName:"Gulou"},{cityName:"Taijiang"}]},{cityName:"Xiamen",cities:[{cityName:"Siming"},{cityName:"Haicang"}]}]}]},u={"zh-CN":[{text:"\u676D\u5DDE",value:"Hangzhou",disabled:!0},{text:"\u5B81\u6CE2",value:"Ningbo"},{text:"\u6E29\u5DDE",value:"Wenzhou"}],"en-US":[{text:"Delaware",value:"Delaware",disabled:!0},{text:"Florida",value:"Florida"},{text:"Wenzhou",value:"Wenzhou"}]}},54854:function(e,a,l){"use strict";l.d(a,{cW:function(){return r}});var t=l("63112"),n=l("36809"),r=(0,t.n)(n.ZP);a.ZP=r},12659:function(e,a,l){"use strict";l.d(a,{Ee:function(){return r}});var t=l("63112"),n=l("12848"),r=(0,t.n)(n.ZP);a.ZP=r},98003:function(e,a,l){"use strict";l.d(a,{Y8:function(){return r}});var t=l("63112"),n=l("58189"),r=(0,t.n)(n.Z);a.ZP=r},77279:function(e,a,l){"use strict";var t=l("63112"),n=l("64362"),r=(0,t.n)(n.Z);a.ZP=r},73393:function(e,a,l){"use strict";var t=l("63112"),n=l("31918"),r=(0,t.n)(n.Z);a.ZP=r},16977:function(e,a,l){"use strict";var t=l("63112"),n=l("41468"),r=(0,t.n)(n.Z);a.ZP=r},41936:function(e,a,l){"use strict";l.d(a,{rs:function(){return r}});var t=l("63112"),n=l("79960"),r=(0,t.n)(n.Z);a.ZP=r},37187:function(e,a,l){"use strict";var t=l("63112"),n=l("61973"),r=(0,t.n)(n.Z);a.ZP=r},2735:function(e,a,l){"use strict";l.d(a,{CO:function(){return v},O2:function(){return o},PH:function(){return i},Rz:function(){return s},t:function(){return u},u2:function(){return r},zf:function(){return d}}),l("82116"),l("17989"),l("40944"),l("63773"),l("97687"),l("70629"),l("31564"),l("8649"),l("61557"),l("59644");var t=l("62568"),n=l("12308"),[r,i,u]=(0,t.do)("uploader");function o(e,a){return new Promise(l=>{if("file"===a){l();return}var t=new FileReader;t.onload=e=>{l(e.target.result)},"dataUrl"===a?t.readAsDataURL(e):"text"===a&&t.readAsText(e)})}function d(e,a){return(0,n.qo)(e).some(e=>{if(e.file)return(0,n.mf)(a)?a(e.file):e.file.size>+a;return!1})}function s(e,a){var l=[],t=[];return e.forEach(e=>{d(e,a)?t.push(e):l.push(e)}),{valid:l,invalid:t}}var c=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i,m=e=>c.test(e);function v(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?m(e.url):"string"==typeof e.content&&0===e.content.indexOf("data:image"))}},74868:function(e,a,l){"use strict";l("82116"),l("17989");var t=l("80681"),n=l("11848"),r=l("62568"),i=l("12308"),u=l("78335"),o=l("36809"),d=l("77830"),s=l("10023"),c=l("54854"),[m,v]=(0,r.do)("area"),p=(0,i.l7)({},(0,i.ei)(o.d4,d.NC),{modelValue:String,columnsNum:(0,u.SI)(3),columnsPlaceholder:(0,u.Ce)(),areaList:{type:Object,default:()=>({})}});a.Z=(0,t.aZ)({name:m,props:p,emits:["change","confirm","cancel","update:modelValue"],setup(e,a){var{emit:l,slots:r}=a,u=(0,n.iH)([]),o=(0,n.iH)(),m=(0,t.Fl)(()=>(0,d.If)(e)),p=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("change",...a)},h=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("cancel",...a)},g=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("confirm",...a)};return(0,t.YP)(u,a=>{var t=a.length?a[a.length-1]:"";t&&t!==e.modelValue&&l("update:modelValue",t)},{deep:!0}),(0,t.YP)(()=>e.modelValue,a=>{a?a!==(u.value.length?u.value[u.value.length-1]:"")&&(u.value=["".concat(a.slice(0,2),"0000"),"".concat(a.slice(0,4),"00"),a].slice(0,+e.columnsNum)):u.value=[]},{immediate:!0}),(0,s.F)({confirm:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.confirm()},getSelectedOptions:()=>{var e;return(null===(e=o.value)||void 0===e?void 0:e.getSelectedOptions())||[]}}),()=>(0,t.Wm)(c.cW,(0,t.dG)({ref:o,modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,class:v(),columns:m.value,onChange:p,onCancel:h,onConfirm:g},(0,i.ei)(e,d.NC)),(0,i.ei)(r,d.eW))}})},73769:function(e,a,l){"use strict";l("82116"),l("17989");var t=l("80681"),n=l("62568"),r=l("78335"),i=l("8051"),u=l("96277"),[o,d]=(0,n.do)("cell-group"),s={title:String,inset:Boolean,border:r.J5};a.Z=(0,t.aZ)({name:o,inheritAttrs:!1,props:s,setup(e,a){var{slots:l,attrs:n}=a,r=()=>{var a;return(0,t.Wm)("div",(0,t.dG)({class:[d({inset:e.inset}),{[i.r5]:e.border&&!e.inset}]},n,(0,u.a)()),[null===(a=l.default)||void 0===a?void 0:a.call(l)])},o=()=>(0,t.Wm)("div",{class:d("title",{inset:e.inset})},[l.title?l.title():e.title]);return()=>e.title||l.title?(0,t.Wm)(t.HY,null,[o(),r()]):r()}})},1241:function(e,a,l){"use strict";l.d(a,{QY:function(){return c}}),l("82116"),l("17989"),l("86795"),l("96245"),l("37232"),l("70629"),l("66786"),l("14529");var t=l("80681"),n=l("62568"),r=l("78335"),i=l("22300"),u=l("10023"),[o,d]=(0,n.do)("checkbox-group"),s={max:r.Or,shape:(0,r.SQ)("round"),disabled:Boolean,iconSize:r.Or,direction:String,modelValue:(0,r.Ce)(),checkedColor:String},c=Symbol(o);a.ZP=(0,t.aZ)({name:o,props:s,emits:["change","update:modelValue"],setup(e,a){var{emit:l,slots:n}=a,{children:r,linkChildren:o}=(0,i.$E)(c),s=e=>l("update:modelValue",e);return(0,t.YP)(()=>e.modelValue,e=>l("change",e)),(0,u.F)({toggleAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"==typeof e&&(e={checked:e});var{checked:a,skipDisabled:l}=e;s(r.filter(e=>!!e.props.bindGroup&&(e.props.disabled&&l?e.checked.value:null!=a?a:!e.checked.value)).map(e=>e.name))}}),(0,i.aM)(()=>e.modelValue),o({props:e,updateValue:s}),()=>{var a;return(0,t.Wm)("div",{class:d([e.direction])},[null===(a=n.default)||void 0===a?void 0:a.call(n)])}}})},73198:function(e,a,l){"use strict";l("82116"),l("17989"),l("24660"),l("61557");var t=l("80681"),n=l("62568"),r=l("12308"),i=l("78335"),u=l("1241"),o=l("22300"),d=l("10023"),s=l("90844"),[c,m]=(0,n.do)("checkbox"),v=(0,r.l7)({},s.m,{shape:String,bindGroup:i.J5,indeterminate:{type:Boolean,default:null}});a.Z=(0,t.aZ)({name:c,props:v,emits:["change","update:modelValue"],setup(e,a){var{emit:l,slots:n}=a,{parent:i}=(0,o.NB)(u.QY),c=a=>{var{name:l}=e,{max:t,modelValue:n}=i.props,r=n.slice();if(a)!(t&&r.length>=+t)&&!r.includes(l)&&(r.push(l),e.bindGroup&&i.updateValue(r));else{var u=r.indexOf(l);-1!==u&&(r.splice(u,1),e.bindGroup&&i.updateValue(r))}},v=(0,t.Fl)(()=>i&&e.bindGroup?-1!==i.props.modelValue.indexOf(e.name):!!e.modelValue),p=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!v.value;i&&e.bindGroup?c(a):l("update:modelValue",a),null!==e.indeterminate&&l("change",a)};return(0,t.YP)(()=>e.modelValue,a=>{null===e.indeterminate&&l("change",a)}),(0,d.F)({toggle:p,props:e,checked:v}),(0,o.aM)(()=>e.modelValue),()=>(0,t.Wm)(s.Z,(0,t.dG)({bem:m,role:"checkbox",parent:i,checked:v.value,onToggle:p},e),(0,r.ei)(n,["default","icon"]))}})},90844:function(e,a,l){"use strict";l.d(a,{m:function(){return d}});var t=l("80681"),n=l("11848"),r=l("78335"),i=l("12308"),u=l("20358"),o=l("96528"),d={name:r.Vg,disabled:Boolean,iconSize:r.Or,modelValue:r.Vg,checkedColor:String,labelPosition:String,labelDisabled:Boolean};a.Z=(0,t.aZ)({props:(0,i.l7)({},d,{bem:(0,r.ir)(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:r.J5,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,a){var{emit:l,slots:r}=a,i=(0,n.iH)(),d=a=>{if(e.parent&&e.bindGroup)return e.parent.props[a]},s=(0,t.Fl)(()=>{if(e.parent&&e.bindGroup){var a=d("disabled")||e.disabled;if("checkbox"===e.role){var l=d("modelValue").length,t=d("max");return a||t&&l>=+t&&!e.checked}return a}return e.disabled}),c=(0,t.Fl)(()=>d("direction")),m=(0,t.Fl)(()=>{var a=e.checkedColor||d("checkedColor");if(a&&e.checked&&!s.value)return{borderColor:a,backgroundColor:a}}),v=(0,t.Fl)(()=>e.shape||d("shape")||"round"),p=a=>{var{target:t}=a,n=i.value,r=n===t||(null==n?void 0:n.contains(t));!s.value&&(r||!e.labelDisabled)&&l("toggle"),l("click",a)},h=()=>{var a,l,{bem:n,checked:c,indeterminate:p}=e,h=e.iconSize||d("iconSize");return(0,t.Wm)("div",{ref:i,class:n("icon",[v.value,{disabled:s.value,checked:c,indeterminate:p}]),style:"dot"!==v.value?{fontSize:(0,u.Nn)(h)}:{width:(0,u.Nn)(h),height:(0,u.Nn)(h),borderColor:null===(a=m.value)||void 0===a?void 0:a.borderColor}},[r.icon?r.icon({checked:c,disabled:s.value}):"dot"!==v.value?(0,t.Wm)(o.JO,{name:p?"minus":"success",style:m.value},null):(0,t.Wm)("div",{class:n("icon--dot__icon"),style:{backgroundColor:null===(l=m.value)||void 0===l?void 0:l.backgroundColor}},null)])},g=()=>{var{checked:a}=e;if(r.default)return(0,t.Wm)("span",{class:e.bem("label",[e.labelPosition,{disabled:s.value}])},[r.default({checked:a,disabled:s.value})])};return()=>{var a="left"===e.labelPosition?[g(),h()]:[h(),g()];return(0,t.Wm)("div",{role:e.role,class:e.bem([{disabled:s.value,"label-disabled":e.labelDisabled},c.value]),tabindex:s.value?void 0:0,"aria-checked":e.checked,onClick:p},[a])}}})},65786:function(e,a,l){"use strict";l("82116"),l("17989"),l("96245"),l("37232"),l("70629"),l("66786"),l("14529"),l("21413");var t=l("80681"),n=l("11848"),r=l("62568"),i=l("12308"),u=l("92855"),o=l("10023"),d=l("54854"),s=new Date().getFullYear(),[c]=(0,r.do)("date-picker"),m=(0,i.l7)({},u.En,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(s-10,0,1),validator:i.J_},maxDate:{type:Date,default:()=>new Date(s+10,11,31),validator:i.J_}});a.Z=(0,t.aZ)({name:c,props:m,emits:["confirm","cancel","change","update:modelValue"],setup(e,a){var{emit:l,slots:r}=a,s=(0,n.iH)(e.modelValue),c=(0,n.iH)(!1),m=(0,n.iH)(),v=()=>{var a=e.minDate.getFullYear(),l=e.maxDate.getFullYear();return(0,u.K)(a,l,"year",e.formatter,e.filter)},p=a=>a===e.minDate.getFullYear(),h=a=>a===e.maxDate.getFullYear(),g=a=>a===e.minDate.getMonth()+1,f=a=>a===e.maxDate.getMonth()+1,b=a=>{var{minDate:l,columnsType:t}=e,n=t.indexOf(a),r=c.value?e.modelValue[n]:s.value[n];if(r)return+r;switch(a){case"year":return l.getFullYear();case"month":return l.getMonth()+1;case"day":return l.getDate()}},S=()=>{var a=b("year"),l=p(a)?e.minDate.getMonth()+1:1,t=h(a)?e.maxDate.getMonth()+1:12;return(0,u.K)(l,t,"month",e.formatter,e.filter)},y=()=>{var a=b("year"),l=b("month"),t=p(a)&&g(l)?e.minDate.getDate():1,n=h(a)&&f(l)?e.maxDate.getDate():(0,u.yn)(a,l);return(0,u.K)(t,n,"day",e.formatter,e.filter)},U=(0,t.Fl)(()=>e.columnsType.map(e=>{switch(e){case"year":return v();case"month":return S();case"day":return y();default:return[]}}));(0,t.YP)(s,a=>{!(0,i.$c)(a,e.modelValue)&&l("update:modelValue",a)}),(0,t.YP)(()=>e.modelValue,(e,a)=>{c.value=(0,i.$c)(a,s.value),e=(0,u.re)(e,U.value),!(0,i.$c)(e,s.value)&&(s.value=e),c.value=!1},{immediate:!0});var V=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("change",...a)},w=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("cancel",...a)},x=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return l("confirm",...a)};return(0,o.F)({confirm:()=>{var e;return null===(e=m.value)||void 0===e?void 0:e.confirm()},getSelectedDate:()=>s.value}),()=>(0,t.Wm)(d.cW,(0,t.dG)({ref:m,modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,columns:U.value,onChange:V,onCancel:w,onConfirm:x},(0,i.ei)(e,u.uT)),r)}})},48641:function(e,a,l){"use strict";l("82116"),l("17989"),l("96245"),l("37232"),l("70629"),l("24660"),l("40944"),l("21690"),l("29256"),l("36056"),l("61557"),l("66786"),l("14529"),l("57856"),l("31053"),l("31564"),l("8649"),l("63773"),l("97687");var t=l("80681"),n=l("62568"),r=l("78335"),i=l("8051"),u=l("82210"),o=l("22300"),d=l("10023"),[s,c]=(0,n.do)("form"),m={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:r.Or,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:r.J5,showErrorMessage:r.J5,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};a.Z=(0,t.aZ)({name:s,props:m,emits:["submit","failed"],setup(e,a){var{emit:l,slots:n}=a,{children:r,linkChildren:s}=(0,o.$E)(i.WN),m=e=>e?r.filter(a=>e.includes(a.name)):r,v=e=>new Promise((a,l)=>{var t=[];m(e).reduce((e,a)=>e.then(()=>{if(!t.length)return a.validate().then(e=>{e&&t.push(e)})}),Promise.resolve()).then(()=>{t.length?l(t):a()})}),p=e=>new Promise((a,l)=>{Promise.all(m(e).map(e=>e.validate())).then(e=>{(e=e.filter(Boolean)).length?l(e):a()})}),h=e=>{var a=r.find(a=>a.name===e);return a?new Promise((e,l)=>{a.validate().then(a=>{a?l(a):e()})}):Promise.reject()},g=a=>"string"==typeof a?h(a):e.validateFirst?v(a):p(a),f=(e,a)=>{r.some(l=>l.name===e&&(l.$el.scrollIntoView(a),!0))},b=()=>r.reduce((e,a)=>(void 0!==a.name&&(e[a.name]=a.formValue.value),e),{}),S=()=>{var a=b();g().then(()=>l("submit",a)).catch(t=>{l("failed",{values:a,errors:t}),e.scrollToError&&t[0].name&&f(t[0].name)})},y=e=>{(0,u.PF)(e),S()};return s({props:e}),(0,d.F)({submit:S,validate:g,getValues:b,scrollToField:f,resetValidation:e=>{"string"==typeof e&&(e=[e]),m(e).forEach(e=>{e.resetValidation()})},getValidationStatus:()=>r.reduce((e,a)=>(e[a.name]=a.getValidationStatus(),e),{})}),()=>{var e;return(0,t.Wm)("form",{class:c(),onSubmit:y},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}})},12848:function(e,a,l){"use strict";l.d(a,{x7:function(){return s}}),l("82116"),l("17989"),l("86795");var t=l("80681"),n=l("62568"),r=l("78335"),i=l("22300"),[u,o]=(0,n.do)("radio-group"),d={shape:String,disabled:Boolean,iconSize:r.Or,direction:String,modelValue:r.Vg,checkedColor:String},s=Symbol(u);a.ZP=(0,t.aZ)({name:u,props:d,emits:["change","update:modelValue"],setup(e,a){var{emit:l,slots:n}=a,{linkChildren:r}=(0,i.$E)(s);return(0,t.YP)(()=>e.modelValue,e=>l("change",e)),r({props:e,updateValue:e=>l("update:modelValue",e)}),(0,i.aM)(()=>e.modelValue),()=>{var a;return(0,t.Wm)("div",{class:o([e.direction]),role:"radiogroup"},[null===(a=n.default)||void 0===a?void 0:a.call(n)])}}})},58189:function(e,a,l){"use strict";l("82116"),l("17989");var t=l("80681"),n=l("12308"),r=l("62568"),i=l("12848"),u=l("22300"),o=l("90844"),d=(0,n.l7)({},o.m,{shape:String}),[s,c]=(0,r.do)("radio");a.Z=(0,t.aZ)({name:s,props:d,emits:["update:modelValue"],setup(e,a){var{emit:l,slots:r}=a,{parent:d}=(0,u.NB)(i.x7),s=()=>(d?d.props.modelValue:e.modelValue)===e.name,m=()=>{d?d.updateValue(e.name):l("update:modelValue",e.name)};return()=>(0,t.Wm)(o.Z,(0,t.dG)({bem:c,role:"radio",parent:d,checked:s(),onToggle:m},e),(0,n.ei)(r,["default","icon"]))}})},64362:function(e,a,l){"use strict";l("82116"),l("17989"),l("66786"),l("14529"),l("31564"),l("8649"),l("70629"),l("61557");var t=l("80681"),n=l("11848"),r=l("62568"),i=l("78335"),u=l("82210"),o=l("20358"),d=l("22300"),s=l("89923"),c=l("29609"),m=l("96528"),[v,p]=(0,r.do)("rate"),h={size:i.Or,icon:(0,i.SQ)("star"),color:String,count:(0,i.SI)(5),gutter:i.Or,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:(0,i.SQ)("star-o"),allowHalf:Boolean,voidColor:String,touchable:i.J5,iconPrefix:String,modelValue:(0,i.qM)(0),disabledColor:String};a.Z=(0,t.aZ)({name:v,props:h,emits:["change","update:modelValue"],setup(e,a){var l,r,{emit:i}=a,v=(0,c.o)(),[h,g]=(0,s.v)(),f=(0,n.iH)(),b=(0,t.Fl)(()=>e.readonly||e.disabled),S=(0,t.Fl)(()=>b.value||!e.touchable),y=(0,t.Fl)(()=>Array(+e.count).fill("").map((a,l)=>{var t,n,r,i;return t=e.modelValue,n=l+1,r=e.allowHalf,i=e.readonly,t>=n?{status:"full",value:1}:t+.5>=n&&r&&!i?{status:"half",value:.5}:t+1>=n&&r&&i?{status:"half",value:Math.round((t-n+1)*1e10)/1e10}:{status:"void",value:0}})),U=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,w=()=>{r=(0,d.EL)(f);var a=h.value.map(d.EL);l=[],a.forEach((a,t)=>{U=Math.min(a.top,U),V=Math.max(a.top,V),e.allowHalf?l.push({score:t+.5,left:a.left,top:a.top,height:a.height},{score:t+1,left:a.left+a.width/2,top:a.top,height:a.height}):l.push({score:t+1,left:a.left,top:a.top,height:a.height})})},x=(a,t)=>{for(var n=l.length-1;n>0;n--)if(t>=r.top&&t<=r.bottom){if(a>l[n].left&&t>=l[n].top&&t<=l[n].top+l[n].height)return l[n].score}else{var i=t<r.top?U:V;if(a>l[n].left&&l[n].top===i)return l[n].score}return e.allowHalf?.5:1},Z=a=>{!b.value&&a!==e.modelValue&&(i("update:modelValue",a),i("change",a))},P=e=>{!S.value&&(v.start(e),w())},W=(a,l)=>{var n,{icon:r,size:i,color:u,count:d,gutter:s,voidIcon:c,disabled:h,voidColor:f,allowHalf:b,iconPrefix:S,disabledColor:y}=e,U=l+1,V="full"===a.status,P="void"===a.status,W=b&&a.value>0&&a.value<1;return s&&U!==+d&&(n={paddingRight:(0,o.Nn)(s)}),(0,t.Wm)("div",{key:l,ref:g(l),role:"radio",style:n,class:p("item"),tabindex:h?void 0:0,"aria-setsize":d,"aria-posinset":U,"aria-checked":!P,onClick:a=>{w();var l=b?x(a.clientX,a.clientY):U;e.clearable&&v.isTap.value&&l===e.modelValue&&(l=0),Z(l)}},[(0,t.Wm)(m.JO,{size:i,name:V?r:c,class:p("icon",{disabled:h,full:V}),color:h?y:V?u:f,classPrefix:S},null),W&&(0,t.Wm)(m.JO,{size:i,style:{width:a.value+"em"},name:P?c:r,class:p("icon",["half",{disabled:h,full:!P}]),color:h?y:P?f:u,classPrefix:S},null)])};return(0,d.aM)(()=>e.modelValue),(0,d.OR)("touchmove",e=>{if(!S.value&&(v.move(e),v.isHorizontal()&&!v.isTap.value)){var{clientX:a,clientY:l}=e.touches[0];(0,u.PF)(e),Z(x(a,l))}},{target:f}),()=>(0,t.Wm)("div",{ref:f,role:"radiogroup",class:p({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:P},[y.value.map(W)])}})},31918:function(e,a,l){"use strict";l("82116"),l("17989"),l("58294"),l("66786"),l("14529"),l("31564"),l("8649"),l("70629");var t=l("80681"),n=l("11848"),r=l("62568"),i=l("78335"),u=l("20358"),o=l("12308"),d=l("82210"),s=l("22300"),c=l("29609"),[m,v]=(0,r.do)("slider"),p={min:(0,i.SI)(0),max:(0,i.SI)(100),step:(0,i.SI)(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:i.Or,buttonSize:i.Or,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};a.Z=(0,t.aZ)({name:m,props:p,emits:["change","dragEnd","dragStart","update:modelValue"],setup(e,a){var l,r,i,{emit:m,slots:p}=a,h=(0,n.iH)(),g=[(0,n.iH)(),(0,n.iH)()],f=(0,n.iH)(),b=(0,c.o)(),S=(0,t.Fl)(()=>Number(e.max)-Number(e.min)),y=(0,t.Fl)(()=>{var a=e.vertical?"width":"height";return{background:e.inactiveColor,[a]:(0,u.Nn)(e.barHeight)}}),U=a=>e.range&&Array.isArray(a),V=()=>{var{modelValue:a,min:l}=e;return U(a)?"".concat((a[1]-a[0])*100/S.value,"%"):"".concat((a-Number(l))*100/S.value,"%")},w=()=>{var{modelValue:a,min:l}=e;return U(a)?"".concat((a[0]-Number(l))*100/S.value,"%"):"0%"},x=(0,t.Fl)(()=>{var a={[e.vertical?"height":"width"]:V(),background:e.activeColor};return f.value&&(a.transition="none"),a[e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left"]=w(),a}),Z=a=>{var l=+e.min,t=+e.max,n=+e.step,r=Math.round(((a=(0,u.uZ)(a,l,t))-l)/n)*n;return(0,u.Ft)(l,r)},P=()=>{var a=e.modelValue;i=U(a)?a.map(Z):Z(a)},W=a=>{var l,t,n=null!==(l=a[0])&&void 0!==l?l:Number(e.min),r=null!==(t=a[1])&&void 0!==t?t:Number(e.max);return n>r?[r,n]:[n,r]},k=(a,l)=>{a=U(a)?W(a).map(Z):Z(a),!(0,o.$c)(a,e.modelValue)&&m("update:modelValue",a),l&&!(0,o.$c)(a,i)&&m("change",a)},C=a=>{if(a.stopPropagation(),!e.disabled&&!e.readonly){P();var{min:l,reverse:t,vertical:n,modelValue:r}=e,i=(0,s.EL)(h),u=n?i.height:i.width,o=Number(l)+(()=>{if(n)return t?i.bottom-a.clientY:a.clientY-i.top;return t?i.right-a.clientX:a.clientX-i.left})()/u*S.value;if(U(r)){var[d,c]=r;o<=(d+c)/2?k([o,c],!0):k([d,o],!0)}else k(o,!0)}},H=a=>{!e.disabled&&!e.readonly&&(b.start(a),r=e.modelValue,P(),f.value="start")},F=a=>{if(!e.disabled&&!e.readonly){"start"===f.value&&m("dragStart",a),(0,d.PF)(a,!0),b.move(a),f.value="dragging";var t=(0,s.EL)(h),n=(e.vertical?b.deltaY.value:b.deltaX.value)/(e.vertical?t.height:t.width)*S.value;if(e.reverse&&(n=-n),U(i)){var u=e.reverse?1-l:l;r[u]=i[u]+n}else r=i+n;k(r)}},N=a=>{!e.disabled&&!e.readonly&&("dragging"===f.value&&(k(r,!0),m("dragEnd",a)),f.value="")},z=a=>"number"==typeof a?v("button-wrapper",["left","right"][a]):v("button-wrapper",e.reverse?"left":"right"),T=(a,n)=>{var i="dragging"===f.value;if("number"==typeof n){var o,d=p[0===n?"left-button":"right-button"];if(i&&Array.isArray(r)&&(o=r[0]>r[1]?1^l:l),d)return d({value:a,dragging:i,dragIndex:o})}return p.button?p.button({value:a,dragging:i}):(0,t.Wm)("div",{class:v("button"),style:(0,u.Xn)(e.buttonSize)},null)},_=a=>{var n="number"==typeof a?e.modelValue[a]:e.modelValue;return(0,t.Wm)("div",{ref:g[null!=a?a:0],role:"slider",class:z(a),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":n,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstartPassive:e=>{"number"==typeof a&&(l=a),H(e)},onTouchend:N,onTouchcancel:N,onClick:d.UW},[T(n,a)])};return k(e.modelValue),(0,s.aM)(()=>e.modelValue),g.forEach(e=>{(0,s.OR)("touchmove",F,{target:e})}),()=>(0,t.Wm)("div",{ref:h,style:y.value,class:v({vertical:e.vertical,disabled:e.disabled}),onClick:C},[(0,t.Wm)("div",{class:v("bar"),style:x.value},[e.range?[_(0),_(1)]:_()])])}})},41468:function(e,a,l){"use strict";l("82116"),l("17989"),l("24660"),l("89176"),l("59644");var t=l("80681"),n=l("39594"),r=l("11848"),i=l("62568"),u=l("78335"),o=l("20358"),d=l("12308"),s=l("55987"),c=l("82210"),m=l("8051"),v=l("22300"),[p,h]=(0,i.do)("stepper"),g=(e,a)=>String(e)===String(a),f={min:(0,u.SI)(1),max:(0,u.SI)(1/0),name:(0,u.SI)(""),step:(0,u.SI)(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:u.J5,showMinus:u.J5,showInput:u.J5,longPress:u.J5,autoFixed:u.J5,allowEmpty:Boolean,modelValue:u.Or,inputWidth:u.Or,buttonSize:u.Or,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:(0,u.SI)(1),decimalLength:u.Or};a.Z=(0,t.aZ)({name:p,props:f,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,a){var l,i,u,p,f,{emit:b}=a,S=function(a){var l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{min:t,max:n,allowEmpty:r,decimalLength:i}=e;return r&&""===a?a:(a=Number.isNaN(a=""===(a=(0,o.uf)(String(a),!e.integer))?0:+a)?+t:a,a=l?Math.max(Math.min(+n,a),+t):a,(0,d.Xq)(i)&&(a=a.toFixed(+i)),a)},y=(0,r.iH)();var U=(0,r.iH)((!g(i=S(null!==(l=e.modelValue)&&void 0!==l?l:e.defaultValue),e.modelValue)&&b("update:modelValue",i),i)),V=(0,t.Fl)(()=>e.disabled||e.disableMinus||+U.value<=+e.min),w=(0,t.Fl)(()=>e.disabled||e.disablePlus||+U.value>=+e.max),x=(0,t.Fl)(()=>({width:(0,o.Nn)(e.inputWidth),height:(0,o.Nn)(e.buttonSize)})),Z=(0,t.Fl)(()=>(0,o.Xn)(e.buttonSize)),P=a=>{e.beforeChange?(0,s.I)(e.beforeChange,{args:[a],done(){U.value=a}}):U.value=a},W=()=>{if("plus"===u&&w.value||"minus"===u&&V.value){b("overlimit",u);return}var a="minus"===u?-e.step:+e.step;P(S((0,o.Ft)(+U.value,a))),b(u)},k=a=>{var l=a.target,{value:t}=l,{decimalLength:n}=e,r=(0,o.uf)(String(t),!e.integer);if((0,d.Xq)(n)&&r.includes(".")){var i=r.split(".");r="".concat(i[0],".").concat(i[1].slice(0,+n))}e.beforeChange?l.value=String(U.value):!g(t,r)&&(l.value=r),P(r===String(+r)?+r:r)},C=a=>{if(e.disableInput){var l;null===(l=y.value)||void 0===l||l.blur()}else b("focus",a)},H=a=>{var l=a.target,n=S(l.value,e.autoFixed);l.value=String(n),U.value=n,(0,t.Y3)(()=>{b("blur",a),(0,c.pe)()})},F=()=>{f=setTimeout(()=>{W(),F()},200)},N=()=>{e.longPress&&(p=!1,clearTimeout(f),f=setTimeout(()=>{p=!0,W(),F()},m.Cp))},z=a=>{e.longPress&&(clearTimeout(f),p&&(0,c.PF)(a))},T=a=>{e.disableInput&&(0,c.PF)(a)},_=e=>({onClick:a=>{(0,c.PF)(a),u=e,W()},onTouchstartPassive:()=>{u=e,N()},onTouchend:z,onTouchcancel:z});return(0,t.YP)(()=>[e.max,e.min,e.integer,e.decimalLength],()=>{var e=S(U.value);!g(e,U.value)&&(U.value=e)}),(0,t.YP)(()=>e.modelValue,e=>{!g(e,U.value)&&(U.value=S(e))}),(0,t.YP)(U,a=>{b("update:modelValue",a),b("change",a,{name:e.name})}),(0,v.aM)(()=>e.modelValue),()=>(0,t.Wm)("div",{role:"group",class:h([e.theme])},[(0,t.wy)((0,t.Wm)("button",(0,t.dG)({type:"button",style:Z.value,class:[h("minus",{disabled:V.value}),{[m.e9]:!V.value}],"aria-disabled":V.value||void 0},_("minus")),null),[[n.F8,e.showMinus]]),(0,t.wy)((0,t.Wm)("input",{ref:y,type:e.integer?"tel":"text",role:"spinbutton",class:h("input"),value:U.value,style:x.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":U.value,onBlur:H,onInput:k,onFocus:C,onMousedown:T},null),[[n.F8,e.showInput]]),(0,t.wy)((0,t.Wm)("button",(0,t.dG)({type:"button",style:Z.value,class:[h("plus",{disabled:w.value}),{[m.e9]:!w.value}],"aria-disabled":w.value||void 0},_("plus")),null),[[n.F8,e.showPlus]])])}})},79960:function(e,a,l){"use strict";l("82116"),l("17989");var t=l("80681"),n=l("62568"),r=l("78335"),i=l("20358"),u=l("22300"),o=l("95786"),[d,s]=(0,n.do)("switch"),c={size:r.Or,loading:Boolean,disabled:Boolean,modelValue:r.Vg,activeColor:String,inactiveColor:String,activeValue:{type:r.Vg,default:!0},inactiveValue:{type:r.Vg,default:!1}};a.Z=(0,t.aZ)({name:d,props:c,emits:["change","update:modelValue"],setup(e,a){var{emit:l,slots:n}=a,r=()=>e.modelValue===e.activeValue,d=()=>{if(!e.disabled&&!e.loading){var a=r()?e.inactiveValue:e.activeValue;l("update:modelValue",a),l("change",a)}},c=()=>{if(e.loading){var a=r()?e.activeColor:e.inactiveColor;return(0,t.Wm)(o.gb,{class:s("loading"),color:a},null)}if(n.node)return n.node()};return(0,u.aM)(()=>e.modelValue),()=>{var a,{size:l,loading:u,disabled:o,activeColor:m,inactiveColor:v}=e,p=r(),h={fontSize:(0,i.Nn)(l),backgroundColor:p?m:v};return(0,t.Wm)("div",{role:"switch",class:s({on:p,loading:u,disabled:o}),style:h,tabindex:o?void 0:0,"aria-checked":p,onClick:d},[(0,t.Wm)("div",{class:s("node")},[c()]),null===(a=n.background)||void 0===a?void 0:a.call(n)])}}})},61973:function(e,a,l){"use strict";l("82116"),l("17989"),l("40944"),l("66786"),l("14529"),l("61322"),l("30480"),l("95128"),l("31042"),l("13466"),l("96245"),l("37232"),l("70629"),l("61557"),l("31564"),l("8649");var t=l("80681"),n=l("39594"),r=l("11848"),i=l("78335"),u=l("12308"),o=l("20358"),d=l("2735"),s=l("22300"),c=l("10023"),m=l("96528"),v=l("62475"),p=l("63901"),h={name:(0,i.SI)(""),accept:(0,i.SQ)("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:(0,i.SI)(1/0),imageFit:(0,i.SQ)("cover"),resultType:(0,i.SQ)("dataUrl"),uploadIcon:(0,i.SQ)("photograph"),uploadText:String,deletable:i.J5,reupload:Boolean,afterRead:Function,showUpload:i.J5,modelValue:(0,i.Ce)(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:i.J5,previewOptions:Object,previewFullImage:i.J5,maxSize:{type:[Number,String,Function],default:1/0}};a.Z=(0,t.aZ)({name:d.u2,props:h,emits:["delete","oversize","clickUpload","closePreview","clickPreview","clickReupload","update:modelValue"],setup(e,a){var l,{emit:i,slots:h}=a,g=(0,r.iH)(),f=[],b=(0,r.iH)(-1),S=(0,r.iH)(!1),y=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.modelValue.length;return{name:e.name,index:a}},U=()=>{g.value&&(g.value.value="")},V=a=>{if(U(),(0,d.zf)(a,e.maxSize)){if(Array.isArray(a)){var l=(0,d.Rz)(a,e.maxSize);if(a=l.valid,i("oversize",l.invalid,y()),!a.length)return}else{i("oversize",a,y());return}}if(a=(0,r.qj)(a),b.value>-1){var t=[...e.modelValue];t.splice(b.value,1,a),i("update:modelValue",t),b.value=-1}else i("update:modelValue",[...e.modelValue,...(0,u.qo)(a)]);e.afterRead&&e.afterRead(a,y())},w=a=>{var{maxCount:l,modelValue:t,resultType:n}=e;if(Array.isArray(a)){var r=+l-t.length;a.length>r&&(a=a.slice(0,r)),Promise.all(a.map(e=>(0,d.O2)(e,n))).then(e=>{V(a.map((a,l)=>{var t={file:a,status:"",message:"",objectUrl:URL.createObjectURL(a)};return e[l]&&(t.content=e[l]),t}))})}else(0,d.O2)(a,n).then(e=>{var l={file:a,status:"",message:"",objectUrl:URL.createObjectURL(a)};e&&(l.content=e),V(l)})},x=a=>{var{files:l}=a.target;if(!e.disabled&&l&&l.length){var t=1===l.length?l[0]:[].slice.call(l);if(e.beforeRead){var n=e.beforeRead(t,y());if(!n){U();return}if((0,u.tI)(n)){n.then(e=>{e?w(e):w(t)}).catch(U);return}}w(t)}},Z=()=>i("closePreview"),P=a=>{if(e.previewFullImage){var t=e.modelValue.filter(d.CO),n=t.map(e=>(e.objectUrl&&!e.url&&"failed"!==e.status&&(e.url=e.objectUrl,f.push(e.url)),e.url)).filter(Boolean);l=(0,v.V)((0,u.l7)({images:n,startPosition:t.indexOf(a),onClose:Z},e.previewOptions))}},W=(a,l)=>{var t=e.modelValue.slice(0);t.splice(l,1),i("update:modelValue",t),i("delete",a,y(l))},k=e=>{S.value=!0,b.value=e,(0,t.Y3)(()=>T())},C=()=>{!S.value&&(b.value=-1),S.value=!1},H=(a,l)=>{var n=["imageFit","deletable","reupload","previewSize","beforeDelete"],r=(0,u.l7)((0,u.ei)(e,n),(0,u.ei)(a,n,!0));return(0,t.Wm)(p.Z,(0,t.dG)({item:a,index:l,onClick:()=>i(e.reupload?"clickReupload":"clickPreview",a,y(l)),onDelete:()=>W(a,l),onPreview:()=>P(a),onReupload:()=>k(l)},(0,u.ei)(e,["name","lazyLoad"]),r),(0,u.ei)(h,["preview-cover","preview-delete"]))},F=()=>{if(e.previewImage)return e.modelValue.map(H)},N=e=>i("clickUpload",e),z=()=>{if(!(e.modelValue.length>=+e.maxCount)||e.reupload){var a=e.modelValue.length>=+e.maxCount&&e.reupload,l=e.readonly?null:(0,t.Wm)("input",{ref:g,type:"file",class:(0,d.PH)("input"),accept:e.accept,capture:e.capture,multiple:e.multiple&&-1===b.value,disabled:e.disabled,onChange:x,onClick:C},null);return h.default?(0,t.wy)((0,t.Wm)("div",{class:(0,d.PH)("input-wrapper"),onClick:N},[h.default(),l]),[[n.F8,!a]]):(0,t.wy)((0,t.Wm)("div",{class:(0,d.PH)("upload",{readonly:e.readonly}),style:(0,o.Xn)(e.previewSize),onClick:N},[(0,t.Wm)(m.JO,{name:e.uploadIcon,class:(0,d.PH)("upload-icon")},null),e.uploadText&&(0,t.Wm)("span",{class:(0,d.PH)("upload-text")},[e.uploadText]),l]),[[n.F8,e.showUpload&&!a]])}},T=()=>{g.value&&!e.disabled&&g.value.click()};return(0,t.Jd)(()=>{f.forEach(e=>URL.revokeObjectURL(e))}),(0,c.F)({chooseFile:T,closeImagePreview:()=>{l&&l.close()}}),(0,s.aM)(()=>e.modelValue),()=>(0,t.Wm)("div",{class:(0,d.PH)()},[(0,t.Wm)("div",{class:(0,d.PH)("wrapper",{disabled:e.disabled})},[F(),z()])])}})},63901:function(e,a,l){"use strict";var t=l("80681"),n=l("2735"),r=l("78335"),i=l("12308"),u=l("55987"),o=l("20358"),d=l("96528"),s=l("7197"),c=l("95786");a.Z=(0,t.aZ)({props:{name:r.Or,item:(0,r.ir)(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,reupload:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview","reupload"],setup(e,a){var{emit:l,slots:r}=a,m=()=>{var{status:a,message:l}=e.item;if("uploading"===a||"failed"===a){var r="failed"===a?(0,t.Wm)(d.JO,{name:"close",class:(0,n.PH)("mask-icon")},null):(0,t.Wm)(c.gb,{class:(0,n.PH)("loading")},null),u=(0,i.Xq)(l)&&""!==l;return(0,t.Wm)("div",{class:(0,n.PH)("mask")},[r,u&&(0,t.Wm)("div",{class:(0,n.PH)("mask-message")},[l])])}},v=a=>{var{name:t,item:n,index:r,beforeDelete:i}=e;a.stopPropagation(),(0,u.I)(i,{args:[n,{name:t,index:r}],done:()=>l("delete")})},p=()=>l("preview"),h=()=>l("reupload"),g=()=>{if(e.deletable&&"uploading"!==e.item.status){var a=r["preview-delete"];return(0,t.Wm)("div",{role:"button",class:(0,n.PH)("preview-delete",{shadow:!a}),tabindex:0,"aria-label":(0,n.t)("delete"),onClick:v},[a?a():(0,t.Wm)(d.JO,{name:"cross",class:(0,n.PH)("preview-delete-icon")},null)])}},f=()=>{if(r["preview-cover"]){var{index:a,item:l}=e;return(0,t.Wm)("div",{class:(0,n.PH)("preview-cover")},[r["preview-cover"]((0,i.l7)({index:a},l))])}},b=()=>{var{item:a,lazyLoad:l,imageFit:r,previewSize:i,reupload:u}=e;return(0,n.CO)(a)?(0,t.Wm)(s.Ee,{fit:r,src:a.objectUrl||a.content||a.url,class:(0,n.PH)("preview-image"),width:Array.isArray(i)?i[0]:i,height:Array.isArray(i)?i[1]:i,lazyLoad:l,onClick:u?h:p},{default:f}):(0,t.Wm)("div",{class:(0,n.PH)("file"),style:(0,o.Xn)(e.previewSize)},[(0,t.Wm)(d.JO,{class:(0,n.PH)("file-icon"),name:"description"},null),(0,t.Wm)("div",{class:[(0,n.PH)("file-name"),"van-ellipsis"]},[a.file?a.file.name:a.url]),f()])};return()=>(0,t.Wm)("div",{class:(0,n.PH)("preview")},[b(),m(),g()])}})}}]); |