1import{o as _,ck as b,c3 as a,ca as g,c5 as x,V as c,c6 as C,c4 as w,I as o,c7 as k,bY as u,T as v,c as r}from"./vendor-prime-CYPK8aUb.js";import{b as B,a as y}from"./DbQUaUTo.js";import{u as S}from"./useCartSidebar-CdCRt9ug.js";import{u as V}from"./useCartCount-CDuWU2Aj.js";import{_ as j}from"./mobile-menu-sepet-fill-BbAaeF7f.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vendor-http-DzSLJI0S.js";import"./product-service-Dh7KKRu7.js";const I={class:"flex items-center justify-center w-full h-full"},L={key:0,class:"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 flex items-center justify-center bg-red-500 text-white text-[10px] font-bold rounded-full border-2 border-[#1a1b1e]"},N={__name:"FloatingCartButton",setup(P){const n=B(),{open:i,isOpen:d}=S();y();const{cartItemCount:e,loadCartCount:l,debouncedLoadCartCount:s}=V();_(()=>{l(),window.addEventListener("cart-updated",s)}),b(()=>{window.removeEventListener("cart-updated",s)});const p=r(()=>n.path.includes("/dergi")),m=r(()=>{const t=n.path;return t.includes("/dergi")&&t.endsWith("/oku")}),f=r(()=>e.value>0&&!d.value&&p.value&&!m.value),h=()=>{i()};return(t,z)=>(a(),g(v,{name:"fade"},{default:x(()=>[f.value?(a(),c("button",{key:0,onClick:h,class:"hidden md:flex fixed bottom-6 right-6 z-[1001] w-11 h-11 bg-[#1a1b1e] border border-neutral-700/50 rounded-full shadow-lg items-center justify-center hover:bg-[#252629] transition-all group","aria-label":"Sepet"},[C("span",I,[w(j,{class:"w-5 h-5 text-white shrink-0"})]),o(e)>0?(a(),c("span",L,k(o(e)>99?"99+":o(e)),1)):u("",!0)])):u("",!0)]),_:1}))}},W=E(N,[["__scopeId","data-v-e91d79e7"]]);export{W as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.