"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[344],{70344:(t,e,i)=>{i.r(e),i.d(e,{default:()=>p});var n=i(57268),l=i(94209);const o={class:"seg-btn-view flex w-full justify-center"},a={class:"light-shadow h-[40px] w-[360px] rounded-[12px] bg-color-white p-[4px] dark:bg-opacity-20"},s={class:"relative flex h-full rounded-[8px]"},c=["onClick"],r=(0,n.aZ)({__name:"invitation-tab",props:{active:{default:0}},emits:["on-change"],setup(t,e){let{emit:i}=e;const r=t,p=[{name:"邀请码",type:"code"},{name:"口令兑换",type:"exchange"}];return(t,e)=>((0,n.wg)(),(0,n.iD)("section",o,[(0,n._)("div",a,[(0,n._)("div",s,[((0,n.wg)(),(0,n.iD)(n.HY,null,(0,n.Ko)(p,((t,e)=>(0,n._)("div",{key:t.type,class:(0,l.normalizeClass)(["z-[1] flex h-full flex-1 cursor-pointer items-center justify-center font-ali-65 text-[14px] transition-colors",[e===r.active?" text-color-m1":"text-color-t2"]]),onClick:t=>function(t){t!==r.active&&i("on-change",t,p[t])}(e)},(0,l.toDisplayString)(t.name),11,c))),64)),(0,n._)("div",{class:"seg-bg pointer-events-none absolute left-0 top-0 bottom-0 h-[32px] w-[176px] rounded-[8px] bg-color-m2 transition-[left]",style:(0,l.normalizeStyle)({left:`calc(${r.active} * (100% / 2))`})},null,4)])])]))}});const p=(0,i(76911).Z)(r,[["__scopeId","data-v-6338f6b4"]])}}]);