1import{aQ as B,$ as k,U as p,G as C,z as h,A as m,B as c,C as O,D as w,H as d,T as A,a0 as I,R as L,i as M,V as x,l as D,ac as H}from"./B6ZgELMS.js";function V(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);e<t.length;e++)o[e]=t[e];return o}else return Array.from(t)}var g=!1;if(typeof window<"u"){var b={get passive(){g=!0}};window.addEventListener("testPassive",null,b),window.removeEventListener("testPassive",null,b)}var f=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),l=[],v=!1,S=-1,u=void 0,s=void 0,a=void 0,P=function(e){return l.some(function(o){return!!(o.options.allowTouchMove&&o.options.allowTouchMove(e))})},y=function(e){var o=e||window.event;return P(o.target)||o.touches.length>1?!0:(o.preventDefault&&o.preventDefault(),!1)},W=function(e){if(a===void 0){var o=!1,i=window.innerWidth-document.documentElement.clientWidth;if(o&&i>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);a=document.body.style.paddingRight,document.body.style.paddingRight=n+i+"px"}}u===void 0&&(u=document.body.style.overflow,document.body.style.overflow="hidden")},_=function(){a!==void 0&&(document.body.style.paddingRight=a,a=void 0),u!==void 0&&(document.body.style.overflow=u,u=void 0)},R=function(){return window.requestAnimationFrame(function(){if(s===void 0){s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,o=e.scrollY,i=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-o,document.body.style.left=-i,setTimeout(function(){return window.requestAnimationFrame(function(){var r=n-window.innerHeight;r&&o>=n&&(document.body.style.top=-(o+r))})},300)}})},$=function(){if(s!==void 0){var e=-parseInt(document.body.style.top,10),o=-parseInt(document.body.style.left,10);document.body.style.position=s.position,document.body.style.top=s.top,document.body.style.left=s.left,window.scrollTo(o,e),s=void 0}},F=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},Y=function(e,o){var i=e.targetTouches[0].clientY-S;return P(e.target)?!1:o&&o.scrollTop===0&&i>0||F(o)&&i<0?y(e):(e.stopPropagation(),!0)},q=function(e,o){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!l.some(function(n){return n.targetElement===e})){var i={targetElement:e,options:{}};l=[].concat(V(l),[i]),f?R():W(),f&&(e.ontouchstart=function(n){n.targetTouches.length===1&&(S=n.targetTouches[0].clientY)},e.ontouchmove=function(n){n.targetTouches.length===1&&Y(n,e)},v||(document.addEventListener("touchmove",y,g?{passive:!1}:void 0),v=!0))}},z=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}l=l.filter(function(o){return o.targetElement!==e}),f&&(e.ontouchstart=null,e.ontouchmove=null,v&&l.length===0&&(document.removeEventListener("touchmove",y,g?{passive:!1}:void 0),v=!1)),f?$():_()};const N={class:"popup-inner-container show"},U={key:0,class:"flex-block popup-header",style:{gap:"16px"}},j={class:"h1-text-thin"},E={class:"popup-close-icon--desktop"},Q={class:"popup-close-icon--mobile"},X={name:"BasePopup",components:{BaseIcon:p},props:{title:{type:String,required:!1},close:{},useScrollLock:{type:Boolean,default:!0}},data(){return{popupMounted:!1}},computed:{...B(k,["rootPadding","phoneConfIsOpen","venueSelectionIsOpen"])},mounted(){this.useScrollLock?(document.body.style.top=`-${window.scrollY}px`,q(this.$refs.popup)):document.body.style.overflow="hidden",setTimeout(()=>{this.popupMounted=!0},100)},beforeUnmount(){this.showOverflow()},methods:{checkOutsideAndClose(){window.innerWidth>768&&this.closePopup()},closePopup(){this.popupMounted&&this.close&&(this.showOverflow(),this.close())},showOverflow(){this.phoneConfIsOpen||(this.useScrollLock?(z(this.$refs.popup),document.body.style.top=""):document.body.style.overflow="unset")}}},J=Object.assign(X,{setup(t){C(n=>({v0422c8db:n.rootPadding}));const e=M(x().width),o=H(),i=D(()=>!!o.window?.Telegram?.WebApp);return(n,r)=>(h(),m("div",{class:L(["popup",{"popup--hide-scroll":d(i)}]),ref:"popup"},[c("div",N,[t.title&&t.close?(h(),m("div",U,[c("div",j,O(t.title),
11),w(d(p),{type:d(e)<768?"mob-popup-close":"close",onClick:n.closePopup},null,8,["type","onClick"])])):t.close?(h(),m("div",{key:1,class:"popup-close-icon",onClick:r[0]||(r[0]=(...T)=>n.closePopup&&n.closePopup(...T))},[c("div",E,[w(d(p),{type:"close"})]),c("div",Q,[w(d(p),{type:"mob-popup-close"})])])):A("",!0),I(n.$slots,"default")])],2))}});export{J as _};
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.