"use strict";const e=require("../../../../common/vendor.js"),n=require("./props.js"),t=require("./value.js"),i=require("../../libs/mixin/mpMixin.js"),o=require("../../libs/mixin/mixin.js"),s=require("../../libs/mixin/button.js"),l=require("../../libs/mixin/openType.js"),r=require("../../libs/function/index.js"),a={name:"u--text",mixins:[i.mpMixin,o.mixin,t.value,s.button,l.openType,n.props],emits:["click"],computed:{valueStyle(){const e={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:r.addUnit(this.size)};return!this.type&&(e.color=this.color),this.isNvue&&this.lines&&(e.lines=this.lines),this.lineHeight&&(e.lineHeight=r.addUnit(this.lineHeight)),!this.isNvue&&this.block&&(e.display="block"),r.deepMerge(e,r.addStyle(this.customStyle))},isNvue:()=>!1,isMp(){let e=!1;return e=!0,true}},data:()=>({}),methods:{addStyle:r.addStyle,clickHandler(){this.call&&"phone"===this.mode&&e.index.makePhoneCall({phoneNumber:this.text}),this.$emit("click")}}};if(!Array){(e.resolveComponent("u-icon")+e.resolveComponent("u-link"))()}Math||((()=>"../u-icon/u-icon.js")+(()=>"../u-link/u-link.js"))();const u=e._export_sfc(a,[["render",function(n,t,i,o,s,l){return e.e({a:n.show},n.show?e.e({b:"price"===n.mode},"price"===n.mode?{c:e.n(n.type&&`u-text__value--${n.type}`),d:e.s(l.valueStyle)}:{},{e:n.prefixIcon},n.prefixIcon?{f:e.p({name:n.prefixIcon,customStyle:l.addStyle(n.iconStyle)})}:{},{g:"link"===n.mode},"link"===n.mode?{h:l.valueStyle.fontWeight,i:l.valueStyle.wordWrap,j:l.valueStyle.fontSize,k:e.n(n.type&&`u-text__value--${n.type}`),l:e.n(n.lines&&`u-line-${n.lines}`),m:e.p({text:n.value,href:n.href,underLine:!0})}:n.openType&&l.isMp?{o:e.t(n.value),p:e.s(l.valueStyle),q:n.index,r:n.openType,s:e.o(((...e)=>n.onGetUserInfo&&n.onGetUserInfo(...e))),t:e.o(((...e)=>n.onContact&&n.onContact(...e))),v:e.o(((...e)=>n.onGetPhoneNumber&&n.onGetPhoneNumber(...e))),w:e.o(((...e)=>n.onError&&n.onError(...e))),x:e.o(((...e)=>n.onLaunchApp&&n.onLaunchApp(...e))),y:e.o(((...e)=>n.onOpenSetting&&n.onOpenSetting(...e))),z:n.lang,A:n.sessionFrom,B:n.sendMessageTitle,C:n.sendMessagePath,D:n.sendMessageImg,E:n.showMessageCard,F:n.appParameter}:{G:e.t(n.value),H:e.s(l.valueStyle),I:e.n(n.type&&`u-text__value--${n.type}`),J:e.n(n.lines&&`u-line-${n.lines}`)},{n:n.openType&&l.isMp,K:n.suffixIcon},n.suffixIcon?{L:e.p({name:n.suffixIcon,customStyle:l.addStyle(n.iconStyle)})}:{},{M:n.margin,N:"left"===n.align?"flex-start":"center"===n.align?"center":"flex-end",O:e.o(((...e)=>l.clickHandler&&l.clickHandler(...e)))}):{})}],["__scopeId","data-v-50bdf3dd"]]);wx.createComponent(u);
