PageSourceSearch

https://www.fazwaz.com.br/build/js/chunks/CartEnquiry.BYBuBnfN.js

js fazwaz.com.br collected 2026-10-04 23:17:20 UTC 73,219 bytes, 1 lines download raw bytes

1import{C as Q,b as m,c as v,p as w,a as c,d as Z,e as V,f as P,g as W,h as $,i as tt}from"./store.DZ37enDM.js";import et,{getUserProvidedData as st}from"./enquire.D8I2rRHm.js";import{u as f}from"./index.CrrYiooU.js";import{L as at}from"./frontend-app-ready.DHJl70t_.js";import{p as C,g as b}from"./networking.Ci6uKf6p.js";import{v as A}from"./validateWithMessages.B00Yto5R.js";import L from"./contactForm.jEyb2xB-.js";import x from"./rentalContactForm.DFq6aC7U.js";import{n as S,m as nt,V as it}from"./date.D_e3WZzn.js";import rt from"./EqTextInput.C7q2Y4sE.js";import ot from"./EqTextArea.BziHobki.js";import ct from"./index.DKR7OcGQ.js";import lt from"./EqLanguageOptions.BI4rRaRn.js";import dt from"./EqDatePicker.C_pd9INb.js";import _t from"./EqRentalDuration.Ct9wO_uz.js";import ut from"./index.BWZI9Lti.js";import ht from"./OtpModal.Bi87yAWj.js";import{n as ft}from"./_plugin-vue2_normalizer.yT5ADOs5.js";import"./vue_type_questions.0wiH9SBe.js";import"./cookies.CiT43Vtz.js";import"./lazy-module.BLQhUfc3.js";import"./isSymbol.IFp43oYL.js";import"./js.cookie.Cf7DVbdp.js";import"./phone.HfeL9WX_.js";import"./parsePhoneNumber.CA9uO5hm.js";import"./parsePhoneNumber_.CXEDQ9po.js";import"./user.Tu3XV14M.js";import"./search.CkvEOAUb.js";import"./debounce.Db5Bi0q2.js";import"./toNumber.C82S8qf8.js";import"./joi-browser.BTx6Adtr.js";import"./validator.BwVhkrmC.js";import"./index.DS5Nh4AM.js";import"./get.Br1PR9iu.js";import"./get.DkCZJr5P.js";import"./isNull.4NNtWkIS.js";import"./validation.FFKV8jYn.js";import"./index.DVNi9qA-.js";import"./CountrySearchDropdown.CIVhk9WP.js";import"./flags.qCmls6Z6.js";import"./index.Brx7cXIu.js";import"./vuex.esm.browser.BAP_NJLq.js";import"./DatePicker.CGRRBXM4.js";import"./vuejs-datepicker.esm.CmljSJ8_.js";import"./index.CzjFxUDA.js";import"./index.qkbr3mRv.js";import"./_getAllKeys.CMOuDSQu.js";import"./isTypedArray.Bhi_7Pm7.js";import"./_Set.CgIZ59wu.js";import"./_isIndex.DuiuWyt6.js";import"./_baseOrderBy.cMQZAjAz.js";import"./_baseIteratee.TfrlAzAt.js";import"./_setToArray.DSgLFkOv.js";import"./_baseEach.B0YPRfOu.js";import"./_baseForOwn.BNpHJHvR.js";import"./_defineProperty.CYuWoQjz.js";import"./isEmpty.CyDLGFZ5.js";import"./find.BqSJaI00.js";import"./findIndex.BPPFrq2Z.js";import"./_baseFindIndex.BuSQu3fa.js";import"./has.ZpJVk-uL.js";import"./document.Dth8xZle.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"v3.306.0"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="55378d87-322b-4c69-9fcb-d1170ca40af3",s._sentryDebugIdIdentifier="sentry-dbid-55378d87-322b-4c69-9fcb-d1170ca40af3")}catch{}})();const B="fw_cart_dismissed",j=50,Y=()=>{try{const s=JSON.parse(window.localStorage.getItem(B)||"[]");return Array.isArray(s)?s.map(Number).filter(t=>t>0).slice(-j):[]}catch{return[]}},pt=s=>{const t=Y().filter(e=>e!==Number(s));t.push(Number(s));try{window.localStorage.setItem(B,JSON.stringify(t.slice(-j)))}catch(e){console.error(e)}},h=s=>Number(s.unit_id),gt=(s,t,e)=>{const a=new Map(t.map(d=>[h(d),d])),n=new Map(e.map(d=>[h(d),d])),i=new Set(t.filter(d=>!n.has(h(d))).map(h)),r=e.filter(d=>!a.has(h(d))),o=new Map(e.filter(d=>a.has(h(d))&&(a.get(h(d)).note||null)!==(d.note||null)).map(d=>[h(d),d.note||null])),l=s.filter(d=>!i.has(h(d))).map(d=>o.has(h(d))?{...d,note:o.get(h(d))}:d),_=new Set(l.map(h));return r.forEach(d=>{_.has(h(d))||(l.push(d),_.add(h(d)))}),{items:l,changed:i.size>0||r.length>0||o.size>0}},wt="fwCart",mt=s=>({[wt]:!0,depth:s}),T="fw-cart-open",y=(s,t,e)=>s===1?t:e.replace(":n",String(s)),I=["cart","contact","review"],U="cart-questions-modal",vt="schedule-viewing",yt="cart-gate",Ct=800,q="fwcart-account-synced",F=s=>s.map(t=>`${t.unit_id}:${t.for_sale===!1?0:1}`).join(","),bt=()=>{try{return window.sessionStorage.getItem(q)}catch{return null}},It=s=>{try{window.sessionStorage.setItem(q,s)}catch{}},kt=()=>{try{window.sessionStorage.removeItem(q)}catch{}},E=9,St=17,Tt=20,K=5,Ot=3,At=768,G=4e3,z="cart",Lt="open",k=3,xt=["project","location","city","region"],N="isa",D="oosa",R="mixed",Ft="loading",M=(s,t)=>String(s).replace(/:([a-z]+)\b/gi,(e,a)=>Object.prototype.hasOwnProperty.call(t,a)?String(t[a]):e),Et=3600,Nt=30,Dt={out_of_area:"reasonOutOfArea",below_budget:"reasonBelowBudget",rental_not_available:"reasonRentalNotAvailable",rental_too_far_ahead:"reasonRentalTooFarAhead",unavailable:"reasonUnavailable",viewing_off:"reasonViewingOff"},Rt={name:"cart-enquiry",components:{EqTextInput:rt,EqTextArea:ot,EqPhoneInput:ct,EqLanguageOptions:lt,EqDatePicker:dt,EqRentalDuration:_t,ScheduleModal:ut,OtpModal:ht},props:{translates:{type:Object,required:!0},enquiryTranslates:{type:Object,default:()=>({})},formTexts:{type:Object,default:()=>({})},languageOptions:{type:Array,default:()=>[]},defaultEnquireLanguage:{type:String,default:""},defaultCountryCode:{type:String,default:""},showLegalNotice:{type:Boolean,default:!1},isLoggedIn:{type:Boolean,default:!1},leadableType:{type:String,required:!0},saleTypeSale:{type:String,required:!0},saleTypeRent:{type:String,required:!0},sourceSection:{type:String,required:!0},leadSourceSection:{type:String,required:!0},channel:{type:String,required:!0},channelField:{type:String,required:!0},isForceOtp:{type:Boolean,default:!1},questionErrorMessages:{type:Object,default:()=>({})}},data(){const s=c.contact();
1return{items:c.items(),action:c.action(),view:null,step:"cart",contact:{name:s.name,email:s.email,phone:s.phone,preferredLanguage:s.preferredLanguage||this.defaultEnquireLanguage,message:s.message,checkInDate:s.checkInDate||null,checkOutDate:s.checkOutDate||null},errorMessages:{},error:"",fullNotice:"",fullNoticeTimer:null,submitting:!1,progress:{sent:0,total:0},unconfirmedSince:{},result:{leads:[],texts:{title:"",message:"",information:[]}},submittedItems:[],viewingIds:[],viewingFollowUp:null,viewingReceipt:null,onClosed:null,questionsModalName:U,dragging:null,dragArmed:null,dropIndex:null,pendingWizard:null,days:[],dayOffset:0,dayWindow:K,viewingDate:null,viewingTime:`${E}:00`,viewingRegionId:null,historyDepth:0,closingThroughHistory:!1,detail:{},contextKey:"",contextLoading:!1,recommendations:[],recsKey:"",recsLoadingKey:"",keepRecs:!1,openNotes:[],acknowledged:!1,acknowledgedTransfer:!1,locked:!1,signedIn:this.isLoggedIn,accountSyncing:!1,accountSyncTimer:null,accountSyncPending:!1,accountSyncPendingMerge:!1,accountSyncPendingSignIn:!1,noViewing:!1,accountMerged:!1,accountSkippedKeys:null,adoptingAccount:!1,consentSeen:!1,sent:[],sentLoaded:!1,sentOpen:!1}},computed:{ACTION_DETAILS:()=>v,ACTION_VIEWING:()=>m,maxNoteLength:()=>Q,maxItems:()=>c.maxItems(),count(){return this.items.length},isFull(){return this.count>=this.maxItems},countOfMax(){return`${this.count}/${this.maxItems}`},visibleRecommendations(){return this.recommendations.slice(0,k)},showRecommendations(){return this.recommendations.length>0&&this.recsKey===this.itemsKey&&!this.isFull&&!this.locked},showSent(){return this.signedIn&&!this.locked&&this.sent.length>0},sentHeading(){return this.translates.sentHead.replace(":n",String(this.sent.length))},roomLeftText(){return this.isFull?this.translates.fullHint:this.translates.cartRoomLeft.replace(":n",String(this.maxItems-this.count))},accountLine(){return this.signedIn?this.translates.savedToAccount:this.translates.keepForNextVisit},promiseText(){return M(this.translates.cartPromise,{max:this.maxItems,noun:this.nounFor(this.sendableItems,!0)})},itemsKey(){return this.items.map(s=>`${s.unit_id}:${s.for_sale===!1?0:1}`).join(",")},contextItemsKey(){return this.items.map(s=>`${s.unit_id}:${s.for_sale===!1?0:1}`).sort().join(",")},contextReady(){return this.count>0&&this.contextKey===this.contextItemsKey},unavailableItems(){return this.items.filter(s=>this.detailFor(s).available===!1)},sendableItems(){return this.items.filter(s=>this.detailFor(s).available!==!1)},acknowledgeItems(){return this.sendableItems.filter(s=>this.detailFor(s).acknowledge===!0)},viewableHomes(){return this.sendableItems.filter(s=>this.detailFor(s).viewable===!0)},viewingAreas(){const s=new Map;return this.viewableHomes.forEach(t=>{const e=this.detailFor(t).regionId;if(e){if(!s.has(e)){const a=(this.detailFor(t).place||[]).find(n=>n.level==="region");s.set(e,{regionId:e,name:a?a.name:this.geoFor(t),homes:[]})}s.get(e).homes.push(t)}}),[...s.values()].map(({regionId:t,name:e,homes:a})=>({regionId:t,name:e,countText:M(y(a.length,this.translates.countHeadingOne,this.translates.countHeading),{n:a.length,noun:this.nounFor(a,a.length!==1)})}))},chosenRegionId(){const s=this.viewingAreas.map(t=>t.regionId);return s.includes(this.viewingRegionId)?this.viewingRegionId:s[0]||null},viewableItems(){const s=this.chosenRegionId,t=this.viewableHomes.filter(e=>s?this.detailFor(e).regionId===s:!0);return[...t.filter(e=>e.for_sale!==!1),...t.filter(e=>e.for_sale===!1)]},otherAreaItems(){return this.viewableHomes.filter(s=>!this.viewableItems.includes(s))},otherRegionItems(){return this.otherAreaItems.filter(s=>this.detailFor(s).regionId)},unknownAreaItems(){return this.otherAreaItems.filter(s=>!this.detailFor(s).regionId)},leftOutItems(){return this.sendableItems.filter(s=>this.detailFor(s).viewable!==!0)},viewingState(){return this.contextReady?this.viewableItems.length?"some":"none":"loading"},viewingSides(){return this.viewingGroups.length},viewingGroups(){const s=this.viewableItems.filter(e=>e.for_sale!==!1),t=this.viewableItems.filter(e=>e.for_sale===!1);return[s,t].filter(e=>e.length>0)},receiptItems(){return this.action===m?this.viewableItems:this.sendableItems},needsRentalDates(){return this.receiptItems.some(s=>s.for_sale===!1)}
1,canSend(){return this.contextReady&&this.receiptItems.length>0},needsAcknowledge(){return this.action===v&&this.acknowledgeItems.length>0},acknowledgeHeading(){return y(this.acknowledgeItems.length,this.translates.acknowledgeHeadOne,this.translates.acknowledgeHead).replace(":n",String(this.acknowledgeItems.length))},leftOutHeading(){return y(this.leftOutItems.length,this.translates.viewingLeftOutOne,this.translates.viewingLeftOut).replace(":n",String(this.leftOutItems.length))},bookedHeading(){const s=this.viewingReceipt?this.viewingReceipt.booked.length:0;return y(s,this.translates.homesInYourOrderOne,this.translates.homesInYourOrder).replace(":n",String(s))},receiptLeftOutHeading(){const s=this.viewingReceipt?this.viewingReceipt.leftOut.length:0;return y(s,this.translates.viewingLeftOutOne,this.translates.viewingLeftOut).replace(":n",String(s))},ambiguousHeadlines(){const s={},t={};return this.items.forEach(e=>{const a=this.headlineFor(e);s[a]&&(t[a]=!0),s[a]=!0}),t},isOpen(){return this.view!==null},hasNotes(){return this.viewableItems.some(s=>!!s.note)},gateHeading(){return this.count===1?this.translates.gateHeadOne:(this.translates.gateHead||"").replace(":n",String(this.count))},stepLabels(){return[this.translates.stepCart,this.translates.stepContact,this.translates.stepReview]},stepIndex(){return Math.max(0,I.indexOf(this.step))},pageTitle(){return this.step==="contact"?this.translates.stepContact:this.step==="review"?this.translates.stepReview:this.translates.yourCart},introHeading(){return this.homesHeading(this.sendableItems)},receiptHeading(){return this.homesHeading(this.receiptItems)},serviceMix(){return this.serviceMixOf(this.sendableItems)},actionLede(){if(this.action===m)return y(this.viewableItems.length,this.translates.viewingLedeOne,this.translates.viewingLede).replace(":n",String(this.viewableItems.length));switch(this.serviceMix){case N:return this.translates.contactLedeIsa;case R:return this.translates.contactLedeMixed;case D:return this.sendableItems.length===1?this.translates.contactLedeOosaOne:this.translates.contactLedeOosa;default:return this.translates.contactLedeNeutral}},sendLabel(){return this.action===m?this.translates.sendViewing:this.formTexts.buttonText||this.translates.send},sendingLabel(){return this.action===v&&this.progress.total>1?this.translates.sendingProgress.replace(":i",String(Math.min(this.progress.sent+1,this.progress.total))).replace(":n",String(this.progress.total)):this.translates.sending},visibleDays(){return this.days.slice(this.dayOffset,this.dayOffset+this.dayWindow)},selectedDay(){return this.days.find(s=>String(s.unix)===String(this.viewingDate))||null},selectedDayLabel(){const s=this.selectedDay;return s?`${s.weekday} ${s.date} ${s.month}`:""},lastStartHour(){const s=Math.max(1,this.viewableItems.length);return Math.max(E,Math.min(St,Tt-s+1))},timeslots(){const s=[];for(let t=E;t<=this.lastStartHour;t++)s.push({time:`${t}:00`,label:S(`${t}:00`,0,!0)});return s},startTimeLabel(){return S(this.viewingTime,0,!0)},endTimeLabel(){return S(this.viewingTime,this.viewableItems.length,!0)},viewingWindowText(){return y(this.viewableItems.length,this.translates.viewingWindowOne,this.translates.viewingWindow).replace(":n",String(this.viewableItems.length)).replace(":start",this.startTimeLabel).replace(":end",this.endTimeLabel)},myViewingsUrl(){return`${window.url||"/"}user/scheduled-viewings`},failedItems(){const s=this.result.leads.filter(t=>!t.success).map(t=>Number(t.unit_id));return this.submittedItems.filter(t=>s.includes(t.unit_id))},customErrorMessage(){return{name:this.formTexts.validateName,phone:this.formTexts.validatePhone,email:this.formTexts.validateEmail,message:this.formTexts.validateMessage,preferredLanguage:this.formTexts.validatePreferLanguage,checkInDate:this.formTexts.validateCheckInDate,checkOutDate:this.formTexts.validateCheckOutDate}}},watch:{view:"noticeConsent",step:"noticeConsent",locked:"noticeConsent",count:"noticeConsent",viewingState(s){s==="loading"||s==="none"===this.noViewing||(this.noViewing=s==="none",this.action=this.noViewing?v:c.action(),this.errorMessages={})},lastStartHour(s){parseInt(this.viewingTime,10)>s&&(this.viewingTime=`${s}:00`)}},beforeCreate(){const s=this.$store;s&&s.state&&s.state.enquire||s.registerModule("enquire",et)},mounted(){if(c.start(),this.locked=c.isLocked(),this.signedIn){const s=c.isGuestSignIn(),t=F(c.items());s||bt()!==t?this.syncAccount(!0,s):this.accountSkippedKeys=t===""?[]:t.split(",")}else kt();this.buildDays(),this.applyDayWindow(),window.addEventListener("resize",this.applyDayWindow),document.addEventListener(V,this.refresh),document.addEventListener(P,this.onOpenRequest),document.addEventListener(W,this.onCartFull),document.addEventListener($,this.onSignInToAdd),document.addEventListener("keydown",this.onKeydown),window.addEventListener("popstate",this.onPopState),this.openFromLink()},beforeDestroy(){window.clearTimeout(this.accountSyncTimer),window.clearTimeout(this.fullNoticeTimer),document.removeEventListener(V,this.refresh),document.removeEventListener(P,this.onOpenRequest),document.removeEventListener(W,this.onCartFull),document.removeEventListener($,this.onSignInToAdd),document.removeEventListener("keydown",this.onKeydown),window.removeEventListener("popstate",this.onPopState),window.removeEventListener("resize",this.applyDayWindow),this.disarmDrag()},methods:{openFromLink(){const s=new URL(window.location.href);s.searchParams.get(z)===Lt&&(s.searchParams.delete(z),window.history.replaceState(window.history.state,"",`${s.pathname}${s.search}${s.hash}`),this.openDrawer(),this.signedIn||this.showSignIn({onSuccess:()=>this.afterUnlock()}))},applyDayWindow(){this.dayWindow=window.innerWidth<At?Ot:K,this.dayOffset+this.dayWindow>this.days.length&&(this.dayOffset=Math.max(0,this.days.length-this.dayWindow))},refresh(){this.items=c.items(),this.locked=c.isLocked(),this.isOpen&&!this.locked&&this.loadContext(),this.scheduleAccountSync()},async noticeConsent(){this.consentSeen||!this.translates.consentSaving||(await this.$nextTick(),!(!this.$el||!this.$el.querySelector||!this.$el.querySelector(".fw-cart__consent"))&&(this.consentSeen=!0,this.scheduleAccountSync()))},scheduleAccountSync(){if(!(!this.signedIn||this.adoptingAccount)){if(this.accountSyncing){this.accountSyncPending=!0;return}window.clearTimeout(this.accountSyncTimer),this.accountSyncTimer=window.setTimeout(()=>this.syncAccount(!1),Ct)}}
1,removedSinceSkip(s){if(this.accountSkippedKeys===null)return!1;const t=new Set(F(s).split(","));return this.accountSkippedKeys.some(e=>!t.has(e))},async syncAccount(s,t=!1){if(!this.signedIn)return;if(this.accountSyncing){this.accountSyncPending=!0,this.accountSyncPendingMerge=this.accountSyncPendingMerge||s,this.accountSyncPendingSignIn=this.accountSyncPendingSignIn||t;return}this.accountSyncing=!0;const e=c.items(),a=s||!this.accountMerged&&!this.removedSinceSkip(e);try{const{data:n}=await C(f.enquiry.cartAccount,{merge:a?1:0,sign_in:a&&t?1:0,consent_shown:this.consentSeen?1:0,items:e.map(i=>({unit_id:i.unit_id,for_sale:i.for_sale,note:i.note||null}))});if(n&&Array.isArray(n.items)){(a||this.accountSkippedKeys!==null)&&(this.accountMerged=!0);const{items:i,changed:r}=gt(n.items,e,c.items());r&&(this.accountSyncPending=!0),this.adoptingAccount=!0;try{c.replaceAll(i)}finally{this.adoptingAccount=!1}r||It(F(c.items())),this.items=c.items(),this.locked=c.isLocked(),this.contextKey="",this.isOpen&&!this.locked&&this.loadContext()}}catch(n){console.error(n),window.Sentry&&typeof window.Sentry.captureException=="function"&&window.Sentry.captureException(n,{tags:{fw_request:"cart.account"}})}finally{this.accountSyncing=!1}if(this.accountSyncPending){const n=this.accountSyncPendingMerge,i=this.accountSyncPendingSignIn;this.accountSyncPending=!1,this.accountSyncPendingMerge=!1,this.accountSyncPendingSignIn=!1,n?await this.syncAccount(!0,i):this.scheduleAccountSync()}},showSignIn({register:s=!1,source:t=yt,onSuccess:e}){this.$store.state.auth.modalType=null,this.$store.dispatch("auth/showModal",{onSuccess:e,source:t,dontReloadOnSuccess:!0,modalType:s?"signUp":"signIn",register:!!s,showForceTitle:!s})},unlock(s,t){this.track(t&&t.currentTarget),this.showSignIn({register:s,onSuccess:()=>this.afterUnlock()})},async afterUnlock(){this.signedIn=!0,window[Z]=!0,this.isOpen&&this.loadSent(),c.claim(),this.locked=c.isLocked(),this.items=c.items(),await this.syncAccount(!0,!0)},onSignInToAdd(s){const t=s.detail&&s.detail.item;this.fullNotice=this.translates.thresholdHead,window.clearTimeout(this.fullNoticeTimer),this.fullNoticeTimer=window.setTimeout(()=>{this.fullNotice=""},G),w("cart_sign_in_prompt",{cart_size:this.count}),this.showSignIn({onSuccess:async()=>{await this.afterUnlock(),t&&!c.has(t.unit_id)&&c.add(t)}})},loadContext(){this.loadRecommendations(),this.loadSent();const s=this.items.map(a=>a.unit_id),t=this.contextItemsKey;if(!s.length){this.detail={},this.contextKey="";return}if(t===this.contextKey||this.contextLoading)return;this.contextLoading=!0;const e={};this.items.forEach(a=>{e[a.unit_id]=a.for_sale!==!1?1:0}),b(f.enquiry.cartContext,{unit_ids:s,sale_flags:e}).then(({data:a})=>{this.detail=a&&a.units||{},this.contextKey=t}).catch(a=>{console.error(a),this.error=this.translates.errNotSent}).finally(()=>{this.contextLoading=!1,this.isOpen&&this.contextKey!==this.contextItemsKey&&this.contextKey===t&&this.loadContext()})},detailFor(s){return this.detail[s.unit_id]||this.detail[String(s.unit_id)]||{}},noteTextsFor(s){const t=this.detailFor(s).acknowledge;return t===!0?{label:this.translates.noteForOwner,placeholder:this.translates.notePlaceholderOwner}:t===!1?{label:this.translates.noteFor,placeholder:this.translates.notePlaceholder}:{label:this.translates.addNote,placeholder:""}},serviceMixOf(s){if(!this.contextReady||s.length===0)return Ft;const t=s.filter(e=>this.detailFor(e).acknowledge===!0).length;return t===0?N:t===s.length?D:R},handledText(s){const t=s.length===1;switch(this.serviceMixOf(s)){case N:return t?this.translates.handledIsaOne:this.translates.handledIsa;case D:return t?this.translates.handledOosaOne:this.translates.handledOosa;case R:return this.translates.handledMixed;default:return this.translates.handledNeutral}},nounFor(s,t){return s.every(a=>this.detailFor(a).isHome!==!1)?t?this.translates.nounHomes:this.translates.nounHome:t?this.translates.nounProperties:this.translates.nounProperty},sharedPlace(s){if(!s.length)return"";for(const t of xt){const e=s.map(a=>(this.detailFor(a).place||[]).find(n=>n.level===t));if(e.every(a=>a&&a.id===e[0].id))return e[0].name}return""},homesHeading(s){const t=s.length,e=this.contextReady?this.sharedPlace(s):"",a=e?t===1?this.translates.placeHeadingOne:this.translates.placeHeading:t===1?this.translates.countHeadingOne:this.translates.countHeading;return M(a,{n:t,noun:this.nounFor(s,t!==1),place:e})},loadRecommendations(){const s=this.itemsKey;if(!this.count||this.locked){this.recommendations=[],this.recsKey="";return}if(this.keepRecs||s===this.recsKey||s===this.recsLoadingKey)return;this.recsLoadingKey=s;const t={};
1this.items.forEach(e=>{t[e.unit_id]=e.for_sale!==!1?1:0}),b(f.enquiry.cartRecommendations,{unit_ids:this.items.map(e=>e.unit_id),sale_flags:t,exclude_ids:Y()}).then(({data:e})=>{this.recommendations=e&&e.recommendations||[]}).catch(e=>{console.error(e),this.recommendations=[]}).finally(()=>{this.recsKey=s,this.recsLoadingKey="",this.showRecommendations&&this.isOpen&&w("cart_rec_view",{count:this.visibleRecommendations.length,coenquiry:this.visibleRecommendations.filter(e=>e.source==="coenquiry").length,isa_count:this.visibleRecommendations.filter(e=>e.isa).length,premium_count:this.visibleRecommendations.filter(e=>e.premium).length,cart_size:this.count}),this.isOpen&&s!==this.itemsKey&&this.loadRecommendations()})},dismissRecommendation(s,t){pt(s.unit_id),this.replaceRecommendation(s,t),w("cart_rec_dismiss",{unit_id:Number(s.unit_id),position:t+1,source:s.source,isa:s.isa?1:0,premium:s.premium?1:0,spares_left:Math.max(0,this.recommendations.length-k)})},replaceRecommendation(s,t){const e=this.recommendations.filter(n=>n.unit_id!==s.unit_id),a=e.slice(k-1);if(a.length>0&&t<k){const n=l=>!!l.premium==!!s.premium,i=l=>l.isa===!0,o=(s.isa_first===!0?[l=>i(l)&&n(l),i,n]:[n]).map(l=>a.findIndex(l)).find(l=>l>=0);e.splice(t,0,e.splice(k-1+(o??0),1)[0])}this.recommendations=e},loadSent(){const s=window[tt];!this.signedIn||this.sentLoaded||!(s&&s.previouslySent===!0)||(this.sentLoaded=!0,b(f.enquiry.cartSent).then(({data:t})=>{this.sent=t&&t.sent||[]}).catch(t=>{console.error(t),this.sent=[]}))},sentKind(s){return({harvested:this.translates.sentKindHarvested,viewing:this.translates.sentKindViewing}[s.kind]||this.translates.sentKindSent).replace(":date",s.date)},sentOnFor(s){const t=this.sent.find(e=>e.unit_id===s.unit_id&&!!e.for_sale==!!s.for_sale);return t?this.translates.rowSentOn.replace(":date",t.date):""},recWhy(s){const t=s.anchor_unit_id?this.items.find(a=>a.unit_id===Number(s.anchor_unit_id)):null;return t?((s.source==="coenquiry"?this.translates.recsWhyCoenquiry:this.translates.recsWhySimilar)||"").replace(":home",this.headlineFor(t)):this.translates.recsWhyViewed||""},addRecommendation(s,t){this.keepRecs=!0;let e=!1;try{e=c.add({unit_id:s.unit_id,for_sale:s.for_sale,title:s.title,price:s.price,url:s.url,img:s.img,project:s.project||"",project_id:s.project_id})}finally{this.keepRecs=!1}e&&(this.items=c.items(),this.replaceRecommendation(s,t),this.recsKey=this.itemsKey,w("cart_rec_add",{unit_id:Number(s.unit_id),position:t+1,source:s.source,isa:s.isa?1:0,premium:s.premium?1:0,cart_size:c.items().length}))},reasonFor(s){const t=Dt[this.detailFor(s).reason];return t?this.translates[t]:""},headlineFor(s){return this.detailFor(s).project||s.title||s.project},projectFor(s){return this.detailFor(s).project||""},geoFor(s){return this.detailFor(s).geo||s.geo||""},specFor(s){const t=s.beds===void 0?this.detailFor(s):s,e=[];return t.beds===0?e.push(this.translates.studio):t.beds&&e.push(this.translates.bedsShort.replace(":n",String(t.beds))),t.baths&&e.push(this.translates.bathsShort.replace(":n",String(t.baths))),t.area&&e.push(t.area),e.join(" · ")},perAreaFor(s){return this.detailFor(s).pricePerArea||""},perMonthFor(s){return s&&s.for_sale===!1&&this.translates.perMonth||""},disambiguatorFor(s){if(!this.ambiguousHeadlines[this.headlineFor(s)])return"";const t=this.detailFor(s),e=[];return t.unitNumber&&e.push(this.translates.unitNumberLabel.replace(":n",String(t.unitNumber))),t.floorNumber&&e.push(this.translates.floorLabel.replace(":n",String(t.floorNumber))),e.length?e.join(" · "):s.title&&s.title!==this.headlineFor(s)?s.title:""},isNoteOpen(s){return this.openNotes.indexOf(s.unit_id)!==-1||!!s.note},openNote(s){this.openNotes.indexOf(s)===-1&&this.openNotes.push(s),this.$nextTick(()=>{const t=this.$el.querySelector(`#fw-cart-note-${s}`);t&&t.focus()})},onNoteBlur(s,t){t.target.value.trim()===""&&this.removeNote(s)},removeNote(s){this.setNote(s,""),this.openNotes=this.openNotes.filter(t=>t!==s)},buildDays(){const s=this.enquiryTranslates,t=[s.scheduleSun,s.scheduleMon,s.scheduleTues,s.scheduleWed,s.scheduleThur,s.scheduleFri,s.scheduleSat],e=[s.scheduleJan,s.scheduleFeb,s.scheduleMar,s.scheduleApr,s.scheduleMay,s.scheduleJune,s.scheduleJuly,s.scheduleAug,s.scheduleSept,s.scheduleOct,s.scheduleNov,s.scheduleDec];this.days=nt(it,t,e),this.viewingDate=this.days.length?this.days[0].unix:null},shiftDays(s){const t=this.dayOffset+s*this.dayWindow;this.dayOffset=Math.max(0,Math.min(this.days.length-this.dayWindow,t))},onCartFull(s){const t=s.detail&&s.detail.max||this.maxItems;this.fullNotice=this.translates.cartFull.replace(":max",String(t)),window.clearTimeout(this.fullNoticeTimer),this.fullNoticeTimer=window.setTimeout(()=>{this.fullNotice=""},G)},onOpenRequest(s){const t=s.detail&&s.detail.step;if(!t||t==="drawer"){this.openDrawer();return}this.openPage(t)}
1,onKeydown(s){s.key!=="Escape"||!this.isOpen||this.$store.state.auth&&this.$store.state.auth.showLoginModal||this.closeAll()},pushHistory(){window.history.pushState(mt(this.historyDepth+1),"",window.location.href),this.historyDepth+=1},onPopState(){if(this.closingThroughHistory){this.closingThroughHistory=!1,this.historyDepth=0,this.closeOverlay();return}if(!this.isOpen||this.historyDepth===0)return;if(this.historyDepth-=1,this.historyDepth===0){this.closeOverlay();return}const s=I.indexOf(this.step);this.step=s>0?I[s-1]:"cart",this.error="",this.scrollTop()},markOpened(s){w("cart_open",{view:s,cart_size:this.count})},openDrawer(){const s=!this.isOpen;this.view="drawer",document.body.classList.add(T),s&&(this.pushHistory(),this.markOpened("drawer")),this.loadContext()},openPage(s,t){t&&this.track(t.currentTarget);const e=!this.isOpen;this.view="page",this.step=I.includes(s)?s:"cart",this.error="",document.body.classList.add(T),e&&(this.pushHistory(),this.markOpened("page")),this.loadContext(),this.scrollTop()},closeOverlay(){if(this.view=null,document.body.classList.remove(T),this.sentLoaded=!1,this.step==="done"&&(this.step="cart",this.viewingReceipt=null,this.viewingIds=[]),this.onClosed){const s=this.onClosed;this.onClosed=null,s()}this.runPendingWizard()},closeAndWait(){return new Promise(s=>{if(!this.isOpen){s();return}this.onClosed=s,this.closeAll()})},closeAll(){if(this.historyDepth>0){const s=this.historyDepth;this.historyDepth=0,this.closingThroughHistory=!0,window.history.go(-s);return}this.closeOverlay()},goBack(){if(this.historyDepth>0){window.history.back();return}const s=I.indexOf(this.step);if(s>0){this.step=I[s-1],this.error="",this.scrollTop();return}this.closeOverlay()},goTo(s,t){t&&this.track(t.currentTarget),this.step=s,this.error="",this.pushHistory(),this.scrollTop()},scrollTop(){this.$nextTick(()=>{this.$refs.scroll&&(this.$refs.scroll.scrollTop=0)})},remove(s){c.remove(s)},move(s,t){c.move(s,t)},setNote(s,t){c.setNote(s,t)},onDragStart(s,t){this.dragArmed===s&&(this.dragging=s,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",String(s)))},onDragOver(s,t){this.dragging!==null&&(t.preventDefault(),this.dropIndex=s)},onDrop(s,t){this.dragging!==null&&(t.preventDefault(),c.moveTo(this.dragging,s),this.onDragEnd())},onDragEnd(){this.dragging=null,this.disarmDrag(),this.dropIndex=null},armDrag(s){this.dragArmed=s,document.addEventListener("mouseup",this.disarmDrag),document.addEventListener("pointerup",this.disarmDrag)},disarmDrag(){this.dragArmed=null,document.removeEventListener("mouseup",this.disarmDrag),document.removeEventListener("pointerup",this.disarmDrag)},dropMark(s){if(this.dragging===null||this.dropIndex!==s)return"";const t=this.items.findIndex(e=>e.unit_id===this.dragging);return t===s?"":s<t?"before":"after"},onCartContinue(s){if(!this.contextReady){this.loadContext();return}this.goTo("contact",s)},chooseAction(s,t){t&&this.track(t.currentTarget),this.action=s,this.errorMessages={},this.error="",c.setAction(s)},onFieldChange(s,t){this.$set(this.contact,s,t);const e=L[s]||x[s];if(!e)return;const{errorMessages:a}=A({[s]:e},{[s]:t},this.customErrorMessage);this.$set(this.errorMessages,s,a[s]||"")},validate(){const s=this.needsRentalDates?{checkInDate:x.checkInDate,checkOutDate:x.checkOutDate}:{},t=this.needsRentalDates?{checkInDate:this.contact.checkInDate,checkOutDate:this.contact.checkOutDate}:{};return this.action===m?A({preferredLanguage:L.preferredLanguage,...s},{preferredLanguage:this.contact.preferredLanguage,...t},this.customErrorMessage):A({...L,...s},{name:this.contact.name,phone:this.contact.phone,email:this.contact.email,message:this.contact.message,preferredLanguage:this.contact.preferredLanguage,forSale:!0,...t},this.customErrorMessage)},onDetailsContinue(s){const{isValid:t,errorMessages:e}=this.validate();if(!t){this.errorMessages=e;return}this.errorMessages={},c.setContact(this.contact),this.goTo("review",s)},messageFor(s){const t=(this.contact.message||"").trim(),e=(s.note||"").trim();return[t,e].filter(a=>a!=="").join(" · ")},slotLabelFor(s){return S(this.viewingTime,s,!0)},saleTypeFor(s){return s.for_sale!==!1?this.saleTypeSale:this.saleTypeRent},submit(s){if(!(this.submitting||!this.canSend)){if(this.track(s.currentTarget),this.action===m){this.submitViewing();return}if(this.needsAcknowledge&&!(this.acknowledged&&this.acknowledgedTransfer)){this.error=this.enquiryTranslates.validateIsAcknowledge||this.translates.errNotSent;return}this.submitLeads()}},leadPayload(s){const t=this.detailFor(s).acknowledge===!0,e={trackingId:`${this.leadSourceSection}-${s.unit_id}`,saleType:this.saleTypeFor(s),contact:{name:this.contact.name,email:this.contact.email,phone:this.contact.phone,message:this.messageFor(s),checkInDate:s.for_sale===!1?this.contact.checkInDate:void 0,checkOutDate:s.for_sale===!1?this.contact.checkOutDate:void 0,preferredLanguage:this.contact.preferredLanguage,isAcknowledge:t&&this.acknowledged&&this.acknowledgedTransfer,isRentToOwnInterested:null,availableFunds:void 0,maxMonthlyPayment:void 0,currency:void 0},lead:{id:s.unit_id,type:this.leadableType},detail:{source_section:this.leadSourceSection,source_domain:window.location.hostname,source_url:window.location.href,referer:document.referrer},is_completed:!1},a=window.iTracking&&window.iTracking.latestClick;return a&&(a.trackingType=at,e._t=a),e},async submitLeads(){this.submitting=!0,this.error="";const s=this.sendableItems.slice();this.progress={sent:0,total:s.length},w("cart_send_started",{action:v,cart_size:s.length});const t=Date.now(),e=await this.alreadyLed(s.filter(u=>this.unconfirmedSince[Number(u.unit_id)])),a=[];let n=null,i=null,r=!1,o=!1,l=!1;for(let u=0;u<s.length;u++){const p=s[u],O=e.leads[Number(p.unit_id)];if(O){a.push({unit_id:p.unit_id,lead_temp_id:O,position:u+1,success:!0}),r=r||this.detailFor(p).acknowledge===!0,this.pushLeadSubmitted(O),this.progress={sent:u+1,total:s.length};continue}try{const{data:g}=await C(f.enquiry.new,this.leadPayload(p));
1(g.createSavedSearchUrls||[]).forEach(J=>b(J));const H=!!(g.success&&g.lead_temp_id);a.push({unit_id:p.unit_id,lead_temp_id:g.lead_temp_id,position:u+1,success:H}),H&&(n=n||g.texts,this.detailFor(p).acknowledge===!0&&(i=i||g.texts),l=!!g.isCurrentEmailHasACompletedLead,o=!0,this.pushLeadSubmitted(g.lead_temp_id))}catch(g){console.error(g),a.push({unit_id:p.unit_id,lead_temp_id:null,position:u+1,success:!1})}this.progress={sent:u+1,total:s.length}}const _=a.filter(u=>u.success),d={};if(a.filter(u=>!u.success).forEach(u=>{const p=Number(u.unit_id);d[p]=this.unconfirmedSince[p]||t}),this.unconfirmedSince=d,this.submitting=!1,!_.length){this.error=this.translates.errSubmit,w("cart_send_done",{action:v,cart_size:s.length,sent:0});return}await this.recordBatch(_,s.length);const X=i||(r?e.textsOutsideCoverage:null);this.result={leads:a,texts:X||n||e.texts||this.result.texts},this.submittedItems=s,this.finish(),_.forEach(u=>c.remove(u.unit_id,{track:!1})),w("cart_send_done",{action:v,cart_size:s.length,sent:_.length}),o?this.primeWizard(_,s,l):this.primeWizard(_,s,!!e.isCurrentEmailHasACompletedLead,{updatePageFlag:!1})},async alreadyLed(s){const t={leads:{},texts:null,textsOutsideCoverage:null,isCurrentEmailHasACompletedLead:null};if(!s.length)return t;const e={},a={};s.forEach(n=>{e[n.unit_id]=n.for_sale!==!1?1:0;const i=Math.ceil((Date.now()-this.unconfirmedSince[Number(n.unit_id)])/1e3);a[n.unit_id]=Math.min(Et,i+Nt)});try{const{data:n}=await b(f.enquiry.cartLed,{unit_ids:s.map(o=>o.unit_id),sale_flags:e,within_seconds:a}),i=s.map(o=>Number(o.unit_id)),r={};return(n.leads||[]).filter(o=>i.includes(Number(o.unit_id))).forEach(o=>{r[Number(o.unit_id)]=o.lead_temp_id}),{leads:r,texts:n.texts||null,textsOutsideCoverage:n.textsOutsideCoverage||null,isCurrentEmailHasACompletedLead:n.isCurrentEmailHasACompletedLead===!0}}catch(n){return console.error(n),window.Sentry&&typeof window.Sentry.captureException=="function"&&window.Sentry.captureException(n,{tags:{fw_request:"cart.led"}}),t}},pushLeadSubmitted(s){try{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Lead Submitted",leadId:s,user_data:st(this.contact)})}catch(t){console.error(t)}},async recordBatch(s,t){try{await C(f.enquiry.cartRecord,{leads:s.map(e=>({id:e.lead_temp_id,position:e.position})),batch_size:t})}catch(e){console.error(e),window.Sentry&&typeof window.Sentry.captureException=="function"&&window.Sentry.captureException(e,{tags:{fw_request:"cart.record"}})}},async submitViewing(){if(!this.signedIn){this.showSignIn({source:vt,onSuccess:async()=>{await this.afterUnlock(),this.submitViewing()}});return}if(this.userInfoIncomplete()){const s=this.isForceOtp?"users/showUserOtpModal":"users/showUserInfoModal";if(!Object.prototype.hasOwnProperty.call(this.$store._actions,s)){this.error=this.translates.viewingCompleteProfile;return}this.$store.dispatch(s,{onSuccess:()=>this.bookViewings(),mode:"viewing",loadData:!0});return}await this.bookViewings()},userInfoIncomplete(){const s=this.$store.getters;return!(s["auth/isUserHasEmail"]&&s["auth/isUserHasRoles"]&&s["auth/isUserHasPhone"]&&(!this.isForceOtp||s["auth/isUserValidatedPhone"]))},async bookViewings(){this.submitting=!0,this.error="";const s=this.viewingGroups.map(r=>r.slice()),t=[].concat(...s);w("cart_send_started",{action:m,cart_size:t.length});const e=parseInt(this.viewingTime,10),a=[];let n=null,i=0;for(const r of s){const o=await this.bookViewing(r,`${e+i}:00`);if(!o)break;a.push({...o,group:r}),n=n||o.texts,i+=r.length}this.submitting=!1,w("cart_send_done",{action:m,cart_size:t.length,sent:a.reduce((r,o)=>r+o.group.length,0)}),a.length&&(this.viewingIds=a.map(r=>r.scheduleId),this.result={leads:[],texts:n||this.result.texts},this.submittedItems=[].concat(...a.map(r=>r.group)),this.viewingReceipt={booked:this.submittedItems.map(r=>({unit_id:r.unit_id,headline:this.headlineFor(r)})),leftOut:[...this.leftOutItems.map(r=>({unit_id:r.unit_id,headline:this.headlineFor(r),reason:this.reasonFor(r)})),...this.otherAreaItems.map(r=>({unit_id:r.unit_id,headline:this.headlineFor(r),reason:this.detailFor(r).regionId?this.translates.reasonOtherArea:this.translates.reasonAreaUnknown}))]}
1,this.submittedItems.forEach(r=>c.remove(r.unit_id,{track:!1})),await this.runViewingFollowUps(a))},async runViewingFollowUps(s){const t=s[0],e=s.map(n=>n.scheduleId);this.viewingFollowUp={scheduleIds:s.filter(n=>n.questionSection===t.questionSection).map(n=>n.scheduleId),texts:t.texts},await this.closeAndWait(),await this.$nextTick();const a=()=>{this.$store.commit("questions/SET_ON_CLOSE",void 0),this.$store.commit("questions/SET_ON_COMPLETE",void 0),this.requestViewingOtps(e,()=>this.showReceipt())};try{await this.$store.dispatch("questions/showQuestionsModal",{section:t.questionSection,extra:{geo:t.geo},isSale:t.isSale,modalName:U,onComplete:()=>{},onClose:a})}catch(n){console.error(n),a()}},showReceipt(){const s=!this.isOpen;this.view="page",this.step="done",document.body.classList.add(T),s&&this.pushHistory(),this.scrollTop()},async onViewingAnswersUpdate(s,t){const e=this.viewingFollowUp?this.viewingFollowUp.scheduleIds:[];await Promise.all(e.map(a=>C(f.enquiry.scheduleSyncQuestions,{scheduleId:a,answers:s,isCompleted:t})))},requestViewingOtps(s,t=()=>{}){const[e,...a]=s;if(!e){t();return}this.$refs.viewingOtpModal.openModal({id:e,urls:f.users.schedule,onClose:({shown:n=!1,verified:i=!1}={})=>{if(n&&!i){t();return}this.requestViewingOtps(a,t)}})},async bookViewing(s,t){const e=s[0],a=this.saleTypeFor(e);try{const{data:n}=await C(f.enquiry.scheduleGetUnit,{unit_id:e.unit_id,type:a,is_sale_type:e.for_sale!==!1}),i={agent_id:n.agent_id,date:this.viewingDate,time:t,rental_start_date:e.for_sale===!1?this.contact.checkInDate:null,rental_end_date:e.for_sale===!1?this.contact.checkOutDate:null,type:a,preferredLanguage:this.contact.preferredLanguage||null,isRentToOwnInterested:null,[this.channelField]:this.channel,units:[n.unit,...s.slice(1).map(_=>({unit_id:_.unit_id,project_id:_.project_id||null}))]},r=window.iTracking&&window.iTracking.latestClick;r&&(i._t=r);const{data:o}=await C(f.enquiry.scheduleCreate,i);if(!o.success)return this.error=this.translates.errViewing,null;(o.createSavedSearchUrls||[]).forEach(_=>b(_));try{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Schedule Viewing",scheduleId:o.scheduleId,leadType:"SCHEDULED_VIEWING",saleType:o.for_sale?"sale":"rent",unitIds:i.units.map(_=>_.unit_id)})}catch(_){console.error(_)}const l=n.unit||{};return{scheduleId:o.scheduleId,texts:o.successDetails,questionSection:o.questionSection,isSale:o.for_sale,geo:{region_id:l.region_id,country_id:l.country_id,location_id:l.location_id}}}catch(n){return console.error(n),n&&n.response&&n.response.status===422&&n.response.data&&n.response.data.notViewable?(this.contextKey="",this.loadContext(),this.error=this.translates.viewingLeftOutHint,null):n&&n.response&&n.response.status===422&&n.response.data&&n.response.data.missingRentalDates?(this.error=this.formTexts.validateCheckInDate||this.translates.rentalDatesHead,null):(this.error=this.translates.errViewing,null)}},finish(){this.step="done",this.historyDepth=1,window.history.replaceState({fwCart:!0,depth:1},"",window.location.href),this.scrollTop()},primeWizard(s,t,e,{updatePageFlag:a=!0}={}){const n=s[0],i=this.$store;i.commit("enquire/CREATING_NEW_LEAD_SUCCESS",{leadTempId:n.lead_temp_id}),i.commit("enquire/SET_CART_LEAD_TEMP_IDS",{leadTempIds:s.map(r=>r.lead_temp_id)}),i.commit("enquire/SET_TEXTS",{success:this.result.texts}),a&&(window.isUserHasACompletedLead=e),!e&&(this.pendingWizard={first:n,firstItem:t.find(r=>r.unit_id===Number(n.unit_id))||t[0]})},async runPendingWizard(){const s=this.pendingWizard;if(!s)return;this.pendingWizard=null;const{first:t,firstItem:e}=s,a=this.$store,n=this.saleTypeFor(e);await a.dispatch("enquire/setContact",{...this.contact}),await a.dispatch("enquire/initEnquire",{leadableType:this.leadableType,leadableId:t.unit_id,section:this.leadSourceSection,saleType:n,languageOptions:this.languageOptions,defaultEnquireLanguage:this.defaultEnquireLanguage}),await a.dispatch("enquire/getCurrencyData",{saleType:n});const i=a.getters["enquire/currentQuestion"],r=i&&i.answers&&i.answers[0]&&i.answers[0].output_context;r&&["root","contact"].includes(i.answer_type)&&a.dispatch("enquire/setCurrentContext",r),await a.dispatch("enquire/showModal",{leadableType:this.leadableType,leadableId:t.unit_id,section:this.leadSourceSection,saleType:n,isSkipContact:!0})},track(s){window.iTracking&&s&&window.iTracking.onClickInDom(s)},safeUrl(s){return typeof s=="string"&&/^(https?:\/\/|\/(?!\/))/i.test(s)?s:"#"}}};var Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fw-cart",attrs:{"data-section":"cart"}},[t.count>0&&!t.isOpen?e("button",{staticClass:"fw-cart__fab",attrs:{type:"button","data-tk":"cart_drawer_open","data-section":"cart","aria-label":t.translates.yourCart},on:{click:t.openDrawer}},[e("span",{staticClass:"fw-cart__fab-icon",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(t.translates.cart))]),e("span",{staticClass:"fw-cart__fab-n"},[t._v(t._s(t.count))])]):t._e(),t.fullNotice?e("div",{staticClass:"fw-cart__toast",attrs:{role:"status"}},[t._v(t._s(t.fullNotice))]):t._e(),t.isOpen?e("div",{staticClass:"fw-cart__scrim",on:{click:t.closeAll}}):t._e(),t.view==="drawer"?e("aside",{staticClass:"fw-cart__drawer",attrs:{role:"dialog","aria-modal":"true","aria-label":t.translates.yourCart}},[e("header",{staticClass:"fw-cart__head"},[e("span",{staticClass:"fw-cart__title"}
1,[t._v(t._s(t.translates.yourCart)+" "),t.locked?t._e():e("span",{staticClass:"fw-cart__pill"},[t._v(t._s(t.countOfMax))])]),e("button",{staticClass:"fw-cart__close",attrs:{type:"button","aria-label":t.translates.close},on:{click:t.closeAll}},[t._v("×")])]),e("div",{staticClass:"fw-cart__body"},[t.count===0?e("div",{staticClass:"fw-cart__empty"},[e("strong",[t._v(t._s(t.translates.empty))]),e("span",[t._v(t._s(t.translates.emptyHint))])]):t.locked?e("div",{staticClass:"fw-cart__gate"},[e("span",{staticClass:"fw-cart__gate-icon",attrs:{"aria-hidden":"true"}}),e("strong",{staticClass:"fw-cart__gate-h"},[t._v(t._s(t.gateHeading))]),e("p",{staticClass:"fw-cart__gate-p"},[t._v(t._s(t.translates.gateBody))]),e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary",attrs:{type:"button","data-tk":"cart_gate_sign_in","data-section":"cart"},on:{click:function(a){return t.unlock(!1,a)}}},[t._v(t._s(t.translates.gateSignIn))]),e("button",{staticClass:"fw-cart__btn fw-cart__btn--secondary",attrs:{type:"button","data-tk":"cart_gate_sign_up","data-section":"cart"},on:{click:function(a){return t.unlock(!0,a)}}},[t._v(t._s(t.translates.gateSignUp))]),e("p",{staticClass:"fw-cart__gate-note"},[t._v(t._s(t.translates.gateKept))]),t.translates.consentSaving?e("p",{staticClass:"fw-cart__gate-note fw-cart__consent"},[t._v(t._s(t.translates.consentSaving))]):t._e()]):[t._l(t.items,function(a,n){return e("div",{key:a.unit_id,staticClass:"fw-cart__row fw-cart__row--compact",class:{"is-unavailable":t.detailFor(a).available===!1}},[e("span",{staticClass:"fw-cart__n fw-cart__n--compact"},[t._v(t._s(n+1))]),a.img?e("img",{staticClass:"fw-cart__img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("div",{staticClass:"fw-cart__main"},[e("a",{staticClass:"fw-cart__t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(t.headlineFor(a)))]),t.disambiguatorFor(a)?e("span",{staticClass:"fw-cart__alt"},[t._v(t._s(t.disambiguatorFor(a)))]):t._e(),t.geoFor(a)?e("span",{staticClass:"fw-cart__geo"}
1,[t._v(t._s(t.geoFor(a)))]):t._e(),t.specFor(a)?e("span",{staticClass:"fw-cart__spec"},[t._v(t._s(t.specFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__p"},[t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e(),t.perAreaFor(a)?e("em",{staticClass:"fw-cart__per"},[t._v(t._s(t.perAreaFor(a)))]):t._e()]),t.sentOnFor(a)?e("span",{staticClass:"fw-cart__sent-on"},[t._v(t._s(t.sentOnFor(a)))]):t._e(),t.detailFor(a).available===!1?e("span",{staticClass:"fw-cart__flag"},[t._v(t._s(t.translates.unavailableHint))]):t._e()]),e("button",{staticClass:"fw-cart__x",attrs:{type:"button","aria-label":t.translates.remove},on:{click:function(i){return t.remove(a.unit_id)}}},[t._v("×")])])}),t.showRecommendations?e("section",{staticClass:"fw-cart__recs"},[e("h3",{staticClass:"fw-cart__recs-h"},[t._v(t._s(t.translates.recsHead))]),e("ul",{staticClass:"fw-cart__recs-list"},t._l(t.visibleRecommendations,function(a,n){return e("li",{key:a.unit_id,staticClass:"fw-cart__rec"},[e("span",{staticClass:"fw-cart__rec-media"},[a.img?e("img",{staticClass:"fw-cart__rec-img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__rec-img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("button",{staticClass:"fw-cart__rec-x",attrs:{type:"button","aria-label":t.translates.recsDismiss,title:t.translates.recsDismiss},on:{click:function(i){return t.dismissRecommendation(a,n)}}},[t._v("×")]),a.premium===!0?e("span",{staticClass:"fw-cart__rec-premium"},[t._v(t._s(t.translates.recsPremium))]):t._e()]),e("div",{staticClass:"fw-cart__rec-main"},[e("a",{staticClass:"fw-cart__rec-t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(a.project||a.title))]),a.geo?e("span",{staticClass:"fw-cart__geo"},[t._v(t._s(a.geo))]):t._e(),t.specFor(a)?e("span",{staticClass:"fw-cart__spec"},[t._v(t._s(t.specFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__p"},[t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e()]),e("span",{staticClass:"fw-cart__rec-why"},[t._v(t._s(t.recWhy(a)))])]),e("button",{staticClass:"fw-cart__rec-add",attrs:{type:"button"},on:{click:function(i){return t.addRecommendation(a,n)}}},[t._v(t._s(t.translates.recsAdd))])])}),0)]):t._e()],t.showSent?e("section",{staticClass:"fw-cart__sent"},[e("button",{staticClass:"fw-cart__sent-toggle",attrs:{type:"button","aria-expanded":t.sentOpen?"true":"false"},on:{click:function(a){t.sentOpen=!t.sentOpen}}},[t._v(t._s(t.sentHeading))]),t.sentOpen?e("ul",{staticClass:"fw-cart__sent-list"},t._l(t.sent,function(a){return e("li",{key:`${a.unit_id}-${a.for_sale?1:0}`,staticClass:"fw-cart__sent-row"},[a.img?e("img",{staticClass:"fw-cart__sent-img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__sent-img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("div",{staticClass:"fw-cart__sent-main"},[e("a",{staticClass:"fw-cart__sent-t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(a.title))]),e("span",{staticClass:"fw-cart__sent-kind"},[t._v(t._s(t.sentKind(a)))])])])}),0):t._e()]):t._e()],2),t.count>0&&!t.locked?e("footer",{staticClass:"fw-cart__foot"},[e("div",{staticClass:"fw-cart__foot-row"},[e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary fw-cart__foot-main",attrs:{type:"button","data-tk":"cart_page_open","data-section":"cart"},on:{click:function(a){return t.openPage("cart",a)}}},[t._v(" "+t._s(t.translates.reviewAndEnquire)+" ("+t._s(t.count)+") ")]),t.signedIn?t._e():e("button",{staticClass:"fw-cart__btn fw-cart__btn--accent fw-cart__foot-sign",attrs:{type:"button","data-tk":"cart_foot_sign_in","data-section":"cart"},on:{click:function(a){return t.unlock(!1,a)}}},[t._v(t._s(t.translates.footSignIn))])]),e("p",{staticClass:"fw-cart__foot-note"},[t._v(t._s(t.accountLine))]),t.translates.consentSaving?e("p",{staticClass:"fw-cart__foot-note fw-cart__consent"},[t._v(t._s(t.translates.consentSaving))]):t._e()]):t._e()]):t._e(),t.view==="page"?e("div",{staticClass:"fw-cart__page",attrs:{role:"dialog","aria-modal":"true","aria-label":t.translates.yourCart}},[e("header",{staticClass:"fw-cart__bar"},[e("div",{staticClass:"fw-cart__barin"},[e("button",{staticClass:"fw-cart__btn fw-cart__btn--secondary fw-cart__btn--sm",attrs:{type:"button"},on:{click:t.goBack}
1},[t._v(" "+t._s(t.step==="cart"?t.translates.keepBrowsing:t.translates.back)+" ")]),e("span",{staticClass:"fw-cart__title"},[t._v(t._s(t.pageTitle))]),e("button",{staticClass:"fw-cart__close",attrs:{type:"button","aria-label":t.translates.close},on:{click:t.closeAll}},[t._v("×")])]),t.step!=="done"?e("ol",{staticClass:"fw-cart__steps"},t._l(t.stepLabels,function(a,n){return e("li",{key:a,staticClass:"fw-cart__step",class:{"is-on":n===t.stepIndex,"is-done":n<t.stepIndex},attrs:{"aria-current":n===t.stepIndex?"step":null}},[e("span",{staticClass:"fw-cart__step-n"},[n<t.stepIndex?e("span",{staticClass:"fw-cart__sr"},[t._v(t._s(n+1))]):[t._v(t._s(n+1))]],2),e("span",{staticClass:"fw-cart__step-l"},[t._v(t._s(a))])])}),0):t._e()]),e("div",{ref:"scroll",staticClass:"fw-cart__scroll"},[e("div",{staticClass:"fw-cart__in"},[t.step==="cart"?[t.count===0?e("div",{staticClass:"fw-cart__empty"},[e("strong",[t._v(t._s(t.translates.empty))]),e("span",[t._v(t._s(t.translates.emptyHint))])]):t.locked?e("div",{staticClass:"fw-cart__gate"},[e("span",{staticClass:"fw-cart__gate-icon",attrs:{"aria-hidden":"true"}}),e("strong",{staticClass:"fw-cart__gate-h"},[t._v(t._s(t.gateHeading))]),e("p",{staticClass:"fw-cart__gate-p"},[t._v(t._s(t.translates.gateBody))]),e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary",attrs:{type:"button","data-tk":"cart_gate_sign_in","data-section":"cart"},on:{click:function(a){return t.unlock(!1,a)}}},[t._v(t._s(t.translates.gateSignIn))]),e("button",{staticClass:"fw-cart__btn fw-cart__btn--secondary",attrs:{type:"button","data-tk":"cart_gate_sign_up","data-section":"cart"},on:{click:function(a){return t.unlock(!0,a)}}},[t._v(t._s(t.translates.gateSignUp))]),e("p",{staticClass:"fw-cart__gate-note"},[t._v(t._s(t.translates.gateKept))]),t.translates.consentSaving?e("p",{staticClass:"fw-cart__gate-note fw-cart__consent"},[t._v(t._s(t.translates.consentSaving))]):t._e()]):[e("div",{staticClass:"fw-cart__intro"},[e("h2",{staticClass:"fw-cart__intro-h"},[t._v(t._s(t.introHeading))]),e("p",{staticClass:"fw-cart__intro-p"},[t._v(t._s(t.promiseText))])]),e("div",{staticClass:"fw-cart__rowshead"},[e("span",{staticClass:"fw-cart__colhead"},[t._v(t._s(t.translates.orderColumn))]),e("span",{staticClass:"fw-cart__counter",class:{"is-full":t.isFull}},[t._v(t._s(t.countOfMax))])]),e("transition-group",{staticClass:"fw-cart__rows",attrs:{tag:"ol",name:"fw-cart-reorder"}},t._l(t.items,function(a,n){return e("li",{key:a.unit_id,staticClass:"fw-cart__row",class:{"is-dragging":t.dragging===a.unit_id,"is-unavailable":t.detailFor(a).available===!1,"is-drop-before":t.dropMark(n)==="before","is-drop-after":t.dropMark(n)==="after"},attrs:{draggable:t.dragArmed===a.unit_id?"true":"false","data-unit-id":a.unit_id},on:{dragstart:function(i){return t.onDragStart(a.unit_id,i)},dragover:function(i){return t.onDragOver(n,i)},drop:function(i){return t.onDrop(n,i)},dragend:t.onDragEnd}},[e("div",{staticClass:"fw-cart__rank"},[e("button",{staticClass:"fw-cart__grip",attrs:{type:"button",tabindex:"-1","aria-hidden":"true",title:t.translates.dragToReorder},on:{mousedown:function(i){return t.armDrag(a.unit_id)}}}),e("span",{staticClass:"fw-cart__n"},[t._v(t._s(n+1))]),e("button",{staticClass:"fw-cart__mv",attrs:{type:"button","aria-label":t.translates.moveUp,disabled:n===0},on:{click:function(i){return t.move(a.unit_id,-1)}}},[t._v("▲")]),e("button",{staticClass:"fw-cart__mv",attrs:{type:"button","aria-label":t.translates.moveDown,disabled:n===t.items.length-1},on:{click:function(i){return t.move(a.unit_id,1)}}},[t._v("▼")])]),a.img?e("img",{staticClass:"fw-cart__img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("div",{staticClass:"fw-cart__main"},[e("a",{staticClass:"fw-cart__t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(t.headlineFor(a)))]),t.disambiguatorFor(a)?e("span",{staticClass:"fw-cart__alt"},[t._v(t._s(t.disambiguatorFor(a)))]):t._e(),t.geoFor(a)?e("span",{staticClass:"fw-cart__geo"}
1,[t._v(t._s(t.geoFor(a)))]):t._e(),t.specFor(a)?e("span",{staticClass:"fw-cart__spec"},[t._v(t._s(t.specFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__p"},[t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e(),t.perAreaFor(a)?e("em",{staticClass:"fw-cart__per"},[t._v(t._s(t.perAreaFor(a)))]):t._e()]),t.sentOnFor(a)?e("span",{staticClass:"fw-cart__sent-on"},[t._v(t._s(t.sentOnFor(a)))]):t._e(),t.detailFor(a).available===!1?e("span",{staticClass:"fw-cart__flag"},[t._v(t._s(t.translates.unavailableHint))]):[t.isNoteOpen(a)?e("div",{staticClass:"fw-cart__notewrap"},[e("span",{staticClass:"fw-cart__notelabel"},[e("label",{attrs:{for:`fw-cart-note-${a.unit_id}`}},[t._v(t._s(t.noteTextsFor(a).label))]),e("button",{staticClass:"fw-cart__note-x",attrs:{type:"button","aria-label":t.translates.noteRemove,title:t.translates.noteRemove},on:{click:function(i){return t.removeNote(a.unit_id)}}},[t._v("×")])]),e("textarea",{staticClass:"fw-cart__note",attrs:{id:`fw-cart-note-${a.unit_id}`,rows:"2",maxlength:t.maxNoteLength,placeholder:t.noteTextsFor(a).placeholder},domProps:{value:a.note},on:{change:function(i){return t.setNote(a.unit_id,i.target.value)},blur:function(i){return t.onNoteBlur(a.unit_id,i)}}})]):e("button",{staticClass:"fw-cart__notebtn",attrs:{type:"button"},on:{click:function(i){return t.openNote(a.unit_id)}}},[t._v("+ "+t._s(t.translates.addNote))])]],2),e("button",{staticClass:"fw-cart__x",attrs:{type:"button","aria-label":t.translates.remove},on:{click:function(i){return t.remove(a.unit_id)}}},[t._v("×")])])}),0),e("p",{staticClass:"fw-cart__hint"},[t._v(t._s(t.roomLeftText))]),t.showRecommendations?e("section",{staticClass:"fw-cart__recs fw-cart__recs--wide"},[e("h3",{staticClass:"fw-cart__recs-h"},[t._v(t._s(t.translates.recsHead))]),e("ul",{staticClass:"fw-cart__recs-list"},t._l(t.visibleRecommendations,function(a,n){return e("li",{key:a.unit_id,staticClass:"fw-cart__rec"},[e("span",{staticClass:"fw-cart__rec-media"},[a.img?e("img",{staticClass:"fw-cart__rec-img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__rec-img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("button",{staticClass:"fw-cart__rec-x",attrs:{type:"button","aria-label":t.translates.recsDismiss,title:t.translates.recsDismiss},on:{click:function(i){return t.dismissRecommendation(a,n)}}},[t._v("×")]),a.premium===!0?e("span",{staticClass:"fw-cart__rec-premium"},[t._v(t._s(t.translates.recsPremium))]):t._e()]),e("div",{staticClass:"fw-cart__rec-main"},[e("a",{staticClass:"fw-cart__rec-t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(a.project||a.title))]),a.geo?e("span",{staticClass:"fw-cart__geo"},[t._v(t._s(a.geo))]):t._e(),t.specFor(a)?e("span",{staticClass:"fw-cart__spec"},[t._v(t._s(t.specFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__p"},[t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e()]),e("span",{staticClass:"fw-cart__rec-why"},[t._v(t._s(t.recWhy(a)))])]),e("button",{staticClass:"fw-cart__rec-add",attrs:{type:"button"},on:{click:function(i){return t.addRecommendation(a,n)}}},[t._v(t._s(t.translates.recsAdd))])])}),0)]):t._e(),t.showSent?e("section",{staticClass:"fw-cart__sent"},[e("button",{staticClass:"fw-cart__sent-toggle",attrs:{type:"button","aria-expanded":t.sentOpen?"true":"false"},on:{click:function(a){t.sentOpen=!t.sentOpen}}},[t._v(t._s(t.sentHeading))]),t.sentOpen?e("ul",{staticClass:"fw-cart__sent-list"},t._l(t.sent,function(a){return e("li",{key:`${a.unit_id}-${a.for_sale?1:0}`,staticClass:"fw-cart__sent-row"},[a.img?e("img",{staticClass:"fw-cart__sent-img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__sent-img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("div",{staticClass:"fw-cart__sent-main"},[e("a",{staticClass:"fw-cart__sent-t",attrs:{href:t.safeUrl(a.url)}},[t._v(t._s(a.title))]),e("span",{staticClass:"fw-cart__sent-kind"},[t._v(t._s(t.sentKind(a)))])])])}),0):t._e()]):t._e(),e("section",{staticClass:"fw-cart__fine"},[e("h3",{staticClass:"fw-cart__fine-h"},[t._v(t._s(t.translates.finePrintHead))]),e("ul",{staticClass:"fw-cart__fine-list"},[e("li",[t._v(t._s(t.handledText(t.sendableItems)))]),e("li",[t._v(t._s(t.accountLine))]),t.enquiryTranslates.scheduleNoObligation?e("li",[t._v(t._s(t.enquiryTranslates.scheduleNoObligation))]):t._e(),t.translates.consentSaving?e("li",{staticClass:"fw-cart__consent"},[t._v(t._s(t.translates.consentSaving))]):t._e()])]),t.error?e("p",{staticClass:"fw-cart__err",attrs:{role:"alert"}},[t._v(t._s(t.error))]):t._e()]]:t._e(),t.step==="contact"?[e("div",{staticClass:"fw-cart__tw
1o"},[e("div",{staticClass:"fw-cart__panel fw-cart__panel--form"},[t.noViewing?t._e():e("div",{staticClass:"form-tabs fw-cart__tabs"},[e("button",{staticClass:"form-tabs__btn template__font-color",class:{active:t.action===t.ACTION_DETAILS},attrs:{type:"button","data-tk":"Contact_Form_Tab_Request_Details","data-section":"cart","data-group":"cart-checkout"},on:{click:function(a){return t.chooseAction(t.ACTION_DETAILS,a)}}},[t._v(" "+t._s(t.enquiryTranslates.requestDetailsTab)+" ")]),e("button",{staticClass:"form-tabs__btn template__font-color",class:{active:t.action===t.ACTION_VIEWING},attrs:{type:"button","data-tk":"Contact_Form_Tab_Schedule_Viewing","data-section":"cart","data-group":"cart-checkout"},on:{click:function(a){return t.chooseAction(t.ACTION_VIEWING,a)}}},[t._v(" "+t._s(t.enquiryTranslates.scheduleViewingTab)+" ")])]),e("div",{staticClass:"wrap-enquiry hasTabs fw-cart__enquiry"},[e("div",{staticClass:"tab-content__contact"},[t.action===t.ACTION_DETAILS||t.viewableItems.length?e("p",{staticClass:"fw-cart__lede"},[t._v(t._s(t.actionLede))]):t._e(),t.action===t.ACTION_VIEWING&&t.leftOutItems.length?e("div",{staticClass:"fw-cart__service",attrs:{role:"status"}},[e("p",{staticClass:"fw-cart__service-h"},[t._v(t._s(t.leftOutHeading))]),e("ul",{staticClass:"fw-cart__service-list"},t._l(t.leftOutItems,function(a){return e("li",{key:a.unit_id},[e("b",[t._v(t._s(t.headlineFor(a)))]),t.reasonFor(a)?[t._v(" – "+t._s(t.reasonFor(a)))]:t._e()],2)}),0),t.viewableItems.length?e("p",{staticClass:"fw-cart__service-p"},[t._v(t._s(t.translates.viewingLeftOutHint))]):t._e()]):t._e(),t.action===t.ACTION_VIEWING&&t.otherAreaItems.length?e("div",{staticClass:"fw-cart__service fw-cart__area-pick"},[t.viewingAreas.length>1?e("fieldset",{staticClass:"fw-cart__areas"},[e("legend",{staticClass:"fw-cart__service-h"},[t._v(t._s(t.translates.viewingAreaHead))]),t._l(t.viewingAreas,function(a){return e("label",{key:a.regionId,staticClass:"fw-cart__area"},[e("input",{attrs:{type:"radio",name:"fw-cart-area","data-tk":"cart_viewing_area","data-section":"cart"},domProps:{value:a.regionId,checked:a.regionId===t.chosenRegionId},on:{change:function(n){t.viewingRegionId=a.regionId}}}),e("span",[t._v(t._s(a.name)+" · "+t._s(a.countText))])])})],2):t._e(),t.otherRegionItems.length?e("ul",{staticClass:"fw-cart__service-list fw-cart__area-other"},t._l(t.otherRegionItems,function(a){return e("li",{key:a.unit_id},[t._v(t._s(t.headlineFor(a)))])}),0):t._e(),t.unknownAreaItems.length?[e("p",{staticClass:"fw-cart__service-h fw-cart__area-unknown-h"},[t._v(t._s(t.translates.viewingAreaUnknown))]),e("ul",{staticClass:"fw-cart__service-list fw-cart__area-unknown"},t._l(t.unknownAreaItems,function(a){return e("li",{key:a.unit_id},[t._v(t._s(t.headlineFor(a)))])}),0)]:t._e(),e("p",{staticClass:"fw-cart__service-p"},[t._v(t._s(t.translates.viewingOtherArea))])],2):t._e(),e("form",{staticClass:"needs-validation enquiry-style",attrs:{action:"#",novalidate:""},on:{submit:function(a){return a.preventDefault(),t.onDetailsContinue(a)}}},[t.action===t.ACTION_DETAILS?e("eq-text-input",{attrs:{"class-name":"input-name","icon-class-name":"icon-name",name:"name",value:t.contact.name,placeholder:t.formTexts.name,"error-message":t.errorMessages.name,"on-field-change":t.onFieldChange}}):t._e(),t.action===t.ACTION_DETAILS?e("eq-phone-input",{attrs:{code:t.defaultCountryCode,name:"phone",value:t.contact.phone,placeholder:t.formTexts.phone,"error-message":t.errorMessages.phone,"on-field-change":t.onFieldChange}}):t._e(),t.action===t.ACTION_DETAILS?e("eq-text-input",{attrs:{"class-name":"email-input","icon-class-name":"icon-email",type:"email",name:"email",value:t.contact.email,placeholder:t.formTexts.email,"error-message":t.errorMessages.email,"on-field-change":t.onFieldChange}}):t._e(),e("eq-language-options",{attrs:{name:"preferredLanguage",options:t.languageOptions,"default-language":t.contact.preferredLanguage||t.defaultEnquireLanguage,translates:t.enquiryTranslates,"on-field-change":t.onFieldChange,"form-design":!0,"error-message":t.errorMessages.preferredLanguage}}),t.needsRentalDates?e("div",{staticClass:"fw-cart__rental group-input-text-question"},[e("div",{staticClass:"fw-cart__sched-h"},[t._v(t._s(t.translates.rentalDatesHead))]),e("eq-date-picker",{attrs:{value:t.contact.checkInDate,name:"checkInDate","icon-class-name":"icon-calendar","display-format":"MMM dd, yyyy",placeholder:t.formTexts.checkInDate,"on-field-change":t.onFieldChange,"disabled-passed":!0,"disabled-from-date":t.contact.checkOutDate,"error-message":t.errorMessages.checkInDate}}),e("eq-rental-duration",{attrs:{name:"checkOutDate","icon-class-name":"icon-calendar",placeholder:t.formTexts.rentalDuration,"on-field-change":t.onFieldChange,disabled:!t.contact.checkInDate,"check-in-date":t.contact.checkInDate,"error-message":t.errorMessages.checkOutDate,translates:t.enquiryTranslates}}
1)],1):t._e(),t.action===t.ACTION_VIEWING&&t.viewableItems.length?e("div",{staticClass:"fw-cart__sched"},[e("div",{staticClass:"fw-cart__sched-h"},[t._v(t._s(t.translates.pickDay))]),e("div",{staticClass:"fw-cart__days"},[e("button",{staticClass:"fw-cart__daynav",attrs:{type:"button","aria-label":t.translates.back,disabled:t.dayOffset===0},on:{click:function(a){return t.shiftDays(-1)}}},[t._v("‹")]),e("ul",{staticClass:"fw-cart__daylist"},t._l(t.visibleDays,function(a){return e("li",{key:a.unix},[e("button",{staticClass:"fw-cart__day",class:{"is-on":String(a.unix)===String(t.viewingDate)},attrs:{type:"button"},on:{click:function(n){t.viewingDate=a.unix}}},[e("span",{staticClass:"fw-cart__day-w"},[t._v(t._s(a.weekday))]),e("span",{staticClass:"fw-cart__day-d"},[t._v(t._s(a.date))]),e("span",{staticClass:"fw-cart__day-m"},[t._v(t._s(a.month))])])])}),0),e("button",{staticClass:"fw-cart__daynav",attrs:{type:"button","aria-label":t.translates.more,disabled:t.dayOffset+t.dayWindow>=t.days.length},on:{click:function(a){return t.shiftDays(1)}}},[t._v("›")])]),e("div",{staticClass:"fw-cart__sched-h"},[t._v(t._s(t.translates.pickStart))]),e("ul",{staticClass:"fw-cart__times"},t._l(t.timeslots,function(a){return e("li",{key:a.time},[e("button",{staticClass:"fw-cart__time",class:{"is-on":a.time===t.viewingTime},attrs:{type:"button"},on:{click:function(n){t.viewingTime=a.time}}},[t._v(t._s(a.label))])])}),0),e("p",{staticClass:"fw-cart__sched-note"},[t._v(t._s(t.viewingWindowText))]),t.viewingSides>1?e("p",{staticClass:"fw-cart__sched-note"},[t._v(t._s(t.translates.viewingSplitSides))]):t._e(),e("p",{staticClass:"fw-cart__sched-note"},[t._v(t._s(t.enquiryTranslates.scheduleNoObligation))]),t.signedIn?t._e():e("p",{staticClass:"fw-cart__sched-note fw-cart__sched-note--sign"},[t._v(t._s(t.translates.viewingSignIn))])]):t._e(),t.action===t.ACTION_DETAILS?e("eq-text-area",{staticClass:"message-input",attrs:{name:"message",value:t.contact.message,placeholder:t.formTexts.message,"error-message":t.errorMessages.message,"on-field-change":t.onFieldChange}}):t._e(),t.showLegalNotice&&t.action===t.ACTION_DETAILS?e("span",{staticClass:"legal-consent",domProps:{innerHTML:t._s(t.enquiryTranslates.legalConsent)}}):t._e()],1),t.error?e("p",{staticClass:"fw-cart__err",attrs:{role:"alert"}},[t._v(t._s(t.error))]):t._e()])])]),e("aside",{staticClass:"fw-cart__rail"},[e("div",{staticClass:"fw-cart__rail-card"},[e("h3",{staticClass:"fw-cart__rail-h"},[t._v(t._s(t.translates.railHead))]),e("p",{staticClass:"fw-cart__rail-sub"},[t._v(t._s(t.receiptHeading))]),e("ol",{staticClass:"fw-cart__rail-list"},t._l(t.receiptItems,function(a,n){return e("li",{key:a.unit_id,staticClass:"fw-cart__rail-row"},[e("span",{staticClass:"fw-cart__rail-n"},[t._v(t._s(n+1))]),a.img?e("img",{staticClass:"fw-cart__rail-img",attrs:{src:a.img,alt:"",loading:"lazy"}}):e("span",{staticClass:"fw-cart__rail-img fw-cart__img--none",attrs:{"aria-hidden":"true"}}),e("div",{staticClass:"fw-cart__rail-main"},[e("b",[t._v(t._s(t.headlineFor(a)))]),t.disambiguatorFor(a)?e("span",{staticClass:"fw-cart__alt"},[t._v(t._s(t.disambiguatorFor(a)))]):t._e(),t.specFor(a)?e("span",{staticClass:"fw-cart__spec"},[t._v(t._s(t.specFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__p"},[t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e()])])])}),0),e("dl",{staticClass:"fw-cart__rail-facts"},[e("div",[e("dt",[t._v(t._s(t.translates.sumAction))]),e("dd",[t._v(t._s(t.action===t.ACTION_VIEWING?t.enquiryTranslates.scheduleViewingTab:t.enquiryTranslates.requestDetailsTab))])]),t.action===t.ACTION_VIEWING&&t.viewableItems.length?e("div",[e("dt",[t._v(t._s(t.translates.sumWhen))]),e("dd",[t._v(t._s(t.selectedDayLabel))])]):t._e(),t.action===t.ACTION_VIEWING&&t.viewableItems.length?e("div",[e("dt",[t._v(t._s(t.translates.sumTime))]),e("dd",[t._v(t._s(t.startTimeLabel)+" – "+t._s(t.endTimeLabel))])]):t._e()]),e("p",{staticClass:"fw-cart__rail-note"},[t._v(t._s(t.handledText(t.receiptItems)))])])])])]:t._e(),t.step==="review"?[e("p",{staticClass:"fw-cart__lede"},[t._v(t._s(t.action===t.ACTION_VIEWING?t.translates.reviewLedeViewing:t.translates.reviewLede))]),e("div",{staticClass:"fw-cart__receipt"},[e("div",{staticClass:"fw-cart__summary"},[e("div",{staticClass:"fw-cart__sumcell"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.translates.sumHomes))]),e("b",[t._v(t._s(t.receiptItems.length))])]),e("div",{staticClass:"fw-cart__sumcell"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.translates.sumAction))]),e("b",[t._v(t._s(t.action===t.ACTION_VIEWING?t.enquiryTranslates.scheduleViewingTab:t.enquiryTranslates.requestDetailsTab))])]),t.action===t.ACTION_VIEWING?e("div",{staticClass:"fw-cart__sumcell"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.translates.sumWhen))]),e("b",[t._v(t._s(t.selectedDayLabel))])]):t._e(),t.action===t.ACTION_VIEWING?e("div",{staticClass:"fw-cart__sumcell"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.translates.sumTime))]),e("b",[t._v(t._s(t.startTimeLabel)+" – "+t._s(t.endTimeLabel))])]):t._e()]),t.action===t.ACTION_DETAILS?e("div",{staticClass:"fw-cart__receipt-head"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.translates.from))]),e("p",[e("b",[t._v(t._s(t.contact.name))]),t.contact.email?[t._v(" · "+t._s(t.contact.email))]:t._e(),t.contact.phone?[t._v(" · "+t._s(t.contact.phone))]:t._e()],2)]):t._e(),e("div",{staticClass:"fw-cart__receipt-block"},[e("span",{staticClass:"fw-cart__key"},[t._v(t._s(t.receiptHeading))]),e("ol",{staticClass:"fw-cart__receipt-list"}
1,t._l(t.receiptItems,function(a,n){return e("li",{key:a.unit_id,staticClass:"fw-cart__receipt-row"},[e("span",{staticClass:"fw-cart__receipt-n"},[t._v(t._s(n+1))]),e("div",[e("b",[t._v(t._s(t.headlineFor(a)))]),t.disambiguatorFor(a)?e("span",{staticClass:"fw-cart__alt"},[t._v(t._s(t.disambiguatorFor(a)))]):t._e(),e("span",{staticClass:"fw-cart__receipt-meta"},[t.projectFor(a)&&t.projectFor(a)!==t.headlineFor(a)?[t._v(t._s(t.projectFor(a))+" · ")]:t._e(),t._v(t._s(a.price)),t.perMonthFor(a)?e("em",{staticClass:"fw-cart__mo"},[t._v(t._s(t.perMonthFor(a)))]):t._e()],2),t.action===t.ACTION_VIEWING?e("span",{staticClass:"fw-cart__receipt-meta"},[t._v(t._s(t.slotLabelFor(n)))]):[e("p",{staticClass:"fw-cart__receipt-msg"},[t._v(t._s(t.messageFor(a)))]),t.detailFor(a).acknowledge&&t.reasonFor(a)?e("span",{staticClass:"fw-cart__flag"},[t._v(t._s(t.reasonFor(a)))]):t._e()]],2)])}),0),t.action===t.ACTION_VIEWING&&t.hasNotes?e("p",{staticClass:"fw-cart__notewarn"},[t._v(" "+t._s(t.translates.viewingNotesNotSent)+" ")]):t._e()]),t.needsAcknowledge?e("div",{staticClass:"fw-cart__ack info-confirmation"},[e("p",{staticClass:"fw-cart__ack-h"},[t._v(t._s(t.acknowledgeHeading))]),e("ul",{staticClass:"fw-cart__ack-list"},t._l(t.acknowledgeItems,function(a){return e("li",{key:a.unit_id},[t._v(t._s(t.headlineFor(a)))])}),0),e("label",{staticClass:"fw-cart__ack-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.acknowledged,expression:"acknowledged"}],staticClass:"checkbox-input",attrs:{type:"checkbox","data-tk":"cart_acknowledge","data-section":"cart"},domProps:{checked:Array.isArray(t.acknowledged)?t._i(t.acknowledged,null)>-1:t.acknowledged},on:{change:function(a){var n=t.acknowledged,i=a.target,r=!!i.checked;if(Array.isArray(n)){var o=null,l=t._i(n,o);i.checked?l<0&&(t.acknowledged=n.concat([o])):l>-1&&(t.acknowledged=n.slice(0,l).concat(n.slice(l+1)))}else t.acknowledged=r}}}),e("span",[t._v(t._s(t.enquiryTranslates.confirmInformationText))])]),e("label",{staticClass:"fw-cart__ack-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.acknowledgedTransfer,expression:"acknowledgedTransfer"}],staticClass:"checkbox-input",attrs:{type:"checkbox","data-tk":"cart_acknowledge_transfer","data-section":"cart"},domProps:{checked:Array.isArray(t.acknowledgedTransfer)?t._i(t.acknowledgedTransfer,null)>-1:t.acknowledgedTransfer},on:{change:function(a){var n=t.acknowledgedTransfer,i=a.target,r=!!i.checked;if(Array.isArray(n)){var o=null,l=t._i(n,o);i.checked?l<0&&(t.acknowledgedTransfer=n.concat([o])):l>-1&&(t.acknowledgedTransfer=n.slice(0,l).concat(n.slice(l+1)))}else t.acknowledgedTransfer=r}}}),e("span",[t._v(t._s(t.enquiryTranslates.confirmInformationForTransferText))])]),e("p",{staticClass:"fw-cart__ack-p"},[t._v(t._s(t.enquiryTranslates.confirmInformationDescription))])]):t._e(),e("p",{staticClass:"fw-cart__whathappens"},[t._v(t._s(t.action===t.ACTION_VIEWING?t.translates.whatHappensViewing:t.handledText(t.receiptItems)))]),t.translates.consentSaving?e("p",{staticClass:"fw-cart__consent"},[t._v(t._s(t.translates.consentSaving))]):t._e(),t.showLegalNotice&&t.action===t.ACTION_DETAILS?e("span",{staticClass:"legal-consent fw-cart__legal",domProps:{innerHTML:t._s(t.enquiryTranslates.legalConsent)}}):t._e()]),t.error?e("p",{staticClass:"fw-cart__err",attrs:{role:"alert"}},[t._v(t._s(t.error))]):t._e()]:t._e(),t.step==="done"?[e("div",{staticClass:"fw-cart__panel fw-cart__done"},[e("h2",{staticClass:"fw-cart__done-title"},[t._v(t._s(t.result.texts.title))]),e("p",[t._v(t._s(t.result.texts.message))]),t.result.texts.information&&t.result.texts.information.length?e("ul",t._l(t.result.texts.information,function(a,n){return e("li",{key:n},[t._v(t._s(a))])}),0):t._e(),t.failedItems.length?[e("p",{staticClass:"fw-cart__err",attrs:{role:"alert"}},[t._v(t._s(t.translates.partialFail))]),e("ul",t._l(t.failedItems,function(a){return e("li",{key:a.unit_id},[t._v(t._s(a.title))])}),0)]:t._e(),t.viewingReceipt?[e("p",{staticClass:"fw-cart__done-h"},[t._v(t._s(t.bookedHeading))]),e("ol",{staticClass:"fw-cart__done-list"},t._l(t.viewingReceipt.booked,function(a){return e("li",{key:a.unit_id},[t._v(t._s(a.headline))])}),0),t.viewingReceipt.leftOut.length?e("div",{staticClass:"fw-cart__service",attrs:{role:"status"}},[e("p",{staticClass:"fw-cart__service-h"},[t._v(t._s(t.receiptLeftOutHeading))]),e("ul",{staticClass:"fw-cart__service-list"},t._l(t.viewingReceipt.leftOut,function(a){return e("li",{key:a.unit_id},[e("b",[t._v(t._s(a.headline))]),a.reason?[t._v(" – "+t._s(a.reason))]:t._e()],2)}),0),e("p",{staticClass:"fw-cart__service-p"},[t._v(t._s(t.translates.viewingLeftOutHint))])]):t._e()]:t._e(),t.error?e("p",{staticClass:"fw-cart__err",attrs:{role:"alert"}},[t._v(t._s(t.error))]):t._e(),t.viewingIds.length?e("a",{staticClass:"fw-cart__btn fw-cart__btn--secondary",attrs:{href:t.myViewingsUrl}},[t._v(t._s(t.translates.seeViewings))]):t._e()],2)]:t._e()],2)]),e("footer",{staticClass:"fw-cart__cta"},[t.step==="cart"&&t.count>0&&!t.locked?e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary fw-cart__btn--lg",attrs:{type:"button","data-tk":"cart_checkout_open","data-section":"cart",disabled:t.contextLoading&&!t.contextReady},on:{click:function(a){return t.onCartContinue(a)}}},[t._v(" "+t._s(t.translates.continue)+" ")]):t._e(),t.step==="contact"?e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary fw-cart__btn--lg",attrs:{type:"button","data-tk":"cart_contact_done","data-section":"cart",disabled:!t.canSe
1nd},on:{click:function(a){return t.onDetailsContinue(a)}}},[t._v(" "+t._s(t.translates.review)+" ")]):t._e(),t.step==="review"?e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary fw-cart__btn--lg",attrs:{type:"button","data-tk":"cart_submit","data-section":"cart",disabled:t.submitting||!t.canSend},on:{click:function(a){return t.submit(a)}}},[t._v(" "+t._s(t.submitting?t.sendingLabel:t.sendLabel)+" ")]):t._e(),t.step==="done"?e("button",{staticClass:"fw-cart__btn fw-cart__btn--primary fw-cart__btn--lg",attrs:{type:"button"},on:{click:t.closeAll}},[t._v(" "+t._s(t.translates.done)+" ")]):t._e()])]):t._e(),t.viewingFollowUp?e("schedule-modal",{attrs:{"modal-name":t.questionsModalName,"on-answers-update":t.onViewingAnswersUpdate,"success-data":t.viewingFollowUp.texts,"custom-error-messages":t.questionErrorMessages}}):t._e(),e("otp-modal",{ref:"viewingOtpModal",attrs:{translates:t.enquiryTranslates}})],1)},qt=[],Ht=ft(Rt,Mt,qt,!1,null,null);const Be=Ht.exports;export{Be 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.