PageSourceSearch

https://megatix.com.au/_nuxt/BEbeMbyl.js

js megatix.com.au collected 2026-09-25 18:39:48 UTC 3,712 bytes, 1 lines download raw bytes

1import{_ as j}from"./er7mJA20.js";import{_ as V}from"./lZN_H_Zs.js";import{d as D,A as F,z as L,c as P,s as N,i as u,a as r,b as e,g as c,w as _,f as p,t as g,u as t,B as E,C as A,D as z,E as $,h as G,o as a,e as h,P as x,l as H,_ as I}from"./Dki5OcH0.js";import{_ as U}from"./D87CfIvf.js";import{_ as Y}from"./DtOgmEyk.js";import{u as J}from"./Ch9xowyr.js";const K={class:"flex h-[100vh] flex-col lg:flex-row"},O={class:"side-bar-background w-full items-start justify-start pl-5 lg:flex lg:w-[472px] lg:rounded-r-lg lg:pl-0"},Q={class:"absolute hidden h-screen w-[472px] items-center justify-center overflow-hidden lg:flex","aria-hidden":!0},W={class:"flex flex-1 items-center justify-center"},X={class:"py-18 w-full px-5 md:w-[354px] xl:px-2 xl:py-4"},Z={class:"flex w-full flex-col"},ee={class:"pb-2 text-xl text-mt-black-100",style:{"font-weight":"500"}},te={key:0,class:"mb-3 rounded-lg border border-blue-200 bg-blue-50 p-3 text-sm text-mt-black-100"},se={key:1},oe={class:"flex flex-col"},ae=["disabled"],le={key:0},ne={key:2},ie={class:"mt-2"},re=D({__name:"index",setup(ue){var w;const d=F(),T=L(),y=P(()=>T.theme),m=N(),n=u(!1),f=u(!1);J({ogTitle:"Megatix Forgot Password",ogDescription:"Forgot Password to Megatix"});const i=u(m.query.email||((w=d.user)==null?void 0:w.email)||""),l=u(""),b=P(()=>d.mustResetPassword||m.query.required==="1");function S(){var s;return l.value="",(s=i.value)!=null&&s.trim().length?!0:(l.value="You must include an email address.",!1)}async function C(){if(!(n.value||!S())){n.value=!0;try{const s={email:i.value},o=await d.resetPassword(s);o.success?f.value=!0:l.value=o.message}catch{l.value="Resetting password unsuccesful. Please check your email."}finally{n.value=!1}}}return(s,o)=>{const v=j,M=V,k=G,q=U,B=Y;return a(),r("div",K,[e("div",O,[c(k,{to:"/",alt:"Megatix Home Page",class:"z-10 px-6 py-5"},{default:_(()=>[[("PageThemes"in s?s.PageThemes:t(x)).megatix,("PageThemes"in s?s.PageThemes:t(x)).megatix_minimal].includes(t(y).name)?(a(),h(v,{key:0,colour:"#ffffff",height:32})):p("",!0),[("PageThemes"in s?s.PageThemes:t(x)).tickethotline].includes(t(y).name)?(a(),h(M,{key:1,colour:"#ffffff",height:32})):p("",!0)]),_:1}),e("div",Q,[c(v,{class:"translate-x-[6%] translate-y-[25%]",showText:!1,ticketLeftColour:"#ffffff20",ticketRightColour:"#ffffff20",height:880})])]),e("div",W,[e("div",X,[e("div",Z,[e("h2",ee,g(t(b)?"Password reset required":"Forgot Password"),1),t(b)&&!t(f)?(a(),r("div",te," For your account's security you're required to reset your password before you can continue. Enter your email below and we'll send a secure reset link. ")):p("",!0),t(f)?(a(),r("div",ne,[o[3]||(o[3]=e("div",{class:"mb-auto mt-auto flex h-28 items-center justify-center"},[e("p",null,"Password reset instructions sent. Please check your email.")],-1)),e("div",null,[c(k,{to:"/login",class:"mt-btn btn-lg btn-dark mt-8 flex h-12 items-center justify-center shadow-md"},{default:_(()=>o[2]||(o[2]=[H(" Go Back ")])),_:1})])])):(a(),r("div",se,[e("form",{onSubmit:E(C,["prevent"]),method:"post"},[e("div",oe,[o[1]||(o[1]=e("label",{class:"pb-1 pt-3 text-sm"},"Email Address",-1)),A(e("input",{name:"email",type:"email",class:"login-input","onUpdate:modelValue":o[0]||(o[0]=R=>$(i)?i.value=R:null),tabindex:"1",required:"",autofocus:"",disabled:!!t(m).query.email},null,8,ae),[[z,t(i)]])]),e("div",null,[c(B,{classes:"w-full mt-8 h-12 flex justify-center items-center text-md",disabled:t(n)},{default:_(()=>[t(n)?(a(),h(q,{key:1,bgColourClass:"bg-mt-blue-900",class:"pl-2"})):(a(),r("span",le,"Reset Password"))]),_:1},8,["disabled"])])],32)])),e("span",ie,g(t(l)?"🚨 ":"")+g(t(l)),1)])])])])}}}),ge=I(re,[["__scopeId","data-v-2e37cd00"]]);export{ge 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.