@10yun/cv-pc-ui 0.3.21 → 0.3.22
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-ui.cjs +8 -8
- package/lib/cv-ui.js +2394 -2378
- package/lib/cv-ui.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +3 -3
- package/src/mixins/formBase.js +1 -2
package/lib/cv-ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";/*! cvPcUI v0.3.20 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("element-plus"),ho=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.22.0/standalone.js"),m=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},mo={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 po(t,o,n,a,l,i){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=m(mo,[["render",po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),fo={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function go(t,o,n,a,l,i){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=m(fo,[["render",go],["__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 vo={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 _o(t,o,n,a,l,i){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{loading:l.loadingStatus,onClick:i.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const W=m(vo,[["render",_o],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),yo={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 Co(t,o,n,a,l,i){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{link:"",loading:l.loadingStatus,onClick:i.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const K=m(yo,[["render",Co],["__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 wo={name:"cvAutocompleteBase",props:{...g.ElAutocomplete.props},data(){return{localVal:"",loadingStatus:!1}},created(){}};function ko(t,o,n,a,l,i){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),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["modelValue"])}const Z=m(wo,[["render",ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/base.vue"]]),yt={props:{compConfig:{},dataParse:{type:[Function],default:()=>null}},data(){return{searchData:{},loadDataLoading:!1,loadDataList:[],loadDataTotal:0,loadPageCurr:1,loadPageLimit:10,loadConfigSetting:{},loadConfigDef:{pageCurr:1,pageLimit:10,isSkip:!1,url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}}}},methods:{loadEnding(){this.loadDataLoading=!1,this.$nextTick(()=>{this.loadDataLoading=!1})},loadGetData(){if(this.loadDataLoading=!0,this.loadConfigSetting.apiFunc&&typeof this.loadConfigSetting.apiFunc=="function"){const t=this.loadConfigSetting;let o={...t.where};o[t.request.pageName]=this.loadPageCurr,o[t.request.limitName]=this.loadPageLimit,o=Object.assign(o,this.searchData),this.loadConfigSetting.apiFunc(o).then(n=>{this.loadPageCurr=o[t.request.pageName],this.loadEnding();let a=this.sortOutData(n);if(a.status!=t.response.statusCode){ExtendMessage({message:a.msg,type:"error",duration:1300});return}if(a.data.length===0){ExtendMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let l=a[t.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"&&(l=this.dataParse.call(null,l)),this.loadDataList.push(...l),this.loadDataTotal=a[t.response.countName]||0}).catch(n=>{this.loadEnding()})}else this.loadDataList.length>0&&(this.loadDataTotal=this.loadDataList.length),this.loadEnding()},sortOutData(t){let o=this.loadConfigSetting.response,n={},a=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],a=t[o.dataName];for(let i in a)l[i]=a[i];return n.data=l,n}}},bo={name:"cvAutocompleteLoad",mixins:[yt],emits:["update:modelValue","input"],props:{...g.ElAutocomplete.props,modelValue:null,placeholder:{type:[String],default:"请输入内容"},popperClass:{type:[String],default:"cv-autocomplete"},clearable:{type:[Boolean],default:!0},triggerOnFocus:!1,debounce:500,refID:{type:[String],required:!1,default(){return"cvAutocompleteLoad-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}},compConfig:{type:[Object],default:()=>({})}},data(){return{localVal:"",searchList:[],compConfigDef:{searchField:["value"]},timeout:null}},directives:{autoScrollLoad:{created(t,o,n){let a=t.querySelector(".el-autocomplete-suggestion__wrap"),l=t.querySelector(".el-autocomplete-suggestion__wrap .el-autocomplete-suggestion__list");a.addEventListener("scroll",i=>{a.offsetHeight+a.scrollTop+10-l.offsetHeight>0&&!n.context.loading&&o.value()},!1)}},loadmore:{mount(t,o){function n(l){l.target.clientHeight+l.target.scrollTop==l.target.scrollHeight&&o.value()}let a=t.querySelector(".el-autocomplete-suggestion__wrap");t.__handleScroll__=n,t.__wrapDom__=a,a.addEventListener("scroll",n,!1)},unbind(t,o,n){t.__wrapDom__.removeEventListener("scroll",t.__handleScroll__,!1)}}},created(){this.initConfAll(),this.getData()},methods:{initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.compConfigDef,this.compConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||10,Object.assign(t.where,this.searchData),this.loadConfigSetting=t},getMoreData(){conosle.log("加载更多"),this.loadPageCurr++,this.loadGetData()},getData(){this.loadDataList=[],this.loadGetData()},async querySearchAsync(t,o){this.loadPageCurr=1,this.loadDataLoading=!0;var n=this.loadDataList||[];let a=[];const l=this.loadConfigSetting.searchField||["value"];if(t=t.toLowerCase(),a=t?n.filter(this.createFilter(t,l)):n,a.length>0){const i=a.map(s=>({...s,is_last_tip:!1}));o(i),this.lookFlag=!0}else try{this.loadPageCurr++,this.searchData.keyword=t,this.loadDataList=[],await this.loadGetData();const i=this.loadDataList.map(s=>({...s,is_last_tip:!1}));i.push({is_last_tip:!0}),o(i)}catch{}finally{this.lookFlag=!0}},createFilter(t,o){return n=>o.some(a=>(n[a]+"").toLowerCase().indexOf(t)!==-1)},selectLoadMore(){},handleChange(t){},handleSelect(t){this.$emit("update:modelValue",t)}}};function Vo(t,o,n,a,l,i){const s=e.resolveComponent("cv-icons"),r=e.resolveComponent("el-autocomplete"),d=e.resolveDirective("loadmore");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[1]||(o[1]=c=>l.localVal=c),"fetch-suggestions":i.querySearchAsync,onChange:i.handleChange,onSelect:i.handleSelect}),{default:e.withCtx(({item:c})=>[c.is_last_tip?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",e.normalizeProps(e.mergeProps({key:0},{item:c}))),c.is_last_tip?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cv-autocomolete-nodata",onClick:o[0]||(o[0]=(...u)=>i.getData&&i.getData(...u)),disabled:""},[e.createTextVNode(" 没有更多数据了 "),e.createVNode(s,{type:"refresh-left"}),e.createTextVNode(" 刷新按钮 ")])):e.createCommentVNode("",!0)]),_:3},16,["modelValue","fetch-suggestions","onChange","onSelect"])])),[[d,i.getMoreData]])}const G=m(bo,[["render",Vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/load.vue"]]);Z.install=function(t){t.component(Z.name,Z)};G.install=function(t){t.component(G.name,G)};const So={...g.ElForm,name:"cvFormBase",extends:g.ElForm,provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{}}};function No(t,o,n,a,l,i){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},{...t.$props,...t.$attrs},e.toHandlers(t.$attrs)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Q=m(So,[["render",No],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),Bo={name:"cvFormInline",provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function Eo(t,o,n,a,l,i){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 J=m(Bo,[["render",Eo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]),$o={...g.ElFormItem,name:"cvFormItem",extends:g.ElFormItem,props:{...g.ElFormItem.props},data(){return{localLabelWidth:"",localError:""}},created(){},methods:{}};function xo(t,o,n,a,l,i){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 Y=m($o,[["render",xo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Q.install=function(t){t.component(Q.name,Q)};J.install=function(t){t.component(J.name,J)};Y.install=function(t){t.component(Y.name,Y)};const x={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(":"),i=l[0]||"",s=l[1]||"";switch(i){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(i);break}}}}},To={name:"cvInputText",mixins:[x],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}}}},Do={slot:"prepend"},Lo={slot:"append"};function Fo(t,o,n,a,l,i){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",Do,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Lo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Io=m(To,[["render",Fo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),zo={name:"cvInputMobile",mixins:[x],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)}}},jo=e.createElementVNode("template",{slot:"prepend"},[e.createTextVNode("+86")],-1),Oo={slot:"append"};function Po(t,o,n,a,l,i){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(()=>[jo,e.createElementVNode("template",Oo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const X=m(zo,[["render",Po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),Ao={name:"cvInputEmail",mixins:[x],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)}}},Uo={slot:"prepend"},Ro={slot:"append"};function Mo(t,o,n,a,l,i){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",Uo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ro,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ee=m(Ao,[["render",Mo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),Ho={name:"cvInputPassword",mixins:[x],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)}}},qo={slot:"prepend"},Wo={slot:"append"};function Ko(t,o,n,a,l,i){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",qo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Wo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const te=m(Ho,[["render",Ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]),Zo={name:"cvInputNumber",mixins:[x],props:{},data(){return{}},methods:{_diyValidate(){let t=/^[0-9]*$/;this.rules.indexOf("number")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Go={slot:"prepend"},Qo={slot:"append"};function Jo(t,o,n,a,l,i){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",Go,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Qo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const oe=m(Zo,[["render",Jo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),Yo={name:"cvInputIdcard",mixins:[x],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)}}},Xo={slot:"prepend"},en={slot:"append"};function tn(t,o,n,a,l,i){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",Xo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",en,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ne=m(Yo,[["render",tn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),on={name:"cvInputDigit",mixins:[x],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)}}},nn={slot:"prepend"},ln={slot:"append"};function an(t,o,n,a,l,i){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",nn,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",ln,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const le=m(on,[["render",an],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),sn={name:"cvTextarea",mixins:[x],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 rn(t,o,n,a,l,i){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 ie=m(sn,[["render",rn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]),cn={name:"cvTextareaBtn",mixins:[x],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)}}},dn={class:"cv-textab-group"},un={class:"cv-textab-group__append"},hn={class:"cv-textab_slot-wrap"};function mn(t,o,n,a,l,i){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",dn,[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",un,[e.createElementVNode("div",hn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-textab_slotbtn",type:"primary",size:t.size,onClick:i.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=m(cn,[["render",mn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]),pn={name:"cvInputBtn",mixins:[x],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}}}},fn={class:"cv-input-group"},gn={class:"cv-input-group__append"};function vn(t,o,n,a,l,i){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",fn,[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",gn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-input-btn__slotbtn",type:"primary",size:t.size,onClick:i.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 se=m(pn,[["render",vn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]);X.install=function(t){t.component(X.name,X)};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)};ie.install=function(t){t.component(ie.name,ie)};ae.install=function(t){t.component(ae.name,ae)};se.install=function(t){t.component(se.name,se)};const _n={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 yn(t,o,n,a,l,i){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:i.handleChange,step:t.step}),null,16,["modelValue","onChange","step"])}const re=m(_n,[["render",yn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);re.install=function(t){t.component(re.name,re)};const Cn={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},wn={class:"cv-show-text"},kn=["innerHTML"];function bn(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",wn,[n.text?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:n.text},null,8,kn)):e.createCommentVNode("",!0),n.text?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:1})])}const ce=m(Cn,[["render",bn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),Vn={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:{}},Sn={class:"cv-show-image"};function Nn(t,o,n,a,l,i){const s=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",Sn,[(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 de=m(Vn,[["render",Nn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]),Bn={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 En(t,o,n,a,l,i){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 ue=m(Bn,[["render",En],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),$n={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=""}}},xn={slot:"title"},Tn=["src"],Dn={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},Ln=["src"],Fn=["src"],In=["src"];function zn(t,o,n,a,l,i){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",xn,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,Tn)):e.createCommentVNode("",!0)],64)):n.type==="iframe"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowPreview?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("iframe",{src:n.sources[l.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Ln)])):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,Fn)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowCarousel?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,"initial-index":l.initialIndex,onChange:i.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,In)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)]),_:1},8,["visible"])}const jn=m($n,[["render",zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]),On={name:"gallery",components:{GalleryDialog:jn},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}}},Pn={key:0,class:"cv-gallery"},An={class:"el-upload-list el-upload-list--picture-card"},Un=["src"],Rn=["src"],Mn={class:"el-upload-list__item-actions"},Hn=["onClick"],qn=["onClick"],Wn=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Kn=[Wn];function Zn(t,o,n,a,l,i){const s=e.resolveComponent("el-image"),r=e.resolveComponent("GalleryDialog");return n.source?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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(i.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):d.type==="video"?(e.openBlock(),e.createElementBlock("video",{key:1,src:d.thumb,style:e.normalizeStyle(i.computedStyle)},null,12,Un)):d.type==="iframe"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(i.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,Rn)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Mn,[e.createElementVNode("span",{onClick:u=>i.handlePreview(c,d)},[e.createElementVNode("i",{class:e.normalizeClass(i.viewClass)},null,2)],8,Hn),n.removeFn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:u=>i.handleRemove(c)},[...Kn],8,qn)):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:i.computedSources,title:n.title,type:n.type,ref:"dialog"},null,8,["carouselAttrs","sliceSingle","sources","title","type"])])):e.createCommentVNode("",!0)}const he=m(On,[["render",Zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);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)};he.install=function(t){t.component(he.name,he)};const Gn={name:"cvRadioOptBase",extends:g.ElRadio};function Qn(t,o,n,a,l,i){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 me=m(Gn,[["render",Qn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),Jn={name:"cvRadioOptBtn",extends:g.ElRadioButton};function Yn(t,o,n,a,l,i){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=m(Jn,[["render",Yn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),Xn={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(a=>{t.push({label:a,value:a})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(a=>{let l=a[o]===0?0:a[o]||"",i=a[n]===0?0:a[n]||"";i=i===0?0:i||l,t.push({label:l,value:i,disabled:a.disabled&&!0||!1}),(a.checked=="true"||a.checked==!0)&&(typeof this.localVal=="string"?this.localVal=i:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(i))}),this.localOpt=t}}}};function el(t,o,n,a,l,i){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.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","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.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const fe=m(Xn,[["render",el],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);me.install=function(t){t.component(me.name,me)};pe.install=function(t){t.component(pe.name,pe)};fe.install=function(t){t.component(fe.name,fe)};const tl={name:"cvCheckboxOptBase",extends:g.ElCheckbox};function ol(t,o,n,a,l,i){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 ge=m(tl,[["render",ol],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),nl={name:"cvCheckboxOptBtn",extends:g.ElCheckboxButton,props:{}};function ll(t,o,n,a,l,i){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 ve=m(nl,[["render",ll],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Pt={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(a=>{t.push({label:a,value:a})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(a=>{let l=a[o]===0?0:a[o]||"",i=a[n]===0?0:a[n]||"";i=i===0?0:i||l,t.push({label:l,value:i,disabled:a.disabled&&!0||!1}),(a.checked=="true"||a.checked==!0)&&(typeof this.localVal=="string"?this.localVal=i:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(i))}),this.localOpt=t}this._parseLocalOptDiy()},_parseLocalOptDiy(){}}},il={name:"cvCheckboxAll",mixins:[Pt],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)})}}},al={class:"cv-checkbox-all"},sl=e.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function rl(t,o,n,a,l,i){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",al,[e.createVNode(s,{indeterminate:l.isIndeterminate,modelValue:l.checkAll,"onUpdate:modelValue":o[0]||(o[0]=d=>l.checkAll=d),onChange:i.handleCheckAllChange},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["indeterminate","modelValue","onChange"]),sl,e.createVNode(r,{modelValue:t.localVal,"onUpdate:modelValue":o[1]||(o[1]=d=>t.localVal=d),onChange:i.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,value:d.value,key:c,onChange:t.handleChange,disabled:t.disabled||d.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const _e=m(il,[["render",rl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),cl={name:"cvCheckboxGroup",mixins:[Pt],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function dl(t,o,n,a,l,i){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,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","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,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const ye=m(cl,[["render",dl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);ge.install=function(t){t.component(ge.name,ge)};ve.install=function(t){t.component(ve.name,ve)};ye.install=function(t){t.component(ye.name,ye)};_e.install=function(t){t.component(_e.name,_e)};function ul(t,o,n){var a=n||{},l=a.noTrailing,i=l===void 0?!1:l,s=a.noLeading,r=s===void 0?!1:s,d=a.debounceMode,c=d===void 0?void 0:d,u,p=!1,h=0;function f(){u&&clearTimeout(u)}function k(w){var _=w||{},v=_.upcomingOnly,C=v===void 0?!1:v;f(),p=!C}function y(){for(var w=arguments.length,_=new Array(w),v=0;v<w;v++)_[v]=arguments[v];var C=this,S=Date.now()-h;if(p)return;function B(){h=Date.now(),o.apply(C,_)}function T(){u=void 0}!r&&c&&!u&&B(),f(),c===void 0&&S>t?r?(h=Date.now(),i||(u=setTimeout(c?T:B,t))):B():i!==!0&&(u=setTimeout(c?T:B,c===void 0?t-S:t))}return y.cancel=k,y}function hl(t,o,n){var a=n||{},l=a.atBegin,i=l===void 0?!1:l;return ul(t,o,{debounceMode:i!==!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((a,l)=>{const i=document.createElement("script");t=t.replace(/([^:]\/)\/+/g,"$1"),i.src=t,i.id=t,i.type="text/javascript",o?i.src=t+"?t="+new Date().getTime():i.src=t,document.getElementById(t)&&n?a():(document.body.appendChild(i),i.onload=()=>{a()})})}function ml(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 pl={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((a,l)=>{if((isNaN(n)?a.provinceName:a.provinceCode)==o)return this.provinceCode=a.provinceCode,this.handleChoose("provinceCode",a,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((a,l)=>{if((isNaN(n)?a.cityName:a.cityCode)==o)return this.cityCode=a.cityCode,this.handleChoose("cityCode",a,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((a,l)=>{if((isNaN(n)?a.districtName:a.districtCode)==o)return this.districtCode=a.districtCode,this.handleChoose("districtCode",a,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])}}},fl={class:"cv-geo-city"},gl={key:0},vl={key:1};function _l(t,o,n,a,l,i){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",fl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:i.getProvinces,onChange:i.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:p=>i.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",gl,[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:i.getCities,onChange:i.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:p=>i.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",vl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:i.getDistrict,onChange:i.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:p=>i.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 Ce=m(pl,[["render",_l],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]),yl={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((a,l)=>{if((isNaN(n)?a.provinceName:a.provinceCode)==o)return this.provinceCode=a.provinceCode,this.handleChoose("provinceCode",a,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((a,l)=>{if((isNaN(n)?a.cityName:a.cityCode)==o)return this.cityCode=a.cityCode,this.handleChoose("cityCode",a,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((a,l)=>{if((isNaN(n)?a.districtName:a.districtCode)==o)return this.districtCode=a.districtCode,this.handleChoose("districtCode",a,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 a=this.cityList[0];this.cityCode=a.cityCode,this.changeCity(a.cityCode),this.handleChoose("cityCode",a,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])}}},Cl={class:"cv-geo-city"},wl=["hidden"],kl={key:1};function bl(t,o,n,a,l,i){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Cl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:i.getProvinces,onChange:i.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:p=>i.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:i.getCities,onChange:i.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:p=>i.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,wl)),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",kl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:i.getDistrict,onChange:i.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:p=>i.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 we=m(yl,[["render",bl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);Ce.install=function(t){t.component(Ce.name,Ce)};we.install=function(t){t.component(we.name,we)};const Vl={...g.ElOption,extends:g.ElOption,name:"cvSelectOpt"},ke=m(Vl,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]),Sl={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(a=>{t.push({label:a,value:a})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(a=>{let l=a[o]===0?0:a[o]||"",i=a[n]===0?0:a[n]||"";if(i=i===0?0:i||l,this.dataDisabled.length>0)for(let s in this.dataDisabled)this.dataDisabled[s][n]==i&&(a.disabled=!0);t.push({label:l,value:i,disabled:a.disabled&&!0||!1}),(a.checked=="true"||a.checked==!0)&&(typeof this.localVal=="string"?this.localVal=i:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(i))}),this.localOpt=t}}}};function Nl(t,o,n,a,l,i){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=>i.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 be=m(Sl,[["render",Nl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]),Bl={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",a=this.dataDisabled;l(t);function l(i){for(let s in i)a.map(r=>{i[s][o]==r[o]&&(i[s].disabled=!0)}),i[s][n]&&l(i[s][n])}this.localOpt=t}}};function El(t,o,n,a,l,i){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:i.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:i.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 Ve=m(Bl,[["render",El],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);ke.install=function(t){t.component(ke.name,ke)};be.install=function(t){t.component(be.name,be)};Ve.install=function(t){t.component(Ve.name,Ve)};const $l={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;a(t);function a(l){for(let i in l)n.map(s=>{l[i][o]==s[o]&&(l[i].disabled=!0)}),l[i].children&&a(l[i].children)}this.localOpt=t},getCheckedNodes(){}}},xl={class:"cv-cascader-base block"};function Tl(t,o,n,a,l,i){const s=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",xl,[e.createVNode(s,e.mergeProps(t.$props,{props:i.props2,modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),options:l.localOpt,onChange:i.handleChange,onGetCheckedNodes:i.getCheckedNodes}),null,16,["props","modelValue","options","onChange","onGetCheckedNodes"])])}const Se=m($l,[["render",Tl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);Se.install=function(t){t.component(Se.name,Se)};const At={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:{}},Dl={name:"cvTimeBase",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function Ll(t,o,n,a,l,i){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 Ne=m(Dl,[["render",Ll],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]),Fl={name:"cvTimeRange",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function Il(t,o,n,a,l,i){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 Be=m(Fl,[["render",Il],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),Ct={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:""}}},zl={name:"cvDateBase",mixins:[Ct],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 jl(t,o,n,a,l,i){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 Ee=m(zl,[["render",jl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]),Ol={name:"cvDateRange",mixins:[Ct],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 Pl(t,o,n,a,l,i){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 $e=m(Ol,[["render",Pl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]),Al={name:"cvDatetimeBase",mixins:[Ct],props:{format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},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 Ul(t,o,n,a,l,i){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 xe=m(Al,[["render",Ul],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]),Rl={name:"cvDatetimeRange",mixins:[Ct],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 Ml(t,o,n,a,l,i){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 Te=m(Rl,[["render",Ml],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);Ne.install=function(t){t.component(Ne.name,Ne)};Be.install=function(t){t.component(Be.name,Be)};Ee.install=function(t){t.component(Ee.name,Ee)};$e.install=function(t){t.component($e.name,$e)};xe.install=function(t){t.component(xe.name,xe)};Te.install=function(t){t.component(Te.name,Te)};const Hl={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 ql(t,o,n,a,l,i){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 De=m(Hl,[["render",ql],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);De.install=function(t){t.component(De.name,De)};const Wl={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 a=n.data&&n.data.sign||"";this.diyPlaceholder="识别码:"+a}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 Kl(t,o,n,a,l,i){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:i.updateInput}),{append:e.withCtx(()=>[e.createVNode(s,{onClick:i.getSmsCode,disabled:l.btnDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.btnText),1)]),_:1},8,["onClick","disabled"])]),_:1},16,["modelValue","placeholder","onInput"])}const Le=m(Wl,[["render",Kl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);Le.install=function(t){t.component(Le.name,Le)};function Zl(t,o,n){let a;n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to post ${t} ${n.status}`;const l=new Error(a);return l.status=n.status,l.method="post",l.url=t,l}function Gl(t){const o=t.responseText||t.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Ql(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 a=new FormData;t.data&&Object.keys(t.data).forEach(i=>{a.append(i,t.data[i])}),a.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(Zl(n,t,o));t.onSuccess(Gl(o))},o.open("post",n,!0),t.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const l=t.headers||{};for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&l[i]!==null&&o.setRequestHeader(i,l[i]);return o.send(a),o}const wt={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}Ql({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(a=>{})}}},Jl={name:"cvUploadAvatar",mixins:[wt],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",a=o[o.length-1]==="png",l=o[o.length-1]==="gif",i=o[o.length-1]==="jpeg";if(!n&&!a&&!i&&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||a||l||i&&s},upAvatarSuccess(t,o){this.imageUrl=URL.createObjectURL(o.raw)}}},Yl={class:"cv-upload-avatar"},Xl=["src"],ei={key:1,class:"el-icon-plus cv-upload-avatar__icon"};function ti(t,o,n,a,l,i){const s=e.resolveComponent("el-upload");return e.openBlock(),e.createElementBlock("div",Yl,[e.createVNode(s,e.mergeProps({action:t.upAction,withCredentials:t.withCredentials,showFileList:!1},{"before-upload":i.upAvatarBefore,"on-success":i.upAvatarSuccess}),{default:e.withCtx(()=>[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img"},null,8,Xl)):(e.openBlock(),e.createElementBlock("i",ei))]),_:1},16,["before-upload","on-success"])])}const Fe=m(Jl,[["render",ti],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]),oi={name:"cvUploadImage",mixins:[wt],components:{ShowGallery:he},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 a=t[n];typeof a=="string"?o.push(this.getFileInfo(a)):Object.prototype.toString.call(a)==="[object Object]"&&a.name&&a.url&&o.push(a)}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(a=>!!(t.type.indexOf(a)>-1||n&&n.indexOf(a)>-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 a=t;this.uploading=!1,this.isShowSuccessTip&&this.$message.success("上传成功");const l=this.mergeAttrs;l&&typeof l.upResponseFn=="function"&&(a=l.upResponseFn(t,o)),this.upResponseFn&&(a=this.upResponseFn(t,o,this.successFiles)),this.multiple?Array.isArray(this.modelValue)?this.$emit("update:modelValue",[...this.modelValue,a]):this.$emit("update:modelValue",[a]):this.$emit("update:modelValue",a)},handlePictureCardPreview(t){var a,l,i;let o=t.raw||{},n="";o.type?n=o.type.split("/")[0]:n=(i=(l=(a=t==null?void 0:t.response)==null?void 0:a.body)==null?void 0:l.type)==null?void 0:i.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||[]}}},ni={class:"cv-upload-image"},li=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),ii=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),ai=["src"],si=e.createElementVNode("i",{class:"el-icon-plus"},null,-1),ri=[si],ci={key:0,class:"el-upload__tip",slot:"tip"},di={style:{color:"#f56c6c"}},ui={style:{color:"#f56c6c"}},hi={style:{color:"#f56c6c"}},mi=["src"];function pi(t,o,n,a,l,i){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",ni,[e.withDirectives(e.createVNode(s,e.mergeProps({ref:"upload",style:{marginBottom:n.multiple&&i.computedValues.length?"20px":"0px"}},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,withCredentials:t.withCredentials,limit:i.limit,multiple:n.multiple,drag:!!n.drag,listType:n.drag?"picture":"picture-card",disabled:l.uploading,showFileList:!0},{"file-list":l.fileList,"before-upload":i.upImageBefore,"on-change":i.upImageChange,"on-exceed":i.upImageExceed,"on-error":i.upImageError,"on-success":i.upImageSuccess,"http-request":t.httpRequest,"on-remove":i.handleRemove,"on-preview":i.handlePictureCardPreview}),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[n.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[li,ii],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,ai)):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px",lineHeight:n.size+"px"})},[...ri],4))],64))])),[[c,l.uploading]]),i.showTip?(e.openBlock(),e.createElementBlock("div",ci,[e.createTextVNode(" 请上传 "),e.createElementVNode("b",di,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",ui,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",hi,e.toDisplayString(i.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,i.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,mi)]),_:1},8,["visible","title"]),i.isShowUpload?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,lazy:n.lazy,"remove-fn":i.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 Ie=m(oi,[["render",pi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),fi={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 bt(t){return`https://10ui.cn/icon_ext/${fi[t]}.svg`}const gi={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 bt[o]||bt.file}else return bt.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)}}},vi=["src"],_i={class:"cv-upload-list__item-content-action"};function yi(t,o,n,a,l,i){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:i.getExtension(r.name),class:"el-upload-list__item-content-name-icon"},null,8,vi),e.createElementVNode("span",null,e.toDisplayString(r.name),1)]),_:2},1032,["href"]),e.createElementVNode("div",_i,[n.isShowSize?(e.openBlock(),e.createBlock(s,{key:0,underline:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.getSize(r.size)),1)]),_:2},1024)):e.createCommentVNode("",!0),n.isCanDownload?(e.openBlock(),e.createBlock(s,{key:1,underline:!1,onClick:c=>i.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=>i.handleDelete(d,r),type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]))),128))]),_:1})}const Ci=m(gi,[["render",yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]),wi={inheritAttrs:!1,name:"cvUploadFile",mixins:[wt],components:{uploadList:Ci},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(a=>!!(t.type.indexOf(a)>-1||o&&o.indexOf(a)>-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}},ki={class:"cv-upload-file"},bi={key:0,class:"el-upload__tip"},Vi={style:{color:"#f56c6c"}},Si={style:{color:"#f56c6c"}};function Ni(t,o,n,a,l,i){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("upload-list");return e.openBlock(),e.createElementBlock("div",ki,[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":i.upFileBefore,"on-change":i.upFileChange,"on-exceed":i.upFileExceed,"on-error":i.upFileError,"on-success":i.upFileSuccess}),{tip:e.withCtx(()=>[i.showTip?(e.openBlock(),e.createElementBlock("div",bi,[e.createTextVNode(" 请上传 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" 大小不超过 "),e.createElementVNode("b",Vi,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",Si,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(i.btnText),1)]),_:1})]),_:1},16,["before-upload","on-change","on-exceed","on-error","on-success"])),e.createVNode(d,{disabled:n.disabled,files:i.list,isCanDelete:n.isCanDelete,isCanDownload:n.isCanDownload,isShowDeleteConfim:n.isShowDeleteConfim,isShowSize:n.isShowSize,onRemove:i.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","isShowSize","onRemove"])])}const ze=m(wi,[["render",Ni],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]),Bi={name:"cvUploadVideo",mixins:[wt],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")}}},Ei={class:"cv-upload-video"},$i=e.createElementVNode("i",{class:"el-icon-upload"},null,-1),xi=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将视频拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),Ti={key:0,class:"el-upload__tip",slot:"tip"},Di={style:{color:"#f56c6c"}},Li={style:{color:"#f56c6c"}},Fi={key:1,class:"vue-hover-mask"},Ii=["src"],zi=e.createElementVNode("i",{class:"el-icon-zoom-in"},null,-1),ji=[zi],Oi=e.createElementVNode("i",{class:"el-icon-delete"},null,-1),Pi=[Oi],Ai=["src"];function Ui(t,o,n,a,l,i){const s=e.resolveComponent("el-progress"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",Ei,[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":i.upVideoBefore,"on-error":i.upVideoError,"on-progress":i.upVideoProcess,"on-success":i.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},[$i,xi,i.showTip?(e.openBlock(),e.createElementBlock("div",Ti,[e.createTextVNode(" 请上传 "),e.createElementVNode("span",Di," "+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",Li,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",Fi,[e.createElementVNode("video",{autoplay:!1,src:n.modelValue,style:e.normalizeStyle({width:n.width+"px",height:n.height?n.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,Ii),e.createElementVNode("span",{onClick:o[2]||(o[2]=(...c)=>i.handleHoverClick&&i.handleHoverClick(...c)),class:"vue-hover-mask_actions"},[e.createElementVNode("span",{onClick:o[0]||(o[0]=(...c)=>i.handlePlayerVideo&&i.handlePlayerVideo(...c)),class:"cv-upload-video_mask__item"},[...ji]),e.createElementVNode("span",{onClick:o[1]||(o[1]=(...c)=>i.handleRemove&&i.handleRemove(...c)),class:"cv-upload-video_mask__item"},[...Pi])])])):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,Ai)):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}const je=m(Bi,[["render",Ui],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);Fe.install=function(t){t.component(Fe.name,Fe)};Ie.install=function(t){t.component(Ie.name,Ie)};ze.install=function(t){t.component(ze.name,ze)};je.install=function(t){t.component(je.name,je)};const Ri={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(){}},Mi={class:"tabs-header"};function Hi(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tabs-jump",i.tabPositionClass])},[e.createElementVNode("div",Mi,[e.renderSlot(t.$slots,"default")])],2)}const Oe=m(Ri,[["render",Hi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),qi={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")}}},Wi={key:1};function Ki(t,o,n,a,l,i){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tab-pane",l.className]),onClick:o[0]||(o[0]=(...s)=>i.handleClick&&i.handleClick(...s))},[t.$slots.label?e.renderSlot(t.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",Wi,e.toDisplayString(n.label),1))],2)),[[e.vShow,l.isshow]])}const Pe=m(qi,[["render",Ki],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);Oe.install=function(t){t.component(Oe.name,Oe)};Pe.install=function(t){t.component(Pe.name,Pe)};const Zi={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),a=this.randomNum(t,o),l=this.randomNum(t,o);return"rgb("+n+","+a+","+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 a=(n+1)*(this.contentWidth/(this.localCode.length+1)),l=this.randomNum(this.fontSizeMax,this.contentHeight-5);var i=this.randomNum(-45,45);t.translate(a,l),t.rotate(i*Math.PI/180),t.fillText(o,0,0),t.rotate(-i*Math.PI/180),t.translate(-a,-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()}}},Gi={class:"cv-draw-captcha"},Qi=["width","height"];function Ji(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",Gi,[e.createElementVNode("canvas",{id:"cv-draw-captcha",width:n.contentWidth,height:n.contentHeight,onClick:o[0]||(o[0]=(...s)=>i.refreshCode&&i.refreshCode(...s))},null,8,Qi)])}const Ae=m(Zi,[["render",Ji],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Yi={name:"cvDrawQrcode",data(){return{}}};function Xi(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",null,"二维码")}const Ue=m(Yi,[["render",Xi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);Ae.install=function(t){t.component(Ae.name,Ae)};Ue.install=function(t){t.component(Ue.name,Ue)};const ea={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)}}},ta={class:"cv-tag-base"},oa=["onBlur"];function na(t,o,n,a,l,i){const s=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",ta,[(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=>i.removeTag(d),key:d}),{default:e.withCtx(()=>[e.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${d}`,onBlur:c=>i.checkTag(d)},e.toDisplayString(r),41,oa)]),_:2},1040,["onClose"]))),128)),e.createElementVNode("i",{class:"el-icon-circle-plus-outline",onClick:o[0]||(o[0]=r=>i.addTag())})])}const Re=m(ea,[["render",na],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Re.install=function(t){t.component(Re.name,Re)};const la={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 a=o[n],l=this.rightConditionTemp[n].trim();return a?String(a).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 a=this.rightTableData.some(l=>this.checkObjectIsEqual(l,n));this.$refs.leftTable.toggleRowSelection(n,a)})})})}},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(a=>this.checkObjectIsEqual(a,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()}}},Ut=t=>(e.pushScopeId("data-v-d01ca678"),t=t(),e.popScopeId(),t),ia={class:"cv-transfer-table"},aa={class:"transfer-panel"},sa={class:"transfer-panel-header"},ra={key:0},ca={style:{padding:"5px"}},da={class:"transfer-buttons"},ua={key:0,class:"button-text"},ha=Ut(()=>e.createElementVNode("i",{class:"el-icon-arrow-right"},null,-1)),ma=Ut(()=>e.createElementVNode("i",{class:"el-icon-arrow-left"},null,-1)),pa={key:0,class:"button-text"},fa={class:"transfer-panel"},ga={class:"transfer-panel-header"},va={key:0},_a={style:{padding:"5px"}};function ya(t,o,n,a,l,i){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"),p=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",aa,[e.createElementVNode("p",sa,[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",ra,[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=>i.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":i.handleRowStyle,onRowClick:i.handleLeftRowClick,onSelectionChange:i.handleLeftSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection",selectable:i.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",ca,[n.showPagination?(e.openBlock(),e.createBlock(p,{key:0,onSizeChange:i.handleSizeChange,onCurrentChange:i.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",da,[e.createVNode(s,{type:"primary",class:e.normalizeClass(i.buttonClasses),disabled:i.disabledLeftButton,onClick:i.addToRight},{default:e.withCtx(()=>[n.buttonTexts[0]!==void 0?(e.openBlock(),e.createElementBlock("span",ua,e.toDisplayString(n.buttonTexts[0]),1)):e.createCommentVNode("",!0),ha]),_:1},8,["class","disabled","onClick"]),e.createVNode(s,{type:"primary",class:e.normalizeClass(i.buttonClasses),disabled:l.rightSelection.length===0,onClick:i.addToLeft},{default:e.withCtx(()=>[ma,n.buttonTexts[1]!==void 0?(e.openBlock(),e.createElementBlock("span",pa,e.toDisplayString(n.buttonTexts[1]),1)):e.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),e.createElementVNode("div",fa,[e.createElementVNode("p",ga,[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",va,[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=>i.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:i.calcRightTableData,"row-key":n.tableRowKey,onRowClick:i.handleRightRowClick,onSelectionChange:i.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",_a,[n.showPagination?(e.openBlock(),e.createBlock(p,{key:0,total:l.rightTableData.length,layout:"total"},null,8,["total"])):e.createCommentVNode("",!0)])])])}const Me=m(la,[["render",ya],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);Me.install=function(t){t.component(Me.name,Me)};const Et={provide(){return{pageCurr:this.loadConfigSetting.pageCurr||1,pageLimit:this.loadConfigSetting.pageLimit||10}},props:{...g.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({})}},data(){return{loadDataList:[]}},watch:{modelValue(t){this.loadDataList=t},loadDataList(t){this.$emit("update:modelValue",t)}},created(){this.loadDataList=this.modelValue},methods:{_getPageCurr(){return this.loadPageCurr},_getPageSize(){return this.loadPageLimit},handleCurrentChange(t){this.loadPageCurr=t,this.getData()},handleSizeChange(t){this.loadPageLimit=t,this.getData()}}},Ca={name:"cvTableBase",mixins:[yt,Et],props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tablePagin:{type:Object,default(){return{}}},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{paginationGroup:[10,20,30,50,100,200],paginationCount:7,searchData:{},tableConfDef:{}}},watch:{tableRefresh(t,o){this.initConfAll(),this.refresh()}},updated(){},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||this.paginationGroup[0],Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},wa={class:"cv-table-list"},ka={key:0,class:"cv-tablie-list-page page"};function ba(t,o,n,a,l,i){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",wa,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:i.handleSelectionChange}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,t.loadDataLoading]]),n.showPagebreak?e.withDirectives((e.openBlock(),e.createElementBlock("div",ka,[e.createVNode(d,{onClick:i.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,"pager-count":l.paginationCount,"page-sizes":l.paginationGroup,"current-page":t.loadPageCurr,"page-size":t.loadPageLimit,layout:"total, sizes, prev, pager, next, jumper",total:t.loadDataTotal},null,8,["onSizeChange","onCurrentChange","pager-count","page-sizes","current-page","page-size","total"])],512)),[[e.vShow,t.loadDataLoading===!1]]):e.createCommentVNode("",!0)])}const He=m(Ca,[["render",ba],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]),Va={name:"cvTableTree",mixins:[yt,Et],props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{searchData:{},tableConfDef:{tablePrimary:"",childName:"children"},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.refresh()}},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},Sa={class:"cv-table-tree"};function Na(t,o,n,a,l,i){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Sa,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:i.handleSelectionChange,"row-key":t.loadConfigSetting.tablePrimary,"tree-props":{children:t.loadConfigSetting.childName,hasChildren:"hasChildren"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[r,t.loadDataLoading]])])}const qe=m(Va,[["render",Na],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]),Ba={name:"cvTableEditor",mixins:[yt,Et],props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{mergeRules:{},apiFunc:null,tableConfDef:{},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.loadConfigSetting=Object.assign({},this.tableConfDef,this.tableConfig)},mounted(){},methods:{cell_click(t,o,n,a){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){}}},Ea={class:"cv-table-editor"};function $a(t,o,n,a,l,i){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ea,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},"row-class-name":"cv-tbed-tr"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data"])),[[r,t.loadDataLoading]])])}const We=m(Ba,[["render",$a],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),xa={name:"cvTbColumnIndex",inject:{pageCurr:{default:1},pageLimit:{default:10}},props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:55},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(t){return this.continuity&&this.pageCurr&&this.pageLimit?t+1+(this.pageCurr-1)*this.pageLimit:t+1}}};function Ta(t,o,n,a,l,i){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"index",index:i.indexMethod}),null,16,["index"])}const Ke=m(xa,[["render",Ta],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),Da={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 La(t,o,n,a,l,i){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"selection"}),null,16)}const Ze=m(Da,[["render",La],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-check.vue"]]),Fa={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}}},Ia={style:{display:"contents"}};function za(t,o,n,a,l,i){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",Ia,e.toDisplayString(r.row[t.prop]),1)]),_:1},16)}const Ge=m(Fa,[["render",za],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]),ja={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}}},Oa=e.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[e.createTextVNode(" 暂无 "),e.createElementVNode("br"),e.createTextVNode(" 图片 ")],-1),Pa={key:0,class:"cv-table-column-img-mark"},Aa={class:"cv-table-column-img-text"};function Ua(t,o,n,a,l,i){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:i.handleImgOne(d.row),"preview-src-list":i.handleImgArr(d.row)},{default:e.withCtx(()=>[Oa]),_:2},1032,["style","src","preview-src-list"]),i.handleImgLeng(d.row)>1?(e.openBlock(),e.createElementBlock("p",Pa,[e.createElementVNode("span",Aa,e.toDisplayString(i.handleImgLeng(d.row))+"张",1)])):e.createCommentVNode("",!0)],4)]),_:1},16)}const Qe=m(ja,[["render",Ua],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),Ra={name:"cvTbColumnOpt",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Ma(t,o,n,a,l,i){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=m(Ra,[["render",Ma],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),Ha={name:"cvTbColumnBase",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function qa(t,o,n,a,l,i){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 Ye=m(Ha,[["render",qa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Wa={name:"cvTbColumnExpand",props:{...g.ElTableColumn.props},data(){return{}},created(){}};function Ka(t,o,n,a,l,i){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=m(Wa,[["render",Ka],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),Za={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 Ga(t,o,n,a,l,i){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(i.dealTypeEnum(r.row)),1)]),_:1},16)}const et=m(Za,[["render",Ga],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]),Qa={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 a=this.sortOutData(n.searchMockData);this.tableData=a,this.$message({message:a.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(a=>{this.searchResList=[...a.data],this.searchParseData(t,o)})},searchParseData(t,o){var n=[],a=[];const l=this.searchSett;if(this.searchResList.length>0){for(let i in this.searchResList){let s=this.searchResList[i];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 p=l.searchField.row_unit;s.row_unit=s[p];const h=l.searchField.row_id;s.row_id=s[h],s.value=s.row_name,a.push(s)}n=a}clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(n)},600)},inputSearchFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},searchIconClick(){this.isEditIndex=null}}},Ja={class:"name"},Ya={class:"addr"},Xa={class:"addr"},es={class:"droplist-item"},ts={class:"name"},os={key:0,class:"attr"},ns={class:"price"},ls={class:"rest"},is=["onClick"];function as(t,o,n,a,l,i){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":p=>u.row[t.prop]=p,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":i.searchQuery,onSelect:p=>i.searchSelect(p,u.row,u.$index),onFocus:p=>i.searchFocus(u.$index,p),onBlur:p=>i.searchBlur(u.row,u.$index)}),{suffix:e.withCtx(()=>[e.createVNode(r,{onClick:p=>i.searchIconClick(u.row,u.$index)},{default:e.withCtx(()=>[e.createVNode(s)]),_:2},1032,["onClick"])]),default:e.withCtx(({item:p})=>[e.renderSlot(t.$slots,"default",{item:p},()=>[e.createElementVNode("div",Ja,e.toDisplayString(p.row_name),1),e.createElementVNode("span",Ya,"价格:"+e.toDisplayString(p.row_price),1),e.createElementVNode("span",Xa,e.toDisplayString(p.row_rest),1),e.createElementVNode("div",es,[e.createElementVNode("div",ts,[e.createTextVNode(e.toDisplayString(p.row_name)+" ",1),p.row_attr?(e.openBlock(),e.createElementBlock("div",os,"[ "+e.toDisplayString(p.row_attr)+"]",1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ns,"¥ "+e.toDisplayString(p.row_price),1),e.createElementVNode("div",ls,e.toDisplayString(p.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:p=>i.searchEdit(u.row,u.$index)},e.toDisplayString(u.row[t.prop]),9,is))]),_:3},16)}const tt=m(Qa,[["render",as],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),ss={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 rs(t,o,n,a,l,i){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(p=>[n.btnAdd?(e.openBlock(),e.createBlock(d,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:o[0]||(o[0]=h=>i.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=>i.optHdDelete(p.$index,p.row)},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c)]),_:1})]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1},16)}const ot=m(ss,[["render",rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]),cs={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 a=parseInt(this.toFixed);isNaN(n)||(t[this.prop]=parseFloat(n).toFixed(a))}else t[this.prop]=n}},render22(t,o){let n=this;return t("el-table-column",{props:{...this.$props},scopedSlots:{default:a=>{this.currValue=a.row[this.prop];let l=a.$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:i=>{i.keyCode===13&&(this.$emit("update:param",i.target.value),this.callback&&this.callback())}},on:{blur:i=>{this.$emit("update:param",i.target.value),this.callback&&this.callback()},input:function(i){n.currValue=i||i.target.value},blur:i=>{this.isEditIndex=null,n.currValue=i||i.target.value}}},this.currValue):t("span",{class:{showtext:!0},on:{click:()=>{this.isEditIndex=l}}},this.currValue)}}})}},ds=["onClick"];function us(t,o,n,a,l,i){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=>i.textHdSave(c.row,c.$index),["prevent"]),onClear:u=>i.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=>i.textHdEdit(c.row,c.$index)},e.toDisplayString(c.row[t.prop]),9,ds))]),_:1},16)}const nt=m(cs,[["render",us],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),hs={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 ms(t,o,n,a,l,i){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,p)=>(e.openBlock(),e.createBlock(s,{key:p,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 lt=m(hs,[["render",ms],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ps={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 fs(t,o,n,a,l,i){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,p)=>(e.openBlock(),e.createBlock(s,{key:p,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 it=m(ps,[["render",fs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),gs={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 vs(t,o,n,a,l,i){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,p)=>(e.openBlock(),e.createBlock(s,{key:p,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=m(gs,[["render",vs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);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)};Ge.install=function(t){t.component(Ge.name,Ge)};Qe.install=function(t){t.component(Qe.name,Qe)};Je.install=function(t){t.component(Je.name,Je)};Ye.install=function(t){t.component(Ye.name,Ye)};Xe.install=function(t){t.component(Xe.name,Xe)};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)};it.install=function(t){t.component(it.name,it)};at.install=function(t){t.component(at.name,at)};function _s(t){return typeof Array.isArray=="function"?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}function ys(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cs(t){return!isNaN(Number(t))}function z(t){return _s(t)?t.length===0:ys(t)?Object.keys(t).length===0:t===""||t===void 0||t===null}const O=(t,o)=>z(t)?o:t,ws=(t,o=200,n=!1)=>{let a=!1,l=null;const i=(...s)=>new Promise((r,d)=>{if(l&&clearTimeout(l),n&&!a){const c=t.apply(void 0,s);r(c),a=!0}else l=setTimeout(()=>{const c=t.apply(void 0,s);r(c),a=!1,l=null},o)});return i.cancel=()=>{l&&clearTimeout(l),a=!1},i};function F(t){return t==null?"":String(t)}function ks(t){let o=["png","jpg","jpeg","gif","webp","svg"],n=t.lastIndexOf("."),a=t.substring(n+1);return o.indexOf(a.toLowerCase())!=-1}function bs(t){return window.URL?window.URL.createObjectURL(t):window.webkitURL?window.webkitURL.createObjectURL(t):""}function Vs(t){var o=new Date,n=new Date(t),a=o-n,l=Math.floor(a/1e3),i=Math.floor(l/60),s=Math.floor(i/60);if(i<1)var r=l+"秒前";else if(s<1)var r=i+"分钟前";else if(s<24)var r=s+"小时前";else var r=n.toLocaleString();return r}const Ss={},Ns={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bs=e.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),Es=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),$s=[Bs,Es];function xs(t,o){return e.openBlock(),e.createElementBlock("svg",Ns,[...$s])}const Ts=m(Ss,[["render",xs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),Ds={},Ls={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Fs=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),Is=[Fs];function zs(t,o){return e.openBlock(),e.createElementBlock("svg",Ls,[...Is])}const js=m(Ds,[["render",zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),Os={},Ps={class:"comment-common-icon"},As=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),Us=[As];function Rs(t,o){return e.openBlock(),e.createElementBlock("i",Ps,[...Us])}const Ms=m(Os,[["render",Rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),Hs={},qs={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Ws=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),Ks=[Ws];function Zs(t,o){return e.openBlock(),e.createElementBlock("svg",qs,[...Ks])}const Gs=m(Hs,[["render",Zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Qs={},Js={class:"comment-common-icon"},Ys=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),Xs=[Ys];function er(t,o){return e.openBlock(),e.createElementBlock("i",Js,[...Xs])}const tr=m(Qs,[["render",er],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),or={},nr={class:"comment-common-icon",style:{color:"#1e80ff"}},lr=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),ir=[lr];function ar(t,o){return e.openBlock(),e.createElementBlock("i",nr,[...ir])}const sr=m(or,[["render",ar],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),rr={},cr={class:"comment-common-icon"},dr=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),ur=[dr];function hr(t,o){return e.openBlock(),e.createElementBlock("i",cr,[...ur])}const mr=m(rr,[["render",hr],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),pr={},fr={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},gr=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),vr=[gr];function _r(t,o){return e.openBlock(),e.createElementBlock("svg",fr,[...vr])}const yr=m(pr,[["render",_r],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),Cr={},wr={class:"comment-common-icon"},kr=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),br=[kr];function Vr(t,o){return e.openBlock(),e.createElementBlock("i",wr,[...br])}const Sr=m(Cr,[["render",Vr],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),Nr={},Br={class:"comment-common-icon"},Er=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),$r=[Er];function xr(t,o){return e.openBlock(),e.createElementBlock("i",Br,[...$r])}const Tr=m(Nr,[["render",xr],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]),Dr=t=>(e.pushScopeId("data-v-60eb8f0b"),t=t(),e.popScopeId(),t),Lr={class:"cv-comment-emoji"},Fr={class:"face-tooltip-head select-none"},Ir=["onClick"],zr=["src"],jr={class:"emoji-body select-none"},Or={style:{padding:"0 5px"}},Pr=["onClick"],Ar={class:"emoji-btn select-none"},Ur={key:0},Rr=Dr(()=>e.createElementVNode("span",null,"表情",-1)),Mr=Object.assign({name:"CompInputEmoji"},{__name:"input-emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,a=e.ref(0),l=e.ref(0),i=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(a.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,i.value[1]=s[1];break}}function c(){i.value[0]=s[0]}return(u,p)=>(e.openBlock(),e.createElementBlock("div",Lr,[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",Ar,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Ur,[e.createVNode(e.unref(js)),Rr]))])]),default:e.withCtx(()=>[e.createElementVNode("div",Fr,[(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(a.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,zr)],10,Ir))),128))]),e.createElementVNode("div",jr,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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",Or,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(k,y)=>(e.openBlock(),e.createElementBlock("span",{key:y,class:"emoji-item",onClick:w=>u.$emit("addEmoji",y)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(y),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Pr))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Hr=m(Mr,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]),Rt=t=>(e.pushScopeId("data-v-cb6d934c"),t=t(),e.popScopeId(),t),qr={class:"cv-comment-editor"},Wr=["placeholder","innerHTML"],Kr=["src"],Zr=["onClick"],Gr={key:0,class:"cv-comment-editor__action"},Qr=Rt(()=>e.createElementVNode("span",null,"图片",-1)),Jr=Rt(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},[e.createTextVNode(" 文明上网理性发言,请遵守 "),e.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),Yr={__name:"input-box",props:{placeholder:"",contentBtn:"",parentId:"",reply:""},emits:["hide","close"],setup(t,{expose:o,emit:n}){const a=t,l=e.ref(""),i=e.ref(),s=e.ref(!1),r=e.ref(!1),d=e.ref(),c=e.ref(!0),u=e.ref(),p=e.ref(),h=e.ref([]),f=e.ref([]),k=e.reactive({imgLength:0}),y={minHeight:64},w=e.ref(),_=e.ref(!1),v=e.ref(),C=e.computed(()=>y.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=>{_.value||(i.value=V)});function Tt(){D({content:a.reply?`回复 <span style="color: var(--cv-color-success-dark-2);">@${a.reply.user.username}:</span> ${l.value}`:l.value,parentId:O(a.parentId,null),reply:a.reply,files:f.value,clear:()=>{ro(),B("close")}})}function eo(V){z(l.value)&&!k.imgLength&&(r.value=!1,B("hide",V))}function to(V){_.value=!0,s.value=!0,r.value=!0,e.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),A()}function oo(V){var b,E;w.value=(b=window.getSelection())==null?void 0:b.getRangeAt(0),(E=d.value)!=null&&E.innerHTML||(s.value=!1),_.value=!1}function no(V){const{innerHTML:b}=(V==null?void 0:V.target)||V;l.value=b||"",z(l.value.replace(/ |<br>| /g,""))?c.value=!0:c.value=!1}function lo(V){var E;let b=window.getSelection();b&&(b.removeAllRanges(),w.value||(Dt(),w.value=b.getRangeAt(0)),w.value.deleteContents(),w.value.insertNode(w.value.createContextualFragment(V)),w.value.collapse(!1),b.addRange(w.value),l.value=((E=d==null?void 0:d.value)==null?void 0:E.innerHTML)||"",z(l.value.replace(/ |<br>| /g,""))?c.value=!0:c.value=!1)}function io(){d.value&&(d.value.innerHTML="",l.value=d.value.innerHTML,s.value=!1)}function Dt(){e.nextTick(()=>{var V;(V=d.value)==null||V.focus()})}function ao(V){V.ctrlKey&&V.key=="Enter"&&(z(l.value.replace(/ |<br>| /g,""))?g.ElMessage({message:"内容不能为空",type:"info"}):Tt())}function so(V){var E;h.value.length=0,f.value.length=0;const b=(E=p.value)==null?void 0:E.files;if(k.imgLength=O(b==null?void 0:b.length,0),b)for(let $=0;$<b.length;$++){let j=b[$].name,uo=bs(b[$]);f.value.push(b[$]),ks(j)?h.value.push(uo):g.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function ro(){io(),h.value.length=0,f.value=[],c.value=!0}function co(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 E=b.target;E.innerHTML=="<br>"&&(E.innerHTML="")})}),o({focus:()=>Dt()}),(V,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",qr,[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:a.placeholder,onFocus:to,onInput:no,onBlur:oo,onKeydown:e.withKeys(ao,["enter"]),innerHTML:i.value,style:e.normalizeStyle({minHeight:C.value,padding:S.value})},null,44,Wr),e.createElementVNode("div",{ref_key:"imageRef",ref:v,class:"image-preview-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(E,$)=>(e.openBlock(),e.createElementBlock("div",{key:$,class:"image-preview"},[e.createElementVNode("img",{src:E,alt:""},null,8,Kr),e.createElementVNode("div",{class:"clean-btn",onClick:j=>co($)},[e.createVNode(e.unref(Ts))],8,Zr)]))),128))],512)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",Gr,[e.createElementVNode("div",null,[e.createVNode(Hr,{emoji:e.unref(U),onAddEmoji:b[0]||(b[0]=E=>lo(E))},null,8,["emoji"]),e.createElementVNode("div",{class:"picture",onClick:b[1]||(b[1]=(...E)=>{var $,j;return(($=p.value)==null?void 0:$.click)&&((j=p.value)==null?void 0:j.click(...E))})},[e.createVNode(e.unref(Gs)),Qr,e.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:p,type:"file",multiple:"",onChange:so},null,544)])]),e.createElementVNode("div",null,[Jr,e.createVNode(e.unref(g.ElButton),{type:"primary",disabled:c.value,onClick:Tt},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.contentBtn),1)]),_:1},8,["disabled"])])])):e.createCommentVNode("",!0)]),_:1})])),[[e.unref(g.ClickOutside),eo,u.value]])}},Mt=m(Yr,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]),Xr={class:"u-fold"},ec={class:"action-box select-none"},tc=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}),a=e.ref(!0),l=e.ref(!1),i=e.ref();let s;return e.onMounted(()=>{s=new ResizeObserver(r=>{a.value&&i.value&&(l.value=i.value.offsetHeight<i.value.scrollHeight)}),s.observe(i.value)}),e.onUnmounted(()=>{s.disconnect()}),(r,d)=>(e.openBlock(),e.createElementBlock("div",Xr,[e.createElementVNode("div",{class:e.normalizeClass(["txt-box",{"over-hidden":a.value}])},[e.createElementVNode("div",{ref_key:"divBox",ref:i},[e.renderSlot(r.$slots,"default",{},void 0,!0)],512)],2),e.createElementVNode("div",ec,[l.value&&r.unfold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"expand-btn",onClick:d[0]||(d[0]=c=>a.value=!a.value)},e.toDisplayString(a.value?"展开":"收起"),1)):e.createCommentVNode("",!0)])]))}}),oc=m(tc,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),nc={__name:"user-card",props:{uid:""},setup(t){const o=e.ref({}),{showInfo:n}=e.inject("InjectContentBox"),a=e.inject("InjectSlots"),l=()=>e.h("div",a.card(o.value));return(i,s)=>e.unref(a).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(i.$slots,"default")]),default:e.withCtx(()=>[e.createVNode(l)]),_:3})):e.renderSlot(i.$slots,"default",{key:1})}},Lt=m(nc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Ht(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function kt(t){return typeof t=="function"?t():e.unref(t)}const $t=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const lc=Object.prototype.toString,ic=t=>lc.call(t)==="[object Object]",ac=()=>{};function sc(t){let o;function n(){return o||(o=t()),o}return n.reset=async()=>{const a=o;o=void 0,a&&await a},n}function rc(t,o,n={}){const{immediate:a=!0}=n,l=e.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function r(){l.value=!1,s()}function d(...c){s(),l.value=!0,i=setTimeout(()=>{l.value=!1,i=null,t(...c)},kt(o))}return a&&(l.value=!0,$t&&d()),Ht(r),{isPending:e.readonly(l),start:d,stop:r}}function cc(t){var o;const n=kt(t);return(o=n==null?void 0:n.$el)!=null?o:n}const dc=$t?window:void 0,qt=$t?window.navigator:void 0;function Wt(...t){let o,n,a,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,a,l]=t,o=dc):[o,n,a,l]=t,!o)return ac;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},r=(u,p,h,f)=>(u.addEventListener(p,h,f),()=>u.removeEventListener(p,h,f)),d=e.watch(()=>[cc(o),kt(l)],([u,p])=>{if(s(),!u)return;const h=ic(p)?{...p}:p;i.push(...n.flatMap(f=>a.map(k=>r(u,f,k,h))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Ht(c),c}function uc(){const t=e.ref(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Kt(t){const o=uc();return e.computed(()=>(o.value,!!t()))}function Ft(t,o={}){const{controls:n=!1,navigator:a=qt}=o,l=Kt(()=>a&&"permissions"in a);let i;const s=typeof t=="string"?{name:t}:t,r=e.ref(),d=()=>{i&&(r.value=i.state)},c=sc(async()=>{if(l.value){if(!i)try{i=await a.permissions.query(s),Wt(i,"change",d),d()}catch{r.value="prompt"}return i}});return c(),n?{state:r,isSupported:l,query:c}:r}function hc(t={}){const{navigator:o=qt,read:n=!1,source:a,copiedDuring:l=1500,legacy:i=!1}=t,s=Kt(()=>o&&"clipboard"in o),r=Ft("clipboard-read"),d=Ft("clipboard-write"),c=e.computed(()=>s.value||i),u=e.ref(""),p=e.ref(!1),h=rc(()=>p.value=!1,l);function f(){s.value&&_(r.value)?o.clipboard.readText().then(v=>{u.value=v}):u.value=w()}c.value&&n&&Wt(["copy","cut"],f);async function k(v=kt(a)){c.value&&v!=null&&(s.value&&_(d.value)?await o.clipboard.writeText(v):y(v),u.value=v,p.value=!0,h.start())}function y(v){const C=document.createElement("textarea");C.value=v??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function w(){var v,C,S;return(S=(C=(v=document==null?void 0:document.getSelection)==null?void 0:v.call(document))==null?void 0:C.toString())!=null?S:""}function _(v){return v==="granted"||v==="prompt"}return{isSupported:c,text:u,copied:p,copy:k}}const mc={class:"comment-list-actbox__right"},pc={class:"operation-warp"},fc={class:"dialog-footer"},gc={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(t){const{copy:o}=hc(),n=e.ref(!1),a=e.ref({report_type:"",report_content:""}),l=t;function i(){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"),p=e.resolveComponent("el-dropdown"),h=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),k=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-input"),w=e.resolveComponent("el-form"),_=e.resolveComponent("el-button"),v=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",mc,[e.createVNode(p,{trigger:"click",onCommand:d[0]||(d[0]=C=>s(C))},{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",pc,[e.createVNode(e.unref(tr))])]),_:1}),e.createVNode(v,{title:"举报",modelValue:n.value,"onUpdate:modelValue":d[4]||(d[4]=C=>n.value=C),width:"400px",style:{width:"90%","max-width":"400px"}},{footer:e.withCtx(()=>[e.createElementVNode("span",fc,[e.createVNode(_,{onClick:d[3]||(d[3]=C=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(_,{type:"primary",onClick:i},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(w,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(k,{label:"您为什么要举报此信息?"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.value.report_type,"onUpdate:modelValue":d[1]||(d[1]=C=>a.value.report_type=C)},{default:e.withCtx(()=>[e.createVNode(h,{value:"色情淫秽"},{default:e.withCtx(()=>[e.createTextVNode("色情淫秽")]),_:1}),e.createVNode(h,{value:"骚扰谩骂"},{default:e.withCtx(()=>[e.createTextVNode("骚扰谩骂")]),_:1}),e.createVNode(h,{value:"广告欺诈"},{default:e.withCtx(()=>[e.createTextVNode("广告欺诈")]),_:1}),e.createVNode(h,{value:"反动"},{default:e.withCtx(()=>[e.createTextVNode("反动")]),_:1}),e.createVNode(h,{value:"其他"},{default:e.withCtx(()=>[e.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"举报说明(可选):"},{default:e.withCtx(()=>[e.createVNode(y,{type:"textarea",modelValue:a.value.report_content,"onUpdate:modelValue":d[2]||(d[2]=C=>a.value.report_content=C),maxlength:"200",placeholder:"描述恶意行为",rows:"3"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},vc=m(gc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]),_c=t=>(e.pushScopeId("data-v-1d5332e1"),t=t(),e.popScopeId(),t),yc={class:"comment-sub"},Cc=["href"],wc=_c(()=>e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),kc={class:"comment-primary"},bc={class:"comment-main"},Vc={key:1,class:"user-info"},Sc=["href"],Nc={class:"username"},Bc={class:"name",style:{"max-width":"10em"}},Ec={blank:"true",class:"rank"},$c=["innerHTML"],xc={class:"address",style:{color:"#939393","font-size":"12px"}},Tc={class:"time"},Dc={class:"content"},Lc=["innerHTML"],Fc={class:"imgbox",style:{display:"flex"}},Ic={class:"comment-list-actbox select-none"},zc={class:"comment-list-actbox__left"},jc={key:2},Oc={class:"comment-list-actbox__right"},Pc={key:2},Ac={__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}),a=e.ref(),l=e.ref(),i=e.computed(()=>{let _=o.data.contentImg;return z(_)?[]:_==null?void 0:_.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 _;(_=a.value)==null||_.focus()})}function p(_){var C;const v=_.target;(C=l.value)!=null&&C.contains(v)||(n.active=!1)}const h=e.inject("InjectSlots"),f=()=>e.h("div",h.info(o.data)),k=(_,v)=>{const C=/\[.+?\]/g;return v=v.replace(C,S=>{const B=_[S];return B?['<img src="',B,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),v},y=e.computed(()=>k(s,o.data.content)),w=_=>{switch(_){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)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["comment",{reply:o.reply}])},[e.createElementVNode("div",yc,[e.createVNode(Lt,{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(()=>[wc]),_:1},8,["src"])],8,Cc)]),_:1},8,["uid"])]),e.createElementVNode("div",kc,[e.createElementVNode("div",bc,[e.unref(h).info?(e.openBlock(),e.createBlock(f,{key:0})):(e.openBlock(),e.createElementBlock("div",Vc,[e.createVNode(Lt,{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",Nc,[e.createElementVNode("span",Bc,e.toDisplayString(t.data.user.username),1),e.createElementVNode("span",Ec,[e.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:w(t.data.user.level)},null,8,$c)])])],8,Sc)]),_:1},8,["uid"]),e.createElementVNode("span",xc," "+e.toDisplayString(t.data.address),1),e.createElementVNode("time",Tc,e.toDisplayString(e.unref(c)?e.unref(Vs)(t.data.createTime):t.data.createTime),1)])),e.createElementVNode("div",Dc,[e.createVNode(oc,{unfold:""},{default:e.withCtx(()=>[e.createElementVNode("div",{innerHTML:y.value},null,8,Lc),e.createElementVNode("div",Fc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(C,S)=>(e.openBlock(),e.createBlock(e.unref(g.ElImage),{key:S,src:C,style:{height:"72px",padding:"8px 4px"},lazy:"","preview-src-list":i.value,"initial-index":S},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1})]),e.createElementVNode("div",Ic,[e.createElementVNode("div",zc,[e.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:v[0]||(v[0]=C=>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(mr),{key:0})):(e.openBlock(),e.createBlock(e.unref(sr),{key:1})),t.data.likes!=0?(e.openBlock(),e.createElementBlock("span",jc,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(Tr)),e.createElementVNode("span",null,e.toDisplayString(n.active?"取消回复":"回复"),1)],2)]),e.createElementVNode("div",Oc,[e.renderSlot(_.$slots,"operate",{},()=>[e.createVNode(vc,{data:o.data},null,8,["data"])],!0)])]),n.active?(e.openBlock(),e.createElementBlock("div",Pc,[e.createVNode(Mt,{ref_key:"commentRef",ref:a,"parent-id":e.unref(F)(t.id),placeholder:`回复 @${t.data.user.username}...`,reply:t.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:p,onClose:v[1]||(v[1]=C=>n.active=!1)},null,8,["parent-id","placeholder","reply"])])):e.createCommentVNode("",!0)]),e.renderSlot(_.$slots,"default",{},void 0,!0)])],2))}},Zt=m(Ac,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]),Uc={key:0,class:"reply-box"},Rc={class:"reply-list"},Mc={key:0,class:"fetch-more"},Hc={key:0},qc={key:1},Wc={key:0},Kc={key:1,class:"fetch-more"},Zc={__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:a,replyShowSize:l,comments:i,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=>{i.value.forEach(f=>{f.id==o.id&&f.reply&&(f.reply=h)})},u=h=>{n.pageNum=h,a(o.id,h,n.pageSize,f=>c(f))},p=h=>{n.pageSize=h,a(o.id,n.pageNum,h,f=>c(f))};return(h,f)=>r.value.length>0?(e.openBlock(),e.createElementBlock("div",Uc,[e.createElementVNode("div",Rc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.list,(k,y)=>(e.openBlock(),e.createBlock(Zt,{id:t.id,key:y,data:k,reply:""},null,8,["id","data"]))),128)),r.value.length>e.unref(l)?(e.openBlock(),e.createElementBlock("div",Mc,[n.loading?(e.openBlock(),e.createElementBlock("span",Hc,"加载中...")):(e.openBlock(),e.createElementBlock("div",qc,[n.over?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wc,[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(yr))])]))]))])):e.createCommentVNode("",!0),n.over&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",Kc,[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:p},null,8,["total","page-size"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}},Gc=m(Zc,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),Qc={key:0,class:"comment-list"},Jc={__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,(a,l)=>(e.openBlock(),e.createBlock(Zt,{id:e.unref(F)(a.id),key:l,data:a},{default:e.withCtx(()=>[e.createVNode(Gc,{id:e.unref(F)(a.id),data:a.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):e.createCommentVNode("",!0)}},Yc=m(Jc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]),Xc={class:"cv-comment-base"},ed={class:"cv-comment-form"},td=e.createElementVNode("div",{class:"cv-comment-form__header"},[e.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),od={class:"cv-comment-form__content"},nd={class:"cv-comment-form__avatar"},ld=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),id=e.createElementVNode("div",{class:"title"},"全部评论",-1),ad={class:"cv-comment-list-wrapper"},sd=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 a=t,{user:l,comments:i,showSize:s,replyShowSize:r,total:d}=e.toRefs(a.config),c=n,u=({content:y,parentId:w,reply:_,files:v,clear:C})=>{c("submit",{content:y,parentId:w,reply:_,files:v,finish:B=>{if(C(),w){let T=i.value.find(D=>D.id==w);if(T){let D=T.reply;D?(D.list.unshift(B),D.total++):T.reply={total:1,list:[B]}}}else i.value.unshift(B)}})},p={upload:a.upload,submit:u,focus:()=>c("focus")};e.provide("InjectInputBox",p);const h=(y,w)=>{let _=null;i.value.forEach(v=>{var C;v.id==y?_=v:_=(C=v.reply)==null?void 0:C.list.find(S=>S.id==y),_&&(_.likes+=w)})},f=y=>{const w=a.config.user.likeIds;c("like",y,()=>{if(w.findIndex(_=>_==y)==-1)w.push(y),h(y,1);else{let _=w.findIndex(v=>v==y);_!=-1&&(w.splice(_,1),h(y,-1))}})};e.provide("InjectContentBox",{user:l,like:f,relativeTime:O(a.relativeTime,!1),showInfo:(y,w)=>c("showInfo",y,w)}),e.provide("InjectReplyBox",{page:a.page,replyPage:(y,w,_,v)=>{c("replyPage",{parentId:y,pageNum:w,pageSize:_,finish:v})},replyShowSize:O(r,3),comments:i});const k=y=>{const{parentId:w,id:_}=y;if(w){let v=i.value.find(S=>S.id==w),C=v==null?void 0:v.reply;if(C){let S=C.list.findIndex(B=>B.id==_);S!=-1&&(C.list.splice(S,1),C.total--)}}else{let v=i.value.findIndex(C=>C.id==_);v!=-1&&i.value.splice(v,1)}};return e.provide("InjectionEmojiApi",a.config.emoji),e.provide("InjectSlots",e.useSlots()),o({remove:k}),(y,w)=>{const _=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Xc,[e.createElementVNode("div",ed,[td,e.createElementVNode("div",od,[e.createElementVNode("div",nd,[e.createVNode(_,{size:40,src:t.config.user.avatar},{default:e.withCtx(()=>[ld]),_:1},8,["src"])]),e.createVNode(Mt,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),e.renderSlot(y.$slots,"default",{},()=>[id]),e.createElementVNode("div",ad,[e.createVNode(Yc,{data:e.unref(i),total:e.unref(d),"show-size":e.unref(O)(e.unref(s),5)},null,8,["data","total","show-size"])])])}}}),st=m(sd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),rd={class:"comment-scroll"},cd=["infinite-scroll-disabled"],dd={class:"scroll-btn"},ud={key:1},hd={key:2},md=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,a=e.ref(!1),l=e.ref(!1),i=o,s=e.computed(()=>l.value&&n.disable),r=e.computed(()=>!l.value||a.value||s.value),d=ws(()=>{i("more"),a.value=!1},500),c=()=>{a.value=!0,d()};return(u,p)=>{const h=e.resolveComponent("el-link"),f=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createElementBlock("div",rd,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{"infinite-scroll-disabled":r.value,"infinite-scroll-distance":"2"},[e.renderSlot(u.$slots,"default"),e.createElementVNode("div",dd,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",underline:!1,onClick:p[0]||(p[0]=k=>l.value=!l.value)},{default:e.withCtx(()=>[e.createTextVNode("加载更多")]),_:1})),a.value?(e.openBlock(),e.createElementBlock("p",ud,"加载中...")):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("p",hd,"没有更多了")):e.createCommentVNode("",!0)])],8,cd)),[[f,c]])])}}}),rt=m(md,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),pd={class:"cv-comment-nav-wrap"},fd=e.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),gd={class:"cv-comment-nav__sort"},vd=Object.assign({name:"cvCommentNav"},{__name:"comment-nav",props:{modelValue:!1},emits:["update:modelValue","sorted"],setup(t,{emit:o}){const n=t,a=o,l=e.computed({get(){return n.modelValue},set(i){a("update:modelValue",i),a("sorted",i)}});return(i,s)=>(e.openBlock(),e.createElementBlock("div",pd,[fd,e.createElementVNode("div",gd,[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(Sr)),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(Ms)),e.createTextVNode(" 最热 ")],2)])]))}}),ct=m(vd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);st.install=function(t){t.component(st.name,st)};rt.install=function(t){t.component(rt.name,rt)};ct.install=function(t){t.component(ct.name,ct)};const _d={key:1,"aria-hidden":"true"},yd=["xlink:href"],Cd=Object.assign({name:"cvIcon"},{__name:"icon",props:{size:14,name:"",color:""},setup(t){const o=t,n=e.computed(()=>"#"+o.name),a=e.computed(()=>({fontSize:Cs(o.size)?o.size+"px":o.size,color:o.color}));return(l,i)=>(e.openBlock(),e.createElementBlock("i",{class:"cv-icon",style:e.normalizeStyle(a.value)},[l.$slots.default?e.renderSlot(l.$slots,"default",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("svg",_d,[e.createElementVNode("use",{"xlink:href":n.value},null,8,yd)]))],4))}}),dt=m(Cd,[["__scopeId","data-v-03222826"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icon/icon.vue"]]);dt.install=function(t){t.component(dt.name,dt)};const wd={name:"cvIcons",props:{type:{type:[String],default:""},size:{type:[String,Number],default:12}},data(){return{}},created(){},methods:{}};function kd(t,o,n,a,l,i){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 ut=m(wd,[["render",kd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);ut.install=function(t){t.component(ut.name,ut)};const Gt=t=>(e.pushScopeId("data-v-cbcaef8c"),t=t(),e.popScopeId(),t),bd={class:"u-emoji"},Vd={class:"face-tooltip-head select-none"},Sd=["onClick"],Nd=["src"],Bd={class:"emoji-body select-none"},Ed={style:{padding:"0 5px"}},$d=["onClick"],xd={class:"emoji-btn select-none"},Td={key:0},Dd=Gt(()=>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)),Ld=Gt(()=>e.createElementVNode("span",null,"表情",-1)),Fd=[Dd,Ld],Id=Object.assign({name:"cvEmoji"},{__name:"emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,a=e.ref(0),l=e.ref(0),i=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(a.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,i.value[1]=s[1];break}}function c(){i.value[0]=s[0]}return(u,p)=>(e.openBlock(),e.createElementBlock("div",bd,[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",xd,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",Td,[...Fd]))])]),default:e.withCtx(()=>[e.createElementVNode("div",Vd,[(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(a.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:h,alt:""},null,8,Nd)],10,Sd))),128))]),e.createElementVNode("div",Bd,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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",Ed,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(k,y)=>(e.openBlock(),e.createElementBlock("span",{key:y,class:"emoji-item",onClick:w=>u.$emit("addEmoji",y)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(y),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,$d))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),zd=m(Id,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]),jd={class:"cv-chat-message"},Od={class:"chat-list"},Pd=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Ad={class:"content"},Ud={key:0,class:"username"},Rd=["innerHTML"],Md=e.createElementVNode("div",{class:"date"},null,-1),Hd={__name:"message",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0}},setup(t,{expose:o}){const{allEmoji:n}=e.inject("InjectionEmojiApi"),a=e.ref();o({scroll:()=>{e.nextTick(()=>{const s=document.querySelector(".chat-item:last-child");a.value.setScrollTop(s.offsetTop)})}});const i=(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",jd,[e.createVNode(e.unref(g.ElScrollbar),{ref_key:"scrollbarRef",ref:a},{default:e.withCtx(()=>[e.createElementVNode("div",Od,[(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(()=>[Pd]),_:1})]),e.createElementVNode("div",Ad,[t.userId!=d.id?(e.openBlock(),e.createElementBlock("div",Ud,e.toDisplayString(d.username),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"card-box",innerHTML:i(e.unref(n),d.content)},null,8,Rd)]),Md],2))),128))])]),_:1},512)]))}},qd=m(Hd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]),Wd={class:"cv-chat-wrap"},Kd={class:"header"},Zd=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),Gd=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"},Jd=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),Yd=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),Xd=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,a=e.ref(!1),l=e.ref(""),i=e.ref(),{data:s}=n,r=o,d=h=>{const{ctrlKey:f,key:k}=h;f&&k=="Enter"&&u()},c=()=>{l.value="",i.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:"内容不能为空"})},p=h=>{let f=document.getElementById("emojiInput"),k=f.selectionStart,y=f.selectionEnd,w=f.value;if(k===null||y===null)return;let _=w.substring(0,k)+h+w.substring(y);f.value=_,f.focus(),f.selectionStart=k+h.length,f.selectionEnd=k+h.length,l.value=_};return e.provide("InjectionEmojiApi",n.emoji),(h,f)=>{const k=e.resolveComponent("cvIcon");return e.openBlock(),e.createElementBlock("div",Wd,[e.createElementVNode("div",{class:e.normalizeClass([{active:a.value},"chat-container translate"])},[e.createElementVNode("div",Kd,[e.createVNode(k,{size:"32"},{default:e.withCtx(()=>[Zd]),_:1}),Gd]),e.createVNode(qd,{ref_key:"messageRef",ref:i,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]=y=>l.value=y),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),e.createVNode(zd,{style:{margin:"0 8px 0"},emoji:t.emoji,placement:"top-end",onAddEmoji:p},{default:e.withCtx(()=>[Jd]),_:1},8,["emoji"]),e.createVNode(k,{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(()=>[Yd]),_:1},8,["class"])])],2),e.createVNode(e.unref(g.ElButton),{class:"chat-btn",onClick:f[1]||(f[1]=y=>a.value=!a.value)},{default:e.withCtx(()=>[e.createTextVNode("chat")]),_:1})])}}}),ht=m(Xd,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);ht.install=function(t){t.component(ht.name,ht)};const eu={key:0},tu=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:a,suffixIcon:l,prefixIcon:i,size:s,height:r,delay:d,spped:c,color:u,background:p}=o,h=e.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),f=e.ref({}),k=e.ref({}),y=e.computed(()=>o.delay>2e3?o.delay:2e3),w=()=>{e.nextTick(()=>{h.boxWidth=f.value.offsetWidth,h.textWidth=k.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;}}`),_(),setTimeout(()=>{v()},o.delay)})},_=()=>{h.oneTime=h.textWidth/o.spped,h.twoTime=(h.textWidth+h.boxWidth)/o.spped},v=()=>{h.order===1?(k.value.style.cssText=`animation: oneAnimation ${h.oneTime}s linear; opactity: 1;}`,h.order=2):k.value.style.cssText=`animation: twoAnimation ${h.twoTime}s linear infinite; opacity: 1;`},C=()=>{k.value.addEventListener("animationend",()=>{v()},!1)};return e.onMounted(()=>{o.vertical||(w(),C())}),(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(p),height:`${e.unref(r)}px`})},[e.unref(a)?(e.openBlock(),e.createElementBlock("div",eu,[e.createVNode(D,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:y.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(i)?(e.openBlock(),e.createBlock(A,{key:0,name:e.unref(i)},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"boxRef",ref:f,class:"text-box"},[e.createElementVNode("div",{ref_key:"textRef",ref:k,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)}}}),mt=m(tu,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);mt.install=function(t){t.component(mt.name,mt)};const ou={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.$nextTick(()=>{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||"",a=o.addonMode||"";this.localMode=o.mime||"",a!="null"&&a!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/addon/mode/${a}.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){}}},nu={class:"cv-editor-code-wrap cv-editor-vars"},lu={key:0,class:"cv-editor-toolbars"},iu=e.createElementVNode("li",{class:"empty"},null,-1),au=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),su=[au],ru={class:"cv-editor-mainbox"};function cu(t,o,n,a,l,i){const s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",nu,[l.localToolNum>0?(e.openBlock(),e.createElementBlock("ul",lu,[iu,l.localToolbar.copy?(e.openBlock(),e.createElementBlock("li",{key:0,name:"复制",onClick:o[0]||(o[0]=(...r)=>i.handleCopy&&i.handleCopy(...r))},[...su])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ru,[e.createElementVNode("div",{class:"cv-editor-container",ref:l.editorId},null,512)])])),[[s,l.isCdnLoading]])}const pt=m(ou,[["render",cu],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]),du={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 ho.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=hl(400,o=>{this.$emit("update:modelValue",o)})),this.emitData(t)}}},uu={ref:"jsoneditor",class:"jsoneditor-box"};function hu(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-json",{"max-box":l.max,"min-box":!l.max}]),style:e.normalizeStyle(i.getHeight)},[e.createElementVNode("div",uu,null,512),e.createElementVNode("a",{onClick:o[0]||(o[0]=s=>l.max=!l.max),class:"max-btn"})],6)}const ft=m(du,[["render",hu],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]);function Qt(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=mu(o);if(t.async)return Promise.resolve(t.highlight(o.text,n)).then(It(o));const a=t.highlight(o.text,n);if(a 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.");It(o)(a)},renderer:{code(o,n,a){const l=(n||"").match(/\S*/)[0],i=l?` class="${t.langPrefix}${jt(l)}"`:"";return o=o.replace(/\n$/,""),`<pre><code${i}>${a?o:jt(o,!0)}
|
|
2
|
-
</code></pre>`}}}}function
|
|
1
|
+
"use strict";/*! cvPcUI v0.3.21 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("element-plus"),uo=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.22.0/standalone.js"),p=(t,o)=>{const n=t.__vccOpts||t;for(const[i,l]of o)n[i]=l;return n},ho={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 po(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(ho,[["render",po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),mo={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function fo(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(mo,[["render",fo],["__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 go={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 vo(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(go,[["render",vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),_o={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 yo(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(_o,[["render",yo],["__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 Co={name:"cvAutocompleteBase",props:{...g.ElAutocomplete.props},data(){return{localVal:"",loadingStatus:!1}},created(){}};function wo(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),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["modelValue"])}const G=p(Co,[["render",wo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/base.vue"]]),yt={props:{compConfig:{},dataParse:{type:[Function],default:()=>null}},data(){return{searchData:{},loadDataLoading:!1,loadDataList:[],loadDataTotal:0,loadPageCurr:1,loadPageLimit:10,loadConfigSetting:{},loadConfigDef:{pageCurr:1,pageLimit:10,isSkip:!1,url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}}}},methods:{loadEnding(){this.loadDataLoading=!1,this.$nextTick(()=>{this.loadDataLoading=!1})},loadGetData(){if(this.loadDataLoading=!0,this.loadConfigSetting.apiFunc&&typeof this.loadConfigSetting.apiFunc=="function"){const t=this.loadConfigSetting;let o={...t.where};o[t.request.pageName]=this.loadPageCurr,o[t.request.limitName]=this.loadPageLimit,o=Object.assign(o,this.searchData),this.loadConfigSetting.apiFunc(o).then(n=>{this.loadPageCurr=o[t.request.pageName],this.loadEnding();let i=this.sortOutData(n);if(i.status!=t.response.statusCode){ExtendMessage({message:i.msg,type:"error",duration:1300});return}if(i.data.length===0){ExtendMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let l=i[t.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"&&(l=this.dataParse.call(null,l)),this.loadDataList.push(...l),this.loadDataTotal=i[t.response.countName]||0}).catch(n=>{this.loadEnding()})}else this.loadDataList.length>0&&(this.loadDataTotal=this.loadDataList.length),this.loadEnding()},sortOutData(t){let o=this.loadConfigSetting.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}}},ko={name:"cvAutocompleteLoad",mixins:[yt],emits:["update:modelValue","input"],props:{...g.ElAutocomplete.props,modelValue:null,placeholder:{type:[String],default:"请输入内容"},popperClass:{type:[String],default:"cv-autocomplete"},clearable:{type:[Boolean],default:!0},triggerOnFocus:!1,debounce:500,refID:{type:[String],required:!1,default(){return"cvAutocompleteLoad-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}},compConfig:{type:[Object],default:()=>({})}},data(){return{localVal:"",searchList:[],compConfigDef:{searchField:["value"]},timeout:null}},directives:{autoScrollLoad:{created(t,o,n){let i=t.querySelector(".el-autocomplete-suggestion__wrap"),l=t.querySelector(".el-autocomplete-suggestion__wrap .el-autocomplete-suggestion__list");i.addEventListener("scroll",a=>{i.offsetHeight+i.scrollTop+10-l.offsetHeight>0&&!n.context.loading&&o.value()},!1)}},loadmore:{mount(t,o){function n(l){l.target.clientHeight+l.target.scrollTop==l.target.scrollHeight&&o.value()}let i=t.querySelector(".el-autocomplete-suggestion__wrap");t.__handleScroll__=n,t.__wrapDom__=i,i.addEventListener("scroll",n,!1)},unbind(t,o,n){t.__wrapDom__.removeEventListener("scroll",t.__handleScroll__,!1)}}},created(){this.initConfAll(),this.getData()},methods:{initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.compConfigDef,this.compConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||10,Object.assign(t.where,this.searchData),this.loadConfigSetting=t},getMoreData(){conosle.log("加载更多"),this.loadPageCurr++,this.loadGetData()},getData(){this.loadDataList=[],this.loadGetData()},async querySearchAsync(t,o){this.loadPageCurr=1,this.loadDataLoading=!0;var n=this.loadDataList||[];let i=[];const l=this.loadConfigSetting.searchField||["value"];if(t=t.toLowerCase(),i=t?n.filter(this.createFilter(t,l)):n,i.length>0){const a=i.map(s=>({...s,is_last_tip:!1}));o(a),this.lookFlag=!0}else try{this.loadPageCurr++,this.searchData.keyword=t,this.loadDataList=[],await this.loadGetData();const a=this.loadDataList.map(s=>({...s,is_last_tip:!1}));a.push({is_last_tip:!0}),o(a)}catch{}finally{this.lookFlag=!0}},createFilter(t,o){return n=>o.some(i=>(n[i]+"").toLowerCase().indexOf(t)!==-1)},selectLoadMore(){},handleChange(t){},handleSelect(t){this.$emit("update:modelValue",t)}}};function bo(t,o,n,i,l,a){const s=e.resolveComponent("cv-icons"),r=e.resolveComponent("el-autocomplete"),d=e.resolveDirective("loadmore");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[1]||(o[1]=c=>l.localVal=c),"fetch-suggestions":a.querySearchAsync,onChange:a.handleChange,onSelect:a.handleSelect}),{default:e.withCtx(({item:c})=>[c.is_last_tip?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",e.normalizeProps(e.mergeProps({key:0},{item:c}))),c.is_last_tip?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cv-autocomolete-nodata",onClick:o[0]||(o[0]=(...u)=>a.getData&&a.getData(...u)),disabled:""},[e.createTextVNode(" 没有更多数据了 "),e.createVNode(s,{type:"refresh-left"}),e.createTextVNode(" 刷新按钮 ")])):e.createCommentVNode("",!0)]),_:3},16,["modelValue","fetch-suggestions","onChange","onSelect"])])),[[d,a.getMoreData]])}const Z=p(ko,[["render",bo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/load.vue"]]);G.install=function(t){t.component(G.name,G)};Z.install=function(t){t.component(Z.name,Z)};const Vo={...g.ElForm,name:"cvFormBase",extends:g.ElForm,provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{}}};function So(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,...t.$attrs},e.toHandlers(t.$attrs)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Q=p(Vo,[["render",So],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),No={name:"cvFormInline",provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function Bo(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 Y=p(No,[["render",Bo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]),Eo={name:"cvFormItem",extends:g.ElFormItem,props:{},data(){return{localLabelWidth:"",localError:""}},created(){},methods:{}},xo={key:0,class:"cv-form-item__tip"};function $o(t,o,n,i,l,a){const s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),t.$slots.tip?(e.openBlock(),e.createElementBlock("div",xo,[e.renderSlot(t.$slots,"tip")])):e.createCommentVNode("",!0)]),_:3},16)}const J=p(Eo,[["render",$o],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Q.install=function(t){t.component(Q.name,Q)};Y.install=function(t){t.component(Y.name,Y)};J.install=function(t){t.component(J.name,J)};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}}}}},To={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}}}},Do={slot:"prepend"},Lo={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",Do,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Lo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Fo=p(To,[["render",Io],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),zo={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)}}},jo=e.createElementVNode("template",{slot:"prepend"},[e.createTextVNode("+86")],-1),Oo={slot:"append"};function Po(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(()=>[jo,e.createElementVNode("template",Oo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const X=p(zo,[["render",Po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),Ao={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)}}},Uo={slot:"prepend"},Ro={slot:"append"};function Mo(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",Uo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ro,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ee=p(Ao,[["render",Mo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),Ho={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)}}},qo={slot:"prepend"},Wo={slot:"append"};function Ko(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",qo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Wo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const te=p(Ho,[["render",Ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]),Go={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)}}},Zo={slot:"prepend"},Qo={slot:"append"};function Yo(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",Zo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Qo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const oe=p(Go,[["render",Yo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),Jo={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)}}},Xo={slot:"prepend"},en={slot:"append"};function tn(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",Xo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",en,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ne=p(Jo,[["render",tn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),on={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)}}},nn={slot:"prepend"},ln={slot:"append"};function an(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",nn,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",ln,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const le=p(on,[["render",an],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),sn={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 rn(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 ae=p(sn,[["render",rn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]),cn={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)}}},dn={class:"cv-textab-group"},un={class:"cv-textab-group__append"},hn={class:"cv-textab_slot-wrap"};function pn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",dn,[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",un,[e.createElementVNode("div",hn,[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 ie=p(cn,[["render",pn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]),mn={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)}}},fn={class:"cv-input-group"},gn={class:"cv-input-group__append"};function vn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",fn,[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",gn,[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 se=p(mn,[["render",vn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]);X.install=function(t){t.component(X.name,X)};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)};se.install=function(t){t.component(se.name,se)};const _n={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 yn(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 re=p(_n,[["render",yn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);re.install=function(t){t.component(re.name,re)};const Cn={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},wn={class:"cv-show-text"},kn=["innerHTML"];function bn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",wn,[n.text?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:n.text},null,8,kn)):e.createCommentVNode("",!0),n.text?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:1})])}const ce=p(Cn,[["render",bn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),Vn={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:{}},Sn={class:"cv-show-image"};function Nn(t,o,n,i,l,a){const s=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",Sn,[(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 de=p(Vn,[["render",Nn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]),Bn={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 En(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 ue=p(Bn,[["render",En],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),xn={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=""}}},$n={slot:"title"},Tn=["src"],Dn={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},Ln=["src"],In=["src"],Fn=["src"];function zn(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",$n,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,Tn)):e.createCommentVNode("",!0)],64)):n.type==="iframe"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowPreview?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("iframe",{src:n.sources[l.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Ln)])):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,In)):(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,Fn)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)]),_:1},8,["visible"])}const jn=p(xn,[["render",zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]),On={name:"gallery",components:{GalleryDialog:jn},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:{viewIconClass(){return this.type==="video"||this.type==="iframe"?"VideoPlay":"ZoomIn"},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}}},Pn={key:0,class:"cv-gallery"},An={class:"el-upload-list el-upload-list--picture-card"},Un=["src"],Rn=["src"],Mn={class:"el-upload-list__item-actions"},Hn=["onClick"],qn=["onClick"];function Wn(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("Delete"),c=e.resolveComponent("GalleryDialog");return n.source?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.computedSources,(u,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:"el-upload-list__item"},[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({source:u,index:h})),()=>[u.type==="image"?(e.openBlock(),e.createBlock(s,{key:0,lazy:n.lazy,src:u.thumb,style:e.normalizeStyle(a.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):u.type==="video"?(e.openBlock(),e.createElementBlock("video",{key:1,src:u.thumb,style:e.normalizeStyle(a.computedStyle)},null,12,Un)):u.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:u.thumb,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Rn)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Mn,[e.createElementVNode("span",{onClick:m=>a.handlePreview(h,u)},[e.createVNode(r,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.viewIconClass)))]),_:1})],8,Hn),n.removeFn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:m=>a.handleRemove(h)},[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d)]),_:1})],8,qn)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"action",e.normalizeProps(e.guardReactiveProps({source:u,index:h})))])]))),128))]),e.createVNode(c,{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 he=p(On,[["render",Wn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);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)};he.install=function(t){t.component(he.name,he)};const Kn={name:"cvRadioOptBase"};function Gn(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 pe=p(Kn,[["render",Gn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),Zn={name:"cvRadioOptBtn"};function Qn(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 me=p(Zn,[["render",Qn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),Yn={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(t){this.localVal=t},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 Jn(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.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","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.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const fe=p(Yn,[["render",Jn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);pe.install=function(t){t.component(pe.name,pe)};me.install=function(t){t.component(me.name,me)};fe.install=function(t){t.component(fe.name,fe)};const Xn={name:"cvCheckboxOptBase",extends:g.ElCheckbox};function el(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 ge=p(Xn,[["render",el],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),tl={name:"cvCheckboxOptBtn",extends:g.ElCheckboxButton,props:{}};function ol(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 ve=p(tl,[["render",ol],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Pt={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(){}}},nl={name:"cvCheckboxAll",mixins:[Pt],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)})}}},ll={class:"cv-checkbox-all"},al=e.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function il(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",ll,[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"]),al,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,value:d.value,key:c,onChange:t.handleChange,disabled:t.disabled||d.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const _e=p(nl,[["render",il],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),sl={name:"cvCheckboxGroup",mixins:[Pt],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function rl(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,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","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,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const ye=p(sl,[["render",rl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);ge.install=function(t){t.component(ge.name,ge)};ve.install=function(t){t.component(ve.name,ve)};ye.install=function(t){t.component(ye.name,ye)};_e.install=function(t){t.component(_e.name,_e)};function cl(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,h=!1,m=0;function f(){u&&clearTimeout(u)}function k(C){var y=C||{},_=y.upcomingOnly,w=_===void 0?!1:_;f(),h=!w}function v(){for(var C=arguments.length,y=new Array(C),_=0;_<C;_++)y[_]=arguments[_];var w=this,S=Date.now()-m;if(h)return;function B(){m=Date.now(),o.apply(w,y)}function T(){u=void 0}!r&&c&&!u&&B(),f(),c===void 0&&S>t?r?(m=Date.now(),a||(u=setTimeout(c?T:B,t))):B():a!==!0&&(u=setTimeout(c?T:B,c===void 0?t-S:t))}return v.cancel=k,v}function dl(t,o,n){var i=n||{},l=i.atBegin,a=l===void 0?!1:l;return cl(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 ul(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 hl={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])}}},pl={class:"cv-geo-city"},ml={key:0},fl={key:1};function gl(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",pl,[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:h=>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",ml,[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:h=>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",fl,[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:h=>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 Ce=p(hl,[["render",gl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]),vl={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])}}},_l={class:"cv-geo-city"},yl=["hidden"],Cl={key:1};function wl(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",_l,[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:h=>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:h=>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,yl)),!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:h=>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 we=p(vl,[["render",wl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);Ce.install=function(t){t.component(Ce.name,Ce)};we.install=function(t){t.component(we.name,we)};const kl={...g.ElOption,extends:g.ElOption,name:"cvSelectOpt"},ke=p(kl,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]),bl={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 be=p(bl,[["render",Vl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]),Sl={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 Nl(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 Ve=p(Sl,[["render",Nl],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);ke.install=function(t){t.component(ke.name,ke)};be.install=function(t){t.component(be.name,be)};Ve.install=function(t){t.component(Ve.name,Ve)};const Bl={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(){}}},El={class:"cv-cascader-base block"};function xl(t,o,n,i,l,a){const s=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",El,[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 Se=p(Bl,[["render",xl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);Se.install=function(t){t.component(Se.name,Se)};const At={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},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:{}},$l={name:"cvTimeBase",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function Tl(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 Ne=p($l,[["render",Tl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]),Dl={name:"cvTimeRange",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function Ll(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 Be=p(Dl,[["render",Ll],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),Il={name:"cvTimeSelect"};function Fl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-select");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-time-select"},t.$props),null,16)}const Ee=p(Il,[["render",Fl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-select.vue"]]),Ct={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},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:""}}},zl={name:"cvDateBase",mixins:[Ct],props:{format:{type:String,default:"YYYY-MM-DD"},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 jl(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 xe=p(zl,[["render",jl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]),Ol={name:"cvDateRange",mixins:[Ct],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 Pl(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 $e=p(Ol,[["render",Pl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]),Al={name:"cvDatetimeBase",mixins:[Ct],props:{format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},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 Ul(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 Te=p(Al,[["render",Ul],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]),Rl={name:"cvDatetimeRange",mixins:[Ct],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 Ml(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 De=p(Rl,[["render",Ml],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);Ne.install=function(t){t.component(Ne.name,Ne)};Be.install=function(t){t.component(Be.name,Be)};Ee.install=function(t){t.component(Ee.name,Ee)};xe.install=function(t){t.component(xe.name,xe)};$e.install=function(t){t.component($e.name,$e)};Te.install=function(t){t.component(Te.name,Te)};De.install=function(t){t.component(De.name,De)};const Hl={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 ql(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 Le=p(Hl,[["render",ql],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);Le.install=function(t){t.component(Le.name,Le)};const Wl={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 Kl(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 Ie=p(Wl,[["render",Kl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);Ie.install=function(t){t.component(Ie.name,Ie)};function Gl(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 Zl(t){const o=t.responseText||t.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Ql(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(Gl(n,t,o));t.onSuccess(Zl(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 wt={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},data(){return{}},computed:{upAction(){return this.mergeAttrs.upAction||""},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=Object.assign({},o,t[this.componentName]);return 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}Ql({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=>{})}}},Yl={name:"cvUploadAvatar",mixins:[wt],components:{},props:{fileSize:{type:[Number],default:1},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)}}},Jl={class:"cv-upload-avatar"},Xl=["src"];function ea(t,o,n,i,l,a){const s=e.resolveComponent("Plus"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-upload");return e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(d,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,Xl)):(e.openBlock(),e.createBlock(r,{key:1,class:"cv-upload-avatar__icon"},{default:e.withCtx(()=>[e.createVNode(s)]),_:1}))]),_:1},16,["before-upload","on-success"])])}const Fe=p(Yl,[["render",ea],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]),ta={name:"cvUploadImage",mixins:[wt],components:{ShowGallery:he},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"]},isShowSuccessTip:{type:Boolean,default:!0},thumbSuffix:{type:String,default:""},showSize:{type:Number,default:150},showTipState:{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.initShowList()},data(){return{existFileList:[],existShowList:[],imageUrl:"",uploading:!1,dialogVisibleImg:!1,ImgName:"",dialogImageUrl:""}},computed:{showStyle(){return{width:this.showSize+"px",height:this.showSize+"px",lineHeight:this.showSize+"px"}},limit(){return this.multiple==!1?1:5},showTipLastState(){return this.showTipState&&(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:{valInit(t){this.initShowList()}},methods:{getFileInfo(t){let o=t.lastIndexOf("/"),n=t.substring(o+1,t.length),i="";return n.lastIndexOf(".")>-1&&(i=n.slice(n.lastIndexOf(".")+1),i="image/"+i),{name:n,url:t,type:i}},initShowList(){if(this.valInit){const t=this.valInit;let o=[];if(typeof t=="string")this.imageUrl=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)}this.existFileList=o,this.existFileList=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.existFileList=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;let a=null;l&&typeof l.upResponseFn=="function"&&(a=l.upResponseFn(t,o)),this.upResponseFn&&(a=this.upResponseFn(t,o,this.successFiles)),Object.prototype.toString.call(a)==="[object String]"?i=a:Object.prototype.toString.call(a)==="[object Object]"&&(i=a.value||""),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||t,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.existFileList=[],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.existFileList.length>0&&this.multiple)for(let n in this.existFileList)this.existFileList[n].uid==t.uid&&this.handleRemoveDiy(n);else this.handleRemoveDiy(t);this.existFileList=o||[]}}},oa={class:"cv-upload-image"},na=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),la=["src"],aa={class:"el-upload__tip"},ia={style:{color:"#f56c6c"}},sa={style:{color:"#f56c6c"}},ra={style:{color:"#f56c6c"}},ca=["src"];function da(t,o,n,i,l,a){const s=e.resolveComponent("Upload"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("Plus"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("el-dialog"),h=e.resolveComponent("ShowGallery"),m=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",oa,[e.withDirectives(e.createVNode(c,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.existFileList,"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}),{tip:e.withCtx(()=>[e.createElementVNode("div",aa,[e.createTextVNode(" 请上传 "),e.createElementVNode("b",ia,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",sa,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",ra,e.toDisplayString(a.limit)+"张",1)],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[n.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s)]),_:1}),na],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-img__perview",style:e.normalizeStyle(a.showStyle)},null,12,la)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"cv-upload-img__plusicon",style:e.normalizeStyle(a.showStyle)},[e.createVNode(r,{size:n.showSize/3},{default:e.withCtx(()=>[e.createVNode(d)]),_:1},8,["size"])],4))],64))])),[[m,l.uploading]])]),_: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(u,{modelValue:l.dialogVisibleImg,"onUpdate:modelValue":o[0]||(o[0]=f=>l.dialogVisibleImg=f),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,ca)]),_:1},8,["modelValue","title"]),e.renderSlot(t.$slots,"gallery"),a.isShowUpload?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,lazy:n.lazy,"remove-fn":a.handleRemove,size:n.showSize,sliceSingle:!0,source:l.existShowList,thumbSuffix:n.thumbSuffix,title:n.galleryLabel},null,8,["lazy","remove-fn","size","source","thumbSuffix","title"]))])}const ze=p(ta,[["render",da],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),ua={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 bt(t){return`https://10ui.cn/icon_ext/${ua[t]}.svg`}const ha={name:"uploadList",props:{files:{type:Array,default(){return[]}},isShowDeleteConfim:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},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 bt[o]||bt.file}else return bt.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)}}},pa=["src"],ma={class:"cv-upload-list__item-content-action"};function fa(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,pa),e.createElementVNode("span",null,e.toDisplayString(r.name),1)]),_:2},1032,["href"]),e.createElementVNode("div",ma,[e.createVNode(s,{underline:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.getSize(r.size)),1)]),_:2},1024),n.isCanDownload?(e.openBlock(),e.createBlock(s,{key:0,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:1,underline:!1,onClick:c=>a.handleDelete(d,r),type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]))),128))]),_:1})}const ga=p(ha,[["render",fa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]),va={inheritAttrs:!1,name:"cvUploadFile",mixins:[wt],components:{uploadList:ga},props:{modelValue:[String,Object,Array],fileSize:{type:Number,default:5},fileType:Array,placeholder:String,disabled:Boolean,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}},_a={class:"cv-upload-file"},ya={key:0,class:"el-upload__tip"},Ca={style:{color:"#f56c6c"}},wa={style:{color:"#f56c6c"}};function ka(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",_a,[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",ya,[e.createTextVNode(" 请上传 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" 大小不超过 "),e.createElementVNode("b",Ca,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",wa,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,onRemove:a.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","onRemove"])])}const je=p(va,[["render",ka],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]),ba={name:"cvUploadVideo",mixins:[wt],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")}}},Va={class:"cv-upload-video"},Sa=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将视频拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),Na={key:0,class:"el-upload__tip"},Ba={style:{color:"#f56c6c"}},Ea={style:{color:"#f56c6c"}},xa={key:1,class:"vue-hover-mask"},$a=["src"],Ta=["src"];function Da(t,o,n,i,l,a){const s=e.resolveComponent("el-progress"),r=e.resolveComponent("Upload"),d=e.resolveComponent("el-icon"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("ZoomIn"),h=e.resolveComponent("Delete"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",Va,[n.modelValue?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,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},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(r)]),_:1}),Sa,a.showTip?(e.openBlock(),e.createElementBlock("div",Na,[e.createTextVNode(" 请上传 "),e.createElementVNode("span",Ba," "+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",Ea,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",xa,[e.createElementVNode("video",{autoplay:!1,src:n.modelValue,style:e.normalizeStyle({width:n.width+"px",height:n.height?n.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,$a),e.createElementVNode("span",{onClick:o[2]||(o[2]=(...f)=>a.handleHoverClick&&a.handleHoverClick(...f)),class:"vue-hover-mask_actions"},[e.createElementVNode("span",{onClick:o[0]||(o[0]=(...f)=>a.handlePlayerVideo&&a.handlePlayerVideo(...f)),class:"cv-upload-video_mask__item"},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("span",{onClick:o[1]||(o[1]=(...f)=>a.handleRemove&&a.handleRemove(...f)),class:"cv-upload-video_mask__item"},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(h)]),_:1})])])])):e.createCommentVNode("",!0),e.createVNode(m,{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,Ta)):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Oe=p(ba,[["render",Da],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);Fe.install=function(t){t.component(Fe.name,Fe)};ze.install=function(t){t.component(ze.name,ze)};je.install=function(t){t.component(je.name,je)};Oe.install=function(t){t.component(Oe.name,Oe)};const La={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(){}},Ia={class:"tabs-header"};function Fa(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tabs-jump",a.tabPositionClass])},[e.createElementVNode("div",Ia,[e.renderSlot(t.$slots,"default")])],2)}const Pe=p(La,[["render",Fa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),za={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")}}},ja={key:1};function Oa(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",ja,e.toDisplayString(n.label),1))],2)),[[e.vShow,l.isshow]])}const Ae=p(za,[["render",Oa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);Pe.install=function(t){t.component(Pe.name,Pe)};Ae.install=function(t){t.component(Ae.name,Ae)};const Pa={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()}}},Aa={class:"cv-draw-captcha"},Ua=["width","height"];function Ra(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",Aa,[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,Ua)])}const Ue=p(Pa,[["render",Ra],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Ma={name:"cvDrawQrcode",data(){return{}}};function Ha(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",null,"二维码")}const Re=p(Ma,[["render",Ha],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);Ue.install=function(t){t.component(Ue.name,Ue)};Re.install=function(t){t.component(Re.name,Re)};const qa={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"},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)}}},Wa={class:"cv-tag-base"},Ka=["onBlur"];function Ga(t,o,n,i,l,a){const s=e.resolveComponent("el-tag"),r=e.resolveComponent("CirclePlus"),d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",Wa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localVal,(c,u)=>(e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-tag-content"},{closable:n.closable,disableTransitions:n.disableTransitions,effect:n.effect,type:t.type,color:n.color,hit:n.hit,size:t.size},{onClose:h=>a.removeTag(u),key:u}),{default:e.withCtx(()=>[e.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${u}`,onBlur:h=>a.checkTag(u)},e.toDisplayString(c),41,Ka)]),_:2},1040,["onClose"]))),128)),e.createVNode(d,{onClick:o[0]||(o[0]=c=>a.addTag())},{default:e.withCtx(()=>[e.createVNode(r)]),_:1})])}const Me=p(qa,[["render",Ga],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Me.install=function(t){t.component(Me.name,Me)};const Za={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()}}},Qa={class:"cv-transfer-table"},Ya={class:"transfer-panel"},Ja={class:"transfer-panel-header"},Xa={key:0},ei={style:{padding:"5px"}},ti={class:"transfer-buttons"},oi={key:0,class:"button-text"},ni={key:0,class:"button-text"},li={class:"transfer-panel"},ai={class:"transfer-panel-header"},ii={key:0},si={style:{padding:"5px"}};function ri(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"),h=e.resolveComponent("el-pagination"),m=e.resolveComponent("ArrowRight"),f=e.resolveComponent("el-icon"),k=e.resolveComponent("ArrowLeft");return e.openBlock(),e.createElementBlock("div",Qa,[e.createElementVNode("div",Ya,[e.createElementVNode("p",Ja,[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",Xa,[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]=v=>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,v=>(e.openBlock(),e.createBlock(c,{prop:v.id,key:v.id,label:v.label,width:v.width},{default:e.withCtx(C=>[e.renderSlot(t.$slots,"default",{scope:{row:C.row,col:v}},()=>[e.createElementVNode("span",null,e.toDisplayString(C.row[v.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","row-style","onRowClick","onSelectionChange"]),e.createElementVNode("div",ei,[n.showPagination?(e.openBlock(),e.createBlock(h,{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",ti,[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",oi,e.toDisplayString(n.buttonTexts[0]),1)):e.createCommentVNode("",!0),e.createVNode(f,null,{default:e.withCtx(()=>[e.createVNode(m)]),_:1})]),_: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(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),n.buttonTexts[1]!==void 0?(e.openBlock(),e.createElementBlock("span",ni,e.toDisplayString(n.buttonTexts[1]),1)):e.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),e.createElementVNode("div",li,[e.createElementVNode("p",ai,[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",ii,[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]=v=>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,v=>(e.openBlock(),e.createBlock(c,{prop:v.id,key:v.id,label:v.label,width:v.width},{default:e.withCtx(C=>[e.renderSlot(t.$slots,"default",{scope:{row:C.row,col:v}},()=>[e.createElementVNode("span",null,e.toDisplayString(C.row[v.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","onRowClick","onSelectionChange"]),e.createElementVNode("div",si,[n.showPagination?(e.openBlock(),e.createBlock(h,{key:0,total:l.rightTableData.length,layout:"total"},null,8,["total"])):e.createCommentVNode("",!0)])])])}const He=p(Za,[["render",ri],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);He.install=function(t){t.component(He.name,He)};const Et={provide(){return{pageCurr:this.loadConfigSetting.pageCurr||1,pageLimit:this.loadConfigSetting.pageLimit||10}},props:{...g.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({})}},data(){return{loadDataList:[]}},watch:{modelValue(t){this.loadDataList=t},loadDataList(t){this.$emit("update:modelValue",t)}},created(){this.loadDataList=this.modelValue},methods:{_getPageCurr(){return this.loadPageCurr},_getPageSize(){return this.loadPageLimit},handleCurrentChange(t){this.loadPageCurr=t,this.getData()},handleSizeChange(t){this.loadPageLimit=t,this.getData()}}},ci={name:"cvTableBase",mixins:[yt,Et],props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tablePagin:{type:Object,default(){return{}}},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{paginationGroup:[10,20,30,50,100,200],paginationCount:7,searchData:{},tableConfDef:{}}},watch:{tableRefresh(t,o){this.initConfAll(),this.refresh()}},updated(){},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||this.paginationGroup[0],Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},di={class:"cv-table-list"},ui={key:0,class:"cv-tablie-list-page page"};function hi(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",di,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:a.handleSelectionChange}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,t.loadDataLoading]]),n.showPagebreak?e.withDirectives((e.openBlock(),e.createElementBlock("div",ui,[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,"pager-count":l.paginationCount,"page-sizes":l.paginationGroup,"current-page":t.loadPageCurr,"page-size":t.loadPageLimit,layout:"total, sizes, prev, pager, next, jumper",total:t.loadDataTotal},null,8,["onSizeChange","onCurrentChange","pager-count","page-sizes","current-page","page-size","total"])],512)),[[e.vShow,t.loadDataLoading===!1]]):e.createCommentVNode("",!0)])}const qe=p(ci,[["render",hi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]),pi={name:"cvTableTree",mixins:[yt,Et],props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{searchData:{},tableConfDef:{tablePrimary:"",childName:"children"},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.refresh()}},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},mi={class:"cv-table-tree"};function fi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",mi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:a.handleSelectionChange,"row-key":t.loadConfigSetting.tablePrimary,"tree-props":{children:t.loadConfigSetting.childName,hasChildren:"hasChildren"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[r,t.loadDataLoading]])])}const We=p(pi,[["render",fi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]),gi={name:"cvTableEditor",mixins:[yt,Et],props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{mergeRules:{},apiFunc:null,tableConfDef:{},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.loadConfigSetting=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){}}},vi={class:"cv-table-editor"};function _i(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:t.loadDataList,style:{width:"100%"},"row-class-name":"cv-tbed-tr"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data"])),[[r,t.loadDataLoading]])])}const Ke=p(gi,[["render",_i],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),yi={name:"cvTbColumnIndex",inject:{pageCurr:{default:1},pageLimit:{default:10}},props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:55},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(t){return this.continuity&&this.pageCurr&&this.pageLimit?t+1+(this.pageCurr-1)*this.pageLimit:t+1}}};function Ci(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 Ge=p(yi,[["render",Ci],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),wi={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 ki(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 Ze=p(wi,[["render",ki],["__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}}},Vi={style:{display:"contents"}};function Si(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",Vi,e.toDisplayString(r.row[t.prop]),1)]),_:1},16)}const Qe=p(bi,[["render",Si],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]),Ni={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}}},Bi=e.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[e.createTextVNode(" 暂无 "),e.createElementVNode("br"),e.createTextVNode(" 图片 ")],-1),Ei={key:0,class:"cv-table-column-img-mark"},xi={class:"cv-table-column-img-text"};function $i(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(()=>[Bi]),_:2},1032,["style","src","preview-src-list"]),a.handleImgLeng(d.row)>1?(e.openBlock(),e.createElementBlock("p",Ei,[e.createElementVNode("span",xi,e.toDisplayString(a.handleImgLeng(d.row))+"张",1)])):e.createCommentVNode("",!0)],4)]),_:1},16)}const Ye=p(Ni,[["render",$i],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),Ti={name:"cvTbColumnOpt",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Di(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(Ti,[["render",Di],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),Li={name:"cvTbColumnBase",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function Ii(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 Xe=p(Li,[["render",Ii],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Fi={name:"cvTbColumnExpand",props:{...g.ElTableColumn.props},data(){return{}},created(){}};function zi(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 et=p(Fi,[["render",zi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),ji={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 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.createElementVNode("span",null,e.toDisplayString(a.dealTypeEnum(r.row)),1)]),_:1},16)}const tt=p(ji,[["render",Oi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]),Pi={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 h=l.searchField.row_unit;s.row_unit=s[h];const m=l.searchField.row_id;s.row_id=s[m],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}}},Ai={class:"name"},Ui={class:"addr"},Ri={class:"addr"},Mi={class:"droplist-item"},Hi={class:"name"},qi={key:0,class:"attr"},Wi={class:"price"},Ki={class:"rest"},Gi=["onClick"];function Zi(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":h=>u.row[t.prop]=h,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":a.searchQuery,onSelect:h=>a.searchSelect(h,u.row,u.$index),onFocus:h=>a.searchFocus(u.$index,h),onBlur:h=>a.searchBlur(u.row,u.$index)}),{suffix:e.withCtx(()=>[e.createVNode(r,{onClick:h=>a.searchIconClick(u.row,u.$index)},{default:e.withCtx(()=>[e.createVNode(s)]),_:2},1032,["onClick"])]),default:e.withCtx(({item:h})=>[e.renderSlot(t.$slots,"default",{item:h},()=>[e.createElementVNode("div",Ai,e.toDisplayString(h.row_name),1),e.createElementVNode("span",Ui,"价格:"+e.toDisplayString(h.row_price),1),e.createElementVNode("span",Ri,e.toDisplayString(h.row_rest),1),e.createElementVNode("div",Mi,[e.createElementVNode("div",Hi,[e.createTextVNode(e.toDisplayString(h.row_name)+" ",1),h.row_attr?(e.openBlock(),e.createElementBlock("div",qi,"[ "+e.toDisplayString(h.row_attr)+"]",1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wi,"¥ "+e.toDisplayString(h.row_price),1),e.createElementVNode("div",Ki,e.toDisplayString(h.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:h=>a.searchEdit(u.row,u.$index)},e.toDisplayString(u.row[t.prop]),9,Gi))]),_:3},16)}const ot=p(Pi,[["render",Zi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),Qi={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 Yi(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(h=>[n.btnAdd?(e.openBlock(),e.createBlock(d,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:o[0]||(o[0]=m=>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:m=>a.optHdDelete(h.$index,h.row)},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c)]),_:1})]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1},16)}const nt=p(Qi,[["render",Yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]),Ji={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)}}})}},Xi=["onClick"];function es(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,Xi))]),_:1},16)}const lt=p(Ji,[["render",es],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),ts={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 os(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,h)=>(e.openBlock(),e.createBlock(s,{key:h,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(ts,[["render",os],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ns={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 ls(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,h)=>(e.openBlock(),e.createBlock(s,{key:h,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 it=p(ns,[["render",ls],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),as={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 is(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,h)=>(e.openBlock(),e.createBlock(s,{key:h,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 st=p(as,[["render",is],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);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)};Ge.install=function(t){t.component(Ge.name,Ge)};Ze.install=function(t){t.component(Ze.name,Ze)};Qe.install=function(t){t.component(Qe.name,Qe)};Ye.install=function(t){t.component(Ye.name,Ye)};Je.install=function(t){t.component(Je.name,Je)};Xe.install=function(t){t.component(Xe.name,Xe)};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)};it.install=function(t){t.component(it.name,it)};st.install=function(t){t.component(st.name,st)};function ss(t){return typeof Array.isArray=="function"?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}function rs(t){return Object.prototype.toString.call(t)==="[object Object]"}function z(t){return ss(t)?t.length===0:rs(t)?Object.keys(t).length===0:t===""||t===void 0||t===null}const O=(t,o)=>z(t)?o:t,cs=(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(void 0,s);r(c),i=!0}else l=setTimeout(()=>{const c=t.apply(void 0,s);r(c),i=!1,l=null},o)});return a.cancel=()=>{l&&clearTimeout(l),i=!1},a};function I(t){return t==null?"":String(t)}function ds(t){let o=["png","jpg","jpeg","gif","webp","svg"],n=t.lastIndexOf("."),i=t.substring(n+1);return o.indexOf(i.toLowerCase())!=-1}function us(t){return window.URL?window.URL.createObjectURL(t):window.webkitURL?window.webkitURL.createObjectURL(t):""}function hs(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 ps={},ms={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs=e.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),gs=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),vs=[fs,gs];function _s(t,o){return e.openBlock(),e.createElementBlock("svg",ms,[...vs])}const ys=p(ps,[["render",_s],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),Cs={},ws={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},ks=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),bs=[ks];function Vs(t,o){return e.openBlock(),e.createElementBlock("svg",ws,[...bs])}const Ss=p(Cs,[["render",Vs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),Ns={},Bs={class:"comment-common-icon"},Es=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),xs=[Es];function $s(t,o){return e.openBlock(),e.createElementBlock("i",Bs,[...xs])}const Ts=p(Ns,[["render",$s],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),Ds={},Ls={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Is=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),Fs=[Is];function zs(t,o){return e.openBlock(),e.createElementBlock("svg",Ls,[...Fs])}const js=p(Ds,[["render",zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Os={},Ps={class:"comment-common-icon"},As=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),Us=[As];function Rs(t,o){return e.openBlock(),e.createElementBlock("i",Ps,[...Us])}const Ms=p(Os,[["render",Rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),Hs={},qs={class:"comment-common-icon",style:{color:"#1e80ff"}},Ws=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),Ks=[Ws];function Gs(t,o){return e.openBlock(),e.createElementBlock("i",qs,[...Ks])}const Zs=p(Hs,[["render",Gs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),Qs={},Ys={class:"comment-common-icon"},Js=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),Xs=[Js];function er(t,o){return e.openBlock(),e.createElementBlock("i",Ys,[...Xs])}const tr=p(Qs,[["render",er],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),or={},nr={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},lr=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),ar=[lr];function ir(t,o){return e.openBlock(),e.createElementBlock("svg",nr,[...ar])}const sr=p(or,[["render",ir],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),rr={},cr={class:"comment-common-icon"},dr=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),ur=[dr];function hr(t,o){return e.openBlock(),e.createElementBlock("i",cr,[...ur])}const pr=p(rr,[["render",hr],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),mr={},fr={class:"comment-common-icon"},gr=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),vr=[gr];function _r(t,o){return e.openBlock(),e.createElementBlock("i",fr,[...vr])}const yr=p(mr,[["render",_r],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]),Cr=t=>(e.pushScopeId("data-v-60eb8f0b"),t=t(),e.popScopeId(),t),wr={class:"cv-comment-emoji"},kr={class:"face-tooltip-head select-none"},br=["onClick"],Vr=["src"],Sr={class:"emoji-body select-none"},Nr={style:{padding:"0 5px"}},Br=["onClick"],Er={class:"emoji-btn select-none"},xr={key:0},$r=Cr(()=>e.createElementVNode("span",null,"表情",-1)),Tr=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,h)=>(e.openBlock(),e.createElementBlock("div",wr,[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",Er,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",xr,[e.createVNode(e.unref(Ss)),$r]))])]),default:e.withCtx(()=>[e.createElementVNode("div",kr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(m,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:m,alt:""},null,8,Vr)],10,br))),128))]),e.createElementVNode("div",Sr,[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,(m,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",Nr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(k,v)=>(e.openBlock(),e.createElementBlock("span",{key:v,class:"emoji-item",onClick:C=>u.$emit("addEmoji",v)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(v),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Br))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Dr=p(Tr,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]),Ut=t=>(e.pushScopeId("data-v-cb6d934c"),t=t(),e.popScopeId(),t),Lr={class:"cv-comment-editor"},Ir=["placeholder","innerHTML"],Fr=["src"],zr=["onClick"],jr={key:0,class:"cv-comment-editor__action"},Or=Ut(()=>e.createElementVNode("span",null,"图片",-1)),Pr=Ut(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},[e.createTextVNode(" 文明上网理性发言,请遵守 "),e.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),Ar={__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(),h=e.ref(),m=e.ref([]),f=e.ref([]),k=e.reactive({imgLength:0}),v={minHeight:64},C=e.ref(),y=e.ref(!1),_=e.ref(),w=e.computed(()=>v.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=>{y.value||(a.value=V)});function Tt(){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:()=>{so(),B("close")}})}function Xt(V){z(l.value)&&!k.imgLength&&(r.value=!1,B("hide",V))}function eo(V){y.value=!0,s.value=!0,r.value=!0,e.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),A()}function to(V){var b,E;C.value=(b=window.getSelection())==null?void 0:b.getRangeAt(0),(E=d.value)!=null&&E.innerHTML||(s.value=!1),y.value=!1}function oo(V){const{innerHTML:b}=(V==null?void 0:V.target)||V;l.value=b||"",z(l.value.replace(/ |<br>| /g,""))?c.value=!0:c.value=!1}function no(V){var E;let b=window.getSelection();b&&(b.removeAllRanges(),C.value||(Dt(),C.value=b.getRangeAt(0)),C.value.deleteContents(),C.value.insertNode(C.value.createContextualFragment(V)),C.value.collapse(!1),b.addRange(C.value),l.value=((E=d==null?void 0:d.value)==null?void 0:E.innerHTML)||"",z(l.value.replace(/ |<br>| /g,""))?c.value=!0:c.value=!1)}function lo(){d.value&&(d.value.innerHTML="",l.value=d.value.innerHTML,s.value=!1)}function Dt(){e.nextTick(()=>{var V;(V=d.value)==null||V.focus()})}function ao(V){V.ctrlKey&&V.key=="Enter"&&(z(l.value.replace(/ |<br>| /g,""))?g.ElMessage({message:"内容不能为空",type:"info"}):Tt())}function io(V){var E;m.value.length=0,f.value.length=0;const b=(E=h.value)==null?void 0:E.files;if(k.imgLength=O(b==null?void 0:b.length,0),b)for(let x=0;x<b.length;x++){let j=b[x].name,co=us(b[x]);f.value.push(b[x]),ds(j)?m.value.push(co):g.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function so(){lo(),m.value.length=0,f.value=[],c.value=!0}function ro(V){var b;(b=m==null?void 0:m.value)==null||b.splice(V,1)}return e.onMounted(()=>{var V;(V=d.value)==null||V.addEventListener("keyup",b=>{const E=b.target;E.innerHTML=="<br>"&&(E.innerHTML="")})}),o({focus:()=>Dt()}),(V,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Lr,[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:eo,onInput:oo,onBlur:to,onKeydown:e.withKeys(ao,["enter"]),innerHTML:a.value,style:e.normalizeStyle({minHeight:w.value,padding:S.value})},null,44,Ir),e.createElementVNode("div",{ref_key:"imageRef",ref:_,class:"image-preview-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"image-preview"},[e.createElementVNode("img",{src:E,alt:""},null,8,Fr),e.createElementVNode("div",{class:"clean-btn",onClick:j=>ro(x)},[e.createVNode(e.unref(ys))],8,zr)]))),128))],512)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("div",null,[e.createVNode(Dr,{emoji:e.unref(U),onAddEmoji:b[0]||(b[0]=E=>no(E))},null,8,["emoji"]),e.createElementVNode("div",{class:"picture",onClick:b[1]||(b[1]=(...E)=>{var x,j;return((x=h.value)==null?void 0:x.click)&&((j=h.value)==null?void 0:j.click(...E))})},[e.createVNode(e.unref(js)),Or,e.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:h,type:"file",multiple:"",onChange:io},null,544)])]),e.createElementVNode("div",null,[Pr,e.createVNode(e.unref(g.ElButton),{type:"primary",disabled:c.value,onClick:Tt},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.contentBtn),1)]),_:1},8,["disabled"])])])):e.createCommentVNode("",!0)]),_:1})])),[[e.unref(g.ClickOutside),Xt,u.value]])}},Rt=p(Ar,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]),Ur={class:"u-fold"},Rr={class:"action-box select-none"},Mr=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",Ur,[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",Rr,[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)])]))}}),Hr=p(Mr,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),qr={__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})}},Lt=p(qr,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Mt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function kt(t){return typeof t=="function"?t():e.unref(t)}const xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wr=Object.prototype.toString,Kr=t=>Wr.call(t)==="[object Object]",Gr=()=>{};function Zr(t){let o;function n(){return o||(o=t()),o}return n.reset=async()=>{const i=o;o=void 0,i&&await i},n}function Qr(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,xt&&d()),Mt(r),{isPending:e.readonly(l),start:d,stop:r}}function Yr(t){var o;const n=kt(t);return(o=n==null?void 0:n.$el)!=null?o:n}const Jr=xt?window:void 0,Ht=xt?window.navigator:void 0;function qt(...t){let o,n,i,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,l]=t,o=Jr):[o,n,i,l]=t,!o)return Gr;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},r=(u,h,m,f)=>(u.addEventListener(h,m,f),()=>u.removeEventListener(h,m,f)),d=e.watch(()=>[Yr(o),kt(l)],([u,h])=>{if(s(),!u)return;const m=Kr(h)?{...h}:h;a.push(...n.flatMap(f=>i.map(k=>r(u,f,k,m))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Mt(c),c}function Xr(){const t=e.ref(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Wt(t){const o=Xr();return e.computed(()=>(o.value,!!t()))}function It(t,o={}){const{controls:n=!1,navigator:i=Ht}=o,l=Wt(()=>i&&"permissions"in i);let a;const s=typeof t=="string"?{name:t}:t,r=e.ref(),d=()=>{a&&(r.value=a.state)},c=Zr(async()=>{if(l.value){if(!a)try{a=await i.permissions.query(s),qt(a,"change",d),d()}catch{r.value="prompt"}return a}});return c(),n?{state:r,isSupported:l,query:c}:r}function ec(t={}){const{navigator:o=Ht,read:n=!1,source:i,copiedDuring:l=1500,legacy:a=!1}=t,s=Wt(()=>o&&"clipboard"in o),r=It("clipboard-read"),d=It("clipboard-write"),c=e.computed(()=>s.value||a),u=e.ref(""),h=e.ref(!1),m=Qr(()=>h.value=!1,l);function f(){s.value&&y(r.value)?o.clipboard.readText().then(_=>{u.value=_}):u.value=C()}c.value&&n&&qt(["copy","cut"],f);async function k(_=kt(i)){c.value&&_!=null&&(s.value&&y(d.value)?await o.clipboard.writeText(_):v(_),u.value=_,h.value=!0,m.start())}function v(_){const w=document.createElement("textarea");w.value=_??"",w.style.position="absolute",w.style.opacity="0",document.body.appendChild(w),w.select(),document.execCommand("copy"),w.remove()}function C(){var _,w,S;return(S=(w=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:w.toString())!=null?S:""}function y(_){return _==="granted"||_==="prompt"}return{isSupported:c,text:u,copied:h,copy:k}}const tc={class:"comment-list-actbox__right"},oc={class:"operation-warp"},nc={class:"dialog-footer"},lc={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(t){const{copy:o}=ec(),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"),h=e.resolveComponent("el-dropdown"),m=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),k=e.resolveComponent("el-form-item"),v=e.resolveComponent("el-input"),C=e.resolveComponent("el-form"),y=e.resolveComponent("el-button"),_=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",tc,[e.createVNode(h,{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",oc,[e.createVNode(e.unref(Ms))])]),_:1}),e.createVNode(_,{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",nc,[e.createVNode(y,{onClick:d[3]||(d[3]=w=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(y,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(C,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(k,{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(m,{value:"色情淫秽"},{default:e.withCtx(()=>[e.createTextVNode("色情淫秽")]),_:1}),e.createVNode(m,{value:"骚扰谩骂"},{default:e.withCtx(()=>[e.createTextVNode("骚扰谩骂")]),_:1}),e.createVNode(m,{value:"广告欺诈"},{default:e.withCtx(()=>[e.createTextVNode("广告欺诈")]),_:1}),e.createVNode(m,{value:"反动"},{default:e.withCtx(()=>[e.createTextVNode("反动")]),_:1}),e.createVNode(m,{value:"其他"},{default:e.withCtx(()=>[e.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"举报说明(可选):"},{default:e.withCtx(()=>[e.createVNode(v,{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"])])}}},ac=p(lc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]),ic=t=>(e.pushScopeId("data-v-1d5332e1"),t=t(),e.popScopeId(),t),sc={class:"comment-sub"},rc=["href"],cc=ic(()=>e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),dc={class:"comment-primary"},uc={class:"comment-main"},hc={key:1,class:"user-info"},pc=["href"],mc={class:"username"},fc={class:"name",style:{"max-width":"10em"}},gc={blank:"true",class:"rank"},vc=["innerHTML"],_c={class:"address",style:{color:"#939393","font-size":"12px"}},yc={class:"time"},Cc={class:"content"},wc=["innerHTML"],kc={class:"imgbox",style:{display:"flex"}},bc={class:"comment-list-actbox select-none"},Vc={class:"comment-list-actbox__left"},Sc={key:2},Nc={class:"comment-list-actbox__right"},Bc={key:2},Ec={__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 y=o.data.contentImg;return z(y)?[]:y==null?void 0:y.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 y;(y=i.value)==null||y.focus()})}function h(y){var w;const _=y.target;(w=l.value)!=null&&w.contains(_)||(n.active=!1)}const m=e.inject("InjectSlots"),f=()=>e.h("div",m.info(o.data)),k=(y,_)=>{const w=/\[.+?\]/g;return _=_.replace(w,S=>{const B=y[S];return B?['<img src="',B,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),_},v=e.computed(()=>k(s,o.data.content)),C=y=>{switch(y){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(y,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["comment",{reply:o.reply}])},[e.createElementVNode("div",sc,[e.createVNode(Lt,{uid:e.unref(I)(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(()=>[cc]),_:1},8,["src"])],8,rc)]),_:1},8,["uid"])]),e.createElementVNode("div",dc,[e.createElementVNode("div",uc,[e.unref(m).info?(e.openBlock(),e.createBlock(f,{key:0})):(e.openBlock(),e.createElementBlock("div",hc,[e.createVNode(Lt,{uid:e.unref(I)(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",mc,[e.createElementVNode("span",fc,e.toDisplayString(t.data.user.username),1),e.createElementVNode("span",gc,[e.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:C(t.data.user.level)},null,8,vc)])])],8,pc)]),_:1},8,["uid"]),e.createElementVNode("span",_c," "+e.toDisplayString(t.data.address),1),e.createElementVNode("time",yc,e.toDisplayString(e.unref(c)?e.unref(hs)(t.data.createTime):t.data.createTime),1)])),e.createElementVNode("div",Cc,[e.createVNode(Hr,{unfold:""},{default:e.withCtx(()=>[e.createElementVNode("div",{innerHTML:v.value},null,8,wc),e.createElementVNode("div",kc,[(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",bc,[e.createElementVNode("div",Vc,[e.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:_[0]||(_[0]=w=>e.unref(r)(e.unref(I)(t.data.id)))},[e.unref(d).likeIds.map(String).indexOf(e.unref(I)(t.data.id))==-1?(e.openBlock(),e.createBlock(e.unref(tr),{key:0})):(e.openBlock(),e.createBlock(e.unref(Zs),{key:1})),t.data.likes!=0?(e.openBlock(),e.createElementBlock("span",Sc,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(yr)),e.createElementVNode("span",null,e.toDisplayString(n.active?"取消回复":"回复"),1)],2)]),e.createElementVNode("div",Nc,[e.renderSlot(y.$slots,"operate",{},()=>[e.createVNode(ac,{data:o.data},null,8,["data"])],!0)])]),n.active?(e.openBlock(),e.createElementBlock("div",Bc,[e.createVNode(Rt,{ref_key:"commentRef",ref:i,"parent-id":e.unref(I)(t.id),placeholder:`回复 @${t.data.user.username}...`,reply:t.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:h,onClose:_[1]||(_[1]=w=>n.active=!1)},null,8,["parent-id","placeholder","reply"])])):e.createCommentVNode("",!0)]),e.renderSlot(y.$slots,"default",{},void 0,!0)])],2))}},Kt=p(Ec,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]),xc={key:0,class:"reply-box"},$c={class:"reply-list"},Tc={key:0,class:"fetch-more"},Dc={key:0},Lc={key:1},Ic={key:0},Fc={key:1,class:"fetch-more"},zc={__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 m={total:0,length:0,list:[]};if(o.data){let f=o.data.list.length;m={total:o.data.total,length:f,list:o.data.list}}if(!n.over){let f=m.list.slice(0,l);m.list=f}return s&&(m.list=m.list.slice(0,5)),m}),d=()=>{n.over=!0},c=m=>{a.value.forEach(f=>{f.id==o.id&&f.reply&&(f.reply=m)})},u=m=>{n.pageNum=m,i(o.id,m,n.pageSize,f=>c(f))},h=m=>{n.pageSize=m,i(o.id,n.pageNum,m,f=>c(f))};return(m,f)=>r.value.length>0?(e.openBlock(),e.createElementBlock("div",xc,[e.createElementVNode("div",$c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.list,(k,v)=>(e.openBlock(),e.createBlock(Kt,{id:t.id,key:v,data:k,reply:""},null,8,["id","data"]))),128)),r.value.length>e.unref(l)?(e.openBlock(),e.createElementBlock("div",Tc,[n.loading?(e.openBlock(),e.createElementBlock("span",Dc,"加载中...")):(e.openBlock(),e.createElementBlock("div",Lc,[n.over?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ic,[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(sr))])]))]))])):e.createCommentVNode("",!0),n.over&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",Fc,[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:h},null,8,["total","page-size"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}},jc=p(zc,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),Oc={key:0,class:"comment-list"},Pc={__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",Oc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(i,l)=>(e.openBlock(),e.createBlock(Kt,{id:e.unref(I)(i.id),key:l,data:i},{default:e.withCtx(()=>[e.createVNode(jc,{id:e.unref(I)(i.id),data:i.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):e.createCommentVNode("",!0)}},Ac=p(Pc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]),Uc={class:"cv-comment-base"},Rc={class:"cv-comment-form"},Mc=e.createElementVNode("div",{class:"cv-comment-form__header"},[e.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),Hc={class:"cv-comment-form__content"},qc={class:"cv-comment-form__avatar"},Wc=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Kc=e.createElementVNode("div",{class:"title"},"全部评论",-1),Gc={class:"cv-comment-list-wrapper"},Zc=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:v,parentId:C,reply:y,files:_,clear:w})=>{c("submit",{content:v,parentId:C,reply:y,files:_,finish:B=>{if(w(),C){let T=a.value.find(D=>D.id==C);if(T){let D=T.reply;D?(D.list.unshift(B),D.total++):T.reply={total:1,list:[B]}}}else a.value.unshift(B)}})},h={upload:i.upload,submit:u,focus:()=>c("focus")};e.provide("InjectInputBox",h);const m=(v,C)=>{let y=null;a.value.forEach(_=>{var w;_.id==v?y=_:y=(w=_.reply)==null?void 0:w.list.find(S=>S.id==v),y&&(y.likes+=C)})},f=v=>{const C=i.config.user.likeIds;c("like",v,()=>{if(C.findIndex(y=>y==v)==-1)C.push(v),m(v,1);else{let y=C.findIndex(_=>_==v);y!=-1&&(C.splice(y,1),m(v,-1))}})};e.provide("InjectContentBox",{user:l,like:f,relativeTime:O(i.relativeTime,!1),showInfo:(v,C)=>c("showInfo",v,C)}),e.provide("InjectReplyBox",{page:i.page,replyPage:(v,C,y,_)=>{c("replyPage",{parentId:v,pageNum:C,pageSize:y,finish:_})},replyShowSize:O(r,3),comments:a});const k=v=>{const{parentId:C,id:y}=v;if(C){let _=a.value.find(S=>S.id==C),w=_==null?void 0:_.reply;if(w){let S=w.list.findIndex(B=>B.id==y);S!=-1&&(w.list.splice(S,1),w.total--)}}else{let _=a.value.findIndex(w=>w.id==y);_!=-1&&a.value.splice(_,1)}};return e.provide("InjectionEmojiApi",i.config.emoji),e.provide("InjectSlots",e.useSlots()),o({remove:k}),(v,C)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Uc,[e.createElementVNode("div",Rc,[Mc,e.createElementVNode("div",Hc,[e.createElementVNode("div",qc,[e.createVNode(y,{size:40,src:t.config.user.avatar},{default:e.withCtx(()=>[Wc]),_:1},8,["src"])]),e.createVNode(Rt,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),e.renderSlot(v.$slots,"default",{},()=>[Kc]),e.createElementVNode("div",Gc,[e.createVNode(Ac,{data:e.unref(a),total:e.unref(d),"show-size":e.unref(O)(e.unref(s),5)},null,8,["data","total","show-size"])])])}}}),rt=p(Zc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),Qc={class:"comment-scroll"},Yc=["infinite-scroll-disabled"],Jc={class:"scroll-btn"},Xc={key:1},ed={key:2},td=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=cs(()=>{a("more"),i.value=!1},500),c=()=>{i.value=!0,d()};return(u,h)=>{const m=e.resolveComponent("el-link"),f=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createElementBlock("div",Qc,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{"infinite-scroll-disabled":r.value,"infinite-scroll-distance":"2"},[e.renderSlot(u.$slots,"default"),e.createElementVNode("div",Jc,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,type:"primary",underline:!1,onClick:h[0]||(h[0]=k=>l.value=!l.value)},{default:e.withCtx(()=>[e.createTextVNode("加载更多")]),_:1})),i.value?(e.openBlock(),e.createElementBlock("p",Xc,"加载中...")):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("p",ed,"没有更多了")):e.createCommentVNode("",!0)])],8,Yc)),[[f,c]])])}}}),ct=p(td,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),od={class:"cv-comment-nav-wrap"},nd=e.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),ld={class:"cv-comment-nav__sort"},ad=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",od,[nd,e.createElementVNode("div",ld,[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(pr)),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(Ts)),e.createTextVNode(" 最热 ")],2)])]))}}),dt=p(ad,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);rt.install=function(t){t.component(rt.name,rt)};ct.install=function(t){t.component(ct.name,ct)};dt.install=function(t){t.component(dt.name,dt)};const id={name:"cvIcons",props:{...g.ElIcon.prop,type:{type:[String],default:""},size:{type:[String,Number],default:12},name:{type:[String],default:""}},data(){return{}},computed:{style(){return{fontSize:isNaN(Number(this.size))?this.size+"px":this.size,color:props.color}}},created(){},methods:{}},sd={key:0,"aria-hidden":"true"},rd=["xlink:href"];function cd(t,o,n,i,l,a){const s=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.type)))]),n.name?(e.openBlock(),e.createElementBlock("svg",sd,[e.createElementVNode("use",{"xlink:href":n.name},null,8,rd)])):e.createCommentVNode("",!0)]),_:3},16)}const ut=p(id,[["render",cd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);ut.install=function(t){t.component(ut.name,ut)};const Gt=t=>(e.pushScopeId("data-v-cbcaef8c"),t=t(),e.popScopeId(),t),dd={class:"u-emoji"},ud={class:"face-tooltip-head select-none"},hd=["onClick"],pd=["src"],md={class:"emoji-body select-none"},fd={style:{padding:"0 5px"}},gd=["onClick"],vd={class:"emoji-btn select-none"},_d={key:0},yd=Gt(()=>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)),Cd=Gt(()=>e.createElementVNode("span",null,"表情",-1)),wd=[yd,Cd],kd=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,h)=>(e.openBlock(),e.createElementBlock("div",dd,[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",vd,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",_d,[...wd]))])]),default:e.withCtx(()=>[e.createElementVNode("div",ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(m,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:m,alt:""},null,8,pd)],10,hd))),128))]),e.createElementVNode("div",md,[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,(m,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(k,v)=>(e.openBlock(),e.createElementBlock("span",{key:v,class:"emoji-item",onClick:C=>u.$emit("addEmoji",v)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(v),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,gd))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),bd=p(kd,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]),Vd={class:"cv-chat-message"},Sd={class:"chat-list"},Nd=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Bd={class:"content"},Ed={key:0,class:"username"},xd=["innerHTML"],$d=e.createElementVNode("div",{class:"date"},null,-1),Td={__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",Vd,[e.createVNode(e.unref(g.ElScrollbar),{ref_key:"scrollbarRef",ref:i},{default:e.withCtx(()=>[e.createElementVNode("div",Sd,[(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(()=>[Nd]),_:1})]),e.createElementVNode("div",Bd,[t.userId!=d.id?(e.openBlock(),e.createElementBlock("div",Ed,e.toDisplayString(d.username),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"card-box",innerHTML:a(e.unref(n),d.content)},null,8,xd)]),$d],2))),128))])]),_:1},512)]))}},Dd=p(Td,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]),Ld={class:"cv-chat-wrap"},Id={class:"header"},Fd=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),zd=e.createElementVNode("div",{style:{"margin-left":"12px"}},[e.createElementVNode("div",null,"聊天室"),e.createElementVNode("div",{style:{"font-size":"12px"}},"当前2人在线")],-1),jd={id:"chat-footer",class:"footer"},Od=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),Pd=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),Ad=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=m=>{const{ctrlKey:f,key:k}=m;f&&k=="Enter"&&u()},c=()=>{l.value="",a.value.scroll()},u=()=>{let m=l.value;m.trim()?(m=m.replace(/\n/g,"<br/>"),r("submit",{clear:c,content:m})):g.ElMessage({type:"error",message:"内容不能为空"})},h=m=>{let f=document.getElementById("emojiInput"),k=f.selectionStart,v=f.selectionEnd,C=f.value;if(k===null||v===null)return;let y=C.substring(0,k)+m+C.substring(v);f.value=y,f.focus(),f.selectionStart=k+m.length,f.selectionEnd=k+m.length,l.value=y};return e.provide("InjectionEmojiApi",n.emoji),(m,f)=>{const k=e.resolveComponent("cvIcons");return e.openBlock(),e.createElementBlock("div",Ld,[e.createElementVNode("div",{class:e.normalizeClass([{active:i.value},"chat-container translate"])},[e.createElementVNode("div",Id,[e.createVNode(k,{size:"32"},{default:e.withCtx(()=>[Fd]),_:1}),zd]),e.createVNode(Dd,{ref_key:"messageRef",ref:a,data:e.unref(s),"user-id":t.userId},null,8,["data","user-id"]),e.createElementVNode("div",jd,[e.createVNode(e.unref(g.ElInput),{id:"emojiInput",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),e.createVNode(bd,{style:{margin:"0 8px 0"},emoji:t.emoji,placement:"top-end",onAddEmoji:h},{default:e.withCtx(()=>[Od]),_:1},8,["emoji"]),e.createVNode(k,{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(()=>[Pd]),_:1},8,["class"])])],2),e.createVNode(e.unref(g.ElButton),{class:"chat-btn",onClick:f[1]||(f[1]=v=>i.value=!i.value)},{default:e.withCtx(()=>[e.createTextVNode("chat")]),_:1})])}}}),ht=p(Ad,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);ht.install=function(t){t.component(ht.name,ht)};const Ud={key:0},Rd=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:h}=o,m=e.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),f=e.ref({}),k=e.ref({}),v=e.computed(()=>o.delay>2e3?o.delay:2e3),C=()=>{e.nextTick(()=>{m.boxWidth=f.value.offsetWidth,m.textWidth=k.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${m.textWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${m.boxWidth}px;} 100% {left: -${m.textWidth}px;}}`),y(),setTimeout(()=>{_()},o.delay)})},y=()=>{m.oneTime=m.textWidth/o.spped,m.twoTime=(m.textWidth+m.boxWidth)/o.spped},_=()=>{m.order===1?(k.value.style.cssText=`animation: oneAnimation ${m.oneTime}s linear; opactity: 1;}`,m.order=2):k.value.style.cssText=`animation: twoAnimation ${m.twoTime}s linear infinite; opacity: 1;`},w=()=>{k.value.addEventListener("animationend",()=>{_()},!1)};return e.onMounted(()=>{o.vertical||(C(),w())}),(S,B)=>{const T=e.resolveComponent("el-carousel-item"),D=e.resolveComponent("el-carousel"),A=e.resolveComponent("cvIcons");return e.openBlock(),e.createElementBlock("div",{class:"cv-notice-bar",style:e.normalizeStyle({background:e.unref(h),height:`${e.unref(r)}px`})},[e.unref(i)?(e.openBlock(),e.createElementBlock("div",Ud,[e.createVNode(D,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:v.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:k,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)}}}),pt=p(Rd,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);pt.install=function(t){t.component(pt.name,pt)};const Md={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.$nextTick(()=>{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){}}},Hd={class:"cv-editor-code-wrap cv-editor-vars"},qd={key:0,class:"cv-editor-toolbars"},Wd=e.createElementVNode("li",{class:"empty"},null,-1),Kd=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),Gd=[Kd],Zd={class:"cv-editor-mainbox"};function Qd(t,o,n,i,l,a){const s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Hd,[l.localToolNum>0?(e.openBlock(),e.createElementBlock("ul",qd,[Wd,l.localToolbar.copy?(e.openBlock(),e.createElementBlock("li",{key:0,name:"复制",onClick:o[0]||(o[0]=(...r)=>a.handleCopy&&a.handleCopy(...r))},[...Gd])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Zd,[e.createElementVNode("div",{class:"cv-editor-container",ref:l.editorId},null,512)])])),[[s,l.isCdnLoading]])}const mt=p(Md,[["render",Qd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]),Yd={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 uo.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=dl(400,o=>{this.$emit("update:modelValue",o)})),this.emitData(t)}}},Jd={ref:"jsoneditor",class:"jsoneditor-box"};function Xd(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",Jd,null,512),e.createElementVNode("a",{onClick:o[0]||(o[0]=s=>l.max=!l.max),class:"max-btn"})],6)}const ft=p(Yd,[["render",Xd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]);function Zt(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=eu(o);if(t.async)return Promise.resolve(t.highlight(o.text,n)).then(Ft(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.");Ft(o)(i)},renderer:{code(o,n,i){const l=(n||"").match(/\S*/)[0],a=l?` class="${t.langPrefix}${jt(l)}"`:"";return o=o.replace(/\n$/,""),`<pre><code${a}>${i?o:jt(o,!0)}
|
|
2
|
+
</code></pre>`}}}}function eu(t){return(t.lang||"").match(/\S*/)[0]}function Ft(t){return o=>{typeof o=="string"&&o!==t.text&&(t.escaped=!0,t.text=o)}}const Qt=/[&<>"']/,tu=new RegExp(Qt.source,"g"),Yt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ou=new RegExp(Yt.source,"g"),nu={"&":"&","<":"<",">":">",'"':""","'":"'"},zt=t=>nu[t];function jt(t,o){if(o){if(Qt.test(t))return t.replace(tu,zt)}else if(Yt.test(t))return t.replace(ou,zt);return t}function lu(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 au={methods:{insertLink(){this.insertContent(`
|
|
3
3
|
[link](href)`)},insertImage(){this.insertContent(`
|
|
4
4
|
`)},insertTable(){this.insertContent(`
|
|
5
5
|
header 1 | header 2
|
|
@@ -7,8 +7,8 @@ header 1 | header 2
|
|
|
7
7
|
row 1 col 1 | row 1 col 2
|
|
8
8
|
row 2 col 1 | row 2 col 2
|
|
9
9
|
|
|
10
|
-
`)},insertItalic(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("*"+o+"*"):(this.insertContent("**"),this.setCursor(t.line,t.ch+1))},insertStrong(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("**"+o+"**"):(this.insertContent("****"),this.setCursor(t.line,t.ch+2))},insertBg(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("=="+o+"=="):(this.insertContent("===="),this.setCursor(t.line,t.ch+1))},insertUnderline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("<u>"+o+"</u>"):(this.insertContent("<u></u>"),this.setCursor(t.line,t.ch+3))},insertOverline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("~~"+o+"~~"):(this.insertContent("~~~~"),this.setCursor(t.line,t.ch+2))},insertTitle(t){const o={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "},n=this.getLastPoint(),
|
|
11
|
-
`+o[t]+
|
|
10
|
+
`)},insertItalic(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("*"+o+"*"):(this.insertContent("**"),this.setCursor(t.line,t.ch+1))},insertStrong(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("**"+o+"**"):(this.insertContent("****"),this.setCursor(t.line,t.ch+2))},insertBg(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("=="+o+"=="):(this.insertContent("===="),this.setCursor(t.line,t.ch+1))},insertUnderline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("<u>"+o+"</u>"):(this.insertContent("<u></u>"),this.setCursor(t.line,t.ch+3))},insertOverline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("~~"+o+"~~"):(this.insertContent("~~~~"),this.setCursor(t.line,t.ch+2))},insertTitle(t){const o={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "},n=this.getLastPoint(),i=this.getSelectionText();if(i)this.insertContent(`
|
|
11
|
+
`+o[t]+i+`
|
|
12
12
|
`);else{const l=o[t];this.editor.isClean()?(this.insertContent(l),this.setCursor(0,l.length)):(this.insertContent(`
|
|
13
13
|
`+l),this.setCursor(n.line+1,l.length))}},insertLine(){this.editor.isClean()?this.insertContent(`----
|
|
14
14
|
`):this.insertContent(`
|
|
@@ -34,11 +34,11 @@ row 2 col 1 | row 2 col 2
|
|
|
34
34
|
- [ ] `+o+`
|
|
35
35
|
|
|
36
36
|
`):this.editor.isClean()||t.ch===0?(this.insertContent("- [ ] "),this.setCursor(t.line,6)):(this.insertContent(`
|
|
37
|
-
- [ ] `),this.setCursor(t.line+1,6))},topbarType(t=""){}}},
|
|
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),
|
|
39
|
-
`&&this.currentValue!==""&&
|
|
37
|
+
- [ ] `),this.setCursor(t.line+1,6))},topbarType(t=""){}}},iu={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},su={name:"markdown",mixins:[au],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{...iu,...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(){lu(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)}},ru={name:"cvEditorMarkdown",mixins:[su],data(){return{textareaHeight:this.heightNum,pro:!0,editor:null,lastPos:""}},watch:{currentValue(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{const t=new marked.Marked(Zt({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)},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
|
+
`&&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(`
|
|
42
42
|
`+(parseInt(this.lastInsert,0)+1)+". ")))},listerenDelete(){setTimeout(()=>{this.editor.isClean()||this.editor.getValue().split(`
|
|
43
43
|
`).pop()===""&&(this.lastInsert="")},20)},onEnter(){["- ","1. ","- [ ] ","- [x] "].includes(this.lastInsert)&&this.insertContent(this.lastInsert)},enter(){this.onEnter()},onDelete(){const t=this.currentValue.split(`
|
|
44
|
-
`);t[t.length-1]===""&&(this.lastInsert="")},getScrollData(){const t=this.$refs[this.editorID],o=t.scrollHeight,n=t.scrollTop,a=this.$refs.preview,l=a.offsetHeight,i=a.scrollHeight,s=a.scrollTop||0;return{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:a,contentHeight:l,previewScrollHeight:i,previewScrollTop:s}},markdownScroll(t){if(!this.scrollSide)return;let o=0,n=0;if(t.doc?(o=t.doc.scrollTop,n=t.doc.height):t.target&&(o=t.target.scrollTop,n=t.target.offsetHeight),this.scrollSide==="left"){const{markdownRef:a,markdownScrollHeight:l,markdownScrollTop:i,previewRef:s,contentHeight:r,previewScrollHeight:d,previewScrollTop:c}=this.getScrollData();s.scrollTop=parseInt(o*(d-r)/(n-r),0)}},previewScroll(){if(this.scrollSide&&this.scrollSide==="right"){const{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:a,contentHeight:l,previewScrollHeight:i,previewScrollTop:s}=this.getScrollData(),r=parseInt(s*(this.editorScrollHeight-l)/(i-l),0);this.editor.scrollTo(0,r)}},redo(){this.editor.redo(),setTimeout(()=>{this.editor.refresh()},20)},tabxxx(t){this.insertContent(" ",this),t.preventDefault?t.preventDefault():t.returnValue=!1},insertAfterText2(t){const o=this.$refs.textarea;let n;if(document.selection)o.focus(),n=document.selection.createRange(),n.text=t,o.focus();else if(o.selectionStart||parseInt(o.selectionStart,0)===0){const a=o.selectionStart,l=o.selectionEnd,i=o.scrollTop;o.value=o.value.substring(0,a)+t+o.value.substring(l,o.value.length),o.focus(),o.selectionStart=a+t.length,o.selectionEnd=a+t.length,o.scrollTop=i}else o.value+=t,o.focus();this.$set(this,"currentValue",o.value)}}},ku={class:"cv-editor-toolbars"},bu={key:0,name:"撤销"},Vu=e.createElementVNode("span",{class:"iconfont icon-redo"},null,-1),Su=[Vu],Nu={key:2,name:"粗体"},Bu={key:3,name:"斜体"},Eu={key:4,name:"删除线"},$u={key:5,name:"下划线"},xu={key:6,name:"标题1"},Tu={key:7,name:"标题2"},Du={key:8,name:"标题3"},Lu={key:9,name:"标题4"},Fu={key:10,name:"标题5"},Iu={key:11,name:"标题6"},zu={key:12,name:"分割线"},ju={key:13,name:"引用"},Ou={key:14,name:"无序列表"},Pu={key:15,name:"有序列表"},Au={key:16,name:"代码块"},Uu={key:17,name:"未完成列表"},Ru={key:18,name:"已完成列表"},Mu={key:19,name:"链接"},Hu={key:20,name:"图片"},qu={key:21,name:"本地图片"},Wu={key:22,name:"表格"},Ku={key:23,class:"shift-theme",name:"代码块主题"},Zu={name:"导入文件",class:"import-file"},Gu={name:"保存到本地"},Qu={key:24,name:"全屏编辑"},Ju={key:25,name:"分屏显示"},Yu={key:26,name:"预览"},Xu=e.createElementVNode("span",{class:"iconfont icon-clear"},null,-1),eh=[Xu],th=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),oh=[th],nh=["name"],lh=e.createElementVNode("li",{class:"empty"},null,-1),ih={key:29,name:"全屏"},ah={key:30,name:"退出全屏"},sh=e.createElementVNode("span",{class:"iconfont icon-close"},null,-1),rh=[sh],ch=["innerHTML"],dh=["src"];function uh(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",{ref:"markdown",class:e.normalizeClass(["cv-markdown-wrap markdown-var",`markdown ${t.fullscreen?"fullscreen":""} ${t.bordered?"border":""}`]),style:e.normalizeStyle({width:t.calcWidth})},[e.withDirectives(e.createElementVNode("ul",ku,[e.createElementVNode("li",null,[e.renderSlot(t.$slots,"title")]),t.tools.undo?(e.openBlock(),e.createElementBlock("li",bu,[e.createElementVNode("span",{class:"iconfont icon-undo",onClick:o[0]||(o[0]=s=>l.editor.undo())})])):e.createCommentVNode("",!0),t.tools.redo?(e.openBlock(),e.createElementBlock("li",{key:1,name:"重做",onClick:o[1]||(o[1]=(...s)=>i.redo&&i.redo(...s))},[...Su])):e.createCommentVNode("",!0),t.tools.strong?(e.openBlock(),e.createElementBlock("li",Nu,[e.createElementVNode("span",{onClick:o[2]||(o[2]=(...s)=>t.insertStrong&&t.insertStrong(...s)),class:"iconfont icon-bold"})])):e.createCommentVNode("",!0),t.tools.italic?(e.openBlock(),e.createElementBlock("li",Bu,[e.createElementVNode("span",{onClick:o[3]||(o[3]=(...s)=>t.insertItalic&&t.insertItalic(...s)),class:"iconfont icon-italic"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",Eu,[e.createElementVNode("span",{onClick:o[4]||(o[4]=(...s)=>t.insertOverline&&t.insertOverline(...s)),class:"iconfont icon-overline"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",$u,[e.createElementVNode("span",{onClick:o[5]||(o[5]=(...s)=>t.insertUnderline&&t.insertUnderline(...s)),class:"iconfont icon-under-line"})])):e.createCommentVNode("",!0),t.tools.h1?(e.openBlock(),e.createElementBlock("li",xu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[6]||(o[6]=s=>t.insertTitle(1))},"h1")])):e.createCommentVNode("",!0),t.tools.h2?(e.openBlock(),e.createElementBlock("li",Tu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[7]||(o[7]=s=>t.insertTitle(2))},"h2")])):e.createCommentVNode("",!0),t.tools.h3?(e.openBlock(),e.createElementBlock("li",Du,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[8]||(o[8]=s=>t.insertTitle(3))},"h3")])):e.createCommentVNode("",!0),t.tools.h4?(e.openBlock(),e.createElementBlock("li",Lu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[9]||(o[9]=s=>t.insertTitle(4))},"h4")])):e.createCommentVNode("",!0),t.tools.h5?(e.openBlock(),e.createElementBlock("li",Fu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[10]||(o[10]=s=>t.insertTitle(5))},"h5")])):e.createCommentVNode("",!0),t.tools.h6?(e.openBlock(),e.createElementBlock("li",Iu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[11]||(o[11]=s=>t.insertTitle(6))},"h6")])):e.createCommentVNode("",!0),t.tools.hr?(e.openBlock(),e.createElementBlock("li",zu,[e.createElementVNode("span",{onClick:o[12]||(o[12]=(...s)=>t.insertLine&&t.insertLine(...s)),class:"iconfont icon-horizontal"})])):e.createCommentVNode("",!0),t.tools.quote?(e.openBlock(),e.createElementBlock("li",ju,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[13]||(o[13]=(...s)=>t.insertQuote&&t.insertQuote(...s)),class:"iconfont icon-quote"})])):e.createCommentVNode("",!0),t.tools.ul?(e.openBlock(),e.createElementBlock("li",Ou,[e.createElementVNode("span",{onClick:o[14]||(o[14]=(...s)=>t.insertUl&&t.insertUl(...s)),class:"iconfont icon-ul"})])):e.createCommentVNode("",!0),t.tools.ol?(e.openBlock(),e.createElementBlock("li",Pu,[e.createElementVNode("span",{onClick:o[15]||(o[15]=(...s)=>t.insertOl&&t.insertOl(...s)),class:"iconfont icon-ol"})])):e.createCommentVNode("",!0),t.tools.code?(e.openBlock(),e.createElementBlock("li",Au,[e.createElementVNode("span",{onClick:o[16]||(o[16]=(...s)=>t.insertCode&&t.insertCode(...s)),class:"iconfont icon-code"})])):e.createCommentVNode("",!0),t.tools.notChecked?(e.openBlock(),e.createElementBlock("li",Uu,[e.createElementVNode("span",{onClick:o[17]||(o[17]=(...s)=>t.insertNotFinished&&t.insertNotFinished(...s)),class:"iconfont icon-checked-false"})])):e.createCommentVNode("",!0),t.tools.checked?(e.openBlock(),e.createElementBlock("li",Ru,[e.createElementVNode("span",{onClick:o[18]||(o[18]=(...s)=>t.insertFinished&&t.insertFinished(...s)),class:"iconfont icon-checked"})])):e.createCommentVNode("",!0),t.tools.link?(e.openBlock(),e.createElementBlock("li",Mu,[e.createElementVNode("span",{onClick:o[19]||(o[19]=(...s)=>t.insertLink&&t.insertLink(...s)),class:"iconfont icon-link"})])):e.createCommentVNode("",!0),t.tools.image?(e.openBlock(),e.createElementBlock("li",Hu,[e.createElementVNode("span",{onClick:o[20]||(o[20]=(...s)=>t.insertImage&&t.insertImage(...s)),class:"iconfont icon-img"})])):e.createCommentVNode("",!0),t.tools.uploadImage?(e.openBlock(),e.createElementBlock("li",qu,[e.createElementVNode("span",{onClick:o[21]||(o[21]=(...s)=>t.chooseImage&&t.chooseImage(...s)),class:"iconfont icon-upload-img"})])):e.createCommentVNode("",!0),t.tools.table?(e.openBlock(),e.createElementBlock("li",Wu,[e.createElementVNode("span",{onClick:o[22]||(o[22]=(...s)=>t.insertTable&&t.insertTable(...s)),class:"iconfont icon-table"})])):e.createCommentVNode("",!0),t.tools.theme?(e.openBlock(),e.createElementBlock("li",Ku,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:"iconfont icon-theme",onClick:o[23]||(o[23]=s=>t.themeSlideDown=!t.themeSlideDown)}),e.createElementVNode("ul",{class:e.normalizeClass({active:t.themeSlideDown}),onMouseleave:o[28]||(o[28]=s=>t.themeSlideDown=!1)},[e.createElementVNode("li",{onClick:o[24]||(o[24]=s=>t.setThemes("light"))},"Light"),e.createElementVNode("li",{onClick:o[25]||(o[25]=s=>t.setThemes("dark"))},"VS Code"),e.createElementVNode("li",{onClick:o[26]||(o[26]=s=>t.setThemes("oneDark"))},"Atom OneDark"),e.createElementVNode("li",{onClick:o[27]||(o[27]=s=>t.setThemes("gitHub"))},"GitHub")],34)])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("li",Zu,[e.createElementVNode("span",{class:"iconfont icon-daoru",onClick:o[29]||(o[29]=(...s)=>t.importFile&&t.importFile(...s))}),e.createElementVNode("input",{type:"file",onChange:o[30]||(o[30]=s=>t.importFile(s)),accept:"text/markdown"},null,32)],512),[[e.vShow,t.tools.importmd]]),e.withDirectives(e.createElementVNode("li",Gu,[e.createElementVNode("span",{class:"iconfont icon-download",onClick:o[31]||(o[31]=(...s)=>t.exportFile&&t.exportFile(...s))})],512),[[e.vShow,t.tools.exportmd]]),t.tools.split&&t.split?(e.openBlock(),e.createElementBlock("li",Qu,[e.createElementVNode("span",{onClick:o[32]||(o[32]=s=>t.split=!1),class:"iconfont icon-md"})])):e.createCommentVNode("",!0),t.tools.split&&!t.split?(e.openBlock(),e.createElementBlock("li",Ju,[e.createElementVNode("span",{onClick:o[33]||(o[33]=s=>t.split=!0),class:"iconfont icon-group"})])):e.createCommentVNode("",!0),t.tools.preview?(e.openBlock(),e.createElementBlock("li",Yu,[e.createElementVNode("span",{onClick:o[34]||(o[34]=s=>t.preview=!0),class:"iconfont icon-preview"})])):e.createCommentVNode("",!0),t.tools.clear?(e.openBlock(),e.createElementBlock("li",{key:27,name:"清空",onClick:o[35]||(o[35]=s=>t.value="")},[...eh])):e.createCommentVNode("",!0),t.tools.save?(e.openBlock(),e.createElementBlock("li",{key:28,name:"保存",onClick:o[36]||(o[36]=(...s)=>t.handleSave&&t.handleSave(...s))},[...oh])):e.createCommentVNode("",!0),e.createElementVNode("li",{name:t.scrolling?"同步滚动:开":"同步滚动:关"},[e.withDirectives(e.createElementVNode("span",{onClick:o[37]||(o[37]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-on"},null,512),[[e.vShow,t.scrolling]]),e.withDirectives(e.createElementVNode("span",{onClick:o[38]||(o[38]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-off"},null,512),[[e.vShow,!t.scrolling]])],8,nh),lh,t.tools.fullscreen&&!t.fullscreen?(e.openBlock(),e.createElementBlock("li",ih,[e.createElementVNode("span",{onClick:o[39]||(o[39]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-fullscreen"})])):e.createCommentVNode("",!0),t.tools.fullscreen&&t.fullscreen?(e.openBlock(),e.createElementBlock("li",ah,[e.createElementVNode("span",{onClick:o[40]||(o[40]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-quite"})])):e.createCommentVNode("",!0)],512),[[e.vShow,!t.preview]]),e.withDirectives(e.createElementVNode("div",{class:"close-preview",onClick:o[41]||(o[41]=s=>t.preview=!1)},[...rh],512),[[e.vShow,t.preview&&!t.isPreview]]),e.createElementVNode("div",{class:"markdown-content",style:e.normalizeStyle({background:t.preview?"#fff":""})},[t.editorIsSimple?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"codemirror",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onMouseenter:o[42]||(o[42]=s=>t.mousescrollSide("left"))},null,36)),[[e.vShow,!t.preview]]),t.editorIsSimple?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:"markdown-editor",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onScroll:o[48]||(o[48]=(...s)=>i.markdownScroll&&i.markdownScroll(...s)),onMouseenter:o[49]||(o[49]=s=>t.mousescrollSide("markdown"))},[e.createElementVNode("ul",{class:"index",ref:"index",style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.indexLenth,s=>(e.openBlock(),e.createElementBlock("li",{key:s},e.toDisplayString(s),1))),128))],4),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[43]||(o[43]=s=>t.currentValue=s),ref:"textarea",onKeydown:o[44]||(o[44]=e.withKeys((...s)=>t.tab&&t.tab(...s),["tab"])),onKeyup:[o[45]||(o[45]=e.withKeys((...s)=>i.onEnter&&i.onEnter(...s),["enter"])),o[46]||(o[46]=e.withKeys((...s)=>i.onDelete&&i.onDelete(...s),["delete"]))],onMouseenter:o[47]||(o[47]=s=>t.mousescrollSide("left")),style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},null,36),[[e.vModelText,t.currentValue]])],36)),[[e.vShow,!t.preview]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+t.themeName}`),ref:"preview",style:e.normalizeStyle({height:t.heightPx}),onScroll:o[50]||(o[50]=(...s)=>i.previewScroll&&i.previewScroll(...s)),onMouseenter:o[51]||(o[51]=s=>t.mousescrollSide("right"))},[e.createElementVNode("div",{innerHTML:t.html,ref:"previewInner"},null,8,ch)],38),[[e.vShow,t.preview?t.preview:t.split]])],4),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",t.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[52]||(o[52]=s=>t.previewImgModal=!1)}),e.createElementVNode("img",{src:t.previewImgSrc,class:e.normalizeClass([t.previewImgMode]),alt:""},null,10,dh)],2)],6)}const gt=m(wu,[["render",uh],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown.vue"]]),hh={name:"cvMarkdownShow",props:{value:{type:String,default:""},currRefID:{type:[String],required:!1,default(){return"markdown-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"}},watch:{value(){this.translateMarkdown()}},data(){return{localVal:"",localHtml:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:"",imgs:[]}},created(){this.localVal=this.value||""},async mounted(){await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),await P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/default.min.css"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{setTimeout(()=>{hljs.highlightAll()},30),this.translateMarkdown()})},methods:{translateMarkdown(){setTimeout(()=>{const t=new marked.Marked(Qt({langPrefix:"hljs language-",highlight(n,a){const l=hljs.getLanguage(a)?a:"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.localVal,{sanitize:!1,...this.markedOptions});o=o.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&(o=o.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.localHtml=o,this.addCopyListener(),this.addImageClickListener()},30)},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 a=t[o].parentNode.querySelectorAll("pre")[0].innerText,l=document.createElement("input");l.setAttribute("value",a),document.body.appendChild(l),l.select(),document.execCommand("copy"),document.body.removeChild(l),this.$emit("on-copy",a)}},600)},addImageClickListener(){if(this.imgs.length>0)for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=null;setTimeout(()=>{this.imgs=this.$refs[this.currRefID].querySelectorAll("img");for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=()=>{const n=this.imgs[t].getAttribute("src");this.previewImage(n)}},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}}}},mh=["innerHTML"],ph=["src"];function fh(t,o,n,a,l,i){return e.openBlock(),e.createElementBlock("div",{class:"cv-markdown-preview",ref:n.currRefID},[t.$slots.default?e.renderSlot(t.$slots,"default",{key:0},()=>[e.createTextVNode(e.toDisplayString(l.localHtml),1)],!0):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+n.theme}`),innerHTML:l.localHtml},null,10,mh),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",l.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[0]||(o[0]=s=>l.previewImgModal=!1)}),e.createElementVNode("img",{src:l.previewImgSrc,class:e.normalizeClass([l.previewImgMode]),alt:""},null,10,ph)],2)],512)}const vt=m(hh,[["render",fh],["__scopeId","data-v-3f36c1bf"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown-show.vue"]]),gh={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"},accept:{type:[String],default:"image/jpeg,image/gif,image/png"},upName:{type:[String],default:""},upAction:{type:[String],default:""},upResponseFn:{type:[Function],default:()=>{}},upHeaders:{type:[Object],default:()=>{}},upData:{type:[Object],default:()=>{}}},data(){return{dialogVisible:!1,listObj:{},fileList:[],diyUpList:new FormData}},methods:{checkAllSuccess(){return Object.keys(this.listObj).every(t=>this.listObj[t].hasSuccess)},handleSubmit(){const t=Object.keys(this.listObj).map(o=>this.listObj[o]);if(!this.checkAllSuccess()){this.$message("请等待所有图片上传成功。如果出现网络问题,请刷新页面并重新上传!");return}this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1},handleSuccess(t,o){const n=o.uid,a=Object.keys(this.listObj);for(let l=0,i=a.length;l<i;l++)if(this.listObj[a[l]].uid===n){this.upResponseFn&&typeof this.upResponseFn=="function"?this.listObj[a[l]].url=this.upResponseFn(t):this.listObj[a[l]].url=t.files.file||"",this.listObj[a[l]].hasSuccess=!0;return}},handleRemove(t){const o=t.uid,n=Object.keys(this.listObj);for(let a=0,l=n.length;a<l;a++)if(this.listObj[n[a]].uid===o){delete this.listObj[n[a]];return}},beforeUpload(t){const o=this,n=window.URL||window.webkitURL,a=t.uid;return this.listObj[a]={},new Promise((l,i)=>{const s=new Image;s.src=n.createObjectURL(t),s.onload=function(){o.listObj[a]={hasSuccess:!1,uid:t.uid,width:this.width,height:this.height}},l(!0)})}}},vh={class:"cv-editor-upload-container"};function _h(t,o,n,a,l,i){const s=e.resolveComponent("Upload"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",vh,[e.createVNode(d,{style:e.normalizeStyle({background:n.color,borderColor:n.color,fontSize:"16px"}),type:"primary",onClick:o[0]||(o[0]=p=>l.dialogVisible=!0)},{default:e.withCtx(()=>[e.createVNode(r,{style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s)]),_:1}),e.createTextVNode(" 上传 ")]),_:1},8,["style"]),e.createVNode(u,{visible:l.dialogVisible},{default:e.withCtx(()=>[e.createVNode(c,e.mergeProps({class:"editor-slide-upload"},{action:n.upAction,headers:n.upHeaders,data:n.upData,name:n.upName,multiple:!0,showFileList:!0,listType:"picture-card",autoUpload:!0},{"file-list":l.fileList,"on-remove":i.handleRemove,"on-success":i.handleSuccess,"before-upload":i.beforeUpload}),{default:e.withCtx(()=>[e.createVNode(d,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("点击上传")]),_:1})]),_:1},16,["file-list","on-remove","on-success","before-upload"]),e.createVNode(d,{onClick:o[1]||(o[1]=p=>l.dialogVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",onClick:i.handleSubmit},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])]),_:1},8,["visible"])])}const yh=m(gh,[["render",_h],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/Tinymce/EditorImage.vue"]]),Ch=["advlist","anchor","autolink","autosave","code","codesample","directionality","emoticons","fullscreen","image","insertdatetime","link","lists","media","nonbreaking","pagebreak","preview","save","searchreplace","table","visualblocks","visualchars","wordcount"],wh=["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ","inserttemplate undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"];let I=[];function kh(){return window.tinymce}const bh=(t,o)=>{const n=document.getElementById(t),a=o||function(){};if(!n){const s=document.createElement("script");s.src=t,s.id=t,document.body.appendChild(s),I.push(a),("onload"in s?l:i)(s)}n&&a&&(kh()?a(null,n):I.push(a));function l(s){s.onload=function(){this.onerror=this.onload=null;for(const r of I)r(null,s);I=null},s.onerror=function(){this.onerror=this.onload=null,a(new Error("Failed to load "+t),s)}}function i(s){s.onreadystatechange=function(){if(!(this.readyState!=="complete"&&this.readyState!=="loaded")){this.onreadystatechange=null;for(const r of I)r(null,s);I=null}}}},Vh="https://10ui.cn/tinymce/@6.6.2/tinymce.min.js",Sh={inheritAttrs:!1,name:"cvEditorTinymce",components:{EditorSlideUpload:yh},props:{value:{type:String,default:""},id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},toolbar:{type:Array,required:!1,default(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"100%"},uploadAttr:{type:[Object],default:()=>({})}},data(){return{hasChange:!1,hasInit:!1,quillEditorId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{containerWidth(){const t=this.width;return/^[\d]+(\.[\d]+)?$/.test(t)?`${t}px`:t}},watch:{value(t){!this.hasChange&&this.hasInit&&this.$nextTick(()=>window.tinymce.get(this.quillEditorId).setContent(t||""))}},mounted(){this.initLoad()},activated(){window.tinymce&&this.initTinymce()},deactivated(){this.destroyTinymce()},destroyed(){this.destroyTinymce()},methods:{initLoad(){bh(Vh,t=>{if(t){this.$message.error(t.message);return}this.initTinymce()})},initTinymce(){const t=this;window.tinymce.init({selector:`#${this.quillEditorId}`,language:this.languageTypeList.zh,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:wh,menubar:this.menubar,plugins:Ch,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",editimage_cors_hosts:["www.tinymce.com","codepen.io"],link_default_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:o=>{t.value&&o.setContent(t.value),t.hasInit=!0,o.on("NodeChange Change KeyUp SetContent",()=>{this.hasChange=!0,this.$emit("input",o.getContent())})},setup(o){o.on("FullscreenStateChanged",n=>{t.fullscreen=n.state})},convert_urls:!1,images_upload_handler(o,n,a,l){l(0),new FormData}})},destroyTinymce(){const t=window.tinymce.get(this.quillEditorId);this.fullscreen&&t.execCommand("mceFullScreen"),t&&t.destroy()},setContent(t){window.tinymce.get(this.quillEditorId).setContent(t)},getContent(){window.tinymce.get(this.quillEditorId).getContent()},imageSuccessCBK(t){t.forEach(o=>window.tinymce.get(this.quillEditorId).insertContent(`<img class="wscnph" src="${o.url}" >`))}}},Nh=["id"],Bh={class:"editor-custom-btn-container"};function Eh(t,o,n,a,l,i){const s=e.resolveComponent("EditorSlideUpload");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-tinymce tinymce-container",{fullscreen:l.fullscreen}]),style:e.normalizeStyle({width:i.containerWidth})},[e.createElementVNode("textarea",{id:l.quillEditorId,class:"tinymce-textarea"},null,8,Nh),e.createElementVNode("div",Bh,[e.createVNode(s,e.mergeProps({color:"#1890ff",class:"editor-upload-btn",onSuccessCBK:i.imageSuccessCBK},n.uploadAttr),null,16,["onSuccessCBK"])])],6)}const _t=m(Sh,[["render",Eh],["__scopeId","data-v-c4f0a714"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/tinymce.vue"]]);pt.install=function(t){t.component(pt.name,pt)};ft.install=function(t){t.component(ft.name,ft)};gt.install=function(t){t.component(gt.name,gt)};vt.install=function(t){t.component(vt.name,vt)};_t.install=function(t){t.component(_t.name,_t)};function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function $h(t){return Array.isArray(t)}function L(t,...o){return o.reduce((n,a)=>Object.keys(a).reduce((l,i)=>{const s=a[i];return Ot(s)?l[i]=L(l[i]?l[i]:{},s):$h(s)?l[i]=s.map((r,d)=>{if(Ot(r)){const c=l[i]?l[i]:[];return L(c[d]?c[d]:{},r)}else return r}):l[i]=s,l},n),t)}function Vt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const R=e.ref(!1),St=e.ref({});class xh{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!1,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),St.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const a in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(a)&&!a.startsWith("on")){const l="on"+a.charAt(0).toUpperCase()+a.slice(1);this.bodyFunc[l]=this.bodyFunc[a],delete this.bodyFunc[a]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const i=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(p){St.value.title=p},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Vt({text:"确定",type:"primary",order:0}),cancel:Vt({text:"取消",order:1})};Object.entries(s).forEach(([p,h])=>{if(["ok","cancel"].includes(p)){const f=p==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;h.clickFn=h.clickFn||f}else s[p]=Vt(h)});const d=Object.values(s).filter(p=>!p.isHide);e.createVNode("div",{},d.map(p=>e.createVNode(g.ElButton,{type:p.type,onClick:p.clickFn},p.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDialog,{...St.value,vModel:R.value,modelValue:R.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(p=>{c()}).catch(p=>{}):c()},onClosed2(p){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>i})}};this.vmComponent=n;const a=document.createElement("div");document.body.appendChild(a),this.vmTargetElement=a;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){R.value=!1,e.render(null,this.vmTargetElement)}show(){R.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function Nt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const M=e.ref(!1),Bt=e.ref({});class Th{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!0,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),Bt.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const a in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(a)&&!a.startsWith("on")){const l="on"+a.charAt(0).toUpperCase()+a.slice(1);this.bodyFunc[l]=this.bodyFunc[a],delete this.bodyFunc[a]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const i=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(p){Bt.value.title=p},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Nt({text:"确定",type:"primary",order:0}),cancel:Nt({text:"取消",order:1})};Object.entries(s).forEach(([p,h])=>{if(["ok","cancel"].includes(p)){const f=p==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;h.clickFn=h.clickFn||f}else s[p]=Nt(h)});const d=Object.values(s).filter(p=>!p.isHide);e.createVNode("div",{},d.map(p=>e.createVNode(g.ElButton,{type:p.type,onClick:p.clickFn},p.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDrawer,{...Bt.value,vModel:M.value,modelValue:M.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(p=>{c()}).catch(p=>{}):c()},onClosed2(p){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>i})}};this.vmComponent=n;const a=document.createElement("div");document.body.appendChild(a),this.vmTargetElement=a;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){M.value=!1,e.render(null,this.vmTargetElement)}show(){M.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function Dh(t,o=null,n={},a={},l={}){const i=new xh(t,{component:o,diyOpts:n,props:a,onFunc:l,onOK(){i.getInner(),i.close()},onCancel(){i.close()}});return i}function Lh(t,o="",n={},a={},l=null){const i=new Th(t,{component:o,diyOpts:{...n},props:a,onFunc:l,onOK(){i.getInner(),i.close()},onCancel(){i.close()}});return i}var Xt=[H,q,W,K,Z,G,Q,J,Y,Io,X,ee,te,oe,ne,le,se,re,ie,ae,ce,de,ue,fe,me,pe,ye,ge,ve,_e,ke,be,Ve,Se,Ne,Be,Ee,$e,xe,Te,De,Fe,Ie,ze,je,Re,Me,Le,Ae,Ue,qe,He,We,tt,ot,nt,lt,it,at,Ke,Ze,Ge,Qe,Je,Ye,Xe,et,Oe,Pe,Ce,we,st,rt,ct,dt,ut,ht,mt,pt,ft,gt,_t,vt];const xt=function(t,o={}){Xt.forEach(n=>{t.component(n.name,n)}),t.config.globalProperties.$cvUiParams={...o},t.config.globalProperties.$cvDialogRender=function(){return Dh(t,...arguments)},t.config.globalProperties.$cvCopy=ml,t.config.globalProperties.$cvDrawerRender=function(){return Lh(t,...arguments)},t.config.globalProperties.CDN_URL_UI="https://10ui.cn/"};typeof window<"u"&&window._vueApp_&&xt(window._vueApp_);const Fh={version:"0.3.1",install:xt};exports.components=Xt;exports.default=Fh;exports.install=xt;
|
|
44
|
+
`);t[t.length-1]===""&&(this.lastInsert="")},getScrollData(){const t=this.$refs[this.editorID],o=t.scrollHeight,n=t.scrollTop,i=this.$refs.preview,l=i.offsetHeight,a=i.scrollHeight,s=i.scrollTop||0;return{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:i,contentHeight:l,previewScrollHeight:a,previewScrollTop:s}},markdownScroll(t){if(!this.scrollSide)return;let o=0,n=0;if(t.doc?(o=t.doc.scrollTop,n=t.doc.height):t.target&&(o=t.target.scrollTop,n=t.target.offsetHeight),this.scrollSide==="left"){const{markdownRef:i,markdownScrollHeight:l,markdownScrollTop:a,previewRef:s,contentHeight:r,previewScrollHeight:d,previewScrollTop:c}=this.getScrollData();s.scrollTop=parseInt(o*(d-r)/(n-r),0)}},previewScroll(){if(this.scrollSide&&this.scrollSide==="right"){const{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:i,contentHeight:l,previewScrollHeight:a,previewScrollTop:s}=this.getScrollData(),r=parseInt(s*(this.editorScrollHeight-l)/(a-l),0);this.editor.scrollTo(0,r)}},redo(){this.editor.redo(),setTimeout(()=>{this.editor.refresh()},20)},tabxxx(t){this.insertContent(" ",this),t.preventDefault?t.preventDefault():t.returnValue=!1},insertAfterText2(t){const o=this.$refs.textarea;let n;if(document.selection)o.focus(),n=document.selection.createRange(),n.text=t,o.focus();else if(o.selectionStart||parseInt(o.selectionStart,0)===0){const i=o.selectionStart,l=o.selectionEnd,a=o.scrollTop;o.value=o.value.substring(0,i)+t+o.value.substring(l,o.value.length),o.focus(),o.selectionStart=i+t.length,o.selectionEnd=i+t.length,o.scrollTop=a}else o.value+=t,o.focus();this.$set(this,"currentValue",o.value)}}},cu={class:"cv-editor-toolbars"},du={key:0,name:"撤销"},uu=e.createElementVNode("span",{class:"iconfont icon-redo"},null,-1),hu=[uu],pu={key:2,name:"粗体"},mu={key:3,name:"斜体"},fu={key:4,name:"删除线"},gu={key:5,name:"下划线"},vu={key:6,name:"标题1"},_u={key:7,name:"标题2"},yu={key:8,name:"标题3"},Cu={key:9,name:"标题4"},wu={key:10,name:"标题5"},ku={key:11,name:"标题6"},bu={key:12,name:"分割线"},Vu={key:13,name:"引用"},Su={key:14,name:"无序列表"},Nu={key:15,name:"有序列表"},Bu={key:16,name:"代码块"},Eu={key:17,name:"未完成列表"},xu={key:18,name:"已完成列表"},$u={key:19,name:"链接"},Tu={key:20,name:"图片"},Du={key:21,name:"本地图片"},Lu={key:22,name:"表格"},Iu={key:23,class:"shift-theme",name:"代码块主题"},Fu={name:"导入文件",class:"import-file"},zu={name:"保存到本地"},ju={key:24,name:"全屏编辑"},Ou={key:25,name:"分屏显示"},Pu={key:26,name:"预览"},Au=e.createElementVNode("span",{class:"iconfont icon-clear"},null,-1),Uu=[Au],Ru=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),Mu=[Ru],Hu=["name"],qu=e.createElementVNode("li",{class:"empty"},null,-1),Wu={key:29,name:"全屏"},Ku={key:30,name:"退出全屏"},Gu=e.createElementVNode("span",{class:"iconfont icon-close"},null,-1),Zu=[Gu],Qu=["innerHTML"],Yu=["src"];function Ju(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{ref:"markdown",class:e.normalizeClass(["cv-markdown-wrap markdown-var",`markdown ${t.fullscreen?"fullscreen":""} ${t.bordered?"border":""}`]),style:e.normalizeStyle({width:t.calcWidth})},[e.withDirectives(e.createElementVNode("ul",cu,[e.createElementVNode("li",null,[e.renderSlot(t.$slots,"title")]),t.tools.undo?(e.openBlock(),e.createElementBlock("li",du,[e.createElementVNode("span",{class:"iconfont icon-undo",onClick:o[0]||(o[0]=s=>l.editor.undo())})])):e.createCommentVNode("",!0),t.tools.redo?(e.openBlock(),e.createElementBlock("li",{key:1,name:"重做",onClick:o[1]||(o[1]=(...s)=>a.redo&&a.redo(...s))},[...hu])):e.createCommentVNode("",!0),t.tools.strong?(e.openBlock(),e.createElementBlock("li",pu,[e.createElementVNode("span",{onClick:o[2]||(o[2]=(...s)=>t.insertStrong&&t.insertStrong(...s)),class:"iconfont icon-bold"})])):e.createCommentVNode("",!0),t.tools.italic?(e.openBlock(),e.createElementBlock("li",mu,[e.createElementVNode("span",{onClick:o[3]||(o[3]=(...s)=>t.insertItalic&&t.insertItalic(...s)),class:"iconfont icon-italic"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",fu,[e.createElementVNode("span",{onClick:o[4]||(o[4]=(...s)=>t.insertOverline&&t.insertOverline(...s)),class:"iconfont icon-overline"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",gu,[e.createElementVNode("span",{onClick:o[5]||(o[5]=(...s)=>t.insertUnderline&&t.insertUnderline(...s)),class:"iconfont icon-under-line"})])):e.createCommentVNode("",!0),t.tools.h1?(e.openBlock(),e.createElementBlock("li",vu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[6]||(o[6]=s=>t.insertTitle(1))},"h1")])):e.createCommentVNode("",!0),t.tools.h2?(e.openBlock(),e.createElementBlock("li",_u,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[7]||(o[7]=s=>t.insertTitle(2))},"h2")])):e.createCommentVNode("",!0),t.tools.h3?(e.openBlock(),e.createElementBlock("li",yu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[8]||(o[8]=s=>t.insertTitle(3))},"h3")])):e.createCommentVNode("",!0),t.tools.h4?(e.openBlock(),e.createElementBlock("li",Cu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[9]||(o[9]=s=>t.insertTitle(4))},"h4")])):e.createCommentVNode("",!0),t.tools.h5?(e.openBlock(),e.createElementBlock("li",wu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[10]||(o[10]=s=>t.insertTitle(5))},"h5")])):e.createCommentVNode("",!0),t.tools.h6?(e.openBlock(),e.createElementBlock("li",ku,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[11]||(o[11]=s=>t.insertTitle(6))},"h6")])):e.createCommentVNode("",!0),t.tools.hr?(e.openBlock(),e.createElementBlock("li",bu,[e.createElementVNode("span",{onClick:o[12]||(o[12]=(...s)=>t.insertLine&&t.insertLine(...s)),class:"iconfont icon-horizontal"})])):e.createCommentVNode("",!0),t.tools.quote?(e.openBlock(),e.createElementBlock("li",Vu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[13]||(o[13]=(...s)=>t.insertQuote&&t.insertQuote(...s)),class:"iconfont icon-quote"})])):e.createCommentVNode("",!0),t.tools.ul?(e.openBlock(),e.createElementBlock("li",Su,[e.createElementVNode("span",{onClick:o[14]||(o[14]=(...s)=>t.insertUl&&t.insertUl(...s)),class:"iconfont icon-ul"})])):e.createCommentVNode("",!0),t.tools.ol?(e.openBlock(),e.createElementBlock("li",Nu,[e.createElementVNode("span",{onClick:o[15]||(o[15]=(...s)=>t.insertOl&&t.insertOl(...s)),class:"iconfont icon-ol"})])):e.createCommentVNode("",!0),t.tools.code?(e.openBlock(),e.createElementBlock("li",Bu,[e.createElementVNode("span",{onClick:o[16]||(o[16]=(...s)=>t.insertCode&&t.insertCode(...s)),class:"iconfont icon-code"})])):e.createCommentVNode("",!0),t.tools.notChecked?(e.openBlock(),e.createElementBlock("li",Eu,[e.createElementVNode("span",{onClick:o[17]||(o[17]=(...s)=>t.insertNotFinished&&t.insertNotFinished(...s)),class:"iconfont icon-checked-false"})])):e.createCommentVNode("",!0),t.tools.checked?(e.openBlock(),e.createElementBlock("li",xu,[e.createElementVNode("span",{onClick:o[18]||(o[18]=(...s)=>t.insertFinished&&t.insertFinished(...s)),class:"iconfont icon-checked"})])):e.createCommentVNode("",!0),t.tools.link?(e.openBlock(),e.createElementBlock("li",$u,[e.createElementVNode("span",{onClick:o[19]||(o[19]=(...s)=>t.insertLink&&t.insertLink(...s)),class:"iconfont icon-link"})])):e.createCommentVNode("",!0),t.tools.image?(e.openBlock(),e.createElementBlock("li",Tu,[e.createElementVNode("span",{onClick:o[20]||(o[20]=(...s)=>t.insertImage&&t.insertImage(...s)),class:"iconfont icon-img"})])):e.createCommentVNode("",!0),t.tools.uploadImage?(e.openBlock(),e.createElementBlock("li",Du,[e.createElementVNode("span",{onClick:o[21]||(o[21]=(...s)=>t.chooseImage&&t.chooseImage(...s)),class:"iconfont icon-upload-img"})])):e.createCommentVNode("",!0),t.tools.table?(e.openBlock(),e.createElementBlock("li",Lu,[e.createElementVNode("span",{onClick:o[22]||(o[22]=(...s)=>t.insertTable&&t.insertTable(...s)),class:"iconfont icon-table"})])):e.createCommentVNode("",!0),t.tools.theme?(e.openBlock(),e.createElementBlock("li",Iu,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:"iconfont icon-theme",onClick:o[23]||(o[23]=s=>t.themeSlideDown=!t.themeSlideDown)}),e.createElementVNode("ul",{class:e.normalizeClass({active:t.themeSlideDown}),onMouseleave:o[28]||(o[28]=s=>t.themeSlideDown=!1)},[e.createElementVNode("li",{onClick:o[24]||(o[24]=s=>t.setThemes("light"))},"Light"),e.createElementVNode("li",{onClick:o[25]||(o[25]=s=>t.setThemes("dark"))},"VS Code"),e.createElementVNode("li",{onClick:o[26]||(o[26]=s=>t.setThemes("oneDark"))},"Atom OneDark"),e.createElementVNode("li",{onClick:o[27]||(o[27]=s=>t.setThemes("gitHub"))},"GitHub")],34)])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("li",Fu,[e.createElementVNode("span",{class:"iconfont icon-daoru",onClick:o[29]||(o[29]=(...s)=>t.importFile&&t.importFile(...s))}),e.createElementVNode("input",{type:"file",onChange:o[30]||(o[30]=s=>t.importFile(s)),accept:"text/markdown"},null,32)],512),[[e.vShow,t.tools.importmd]]),e.withDirectives(e.createElementVNode("li",zu,[e.createElementVNode("span",{class:"iconfont icon-download",onClick:o[31]||(o[31]=(...s)=>t.exportFile&&t.exportFile(...s))})],512),[[e.vShow,t.tools.exportmd]]),t.tools.split&&t.split?(e.openBlock(),e.createElementBlock("li",ju,[e.createElementVNode("span",{onClick:o[32]||(o[32]=s=>t.split=!1),class:"iconfont icon-md"})])):e.createCommentVNode("",!0),t.tools.split&&!t.split?(e.openBlock(),e.createElementBlock("li",Ou,[e.createElementVNode("span",{onClick:o[33]||(o[33]=s=>t.split=!0),class:"iconfont icon-group"})])):e.createCommentVNode("",!0),t.tools.preview?(e.openBlock(),e.createElementBlock("li",Pu,[e.createElementVNode("span",{onClick:o[34]||(o[34]=s=>t.preview=!0),class:"iconfont icon-preview"})])):e.createCommentVNode("",!0),t.tools.clear?(e.openBlock(),e.createElementBlock("li",{key:27,name:"清空",onClick:o[35]||(o[35]=s=>t.value="")},[...Uu])):e.createCommentVNode("",!0),t.tools.save?(e.openBlock(),e.createElementBlock("li",{key:28,name:"保存",onClick:o[36]||(o[36]=(...s)=>t.handleSave&&t.handleSave(...s))},[...Mu])):e.createCommentVNode("",!0),e.createElementVNode("li",{name:t.scrolling?"同步滚动:开":"同步滚动:关"},[e.withDirectives(e.createElementVNode("span",{onClick:o[37]||(o[37]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-on"},null,512),[[e.vShow,t.scrolling]]),e.withDirectives(e.createElementVNode("span",{onClick:o[38]||(o[38]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-off"},null,512),[[e.vShow,!t.scrolling]])],8,Hu),qu,t.tools.fullscreen&&!t.fullscreen?(e.openBlock(),e.createElementBlock("li",Wu,[e.createElementVNode("span",{onClick:o[39]||(o[39]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-fullscreen"})])):e.createCommentVNode("",!0),t.tools.fullscreen&&t.fullscreen?(e.openBlock(),e.createElementBlock("li",Ku,[e.createElementVNode("span",{onClick:o[40]||(o[40]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-quite"})])):e.createCommentVNode("",!0)],512),[[e.vShow,!t.preview]]),e.withDirectives(e.createElementVNode("div",{class:"close-preview",onClick:o[41]||(o[41]=s=>t.preview=!1)},[...Zu],512),[[e.vShow,t.preview&&!t.isPreview]]),e.createElementVNode("div",{class:"markdown-content",style:e.normalizeStyle({background:t.preview?"#fff":""})},[t.editorIsSimple?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"codemirror",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onMouseenter:o[42]||(o[42]=s=>t.mousescrollSide("left"))},null,36)),[[e.vShow,!t.preview]]),t.editorIsSimple?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:"markdown-editor",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onScroll:o[48]||(o[48]=(...s)=>a.markdownScroll&&a.markdownScroll(...s)),onMouseenter:o[49]||(o[49]=s=>t.mousescrollSide("markdown"))},[e.createElementVNode("ul",{class:"index",ref:"index",style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.indexLenth,s=>(e.openBlock(),e.createElementBlock("li",{key:s},e.toDisplayString(s),1))),128))],4),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[43]||(o[43]=s=>t.currentValue=s),ref:"textarea",onKeydown:o[44]||(o[44]=e.withKeys((...s)=>t.tab&&t.tab(...s),["tab"])),onKeyup:[o[45]||(o[45]=e.withKeys((...s)=>a.onEnter&&a.onEnter(...s),["enter"])),o[46]||(o[46]=e.withKeys((...s)=>a.onDelete&&a.onDelete(...s),["delete"]))],onMouseenter:o[47]||(o[47]=s=>t.mousescrollSide("left")),style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},null,36),[[e.vModelText,t.currentValue]])],36)),[[e.vShow,!t.preview]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+t.themeName}`),ref:"preview",style:e.normalizeStyle({height:t.heightPx}),onScroll:o[50]||(o[50]=(...s)=>a.previewScroll&&a.previewScroll(...s)),onMouseenter:o[51]||(o[51]=s=>t.mousescrollSide("right"))},[e.createElementVNode("div",{innerHTML:t.html,ref:"previewInner"},null,8,Qu)],38),[[e.vShow,t.preview?t.preview:t.split]])],4),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",t.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[52]||(o[52]=s=>t.previewImgModal=!1)}),e.createElementVNode("img",{src:t.previewImgSrc,class:e.normalizeClass([t.previewImgMode]),alt:""},null,10,Yu)],2)],6)}const gt=p(ru,[["render",Ju],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown.vue"]]),Xu={name:"cvMarkdownShow",props:{value:{type:String,default:""},currRefID:{type:[String],required:!1,default(){return"markdown-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"}},watch:{value(){this.translateMarkdown()}},data(){return{localVal:"",localHtml:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:"",imgs:[]}},created(){this.localVal=this.value||""},async mounted(){await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),await P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/default.min.css"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{setTimeout(()=>{hljs.highlightAll()},30),this.translateMarkdown()})},methods:{translateMarkdown(){setTimeout(()=>{const t=new marked.Marked(Zt({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.localVal,{sanitize:!1,...this.markedOptions});o=o.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&(o=o.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.localHtml=o,this.addCopyListener(),this.addImageClickListener()},30)},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)},addImageClickListener(){if(this.imgs.length>0)for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=null;setTimeout(()=>{this.imgs=this.$refs[this.currRefID].querySelectorAll("img");for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=()=>{const n=this.imgs[t].getAttribute("src");this.previewImage(n)}},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}}}},eh=["innerHTML"],th=["src"];function oh(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:"cv-markdown-preview",ref:n.currRefID},[t.$slots.default?e.renderSlot(t.$slots,"default",{key:0},()=>[e.createTextVNode(e.toDisplayString(l.localHtml),1)],!0):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+n.theme}`),innerHTML:l.localHtml},null,10,eh),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",l.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[0]||(o[0]=s=>l.previewImgModal=!1)}),e.createElementVNode("img",{src:l.previewImgSrc,class:e.normalizeClass([l.previewImgMode]),alt:""},null,10,th)],2)],512)}const vt=p(Xu,[["render",oh],["__scopeId","data-v-3f36c1bf"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown-show.vue"]]),nh={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"},accept:{type:[String],default:"image/jpeg,image/gif,image/png"},upName:{type:[String],default:""},upAction:{type:[String],default:""},upResponseFn:{type:[Function],default:()=>{}},upHeaders:{type:[Object],default:()=>{}},upData:{type:[Object],default:()=>{}}},data(){return{dialogVisible:!1,listObj:{},fileList:[],diyUpList:new FormData}},methods:{checkAllSuccess(){return Object.keys(this.listObj).every(t=>this.listObj[t].hasSuccess)},handleSubmit(){const t=Object.keys(this.listObj).map(o=>this.listObj[o]);if(!this.checkAllSuccess()){this.$message("请等待所有图片上传成功。如果出现网络问题,请刷新页面并重新上传!");return}this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1},handleSuccess(t,o){const n=o.uid,i=Object.keys(this.listObj);for(let l=0,a=i.length;l<a;l++)if(this.listObj[i[l]].uid===n){this.upResponseFn&&typeof this.upResponseFn=="function"?this.listObj[i[l]].url=this.upResponseFn(t):this.listObj[i[l]].url=t.files.file||"",this.listObj[i[l]].hasSuccess=!0;return}},handleRemove(t){const o=t.uid,n=Object.keys(this.listObj);for(let i=0,l=n.length;i<l;i++)if(this.listObj[n[i]].uid===o){delete this.listObj[n[i]];return}},beforeUpload(t){const o=this,n=window.URL||window.webkitURL,i=t.uid;return this.listObj[i]={},new Promise((l,a)=>{const s=new Image;s.src=n.createObjectURL(t),s.onload=function(){o.listObj[i]={hasSuccess:!1,uid:t.uid,width:this.width,height:this.height}},l(!0)})}}},lh={class:"cv-editor-upload-container"};function ah(t,o,n,i,l,a){const s=e.resolveComponent("Upload"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",lh,[e.createVNode(d,{style:e.normalizeStyle({background:n.color,borderColor:n.color,fontSize:"16px"}),type:"primary",onClick:o[0]||(o[0]=h=>l.dialogVisible=!0)},{default:e.withCtx(()=>[e.createVNode(r,{style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s)]),_:1}),e.createTextVNode(" 上传 ")]),_:1},8,["style"]),e.createVNode(u,{visible:l.dialogVisible},{default:e.withCtx(()=>[e.createVNode(c,e.mergeProps({class:"editor-slide-upload"},{action:n.upAction,headers:n.upHeaders,data:n.upData,name:n.upName,multiple:!0,showFileList:!0,listType:"picture-card",autoUpload:!0},{"file-list":l.fileList,"on-remove":a.handleRemove,"on-success":a.handleSuccess,"before-upload":a.beforeUpload}),{default:e.withCtx(()=>[e.createVNode(d,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("点击上传")]),_:1})]),_:1},16,["file-list","on-remove","on-success","before-upload"]),e.createVNode(d,{onClick:o[1]||(o[1]=h=>l.dialogVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",onClick:a.handleSubmit},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])]),_:1},8,["visible"])])}const ih=p(nh,[["render",ah],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/Tinymce/EditorImage.vue"]]),sh=["advlist","anchor","autolink","autosave","code","codesample","directionality","emoticons","fullscreen","image","insertdatetime","link","lists","media","nonbreaking","pagebreak","preview","save","searchreplace","table","visualblocks","visualchars","wordcount"],rh=["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ","inserttemplate undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"];let F=[];function ch(){return window.tinymce}const dh=(t,o)=>{const n=document.getElementById(t),i=o||function(){};if(!n){const s=document.createElement("script");s.src=t,s.id=t,document.body.appendChild(s),F.push(i),("onload"in s?l:a)(s)}n&&i&&(ch()?i(null,n):F.push(i));function l(s){s.onload=function(){this.onerror=this.onload=null;for(const r of F)r(null,s);F=null},s.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+t),s)}}function a(s){s.onreadystatechange=function(){if(!(this.readyState!=="complete"&&this.readyState!=="loaded")){this.onreadystatechange=null;for(const r of F)r(null,s);F=null}}}},uh="https://10ui.cn/tinymce/@6.6.2/tinymce.min.js",hh={inheritAttrs:!1,name:"cvEditorTinymce",components:{EditorSlideUpload:ih},props:{value:{type:String,default:""},id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},toolbar:{type:Array,required:!1,default(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"100%"},uploadAttr:{type:[Object],default:()=>({})}},data(){return{hasChange:!1,hasInit:!1,quillEditorId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{containerWidth(){const t=this.width;return/^[\d]+(\.[\d]+)?$/.test(t)?`${t}px`:t}},watch:{value(t){!this.hasChange&&this.hasInit&&this.$nextTick(()=>window.tinymce.get(this.quillEditorId).setContent(t||""))}},mounted(){this.initLoad()},activated(){window.tinymce&&this.initTinymce()},deactivated(){this.destroyTinymce()},destroyed(){this.destroyTinymce()},methods:{initLoad(){dh(uh,t=>{if(t){this.$message.error(t.message);return}this.initTinymce()})},initTinymce(){const t=this;window.tinymce.init({selector:`#${this.quillEditorId}`,language:this.languageTypeList.zh,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:rh,menubar:this.menubar,plugins:sh,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",editimage_cors_hosts:["www.tinymce.com","codepen.io"],link_default_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:o=>{t.value&&o.setContent(t.value),t.hasInit=!0,o.on("NodeChange Change KeyUp SetContent",()=>{this.hasChange=!0,this.$emit("input",o.getContent())})},setup(o){o.on("FullscreenStateChanged",n=>{t.fullscreen=n.state})},convert_urls:!1,images_upload_handler(o,n,i,l){l(0),new FormData}})},destroyTinymce(){const t=window.tinymce.get(this.quillEditorId);this.fullscreen&&t.execCommand("mceFullScreen"),t&&t.destroy()},setContent(t){window.tinymce.get(this.quillEditorId).setContent(t)},getContent(){window.tinymce.get(this.quillEditorId).getContent()},imageSuccessCBK(t){t.forEach(o=>window.tinymce.get(this.quillEditorId).insertContent(`<img class="wscnph" src="${o.url}" >`))}}},ph=["id"],mh={class:"editor-custom-btn-container"};function fh(t,o,n,i,l,a){const s=e.resolveComponent("EditorSlideUpload");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-tinymce tinymce-container",{fullscreen:l.fullscreen}]),style:e.normalizeStyle({width:a.containerWidth})},[e.createElementVNode("textarea",{id:l.quillEditorId,class:"tinymce-textarea"},null,8,ph),e.createElementVNode("div",mh,[e.createVNode(s,e.mergeProps({color:"#1890ff",class:"editor-upload-btn",onSuccessCBK:a.imageSuccessCBK},n.uploadAttr),null,16,["onSuccessCBK"])])],6)}const _t=p(hh,[["render",fh],["__scopeId","data-v-c4f0a714"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/tinymce.vue"]]);mt.install=function(t){t.component(mt.name,mt)};ft.install=function(t){t.component(ft.name,ft)};gt.install=function(t){t.component(gt.name,gt)};vt.install=function(t){t.component(vt.name,vt)};_t.install=function(t){t.component(_t.name,_t)};function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function gh(t){return Array.isArray(t)}function L(t,...o){return o.reduce((n,i)=>Object.keys(i).reduce((l,a)=>{const s=i[a];return Ot(s)?l[a]=L(l[a]?l[a]:{},s):gh(s)?l[a]=s.map((r,d)=>{if(Ot(r)){const c=l[a]?l[a]:[];return L(c[d]?c[d]:{},r)}else return r}):l[a]=s,l},n),t)}function Vt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const R=e.ref(!1),St=e.ref({});class vh{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!1,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),St.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const i in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(i)&&!i.startsWith("on")){const l="on"+i.charAt(0).toUpperCase()+i.slice(1);this.bodyFunc[l]=this.bodyFunc[i],delete this.bodyFunc[i]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const a=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(h){St.value.title=h},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Vt({text:"确定",type:"primary",order:0}),cancel:Vt({text:"取消",order:1})};Object.entries(s).forEach(([h,m])=>{if(["ok","cancel"].includes(h)){const f=h==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;m.clickFn=m.clickFn||f}else s[h]=Vt(m)});const d=Object.values(s).filter(h=>!h.isHide);e.createVNode("div",{},d.map(h=>e.createVNode(g.ElButton,{type:h.type,onClick:h.clickFn},h.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDialog,{...St.value,vModel:R.value,modelValue:R.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(h=>{c()}).catch(h=>{}):c()},onClosed2(h){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>a})}};this.vmComponent=n;const i=document.createElement("div");document.body.appendChild(i),this.vmTargetElement=i;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){R.value=!1,e.render(null,this.vmTargetElement)}show(){R.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function Nt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const M=e.ref(!1),Bt=e.ref({});class _h{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!0,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),Bt.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const i in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(i)&&!i.startsWith("on")){const l="on"+i.charAt(0).toUpperCase()+i.slice(1);this.bodyFunc[l]=this.bodyFunc[i],delete this.bodyFunc[i]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const a=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(h){Bt.value.title=h},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Nt({text:"确定",type:"primary",order:0}),cancel:Nt({text:"取消",order:1})};Object.entries(s).forEach(([h,m])=>{if(["ok","cancel"].includes(h)){const f=h==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;m.clickFn=m.clickFn||f}else s[h]=Nt(m)});const d=Object.values(s).filter(h=>!h.isHide);e.createVNode("div",{},d.map(h=>e.createVNode(g.ElButton,{type:h.type,onClick:h.clickFn},h.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDrawer,{...Bt.value,vModel:M.value,modelValue:M.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(h=>{c()}).catch(h=>{}):c()},onClosed2(h){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>a})}};this.vmComponent=n;const i=document.createElement("div");document.body.appendChild(i),this.vmTargetElement=i;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){M.value=!1,e.render(null,this.vmTargetElement)}show(){M.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function yh(t,o=null,n={},i={},l={}){const a=new vh(t,{component:o,diyOpts:n,props:i,onFunc:l,onOK(){a.getInner(),a.close()},onCancel(){a.close()}});return a}function Ch(t,o="",n={},i={},l=null){const a=new _h(t,{component:o,diyOpts:{...n},props:i,onFunc:l,onOK(){a.getInner(),a.close()},onCancel(){a.close()}});return a}var Jt=[H,q,W,K,G,Z,Q,Y,J,Fo,X,ee,te,oe,ne,le,se,re,ae,ie,ce,de,ue,fe,pe,me,ye,ge,ve,_e,ke,be,Ve,Se,Ne,Be,Ee,xe,$e,Te,De,Le,Fe,ze,je,Oe,Me,He,Ie,Ue,Re,We,qe,Ke,ot,nt,lt,at,it,st,Ge,Ze,Qe,Ye,Je,Xe,et,tt,Pe,Ae,Ce,we,rt,ct,dt,ut,ht,pt,mt,ft,gt,_t,vt];const $t=function(t,o={}){Jt.forEach(n=>{t.component(n.name,n)}),t.config.globalProperties.$cvUiParams={...o},t.config.globalProperties.$cvDialogRender=function(){return yh(t,...arguments)},t.config.globalProperties.$cvCopy=ul,t.config.globalProperties.$cvDrawerRender=function(){return Ch(t,...arguments)},t.config.globalProperties.CDN_URL_UI="https://10ui.cn/"};typeof window<"u"&&window._vueApp_&&$t(window._vueApp_);const wh={version:"0.3.1",install:$t};exports.components=Jt;exports.default=wh;exports.install=$t;
|