{"version":3,"sources":["webpack:///./src/components/UI/Loader.vue","webpack:///./src/components/UI/Loader.vue?baee","webpack:///./src/components/UI/Loader.vue?8596","webpack:///./src/components/UI/Loader.vue?9492","webpack:///./src/components/Listings.vue?81fd","webpack:///./src/components/ListingCard.vue","webpack:///./src/components/ListingCard.vue?33ed","webpack:///./src/components/ListingCard.vue?8b2d","webpack:///./src/components/ListingCard.vue?bdb2","webpack:///./src/components/ListingCard.vue?0a05","webpack:///./node_modules/vue-observe-visibility/dist/vue-observe-visibility.esm.js","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/views/AgentProfileListings.vue","webpack:///./src/views/AgentProfileListings.vue?d282","webpack:///./src/views/AgentProfileListings.vue?252f","webpack:///./src/views/AgentProfileListings.vue?be82","webpack:///./src/views/AgentProfileListings.vue?3470","webpack:///./src/components/UI/Loader.vue?fa85","webpack:///./src/components/Listings.vue","webpack:///./src/components/Listings.vue?a8aa","webpack:///./src/components/Listings.vue?4e1a","webpack:///./src/components/Listings.vue?04ec"],"names":["render","_vm","this","_c","_self","_setupProxy","directives","name","rawName","value","loading","expression","staticClass","staticRenderFns","Loader","Vue","__decorate","Prop","Component","component","attrs","listing","Id","class","Images","length","showInspectionTime","_v","_s","inspectionTime","Status","InspectionTimes","_m","MethodOfSale","formattedDateAvailable","isNew","Features","IsPetFriendly","_e","Address","DisplayAddress","formattedAddressLine1","formattedAddressLine2","HiddenAddress","Price","Bedrooms","Bathrooms","Parking","Total","openHomeRelative","ListingCard","newThreshold","Date","getTime","CreateDate","parts","UnitNumber","push","StreetNumber","join","Suburb","State","PostCode","DateAvailable","now","dateAvailable","getDate","getMonth","getFullYear","toString","substr","nextOpenHome","StartDateInfo","IsToday","IsTomorrow","Time","LongName","EndDateInfo","handleIREClicked","API","Listings","GetInspectRealEstateData","then","ireData","window","open","Url","catch","alert","_typeof","obj","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","Array","isArray","arr2","iter","call","from","processOptions","options","callback","throttle","delay","timeout","lastState","currentArgs","arguments","undefined","throttled","state","_len","args","_key","leading","apply","concat","clearTimeout","setTimeout","_clear","deepEqual","val1","val2","VisibilityState","el","vnode","observer","frozen","createObserver","_this","destroyObserver","result","entry","once","_ref","throttleOptions","_leading","oldResult","IntersectionObserver","entries","intersectingEntry","find","e","isIntersecting","intersectionRatio","threshold","intersection","context","$nextTick","observe","disconnect","get","bind","_ref2","console","warn","_vue_visibilityState","update","_ref3","oldValue","unbind","ObserveVisibility","install","directive","plugin","version","GlobalVue","global","use","ViewBase","prolistAnalyticsService","ServiceManager","Get","ServiceType","Analytics","headService","Require","Head","updateAnalytics","evt","getAnalyticsEvent","getAnalyticsData","AnalyticsPageView","$route","path","triggerAnalyticsEvent","event","GetAll","forEach","adapter","Record","triggerCustomAnalyticsEvent","updateHead","head","Promise","meta","Update","UpdateWithStatic","View","mounted","requestAnimationFrame","AsyncView","$on","profile","FullName","Position","PROLISTPhoto","Preview","hasCurrentListings","FirstName","charAt","toLowerCase","currentListingFilter","on","$event","AgentProfile","Mixins","resolveId","id","params","updateAgent","Slugs","Resolve","resolved","Type","stripHtml","html","document","createElement","innerHTML","innerText","about","AboutAgent","substring","title","description","image","Photo","Profiles","$emit","ListingFilter","SearchLevel","WebsiteLevel","Profile","SearchGuid","Statuses","ListingStatus","Current","UnderContract","OrderByStatements","ListingOrderBy","CreateDateDesc","PageSize","AnalyticsEventObject","FromProfile","components","Masthead","listings","perRow","_l","noListingsText","infiniteScroll","more","loadMore","allowLoadMore","errored","filterUpdateDebounce","load","resolve","reject","Search","filter","data","Pages","Page","Items","Count","handleFilterParamsUpdated","default","Watch"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,M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CC,eAAK,CAAE8R,SAAS,KACjB,qCAGA/R,GADCC,eAAK,CAAE8R,SAAS,KACjB,oCAGA/R,GADCC,eAAK,CAAE8R,QAAS,wBACjB,qCAGA/R,GADCC,eAAK,CAAE8R,QAAS,KACjB,6BA0DA/R,GAFCgS,eAAM,kBACNA,eAAM,oBACP,8CAxEmBhO,EAAQ,GAT5B9D,eAAU,CACTsQ,WAAY,CACVtO,mBACApC,eAEFR,WAAY,CACV,qBAAsBoL,WAGL1G,WCnB8W,I,wBCQ/X7D,EAAY,eACd,EACAnB,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAM,E","file":"js/chunk-23a645b3.d14d4a6b.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loader\"})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\n\n@Component\nexport default class Loader extends Vue {\n @Prop()\n private readonly loading!: boolean;\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!./Loader.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!./Loader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=b15215d2&scoped=true&\"\nimport script from \"./Loader.vue?vue&type=script&lang=ts&\"\nexport * from \"./Loader.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Loader.vue?vue&type=style&index=0&id=b15215d2&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 \"b15215d2\",\n null\n \n)\n\nexport default component.exports","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!./Listings.vue?vue&type=style&index=0&id=372cd971&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Card',{staticClass:\"card--listing\",attrs:{\"href\":'/listings/' + _vm.listing.Id}},[_c('div',{staticClass:\"card__image\",class:{'card__image--placeholder': _vm.listing.Images.length == 0}},[(_vm.listing.Images.length)?_c('LazyImage',{attrs:{\"image\":_vm.listing.Images[0]}}):_c('LazyImage',{attrs:{\"image\":\"/assets/images/default/listing.jpg\"}}),(_vm.showInspectionTime)?_c('div',{staticClass:\"card__image__overlay card__image__overlay--sold\"},[_vm._v(\" \"+_vm._s(_vm.inspectionTime)+\" \")]):(_vm.listing.Status == 'Sold')?_c('div',{staticClass:\"card__image__overlay card__image__overlay--sold\"},[_vm._v(\" Sold \")]):(_vm.listing.Status == 'Under Contract')?_c('div',{staticClass:\"card__image__overlay card__image__overlay--under-contract\"},[_vm._v(\" Under Contract \")]):(_vm.listing.InspectionTimes.length)?_c('div',{staticClass:\"card__image__overlay card__image__overlay--open-home\"},[_vm._v(\" Open Home \"),_vm._m(0)]):(_vm.listing.MethodOfSale === 'Lease' && _vm.listing.Status === 'Current')?_c('div',{staticClass:\"card__image__overlay card__image__overlay--available\"},[_vm._v(\" Available \"+_vm._s(_vm.formattedDateAvailable)+\" \")]):(_vm.isNew)?_c('div',{staticClass:\"card__image__overlay card__image__overlay--new\"},[_vm._v(\" New \")]):(_vm.listing.Features.IsPetFriendly)?_c('div',{staticClass:\"card__image__overlay card__image__overlay--pet-friendy\"},[_vm._v(\" Pet Friendly \")]):_vm._e()],1),_c('div',{staticClass:\"card__body\"},[_c('div',{staticClass:\"card__body__content\"},[(_vm.listing.Address.DisplayAddress)?[_c('h4',{staticClass:\"listing-address-street\"},[_vm._v(\" \"+_vm._s(_vm.formattedAddressLine1)+\" \")]),_c('h5',{staticClass:\"listing-address-suburb\"},[_vm._v(\" \"+_vm._s(_vm.formattedAddressLine2)+\" \")])]:[_c('h4',{staticClass:\"listing-address-street\"},[_vm._v(\" \"+_vm._s(_vm.listing.Address.HiddenAddress)+\" \")])],_c('h3',{staticClass:\"listing-price\"},[_vm._v(\" \"+_vm._s(_vm.listing.Price.Price)+\" \")]),_c('div',{staticClass:\"listing-features\"},[_c('ul',[(_vm.listing.Features.Bedrooms > 0)?_c('li',[_vm._v(\" \"+_vm._s(_vm.listing.Features.Bedrooms)+\" \"),_c('img',{staticClass:\"listing-feature__icon\",attrs:{\"src\":\"/assets/images/icons/bed.svg\"}})]):_vm._e(),(_vm.listing.Features.Bathrooms > 0)?_c('li',[_vm._v(\" \"+_vm._s(_vm.listing.Features.Bathrooms)+\" \"),_c('img',{staticClass:\"listing-feature__icon\",attrs:{\"src\":\"/assets/images/icons/bath.svg\"}})]):_vm._e(),(_vm.listing.Features.Parking.Total > 0)?_c('li',[_vm._v(\" \"+_vm._s(_vm.listing.Features.Parking.Total)+\" \"),_c('img',{staticClass:\"listing-feature__icon\",attrs:{\"src\":\"/assets/images/icons/car.svg\"}})]):_vm._e()])])],2)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('span',[_vm._v(_vm._s(_vm.openHomeRelative))])\n}]\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { Listing } from 'client-website-ts-library/types/Listing';\nimport { API } from 'client-website-ts-library/services';\n\n@Component\nexport default class ListingCard extends Vue {\n @Prop()\n private readonly listing!: Listing;\n\n @Prop()\n private readonly showInspectionTime!: boolean;\n\n get isCurrent() {\n return this.listing.Status === 'Current' || this.listing.Status === 'Under Contract';\n }\n\n get isNew(): boolean {\n const newThreshold = (new Date().getTime()) - 86400 * 7 * 1000;\n\n return new Date(this.listing.CreateDate).getTime() >= newThreshold;\n }\n\n get formattedAddressLine1(): string {\n const parts = [];\n\n if (this.listing.Address.UnitNumber) {\n parts.push(`${this.listing.Address.UnitNumber}/${this.listing.Address.StreetNumber}`);\n } else {\n parts.push(this.listing.Address.StreetNumber);\n }\n\n parts.push(this.listing.Address.Address);\n\n return parts.join(' ');\n }\n\n get formattedAddressLine2(): string {\n return `${this.listing.Address.Suburb}, ${this.listing.Address.State} ${this.listing.Address.PostCode}`;\n }\n\n get formattedDateAvailable(): string {\n if (!this.listing.DateAvailable) return 'now';\n\n const now = new Date();\n const dateAvailable = new Date(this.listing.DateAvailable);\n\n if (dateAvailable <= now) return 'now';\n\n return `${dateAvailable.getDate()}/${(dateAvailable.getMonth() + 1)}/${dateAvailable.getFullYear().toString().substr(2, 2)}`;\n }\n\n get openHomeRelative(): string {\n const nextOpenHome = this.listing.InspectionTimes[0].StartDateInfo;\n\n if (nextOpenHome.IsToday) return 'Today';\n if (nextOpenHome.IsTomorrow) return 'Tomorrow';\n\n return '';\n }\n\n get inspectionTime(): string {\n if (this.listing.InspectionTimes.length === 0) return '';\n\n return `${this.listing.InspectionTimes[0].StartDateInfo.Time.LongName} - ${this.listing.InspectionTimes[0].EndDateInfo.Time.LongName}`;\n }\n\n handleIREClicked() {\n API.Listings.GetInspectRealEstateData(this.listing.Id).then((ireData) => {\n window.open(ireData.Url, '_blank');\n }).catch(() => {\n alert('There was an error processing your request. Please try again later.');\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!./ListingCard.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!./ListingCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ListingCard.vue?vue&type=template&id=3c3542cc&scoped=true&\"\nimport script from \"./ListingCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./ListingCard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ListingCard.vue?vue&type=style&index=0&id=3c3542cc&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 \"3c3542cc\",\n null\n \n)\n\nexport default component.exports","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!./ListingCard.vue?vue&type=style&index=0&id=3c3542cc&prod&scoped=true&lang=css&\"","function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction processOptions(value) {\n var options;\n\n if (typeof value === 'function') {\n // Simple options (callback-only)\n options = {\n callback: value\n };\n } else {\n // Options object\n options = value;\n }\n\n return options;\n}\nfunction throttle(callback, delay) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var timeout;\n var lastState;\n var currentArgs;\n\n var throttled = function throttled(state) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n currentArgs = args;\n if (timeout && state === lastState) return;\n var leading = options.leading;\n\n if (typeof leading === 'function') {\n leading = leading(state, lastState);\n }\n\n if ((!timeout || state !== lastState) && leading) {\n callback.apply(void 0, [state].concat(_toConsumableArray(currentArgs)));\n }\n\n lastState = state;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n callback.apply(void 0, [state].concat(_toConsumableArray(currentArgs)));\n timeout = 0;\n }, delay);\n };\n\n throttled._clear = function () {\n clearTimeout(timeout);\n timeout = null;\n };\n\n return throttled;\n}\nfunction deepEqual(val1, val2) {\n if (val1 === val2) return true;\n\n if (_typeof(val1) === 'object') {\n for (var key in val1) {\n if (!deepEqual(val1[key], val2[key])) {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n}\n\nvar VisibilityState =\n/*#__PURE__*/\nfunction () {\n function VisibilityState(el, options, vnode) {\n _classCallCheck(this, VisibilityState);\n\n this.el = el;\n this.observer = null;\n this.frozen = false;\n this.createObserver(options, vnode);\n }\n\n _createClass(VisibilityState, [{\n key: \"createObserver\",\n value: function createObserver(options, vnode) {\n var _this = this;\n\n if (this.observer) {\n this.destroyObserver();\n }\n\n if (this.frozen) return;\n this.options = processOptions(options);\n\n this.callback = function (result, entry) {\n _this.options.callback(result, entry);\n\n if (result && _this.options.once) {\n _this.frozen = true;\n\n _this.destroyObserver();\n }\n }; // Throttle\n\n\n if (this.callback && this.options.throttle) {\n var _ref = this.options.throttleOptions || {},\n _leading = _ref.leading;\n\n this.callback = throttle(this.callback, this.options.throttle, {\n leading: function leading(state) {\n return _leading === 'both' || _leading === 'visible' && state || _leading === 'hidden' && !state;\n }\n });\n }\n\n this.oldResult = undefined;\n this.observer = new IntersectionObserver(function (entries) {\n var entry = entries[0];\n\n if (entries.length > 1) {\n var intersectingEntry = entries.find(function (e) {\n return e.isIntersecting;\n });\n\n if (intersectingEntry) {\n entry = intersectingEntry;\n }\n }\n\n if (_this.callback) {\n // Use isIntersecting if possible because browsers can report isIntersecting as true, but intersectionRatio as 0, when something very slowly enters the viewport.\n var result = entry.isIntersecting && entry.intersectionRatio >= _this.threshold;\n if (result === _this.oldResult) return;\n _this.oldResult = result;\n\n _this.callback(result, entry);\n }\n }, this.options.intersection); // Wait for the element to be in document\n\n vnode.context.$nextTick(function () {\n if (_this.observer) {\n _this.observer.observe(_this.el);\n }\n });\n }\n }, {\n key: \"destroyObserver\",\n value: function destroyObserver() {\n if (this.observer) {\n this.observer.disconnect();\n this.observer = null;\n } // Cancel throttled call\n\n\n if (this.callback && this.callback._clear) {\n this.callback._clear();\n\n this.callback = null;\n }\n }\n }, {\n key: \"threshold\",\n get: function get() {\n return this.options.intersection && this.options.intersection.threshold || 0;\n }\n }]);\n\n return VisibilityState;\n}();\n\nfunction bind(el, _ref2, vnode) {\n var value = _ref2.value;\n if (!value) return;\n\n if (typeof IntersectionObserver === 'undefined') {\n console.warn('[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill');\n } else {\n var state = new VisibilityState(el, value, vnode);\n el._vue_visibilityState = state;\n }\n}\n\nfunction update(el, _ref3, vnode) {\n var value = _ref3.value,\n oldValue = _ref3.oldValue;\n if (deepEqual(value, oldValue)) return;\n var state = el._vue_visibilityState;\n\n if (!value) {\n unbind(el);\n return;\n }\n\n if (state) {\n state.createObserver(value, vnode);\n } else {\n bind(el, {\n value: value\n }, vnode);\n }\n}\n\nfunction unbind(el) {\n var state = el._vue_visibilityState;\n\n if (state) {\n state.destroyObserver();\n delete el._vue_visibilityState;\n }\n}\n\nvar ObserveVisibility = {\n bind: bind,\n update: update,\n unbind: unbind\n};\n\nfunction install(Vue) {\n Vue.directive('observe-visibility', ObserveVisibility);\n /* -- Add more components here -- */\n}\n/* -- Plugin definition & Auto-install -- */\n\n/* You shouldn't have to modify the code below */\n// Plugin\n\nvar plugin = {\n // eslint-disable-next-line no-undef\n version: \"0.4.6\",\n install: install\n};\n\nvar GlobalVue = null;\n\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\n\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\n\nexport default plugin;\nexport { ObserveVisibility, install };\n","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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Page',[(_vm.profile)?[_c('Masthead',{staticClass:\"agent-profile__masthead\",attrs:{\"image\":\"/assets/images/profile-bg.jpg\",\"relative-content\":true,\"darken\":true}},[_c('ContentContainer',{staticClass:\"agent-profile__header-wrap\"},[_c('div',{staticClass:\"agent-profile__header\"},[_c('div',{staticClass:\"agent-profile__header__details\"},[_c('h1',{staticClass:\"agent-profile__name\"},[_vm._v(_vm._s(_vm.profile.FullName))]),_c('h2',{staticClass:\"agent-profile__position\"},[_vm._v(_vm._s(_vm.profile.Position))])]),(_vm.profile.PROLISTPhoto)?_c('div',{staticClass:\"agent-profile__header__image\"},[_c('img',{staticClass:\"agent-profile__img\",attrs:{\"src\":_vm.profile.PROLISTPhoto.Preview.Url}})]):_vm._e()])])],1),(_vm.hasCurrentListings)?_c('ContentRow',[_c('ContentContainer',[_c('SectionTitle',[_vm._v(_vm._s(_vm.profile.FirstName)+_vm._s(_vm.profile.FirstName.charAt(_vm.profile.FirstName.length - 1).toLowerCase() === 's' ? '\\'' : '\\'s')+\" Listings\")]),_c('Listings',{attrs:{\"filter\":_vm.currentListingFilter},on:{\"got_listing_count\":function($event){_vm.hasCurrentListings = $event > 0}}})],1)],1):_vm._e()]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { Profile, ListingStatus, WebsiteLevel } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { AsyncView, RouteMeta } from 'client-website-ts-library/plugins';\n\nimport Masthead from '@/components/Common/Masthead.vue';\nimport Listings from '@/components/Listings.vue';\nimport { AnalyticsEventObject } from 'client-website-ts-library/services/Analytics';\n\n@Component({\n components: {\n Masthead,\n Listings,\n },\n})\nexport default class AgentProfile extends Mixins(AsyncView) {\n private profile: Profile | null = null;\n\n private currentListingFilter: ListingFilter | null = null;\n\n private hasCurrentListings = true;\n\n resolveId() {\n const { id } = this.$route.params;\n\n if (id.length === 36) {\n // If the ID is 36 long we'll treat it as a guid\n\n this.updateAgent(id);\n } else {\n API.Slugs.Resolve(id).then((resolved) => {\n if (resolved.Type === 'Profile') {\n this.updateAgent(resolved.Id);\n }\n });\n }\n }\n\n stripHtml(html: string): string {\n const el = document.createElement('div');\n\n el.innerHTML = html;\n\n return el.innerText;\n }\n\n head(): RouteMeta | null {\n if (this.profile === null) return null;\n\n let about = this.stripHtml(this.profile.AboutAgent);\n\n if (about.length > 156) {\n about = `${about.substring(0, 156)}...`;\n }\n\n return {\n title: `${this.profile.FullName}'s Listings - ${this.profile.Position}`,\n description: about,\n image: this.profile.Photo ? this.profile.Photo.Preview.Url : undefined,\n };\n }\n\n updateAgent(id: string) {\n API.Profiles.Get(id).then((profile) => {\n this.profile = profile;\n\n this.$emit('updateView');\n\n this.currentListingFilter = new ListingFilter({\n SearchLevel: WebsiteLevel.Profile,\n SearchGuid: this.profile!.Id,\n Statuses: [\n ListingStatus.Current,\n ListingStatus.UnderContract,\n ],\n OrderByStatements: [\n ListingOrderBy.CreateDateDesc,\n ],\n PageSize: 6,\n });\n });\n }\n\n mounted() {\n this.resolveId();\n }\n\n getAnalyticsData(): AnalyticsEventObject | null {\n if (this.profile === null) return null;\n\n return AnalyticsEventObject.FromProfile(this.profile);\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!./AgentProfileListings.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!./AgentProfileListings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AgentProfileListings.vue?vue&type=template&id=9da6e4b6&scoped=true&\"\nimport script from \"./AgentProfileListings.vue?vue&type=script&lang=ts&\"\nexport * from \"./AgentProfileListings.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AgentProfileListings.vue?vue&type=style&index=0&id=9da6e4b6&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 \"9da6e4b6\",\n null\n \n)\n\nexport default component.exports","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!./AgentProfileListings.vue?vue&type=style&index=0&id=9da6e4b6&prod&scoped=true&lang=css&\"","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!./Loader.vue?vue&type=style&index=0&id=b15215d2&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"listings\"},[(_vm.listings.length)?_c('Cards',{staticClass:\"cards--listings\",attrs:{\"perRow\":_vm.perRow,\"mdPerRow\":_vm.perRow}},_vm._l((_vm.listings),function(listing){return _c('ListingCard',{key:listing.Id,attrs:{\"listing\":listing}})}),1):(!_vm.loading)?_c('div',{staticClass:\"listings__no-listings\"},[_vm._v(\" \"+_vm._s(_vm.noListingsText)+\" \")]):_vm._e(),_c('Loader',{staticClass:\"listings__loader\",attrs:{\"loading\":_vm.loading}}),(_vm.infiniteScroll && _vm.more)?_c('div',{directives:[{name:\"observe-visibility\",rawName:\"v-observe-visibility\",value:({ callback: _vm.loadMore, throttle: 1000, threshold: 0.5 }),expression:\"{ callback: loadMore, throttle: 1000, threshold: 0.5 }\"}],staticClass:\"listings__visibility-checker\"}):_vm._e(),(!_vm.infiniteScroll && _vm.allowLoadMore && _vm.more)?_c('div',{staticClass:\"center-text\"},[_c('Button',{on:{\"click\":_vm.loadMore}},[_vm._v(\"Load More\")])],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { ObserveVisibility } from 'vue-observe-visibility';\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\nimport { ListingFilter } from 'client-website-ts-library/filters/ListingFilter';\nimport { Listing } from 'client-website-ts-library/types/Listing';\nimport { API } from 'client-website-ts-library/services';\n\nimport ListingCard from './ListingCard.vue';\nimport Loader from './UI/Loader.vue';\n\n@Component({\n components: {\n ListingCard,\n Loader,\n },\n directives: {\n 'observe-visibility': ObserveVisibility,\n },\n})\nexport default class Listings extends Vue {\n @Prop()\n private readonly filter!: ListingFilter;\n\n @Prop({ default: true })\n private readonly infiniteScroll!: boolean;\n\n @Prop({ default: true })\n private readonly allowLoadMore!: boolean;\n\n @Prop({ default: 'No listings found.' })\n private readonly noListingsText!: string;\n\n @Prop({ default: 3 })\n private readonly perRow!: number;\n\n private loading = false;\n\n private errored = false;\n\n private listings: Listing[] = [];\n\n private more = true;\n\n load(): Promise {\n return new Promise((resolve, reject) => {\n if (this.loading || !this.more) resolve(false);\n\n this.loading = true;\n\n API.Listings.Search(this.filter)\n .then((data) => {\n this.more = data.Pages > this.filter.Page;\n\n this.listings.push(...data.Items);\n\n resolve();\n\n this.$emit('got_listing_count', data.Count);\n })\n .catch(reject);\n });\n }\n\n loadMore(): void {\n if (this.loading) return;\n\n this.filter.Page += 1;\n\n this.load().then(() => {\n this.loading = false;\n });\n }\n\n update(): void {\n this.listings = [];\n this.more = true;\n this.loading = false;\n\n this.load().then(() => {\n this.loading = false;\n });\n }\n\n mounted() {\n this.update();\n }\n\n private filterUpdateDebounce: number | undefined = undefined;\n\n @Watch('filter.Suburbs')\n @Watch('filter.SearchId')\n handleFilterParamsUpdated(): void {\n this.loading = true;\n this.listings = [];\n\n clearTimeout(this.filterUpdateDebounce);\n\n this.filterUpdateDebounce = window.setTimeout(() => {\n this.loading = false;\n\n this.update();\n }, 1000);\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!./Listings.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!./Listings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Listings.vue?vue&type=template&id=372cd971&scoped=true&\"\nimport script from \"./Listings.vue?vue&type=script&lang=ts&\"\nexport * from \"./Listings.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Listings.vue?vue&type=style&index=0&id=372cd971&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 \"372cd971\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}