{"version":3,"sources":["webpack:///./src/views/TVDisplayRentals.vue?24d4","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/TVDisplayRentals.vue?66b1","webpack:///./src/views/TVDisplayRentals.vue","webpack:///./src/views/TVDisplayRentals.vue?5bab","webpack:///./src/views/TVDisplayRentals.vue?3597","webpack:///./src/views/TVDisplayRentals.vue?c6eb"],"names":["ViewBase","Vue","constructor","prolistAnalyticsService","ServiceManager","Get","ServiceType","Analytics","headService","Require","Head","updateAnalytics","evt","obj","this","getAnalyticsEvent","call","getAnalyticsData","AnalyticsPageView","$route","path","name","undefined","triggerAnalyticsEvent","event","GetAll","forEach","adapter","Record","triggerCustomAnalyticsEvent","updateHead","result","head","bind","Promise","then","meta","Update","UpdateWithStatic","Component","View","mounted","requestAnimationFrame","AsyncView","$on","render","_vm","_c","_self","_setupProxy","staticClass","_m","attrs","listing","_v","_s","methodOfSale","_e","on","handleAfterLeave","style","dwellTime","Images","length","Preview","Url","Address","MicroAddress","HiddenAddress","Header","Price","DisplayPrice","WebDescription","Features","Bedrooms","Bathrooms","Parking","Total","office","AddressLine1","AddressLine2","Phone","Agents","FullName","MobilePhone","Photo","staticRenderFns","TVDisplaySales","Mixins","maxListings","listingFilter","ListingFilter","Statuses","ListingStatus","Current","Categories","ListingCategory","ResidentialRental","PageSize","listings","currentIdx","window","location","hostname","PropertyId","Config","API","Base","Id","Website","MethodOfSale","indexOf","queueNext","clearTimeout","nextTimeout","setTimeout","updateListings","console","log","resolve","Listings","Search","Items","catch","Offices","Settings","WebsiteId","component"],"mappings":"kHAAA,W,kOCcA,IAAMA,EAAN,cAAuBC,aAAvBC,c,oBACY,KAAAC,wBAA0BC,OAAeC,IAA6BC,OAAYC,UAAW,2BAC7F,KAAAC,YAAcJ,OAAeK,QAAqBH,OAAYI,MAEjEC,kBACL,IAAIC,EAA6B,KAC7BC,EAAmC,KAED,qBAA3BC,KAAKC,kBACdH,EAAME,KAAKC,kBAAkBC,KAAKF,M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,E","file":"js/chunk-1c91a49a.0b1ce7bd.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TVDisplayRentals.vue?vue&type=style&index=0&id=79fa9a5b&prod&lang=css&\"","import Vue from \"vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { AnalyticsEvent, AnalyticsEventObject, AnalyticsPageView, IAnalyticsAdapter, PROListAnalyticsAdapter } from \"../../services/Analytics\";\r\nimport { HeadService } from \"../../services/HeadService\";\r\nimport { ServiceManager, ServiceType } from \"../../services/ServiceManager\";\r\nimport { RouteMeta } from \"../meta\";\r\n\r\ninterface ViewBase {\r\n getAnalyticsEvent?(): AnalyticsEvent | null;\r\n getAnalyticsData?(): AnalyticsEventObject | null;\r\n head?(): RouteMeta | Promise | null;\r\n}\r\n\r\n@Component\r\nclass ViewBase extends Vue {\r\n protected prolistAnalyticsService = ServiceManager.Get(ServiceType.Analytics, 'PROListAnalyticsAdapter');\r\n protected headService = ServiceManager.Require(ServiceType.Head)!;\r\n\r\n public updateAnalytics() {\r\n let evt: AnalyticsEvent | null = null;\r\n let obj: AnalyticsEventObject | null = null;\r\n\r\n if (typeof this.getAnalyticsEvent !== 'undefined') {\r\n evt = this.getAnalyticsEvent.call(this);\r\n } else if(typeof this.getAnalyticsData !== 'undefined') {\r\n obj = this.getAnalyticsData.call(this);\r\n }\r\n\r\n if (evt === null) evt = new AnalyticsPageView(this.$route.path, this.$route.name || '', obj || undefined);\r\n\r\n this.triggerAnalyticsEvent(evt);\r\n }\r\n\r\n public triggerAnalyticsEvent(event: AnalyticsEvent) {\r\n ServiceManager.GetAll(ServiceType.Analytics).forEach((adapter) => {\r\n adapter.Record(event);\r\n });\r\n }\r\n\r\n public triggerCustomAnalyticsEvent(event: AnalyticsEvent) {\r\n if (this.prolistAnalyticsService !== null) this.prolistAnalyticsService.Record(event);\r\n }\r\n\r\n protected updateHead() {\r\n if ('head' in this) {\r\n const result = this.head!.bind(this)();\r\n\r\n if(result instanceof Promise) {\r\n result.then((meta: RouteMeta | null) => {\r\n this.headService.Update(meta);\r\n });\r\n } else {\r\n this.headService.Update(result as RouteMeta | null);\r\n }\r\n } else {\r\n this.headService.UpdateWithStatic(this.$route.path);\r\n }\r\n }\r\n}\r\n\r\n@Component\r\nclass View extends ViewBase {\r\n public mounted() {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n }\r\n}\r\n\r\n@Component\r\nclass AsyncView extends ViewBase {\r\n public mounted() {\r\n this.$on('updateView', () => {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n });\r\n }\r\n}\r\n\r\nexport {\r\n View,\r\n AsyncView\r\n}\r\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TVDisplayRentals.vue?vue&type=style&index=1&id=79fa9a5b&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"tv-display\"},[_c('div',{staticClass:\"tv-display__header\"},[_vm._m(0),_c('div',{staticClass:\"tv-display__header__mos\"},[_c('transition',{attrs:{\"name\":\"tvd-fade\"}},[(_vm.listing)?_c('span',[_vm._v(\" \"+_vm._s(_vm.methodOfSale)+\" \")]):_vm._e()])],1)]),_c('div',{staticClass:\"tv-display__content\"},[_c('transition',{attrs:{\"name\":\"tvd-fade\"},on:{\"after-leave\":_vm.handleAfterLeave}},[(_vm.listing)?_c('div',{staticClass:\"tvd-listing\"},[_c('div',{staticClass:\"tvd-progress-bar\",style:({'--dwell-time': _vm.dwellTime})}),_c('div',{staticClass:\"tvd-listing__body\"},[_c('div',{staticClass:\"tvd-listing__images\"},[(_vm.listing.Images.length === 0)?[_c('div',{staticClass:\"tvd-listing__images__item tvd-listing__images__item--placeholder\"},[_vm._v(\" Sorry, there are no photos for this listing yet. \")])]:(_vm.listing.Images.length < 3)?[_c('div',{staticClass:\"tvd-listing__images__item tvd-listing__images__item--only-main\",style:({'background-image': 'url(' + _vm.listing.Images[0].Preview.Url + ')'})})]:[_c('div',{staticClass:\"tvd-listing__images__item tvd-listing__images__item--main\",style:({'background-image': 'url(' + _vm.listing.Images[0].Preview.Url + ')'})}),_c('div',{staticClass:\"tvd-listing-images__row\"},[_c('div',{staticClass:\"tvd-listing__images__item tvd-listing__images__item--sub\",style:({'background-image': 'url(' + _vm.listing.Images[1].Preview.Url + ')'})}),_c('div',{staticClass:\"tvd-listing__images__item tvd-listing__images__item--sub\",style:({'background-image': 'url(' + _vm.listing.Images[2].Preview.Url + ')'})})])]],2),_c('div',{staticClass:\"tvd-listing__details\"},[_c('div',{staticClass:\"tvd-listing-details__heading\"},[_c('div',{staticClass:\"tvd-listing-details__heading__details\"},[_c('h4',{staticClass:\"listing-address\"},[_vm._v(_vm._s(_vm.listing.Address.MicroAddress))]),_c('h5',{staticClass:\"listing-suburb\"},[_vm._v(_vm._s(_vm.listing.Address.HiddenAddress))])])]),_c('div',{staticClass:\"tvd-listing__details__body\"},[_c('h2',{staticClass:\"listing-heading\"},[_vm._v(_vm._s(_vm.listing.Header))]),(_vm.listing.Price.DisplayPrice)?_c('h3',{staticClass:\"listing-price\"},[_vm._v(_vm._s(_vm.listing.Price.Price))]):_vm._e(),_c('p',{staticClass:\"listing-introduction\"},[_vm._v(_vm._s(_vm.listing.WebDescription))]),_c('ul',{staticClass:\"listing-meta\"},[(_vm.listing.Features.Bedrooms)?_c('li',{staticClass:\"listing-meta__item\"},[_c('Icon',{staticClass:\"listing-meta__item__icon\",attrs:{\"icon\":\"bed\"}}),_c('span',{staticClass:\"listing-meta__item__label\"},[_vm._v(\" \"+_vm._s(_vm.listing.Features.Bedrooms)+\" \")])],1):_vm._e(),(_vm.listing.Features.Bathrooms)?_c('li',{staticClass:\"listing-meta__item\"},[_c('Icon',{staticClass:\"listing-meta__item__icon\",attrs:{\"icon\":\"bath\"}}),_c('span',{staticClass:\"listing-meta__item__label\"},[_vm._v(\" \"+_vm._s(_vm.listing.Features.Bathrooms)+\" \")])],1):_vm._e(),(_vm.listing.Features.Parking.Total)?_c('li',{staticClass:\"listing-meta__item\"},[_c('Icon',{staticClass:\"listing-meta__item__icon\",attrs:{\"icon\":\"car\"}}),_c('span',{staticClass:\"listing-meta__item__label\"},[_vm._v(\" \"+_vm._s(_vm.listing.Features.Parking.Total)+\" \")])],1):_vm._e()])])])]),_c('div',{staticClass:\"tvd-listing__footer\"},[(_vm.office)?_c('div',{staticClass:\"tvd-listing__agency\"},[_vm._v(\" \"+_vm._s(_vm.office.AddressLine1)+\", \"+_vm._s(_vm.office.AddressLine2)+\" | quaid.com.au | \"+_vm._s(_vm.office.Phone)+\" \")]):_vm._e(),_c('div',{staticClass:\"tvd-listing__agent\"},[_c('div',{staticClass:\"listing-agent__name\"},[_vm._v(\" \"+_vm._s(_vm.listing.Agents[0].FullName)+\" \")]),_c('div',{staticClass:\"listing-agent__phone\"},[_vm._v(\" \"+_vm._s(_vm.listing.Agents[0].MobilePhone)+\" \")])]),_c('div',{staticClass:\"tvd-listing-agent-photo\"},[_c('img',{attrs:{\"src\":_vm.listing.Agents[0].Photo.Preview.Url}})])])]):_vm._e()])],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"tv-display__header__brand\"},[_c('img',{attrs:{\"src\":\"/assets/images/brand/logo.svg\"}})])\n}]\n\nexport { render, staticRenderFns }","\nimport { Component, Mixins } from 'vue-property-decorator';\n\nimport { ListingFilter } from 'client-website-ts-library/filters';\nimport {\n ListingStatus,\n ListingCategory,\n Listing,\n Office,\n} from 'client-website-ts-library/types';\n\nimport { View } from 'client-website-ts-library/plugins';\nimport { API, Config } from 'client-website-ts-library/services';\n\n@Component\nexport default class TVDisplaySales extends Mixins(View) {\n private dwellTime = 10 * 1000 * 1;\n\n private maxListings = 5;\n\n private office: Office | null = null;\n\n private listingFilter = new ListingFilter({\n Statuses: [\n ListingStatus.Current,\n ],\n Categories: [\n ListingCategory.ResidentialRental,\n ],\n PageSize: this.maxListings,\n });\n\n private listings: Listing[] = [];\n\n private listing: Listing | null = null;\n\n private nextTimeout?: number;\n\n private currentIdx = 0;\n\n get listingLink() {\n if (this.listing === null) return '';\n\n return `${window.location.hostname}/${this.listing.PropertyId}`;\n }\n\n get qrCodeLink() {\n if (this.listing === null) return null;\n\n return `${Config.API.Base}/api/links/qrcode/listings/${this.listing.Id}?clientWebsiteId=${Config.Website.Id}`;\n }\n\n get methodOfSale() {\n if (this.listing === null) return 'For Sale';\n\n if (this.listing.MethodOfSale.indexOf('For') !== -1) return this.listing.MethodOfSale;\n\n return `For ${this.listing.MethodOfSale}`;\n }\n\n queueNext() {\n clearTimeout(this.nextTimeout);\n\n this.nextTimeout = setTimeout(() => {\n this.currentIdx += 1;\n\n if (this.currentIdx >= this.listings.length && this.listings.length > 0) {\n this.updateListings().then(() => {\n // eslint-disable-next-line prefer-destructuring\n this.currentIdx = 0;\n this.listing = null;\n });\n } else {\n this.listing = null;\n }\n }, this.dwellTime);\n }\n\n handleAfterLeave() {\n this.listing = this.listings[this.currentIdx];\n\n console.log(this.listing);\n\n this.queueNext();\n }\n\n updateListings() {\n return new Promise((resolve) => {\n API.Listings.Search(this.listingFilter).then((listings) => {\n this.listings = listings.Items;\n\n this.handleAfterLeave();\n\n resolve();\n }).catch(() => {\n if (this.listings.length > 0) {\n this.handleAfterLeave();\n\n resolve();\n }\n });\n });\n }\n\n mounted() {\n this.updateListings();\n\n API.Offices.Get(Config.Website.Settings!.WebsiteId).then((office) => {\n this.office = office;\n });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TVDisplayRentals.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TVDisplayRentals.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TVDisplayRentals.vue?vue&type=template&id=79fa9a5b&scoped=true&\"\nimport script from \"./TVDisplayRentals.vue?vue&type=script&lang=ts&\"\nexport * from \"./TVDisplayRentals.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TVDisplayRentals.vue?vue&type=style&index=0&id=79fa9a5b&prod&lang=css&\"\nimport style1 from \"./TVDisplayRentals.vue?vue&type=style&index=1&id=79fa9a5b&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"79fa9a5b\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}