PageSourceSearch

https://www.hoyts.com.au/vue/20260930.4/chunk-Cf8e-gzf.js

js hoyts.com.au collected 2026-10-02 04:54:16 UTC 2,986 bytes, 1 lines download raw bytes

1import{d as P,L as S,c as x,r as a,o as C,a as r,h as _,f as e,i as R,n as T,s as v,B as y,ag as b,C as V,e as l}from"./index.js";import{_ as p}from"./chunk-CXQCcojo.js";const B={class:"reset-password"},M={key:0,class:"alert alert--success"},z={key:1,class:"reset-password__fields"},K={class:"alert alert--full alert--flush-top"},L={key:0,class:"alert__text"},N={key:1,class:"alert__text"},U={class:"form-row"},A={class:"form-column form-column--full"},E={class:"form-placeholder"},I={class:"form-row"},D={class:"form-column form-column--full"},H={class:"form-placeholder"},O={class:"form-group"},Y=["disabled"],q=P({__name:"App",setup(Z){const k=S(),g=x(()=>o.value?.match(/[a-zA-Z0-9]{6,}/)&&n.value===o.value&&i.value!==!0),o=a(),n=a(),d=a(0),i=a(!1),m=a(!1),f=a(!1);let w,h;const c=async()=>{i.value=!0,d.value=0;try{const t=await V("setPassword");await k.completePasswordReset(w,o.value,h,t),f.value=!0}catch(t){d.value=t.status,m.value=!0}i.value=!1};return C(()=>{const t=new URL(window.location.href);w=t.searchParams.get("id")??"",h=t.searchParams.get("token")??""}),(t,s)=>(l(),r("div",B,[_(p,{id:"hoyts-rewards",class:"reset-password__logo",width:"120",height:"64",title:"HOYTS Rewards"}),s[7]||(s[7]=e("h2",{class:"reset-password__heading"},"Reset your password",-1)),s[8]||(s[8]=e("p",{class:"reset-password__byline"},"Please enter your new password below.",-1)),f.value?(l(),r("div",M,[_(p,{id:"tick",class:"alert__icon alert__icon--success",width:"16",height:"16"}),s[2]||(s[2]=e("span",{class:"alert__text"},"Thanks, your password has been updated.",-1))])):(l(),r("div",z,[e("div",{class:T(["reset-password__alert",{"is-active":m.value}]),ref:"alert"},[e("div",K,[_(p,{id:"alert",class:"alert__icon alert__icon--warning",width:"32",height:"32"}),d.value===422?(l(),r("span",L,[...s[3]||(s[3]=[R("Sorry, there was an error confirming you are not a robot. Please try again or ",-1),e("a",{href:"https://hoyts.zendesk.com/hc/en-us",class:"alert__link",target:"_blank"},"contact us",-1)])])):(l(),r("span",N,"Sorry, an unknown error has occured. Please try again."))])],2),e("div",U,[e("div",A,[e("div",E,[v(e("input",{class:"form-placeholder__input",type:"password",placeholder:" ","onUpdate:modelValue":s[0]||(s[0]=u=>o.value=u),onKeydown:b(c,["enter"])},null,544),[[y,o.value]]),s[4]||(s[4]=e("label",{class:"form-placeholder__label"},"Password",-1))]),s[5]||(s[5]=e("span",{class:"form-note"},"Minimum of 6 characters",-1))])]),e("div",I,[e("div",D,[e("div",H,[v(e("input",{class:"form-placeholder__input",type:"password",placeholder:" ","onUpdate:modelValue":s[1]||(s[1]=u=>n.value=u),onKeydown:b(c,["enter"])},null,544),[[y,n.value]]),s[6]||(s[6]=e("label",{class:"form-placeholder__label"},"Confirm Password",-1))])])]),e("div",O,[e("button",{class:"form-button form-button--full",type:"button",disabled:!g.value,onClick:c},"Continue",8,Y)])])),s[9]||(s[9]=e("a",{class:"reset-password__return",href:"/rewards/"},"Return to Sign In",-1))]))}});export{q 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.