PageSourceSearch

https://web.vibeapp.ru/_next/static/chunks/02265wyc3sf_j.js

js vibeapp.ru collected 2026-10-01 12:14:26 UTC 27,220 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,350441,e=>{"use strict";var t,r=e.i(271151);function a(){return(a=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),t||(t=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m15.734 14.486-3.924-3.93a6.55 6.55 0 0 0-.592-8.625A6.52 6.52 0 0 0 6.571 0a6.52 6.52 0 0 0-4.647 1.931 6.59 6.59 0 0 0 0 9.306A6.52 6.52 0 0 0 6.57 13.17a6.46 6.46 0 0 0 3.968-1.34l3.946 3.908a.88.88 0 0 0 .635.263c.22 0 .46-.088.636-.263.329-.33.329-.9-.022-1.251M6.593 11.39c-1.293 0-2.477-.505-3.398-1.405-1.863-1.865-1.863-4.916 0-6.804a4.77 4.77 0 0 1 3.398-1.404c1.293 0 2.477.505 3.398 1.404.92.9 1.403 2.107 1.403 3.402s-.505 2.48-1.403 3.402c-.9.922-2.127 1.405-3.398 1.405",clipRule:"evenodd"})))}])},10171,(e,t,r)=>{"use strict";var a=e.r(271151),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=a.useState,i=a.useEffect,l=a.useLayoutEffect,o=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=s({inst:{value:r,getSnapshot:t}}),n=a[0].inst,u=a[1];return l(function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})},[e,r,t]),i(function(){return c(n)&&u({inst:n}),e(function(){c(n)&&u({inst:n})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},118850,(e,t,r)=>{"use strict";t.exports=e.r(10171)},799676,e=>{"use strict";var t=e.i(345194),r=e.i(271151),a=e.i(735907),n=e.i(389057),s=e.i(690606),i=e.i(549424),l=e.i(118850);function o(){return()=>{}}var c="Avatar",[u,d]=(0,a.createContextScope)(c),[h,m]=u(c),f=r.forwardRef((e,a)=>{let{__scopeAvatar:n,...s}=e,[l,o]=r.useState("idle");return(0,t.jsx)(h,{scope:n,imageLoadingStatus:l,onImageLoadingStatusChange:o,children:(0,t.jsx)(i.Primitive.span,{...s,ref:a})})});f.displayName=c;var x="AvatarImage",p=r.forwardRef((e,a)=>{let{__scopeAvatar:c,src:u,onLoadingStatusChange:d=()=>{},...h}=e,f=m(x,c),p=function(e,{referrerPolicy:t,crossOrigin:a}){let n=(0,l.useSyncExternalStore)(o,()=>!0,()=>!1),i=r.useRef(null),c=n?(i.current||(i.current=new window.Image),i.current):null,[u,d]=r.useState(()=>y(c,e));return(0,s.useLayoutEffect)(()=>{d(y(c,e))},[c,e]),(0,s.useLayoutEffect)(()=>{let e=e=>()=>{d(e)};if(!c)return;let r=e("loaded"),n=e("error");return c.addEventListener("load",r),c.addEventListener("error",n),t&&(c.referrerPolicy=t),"string"==typeof a&&(c.crossOrigin=a),()=>{c.removeEventListener("load",r),c.removeEventListener("error",n)}},[c,a,t]),u}(u,h),g=(0,n.useCallbackRef)(e=>{d(e),f.onImageLoadingStatusChange(e)});return(0,s.useLayoutEffect)(()=>{"idle"!==p&&g(p)},[p,g]),"loaded"===p?(0,t.jsx)(i.Primitive.img,{...h,ref:a,src:u}):null});p.displayName=x;var g="AvatarFallback",v=r.forwardRef((e,a)=>{let{__scopeAvatar:n,delayMs:s,...l}=e,o=m(g,n),[c,u]=r.useState(void 0===s);return r.useEffect(()=>{if(void 0!==s){let e=window.setTimeout(()=>u(!0),s);return()=>window.clearTimeout(e)}},[s]),c&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(i.Primitive.span,{...l,ref:a}):null});function y(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}v.displayName=g;var j=e.i(975157);e.s(["Avatar",0,function({className:e,...r}){return(0,t.jsx)(f,{"data-slot":"avatar",className:(0,j.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...r})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(v,{"data-slot":"avatar-fallback",className:(0,j.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(p,{"data-slot":"avatar-image",className:(0,j.cn)("aspect-square object-cover size-full",e),...r})}],799676)},437122,e=>{"use strict";var t=e.i(271151),r=e.i(731086),a=e.i(189508),n=e.i(870612),s=e.i(697621
1),i=e.i(164256);let l=async e=>await s.api.get(i.profileEndpoints.getCurrentUser,{signal:e}).json();var o=e.i(177592),c=e.i(91890);let u=(0,a.queryOptions)({queryKey:[o.QueryKeys.get_current_user_info],staleTime:1/0,gcTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,queryFn:({signal:e})=>l(e),placeholderData:c.usePersistStore.getState().user});e.s(["useGetAuthProfile",0,()=>{let e=(0,n.useQuery)(u),a=(0,c.usePersistStore)(e=>e.setAuthUser);return(0,t.useEffect)(()=>{e.isSuccess&&e.data&&(a(e.data),r.setUser({id:e.data.id,email:e.data.email??void 0,username:e.data.nickname??void 0}),r.setTag("user.role",e.data.role??"user"),r.setTag("user.is_active",String(e.data.is_active)))},[e.data,e.isSuccess,a]),e}],437122)},647470,e=>{"use strict";var t=e.i(345194);e.s(["UserProfileFallbackIcon",0,({width:e=43,height:r=43,fill:a="#ffffff"})=>(0,t.jsx)("svg",{width:e,height:r,viewBox:"0 0 43 43",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M28.9814 24.3096C36.526 24.3096 42.6658 30.1638 42.666 37.3574V42.666H0V37.3574C0.000223241 30.1638 6.13999 24.3096 13.6846 24.3096H28.9814ZM13.6846 28.2783C8.42942 28.2783 4.16233 32.3467 4.16211 37.3574V38.6973H38.5039V37.3574C38.5037 32.3467 34.2369 28.2783 28.9297 28.2783H13.6846ZM21.333 0C27.0565 2.35607e-06 31.7391 4.46464 31.7393 9.92188V11.9062C31.7393 17.3636 27.0566 21.8291 21.333 21.8291C15.6094 21.8291 10.9268 17.3636 10.9268 11.9062V9.92188C10.9269 4.46464 15.6095 0 21.333 0ZM21.333 3.96875C17.899 3.96875 15.089 6.64758 15.0889 9.92188V11.9062C15.0889 15.1807 17.8989 17.8604 21.333 17.8604C24.7672 17.8603 27.5771 15.1807 27.5771 11.9062V9.92188C27.577 6.64759 24.7671 3.96875 21.333 3.96875Z",fill:a})})])},734804,e=>{"use strict";function t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)"__proto__"!==a&&(e[a]=r[a])}return e}var r=function e(r,a){function n(e,n,s){if("u">typeof document){"number"==typeof(s=t({},a,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in s)s[l]&&(i+="; "+l,!0!==s[l]&&(i+="="+s[l].split(";")[0]));return document.cookie=e+"="+r.write(n,e)+i}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],a={},n=0;n<t.length;n++){var s=t[n].split("="),i=s.slice(1).join("=");try{var l=decodeURIComponent(s[0]);if(l in a||(a[l]=r.read(i,l)),e===l)break}catch(e){}}return e?a[e]:a}},remove:function(e,r){n(e,"",t({},r,{expires:-1}))},withAttributes:function(r){return e(this.converter,t({},this.attributes,r))},withConverter:function(r){return e(t({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.s(["default",0,r])},572420,e=>{"use strict";var t=e.i(562667);e.s(["transform",0,function(...e){let r=!Array.isArray(e[0]),a=r?0:-1,n=e[0+a],s=e[1+a],i=e[2+a],l=e[3+a],o=(0,t.interpolate)(s,i,l);return r?o(n):o}])},4326,e=>{"use strict";var t=e.i(964355),r=e.i(271151),a=e.i(837540),n=e.i(883523);e.s(["useMotionValue",0,function(e){let s=(0,n.useConstant)(()=>(0,t.motionValue)(e)),{isStatic:i}=(0,r.useContext)(a.MotionConfigContext);if(i){let[,t]=(0,r.useState)(e);(0,r.useEffect)(()=>s.on("change",t),[])}return s}])},87328,e=>{"use strict";var t=e.i(572420),r=e.i(883523),a=e.i(907953),n=e.i(672250),s=e.i(4326);function i(e,t){let r=(0,s.useMotionValue)(t()),i=()=>r.set(t());return i(),(0,n.useIsomorphicLayoutEffect)(()=>{let t=()=>a.frame.preRender(i,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,a.cancelFrame)(i)}}),r}var l=e.i(964355);function o(e,t){let a=(0,r.useConstant)(()=>[]);return i(e,()=>{a.length=0;let r=e.length;for(let t=0;t<r;t++)a[t]=e[t].get();return t(a)})}e.s(["useTransform",0,function e(a,n,s,c){if("function"==typeof a){let e;return l.collectMotionValues.current=[],a(),e=i(l.collectMotionValues.current,a),l.collectMotionValues.current=void 0,e}if(void 0!==s&&!Array.isArray(s)&&"function"!=typeof n){var u=a,d=n,h=s,m=c;let t=(0,r.useConstant)(()=>Object.keys(h)),i=(0,r.useConstant)(()=>({}));for(let r of t)i[r]=e(u,d,h[r],m);return i}let f="function"==typeof n?n:(0,t.transform)(n,s,c),x=Array.isArray(a)?o(a,f):o([a],([e])=>f(e)),p=Array.isArray(a)?void 0:a.accelerate;return p&&!p.isTransformed&&"function"!=typeof n&&Array.isArray(s)&&c?.clamp!==!1&&(x.accelerate={...p,times:n,keyframes:s,isTransformed:!0,...c?.ease?{ease:c.ease}:{}}),x}],87328)},761709,e=>{"use strict";var t,r=e.i(345194),a=e.i(889904),n=e.i(850410),s=e.i(271151);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let l=function(e){return s.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},e),t||(t=s.createElement("path",{fill:"currentColor",d:"M19.162 6A10.03 10.03 0 0 0 13.68.708 16.2 16.2 0 0 1 15.228 6zm.637 2h-4.367q.066.994.068 2-.002 1.006-.068 2H19.8c.268-1.32.268-2.68 0-4M10 20c1.435 0 2.667-2.47 3.207-6H6.793c.54 3.53 1.772 6 3.207 6M6.57 8a28 28 0 0 0 0 4h6.86a28 28 0 0 0 0-4zM.838 14a10.02 10.02 0 0 0 5.482 5.292A16.2 16.2 0 0 1 4.772 14zm12.842 5.292A10.03 10.03 0 0 0 19.162 14h-3.934c-.21 1.84-.734 3.63-1.548 5.292M.838 6h3.934c.21-1.84.734-3.63 1.548-5.292A10.02 10.02 0 0 0 .838 6M4.5 10q.002-1.006.068-2H.2a10.1 10.1 0 0 0 0 4h4.367a31 31 0 0 1-.068-2M10 0C8.565 0 7.333 2.47 6.793 6h6.414c-.54-3.53-1.772-6-3.207-6"})))};var o=e.i(519455),c=e.i(744705);e.s(["LanguageSelector",0,function(){let e=(0,c.useRouter)(),t=(0,n.useLocale)(),i=(0,a.useSearchParams)(),u=(0,c.usePathname)(),d="en"===t?"ru":"en";return(0,r.jsxs)(o.Button,{variant:"secondary",onClick:()=>{(0,s.startTransition)(()=>{e.replace(`${u}?${i.toString()}`,{locale:d})})},children:[(0,r.jsx)(l,{}),"en"===d?"English":"Русский"]})}],761709)},170787,e=>{"use strict";let t=(0,e.i(395362).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},838966,e=>{"use strict";var t=e.i(170787);e.s(["SearchIcon",()=>t.default])},320785,802004,e=>{"use strict";var t,r,a=e.i(345194),n=e.i(271151),s=e.i(484778);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let l=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:133,height:32,fill:"none"},e),t||(t=n.createElement("path",{fill:"currentColor",d:"M12.963 7.757h5.754l-6.412 17.316H6.412L0 7.757h5.754l3.604 10.979zM25.409 5.333q-.901.9-2.184.9-1.282 0-2.218-.9a3.09 3.09 0 0 1-.902-2.216q0-1.282.902-2.182Q21.943 0 23.225 0t2.184.935q.936.9.936 2.182 0 1.281-.936 2.216m-4.784 19.74V7.758h5.2v17.316zM39.992 7.273q3.431 0 5.857 2.667 2.427 2.632 2.427 6.475 0 3.844-2.427 6.512-2.426 2.632-5.857 2.632-3.328 0-5.165-2.113v1.628h-5.2V.83h5.2v8.554q1.837-2.112 5.165-2.112M35.97 19.498q1.18 1.143 2.98 1.143 1.803 0 2.947-1.143 1.179-1.143 1.178-3.083 0-1.938-1.178-3.082-1.145-1.142-2.946-1.142t-2.981 1.142q-1.144 1.144-1.144 3.082 0 1.94 1.144 3.083M55.869 18.494q.9 2.424 4.159 2.424 2.114 0 3.327-1.317l4.16 2.39q-2.565 3.567-7.557 3.567-4.367 0-7.001-2.597-2.6-2.598-2.6-6.546 0-3.913 2.565-6.51 2.6-2.632 6.655-2.632 3.78 0 6.273 2.632 2.531 2.597 2.531 6.51a10 10 0 0 1-.208 2.079zm-.105-3.88h7.453q-.764-2.735-3.675-2.735-3.015 0-3.778 2.736M83.741 7.758h5.2v17.315h-5.2v-1.627q-1.836 2.113-5.165 2.112-3.431 0-5.857-2.631-2.426-2.668-2.426-6.512t2.426-6.476q2.426-2.666 5.858-2.666 3.328 0 5.164 2.112zm-7.105 11.74q1.144 1.143 2.98 1.143 1.838 0 2.981-1.143 1.144-1.143 1.144-3.083.001-1.938-1.144-3.082-1.144-1.142-2.98-1.142-1.838 0-2.981 1.142
1-1.144 1.144-1.144 3.082 0 1.94 1.144 3.083M103.119 7.273q3.431 0 5.857 2.666 2.427 2.633 2.426 6.476t-2.426 6.512q-2.426 2.631-5.857 2.631-3.328 0-5.165-2.112V32h-5.2V7.758h5.2v1.627q1.837-2.112 5.165-2.112m-4.021 12.225q1.178 1.143 2.981 1.143t2.946-1.143q1.178-1.143 1.179-3.083 0-1.938-1.179-3.082-1.144-1.142-2.946-1.142t-2.981 1.142q-1.144 1.144-1.144 3.082 0 1.94 1.144 3.083M124.717 7.273q3.431 0 5.857 2.666 2.427 2.633 2.427 6.476t-2.427 6.512q-2.426 2.631-5.857 2.631-3.328 0-5.165-2.112V32h-5.198V7.758h5.198v1.627q1.837-2.112 5.165-2.112m-4.021 12.225q1.178 1.143 2.981 1.143t2.946-1.143q1.179-1.143 1.179-3.083 0-1.938-1.179-3.082-1.144-1.142-2.946-1.142t-2.981 1.142q-1.144 1.144-1.144 3.082 0 1.94 1.144 3.083"})))};e.s(["default",0,l],802004);var o=e.i(512772),c=e.i(425246),u=e.i(975157),d=e.i(676642),h=e.i(761709),m=e.i(850410),f=e.i(74438),x=e.i(395362);let p=(0,x.default)("badge-dollar-sign",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var g=e.i(427923);let v=(0,x.default)("russian-ruble",[["path",{d:"M6 11h8a4 4 0 0 0 0-8H9v18",key:"18ai8t"}],["path",{d:"M6 15h8",key:"1y8f6l"}]]);function y(){return(y=Object.assign.bind()).apply(null,arguments)}let j=function(e){return n.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),r||(r=n.createElement("path",{fill:"#15181C",d:"M3.179 16h9.642a1.88 1.88 0 0 0 1.326-.547c.352-.35.55-.825.55-1.32V9.531A1.87 1.87 0 0 0 15.5 8V6.133a1.86 1.86 0 0 0-.475-1.253 1.88 1.88 0 0 0-1.197-.613 2.92 2.92 0 0 0-.108-2.861A2.94 2.94 0 0 0 11.214 0 4.03 4.03 0 0 0 8 1.6 4.01 4.01 0 0 0 4.786 0 2.96 2.96 0 0 0 2.28 1.406a2.92 2.92 0 0 0-.11 2.86c-.46.05-.887.27-1.196.614A1.86 1.86 0 0 0 .5 6.133V8a1.86 1.86 0 0 0 .804 1.53v4.603c0 .495.197.97.549 1.32.351.35.828.547 1.326.547m0-1.6a.27.27 0 0 1-.268-.267V9.867h4.285V14.4zm9.91-.267a.266.266 0 0 1-.268.267H8.804V9.867h4.285zM13.893 8a.266.266 0 0 1-.268.267H8.804v-2.4h4.821a.27.27 0 0 1 .268.266zm-2.679-6.4c.355 0 .696.14.947.39a1.33 1.33 0 0 1-.947 2.277h-2.41V4c0-.637.254-1.247.706-1.697a2.42 2.42 0 0 1 1.704-.703m-6.428 0c.64 0 1.252.253 1.704.703s.706 1.06.706 1.697v.267h-2.41c-.355 0-.696-.14-.947-.39a1.33 1.33 0 0 1 0-1.886c.25-.25.592-.391.947-.391M2.107 6.133a.266.266 0 0 1 .268-.266h4.821v2.4H2.375A.27.27 0 0 1 2.107 8z"})))};var C=e.i(868499),w=e.i(799676),b=e.i(519455),S=e.i(755146),k=e.i(302747),N=e.i(327966),M=e.i(744705),A=e.i(793148),T=e.i(800872);let E=async e=>await e.post("auth/logout").json();var D=e.i(697621),q=e.i(546475),z=e.i(870612),I=e.i(454470),L=e.i(164256);let B=async()=>await D.api.get(L.walletEndpoints.userBalance).json();var R=e.i(177592),V=e.i(437122),O=e.i(709231),U=e.i(647470),F=e.i(352455),P=e.i(91890);function _(){let e=(0,P.usePersistStore)(e=>e.token),t=(0,f.useTranslations)("navbar");return e?(0,a.jsx)(M.Link,{href:"/tickets",children:(0,a.jsx)(b.Button,{children:t("myTickets")})}):(0,a.jsx)(b.Button,{asChild:!0,children:(0,a.jsx)(M.Link,{href:"/login",children:t("login")})})}function H(){return(0,P.usePersistStore)(e=>e.token)?(0,a.jsx)(Q,{}):null}let Q=()=>{let e,t=(0,f.useTranslations)("navbar"),{data:r}=(0,V.useGetAuthProfile)(),[s,i]=(0,n.useState)(!1),{mutate:l,isPending:o}=(e=(0,f.useTranslations)("toast"),(0,A.useMutation)({retry:0,mutationFn:()=>E(D.appClient),onSettled:async()=>{await (0,q.handleLogout)(),T.toast.success(e("signoutSuccessfully"),{richColors:!0}),window.location.reload()}}));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(S.DropdownMenu,{children:[(0,a.jsx)(S.DropdownMenuTrigger,{children:(0,a.jsxs)(w.Avatar,{children:[(0,a.jsx)(w.AvatarImage,{src:r?.avatar_uri??void 0}),(0,a.jsx)(w.AvatarFallback,{className:"bg-primary",children:(0,a.jsx)(U.UserProfileFallbackIcon,{width:16,height:16})})]})}),(0,a.jsxs)(S.DropdownMenuContent,{align:"end",className:"md:w-[210px]",children:[(0,a.jsx)(S.DropdownMenuItem,{asChild:!0,children:(0,a.jsx)(M.Link,{href:"/profile",children:t("myProfile")})}),(0,a.jsx)(S.DropdownMenuItem,{asChild:!0,children:(0,a.jsx)(M.Link,{href:"/tickets",children:t("myTickets")})}),(0,a.jsx)(S.DropdownMenuItem,{asChild:!0,children:(0,a.jsx)(M.Link,{href:"/chats",children:t("chats")})}),(0,a.jsx)(S.DropdownMenuSeparator,{}),(0,a.jsx)(S.DropdownMenuItem,{disabled:!0,children:(0,a.jsx)(M.Link,{href:"/",children:t("balance")})}),(0,a.jsx)(G,{}),(0,a.jsx)(S.DropdownMenuSeparator,{}),(0,a.jsx)(S.DropdownMenuItem,{variant:"destructive",asChild:!0,children:(0,a.jsx)(b.Button,{variant:"ghost",className:"justify-start h-7",onClick:()=>i(!0),children:t("logout")})})]}),(0,a.jsx)(C.AlertDialog,{open:s,onOpenChange:i,children:(0,a.jsxs)(C.AlertDialogContent,{children:[(0,a.jsx)(C.AlertDialogHeader,{children:(0,a.jsx)(C.AlertDialogTitle,{children:t("areYouSureToLogout")})}),(0,a.jsxs)(C.AlertDialogFooter,{children:[(0,a.jsxs)(C.AlertDialogCancel,{disabled:o,onClick:()=>{(0,O.trackMyTrackerGoal)(O.MyTrackerEvent.LOGOUT),l(void 0,{onSuccess:()=>{(0,O.deleteMyTrackerUserId)(),i(!1)}})},children:[o&&(0,a.jsx)(g.Loader2,{className:"animate-spin"}),t("yesLogMeOut")]}),(0,a.jsx)(C.AlertDialogAction,{disabled:o,children:t("noStayLoggedIn")})]})]})})]})})},G=()=>{var e;let t,r=(0,f.useTranslations)("balance"),n=(0,m.useLocale)(),{data:s,isPending:i}={...t=(0,z.useQuery)({queryKey:[R.QueryKeys.get_user_balance],queryFn:B,placeholderData:e=>e,...e}),isNotFound:t.isError&&t.error instanceof I.HTTPError&&404===t.error.response.status};return i?(0,a.jsx)("div",{children:(0,a.jsx)(k.Skeleton,{className:"w-full h-[32px]"})}):s&&0!==s.length?(0,a.jsx)(S.DropdownMenuItem,{className:" focus:bg-transparent  focus:text-inherit  focus-visible:bg-transparent  focus-visible:text-inherit ",asChild:!0,children:(0,a.jsx)("div",{className:"flex flex-col items-start",children:s.map((e,t)=>(0,a.jsx)("div",{className:"flex flex-row justify-center items-center",children:(0,a.jsxs)("div",{className:"flex gap-2 align-center items-center",children:[(0,a.jsx)("div",{className:"bg-accent-4 p-2 rounded-md",children:K(e.currency)}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(N.Typography,{className:"text-primary",children:(0,F.formatNumber)(e.balance/100,n)}),"BONUS_RUB"===e.currency&&(0,a.jsx)(N.Typography,{size:"12",className:"text-secondary-2",children:r("bonusRub")}),"ESCROW_RUB"===e.currency&&(0,a.jsx)(N.Typography,{size:"12",className:"text-secondary-2",children:r("escrowSum")})]})]})},t))})}):null},K=e=>{switch(e){case"RUB":case"ESCROW_RUB":default:return(0,a.jsx)(v,{className:"text-primary"});case"BONUS_RUB":return(0,a.jsx)(j,{});case"USD":return(0,a.jsx)(p,{className:"text-primary"})}};var $=e.i(861624),W=e.i(531638),Z=e.i(776639),Y=e.i(561993),J=e.i(581682),X=e.i(374233),ee=e.i(728993);let et=()=>{let{selectedCity:e,setCity:t}=(0,X.useCity)(),r=(0,f.useTranslations)("navbar"),[s,i]=(0,n.use
1State)(!1),l=(0,J.useMediaQuery)("(min-width: 768px)"),o=e=>{t(e),i(!1)};return l?(0,a.jsxs)(Y.Drawer,{repositionInputs:!1,direction:"left",open:s,onOpenChange:i,children:[(0,a.jsx)(Y.DrawerTrigger,{asChild:!0,children:(0,a.jsxs)(b.Button,{variant:"text",children:[e.name," ",(0,a.jsx)($.ChevronDown,{})]})}),(0,a.jsxs)(Y.DrawerContent,{className:"flex flex-col p-10 gap-10",children:[(0,a.jsx)(Y.DrawerDescription,{className:"sr-only",children:"Select your city to see relevant content."}),(0,a.jsx)(Y.DrawerClose,{asChild:!0,children:(0,a.jsx)(b.Button,{size:"icon-lg",className:(0,u.cn)("absolute translate-x-full -right-2.5 top-0",{"opacity-0":!s}),children:(0,a.jsx)(W.default,{className:"size-3"})})}),(0,a.jsx)(Y.DrawerTitle,{asChild:!0,children:(0,a.jsx)(N.Typography,{size:"24",children:r("selectCity")})}),(0,a.jsx)(ee.CitySearch,{value:e,onSelect:o})]})]}):(0,a.jsxs)(Z.Dialog,{open:s,onOpenChange:i,children:[(0,a.jsx)(Z.DialogTrigger,{asChild:!0,children:(0,a.jsxs)(b.Button,{variant:"outline",size:"fullAvailable",className:"justify-between",children:[e.name," ",(0,a.jsx)($.ChevronDown,{})]})}),(0,a.jsxs)(Z.DialogContent,{className:"max-h-[85vh] flex flex-col p-[30px] gap-[30px]",children:[(0,a.jsx)(Z.DialogDescription,{className:"sr-only",children:"Select your city to see relevant content."}),(0,a.jsx)(Z.DialogTitle,{asChild:!0,children:(0,a.jsx)(N.Typography,{size:"24",className:"leading-[120%]",children:r("selectCity")})}),(0,a.jsx)(ee.CitySearch,{value:e,onSelect:o})]})]})};var er=e.i(838966),ea=e.i(759684),en=e.i(164923),es=e.i(759061),ei=e.i(671622),el=e.i(907039),eo=e.i(427707),ec=e.i(793479),eu=e.i(648829),ed=e.i(607654),eh=e.i(504325),em=e.i(417621),ef=e.i(550344),ex=e.i(323211);let ep=({isPending:e,isError:t,error:r,events:s,onClose:i,query:l})=>{let o=(0,f.useTranslations)("navbar"),c=(0,eu.useIsMobile)(768),u=!!l.trim(),d=(0,n.useMemo)(()=>u?s.slice(0,c?5:8):s,[s,u,c]);return(console.log(d,d.length),e)?(0,a.jsx)("div",{className:"grid grid-cols-1 @xl/main:grid-cols-2 @4xl/main:grid-cols-3 @7xl/main:grid-cols-4 gap-x-5 gap-y-10",children:Array.from({length:8}).map((e,t)=>(0,a.jsx)(em.EventCardSkeleton,{},t))}):t?(0,a.jsx)(ed.CustomError,{error:r?.message}):0===s.length?(0,a.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,a.jsx)(N.Typography,{size:"24",className:"hidden md:block",children:o("noCityFound")}),(0,a.jsx)(ex.Carousel,{opts:{dragFree:!0},children:(0,a.jsx)(ex.CarouselContent,{children:es.categoryList.map(e=>(0,a.jsx)(ex.CarouselItem,{className:"basis-auto last-of-type:pr-8",children:(0,a.jsx)(ef.CategoryCard,{category:e,scrollBehavior:"instant",onClick:i})},e.key))})})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-10",children:[!u&&(0,a.jsx)(N.Typography,{size:"24",children:o("popular")}),(0,a.jsx)("div",{className:"grid grid-cols-1 @xl/main:grid-cols-2 @4xl/main:grid-cols-3 @7xl/main:grid-cols-4 gap-x-5 gap-y-10",children:d.map(({data:e})=>(0,a.jsx)(eh.EventCard,{...e,onClick:i},e.id))}),u&&s.length===eo.FEED_LIMIT_PER_PAGE&&(0,a.jsx)(b.Button,{size:"md",variant:"secondary",asChild:!0,children:(0,a.jsx)(M.Link,{href:{pathname:"/",query:{query:l}},onClick:i,children:o("showAllResults")})})]})},eg=({value:e,onSearch:t,onReset:r})=>{let n=(0,f.useTranslations)("navbar"),{control:s,handleSubmit:i,watch:l,reset:o}=(0,el.useForm)({defaultValues:{query:e}}),c=0===l("query").trim().length,u=()=>{o({query:""}),r()};return(0,a.jsx)("form",{onSubmit:i(e=>{e.query.trim()&&t(e.query)}),children:(0,a.jsx)(el.Controller,{name:"query",control:s,defaultValue:e,render:({field:e})=>(0,a.jsx)(ec.Input,{variant:"secondary",...e,onChange:t=>{t.target.value||u(),e.onChange(t)},placeholder:n("citySelectPlaceholder"),autoFocus:!0,className:"shrink-0 bg-white border-none pl-10 pr-2.5",endContent:(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[!c&&(0,a.jsx)("button",{type:"button",onClick:u,children:(0,a.jsx)(W.default,{className:"size-3"})}),(0,a.jsx)(b.Button,{size:"lg",type:"submit",disabled:c,children:n("find")})]})})})})},ev=()=>{let e=(0,f.useTranslations)("navbar"),t=(0,X.useCityStore)(e=>e.city),r=(0,P.usePersistStore)(e=>
1e.user),[s,i]=(0,n.useState)(""),[l,o]=(0,n.useState)(!1),{data:c,isPending:d,isError:h,error:m}=(0,en.useGetEventsFeed)({...es.DEFAULT_SEARCH_PARAMS,query:s,city:t,engine:(0,es.isEngineTestUser)(r?.phone)}),x=(0,n.useMemo)(()=>c?.pages.flatMap(e=>e.data).filter(e=>(0,ei.isEventElement)(e))??[],[c?.pages]),p=(0,n.useCallback)(e=>{i(e)},[]),g=(0,n.useCallback)(()=>{i("")},[]),v=(0,n.useCallback)(()=>{o(!1),g()},[g]),y=(0,n.useMemo)(()=>c&&0===x.length,[c,x]);return(0,a.jsxs)(Z.Dialog,{open:l,onOpenChange:o,children:[(0,a.jsx)(Z.DialogTrigger,{asChild:!0,children:(0,a.jsxs)(b.Button,{variant:"secondary",size:"fullAvailable",className:"justify-start",children:[(0,a.jsx)(er.SearchIcon,{}),e("search")]})}),(0,a.jsxs)(Z.DialogContent,{hideCloseButton:!0,className:(0,u.cn)("max-w-none! bg-transparent w-screen rounded-none p-2.5 md:p-6 shadow-none translate-y-0 top-0 flex flex-col gap-2.5",{"md:h-[70vh]":y},{"h-[90vh]":!y}),children:[(0,a.jsx)(Z.DialogTitle,{className:"sr-only",children:e("searchEvents")}),(0,a.jsx)(Z.DialogDescription,{className:"sr-only",children:e("searchEvents")}),(0,a.jsx)("div",{className:"bg-white py-2.5 rounded-3xl shrink-0",children:(0,a.jsx)(eg,{value:s,onSearch:p,onReset:g})}),(0,a.jsx)("div",{className:"bg-white h-full flex-1 rounded-3xl overflow-y-auto",children:(0,a.jsx)(ea.ScrollArea,{className:"h-full",children:(0,a.jsx)("div",{className:"@container/main p-5 md:p-10",children:(0,a.jsx)(ep,{isPending:d,isError:h,error:m,events:x,onClose:v,query:s})})})}),(0,a.jsx)(Z.DialogClose,{asChild:!0,"data-slot":"dialog-close",className:(0,u.cn)("absolute left-1/2 -translate-x-1/2 translate-y-full",{"-bottom-[10%]":y},{"bottom-0":!y}),children:(0,a.jsx)(b.Button,{size:"icon-lg",className:"bg-primary",children:(0,a.jsx)(W.default,{className:"size-3"})})})]})]})};var ey=e.i(102375),ej=e.i(87328);let eC=({direction:e,offsetTop:t=0})=>{let{scrollY:r}=(0,ey.useScroll)(),n=(0,ej.useTransform)(r,[0,200],["72px","132px"]),i=(0,ej.useTransform)(n,e=>t?`calc(${e} + ${t}px)`:e),l="down"===e?"to bottom":"to top";return(0,a.jsx)(s.motion.div,{className:(0,u.cn)("absolute inset-x-0 from-white to-white/0 pointer-events-none backdrop-blur-sm z-[-1]",{"top-0":"down"===e,"bottom-0":"up"===e,"bg-linear-to-b":"down"===e,"bg-linear-to-t":"up"===e}),style:{height:i,maskImage:`linear-gradient(${l}, black 50%, transparent 100%)`,WebkitMaskImage:`linear-gradient(${l}, black 50%, transparent 100%)`}})},ew=({className:e,buttons:t})=>(0,a.jsx)("div",{className:(0,u.cn)("flex flex-row gap-[5px] justify-center",e),children:t.map(e=>(0,a.jsxs)(n.default.Fragment,{children:["search"===e&&(0,a.jsx)(ev,{}),"city"===e&&(0,a.jsx)(et,{}),"language"===e&&(0,a.jsx)(h.LanguageSelector,{}),"account"===e&&(0,a.jsx)(H,{}),"tickets"===e&&(0,a.jsx)(_,{}),"carrotquest"===e&&(0,a.jsx)(d.CarrotQuestButton,{})]},e))});e.s(["BottomNavbar",0,()=>(0,a.jsxs)(s.motion.nav,{className:"block md:hidden sticky bottom-0 z-50 px-8",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6,ease:[.25,.1,.25,1]},children:[(0,a.jsx)(eC,{direction:"up"}),(0,a.jsx)(ew,{className:"py-8",buttons:["search","tickets","carrotquest"]})]}),"TopNavbar",0,({disableAnimation:e,topButtons:t=[],headerButtons:r=[],className:n})=>{let{top:i}=(0,o.useSafeAreaInsets)();return(0,a.jsxs)(s.motion.nav,{className:(0,u.cn)("py-5 flex gap-5 flex-col md:flex-row md:items-center justify-between relative z-50 top-0 px-4 md:px-10",n),initial:!e&&{y:-100,opacity:0},animate:{y:0,opacity:1},style:{paddingTop:i+32,position:0===i?"sticky":"static"},transition:{duration:.6,ease:[.25,.1,.25,1]},children:[(0,a.jsx)(eC,{direction:"down"}),(0,a.jsxs)("div",{className:"flex flex-row items-center max-md:justify-between gap-5",children:[(0,a.jsx)(c.Link,{href:"/",children:(0,a.jsx)(l,{className:"text-primary"})}),(0,a.jsx)(ew,{buttons:r})]}),(0,a.jsx)(ew,{buttons:t})]})}],320785)}]);

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.