PageSourceSearch

https://lavandaflor.ru/_nuxt/CMCgLPNn.js

js lavandaflor.ru collected 2026-10-06 13:18:42 UTC 2,539 bytes, 1 lines download raw bytes

1import{Et as e,G as t,R as n,V as r,ct as i,dt as a}from"./CB5-eA5X.js";import{l as o}from"./DNnrF5Vr.js";import{t as s}from"./B01tAdpj.js";function c(){let{isSwipingProductSlider:e}=o(s()),t,n,r,i,a={drag:!1,difference:0,currentCoords:0},c;function l(e,a,o,s,l){document.documentElement.clientWidth<=991&&e&&(n=e,t=a,c=o,r=s,i=l,n.addEventListener(`touchstart`,d,{passive:!0}),n.addEventListener(`touchmove`,f,{passive:!1}),n.addEventListener(`touchend`,p))}function u(e){document.documentElement.clientWidth<=991&&e&&(n.removeEventListener(`touchstart`,d),n.removeEventListener(`touchmove`,f),n.removeEventListener(`touchend`,p))}function d(e){let n=e.target,r=n.closest(`.stores-available-map`)||n.closest(`.change-city-delivery-map`)||n.closest(`.change-city-pickup-map`)||n.closest(`.change-city-delivery-add-map`);t.scrollTop===0&&!window.scrollY&&n&&!r&&(a.drag=!0,a.difference=e.touches[0].clientY,a.currentCoords=0)}function f(o){(o.touches.length>1||o.scale&&o.scale!==1)&&o.preventDefault(),a.drag&&o.target.closest(i)===r&&!e.value&&(a.currentCoords=o.touches[0].clientY-a.difference,n.style.transition=`transform 0s`,a.currentCoords>0&&a.currentCoords<=40&&o.cancelable?o.preventDefault():a.currentCoords>40?(o.cancelable&&o.preventDefault(),t.scrollTop=0,t.style.overflow=`hidden`,t.style.touchAction=`none`,n.style.transform=`translateY(${a.currentCoords-40}px)`):n.style.transform=``)}function p(){a.drag=!1,t.scrollTop===0&&(n.style.transition=`transform .3s`,a.currentCoords>100?(n.style.transform=`translateY(100%)`,c()):(n.style.transform=`translateY(0px)`,m()))}function m(){setTimeout(()=>{n&&(n.style.transition=``,n.style.transform=``,a.currentCoords=0,t.style.overflow=`auto`,t.style.touchAction=``)},300)}return{initTouchHandler:l,destroyTouch:u}}function l(o,l,u,d){let f=s(),p=e(!1),m=e(!1),h=e(),g=i(`modal`),_=i(`wrap`),v=i(`content`),y=null;a(o,async e=>{e?(f.toggle_opened_modals_count(`open`),p.value=!0,await n(),m.value=!0,await n(),_.value&&v.value&&g.value&&h.value?.initTouchHandler(_.value,v.value,x,g.value,l),await n(),d?.()):x()}),t(()=>{h.value=c(),document.addEventListener(`keydown`,S)}),r(()=>{_.value&&h.value?.destroyTouch(_.value),document.removeEventListener(`keydown`,S),b()});function b(){y&&=(window.clearTimeout(y),null)}function x(){p.value&&(m.value=!1,b(),y=window.setTimeout(()=>{p.value=!1,o.value=!1,f.toggle_opened_modals_count(`close`),u?.()},300))}function S(e){e.key===`Escape`&&x()}return{showModal:p,showModalContent:m,closeModal:x,modal:g,wrap:_,content:v}}export{l as t};

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.