PageSourceSearch

https://www.splav.ru/_nuxt/default.e7406dc7.js

js splav.ru collected 2026-10-03 20:38:13 UTC 7,925 bytes, 2 lines download raw bytes

1import{s as C,a as st,l as nt,h as rt,i as lt,e as it,k as ct,t as pt,z as X,A as q}from"./entry.9c752da3.js";import{c as ut,b as mt}from"./AppFloatCookieNotice.7c3f7248.js";import{u as dt}from"./ProductStore.0d6a7adc.js";import{r as c,d,o as _t,n as F,S as ft,X as vt,w as J,ac as ht,l as u,m as Z,A as j,G as o,E as l,u as n,ad as M,k as _,B as A,a2 as W,x as B,a9 as xt,q as yt,z as bt,t as gt,K as wt,a5 as Q,Y as N}from"./_vueform/slider.db378d7f.js";import{c as kt,h as Ct}from"./_vueuse.90c89c65.js";import{u as At}from"./composables.90f422ec.js";import{_ as Bt}from"./AppFooterMobileMenu.e77176a7.js";import"./floating-vue/dist.a50cb737.js";import"./BrndBadge.9bb8014d.js";import"./AppHeaderLogo.647d2cf3.js";import"./IconLogoPicTourism.2856dd39.js";import"./IconLogoPicTactic.6bfdeda5.js";import"./IconLogoText.a64802bb.js";import"./AppHeaderSwitch.1392b6c4.js";import"./IconAISearch.2b946abe.js";import"./SearchStore.22d18cf4.js";import"./ecommerce.9b41ff87.js";import"./CatalogStore.60b31160.js";import"./CatalogFiltersStore.b52fe664.js";import"./content.185b832c.js";import"./BrndButton.68568191.js";import"./IconLogoFill.342e0e30.js";import"./IconMenuCatalog.b52c6477.js";const Pt={class:"pointer-events-none absolute inset-0 z-[100] h-full w-full lg:mx-auto lg:max-w-[1220px] xl:max-w-[1340px] 2xl:max-w-[1640px]"},zt={__name:"AppFloatIcons",props:{link:{type:String,default:""}},setup(r){const P=r,z=dt(),{floatingCartProductBtnIsVisible:w}=C(z),f=c(),{y:T,directions:v}=kt(f,{behavior:"smooth"}),p=c(0),h=c("top"),E=c(0);let m=null;const x=()=>{var t;E.value=(t=document==null?void 0:document.documentElement)==null?void 0:t.scrollHeight},y=c(!1),S=d(()=>y.value?"absolute bottom-[92px] sm:bottom-7 right-0":k.value&&!w.value?"sticky float-right top-[calc(100%-298px)] sm:top-[calc(100%-234px)]":$.value?"sticky float-right top-[calc(100%-298px)] sm:top-[calc(100%-232px)] md:top-[calc(100%-182px)]":"sticky float-right top-[calc(100%-232px)] sm:top-[calc(100%-168px)] md:top-[calc(100%-182px)]"),a=st(),L=d(()=>a==null?void 0:a.path.startsWith("/catalog/")),I=d(()=>a==null?void 0:a.path.startsWith("/library/")),k=d(()=>a==null?void 0:a.path.startsWith("/products/")),$=d(()=>a==null?void 0:a.path.startsWith("/cart/")),V=d(()=>{if(L.value||I.value)return p.value&&h.value==="top"||p.value>E.value*.2||y.value}),b=At(),U=c(b.isLessThan("desktop")),G=()=>{U.value=b.isLessThan("desktop")},Y=c(null);Ct(Y,([t],e)=>{y.value=(t==null?void 0:t.isIntersecting)||!1},{rootMargin:U.value?"54px":"14px"});const tt=()=>{window.scrollTo({top:0,behavior:"smooth"})},et=()=>{nt("yandex","telegram"),window.open(P.link,"_blank")},D=c(null),g=c(!1),ot=()=>{const t=document.querySelector('[data-b24-crm-button-widget="openline_livechat"]');if(!t)return g.value=!1,!1;const e=window.getComputedStyle(t),s=e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";return g.value=s,s};let R=null;const H=(t=0)=>{ot()||t>=10||(R=setTimeout(()=>{H(t+1)},500))},K=()=>{var i;const t=((i=D.value)==null?void 0:i.$el)||D.value,e=document.querySelector(".bx-livechat-wrapper");if(!t||!e)return;const s=t.getBoundingClientRect();e.style.setProperty("position","fixed"),e.style.setProperty("right",`${window.innerWidth-s.right-16}px`),e.style.setProperty("bottom",`${window.innerHeight-s.top+8}px`),e.style.setProperty("left","auto"),e.style.setProperty("top","auto")},at=async t=>{var s,i;if((s=t==null?void 0:t.preventDefault)==null||s.call(t),(i=t==null?void 0:t.stopPropagation)==null||i.call(t),!g.value)return;K();const e=document.querySelector('[data-b24-crm-button-widget="openline_livechat"]');e&&(e.click(),await F(),setTimeout(()=>{K()},50))};return _t(async()=>{f.value=window,Y.value=document.getElementById("footerBottomContainer"),window.addEventListener("resize",G),await F(),x(),m=new ResizeObserver(()=>{x()}),m.observe(document.documentElement),H()}),ft(()=>{window.removeEventListener("resize",G)}),vt(()=>{m&&m.disconnect(),R&&clearTimeout(R)}),J(()=>a.path,async()=>{await F(),x(),H()}),J(T,()=>{var t;p.value=(t=f.value)==null?void 0:t.scrollY,v!=null&&v.top?h.value="top":h.value="bottom"},{immediate:!0}),(t,e)=>{const s=rt,i=lt,O=ht("ripple");return u(),Z("div",Pt,[j("div",{class:B([n(S),"flex h-[160px] w-[48px] -translate-x-[8px] flex-col justify-end md:mr-1"])},[o(W,{"enter-from-class":"opacity-0 scale-0","leave-to-class":"opacity-0 scale-0","enter-active-class":"transition duration-200","leave-active-class":"transition duration-200"},{default:l(()=>[n(V)&&n(p)?M((u(),_(i,{key:0,is:"button",class:"pointer-events-auto mb-2 flex h-[48px] w-[48px] justify-center rounded-full bg-white text-gray-secondary shadow-[0_8px_30px_-2px_rgba(85,57,57,0.14)]",onClick:tt},{default:l(()=>[o(s,{name:"ri:arrow-up-line",size:"23"})]),_:1})),[[O]]):A("",!0)]),_:1}),o(W,{"enter-from-class":"opacity-0 scale-0","leave-to-class":"opacity-0 scale-0","enter-active-class":"transition duration-200","leave-active-class":"transition duration-200"},{default:l(()=>[n(p)?M((u(),_(i,{key:0,is:"button",target:"_blank",class:"pointer-events-auto mb-2 flex h-[48px] w-[48px] justify-center rounded-full bg-white shadow-[0_8px_30px_-2px_rgba(85,57,57,0.14)]",onClick:et},{default:l(()=>[o(s,{name:"BrndIconTelegramDarkGray",size:"23",class:"-ml-1"})]),_:1})),[[O]]):A("",!0)]),_:1}),o(W,{"enter-from-class":"opacity-0 scale-0","leave-to-class":"opacity-0 scale-0","enter-active-class":"transition duration-200","leave-active-class":"transition duration-200"},{default:l(()=>[n(p)?M((u(),_(i,{key:0,is:"button",ref_key:"b24ChatBtn",ref:D,class:B(["pointer-events-auto flex h-[48px] w-[48px] justify-center rounded-full bg-white shadow-[0_8px_30px_-2px_rgba(85,57,57,0.14)]",[n(g)?"text-black hover:!text-black":"cursor-default text-gray-mid hover:!text-gray-mid"]]),title:n(g)?"Открыть чат":"На данный момент нет операторов в чате",onClick:xt(at,["prevent","stop"])},{default:l(()=>[o(s,{name:"ri:chat-3-line",size:"23"})]),_:1},8,["title","class","onClick"])),[[O]]):A("",!0)]),_:1})],2)])}}},Tt=N(()=>q(()=>import("./AppAttention.2161a129.js"),["./AppAttention.2161a129.js","./entry.9c752da3.js","./_vueform/slider.db378d7f.
1js","./slider.9c563d2b.css","./floating-vue/dist.a50cb737.js","./dist.ad73d1bb.css","./_vueuse.90c89c65.js","./entry.ef490455.css"],import.meta.url).then(r=>r.default||r)),Et=N(()=>q(()=>import("./AppFooter.fc039141.js"),["./AppFooter.fc039141.js","./entry.9c752da3.js","./_vueform/slider.db378d7f.js","./slider.9c563d2b.css","./floating-vue/dist.a50cb737.js","./dist.ad73d1bb.css","./_vueuse.90c89c65.js","./entry.ef490455.css"],import.meta.url).then(r=>r.default||r)),St=N(()=>q(()=>import("./AppFooterBottom.181b5d4b.js"),["./AppFooterBottom.181b5d4b.js","./entry.9c752da3.js","./_vueform/slider.db378d7f.js","./slider.9c563d2b.css","./floating-vue/dist.a50cb737.js","./dist.ad73d1bb.css","./_vueuse.90c89c65.js","./entry.ef490455.css","./IconPayLink.98edb972.js","./IconBraind.d0206110.js"],import.meta.url).then(r=>r.default||r)),Lt={class:"relative flex grow flex-col"},oe={__name:"default",setup(r){const P=it(),{telegram:z,attention:w}=C(P),f=ct(),{dialog:T}=C(f),v=pt(),{drawer:p}=C(v);return(h,E)=>{const m=Tt,x=X,y=ut,S=Et,a=bt("LazyHydrate"),L=zt,I=mt,k=X,$=St,V=Bt;return u(),Z("div",{class:B(["wrapper relative flex flex-col pb-16 sm:pb-0",["transition duration-[200ms]",n(p)?"-translate-x-full":"translate-x-0"]])},[o(x,null,{default:l(()=>{var b;return[(b=n(w))!=null&&b.textAttention?(u(),_(m,gt(wt({key:0},n(w))),null,16)):A("",!0)]}),_:1}),o(y),j("div",Lt,[j("main",{class:B([[n(T)&&"pointer-events-none"],"grow"])},[yt(h.$slots,"default")],2),o(a,{"when-idle":4e3},{default:l(()=>[o(S)]),_:1}),o(L,{link:n(z)},null,8,["link"]),o(k,null,{default:l(()=>[(u(),_(Q,{to:"body"},[o(I)]))]),_:1})]),o($),o(k,null,{default:l(()=>[(u(),_(Q,{to:"body"},[o(V)]))]),_:1})],2)}}};export{oe as default};
2//# sourceMappingURL=default.e7406dc7.js.map

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.