import{U as e,a4 as s,G as t,o as a,y as l,I as o,u as n,b as d,q as c,h as r,t as u,n as i,w as m,v as p,ax as f}from"./vendor-jA_NIjzi.js";import{a3 as g,u as h,l as k,i as v}from"./common-utils-8H8K2JPG.js";import"../entry/index-PK05nOby.js";import{_ as b,u as y}from"./common-store-e_1WBubm.js";import{S as w}from"./SvgIcon-unOD6nfS.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const _=["src"],j=["src"],G=["src"],x=b({__name:"floatBubble",emits:["showCollectHandle"],setup(b,{emit:x}){const{t:C}=e(),{getUnReadCollectStatus:M}=g(),S=s(),{theme:U}=h(),q=y(),B=x,H=t((()=>"u8"===q.homeModel)),I=t((()=>({x:H.value?1:-1,y:H.value?520:140}))),E=()=>{v()?B("showCollectHandle",!0):S.push({path:"/login"})},R=t((()=>document.documentElement.clientWidth>800));return(e,s)=>{const t=f;return R.value?(a(),d("div",{key:1,class:i(["float-menu-pc",["float-menu-pc-".concat(n(q).homeModel)]]),onClick:E},["u8"===n(q).homeModel?(a(),d("img",{key:0,class:i(["bg",{"bg-d":["dark","red","whiteGold"].includes(n(U))}]),src:n(k)("u8/home/collect_".concat(n(U),".png")),alt:""},null,10,j)):(a(),d("img",{key:1,class:i(["bg",{"bg-d":["dark","red","whiteGold"].includes(n(U))}]),src:n(k)("entertainment/sider-menu_".concat(n(U),".png")),alt:""},null,10,G)),m(r("i",{class:i(["dot",{"dot-d":["dark","red","whiteGold"].includes(n(U))}])},null,2),[[p,n(M)()]])],2)):(a(),l(t,{key:0,class:i(["float-menu",["float-menu-".concat(n(q).homeModel)]]),onClick:E,offset:I.value,"onUpdate:offset":s[0]||(s[0]=e=>I.value=e),gap:0,axis:"y"},{default:o((()=>["u8"===n(q).homeModel?(a(),d("div",{key:0,class:i(["bg",{"bg-d":["dark","red","whiteGold"].includes(n(U))}])},[c(w,{name:"startSvg"}),r("p",null,u(n(C)("收藏")),1)],2)):(a(),d("img",{key:1,class:i(["bg",{"bg-d":["dark","red","whiteGold"].includes(n(U))}]),src:n(k)("entertainment/sider-menu_".concat(n(U),".png")),alt:""},null,10,_)),m(r("i",{class:i(["dot",{"dot-d":["dark","red","whiteGold"].includes(n(U))}])},null,2),[[p,n(M)()]])])),_:1},8,["class","offset"]))}}},[["__file","floatBubble.vue"]]);export{x as default};
