@10yun/cv-pc-ui 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cv-pc-ui.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";/*! cvPcUI v0.3.6 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("element-plus"),ao=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.18.2/index.js"),p=(t,o)=>{const n=t.__vccOpts||t;for(const[i,l]of o)n[i]=l;return n},io={name:"cvRow",props:{gutter:{type:[Number,String],default:0},type:{type:[String],default:""},justify:{type:[String],default:"start"},align:{type:[String],default:"top"},tag:{type:[String],default:"div"}},data(){return{}},methods:{}};function so(t,o,n,i,l,a){const s=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-row"},{type:n.type,justify:n.justify,align:n.align,tag:n.tag},{gutter:parseInt(n.gutter)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["gutter"])}const H=p(io,[["render",so],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),ro={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function co(t,o,n,i,l,a){const s=e.resolveComponent("el-col");return e.openBlock(),e.createBlock(s,{class:"cv-col",span:parseInt(n.span),offset:parseInt(n.offset)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["span","offset"])}const q=p(ro,[["render",co],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/col.vue"]]);H.install=function(t){t.component(H.name,H)};q.install=function(t){t.component(q.name,q)};const uo={name:"cvBtnBase",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},created(){},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function ho(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const W=p(uo,[["render",ho],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),po={name:"cvBtnText",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function mo(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{link:"",loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const K=p(po,[["render",mo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/text.vue"]]);W.install=function(t){t.component(W.name,W)};K.install=function(t){t.component(K.name,K)};const fo={name:"cvFormBase",extends:g.ElForm,provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{}}};function go(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},t.$props,e.toHandlers(t.$attrs)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Z=p(fo,[["render",go],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),_o={name:"cvFormInline",provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function vo(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},t.$props,e.toHandlers(t.$attrs),{inline:!0}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Q=p(_o,[["render",vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]);const yo={name:"cvFormItem",extends:g.ElFormItem,inject:{elForm:{}},props:{...g.ElFormItem.props,labelWidth:{type:[String],default:"80px"}},data(){return{localLabelWidth:"",localError:""}},created(){this.localLabelWidth=this.labelWidth,this.elForm.labelWidth&&(this.localLabelWidth=this.elForm.labelWidth),this.localLabelWidth=this.localLabelWidth.indexOf("px")=="-1"?this.localLabelWidth+"px":this.localLabelWidth},methods:{}};function ko(t,o,n,i,l,a){const s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{"label-width":l.localLabelWidth}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),e.renderSlot(t.$slots,"tip")]),_:3},16,["label-width"])}const G=p(yo,[["render",ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Z.install=function(t){t.component(Z.name,Z)};Q.install=function(t){t.component(Q.name,Q)};G.install=function(t){t.component(G.name,G)};const $={extends:g.ElInput,emits:["update:modelValue","change"],props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(t){this.localVal=t},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localRules:[]}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},handleBlur(){this._isCheckValue()},_showError(t){this.localError=t||"请输入正确的"+this.label},_diyValidate(){},_isCheckValue(){const o=this==null?void 0:this.rules.split("|");this.localError="";for(let n in o){let l=o[n].split(":"),a=l[0]||"",s=l[1]||"";switch(a){case"require":if(this.localVal==""){this._showError(this.label+"不能为空");return}break;case"max":if(this.localVal.length>s){this._showError(this.label+"最大长度不超过"+s);return}break;case"min":if(this.localVal.length<s){this._showError(this.label+"最小长度不小于"+s);return}break;default:this._diyValidate(a);break}}}}},Co={name:"cvInputText",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(t){switch(t){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let l=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!l.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":/^[A-Za-z0-9]+$/.test(this.localVal)||this._showError("必须是字母和数字");break}}}},wo={slot:"prepend"},bo={slot:"append"};function Vo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",wo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",bo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const So=p(Co,[["render",Vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),No={name:"cvInputMobile",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1][3,4,5,7,8][0-9]{9}$/;this.rules.indexOf("mobile")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Bo=e.createElementVNode("template",{slot:"prepend"},[e.createTextVNode("+86")],-1),xo={slot:"append"};function Eo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number",oninput:"if(value.length>11)value=value.slice(0,11)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入11位大陆手机号",clearable:""}),{default:e.withCtx(()=>[Bo,e.createElementVNode("template",xo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const J=p(No,[["render",Eo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),$o={name:"cvInputEmail",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("email")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},To={slot:"prepend"},Do={slot:"append"};function Io(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入邮箱",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",To,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Do,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const X=p($o,[["render",Io],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),Fo={name:"cvInputPassword",mixins:[$],components:{},props:{showPassword:{type:Boolean,default:!1}},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("password")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},zo={slot:"prepend"},Lo={slot:"append"};function jo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"password"},{disabled:t.disabled,showPassword:n.showPassword},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入密码",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",zo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Lo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Y=p(Fo,[["render",jo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]);const Oo={name:"cvInputNumber",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(){let t=/^[0-9]*$/;this.rules.indexOf("number")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Po={slot:"prepend"},Ao={slot:"append"};function Uo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-number",type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入整数",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Po,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ao,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ee=p(Oo,[["render",Uo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),Ro={name:"cvInputIdcard",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;this.rules.indexOf("idcard")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Mo={slot:"prepend"},Ho={slot:"append"};function qo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text",oninput:"if(value.length>18)value=value.slice(0,18)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入身份证",clearable:"",maxlength:"18"}),{default:e.withCtx(()=>[e.createElementVNode("template",Mo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ho,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const te=p(Ro,[["render",qo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),Wo={name:"cvInputDigit",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^(([0-9])|([1-9]([0-9]+)))(.[0-9]+)?$/;this.rules.indexOf("digit")!==-1&&!t.test(this.localVal)&&(this._showError="请输入正确的"+this.label)}}},Ko={slot:"prepend"},Zo={slot:"append"};function Qo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Ko,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Zo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const oe=p(Wo,[["render",Qo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),Go={name:"cvTextarea",mixins:[$],props:{rows:{type:[Number,String],default:3},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}};function Jo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"])}const ne=p(Go,[["render",Jo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]);const Xo={name:"cvTextareaBtn",mixins:[$],components:{},props:{rows:{type:[Number,String],default:3},btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Yo={class:"cv-textab-group"},en={class:"cv-textab-group__append"},tn={class:"cv-textab_slot-wrap"};function on(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"]),e.createElementVNode("div",en,[e.createElementVNode("div",tn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-textab_slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])])}const le=p(Xo,[["render",on],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]);const nn={name:"cvInputBtn",mixins:[$],emits:["btnClick"],components:{},props:{btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(t){switch(t){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let l=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!l.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":regEnNum=/^[A-Za-z0-9]+$/,regEnNum.test(this.localVal)||this._showError("必须是英文和数字");break}}}},ln={class:"cv-input-group"},an={class:"cv-input-group__append"};function sn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",ln,[e.createVNode(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),null,16,["modelValue","onChange","onInput","placeholder"]),e.createElementVNode("div",an,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-input-btn__slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])}const ae=p(nn,[["render",sn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]),rn={name:"cvInputSearch",mixins:[$],components:{},data(){return{localVal:"",localOpt:[]}},props:{apiParam:{type:[Object],default(){return{}}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}}},methods:{querySearchAsync(t,o){var n=this.localOpt,i=t?n.filter(this.createStateFilter(t)):n;this.apiFunc(),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(i)},Math.random())},createStateFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},apiFunc(){},handleSelect(t){},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]||"",a=i[n]||"";a=a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}},created(){this._parseLocalOpt()}};function cn(t,o,n,i,l,a){const s=e.resolveComponent("el-autocomplete");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)},t.$props,{"fetch-suggestions":a.querySearchAsync,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,onSelect:a.handleSelect,style:{width:"100%"},clearable:""}),null,16,["modelValue","fetch-suggestions","placeholder","onSelect"])}const ie=p(rn,[["render",cn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/search.vue"]]);J.install=function(t){t.component(J.name,J)};X.install=function(t){t.component(X.name,X)};Y.install=function(t){t.component(Y.name,Y)};ee.install=function(t){t.component(ee.name,ee)};te.install=function(t){t.component(te.name,te)};oe.install=function(t){t.component(oe.name,oe)};ne.install=function(t){t.component(ne.name,ne)};le.install=function(t){t.component(le.name,le)};ae.install=function(t){t.component(ae.name,ae)};ie.install=function(t){t.component(ie.name,ie)};const dn={name:"cvInputCounter",extends:g.ElInputNumber,props:{},watch:{modelValue(){this.localVal=this.modelValue}},data(){return{localVal:0}},created(){},methods:{handleChange(t){this.$emit("update:modelValue",this.localVal)}}};function un(t,o,n,i,l,a){const s=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),onChange:a.handleChange,step:t.step}),null,16,["modelValue","onChange","step"])}const se=p(dn,[["render",un],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);se.install=function(t){t.component(se.name,se)};const hn={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},pn={class:"cv-show-text"},mn=["innerHTML"];function fn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",pn,[n.text?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:n.text},null,8,mn)):e.createCommentVNode("",!0),n.text?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:1})])}const re=p(hn,[["render",fn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),gn={name:"cvShowImage",mixins:[],components:{},props:{url:{type:[String,Array,Object],default:""},width:{type:[String],default:"100px"},height:{type:[String],default:"100px"}},data(){return{localUrl:""}},watch:{url:{handler(){this.localUrl=typeof this.url=="string"?[this.url]:this.url},immediate:!0,deep:!0}},created(){},methods:{}},_n={class:"cv-show-image"};function vn(t,o,n,i,l,a){const s=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",_n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localUrl,(r,d)=>(e.openBlock(),e.createBlock(s,{style:e.normalizeStyle("width:"+n.width+"; height:"+n.height+"; margin-right:10px"),key:d,src:r,"preview-src-list":l.localUrl},null,8,["style","src","preview-src-list"]))),128))])}const ce=p(gn,[["render",vn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]);const yn={name:"cvShowTip",props:{borderColor:{type:[String],default:"#50bfff"},bgColor:{type:[String],default:"#ecf8ff"}},data(){return{backgroundColor:"#ecf8ff",borderLeft:"5px solid #50bfff"}},created(){this.borderLeft=`5px solid ${this.borderColor}`,this.backgroundColor=`${this.bgColor}`},methods:{}};function kn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:"cv-show-tip",style:e.normalizeStyle({backgroundColor:this.backgroundColor,borderLeft:this.borderLeft})},[e.renderSlot(t.$slots,"default")],4)}const de=p(yn,[["render",kn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),Cn={name:"cv-gallery-dialog",props:{type:String,title:String,sources:Array,sliceSingle:{type:Boolean,default:!1},carouselAttrs:Object},data(){return{isShowCarousel:!1,sourceTitle:"",initialIndex:0,isShowPreview:!1}},methods:{startPreview(t){this.isShowPreview=!0,this.initialIndex=t,this.sourceTitle=this.sources[t].title},handleCarouselChange(t){this.sources[t]&&this.sources[t].title?this.sourceTitle=this.sources[t].title:this.sourceTitle=""}}},wn={slot:"title"},bn=["src"],Vn={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},Sn=["src"],Nn=["src"],Bn=["src"];function xn(t,o,n,i,l,a){const s=e.resolveComponent("el-carousel-item"),r=e.resolveComponent("el-carousel"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,{visible:l.isShowPreview,"append-to-body":"",onOpen:o[0]||(o[0]=c=>l.isShowCarousel=!0),onClosed:o[1]||(o[1]=c=>l.isShowCarousel=!1),style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("div",wn,e.toDisplayString(l.sourceTitle||n.title),1),n.type==="video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.isShowPreview?(e.openBlock(),e.createElementBlock("video",{key:0,src:n.sources[l.initialIndex].src,autoplay:"autoplay",class:"cv-gallery-video",controls:"controls",width:"100%"},null,8,bn)):e.createCommentVNode("",!0)],64)):n.type==="iframe"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowPreview?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("iframe",{src:n.sources[l.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Sn)])):e.createCommentVNode("",!0)],64)):n.type==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[n.sliceSingle&&n.sources[l.initialIndex]||n.sources.length===1?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.sources[l.initialIndex].src,class:"cv-gallery-image"},null,8,Nn)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowCarousel?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,"initial-index":l.initialIndex,onChange:a.handleCarouselChange,"indicator-position":"outside"},n.carouselAttrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sources,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.createElementVNode("img",{src:c.src,class:"cv-gallery-image"},null,8,Bn)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)]),_:1},8,["visible"])}const En=p(Cn,[["render",xn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]);const $n={name:"gallery",components:{GalleryDialog:En},props:{type:{type:String,default:"image",validator(t){return["image","video","iframe"].includes(t)}},size:Number,width:Number,height:Number,lazy:{type:Boolean,default:!1},source:[String,Array,Object],thumbSuffix:String,thumbStyle:Object,carouselAttrs:Object,removeFn:Function,title:String,sliceSingle:{type:Boolean,default:!1}},data(){return{}},computed:{viewClass(){return this.type==="video"||this.type==="iframe"?"el-icon-video-play":"el-icon-zoom-in"},computedStyle(){let t=this.width||this.size,o=this.height||this.size;return this.type==="image"?(t=t?t+"px":"150px",o=o?o+"px":"150px"):(this.type==="video"||this.type==="iframe")&&(t=t?t+"px":"360px",o=o?o+"px":"auto"),Object.assign({},{width:t,height:o,display:"block"},this.thumbStyle)},thumbs(){return this.computedSources.map(t=>t.thumb)},computedSources(){const t=this.source;if(typeof t=="string")return[this.getStringSource(t)];if(t instanceof Array){const o=[];return t.forEach(n=>{n instanceof Object?o.push(this.getObjectSource(n)):typeof n=="string"&&o.push(this.getStringSource(n))}),o}else return t instanceof Object?[this.getObjectSource(t)]:[]}},methods:{handlePreview(t){this.$refs.dialog.startPreview(t)},handleRemove(t){this.removeFn(t)},getStringSource(t){let o=t;return this.type==="image"&&this.thumbSuffix&&(o+=this.thumbSuffix),{type:this.type,src:t,thumb:o}},getObjectSource(t){return t.type=t.thumb?"image":this.type,t.thumb=t.thumb||t.src,t}}},Tn={key:0,class:"cv-gallery"},Dn={class:"el-upload-list el-upload-list--picture-card"},In=["src"],Fn=["src"],zn={class:"el-upload-list__item-actions"},Ln=["onClick"],jn=["onClick"],On=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Pn=[On];function An(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("GalleryDialog");return n.source?(e.openBlock(),e.createElementBlock("div",Tn,[e.createElementVNode("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.computedSources,(d,c)=>(e.openBlock(),e.createElementBlock("li",{key:c,class:"el-upload-list__item"},[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({source:d,index:c})),()=>[d.type==="image"?(e.openBlock(),e.createBlock(s,{key:0,lazy:n.lazy,src:d.thumb,style:e.normalizeStyle(a.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):d.type==="video"?(e.openBlock(),e.createElementBlock("video",{key:1,src:d.thumb,style:e.normalizeStyle(a.computedStyle)},null,12,In)):d.type==="iframe"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(a.computedStyle),class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},[e.createElementVNode("iframe",{src:d.thumb,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Fn)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("span",zn,[e.createElementVNode("span",{onClick:u=>a.handlePreview(c,d)},[e.createElementVNode("i",{class:e.normalizeClass(a.viewClass)},null,2)],8,Ln),n.removeFn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:u=>a.handleRemove(c)},Pn,8,jn)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"action",e.normalizeProps(e.guardReactiveProps({source:d,index:c})))])]))),128))]),e.createVNode(r,{carouselAttrs:n.carouselAttrs,sliceSingle:n.sliceSingle,sources:a.computedSources,title:n.title,type:n.type,ref:"dialog"},null,8,["carouselAttrs","sliceSingle","sources","title","type"])])):e.createCommentVNode("",!0)}const ue=p($n,[["render",An],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);re.install=function(t){t.component(re.name,re)};ce.install=function(t){t.component(ce.name,ce)};de.install=function(t){t.component(de.name,de)};ue.install=function(t){t.component(ue.name,ue)};const Un={name:"cvRadioOptBase",extends:g.ElRadio};function Rn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const he=p(Un,[["render",Rn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),Mn={name:"cvRadioOptBtn",extends:g.ElRadioButton};function Hn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const pe=p(Mn,[["render",Hn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),qn={name:"cvRadioGroup",props:{...g.ElRadioGroup.props,modelValue:{default:""},type:{type:[String],default:"base"},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localText:[],localVal:this.modelValue,localOpt:[]}},created(){this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function Wn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-button"),d=e.resolveComponent("el-radio-group");return e.openBlock(),e.createBlock(d,{class:"cv-radio-group",modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>l.localVal=c)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const me=p(qn,[["render",Wn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);he.install=function(t){t.component(he.name,he)};pe.install=function(t){t.component(pe.name,pe)};me.install=function(t){t.component(me.name,me)};const Kn={name:"cvCheckboxOptBase",extends:g.ElCheckbox};function Zn(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const fe=p(Kn,[["render",Zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),Qn={name:"cvCheckboxOptBtn",extends:g.ElCheckboxButton,props:{}};function Gn(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const ge=p(Qn,[["render",Gn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Lt={props:{...g.ElCheckboxGroup.props,modelValue:{type:[Array],default(){return[]}},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localVal:this.modelValue,localOpt:[]}},created(){this.handleChange(),this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}this._parseLocalOptDiy()},_parseLocalOptDiy(){}}},Jn={name:"cvCheckboxAll",mixins:[Lt],components:{},data(){return{checkAll:!1,isIndeterminate:!0,localOptAll:[]}},methods:{handleCheckAllChange(t){this.localVal=t?this.localOptAll:[],this.isIndeterminate=!1,this.handleChange()},handleCheckedCitiesChange(t){let o=t.length;this.checkAll=o===this.localOptAll.length,this.isIndeterminate=o>0&&o<this.localOptAll.length},_parseLocalOptDiy(){this.localOpt&&this.localOpt.length!==0&&this.localOpt.map(t=>{t.disabled||this.localOptAll.push(t.label)})}}},Xn={class:"cv-checkbox-all"},Yn=e.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function el(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",Xn,[e.createVNode(s,{indeterminate:l.isIndeterminate,modelValue:l.checkAll,"onUpdate:modelValue":o[0]||(o[0]=d=>l.checkAll=d),onChange:a.handleCheckAllChange},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["indeterminate","modelValue","onChange"]),Yn,e.createVNode(r,{modelValue:t.localVal,"onUpdate:modelValue":o[1]||(o[1]=d=>t.localVal=d),onChange:a.handleCheckedCitiesChange},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{label:d.label,key:c,onChange:t.handleChange,disabled:t.disabled||d.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["label","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const _e=p(Jn,[["render",el],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),tl={name:"cvCheckboxGroup",mixins:[Lt],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function ol(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-button"),d=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>t.localVal=c)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.label,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","onChange","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.label,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","onChange","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const ve=p(tl,[["render",ol],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);fe.install=function(t){t.component(fe.name,fe)};ge.install=function(t){t.component(ge.name,ge)};ve.install=function(t){t.component(ve.name,ve)};_e.install=function(t){t.component(_e.name,_e)};function nl(t,o,n){var i=n||{},l=i.noTrailing,a=l===void 0?!1:l,s=i.noLeading,r=s===void 0?!1:s,d=i.debounceMode,c=d===void 0?void 0:d,u,m=!1,h=0;function f(){u&&clearTimeout(u)}function C(y){var v=y||{},k=v.upcomingOnly,w=k===void 0?!1:k;f(),m=!w}function _(){for(var y=arguments.length,v=new Array(y),k=0;k<y;k++)v[k]=arguments[k];var w=this,S=Date.now()-h;if(m)return;function B(){h=Date.now(),o.apply(w,v)}function T(){u=void 0}!r&&c&&!u&&B(),f(),c===void 0&&S>t?r?(h=Date.now(),a||(u=setTimeout(c?T:B,t))):B():a!==!0&&(u=setTimeout(c?T:B,c===void 0?t-S:t))}return _.cancel=C,_}function ll(t,o,n){var i=n||{},l=i.atBegin,a=l===void 0?!1:l;return nl(t,o,{debounceMode:a!==!1})}function P(t,o=!1){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("id",t),o?n.setAttribute("href",t+"?t="+new Date().getTime()):n.setAttribute("href",t),document.getElementById(t)||document.head.appendChild(n)}function N(t,o=!1,n=!0){return new Promise((i,l)=>{const a=document.createElement("script");t=t.replace(/([^:]\/)\/+/g,"$1"),a.src=t,a.id=t,a.type="text/javascript",o?a.src=t+"?t="+new Date().getTime():a.src=t,document.getElementById(t)&&n?i():(document.body.appendChild(a),a.onload=()=>{i()})})}function al(t){const o=t,n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("Copy"),g.ElMessage({message:"复制成功",type:"success"}),n.remove()}const il={name:"cvGeoCity",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{modelValue(t){},initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict();break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},sl={class:"cv-geo-city"},rl={key:0},cl={key:1};function dl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",sl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",rl,[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",cl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const ye=p(il,[["render",dl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]);const ul={name:"cvGeoCity2",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",hideMunicipality:!1,municipalities:["110000","120000","310000","500000","北京市","天津市","上海市","重庆市"],provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":if(delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict(),this.municipalities.indexOf(o.provinceCode)>-1){this.cityList.length==0&&this._getNeedCity();const i=this.cityList[0];this.cityCode=i.cityCode,this.changeCity(i.cityCode),this.handleChoose("cityCode",i,0);break}break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.hideMunicipality=this.municipalities.indexOf(this.provinceCode)>-1,this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]}),o=="500100"&&n.substring(0,4)=="5002"&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},hl={class:"cv-geo-city"},pl=["hidden"],ml={key:1};function fl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,hidden:l.hideMunicipality},[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])],8,pl)),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",ml,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const ke=p(ul,[["render",fl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);ye.install=function(t){t.component(ye.name,ye)};ke.install=function(t){t.component(ke.name,ke)};const gl={...g.ElOption,extends:g.ElOption,name:"cvSelectOpt"},Ce=p(gl,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]);const _l={name:"cvSelectBase",emits:["onChoose","change","update:modelValue"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"}},watch:{modelValue(t){this.localVal=t},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(t){this.handleChange()}},data(){return{localVal:this.modelValue,localOpt:[]}},methods:{handleChoose(t,o){this.$emit("onChoose",t,o)},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";if(a=a===0?0:a||l,this.dataDisabled.length>0)for(let s in this.dataDisabled)this.dataDisabled[s][n]==a&&(i.disabled=!0);t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function vl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(r,e.mergeProps({class:"cv-select-base"},t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),size:t.size,filterable:"",clearable:""}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{onClick:u=>a.handleChoose(d,c),disabled:d.disabled,label:d.label,value:d.value,key:c},null,8,["onClick","disabled","label","value"]))),128))])]),_:3},16,["modelValue","size"])}const we=p(_l,[["render",vl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]);const yl={name:"cvSelectTree",emits:["update:modelValue","change"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default:()=>({value:"id",label:"title",children:"children"})},clearable:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!0},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},refID:{type:[String],required:!1,default(){return"cvSelectTree-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}}},watch:{modelValue(){this.localVal=this.modelValue,this.initHandle()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange()}},data(){return{localVal:"",localOpt:[],localTitle:"",defaultExpandedKey:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},mounted(){this.localVal=this.modelValue,this.initHandle()},methods:{initHandle(){if(this.localVal){var t=this.$refs[this.refID+"tree"].getNode(this.localVal);t&&(this.localTitle=t.data[this.dataField.label],this.$refs[this.refID+"tree"].setCurrentKey(this.localVal),this.defaultExpandedKey=[this.localVal])}else this.clearHandle();this.initScroll()},initScroll(){this.$nextTick(()=>{let t=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-select-dropdown__wrap")[0],o=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-scrollbar__bar");t.style.cssText="margin: 0px; max-height: none; overflow: hidden;",o.forEach(n=>n.style.width=0)})},handleNodeClick(t,o,n){t.disabled||(this.localTitle=t[this.dataField.label],this.localVal=t[this.dataField.value],this.defaultExpandedKey=[],this.$refs[this.refID].blur())},clearHandle(){this.localTitle="",this.localVal="",this.defaultExpandedKey=[],this.clearSelected()},clearSelected(){document.querySelectorAll(`#${this.refID}tree .el-tree-node`).forEach(o=>o.classList.remove("is-current"))},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists;this.dataField&&this.dataField.label;let o=this.dataField&&this.dataField.value||"value",n=this.dataField&&this.dataField.children||"children",i=this.dataDisabled;l(t);function l(a){for(let s in a)i.map(r=>{a[s][o]==r[o]&&(a[s].disabled=!0)}),a[s][n]&&l(a[s][n])}this.localOpt=t}}};function kl(t,o,n,i,l,a){const s=e.resolveComponent("el-tree"),r=e.resolveComponent("el-option"),d=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{ref:n.refID,"popper-class":"cv-select-tree",modelValue:l.localTitle,onClear:a.clearHandle}),{default:e.withCtx(()=>[e.createVNode(r,{value:l.localTitle,label:l.localTitle,class:"options"},{default:e.withCtx(()=>[e.createVNode(s,{"highlight-current":"",id:n.refID+"tree",ref:n.refID+"tree",accordion:n.accordion,showCheckbox:n.showCheckbox,data:l.localOpt,props:n.dataField,"node-key":n.dataField.value,onNodeClick:a.handleNodeClick,"default-expand-all":n.defaultExpandAll},null,8,["id","accordion","showCheckbox","data","props","node-key","onNodeClick","default-expand-all"])]),_:1},8,["value","label"])]),_:1},16,["modelValue","onClear"])}const be=p(yl,[["render",kl],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);Ce.install=function(t){t.component(Ce.name,Ce)};we.install=function(t){t.component(we.name,we)};be.install=function(t){t.component(be.name,be)};const Cl={name:"cvCascaderBase",components:{},props:{...g.ElCascader.props,modelValue:{type:[String,Array,Number],default(){}},dataLists:{type:[Array],default(){return[]}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},dataField:{type:[Object],default(){return{}}},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localOpt:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists,o=this.dataField&&this.dataField.value||"value",n=this.dataDisabled;i(t);function i(l){for(let a in l)n.map(s=>{l[a][o]==s[o]&&(l[a].disabled=!0)}),l[a].children&&i(l[a].children)}this.localOpt=t},getCheckedNodes(){}}},wl={class:"cv-cascader-base block"};function bl(t,o,n,i,l,a){const s=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",wl,[e.createVNode(s,e.mergeProps(t.$props,{props:a.props2,modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),options:l.localOpt,onChange:a.handleChange,onGetCheckedNodes:a.getCheckedNodes}),null,16,["props","modelValue","options","onChange","onGetCheckedNodes"])])}const Ve=p(Cl,[["render",bl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);Ve.install=function(t){t.component(Ve.name,Ve)};const jt={props:{...g.ElTimePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue,Array.isArray(this.modelValue)&&(!isNaN(this.modelValue[0])||!isNaN(this.modelValue[1]))||isNaN(this.modelValue)},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}},created(){},methods:{}};const Vl={name:"cvTimeBase",mixins:[jt],props:{format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function Sl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-base"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"picker-options":{}}),null,16,["modelValue","format"])}const Se=p(Vl,[["render",Sl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]);const Nl={name:"cvTimeRange",mixins:[jt],props:{format:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function Bl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-range"},t.$props,{"is-range":"",modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder}),null,16,["modelValue","format","range-separator","start-placeholder","end-placeholder"])}const Ne=p(Nl,[["render",Bl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),vt={props:{...g.ElDatePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null},pickerOptions:{type:Boolean,default:!1}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue,Array.isArray(this.modelValue)&&(!isNaN(this.modelValue[0])||!isNaN(this.modelValue[1]))||isNaN(this.modelValue)},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}}};const xl={name:"cvDateBase",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:[String,Number],default:"选择日期"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function El(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"date","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const Be=p(xl,[["render",El],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]);const $l={name:"cvDateRange",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function Tl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"daterange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const xe=p($l,[["render",Tl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]);const Dl={name:"cvDatetimeBase",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd HH:mm:ss"},placeholder:{type:[String,Number],default:"选择日期时间"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function Il(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetime","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const Ee=p(Dl,[["render",Il],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]);const Fl={name:"cvDatetimeRange",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function zl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetimerange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,align:"right","picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const $e=p(Fl,[["render",zl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);Se.install=function(t){t.component(Se.name,Se)};Ne.install=function(t){t.component(Ne.name,Ne)};Be.install=function(t){t.component(Be.name,Be)};xe.install=function(t){t.component(xe.name,xe)};Ee.install=function(t){t.component(Ee.name,Ee)};$e.install=function(t){t.component($e.name,$e)};const Ll={name:"cvSwitchBase",props:{...g.ElSwitch.props,activeColor:{type:[String],default:""},inactiveColor:{type:[String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){this.localVal=this.modelValue},methods:{}};function jl(t,o,n,i,l,a){const s=e.resolveComponent("el-switch");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)}),null,16,["modelValue"])}const Te=p(Ll,[["render",jl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);Te.install=function(t){t.component(Te.name,Te)};const Ol={name:"cvCodeSms",mixins:[],components:{},props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:"请输入验证码"},disabled:{type:Boolean,default:!1},mobile:{type:[Number,String],default:""},mobileParam:{type:String,default:"mobile"},codeUrl:{type:String,default:""},codeSign:{type:Boolean,default:!1},codeApiFunc:{type:Function,default:null},waitTime:{type:[Number,String],default:60}},watch:{mobile(t){this.localMobile=t},modelValue(t){this.localVal=t}},data(){return{localVal:this.modelValue,localMobile:"",nextTime:0,diyPlaceholder:"短信验证码",btnDisabled:!1,btnText:"获取验证码",btnIntervalObj:null}},created(){this.localMobile=this.mobile},methods:{showDiyMsg(t){this.$message(t)},getSmsCode(){if(!this.localMobile){this.showDiyMsg("手机号不正确"),this.$emit("onGetSms",!1);return}if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localMobile)){this.showDiyMsg("手机号格式不正确"),this.$emit("onGetSms",!1);return}if(!this.codeUrl&&!this.codeApiFunc){this.showDiyMsg("短信接口地址不能为空");return}this.btnDisabled=!0,!this.btnIntervalObj&&this.btnDisabled&&(this.btnText="请稍后...",this.codeApiFunc?this.codeApiFunc({postType:"sendSms",cto_sms_type:"alterMobile",sendCode:"发送验证码",[this.mobileParam]:this.localMobile}).then(o=>{let n=o;n.status==200?(this.showDiyMsg("发送成功!"),setTimeout(()=>{if(this.codeSign){let i=n.data&&n.data.sign||"";this.diyPlaceholder="识别码:"+i}this.smsCodeWaitTime()},500)):(this.showDiyMsg("短信获取失败,请检查网络"),this.btnDisabled=!1,this.btnText="获取验证码")}).catch(o=>{this.btnDisabled=!1,this.btnText="获取验证码"}):(this.btnDisabled=!1,this.btnText="重新获取验证码"))},smsCodeWaitTime(){this.nextTime=Date.parse(new Date)/1e3+parseInt(this.waitTime),this.btnIntervalObj=setInterval(()=>{let t=this.nextTime-Date.parse(new Date)/1e3;t<=0?(clearInterval(this.btnIntervalObj),this.btnText="重新获取验证码",this.btnIntervalObj=0,this.btnDisabled=!1):(this.btnDisabled=!0,this.btnText=t.toString()+"s")},100)},updateInput(t){this.$emit("update:modelValue",this.localVal)}}};function Pl(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),clearable:"",placeholder:l.diyPlaceholder,onInput:a.updateInput}),{append:e.withCtx(()=>[e.createVNode(s,{onClick:a.getSmsCode,disabled:l.btnDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.btnText),1)]),_:1},8,["onClick","disabled"])]),_:1},16,["modelValue","placeholder","onInput"])}const De=p(Ol,[["render",Pl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);De.install=function(t){t.component(De.name,De)};function Al(t,o,n){let i;n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to post ${t} ${n.status}`;const l=new Error(i);return l.status=n.status,l.method="post",l.url=t,l}function Ul(t){const o=t.responseText||t.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Rl(t){if(typeof XMLHttpRequest>"u")return;const o=new XMLHttpRequest,n=t.action;o.upload&&(o.upload.onprogress=function(s){s.total>0&&(s.percent=s.loaded/s.total*100),t.onProgress(s)});const i=new FormData;t.data&&Object.keys(t.data).forEach(a=>{i.append(a,t.data[a])}),i.append(t.filename,t.file,t.file.name),o.onerror=function(s){t.onError(s)},o.onload=function(){if(o.status<200||o.status>=300)return t.onError(Al(n,t,o));t.onSuccess(Ul(o))},o.open("post",n,!0),t.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const l=t.headers||{};for(const a in l)Object.prototype.hasOwnProperty.call(l,a)&&l[a]!==null&&o.setRequestHeader(a,l[a]);return o.send(i),o}const yt={inheritAttrs:!1,props:{valInit:{type:[String,Array],default:()=>""},drag:{type:Boolean,default:!1},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},httpRequest:Function,accept:String,beforeRemove:Function,upResponseFn:Function,fileSize:{type:Number,default:2}},data(){return{isUploadComponent:!0}},computed:{upAction(){return this.mergeAttrs.upAction||"https://httpbin.org/post"},upHeaders(){return this.mergeAttrs.upHeaders||{}},upData(){return this.mergeAttrs.upData||{}},upName(){return this.mergeAttrs.upName||"file"},componentName(){return this.$options.name},mergeAttrs(){let t=this.$cvUiParams||{},o=t.upload||{},n={};return this.isUploadComponent?n=Object.assign({},o,t[this.componentName]):n=t[this.componentName],Object.assign({},n,this.$attrs)}},methods:{handleImageUpload(t,o){const n=this.mergeAttrs;if(!t){this.$message.error("文件不存在");return}if(n.fileSize&&!(t.size/1024/1024<n.fileSize)){this.$message.error(`上传文件大小 ${n.fileSize} MB!`);return}if(!t.type.includes("image")){this.$message.error("上传类型错误");return}if(!n.upAction){this.$message.error("上传地址错误");return}Rl({action:n.upAction,file:t,headers:n.upHeaders,filename:n.upName,data:n.upData,onProgress(){return!1},onSuccess:l=>{n.upResponseFn&&(t.url=URL.createObjectURL(t),l=n.upResponseFn(l,t)),o(l)},onError:l=>{this.$message.error("上传错误")}})},beforeRemove2(){return new Promise((t,o)=>{this.$confirm("提示",{title:"确定删除??",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t(!0)}).catch(()=>{o(!1)})})},uploadRequestFn(t){let o=new FormData;o.append("file",t.file);let n="";t.file.type==="image/png"?n="png":n="jpg",axios({url:"http://api.10.com/v1sdk/ctofile.file_img_opt",methods:"post",data:o,headers:{"Content-Type":"multipart/form-data",...this.headers}}).then(i=>{})}}};const Ml={name:"cvUploadAvatar",mixins:[yt],components:{},props:{fileSize:{type:[Number],default:2},src:{type:[String],default:""}},data(){return{imageUrl:""}},mounted(){this.imageUrl=this.src||""},methods:{upAvatarBefore(t){var o=new Array;o=t.name.split(".");const n=o[o.length-1]==="jpg",i=o[o.length-1]==="png",l=o[o.length-1]==="gif",a=o[o.length-1]==="jpeg";if(!n&&!i&&!a&&l)return this.$message.error("只能上传jpg/png/gif/jpeg格式图片!"),!1;const s=t.size/1024/1024<this.fileSize;return s||this.$message.error(`上传头像图片大小不能超过 ${this.fileSize}MB!`),n||i||l||a&&s},upAvatarSuccess(t,o){this.imageUrl=URL.createObjectURL(o.raw)}}},Hl={class:"cv-upload-avatar"},ql=["src"],Wl={key:1,class:"el-icon-plus cv-upload-avatar__icon"};function Kl(t,o,n,i,l,a){const s=e.resolveComponent("el-upload");return e.openBlock(),e.createElementBlock("div",Hl,[e.createVNode(s,e.mergeProps({action:t.upAction,withCredentials:t.withCredentials,showFileList:!1},{"before-upload":a.upAvatarBefore,"on-success":a.upAvatarSuccess}),{default:e.withCtx(()=>[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img"},null,8,ql)):(e.openBlock(),e.createElementBlock("i",Wl))]),_:1},16,["before-upload","on-success"])])}const Ie=p(Ml,[["render",Kl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]);const Zl={name:"cvUploadImage",mixins:[yt],components:{ShowGallery:ue},props:{modelValue:{type:[String,Array,Object],default(){return[]}},galleryLabel:{type:String,default:""},fileSize:{type:Number,default:2},fileType:{type:Array,default:()=>["png","jpg","jpeg","gif"]},size:{type:Number,default:150},isShowSuccessTip:{type:Boolean,default:!0},thumbSuffix:{type:String,default:""},isShowTip:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},upAccept:{type:String,default:"image/*"}},mounted(){this.fileList=this.initShowList()},data(){return{fileList:[],showList:[],imageUrl:"",uploading:!1,dialogVisibleImg:!1,ImgName:"",dialogImageUrl:""}},computed:{limit(){return this.multiple==!1?1:5},showTip(){return this.isShowTip&&(this.fileType.length||this.fileSize)},computedValues(){return this.modelValue?typeof this.modelValue=="string"?[this.modelValue]:Object.prototype.toString.call(this.modelValue)==="[object Object]"?[]:[...this.modelValue]:[]},isShowUpload(){return this.multiple?!0:this.computedValues.length===0},successFiles(){return this.fileList.filter(t=>t.status==="success")}},watch:{fileList(t){this.showList=[];for(let o in this.fileList){let n=this.fileList[o];this.showList.push(n.url)}},showList(t){},valInit(t){this.fileList=this.initShowList()}},methods:{getFileInfo(t){let o=t.lastIndexOf("/");return{name:t.substring(o+1,t.length),url:t}},initShowList(){if(this.valInit){const t=this.valInit;let o=[];if(typeof t=="string")o.push(this.getFileInfo(t));else if(Object.prototype.toString.call(t)==="[object Object]")t.name&&t.url&&o.push(t);else if(Object.prototype.toString.call(t)==="[object Array]")for(let n in t){let i=t[n];typeof i=="string"?o.push(this.getFileInfo(i)):Object.prototype.toString.call(i)==="[object Object]"&&i.name&&i.url&&o.push(i)}return o}else return[]},upImageBefore(t){let o=!1;if(this.fileType.length){let n="";t.name.lastIndexOf(".")>-1&&(n=t.name.slice(t.name.lastIndexOf(".")+1)),o=this.fileType.some(i=>!!(t.type.indexOf(i)>-1||n&&n.indexOf(i)>-1))}else o=t.type.indexOf("image")>-1;return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`),!1):(this.uploading=!0,!0):(this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`),!1)},upImageChange(t,o){this.uploading=!1,this.fileList=o},upImageExceed(){this.$message.error(`最多上传${this.limit}张图片`)},upImageError(t){this.uploading=!1,this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upImageSuccess(t,o,n){let i=t;this.uploading=!1,this.isShowSuccessTip&&this.$message.success("上传成功");const l=this.mergeAttrs;l&&typeof l.upResponseFn=="function"&&(i=l.upResponseFn(t,o)),this.upResponseFn&&(i=this.upResponseFn(t,o,this.successFiles)),this.multiple?Array.isArray(this.modelValue)?this.$emit("update:modelValue",[...this.modelValue,i]):this.$emit("update:modelValue",[i]):this.$emit("update:modelValue",i)},handlePictureCardPreview(t){var i,l,a;let o=t.raw||{},n="";o.type?n=o.type.split("/")[0]:n=(a=(l=(i=t==null?void 0:t.response)==null?void 0:i.body)==null?void 0:l.type)==null?void 0:a.split("/")[0],n=="image"?(this.dialogImageUrl=t.url,this.dialogVisibleImg=!0,this.ImgName=t.name):window.open(t.url)},doRemove(t){if(this.multiple){const o=[...this.computedValues];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.fileList=[],this.$emit("update:modelValue","")},handleRemoveDiy(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.multiple?this.computedValues[t]:this.computedValues,n=this.beforeRemove(o,this.computedValues);n&&n.then?n.then(()=>{this.doRemove(t)},()=>{}):n!==!1&&this.doRemove(t)}},handleRemove(t,o){if(this.fileList.length>0&&this.multiple)for(let n in this.fileList)this.fileList[n].uid==t.uid&&this.handleRemoveDiy(n);else this.handleRemoveDiy(t);this.fileList=o||[]}}},Ql={class:"cv-upload-image"},Gl=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),Jl=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),Xl=["src"],Yl=e.createElementVNode("i",{class:"el-icon-plus"},null,-1),ea=[Yl],ta={key:0,class:"el-upload__tip",slot:"tip"},oa={style:{color:"#f56c6c"}},na={style:{color:"#f56c6c"}},la={style:{color:"#f56c6c"}},aa=["src"];function ia(t,o,n,i,l,a){const s=e.resolveComponent("el-upload"),r=e.resolveComponent("el-dialog"),d=e.resolveComponent("ShowGallery"),c=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ql,[e.withDirectives(e.createVNode(s,e.mergeProps({ref:"upload",style:{marginBottom:n.multiple&&a.computedValues.length?"20px":"0px"}},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,withCredentials:t.withCredentials,limit:a.limit,multiple:n.multiple,drag:!!n.drag,listType:n.drag?"picture":"picture-card",disabled:l.uploading,showFileList:!0},{"file-list":l.fileList,"before-upload":a.upImageBefore,"on-change":a.upImageChange,"on-exceed":a.upImageExceed,"on-error":a.upImageError,"on-success":a.upImageSuccess,"http-request":t.httpRequest,"on-remove":a.handleRemove,"on-preview":a.handlePictureCardPreview}),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[n.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Gl,Jl],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img",style:e.normalizeStyle({width:n.size+"px",height:n.size+"px",lineHeight:n.size+"px"})},null,12,Xl)):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px",lineHeight:n.size+"px"})},ea,4))],64))])),[[c,l.uploading]]),a.showTip?(e.openBlock(),e.createElementBlock("div",ta,[e.createTextVNode(" 请上传 "),e.createElementVNode("b",oa,e.toDisplayString(n.fileType.length?n.fileType.join("/"):"图片"),1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且大小不超过 "),e.createElementVNode("b",na,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ,多图上传默认 "),e.createElementVNode("b",la,e.toDisplayString(a.limit)+"张",1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},16,["style","file-list","before-upload","on-change","on-exceed","on-error","on-success","http-request","on-remove","on-preview"]),[[e.vShow,a.isShowUpload]]),e.createVNode(r,{visible:l.dialogVisibleImg,title:l.ImgName,"append-to-body":!0,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("img",{width:"100%",src:l.dialogImageUrl,alt:"",style:{"max-width":"300px"}},null,8,aa)]),_:1},8,["visible","title"]),a.isShowUpload?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,lazy:n.lazy,"remove-fn":a.handleRemove,size:n.size,sliceSingle:!0,source:l.showList,thumbSuffix:n.thumbSuffix,title:n.galleryLabel},null,8,["lazy","remove-fn","size","source","thumbSuffix","title"]))])}const Fe=p(Zl,[["render",ia],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),sa={mdb:"access",accdb:"access",ai:"ai",html:"html",htm:"html",asp:"web",pdf:"pdf",psd:"photoshop",psb:"photoshop",mpo:"photoshop",eps:"photoshop",avi:"video",wmv:"video",rm:"video",rmvb:"video",mp4:"video","3gp":"video",asf:"video",mov:"video",m4v:"video",flv:"video",f4v:"video",mkv:"video",mts:"video",swf:"flash",ts:"video",mp3:"audio",wav:"audio",wma:"audio",ape:"audio",aac:"audio",zip:"zip",rar:"zip",gz:"zip","7z":"zip",z:"zip",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",txt:"txt",rtf:"txt",xls:"excel",xlsx:"excel",xlsm:"excel",xltx:"excel",doc:"word",docx:"word",docm:"word",wps:"word",dotx:"word",dotm:"word",ppt:"powerpoint",pptx:"powerpoint",mdf:"db",db:"db",dbf:"db",wdb:"db",vue:"vue",php:"php",jar:"jar",ini:"ini",bat:"bat",config:"config",fla:"fla",eot:"font",otf:"font",fon:"font",font:"font",ttf:"font",ttc:"font",woff:"font",woff2:"font",js:"js",md:"markdown",one:"onenote",jsx:"reactjs",xfl:"xfl",file:"file",css:"css"};function Ct(t){return`https://10ui.cn/icon_ext/${sa[t]}.svg`}const ra={name:"uploadList",props:{files:{type:Array,default(){return[]}},isShowDeleteConfim:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isShowSize:{type:Boolean,default:!0},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0}},methods:{getExtension(t){if(t.lastIndexOf(".")>-1){const o=t.slice(t.lastIndexOf(".")+1).toLowerCase();return Ct[o]||Ct.file}else return Ct.file},getSize(t){return t&&!isNaN(Number(t))?t:""},parsePercentage(t){return parseInt(t,10)},handleDownload(t){t.url},handleDelete(t,o){this.isShowDeleteConfim?this.$confirm("确认删除该文件吗? ").then(()=>{this.$emit("remove",t,o)}).catch(()=>{}):this.$emit("remove",t,o)}}},ca=["src"],da={class:"cv-upload-list__item-content-action"};function ua(t,o,n,i,l,a){const s=e.resolveComponent("el-link");return e.openBlock(),e.createBlock(e.TransitionGroup,{class:"cv-upload-file-list el-upload-list el-upload-list--text",name:"el-list",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.files,(r,d)=>(e.openBlock(),e.createElementBlock("li",{key:r.uid,class:"el-upload-list__item cv-upload-list__item-content"},[e.createVNode(s,{href:r.url,underline:!1,target:"_blank"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:a.getExtension(r.name),class:"el-upload-list__item-content-name-icon"},null,8,ca),e.createElementVNode("span",null,e.toDisplayString(r.name),1)]),_:2},1032,["href"]),e.createElementVNode("div",da,[n.isShowSize?(e.openBlock(),e.createBlock(s,{key:0,underline:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.getSize(r.size)),1)]),_:2},1024)):e.createCommentVNode("",!0),n.isCanDownload?(e.openBlock(),e.createBlock(s,{key:1,underline:!1,onClick:c=>a.handleDownload(r)},{default:e.withCtx(()=>[e.createTextVNode("下载")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),!n.disabled&&n.isCanDelete?(e.openBlock(),e.createBlock(s,{key:2,underline:!1,onClick:c=>a.handleDelete(d,r),type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]))),128))]),_:1})}const ha=p(ra,[["render",ua],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]);const pa={inheritAttrs:!1,name:"cvUploadFile",mixins:[yt],components:{uploadList:ha},props:{modelValue:[String,Object,Array],fileSize:[Number,String],fileType:Array,placeholder:String,disabled:Boolean,isShowSize:{type:Boolean,default:!0},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0},isShowDeleteConfim:{type:Boolean,default:!0},isCanUploadSame:{type:Boolean,default:!0},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},limit:Number},data(){return{fileList:[]}},computed:{btnText(){return this.placeholder?this.placeholder:this.multiple?"上传文件":"上传单个文件"},showTip(){return this.isShowTip&&(this.fileType||this.fileSize)},list(){let t=1;return this.modelValue?(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).map(n=>(typeof n=="string"&&(n={name:n,url:n}),n.uid=n.uid||new Date().getTime()+t++,n)):[]}},methods:{upFileChange(t,o){this.fileList=o},upFileBefore(t){if(this.fileType){let o="";if(t.name.lastIndexOf(".")>-1&&(o=t.name.slice(t.name.lastIndexOf(".")+1)),!this.fileType.some(i=>!!(t.type.indexOf(i)>-1||o&&o.indexOf(i)>-1)))return this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`),!1}return this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`),!1):!this.isCanUploadSame&&this.list.some(n=>n.name+n.size===t.name+t.size)?(this.$message.error("此文件已上传!"),!1):!0},upFileExceed(){this.$message.error(`最多上传${this.limit}个文件`)},upFileError(t){this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upFileSuccess(t,o){this.isShowSuccessTip&&this.$message.success("上传成功"),this.upResponseFn&&(t=this.upResponseFn(t,o,this.list)),this.multiple?this.$emit("update:modelValue",[...this.list,t]):this.$emit("update:modelValue",t),this.$emit("success",t,this.list)},handleRemove(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.beforeRemove(this.list[t],this.list);o&&o.then?o.then(()=>{this.doRemove(t)},()=>{}):o!==!1&&this.doRemove(t)}},doRemove(t){if(this.$emit("remove",this.list[t],this.list),this.fileList.splice(t,1),this.multiple){const o=[...this.list];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.$emit("update:modelValue",null)}},created(){this.fileList=this.list}},ma={class:"cv-upload-file"},fa={key:0,class:"el-upload__tip"},ga={style:{color:"#f56c6c"}},_a={style:{color:"#f56c6c"}};function va(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("upload-list");return e.openBlock(),e.createElementBlock("div",ma,[n.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,class:"cv-upload-file-uploader",ref:"upload"},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,drag:!1,limit:n.limit,multiple:n.multiple,showFileList:!0,fileList:l.fileList},{"before-upload":a.upFileBefore,"on-change":a.upFileChange,"on-exceed":a.upFileExceed,"on-error":a.upFileError,"on-success":a.upFileSuccess}),{tip:e.withCtx(()=>[a.showTip?(e.openBlock(),e.createElementBlock("div",fa,[e.createTextVNode(" 请上传 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" 大小不超过 "),e.createElementVNode("b",ga,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.fileType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" 格式为 "),e.createElementVNode("b",_a,e.toDisplayString(n.fileType.join("/")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" 的文件 ")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:"el-icon-upload"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.btnText),1)]),_:1})]),_:1},16,["before-upload","on-change","on-exceed","on-error","on-success"])),e.createVNode(d,{disabled:n.disabled,files:a.list,isCanDelete:n.isCanDelete,isCanDownload:n.isCanDownload,isShowDeleteConfim:n.isShowDeleteConfim,isShowSize:n.isShowSize,onRemove:a.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","isShowSize","onRemove"])])}const ze=p(pa,[["render",va],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]);const ya={name:"cvUploadVideo",mixins:[yt],components:{},props:{modelValue:{type:String},fileSize:{type:Number,default:10},fileType:{type:Array},width:{type:Number,default:360},height:{type:Number},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},upAccept:{type:String,default:"image/*"}},data(){return{isShowVideo:!1,videoUploadPercent:0}},computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{upVideoBefore(t){let o=!1;if(Array.isArray(this.fileType)){const n=t.type.split("/");o=n[0]==="video"&&this.fileType.includes(n[1])}else o=t.type.includes("video");return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传视频大小不能超过${this.fileSize}MB哦!`),!1):!0:(this.$message.error(`${t.name}格式不正确, 请上传格式正确的视频`),!1)},upVideoProcess(t,o){this.videoUploadPercent=Number(o.percentage.toFixed(0))},upVideoSuccess(t,o){this.videoUploadPercent=0,this.isShowSuccessTip&&this.$message.success("上传成功!"),this.upResponseFn?this.$emit("update:modelValue",this.upResponseFn(t,o)):this.$emit("update:modelValue",t)},upVideoError(t,o,n){this.$message.error("上传失败, 请重试!"),this.videoUploadPercent=0,this.$emit("error",t,o,n)},doRemove(){this.$emit("delete"),this.$emit("update:modelValue",null)},handleRemove(){if(!this.beforeRemove)this.doRemove();else if(typeof this.beforeRemove=="function"){const t=this.beforeRemove(this.modelValue);t&&t.then?t.then(()=>{this.doRemove()},()=>{}):t!==!1&&this.doRemove()}},handlePlayerVideo(){this.isShowVideo=!0},handleHoverClick(){this.$emit("click")}}},ka={class:"cv-upload-video"},Ca=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),wa=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将视频拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),ba={key:0,class:"el-upload__tip",slot:"tip"},Va={style:{color:"#f56c6c"}},Sa={style:{color:"#f56c6c"}},Na={key:1,class:"vue-hover-mask"},Ba=["src"],xa=e.createElementVNode("i",{class:"el-icon-zoom-in"},null,-1),Ea=[xa],$a=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Ta=[$a],Da=["src"];function Ia(t,o,n,i,l,a){const s=e.resolveComponent("el-progress"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",ka,[n.modelValue?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,drag:!0,disabled:l.videoUploadPercent>0&&l.videoUploadPercent<100,showFileList:!1,withCredentials:t.withCredentials},{"before-upload":a.upVideoBefore,"on-error":a.upVideoError,"on-progress":a.upVideoProcess,"on-success":a.upVideoSuccess,httpRequest:t.httpRequest}),{default:e.withCtx(()=>[l.videoUploadPercent>0?(e.openBlock(),e.createBlock(s,{key:0,percentage:l.videoUploadPercent,style:{"margin-top":"20px"},type:"circle"},null,8,["percentage"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Ca,wa,a.showTip?(e.openBlock(),e.createElementBlock("div",ba,[e.createTextVNode(" 请上传 "),e.createElementVNode("span",Va," "+e.toDisplayString(this.fileType?this.fileType.join("/"):"视频")+" ",1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且文件大小不超过 "),e.createElementVNode("span",Sa,e.toDisplayString(n.fileSize),1),e.createTextVNode("  MB ")],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))]),_:1},16,["before-upload","on-error","on-progress","on-success","httpRequest"])),n.modelValue?(e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("video",{autoplay:!1,src:n.modelValue,style:e.normalizeStyle({width:n.width+"px",height:n.height?n.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,Ba),e.createElementVNode("span",{onClick:o[2]||(o[2]=(...c)=>a.handleHoverClick&&a.handleHoverClick(...c)),class:"vue-hover-mask_actions"},[e.createElementVNode("span",{onClick:o[0]||(o[0]=(...c)=>a.handlePlayerVideo&&a.handlePlayerVideo(...c)),class:"cv-upload-video_mask__item"},Ea),e.createElementVNode("span",{onClick:o[1]||(o[1]=(...c)=>a.handleRemove&&a.handleRemove(...c)),class:"cv-upload-video_mask__item"},Ta)])])):e.createCommentVNode("",!0),e.createVNode(d,{visible:l.isShowVideo,"append-to-body":""},{default:e.withCtx(()=>[l.isShowVideo?(e.openBlock(),e.createElementBlock("video",{key:0,autoplay:!0,src:n.modelValue,controls:"controls",style:{width:"100%"}}," 您的浏览器不支持视频播放 ",8,Da)):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Le=p(ya,[["render",Ia],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);Ie.install=function(t){t.component(Ie.name,Ie)};Fe.install=function(t){t.component(Fe.name,Fe)};ze.install=function(t){t.component(ze.name,ze)};Le.install=function(t){t.component(Le.name,Le)};const Fa={name:"cvTabsJump",props:{tabPosition:{type:String,default:"top"}},provide(){return{addChildComponents:t=>{this.childComponents.push(t)},clearChildClass:()=>{this.childComponents.map(t=>{t.className=null})}}},data(){return{childComponents:[]}},computed:{tabPositionClass(){return this.tabPosition=="left"?"left":this.tabPosition=="right"?"right":this.tabPosition=="bottom"?"bottom":"top"}},created(){},mounted(){}},za={class:"tabs-header"};function La(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tabs-jump",a.tabPositionClass])},[e.createElementVNode("div",za,[e.renderSlot(t.$slots,"default")])],2)}const je=p(Fa,[["render",La],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),ja={name:"cvTabPane",emits:["click"],inject:["addChildComponents","clearChildClass"],data(){return{isshow:!0,className:null}},props:{label:{type:String,default:""},current:{type:Boolean,default:!1},name:{type:String}},mounted(){this.addChildComponents(this),this.initCurrent()},methods:{initCurrent(){this.current&&this.handleClick()},handleClick(){this.clearChildClass(),this.className="active",this.$emit("click")}}},Oa={key:1};function Pa(t,o,n,i,l,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tab-pane",l.className]),onClick:o[0]||(o[0]=(...s)=>a.handleClick&&a.handleClick(...s))},[t.$slots.label?e.renderSlot(t.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",Oa,e.toDisplayString(n.label),1))],2)),[[e.vShow,l.isshow]])}const Oe=p(ja,[["render",Pa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);je.install=function(t){t.component(je.name,je)};Oe.install=function(t){t.component(Oe.name,Oe)};const Aa={name:"cvDrawCaptcha",props:{modelValue:{type:[String,Number],default:"1234"},baseCode:{type:String,default:"1234567890ABCDEFGHGKMNPQRSTUVWXY"},fontSizeMin:{type:Number,default:25},fontSizeMax:{type:Number,default:30},backgroundColorMin:{type:Number,default:255},backgroundColorMax:{type:Number,default:255},colorMin:{type:Number,default:0},colorMax:{type:Number,default:160},lineColorMin:{type:Number,default:100},lineColorMax:{type:Number,default:255},dotColorMin:{type:Number,default:0},dotColorMax:{type:Number,default:255},contentWidth:{type:Number,default:112},contentHeight:{type:Number,default:31},refreshNum:{type:Number,default:1}},data(){return{localCode:""}},watch:{modelValue(t){this.localCode=t,this.drawPic()},refreshNum(){this.refreshCode(),this.drawPic()}},mounted(){this.modelValue==""&&(this.refreshCode(),this.drawPic())},created(){this.localCode=this.modelValue},methods:{refreshCode(){this.localCode="",this.makeCode(this.baseCode,4),this.$emit("update:modelValue",this.localCode)},makeCode(t,o){for(let n=0;n<o;n++)this.localCode+=this.baseCode[this.randomNum(0,this.baseCode.length)]},randomNum(t,o){return Math.floor(Math.random()*(o-t)+t)},randomColor(t,o){let n=this.randomNum(t,o),i=this.randomNum(t,o),l=this.randomNum(t,o);return"rgb("+n+","+i+","+l+")"},drawPic(){let o=document.getElementById("cv-draw-captcha").getContext("2d");o.textBaseline="bottom",o.fillStyle=this.randomColor(this.backgroundColorMin,this.backgroundColorMax),o.fillRect(0,0,this.contentWidth,this.contentHeight);for(let n=0;n<this.localCode.length;n++)this.drawText(o,this.localCode[n],n);this.drawLine(o),this.drawDot(o)},drawText(t,o,n){t.fillStyle=this.randomColor(this.colorMin,this.colorMax),t.font=this.randomNum(this.fontSizeMin,this.fontSizeMax)+"px SimHei";let i=(n+1)*(this.contentWidth/(this.localCode.length+1)),l=this.randomNum(this.fontSizeMax,this.contentHeight-5);var a=this.randomNum(-45,45);t.translate(i,l),t.rotate(a*Math.PI/180),t.fillText(o,0,0),t.rotate(-a*Math.PI/180),t.translate(-i,-l)},drawLine(t){for(let o=0;o<5;o++)t.strokeStyle=this.randomColor(this.lineColorMin,this.lineColorMax),t.beginPath(),t.moveTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.lineTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.stroke()},drawDot(t){for(let o=0;o<80;o++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight),1,0,2*Math.PI),t.fill()}}},Ua={class:"cv-draw-captcha"},Ra=["width","height"];function Ma(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",Ua,[e.createElementVNode("canvas",{id:"cv-draw-captcha",width:n.contentWidth,height:n.contentHeight,onClick:o[0]||(o[0]=(...s)=>a.refreshCode&&a.refreshCode(...s))},null,8,Ra)])}const Pe=p(Aa,[["render",Ma],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Ha={name:"cvDrawQrcode",data(){return{}}};function qa(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",null,"二维码")}const Ae=p(Ha,[["render",qa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);Pe.install=function(t){t.component(Pe.name,Pe)};Ae.install=function(t){t.component(Ae.name,Ae)};const Wa={name:"cvTagBase",mixins:[],components:{},props:{...g.ElTag.props,modelValue:{type:Array,default:null},closable:{type:Boolean,default:!1},disableTransitions:{type:Boolean,default:!1},effect:{type:String,default:"light"},type:{type:String,default:""},color:{type:String,default:""},hit:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){},methods:{addTag(){this.localVal.push("新标签"),this.$nextTick(()=>{let t=this.localVal.length,o=this.$refs[`newTag${t-1}`][0],n=document.createRange();n.selectNodeContents(o),window.getSelection().removeAllRanges(),window.getSelection().addRange(n)})},checkTag(t){let o=this.$refs[`newTag${t}`][0].innerText.trim();o.length==0?this.localVal.pop():this.localVal[t]=o},removeTag(t){this.localVal.splice(t,1)}}},Ka={class:"cv-tag-base"},Za=["onBlur"];function Qa(t,o,n,i,l,a){const s=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",Ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localVal,(r,d)=>(e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-tag-content"},{closable:n.closable,disableTransitions:n.disableTransitions,effect:n.effect,type:n.type,color:n.color,hit:n.hit,size:t.size},{onClose:c=>a.removeTag(d),key:d}),{default:e.withCtx(()=>[e.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${d}`,onBlur:c=>a.checkTag(d)},e.toDisplayString(r),41,Za)]),_:2},1040,["onClose"]))),128)),e.createElementVNode("i",{class:"el-icon-circle-plus-outline",onClick:o[0]||(o[0]=r=>a.addTag())})])}const Ue=p(Wa,[["render",Qa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Ue.install=function(t){t.component(Ue.name,Ue)};const Ga={name:"cvTransferTable",props:{modelValue:{type:[Array],default(){return[]}},showQuery:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},paginationCallBack:{type:Function,default:function(){return new Promise((t,o)=>{try{t({total:0,data:null})}catch{o()}})}},titleTexts:{type:Array,default(){return["待选项","已选项"]}},buttonTexts:{type:Array,default(){return[]}},queryTexts:{type:Array,default(){return["查询","筛选"]}},leftColumns:{type:Array,default(){return[]}},rightColumns:{type:Array,default(){}},minHeight:{type:String,default:"300px"},maxHeight:{type:String,default:"500px"},tableRowKey:{type:Function,default(t){return t&&t&&t.id}}},data(){return{leftTableData:[],rightTableData:[],pageIndex:1,pageSize:20,totalSize:0,leftSelection:[],rightSelection:[],leftQueryCondition:{},rightQueryCondition:{},rightConditionTemp:void 0}},watch:{modelValue(t){this.rightTableData=t}},created(){this.rightTableData=this.modelValue,this.handlePaginationCallBack()},computed:{hasButtonTexts(){return this.buttonTexts.length===2},buttonClasses(){return["transfer-button",{"is-with-texts":this.hasButtonTexts}]},disabledLeftButton(){return!this.leftSelection.some(t=>!this.rightTableData.some(o=>this.checkObjectIsEqual(t,o)))},calcRightTableData(){if(this.showQuery&&this.rightConditionTemp){const t=Object.keys(this.rightConditionTemp);return this.rightTableData.filter(o=>t.some(n=>{const i=o[n],l=this.rightConditionTemp[n].trim();return i?String(i).indexOf(l)>-1:!0}))}return this.rightTableData}},methods:{handleLeftSelectionChange(t){this.leftSelection=t},handleRightSelectionChange(t){this.rightSelection=t},handleLeftRowClick(t){this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))||this.$refs.leftTable.toggleRowSelection(t)},handleRightRowClick(t){this.$refs.rightTable.toggleRowSelection(t)},handleSizeChange(t){this.pageSize=t,this.handlePaginationCallBack()},handleCurrentChange(t){this.pageIndex=t,this.handlePaginationCallBack()},handlePaginationCallBack(){if(this.showPagination&&this.paginationCallBack){const t={pageIndex:this.pageIndex,pageSize:this.pageSize,...this.leftQueryCondition};this.paginationCallBack.call(null,t).then(o=>{o&&Array.isArray(o.data)&&(this.leftTableData=o.data,this.totalSize=o.total),this.$nextTick(()=>{this.leftTableData.forEach(n=>{const i=this.rightTableData.some(l=>this.checkObjectIsEqual(l,n));this.$refs.leftTable.toggleRowSelection(n,i)})})})}},handleRowStyle({row:t}){return this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))?{color:"blue"}:{}},handleSelectable(t){return!this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))},addToRight(){for(const t of this.leftSelection)this.rightTableData.some(n=>this.checkObjectIsEqual(n,t))||this.rightTableData.push(t);this.$emit("update:modelValue",this.rightTableData)},addToLeft(){this.rightSelection.forEach(t=>{const o=this.rightTableData.findIndex(n=>this.checkObjectIsEqual(n,t));if(o!==-1){this.rightTableData.splice(o,1);const n=this.leftTableData.find(i=>this.checkObjectIsEqual(i,t));n&&this.$refs.leftTable.toggleRowSelection(n,!1)}}),this.$emit("update:modelValue",this.rightTableData)},onLeftQuerySubmit(){this.handlePaginationCallBack()},onRightQuerySubmit(){this.rightConditionTemp=JSON.parse(JSON.stringify(this.rightQueryCondition))},checkObjectIsEqual(t,o){return this.tableRowKey(t)===this.tableRowKey(o)},clear(){this.rightTableData=[],this.$refs.leftTable.clearSelection();for(const t in this.leftQueryCondition)this.leftQueryCondition[t]=void 0;for(const t in this.rightQueryCondition)this.rightQueryCondition[t]=void 0;this.pageIndex=1,this.handlePaginationCallBack()}}},Ot=t=>(e.pushScopeId("data-v-d01ca678"),t=t(),e.popScopeId(),t),Ja={class:"cv-transfer-table"},Xa={class:"transfer-panel"},Ya={class:"transfer-panel-header"},ei={key:0},ti={style:{padding:"5px"}},oi={class:"transfer-buttons"},ni={key:0,class:"button-text"},li=Ot(()=>e.createElementVNode("i",{class:"el-icon-arrow-right"},null,-1)),ai=Ot(()=>e.createElementVNode("i",{class:"el-icon-arrow-left"},null,-1)),ii={key:0,class:"button-text"},si={class:"transfer-panel"},ri={class:"transfer-panel-header"},ci={key:0},di={style:{padding:"5px"}};function ui(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-form"),c=e.resolveComponent("el-table-column"),u=e.resolveComponent("el-table"),m=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock("div",Ja,[e.createElementVNode("div",Xa,[e.createElementVNode("p",Ya,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[0]),1),e.createElementVNode("span",null,e.toDisplayString(l.leftSelection.length)+"/"+e.toDisplayString(l.leftTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",ei,[e.createVNode(d,{inline:!0,model:l.leftQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"leftCondition",{scope:l.leftQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[0]||(o[0]=h=>a.onLeftQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[0]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"leftTable","max-height":n.maxHeight,height:n.minHeight,data:l.leftTableData,"row-key":n.tableRowKey,"row-style":a.handleRowStyle,onRowClick:a.handleLeftRowClick,onSelectionChange:a.handleLeftSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection",selectable:a.handleSelectable},null,8,["selectable"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.leftColumns,h=>(e.openBlock(),e.createBlock(c,{prop:h.id,key:h.id,label:h.label,width:h.width},{default:e.withCtx(f=>[e.renderSlot(t.$slots,"default",{scope:{row:f.row,col:h}},()=>[e.createElementVNode("span",null,e.toDisplayString(f.row[h.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","row-style","onRowClick","onSelectionChange"]),e.createElementVNode("div",ti,[n.showPagination?(e.openBlock(),e.createBlock(m,{key:0,onSizeChange:a.handleSizeChange,onCurrentChange:a.handleCurrentChange,"current-page":l.pageIndex,"page-sizes":[10,20,50,100],"page-size":l.pageSize,"pager-count":5,total:l.totalSize,layout:"total, sizes, prev, pager, next"},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",oi,[e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:a.disabledLeftButton,onClick:a.addToRight},{default:e.withCtx(()=>[n.buttonTexts[0]!==void 0?(e.openBlock(),e.createElementBlock("span",ni,e.toDisplayString(n.buttonTexts[0]),1)):e.createCommentVNode("",!0),li]),_:1},8,["class","disabled","onClick"]),e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:l.rightSelection.length===0,onClick:a.addToLeft},{default:e.withCtx(()=>[ai,n.buttonTexts[1]!==void 0?(e.openBlock(),e.createElementBlock("span",ii,e.toDisplayString(n.buttonTexts[1]),1)):e.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),e.createElementVNode("div",si,[e.createElementVNode("p",ri,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[1]),1),e.createElementVNode("span",null,e.toDisplayString(l.rightSelection.length)+"/"+e.toDisplayString(l.rightTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",ci,[e.createVNode(d,{inline:!0,model:l.rightQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"rightCondition",{scope:l.rightQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[1]||(o[1]=h=>a.onRightQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[1]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"rightTable","max-height":n.maxHeight,height:n.minHeight,data:a.calcRightTableData,"row-key":n.tableRowKey,onRowClick:a.handleRightRowClick,onSelectionChange:a.handleRightSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rightColumns||n.leftColumns,h=>(e.openBlock(),e.createBlock(c,{prop:h.id,key:h.id,label:h.label,width:h.width},{default:e.withCtx(f=>[e.renderSlot(t.$slots,"default",{scope:{row:f.row,col:h}},()=>[e.createElementVNode("span",null,e.toDisplayString(f.row[h.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","onRowClick","onSelectionChange"]),e.createElementVNode("div",di,[n.showPagination?(e.openBlock(),e.createBlock(m,{key:0,total:l.rightTableData.length,layout:"total"},null,8,["total"])):e.createCommentVNode("",!0)])])])}const Re=p(Ga,[["render",ui],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);Re.install=function(t){t.component(Re.name,Re)};const Nt={props:{...g.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({background:"#f8f8f9",color:"#606266"})}},data(){return{localTbLoading:!1,localTbData:[]}},watch:{modelValue(t){this.localTbData=t},localTbData(t){this.localTbData=t,this.$emit("update:modelValue",t)}},created(){this.localTbData=this.modelValue}},hi={methods:{handleCurrentChange(t){this.page=t,this.getData()},handleSizeChange(t){this.page_size=t,this.getData()}}};const pi={name:"cvTableBase",mixins:[Nt,hi],provide(){return{page:this.page,page_size:this.tableSetting.page_size||10}},props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}},tablePagin:{type:Object,default(){return{}}},dataParse:{type:[Function],default:()=>null}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,searchData:{},tableSetting:{},defResponse:{},tableConfDef:{url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"},page_sizes:[10,20,30,50,100,200],page:1},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.initTableConfAll(),this.refresh()}},updated(){},created(){},mounted(){},methods:{_getPageCurr(){return this.page},_getPageSize(){return this.tableSetting.page_size},getData(){this.localTbLoading=!0;const t=this.tableSetting;let o={...t.where};o[t.request.pageName]=this.page,o[t.request.limitName]=this.tableSetting.page_size,o=Object.assign(o,this.searchData),this.tableSetting.apiFunc&&typeof this.tableSetting.apiFunc=="function"?(this.localTbData=[],this.tableSetting.apiFunc(o).then(n=>{this.page=o[t.request.pageName],this.$nextTick(()=>{this.localTbLoading=!1});let i=this.sortOutData(n);if(i.status!=t.response.statusCode){g.ElMessage({message:i.msg,type:"error",duration:1300});return}if(i.data.length===0){g.ElMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let l=i[t.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"?this.localTbData=this.dataParse.call(null,l):this.localTbData=l,this.localTbTotal=i[t.response.countName]||0}).catch(n=>{this.localTbLoading=!1,this.$nextTick(()=>{this.localTbLoading=!1})})):(this.localTbData.length>0&&(this.localTbTotal=this.localTbData.length),this.localTbLoading=!1,this.$nextTick(()=>{this.localTbLoading=!1}))},handleSelectionChange(t){this.$emit("selection-change",t)},initTableConfAll(){let t={};const o=this.tableConfDef,n=this.tableConfig;Object.assign(t,o,n),t.page_size=t.page_sizes[0],this.page=t.page||1,Object.assign(t.where,this.searchData),this.tableSetting=t},sortOutData(t){let o=this.tableSetting.response,n={},i=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],i=t[o.dataName];for(let a in i)l[a]=i[a];return n.data=l,n},searchSubmit(t){if(this.searchData=t||{},this.tableSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}},beforeCreate(){},created(){this.initTableConfAll(),this.getData()},beforeMount(){},mounted(){},beforeUpdate(){},updated(){},beforeDestroy(){},destroyed(){}},mi={class:"cv-table-list"},fi={key:0,class:"cv-tablie-list-page page"};function gi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveComponent("cv-icons"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-pagination"),u=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",mi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,style:{width:"100%"},onSelectionChange:a.handleSelectionChange}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,l.localTbLoading]]),n.showPagebreak?e.withDirectives((e.openBlock(),e.createElementBlock("div",fi,[e.createVNode(d,{onClick:a.refresh,style:{float:"left",margin:"0 10px 0 0",padding:"5px 10px"}},{default:e.withCtx(()=>[e.createVNode(r,{type:"refresh",size:"14"})]),_:1},8,["onClick"]),e.createVNode(c,{background:"",onSizeChange:t.handleSizeChange,onCurrentChange:t.handleCurrentChange,"current-page":l.page,"pager-count":l.pager_count,"page-sizes":l.tableSetting.page_sizes,"page-size":l.tableSetting.page_size,layout:"total, sizes, prev, pager, next, jumper",total:l.localTbTotal},null,8,["onSizeChange","onCurrentChange","current-page","pager-count","page-sizes","page-size","total"])],512)),[[e.vShow,l.localTbLoading===!1]]):e.createCommentVNode("",!0)])}const Me=p(pi,[["render",gi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]);const _i={name:"cvTableTree",mixins:[Nt],provide(){return{page:this.page,page_size:this.tableSetting.page_size||10}},props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,searchData:{},tableSetting:{},tableConfDef:{url:null,apiFunc:null,mockData:null,where:{},tablePrimary:"",childName:"children",response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"}},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.refresh()}},updated(){},created(){},mounted(){},methods:{getData(){this.localTbLoading=!0;let t=this.tableSetting,o={...t.where};o=Object.assign(o,this.searchData),this.tableSetting.apiFunc&&typeof this.tableSetting.apiFunc=="function"?(this.localTbData=[],this.tableSetting.apiFunc(o).then(n=>{this.$nextTick(()=>{this.localTbLoading=!1});let i=this.sortOutData(n);if(i.status==t.response.statusCode){if(i.data.length===0){g.ElMessage({message:"没有更多数据了",type:"warning",duration:1300});return}this.localTbData=i[t.response.dataName],g.ElMessage({message:i.msg,type:"success",duration:1300})}else g.ElMessage({message:i.msg,type:"error",duration:1300})}).catch(n=>{this.localTbLoading=!1})):(this.localTbData.length>0&&(this.localTbTotal=this.localTbData.length),this.localTbLoading=!1)},handleSelectionChange(t){this.$emit("selection-change",t)},initTableConfAll(){let t={};const o=this.tableConfDef,n=this.tableConfig;Object.assign(t,o,n),Object.assign(t.where,this.searchData),this.tableSetting=t},sortOutData(t){let o=this.tableSetting.response,n={},i=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],i=t[o.dataName];for(let a in i)l[a]=i[a];return n.data=l,n},searchSubmit(t){if(this.searchData=t||{},this.tableSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}},beforeCreate(){},created(){this.initTableConfAll(),this.getData()},beforeMount(){},mounted(){},beforeUpdate(){},updated(){},beforeDestroy(){},destroyed(){}},vi={class:"cv-table-tree"};function yi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",vi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,style:{width:"100%"},onSelectionChange:a.handleSelectionChange,"row-key":l.tableSetting.tablePrimary,"tree-props":{children:l.tableSetting.childName,hasChildren:"hasChildren"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[r,l.localTbLoading]])])}const He=p(_i,[["render",yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]);const ki={name:"cvTableEditor",mixins:[Nt],provide(){return{page:0,page_size:10}},props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,mergeRules:{},apiFunc:null,tableSetting:{},tableConfDef:{apiFunc:null,apiMockData:null,apiParam:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.tableSetting=Object.assign({},this.tableConfDef,this.tableConfig)},mounted(){},methods:{cell_click(t,o,n,i){switch(this.cell_click_index=t.index,this.cell_click_label=o.label,o.label){case"taskid":this.cell_click_index=t.index,this.cell_click_label=o.label;break;case"taskname":this.cell_click_index=t.index,this.cell_click_label=o.label;break;default:return}},handleChangeTData(t){}}},Ci={class:"cv-table-editor"};function wi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ci,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,"row-class-name":"cv-tbed-tr"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data"])),[[r,l.localTbLoading]])])}const qe=p(ki,[["render",wi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),bi={name:"cvTbColumnIndex",inject:{page:{default:1},page_size:{default:10}},props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:50},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(t){return this.continuity&&this.page&&this.page_size?t+1+(this.page-1)*this.page_size:t+1}}};function Vi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"index",index:a.indexMethod}),null,16,["index"])}const We=p(bi,[["render",Vi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),Si={name:"cvTbColumnCheck",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:[String],default:"center"},width:{type:[String,Number],default:55}},data(){return{}},created(){}};function Ni(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"selection"}),null,16)}const Ke=p(Si,[["render",Ni],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-check.vue"]]),Bi={name:"cvTbColumnText",props:{...g.ElTableColumn.props},data(){return{}},created(){},methods:{getContentText(t){let o=t.row[this.prop];return this.formatter&&(o=this.formatter(t.row,t.column)),o}}},xi={style:{display:"contents"}};function Ei(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("div",xi,e.toDisplayString(r.row[t.prop]),1)]),_:1},16)}const Ze=p(Bi,[["render",Ei],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]);const $i={name:"cvTbColumnImg",props:{...g.ElTableColumn.props,imgWidth:{type:[String,Number],default:null},imgHeight:{type:[String,Number],default:null}},data(){return{localImgWidth:"50px",localImgHeight:"50px",localImgArr:[],localImgOne:""}},created(){this.imgWidth&&(this.localImgWidth=this.imgWidth.indexOf("px")!==-1?this.imgWidth:this.imgWidth+"px"),this.imgHeight&&(this.localImgHeight=this.imgHeight.indexOf("px")!==-1?this.imgHeight:this.imgHeight+"px")},methods:{handleImgOne(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o[0];if(Object.prototype.toString.call(o)==="[object String]")return o}},handleImgArr(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o;if(Object.prototype.toString.call(o)==="[object String]")return[o]}},handleImgLeng(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o.length;if(Object.prototype.toString.call(o)==="[object String]")return 1}else return 0}}},Ti=e.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[e.createTextVNode(" 暂无 "),e.createElementVNode("br"),e.createTextVNode(" 图片 ")],-1),Di={key:0,class:"cv-table-column-img-mark"},Ii={class:"cv-table-column-img-text"};function Fi(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(r,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(d=>[e.createElementVNode("div",{class:"cv-table-column-img-box",style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight})},[e.createVNode(s,{style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight}),fit:"scale-down",lazy:"",src:a.handleImgOne(d.row),"preview-src-list":a.handleImgArr(d.row)},{default:e.withCtx(()=>[Ti]),_:2},1032,["style","src","preview-src-list"]),a.handleImgLeng(d.row)>1?(e.openBlock(),e.createElementBlock("p",Di,[e.createElementVNode("span",Ii,e.toDisplayString(a.handleImgLeng(d.row))+"张",1)])):e.createCommentVNode("",!0)],4)]),_:1},16)}const Qe=p($i,[["render",Fi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),zi={name:"cvTbColumnOpt",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Li(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Ge=p(zi,[["render",Li],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),ji={name:"cvTbColumnBase",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function Oi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Je=p(ji,[["render",Oi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Pi={name:"cvTbColumnExpand",props:{...g.ElTableColumn.props},data(){return{}},created(){}};function Ai(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"expand"}),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,props:r})))]),_:3},16)}const Xe=p(Pi,[["render",Ai],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),Ui={name:"cvTbColumnEnum",props:{...g.ElTableColumn.props,dataLists:{type:[Object,Array],default:()=>({})}},data(){return{}},created(){},methods:{dealTypeEnum(t){let o=Object.keys(this.dataLists);return t[this.prop]?this.dataLists[t[this.prop]]||"":this.dataLists[o[0]]||""}}};function Ri(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("span",null,e.toDisplayString(a.dealTypeEnum(r.row)),1)]),_:1},16)}const Ye=p(Ui,[["render",Ri],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]);const Mi={name:"cvTbEditSearch",props:{...g.ElTableColumn.props,modelValue:{type:[String],default:""},align:{type:[String],default:"left"}},data(){return{isEditIndex:null,localVal:"",autocompleteAttr:{debounce:0},searchSett:{searchFunc:null,searchParam:{},searchMockData:null,searchField:{}},searchResList:[],searchCurrClass:"",searchCurrTbIndex:0,searchIsSelect:!1}},watch:{modelValue(t){},localVal(t){this.$emit("update:modelValue",t)}},directives:{edfocus:{mounted:t=>{}}},created(){},methods:{searchEdit(t,o){this.isEditIndex=o,this.$nextTick(()=>{this.$refs[`cv-tbce-autocomplete${o}`].focus()})},searchSave(t,o){this.isEditIndex=null},searchSelect(t,o,n){this.searchIsSelect=!0,this.localTableData[n]=Object.assign(this.localTableData[n],t),this.localTableData[n].row_num=1,t.row_attr?this.localTableData[n].row_name=t.row_name+`<br><span class="cv-tbce-showtext-attr">[ ${t.row_attr} ]</span>`:this.localTableData[n].row_name=t.row_name},searchFocus(t,o){this.searchCurrClass="cvtegac"+t,this.searchCurrTbIndex=t},searchBlur(t,o){this.searchIsSelect||(this.isEditIndex=null)},searchQuery(t,o){this.searchIsSelect=!1,this.searchResList=[];const n=this.searchSett;if(n.searchMockData!=null&&n.searchMockData){if(!(typeof n.searchMockData!="Array"&&typeof n.searchMockData!="object")){const i=this.sortOutData(n.searchMockData);this.tableData=i,this.$message({message:i.msg||"",type:"warning",duration:1300})}this.$nextTick(()=>{this.tableLoading=!1})}else n.searchFunc&&typeof n.searchFunc=="function"&&n.searchFunc({page:1,pagesize:20,keyword:t,...n.searchParam}).then(i=>{this.searchResList=[...i.data],this.searchParseData(t,o)})},searchParseData(t,o){var n=[],i=[];const l=this.searchSett;if(this.searchResList.length>0){for(let a in this.searchResList){let s=this.searchResList[a];const r=l.searchField.row_price;s.row_price=s[r];const d=l.searchField.row_stock;s.row_stock=s[d];const c=l.searchField.row_attr;s.row_attr=s[c];const u=l.searchField.row_name;s.row_name=s[u];const m=l.searchField.row_unit;s.row_unit=s[m];const h=l.searchField.row_id;s.row_id=s[h],s.value=s.row_name,i.push(s)}n=i}clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(n)},600)},inputSearchFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},searchIconClick(){this.isEditIndex=null}}},Hi={class:"name"},qi={class:"addr"},Wi={class:"addr"},Ki={class:"droplist-item"},Zi={class:"name"},Qi={key:0,class:"attr"},Gi={class:"price"},Ji={class:"rest"},Xi=["onClick"];function Yi(t,o,n,i,l,a){const s=e.resolveComponent("CircleClose"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-autocomplete"),c=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(c,e.mergeProps(t.$props,{"class-name":"cv-table-editor-search-column"}),{default:e.withCtx(u=>[l.isEditIndex==u.$index?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,ref:`cv-tbce-autocomplete${u.$index}`},l.autocompleteAttr,{modelValue:u.row[t.prop],"onUpdate:modelValue":m=>u.row[t.prop]=m,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":a.searchQuery,onSelect:m=>a.searchSelect(m,u.row,u.$index),onFocus:m=>a.searchFocus(u.$index,m),onBlur:m=>a.searchBlur(u.row,u.$index)}),{suffix:e.withCtx(()=>[e.createVNode(r,{onClick:m=>a.searchIconClick(u.row,u.$index)},{default:e.withCtx(()=>[e.createVNode(s)]),_:2},1032,["onClick"])]),default:e.withCtx(({item:m})=>[e.renderSlot(t.$slots,"default",{item:m},()=>[e.createElementVNode("div",Hi,e.toDisplayString(m.row_name),1),e.createElementVNode("span",qi,"价格:"+e.toDisplayString(m.row_price),1),e.createElementVNode("span",Wi,e.toDisplayString(m.row_rest),1),e.createElementVNode("div",Ki,[e.createElementVNode("div",Zi,[e.createTextVNode(e.toDisplayString(m.row_name)+" ",1),m.row_attr?(e.openBlock(),e.createElementBlock("div",Qi,"[ "+e.toDisplayString(m.row_attr)+"]",1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Gi,"¥ "+e.toDisplayString(m.row_price),1),e.createElementVNode("div",Ji,e.toDisplayString(m.attr_stock),1)])])]),_:2},1040,["modelValue","onUpdate:modelValue","popper-class","fetch-suggestions","onSelect","onFocus","onBlur"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:m=>a.searchEdit(u.row,u.$index)},e.toDisplayString(u.row[t.prop]),9,Xi))]),_:3},16)}const et=p(Mi,[["render",Yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),es={name:"cvTbEditOpt",props:{tableData:{type:[Array],default:()=>[]},...g.ElTableColumn.props,label:{type:[String],default:"操作"},align:{type:[String],default:"center"},width:{type:[String],default:"100"},fixed:{type:[String],default:"left"},btnAdd:{type:[Boolean,String],default:!0},btnDel:{type:[Boolean,String],default:!0}},data(){return{localTbData:[]}},watch:{tableData(t){this.localTbData=t}},created(){this.localTbData=this.tableData},methods:{optHdDelete(t,o){this.localTbData.splice(t,1),this.localTbData.length<1&&this.optHdAdd()},optHdAdd(){this.localTbData.push({})}}};function ts(t,o,n,i,l,a){const s=e.resolveComponent("Plus"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("Close"),u=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(u,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(m=>[n.btnAdd?(e.openBlock(),e.createBlock(d,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:o[0]||(o[0]=h=>a.optHdAdd())},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s)]),_:1})]),_:1})):e.createCommentVNode("",!0),n.btnDel?(e.openBlock(),e.createBlock(d,{key:1,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:h=>a.optHdDelete(m.$index,m.row)},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c)]),_:1})]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1},16)}const tt=p(es,[["render",ts],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]);const os={name:"cvTbEditText",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""},editAttr:{type:[Object],default:()=>({placeholder:"请输入"})},editClearable:{type:[Boolean],default:!0},editStyle:{type:[Object],default:()=>({"--el-input-border":0,"--el-input-border-radius":0,"--el-input-height":"36px"})},editClass:{type:[Object],default:()=>({})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}},toFixed:{type:[String,Number],default:""}},data(){return{currValue:"",isEditIndex:null,isErrIndex:[]}},directives:{edfocus:{mounted:t=>{t.querySelector("input").focus()},inserted:function(t){t.querySelector("input").focus()}}},created(){},methods:{textIsError(t){return this.isErrIndex&&this.isErrIndex[t]&&this.isErrIndex[t][this.prop]},textHdEdit(t,o){this.isEditIndex=o},textHdClear(t,o){},textHdSave(t,o){this.isEditIndex=null;let n=t[this.prop];if(this.toFixed!=""){let i=parseInt(this.toFixed);isNaN(n)||(t[this.prop]=parseFloat(n).toFixed(i))}else t[this.prop]=n}},render22(t,o){let n=this;return t("el-table-column",{props:{...this.$props},scopedSlots:{default:i=>{this.currValue=i.row[this.prop];let l=i.$index;return this.isEditIndex==l?t("el-input",{props:{style:this.editStyle,class:this.editClass},domProps:{value:this.currValue},props:{placeholder:this.placeholder,value:this.param},nativeOn:{keyup:a=>{a.keyCode===13&&(this.$emit("update:param",a.target.value),this.callback&&this.callback())}},on:{blur:a=>{this.$emit("update:param",a.target.value),this.callback&&this.callback()},input:function(a){n.currValue=a||a.target.value},blur:a=>{this.isEditIndex=null,n.currValue=a||a.target.value}}},this.currValue):t("span",{class:{showtext:!0},on:{click:()=>{this.isEditIndex=l}}},this.currValue)}}})}},ns=["onClick"];function ls(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-table-column"),d=e.resolveDirective("edfocus");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{"class-name":"cv-table-editor-text-column"}),{default:e.withCtx(c=>[l.isEditIndex==c.$index&&!n.editAttr.disabled?e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps({key:0},n.editAttr,{clearable:n.editClearable,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u,onBlur:e.withModifiers(u=>a.textHdSave(c.row,c.$index),["prevent"]),onClear:u=>a.textHdClear(c.row,c.$index)}),null,16,["clearable","style","class","modelValue","onUpdate:modelValue","onBlur","onClear"])),[[d]]):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:u=>a.textHdEdit(c.row,c.$index)},e.toDisplayString(c.row[t.prop]),9,ns))]),_:1},16)}const ot=p(os,[["render",ls],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),as={name:"cvTbEditRadio",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function is(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const nt=p(as,[["render",is],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ss={name:"cvTbEditCheckbox",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{localVal:[]}},created(){},methods:{handleParseValue(t){this.localVal=[]}}};function rs(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[c.row[t.prop]?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:1},16)}const lt=p(ss,[["render",rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),cs={name:"cvTbEditSelect",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function ds(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const at=p(cs,[["render",ds],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);Me.install=function(t){t.component(Me.name,Me)};He.install=function(t){t.component(He.name,He)};qe.install=function(t){t.component(qe.name,qe)};We.install=function(t){t.component(We.name,We)};Ke.install=function(t){t.component(Ke.name,Ke)};Ze.install=function(t){t.component(Ze.name,Ze)};Qe.install=function(t){t.component(Qe.name,Qe)};Ge.install=function(t){t.component(Ge.name,Ge)};Je.install=function(t){t.component(Je.name,Je)};Xe.install=function(t){t.component(Xe.name,Xe)};Ye.install=function(t){t.component(Ye.name,Ye)};et.install=function(t){t.component(et.name,et)};tt.install=function(t){t.component(tt.name,tt)};ot.install=function(t){t.component(ot.name,ot)};nt.install=function(t){t.component(nt.name,nt)};lt.install=function(t){t.component(lt.name,lt)};at.install=function(t){t.component(at.name,at)};function us(t){return typeof Array.isArray=="function"?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}function hs(t){return Object.prototype.toString.call(t)==="[object Object]"}function ps(t){return!isNaN(Number(t))}function L(t){return us(t)?t.length===0:hs(t)?Object.keys(t).length===0:t===""||t===void 0||t===null}const O=(t,o)=>L(t)?o:t,ms=(t,o=200,n=!1)=>{let i=!1,l=null;const a=(...s)=>new Promise((r,d)=>{if(l&&clearTimeout(l),n&&!i){const c=t.apply(globalThis,s);r(c),i=!0}else l=setTimeout(()=>{const c=t.apply(globalThis,s);r(c),i=!1,l=null},o)});return a.cancel=()=>{l&&clearTimeout(l),i=!1},a};function F(t){return t==null?"":String(t)}function fs(t){let o=["png","jpg","jpeg","gif","webp","svg"],n=t.lastIndexOf("."),i=t.substring(n+1);return o.indexOf(i.toLowerCase())!=-1}function gs(t){return window.URL?window.URL.createObjectURL(t):window.webkitURL?window.webkitURL.createObjectURL(t):""}function _s(t){var o=new Date,n=new Date(t),i=o-n,l=Math.floor(i/1e3),a=Math.floor(l/60),s=Math.floor(a/60);if(a<1)var r=l+"秒前";else if(s<1)var r=a+"分钟前";else if(s<24)var r=s+"小时前";else var r=n.toLocaleString();return r}const vs={},ys={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ks=e.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),Cs=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.98095 5.49307L8.22012 3.25389C8.28521 3.18881 8.39074 3.18881 8.45582 3.25389L8.69153 3.4896C8.75661 3.55468 8.75661 3.66021 8.69153 3.7253L6.45235 5.96447L8.69153 8.20364C8.75661 8.26873 8.75661 8.37426 8.69153 8.43934L8.45582 8.67505C8.39074 8.74013 8.28521 8.74013 8.22012 8.67505L5.98095 6.43587L3.74178 8.67505C3.67669 8.74013 3.57116 8.74013 3.50608 8.67505L3.27037 8.43934C3.20529 8.37426 3.20529 8.26873 3.27037 8.20364L5.50954 5.96447L3.27037 3.7253C3.20529 3.66021 3.20529 3.55468 3.27037 3.4896L3.50608 3.25389C3.57116 3.18881 3.67669 3.18881 3.74178 3.25389L5.98095 5.49307Z",fill:"white"},null,-1),ws=[ks,Cs];function bs(t,o){return e.openBlock(),e.createElementBlock("svg",ys,ws)}const Vs=p(vs,[["render",bs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),Ss={},Ns={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Bs=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"},null,-1),xs=[Bs];function Es(t,o){return e.openBlock(),e.createElementBlock("svg",Ns,xs)}const $s=p(Ss,[["render",Es],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),Ts={},Ds={class:"comment-common-icon"},Is=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{d:"M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z"})],-1),Fs=[Is];function zs(t,o){return e.openBlock(),e.createElementBlock("i",Ds,Fs)}const Ls=p(Ts,[["render",zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),js={},Os={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Ps=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"},null,-1),As=[Ps];function Us(t,o){return e.openBlock(),e.createElementBlock("svg",Os,As)}const Rs=p(js,[["render",Us],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Ms={},Hs={class:"comment-common-icon"},qs=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M586.624 234.624a74.624 74.624 0 1 1-149.184 0 74.624 74.624 0 0 1 149.12 0z m0 554.624a74.624 74.624 0 1 1-149.248 0 74.624 74.624 0 0 1 149.248 0zM512 586.624a74.624 74.624 0 1 0 0-149.248 74.624 74.624 0 0 0 0 149.248z",fill:"currentColor"})],-1),Ws=[qs];function Ks(t,o){return e.openBlock(),e.createElementBlock("i",Hs,Ws)}const Zs=p(Ms,[["render",Ks],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),Qs={},Gs={class:"comment-common-icon",style:{color:"#1e80ff"}},Js=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1534"},[e.createElementVNode("path",{d:"M668.928 166.912c-20.48-53.504-47.9744-84.7872-82.0224-94.9248-33.5872-10.0352-61.952 4.096-76.032 13.9776-27.5456 19.3536-41.216 49.664-50.0224 74.1376-3.3792 9.3184-6.4512 19.0976-9.216 27.9552l-2.6624 8.3968a227.8912 227.8912 0 0 1-10.3936 27.9552c-25.344 52.9408-47.4112 84.5312-66.7648 104.96-18.944 19.968-36.4544 30.464-55.1936 39.7824a45.3632 45.3632 0 0 0-25.088 40.5504l-0.1024 480.7168c0 24.9344 20.2752 45.2096 45.2096 45.2096h423.0656c21.7088 0 38.144-6.912 50.0224-16.9984a72.192 72.192 0 0 0 14.4896-16.896l0.2048-0.2048 0.0512-0.1536 0.8192-1.024 1.2288-1.8944c39.424-63.7952 66.7648-114.688 88.2176-175.616 24.4224-69.4784 36.8128-129.6896 42.0352-176.64 5.12-45.6704 3.7888-81.664-1.5872-101.376a77.9776 77.9776 0 0 0-45.568-52.3264 116.5824 116.5824 0 0 0-45.4144-8.6016l-192.8192-2.6624c28.1088-115.0976 10.0864-181.6064-2.4576-214.3744zM64.0512 413.9008a45.2096 45.2096 0 0 1 45.1584-47.36H176.128c24.9344 0 45.2096 20.2752 45.2096 45.2096v480.6144a45.2096 45.2096 0 0 1-45.2096 45.2096h-44.288a45.2096 45.2096 0 0 1-45.1584-43.0592L64 413.952z","p-id":"1535"})],-1),Xs=[Js];function Ys(t,o){return e.openBlock(),e.createElementBlock("i",Gs,Xs)}const er=p(Qs,[["render",Ys],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),tr={},or={class:"comment-common-icon"},nr=e.createElementVNode("svg",{t:"1650360973068",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1168",width:"200",height:"200"},[e.createElementVNode("path",{d:"M547.968 138.88c6.656-4.672 14.08-6.976 20.48-5.056 6.08 1.792 22.848 10.752 40.192 56.128 8.576 22.4 27.264 81.536-5.632 197.504a45.44 45.44 0 0 0 42.88 57.984l217.6 3.008h0.448a53.12 53.12 0 0 1 20.096 3.328 16.256 16.256 0 0 1 5.568 3.648 14.464 14.464 0 0 1 3.264 6.4c2.176 7.808 4.608 33.984-0.256 77.248-4.672 41.984-15.936 97.408-38.784 162.368-19.136 54.336-43.52 100.48-81.472 161.792a56.384 56.384 0 0 0-1.664 2.496l-0.128 0.128-1.408 2.112a7.872 7.872 0 0 1-1.28 1.472 3.84 3.84 0 0 1-1.28 0.64 20.48 20.48 0 0 1-6.848 0.96H356.032V421.44c19.712-10.624 40.704-24.576 62.592-47.616 25.472-26.88 51.008-64.768 78.208-121.6 5.568-11.584 9.856-24.384 13.632-36.032l3.072-9.856c2.688-8.448 5.184-16.384 8.064-24.32 8.064-22.4 16.128-36.032 26.368-43.136z m120.96 27.968c-20.48-53.44-48-84.736-81.984-94.912-33.6-9.984-61.952 4.16-76.032 14.08-27.584 19.264-41.28 49.6-50.048 74.048-3.392 9.344-6.464 19.2-9.216 27.968l-2.688 8.448a227.84 227.84 0 0 1-10.432 27.904c-25.28 52.928-47.36 84.544-66.752 104.96-18.944 19.968-36.48 30.464-55.168 39.808a45.376 45.376 0 0 0-25.088 40.576l-0.064 480.64c0 24.96 20.224 45.248 45.184 45.248h423.04c21.76 0 38.144-6.912 50.048-16.96a71.808 71.808 0 0 0 14.528-16.896l0.128-0.256 0.128-0.128 0.832-0.96 1.152-1.92c39.424-63.872 66.816-114.688 88.256-175.68a810.24 810.24 0 0 0 42.048-176.64c5.12-45.632 3.776-81.664-1.6-101.376a77.952 77.952 0 0 0-45.568-52.288 116.544 116.544 0 0 0-45.44-8.64l-192.768-2.688c28.096-115.072 10.048-181.568-2.496-214.336z m-604.864 247.04a45.184 45.184 0 0 1 45.12-47.296h67.008c24.96 0 45.184 20.288 45.184 45.248v480.64c0 24.96-20.224 45.12-45.184 45.12H131.84a45.184 45.184 0 0 1-45.12-43.072l-22.656-480.64z","p-id":"1169"})],-1),lr=[nr];function ar(t,o){return e.openBlock(),e.createElementBlock("i",or,lr)}const ir=p(tr,[["render",ar],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),sr={},rr={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},cr=e.createElementVNode("path",{"data-v-d6f79dbc":"","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"},null,-1),dr=[cr];function ur(t,o){return e.openBlock(),e.createElementBlock("svg",rr,dr)}const hr=p(sr,[["render",ur],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),pr={},mr={class:"comment-common-icon"},fr=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"})],-1),gr=[fr];function _r(t,o){return e.openBlock(),e.createElementBlock("i",mr,gr)}const vr=p(pr,[["render",_r],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),yr={},kr={class:"comment-common-icon"},Cr=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1320",width:"200",height:"200"},[e.createElementVNode("path",{d:"M147.264 647.296V220.928c0-49.536 40.128-89.728 89.6-89.728H793.6c49.536 0 89.728 40.192 89.728 89.728v426.368c0 49.536-40.128 89.728-89.6 89.728h-145.216a47.04 47.04 0 0 0-28.16 9.408l-194.56 145.792a3.392 3.392 0 0 1-5.12-1.984l-26.752-116.672a47.04 47.04 0 0 0-45.824-36.544H236.992a89.728 89.728 0 0 1-89.728-89.728zM236.864 64A156.928 156.928 0 0 0 80 220.928l0.064 426.368a156.928 156.928 0 0 0 156.928 156.928h94.976l23.232 101.312 0.064 0.448a70.592 70.592 0 0 0 109.696 40.832l190.208-142.592H793.6a156.928 156.928 0 0 0 156.928-156.928l-0.064-426.368A156.928 156.928 0 0 0 793.536 64H236.928z m69.44 442.496a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z m268.8-65.344a65.344 65.344 0 1 1-130.752 0 65.344 65.344 0 0 1 130.752 0z m138.368 65.344a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z","p-id":"1321"})],-1),wr=[Cr];function br(t,o){return e.openBlock(),e.createElementBlock("i",kr,wr)}const Vr=p(yr,[["render",br],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]);const Sr=t=>(e.pushScopeId("data-v-60eb8f0b"),t=t(),e.popScopeId(),t),Nr={class:"cv-comment-emoji"},Br={class:"face-tooltip-head select-none"},xr=["onClick"],Er=["src"],$r={class:"emoji-body select-none"},Tr={style:{padding:"0 5px"}},Dr=["onClick"],Ir={class:"emoji-btn select-none"},Fr={key:0},zr=Sr(()=>e.createElementVNode("span",null,"表情",-1)),Lr=Object.assign({name:"CompInputEmoji"},{__name:"input-emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,m)=>(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",Ir,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(e.unref($s)),zr]))])]),default:e.withCtx(()=>[e.createElementVNode("div",Br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(h,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:C=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,Er)],10,xr))),128))]),e.createElementVNode("div",$r,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",Tr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(C,_)=>(e.openBlock(),e.createElementBlock("span",{key:_,class:"emoji-item",onClick:y=>u.$emit("addEmoji",_)},[e.createVNode(e.unref(g.ElImage),{src:C,title:String(_),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Dr))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),jr=p(Lr,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]);const Pt=t=>(e.pushScopeId("data-v-cb6d934c"),t=t(),e.popScopeId(),t),Or={class:"cv-comment-editor"},Pr=["placeholder","onKeydown","innerHTML"],Ar=["src"],Ur=["onClick"],Rr={key:0,class:"cv-comment-editor__action"},Mr=Pt(()=>e.createElementVNode("span",null,"图片",-1)),Hr=Pt(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},[e.createTextVNode(" 文明上网理性发言,请遵守 "),e.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),qr={__name:"input-box",props:{placeholder:"",contentBtn:"",parentId:"",reply:""},emits:["hide","close"],setup(t,{expose:o,emit:n}){const i=t,l=e.ref(""),a=e.ref(),s=e.ref(!1),r=e.ref(!1),d=e.ref(),c=e.ref(!0),u=e.ref(),m=e.ref(),h=e.ref([]),f=e.ref([]),C=e.reactive({imgLength:0}),_={minHeight:64},y=e.ref(),v=e.ref(!1),k=e.ref(),w=e.computed(()=>_.minHeight+"px"),S=e.computed(()=>"8px 12px"),B=n,{upload:T,submit:D,focus:A}=e.inject("InjectInputBox"),U=e.inject("InjectionEmojiApi");e.watch(()=>l.value,V=>{v.value||(a.value=V)});function Et(){D({content:i.reply?`回复 <span style="color: var(--cv-color-success-dark-2);">@${i.reply.user.username}:</span> ${l.value}`:l.value,parentId:O(i.parentId,null),reply:i.reply,files:f.value,clear:()=>{oo(),B("close")}})}function Zt(V){L(l.value)&&!C.imgLength&&(r.value=!1,B("hide",V))}function Qt(V){v.value=!0,s.value=!0,r.value=!0,e.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),A()}function Gt(V){var b,x;y.value=(b=window.getSelection())==null?void 0:b.getRangeAt(0),(x=d.value)!=null&&x.innerHTML||(s.value=!1),v.value=!1}function Jt(V){const{innerHTML:b}=(V==null?void 0:V.target)||V;l.value=b||"",L(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1}function Xt(V){var x;let b=window.getSelection();b&&(b.removeAllRanges(),y.value||($t(),y.value=b.getRangeAt(0)),y.value.deleteContents(),y.value.insertNode(y.value.createContextualFragment(V)),y.value.collapse(!1),b.addRange(y.value),l.value=((x=d==null?void 0:d.value)==null?void 0:x.innerHTML)||"",L(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1)}function Yt(){d.value&&(d.value.innerHTML="",l.value=d.value.innerHTML,s.value=!1)}function $t(){e.nextTick(()=>{var V;(V=d.value)==null||V.focus()})}function eo(V){V.ctrlKey&&V.key=="Enter"&&(L(l.value.replace(/&nbsp;|<br>| /g,""))?g.ElMessage({message:"内容不能为空",type:"info"}):Et())}function to(V){var x;h.value.length=0,f.value.length=0;const b=(x=m.value)==null?void 0:x.files;if(C.imgLength=O(b==null?void 0:b.length,0),b)for(let E=0;E<b.length;E++){let j=b[E].name,lo=gs(b[E]);f.value.push(b[E]),fs(j)?h.value.push(lo):g.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function oo(){Yt(),h.value.length=0,f.value=[],c.value=!0}function no(V){var b;(b=h==null?void 0:h.value)==null||b.splice(V,1)}return e.onMounted(()=>{var V;(V=d.value)==null||V.addEventListener("keyup",b=>{const x=b.target;x.innerHTML=="<br>"&&(x.innerHTML="")})}),o({focus:()=>$t()}),(V,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Or,[e.createElementVNode("div",{class:e.normalizeClass(["cv-comment-editor__box",{active:s.value,"input-active":r.value}])},[e.createElementVNode("div",{ref_key:"editorRef",ref:d,class:"rich-input",contenteditable:"true",placeholder:i.placeholder,onFocus:Qt,onInput:Jt,onBlur:Gt,onKeydown:e.withKeys(eo,["enter"]),innerHTML:a.value,style:e.normalizeStyle({minHeight:w.value,padding:S.value})},null,44,Pr),e.createElementVNode("div",{ref_key:"imageRef",ref:k,class:"image-preview-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(x,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"image-preview"},[e.createElementVNode("img",{src:x,alt:""},null,8,Ar),e.createElementVNode("div",{class:"clean-btn",onClick:j=>no(E)},[e.createVNode(e.unref(Vs))],8,Ur)]))),128))],512)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",null,[e.createVNode(jr,{emoji:e.unref(U),onAddEmoji:b[0]||(b[0]=x=>Xt(x))},null,8,["emoji"]),e.createElementVNode("div",{class:"picture",onClick:b[1]||(b[1]=(...x)=>{var E,j;return((E=m.value)==null?void 0:E.click)&&((j=m.value)==null?void 0:j.click(...x))})},[e.createVNode(e.unref(Rs)),Mr,e.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:m,type:"file",multiple:"",onChange:to},null,544)])]),e.createElementVNode("div",null,[Hr,e.createVNode(e.unref(g.ElButton),{type:"primary",disabled:c.value,onClick:Et},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.contentBtn),1)]),_:1},8,["disabled"])])])):e.createCommentVNode("",!0)]),_:1})])),[[e.unref(g.ClickOutside),Zt,u.value]])}},At=p(qr,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]);const Wr={class:"u-fold"},Kr={class:"action-box select-none"},Zr=Object.assign({name:"UFold"},{__name:"fold",props:{line:{type:[Number,String],default:5}},setup(t){e.useCssVars(r=>({"11c6ae4f-line":n.value}));const o=t,n=e.computed(()=>{let r=Math.trunc(Number(o.line));return r>0?r:1}),i=e.ref(!0),l=e.ref(!1),a=e.ref();let s;return e.onMounted(()=>{s=new ResizeObserver(r=>{i.value&&a.value&&(l.value=a.value.offsetHeight<a.value.scrollHeight)}),s.observe(a.value)}),e.onUnmounted(()=>{s.disconnect()}),(r,d)=>(e.openBlock(),e.createElementBlock("div",Wr,[e.createElementVNode("div",{class:e.normalizeClass(["txt-box",{"over-hidden":i.value}])},[e.createElementVNode("div",{ref_key:"divBox",ref:a},[e.renderSlot(r.$slots,"default",{},void 0,!0)],512)],2),e.createElementVNode("div",Kr,[l.value&&r.unfold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"expand-btn",onClick:d[0]||(d[0]=c=>i.value=!i.value)},e.toDisplayString(i.value?"展开":"收起"),1)):e.createCommentVNode("",!0)])]))}}),Qr=p(Zr,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),Gr={__name:"user-card",props:{uid:""},setup(t){const o=e.ref({}),{showInfo:n}=e.inject("InjectContentBox"),i=e.inject("InjectSlots"),l=()=>e.h("div",i.card(o.value));return(a,s)=>e.unref(i).card?(e.openBlock(),e.createBlock(e.unref(g.ElPopover),{key:0,placement:"top",width:300,"show-after":300,onBeforeEnter:s[0]||(s[0]=()=>e.unref(n)(t.uid,r=>o.value=r))},{reference:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),default:e.withCtx(()=>[e.createVNode(l)]),_:3})):e.renderSlot(a.$slots,"default",{key:1})}},Tt=p(Gr,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Ut(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function kt(t){return typeof t=="function"?t():e.unref(t)}const Bt=typeof window<"u"&&typeof document<"u",Jr=Object.prototype.toString,Xr=t=>Jr.call(t)==="[object Object]",Yr=()=>{};function ec(t,o,n={}){const{immediate:i=!0}=n,l=e.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function r(){l.value=!1,s()}function d(...c){s(),l.value=!0,a=setTimeout(()=>{l.value=!1,a=null,t(...c)},kt(o))}return i&&(l.value=!0,Bt&&d()),Ut(r),{isPending:e.readonly(l),start:d,stop:r}}function tc(t){var o;const n=kt(t);return(o=n==null?void 0:n.$el)!=null?o:n}const oc=Bt?window:void 0,nc=Bt?window.navigator:void 0;function lc(...t){let o,n,i,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,l]=t,o=oc):[o,n,i,l]=t,!o)return Yr;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},r=(u,m,h,f)=>(u.addEventListener(m,h,f),()=>u.removeEventListener(m,h,f)),d=e.watch(()=>[tc(o),kt(l)],([u,m])=>{if(s(),!u)return;const h=Xr(m)?{...m}:m;a.push(...n.flatMap(f=>i.map(C=>r(u,f,C,h))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Ut(c),c}function ac(){const t=e.ref(!1);return e.getCurrentInstance()&&e.onMounted(()=>{t.value=!0}),t}function ic(t){const o=ac();return e.computed(()=>(o.value,!!t()))}function sc(t={}){const{navigator:o=nc,read:n=!1,source:i,copiedDuring:l=1500,legacy:a=!1}=t,s=ic(()=>o&&"clipboard"in o),r=e.computed(()=>s.value||a),d=e.ref(""),c=e.ref(!1),u=ec(()=>c.value=!1,l);function m(){s.value?o.clipboard.readText().then(_=>{d.value=_}):d.value=C()}r.value&&n&&lc(["copy","cut"],m);async function h(_=kt(i)){r.value&&_!=null&&(s.value?await o.clipboard.writeText(_):f(_),d.value=_,c.value=!0,u.start())}function f(_){const y=document.createElement("textarea");y.value=_??"",y.style.position="absolute",y.style.opacity="0",document.body.appendChild(y),y.select(),document.execCommand("copy"),y.remove()}function C(){var _,y,v;return(v=(y=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:y.toString())!=null?v:""}return{isSupported:r,text:d,copied:c,copy:h}}const rc={class:"comment-list-actbox__right"},cc={class:"operation-warp"},dc={class:"dialog-footer"},uc={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(t){const{copy:o}=sc(),n=e.ref(!1),i=e.ref({report_type:"",report_content:""}),l=t;function a(){let r=l.data||{};n.value=!1,g.ElMessage({type:"info",message:"举报成功: "+r.id})}function s(r){let d=l.data||{};switch(r){case"remove":setTimeout(()=>{var c;(c=commentRef.value)==null||c.remove(d)},200);break;case"report":n.value=!0;break;case"copy":o(d.content),g.ElMessage({type:"info",message:"复制成功"})}}return(r,d)=>{const c=e.resolveComponent("el-dropdown-item"),u=e.resolveComponent("el-dropdown-menu"),m=e.resolveComponent("el-dropdown"),h=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-input"),y=e.resolveComponent("el-form"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",rc,[e.createVNode(m,{trigger:"click",onCommand:d[0]||(d[0]=w=>s(w))},{dropdown:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{command:"report"},{default:e.withCtx(()=>[e.createTextVNode("举报")]),_:1}),e.createVNode(c,{command:"remove"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1}),e.createVNode(c,{divided:"",command:"copy"},{default:e.withCtx(()=>[e.createTextVNode("复制")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",cc,[e.createVNode(e.unref(Zs))])]),_:1}),e.createVNode(k,{title:"举报",modelValue:n.value,"onUpdate:modelValue":d[4]||(d[4]=w=>n.value=w),width:"400px",style:{width:"90%","max-width":"400px"}},{footer:e.withCtx(()=>[e.createElementVNode("span",dc,[e.createVNode(v,{onClick:d[3]||(d[3]=w=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(v,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(y,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(C,{label:"您为什么要举报此信息?"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.value.report_type,"onUpdate:modelValue":d[1]||(d[1]=w=>i.value.report_type=w)},{default:e.withCtx(()=>[e.createVNode(h,{label:"色情淫秽"},{default:e.withCtx(()=>[e.createTextVNode("色情淫秽")]),_:1}),e.createVNode(h,{label:"骚扰谩骂"},{default:e.withCtx(()=>[e.createTextVNode("骚扰谩骂")]),_:1}),e.createVNode(h,{label:"广告欺诈"},{default:e.withCtx(()=>[e.createTextVNode("广告欺诈")]),_:1}),e.createVNode(h,{label:"反动"},{default:e.withCtx(()=>[e.createTextVNode("反动")]),_:1}),e.createVNode(h,{label:"其他"},{default:e.withCtx(()=>[e.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(C,{label:"举报说明(可选):"},{default:e.withCtx(()=>[e.createVNode(_,{type:"textarea",modelValue:i.value.report_content,"onUpdate:modelValue":d[2]||(d[2]=w=>i.value.report_content=w),maxlength:"200",placeholder:"描述恶意行为",rows:"3"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},hc=p(uc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]);const pc=t=>(e.pushScopeId("data-v-1d5332e1"),t=t(),e.popScopeId(),t),mc={class:"comment-sub"},fc=["href"],gc=pc(()=>e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),_c={class:"comment-primary"},vc={class:"comment-main"},yc={key:1,class:"user-info"},kc=["href"],Cc={class:"username"},wc={class:"name",style:{"max-width":"10em"}},bc={blank:"true",class:"rank"},Vc=["innerHTML"],Sc={class:"address",style:{color:"#939393","font-size":"12px"}},Nc={class:"time"},Bc={class:"content"},xc=["innerHTML"],Ec={class:"imgbox",style:{display:"flex"}},$c={class:"comment-list-actbox select-none"},Tc={class:"comment-list-actbox__left"},Dc={key:2},Ic={class:"comment-list-actbox__right"},Fc={key:2},zc={__name:"content-box",props:{reply:{type:[Boolean],default:!1},data:{type:[Object],default:()=>({})},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({active:!1}),i=e.ref(),l=e.ref(),a=e.computed(()=>{let v=o.data.contentImg;return L(v)?[]:v==null?void 0:v.split("||")}),{allEmoji:s}=e.inject("InjectionEmojiApi"),{like:r,user:d,relativeTime:c}=e.inject("InjectContentBox");function u(){n.active=!n.active,n.active&&e.nextTick(()=>{var v;(v=i.value)==null||v.focus()})}function m(v){var w;const k=v.target;(w=l.value)!=null&&w.contains(k)||(n.active=!1)}const h=e.inject("InjectSlots"),f=()=>e.h("div",h.info(o.data)),C=(v,k)=>{const w=/\[.+?\]/g;return k=k.replace(w,S=>{const B=v[S];return B?['<img src="',B,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),k},_=e.computed(()=>C(s,o.data.content)),y=v=>{switch(v){case 1:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="831"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#8CDBF4" p-id="832"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="833"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m950.857143-365.714285l73.142857-73.142858v146.285715h-73.142857z m73.142857-73.142858h146.285715v146.285715h-146.285715z m0 146.285715h146.285715v438.857143h-146.285715z" fill="#FFFFFF"></path></svg>';case 2:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="765"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#6ECEFF" p-id="766"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="767"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v146.285714h-146.285714z m-219.428572 292.571428V512h146.285714v146.285714z" fill="#FFFFFF" p-id="768"></path><path d="M1097.142857 585.142857V438.857143h365.714286v146.285714z m0 73.142857h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 3:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="799"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#599DFF" p-id="800"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="801"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v73.142857h-146.285714z m0 219.428571h146.285714v73.142857h-146.285714z m-146.285715-146.285714h292.571429v146.285714h-292.571429z m-73.142857 219.428571h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 4:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="815"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#34D19B" p-id="816"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="817"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m975.213715-365.714285L1243.428571 219.428571v219.428572h-146.285714zM1097.142857 438.857143h146.285714v292.571428h-146.285714z m146.285714 146.285714h73.142858v146.285714h-73.142858z m0-365.714286h73.142858v146.285715h-73.142858z m73.142858 0h146.285714v585.142858h-146.285714z" fill="#FFFFFF"></path></svg>';case 5:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="782"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#FFA000" p-id="783"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="784"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-73.142857h146.285714v219.428572h-146.285714z m-219.428572-365.714286h365.714286v146.285715h-365.714286z m0 438.857143h219.428572v146.285715h-219.428572z m73.142857-219.428571h219.428572v146.285714h-219.428572z" fill="#FFFFFF" p-id="785"></path><path d="M1316.571429 438.857143h146.285714v146.285714h-146.285714z m-219.428572-73.142857h146.285714v219.428571h-146.285714z" fill="#FFFFFF"></path></svg>';case 6:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="748"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#F36262" p-id="749"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="750"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-146.285714h146.285714v292.571429h-146.285714z m-73.142858-292.571429h146.285715v146.285715h-146.285715z m-146.285714 146.285715h146.285714v438.857143h-146.285714z" fill="#FFFFFF" p-id="751"></path><path d="M1243.428571 438.857143h219.428572v146.285714h-219.428572z m-48.786285-170.642286L1243.428571 219.428571v146.285715h-146.285714zM1243.428571 658.285714h146.285715v146.285715h-146.285715z" fill="#FFFFFF"></path></svg>';default:return""}};return(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["comment",{reply:o.reply}])},[e.createElementVNode("div",mc,[e.createVNode(Tt,{uid:e.unref(F)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createVNode(e.unref(g.ElAvatar),{style:{"margin-top":"5px"},size:40,fit:"cover",src:t.data.user.avatar},{default:e.withCtx(()=>[gc]),_:1},8,["src"])],8,fc)]),_:1},8,["uid"])]),e.createElementVNode("div",_c,[e.createElementVNode("div",vc,[e.unref(h).info?(e.openBlock(),e.createBlock(f,{key:0})):(e.openBlock(),e.createElementBlock("div",yc,[e.createVNode(Tt,{uid:e.unref(F)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createElementVNode("div",Cc,[e.createElementVNode("span",wc,e.toDisplayString(t.data.user.username),1),e.createElementVNode("span",bc,[e.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:y(t.data.user.level)},null,8,Vc)])])],8,kc)]),_:1},8,["uid"]),e.createElementVNode("span",Sc,"  "+e.toDisplayString(t.data.address),1),e.createElementVNode("time",Nc,e.toDisplayString(e.unref(c)?e.unref(_s)(t.data.createTime):t.data.createTime),1)])),e.createElementVNode("div",Bc,[e.createVNode(Qr,{unfold:""},{default:e.withCtx(()=>[e.createElementVNode("div",{innerHTML:_.value},null,8,xc),e.createElementVNode("div",Ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(w,S)=>(e.openBlock(),e.createBlock(e.unref(g.ElImage),{key:S,src:w,style:{height:"72px",padding:"8px 4px"},lazy:"","preview-src-list":a.value,"initial-index":S},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1})]),e.createElementVNode("div",$c,[e.createElementVNode("div",Tc,[e.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:k[0]||(k[0]=w=>e.unref(r)(e.unref(F)(t.data.id)))},[e.unref(d).likeIds.map(String).indexOf(e.unref(F)(t.data.id))==-1?(e.openBlock(),e.createBlock(e.unref(ir),{key:0})):(e.openBlock(),e.createBlock(e.unref(er),{key:1})),t.data.likes!=0?(e.openBlock(),e.createElementBlock("span",Dc,e.toDisplayString(t.data.likes),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{"data-tip":"回复",ref_key:"btnRef",ref:l,class:e.normalizeClass(["item",{active:n.active}]),onClick:u},[e.createVNode(e.unref(Vr)),e.createElementVNode("span",null,e.toDisplayString(n.active?"取消回复":"回复"),1)],2)]),e.createElementVNode("div",Ic,[e.renderSlot(v.$slots,"operate",{},()=>[e.createVNode(hc,{data:o.data},null,8,["data"])],!0)])]),n.active?(e.openBlock(),e.createElementBlock("div",Fc,[e.createVNode(At,{ref_key:"commentRef",ref:i,"parent-id":e.unref(F)(t.id),placeholder:`回复 @${t.data.user.username}...`,reply:t.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:m,onClose:k[1]||(k[1]=w=>n.active=!1)},null,8,["parent-id","placeholder","reply"])])):e.createCommentVNode("",!0)]),e.renderSlot(v.$slots,"default",{},void 0,!0)])],2))}},Rt=p(zc,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]);const Lc={key:0,class:"reply-box"},jc={class:"reply-list"},Oc={key:0,class:"fetch-more"},Pc={key:0},Ac={key:1},Uc={key:0},Rc={key:1,class:"fetch-more"},Mc={__name:"reply-box",props:{data:{type:[Array,Object],default:()=>null},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({loading:!1,over:!1,pageNum:1,pageSize:5}),{replyPage:i,replyShowSize:l,comments:a,page:s}=e.inject("InjectReplyBox"),r=e.computed(()=>{let h={total:0,length:0,list:[]};if(o.data){let f=o.data.list.length;h={total:o.data.total,length:f,list:o.data.list}}if(!n.over){let f=h.list.slice(0,l);h.list=f}return s&&(h.list=h.list.slice(0,5)),h}),d=()=>{n.over=!0},c=h=>{a.value.forEach(f=>{f.id==o.id&&f.reply&&(f.reply=h)})},u=h=>{n.pageNum=h,i(o.id,h,n.pageSize,f=>c(f))},m=h=>{n.pageSize=h,i(o.id,n.pageNum,h,f=>c(f))};return(h,f)=>r.value.length>0?(e.openBlock(),e.createElementBlock("div",Lc,[e.createElementVNode("div",jc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.list,(C,_)=>(e.openBlock(),e.createBlock(Rt,{id:t.id,key:_,data:C,reply:""},null,8,["id","data"]))),128)),r.value.length>e.unref(l)?(e.openBlock(),e.createElementBlock("div",Oc,[n.loading?(e.openBlock(),e.createElementBlock("span",Pc,"加载中...")):(e.openBlock(),e.createElementBlock("div",Ac,[n.over?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Uc,[e.createTextVNode(" 共"+e.toDisplayString(r.value.total)+"条回复, ",1),e.createElementVNode("span",{class:"fetch-more-comment select-none",onClick:d},[e.createTextVNode(" 点击查看 "),e.createVNode(e.unref(hr))])]))]))])):e.createCommentVNode("",!0),n.over&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",Rc,[e.createVNode(e.unref(g.ElPagination),{small:"","hide-on-single-page":"",layout:"total, prev, pager, next",total:r.value.total,"page-size":n.pageSize,onCurrentChange:u,onSizeChange:m},null,8,["total","page-size"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}},Hc=p(Mc,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),qc={key:0,class:"comment-list"},Wc={__name:"comment-list",props:{data:{type:[Array,Object],default:()=>[]},total:{type:[Number],default:0},showSize:{type:[Number],default:0}},setup(t){return(o,n)=>t.data?(e.openBlock(),e.createElementBlock("div",qc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(i,l)=>(e.openBlock(),e.createBlock(Rt,{id:e.unref(F)(i.id),key:l,data:i},{default:e.withCtx(()=>[e.createVNode(Hc,{id:e.unref(F)(i.id),data:i.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):e.createCommentVNode("",!0)}},Kc=p(Wc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]);const Zc={class:"cv-comment-base"},Qc={class:"cv-comment-form"},Gc=e.createElementVNode("div",{class:"cv-comment-form__header"},[e.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),Jc={class:"cv-comment-form__content"},Xc={class:"cv-comment-form__avatar"},Yc=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),ed=e.createElementVNode("div",{class:"title"},"全部评论",-1),td={class:"cv-comment-list-wrapper"},od=Object.assign({name:"cvCommentBase"},{__name:"comment",props:{config:{},page:!1,upload:!1,relativeTime:!1},emits:["submit","like","replyPage","showInfo","focus"],setup(t,{expose:o,emit:n}){const i=t,{user:l,comments:a,showSize:s,replyShowSize:r,total:d}=e.toRefs(i.config),c=n,u=({content:_,parentId:y,reply:v,files:k,clear:w})=>{c("submit",{content:_,parentId:y,reply:v,files:k,finish:B=>{if(w(),y){let T=a.value.find(D=>D.id==y);if(T){let D=T.reply;D?(D.list.unshift(B),D.total++):T.reply={total:1,list:[B]}}}else a.value.unshift(B)}})},m={upload:i.upload,submit:u,focus:()=>c("focus")};e.provide("InjectInputBox",m);const h=(_,y)=>{let v=null;a.value.forEach(k=>{var w;k.id==_?v=k:v=(w=k.reply)==null?void 0:w.list.find(S=>S.id==_),v&&(v.likes+=y)})},f=_=>{const y=i.config.user.likeIds;c("like",_,()=>{if(y.findIndex(v=>v==_)==-1)y.push(_),h(_,1);else{let v=y.findIndex(k=>k==_);v!=-1&&(y.splice(v,1),h(_,-1))}})};e.provide("InjectContentBox",{user:l,like:f,relativeTime:O(i.relativeTime,!1),showInfo:(_,y)=>c("showInfo",_,y)}),e.provide("InjectReplyBox",{page:i.page,replyPage:(_,y,v,k)=>{c("replyPage",{parentId:_,pageNum:y,pageSize:v,finish:k})},replyShowSize:O(r,3),comments:a});const C=_=>{const{parentId:y,id:v}=_;if(y){let k=a.value.find(S=>S.id==y),w=k==null?void 0:k.reply;if(w){let S=w.list.findIndex(B=>B.id==v);S!=-1&&(w.list.splice(S,1),w.total--)}}else{let k=a.value.findIndex(w=>w.id==v);k!=-1&&a.value.splice(k,1)}};return e.provide("InjectionEmojiApi",i.config.emoji),e.provide("InjectSlots",e.useSlots()),o({remove:C}),(_,y)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Zc,[e.createElementVNode("div",Qc,[Gc,e.createElementVNode("div",Jc,[e.createElementVNode("div",Xc,[e.createVNode(v,{size:40,src:t.config.user.avatar},{default:e.withCtx(()=>[Yc]),_:1},8,["src"])]),e.createVNode(At,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),e.renderSlot(_.$slots,"default",{},()=>[ed]),e.createElementVNode("div",td,[e.createVNode(Kc,{data:e.unref(a),total:e.unref(d),"show-size":e.unref(O)(e.unref(s),5)},null,8,["data","total","show-size"])])])}}}),it=p(od,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),nd={class:"comment-scroll"},ld=["infinite-scroll-disabled"],ad={class:"scroll-btn"},id={key:1},sd={key:2},rd=Object.assign({name:"cvCommentScroll"},{__name:"comment-scroll",props:{disable:{type:[Boolean],default:!1},show:{type:[Boolean],default:!1}},emits:["more"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(!1),a=o,s=e.computed(()=>l.value&&n.disable),r=e.computed(()=>!l.value||i.value||s.value),d=ms(()=>{a("more"),i.value=!1},500),c=()=>{i.value=!0,d()};return(u,m)=>{const h=e.resolveComponent("el-link"),f=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createElementBlock("div",nd,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{"infinite-scroll-disabled":r.value,"infinite-scroll-distance":"2"},[e.renderSlot(u.$slots,"default"),e.createElementVNode("div",ad,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",underline:!1,onClick:m[0]||(m[0]=C=>l.value=!l.value)},{default:e.withCtx(()=>[e.createTextVNode("加载更多")]),_:1})),i.value?(e.openBlock(),e.createElementBlock("p",id,"加载中...")):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("p",sd,"没有更多了")):e.createCommentVNode("",!0)])],8,ld)),[[f,c]])])}}}),st=p(rd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),cd={class:"cv-comment-nav-wrap"},dd=e.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),ud={class:"cv-comment-nav__sort"},hd=Object.assign({name:"cvCommentNav"},{__name:"comment-nav",props:{modelValue:!1},emits:["update:modelValue","sorted"],setup(t,{emit:o}){const n=t,i=o,l=e.computed({get(){return n.modelValue},set(a){i("update:modelValue",a),i("sorted",a)}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",cd,[dd,e.createElementVNode("div",ud,[e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:l.value}]),onClick:s[0]||(s[0]=r=>l.value=!0)},[e.createVNode(e.unref(vr)),e.createTextVNode(" 最新 ")],2),e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:!l.value}]),onClick:s[1]||(s[1]=r=>l.value=!1)},[e.createVNode(e.unref(Ls)),e.createTextVNode(" 最热 ")],2)])]))}}),rt=p(hd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);it.install=function(t){t.component(it.name,it)};st.install=function(t){t.component(st.name,st)};rt.install=function(t){t.component(rt.name,rt)};const pd={key:1,"aria-hidden":"true"},md=["xlink:href"],fd=Object.assign({name:"cvIcon"},{__name:"icon",props:{size:14,name:"",color:""},setup(t){const o=t,n=e.computed(()=>"#"+o.name),i=e.computed(()=>({fontSize:ps(o.size)?o.size+"px":o.size,color:o.color}));return(l,a)=>(e.openBlock(),e.createElementBlock("i",{class:"cv-icon",style:e.normalizeStyle(i.value)},[l.$slots.default?e.renderSlot(l.$slots,"default",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("svg",pd,[e.createElementVNode("use",{"xlink:href":n.value},null,8,md)]))],4))}}),ct=p(fd,[["__scopeId","data-v-03222826"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icon/icon.vue"]]);ct.install=function(t){t.component(ct.name,ct)};const gd={name:"cvIcons",props:{type:{type:[String],default:""},size:{type:[String,Number],default:12}},data(){return{}},created(){},methods:{}};function _d(t,o,n,i,l,a){const s=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(s,{size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.type)))]),_:1},8,["size"])}const dt=p(gd,[["render",_d],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);dt.install=function(t){t.component(dt.name,dt)};const Mt=t=>(e.pushScopeId("data-v-cbcaef8c"),t=t(),e.popScopeId(),t),vd={class:"u-emoji"},yd={class:"face-tooltip-head select-none"},kd=["onClick"],Cd=["src"],wd={class:"emoji-body select-none"},bd={style:{padding:"0 5px"}},Vd=["onClick"],Sd={class:"emoji-btn select-none"},Nd={key:0},Bd=Mt(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"})],-1)),xd=Mt(()=>e.createElementVNode("span",null,"表情",-1)),Ed=[Bd,xd],$d=Object.assign({name:"cvEmoji"},{__name:"emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,m)=>(e.openBlock(),e.createElementBlock("div",vd,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",Sd,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Nd,Ed))])]),default:e.withCtx(()=>[e.createElementVNode("div",yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(h,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:C=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,Cd)],10,kd))),128))]),e.createElementVNode("div",wd,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",bd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(C,_)=>(e.openBlock(),e.createElementBlock("span",{key:_,class:"emoji-item",onClick:y=>u.$emit("addEmoji",_)},[e.createVNode(e.unref(g.ElImage),{src:C,title:String(_),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Vd))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Td=p($d,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]);const Dd={class:"cv-chat-message"},Id={class:"chat-list"},Fd=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),zd={class:"content"},Ld={key:0,class:"username"},jd=["innerHTML"],Od=e.createElementVNode("div",{class:"date"},null,-1),Pd={__name:"message",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0}},setup(t,{expose:o}){const{allEmoji:n}=e.inject("InjectionEmojiApi"),i=e.ref();o({scroll:()=>{e.nextTick(()=>{const s=document.querySelector(".chat-item:last-child");i.value.setScrollTop(s.offsetTop)})}});const a=(s,r)=>{const d=/\[.+?\]/g;return r=r.replace(d,c=>{const u=s[c];return u?['<img src="',u,'" width="20" height="20" alt="',c,'" title="',c,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):c}),r};return(s,r)=>(e.openBlock(),e.createElementBlock("div",Dd,[e.createVNode(e.unref(g.ElScrollbar),{ref_key:"scrollbarRef",ref:i},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass([{self:t.userId==d.id},"chat-item"])},[e.createElementVNode("div",null,[e.createVNode(e.unref(g.ElAvatar),null,{default:e.withCtx(()=>[Fd]),_:1})]),e.createElementVNode("div",zd,[t.userId!=d.id?(e.openBlock(),e.createElementBlock("div",Ld,e.toDisplayString(d.username),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"card-box",innerHTML:a(e.unref(n),d.content)},null,8,jd)]),Od],2))),128))])]),_:1},512)]))}},Ad=p(Pd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]);const Ud={class:"cv-chat-wrap"},Rd={class:"header"},Md=e.createElementVNode("svg",{viewBox:"0 0 1318 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z",fill:"#612273","p-id":"10993"}),e.createElementVNode("path",{d:"M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z",fill:"#612273",opacity:".2","p-id":"10994"}),e.createElementVNode("path",{d:"M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z",fill:"#EB3D72","p-id":"10995"}),e.createElementVNode("path",{d:"M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z",fill:"#EB3D72",opacity:".5","p-id":"10996"}),e.createElementVNode("path",{d:"M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z",fill:"#FED150","p-id":"10997"})],-1),Hd=e.createElementVNode("div",{style:{"margin-left":"12px"}},[e.createElementVNode("div",null,"聊天室"),e.createElementVNode("div",{style:{"font-size":"12px"}},"当前2人在线")],-1),qd={id:"chat-footer",class:"footer"},Wd=e.createElementVNode("svg",{width:"22",height:"22",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7186"},[e.createElementVNode("path",{d:"M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z","p-id":"7187"})],-1),Kd=e.createElementVNode("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15072"},[e.createElementVNode("path",{d:"M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z","p-id":"15073"})],-1),Zd=Object.assign({name:"cvChat"},{__name:"chat",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0},emoji:{type:[Object],default:()=>({})}},emits:["submit"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(""),a=e.ref(),{data:s}=n,r=o,d=h=>{const{ctrlKey:f,key:C}=h;f&&C=="Enter"&&u()},c=()=>{l.value="",a.value.scroll()},u=()=>{let h=l.value;h.trim()?(h=h.replace(/\n/g,"<br/>"),r("submit",{clear:c,content:h})):g.ElMessage({type:"error",message:"内容不能为空"})},m=h=>{let f=document.getElementById("emojiInput"),C=f.selectionStart,_=f.selectionEnd,y=f.value;if(C===null||_===null)return;let v=y.substring(0,C)+h+y.substring(_);f.value=v,f.focus(),f.selectionStart=C+h.length,f.selectionEnd=C+h.length,l.value=v};return e.provide("InjectionEmojiApi",n.emoji),(h,f)=>{const C=e.resolveComponent("cvIcon");return e.openBlock(),e.createElementBlock("div",Ud,[e.createElementVNode("div",{class:e.normalizeClass([{active:i.value},"chat-container translate"])},[e.createElementVNode("div",Rd,[e.createVNode(C,{size:"32"},{default:e.withCtx(()=>[Md]),_:1}),Hd]),e.createVNode(Ad,{ref_key:"messageRef",ref:a,data:e.unref(s),"user-id":t.userId},null,8,["data","user-id"]),e.createElementVNode("div",qd,[e.createVNode(e.unref(g.ElInput),{id:"emojiInput",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=_=>l.value=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue","onKeydown"]),e.createVNode(Td,{style:{margin:"0 8px 0"},emoji:t.emoji,placement:"top-end",onAddEmoji:m},{default:e.withCtx(()=>[Wd]),_:1},8,["emoji"]),e.createVNode(C,{size:"18",class:e.normalizeClass([{".cv-chat-wrap submit-btn":l.value.trim()!=""},"select-none cursor-pointer"]),style:{"padding-bottom":"5px"},onClick:u},{default:e.withCtx(()=>[Kd]),_:1},8,["class"])])],2),e.createVNode(e.unref(g.ElButton),{class:"chat-btn",onClick:f[1]||(f[1]=_=>i.value=!i.value)},{default:e.withCtx(()=>[e.createTextVNode("chat")]),_:1})])}}}),ut=p(Zd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);ut.install=function(t){t.component(ut.name,ut)};const Qd={key:0},Gd=Object.assign({name:"cvNoticeBar"},{__name:"notice-bar",props:{data:{type:[String,Array],default:()=>[]},vertical:{type:[Boolean],default:!1},suffixIcon:{type:[String],default:""},prefixIcon:{type:[String],default:""},size:{type:[Number],default:14},height:{type:[Number],default:40},delay:{type:[Number],default:1e3},spped:{type:[Number],default:100},color:{type:[String],default:"--color-warning"},background:{type:[String],default:"var(--color-warning-light-9)"}},setup(t){const o=t,{data:n,vertical:i,suffixIcon:l,prefixIcon:a,size:s,height:r,delay:d,spped:c,color:u,background:m}=o,h=e.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),f=e.ref({}),C=e.ref({}),_=e.computed(()=>o.delay>2e3?o.delay:2e3),y=()=>{e.nextTick(()=>{h.boxWidth=f.value.offsetWidth,h.textWidth=C.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${h.textWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${h.boxWidth}px;} 100% {left: -${h.textWidth}px;}}`),v(),setTimeout(()=>{k()},o.delay)})},v=()=>{h.oneTime=h.textWidth/o.spped,h.twoTime=(h.textWidth+h.boxWidth)/o.spped},k=()=>{h.order===1?(C.value.style.cssText=`animation: oneAnimation ${h.oneTime}s linear; opactity: 1;}`,h.order=2):C.value.style.cssText=`animation: twoAnimation ${h.twoTime}s linear infinite; opacity: 1;`},w=()=>{C.value.addEventListener("animationend",()=>{k()},!1)};return e.onMounted(()=>{o.vertical||(y(),w())}),(S,B)=>{const T=e.resolveComponent("el-carousel-item"),D=e.resolveComponent("el-carousel"),A=e.resolveComponent("cvIcon");return e.openBlock(),e.createElementBlock("div",{class:"cv-notice-bar",style:e.normalizeStyle({background:e.unref(m),height:`${e.unref(r)}px`})},[e.unref(i)?(e.openBlock(),e.createElementBlock("div",Qd,[e.createVNode(D,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:_.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),U=>(e.openBlock(),e.createBlock(T,{key:U},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U),1)]),_:2},1024))),128))]),_:1},8,["interval"])])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({color:e.unref(u),fontSize:`${e.unref(s)}px`}),class:"cv-notice-bar-wrap"},[e.unref(a)?(e.openBlock(),e.createBlock(A,{key:0,name:e.unref(a)},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"boxRef",ref:f,class:"text-box"},[e.createElementVNode("div",{ref_key:"textRef",ref:C,class:"text"},e.toDisplayString(e.unref(n)),513)],512),e.unref(l)?(e.openBlock(),e.createBlock(A,{key:1,name:e.unref(l)},null,8,["name"])):e.createCommentVNode("",!0)],4))],4)}}}),ht=p(Gd,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);ht.install=function(t){t.component(ht.name,ht)};const Jd={name:"cvEditorCode",props:{options:{type:[Object],default:()=>({autoRefresh:!0,autofocus:!1,lineNumbers:!0,tabSize:4,indentUnit:2,line:!0,styleActiveLine:!0})},modelValue:{type:[String],default:""},toolbars:{type:[Array],default:()=>["copy"]},theme:{type:[String],default:"juejin"},language:{type:[String],default:"Plain Text"},readOnly:{type:[Boolean],default:!1},id:{type:[String],required:!1,default(){return"myCvEditorCode-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}}},watch:{modelValue(t){this.localVal=t,this.currPoint==null&&this.editorInstance.setValue(t)}},data(){return{isCdnLoading:!0,localToolbar:{copy:!0},localToolNum:0,localOption:{},localVal:"",localMode:"",currPoint:null,editorId:this.id,editorInstance:null}},created(){this.localVal=this.modelValue,this.localToolNum=this.toolbars.length,this.localToolbar=this.toolbars.reduce((t,o)=>(t[o]=!0,t),{})},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await P(this.CDN_URL_UI+`/codemirror/@5.65.15/theme/${this.theme}.css`),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js").then(()=>{setTimeout(()=>{N(this.CDN_URL_UI+"/codemirror/@5.65.15/addon/display/autorefresh.js").then(()=>{this.isCdnLoading=!1,setTimeout(()=>{this.initEditor()},250)})},250)})},methods:{initEditor(){const t=window.CodeMirror||CodeMirror;this.editorInstance=t(this.$refs[this.editorId],{value:this.localVal,readOnly:this.readOnly,mode:this.localMode,theme:this.theme,...this.options}),this.editorInstance.setValue(this.value||this.localVal),this.editorInstance.on("change",(o,n)=>{this.localVal=o.getValue(),n.origin=="+input"&&(this.currPoint=n.to||null),n.origin=="setValue"&&(this.currPoint=null),this.$emit("update:modelValue",this.localVal)}),N(this.CDN_URL_UI+"/codemirror/@5.65.15/mode/meta-cvjs.js").then(()=>{setTimeout(()=>{this.$nextTick(()=>{}),this._getLanguageToMode()},250)})},async _getLanguageToMode(t){t=t||this.language,window.CodeMirror||CodeMirror;const o=CodeMirror.findModeByName(t),n=o.mode||"",i=o.addonMode||"";this.localMode=o.mime||"",i!="null"&&i!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/addon/mode/${i}.js`),n!="null"&&n!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/mode/${n}/${n}.js`),this.editorInstance.setOption("mode",this.localMode)},changeMode(t){this.editorInstance.setOption("mode",`text/${t}`),this._getLanguage(t).label.toLowerCase()},handleCopy(){this.$cvCopy(this.localVal)},handleChange(t){}}},Xd={class:"cv-editor-code-wrap cv-editor-vars"},Yd={key:0,class:"cv-editor-toolbars"},eu=e.createElementVNode("li",{class:"empty"},null,-1),tu=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),ou=[tu],nu={class:"cv-editor-mainbox"};function lu(t,o,n,i,l,a){const s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Xd,[l.localToolNum>0?(e.openBlock(),e.createElementBlock("ul",Yd,[eu,l.localToolbar.copy?(e.openBlock(),e.createElementBlock("li",{key:0,name:"复制",onClick:o[0]||(o[0]=(...r)=>a.handleCopy&&a.handleCopy(...r))},ou)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nu,[e.createElementVNode("div",{class:"cv-editor-container",ref:l.editorId},null,512)])])),[[s,l.isCdnLoading]])}const pt=p(Jd,[["render",lu],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]);const au={name:"cvEditorJson",components:{},props:{mode:{type:[String],default:"text"},readOnly:{type:[Boolean],default:!1},options:{type:[Object],default:()=>({mode:"text"})},modelValue:[Object,Array,Number,String,Boolean],height:{type:String},plus:{type:Boolean,default:!0}},data(){return{editor:null,style:{},max:!1,internalChange:!1,localVal:""}},watch:{max(t){this.$nextTick(()=>{this.initJsoneditor()})},options:{handler(t){this.options&&this.options.mode&&this.editor},deep:!0}},computed:{getHeight(){return this.height&&!this.max?{height:this.height}:{}}},async mounted(){this.initJsoneditor()},updated(){this.editor.updateProps({mode:this.mode,readOnly:this.readOnly})},beforeUnmount(){this.destroyView()},beforeDestroy(){this.destroyView()},methods:{onChange(){let t=null,o={};try{o=this.editor.get()}catch(n){t=n}t?this.$emit("error",t):this.editor&&(this.internalChange=!0,this.$emit("update:modelValue",o),this.$nextTick(()=>{this.internalChange=!1}))},initJsoneditor(){this.editor||(this.editor=new ao.JSONEditor({target:this.$refs.jsoneditor,props:{value:this.modelValue,mode:this.mode,readOnly:this.readOnly,...this.options,onChange:this.onChange}}),this.updateVal(this.modelValue))},updateVal(t){this.editor&&t!==void 0&&!this.internalChange&&this.editor.update({json:t})},isJSON(t){try{return JSON.parse(t),!0}catch{return!1}},destroyView(){this.editor&&(this.editor.destroy(),this.editor=null)},handleChange(t){this.emitData||(this.emitData=ll(400,o=>{this.$emit("update:modelValue",o)})),this.emitData(t)}}},iu={ref:"jsoneditor",class:"jsoneditor-box"};function su(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-json",{"max-box":l.max,"min-box":!l.max}]),style:e.normalizeStyle(a.getHeight)},[e.createElementVNode("div",iu,null,512),e.createElementVNode("a",{onClick:o[0]||(o[0]=s=>l.max=!l.max),class:"max-btn"})],6)}const mt=p(au,[["render",su],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]);function Ht(t){if(typeof t=="function"&&(t={highlight:t}),!t||typeof t.highlight!="function")throw new Error("Must provide highlight function");return typeof t.langPrefix!="string"&&(t.langPrefix="language-"),{async:!!t.async,walkTokens(o){if(o.type!=="code")return;const n=ru(o);if(t.async)return Promise.resolve(t.highlight(o.text,n)).then(Dt(o));const i=t.highlight(o.text,n);if(i instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Dt(o)(i)},renderer:{code(o,n,i){const l=(n||"").match(/\S*/)[0],a=l?` class="${t.langPrefix}${Ft(l)}"`:"";return o=o.replace(/\n$/,""),`<pre><code${a}>${i?o:Ft(o,!0)}
1
+ "use strict";/*! cvPcUI v0.3.7 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("element-plus"),ao=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.18.2/index.js"),p=(t,o)=>{const n=t.__vccOpts||t;for(const[i,l]of o)n[i]=l;return n},io={name:"cvRow",props:{gutter:{type:[Number,String],default:0},type:{type:[String],default:""},justify:{type:[String],default:"start"},align:{type:[String],default:"top"},tag:{type:[String],default:"div"}},data(){return{}},methods:{}};function so(t,o,n,i,l,a){const s=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-row"},{type:n.type,justify:n.justify,align:n.align,tag:n.tag},{gutter:parseInt(n.gutter)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["gutter"])}const H=p(io,[["render",so],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),ro={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function co(t,o,n,i,l,a){const s=e.resolveComponent("el-col");return e.openBlock(),e.createBlock(s,{class:"cv-col",span:parseInt(n.span),offset:parseInt(n.offset)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["span","offset"])}const q=p(ro,[["render",co],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/col.vue"]]);H.install=function(t){t.component(H.name,H)};q.install=function(t){t.component(q.name,q)};const uo={name:"cvBtnBase",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},created(){},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function ho(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const W=p(uo,[["render",ho],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),po={name:"cvBtnText",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function mo(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{link:"",loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const K=p(po,[["render",mo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/text.vue"]]);W.install=function(t){t.component(W.name,W)};K.install=function(t){t.component(K.name,K)};const fo={name:"cvFormBase",extends:g.ElForm,provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{}}};function go(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},t.$props,e.toHandlers(t.$attrs)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Z=p(fo,[["render",go],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),_o={name:"cvFormInline",provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function vo(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},t.$props,e.toHandlers(t.$attrs),{inline:!0}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Q=p(_o,[["render",vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]);const yo={name:"cvFormItem",extends:g.ElFormItem,inject:{elForm:{}},props:{...g.ElFormItem.props,labelWidth:{type:[String],default:"80px"}},data(){return{localLabelWidth:"",localError:""}},created(){this.localLabelWidth=this.labelWidth,this.elForm.labelWidth&&(this.localLabelWidth=this.elForm.labelWidth),this.localLabelWidth=this.localLabelWidth.indexOf("px")=="-1"?this.localLabelWidth+"px":this.localLabelWidth},methods:{}};function ko(t,o,n,i,l,a){const s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{"label-width":l.localLabelWidth}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),e.renderSlot(t.$slots,"tip")]),_:3},16,["label-width"])}const G=p(yo,[["render",ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Z.install=function(t){t.component(Z.name,Z)};Q.install=function(t){t.component(Q.name,Q)};G.install=function(t){t.component(G.name,G)};const $={extends:g.ElInput,emits:["update:modelValue","change"],props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(t){this.localVal=t},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localRules:[]}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},handleBlur(){this._isCheckValue()},_showError(t){this.localError=t||"请输入正确的"+this.label},_diyValidate(){},_isCheckValue(){const o=this==null?void 0:this.rules.split("|");this.localError="";for(let n in o){let l=o[n].split(":"),a=l[0]||"",s=l[1]||"";switch(a){case"require":if(this.localVal==""){this._showError(this.label+"不能为空");return}break;case"max":if(this.localVal.length>s){this._showError(this.label+"最大长度不超过"+s);return}break;case"min":if(this.localVal.length<s){this._showError(this.label+"最小长度不小于"+s);return}break;default:this._diyValidate(a);break}}}}},Co={name:"cvInputText",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(t){switch(t){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let l=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!l.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":/^[A-Za-z0-9]+$/.test(this.localVal)||this._showError("必须是字母和数字");break}}}},wo={slot:"prepend"},bo={slot:"append"};function Vo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",wo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",bo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const So=p(Co,[["render",Vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),No={name:"cvInputMobile",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1][3,4,5,7,8][0-9]{9}$/;this.rules.indexOf("mobile")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Bo=e.createElementVNode("template",{slot:"prepend"},[e.createTextVNode("+86")],-1),xo={slot:"append"};function Eo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number",oninput:"if(value.length>11)value=value.slice(0,11)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入11位大陆手机号",clearable:""}),{default:e.withCtx(()=>[Bo,e.createElementVNode("template",xo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const J=p(No,[["render",Eo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),$o={name:"cvInputEmail",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("email")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},To={slot:"prepend"},Do={slot:"append"};function Io(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入邮箱",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",To,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Do,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const X=p($o,[["render",Io],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),Fo={name:"cvInputPassword",mixins:[$],components:{},props:{showPassword:{type:Boolean,default:!1}},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("password")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},zo={slot:"prepend"},Lo={slot:"append"};function jo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"password"},{disabled:t.disabled,showPassword:n.showPassword},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入密码",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",zo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Lo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Y=p(Fo,[["render",jo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]);const Oo={name:"cvInputNumber",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(){let t=/^[0-9]*$/;this.rules.indexOf("number")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Po={slot:"prepend"},Ao={slot:"append"};function Uo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-number",type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入整数",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Po,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ao,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ee=p(Oo,[["render",Uo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),Ro={name:"cvInputIdcard",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;this.rules.indexOf("idcard")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Mo={slot:"prepend"},Ho={slot:"append"};function qo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text",oninput:"if(value.length>18)value=value.slice(0,18)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入身份证",clearable:"",maxlength:"18"}),{default:e.withCtx(()=>[e.createElementVNode("template",Mo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ho,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const te=p(Ro,[["render",qo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),Wo={name:"cvInputDigit",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^(([0-9])|([1-9]([0-9]+)))(.[0-9]+)?$/;this.rules.indexOf("digit")!==-1&&!t.test(this.localVal)&&(this._showError="请输入正确的"+this.label)}}},Ko={slot:"prepend"},Zo={slot:"append"};function Qo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Ko,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Zo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const oe=p(Wo,[["render",Qo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),Go={name:"cvTextarea",mixins:[$],props:{rows:{type:[Number,String],default:3},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}};function Jo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"])}const ne=p(Go,[["render",Jo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]);const Xo={name:"cvTextareaBtn",mixins:[$],components:{},props:{rows:{type:[Number,String],default:3},btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Yo={class:"cv-textab-group"},en={class:"cv-textab-group__append"},tn={class:"cv-textab_slot-wrap"};function on(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"]),e.createElementVNode("div",en,[e.createElementVNode("div",tn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-textab_slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])])}const le=p(Xo,[["render",on],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]);const nn={name:"cvInputBtn",mixins:[$],emits:["btnClick"],components:{},props:{btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(t){switch(t){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let l=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!l.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":regEnNum=/^[A-Za-z0-9]+$/,regEnNum.test(this.localVal)||this._showError("必须是英文和数字");break}}}},ln={class:"cv-input-group"},an={class:"cv-input-group__append"};function sn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",ln,[e.createVNode(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),null,16,["modelValue","onChange","onInput","placeholder"]),e.createElementVNode("div",an,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-input-btn__slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])}const ae=p(nn,[["render",sn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]),rn={name:"cvInputSearch",mixins:[$],components:{},data(){return{localVal:"",localOpt:[]}},props:{apiParam:{type:[Object],default(){return{}}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}}},methods:{querySearchAsync(t,o){var n=this.localOpt,i=t?n.filter(this.createStateFilter(t)):n;this.apiFunc(),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(i)},Math.random())},createStateFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},apiFunc(){},handleSelect(t){},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]||"",a=i[n]||"";a=a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}},created(){this._parseLocalOpt()}};function cn(t,o,n,i,l,a){const s=e.resolveComponent("el-autocomplete");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)},t.$props,{"fetch-suggestions":a.querySearchAsync,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,onSelect:a.handleSelect,style:{width:"100%"},clearable:""}),null,16,["modelValue","fetch-suggestions","placeholder","onSelect"])}const ie=p(rn,[["render",cn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/search.vue"]]);J.install=function(t){t.component(J.name,J)};X.install=function(t){t.component(X.name,X)};Y.install=function(t){t.component(Y.name,Y)};ee.install=function(t){t.component(ee.name,ee)};te.install=function(t){t.component(te.name,te)};oe.install=function(t){t.component(oe.name,oe)};ne.install=function(t){t.component(ne.name,ne)};le.install=function(t){t.component(le.name,le)};ae.install=function(t){t.component(ae.name,ae)};ie.install=function(t){t.component(ie.name,ie)};const dn={name:"cvInputCounter",extends:g.ElInputNumber,props:{},watch:{modelValue(){this.localVal=this.modelValue}},data(){return{localVal:0}},created(){},methods:{handleChange(t){this.$emit("update:modelValue",this.localVal)}}};function un(t,o,n,i,l,a){const s=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),onChange:a.handleChange,step:t.step}),null,16,["modelValue","onChange","step"])}const se=p(dn,[["render",un],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);se.install=function(t){t.component(se.name,se)};const hn={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},pn={class:"cv-show-text"},mn=["innerHTML"];function fn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",pn,[n.text?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:n.text},null,8,mn)):e.createCommentVNode("",!0),n.text?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:1})])}const re=p(hn,[["render",fn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),gn={name:"cvShowImage",mixins:[],components:{},props:{url:{type:[String,Array,Object],default:""},width:{type:[String],default:"100px"},height:{type:[String],default:"100px"}},data(){return{localUrl:""}},watch:{url:{handler(){this.localUrl=typeof this.url=="string"?[this.url]:this.url},immediate:!0,deep:!0}},created(){},methods:{}},_n={class:"cv-show-image"};function vn(t,o,n,i,l,a){const s=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",_n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localUrl,(r,d)=>(e.openBlock(),e.createBlock(s,{style:e.normalizeStyle("width:"+n.width+"; height:"+n.height+"; margin-right:10px"),key:d,src:r,"preview-src-list":l.localUrl},null,8,["style","src","preview-src-list"]))),128))])}const ce=p(gn,[["render",vn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]);const yn={name:"cvShowTip",props:{borderColor:{type:[String],default:"#50bfff"},bgColor:{type:[String],default:"#ecf8ff"}},data(){return{backgroundColor:"#ecf8ff",borderLeft:"5px solid #50bfff"}},created(){this.borderLeft=`5px solid ${this.borderColor}`,this.backgroundColor=`${this.bgColor}`},methods:{}};function kn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:"cv-show-tip",style:e.normalizeStyle({backgroundColor:this.backgroundColor,borderLeft:this.borderLeft})},[e.renderSlot(t.$slots,"default")],4)}const de=p(yn,[["render",kn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),Cn={name:"cv-gallery-dialog",props:{type:String,title:String,sources:Array,sliceSingle:{type:Boolean,default:!1},carouselAttrs:Object},data(){return{isShowCarousel:!1,sourceTitle:"",initialIndex:0,isShowPreview:!1}},methods:{startPreview(t){this.isShowPreview=!0,this.initialIndex=t,this.sourceTitle=this.sources[t].title},handleCarouselChange(t){this.sources[t]&&this.sources[t].title?this.sourceTitle=this.sources[t].title:this.sourceTitle=""}}},wn={slot:"title"},bn=["src"],Vn={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},Sn=["src"],Nn=["src"],Bn=["src"];function xn(t,o,n,i,l,a){const s=e.resolveComponent("el-carousel-item"),r=e.resolveComponent("el-carousel"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,{visible:l.isShowPreview,"append-to-body":"",onOpen:o[0]||(o[0]=c=>l.isShowCarousel=!0),onClosed:o[1]||(o[1]=c=>l.isShowCarousel=!1),style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("div",wn,e.toDisplayString(l.sourceTitle||n.title),1),n.type==="video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.isShowPreview?(e.openBlock(),e.createElementBlock("video",{key:0,src:n.sources[l.initialIndex].src,autoplay:"autoplay",class:"cv-gallery-video",controls:"controls",width:"100%"},null,8,bn)):e.createCommentVNode("",!0)],64)):n.type==="iframe"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowPreview?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("iframe",{src:n.sources[l.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Sn)])):e.createCommentVNode("",!0)],64)):n.type==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[n.sliceSingle&&n.sources[l.initialIndex]||n.sources.length===1?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.sources[l.initialIndex].src,class:"cv-gallery-image"},null,8,Nn)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowCarousel?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,"initial-index":l.initialIndex,onChange:a.handleCarouselChange,"indicator-position":"outside"},n.carouselAttrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sources,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.createElementVNode("img",{src:c.src,class:"cv-gallery-image"},null,8,Bn)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)]),_:1},8,["visible"])}const En=p(Cn,[["render",xn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]);const $n={name:"gallery",components:{GalleryDialog:En},props:{type:{type:String,default:"image",validator(t){return["image","video","iframe"].includes(t)}},size:Number,width:Number,height:Number,lazy:{type:Boolean,default:!1},source:[String,Array,Object],thumbSuffix:String,thumbStyle:Object,carouselAttrs:Object,removeFn:Function,title:String,sliceSingle:{type:Boolean,default:!1}},data(){return{}},computed:{viewClass(){return this.type==="video"||this.type==="iframe"?"el-icon-video-play":"el-icon-zoom-in"},computedStyle(){let t=this.width||this.size,o=this.height||this.size;return this.type==="image"?(t=t?t+"px":"150px",o=o?o+"px":"150px"):(this.type==="video"||this.type==="iframe")&&(t=t?t+"px":"360px",o=o?o+"px":"auto"),Object.assign({},{width:t,height:o,display:"block"},this.thumbStyle)},thumbs(){return this.computedSources.map(t=>t.thumb)},computedSources(){const t=this.source;if(typeof t=="string")return[this.getStringSource(t)];if(t instanceof Array){const o=[];return t.forEach(n=>{n instanceof Object?o.push(this.getObjectSource(n)):typeof n=="string"&&o.push(this.getStringSource(n))}),o}else return t instanceof Object?[this.getObjectSource(t)]:[]}},methods:{handlePreview(t){this.$refs.dialog.startPreview(t)},handleRemove(t){this.removeFn(t)},getStringSource(t){let o=t;return this.type==="image"&&this.thumbSuffix&&(o+=this.thumbSuffix),{type:this.type,src:t,thumb:o}},getObjectSource(t){return t.type=t.thumb?"image":this.type,t.thumb=t.thumb||t.src,t}}},Tn={key:0,class:"cv-gallery"},Dn={class:"el-upload-list el-upload-list--picture-card"},In=["src"],Fn=["src"],zn={class:"el-upload-list__item-actions"},Ln=["onClick"],jn=["onClick"],On=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Pn=[On];function An(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("GalleryDialog");return n.source?(e.openBlock(),e.createElementBlock("div",Tn,[e.createElementVNode("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.computedSources,(d,c)=>(e.openBlock(),e.createElementBlock("li",{key:c,class:"el-upload-list__item"},[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({source:d,index:c})),()=>[d.type==="image"?(e.openBlock(),e.createBlock(s,{key:0,lazy:n.lazy,src:d.thumb,style:e.normalizeStyle(a.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):d.type==="video"?(e.openBlock(),e.createElementBlock("video",{key:1,src:d.thumb,style:e.normalizeStyle(a.computedStyle)},null,12,In)):d.type==="iframe"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(a.computedStyle),class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},[e.createElementVNode("iframe",{src:d.thumb,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Fn)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("span",zn,[e.createElementVNode("span",{onClick:u=>a.handlePreview(c,d)},[e.createElementVNode("i",{class:e.normalizeClass(a.viewClass)},null,2)],8,Ln),n.removeFn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:u=>a.handleRemove(c)},Pn,8,jn)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"action",e.normalizeProps(e.guardReactiveProps({source:d,index:c})))])]))),128))]),e.createVNode(r,{carouselAttrs:n.carouselAttrs,sliceSingle:n.sliceSingle,sources:a.computedSources,title:n.title,type:n.type,ref:"dialog"},null,8,["carouselAttrs","sliceSingle","sources","title","type"])])):e.createCommentVNode("",!0)}const ue=p($n,[["render",An],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);re.install=function(t){t.component(re.name,re)};ce.install=function(t){t.component(ce.name,ce)};de.install=function(t){t.component(de.name,de)};ue.install=function(t){t.component(ue.name,ue)};const Un={name:"cvRadioOptBase",extends:g.ElRadio};function Rn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const he=p(Un,[["render",Rn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),Mn={name:"cvRadioOptBtn",extends:g.ElRadioButton};function Hn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const pe=p(Mn,[["render",Hn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),qn={name:"cvRadioGroup",props:{...g.ElRadioGroup.props,modelValue:{default:""},type:{type:[String],default:"base"},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localText:[],localVal:this.modelValue,localOpt:[]}},created(){this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function Wn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-button"),d=e.resolveComponent("el-radio-group");return e.openBlock(),e.createBlock(d,{class:"cv-radio-group",modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>l.localVal=c)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const me=p(qn,[["render",Wn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);he.install=function(t){t.component(he.name,he)};pe.install=function(t){t.component(pe.name,pe)};me.install=function(t){t.component(me.name,me)};const Kn={name:"cvCheckboxOptBase",extends:g.ElCheckbox};function Zn(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const fe=p(Kn,[["render",Zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),Qn={name:"cvCheckboxOptBtn",extends:g.ElCheckboxButton,props:{}};function Gn(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const ge=p(Qn,[["render",Gn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Lt={props:{...g.ElCheckboxGroup.props,modelValue:{type:[Array],default(){return[]}},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localVal:this.modelValue,localOpt:[]}},created(){this.handleChange(),this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}this._parseLocalOptDiy()},_parseLocalOptDiy(){}}},Jn={name:"cvCheckboxAll",mixins:[Lt],components:{},data(){return{checkAll:!1,isIndeterminate:!0,localOptAll:[]}},methods:{handleCheckAllChange(t){this.localVal=t?this.localOptAll:[],this.isIndeterminate=!1,this.handleChange()},handleCheckedCitiesChange(t){let o=t.length;this.checkAll=o===this.localOptAll.length,this.isIndeterminate=o>0&&o<this.localOptAll.length},_parseLocalOptDiy(){this.localOpt&&this.localOpt.length!==0&&this.localOpt.map(t=>{t.disabled||this.localOptAll.push(t.label)})}}},Xn={class:"cv-checkbox-all"},Yn=e.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function el(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",Xn,[e.createVNode(s,{indeterminate:l.isIndeterminate,modelValue:l.checkAll,"onUpdate:modelValue":o[0]||(o[0]=d=>l.checkAll=d),onChange:a.handleCheckAllChange},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["indeterminate","modelValue","onChange"]),Yn,e.createVNode(r,{modelValue:t.localVal,"onUpdate:modelValue":o[1]||(o[1]=d=>t.localVal=d),onChange:a.handleCheckedCitiesChange},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{label:d.label,key:c,onChange:t.handleChange,disabled:t.disabled||d.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["label","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const _e=p(Jn,[["render",el],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),tl={name:"cvCheckboxGroup",mixins:[Lt],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function ol(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-button"),d=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>t.localVal=c)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.label,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","onChange","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.label,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","onChange","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const ve=p(tl,[["render",ol],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);fe.install=function(t){t.component(fe.name,fe)};ge.install=function(t){t.component(ge.name,ge)};ve.install=function(t){t.component(ve.name,ve)};_e.install=function(t){t.component(_e.name,_e)};function nl(t,o,n){var i=n||{},l=i.noTrailing,a=l===void 0?!1:l,s=i.noLeading,r=s===void 0?!1:s,d=i.debounceMode,c=d===void 0?void 0:d,u,m=!1,h=0;function f(){u&&clearTimeout(u)}function C(y){var v=y||{},k=v.upcomingOnly,w=k===void 0?!1:k;f(),m=!w}function _(){for(var y=arguments.length,v=new Array(y),k=0;k<y;k++)v[k]=arguments[k];var w=this,S=Date.now()-h;if(m)return;function B(){h=Date.now(),o.apply(w,v)}function T(){u=void 0}!r&&c&&!u&&B(),f(),c===void 0&&S>t?r?(h=Date.now(),a||(u=setTimeout(c?T:B,t))):B():a!==!0&&(u=setTimeout(c?T:B,c===void 0?t-S:t))}return _.cancel=C,_}function ll(t,o,n){var i=n||{},l=i.atBegin,a=l===void 0?!1:l;return nl(t,o,{debounceMode:a!==!1})}function P(t,o=!1){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("id",t),o?n.setAttribute("href",t+"?t="+new Date().getTime()):n.setAttribute("href",t),document.getElementById(t)||document.head.appendChild(n)}function N(t,o=!1,n=!0){return new Promise((i,l)=>{const a=document.createElement("script");t=t.replace(/([^:]\/)\/+/g,"$1"),a.src=t,a.id=t,a.type="text/javascript",o?a.src=t+"?t="+new Date().getTime():a.src=t,document.getElementById(t)&&n?i():(document.body.appendChild(a),a.onload=()=>{i()})})}function al(t){const o=t,n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("Copy"),g.ElMessage({message:"复制成功",type:"success"}),n.remove()}const il={name:"cvGeoCity",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{modelValue(t){},initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict();break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},sl={class:"cv-geo-city"},rl={key:0},cl={key:1};function dl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",sl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",rl,[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",cl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const ye=p(il,[["render",dl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]);const ul={name:"cvGeoCity2",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",hideMunicipality:!1,municipalities:["110000","120000","310000","500000","北京市","天津市","上海市","重庆市"],provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":if(delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict(),this.municipalities.indexOf(o.provinceCode)>-1){this.cityList.length==0&&this._getNeedCity();const i=this.cityList[0];this.cityCode=i.cityCode,this.changeCity(i.cityCode),this.handleChoose("cityCode",i,0);break}break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.hideMunicipality=this.municipalities.indexOf(this.provinceCode)>-1,this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]}),o=="500100"&&n.substring(0,4)=="5002"&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},hl={class:"cv-geo-city"},pl=["hidden"],ml={key:1};function fl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,hidden:l.hideMunicipality},[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])],8,pl)),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",ml,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:m=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const ke=p(ul,[["render",fl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);ye.install=function(t){t.component(ye.name,ye)};ke.install=function(t){t.component(ke.name,ke)};const gl={...g.ElOption,extends:g.ElOption,name:"cvSelectOpt"},Ce=p(gl,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]);const _l={name:"cvSelectBase",emits:["onChoose","change","update:modelValue"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"}},watch:{modelValue(t){this.localVal=t},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(t){this.handleChange()}},data(){return{localVal:this.modelValue,localOpt:[]}},methods:{handleChoose(t,o){this.$emit("onChoose",t,o)},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";if(a=a===0?0:a||l,this.dataDisabled.length>0)for(let s in this.dataDisabled)this.dataDisabled[s][n]==a&&(i.disabled=!0);t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function vl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(r,e.mergeProps({class:"cv-select-base"},t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),size:t.size,filterable:"",clearable:""}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{onClick:u=>a.handleChoose(d,c),disabled:d.disabled,label:d.label,value:d.value,key:c},null,8,["onClick","disabled","label","value"]))),128))])]),_:3},16,["modelValue","size"])}const we=p(_l,[["render",vl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]);const yl={name:"cvSelectTree",emits:["update:modelValue","change"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default:()=>({value:"id",label:"title",children:"children"})},clearable:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!0},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},refID:{type:[String],required:!1,default(){return"cvSelectTree-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}}},watch:{modelValue(){this.localVal=this.modelValue,this.initHandle()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange()}},data(){return{localVal:"",localOpt:[],localTitle:"",defaultExpandedKey:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},mounted(){this.localVal=this.modelValue,this.initHandle()},methods:{initHandle(){if(this.localVal){var t=this.$refs[this.refID+"tree"].getNode(this.localVal);t&&(this.localTitle=t.data[this.dataField.label],this.$refs[this.refID+"tree"].setCurrentKey(this.localVal),this.defaultExpandedKey=[this.localVal])}else this.clearHandle();this.initScroll()},initScroll(){this.$nextTick(()=>{let t=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-select-dropdown__wrap")[0],o=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-scrollbar__bar");t.style.cssText="margin: 0px; max-height: none; overflow: hidden;",o.forEach(n=>n.style.width=0)})},handleNodeClick(t,o,n){t.disabled||(this.localTitle=t[this.dataField.label],this.localVal=t[this.dataField.value],this.defaultExpandedKey=[],this.$refs[this.refID].blur())},clearHandle(){this.localTitle="",this.localVal="",this.defaultExpandedKey=[],this.clearSelected()},clearSelected(){document.querySelectorAll(`#${this.refID}tree .el-tree-node`).forEach(o=>o.classList.remove("is-current"))},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists;this.dataField&&this.dataField.label;let o=this.dataField&&this.dataField.value||"value",n=this.dataField&&this.dataField.children||"children",i=this.dataDisabled;l(t);function l(a){for(let s in a)i.map(r=>{a[s][o]==r[o]&&(a[s].disabled=!0)}),a[s][n]&&l(a[s][n])}this.localOpt=t}}};function kl(t,o,n,i,l,a){const s=e.resolveComponent("el-tree"),r=e.resolveComponent("el-option"),d=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{ref:n.refID,"popper-class":"cv-select-tree",modelValue:l.localTitle,onClear:a.clearHandle}),{default:e.withCtx(()=>[e.createVNode(r,{value:l.localTitle,label:l.localTitle,class:"options"},{default:e.withCtx(()=>[e.createVNode(s,{"highlight-current":"",id:n.refID+"tree",ref:n.refID+"tree",accordion:n.accordion,showCheckbox:n.showCheckbox,data:l.localOpt,props:n.dataField,"node-key":n.dataField.value,onNodeClick:a.handleNodeClick,"default-expand-all":n.defaultExpandAll},null,8,["id","accordion","showCheckbox","data","props","node-key","onNodeClick","default-expand-all"])]),_:1},8,["value","label"])]),_:1},16,["modelValue","onClear"])}const be=p(yl,[["render",kl],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);Ce.install=function(t){t.component(Ce.name,Ce)};we.install=function(t){t.component(we.name,we)};be.install=function(t){t.component(be.name,be)};const Cl={name:"cvCascaderBase",components:{},props:{...g.ElCascader.props,modelValue:{type:[String,Array,Number],default(){}},dataLists:{type:[Array],default(){return[]}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},dataField:{type:[Object],default(){return{}}},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localOpt:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists,o=this.dataField&&this.dataField.value||"value",n=this.dataDisabled;i(t);function i(l){for(let a in l)n.map(s=>{l[a][o]==s[o]&&(l[a].disabled=!0)}),l[a].children&&i(l[a].children)}this.localOpt=t},getCheckedNodes(){}}},wl={class:"cv-cascader-base block"};function bl(t,o,n,i,l,a){const s=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",wl,[e.createVNode(s,e.mergeProps(t.$props,{props:a.props2,modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),options:l.localOpt,onChange:a.handleChange,onGetCheckedNodes:a.getCheckedNodes}),null,16,["props","modelValue","options","onChange","onGetCheckedNodes"])])}const Ve=p(Cl,[["render",bl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);Ve.install=function(t){t.component(Ve.name,Ve)};const jt={props:{...g.ElTimePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue,Array.isArray(this.modelValue)&&(!isNaN(this.modelValue[0])||!isNaN(this.modelValue[1]))||isNaN(this.modelValue)},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}},created(){},methods:{}};const Vl={name:"cvTimeBase",mixins:[jt],props:{format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function Sl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-base"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"picker-options":{}}),null,16,["modelValue","format"])}const Se=p(Vl,[["render",Sl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]);const Nl={name:"cvTimeRange",mixins:[jt],props:{format:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function Bl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-range"},t.$props,{"is-range":"",modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder}),null,16,["modelValue","format","range-separator","start-placeholder","end-placeholder"])}const Ne=p(Nl,[["render",Bl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),vt={props:{...g.ElDatePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null},pickerOptions:{type:Boolean,default:!1}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue,Array.isArray(this.modelValue)&&(!isNaN(this.modelValue[0])||!isNaN(this.modelValue[1]))||isNaN(this.modelValue)},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}}};const xl={name:"cvDateBase",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:[String,Number],default:"选择日期"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function El(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"date","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const Be=p(xl,[["render",El],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]);const $l={name:"cvDateRange",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function Tl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"daterange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const xe=p($l,[["render",Tl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]);const Dl={name:"cvDatetimeBase",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd HH:mm:ss"},placeholder:{type:[String,Number],default:"选择日期时间"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function Il(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetime","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const Ee=p(Dl,[["render",Il],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]);const Fl={name:"cvDatetimeRange",mixins:[vt],props:{valueFormat:{type:String,default:"yyyy-MM-dd HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function zl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetimerange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,align:"right","picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const $e=p(Fl,[["render",zl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);Se.install=function(t){t.component(Se.name,Se)};Ne.install=function(t){t.component(Ne.name,Ne)};Be.install=function(t){t.component(Be.name,Be)};xe.install=function(t){t.component(xe.name,xe)};Ee.install=function(t){t.component(Ee.name,Ee)};$e.install=function(t){t.component($e.name,$e)};const Ll={name:"cvSwitchBase",props:{...g.ElSwitch.props,activeColor:{type:[String],default:""},inactiveColor:{type:[String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){this.localVal=this.modelValue},methods:{}};function jl(t,o,n,i,l,a){const s=e.resolveComponent("el-switch");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)}),null,16,["modelValue"])}const Te=p(Ll,[["render",jl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);Te.install=function(t){t.component(Te.name,Te)};const Ol={name:"cvCodeSms",mixins:[],components:{},props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:"请输入验证码"},disabled:{type:Boolean,default:!1},mobile:{type:[Number,String],default:""},mobileParam:{type:String,default:"mobile"},codeUrl:{type:String,default:""},codeSign:{type:Boolean,default:!1},codeApiFunc:{type:Function,default:null},waitTime:{type:[Number,String],default:60}},watch:{mobile(t){this.localMobile=t},modelValue(t){this.localVal=t}},data(){return{localVal:this.modelValue,localMobile:"",nextTime:0,diyPlaceholder:"短信验证码",btnDisabled:!1,btnText:"获取验证码",btnIntervalObj:null}},created(){this.localMobile=this.mobile},methods:{showDiyMsg(t){this.$message(t)},getSmsCode(){if(!this.localMobile){this.showDiyMsg("手机号不正确"),this.$emit("onGetSms",!1);return}if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localMobile)){this.showDiyMsg("手机号格式不正确"),this.$emit("onGetSms",!1);return}if(!this.codeUrl&&!this.codeApiFunc){this.showDiyMsg("短信接口地址不能为空");return}this.btnDisabled=!0,!this.btnIntervalObj&&this.btnDisabled&&(this.btnText="请稍后...",this.codeApiFunc?this.codeApiFunc({postType:"sendSms",cto_sms_type:"alterMobile",sendCode:"发送验证码",[this.mobileParam]:this.localMobile}).then(o=>{let n=o;n.status==200?(this.showDiyMsg("发送成功!"),setTimeout(()=>{if(this.codeSign){let i=n.data&&n.data.sign||"";this.diyPlaceholder="识别码:"+i}this.smsCodeWaitTime()},500)):(this.showDiyMsg("短信获取失败,请检查网络"),this.btnDisabled=!1,this.btnText="获取验证码")}).catch(o=>{this.btnDisabled=!1,this.btnText="获取验证码"}):(this.btnDisabled=!1,this.btnText="重新获取验证码"))},smsCodeWaitTime(){this.nextTime=Date.parse(new Date)/1e3+parseInt(this.waitTime),this.btnIntervalObj=setInterval(()=>{let t=this.nextTime-Date.parse(new Date)/1e3;t<=0?(clearInterval(this.btnIntervalObj),this.btnText="重新获取验证码",this.btnIntervalObj=0,this.btnDisabled=!1):(this.btnDisabled=!0,this.btnText=t.toString()+"s")},100)},updateInput(t){this.$emit("update:modelValue",this.localVal)}}};function Pl(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),clearable:"",placeholder:l.diyPlaceholder,onInput:a.updateInput}),{append:e.withCtx(()=>[e.createVNode(s,{onClick:a.getSmsCode,disabled:l.btnDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.btnText),1)]),_:1},8,["onClick","disabled"])]),_:1},16,["modelValue","placeholder","onInput"])}const De=p(Ol,[["render",Pl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);De.install=function(t){t.component(De.name,De)};function Al(t,o,n){let i;n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to post ${t} ${n.status}`;const l=new Error(i);return l.status=n.status,l.method="post",l.url=t,l}function Ul(t){const o=t.responseText||t.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Rl(t){if(typeof XMLHttpRequest>"u")return;const o=new XMLHttpRequest,n=t.action;o.upload&&(o.upload.onprogress=function(s){s.total>0&&(s.percent=s.loaded/s.total*100),t.onProgress(s)});const i=new FormData;t.data&&Object.keys(t.data).forEach(a=>{i.append(a,t.data[a])}),i.append(t.filename,t.file,t.file.name),o.onerror=function(s){t.onError(s)},o.onload=function(){if(o.status<200||o.status>=300)return t.onError(Al(n,t,o));t.onSuccess(Ul(o))},o.open("post",n,!0),t.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const l=t.headers||{};for(const a in l)Object.prototype.hasOwnProperty.call(l,a)&&l[a]!==null&&o.setRequestHeader(a,l[a]);return o.send(i),o}const yt={inheritAttrs:!1,props:{valInit:{type:[String,Array],default:()=>""},drag:{type:Boolean,default:!1},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},httpRequest:Function,accept:String,beforeRemove:Function,upResponseFn:Function,fileSize:{type:Number,default:2}},data(){return{isUploadComponent:!0}},computed:{upAction(){return this.mergeAttrs.upAction||"https://httpbin.org/post"},upHeaders(){return this.mergeAttrs.upHeaders||{}},upData(){return this.mergeAttrs.upData||{}},upName(){return this.mergeAttrs.upName||"file"},componentName(){return this.$options.name},mergeAttrs(){let t=this.$cvUiParams||{},o=t.upload||{},n={};return this.isUploadComponent?n=Object.assign({},o,t[this.componentName]):n=t[this.componentName],Object.assign({},n,this.$attrs)}},methods:{handleImageUpload(t,o){const n=this.mergeAttrs;if(!t){this.$message.error("文件不存在");return}if(n.fileSize&&!(t.size/1024/1024<n.fileSize)){this.$message.error(`上传文件大小 ${n.fileSize} MB!`);return}if(!t.type.includes("image")){this.$message.error("上传类型错误");return}if(!n.upAction){this.$message.error("上传地址错误");return}Rl({action:n.upAction,file:t,headers:n.upHeaders,filename:n.upName,data:n.upData,onProgress(){return!1},onSuccess:l=>{n.upResponseFn&&(t.url=URL.createObjectURL(t),l=n.upResponseFn(l,t)),o(l)},onError:l=>{this.$message.error("上传错误")}})},beforeRemove2(){return new Promise((t,o)=>{this.$confirm("提示",{title:"确定删除??",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t(!0)}).catch(()=>{o(!1)})})},uploadRequestFn(t){let o=new FormData;o.append("file",t.file);let n="";t.file.type==="image/png"?n="png":n="jpg",axios({url:"http://api.10.com/v1sdk/ctofile.file_img_opt",methods:"post",data:o,headers:{"Content-Type":"multipart/form-data",...this.headers}}).then(i=>{})}}};const Ml={name:"cvUploadAvatar",mixins:[yt],components:{},props:{fileSize:{type:[Number],default:2},src:{type:[String],default:""}},data(){return{imageUrl:""}},mounted(){this.imageUrl=this.src||""},methods:{upAvatarBefore(t){var o=new Array;o=t.name.split(".");const n=o[o.length-1]==="jpg",i=o[o.length-1]==="png",l=o[o.length-1]==="gif",a=o[o.length-1]==="jpeg";if(!n&&!i&&!a&&l)return this.$message.error("只能上传jpg/png/gif/jpeg格式图片!"),!1;const s=t.size/1024/1024<this.fileSize;return s||this.$message.error(`上传头像图片大小不能超过 ${this.fileSize}MB!`),n||i||l||a&&s},upAvatarSuccess(t,o){this.imageUrl=URL.createObjectURL(o.raw)}}},Hl={class:"cv-upload-avatar"},ql=["src"],Wl={key:1,class:"el-icon-plus cv-upload-avatar__icon"};function Kl(t,o,n,i,l,a){const s=e.resolveComponent("el-upload");return e.openBlock(),e.createElementBlock("div",Hl,[e.createVNode(s,e.mergeProps({action:t.upAction,withCredentials:t.withCredentials,showFileList:!1},{"before-upload":a.upAvatarBefore,"on-success":a.upAvatarSuccess}),{default:e.withCtx(()=>[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img"},null,8,ql)):(e.openBlock(),e.createElementBlock("i",Wl))]),_:1},16,["before-upload","on-success"])])}const Ie=p(Ml,[["render",Kl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]);const Zl={name:"cvUploadImage",mixins:[yt],components:{ShowGallery:ue},props:{modelValue:{type:[String,Array,Object],default(){return[]}},galleryLabel:{type:String,default:""},fileSize:{type:Number,default:2},fileType:{type:Array,default:()=>["png","jpg","jpeg","gif"]},size:{type:Number,default:150},isShowSuccessTip:{type:Boolean,default:!0},thumbSuffix:{type:String,default:""},isShowTip:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},upAccept:{type:String,default:"image/*"}},mounted(){this.fileList=this.initShowList()},data(){return{fileList:[],showList:[],imageUrl:"",uploading:!1,dialogVisibleImg:!1,ImgName:"",dialogImageUrl:""}},computed:{limit(){return this.multiple==!1?1:5},showTip(){return this.isShowTip&&(this.fileType.length||this.fileSize)},computedValues(){return this.modelValue?typeof this.modelValue=="string"?[this.modelValue]:Object.prototype.toString.call(this.modelValue)==="[object Object]"?[]:[...this.modelValue]:[]},isShowUpload(){return this.multiple?!0:this.computedValues.length===0},successFiles(){return this.fileList.filter(t=>t.status==="success")}},watch:{fileList(t){this.showList=[];for(let o in this.fileList){let n=this.fileList[o];this.showList.push(n.url)}},showList(t){},valInit(t){this.fileList=this.initShowList()}},methods:{getFileInfo(t){let o=t.lastIndexOf("/");return{name:t.substring(o+1,t.length),url:t}},initShowList(){if(this.valInit){const t=this.valInit;let o=[];if(typeof t=="string")o.push(this.getFileInfo(t));else if(Object.prototype.toString.call(t)==="[object Object]")t.name&&t.url&&o.push(t);else if(Object.prototype.toString.call(t)==="[object Array]")for(let n in t){let i=t[n];typeof i=="string"?o.push(this.getFileInfo(i)):Object.prototype.toString.call(i)==="[object Object]"&&i.name&&i.url&&o.push(i)}return o}else return[]},upImageBefore(t){let o=!1;if(this.fileType.length){let n="";t.name.lastIndexOf(".")>-1&&(n=t.name.slice(t.name.lastIndexOf(".")+1)),o=this.fileType.some(i=>!!(t.type.indexOf(i)>-1||n&&n.indexOf(i)>-1))}else o=t.type.indexOf("image")>-1;return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`),!1):(this.uploading=!0,!0):(this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`),!1)},upImageChange(t,o){this.uploading=!1,this.fileList=o},upImageExceed(){this.$message.error(`最多上传${this.limit}张图片`)},upImageError(t){this.uploading=!1,this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upImageSuccess(t,o,n){let i=t;this.uploading=!1,this.isShowSuccessTip&&this.$message.success("上传成功");const l=this.mergeAttrs;l&&typeof l.upResponseFn=="function"&&(i=l.upResponseFn(t,o)),this.upResponseFn&&(i=this.upResponseFn(t,o,this.successFiles)),this.multiple?Array.isArray(this.modelValue)?this.$emit("update:modelValue",[...this.modelValue,i]):this.$emit("update:modelValue",[i]):this.$emit("update:modelValue",i)},handlePictureCardPreview(t){var i,l,a;let o=t.raw||{},n="";o.type?n=o.type.split("/")[0]:n=(a=(l=(i=t==null?void 0:t.response)==null?void 0:i.body)==null?void 0:l.type)==null?void 0:a.split("/")[0],n=="image"?(this.dialogImageUrl=t.url,this.dialogVisibleImg=!0,this.ImgName=t.name):window.open(t.url)},doRemove(t){if(this.multiple){const o=[...this.computedValues];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.fileList=[],this.$emit("update:modelValue","")},handleRemoveDiy(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.multiple?this.computedValues[t]:this.computedValues,n=this.beforeRemove(o,this.computedValues);n&&n.then?n.then(()=>{this.doRemove(t)},()=>{}):n!==!1&&this.doRemove(t)}},handleRemove(t,o){if(this.fileList.length>0&&this.multiple)for(let n in this.fileList)this.fileList[n].uid==t.uid&&this.handleRemoveDiy(n);else this.handleRemoveDiy(t);this.fileList=o||[]}}},Ql={class:"cv-upload-image"},Gl=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),Jl=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),Xl=["src"],Yl=e.createElementVNode("i",{class:"el-icon-plus"},null,-1),ea=[Yl],ta={key:0,class:"el-upload__tip",slot:"tip"},oa={style:{color:"#f56c6c"}},na={style:{color:"#f56c6c"}},la={style:{color:"#f56c6c"}},aa=["src"];function ia(t,o,n,i,l,a){const s=e.resolveComponent("el-upload"),r=e.resolveComponent("el-dialog"),d=e.resolveComponent("ShowGallery"),c=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ql,[e.withDirectives(e.createVNode(s,e.mergeProps({ref:"upload",style:{marginBottom:n.multiple&&a.computedValues.length?"20px":"0px"}},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,withCredentials:t.withCredentials,limit:a.limit,multiple:n.multiple,drag:!!n.drag,listType:n.drag?"picture":"picture-card",disabled:l.uploading,showFileList:!0},{"file-list":l.fileList,"before-upload":a.upImageBefore,"on-change":a.upImageChange,"on-exceed":a.upImageExceed,"on-error":a.upImageError,"on-success":a.upImageSuccess,"http-request":t.httpRequest,"on-remove":a.handleRemove,"on-preview":a.handlePictureCardPreview}),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[n.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Gl,Jl],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img",style:e.normalizeStyle({width:n.size+"px",height:n.size+"px",lineHeight:n.size+"px"})},null,12,Xl)):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px",lineHeight:n.size+"px"})},ea,4))],64))])),[[c,l.uploading]]),a.showTip?(e.openBlock(),e.createElementBlock("div",ta,[e.createTextVNode(" 请上传 "),e.createElementVNode("b",oa,e.toDisplayString(n.fileType.length?n.fileType.join("/"):"图片"),1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且大小不超过 "),e.createElementVNode("b",na,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ,多图上传默认 "),e.createElementVNode("b",la,e.toDisplayString(a.limit)+"张",1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},16,["style","file-list","before-upload","on-change","on-exceed","on-error","on-success","http-request","on-remove","on-preview"]),[[e.vShow,a.isShowUpload]]),e.createVNode(r,{visible:l.dialogVisibleImg,title:l.ImgName,"append-to-body":!0,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("img",{width:"100%",src:l.dialogImageUrl,alt:"",style:{"max-width":"300px"}},null,8,aa)]),_:1},8,["visible","title"]),a.isShowUpload?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,lazy:n.lazy,"remove-fn":a.handleRemove,size:n.size,sliceSingle:!0,source:l.showList,thumbSuffix:n.thumbSuffix,title:n.galleryLabel},null,8,["lazy","remove-fn","size","source","thumbSuffix","title"]))])}const Fe=p(Zl,[["render",ia],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),sa={mdb:"access",accdb:"access",ai:"ai",html:"html",htm:"html",asp:"web",pdf:"pdf",psd:"photoshop",psb:"photoshop",mpo:"photoshop",eps:"photoshop",avi:"video",wmv:"video",rm:"video",rmvb:"video",mp4:"video","3gp":"video",asf:"video",mov:"video",m4v:"video",flv:"video",f4v:"video",mkv:"video",mts:"video",swf:"flash",ts:"video",mp3:"audio",wav:"audio",wma:"audio",ape:"audio",aac:"audio",zip:"zip",rar:"zip",gz:"zip","7z":"zip",z:"zip",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",txt:"txt",rtf:"txt",xls:"excel",xlsx:"excel",xlsm:"excel",xltx:"excel",doc:"word",docx:"word",docm:"word",wps:"word",dotx:"word",dotm:"word",ppt:"powerpoint",pptx:"powerpoint",mdf:"db",db:"db",dbf:"db",wdb:"db",vue:"vue",php:"php",jar:"jar",ini:"ini",bat:"bat",config:"config",fla:"fla",eot:"font",otf:"font",fon:"font",font:"font",ttf:"font",ttc:"font",woff:"font",woff2:"font",js:"js",md:"markdown",one:"onenote",jsx:"reactjs",xfl:"xfl",file:"file",css:"css"};function Ct(t){return`https://10ui.cn/icon_ext/${sa[t]}.svg`}const ra={name:"uploadList",props:{files:{type:Array,default(){return[]}},isShowDeleteConfim:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isShowSize:{type:Boolean,default:!0},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0}},methods:{getExtension(t){if(t.lastIndexOf(".")>-1){const o=t.slice(t.lastIndexOf(".")+1).toLowerCase();return Ct[o]||Ct.file}else return Ct.file},getSize(t){return t&&!isNaN(Number(t))?t:""},parsePercentage(t){return parseInt(t,10)},handleDownload(t){t.url},handleDelete(t,o){this.isShowDeleteConfim?this.$confirm("确认删除该文件吗? ").then(()=>{this.$emit("remove",t,o)}).catch(()=>{}):this.$emit("remove",t,o)}}},ca=["src"],da={class:"cv-upload-list__item-content-action"};function ua(t,o,n,i,l,a){const s=e.resolveComponent("el-link");return e.openBlock(),e.createBlock(e.TransitionGroup,{class:"cv-upload-file-list el-upload-list el-upload-list--text",name:"el-list",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.files,(r,d)=>(e.openBlock(),e.createElementBlock("li",{key:r.uid,class:"el-upload-list__item cv-upload-list__item-content"},[e.createVNode(s,{href:r.url,underline:!1,target:"_blank"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:a.getExtension(r.name),class:"el-upload-list__item-content-name-icon"},null,8,ca),e.createElementVNode("span",null,e.toDisplayString(r.name),1)]),_:2},1032,["href"]),e.createElementVNode("div",da,[n.isShowSize?(e.openBlock(),e.createBlock(s,{key:0,underline:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.getSize(r.size)),1)]),_:2},1024)):e.createCommentVNode("",!0),n.isCanDownload?(e.openBlock(),e.createBlock(s,{key:1,underline:!1,onClick:c=>a.handleDownload(r)},{default:e.withCtx(()=>[e.createTextVNode("下载")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),!n.disabled&&n.isCanDelete?(e.openBlock(),e.createBlock(s,{key:2,underline:!1,onClick:c=>a.handleDelete(d,r),type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]))),128))]),_:1})}const ha=p(ra,[["render",ua],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]);const pa={inheritAttrs:!1,name:"cvUploadFile",mixins:[yt],components:{uploadList:ha},props:{modelValue:[String,Object,Array],fileSize:[Number,String],fileType:Array,placeholder:String,disabled:Boolean,isShowSize:{type:Boolean,default:!0},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0},isShowDeleteConfim:{type:Boolean,default:!0},isCanUploadSame:{type:Boolean,default:!0},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},limit:Number},data(){return{fileList:[]}},computed:{btnText(){return this.placeholder?this.placeholder:this.multiple?"上传文件":"上传单个文件"},showTip(){return this.isShowTip&&(this.fileType||this.fileSize)},list(){let t=1;return this.modelValue?(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).map(n=>(typeof n=="string"&&(n={name:n,url:n}),n.uid=n.uid||new Date().getTime()+t++,n)):[]}},methods:{upFileChange(t,o){this.fileList=o},upFileBefore(t){if(this.fileType){let o="";if(t.name.lastIndexOf(".")>-1&&(o=t.name.slice(t.name.lastIndexOf(".")+1)),!this.fileType.some(i=>!!(t.type.indexOf(i)>-1||o&&o.indexOf(i)>-1)))return this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`),!1}return this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`),!1):!this.isCanUploadSame&&this.list.some(n=>n.name+n.size===t.name+t.size)?(this.$message.error("此文件已上传!"),!1):!0},upFileExceed(){this.$message.error(`最多上传${this.limit}个文件`)},upFileError(t){this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upFileSuccess(t,o){this.isShowSuccessTip&&this.$message.success("上传成功"),this.upResponseFn&&(t=this.upResponseFn(t,o,this.list)),this.multiple?this.$emit("update:modelValue",[...this.list,t]):this.$emit("update:modelValue",t),this.$emit("success",t,this.list)},handleRemove(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.beforeRemove(this.list[t],this.list);o&&o.then?o.then(()=>{this.doRemove(t)},()=>{}):o!==!1&&this.doRemove(t)}},doRemove(t){if(this.$emit("remove",this.list[t],this.list),this.fileList.splice(t,1),this.multiple){const o=[...this.list];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.$emit("update:modelValue",null)}},created(){this.fileList=this.list}},ma={class:"cv-upload-file"},fa={key:0,class:"el-upload__tip"},ga={style:{color:"#f56c6c"}},_a={style:{color:"#f56c6c"}};function va(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("upload-list");return e.openBlock(),e.createElementBlock("div",ma,[n.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,class:"cv-upload-file-uploader",ref:"upload"},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,drag:!1,limit:n.limit,multiple:n.multiple,showFileList:!0,fileList:l.fileList},{"before-upload":a.upFileBefore,"on-change":a.upFileChange,"on-exceed":a.upFileExceed,"on-error":a.upFileError,"on-success":a.upFileSuccess}),{tip:e.withCtx(()=>[a.showTip?(e.openBlock(),e.createElementBlock("div",fa,[e.createTextVNode(" 请上传 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" 大小不超过 "),e.createElementVNode("b",ga,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.fileType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" 格式为 "),e.createElementVNode("b",_a,e.toDisplayString(n.fileType.join("/")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" 的文件 ")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:"el-icon-upload"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.btnText),1)]),_:1})]),_:1},16,["before-upload","on-change","on-exceed","on-error","on-success"])),e.createVNode(d,{disabled:n.disabled,files:a.list,isCanDelete:n.isCanDelete,isCanDownload:n.isCanDownload,isShowDeleteConfim:n.isShowDeleteConfim,isShowSize:n.isShowSize,onRemove:a.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","isShowSize","onRemove"])])}const ze=p(pa,[["render",va],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]);const ya={name:"cvUploadVideo",mixins:[yt],components:{},props:{modelValue:{type:String},fileSize:{type:Number,default:10},fileType:{type:Array},width:{type:Number,default:360},height:{type:Number},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},upAccept:{type:String,default:"image/*"}},data(){return{isShowVideo:!1,videoUploadPercent:0}},computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{upVideoBefore(t){let o=!1;if(Array.isArray(this.fileType)){const n=t.type.split("/");o=n[0]==="video"&&this.fileType.includes(n[1])}else o=t.type.includes("video");return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传视频大小不能超过${this.fileSize}MB哦!`),!1):!0:(this.$message.error(`${t.name}格式不正确, 请上传格式正确的视频`),!1)},upVideoProcess(t,o){this.videoUploadPercent=Number(o.percentage.toFixed(0))},upVideoSuccess(t,o){this.videoUploadPercent=0,this.isShowSuccessTip&&this.$message.success("上传成功!"),this.upResponseFn?this.$emit("update:modelValue",this.upResponseFn(t,o)):this.$emit("update:modelValue",t)},upVideoError(t,o,n){this.$message.error("上传失败, 请重试!"),this.videoUploadPercent=0,this.$emit("error",t,o,n)},doRemove(){this.$emit("delete"),this.$emit("update:modelValue",null)},handleRemove(){if(!this.beforeRemove)this.doRemove();else if(typeof this.beforeRemove=="function"){const t=this.beforeRemove(this.modelValue);t&&t.then?t.then(()=>{this.doRemove()},()=>{}):t!==!1&&this.doRemove()}},handlePlayerVideo(){this.isShowVideo=!0},handleHoverClick(){this.$emit("click")}}},ka={class:"cv-upload-video"},Ca=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),wa=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将视频拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),ba={key:0,class:"el-upload__tip",slot:"tip"},Va={style:{color:"#f56c6c"}},Sa={style:{color:"#f56c6c"}},Na={key:1,class:"vue-hover-mask"},Ba=["src"],xa=e.createElementVNode("i",{class:"el-icon-zoom-in"},null,-1),Ea=[xa],$a=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Ta=[$a],Da=["src"];function Ia(t,o,n,i,l,a){const s=e.resolveComponent("el-progress"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",ka,[n.modelValue?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,drag:!0,disabled:l.videoUploadPercent>0&&l.videoUploadPercent<100,showFileList:!1,withCredentials:t.withCredentials},{"before-upload":a.upVideoBefore,"on-error":a.upVideoError,"on-progress":a.upVideoProcess,"on-success":a.upVideoSuccess,httpRequest:t.httpRequest}),{default:e.withCtx(()=>[l.videoUploadPercent>0?(e.openBlock(),e.createBlock(s,{key:0,percentage:l.videoUploadPercent,style:{"margin-top":"20px"},type:"circle"},null,8,["percentage"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Ca,wa,a.showTip?(e.openBlock(),e.createElementBlock("div",ba,[e.createTextVNode(" 请上传 "),e.createElementVNode("span",Va," "+e.toDisplayString(this.fileType?this.fileType.join("/"):"视频")+" ",1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且文件大小不超过 "),e.createElementVNode("span",Sa,e.toDisplayString(n.fileSize),1),e.createTextVNode("  MB ")],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))]),_:1},16,["before-upload","on-error","on-progress","on-success","httpRequest"])),n.modelValue?(e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("video",{autoplay:!1,src:n.modelValue,style:e.normalizeStyle({width:n.width+"px",height:n.height?n.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,Ba),e.createElementVNode("span",{onClick:o[2]||(o[2]=(...c)=>a.handleHoverClick&&a.handleHoverClick(...c)),class:"vue-hover-mask_actions"},[e.createElementVNode("span",{onClick:o[0]||(o[0]=(...c)=>a.handlePlayerVideo&&a.handlePlayerVideo(...c)),class:"cv-upload-video_mask__item"},Ea),e.createElementVNode("span",{onClick:o[1]||(o[1]=(...c)=>a.handleRemove&&a.handleRemove(...c)),class:"cv-upload-video_mask__item"},Ta)])])):e.createCommentVNode("",!0),e.createVNode(d,{visible:l.isShowVideo,"append-to-body":""},{default:e.withCtx(()=>[l.isShowVideo?(e.openBlock(),e.createElementBlock("video",{key:0,autoplay:!0,src:n.modelValue,controls:"controls",style:{width:"100%"}}," 您的浏览器不支持视频播放 ",8,Da)):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Le=p(ya,[["render",Ia],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);Ie.install=function(t){t.component(Ie.name,Ie)};Fe.install=function(t){t.component(Fe.name,Fe)};ze.install=function(t){t.component(ze.name,ze)};Le.install=function(t){t.component(Le.name,Le)};const Fa={name:"cvTabsJump",props:{tabPosition:{type:String,default:"top"}},provide(){return{addChildComponents:t=>{this.childComponents.push(t)},clearChildClass:()=>{this.childComponents.map(t=>{t.className=null})}}},data(){return{childComponents:[]}},computed:{tabPositionClass(){return this.tabPosition=="left"?"left":this.tabPosition=="right"?"right":this.tabPosition=="bottom"?"bottom":"top"}},created(){},mounted(){}},za={class:"tabs-header"};function La(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tabs-jump",a.tabPositionClass])},[e.createElementVNode("div",za,[e.renderSlot(t.$slots,"default")])],2)}const je=p(Fa,[["render",La],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),ja={name:"cvTabPane",emits:["click"],inject:["addChildComponents","clearChildClass"],data(){return{isshow:!0,className:null}},props:{label:{type:String,default:""},current:{type:Boolean,default:!1},name:{type:String}},mounted(){this.addChildComponents(this),this.initCurrent()},methods:{initCurrent(){this.current&&this.handleClick()},handleClick(){this.clearChildClass(),this.className="active",this.$emit("click")}}},Oa={key:1};function Pa(t,o,n,i,l,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tab-pane",l.className]),onClick:o[0]||(o[0]=(...s)=>a.handleClick&&a.handleClick(...s))},[t.$slots.label?e.renderSlot(t.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",Oa,e.toDisplayString(n.label),1))],2)),[[e.vShow,l.isshow]])}const Oe=p(ja,[["render",Pa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);je.install=function(t){t.component(je.name,je)};Oe.install=function(t){t.component(Oe.name,Oe)};const Aa={name:"cvDrawCaptcha",props:{modelValue:{type:[String,Number],default:"1234"},baseCode:{type:String,default:"1234567890ABCDEFGHGKMNPQRSTUVWXY"},fontSizeMin:{type:Number,default:25},fontSizeMax:{type:Number,default:30},backgroundColorMin:{type:Number,default:255},backgroundColorMax:{type:Number,default:255},colorMin:{type:Number,default:0},colorMax:{type:Number,default:160},lineColorMin:{type:Number,default:100},lineColorMax:{type:Number,default:255},dotColorMin:{type:Number,default:0},dotColorMax:{type:Number,default:255},contentWidth:{type:Number,default:112},contentHeight:{type:Number,default:31},refreshNum:{type:Number,default:1}},data(){return{localCode:""}},watch:{modelValue(t){this.localCode=t,this.drawPic()},refreshNum(){this.refreshCode(),this.drawPic()}},mounted(){this.modelValue==""&&(this.refreshCode(),this.drawPic())},created(){this.localCode=this.modelValue},methods:{refreshCode(){this.localCode="",this.makeCode(this.baseCode,4),this.$emit("update:modelValue",this.localCode)},makeCode(t,o){for(let n=0;n<o;n++)this.localCode+=this.baseCode[this.randomNum(0,this.baseCode.length)]},randomNum(t,o){return Math.floor(Math.random()*(o-t)+t)},randomColor(t,o){let n=this.randomNum(t,o),i=this.randomNum(t,o),l=this.randomNum(t,o);return"rgb("+n+","+i+","+l+")"},drawPic(){let o=document.getElementById("cv-draw-captcha").getContext("2d");o.textBaseline="bottom",o.fillStyle=this.randomColor(this.backgroundColorMin,this.backgroundColorMax),o.fillRect(0,0,this.contentWidth,this.contentHeight);for(let n=0;n<this.localCode.length;n++)this.drawText(o,this.localCode[n],n);this.drawLine(o),this.drawDot(o)},drawText(t,o,n){t.fillStyle=this.randomColor(this.colorMin,this.colorMax),t.font=this.randomNum(this.fontSizeMin,this.fontSizeMax)+"px SimHei";let i=(n+1)*(this.contentWidth/(this.localCode.length+1)),l=this.randomNum(this.fontSizeMax,this.contentHeight-5);var a=this.randomNum(-45,45);t.translate(i,l),t.rotate(a*Math.PI/180),t.fillText(o,0,0),t.rotate(-a*Math.PI/180),t.translate(-i,-l)},drawLine(t){for(let o=0;o<5;o++)t.strokeStyle=this.randomColor(this.lineColorMin,this.lineColorMax),t.beginPath(),t.moveTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.lineTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.stroke()},drawDot(t){for(let o=0;o<80;o++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight),1,0,2*Math.PI),t.fill()}}},Ua={class:"cv-draw-captcha"},Ra=["width","height"];function Ma(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",Ua,[e.createElementVNode("canvas",{id:"cv-draw-captcha",width:n.contentWidth,height:n.contentHeight,onClick:o[0]||(o[0]=(...s)=>a.refreshCode&&a.refreshCode(...s))},null,8,Ra)])}const Pe=p(Aa,[["render",Ma],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Ha={name:"cvDrawQrcode",data(){return{}}};function qa(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",null,"二维码")}const Ae=p(Ha,[["render",qa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);Pe.install=function(t){t.component(Pe.name,Pe)};Ae.install=function(t){t.component(Ae.name,Ae)};const Wa={name:"cvTagBase",mixins:[],components:{},props:{...g.ElTag.props,modelValue:{type:Array,default:null},closable:{type:Boolean,default:!1},disableTransitions:{type:Boolean,default:!1},effect:{type:String,default:"light"},type:{type:String,default:""},color:{type:String,default:""},hit:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){},methods:{addTag(){this.localVal.push("新标签"),this.$nextTick(()=>{let t=this.localVal.length,o=this.$refs[`newTag${t-1}`][0],n=document.createRange();n.selectNodeContents(o),window.getSelection().removeAllRanges(),window.getSelection().addRange(n)})},checkTag(t){let o=this.$refs[`newTag${t}`][0].innerText.trim();o.length==0?this.localVal.pop():this.localVal[t]=o},removeTag(t){this.localVal.splice(t,1)}}},Ka={class:"cv-tag-base"},Za=["onBlur"];function Qa(t,o,n,i,l,a){const s=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",Ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localVal,(r,d)=>(e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-tag-content"},{closable:n.closable,disableTransitions:n.disableTransitions,effect:n.effect,type:n.type,color:n.color,hit:n.hit,size:t.size},{onClose:c=>a.removeTag(d),key:d}),{default:e.withCtx(()=>[e.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${d}`,onBlur:c=>a.checkTag(d)},e.toDisplayString(r),41,Za)]),_:2},1040,["onClose"]))),128)),e.createElementVNode("i",{class:"el-icon-circle-plus-outline",onClick:o[0]||(o[0]=r=>a.addTag())})])}const Ue=p(Wa,[["render",Qa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Ue.install=function(t){t.component(Ue.name,Ue)};const Ga={name:"cvTransferTable",props:{modelValue:{type:[Array],default(){return[]}},showQuery:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},paginationCallBack:{type:Function,default:function(){return new Promise((t,o)=>{try{t({total:0,data:null})}catch{o()}})}},titleTexts:{type:Array,default(){return["待选项","已选项"]}},buttonTexts:{type:Array,default(){return[]}},queryTexts:{type:Array,default(){return["查询","筛选"]}},leftColumns:{type:Array,default(){return[]}},rightColumns:{type:Array,default(){}},minHeight:{type:String,default:"300px"},maxHeight:{type:String,default:"500px"},tableRowKey:{type:Function,default(t){return t&&t&&t.id}}},data(){return{leftTableData:[],rightTableData:[],pageIndex:1,pageSize:20,totalSize:0,leftSelection:[],rightSelection:[],leftQueryCondition:{},rightQueryCondition:{},rightConditionTemp:void 0}},watch:{modelValue(t){this.rightTableData=t}},created(){this.rightTableData=this.modelValue,this.handlePaginationCallBack()},computed:{hasButtonTexts(){return this.buttonTexts.length===2},buttonClasses(){return["transfer-button",{"is-with-texts":this.hasButtonTexts}]},disabledLeftButton(){return!this.leftSelection.some(t=>!this.rightTableData.some(o=>this.checkObjectIsEqual(t,o)))},calcRightTableData(){if(this.showQuery&&this.rightConditionTemp){const t=Object.keys(this.rightConditionTemp);return this.rightTableData.filter(o=>t.some(n=>{const i=o[n],l=this.rightConditionTemp[n].trim();return i?String(i).indexOf(l)>-1:!0}))}return this.rightTableData}},methods:{handleLeftSelectionChange(t){this.leftSelection=t},handleRightSelectionChange(t){this.rightSelection=t},handleLeftRowClick(t){this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))||this.$refs.leftTable.toggleRowSelection(t)},handleRightRowClick(t){this.$refs.rightTable.toggleRowSelection(t)},handleSizeChange(t){this.pageSize=t,this.handlePaginationCallBack()},handleCurrentChange(t){this.pageIndex=t,this.handlePaginationCallBack()},handlePaginationCallBack(){if(this.showPagination&&this.paginationCallBack){const t={pageIndex:this.pageIndex,pageSize:this.pageSize,...this.leftQueryCondition};this.paginationCallBack.call(null,t).then(o=>{o&&Array.isArray(o.data)&&(this.leftTableData=o.data,this.totalSize=o.total),this.$nextTick(()=>{this.leftTableData.forEach(n=>{const i=this.rightTableData.some(l=>this.checkObjectIsEqual(l,n));this.$refs.leftTable.toggleRowSelection(n,i)})})})}},handleRowStyle({row:t}){return this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))?{color:"blue"}:{}},handleSelectable(t){return!this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))},addToRight(){for(const t of this.leftSelection)this.rightTableData.some(n=>this.checkObjectIsEqual(n,t))||this.rightTableData.push(t);this.$emit("update:modelValue",this.rightTableData)},addToLeft(){this.rightSelection.forEach(t=>{const o=this.rightTableData.findIndex(n=>this.checkObjectIsEqual(n,t));if(o!==-1){this.rightTableData.splice(o,1);const n=this.leftTableData.find(i=>this.checkObjectIsEqual(i,t));n&&this.$refs.leftTable.toggleRowSelection(n,!1)}}),this.$emit("update:modelValue",this.rightTableData)},onLeftQuerySubmit(){this.handlePaginationCallBack()},onRightQuerySubmit(){this.rightConditionTemp=JSON.parse(JSON.stringify(this.rightQueryCondition))},checkObjectIsEqual(t,o){return this.tableRowKey(t)===this.tableRowKey(o)},clear(){this.rightTableData=[],this.$refs.leftTable.clearSelection();for(const t in this.leftQueryCondition)this.leftQueryCondition[t]=void 0;for(const t in this.rightQueryCondition)this.rightQueryCondition[t]=void 0;this.pageIndex=1,this.handlePaginationCallBack()}}},Ot=t=>(e.pushScopeId("data-v-d01ca678"),t=t(),e.popScopeId(),t),Ja={class:"cv-transfer-table"},Xa={class:"transfer-panel"},Ya={class:"transfer-panel-header"},ei={key:0},ti={style:{padding:"5px"}},oi={class:"transfer-buttons"},ni={key:0,class:"button-text"},li=Ot(()=>e.createElementVNode("i",{class:"el-icon-arrow-right"},null,-1)),ai=Ot(()=>e.createElementVNode("i",{class:"el-icon-arrow-left"},null,-1)),ii={key:0,class:"button-text"},si={class:"transfer-panel"},ri={class:"transfer-panel-header"},ci={key:0},di={style:{padding:"5px"}};function ui(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-form"),c=e.resolveComponent("el-table-column"),u=e.resolveComponent("el-table"),m=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock("div",Ja,[e.createElementVNode("div",Xa,[e.createElementVNode("p",Ya,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[0]),1),e.createElementVNode("span",null,e.toDisplayString(l.leftSelection.length)+"/"+e.toDisplayString(l.leftTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",ei,[e.createVNode(d,{inline:!0,model:l.leftQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"leftCondition",{scope:l.leftQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[0]||(o[0]=h=>a.onLeftQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[0]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"leftTable","max-height":n.maxHeight,height:n.minHeight,data:l.leftTableData,"row-key":n.tableRowKey,"row-style":a.handleRowStyle,onRowClick:a.handleLeftRowClick,onSelectionChange:a.handleLeftSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection",selectable:a.handleSelectable},null,8,["selectable"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.leftColumns,h=>(e.openBlock(),e.createBlock(c,{prop:h.id,key:h.id,label:h.label,width:h.width},{default:e.withCtx(f=>[e.renderSlot(t.$slots,"default",{scope:{row:f.row,col:h}},()=>[e.createElementVNode("span",null,e.toDisplayString(f.row[h.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","row-style","onRowClick","onSelectionChange"]),e.createElementVNode("div",ti,[n.showPagination?(e.openBlock(),e.createBlock(m,{key:0,onSizeChange:a.handleSizeChange,onCurrentChange:a.handleCurrentChange,"current-page":l.pageIndex,"page-sizes":[10,20,50,100],"page-size":l.pageSize,"pager-count":5,total:l.totalSize,layout:"total, sizes, prev, pager, next"},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",oi,[e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:a.disabledLeftButton,onClick:a.addToRight},{default:e.withCtx(()=>[n.buttonTexts[0]!==void 0?(e.openBlock(),e.createElementBlock("span",ni,e.toDisplayString(n.buttonTexts[0]),1)):e.createCommentVNode("",!0),li]),_:1},8,["class","disabled","onClick"]),e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:l.rightSelection.length===0,onClick:a.addToLeft},{default:e.withCtx(()=>[ai,n.buttonTexts[1]!==void 0?(e.openBlock(),e.createElementBlock("span",ii,e.toDisplayString(n.buttonTexts[1]),1)):e.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),e.createElementVNode("div",si,[e.createElementVNode("p",ri,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[1]),1),e.createElementVNode("span",null,e.toDisplayString(l.rightSelection.length)+"/"+e.toDisplayString(l.rightTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",ci,[e.createVNode(d,{inline:!0,model:l.rightQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"rightCondition",{scope:l.rightQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[1]||(o[1]=h=>a.onRightQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[1]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"rightTable","max-height":n.maxHeight,height:n.minHeight,data:a.calcRightTableData,"row-key":n.tableRowKey,onRowClick:a.handleRightRowClick,onSelectionChange:a.handleRightSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rightColumns||n.leftColumns,h=>(e.openBlock(),e.createBlock(c,{prop:h.id,key:h.id,label:h.label,width:h.width},{default:e.withCtx(f=>[e.renderSlot(t.$slots,"default",{scope:{row:f.row,col:h}},()=>[e.createElementVNode("span",null,e.toDisplayString(f.row[h.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","onRowClick","onSelectionChange"]),e.createElementVNode("div",di,[n.showPagination?(e.openBlock(),e.createBlock(m,{key:0,total:l.rightTableData.length,layout:"total"},null,8,["total"])):e.createCommentVNode("",!0)])])])}const Re=p(Ga,[["render",ui],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);Re.install=function(t){t.component(Re.name,Re)};const Nt={props:{...g.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({background:"#f8f8f9",color:"#606266"})}},data(){return{localTbLoading:!1,localTbData:[]}},watch:{modelValue(t){this.localTbData=t},localTbData(t){this.localTbData=t,this.$emit("update:modelValue",t)}},created(){this.localTbData=this.modelValue}},hi={methods:{handleCurrentChange(t){this.page=t,this.getData()},handleSizeChange(t){this.page_size=t,this.getData()}}};const pi={name:"cvTableBase",mixins:[Nt,hi],provide(){return{page:this.page,page_size:this.tableSetting.page_size||10}},props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}},tablePagin:{type:Object,default(){return{}}},dataParse:{type:[Function],default:()=>null}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,searchData:{},tableSetting:{},defResponse:{},tableConfDef:{url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"},page_sizes:[10,20,30,50,100,200],page:1},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.initTableConfAll(),this.refresh()}},updated(){},created(){},mounted(){},methods:{_getPageCurr(){return this.page},_getPageSize(){return this.tableSetting.page_size},getData(){this.localTbLoading=!0;const t=this.tableSetting;let o={...t.where};o[t.request.pageName]=this.page,o[t.request.limitName]=this.tableSetting.page_size,o=Object.assign(o,this.searchData),this.tableSetting.apiFunc&&typeof this.tableSetting.apiFunc=="function"?(this.localTbData=[],this.tableSetting.apiFunc(o).then(n=>{this.page=o[t.request.pageName],this.$nextTick(()=>{this.localTbLoading=!1});let i=this.sortOutData(n);if(i.status!=t.response.statusCode){g.ElMessage({message:i.msg,type:"error",duration:1300});return}if(i.data.length===0){g.ElMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let l=i[t.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"?this.localTbData=this.dataParse.call(null,l):this.localTbData=l,this.localTbTotal=i[t.response.countName]||0}).catch(n=>{this.localTbLoading=!1,this.$nextTick(()=>{this.localTbLoading=!1})})):(this.localTbData.length>0&&(this.localTbTotal=this.localTbData.length),this.localTbLoading=!1,this.$nextTick(()=>{this.localTbLoading=!1}))},handleSelectionChange(t){this.$emit("selection-change",t)},initTableConfAll(){let t={};const o=this.tableConfDef,n=this.tableConfig;Object.assign(t,o,n),t.page_size=t.page_sizes[0],this.page=t.page||1,Object.assign(t.where,this.searchData),this.tableSetting=t},sortOutData(t){let o=this.tableSetting.response,n={},i=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],i=t[o.dataName];for(let a in i)l[a]=i[a];return n.data=l,n},searchSubmit(t){if(this.searchData=t||{},this.tableSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}},beforeCreate(){},created(){this.initTableConfAll(),this.getData()},beforeMount(){},mounted(){},beforeUpdate(){},updated(){},beforeDestroy(){},destroyed(){}},mi={class:"cv-table-list"},fi={key:0,class:"cv-tablie-list-page page"};function gi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveComponent("cv-icons"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-pagination"),u=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",mi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,style:{width:"100%"},onSelectionChange:a.handleSelectionChange}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,l.localTbLoading]]),n.showPagebreak?e.withDirectives((e.openBlock(),e.createElementBlock("div",fi,[e.createVNode(d,{onClick:a.refresh,style:{float:"left",margin:"0 10px 0 0",padding:"5px 10px"}},{default:e.withCtx(()=>[e.createVNode(r,{type:"refresh",size:"14"})]),_:1},8,["onClick"]),e.createVNode(c,{background:"",onSizeChange:t.handleSizeChange,onCurrentChange:t.handleCurrentChange,"current-page":l.page,"pager-count":l.pager_count,"page-sizes":l.tableSetting.page_sizes,"page-size":l.tableSetting.page_size,layout:"total, sizes, prev, pager, next, jumper",total:l.localTbTotal},null,8,["onSizeChange","onCurrentChange","current-page","pager-count","page-sizes","page-size","total"])],512)),[[e.vShow,l.localTbLoading===!1]]):e.createCommentVNode("",!0)])}const Me=p(pi,[["render",gi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]);const _i={name:"cvTableTree",mixins:[Nt],provide(){return{page:this.page,page_size:this.tableSetting.page_size||10}},props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,searchData:{},tableSetting:{},tableConfDef:{url:null,apiFunc:null,mockData:null,where:{},tablePrimary:"",childName:"children",response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"}},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.refresh()}},updated(){},created(){},mounted(){},methods:{getData(){this.localTbLoading=!0;let t=this.tableSetting,o={...t.where};o=Object.assign(o,this.searchData),this.tableSetting.apiFunc&&typeof this.tableSetting.apiFunc=="function"?(this.localTbData=[],this.tableSetting.apiFunc(o).then(n=>{this.$nextTick(()=>{this.localTbLoading=!1});let i=this.sortOutData(n);if(i.status==t.response.statusCode){if(i.data.length===0){g.ElMessage({message:"没有更多数据了",type:"warning",duration:1300});return}this.localTbData=i[t.response.dataName],g.ElMessage({message:i.msg,type:"success",duration:1300})}else g.ElMessage({message:i.msg,type:"error",duration:1300})}).catch(n=>{this.localTbLoading=!1})):(this.localTbData.length>0&&(this.localTbTotal=this.localTbData.length),this.localTbLoading=!1)},handleSelectionChange(t){this.$emit("selection-change",t)},initTableConfAll(){let t={};const o=this.tableConfDef,n=this.tableConfig;Object.assign(t,o,n),Object.assign(t.where,this.searchData),this.tableSetting=t},sortOutData(t){let o=this.tableSetting.response,n={},i=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],i=t[o.dataName];for(let a in i)l[a]=i[a];return n.data=l,n},searchSubmit(t){if(this.searchData=t||{},this.tableSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}},beforeCreate(){},created(){this.initTableConfAll(),this.getData()},beforeMount(){},mounted(){},beforeUpdate(){},updated(){},beforeDestroy(){},destroyed(){}},vi={class:"cv-table-tree"};function yi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",vi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,style:{width:"100%"},onSelectionChange:a.handleSelectionChange,"row-key":l.tableSetting.tablePrimary,"tree-props":{children:l.tableSetting.childName,hasChildren:"hasChildren"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[r,l.localTbLoading]])])}const He=p(_i,[["render",yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]);const ki={name:"cvTableEditor",mixins:[Nt],provide(){return{page:0,page_size:10}},props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{localTbLoading:!1,localTbData:[],localTbTotal:0,mergeRules:{},apiFunc:null,tableSetting:{},tableConfDef:{apiFunc:null,apiMockData:null,apiParam:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.tableSetting=Object.assign({},this.tableConfDef,this.tableConfig)},mounted(){},methods:{cell_click(t,o,n,i){switch(this.cell_click_index=t.index,this.cell_click_label=o.label,o.label){case"taskid":this.cell_click_index=t.index,this.cell_click_label=o.label;break;case"taskname":this.cell_click_index=t.index,this.cell_click_label=o.label;break;default:return}},handleChangeTData(t){}}},Ci={class:"cv-table-editor"};function wi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ci,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:l.localTbData,"row-class-name":"cv-tbed-tr"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data"])),[[r,l.localTbLoading]])])}const qe=p(ki,[["render",wi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),bi={name:"cvTbColumnIndex",inject:{page:{default:1},page_size:{default:10}},props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:50},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(t){return this.continuity&&this.page&&this.page_size?t+1+(this.page-1)*this.page_size:t+1}}};function Vi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"index",index:a.indexMethod}),null,16,["index"])}const We=p(bi,[["render",Vi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),Si={name:"cvTbColumnCheck",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:[String],default:"center"},width:{type:[String,Number],default:55}},data(){return{}},created(){}};function Ni(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"selection"}),null,16)}const Ke=p(Si,[["render",Ni],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-check.vue"]]),Bi={name:"cvTbColumnText",props:{...g.ElTableColumn.props},data(){return{}},created(){},methods:{getContentText(t){let o=t.row[this.prop];return this.formatter&&(o=this.formatter(t.row,t.column)),o}}},xi={style:{display:"contents"}};function Ei(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("div",xi,e.toDisplayString(r.row[t.prop]),1)]),_:1},16)}const Ze=p(Bi,[["render",Ei],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]);const $i={name:"cvTbColumnImg",props:{...g.ElTableColumn.props,imgWidth:{type:[String,Number],default:null},imgHeight:{type:[String,Number],default:null}},data(){return{localImgWidth:"50px",localImgHeight:"50px",localImgArr:[],localImgOne:""}},created(){this.imgWidth&&(this.localImgWidth=this.imgWidth.indexOf("px")!==-1?this.imgWidth:this.imgWidth+"px"),this.imgHeight&&(this.localImgHeight=this.imgHeight.indexOf("px")!==-1?this.imgHeight:this.imgHeight+"px")},methods:{handleImgOne(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o[0];if(Object.prototype.toString.call(o)==="[object String]")return o}},handleImgArr(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o;if(Object.prototype.toString.call(o)==="[object String]")return[o]}},handleImgLeng(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o.length;if(Object.prototype.toString.call(o)==="[object String]")return 1}else return 0}}},Ti=e.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[e.createTextVNode(" 暂无 "),e.createElementVNode("br"),e.createTextVNode(" 图片 ")],-1),Di={key:0,class:"cv-table-column-img-mark"},Ii={class:"cv-table-column-img-text"};function Fi(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(r,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(d=>[e.createElementVNode("div",{class:"cv-table-column-img-box",style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight})},[e.createVNode(s,{style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight}),fit:"scale-down",lazy:"",src:a.handleImgOne(d.row),"preview-src-list":a.handleImgArr(d.row)},{default:e.withCtx(()=>[Ti]),_:2},1032,["style","src","preview-src-list"]),a.handleImgLeng(d.row)>1?(e.openBlock(),e.createElementBlock("p",Di,[e.createElementVNode("span",Ii,e.toDisplayString(a.handleImgLeng(d.row))+"张",1)])):e.createCommentVNode("",!0)],4)]),_:1},16)}const Qe=p($i,[["render",Fi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),zi={name:"cvTbColumnOpt",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Li(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Ge=p(zi,[["render",Li],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),ji={name:"cvTbColumnBase",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function Oi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Je=p(ji,[["render",Oi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Pi={name:"cvTbColumnExpand",props:{...g.ElTableColumn.props},data(){return{}},created(){}};function Ai(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"expand"}),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,props:r})))]),_:3},16)}const Xe=p(Pi,[["render",Ai],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),Ui={name:"cvTbColumnEnum",props:{...g.ElTableColumn.props,dataLists:{type:[Object,Array],default:()=>({})}},data(){return{}},created(){},methods:{dealTypeEnum(t){let o=Object.keys(this.dataLists);return t[this.prop]?this.dataLists[t[this.prop]]||"":this.dataLists[o[0]]||""}}};function Ri(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("span",null,e.toDisplayString(a.dealTypeEnum(r.row)),1)]),_:1},16)}const Ye=p(Ui,[["render",Ri],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]);const Mi={name:"cvTbEditSearch",props:{...g.ElTableColumn.props,modelValue:{type:[String],default:""},align:{type:[String],default:"left"}},data(){return{isEditIndex:null,localVal:"",autocompleteAttr:{debounce:0},searchSett:{searchFunc:null,searchParam:{},searchMockData:null,searchField:{}},searchResList:[],searchCurrClass:"",searchCurrTbIndex:0,searchIsSelect:!1}},watch:{modelValue(t){},localVal(t){this.$emit("update:modelValue",t)}},directives:{edfocus:{mounted:t=>{}}},created(){},methods:{searchEdit(t,o){this.isEditIndex=o,this.$nextTick(()=>{this.$refs[`cv-tbce-autocomplete${o}`].focus()})},searchSave(t,o){this.isEditIndex=null},searchSelect(t,o,n){this.searchIsSelect=!0,this.localTableData[n]=Object.assign(this.localTableData[n],t),this.localTableData[n].row_num=1,t.row_attr?this.localTableData[n].row_name=t.row_name+`<br><span class="cv-tbce-showtext-attr">[ ${t.row_attr} ]</span>`:this.localTableData[n].row_name=t.row_name},searchFocus(t,o){this.searchCurrClass="cvtegac"+t,this.searchCurrTbIndex=t},searchBlur(t,o){this.searchIsSelect||(this.isEditIndex=null)},searchQuery(t,o){this.searchIsSelect=!1,this.searchResList=[];const n=this.searchSett;if(n.searchMockData!=null&&n.searchMockData){if(!(typeof n.searchMockData!="Array"&&typeof n.searchMockData!="object")){const i=this.sortOutData(n.searchMockData);this.tableData=i,this.$message({message:i.msg||"",type:"warning",duration:1300})}this.$nextTick(()=>{this.tableLoading=!1})}else n.searchFunc&&typeof n.searchFunc=="function"&&n.searchFunc({page:1,pagesize:20,keyword:t,...n.searchParam}).then(i=>{this.searchResList=[...i.data],this.searchParseData(t,o)})},searchParseData(t,o){var n=[],i=[];const l=this.searchSett;if(this.searchResList.length>0){for(let a in this.searchResList){let s=this.searchResList[a];const r=l.searchField.row_price;s.row_price=s[r];const d=l.searchField.row_stock;s.row_stock=s[d];const c=l.searchField.row_attr;s.row_attr=s[c];const u=l.searchField.row_name;s.row_name=s[u];const m=l.searchField.row_unit;s.row_unit=s[m];const h=l.searchField.row_id;s.row_id=s[h],s.value=s.row_name,i.push(s)}n=i}clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(n)},600)},inputSearchFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},searchIconClick(){this.isEditIndex=null}}},Hi={class:"name"},qi={class:"addr"},Wi={class:"addr"},Ki={class:"droplist-item"},Zi={class:"name"},Qi={key:0,class:"attr"},Gi={class:"price"},Ji={class:"rest"},Xi=["onClick"];function Yi(t,o,n,i,l,a){const s=e.resolveComponent("CircleClose"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-autocomplete"),c=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(c,e.mergeProps(t.$props,{"class-name":"cv-table-editor-search-column"}),{default:e.withCtx(u=>[l.isEditIndex==u.$index?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,ref:`cv-tbce-autocomplete${u.$index}`},l.autocompleteAttr,{modelValue:u.row[t.prop],"onUpdate:modelValue":m=>u.row[t.prop]=m,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":a.searchQuery,onSelect:m=>a.searchSelect(m,u.row,u.$index),onFocus:m=>a.searchFocus(u.$index,m),onBlur:m=>a.searchBlur(u.row,u.$index)}),{suffix:e.withCtx(()=>[e.createVNode(r,{onClick:m=>a.searchIconClick(u.row,u.$index)},{default:e.withCtx(()=>[e.createVNode(s)]),_:2},1032,["onClick"])]),default:e.withCtx(({item:m})=>[e.renderSlot(t.$slots,"default",{item:m},()=>[e.createElementVNode("div",Hi,e.toDisplayString(m.row_name),1),e.createElementVNode("span",qi,"价格:"+e.toDisplayString(m.row_price),1),e.createElementVNode("span",Wi,e.toDisplayString(m.row_rest),1),e.createElementVNode("div",Ki,[e.createElementVNode("div",Zi,[e.createTextVNode(e.toDisplayString(m.row_name)+" ",1),m.row_attr?(e.openBlock(),e.createElementBlock("div",Qi,"[ "+e.toDisplayString(m.row_attr)+"]",1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Gi,"¥ "+e.toDisplayString(m.row_price),1),e.createElementVNode("div",Ji,e.toDisplayString(m.attr_stock),1)])])]),_:2},1040,["modelValue","onUpdate:modelValue","popper-class","fetch-suggestions","onSelect","onFocus","onBlur"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:m=>a.searchEdit(u.row,u.$index)},e.toDisplayString(u.row[t.prop]),9,Xi))]),_:3},16)}const et=p(Mi,[["render",Yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),es={name:"cvTbEditOpt",props:{tableData:{type:[Array],default:()=>[]},...g.ElTableColumn.props,label:{type:[String],default:"操作"},align:{type:[String],default:"center"},width:{type:[String],default:"100"},fixed:{type:[String],default:"left"},btnAdd:{type:[Boolean,String],default:!0},btnDel:{type:[Boolean,String],default:!0}},data(){return{localTbData:[]}},watch:{tableData(t){this.localTbData=t}},created(){this.localTbData=this.tableData},methods:{optHdDelete(t,o){this.localTbData.splice(t,1),this.localTbData.length<1&&this.optHdAdd()},optHdAdd(){this.localTbData.push({})}}};function ts(t,o,n,i,l,a){const s=e.resolveComponent("Plus"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("Close"),u=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(u,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(m=>[n.btnAdd?(e.openBlock(),e.createBlock(d,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:o[0]||(o[0]=h=>a.optHdAdd())},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s)]),_:1})]),_:1})):e.createCommentVNode("",!0),n.btnDel?(e.openBlock(),e.createBlock(d,{key:1,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:h=>a.optHdDelete(m.$index,m.row)},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c)]),_:1})]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1},16)}const tt=p(es,[["render",ts],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]);const os={name:"cvTbEditText",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""},editAttr:{type:[Object],default:()=>({placeholder:"请输入"})},editClearable:{type:[Boolean],default:!0},editStyle:{type:[Object],default:()=>({"--el-input-border":0,"--el-input-border-radius":0,"--el-input-height":"36px"})},editClass:{type:[Object],default:()=>({})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}},toFixed:{type:[String,Number],default:""}},data(){return{currValue:"",isEditIndex:null,isErrIndex:[]}},directives:{edfocus:{mounted:t=>{t.querySelector("input").focus()},inserted:function(t){t.querySelector("input").focus()}}},created(){},methods:{textIsError(t){return this.isErrIndex&&this.isErrIndex[t]&&this.isErrIndex[t][this.prop]},textHdEdit(t,o){this.isEditIndex=o},textHdClear(t,o){},textHdSave(t,o){this.isEditIndex=null;let n=t[this.prop];if(this.toFixed!=""){let i=parseInt(this.toFixed);isNaN(n)||(t[this.prop]=parseFloat(n).toFixed(i))}else t[this.prop]=n}},render22(t,o){let n=this;return t("el-table-column",{props:{...this.$props},scopedSlots:{default:i=>{this.currValue=i.row[this.prop];let l=i.$index;return this.isEditIndex==l?t("el-input",{props:{style:this.editStyle,class:this.editClass},domProps:{value:this.currValue},props:{placeholder:this.placeholder,value:this.param},nativeOn:{keyup:a=>{a.keyCode===13&&(this.$emit("update:param",a.target.value),this.callback&&this.callback())}},on:{blur:a=>{this.$emit("update:param",a.target.value),this.callback&&this.callback()},input:function(a){n.currValue=a||a.target.value},blur:a=>{this.isEditIndex=null,n.currValue=a||a.target.value}}},this.currValue):t("span",{class:{showtext:!0},on:{click:()=>{this.isEditIndex=l}}},this.currValue)}}})}},ns=["onClick"];function ls(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-table-column"),d=e.resolveDirective("edfocus");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{"class-name":"cv-table-editor-text-column"}),{default:e.withCtx(c=>[l.isEditIndex==c.$index&&!n.editAttr.disabled?e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps({key:0},n.editAttr,{clearable:n.editClearable,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u,onBlur:e.withModifiers(u=>a.textHdSave(c.row,c.$index),["prevent"]),onClear:u=>a.textHdClear(c.row,c.$index)}),null,16,["clearable","style","class","modelValue","onUpdate:modelValue","onBlur","onClear"])),[[d]]):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:u=>a.textHdEdit(c.row,c.$index)},e.toDisplayString(c.row[t.prop]),9,ns))]),_:1},16)}const ot=p(os,[["render",ls],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),as={name:"cvTbEditRadio",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function is(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const nt=p(as,[["render",is],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ss={name:"cvTbEditCheckbox",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{localVal:[]}},created(){},methods:{handleParseValue(t){this.localVal=[]}}};function rs(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[c.row[t.prop]?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:1},16)}const lt=p(ss,[["render",rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),cs={name:"cvTbEditSelect",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function ds(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,m)=>(e.openBlock(),e.createBlock(s,{key:m,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const at=p(cs,[["render",ds],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);Me.install=function(t){t.component(Me.name,Me)};He.install=function(t){t.component(He.name,He)};qe.install=function(t){t.component(qe.name,qe)};We.install=function(t){t.component(We.name,We)};Ke.install=function(t){t.component(Ke.name,Ke)};Ze.install=function(t){t.component(Ze.name,Ze)};Qe.install=function(t){t.component(Qe.name,Qe)};Ge.install=function(t){t.component(Ge.name,Ge)};Je.install=function(t){t.component(Je.name,Je)};Xe.install=function(t){t.component(Xe.name,Xe)};Ye.install=function(t){t.component(Ye.name,Ye)};et.install=function(t){t.component(et.name,et)};tt.install=function(t){t.component(tt.name,tt)};ot.install=function(t){t.component(ot.name,ot)};nt.install=function(t){t.component(nt.name,nt)};lt.install=function(t){t.component(lt.name,lt)};at.install=function(t){t.component(at.name,at)};function us(t){return typeof Array.isArray=="function"?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}function hs(t){return Object.prototype.toString.call(t)==="[object Object]"}function ps(t){return!isNaN(Number(t))}function L(t){return us(t)?t.length===0:hs(t)?Object.keys(t).length===0:t===""||t===void 0||t===null}const O=(t,o)=>L(t)?o:t,ms=(t,o=200,n=!1)=>{let i=!1,l=null;const a=(...s)=>new Promise((r,d)=>{if(l&&clearTimeout(l),n&&!i){const c=t.apply(globalThis,s);r(c),i=!0}else l=setTimeout(()=>{const c=t.apply(globalThis,s);r(c),i=!1,l=null},o)});return a.cancel=()=>{l&&clearTimeout(l),i=!1},a};function F(t){return t==null?"":String(t)}function fs(t){let o=["png","jpg","jpeg","gif","webp","svg"],n=t.lastIndexOf("."),i=t.substring(n+1);return o.indexOf(i.toLowerCase())!=-1}function gs(t){return window.URL?window.URL.createObjectURL(t):window.webkitURL?window.webkitURL.createObjectURL(t):""}function _s(t){var o=new Date,n=new Date(t),i=o-n,l=Math.floor(i/1e3),a=Math.floor(l/60),s=Math.floor(a/60);if(a<1)var r=l+"秒前";else if(s<1)var r=a+"分钟前";else if(s<24)var r=s+"小时前";else var r=n.toLocaleString();return r}const vs={},ys={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ks=e.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),Cs=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.98095 5.49307L8.22012 3.25389C8.28521 3.18881 8.39074 3.18881 8.45582 3.25389L8.69153 3.4896C8.75661 3.55468 8.75661 3.66021 8.69153 3.7253L6.45235 5.96447L8.69153 8.20364C8.75661 8.26873 8.75661 8.37426 8.69153 8.43934L8.45582 8.67505C8.39074 8.74013 8.28521 8.74013 8.22012 8.67505L5.98095 6.43587L3.74178 8.67505C3.67669 8.74013 3.57116 8.74013 3.50608 8.67505L3.27037 8.43934C3.20529 8.37426 3.20529 8.26873 3.27037 8.20364L5.50954 5.96447L3.27037 3.7253C3.20529 3.66021 3.20529 3.55468 3.27037 3.4896L3.50608 3.25389C3.57116 3.18881 3.67669 3.18881 3.74178 3.25389L5.98095 5.49307Z",fill:"white"},null,-1),ws=[ks,Cs];function bs(t,o){return e.openBlock(),e.createElementBlock("svg",ys,ws)}const Vs=p(vs,[["render",bs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),Ss={},Ns={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Bs=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"},null,-1),xs=[Bs];function Es(t,o){return e.openBlock(),e.createElementBlock("svg",Ns,xs)}const $s=p(Ss,[["render",Es],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),Ts={},Ds={class:"comment-common-icon"},Is=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{d:"M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z"})],-1),Fs=[Is];function zs(t,o){return e.openBlock(),e.createElementBlock("i",Ds,Fs)}const Ls=p(Ts,[["render",zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),js={},Os={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Ps=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"},null,-1),As=[Ps];function Us(t,o){return e.openBlock(),e.createElementBlock("svg",Os,As)}const Rs=p(js,[["render",Us],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Ms={},Hs={class:"comment-common-icon"},qs=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M586.624 234.624a74.624 74.624 0 1 1-149.184 0 74.624 74.624 0 0 1 149.12 0z m0 554.624a74.624 74.624 0 1 1-149.248 0 74.624 74.624 0 0 1 149.248 0zM512 586.624a74.624 74.624 0 1 0 0-149.248 74.624 74.624 0 0 0 0 149.248z",fill:"currentColor"})],-1),Ws=[qs];function Ks(t,o){return e.openBlock(),e.createElementBlock("i",Hs,Ws)}const Zs=p(Ms,[["render",Ks],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),Qs={},Gs={class:"comment-common-icon",style:{color:"#1e80ff"}},Js=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1534"},[e.createElementVNode("path",{d:"M668.928 166.912c-20.48-53.504-47.9744-84.7872-82.0224-94.9248-33.5872-10.0352-61.952 4.096-76.032 13.9776-27.5456 19.3536-41.216 49.664-50.0224 74.1376-3.3792 9.3184-6.4512 19.0976-9.216 27.9552l-2.6624 8.3968a227.8912 227.8912 0 0 1-10.3936 27.9552c-25.344 52.9408-47.4112 84.5312-66.7648 104.96-18.944 19.968-36.4544 30.464-55.1936 39.7824a45.3632 45.3632 0 0 0-25.088 40.5504l-0.1024 480.7168c0 24.9344 20.2752 45.2096 45.2096 45.2096h423.0656c21.7088 0 38.144-6.912 50.0224-16.9984a72.192 72.192 0 0 0 14.4896-16.896l0.2048-0.2048 0.0512-0.1536 0.8192-1.024 1.2288-1.8944c39.424-63.7952 66.7648-114.688 88.2176-175.616 24.4224-69.4784 36.8128-129.6896 42.0352-176.64 5.12-45.6704 3.7888-81.664-1.5872-101.376a77.9776 77.9776 0 0 0-45.568-52.3264 116.5824 116.5824 0 0 0-45.4144-8.6016l-192.8192-2.6624c28.1088-115.0976 10.0864-181.6064-2.4576-214.3744zM64.0512 413.9008a45.2096 45.2096 0 0 1 45.1584-47.36H176.128c24.9344 0 45.2096 20.2752 45.2096 45.2096v480.6144a45.2096 45.2096 0 0 1-45.2096 45.2096h-44.288a45.2096 45.2096 0 0 1-45.1584-43.0592L64 413.952z","p-id":"1535"})],-1),Xs=[Js];function Ys(t,o){return e.openBlock(),e.createElementBlock("i",Gs,Xs)}const er=p(Qs,[["render",Ys],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),tr={},or={class:"comment-common-icon"},nr=e.createElementVNode("svg",{t:"1650360973068",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1168",width:"200",height:"200"},[e.createElementVNode("path",{d:"M547.968 138.88c6.656-4.672 14.08-6.976 20.48-5.056 6.08 1.792 22.848 10.752 40.192 56.128 8.576 22.4 27.264 81.536-5.632 197.504a45.44 45.44 0 0 0 42.88 57.984l217.6 3.008h0.448a53.12 53.12 0 0 1 20.096 3.328 16.256 16.256 0 0 1 5.568 3.648 14.464 14.464 0 0 1 3.264 6.4c2.176 7.808 4.608 33.984-0.256 77.248-4.672 41.984-15.936 97.408-38.784 162.368-19.136 54.336-43.52 100.48-81.472 161.792a56.384 56.384 0 0 0-1.664 2.496l-0.128 0.128-1.408 2.112a7.872 7.872 0 0 1-1.28 1.472 3.84 3.84 0 0 1-1.28 0.64 20.48 20.48 0 0 1-6.848 0.96H356.032V421.44c19.712-10.624 40.704-24.576 62.592-47.616 25.472-26.88 51.008-64.768 78.208-121.6 5.568-11.584 9.856-24.384 13.632-36.032l3.072-9.856c2.688-8.448 5.184-16.384 8.064-24.32 8.064-22.4 16.128-36.032 26.368-43.136z m120.96 27.968c-20.48-53.44-48-84.736-81.984-94.912-33.6-9.984-61.952 4.16-76.032 14.08-27.584 19.264-41.28 49.6-50.048 74.048-3.392 9.344-6.464 19.2-9.216 27.968l-2.688 8.448a227.84 227.84 0 0 1-10.432 27.904c-25.28 52.928-47.36 84.544-66.752 104.96-18.944 19.968-36.48 30.464-55.168 39.808a45.376 45.376 0 0 0-25.088 40.576l-0.064 480.64c0 24.96 20.224 45.248 45.184 45.248h423.04c21.76 0 38.144-6.912 50.048-16.96a71.808 71.808 0 0 0 14.528-16.896l0.128-0.256 0.128-0.128 0.832-0.96 1.152-1.92c39.424-63.872 66.816-114.688 88.256-175.68a810.24 810.24 0 0 0 42.048-176.64c5.12-45.632 3.776-81.664-1.6-101.376a77.952 77.952 0 0 0-45.568-52.288 116.544 116.544 0 0 0-45.44-8.64l-192.768-2.688c28.096-115.072 10.048-181.568-2.496-214.336z m-604.864 247.04a45.184 45.184 0 0 1 45.12-47.296h67.008c24.96 0 45.184 20.288 45.184 45.248v480.64c0 24.96-20.224 45.12-45.184 45.12H131.84a45.184 45.184 0 0 1-45.12-43.072l-22.656-480.64z","p-id":"1169"})],-1),lr=[nr];function ar(t,o){return e.openBlock(),e.createElementBlock("i",or,lr)}const ir=p(tr,[["render",ar],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),sr={},rr={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},cr=e.createElementVNode("path",{"data-v-d6f79dbc":"","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"},null,-1),dr=[cr];function ur(t,o){return e.openBlock(),e.createElementBlock("svg",rr,dr)}const hr=p(sr,[["render",ur],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),pr={},mr={class:"comment-common-icon"},fr=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"})],-1),gr=[fr];function _r(t,o){return e.openBlock(),e.createElementBlock("i",mr,gr)}const vr=p(pr,[["render",_r],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),yr={},kr={class:"comment-common-icon"},Cr=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1320",width:"200",height:"200"},[e.createElementVNode("path",{d:"M147.264 647.296V220.928c0-49.536 40.128-89.728 89.6-89.728H793.6c49.536 0 89.728 40.192 89.728 89.728v426.368c0 49.536-40.128 89.728-89.6 89.728h-145.216a47.04 47.04 0 0 0-28.16 9.408l-194.56 145.792a3.392 3.392 0 0 1-5.12-1.984l-26.752-116.672a47.04 47.04 0 0 0-45.824-36.544H236.992a89.728 89.728 0 0 1-89.728-89.728zM236.864 64A156.928 156.928 0 0 0 80 220.928l0.064 426.368a156.928 156.928 0 0 0 156.928 156.928h94.976l23.232 101.312 0.064 0.448a70.592 70.592 0 0 0 109.696 40.832l190.208-142.592H793.6a156.928 156.928 0 0 0 156.928-156.928l-0.064-426.368A156.928 156.928 0 0 0 793.536 64H236.928z m69.44 442.496a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z m268.8-65.344a65.344 65.344 0 1 1-130.752 0 65.344 65.344 0 0 1 130.752 0z m138.368 65.344a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z","p-id":"1321"})],-1),wr=[Cr];function br(t,o){return e.openBlock(),e.createElementBlock("i",kr,wr)}const Vr=p(yr,[["render",br],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]);const Sr=t=>(e.pushScopeId("data-v-60eb8f0b"),t=t(),e.popScopeId(),t),Nr={class:"cv-comment-emoji"},Br={class:"face-tooltip-head select-none"},xr=["onClick"],Er=["src"],$r={class:"emoji-body select-none"},Tr={style:{padding:"0 5px"}},Dr=["onClick"],Ir={class:"emoji-btn select-none"},Fr={key:0},zr=Sr(()=>e.createElementVNode("span",null,"表情",-1)),Lr=Object.assign({name:"CompInputEmoji"},{__name:"input-emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,m)=>(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",Ir,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(e.unref($s)),zr]))])]),default:e.withCtx(()=>[e.createElementVNode("div",Br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(h,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:C=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,Er)],10,xr))),128))]),e.createElementVNode("div",$r,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",Tr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(C,_)=>(e.openBlock(),e.createElementBlock("span",{key:_,class:"emoji-item",onClick:y=>u.$emit("addEmoji",_)},[e.createVNode(e.unref(g.ElImage),{src:C,title:String(_),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Dr))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),jr=p(Lr,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]);const Pt=t=>(e.pushScopeId("data-v-cb6d934c"),t=t(),e.popScopeId(),t),Or={class:"cv-comment-editor"},Pr=["placeholder","onKeydown","innerHTML"],Ar=["src"],Ur=["onClick"],Rr={key:0,class:"cv-comment-editor__action"},Mr=Pt(()=>e.createElementVNode("span",null,"图片",-1)),Hr=Pt(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},[e.createTextVNode(" 文明上网理性发言,请遵守 "),e.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),qr={__name:"input-box",props:{placeholder:"",contentBtn:"",parentId:"",reply:""},emits:["hide","close"],setup(t,{expose:o,emit:n}){const i=t,l=e.ref(""),a=e.ref(),s=e.ref(!1),r=e.ref(!1),d=e.ref(),c=e.ref(!0),u=e.ref(),m=e.ref(),h=e.ref([]),f=e.ref([]),C=e.reactive({imgLength:0}),_={minHeight:64},y=e.ref(),v=e.ref(!1),k=e.ref(),w=e.computed(()=>_.minHeight+"px"),S=e.computed(()=>"8px 12px"),B=n,{upload:T,submit:D,focus:A}=e.inject("InjectInputBox"),U=e.inject("InjectionEmojiApi");e.watch(()=>l.value,V=>{v.value||(a.value=V)});function Et(){D({content:i.reply?`回复 <span style="color: var(--cv-color-success-dark-2);">@${i.reply.user.username}:</span> ${l.value}`:l.value,parentId:O(i.parentId,null),reply:i.reply,files:f.value,clear:()=>{oo(),B("close")}})}function Zt(V){L(l.value)&&!C.imgLength&&(r.value=!1,B("hide",V))}function Qt(V){v.value=!0,s.value=!0,r.value=!0,e.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),A()}function Gt(V){var b,x;y.value=(b=window.getSelection())==null?void 0:b.getRangeAt(0),(x=d.value)!=null&&x.innerHTML||(s.value=!1),v.value=!1}function Jt(V){const{innerHTML:b}=(V==null?void 0:V.target)||V;l.value=b||"",L(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1}function Xt(V){var x;let b=window.getSelection();b&&(b.removeAllRanges(),y.value||($t(),y.value=b.getRangeAt(0)),y.value.deleteContents(),y.value.insertNode(y.value.createContextualFragment(V)),y.value.collapse(!1),b.addRange(y.value),l.value=((x=d==null?void 0:d.value)==null?void 0:x.innerHTML)||"",L(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1)}function Yt(){d.value&&(d.value.innerHTML="",l.value=d.value.innerHTML,s.value=!1)}function $t(){e.nextTick(()=>{var V;(V=d.value)==null||V.focus()})}function eo(V){V.ctrlKey&&V.key=="Enter"&&(L(l.value.replace(/&nbsp;|<br>| /g,""))?g.ElMessage({message:"内容不能为空",type:"info"}):Et())}function to(V){var x;h.value.length=0,f.value.length=0;const b=(x=m.value)==null?void 0:x.files;if(C.imgLength=O(b==null?void 0:b.length,0),b)for(let E=0;E<b.length;E++){let j=b[E].name,lo=gs(b[E]);f.value.push(b[E]),fs(j)?h.value.push(lo):g.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function oo(){Yt(),h.value.length=0,f.value=[],c.value=!0}function no(V){var b;(b=h==null?void 0:h.value)==null||b.splice(V,1)}return e.onMounted(()=>{var V;(V=d.value)==null||V.addEventListener("keyup",b=>{const x=b.target;x.innerHTML=="<br>"&&(x.innerHTML="")})}),o({focus:()=>$t()}),(V,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Or,[e.createElementVNode("div",{class:e.normalizeClass(["cv-comment-editor__box",{active:s.value,"input-active":r.value}])},[e.createElementVNode("div",{ref_key:"editorRef",ref:d,class:"rich-input",contenteditable:"true",placeholder:i.placeholder,onFocus:Qt,onInput:Jt,onBlur:Gt,onKeydown:e.withKeys(eo,["enter"]),innerHTML:a.value,style:e.normalizeStyle({minHeight:w.value,padding:S.value})},null,44,Pr),e.createElementVNode("div",{ref_key:"imageRef",ref:k,class:"image-preview-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(x,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"image-preview"},[e.createElementVNode("img",{src:x,alt:""},null,8,Ar),e.createElementVNode("div",{class:"clean-btn",onClick:j=>no(E)},[e.createVNode(e.unref(Vs))],8,Ur)]))),128))],512)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",null,[e.createVNode(jr,{emoji:e.unref(U),onAddEmoji:b[0]||(b[0]=x=>Xt(x))},null,8,["emoji"]),e.createElementVNode("div",{class:"picture",onClick:b[1]||(b[1]=(...x)=>{var E,j;return((E=m.value)==null?void 0:E.click)&&((j=m.value)==null?void 0:j.click(...x))})},[e.createVNode(e.unref(Rs)),Mr,e.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:m,type:"file",multiple:"",onChange:to},null,544)])]),e.createElementVNode("div",null,[Hr,e.createVNode(e.unref(g.ElButton),{type:"primary",disabled:c.value,onClick:Et},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.contentBtn),1)]),_:1},8,["disabled"])])])):e.createCommentVNode("",!0)]),_:1})])),[[e.unref(g.ClickOutside),Zt,u.value]])}},At=p(qr,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]);const Wr={class:"u-fold"},Kr={class:"action-box select-none"},Zr=Object.assign({name:"UFold"},{__name:"fold",props:{line:{type:[Number,String],default:5}},setup(t){e.useCssVars(r=>({"11c6ae4f-line":n.value}));const o=t,n=e.computed(()=>{let r=Math.trunc(Number(o.line));return r>0?r:1}),i=e.ref(!0),l=e.ref(!1),a=e.ref();let s;return e.onMounted(()=>{s=new ResizeObserver(r=>{i.value&&a.value&&(l.value=a.value.offsetHeight<a.value.scrollHeight)}),s.observe(a.value)}),e.onUnmounted(()=>{s.disconnect()}),(r,d)=>(e.openBlock(),e.createElementBlock("div",Wr,[e.createElementVNode("div",{class:e.normalizeClass(["txt-box",{"over-hidden":i.value}])},[e.createElementVNode("div",{ref_key:"divBox",ref:a},[e.renderSlot(r.$slots,"default",{},void 0,!0)],512)],2),e.createElementVNode("div",Kr,[l.value&&r.unfold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"expand-btn",onClick:d[0]||(d[0]=c=>i.value=!i.value)},e.toDisplayString(i.value?"展开":"收起"),1)):e.createCommentVNode("",!0)])]))}}),Qr=p(Zr,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),Gr={__name:"user-card",props:{uid:""},setup(t){const o=e.ref({}),{showInfo:n}=e.inject("InjectContentBox"),i=e.inject("InjectSlots"),l=()=>e.h("div",i.card(o.value));return(a,s)=>e.unref(i).card?(e.openBlock(),e.createBlock(e.unref(g.ElPopover),{key:0,placement:"top",width:300,"show-after":300,onBeforeEnter:s[0]||(s[0]=()=>e.unref(n)(t.uid,r=>o.value=r))},{reference:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),default:e.withCtx(()=>[e.createVNode(l)]),_:3})):e.renderSlot(a.$slots,"default",{key:1})}},Tt=p(Gr,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Ut(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function kt(t){return typeof t=="function"?t():e.unref(t)}const Bt=typeof window<"u"&&typeof document<"u",Jr=Object.prototype.toString,Xr=t=>Jr.call(t)==="[object Object]",Yr=()=>{};function ec(t,o,n={}){const{immediate:i=!0}=n,l=e.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function r(){l.value=!1,s()}function d(...c){s(),l.value=!0,a=setTimeout(()=>{l.value=!1,a=null,t(...c)},kt(o))}return i&&(l.value=!0,Bt&&d()),Ut(r),{isPending:e.readonly(l),start:d,stop:r}}function tc(t){var o;const n=kt(t);return(o=n==null?void 0:n.$el)!=null?o:n}const oc=Bt?window:void 0,nc=Bt?window.navigator:void 0;function lc(...t){let o,n,i,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,l]=t,o=oc):[o,n,i,l]=t,!o)return Yr;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},r=(u,m,h,f)=>(u.addEventListener(m,h,f),()=>u.removeEventListener(m,h,f)),d=e.watch(()=>[tc(o),kt(l)],([u,m])=>{if(s(),!u)return;const h=Xr(m)?{...m}:m;a.push(...n.flatMap(f=>i.map(C=>r(u,f,C,h))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Ut(c),c}function ac(){const t=e.ref(!1);return e.getCurrentInstance()&&e.onMounted(()=>{t.value=!0}),t}function ic(t){const o=ac();return e.computed(()=>(o.value,!!t()))}function sc(t={}){const{navigator:o=nc,read:n=!1,source:i,copiedDuring:l=1500,legacy:a=!1}=t,s=ic(()=>o&&"clipboard"in o),r=e.computed(()=>s.value||a),d=e.ref(""),c=e.ref(!1),u=ec(()=>c.value=!1,l);function m(){s.value?o.clipboard.readText().then(_=>{d.value=_}):d.value=C()}r.value&&n&&lc(["copy","cut"],m);async function h(_=kt(i)){r.value&&_!=null&&(s.value?await o.clipboard.writeText(_):f(_),d.value=_,c.value=!0,u.start())}function f(_){const y=document.createElement("textarea");y.value=_??"",y.style.position="absolute",y.style.opacity="0",document.body.appendChild(y),y.select(),document.execCommand("copy"),y.remove()}function C(){var _,y,v;return(v=(y=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:y.toString())!=null?v:""}return{isSupported:r,text:d,copied:c,copy:h}}const rc={class:"comment-list-actbox__right"},cc={class:"operation-warp"},dc={class:"dialog-footer"},uc={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(t){const{copy:o}=sc(),n=e.ref(!1),i=e.ref({report_type:"",report_content:""}),l=t;function a(){let r=l.data||{};n.value=!1,g.ElMessage({type:"info",message:"举报成功: "+r.id})}function s(r){let d=l.data||{};switch(r){case"remove":setTimeout(()=>{var c;(c=commentRef.value)==null||c.remove(d)},200);break;case"report":n.value=!0;break;case"copy":o(d.content),g.ElMessage({type:"info",message:"复制成功"})}}return(r,d)=>{const c=e.resolveComponent("el-dropdown-item"),u=e.resolveComponent("el-dropdown-menu"),m=e.resolveComponent("el-dropdown"),h=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-input"),y=e.resolveComponent("el-form"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",rc,[e.createVNode(m,{trigger:"click",onCommand:d[0]||(d[0]=w=>s(w))},{dropdown:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{command:"report"},{default:e.withCtx(()=>[e.createTextVNode("举报")]),_:1}),e.createVNode(c,{command:"remove"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1}),e.createVNode(c,{divided:"",command:"copy"},{default:e.withCtx(()=>[e.createTextVNode("复制")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",cc,[e.createVNode(e.unref(Zs))])]),_:1}),e.createVNode(k,{title:"举报",modelValue:n.value,"onUpdate:modelValue":d[4]||(d[4]=w=>n.value=w),width:"400px",style:{width:"90%","max-width":"400px"}},{footer:e.withCtx(()=>[e.createElementVNode("span",dc,[e.createVNode(v,{onClick:d[3]||(d[3]=w=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(v,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(y,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(C,{label:"您为什么要举报此信息?"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.value.report_type,"onUpdate:modelValue":d[1]||(d[1]=w=>i.value.report_type=w)},{default:e.withCtx(()=>[e.createVNode(h,{label:"色情淫秽"},{default:e.withCtx(()=>[e.createTextVNode("色情淫秽")]),_:1}),e.createVNode(h,{label:"骚扰谩骂"},{default:e.withCtx(()=>[e.createTextVNode("骚扰谩骂")]),_:1}),e.createVNode(h,{label:"广告欺诈"},{default:e.withCtx(()=>[e.createTextVNode("广告欺诈")]),_:1}),e.createVNode(h,{label:"反动"},{default:e.withCtx(()=>[e.createTextVNode("反动")]),_:1}),e.createVNode(h,{label:"其他"},{default:e.withCtx(()=>[e.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(C,{label:"举报说明(可选):"},{default:e.withCtx(()=>[e.createVNode(_,{type:"textarea",modelValue:i.value.report_content,"onUpdate:modelValue":d[2]||(d[2]=w=>i.value.report_content=w),maxlength:"200",placeholder:"描述恶意行为",rows:"3"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},hc=p(uc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]);const pc=t=>(e.pushScopeId("data-v-1d5332e1"),t=t(),e.popScopeId(),t),mc={class:"comment-sub"},fc=["href"],gc=pc(()=>e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),_c={class:"comment-primary"},vc={class:"comment-main"},yc={key:1,class:"user-info"},kc=["href"],Cc={class:"username"},wc={class:"name",style:{"max-width":"10em"}},bc={blank:"true",class:"rank"},Vc=["innerHTML"],Sc={class:"address",style:{color:"#939393","font-size":"12px"}},Nc={class:"time"},Bc={class:"content"},xc=["innerHTML"],Ec={class:"imgbox",style:{display:"flex"}},$c={class:"comment-list-actbox select-none"},Tc={class:"comment-list-actbox__left"},Dc={key:2},Ic={class:"comment-list-actbox__right"},Fc={key:2},zc={__name:"content-box",props:{reply:{type:[Boolean],default:!1},data:{type:[Object],default:()=>({})},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({active:!1}),i=e.ref(),l=e.ref(),a=e.computed(()=>{let v=o.data.contentImg;return L(v)?[]:v==null?void 0:v.split("||")}),{allEmoji:s}=e.inject("InjectionEmojiApi"),{like:r,user:d,relativeTime:c}=e.inject("InjectContentBox");function u(){n.active=!n.active,n.active&&e.nextTick(()=>{var v;(v=i.value)==null||v.focus()})}function m(v){var w;const k=v.target;(w=l.value)!=null&&w.contains(k)||(n.active=!1)}const h=e.inject("InjectSlots"),f=()=>e.h("div",h.info(o.data)),C=(v,k)=>{const w=/\[.+?\]/g;return k=k.replace(w,S=>{const B=v[S];return B?['<img src="',B,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),k},_=e.computed(()=>C(s,o.data.content)),y=v=>{switch(v){case 1:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="831"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#8CDBF4" p-id="832"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="833"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m950.857143-365.714285l73.142857-73.142858v146.285715h-73.142857z m73.142857-73.142858h146.285715v146.285715h-146.285715z m0 146.285715h146.285715v438.857143h-146.285715z" fill="#FFFFFF"></path></svg>';case 2:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="765"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#6ECEFF" p-id="766"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="767"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v146.285714h-146.285714z m-219.428572 292.571428V512h146.285714v146.285714z" fill="#FFFFFF" p-id="768"></path><path d="M1097.142857 585.142857V438.857143h365.714286v146.285714z m0 73.142857h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 3:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="799"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#599DFF" p-id="800"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="801"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v73.142857h-146.285714z m0 219.428571h146.285714v73.142857h-146.285714z m-146.285715-146.285714h292.571429v146.285714h-292.571429z m-73.142857 219.428571h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 4:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="815"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#34D19B" p-id="816"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="817"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m975.213715-365.714285L1243.428571 219.428571v219.428572h-146.285714zM1097.142857 438.857143h146.285714v292.571428h-146.285714z m146.285714 146.285714h73.142858v146.285714h-73.142858z m0-365.714286h73.142858v146.285715h-73.142858z m73.142858 0h146.285714v585.142858h-146.285714z" fill="#FFFFFF"></path></svg>';case 5:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="782"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#FFA000" p-id="783"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="784"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-73.142857h146.285714v219.428572h-146.285714z m-219.428572-365.714286h365.714286v146.285715h-365.714286z m0 438.857143h219.428572v146.285715h-219.428572z m73.142857-219.428571h219.428572v146.285714h-219.428572z" fill="#FFFFFF" p-id="785"></path><path d="M1316.571429 438.857143h146.285714v146.285714h-146.285714z m-219.428572-73.142857h146.285714v219.428571h-146.285714z" fill="#FFFFFF"></path></svg>';case 6:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="748"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#F36262" p-id="749"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="750"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-146.285714h146.285714v292.571429h-146.285714z m-73.142858-292.571429h146.285715v146.285715h-146.285715z m-146.285714 146.285715h146.285714v438.857143h-146.285714z" fill="#FFFFFF" p-id="751"></path><path d="M1243.428571 438.857143h219.428572v146.285714h-219.428572z m-48.786285-170.642286L1243.428571 219.428571v146.285715h-146.285714zM1243.428571 658.285714h146.285715v146.285715h-146.285715z" fill="#FFFFFF"></path></svg>';default:return""}};return(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["comment",{reply:o.reply}])},[e.createElementVNode("div",mc,[e.createVNode(Tt,{uid:e.unref(F)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createVNode(e.unref(g.ElAvatar),{style:{"margin-top":"5px"},size:40,fit:"cover",src:t.data.user.avatar},{default:e.withCtx(()=>[gc]),_:1},8,["src"])],8,fc)]),_:1},8,["uid"])]),e.createElementVNode("div",_c,[e.createElementVNode("div",vc,[e.unref(h).info?(e.openBlock(),e.createBlock(f,{key:0})):(e.openBlock(),e.createElementBlock("div",yc,[e.createVNode(Tt,{uid:e.unref(F)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createElementVNode("div",Cc,[e.createElementVNode("span",wc,e.toDisplayString(t.data.user.username),1),e.createElementVNode("span",bc,[e.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:y(t.data.user.level)},null,8,Vc)])])],8,kc)]),_:1},8,["uid"]),e.createElementVNode("span",Sc,"  "+e.toDisplayString(t.data.address),1),e.createElementVNode("time",Nc,e.toDisplayString(e.unref(c)?e.unref(_s)(t.data.createTime):t.data.createTime),1)])),e.createElementVNode("div",Bc,[e.createVNode(Qr,{unfold:""},{default:e.withCtx(()=>[e.createElementVNode("div",{innerHTML:_.value},null,8,xc),e.createElementVNode("div",Ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(w,S)=>(e.openBlock(),e.createBlock(e.unref(g.ElImage),{key:S,src:w,style:{height:"72px",padding:"8px 4px"},lazy:"","preview-src-list":a.value,"initial-index":S},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1})]),e.createElementVNode("div",$c,[e.createElementVNode("div",Tc,[e.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:k[0]||(k[0]=w=>e.unref(r)(e.unref(F)(t.data.id)))},[e.unref(d).likeIds.map(String).indexOf(e.unref(F)(t.data.id))==-1?(e.openBlock(),e.createBlock(e.unref(ir),{key:0})):(e.openBlock(),e.createBlock(e.unref(er),{key:1})),t.data.likes!=0?(e.openBlock(),e.createElementBlock("span",Dc,e.toDisplayString(t.data.likes),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{"data-tip":"回复",ref_key:"btnRef",ref:l,class:e.normalizeClass(["item",{active:n.active}]),onClick:u},[e.createVNode(e.unref(Vr)),e.createElementVNode("span",null,e.toDisplayString(n.active?"取消回复":"回复"),1)],2)]),e.createElementVNode("div",Ic,[e.renderSlot(v.$slots,"operate",{},()=>[e.createVNode(hc,{data:o.data},null,8,["data"])],!0)])]),n.active?(e.openBlock(),e.createElementBlock("div",Fc,[e.createVNode(At,{ref_key:"commentRef",ref:i,"parent-id":e.unref(F)(t.id),placeholder:`回复 @${t.data.user.username}...`,reply:t.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:m,onClose:k[1]||(k[1]=w=>n.active=!1)},null,8,["parent-id","placeholder","reply"])])):e.createCommentVNode("",!0)]),e.renderSlot(v.$slots,"default",{},void 0,!0)])],2))}},Rt=p(zc,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]);const Lc={key:0,class:"reply-box"},jc={class:"reply-list"},Oc={key:0,class:"fetch-more"},Pc={key:0},Ac={key:1},Uc={key:0},Rc={key:1,class:"fetch-more"},Mc={__name:"reply-box",props:{data:{type:[Array,Object],default:()=>null},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({loading:!1,over:!1,pageNum:1,pageSize:5}),{replyPage:i,replyShowSize:l,comments:a,page:s}=e.inject("InjectReplyBox"),r=e.computed(()=>{let h={total:0,length:0,list:[]};if(o.data){let f=o.data.list.length;h={total:o.data.total,length:f,list:o.data.list}}if(!n.over){let f=h.list.slice(0,l);h.list=f}return s&&(h.list=h.list.slice(0,5)),h}),d=()=>{n.over=!0},c=h=>{a.value.forEach(f=>{f.id==o.id&&f.reply&&(f.reply=h)})},u=h=>{n.pageNum=h,i(o.id,h,n.pageSize,f=>c(f))},m=h=>{n.pageSize=h,i(o.id,n.pageNum,h,f=>c(f))};return(h,f)=>r.value.length>0?(e.openBlock(),e.createElementBlock("div",Lc,[e.createElementVNode("div",jc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.list,(C,_)=>(e.openBlock(),e.createBlock(Rt,{id:t.id,key:_,data:C,reply:""},null,8,["id","data"]))),128)),r.value.length>e.unref(l)?(e.openBlock(),e.createElementBlock("div",Oc,[n.loading?(e.openBlock(),e.createElementBlock("span",Pc,"加载中...")):(e.openBlock(),e.createElementBlock("div",Ac,[n.over?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Uc,[e.createTextVNode(" 共"+e.toDisplayString(r.value.total)+"条回复, ",1),e.createElementVNode("span",{class:"fetch-more-comment select-none",onClick:d},[e.createTextVNode(" 点击查看 "),e.createVNode(e.unref(hr))])]))]))])):e.createCommentVNode("",!0),n.over&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",Rc,[e.createVNode(e.unref(g.ElPagination),{small:"","hide-on-single-page":"",layout:"total, prev, pager, next",total:r.value.total,"page-size":n.pageSize,onCurrentChange:u,onSizeChange:m},null,8,["total","page-size"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}},Hc=p(Mc,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),qc={key:0,class:"comment-list"},Wc={__name:"comment-list",props:{data:{type:[Array,Object],default:()=>[]},total:{type:[Number],default:0},showSize:{type:[Number],default:0}},setup(t){return(o,n)=>t.data?(e.openBlock(),e.createElementBlock("div",qc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(i,l)=>(e.openBlock(),e.createBlock(Rt,{id:e.unref(F)(i.id),key:l,data:i},{default:e.withCtx(()=>[e.createVNode(Hc,{id:e.unref(F)(i.id),data:i.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):e.createCommentVNode("",!0)}},Kc=p(Wc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]);const Zc={class:"cv-comment-base"},Qc={class:"cv-comment-form"},Gc=e.createElementVNode("div",{class:"cv-comment-form__header"},[e.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),Jc={class:"cv-comment-form__content"},Xc={class:"cv-comment-form__avatar"},Yc=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),ed=e.createElementVNode("div",{class:"title"},"全部评论",-1),td={class:"cv-comment-list-wrapper"},od=Object.assign({name:"cvCommentBase"},{__name:"comment",props:{config:{},page:!1,upload:!1,relativeTime:!1},emits:["submit","like","replyPage","showInfo","focus"],setup(t,{expose:o,emit:n}){const i=t,{user:l,comments:a,showSize:s,replyShowSize:r,total:d}=e.toRefs(i.config),c=n,u=({content:_,parentId:y,reply:v,files:k,clear:w})=>{c("submit",{content:_,parentId:y,reply:v,files:k,finish:B=>{if(w(),y){let T=a.value.find(D=>D.id==y);if(T){let D=T.reply;D?(D.list.unshift(B),D.total++):T.reply={total:1,list:[B]}}}else a.value.unshift(B)}})},m={upload:i.upload,submit:u,focus:()=>c("focus")};e.provide("InjectInputBox",m);const h=(_,y)=>{let v=null;a.value.forEach(k=>{var w;k.id==_?v=k:v=(w=k.reply)==null?void 0:w.list.find(S=>S.id==_),v&&(v.likes+=y)})},f=_=>{const y=i.config.user.likeIds;c("like",_,()=>{if(y.findIndex(v=>v==_)==-1)y.push(_),h(_,1);else{let v=y.findIndex(k=>k==_);v!=-1&&(y.splice(v,1),h(_,-1))}})};e.provide("InjectContentBox",{user:l,like:f,relativeTime:O(i.relativeTime,!1),showInfo:(_,y)=>c("showInfo",_,y)}),e.provide("InjectReplyBox",{page:i.page,replyPage:(_,y,v,k)=>{c("replyPage",{parentId:_,pageNum:y,pageSize:v,finish:k})},replyShowSize:O(r,3),comments:a});const C=_=>{const{parentId:y,id:v}=_;if(y){let k=a.value.find(S=>S.id==y),w=k==null?void 0:k.reply;if(w){let S=w.list.findIndex(B=>B.id==v);S!=-1&&(w.list.splice(S,1),w.total--)}}else{let k=a.value.findIndex(w=>w.id==v);k!=-1&&a.value.splice(k,1)}};return e.provide("InjectionEmojiApi",i.config.emoji),e.provide("InjectSlots",e.useSlots()),o({remove:C}),(_,y)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Zc,[e.createElementVNode("div",Qc,[Gc,e.createElementVNode("div",Jc,[e.createElementVNode("div",Xc,[e.createVNode(v,{size:40,src:t.config.user.avatar},{default:e.withCtx(()=>[Yc]),_:1},8,["src"])]),e.createVNode(At,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),e.renderSlot(_.$slots,"default",{},()=>[ed]),e.createElementVNode("div",td,[e.createVNode(Kc,{data:e.unref(a),total:e.unref(d),"show-size":e.unref(O)(e.unref(s),5)},null,8,["data","total","show-size"])])])}}}),it=p(od,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),nd={class:"comment-scroll"},ld=["infinite-scroll-disabled"],ad={class:"scroll-btn"},id={key:1},sd={key:2},rd=Object.assign({name:"cvCommentScroll"},{__name:"comment-scroll",props:{disable:{type:[Boolean],default:!1},show:{type:[Boolean],default:!1}},emits:["more"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(!1),a=o,s=e.computed(()=>l.value&&n.disable),r=e.computed(()=>!l.value||i.value||s.value),d=ms(()=>{a("more"),i.value=!1},500),c=()=>{i.value=!0,d()};return(u,m)=>{const h=e.resolveComponent("el-link"),f=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createElementBlock("div",nd,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{"infinite-scroll-disabled":r.value,"infinite-scroll-distance":"2"},[e.renderSlot(u.$slots,"default"),e.createElementVNode("div",ad,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",underline:!1,onClick:m[0]||(m[0]=C=>l.value=!l.value)},{default:e.withCtx(()=>[e.createTextVNode("加载更多")]),_:1})),i.value?(e.openBlock(),e.createElementBlock("p",id,"加载中...")):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("p",sd,"没有更多了")):e.createCommentVNode("",!0)])],8,ld)),[[f,c]])])}}}),st=p(rd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),cd={class:"cv-comment-nav-wrap"},dd=e.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),ud={class:"cv-comment-nav__sort"},hd=Object.assign({name:"cvCommentNav"},{__name:"comment-nav",props:{modelValue:!1},emits:["update:modelValue","sorted"],setup(t,{emit:o}){const n=t,i=o,l=e.computed({get(){return n.modelValue},set(a){i("update:modelValue",a),i("sorted",a)}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",cd,[dd,e.createElementVNode("div",ud,[e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:l.value}]),onClick:s[0]||(s[0]=r=>l.value=!0)},[e.createVNode(e.unref(vr)),e.createTextVNode(" 最新 ")],2),e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:!l.value}]),onClick:s[1]||(s[1]=r=>l.value=!1)},[e.createVNode(e.unref(Ls)),e.createTextVNode(" 最热 ")],2)])]))}}),rt=p(hd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);it.install=function(t){t.component(it.name,it)};st.install=function(t){t.component(st.name,st)};rt.install=function(t){t.component(rt.name,rt)};const pd={key:1,"aria-hidden":"true"},md=["xlink:href"],fd=Object.assign({name:"cvIcon"},{__name:"icon",props:{size:14,name:"",color:""},setup(t){const o=t,n=e.computed(()=>"#"+o.name),i=e.computed(()=>({fontSize:ps(o.size)?o.size+"px":o.size,color:o.color}));return(l,a)=>(e.openBlock(),e.createElementBlock("i",{class:"cv-icon",style:e.normalizeStyle(i.value)},[l.$slots.default?e.renderSlot(l.$slots,"default",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("svg",pd,[e.createElementVNode("use",{"xlink:href":n.value},null,8,md)]))],4))}}),ct=p(fd,[["__scopeId","data-v-03222826"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icon/icon.vue"]]);ct.install=function(t){t.component(ct.name,ct)};const gd={name:"cvIcons",props:{type:{type:[String],default:""},size:{type:[String,Number],default:12}},data(){return{}},created(){},methods:{}};function _d(t,o,n,i,l,a){const s=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(s,{size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.type)))]),_:1},8,["size"])}const dt=p(gd,[["render",_d],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);dt.install=function(t){t.component(dt.name,dt)};const Mt=t=>(e.pushScopeId("data-v-cbcaef8c"),t=t(),e.popScopeId(),t),vd={class:"u-emoji"},yd={class:"face-tooltip-head select-none"},kd=["onClick"],Cd=["src"],wd={class:"emoji-body select-none"},bd={style:{padding:"0 5px"}},Vd=["onClick"],Sd={class:"emoji-btn select-none"},Nd={key:0},Bd=Mt(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"})],-1)),xd=Mt(()=>e.createElementVNode("span",null,"表情",-1)),Ed=[Bd,xd],$d=Object.assign({name:"cvEmoji"},{__name:"emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,m)=>(e.openBlock(),e.createElementBlock("div",vd,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",Sd,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Nd,Ed))])]),default:e.withCtx(()=>[e.createElementVNode("div",yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(h,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:C=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,Cd)],10,kd))),128))]),e.createElementVNode("div",wd,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",bd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(C,_)=>(e.openBlock(),e.createElementBlock("span",{key:_,class:"emoji-item",onClick:y=>u.$emit("addEmoji",_)},[e.createVNode(e.unref(g.ElImage),{src:C,title:String(_),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Vd))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Td=p($d,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]);const Dd={class:"cv-chat-message"},Id={class:"chat-list"},Fd=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),zd={class:"content"},Ld={key:0,class:"username"},jd=["innerHTML"],Od=e.createElementVNode("div",{class:"date"},null,-1),Pd={__name:"message",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0}},setup(t,{expose:o}){const{allEmoji:n}=e.inject("InjectionEmojiApi"),i=e.ref();o({scroll:()=>{e.nextTick(()=>{const s=document.querySelector(".chat-item:last-child");i.value.setScrollTop(s.offsetTop)})}});const a=(s,r)=>{const d=/\[.+?\]/g;return r=r.replace(d,c=>{const u=s[c];return u?['<img src="',u,'" width="20" height="20" alt="',c,'" title="',c,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):c}),r};return(s,r)=>(e.openBlock(),e.createElementBlock("div",Dd,[e.createVNode(e.unref(g.ElScrollbar),{ref_key:"scrollbarRef",ref:i},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass([{self:t.userId==d.id},"chat-item"])},[e.createElementVNode("div",null,[e.createVNode(e.unref(g.ElAvatar),null,{default:e.withCtx(()=>[Fd]),_:1})]),e.createElementVNode("div",zd,[t.userId!=d.id?(e.openBlock(),e.createElementBlock("div",Ld,e.toDisplayString(d.username),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"card-box",innerHTML:a(e.unref(n),d.content)},null,8,jd)]),Od],2))),128))])]),_:1},512)]))}},Ad=p(Pd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]);const Ud={class:"cv-chat-wrap"},Rd={class:"header"},Md=e.createElementVNode("svg",{viewBox:"0 0 1318 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z",fill:"#612273","p-id":"10993"}),e.createElementVNode("path",{d:"M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z",fill:"#612273",opacity:".2","p-id":"10994"}),e.createElementVNode("path",{d:"M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z",fill:"#EB3D72","p-id":"10995"}),e.createElementVNode("path",{d:"M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z",fill:"#EB3D72",opacity:".5","p-id":"10996"}),e.createElementVNode("path",{d:"M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z",fill:"#FED150","p-id":"10997"})],-1),Hd=e.createElementVNode("div",{style:{"margin-left":"12px"}},[e.createElementVNode("div",null,"聊天室"),e.createElementVNode("div",{style:{"font-size":"12px"}},"当前2人在线")],-1),qd={id:"chat-footer",class:"footer"},Wd=e.createElementVNode("svg",{width:"22",height:"22",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7186"},[e.createElementVNode("path",{d:"M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z","p-id":"7187"})],-1),Kd=e.createElementVNode("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15072"},[e.createElementVNode("path",{d:"M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z","p-id":"15073"})],-1),Zd=Object.assign({name:"cvChat"},{__name:"chat",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0},emoji:{type:[Object],default:()=>({})}},emits:["submit"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(""),a=e.ref(),{data:s}=n,r=o,d=h=>{const{ctrlKey:f,key:C}=h;f&&C=="Enter"&&u()},c=()=>{l.value="",a.value.scroll()},u=()=>{let h=l.value;h.trim()?(h=h.replace(/\n/g,"<br/>"),r("submit",{clear:c,content:h})):g.ElMessage({type:"error",message:"内容不能为空"})},m=h=>{let f=document.getElementById("emojiInput"),C=f.selectionStart,_=f.selectionEnd,y=f.value;if(C===null||_===null)return;let v=y.substring(0,C)+h+y.substring(_);f.value=v,f.focus(),f.selectionStart=C+h.length,f.selectionEnd=C+h.length,l.value=v};return e.provide("InjectionEmojiApi",n.emoji),(h,f)=>{const C=e.resolveComponent("cvIcon");return e.openBlock(),e.createElementBlock("div",Ud,[e.createElementVNode("div",{class:e.normalizeClass([{active:i.value},"chat-container translate"])},[e.createElementVNode("div",Rd,[e.createVNode(C,{size:"32"},{default:e.withCtx(()=>[Md]),_:1}),Hd]),e.createVNode(Ad,{ref_key:"messageRef",ref:a,data:e.unref(s),"user-id":t.userId},null,8,["data","user-id"]),e.createElementVNode("div",qd,[e.createVNode(e.unref(g.ElInput),{id:"emojiInput",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=_=>l.value=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue","onKeydown"]),e.createVNode(Td,{style:{margin:"0 8px 0"},emoji:t.emoji,placement:"top-end",onAddEmoji:m},{default:e.withCtx(()=>[Wd]),_:1},8,["emoji"]),e.createVNode(C,{size:"18",class:e.normalizeClass([{".cv-chat-wrap submit-btn":l.value.trim()!=""},"select-none cursor-pointer"]),style:{"padding-bottom":"5px"},onClick:u},{default:e.withCtx(()=>[Kd]),_:1},8,["class"])])],2),e.createVNode(e.unref(g.ElButton),{class:"chat-btn",onClick:f[1]||(f[1]=_=>i.value=!i.value)},{default:e.withCtx(()=>[e.createTextVNode("chat")]),_:1})])}}}),ut=p(Zd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);ut.install=function(t){t.component(ut.name,ut)};const Qd={key:0},Gd=Object.assign({name:"cvNoticeBar"},{__name:"notice-bar",props:{data:{type:[String,Array],default:()=>[]},vertical:{type:[Boolean],default:!1},suffixIcon:{type:[String],default:""},prefixIcon:{type:[String],default:""},size:{type:[Number],default:14},height:{type:[Number],default:40},delay:{type:[Number],default:1e3},spped:{type:[Number],default:100},color:{type:[String],default:"--color-warning"},background:{type:[String],default:"var(--color-warning-light-9)"}},setup(t){const o=t,{data:n,vertical:i,suffixIcon:l,prefixIcon:a,size:s,height:r,delay:d,spped:c,color:u,background:m}=o,h=e.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),f=e.ref({}),C=e.ref({}),_=e.computed(()=>o.delay>2e3?o.delay:2e3),y=()=>{e.nextTick(()=>{h.boxWidth=f.value.offsetWidth,h.textWidth=C.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${h.textWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${h.boxWidth}px;} 100% {left: -${h.textWidth}px;}}`),v(),setTimeout(()=>{k()},o.delay)})},v=()=>{h.oneTime=h.textWidth/o.spped,h.twoTime=(h.textWidth+h.boxWidth)/o.spped},k=()=>{h.order===1?(C.value.style.cssText=`animation: oneAnimation ${h.oneTime}s linear; opactity: 1;}`,h.order=2):C.value.style.cssText=`animation: twoAnimation ${h.twoTime}s linear infinite; opacity: 1;`},w=()=>{C.value.addEventListener("animationend",()=>{k()},!1)};return e.onMounted(()=>{o.vertical||(y(),w())}),(S,B)=>{const T=e.resolveComponent("el-carousel-item"),D=e.resolveComponent("el-carousel"),A=e.resolveComponent("cvIcon");return e.openBlock(),e.createElementBlock("div",{class:"cv-notice-bar",style:e.normalizeStyle({background:e.unref(m),height:`${e.unref(r)}px`})},[e.unref(i)?(e.openBlock(),e.createElementBlock("div",Qd,[e.createVNode(D,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:_.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),U=>(e.openBlock(),e.createBlock(T,{key:U},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U),1)]),_:2},1024))),128))]),_:1},8,["interval"])])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({color:e.unref(u),fontSize:`${e.unref(s)}px`}),class:"cv-notice-bar-wrap"},[e.unref(a)?(e.openBlock(),e.createBlock(A,{key:0,name:e.unref(a)},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"boxRef",ref:f,class:"text-box"},[e.createElementVNode("div",{ref_key:"textRef",ref:C,class:"text"},e.toDisplayString(e.unref(n)),513)],512),e.unref(l)?(e.openBlock(),e.createBlock(A,{key:1,name:e.unref(l)},null,8,["name"])):e.createCommentVNode("",!0)],4))],4)}}}),ht=p(Gd,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);ht.install=function(t){t.component(ht.name,ht)};const Jd={name:"cvEditorCode",props:{options:{type:[Object],default:()=>({autoRefresh:!0,autofocus:!1,lineNumbers:!0,tabSize:4,indentUnit:2,line:!0,styleActiveLine:!0})},modelValue:{type:[String],default:""},toolbars:{type:[Array],default:()=>["copy"]},theme:{type:[String],default:"juejin"},language:{type:[String],default:"Plain Text"},readOnly:{type:[Boolean],default:!1},id:{type:[String],required:!1,default(){return"myCvEditorCode-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}}},watch:{modelValue(t){this.localVal=t,this.currPoint==null&&this.editorInstance.setValue(t)}},data(){return{isCdnLoading:!0,localToolbar:{copy:!0},localToolNum:0,localOption:{},localVal:"",localMode:"",currPoint:null,editorId:this.id,editorInstance:null}},created(){this.localVal=this.modelValue,this.localToolNum=this.toolbars.length,this.localToolbar=this.toolbars.reduce((t,o)=>(t[o]=!0,t),{})},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await P(this.CDN_URL_UI+`/codemirror/@5.65.15/theme/${this.theme}.css`),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js").then(()=>{setTimeout(()=>{N(this.CDN_URL_UI+"/codemirror/@5.65.15/addon/display/autorefresh.js").then(()=>{this.isCdnLoading=!1,setTimeout(()=>{this.initEditor()},250)})},250)})},methods:{initEditor(){const t=window.CodeMirror||CodeMirror;this.editorInstance=t(this.$refs[this.editorId],{value:this.localVal,readOnly:this.readOnly,mode:this.localMode,theme:this.theme,...this.options}),this.editorInstance.setValue(this.value||this.localVal),this.editorInstance.on("change",(o,n)=>{this.localVal=o.getValue(),n.origin=="+input"&&(this.currPoint=n.to||null),n.origin=="setValue"&&(this.currPoint=null),this.$emit("update:modelValue",this.localVal)}),N(this.CDN_URL_UI+"/codemirror/@5.65.15/mode/meta-cvjs.js").then(()=>{setTimeout(()=>{this.$nextTick(()=>{}),this._getLanguageToMode()},250)})},async _getLanguageToMode(t){t=t||this.language,window.CodeMirror||CodeMirror;const o=CodeMirror.findModeByName(t),n=o.mode||"",i=o.addonMode||"";this.localMode=o.mime||"",i!="null"&&i!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/addon/mode/${i}.js`),n!="null"&&n!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/mode/${n}/${n}.js`),this.editorInstance.setOption("mode",this.localMode)},changeMode(t){this.editorInstance.setOption("mode",`text/${t}`),this._getLanguage(t).label.toLowerCase()},handleCopy(){this.$cvCopy(this.localVal)},handleChange(t){}}},Xd={class:"cv-editor-code-wrap cv-editor-vars"},Yd={key:0,class:"cv-editor-toolbars"},eu=e.createElementVNode("li",{class:"empty"},null,-1),tu=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),ou=[tu],nu={class:"cv-editor-mainbox"};function lu(t,o,n,i,l,a){const s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Xd,[l.localToolNum>0?(e.openBlock(),e.createElementBlock("ul",Yd,[eu,l.localToolbar.copy?(e.openBlock(),e.createElementBlock("li",{key:0,name:"复制",onClick:o[0]||(o[0]=(...r)=>a.handleCopy&&a.handleCopy(...r))},ou)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nu,[e.createElementVNode("div",{class:"cv-editor-container",ref:l.editorId},null,512)])])),[[s,l.isCdnLoading]])}const pt=p(Jd,[["render",lu],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]);const au={name:"cvEditorJson",components:{},props:{mode:{type:[String],default:"text"},readOnly:{type:[Boolean],default:!1},options:{type:[Object],default:()=>({mode:"text"})},modelValue:[Object,Array,Number,String,Boolean],height:{type:String},plus:{type:Boolean,default:!0}},data(){return{editor:null,style:{},max:!1,internalChange:!1,localVal:""}},watch:{max(t){this.$nextTick(()=>{this.initJsoneditor()})},options:{handler(t){this.options&&this.options.mode&&this.editor},deep:!0}},computed:{getHeight(){return this.height&&!this.max?{height:this.height}:{}}},async mounted(){this.initJsoneditor()},updated(){this.editor.updateProps({mode:this.mode,readOnly:this.readOnly})},beforeUnmount(){this.destroyView()},beforeDestroy(){this.destroyView()},methods:{onChange(){let t=null,o={};try{o=this.editor.get()}catch(n){t=n}t?this.$emit("error",t):this.editor&&(this.internalChange=!0,this.$emit("update:modelValue",o),this.$nextTick(()=>{this.internalChange=!1}))},initJsoneditor(){this.editor||(this.editor=new ao.JSONEditor({target:this.$refs.jsoneditor,props:{value:this.modelValue,mode:this.mode,readOnly:this.readOnly,...this.options,onChange:this.onChange}}),this.updateVal(this.modelValue))},updateVal(t){this.editor&&t!==void 0&&!this.internalChange&&this.editor.update({json:t})},isJSON(t){try{return JSON.parse(t),!0}catch{return!1}},destroyView(){this.editor&&(this.editor.destroy(),this.editor=null)},handleChange(t){this.emitData||(this.emitData=ll(400,o=>{this.$emit("update:modelValue",o)})),this.emitData(t)}}},iu={ref:"jsoneditor",class:"jsoneditor-box"};function su(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-json",{"max-box":l.max,"min-box":!l.max}]),style:e.normalizeStyle(a.getHeight)},[e.createElementVNode("div",iu,null,512),e.createElementVNode("a",{onClick:o[0]||(o[0]=s=>l.max=!l.max),class:"max-btn"})],6)}const mt=p(au,[["render",su],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]);function Ht(t){if(typeof t=="function"&&(t={highlight:t}),!t||typeof t.highlight!="function")throw new Error("Must provide highlight function");return typeof t.langPrefix!="string"&&(t.langPrefix="language-"),{async:!!t.async,walkTokens(o){if(o.type!=="code")return;const n=ru(o);if(t.async)return Promise.resolve(t.highlight(o.text,n)).then(Dt(o));const i=t.highlight(o.text,n);if(i instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Dt(o)(i)},renderer:{code(o,n,i){const l=(n||"").match(/\S*/)[0],a=l?` class="${t.langPrefix}${Ft(l)}"`:"";return o=o.replace(/\n$/,""),`<pre><code${a}>${i?o:Ft(o,!0)}
2
2
  </code></pre>`}}}}function ru(t){return(t.lang||"").match(/\S*/)[0]}function Dt(t){return o=>{typeof o=="string"&&o!==t.text&&(t.escaped=!0,t.text=o)}}const qt=/[&<>"']/,cu=new RegExp(qt.source,"g"),Wt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,du=new RegExp(Wt.source,"g"),uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},It=t=>uu[t];function Ft(t,o){if(o){if(qt.test(t))return t.replace(cu,It)}else if(Wt.test(t))return t.replace(du,It);return t}function hu(t,o){var n=document.createElement("a");if(n.setAttribute("href","data:text/plain;charset=UTF-8,"+encodeURIComponent(t)),n.setAttribute("download",o),n.style.display="none",document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!0),n.dispatchEvent(i)}else n.click()}const pu={methods:{insertLink(){this.insertContent(`
3
3
  [link](href)`)},insertImage(){this.insertContent(`
4
4
  ![image](imgUrl)`)},insertTable(){this.insertContent(`
@@ -35,7 +35,7 @@ row 2 col 1 | row 2 col 2
35
35
 
36
36
  `):this.editor.isClean()||t.ch===0?(this.insertContent("- [ ] "),this.setCursor(t.line,6)):(this.insertContent(`
37
37
  - [ ] `),this.setCursor(t.line+1,6))},topbarType(t=""){}}},mu={strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!0,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!0,theme:!0,exportmd:!0,importmd:!0,save:!1,clear:!1},fu={name:"markdown",mixins:[pu],props:{modelValue:{type:[String,Number],default:""},editorIsSimple:{type:[Boolean],default:!1},editorID:{type:[String],required:!1,default(){return"markdown-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},editorConfig:{type:[Object],default:()=>({tabSize:4,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,line:!0,mode:"text/x-src",theme:"default",cursorHeight:.8,lineWiseCopyCut:!0,height:"500px",fontSize:"14px"})},theme:{type:String,default:"light"},width:{type:[Number,String],default:"auto"},height:{type:[Number,String],default:600},toolbars:{type:Object,default(){return{}}},bordered:{type:Boolean,default:!0},autoSave:{type:Boolean,default:!1},interval:{type:Number,default:1e4},exportFileName:{type:String,default:"unnamed"},markedOptions:{type:Object,default(){return{}}},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"},isPreview:{type:Boolean,default:!1}},data(){return{currentValue:"",timeoutId:null,indexLenth:1,html:"",preview:!1,split:!0,fullscreen:!1,scrollSide:"",lastInsert:"",timerId:null,themeName:"",themeSlideDown:!1,imgSlideDown:!1,imgs:[],scrolling:!0,editorScrollHeight:0,previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},computed:{editorBind(){return{}},heightNum(){let t=""+this.height;return t.includes("px")?t.replace("px"):this.height},heightPx(){let t=""+this.height;return t.includes("px")?t:t+"px"},calcWidth(){return""+this.width,this.width.includes("px")?this.width:this.width+"px"},tools(){const{toolbars:t={}}=this;return{...mu,...t}}},methods:{handleSave(){const{currentValue:t,themeName:o,html:n}=this;this.$emit("on-save",{theme:o,value:t,html:n})},toggleSlideDown(){this.slideDown=!this.slideDown},setThemes(t){this.themeName=t,this.themeSlideDown=!1,this.$emit("on-theme-change",t)},exportFile(){hu(this.currentValue,this.exportFileName+".md")},importFile(t){const o=t.target.files[0];if(!o)return;const n=new FileReader;n.readAsText(o,{encoding:"utf-8"}),n.onload=()=>{this.currentValue=n.result,t.target.value="",this.pro&&this.editor.setOption("value",this.currentValue)},n.onerror=i=>{}},handlePaste(t,o){const{clipboardData:n={}}=o,{types:i=[],items:l}=n;let a=null;for(let s=0;s<i.length;s++)if(i[s]==="Files"){a=l[s];break}if(a){const s=a.getAsFile();/image/gi.test(s.type)&&(this.$emit("on-upload-image",s),o.preventDefault())}},mousescrollSide(t){this.scrollSide=t},addImageClickListener(){const{imgs:t=[]}=this;if(t.length>0)for(let o=0,n=t.length;o<n;o++)t[o].onclick=null;setTimeout(()=>{this.imgs=this.$refs.preview.querySelectorAll("img");for(let o=0,n=this.imgs.length;o<n;o++)this.imgs[o].onclick=()=>{const i=this.imgs[o].getAttribute("src");this.previewImage(i)}},600)},previewImage(t){const o=new Image;o.src=t,o.onload=()=>{const n=o.naturalWidth;o.naturalHeight/n>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=t,this.previewImgModal=!0}},chooseImage(){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{const o=t.files;o[0]&&(this.$emit("on-upload-image",o[0]),t.value="")},t.click()},addCopyListener(){setTimeout(()=>{const t=document.querySelectorAll(".code-block .copy-code");this.btns=t;for(let o=0,n=t.length;o<n;o++)t[o].onclick=()=>{const i=t[o].parentNode.querySelectorAll("pre")[0].innerText,l=document.createElement("input");l.setAttribute("value",i),document.body.appendChild(l),l.select(),document.execCommand("copy"),document.body.removeChild(l),this.$emit("on-copy",i)}},600)}},destroyed(){clearInterval(this.timerId)}};const gu={name:"cvEditorMarkdown",mixins:[fu],data(){return{textareaHeight:this.heightNum,pro:!0,editor:null,lastPos:""}},watch:{currentValue(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{const t=new marked.Marked(Ht({langPrefix:"hljs language-",highlight(n,i){const l=hljs.getLanguage(i)?i:"plaintext";return hljs.highlight(n,{language:l}).value}}));t.use({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0});let o=t.parse(this.currentValue,{sanitize:!1,...this.markedOptions});o=o.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&o!==""&&(o=o.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.html=o,this.indexLenth=this.currentValue.split(`
38
- `).length,this.textareaHeight=this.indexLenth*22,this.addCopyListener(),this.addImageClickListener(),this.$emit("input",this.currentValue)},30)},value(){this.currentValue!==this.modelValue&&(this.currentValue=this.modelValue,this.editor.setOption("value",this.modelValue))}},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js"),await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/foundation.min.css"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/php.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/javascript.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/java.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/plaintext.min.js"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{this.init(),this.editorIsSimple?this.createSimple:this.createEditor()})},methods:{init(){this.currentValue=this.modelValue,this.themeName=this.theme,this.preview=this.isPreview,!this.isPreview&&setTimeout(()=>{this.autoSave&&(this.timerId=setInterval(()=>{this.handleSave()},this.interval))},20)},createSimple(){setTimeout(()=>{const t=this.$refs.textarea;t.focus(),t.addEventListener("keydown",o=>{o.keyCode===83&&(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave())}),t.addEventListener("paste",this.handlePaste),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},20)},createEditor(){this.editor=new CodeMirror(this.$refs[this.editorID],{value:this.currentValue,onload:t=>{const{doc:{height:o=0}}=t;this.editorScrollHeight=o},...this.editorConfig}),this.editor.setSize("height",this.heightPx),this.addEditorLintener(),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},addEditorLintener(){this.editor,this.editor.on("change",t=>{this.lastPos=this.editor.getCursor(),this.currentValue=this.editor.getValue();const{doc:{height:o}}=t;this.editorScrollHeight=o}),this.editor.on("scroll",this.markdownScroll),this.editor.on("paste",this.handlePaste),this.editor.on("keydown",(t,o)=>{o.keyCode===83?(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave()):o.keyCode===13?this.listerenKeyupEnter(o):o.keyCode===8&&this.listerenDelete(t)}),this.editor.on("focus",()=>{this.lastPos=this.editor.getCursor()})},setCursor(t=0,o=0){this.editorIsSimple||(this.editor.setCursor(t,o),this.editor.focus())},setCursor2(t){const o=this.$refs.textarea;if(o.setSelectionRange)o.focus(),o.setSelectionRange(t,t);else if(o.createTextRange){let n=o.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},getCursortPosition(){const t=this.$refs.textarea;let o=0;if(document.selection){t.focus();let n=document.selection.createRange();n.moveStart("character",-this.currentValue.length),o=n.text.length}else(t.selectionStart||parseInt(t.selectionStart,0)===0)&&(o=t.selectionStart);return o},getSelectionText(){return this.editor.getSelection()},getLastPoint(){return this.lastPos||{line:0,ch:0}},insertContent(t){if(this.editorIsSimple){this.lastInsert=t.replace(/\n/g,"");const o=this.getCursortPosition(),n=this.currentValue.substring(o-1,o),i=this.currentValue.substring(o-4,o);if(n!==`
38
+ `).length,this.textareaHeight=this.indexLenth*22,this.addCopyListener(),this.addImageClickListener(),this.$emit("input",this.currentValue)},30)},modelValue(){this.currentValue!==this.modelValue&&(this.currentValue=this.modelValue,this.editor.setOption("value",this.modelValue))}},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js"),await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/foundation.min.css"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/php.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/javascript.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/java.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/plaintext.min.js"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{this.init(),this.editorIsSimple?this.createSimple:this.createEditor()})},methods:{init(){this.currentValue=this.modelValue,this.themeName=this.theme,this.preview=this.isPreview,!this.isPreview&&setTimeout(()=>{this.autoSave&&(this.timerId=setInterval(()=>{this.handleSave()},this.interval))},20)},createSimple(){setTimeout(()=>{const t=this.$refs.textarea;t.focus(),t.addEventListener("keydown",o=>{o.keyCode===83&&(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave())}),t.addEventListener("paste",this.handlePaste),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},20)},createEditor(){this.editor=new CodeMirror(this.$refs[this.editorID],{value:this.currentValue,onload:t=>{const{doc:{height:o=0}}=t;this.editorScrollHeight=o},...this.editorConfig}),this.editor.setSize("height",this.heightPx),this.addEditorLintener(),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},addEditorLintener(){this.editor,this.editor.on("change",t=>{this.lastPos=this.editor.getCursor(),this.currentValue=this.editor.getValue();const{doc:{height:o}}=t;this.editorScrollHeight=o}),this.editor.on("scroll",this.markdownScroll),this.editor.on("paste",this.handlePaste),this.editor.on("keydown",(t,o)=>{o.keyCode===83?(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave()):o.keyCode===13?this.listerenKeyupEnter(o):o.keyCode===8&&this.listerenDelete(t)}),this.editor.on("focus",()=>{this.lastPos=this.editor.getCursor()})},setCursor(t=0,o=0){this.editorIsSimple||(this.editor.setCursor(t,o),this.editor.focus())},setCursor2(t){const o=this.$refs.textarea;if(o.setSelectionRange)o.focus(),o.setSelectionRange(t,t);else if(o.createTextRange){let n=o.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},getCursortPosition(){const t=this.$refs.textarea;let o=0;if(document.selection){t.focus();let n=document.selection.createRange();n.moveStart("character",-this.currentValue.length),o=n.text.length}else(t.selectionStart||parseInt(t.selectionStart,0)===0)&&(o=t.selectionStart);return o},getSelectionText(){return this.editor.getSelection()},getLastPoint(){return this.lastPos||{line:0,ch:0}},insertContent(t){if(this.editorIsSimple){this.lastInsert=t.replace(/\n/g,"");const o=this.getCursortPosition(),n=this.currentValue.substring(o-1,o),i=this.currentValue.substring(o-4,o);if(n!==`
39
39
  `&&this.currentValue!==""&&i!==" "){const l=`
40
40
  `+initStr;this.insertAfterText(l)}else this.insertAfterText(initStr)}else this.editor.replaceSelection(t),this.lastInsert=t.replace(/\n/g,"")},listerenKeyupEnter(t){this.lastInsert&&(["-","- [ ]","- [x]"].includes(this.lastInsert.trim())?(t.preventDefault(),this.insertContent(`
41
41
  `+this.lastInsert)):/^\d+\.$/.test(this.lastInsert.trim())&&(t.preventDefault(),this.insertContent(`