"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[2035],{22035:(t,e,o)=>{o.r(e),o.d(e,{mountHome:()=>M,widgetApp:()=>I});var l=o(29445),i=o(68398),n=o(96755),s=o(57268),p=o(36501),a=o(94209),r=o(63477);const c={class:"content relative flex h-full flex-col items-center pt-[24px] pb-[40px] leading-none icon-m:pt-[16px] icon-m:pb-[20px] icon-s:pt-[12px] icon-s:pb-[19px]"},x={class:"pb-[34px] font-ali-55 text-[12px] font-[400] opacity-60 icon-m:pb-[26px] icon-s:pb-[24px]"},m={class:"flex flex-row items-baseline pb-[20px] font-ali-65 text-[#FFF]"},u={class:"text-[16px]"},b={class:"ml-[4px] text-[16px]"},f={class:"absolute bottom-[40px] flex flex-row items-center font-ali-55 text-[12px] text-[#FFF] opacity-60 icon-m:bottom-[20px] icon-s:bottom-[19px]"},g=(0,s._)("div",{class:"mr-[4px] h-[1px] w-[24px] bg-[#FFF]"},null,-1),d=(0,s._)("div",{class:"ml-[4px] h-[1px] w-[24px] bg-[#FFF]"},null,-1),h=(0,s.aZ)({__name:"celebrity-home-large",setup(t){const e=(0,p.useCelebrityStore)(),o=(0,s.Fl)((()=>({backgroundImage:`url(${(0,r.Em)(e.bgImage.large,"default",532)})`})));return(t,n)=>((0,s.wg)(),(0,s.iD)("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,a.normalizeStyle)((0,l.SU)(o))},[(0,s._)("div",c,[(0,s._)("h1",x,(0,a.toDisplayString)("每日一言"),1),(0,s._)("div",m,[(0,s._)("span",u,(0,a.toDisplayString)((0,l.SU)(e).currentDate.date),1),(0,s._)("span",b,(0,a.toDisplayString)((0,l.SU)(e).currentDate.weekday),1)]),(0,s._)("div",{class:"max-h-[40px] overflow-y-scroll break-words text-center font-ali-55 text-[14px] font-[300] leading-[20px] tracking-[1px] text-[#FFF] scrollbar-none",onWheel:n[0]||(n[0]=(0,i.withModifiers)((()=>{}),["stop"]))},(0,a.toDisplayString)((0,l.SU)(e).words.hitokoto),33),(0,s._)("h1",f,[g,(0,s.Uk)(" "+(0,a.toDisplayString)((0,l.SU)(e).words.formWho)+" ",1),d])])],4))}}),F={class:"absolute top-[20px] flex w-full flex-row justify-center font-ali-55 text-[12px] font-[400] text-[#FFF] opacity-60 icon-m:top-[16px] icon-s:top-[12px]"},w={class:"content relative flex h-full flex-col items-center justify-center px-[20px] py-[40px] leading-none icon-m:px-[16px] icon-m:py-[35px] icon-s:px-[12px] icon-s:py-[30px]"},y={class:"flex flex-col items-center"},_={class:"invisible flex flex-row items-center text-[12px] text-[#FFF] opacity-60 icon-m:pr-[16px] icon-s:pr-[12px]"},S=(0,s._)("div",{class:"mr-[4px] h-[1px] w-[24px] bg-[#FFF] font-ali-55"},null,-1),v={class:"flex flex-row items-center self-end font-ali-55 text-[12px] text-[#FFF] opacity-60"},k=(0,s._)("div",{class:"mr-[4px] h-[1px] w-[24px] bg-[#FFF]"},null,-1),D=(0,s.aZ)({__name:"celebrity-home-medium",setup(t){const e=(0,p.useCelebrityStore)(),o=(0,s.Fl)((()=>({backgroundImage:`url(${(0,r.Em)(e.bgImage.medium,"default",236)})`})));return(t,n)=>((0,s.wg)(),(0,s.iD)("section",{class:"relative h-full bg-cover bg-center bg-no-repeat text-color-white transition-[background,color]",style:(0,a.normalizeStyle)((0,l.SU)(o))},[(0,s._)("h1",F,(0,a.toDisplayString)("每日一言"),1),(0,s._)("div",w,[(0,s._)("div",y,[(0,s._)("h1",_,[S,(0,s.Uk)(" "+(0,a.toDisplayString)((0,l.SU)(e).words.formWho),1)]),(0,s._)("div",{class:"mb-[12px] max-h-[80px] overflow-y-scroll break-words font-ali-55 text-[14px] font-[300] leading-[20px] tracking-[1px] text-[#FFF] scrollbar-none",onWheel:n[0]||(n[0]=(0,i.withModifiers)((()=>{}),["stop"]))},(0,a.toDisplayString)((0,l.SU)(e).words.hitokoto),33),(0,s._)("h1",v,[k,(0,s.Uk)(" "+(0,a.toDisplayString)((0,l.SU)(e).words.formWho),1)])])])],4))}});var U=o(22854),C=o(73844);const W=(0,s.aZ)({__name:"widget-celebrity-home",props:{size:null,widgetData:null,id:null},setup(t){const e=t,o={m:D,l:h},{HomeComp:i,propsState:n}=(0,U.C)(e,I.value,o),a=(0,p.useCelebrityStore)(),r=()=>{a.setModal(!0)};return C.i.subscribe("EVERY_DAY",a.updateData),(t,e)=>((0,s.wg)(),(0,s.iD)("section",{class:"contents cursor-pointer",onClick:r},[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(i)),{state:(0,l.SU)(n).widgetData},null,8,["state"]))]))}});var E=o(18023);const I=(0,l.iH)(null),M=(t,e)=>{const o=(0,i.createApp)(W,e);return(0,E.f)(o),I.value=o,o.use(n.M),o.mount(t),I.value}}}]);