PageSourceSearch

https://reiv.com.au/_nuxt/BZXycm9T.js

js reiv.com.au collected 2026-10-02 04:19:24 UTC 2,941 bytes, 1 lines download raw bytes

1import{_ as N}from"./Bb9lMoD4.js";import{_ as R}from"./C1H-lwLJ.js";import{_ as C}from"./DyG2fEZ9.js";import{_ as E}from"./CYfjXOEd.js";import{_ as L}from"./DbHSgv2O.js";import{i as $}from"./DQaqKl2A.js";import{Z as p,j as f,g as _,ah as v,ao as o,i as b,o as u,D as j,aF as g,n as w,f as D,a6 as i,av as I,aM as F}from"./DLbABYnb.js";import"./DlAUqK2U.js";import"./oBp65Ksk.js";import"./Cpj98o6Y.js";const O={class:"reiv-container mb-16 mt-8 lg:mb-24 lg:mt-12"},U={class:"mb-8"},q=["innerHTML"],H={key:0,class:"mb-8"},A={key:1,class:"mb-8 text-error"},G={class:"mb-8"},te={__name:"PropertyDataSubscriptionForgotPassword",props:{blok:{type:Object,default:()=>({})}},setup(y){const V=y,P=I(),s=i(""),a=i(""),r=i(!1),c=i(""),l=i(""),h=D(()=>F(V.blok.description));function k(){let n=!0;return s.value?$(s.value)||(a.value="Please check your email address format.",n=!1):(a.value="Please enter your email address.",n=!1),n&&a.value&&(a.value=""),n}const m=i("");function B(n){n.preventDefault(),r.value=!0,c.value="",l.value="",m.value?l.value="":l.value=`Please click on "I'm not a robot" checkbox`,k()&&m.value?grecaptcha.ready(async()=>{try{const e={email_address:s.value,recaptcha_token:m.value},t=await fetch(`${P.public.REIV_API_URL}/newsletter/forgot-password`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t?.ok)c.value="Please check your email inbox for instructions to reset password.",r.value=!1;else throw(await t.json())?.error?._summary||t.statusText}catch(e){const t="Something went wrong. Please try again later.";l.value=e||t,console.error(e||t),r.value=!1}}):r.value=!1}return(n,e)=>{const t=N,x=R,S=C,T=E,M=L;return p(),f("section",O,[_("h1",U,v(y.blok.heading),1),o(h)?(p(),f("div",{key:0,class:"mt-8",innerHTML:o(h)},null,8,q)):b("",!0),_("form",{class:"my-8",novalidate:"",onSubmit:B},[u(t,{id:"property-data-subcription-form-forgot-password-email-address",modelValue:o(s),"onUpdate:modelValue":e[0]||(e[0]=d=>j(s)?s.value=d:null),class:"mb-8 max-w-xl",type:"email",name:"email-address",label:"Your email address",error:!!o(a),"error-message":o(a),required:"",onBlur:e[1]||(e[1]=d=>k())},null,8,["modelValue","error","error-message"]),o(c)?(p(),f("p",H,[_("strong",null,v(o(c)),1)])):b("",!0),o(l)?(p(),f("p",A,v(o(l)),1)):b("",!0),u(S,null,{default:g(()=>[_("div",G,[u(x,{onRecaptchaToken:e[2]||(e[2]=d=>m.value=d)})])]),_:1}),u(T,{type:"submit",disabled:o(r)||o(a).length||o(s).length<4,"show-spinner":o(r),"use-spinner":""},{default:g(()=>[...e[3]||(e[3]=[w(" Submit ",-1)])]),_:1},8,["disabled","show-spinner"])],32),u(M,{class:"inline-block text-secondary-light underline-offset-2 transition-all duration-100 hover:text-secondary-dark hover:underline hover:duration-200 focus:text-secondary-dark focus:underline focus:duration-200",to:"/market-insights/newsletter-subscription/login"},{default:g(()=>[...e[4]||(e[4]=[w(" Go to login ",-1)])]),_:1})])}}};export{te 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.