PageSourceSearch

https://megatix.in.th/_nuxt/D_GPpmuG.js

js megatix.in.th collected 2026-09-25 15:02:49 UTC 8,370 bytes, 1 lines download raw bytes

1import{c as R}from"./UsJYKelB.js";import{_ as P,a as G,b as q}from"./BpI_SzHq.js";import{_ as B}from"./er7mJA20.js";import{_ as E,a as p,o as l,b as t,n as M,G as J,d as C,i as g,A as j,f as x,g as e,e as y,u,h as A,w as c,l as h,m as K,s as L,c as N,x as I,H,N as Q,p as X,aH as Y}from"./Dki5OcH0.js";import{u as Z}from"./rqKJ1fw6.js";import{u as W}from"./DGi6a7cO.js";import{u as tt}from"./CW5r8cLj.js";import{f as et}from"./BTd-b9IX.js";import"./De2EI-Zh.js";const st={props:{burgerIsACross:{type:Boolean,default:!1}}},ot={width:"28",height:"28",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nt(w,n,s,a,r,d){return l(),p("svg",ot,[t("path",{d:"M2 13H32",class:M(["transition-all-slow",s.burgerIsACross?"-translate-y-1/2 translate-x-[10px] rotate-45":"-translate-y-[6px]"]),stroke:"white","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"},null,2),t("path",{d:"M2 13H32",class:M(["transition-all-slow",s.burgerIsACross?"-translate-x-[9px] translate-y-1/2 -rotate-45":"translate-y-[6px]"]),stroke:"white","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"},null,2)])}const lt=E(st,[["render",nt]]),rt={},at={height:"28",width:"28",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",style:{border:"2px solid white","border-radius":"50%",display:"inline-block"}};function it(w,n){return l(),p("svg",at,n[0]||(n[0]=[J('<g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path d="M64 0C28.653 0 0 28.653 0 64s28.653 64 64 64 64-28.653 64-64S99.347 0 64 0z" fill="transparent"></path><path d="M64 3C30.31 3 3 30.31 3 64s27.31 61 61 61 61-27.31 61-61S97.69 3 64 3z" fill="transparent"></path><path d="M64 6C31.967 6 6 31.967 6 64s25.967 58 58 58 58-25.967 58-58S96.033 6 64 6z" fill="transparent"></path></g><path d="M72.095 49.514l.01 18.415 7.401 30.374c.494 1.985.47 4.02-1.495 4.514-1.955.493-3.506-.06-4-2.035L64.767 72.63h-2.962l-8.794 28.152c-.74 1.906-2.103 2.775-4 2.035-1.886-.731-1.857-2.874-1.116-4.78l7.138-29.792V49.514L34.01 47.645c-1.836-.148-3.148-1.163-3-3 .139-1.847 1.875-2.945 3.702-2.797H68.01l25.056-.04c1.837-.069 3.885.98 3.944 2.837.08 1.827-2.107 2.921-3.944 3zm-1.721-17.707a6.833 6.833 0 0 1-6.838 6.838c-3.75 0-6.807-3.057-6.807-6.838-.01-3.75 3.047-6.807 6.807-6.807 3.78 0 6.838 3.057 6.838 6.807z" fill="#fff"></path></g>',1)]))}const O=E(rt,[["render",it]]),ct={class:"xl:hidden"},ut={key:0,class:"fixed left-0 top-0 -z-10 min-h-full min-w-full transition-all-extra-slow mt-2"},dt={class:"z-10 flex grow flex-col bg-black rounded-tl-xl -mr-2"},_t={id:"menuItemsContainer",class:"transition-all"},pt={class:"space-y-4 px-10 py-7"},ft={class:"flex flex-col space-y-4 pl-4"},xt={id:"accessibilityWidget",class:"ml-4 cursor-pointer"},mt=C({__name:"EventTopMenuBurger",props:{eventId:{}},setup(w){const n=g(!1),s=g(!1),a=j();function r(){s.value?(s.value=!1,setTimeout(()=>{n.value=!1},300)):(n.value=!0,s.value=!0)}return(d,o)=>{var k,$;const _=lt,i=A,v=O;return l(),p("div",ct,[t("button",{class:"flex h-10 w-10 flex-col items-center justify-center text-white outline-none transition-all hover:cursor-pointer",onClick:r},[e(_,{burgerIsACross:s.value},null,8,["burgerIsACross"])]),n.value?(l(),p("div",ut,[t("div",{id:"burger-sidebar-container",class:M(["fixed right-0 mt-[72px] flex h-screen w-full flex-col text-lg shadow-lg transition-all-extra-slow",s.value?"slide-in":"slide-out translate-x-[100%]"])},[t("div",dt,[t("div",_t,[t("div",pt,[t("div",ft,[u(a).isLoggedIn?(l(),y(i,{key:0,to:"/orders",class:"text-btn-md text-white hover:text-gray-400",onClick:r},{default:c(()=>o[0]||(o[0]=[h(" My Orders ")])),_:1})):x("",!0),e(i,{to:"/support",class:"text-btn-md text-white hover:text-gray-400",onClick:r},{default:c(()=>o[1]||(o[1]=[h(" Help ")])),_:1}),(k=u(a).user)!=null&&k.is_admin?(l(),y(i,{key:1,to:`/dashboard/v2/#/events/${d.eventId}/show`,target:"_blank",class:"external-link text-btn-md text-white hover:text-gray-400",onClick:r},{default:c(()=>o[2]||(o[2]=[h(" Event Dashboard ")])),_:1},8,["to"])):x("",!0),($=u(a).user)!=null&&$.is_admin?(l(),y(i,{key:2,to:`/dashboard/v2/#/events/${d.eventId}/analytics`,target:"_blank",class:"external-link text-btn-md text-white hover:text-gray-400",onClick:r},{default:c(()=>o[3]||(o[3]=[h(" Live Sales ")])),_:1},8,["to"])):x("",!0)]),t("div",xt,[e(v)])])])])],2)])):x("",!0)])}}}),ht=E(mt,[["__scopeId","data-v-b2386a93"]]),vt={class:"w-full"},gt={class:"fixed top-0 z-50 flex w-full items-center justify-between px-2 md:px-4 lg:px-8"},wt={class:"mx-auto flex h-[4.5rem] w-full items-center justify-between rounded-b-xl bg-black/70 px-2 shadow-lg backdrop-blur-md md:px-4 lg:px-8"},bt={class:"flex lg:hidden"},yt={class:"hidden list-none items-center justify-center space-x-8 lg:flex"},kt={key:0},$t={key:1},Ct={key:2},Mt=C({__name:"EventTopMenu",async setup(w){let n,s;const a=Z(),r=j(),{windowWidth:d,breakpoints:o}=W();[n,s]=K(()=>tt("event-top-menu:fetch-event",()=>
1a.fetchEvent(L().params.slug))),await n,s();const _=N(()=>{var f;return((f=a.currentEvent)==null?void 0:f.id)??0}),i=g(!1),v=g(!1);I(()=>{i.value=d.value<o.value.lg,v.value=!0});const k=()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})};H(d,f=>{if(f>=o.value.md){i.value=!1;return}i.value=!0});function $(){if(window.UserWay)return;const f=document.createElement("script");f.src="https://cdn.userway.org/widget.js",f.setAttribute("data-account","USsBzOjsrj"),document.body.appendChild(f)}const V=()=>{window.UserWay&&window.UserWay.widgetOpen()};return I(()=>{$()}),(f,m)=>{var T,z;const U=B,b=A,D=ht,S=P,F=O;return l(),p("div",vt,[t("nav",gt,[t("div",wt,[e(b,{onClick:k,to:"/",class:"align-center mr-4 flex min-w-[150px] flex-col justify-center"},{default:c(()=>[e(U,{colour:"#ffffff"})]),_:1}),t("div",bt,[e(D,{eventId:u(_)},null,8,["eventId"])]),t("ul",yt,[u(r).isLoggedIn?(l(),p("li",kt,[e(b,{to:"/orders",class:"text-btn-md text-white hover:text-gray-300"},{default:c(()=>m[0]||(m[0]=[h("My Orders")])),_:1})])):x("",!0),t("li",null,[e(b,{to:"/support",class:"text-btn-md text-white hover:text-gray-300"},{default:c(()=>m[1]||(m[1]=[h("Help")])),_:1})]),(T=u(r).user)!=null&&T.is_admin?(l(),p("li",$t,[e(b,{to:`/dashboard/v2/#/events/${u(_)}/show`,target:"_blank",class:"external-link text-btn-md text-white hover:text-gray-300"},{default:c(()=>[e(S,{target:"_blank"},{default:c(()=>m[2]||(m[2]=[h("Event Dashboard")])),_:1})]),_:1},8,["to"])])):x("",!0),(z=u(r).user)!=null&&z.is_admin?(l(),p("li",Ct,[e(b,{to:`/dashboard/v2/#/events/${u(_)}/analytics`,target:"_blank",class:"external-link text-btn-md text-white hover:text-gray-300"},{default:c(()=>[e(S,{target:"_blank"},{default:c(()=>m[3]||(m[3]=[h("Live Sales")])),_:1})]),_:1},8,["to"])])):x("",!0),t("li",null,[t("div",{onClick:V,class:"ml-4 size-7 cursor-pointer"},[e(F)])])])])])])}}}),It={class:"w-full relative"},Et={class:"absolute bottom-0 z-50 w-full items-center lg:px-8 md:px-4 px-2 flex"},jt={class:"lg:h-[4.25rem] md:h-[5.25rem] h-[6rem] w-full items-center rounded-t-xl bg-black/70 p-2"},At={class:"max-w-[1110px] h-full flex lg:flex-row justify-between flex-col items-center lg:my-auto xl:mx-auto mx-2"},St=C({__name:"EventFooter",setup(w){const{windowWidth:n,breakpoints:s}=W(),a=g(!1),r=g(!1);I(()=>{a.value=n.value<s.value.md,r.value=!0}),H(n,o=>{if(o>=s.value.md){a.value=!1;return}a.value=!0});const d=()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})};return(o,_)=>{const i=B,v=A;return l(),p("div",It,[t("nav",Et,[t("div",jt,[t("div",At,[_[0]||(_[0]=t("p",{class:"text-white text-xs text-center py-2 lg:py-0"}," Copyright 2024 Megatix on behalf of Lost Paradise who acts as the presenter and seller subject to T&Cs ",-1)),e(v,{onClick:d,to:"/",class:"align-center flex flex-col justify-center pb-4 lg:pb-0"},{default:c(()=>[e(i,{colour:"#ffffff",height:22})]),_:1})])])])])}}}),Tt=R(q),zt={class:"flex h-full min-h-screen w-full max-w-[100vw] flex-col items-center justify-between overflow-hidden"},Ft=C({__name:"event",setup(w){const n=j(),s=N(()=>L().meta);return Q({title:"Megatix - Discover and create great events, products and vouchers"}),X(()=>{n.init(),et()}),(a,r)=>{const d=Tt,o=Mt,_=G,i=Y,v=St;return l(),p("div",zt,[e(d),u(s).showEventMenu?(l(),y(o,{key:0})):x("",!0),e(_,{color:"repeating-linear-gradient(to right, #79c0e7 0%, #79c0e7 100%)"}),e(i),u(s).showEventFooter?(l(),y(v,{key:1})):x("",!0)])}}});export{Ft 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.