PageSourceSearch

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

js reiv.com.au collected 2026-10-02 04:19:23 UTC 5,402 bytes, 1 lines download raw bytes

1import{_ as T}from"./DbHSgv2O.js";import{_ as B}from"./Bb9lMoD4.js";import{_ as D}from"./C1H-lwLJ.js";import{_ as R}from"./CYfjXOEd.js";import{_ as A}from"./DyG2fEZ9.js";import{at as C,Z as c,h as E,aF as r,ao as o,j as p,g as t,o as n,n as l,D as G,ah as N,i as S,a6 as u,av as U}from"./DLbABYnb.js";import"./DlAUqK2U.js";import"./oBp65Ksk.js";import"./Cpj98o6Y.js";const q={key:0,class:"reiv-container mb-16 mt-8 lg:mb-24 lg:mt-12"},M={key:1,class:"reiv-container mb-16 mt-8 lg:mb-24 lg:mt-12"},$={key:2,class:"reiv-container mb-16 mt-8 lg:mb-24 lg:mt-12"},j={key:0,class:"mb-8 text-error"},L={class:"mb-8"},F={key:3,class:"reiv-container mb-16 mt-8 lg:mb-24 lg:mt-12"},ee={__name:"PropertyDataSubscriptionActivate",props:{blok:{type:Object,default:()=>({})}},setup(O){const w=U(),v=C(),a=u(!1),y=u(!1),k=u(!1),i=u(""),f=u(""),d=u("");function x(){let m=!0;return f.value="",i.value?i.value.length<8&&(f.value="Password must be at least 8 characters.",m=!1):(f.value="Please enter your password.",m=!1),m}const b=u("");function h(m){m.preventDefault(),a.value=!0,d.value="",b.value?d.value="":d.value=`Please click on "I'm not a robot" checkbox`,x()&&b.value?grecaptcha.ready(async()=>{try{const e=await fetch(`${w.public.REIV_API_URL}/newsletter/activate`,{method:"PUT",headers:{"Content-Type":"application/json"}
1,body:JSON.stringify({guid:v.query.GUID||v.query.guid,password:i.value,recaptcha_token:b.value})}),s=await e.json();if(e.ok)y.value=!0,a.value=!1;else if(e.status===400&&s?.error?._summary?.includes("GUID has expired"))k.value=!0,a.value=!1;else throw s?.error?._summary||e.statusText}catch(e){const s="Something went wrong. Please try again later.";d.value=e||s,console.error(e||s),a.value=!1}}):a.value=!1}return(m,e)=>{const s=T,_=B,I=D,P=R,V=A;return c(),E(V,null,{default:r(()=>[o(y)?(c(),p("section",q,[e[5]||(e[5]=t("h1",{class:"mb-8"},"Thanks for subscribing",-1)),e[6]||(e[6]=t("p",{class:"mb-8"},"You can edit your subscription settings at any time by logging in.",-1)),n(s,{class:"mb-2 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:r(()=>[...e[3]||(e[3]=[l(" Log in ",-1)])]),_:1}),e[7]||(e[7]=t("br",null,null,-1)),n(s,{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"},{default:r(()=>[...e[4]||(e[4]=[l(" Go to Market Insights ",-1)])]),_:1})])):o(k)?(c(),p("section",M,[e[10]||(e[10]=t("h1",{class:"mb-8"},"Activation link has expired",-1)),e[11]||(e[11]=t("p",{class:"mb-8"}," Please use the forgot password form at the link below to set a password and activate your subscription. ",-1)),n(s,{class:"mb-2 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/forgot-password"},{default:r(()=>[...e[8]||(e[8]=[l(" Forgot password ",-1)])]),_:1}),e[12]||(e[12]=t("br",null,null,-1)),n(s,{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"},{default:r(()=>[...e[9]||(e[9]=[l(" Go to Market Insights ",-1)])]),_:1})])):o(v).query.GUID||o(v).query.guid?(c(),p("section",$,[e[14]||(e[14]=t("h1",{class:"mb-8"},"Choose a password",-1)),e[15]||(e[15]=t("p",null,"This password can be used to log in and manage your subscription.",-1)),t("form",{class:"my-8",novalidate:"",onSubmit:h},[n(_,{id:"property-data-subcription-form-activate-password",modelValue:o(i),"onUpdate:modelValue":e[0]||(e[0]=g=>G(i)?i.value=g:null),class:"mb-8 max-w-xl",type:"password",name:"password",label:"Password",error:!!o(f),"error-message":o(f),required:"",onBlur:e[1]||(e[1]=g=>x())},null,8,["modelValue","error","error-message"]),o(d)?(c(),p("p",j,N(o(d)),1)):S("",!0),t("div",L,[n(I,{onRecaptchaToken:e[2]||(e[2]=g=>b.value=g)})]),n(P,{type:"submit",disabled:o(a)||!o(i),"show-spinner":o(a),"use-spinner":""},{default:r(()=>[...e[13]||(e[13]=[l("Activate",-1)])]),_:1},8,["disabled","show-spinner"])],32)])):(c(),p("section",F,[e[18]||(e[18]=t("h1",{class:"mb-8"},"Activation link is invalid",-1)),e[19]||(e[19]=t("p",{class:"mb-8"},"Please sign up to receive a valid activation link.",-1)),n(s,{class:"mb-2 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/sign-up"},{default:r(()=>[...e[16]||(e[16]=[l(" Sign up ",-1)])]),_:1}),e[20]||(e[20]=t("br",null,null,-1)),n(s,{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"},{default:r(()=>[...e[17]||(e[17]=[l(" Go to Market Insights ",-1)])]),_:1})]))]),_:1})}}};export{ee 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.