{"version":3,"sources":["webpack:///./src/components/UI/Loader.vue?cc1a","webpack:///./src/components/UI/Loader.vue?4e9d","webpack:///./src/components/UI/Loader.vue?05d4","webpack:///./src/components/UI/Loader.vue?d4ac","webpack:///./src/components/ListingCard.vue?57f5","webpack:///./src/components/ListingCard.vue?a542","webpack:///./src/components/ListingCard.vue?1f21","webpack:///./src/components/ListingCard.vue?975a","webpack:///./src/components/UI/Loader.vue?b05e","webpack:///./node_modules/vue-observe-visibility/dist/vue-observe-visibility.esm.js","webpack:///./src/components/ListingCard.vue?0cdd","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts","webpack:///./src/components/Listings.vue?88c3","webpack:///./src/components/Listings.vue?9e60","webpack:///./src/components/Listings.vue?5b1e","webpack:///./src/components/Listings.vue?c557","webpack:///./src/components/Listings.vue?3e60"],"names":["render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","expression","staticClass","staticRenderFns","component","attrs","listing","Id","class","Images","length","_e","Status","_v","showInspectionTime","InspectionTimes","_m","MethodOfSale","_s","formattedDateAvailable","Address","formattedAddressLine1","formattedAddressLine2","HiddenAddress","Header","Price","Features","Bedrooms","Bathrooms","Parking","Total","getInspectionTime","openHomeRelative","newThreshold","Date","getTime","CreateDate","parts","UnitNumber","push","StreetNumber","join","Suburb","State","PostCode","DateAvailable","now","dateAvailable","getDate","getMonth","getFullYear","toString","substr","nextOpenHome","StartDateInfo","IsToday","IsTomorrow","inspectionTime","find","it","DayOfMonth","Month","Time","LongName","EndDateInfo","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","e","isIntersecting","intersectionRatio","threshold","intersection","context","$nextTick","observe","disconnect","get","bind","_ref2","console","warn","_vue_visibilityState","update","_ref3","oldValue","unbind","ObserveVisibility","install","Vue","directive","plugin","version","GlobalVue","global","use","prolistAnalyticsService","ServiceManager","Get","Analytics","headService","Require","Head","evt","getAnalyticsEvent","getAnalyticsData","$route","path","triggerAnalyticsEvent","event","GetAll","forEach","adapter","Record","head","Promise","meta","Update","UpdateWithStatic","View","requestAnimationFrame","updateHead","updateAnalytics","AsyncView","$on","listings","_l","loading","domProps","noListingsText","infiniteScroll","more","loadMore","allowLoadMore","on","errored","filterUpdateDebounce","resolve","reject","Search","filter","data","Pages","Page","Items","$emit","Count","load","default","components","ListingCard","Loader"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOT,EAAW,QAAEU,WAAW,YAAYC,YAAY,YACvMC,EAAkB,G,wBCOtB,IAAqB,EAArB,cAAoC,SAEhC,yBADC,kB,8BADgB,EAAM,yBAD1B,QACoB,WCR8X,I,wBCQ/YC,EAAY,eACd,EACAd,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAC,E,6CCnBf,IAAId,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACO,YAAY,gBAAgBG,MAAM,CAAC,KAAO,aAAed,EAAIe,QAAQC,KAAK,CAACZ,EAAG,MAAM,CAACO,YAAY,cAAcM,MAAM,CAAC,2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F,QAAQ,CAACsB,EAASC,MACvBrO,KAAK0N,SAAY1N,KAAK8N,MAAMM,GAAQ,GAExCpO,KAAK0N,SAAU,EAEf,OAAIjJ,SAAS6J,OAAOtO,KAAKuO,QACtB5J,KAAM6J,IACLxO,KAAK8N,KAAOU,EAAKC,MAAQzO,KAAKuO,OAAOG,KAErC1O,KAAKwN,SAASzK,QAAQyL,EAAKG,OAE3BP,IAEApO,KAAK4O,MAAM,oBAAqBJ,EAAKK,SAEtC7J,MAAMqJ,KAIb,WACMrO,KAAK0N,UAET1N,KAAKuO,OAAOG,MAAQ,EAEpB1O,KAAK8O,OAAOnK,KAAK,KACf3E,KAAK0N,SAAU,KAInB,SACE1N,KAAKwN,SAAW,GAChBxN,KAAK8N,MAAO,EACZ9N,KAAK0N,SAAU,EAEf1N,KAAK8O,OAAOnK,KAAK,KACf3E,KAAK0N,SAAU,IAInB,UACE1N,KAAK8K,SAOP,4BACE9K,KAAK0N,SAAU,EACf1N,KAAKwN,SAAW,GAEhBjF,aAAavI,KAAKmO,sBAElBnO,KAAKmO,qBAAuBtJ,OAAO2D,WAAW,KAC5CxI,KAAK0N,SAAU,EAEf1N,KAAK8K,UACJ,OA7EL,yBADC,kB,6BAID,yBADC,eAAK,CAAEiE,SAAS,K,qCAIjB,yBADC,eAAK,CAAEA,SAAS,K,oCAIjB,yBADC,eAAK,CAAEA,QAAS,wB,qCA2DjB,yBAFC,eAAM,kBACN,eAAM,oB,wCAYN,MAhFkB,EAAQ,yBAT5B,eAAU,CACTC,WAAY,CACVC,cAAA,KACAC,SAAA,MAEF7O,WAAY,CACV,qBAAsB,WAGL,WCtC8W,I,wBCQ/XO,EAAY,eACd,EACAd,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAC,E,2CCnBf,yBAAue,EAAG,G","file":"js/chunk-02f130b1.1a3961de.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loader\"})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-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--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-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&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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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]}}):_vm._e()],1),_c('div',{staticClass:\"card__footer\"},[(_vm.listing.Status == 'Sold')?_c('h5',[_vm._v(\"Sold\")]):(_vm.listing.Status == 'Under Contract')?_c('h5',[_vm._v(\"Under Contract\")]):(_vm.showInspectionTime && _vm.listing.InspectionTimes.length)?_c('h5',[_vm._m(0)]):(_vm.listing.InspectionTimes.length)?_c('h5',[_vm._v(\"Open Home \"),_vm._m(1)]):(_vm.listing.MethodOfSale === 'Lease' && _vm.listing.Status === 'Current')?_c('h5',[_vm._v(\"Available \"+_vm._s(_vm.formattedDateAvailable))]):(_vm.isNew)?_c('h5',[_vm._v(\"New\")]):_c('h5')]),_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('h5',{staticClass:\"listing-address-suburb\"})],_c('h3',{staticClass:\"listing-header\"},[_vm._v(\" \"+_vm._s(_vm.listing.Header)+\" \")]),_c('h3',{staticClass:\"listing-header\"},[_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)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._v(_vm._s(_vm.getInspectionTime()))])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._v(_vm._s(_vm.openHomeRelative))])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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!: string;\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 getInspectionTime(): string {\n if (this.listing.InspectionTimes.length === 0) return '';\n\n const inspectionTime = this.listing.InspectionTimes.find((it) => (it.StartDateInfo.DayOfMonth.toString() + it.StartDateInfo.Month.toString()) === this.showInspectionTime);\n\n if (!inspectionTime) return '';\n\n return `${inspectionTime.StartDateInfo.Time.LongName} - ${inspectionTime.EndDateInfo.Time.LongName}`;\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--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-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--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-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=42f2d025&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=42f2d025&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 \"42f2d025\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=style&index=0&id=b15215d2&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=style&index=0&id=b15215d2&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 mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListingCard.vue?vue&type=style&index=0&id=42f2d025&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListingCard.vue?vue&type=style&index=0&id=42f2d025&scoped=true&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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"listings\"},[(_vm.listings.length)?_c('Cards',{staticClass:\"cards--listings\"},_vm._l((_vm.listings),function(listing){return _c('ListingCard',{key:listing.Id,attrs:{\"listing\":listing}})}),1):(!_vm.loading)?_c('div',{staticClass:\"listings__no-listings\"},[_c('h2',{domProps:{\"innerHTML\":_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)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 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--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-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--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-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=1ac27ea1&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=1ac27ea1&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 \"1ac27ea1\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Listings.vue?vue&type=style&index=0&id=1ac27ea1&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Listings.vue?vue&type=style&index=0&id=1ac27ea1&scoped=true&lang=css&\""],"sourceRoot":""}