PageSourceSearch

https://yaponomaniya.com/_nuxt/x32BA5bi.js

js yaponomaniya.com collected 2026-10-08 07:05:33 UTC 55,715 bytes, 1 lines download raw bytes

1import Bo from"./B3jj6FE_.js";import Vo from"./-U6miQH3.js";import{d as U,g as at,f as S,o as v,c as k,a as A,k as H,a4 as Ot,b as u,t as P,_ as Y,B as ue,L as De,l as be,C as Q,cB as vt,w as ne,h as O,n as j,j as M,i as Pe,H as ct,u as Ke,v as I,R as G,W as To,F as he,r as Be,z as ie,a1 as Oo,cC as Io,cD as Eo,cE as ke,cx as Bn,m as It,cF as Wo,cy as Vn,cz as Lo,ak as et,a0 as tt,ai as Tn,at as Mo,G as At,Z as Et,cG as Po,aq as kt,cH as Ro,a5 as Wt,cI as sn,e as Do,av as Ko,cJ as lt,aA as No,cu as Ho,Y as Fo,$ as On,cK as ut,cL as zo,co as We,D as de,cM as qo,cN as jo,cO as yt,cP as Uo,cQ as rn,a7 as an,X as Go,p as Yo,cR as Jo,q as cn,x as Xo,cS as Zo,cT as Qo,ag as es,N as ts,O as ns,cn as os}from"./DwZIrv6Y.js";import{u as In,_ as ss}from"./47sD7T54.js";import{_ as rs,a as is,b as as,c as cs,d as ls,e as us}from"./_N4Bvsv3.js";import ds from"./riogTfGl.js";import{_ as En}from"./Aot3AJ1_.js";import Lt from"./q9hFR3BI.js";import{_ as fs,u as ps}from"./DRQgpRew.js";import{a as Wn,u as ms,_ as Ln}from"./DMrbcdtr.js";import gs from"./DnQv9RNk.js";import _s from"./CE5zu4cT.js";import hs from"./B5r6IGMb.js";import{A as vs,u as St,_ as ys,b as bs,a as ws}from"./DSNn8dWb.js";import{a as xs,u as As,_ as ks}from"./Bb54GP__.js";import{u as Mt}from"./Dq7G3oh6.js";import Ss from"./CHyprnHz.js";import{u as Cs}from"./Byok-zj2.js";import"./CpirT35R.js";import"./ODD6o1MN.js";import"./wz_VUzeM.js";import"./Bd4dlxjf.js";import"./DHj1D1RI.js";import"./BtpMJxRP.js";import"./uy4reWfU.js";import"./Bcksmnpy.js";import"./Bnrm740I.js";import"./DRYrO05J.js";import"./N6ZhFo12.js";import"./OZryFpR9.js";import"./B_yY9Hv3.js";import"./DpbAKSgO.js";import"./Cd7o6sB7.js";import"./BXh8SeWk.js";import"./RSuHTioK.js";import"./D3249qDX.js";import"./Bk7Z1ayr.js";import"./sYkXE6pG.js";import"./D9lUh-Jf.js";import"./DKuROMPd.js";import"./BtbNdVnb.js";import"./D-wlSjXL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"0d91745c4ab0b925b40150fcafc86056510029cb"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2b0f02f6-4c52-4432-ab94-1dee39223187",e._sentryDebugIdIdentifier="sentry-dbid-2b0f02f6-4c52-4432-ab94-1dee39223187")})()}catch{}const $s={class:"restaraunt-not-published"},Bs=["href"],Vs=U({__name:"NotPublished",setup(e){const{t}=at(),{currentLocale:n}=In(),o=S(()=>({url:`https://smartomato.${n!=="ru"?"com":"ru"}`,component:n==="ru"?Vo:Bo}));return(r,s)=>(v(),k("div",$s,[A("a",{target:"_blank",href:u(o).url,class:"logo"},[(v(),H(Ot(u(o).component)))],8,Bs),A("h1",null,P(u(t)("notPublished")),1)]))}}),Ts=Y(Vs,[["__scopeId","data-v-0da5e4c2"]]),Os={key:0,class:"balance__content"},Is=["src"],Es={key:1,class:"balance__text"},Ws=U({__name:"UserBlock",setup(e){const t=ue(),n=De(),o=be(),{basketInfoShowed:r}=Q(t),{basket:s}=Q(n),i=t.skin.configuration,c=()=>{window.postMessage({smartomato:{send:["openModal","authorize-modal"]}},"*")},d=S(()=>{var y;return((y=o.organization)==null?void 0:y.configuration.bonusEnabled)&&s.value.availableBonuses}),a=S(()=>i.showUserBalanceInfo!==vt.notShow),f=S(()=>{var y;return i.showUserBalanceInfo===vt.icon&&((y=i.userBalanceIcon)==null?void 0:y.large)}),p=S(()=>i.showUserBalanceInfo===vt.text&&i.userBalanceText);return(y,m)=>(v(),k("div",{class:"user",onClick:ne(c,["prevent"])},[u(d)?(v(),k("a",{key:0,class:"balance",href:"#",onClick:ne(c,["prevent"])},[A("span",null,P(Math.trunc(u(s).availableBonuses)),1),u(a)?(v(),k("span",Os,[u(f)?(v(),k("img",{key:0,class:"balance__img",src:u(i).userBalanceIcon.large,"aria-hidden":"true",loading:"lazy",width:"25",height:"25"},null,8,Is)):O("",!0),u(p)?(v(),k("span",Es,P(u(i).userBalanceText),
11)):O("",!0)])):O("",!0)])):O("",!0),!u(d)&&!u(s).user?(v(),k("a",{key:1,class:j(["user-login",{"loading-skeleton":!u(r)}]),href:"#"},[M(u(ds)),Pe(" "+P(y.$t("buttons.userLogin")),1)],2)):O("",!0),Pe(" "+P(u(s).user),1)]))}}),Mn=Y(Ws,[["__scopeId","data-v-96d83f1d"]]),Ls={class:"container"},Ms={class:"mob-header"},Ps={class:"burger-menu"},Rs={key:0},Ds=["href"],Ks={key:1},Ns=U({__name:"Burger",setup(e){const t=be(),n=ue(),{menu:o}=ct(),r=t.organization.configuration,s=n.skin.configuration,i=n.skin.mobMenuLinks,{burgerOpened:c}=Q(n),d=()=>{n.setBurgerState(!1)},a=Ke(),f=I(`${a.query?`?${new URLSearchParams(a.query).toString()}`:""}`);G(()=>a.query,h=>{f.value=`${h?`?${new URLSearchParams(a.query).toString()}`:""}`});const p=I(),{isSwiping:y,direction:m}=To(p);G([y,m],h=>{!h[0]&&h[1]==="right"&&d()});const{skinBlockedState:b}=Q(n),l=S(()=>r.clientCabinetEnabled&&!b.value),_=S(()=>s.useParentCategoriesInBurger?o==null?void 0:o.filter(h=>!h.parentId):o);return(h,w)=>{const C=Mn,$=En,B=rs,W=is,V=as,D=ss;return v(),k("div",{class:j(["burger-wrapper",u(s).burgerLinksStyle,{open:u(c)}])},[A("div",Ls,[A("div",{ref_key:"burger",ref:p,class:j(["burger",{open:u(c)}])},[A("div",Ms,[A("div",{class:"closed-menu",onClick:ne(d,["stop"])},[M(u(Lt))]),u(l)?(v(),H(C,{key:0,onClick:ne(d,["stop"])})):O("",!0)]),A("div",Ps,[u(i)?(v(),k("ul",Rs,[(v(!0),k(he,null,Be(u(i),(g,z)=>(v(),k("li",{key:g.name+z},[A("a",{href:g.link},P(g.name),9,Ds)]))),128))])):(v(),k("ul",Ks,[(v(!0),k(he,null,Be(u(_),(g,z)=>(v(),k("li",{key:g.name+z},[M($,{to:`/menu/${g.slug||g.id}${u(f)}`,onClick:ne(d,["stop"])},{default:ie(()=>[Pe(P(g.name),1)]),_:2},1032,["to"])]))),128))]))]),u(i)?O("",!0):(v(),H(B,{key:0})),M(W),M(V),u(s).useMobileAppsBlock?(v(),H(D,{key:1})):O("",!0)],2)])],2)}}}),Hs=Y(Ns,[["__scopeId","data-v-0157f9ce"]]),Ve=Math.min,ge=Math.max,nt=Math.round,Qe=Math.floor,ae=e=>({x:e,y:e}),Fs={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function Ct(e,t,n){return ge(e,Ve(t,n))}function Ne(e,t){return typeof e=="function"?e(t):e}function ve(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function Pn(e){return e==="x"?"y":"x"}function Pt(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(ve(e))?"y":"x"}function Rt(e){return Pn(Te(e))}function qs(e,t,n){n===void 0&&(n=!1);const o=He(e),r=Rt(e),s=Pt(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ot(i)),[i,ot(i)]}function js(e){const t=ot(e);return[$t(e),t,$t(t)]}function $t(e){return e.replace(/start|end/g,t=>zs[t])}function Us(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function Gs(e,t,n,o){const r=He(e);let s=Us(ve(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map($t)))),s}function ot(e){return e.replace(/left|right|bottom|top/g,t=>Fs[t])}function Ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rn(e){return typeof e!="number"?Ys(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}
vendor: 4,795 bytes, line 1
1function ln(e,t,n){let{reference:o,floating:r}=e;const s=Te(t),i=Rt(t),c=Pt(i),d=ve(t),a=s==="y",f=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;let m;switch(d){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}switch(He(t)){case"start":m[i]-=y*(n&&a?-1:1);break;case"end":m[i]+=y*(n&&a?-1:1);break}return m}const Js=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=ln(a,o,d),y=o,m={},b=0;for(let l=0;l<c.length;l++){const{name:_,fn:h}=c[l],{x:w,y:C,data:$,reset:B}=await h({x:f,y:p,initialPlacement:o,placement:y,strategy:r,middlewareData:m,rects:a,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,m={...m,[_]:{...m[_],...$}},B&&b<=50&&(b++,typeof B=="object"&&(B.placement&&(y=B.placement),B.rects&&(a=B.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):B.rects),{x:f,y:p}=ln(a,y,d)),l=-1)}return{x:f,y:p,placement:y,strategy:r,middlewareData:m}};async function Dn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:d}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=Ne(t,e),b=Rn(m),_=c[y?p==="floating"?"reference":"floating":p],h=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:d})),w=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),$=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},B=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:C,strategy:d}):w);return{top:(h.top-B.top+b.top)/$.y,bottom:(B.bottom-h.bottom+b.bottom)/$.y,left:(h.left-B.left+b.left)/$.x,right:(B.right-h.right+b.right)/$.x}}const Xs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:d}=t,{element:a,padding:f=0}=Ne(e,t)||{};if(a==null)return{};const p=Rn(f),y={x:n,y:o},m=Rt(r),b=Pt(m),l=await i.getDimensions(a),_=m==="y",h=_?"top":"left",w=_?"bottom":"right",C=_?"clientHeight":"clientWidth",$=s.reference[b]+s.reference[m]-y[m]-s.floating[b],B=y[m]-s.reference[m],W=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let V=W?W[C]:0;(!V||!await(i.isElement==null?void 0:i.isElement(W)))&&(V=c.floating[C]||s.floating[b]);const D=$/2-B/2,g=V/2-l[b]/2-1,z=Ve(p[h],g),E=Ve(p[w],g),F=z,ee=V-l[b]-E,L=V/2-l[b]/2+D,N=Ct(F,L,ee),J=!d.arrow&&He(r)!=null&&L!==N&&s.reference[b]/2-(L<F?z:E)-l[b]/2<0,R=J?L<F?L-F:L-ee:0;return{[m]:y[m]+R,data:{[m]:N,centerOffset:L-N-R,...J&&{alignmentOffset:R}},reset:J}}}),Zs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:d,elements:a}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:l=!0,..._}=Ne(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=ve(r),w=Te(c),C=ve(c)===c,$=await(d.isRTL==null?void 0:d.isRTL(a.floating)),B=y||(C||!l?[ot(c)]:js(c)),W=b!=="none";!y&&W&&B.push(...Gs(c,l,b,$));const V=[c,...B],D=await Dn(t,_),g=[];let z=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&g.push(D[h]),p){const L=qs(r,i,$);g.push(D[L[0]],D[L[1]])}if(z=[...z,{placement:r,overflows:g}],!g.every(L=>L<=0)){var E,F;const L=(((E=s.flip)==null?void 0:E.index)||0)+1,N=V[L];if(N)return{data:{index:L,overflows:z},reset:{placement:N}};let J=(F=z.filter(R=>R.overflows[0]<=0).sort((R,X)=>R.overflows[1]-X.overflows[1])[0])==null?void 0:F.placement;if(!J)switch(m){case"bestFit":{var ee;const R=(ee=z.filter(X=>{if(W){const re=Te(X.placement);return re===w||re==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(re=>re>0).reduce((re,qe)=>re+qe,0)]).sort((X,re)=>X[1]-re[1])[0])==null?void 0:ee[0];R&&(J=R);break}case"initialPlacement":J=c;break}if(r!==J)return{reset:{placement:J}}}return{}}}};async function Qs(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ve(n),c=He(n),d=Te(n)==="y",a=["left","top"].includes(i)?-1:1,f=s&&d?-1:1,p=Ne(t,e);let{mainAxis:y,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}
vendor: 10,901 bytes, line 1
1:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof b=="number"&&(m=c==="end"?b*-1:b),d?{x:m*f,y:y*a}:{x:y*a,y:m*f}}const er=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,d=await Qs(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:s+d.y,data:{...d,placement:i}}}}},tr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:_=>{let{x:h,y:w}=_;return{x:h,y:w}}},...d}=Ne(e,t),a={x:n,y:o},f=await Dn(t,d),p=Te(ve(r)),y=Pn(p);let m=a[y],b=a[p];if(s){const _=y==="y"?"top":"left",h=y==="y"?"bottom":"right",w=m+f[_],C=m-f[h];m=Ct(w,m,C)}if(i){const _=p==="y"?"top":"left",h=p==="y"?"bottom":"right",w=b+f[_],C=b-f[h];b=Ct(w,b,C)}const l=c.fn({...t,[y]:m,[p]:b});return{...l,data:{x:l.x-n,y:l.y-o,enabled:{[y]:s,[p]:i}}}}}};function dt(){return typeof window<"u"}function we(e){return Dt(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(Dt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dt(e){return dt()?e instanceof Node||e instanceof Z(e).Node:!1}function oe(e){return dt()?e instanceof Element||e instanceof Z(e).Element:!1}function ce(e){return dt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function un(e){return!dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function nr(e){return["table","td","th"].includes(we(e))}function ft(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Kt(e){const t=Nt(),n=oe(e)?se(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function or(e){let t=fe(e);for(;ce(t)&&!Oe(t);){if(Kt(t))return t;if(ft(t))return null;t=fe(t)}return null}function Nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oe(e){return["html","body","#document"].includes(we(e))}function se(e){return Z(e).getComputedStyle(e)}function pt(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fe(e){if(we(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||le(e);return un(t)?t.host:t}function Kn(e){const t=fe(e);return Oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&Fe(t)?t:Kn(t)}function Re(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Kn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Z(r);if(s){const c=Bt(i);return t.concat(i,i.visualViewport||[],Fe(r)?r:[],c&&n?Re(c):[])}return t.concat(r,Re(r,[],n))}function Bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nn(e){const t=se(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=nt(n)!==s||nt(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Ht(e){return oe(e)?e:e.contextElement}function $e(e){const t=Ht(e);if(!ce(t))return ae(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Nn(t);let i=(s?nt(n.width):n.width)/o,c=(s?nt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const sr=ae(0);function Hn(e){const t=Z(e);return!Nt()||!t.visualViewport?sr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function ye(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Ht(e);let i=ae(1);t&&(o?oe(o)&&(i=$e(o)):i=$e(e));const c=rr(s,n,o)?Hn(s):ae(0);let d=(r.left+c.x)/i.x,a=(r.top+c.y)/i.y,f=r.width/i.x,p=r.height/i.y;if(s){const y=Z(s),m=o&&oe(o)?Z(o):o;let b=y,l=Bt(b);for(;l&&o&&m!==b;){const _=$e(l),h=l.getBoundingClientRect(),w=se(l),C=h.left+(l.clientLeft+parseFloat(w.paddingLeft))*_.x,$=h.top+(l.clientTop+parseFloat(w.paddingTop))*_.y;d*=_.x,a*=_.y,f*=_.x,p*=_.y,d+=C,a+=$,b=Z(l),l=Bt(b)}}return st({width:f,height:p,x:d,y:a})}function Ft(e,t){const n=pt(e).scrollLeft;return t?t.left+n:ye(le(e)).left+n}function Fn(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:Ft(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function ir(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=le(o),c=t?ft(t.floating):!1;if(o===i||c&&s)return n;let d={scrollLeft:0,scrollTop:0},a=ae(1);const f=ae(0),p=ce(o);if((p||!p&&!s)&&((we(o)!=="body"||Fe(i))&&(d=pt(o)),ce(o))){const m=ye(o);a=$e(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}const y=i&&!p&&!s?Fn(i,d,!0):ae(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-d.scrollLeft*a.x+f.x+y.x,y:n.y*a.y-d.scrollTop*a.y+f.y+y.y}}function ar(e){return Array.from(e.getClientRects())}function cr(e){const t=le(e),n=pt(e),o=e.ownerDocument.body,r=ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Ft(e);const c=-n.scrollTop;return se(o).direction==="rtl"&&(i+=ge(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function lr(e,t){const n=Z(e),o=le(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,d=0;if(r){s=r.width,i=r.height;const a=Nt();(!a||a&&t==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}return{width:s,height:i,x:c,y:d}}function ur(e,t){const n=ye(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ce(e)?$e(e):ae(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,d=r*s.x,a=o*s.y;return{width:i,height:c,x:d,y:a}}function dn(e,t,n){let o;if(t==="viewport")o=lr(e,n);else if(t==="document")o=cr(le(e));else if(oe(t))o=ur(t,n);else{const r=Hn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return st(o)}function zn(e,t){const n=fe(e);return n===t||!oe(n)||Oe(n)?!1:se(n).position==="fixed"||zn(n,t)}function dr(e,t){const n=t.get(e);if(n)return n;let o=Re(e,[],!1).filter(c=>oe(c)&&we(c)!=="body"),r=null;const s=se(e).position==="fixed";let i=s?fe(e):e;for(;oe(i)&&!Oe(i);){const c=se(i),d=Kt(i);!d&&c.position==="fixed"&&(r=null),(s?!d&&!r:!d&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Fe(i)&&!d&&zn(e,i))?o=o.filter(f=>f!==i):r=c,i=fe(i)}return t.set(e,o),o}function fr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?ft(t)?[]:dr(t,this._c):[].concat(n),o],c=i[0],d=i.reduce((a,f)=>{const p=dn(t,f,r);return a.top=ge(p.top,a.top),a.right=Ve(p.right,a.right),a.bottom=Ve(p.bottom,a.bottom),a.left=ge(p.left,a.left),a},dn(t,c,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function pr(e){const{width:t,height:n}=Nn(e);return{width:t,height:n}}function mr(e,t,n){const o=ce(t),r=le(t),s=n==="fixed",i=ye(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=ae(0);if(o||!o&&!s)if((we(t)!=="body"||Fe(r))&&(c=pt(t)),o){const y=ye(t,!0,s,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else r&&(d.x=Ft(r));const a=r&&!o&&!s?Fn(r,c):ae(0),f=i.left+c.scrollLeft-d.x-a.x,p=i.top+c.scrollTop-d.y-a.y;return{x:f,y:p,width:i.width,height:i.height}}function bt(e){return se(e).position==="static"}function fn(e,t){if(!ce(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return le(e)===n&&(n=n.ownerDocument.body),n}function qn(e,t){const n=Z(e);if(ft(e))return n;if(!ce(e)){let r=fe(e);for(;r&&!Oe(r);){if(oe(r)&&!bt(r))return r;r=fe(r)}return n}let o=fn(e,t);for(;o&&nr(o)&&bt(o);)o=fn(o,t);return o&&Oe(o)&&bt(o)&&!Kt(o)?n:o||or(e)||n}const gr=async function(e){const t=this.getOffsetParent||qn,n=this.getDimensions,o=await n(e.floating);return{reference:mr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function _r(e){return se(e).direction==="rtl"}const hr={convertOffsetParentRelativeRectToViewportRelativeRect:ir,getDocumentElement:le,getClippingRect:fr,getOffsetParent:qn,getElementRects:gr,getClientRects:ar,getDimensions:pr,getScale:$e,isElement:oe,isRTL:_r};function vr(e,t){let n=null,o;const r=le(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const{left:a,top:f,width:p,height:y}=e.getBoundingClientRect();if(c||t(),!p||!y)return;const m=Qe(f),b=Qe(r.clientWidth-(a+p)),l=Qe(r.clientHeight-(f+y)),_=Qe(a),w={rootMargin:-m+"px "+-b+"px "+-l+"px "+-_+"px",threshold:ge(0,Ve(1,d))||1};let C=!0;function $(B){const W=B[0].intersectionRatio;if(W!==d){if(!C)return i();W?i(!1,W):o=setTimeout(()=>{i(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver($,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver($,w)}n.observe(e)}return i(!0),s}function yr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,a=Ht(e),f=r||s?[...a?Re(a):[],...Re(t)]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=a&&c?vr(a,n):null;let y=-1,m=null;i&&(m=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&m&&(m.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),a&&!d&&m.observe(a),m.observe(t));let b,l=d?ye(e):null;d&&_();function _(){const h=ye(e);l&&(h.x!==l.x||h.y!==l.y||h.width!==l.width||h.height!==l.height)&&n(),l=h,b=requestAnimationFrame(_)}return n(),()=>{var h;f.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(h=m)==null||h.disconnect(),m=null,d&&cancelAnimationFrame(b)}}const jn=er,br=tr,wr=Zs,xr=Xs,Ar=(e,t,n)=>{const o=new Map,r={platform:hr,...n},s={...r.platform,_c:o};return Js(e,t,{...r,platform:s})};function kr(e){return e!=null&&typeof e=="object"&&"$el"in e}function Vt(e){if(kr(e)){const t=e.$el;return Dt(t)&&we(t)==="#comment"?null:t}return e}function Se(e){return typeof e=="function"?e():u(e)}function Sr(e){return{name:"arrow",options:e,fn(t){const n=Vt(Se(e.element));return n==null?{}:xr({element:n,padding:e.padding}).fn(t)}}}function Un(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Un(e);return Math.round(t*n)/n}function Gn(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=S(()=>{var V;
1return(V=Se(n.open))!=null?V:!0}),s=S(()=>Se(n.middleware)),i=S(()=>{var V;return(V=Se(n.placement))!=null?V:"bottom"}),c=S(()=>{var V;return(V=Se(n.strategy))!=null?V:"absolute"}),d=S(()=>{var V;return(V=Se(n.transform))!=null?V:!0}),a=S(()=>Vt(e.value)),f=S(()=>Vt(t.value)),p=I(0),y=I(0),m=I(c.value),b=I(i.value),l=Oo({}),_=I(!1),h=S(()=>{const V={position:m.value,left:"0",top:"0"};if(!f.value)return V;const D=pn(f.value,p.value),g=pn(f.value,y.value);return d.value?{...V,transform:"translate("+D+"px, "+g+"px)",...Un(f.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:D+"px",top:g+"px"}});let w;function C(){if(a.value==null||f.value==null)return;const V=r.value;Ar(a.value,f.value,{middleware:s.value,placement:i.value,strategy:c.value}).then(D=>{p.value=D.x,y.value=D.y,m.value=D.strategy,b.value=D.placement,l.value=D.middlewareData,_.value=V!==!1})}function $(){typeof w=="function"&&(w(),w=void 0)}function B(){if($(),o===void 0){C();return}if(a.value!=null&&f.value!=null){w=o(a.value,f.value,C);return}}function W(){r.value||(_.value=!1)}return G([s,i,c,r],C,{flush:"sync"}),G([a,f],B,{flush:"sync"}),G(r,W,{flush:"sync"}),Io()&&Eo($),{x:ke(p),y:ke(y),strategy:ke(m),placement:ke(b),middlewareData:ke(l),isPositioned:ke(_),floatingStyles:h,update:C}}const Cr={key:0,class:"base-autocomplete"},$r={key:1,class:"empty"},Br=U({__name:"Autocomplete",props:Bn({reference:{},position:{default:"bottom"},offset:{default:0},items:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=I();It(()=>{n.value=Wo(t.reference)});const o=I(null),{floatingStyles:r}=Gn(n,o,{placement:t.position,middleware:[jn(t.offset)]}),s=Vn(e,"modelValue");return Lo(o,()=>{s.value=!1}),(i,c)=>s.value?(v(),k("div",Cr,[A("div",{ref_key:"floating",ref:o,class:"autocomplete-list",style:tt(u(r))},[i.items.length>0?(v(!0),k(he,{key:0},Be(i.items,(d,a)=>(v(),k("div",{key:a,class:j(["autocomplete-item",{subtitle:!!d.subtitle}])},[et(i.$slots,"default",{item:d},void 0,!0)],2))),128)):(v(),k("div",$r,[et(i.$slots,"empty",{},void 0,!0)]))],4)])):O("",!0)}}),Vr=Y(Br,[["__scopeId","data-v-eebf21ae"]]),Tr={class:"app-header-search"},Or={class:"icon-location"},Ir=["readonly","placeholder"],Er=["onClick"],Wr={key:0,class:"top-content"},Lr={class:"main-content"},Mr=["src","alt"],Pr={class:"title"},Rr=U({__name:"Search",emits:["blur","focus"],setup(e,{emit:t}){const n=t,{t:o}=at(),{basket:r}=Q(De()),s=ue(),{useSearch:i}=s.skin.configuration,c=Wn(),{getAvailabilityStatus:d}=ms(),a=()=>{window.postMessage({smartomato:{send:["openModal","order-modal","section.address"]}},"*")},f=()=>{i?V.value=l.value.length>0:a()},p=()=>{i||n("focus")},y=()=>{i||n("blur")},m=S(()=>i?_s:gs),b=S(()=>o(i?"placeholders.search":"placeholders.address")),l=I("");G(r,E=>{E.address&&!i&&(l.value=E.addressOrTakeaway)});const _=Tn(),h=Ke(),w=I(!1),C=()=>{!l.value||l.value.length<3||(w.value=!0,sn(()=>{_.push({name:Ko.menuSearch,query:{...h.query,query:l.value}}),l.value="",w.value=!1},500)())},{menu:$}=Q(ct()),B=S(()=>$.value.flatMap(E=>{const F=E.name.toLowerCase().includes(l.value.toLowerCase()),ee=E.categoryDishes.filter(R=>R.name.toLowerCase().includes(l.value.toLowerCase())),L=(F?E.categoryDishes:ee).filter(R=>{const X=c.getAvailabilty(R.id);return d(X.status)!==Mo.notAvailable}),N={subtitle:E.name,value:`${E.name} ${E.comment||""}`,path:`/menu/${E.slug||E.id}`},J=L.map(R=>({title:R.name,value:`${R.name} ${R.description||""} ${R.tags||""}`,image:R.photo.webp,path:`/menu/${E.slug||E.id}/${R.slug||R.id}`}));return F||L.length>0?[N,...J]:[]})),W=I(),V=I(!1),D=()=>{if(w.value||!l.value||!i||l.value.length<3){V.value=!1,w.value=!1;return}w.value=!0,sn(()=>{V.value=!0,w.value=!1},500)()},g=E=>{l.value="",Do(E),V.value=!1},z=I();return G(V,async E=>{E&&(await At(),z.value.focus())}),(E,F)=>{const ee=Ln,L=Vr;return v(),k("div",Tr,[u(w)?(v(),H(ee,{key:0,indeterminate:""})):O("",!0),A("div",{ref_key:"searchElement",ref:W,class:j(["location",{search:u(i),loading:u(w)}])},[A("span",Or,[(v(),H(Ot(u(m))))]),Et(A("input",{ref_key:"searchInput",ref:z,"onUpdate:modelValue":F[0]||(F[0]=N=>kt(l)?l.value=N:null),readonly:!u(i),type:"text",placeholder:u(b),onClick:ne(f,["prevent"]),onFocus:p,onBlur:y,onKeyup:Ro(C,["enter"]),onInput:D},null,40,Ir),[[Po,u(l)]]),u(i)?(v(),k("a",{key:0,href:"#",class:j(["search-button",{disabled:!u(l)}]),onClick:ne(C,["stop"])},P(u(o)("search.button")),3)):O("",!0),M(Wt,{name:"fade"},{default:ie(()=>[u(V)?(v(),H(L,{key:0,modelValue:u(V),"onUpdate:modelValue":F[1]||(F[1]=N=>kt(V)?V.value=N:null),reference:u(W),items:u(B)},{default:ie(({item:N})=>[A("div",{class:"search-item",onClick:J=>g(N.path)}
1,[N.subtitle?(v(),k("div",Wr,P(N.subtitle),1)):O("",!0),A("div",Lr,[N.image?(v(),k("img",{key:0,src:N.image,alt:N.title,loading:"lazy",quality:"20",class:"item-image"},null,8,Mr)):O("",!0),A("div",Pr,P(N.title),1)])],8,Er)]),empty:ie(()=>[Pe(P(u(o)("search.emptyResult")),1)]),_:1},8,["modelValue","reference","items"])):O("",!0)]),_:1})],2)])}}}),Dr=Y(Rr,[["__scopeId","data-v-c5803928"]]),Kr={class:"holder-location"},Nr={key:0},Hr={key:0,class:"no-city"},Fr={key:1,class:"city"},zr=U({__name:"Location",emits:["blur","focus"],setup(e,{emit:t}){const n=t,o=ue(),r=o.skin.configuration,{basketInfoShowed:s}=Q(o),{basket:i}=Q(De()),{organization:c}=be(),d=Tn(),a=Ke(),f=lt("prevCity","");G(i,async m=>{var _;if(!m.city)return;const b=c.configuration.cities,l=(_=b.find(h=>h.slug===a.query.city))==null?void 0:_.name;if(r.useAnalyticsByCity&&m.city!==l){f.value=m.city;const h=b.find(w=>w.name===m.city).slug;await d.push({path:a.fullPath,query:{...a.query,city:h}}),window.location.reload()}},{deep:!0});const p=r.useCityBlock?"city-select":null,y=()=>{window.postMessage({smartomato:{send:["openModal","city-select-modal"]}},"*")};return(m,b)=>{const l=Dr;return v(),k("div",{class:j(["header-location",u(p),{"loading-skeleton":!u(s)}])},[A("div",Kr,[u(r).useCityBlock?(v(),k("div",Nr,[A("a",{class:"city-drop",href:"#",onClick:ne(y,["prevent"])},[u(i).city?(v(),k("span",Fr,P(u(i).city),1)):(v(),k("span",Hr,P(m.$t("basket.city")),1)),M(u(hs))])])):O("",!0),M(l,{onBlur:b[0]||(b[0]=_=>n("blur")),onFocus:b[1]||(b[1]=_=>n("focus"))})])],2)}}}),qr=Y(zr,[["__scopeId","data-v-6f00a4ee"]]),jr={class:"tooltip-content"},Ur={key:0,class:"tooltip-title"},Gr={key:1,class:"tooltip-text"},Yr=U({__name:"Tooltip",props:{parent:{},title:{},text:{}},emits:["close"],setup(e,{emit:t}){const n={top:"bottom",right:"left",bottom:"top",left:"right"},o=e,r=t,s=I(null),i=I(null),{x:c,y:d,strategy:a,placement:f,middlewareData:p}=Gn(I(o.parent),s,{placement:"bottom",middleware:[jn(20),wr(),br(),Sr({element:i})],whileElementsMounted:yr}),y=S(()=>f.value.split("-")[0]),m=S(()=>`${d.value??0}px`),b=S(()=>`${c.value??0}px`),l=S(()=>{var $;return(($=p.value.arrow)==null?void 0:$.x)??null}),_=S(()=>{var $;return(($=p.value.arrow)==null?void 0:$.y)??null}),h=S(()=>_.value?`${_.value}px`:""),w=S(()=>l.value?`${l.value}px`:""),C=S(()=>({[n[y.value]]:"0px"}));return($,B)=>(v(),k("div",{ref_key:"tooltip",ref:s,class:"base-tooltip",style:tt({position:u(a),top:u(m),left:u(b)})},[A("div",{class:"button-close",onClick:B[0]||(B[0]=W=>r("close"))},[M(u(Lt),{class:"close-icon"})]),A("div",jr,[$.title?(v(),k("span",Ur,P($.title),1)):O("",!0),$.text?(v(),k("span",Gr,P($.text),1)):O("",!0)]),A("div",{ref_key:"arrowEl",ref:i,class:j(["tooltip-arrow",u(y)]),style:tt({top:u(h),left:u(w),...u(C)})},null,6)],4))}}),Jr=Y(Yr,[["__scopeId","data-v-f516b269"]]),Xr={class:"header-basket"},Zr={class:"holder-basket"},Qr={key:0,class:"user-block-wrapper"},ei={key:1},ti={class:"txt-basket"},ni={class:"sum"},oi=U({__name:"Basket",setup(e){const t=be(),n=De(),o=ue(),{basketInfoShowed:r}=Q(o),s=()=>{window.postMessage({smartomato:{send:["openModal","order-modal"]}},"*")},{basket:i}=Q(n),c=S(()=>{var _;return(_=i.value.items)==null?void 0:_.reduce((h,w)=>(h+=w.metric?1:w.amount,h),0)}),d=S(()=>n.basket.totalPrice.toString().length>5),a=_=>{const{code:h,precision:w}=t.organization.configuration.currency,C=t.organization.configuration.i18n.locale;return No(_,C,h,w)},f=S(()=>c.value===0&&!i.value.totalPrice),p=I(),y=I(!0),m=S(()=>p.value&&l.value&&y.value),b=()=>{y.value=!1},l=I("");return G(()=>i.value.errors,_=>{const h=_.find(w=>w.code==="containsNotAvailableDishes"||w.text);l.value=(h==null?void 0:h.text)||"",y.value=!0},{deep:!0,immediate:!0}),(_,h)=>{var $;const w=Mn,C=Jr;return v(),k("div",Xr,[A("div",Zr,[($=u(t).organization)!=null&&$.configuration.clientCabinetEnabled?(v(),k("div",Qr,[M(w)])):(v(),k("span",ei)),A("div",{class:j(["basket-block",{"loading-skeleton":!u(r)}])},[A("a",{ref_key:"basketElement",ref:p,href:"#",class:j(["basket",{disabled:u(f)}]),onClick:ne(s,["prevent"])},[A("span",ti,P(_.$t("buttons.basket")),1),A("span",ni,[u(n).basket.totalPrice?(v(),k("span",{key:0,class:j(["value",{long:u(d)}])},P(a(u(n).basket.totalPrice)),3)):O("",!0),A("span",{class:j(["quantity",{loading:u(n).loading}])},P(u(c)),3)])],2),M(Wt,{name:"fade"},{default:ie(()=>[u(m)?(v(),H(C,{key:0,parent:u(p),text:u(l),onClose:b},null,8,["parent","text"])):O("",!0)]),_:1})],2)])])}}}),si=Y(oi,[["__scopeId","data-v-ad29eac9"]]),ri={class:"app-header-logo"},ii={class:"logo"},ai={key:0,class:"logo-img"},ci=["src","alt"],li={key:1},ui={class:"logo-text"},di=U({__name:"Logo",setup(e,{expose:t}){const{skin:n}=ue(),{organization:o}=be(),r=I(null);return t({burgerButtonRef:r}),(s,i)=>{const c=En;return v(),k("div",ri,[M(c,{to:"/"},{default:ie(()=>[A("div",ii,[u(o).logo.original?(v(),k("div",ai,[A("img",{loading:"lazy",src:u(o).logo.original,alt:u(o).organizationName}
1,null,8,ci)])):O("",!0),u(n).configuration.useLogoText?(v(),k("div",li,[A("strong",ui,P(u(o).organizationName),1)])):O("",!0)])]),_:1}),M(vs,{ref_key:"burgerButtonRef",ref:r},null,512)])}}}),mn=Y(di,[["__scopeId","data-v-afb15cdd"]]),fi={class:"container"},pi={class:"logo-basket"},mi={class:"holder-logo"},gi=U({__name:"Header",props:{fixed:{type:Boolean}},setup(e){const t=e,n=Ke(),o=ue(),{menu:r}=Q(ct()),{organization:s}=be(),{showSlider:i}=St(),{isSideCategoriesSlider:c}=St(),d=S(()=>i.value&&!c.value),a=I(),f=I(null),p=S(()=>{var B;return(B=r.value)==null?void 0:B.find(W=>W.slug?W.slug===n.params.category:W.id===Number(n.params.category))}),y=()=>{var B;(B=a.value)==null||B.classList.remove("focus")},m=()=>{var B;(B=a.value)==null||B.classList.add("focus")},{skinBlockedState:b,isVkMiniApp:l}=Q(o),{width:_}=Ho(),h=S(()=>_.value<=1023),w=S(()=>h.value||l.value),C=I(!0);It(()=>{var B;Fo((B=f.value)==null?void 0:B.burgerButtonRef,([W])=>{C.value=W.isIntersecting})});const $=S(()=>t.fixed&&!C.value);return(B,W)=>{var F;const V=Hs,D=fs,g=qr,z=si,E=ys;return v(),k("header",{id:"header",ref:"header",class:j(["app-header",{fixed:u($),"with-slider":u(d)}])},[M(D,null,{default:ie(()=>[Et(M(V,null,null,512),[[On,u(w)]])]),_:1}),A("div",{ref_key:"bottomHeader",ref:a,class:j(["bottom-header",{"no-logo":!u(s).logo.original}])},[A("div",fi,[A("div",pi,[A("div",mi,[M(mn,{ref_key:"headerLogoRef",ref:f},null,512),u(b)?O("",!0):(v(),H(g,{key:0,onBlur:y,onFocus:m}))]),u(b)?O("",!0):(v(),H(z,{key:0}))]),u(i)?(v(),H(E,{key:0,"parent-id":(F=u(p))==null?void 0:F.id},null,8,["parent-id"])):(v(),H(mn,{key:1,class:"mobile-header"}))])],2)],2)}}}),_i=Y(gi,[["__scopeId","data-v-62cd90ad"]]),hi={class:"app-concept-block"},vi={class:"concept"},yi={class:"container"},bi={class:"logo-concept"},wi=["src","alt"],xi={class:"holder-test"},Ai={class:"text"},ki={class:"author"},Si=U({__name:"ConceptBlock",setup(e){const n=ue().skin.concept;return(o,r)=>(v(),k("div",hi,[A("div",vi,[A("div",yi,[A("div",bi,[u(n).logo?(v(),k("img",{key:0,loading:"lazy",src:u(n).logo,alt:u(n).organizationName,class:"logo-image"},null,8,wi)):O("",!0),Pe(" "+P(u(n).organizationName),1)]),A("div",xi,[A("div",Ai,[A("p",null,P(u(n).content),1)])]),A("div",ki,[A("strong",null,P(u(n).author.name),1),A("span",null,P(u(n).author.role),1)])])])]))}}),Ci=Y(Si,[["__scopeId","data-v-13a2c9f0"]]),$i={class:"langs-choose-container"},Bi=["onClick"],Vi={class:"langs-image"},Ti={class:"langs-text"},Oi=U({__name:"LangsChoosePopup",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:Bn(["localeIsSet"],["update:modelValue"]),setup(e,{emit:t}){const n=t,o=Vn(e,"modelValue"),{filteredLangs:r,changeCurrentLocale:s}=In(),i=c=>{s(c),n("localeIsSet")};return(c,d)=>{const a=xs;return v(),H(a,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),"show-close-icon":!1,"min-width":"unset"},{default:ie(()=>[A("div",$i,[(v(!0),k(he,null,Be(u(r),(f,p)=>(v(),k("div",{key:f.name,class:"langs-item"},[A("a",{href:"#",onClick:ne(y=>i(p),["stop"])},[A("div",Vi,[(v(),H(Ot(f.icon)))]),A("div",Ti,P(f.name),1)],8,Bi)]))),128))])]),_:1},8,["modelValue"])}}}),Ii=Y(Oi,[["__scopeId","data-v-472f091d"]]),Ei={class:"content"},Wi={key:0,class:"image"},Li=["src"],Mi=["innerHTML"],Pi={key:0,class:"actions"},Ri=["onClick"],Di=U({__name:"Alert",props:{variant:{default:ut.default},text:{},image:{},timer:{},once:{type:Boolean},closable:{type:Boolean,default:!0},actions:{}},emits:["close"],setup(e,{emit:t}){const n=e,o=t,r=s=>{s(),o("close")};return(s,i)=>(v(),k("div",{ref:"alert",class:j(["base-alert",s.variant,{"no-close":!n.closable}])},[A("div",Ei,[n.image&&n.image.large?(v(),k("div",Wi,[A("img",{src:n.image.large,loading:"lazy"},null,8,Li)])):O("",!0),A("div",null,[A("div",{class:"text",innerHTML:n.text},null,8,Mi),n.actions?(v(),k("div",Pi,[(v(!0),k(he,null,Be(s.actions,c=>(v(),k("div",{key:c.name,class:"action"},[A("div",{class:j(["action-button",{"action-button--secondary":c.secondary}]),onClick:ne(d=>r(c.action),["stop"])},P(c.name),11,Ri)]))),128))])):O("",!0)])]),n.closable?(v(),k("div",{key:0,class:"button-close",onClick:i[0]||(i[0]=c=>o("close"))},[M(u(Lt),{class:"close-icon"})])):O("",!0),et(s.$slots,"default",{},void 0,!0)],2))}}),Ki=Y(Di,[["__scopeId","data-v-ebdf3d95"]]);let Yn=0;const Ie=I(new Map),Jn=lt("viewedAlerts",[]),rt=lt("viewedAlertsById",[]),Ni=e=>{const{isDesktop:t}=Mt(),n=Yn++;e.once&&Jn.value.includes(n)||e.variant===ut.app&&t||(Ie.value.set(n,e),e.timer&&setTimeout(()=>{Ie.value.delete(n)},e.timer))},Hi=(e,t)=>{if(rt.value.includes(e))return;const{isDesktop:n}=Mt();if(t.variant===ut.app&&n)return;const o=Yn++;Ie.value.set(o,t),t.once&&rt.value.push(e),t.timer&&setTimeout(()=>{Ie.value.delete(o)},t.timer)},Fi=(e,t)=>{t&&Jn.value.push(e),Ie.value.delete(e)},zi=e=>{rt.value.includes(e)||rt.value.push(e)},Xn=()=>({alerts:Ie,showAlert:Ni,showAlertOnce:Hi,closeAlert:Fi,markAlertAsViewed:zi}),qi=U({__name:"AlertContainer",setup(e){const{alerts:t,closeAlert:n}=Xn(),o=(s,i)=>{n(s,i)},r=s=>typeof s!="object"?{large:null}:s;return(s,i)=>{const c=Ki;return v(),H(zo,{class:"base-alert-container",tag:"div",name:"fade-cookie
1s"},{default:ie(()=>[(v(!0),k(he,null,Be(u(t),([d,a])=>(v(),H(c,{key:d,text:a.text,image:r(a.image),closable:a.closable,actions:a.actions,once:a.once,variant:a.variant,timer:a.timer,onClose:f=>o(d,a.once)},null,8,["text","image","closable","actions","once","variant","timer","onClose"]))),128))]),_:1})}}}),ji={},Ui={class:"base-story-container"};function Gi(e,t){return v(),k("div",Ui)}const Yi=Y(ji,[["render",Gi],["__scopeId","data-v-a89ab4d5"]]),Ji=["aria-busy"],Xi={class:"loader-content"},Zi={class:"loader-text"},Qi=U({__name:"CategoryNavigationLoader",setup(e){const{t}=at(),{isLoadingAnyCategory:n}=ps(),o=S(()=>n());return(r,s)=>{const i=Ln;return v(),H(Wt,{name:"fade"},{default:ie(()=>[u(o)?(v(),k("div",{key:0,class:"category-navigation-loader",role:"status","aria-live":"polite","aria-busy":u(o)},[A("div",Xi,[M(i,{variant:"large",indeterminate:!0,position:"default",class:"loader-spinner"}),A("p",Zi,P(u(t)("category.loading")),1)])],8,Ji)):O("",!0)]),_:1})}}}),ea=Y(Qi,[["__scopeId","data-v-6e2aa4c6"]]);function ta(e){const t=(e.innerHTML||"").toLowerCase();return(e.src||"").toLowerCase().includes("mc.yandex.ru")||t.includes("mc.yandex.ru")||t.includes("yandex.ru/metrika")}function na(e){const t=(e.innerHTML||"").toLowerCase();return t.includes("mc.yandex.ru")||t.includes("yandex.ru/watch")}const oa="legal";function gn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function sa(e){return e.parentSlug?`/${e.parentSlug}/${e.slug}`:`/${e.slug}`}function Zn(e){var n,o;if(!(e!=null&&e.length))return[];const t=[];for(const r of e)(n=r.menuScopes)!=null&&n.includes(oa)&&t.push(r),(o=r.sections)!=null&&o.length&&t.push(...Zn(r.sections));return t}function ra(e,t){const n=e.length;if(n===0)return"";if(n===1)return e[0];if(n===2)return`${e[0]} ${t} ${e[1]}`;const o=e.slice(0,-1).join(", "),r=e[n-1];return`${o} ${t} ${r}`}function ia(e,t){const n=Zn(e);if(!n.length)return"";const o=n.map(r=>{const s=gn(r.title||r.name);return`<a class="alert-link" rel="nofollow" href="${gn(sa(r))}">${s}</a>`});return ra(o,t)}var it=function(){return it=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},it.apply(this,arguments)};function aa(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function ca(e,t,n,o){function r(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function c(f){try{a(o.next(f))}catch(p){i(p)}}function d(f){try{a(o.throw(f))}catch(p){i(p)}}function a(f){f.done?s(f.value):r(f.value).then(c,d)}a((o=o.apply(e,[])).next())})}function la(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(a){return function(f){return d([a,f])}}function d(a){if(o)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(n=0)),n;)try{if(o=1,r&&(s=a[0]&2?r.return:a[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;switch(r=0,s&&(a=[a[0]&2,s.value]),a[0]){case 0:case 1:s=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,r=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1],s=a;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(a);break}s[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(f){a=[6,f],r=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Tt(e,t,n){for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}function ua(){return{current:0,next:function(){return++this.current}}}function da(e){var t=ua(),n={};return{add:function(o,r){var s=r??"".concat(t.next(),"_").concat(e);return n[s]=o,s},resolve:function(o,r,s){var i=n[o];i&&(s(r)?i.resolve(r):i.reject(r),n[o]=null)}}}function fa(e,t,n){var o=da(n);return t(function(r){if(!(!r.detail||!r.detail.data||typeof r.detail.data!="object")&&"request_id"in r.detail.data){var s=r.detail.data,i=s.request_id,c=aa(s,["request_id"]);i&&o.resolve(i,c,function(d){return!("error_type"in d)})}}),function(s,i){return i===void 0&&(i={}),new Promise(function(c,d){var a=o.add({resolve:c,reject:d},i.request_id);e(s,it(it({},i),{request_id:a}))})}}function pa(){var e=36,t=2,n=3;return Math.random().toString(e).substring(t,t+n)}var ze=typeof window<"u",Me=!!(ze&&window.AndroidBridge),Ce=!!(ze&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),wt=!!(ze&&window.ReactNativeWebView&&typeof window.ReactNativeWebView.postMessage=="function"),_e=ze&&!Me&&!Ce,ma=_e&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),ga=_e&&!ma,_n=_e?"message":"VKWebAppEvent",_a=Tt(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunc
1hParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowSlidesSheet","VKWebAppTranslate","VKWebAppRecommend","VKWebAppAddToProfile","VKWebAppGetFriends"],ga?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppShowCommunityWidgetPreviewBox","VKWebAppCallStart","VKWebAppCallJoin","VKWebAppCallGetStatus"]:["VKWebAppShowImages"]),pe,Le=ze?window.AndroidBridge:void 0,me=Ce?window.webkit.messageHandlers:void 0,xt=_e?parent:void 0;function ha(e){var t=void 0,n=[],o=pa();function r(l,_){Le&&Le[l]?Le[l](JSON.stringify(_)):me&&me[l]&&typeof me[l].postMessage=="function"?me[l].postMessage(_):wt?window.ReactNativeWebView.postMessage(JSON.stringify({handler:l,params:_})):xt&&typeof xt.postMessage=="function"&&xt.postMessage({handler:l,params:_,type:"vk-connect",webFrameId:t,connectVersion:e},"*")}function s(l){n.push(l)}function i(l){var _=n.indexOf(l);_>-1&&n.splice(_,1)}function c(l){return console.warn("This method is deprecated. Use supportsAsync instead."),Me?!!(Le&&typeof Le[l]=="function"):Ce?!!(me&&me[l]&&typeof me[l].postMessage=="function"):_e?_a.includes(l):!1}function d(){return Ce||Me}function a(){return _e&&window.parent!==window}function f(){return d()||a()}function p(){return!f()}function y(l){if(Ce||Me)return Tt([],n).map(function($){return $.call(null,l)});var _=l==null?void 0:l.data;if(!(!_e||!_)){if(wt&&typeof _=="string")try{_=JSON.parse(_)}catch{}var h=_.type,w=_.data,C=_.frameId;if(h){if(h==="VKWebAppSettings"){t=C;return}Tt([],n).map(function($){return $({detail:{type:h,data:w}})})}}}wt&&/(android)/i.test(navigator.userAgent)?document.addEventListener(_n,y):typeof window<"u"&&"addEventListener"in window&&window.addEventListener(_n,y);var m=fa(r,s,o);function b(l){return ca(this,void 0,void 0,function(){var _;return la(this,function(h){switch(h.label){case 0:if(Me||Ce)return[2,c(l)];if(pe)return[2,pe.includes(l)];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,m("SetSupportedHandlers")];case 2:return _=h.sent(),pe=_.supportedHandlers,[2,pe.includes(l)];case 3:return h.sent(),pe=["VKWebAppInit"],[2,pe.includes(l)];case 4:return[2]}})})}return s(function(l){if(l.detail)switch(l.detail.type){case"SetSupportedHandlers":pe=l.detail.data.supportedHandlers}}),{send:m,sendPromise:m,subscribe:s,unsubscribe:i,supports:c,supportsAsync:b,isWebView:d,isIframe:a,isEmbedded:f,isStandalone:p}}var va="2.15.3",hn;(function(e){e.REWARD="reward",e.INTERSTITIAL="interstitial"})(hn||(hn={}));var vn;(function(e){e.RESIZE="resize",e.OVERLAY="overlay"})(vn||(vn={}));var yn;(function(e){e.TOP="top",e.BOTTOM="bottom"})(yn||(yn={}));var bn;(function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center"})(bn||(bn={}));var wn;(function(e){e.COMPACT="compact",e.REGULAR="regular"})(wn||(wn={}));var xn;(function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"})(xn||(xn={}));var An;(function(e){e.CAMERA="camera",e.LOCATION="location",e.PHOTO="photo"})(An||(An={}));var kn;(function(e){e.RU="ru",e.UK="uk",e.UA="ua",e.EN="en",e.BE="be",e.KZ="kz",e.PT="pt",e.ES="es"})(kn||(kn={}));var Sn;(function(e){e.ADMIN="admin",e.EDITOR="editor",e.MEMBER="member",e.MODER="moder",e.NONE="none"})(Sn||(Sn={}));var Cn;(function(e){e.DESKTOP_WEB="desktop_web",e.DESKTOP_WEB_MESSENGER="desktop_web_messenger",e.DESKTOP_APP_MESSENGER="desktop_app_messenger",e.MOBILE_WEB="mobile_web",e.MOBILE_ANDROID="mobile_android",e.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",e.MOBILE_IPHONE="mobile_iphone",e.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",e.MOBILE_IPAD="mobile_ipad"})(Cn||(Cn={}));var $n=ha(va);const ya={key:1,id:"wrapper"},ba=["innerHTML"],lc=U({__name:"default",async setup(e){let t,n;function o(x){return x==null||typeof x!="object"||Array.isArray(x)?!1:Object.keys(x).length>0}const r=os(),s=at(),c=We("userLocale",{sameSite:!0}).value||s.locale.value;[t,n]=de(()=>$fetch("/api/payload/get",{headers:{nuxtInternalReq:"true",...r},params:{internal:!0,currentLocale:c}})),await t,n();const d=([t,n]=de(()=>$fetch("/api/common",{headers:{...r,nuxtInternalReq:"true"},params:{currentLocale:c}})),t=await t,n(),t),a=(x,T,K)=>{let q=x;
1T.slice(0,-1).forEach(te=>{q[te]||(q[te]={}),q=q[te]}),q[T[T.length-1]]=K},f=x=>{const T={};return Object.keys(x).forEach(K=>{const q=K.split(".");a(T,q,x[K])}),T};if(Object.keys(d.externalTranslations||{}).length){const x=s.messages.value;if(Object.keys(x).length){const T=f(d.externalTranslations);Object.keys(x).forEach(K=>s.mergeLocaleMessage(K,T))}}const p=ue(),y=be(),m=Cs(),b=ct(),l=Ke(),_=We("restId",{sameSite:!0}),h=We("basketId",{sameSite:!0}),w=I(!1),{burgerOpened:C,popupOpened:$,skinBlockedState:B,displayStories:W,isVkMiniApp:V}=Q(p);[t,n]=de(()=>p.getSkin()),await t,n(),[t,n]=de(()=>y.getOrganization()),await t,n(),[t,n]=de(()=>m.getPages()),await t,n();const{getFetchedAvailability:D}=Wn();if(_.value&&([t,n]=de(()=>D()),await t,n()),G(()=>_.value,async()=>{await D()}),h.value){const{getFetchedBasketData:x}=De();[t,n]=de(()=>x()),await t,n()}[t,n]=de(()=>b.getMenu()),await t,n();const{skin:g,faviconHref:z,setScrollState:E,setVkMiniAppState:F}=p,{setStoriesState:ee}=As(),{promoSlides:L}=bs(),N=S(()=>!L.value||!Array.isArray(L.value)?[]:L.value.filter(x=>!x||!x.storyFrames?!1:Array.isArray(x.storyFrames)&&x.storyFrames.length>0));G(N,x=>{ee(x||[])},{immediate:!0});const{organizationName:J,analytics:R,html:X,host:re,configuration:{isPublished:qe,tosLink:mt,tos2Link:Qn}}=y.organization,je=We("cookiesAccepted",{sameSite:!0}),zt=We("cookiesDeclined",{sameSite:!0}),Ue=S(()=>(g==null?void 0:g.configuration.useTermsConsentOnEntry)===!0),gt=S(()=>Ue.value&&!qo(je.value)),eo=S(()=>g.configuration.useAnalyticsByCity&&g.analyticsByCity&&g.analyticsByCity[l.query.city]||R),qt=S(()=>{const x=eo.value;return gt.value?{...x,yandexMetrika:""}:x}),{isDesktop:to}=Mt(),no=S(()=>{const{useYandexVerification:x,useGoogleVerification:T}=(g==null?void 0:g.configuration)||{},K=[];return x&&K.push({hid:"yandex-verification",name:"yandex-verification",content:x}),T&&K.push({hid:"google-verification",name:"google-site-verification",content:T}),K.length>0?K:[]}),{scripts:jt,styles:oo,metas:so,noscripts:Ut,links:ro}=jo(X.head),io=ro.filter(o),ao=so.filter(o),Gt=oo.filter(o),co=S(()=>gt.value?jt.filter(x=>!ta(x)):jt),Yt=S(()=>gt.value?Ut.filter(x=>!na(x)):Ut),lo=S(()=>{const x={};return Object.keys(yt).forEach(T=>{const K=yt[T];if(T===yt.cardsViewVariant){const q=g==null?void 0:g.configuration[T],te=Uo[q];te&&(x[te]=!0)}else g!=null&&g.configuration[T]&&(x[K]=!0)}),x}),uo=S(()=>l.fullPath==="/"),fo=S(()=>{var x;if(typeof g.configuration.backgroundImage!="string")return`background: ${g.configuration.useFullWidthBackgroundImage?"no-repeat center/cover":""} url(${(x=g.configuration.backgroundImage)==null?void 0:x.large})`}),po=S(()=>{const T=[co.value,g!=null&&g.configuration.previewMode?[]:rn(qt.value).scripts].flat().filter(o);return T.forEach(K=>Object.assign(K,{body:!0})),T}),mo=S(()=>(g!=null&&g.configuration.previewMode?Yt.value:[...rn(qt.value).noscripts,...Yt.value]).filter(o)),go=I(),Ee=I(),{y:xe,isScrolling:Jt}=an(Ee),_o=()=>{const{y:x}=an(Ee,{behavior:"smooth"});x.value=0};G(Jt,()=>{E(Jt.value)}),Go(xe,x=>{var T;Ee.value&&(w.value=x>((T=Ee.value.offsetParent)==null?void 0:T.offsetTop))});const{isSideCategoriesSlider:ho}=St();Yo(()=>({link:[{href:g.cssUrl,rel:"stylesheet"},{rel:"icon",type:"image/x-icon",href:z},{rel:"preconnect",href:"//smartomato.ams3.cdn.digitaloceanspaces.com"},{rel:"preconnect",href:"//smartomato.ru"},{rel:"dns-prefetch",href:"//smartomato.ru"},...io,...g!=null&&g.configuration.usePwa?[{rel:"manifest",href:"/manifest.json"}]:[]],title:J,bodyAttrs:{class:{"fixed-header":w,"fixed-scroll":C,"has-popup":$,"has-stories":W,"menu-page":uo,"blocked-state":B,"side-slider":ho,"vk-mini-app":V,arabian:c===Jo.ar,...lo.value}},script:po.value,noscript:mo.value,style:g!=null&&g.configuration.previewMode?Gt:[...g!=null&&g.customCss?[{innerHTML:g.customCss}]:[],...Gt],meta:[...ao,...no.value,{name:"og:type",property:"og:type",content:"website"},{name:"og:url",property:"og:url",content:`https://${re}`}]}));const{showAlert:Xt}=Xn(),Zt=I(!1),Ge=I(!1),{showPopup:Qt,popupProps:vo,blockedPopupShowed:en,startPopupShowed:tn}=ws(),Ye=y.organization.applications,yo=S(()=>/iPad|iPhone|iPod/.test(navigator.userAgent)?cn(Ye.apple,!1,!0):cn(Ye.android));It(async()=>{var K,q,te,Je,Xe;const x=(K=L.value)==null?void 0:K.find(Ae=>Ae.hasPopupOnStart),T=(q=L.value)==null?void 0:q.find(Ae=>Ae.popupIsBlocking);if(g!=null&&g.configuration.useLangsPopupOnStart&&!nn.value&&(Ge.value=!0),x&&!tn.value&&(Qt(x),tn.value=!0),T&&!en.value&&!(g!=null&&g.configuration.useAgeRestrictionPopup)&&(Qt
1(T),en.value=!0),!((Je=(te=window==null?void 0:window.location)==null?void 0:te.search)!=null&&Je.includes("vk_app_id"))&&!je.value&&(Ue.value?!zt.value:!0)&&!Zt.value){Zt.value=!0;const _t=Qn||mt,Ze=ia(m.pages,s.t("cookiesLegalLinksAnd")),ht=Ue.value?Ze?`${s.t("cookiesTermsConsentLegalIntro")} ${Ze}.`:s.t("cookiesTermsConsent",{link:mt,link2:_t}):s.t("cookies",{link:mt});Xt({text:ht,image:{large:"/images/cookie.png"},actions:Ue.value?[{name:s.t("cookiesDecline"),secondary:!0,action:()=>{zt.value="1"}},{name:s.t("cookiesAccept"),action:()=>{je.value="1"}}]:[{name:s.t("cookiesAccept"),action:()=>{je.value="1"}}],closable:!1})}(Ye.android||Ye.apple)&&((Xe=g==null?void 0:g.configuration)!=null&&Xe.showAppAlert)&&Xt({text:(g==null?void 0:g.configuration.appAlertText)||s.t("appAlert.text"),image:g==null?void 0:g.configuration.appAlertImage,actions:[{name:s.t("appAlert.download"),action:()=>window.open(yo.value)}],variant:ut.app,once:!0})});const nn=lt("isLocaleIsSaved",!1),bo=()=>{nn.value=!0};G(xe,x=>{l.meta.scrollPosition=x});const wo=Xo(),xo=["menu","menu-category"];G(()=>l.fullPath,async x=>{if(l.hash)return;const T=localStorage.getItem(x);await At(),wo.hook("page:transition:finish",async()=>{typeof l.name=="string"&&xo.includes(l.name)?xe.value=Number(T)||0:xe.value=0})}),G(()=>[!0,l.hash],async([x,T])=>{if(l.hash&&x){const K=document.getElementById(String(T).replace(/[^0-9.]/g,""));if(await At(),K){const{top:q}=Zo(K.querySelector("h2"));xe.value=q-200>0?q-200:0}else xe.value=0}},{immediate:!0});const Ao=S(()=>g.configuration.useBrandsBlock&&g.configuration.brandsBlockPositionViewType===Qo.top),ko=S(()=>g.configuration.useAboutBlock&&es(p.skin.concept));return g!=null&&g.configuration.usePwa&&("serviceWorker"in navigator||console.warn("serviceWorker is not supported in current browser!")),$n.send("VKWebAppInit"),$n.subscribe(x=>{x.detail.data&&F(!0)}),(x,T)=>{var on;const K=Ts,q=cs,te=ls,Je=_i,Xe=Ci,Ae=us,_t=Ii,Ze=ks,ht=qi,So=Yi,Co=ea;return v(),k(he,null,[A("div",{class:"layout-default",style:tt(u(fo))},[u(qe)?(v(),k("div",ya,[A("div",{ref_key:"content",ref:Ee,class:"content-wrapper"},[u(Ao)?(v(),H(q,{key:0})):O("",!0),Et(M(te,null,null,512),[[On,u(to)]]),M(Je,{fixed:u(w)},null,8,["fixed"]),A("div",{id:"main",ref_key:"main",ref:go},[et(x.$slots,"default")],512),u(ko)?(v(),H(Xe,{key:1})):O("",!0),M(Ae)],512)])):(v(),H(K,{key:0}))],4),u(qe)&&u(X).body?(v(),k("div",{key:0,innerHTML:u(X).body},null,8,ba)):O("",!0),M(_t,{modelValue:u(Ge),"onUpdate:modelValue":T[0]||(T[0]=$o=>kt(Ge)?Ge.value=$o:null),onLocaleIsSet:bo},null,8,["modelValue"]),M(Ze,ts(ns(u(vo))),null,16),M(ht),(on=u(g))!=null&&on.configuration.useStories?(v(),H(So,{key:1})):O("",!0),u(g).configuration.useScrollToTopButton?(v(),k("div",{key:2,class:"scroll-to-top",onClick:_o},[M(u(Ss))])):O("",!0),M(Co)],64)}}});export{lc 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.