"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[9747],{9747:(t,e,l)=>{l.r(e);var s=l(68398),i=l(96755),a=l(35490),n=l(83523),o=l(57268),r=l(29445),c=l(94209),p=l(36501),x=l(63477),d=l(17319),g=l(45911),b=l(17974),u=l(66894),f=l(74003);const m=t=>((0,o.dD)("data-v-04f7a459"),t=t(),(0,o.Cn)(),t),w={class:"content relative flex h-full flex-col items-center pt-[21px] pb-[76px] leading-none"},h={class:"pb-[107px] text-[14px] text-[#FFF] opacity-50"},S={class:"flex flex-row items-baseline pb-[20px] font-ali-65 text-[28px] leading-[20px] text-[#FFF]"},_={class:"flex flex-row items-baseline pb-[102px] font-ali-65 text-[20px] leading-[20px] text-[#FFF]"},y={class:"words-line mt-[-24px] flex flex-row items-center break-words p-[24px] font-ali-55 text-[18px] leading-[21px] tracking-[1px] text-[#FFF]"},F=m((()=>(0,o._)("div",{class:"mr-[12px] w-[24px]"},null,-1))),v=["src"],k={class:"max-h-[140px] overflow-y-scroll scrollbar-none"},U=["src"],D=["src"],C={class:"mt-[16px] flex flex-col items-center font-ali-55 text-[16px] leading-[16px] tracking-[1px] text-[#FFF] opacity-60"},Z={key:0,class:"pb-[16px] font-ali-55"},I={class:"flex flex-row items-center"},M=m((()=>(0,o._)("div",{class:"mr-[4px] h-[1px] w-[40px] bg-[#FFF]"},null,-1))),T=m((()=>(0,o._)("div",{class:"ml-[4px] h-[1px] w-[40px] bg-[#FFF]"},null,-1))),W={class:"absolute bottom-[76px] mr-[20px] flex flex-row items-center font-ali-55 text-[14px] leading-[14px]"},R=(0,o.aZ)({__name:"widget-celebrity-modal",setup(t){const e=(0,p.useCelebrityStore)(),l=(0,o.Fl)((()=>({backgroundImage:`url(${(0,x.Em)(e.bgImage.modal,"default",1024)})`}))),s=(0,g.Z)((()=>{e.refreshWords()}),500,{leading:!0,trailing:!1}),i=(0,g.Z)((()=>{e.setRandomBg()}),500,{leading:!0,trailing:!1}),m=(0,g.Z)((()=>{navigator.clipboard&&navigator.clipboard.writeText(e.words.hitokoto).then((()=>{d.R.success({message:"已复制到剪贴板"})}))}),500,{leading:!0,trailing:!1});return(t,p)=>{const x=n.Z,d=a.Z;return(0,o.wg)(),(0,o.j4)(d,{class:"widget-celebrity-modal",ani:"fade",show:(0,r.SU)(e).modalShow},{default:(0,o.w5)((()=>[(0,o.Wm)(x,{class:"dark","full-screen-btn":!1,onOnClose:p[3]||(p[3]=t=>(0,r.SU)(e).setModal(!1))},{default:(0,o.w5)((()=>[(0,o._)("section",{class:"relative h-full bg-cover bg-center bg-no-repeat px-[32px] text-color-white transition-[background,color] icon-m:px-[32px] icon-s:px-[20px]",style:(0,c.normalizeStyle)((0,r.SU)(l))},[(0,o._)("div",w,[(0,o._)("h1",h,(0,c.toDisplayString)("每日一言"),1),(0,o._)("div",S,(0,c.toDisplayString)((0,r.SU)(e).currentDate.date),1),(0,o._)("div",_,(0,c.toDisplayString)((0,r.SU)(e).currentDate.weekday),1),(0,o._)("div",y,[F,(0,o._)("img",{class:"mr-[12px] h-[20px] w-[20px] rotate-180",src:(0,r.SU)(b)},null,8,v),(0,o._)("p",k,(0,c.toDisplayString)((0,r.SU)(e).words.hitokoto),1),(0,o._)("img",{class:"ml-[12px] h-[20px] w-[20px]",src:(0,r.SU)(b)},null,8,U),(0,o._)("button",{class:"copy-btn shrink-0",onClick:p[0]||(p[0]=function(){return(0,r.SU)(m)&&(0,r.SU)(m)(...arguments)})},[(0,o._)("img",{class:"blur-bg ml-[12px] h-[24px] w-[24px] rounded-[5px] bg-color-white bg-opacity-20 p-[4px]",src:(0,r.SU)(u)},null,8,D)])]),(0,o._)("div",C,[(0,r.SU)(f.sM)?((0,o.wg)(),(0,o.iD)("div",Z,(0,c.toDisplayString)((0,r.SU)(e).words.form),1)):(0,o.kq)("",!0),(0,o._)("div",I,[M,(0,o.Uk)(" "+(0,c.toDisplayString)((0,r.SU)(e).words.formWho)+" ",1),T])]),(0,o._)("div",W,[(0,o._)("button",{class:"blur-bg refresh-btn",onClick:p[1]||(p[1]=function(){return(0,r.SU)(s)&&(0,r.SU)(s)(...arguments)})},(0,c.toDisplayString)("刷新一言"),1),(0,o._)("button",{class:"blur-bg refresh-btn",onClick:p[2]||(p[2]=function(){return(0,r.SU)(i)&&(0,r.SU)(i)(...arguments)})},(0,c.toDisplayString)("刷新壁纸"),1)])])],4)])),_:1})])),_:1},8,["show"])}}});const j=(0,l(76911).Z)(R,[["__scopeId","data-v-04f7a459"]]);var q=l(18023);(()=>{const t=(0,x.em)(),e=(0,s.createApp)(j);(0,q.f)(e),e.use(i.M),e.mount(t)})()}}]);