"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[7523],{47523:(t,e,l)=>{l.r(e),l.d(e,{default:()=>r});var i=l(57268),n=l(94209);const a={class:"seg-btn-view absolute left-0 top-0 right-0 z-[1] flex w-full justify-center pt-[16px]"},o={class:"light-shadow h-[40px] w-[396px] rounded-[12px] bg-color-white p-[4px] dark:bg-opacity-20"},s={class:"relative flex h-full rounded-[8px]"},c=["onClick"],p=(0,i.aZ)({__name:"wallpaper-tab",props:{active:{default:0}},emits:["on-change"],setup(t,e){let{emit:l}=e;const p=t,r=[{name:"精选图片",type:"image"},{name:"动态壁纸",type:"dynamic"},{name:"渐变背景",type:"gradient"}];return(t,e)=>((0,i.wg)(),(0,i.iD)("section",a,[(0,i._)("div",o,[(0,i._)("div",s,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(r,((t,e)=>(0,i._)("div",{key:t.type,class:(0,n.normalizeClass)(["z-[1] flex h-full flex-1 cursor-pointer items-center justify-center font-ali-65 text-[14px] transition-colors",[e===p.active?" text-color-m1":"text-color-t2"]]),onClick:t=>function(t){t!==p.active&&l("on-change",t,r[t])}(e)},(0,n.toDisplayString)(t.name),11,c))),64)),(0,i._)("div",{class:"seg-bg pointer-events-none absolute left-0 top-0 bottom-0 h-[32px] w-[129px] rounded-[8px] bg-color-m2 transition-[left]",style:(0,n.normalizeStyle)({left:`calc(${p.active} * (100% / 3))`})},null,4)])])]))}});const r=(0,l(76911).Z)(p,[["__scopeId","data-v-1993ef0c"]])}}]);