import{H as i,J as o,K as c,L as l,bg as n,M as e,O as u,o as t,c as r,w as a,P as s,k as f,e as d,t as p,m,v as h,j as g,i as b}from"./index-IX2tYR8R.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};const k=y({name:"u-icon",data:()=>({}),emits:["click"],mixins:[c,l,i({props:{name:{type:String,default:()=>o.icon.name},color:{type:String,default:()=>o.icon.color},size:{type:[String,Number],default:()=>o.icon.size},bold:{type:Boolean,default:()=>o.icon.bold},index:{type:[String,Number],default:()=>o.icon.index},hoverClass:{type:String,default:()=>o.icon.hoverClass},customPrefix:{type:String,default:()=>o.icon.customPrefix},label:{type:[String,Number],default:()=>o.icon.label},labelPos:{type:String,default:()=>o.icon.labelPos},labelSize:{type:[String,Number],default:()=>o.icon.labelSize},labelColor:{type:String,default:()=>o.icon.labelColor},space:{type:[String,Number],default:()=>o.icon.space},imgMode:{type:String,default:()=>o.icon.imgMode},width:{type:[String,Number],default:()=>o.icon.width},height:{type:[String,Number],default:()=>o.icon.height},top:{type:[String,Number],default:()=>o.icon.top},stop:{type:Boolean,default:()=>o.icon.stop}}})],computed:{uClasses(){let i=[];return i.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?i.push("u-iconfont"):i.push(this.customPrefix),this.color&&n.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle(){let i={};return i={fontSize:e(this.size),lineHeight:e(this.size),fontWeight:this.bold?"bold":"normal",top:e(this.top)},this.color&&!n.type.includes(this.color)&&(i.color=this.color),i},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let i={};return i.width=this.width?e(this.width):e(this.size),i.height=this.height?e(this.height):e(this.size),i},icon(){return"uicon"!==this.customPrefix?"":w["uicon-"+this.name]||this.name}},methods:{addStyle:u,addUnit:e,clickHandler(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}},[["render",function(i,o,c,l,n,e){const u=h,y=g,w=b;return t(),r(w,{class:f(["u-icon",["u-icon--"+i.labelPos]]),onClick:e.clickHandler},{default:a((()=>[e.isImg?(t(),r(u,{key:0,class:"u-icon__img",src:i.name,mode:i.imgMode,style:s([e.imgStyle,e.addStyle(i.customStyle)])},null,8,["src","mode","style"])):(t(),r(y,{key:1,class:f(["u-icon__icon",e.uClasses]),style:s([e.iconStyle,e.addStyle(i.customStyle)]),"hover-class":i.hoverClass},{default:a((()=>[d(p(e.icon),1)])),_:1},8,["class","style","hover-class"])),""!==i.label?(t(),r(y,{key:2,class:"u-icon__label",style:s({color:i.labelColor,fontSize:e.addUnit(i.labelSize),marginLeft:"right"==i.labelPos?e.addUnit(i.space):0,marginTop:"bottom"==i.labelPos?e.addUnit(i.space):0,marginRight:"left"==i.labelPos?e.addUnit(i.space):0,marginBottom:"top"==i.labelPos?e.addUnit(i.space):0})},{default:a((()=>[d(p(i.label),1)])),_:1},8,["style"])):m("",!0)])),_:1},8,["onClick","class"])}],["__scopeId","data-v-aac41742"]]);export{k as _};