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