PageSourceSearch

https://www.with-magicdoor.com/_build/assets/_code_-BpipcZOv.js

js with-magicdoor.com collected 2026-10-06 02:27:29 UTC 15,330 bytes, 2 lines download raw bytes

1import{g as p,e as d,i,m as de,k as ce,t as g,s as ot}from"./web-B2OvdsLH.js";import{a as Y,u as dt}from"./index-Ip1PKFAA.js";import{w as ct,g as o,S as T,M as w,F as _t,k as G,c as mt}from"./solid-BpgdPW70.js";import{L as ut}from"./LabeledTextArea-BFDKjBJy.js";import{L as ft}from"./LabeledTextInput-DBSirW6Z.js";import{L as pt}from"./LoadingState-htUKcdRp.js";import{B as gt}from"./Button-B0daeKyW.js";import"./index-ehrrGtXa.js";import{T as r,u as xe}from"./useLocalization-0VUbZgCs.js";import{C as V}from"./index-BvoFxSsA.js";import{u as xt}from"./useText-ApKN6EcJ.js";import{p as It}from"./companyName-ABAyh0O0.js";import{M as H,c as bt}from"./magicUseCase-DJ1GqzWv.js";import{G as vt,R as _e,N as Ie,H as $t}from"./magicRequest-DNGtzWi1.js";import{l as Rt}from"./leasingNetworkManager-CFA-Cx95.js";import{L as Nt}from"./errors-Bxo8K4SA.js";import{l as Dt}from"./routing-rySecgPp.js";import"./LabeledGroup-a-PgbSW6.js";import"./AnimatedDots-Bv4Fw70S.js";import"./ActivityIndicator-DPPGX8m6.js";import"./components-BWIGrQeS.js";import"./index-CEuJY9m3.js";import"./localStorageManager-A3CSxXSi.js";import"./filledCheck-BsqSoKb-.js";import"./tools-DSJPPG7J.js";import"./SiteRoute-DQTWylGy.js";import"./services-lij-Zj5L.js";import"./env-BM-k_jh9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"882b069bf3d395a597ad23b0dfc21031695d97ee"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41e36eed-bd52-4d10-aee6-d1bd9df2ec4f",e._sentryDebugIdIdentifier="sentry-dbid-41e36eed-bd52-4d10-aee6-d1bd9df2ec4f")}catch{}})();var m=(e=>(e.Pending="Pending",e.Verified="Verified",e.Declined="Declined",e.Rejected="Rejected",e.Expired="Expired",e.NotStarted="NotStarted",e.UnVerified="UnVerified",e.ManualVerificationRequired="ManualVerificationRequired",e.Unknown="Unknown",e))(m||{}),h=(e=>(e.Verified="Verified",e.Declined="Declined",e.Rejected="Rejected",e))(h||{}),I=(e=>(e.Loading="loading",e.NotFound="notFound",e.Responded="responded",e.AlreadyComplete="alreadyComplete",e.Open="open",e))(I||{});const At=new Set([m.Verified,m.Declined,m.Rejected]),ht={[h.Verified]:r.LANDLORD_VERIFICATION_VERIFIED,[h.Declined]:r.LANDLORD_VERIFICATION_DECLINED,[h.Rejected]:r.LANDLORD_VERIFICATION_REJECTED},Ot=/^(\d{4})-(\d{2})-(\d{2})/,Et=e=>{if(e.notFound)return I.NotFound;const t=e.verification?.verificationStatus;return t?t===m.Pending?I.Open:At.has(t)?I.Responded:I.AlreadyComplete:I.Loading},Lt=e=>e?[e.streetAddress1,e.streetAddress2,e.city,e.state,e.zipCode,e.country].filter(t=>!!t).join(", "):void 0,me=e=>{if(!e)return;const t=Ot.exec(e);if(!t)return{text:e};const[,n,s,l]=t;return{date:new Date(Number(n),Number(s)-1,Number(l))}},St=e=>Object.values(h).map(t=>({value:t,label:ht[t],isSelected:t===e})),Ct=e=>{const t=e.user.landlordVerification,{verification:n,form:s}=t,l=It(e),u=n?.applicantName;return{view:Et(t),ribbon:{key:r.LANDLORD_VERIFICATION_MAGIC_RIBBON,params:{companyName:l}},footerTitle:{key:r.LANDLORD_VERIFICATION_MAGIC_FOOTER_TITLE,params:{companyName:l}},intro:u?{key:r.LANDLORD_VERIFICATION_INTRO,params:{applicantName:u}}:void 0,submittedBy:n?.verifierName?{key:r.LANDLORD_VERIFICATION_SUBMITTED_BY,params:{verifierName:n.verifierName}}:void 0,applicantName:u,address:Lt(n?.address),moveInDate:me(n?.moveInDate),moveOutDate:me(n?.moveOutDate),verifierName:s.verifierName,notes:s.notes,hadLatePayments:s.hadLatePayments,wasEvicted:s.wasEvicted,wouldRecommend:s.wouldRecommend,wantsMagicDoorInfo:s.wantsMagicDoorInfo,responseOptions:St(s.response),canSubmit:!!s.response}};class yt extends H{async runLogic(t){const n=this.getState().user.landlordVerification;n.form={...n.form,...t}}}const Tt={pending:m.Pending,verified:m.Verified,declined:m.Declined,rejected:m.Rejected,expired:m.Expired,notstarted:m.NotStarted,unverified:m.UnVerified,manualverificationrequired:m.ManualVerificationRequired},ue="/company-website/rental-applications/landlord-verification",wt=e=>e?Tt[e.toLowerCase()]??m.Unknown:m.Pending,Vt=e=>e?{streetAddress1:e.streetAddress1,streetAddress2:e.streetAddress2??void 0,city:e.city,state:e.state,zipCode:e.zipCode,country:e.country}:void 0,fe=e=>({applicantName:e.applicantName,address:Vt(e.address),moveInDate:e.moveInDate??void 0,moveOutDate:e.moveOutDate??void 0,verificationStatus:wt(e.verificationStatus),verificationNotes:e.verificationNotes??void 0,landlordResponseHadLatePayments:e.landlordResponseHadLatePayments??void 0,landlordResponseWasEvicted:e.landlordResponseWasEvicted??void 0,landlordResponseWouldRecommendTenant:e.landlordResponseWouldRecommendTenant??void 0,verifierName:e.verifierName??void 0,wantsMagicDoorInfo:e.wantsMagicDoorInfo??void 0});class Ft extends vt{async getVerification(t,n){const l=await(await this.sendRequest({url:`${ue}/${encodeURIComponent(t)}`,method:_e.GET,headers:this.createCommonHeaders(),companyId:n})).json();return fe(l)}async submitVerification(t,n,s){const u=await(await this.sendRequest({url:`${ue}/${encodeURIComponent(t)}`,method:_e.POST,headers:this.createCommonHeaders(),body:JSON.stringify(n),companyId:s})).json();return fe(u)}}const j=new Ft(Rt);class Mt extends H{async runLogic(t){const n=this.getState().user;n.landlordVerification.code!==t&&(n.landlordVerification={...bt(),code:t});const s=await this.fetchVerification(t),l=this.getState().user.landlordVerification;l.code===t&&(l.verification=s,l.notFound=!s)}async fetchVerification(t){try{return await j.getVerification(t,this.get
1State().user.companyInfo?.id)}catch(n){if(n instanceof Ie)return;throw n}}}const kt=e=>{if(!e.response)throw new Nt;return{response:e.response,notes:e.notes,landlordResponseHadLatePayments:e.hadLatePayments,landlordResponseWasEvicted:e.wasEvicted,landlordResponseWouldRecommendTenant:e.wouldRecommend,verifierName:e.verifierName?.trim()||void 0,wantsMagicDoorInfo:e.wantsMagicDoorInfo}};class Pt extends H{async runLogic(t){const{landlordVerification:n,companyInfo:s}=this.getState().user,l=kt(n.form),u=await this.submit(t,l,s?.id),$=this.getState().user.landlordVerification;$.code===t&&(u?$.verification=u:$.notFound=!0)}async submit(t,n,s){try{return await j.submitVerification(t,n,s)}catch(l){if(!(l instanceof $t))throw l;return await this.answeredMeanwhile(t,l,s)}}async answeredMeanwhile(t,n,s){let l;try{l=await j.getVerification(t,s)}catch(u){if(u instanceof Ie)return;throw n}if(l.verificationStatus===m.Pending)throw n;return l}}var Ut=g('<div class="flex items-center gap-2 rounded-md bg-primary-color/5 px-3 py-2 text-xs text-text-level03"><span class="font-semibold text-primary-color">MagicDoor</span><span class=text-text-level03/60>·</span><span>'),Bt=g('<div class=space-y-2><h2 class="text-lg font-semibold text-text-level01"></h2><p class="text-sm text-text-level03">'),Yt=g('<div class=space-y-4><div class=space-y-2><h2 class="text-lg font-semibold text-text-level01"></h2><p class="text-sm text-text-level03"></p><!$><!/></div><!$><!/>'),Gt=g('<div class=space-y-4><div class=space-y-2><h2 class="text-lg font-semibold text-text-level01"></h2><p class="text-sm text-text-level03"></p></div><!$><!/>
1'),jt=g('<div class="flex flex-col gap-4 rounded-lg bg-white p-6 shadow"><h1 class="text-2xl font-semibold text-text-level01"></h1><!$><!/><!$><!/>'),Ht=g("<div class=py-12>"),Wt=g('<p class="text-xs text-text-level03/80">'),qt=g('<div class=space-y-4><!$><!/><div class="grid grid-cols-1 gap-3 rounded-md border border-border-level01 bg-inputbox-bg p-4 text-sm sm:grid-cols-2"><!$><!/><!$><!/><!$><!/><!$><!/></div><div class=space-y-1><!$><!/><p class="text-xs text-text-level03"></p></div><fieldset class=space-y-2><legend class="text-sm font-semibold text-text-level01"></legend><div class="flex flex-col gap-2"></div></fieldset><!$><!/><div class=space-y-2><label class="flex items-center gap-2 text-sm text-text-level03"><!$><!/><!$><!/></label><label class="flex items-center gap-2 text-sm text-text-level03"><!$><!/><!$><!/></label><label class="flex items-center gap-2 text-sm text-text-level03"><!$><!/><!$><!/></label></div><label class="flex items-start gap-2 text-sm text-text-level03"><!$><!/><span></span></label><div class="flex justify-end"></div><a href="https://magicdoor.com/?utm_source=landlord-verification&amp;utm_medium=footer-card"target=_blank rel="noopener noreferrer"class="block rounded-lg border border-partingline bg-inputbox-bg p-4 transition-colors hover:bg-primary-color/5"><div class="flex items-start justify-between gap-3"><div class=space-y-1><p class="text-sm font-semibold text-text-level01"></p><p class="text-xs text-text-level03"></p></div><span class="shrink-0 self-center text-sm font-semibold text-primary-color"><!$><!/> →'),Kt=g('<p class="text-sm text-text-level03">'),zt=g('<label class="flex items-center gap-2 text-sm text-text-level03"><input type=radio name=response><!$><!/>'),Jt=g('<a target=_blank rel="noopener noreferrer"class="block rounded-lg bg-primary-color/10 p-5 transition-colors hover:bg-primary-color/15"><p class="text-sm font-semibold text-primary-color"></p><p class="mt-1 text-sm text-text-level03"></p><span class="mt-3 inline-block rounded-md bg-primary-color px-4 py-2 text-sm font-semibold text-white"><!$><!/> →'),Qt=g('<div class="flex flex-col"><span class="text-xs font-semibold uppercase tracking-wide text-text-level03"></span><span class="text-sm text-text-level01">');const be="https://magicdoor.com/?utm_source=landlord-verification",Xt=`${be}&utm_medium=thank-you-card`,Zt=`${be}&utm_medium=already-complete-card`,ei=()=>{const{t:e}=xe(),t=xt(),n=Dt(),{execute:s}=Y(Mt),{execute:l}=Y(yt),{execute:u,isLoading:$}=Y(Pt),{model:f}=dt(Ct);return ct(async()=>{n.code&&await s(n.code)}),(()=>{var R=p(jt),W=R.firstChild,ve=W.nextSibling,[q,$e]=d(ve.nextSibling),Re=q.nextSibling,[Ne,De]=d(Re.nextSibling);return i(W,()=>e(r.LANDLORD_VERIFICATION_TITLE)),i(R,o(T,{get when(){return de(()=>!!f())()&&f()?.view!==I.NotFound},get children(){var a=p(Ut),_=a.firstChild,x=_.nextSibling,v=x.nextSibling;return i(v,()=>t(f().ribbon)),a}}),q,$e),i(R,o(mt,{get fallback(){return(()=>{var a=p(Ht);return i(a,o(pt,{message:""})),a})()},get children(){return[o(w,{get when(){return f()?.view===I.NotFound},get children(){var a=p(Bt),_=a.firstChild,x=_.nextSibling;return i(_,()=>
1e(r.LANDLORD_VERIFICATION_INVALID_LINK_TITLE)),i(x,()=>e(r.LANDLORD_VERIFICATION_INVALID_LINK_BODY)),a}}),o(w,{get when(){return f()?.view===I.Responded},get children(){var a=p(Yt),_=a.firstChild,x=_.firstChild,v=x.nextSibling,D=v.nextSibling,[b,A]=d(D.nextSibling),O=_.nextSibling,[M,k]=d(O.nextSibling);return i(x,()=>e(r.LANDLORD_VERIFICATION_THANK_YOU_TITLE)),i(v,()=>e(r.LANDLORD_VERIFICATION_THANK_YOU_BODY)),i(_,o(T,{get when(){return f()?.submittedBy},children:E=>(()=>{var L=p(Wt);return i(L,()=>t(E())),L})()}),b,A),i(a,o(ge,{href:Xt}),M,k),a}}),o(w,{get when(){return f()?.view===I.AlreadyComplete},get children(){var a=p(Gt),_=a.firstChild,x=_.firstChild,v=x.nextSibling,D=_.nextSibling,[b,A]=d(D.nextSibling);return i(x,()=>e(r.LANDLORD_VERIFICATION_ALREADY_COMPLETE_TITLE)),i(v,()=>e(r.LANDLORD_VERIFICATION_ALREADY_COMPLETE_BODY)),i(a,o(ge,{href:Zt}),b,A),a}}),o(w,{get when(){return de(()=>f()?.view===I.Open)()&&f()},children:a=>(()=>{var _=p(qt),x=_.firstChild,[v,D]=d(x.nextSibling),b=v.nextSibling,A=b.firstChild,[O,M]=d(A.nextSibling),k=O.nextSibling,[E,L]=d(k.nextSibling),Ae=E.nextSibling,[K,he]=d(Ae.nextSibling),Oe=K.nextSibling,[Ee,Le]=d(Oe.nextSibling),P=b.nextSibling,Se=P.firstChild,[z,Ce]=d(Se.nextSibling),ye=z.nextSibling,J=P.nextSibling,Q=J.firstChild,Te=Q.nextSibling,we=J.nextSibling,[X,Ve]=d(we.nextSibling),Z=X.nextSibling,S=Z.firstChild,Fe=S.firstChild,[ee,Me]=d(Fe.nextSibling),ke=ee.nextSibling,[Pe,Ue]=d(ke.nextSibling),C=S.nextSibling,Be=C.firstChild,[te,Ye]=d(Be.nextSibling),Ge=te.nextSibling,[je,He]=d(Ge.nextSibling),U=C.nextSibling,We=U.firstChild,[ie,qe]=d(We.nextSibling),Ke=ie.nextSibling,[ze,Je]=d(Ke.nextSibling),B=Z.nextSibling,Qe=B.firstChild,[ne,Xe]=d(Qe.nextSibling),Ze=ne.nextSibling,re=B.nextSibling,et=re.nextSibling,tt=et.firstChild,le=tt.firstChild,ae=le.firstChild,it=ae.nextSibling,se=le.nextSibling,nt=se.firstChild,[oe,rt]=d(nt.nextSibling);return oe.nextSibling,i(_,o(T,{get when(){return a().intro},children:c=>(()=>{var N=p(Kt);return i(N,()=>t(c())),N})()}),v,D),i(b,o(F,{get label(){return e(r.LANDLORD_VERIFICATION_APPLICANT)},get value(){return a().applicantName}}),O,M),i(b,o(F,{get label(){return e(r.LANDLORD_VERIFICATION_ADDRESS)},get value(){return a().address}}),E,L),i(b,o(F,{get label(){return e(r.LANDLORD_VERIFICATION_MOVE_IN)},get value(){return pe(t,a().moveInDate)}}),K,he),i(b,o(F,{get label(){return e(r.LANDLORD_VERIFICATION_MOVE_OUT)},get value(){return pe(t,a().moveOutDate)}}),Ee,Le),i(P,o(ft,{id:"lv-verifier-name",get label(){return e(r.LANDLORD_VERIFICATION_VERIFIER_NAME)},get value(){return a().verifierName},onInput:c=>l({verifierName:c}
1),maxLength:250}),z,Ce),i(ye,()=>e(r.LANDLORD_VERIFICATION_VERIFIER_NAME_HINT)),i(Q,()=>e(r.LANDLORD_VERIFICATION_RESPONSE)),i(Te,o(_t,{get each(){return a().responseOptions},children:c=>(()=>{var N=p(zt),y=N.firstChild,lt=y.nextSibling,[at,st]=d(lt.nextSibling);return y.addEventListener("change",()=>l({response:c.value})),i(N,()=>e(c.label),at,st),G(()=>ce(y,"value",c.value)),G(()=>ce(y,"checked",c.isSelected)),N})()})),i(_,o(ut,{id:"lv-notes",get label(){return e(r.LANDLORD_VERIFICATION_NOTES)},get value(){return a().notes},onInput:c=>l({notes:c}),rows:4}),X,Ve),i(S,o(V,{id:"lv-late",get checkedValue(){return a().hadLatePayments},onInput:c=>l({hadLatePayments:c})}),ee,Me),i(S,()=>e(r.LANDLORD_VERIFICATION_HAD_LATE_PAYMENTS),Pe,Ue),i(C,o(V,{id:"lv-evicted",get checkedValue(){return a().wasEvicted},onInput:c=>l({wasEvicted:c})}),te,Ye),i(C,()=>e(r.LANDLORD_VERIFICATION_WAS_EVICTED),je,He),i(U,o(V,{id:"lv-recommend",get checkedValue(){return a().wouldRecommend},onInput:c=>l({wouldRecommend:c})}),ie,qe),i(U,()=>e(r.LANDLORD_VERIFICATION_WOULD_RECOMMEND),ze,Je),i(B,o(V,{id:"lv-magic-info",get checkedValue(){return a().wantsMagicDoorInfo},onInput:c=>l({wantsMagicDoorInfo:c})}),ne,Xe),i(Ze,()=>e(r.LANDLORD_VERIFICATION_WANTS_MAGICDOOR_INFO)),i(re,o(gt,{variant:"text",type:"button",onClick:()=>u(n.code),get disabled(){return!a().canSubmit||$()},class:"rounded-md bg-primary-color px-6 py-2 text-sm font-semibold text-white hover:opacity-90 disabled:opacity-60",get children(){return o(T,{get when(){return $()},get fallback(){return e(r.LANDLORD_VERIFICATION_SUBMIT)},get children(){return e(r.LANDLORD_VERIFICATION_SUBMITTING)}})}})),i(ae,()=>t(a().footerTitle)),i(it,()=>e(r.LANDLORD_VERIFICATION_MAGIC_FOOTER_BODY)),i(se,()=>e(r.LANDLORD_VERIFICATION_MAGIC_LEARN_MORE),oe,rt),_})()})]}}),Ne,De),R})()},pe=(e,t)=>t?e(t):void 0,ge=e=>{const{t}=xe();return(()=>{var n=p(Jt),s=n.firstChild,l=s.nextSibling,u=l.nextSibling,$=u.firstChild,[f,R]=d($.nextSibling);return f.nextSibling,i(s,()=>t(r.LANDLORD_VERIFICATION_MAGIC_THANK_YOU_TITLE)),i(l,()=>t(r.LANDLORD_VERIFICATION_MAGIC_THANK_YOU_BODY)),i(u,()=>t(r.LANDLORD_VERIFICATION_MAGIC_TRY_FREE),f,R),G(()=>ot(n,"href",e.href)),n})()},F=e=>(()=>{var t=p(Qt),n=t.firstChild,s=n.nextSibling;return i(n,()=>e.label),i(s,()=>e.value||"—"),t})(),Li=()=>o(ei,{});export{Li as default};
2//# sourceMappingURL=_code_-BpipcZOv.js.map

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.