{"version":3,"sources":["webpack:///./src/views/AgentProfileListingsSold.vue?7022","webpack:///./src/views/AgentProfileListingsSold.vue","webpack:///./src/views/AgentProfileListingsSold.vue?1cec","webpack:///./src/views/AgentProfileListingsSold.vue?3d83","webpack:///./src/views/AgentProfileListingsSold.vue?e76b"],"names":["render","_vm","this","_c","_self","_setupProxy","profile","staticClass","attrs","_v","_s","FullName","MobilePhone","_e","OfficePhone","Email","PROLISTPhoto","Preview","Url","hasCurrentListings","FirstName","charAt","length","toLowerCase","currentListingFilter","on","$event","staticRenderFns","AgentProfileSoldListings","Mixins","AsyncView","constructor","resolveId","id","$route","params","updateAgent","API","Slugs","Resolve","then","resolved","Type","Id","stripHtml","html","el","document","createElement","innerHTML","innerText","head","about","AboutAgent","substring","title","Position","description","image","Photo","undefined","Profiles","Get","$emit","ListingFilter","SearchLevel","WebsiteLevel","Profile","SearchGuid","Statuses","ListingStatus","Sold","OrderByStatements","ListingOrderBy","SoldDateDesc","PageSize","mounted","getAnalyticsData","AnalyticsEventObject","FromProfile","__decorate","Component","components","Masthead","Listings","component"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,OAAO,CAAEF,EAAIK,QAAS,CAACH,EAAG,WAAW,CAACI,YAAY,0BAA0BC,MAAM,CAAC,MAAQ,gCAAgC,oBAAmB,EAAK,QAAS,IAAO,CAACL,EAAG,mBAAmB,CAACI,YAAY,8BAA8B,CAACJ,EAAG,MAAM,CAACI,YAAY,yBAAyB,CAACJ,EAAG,MAAM,CAACI,YAAY,kCAAkC,CAACJ,EAAG,KAAK,CAACI,YAAY,6BAA6B,CAACN,EAAIQ,GAAG,WAAWN,EAAG,KAAK,CAACI,YAAY,uBAAuB,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIK,QAAQK,aAAaR,EAAG,KAAK,CAACI,YAAY,2BAA2B,CAACN,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,OAAcC,MAEhBC,kBAAmB,CACjBC,OAAeC,cAEjBC,SAAU,MAKhBC,UACE1E,KAAK8B,YAGP6C,mBACE,OAAqB,OAAjB3E,KAAKI,QAAyB,KAE3BwE,OAAqBC,YAAY7E,KAAKI,WA1E5BsB,EAAwBoD,wBAAA,CAN5CC,eAAU,CACTC,WAAY,CACVC,gBACAC,oBAGiBxD,WCjB6X,I,wBCQ9YyD,EAAY,eACd,EACArF,EACA2B,GACA,EACA,KACA,WACA,MAIa,aAAA0D,E","file":"js/chunk-81ee17bc.6366aa5d.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!./AgentProfileListingsSold.vue?vue&type=style&index=0&id=080aa63a&prod&scoped=true&lang=css\"","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__page-title\"},[_vm._v(\"About\")]),_c('h1',{staticClass:\"agent-profile__name\"},[_vm._v(_vm._s(_vm.profile.FullName))]),_c('h2',{staticClass:\"agent-profile__position\"},[_vm._v(\" Fully Licensed Real Estate Agent (License #4118224)\"),_c('br'),_vm._v(\" Principle of Cairns Property Office Redlynch \")]),_c('ul',{staticClass:\"agent-profile__contact\"},[(_vm.profile.MobilePhone)?_c('li',{staticClass:\"contact-method\"},[_c('a',{attrs:{\"href\":'tel:' + _vm.profile.MobilePhone}},[_c('span',{staticClass:\"contact-method__label\"},[_vm._v(\"M.\")]),_vm._v(\" \"+_vm._s(_vm.profile.MobilePhone)+\" \")])]):_vm._e(),(_vm.profile.OfficePhone)?_c('li',{staticClass:\"contact-method\"},[_c('a',{attrs:{\"href\":'tel:' + _vm.profile.OfficePhone}},[_c('span',{staticClass:\"contact-method__label\"},[_vm._v(\"P.\")]),_vm._v(\" \"+_vm._s(_vm.profile.OfficePhone)+\" \")])]):_vm._e(),(_vm.profile.Email)?_c('li',{staticClass:\"contact-method\"},[_c('a',{attrs:{\"href\":'mailto:' + _vm.profile.Email}},[_c('span',{staticClass:\"contact-method__label\"},[_vm._v(\"E.\")]),_vm._v(\" \"+_vm._s(_vm.profile.Email)+\" \")])]):_vm._e()])]),(_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')+\" Sold 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 }","\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { Profile, ListingStatus, WebsiteLevel } from 'client-website-ts-library/types';\r\nimport { API } from 'client-website-ts-library/services';\r\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\r\nimport { AsyncView, RouteMeta } from 'client-website-ts-library/plugins';\r\n\r\nimport Masthead from '@/components/Common/Masthead.vue';\r\nimport Listings from '@/components/Listings.vue';\r\nimport { AnalyticsEventObject } from 'client-website-ts-library/services/Analytics';\r\n\r\n@Component({\r\n components: {\r\n Masthead,\r\n Listings,\r\n },\r\n})\r\nexport default class AgentProfileSoldListings extends Mixins(AsyncView) {\r\n private profile: Profile | null = null;\r\n\r\n private currentListingFilter: ListingFilter | null = null;\r\n\r\n private hasCurrentListings = true;\r\n\r\n resolveId() {\r\n const { id } = this.$route.params;\r\n\r\n if (id.length === 36) {\r\n // If the ID is 36 long we'll treat it as a guid\r\n\r\n this.updateAgent(id);\r\n } else {\r\n API.Slugs.Resolve(id).then((resolved) => {\r\n if (resolved.Type === 'Profile') {\r\n this.updateAgent(resolved.Id);\r\n }\r\n });\r\n }\r\n }\r\n\r\n stripHtml(html: string): string {\r\n const el = document.createElement('div');\r\n\r\n el.innerHTML = html;\r\n\r\n return el.innerText;\r\n }\r\n\r\n head(): RouteMeta | null {\r\n if (this.profile === null) return null;\r\n\r\n let about = this.stripHtml(this.profile.AboutAgent);\r\n\r\n if (about.length > 156) {\r\n about = `${about.substring(0, 156)}...`;\r\n }\r\n\r\n return {\r\n title: `${this.profile.FullName}'s Sold Listings - ${this.profile.Position}`,\r\n description: about,\r\n image: this.profile.Photo ? this.profile.Photo.Preview.Url : undefined,\r\n };\r\n }\r\n\r\n updateAgent(id: string) {\r\n API.Profiles.Get(id).then((profile) => {\r\n this.profile = profile;\r\n\r\n this.$emit('updateView');\r\n\r\n this.currentListingFilter = new ListingFilter({\r\n SearchLevel: WebsiteLevel.Profile,\r\n SearchGuid: this.profile!.Id,\r\n Statuses: [\r\n ListingStatus.Sold,\r\n ],\r\n OrderByStatements: [\r\n ListingOrderBy.SoldDateDesc,\r\n ],\r\n PageSize: 9,\r\n });\r\n });\r\n }\r\n\r\n mounted() {\r\n this.resolveId();\r\n }\r\n\r\n getAnalyticsData(): AnalyticsEventObject | null {\r\n if (this.profile === null) return null;\r\n\r\n return AnalyticsEventObject.FromProfile(this.profile);\r\n }\r\n}\r\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!./AgentProfileListingsSold.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!./AgentProfileListingsSold.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AgentProfileListingsSold.vue?vue&type=template&id=080aa63a&scoped=true\"\nimport script from \"./AgentProfileListingsSold.vue?vue&type=script&lang=ts\"\nexport * from \"./AgentProfileListingsSold.vue?vue&type=script&lang=ts\"\nimport style0 from \"./AgentProfileListingsSold.vue?vue&type=style&index=0&id=080aa63a&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 \"080aa63a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}