1import{i as a}from"./page.C0PzcBZ-.js";import{mapActions as r,mapState as l}from"./vuex.esm.browser.x78u0m_H.js";import d from"./index.gO1FYoWw.js";import{n as c}from"./_plugin-vue2_normalizer.BQU9Qu9_.js";import"./isSymbol.BLaXQ2a0.js";import"./cookies.Cwb7III9.js";import"./lazy-module.BNVi-SRU.js";import"./js.cookie.DCooMcLS.js";import"./networking.Cdg6F65g.js";import"./refresh.DaH6X8Qh.js";import"./redirect.CXWteNOm.js";import"./index.BifsxjHN.js";import"./user.CRGES6Fe.js";import"./search.DiomeO0n.js";import"./safe-storage.DwpHwTrg.js";import"./loanCalculations.H-mq-0Wz.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:"v3.265.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ce29ba4c-9567-45d2-84c0-9572215bc2c4",e._sentryDebugIdIdentifier="sentry-dbid-ce29ba4c-9567-45d2-84c0-9572215bc2c4")}catch{}})();const m={name:"SectionsInView",props:{forceMissingDetailForm:{default:!1}},beforeCreate(){const e=this.$store;e&&e.state&&e.state.auth||e.registerModule("auth",d)},data(){return{sections:[]}},mounted(){this.loadSectionsData(),window.addEventListener("scroll",this.toggleSectionsBasedOnScrollLevel),document.onreadystatechange=()=>{window.addEventListener("load",()=>{this.forceMissingDetailForm&&this.toggleSectionsBasedOnScrollLevel()})}},computed:{...l("auth",["alreadyLogin"])},methods:{...r("auth",["showModal","hideModal","createForceLogin","showMissingDetailModal","hideMissingDetailModal"]),blurContent(e){["main","header",".group-contact-for-mobile"].forEach(i=>document.querySelector(i)&&document.querySelector(i).classList[e?"add":"remove"]("blur-content"))},loadSectionsData(){Object.entries(document.getElementById("sections-in-view").dataset).forEach(e=>{const t=e[0].split("_"),i=parseInt(t[0]),o=t[1];if(Number.isNaN(i)||!o||!o.length)return;const n=document.getElementById("cat-id-"+i);if(!n||!n.nextElementSibling)return;let s=n.nextElementSibling;s.className.indexOf("container")===-1&&(s=n.nextElementSibling.querySelector(".container")),s&&this.sections.push({element:s,box:o==="box",popup:o==="popup",id:e[0]})})},enableSection(e){e.popup?this.alreadyLogin?this.enableMissingDetailModal():(document.dispatchEvent(new CustomEvent("hideLoginBox")),this.showModal({modalType:"signIn",pinterestLike:!0})):e.box&&(this.alreadyLogin||document.dispatchEvent(new CustomEvent("showLoginBox")))},disableSection(e){e.popup?(this.blurContent(!1),this.alreadyLogin?this.hideMissingDetailModal():this.hideModal()):e.box&&document.dispatchEvent(new CustomEvent("hideLoginBox"))},enableMissingDetailModal(){window.app&&typeof window.app.isLoadedSection=="function"?this.showMissingDetailModal():setTimeout(this.enableMissingDetailModal,1e3)},toggleSectionsBasedOnScrollLevel(){this.sections.forEach(e=>{a(e.element)?this.enableSection(e):this.disableSection(e)})}}};var p=function(){var t=this,i=t._self._c;return i("div")},u=[],f=c(m,p,u,!1,null,null);const O=f.exports;export{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.