"use strict";const o=require("../../common/vendor.js");require("../../common/libraries/request.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const n=require("../../common/libraries/getPageConfig.js");if(require("../../gen/Apis.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),!Array){(o.resolveComponent("uni-icons")+o.resolveComponent("up-loading-icon"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"))();const i=o.defineComponent({__name:"hs-button",props:["type","label","icon","size","openType","iconColor","buttonStyle","disabled","loading","loading_label"],emits:["click","onGetPhoneNumber"],setup(i,{emit:l}){const u=i,t=e.useWeAppAuthStore(),r=()=>{l("click")},s=o=>{var e;"getPhoneNumber:ok"===(null==(e=null==o?void 0:o.detail)?void 0:e.errMsg)&&l("onGetPhoneNumber",o)},d=()=>{var o,e,i,l;let r=null==(i=null==(e=null==(o=null==t?void 0:t.data)?void 0:o.config)?void 0:e.companyConfig)?void 0:i.config_value;return null==(l=null==r?void 0:r.color)||l.metaColor,{...u.buttonStyle,...n.getStyleBgInfo(),color:"#fff"}};return(e,n)=>o.e({a:null==u?void 0:u.icon},(null==u?void 0:u.icon)?{b:o.p({type:null==u?void 0:u.icon,size:"16",color:(null==u?void 0:u.iconColor)||"#0082fa"})}:{},{c:null==u?void 0:u.loading},(null==u?void 0:u.loading)?{d:o.p({mode:"circle",size:"15"})}:{},{e:o.t((null==u?void 0:u.loading_label)||(null==u?void 0:u.label)||"我是按钮"),f:o.n((null==u?void 0:u.loading)||(null==u?void 0:u.icon)?"btn_text":""),g:o.s(d()),h:(null==u?void 0:u.openType)||"",i:o.n(`nchl_button ${null==u?void 0:u.type}_button ${(null==u?void 0:u.size)||"sm"}_size`),j:o.o(r),k:null==u?void 0:u.disabled,l:o.o(s)})}}),l=o._export_sfc(i,[["__scopeId","data-v-d401d373"]]);wx.createComponent(l);
