1import{a as D}from"./bEDrJhtx.js";import{z as m,k as v,M as r,$ as l,G as g,X as w,R as a,P as y,S as n,u as o,W as b,N as C,O as p,L as t,c as B}from"./WGO_YIes.js";const S=["type","disabled","title"],A={class:"flex flex-col text-center"},E={key:1},R={key:0,class:"w-4.5 h-4.5"},$={class:"flex flex-col text-center"},L={key:1},T=m({__name:"Btn",props:{text:{type:String,default:"æé"},btnType:{type:String,default:"button"},btnStyle:{type:String,default:""},btnClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{type:String,default:""},title:{type:String,default:""}},setup(e){const h=e,{btnStyle:i}=v(h),f=B(()=>{switch(i.value){case"plain":return"bg-#EEE border border-1px border-solid border-[#BDBDBD] color-black p-[10px_28px] rounded-5px hover:bg-#7B582E hover:color-white";default:return"bg-#292929 border border-1px border-solid border-[#292929] color-white p-[10px_28px] rounded-60px hover:bg-#7B582E hover:border-#7B582E"}}),d=B(()=>h.to.indexOf("http")>-1);return(x,s)=>{const k=D;return e.to?(t(),C(k,{key:1,type:e.btnType,to:e.to,disabled:e.disabled,target:o(d)?"_blank":"_self",external:o(d),title:`${o(d)?`${e.title?e.title:e.text}ï¼å¦éæ°è¦çªï¼`:`${e.text}`}`,class:n([o(f),e.showRightArrow?"grid grid-cols-[auto_1fr_auto]":"w-fit flex justify-center","items-center gap-20px group text-1em no-underline underline-offset-0 duration-150 focus-visible:block-focus disabled:bg-#DCDCDC disabled:color-#BDBDBD disabled:border-#BDBDBD",e.btnClass])},{default:p(()=>[e.showRightArrow?(t(),r("div",R)):b("",!0),l("div",$,[Array.isArray(e.text)?(t(!0),r(g,{key:0},w(e.text,(u,c)=>(t(),r("span",{key:c},a(u),1))),128)):(t(),r("span",L,a(e.text),1)),y(x.$slots,"default")]),e.showArrow?(t(),r("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",width:"19",height:"9",viewBox:"0 0 19 9",class:n([o(i)?"stroke-[#292929] group-hover:stroke-white":"stroke-white","group-disabled:stroke-#BDBDBD w-4.5 h-4.5 shrink-0"]),fill:"none"},[...s[1]||(s[1]=[l("path",{d:"M11.6 1.25L18.0031 6.87434C18.3496 7.17871 18.1343 7.75 17.6731 7.75H1","stroke-linecap":"round"},null,-1)])],2)):b("",!0)]),_:3},8,["type","to","disabled","target","external","title","class"])):(t(),r("button",{key:0,type:e.btnType,disabled:e.disabled,title:e.text,class:n([o(f),e.showRightArrow?"grid grid-cols-[auto_1fr_auto]":"w-fit flex justify-center","items-center gap-20px group text-1em duration-150 focus-visible:block-focus disabled:bg-#DCDCDC disabled:color-#BDBDBD disabled:border-#BDBDBD",e.btnClass])},[l("div",A,[Array.isArray(e.text)?(t(!0),r(g,{key:0},w(e.text,(u,c)=>(t(),r("span",{key:c},a(u),1))),128)):(t(),r("span",E,a(e.text),1)),y(x.$slots,"default")]),e.showArrow?(t(),r("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"19",height:"9",viewBox:"0 0 19 9",class:n([o(i)?"stroke-[#292929] group-hover:stroke-white":"stroke-white","group-disabled:stroke-#BDBDBD w-4.5 h-4.5 shrink-0"]),fill:"none"},[...s[0]||(s[0]=[l("path",{d:"M11.6 1.25L18.0031 6.87434C18.3496 7.17871 18.1343 7.75 17.6731 7.75H1","stroke-linecap":"round"},null,-1)])],2)):b("",!0)],10,S))}}});
1export{T as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.