"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[3657],{3657:(t,a,l)=>{l.r(a),l.d(a,{mountHome:()=>H,widgetApp:()=>L});var e=l(29445),i=l(68398),o=l(57268),n=l(94209),s=l(29860);const d=t=>((0,o.dD)("data-v-88a175ba"),t=t(),(0,o.Cn)(),t),c={key:0,type:"s",class:"box"},u={class:"title flex flex-col"},r=["title"],p=d((()=>(0,o._)("span",{class:"hide-l text-[12px] text-[#8E8E94]"},"一键去除",-1))),v=d((()=>(0,o._)("span",{class:"hide-s hide-m text-[12px] text-[#8E8E94]"},"立即使用",-1))),m=["src"],w={key:1,type:"m",class:"box"},g=["src"],D=["title"],f=["title"],y=(0,o.aZ)({__name:"instant-tools-card",props:{data:{default:null},iconType:{default:"s"}},setup(t){const a=t,l=(0,s.useInstantToolsStore)();function e(){l.setModal(!0)}return(t,l)=>{var i,s,d,y,_,x,h,k;return(0,o.wg)(),(0,o.iD)("div",{class:"rootClass flex h-full w-full flex-col font-ali-55 text-color-black",onClick:e},["s"===a.iconType?((0,o.wg)(),(0,o.iD)("div",c,[(0,o._)("div",u,[(0,o._)("span",{title:null===(i=a.data)||void 0===i?void 0:i.title,class:"title text-[16px] font-medium text-[#160F50]"},(0,n.toDisplayString)(null===(s=a.data)||void 0===s?void 0:s.title),9,r),p,v]),(0,o._)("img",{src:null===(d=a.data)||void 0===d?void 0:d.icon},null,8,m)])):"m"===a.iconType?((0,o.wg)(),(0,o.iD)("div",w,[(0,o._)("img",{src:null===(y=a.data)||void 0===y?void 0:y.icon},null,8,g),(0,o._)("span",{title:null===(_=a.data)||void 0===_?void 0:_.title,class:"title text-[#1C1C1E]"},(0,n.toDisplayString)(null===(x=a.data)||void 0===x?void 0:x.title),9,D),(0,o._)("div",{title:null===(h=a.data)||void 0===h?void 0:h.compDesc,class:"des overflow-hidden break-all text-center text-[12px] text-[#8E8E94]"},(0,n.toDisplayString)(null===(k=a.data)||void 0===k?void 0:k.compDesc),9,f)])):(0,o.kq)("",!0)])}}});const _=(0,l(76911).Z)(y,[["__scopeId","data-v-88a175ba"]]),x=(0,o.aZ)({__name:"instant-tools-medium",props:{data:null},setup(t){const a=t;return(t,l)=>((0,o.wg)(),(0,o.iD)("div",null,[(0,o.Wm)(_,{data:a.data,"icon-type":"m"},null,8,["data"])]))}}),h={class:"h-full w-full"},k=(0,o.aZ)({__name:"instant-tools-small",props:{data:null},setup(t){const a=t;return(t,l)=>((0,o.wg)(),(0,o.iD)("div",h,[(0,o.Wm)(_,{data:a.data,"icon-type":"s"},null,8,["data"])]))}});var b=l(22854),C=l(31790),E=l(75053),S=l(20399);const T=(0,o.aZ)({__name:"instant-tools-home",props:{size:{default:"s"},id:{default:""},widgetData:{default:()=>({})}},setup(t){const a=t,l=(0,s.useInstantToolsStore)(),i=(0,C.Q)(),n=(0,o.Fl)((()=>{const t=i.compList.find((t=>{var l,e,i,o;return a.widgetData.key?(null===(l=t.previewData)||void 0===l?void 0:l.category)===a.widgetData.key||(null===(e=t.previewData)||void 0===e?void 0:e.id)===a.widgetData.key:a.widgetData.id?(null===(i=t.previewData)||void 0===i?void 0:i.id)===a.widgetData.id:!!a.widgetData.category&&(null===(o=t.previewData)||void 0===o?void 0:o.category)===a.widgetData.category})),l=(null==t?void 0:t.previewData)||{},e=(0,S.Z)(t);return!navigator.onLine&&E.h[(null==e?void 0:e.title)||""]&&(e.icon=E.h[null==e?void 0:e.title]),{previewData:l,compInfo:e}})),d={s:k,m:x},{HomeComp:c}=(0,b.C)(a,L.value,d);function u(){l.setModal(!0),l.setCompData({data:n.value.previewData})}return(t,a)=>((0,o.wg)(),(0,o.iD)("section",{class:"contents cursor-pointer",onClick:u},[((0,o.wg)(),(0,o.j4)((0,o.LL)((0,e.SU)(c)),{class:"h-full w-full bg-color-white",data:(0,e.SU)(n).compInfo},null,8,["data"]))]))}});var Z=l(96755),I=l(18023);const L=(0,e.iH)(null),H=async(t,a)=>{const l=(0,i.createApp)(T,a);return(0,I.f)(l),L.value=l,l.use(Z.M),l.mount(t),l}}}]);