1import{V as s}from"./vue.esm.o6jRrDkK.js";import{mapState as a,mapActions as r}from"./vuex.esm.browser.CyPgdje4.js";import{r as d}from"./refresh.C0_91Y5F.js";import{t as i}from"./document.xHJdDxf_.js";import{r as l}from"./urls.DTnL_YOm.js";import{V as c}from"./vue-cookie.ITSO0Qcb.js";import{n as f}from"./_plugin-vue2_normalizer.D8LNvuNP.js";import"./listAddress.js4afnRf.js";import"./isSymbol.CCC4HJaK.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"v3.302.1"};var e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="191faf74-f39d-4182-a987-fc2a64b26b34",o._sentryDebugIdIdentifier="sentry-dbid-191faf74-f39d-4182-a987-fc2a64b26b34")}catch{}})();const g=o=>{window.onpageshow=function(e){(e.persisted||window.performance&&window.performance.navigation.type==2)&&o&&o()}};s.use(c);const n=342,m="schedule-viewing",u={name:"LoginModal",props:{forceLogin:{default:!1},debug:{default:!1},signUpTrackingValues:{type:Object,default:null},forceMissingDetailForm:{default:!1},missingDetailFormType:{default:"unit-detail",type:String},enableIntervalLineLogin:{default:!1}},data(){return{modalWidth:n,isOpen:!1}},methods:{...r("auth",["setIsNeedRefreshOnGoBack","getIsNeedRefreshOnGoBack","showModal"]),beforeOpen(){this.isOpen=!0},onModalCreated(){this.checkForceLogin()},checkForceLogin(){const{forceLogin:o,shouldShowLoginModal:e}=this;(o||e)&&this.$nextTick(()=>{this.showModal()})},onAddClassLoginModal(){this.pinterestLike||i("add","auth-modal-body"),document.dispatchEvent(new CustomEvent("loginModalOpened"))},onRemoveClassLoginModal(){this.source!==m&&l(),i("remove","auth-modal-body"),this.$cookie.delete("login-type"),document.dispatchEvent(new CustomEvent("loginModalClosed"))}},created(){this.modalWidth=window.innerWidth<n?n/2:n},computed:{...a("auth",{shouldShowLoginModal:o=>o.showLoginModal,force:o=>o.forceLogin,pinterestLike:o=>o.pinterestLike,source:o=>o.source})},beforeMount(){g(async()=>{const o=await this.getIsNeedRefreshOnGoBack(),e=!!(document.body&&document.body.getAttribute("data-view-state"));(o||!e)&&(this.setIsNeedRefreshOnGoBack(!1),d())})},mounted(){this.checkForceLogin()}};var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login-modal_wrapper"},[t("alert"),t("modal",{ref:"modal",staticClass:"demo-login",attrs:{classes:"modelLogin",name:"demo-login","click-to-close":!e.force&&!e.pinterestLike,transition:"pop-out",width:e.modalWidth,height:"auto",resizable:""},on:{"before-open":e.beforeOpen,created:e.onModalCreated,opened:e.onAddClassLoginModal,closed:e.onRemoveClassLoginModal}},[t("login-form",{attrs:{debug:e.debug,"force-login":e.forceLogin,"missing-detail-form-type":e.missingDetailFormType,"force-missing-detail-form":e.forceMissingDetailForm,force:e.force,"sign-up-tracking-values":e.signUpTrackingValues,"enable-interval-line-login":e.enableIntervalLineLogin}})],1)],1)},h=[],b=f(u,p,h,!1,null,null);const O=b.exports;export{m as SOURCE_SCHEDULE_VIEWING,O 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.