{"version":3,"sources":["webpack:///./src/components/Testimonials/TestimonialItem.vue?8e07","webpack:///./src/views/AgentProfile.vue?c179","webpack:///./src/views/AgentProfile.vue","webpack:///./src/components/Testimonials/TestimonialList.vue","webpack:///./src/components/Testimonials/TestimonialItem.vue","webpack:///./src/components/Testimonials/TestimonialItem.vue?4779","webpack:///./src/components/Testimonials/TestimonialItem.vue?1b92","webpack:///./src/components/Testimonials/TestimonialItem.vue?cab4","webpack:///./src/components/Testimonials/TestimonialList.vue?4413","webpack:///./src/components/Testimonials/TestimonialList.vue?a544","webpack:///./src/components/Testimonials/TestimonialList.vue?16c3","webpack:///./src/views/AgentProfile.vue?fd8e","webpack:///./src/views/AgentProfile.vue?8444","webpack:///./src/views/AgentProfile.vue?310c"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","profile","attrs","_v","_s","FullName","MobilePhone","_e","OfficePhone","Email","PROLISTPhoto","Preview","Url","AboutAgent","length","FirstName","hasCurrentListings","charAt","toLowerCase","currentListingFilter","on","$event","staticStyle","Id","hasSoldListings","soldListingFilter","hasTestimonials","testimonialFilter","staticRenderFns","loading","testimonials","_l","testimonial","key","Description","ClientName","Suburb","TestimonialItem","Vue","__decorate","Prop","Component","component","TestimonialList","constructor","mounted","API","Testimonials","Search","filter","then","$emit","required","components","AgentProfile","Mixins","AsyncView","resolveId","id","$route","params","updateAgent","Slugs","Resolve","resolved","Type","stripHtml","html","el","document","createElement","innerHTML","innerText","head","about","substring","title","Position","description","image","Photo","undefined","Profiles","Get","ListingFilter","SearchLevel","WebsiteLevel","Profile","SearchGuid","Statuses","ListingStatus","Current","UnderContract","OrderByStatements","ListingOrderBy","CreateDateDesc","PageSize","Sold","Leased","LastUpdatedDateDesc","TestimonialFilter","TestimonialOrderBy","getAnalyticsData","AnalyticsEventObject","FromProfile","Masthead","Listings","Loader"],"mappings":"gHAAA,W,2DCAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD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AC1BC,WAAY5F,KAAKK,QAASsB,GAC1BkE,SAAU,CACRC,OAAcO,KACdP,OAAcQ,QAEhBL,kBAAmB,CACjBC,OAAeK,qBAEjBH,SAAU,IAGZpG,KAAK+B,kBAAoB,IAAIyE,OAAkB,CAC7Cf,YAAaC,OAAaC,QAC1BC,WAAY5F,KAAKK,QAASsB,GAC1BsE,kBAAmB,CACjBQ,OAAmBN,oBAM3BlD,UACEjD,KAAK6D,YAGP6C,mBACE,OAAqB,OAAjB1G,KAAKK,QAAyB,KAE3BsG,OAAqBC,YAAY5G,KAAKK,WAvG5BqD,EAAYf,EAAA,CARhCE,eAAU,CACTY,WAAY,CACVoD,gBACAC,gBACA/D,kBACAgE,kBAGiBrD,WCtBiX,ICQlY,G,UAAY,eACd,EACA5D,EACAkC,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-1b22f03e.96064189.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!./TestimonialItem.vue?vue&type=style&index=0&id=11bc2e46&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!./AgentProfile.vue?vue&type=style&index=0&id=c271aa14&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Page',{staticClass:\"page--agent-profile\"},[(_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.profile.AboutAgent.length > 0)?_c('ContentRow',[_c('ContentContainer',[_c('SectionTitle',[_vm._v(\"About \"+_vm._s(_vm.profile.FirstName))]),_c('RichText',{attrs:{\"content\":_vm.profile.AboutAgent}})],1)],1):_vm._e(),(_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('Deferrable',{attrs:{\"delay\":\"50\"}},[_c('div',[_c('Listings',{attrs:{\"filter\":_vm.currentListingFilter,\"infinite-scroll\":false},on:{\"got_listing_count\":function($event){_vm.hasCurrentListings = $event > 0}}}),_c('div',{staticClass:\"center-text\",staticStyle:{\"margin-top\":\"var(--gutter)\"}},[_c('LinkButton',{attrs:{\"href\":'/profiles/' + _vm.profile.Id + '/properties'}},[_vm._v(\"View More\")])],1)],1)])],1)],1):_vm._e(),(_vm.hasSoldListings)?_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')+\" Recently Sold & Leased Listings\")]),_c('Deferrable',{attrs:{\"delay\":\"50\"}},[_c('div',[_c('Listings',{attrs:{\"filter\":_vm.soldListingFilter,\"infinite-scroll\":false},on:{\"got_listing_count\":function($event){_vm.hasSoldListings = $event > 0}}}),_c('div',{staticClass:\"center-text\",staticStyle:{\"margin-top\":\"var(--gutter)\"}},[_c('LinkButton',{attrs:{\"href\":'/profiles/' + _vm.profile.Id + '/properties/sold'}},[_vm._v(\"View More\")])],1)],1)])],1)],1):_vm._e(),(_vm.hasTestimonials)?_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')+\" Testimonials\")]),_c('Deferrable',{attrs:{\"delay\":\"50\"}},[_c('TestimonialList',{attrs:{\"filter\":_vm.testimonialFilter},on:{\"got_testimonial_count\":function($event){_vm.hasTestimonials = $event > 0}}})],1)],1)],1):_vm._e()]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"testimonial-list\"},[(_vm.loading)?_c('Loader',{attrs:{\"loading\":\"true\"}}):(_vm.testimonials)?_vm._l((_vm.testimonials),function(testimonial){return _c('TestimonialItem',{key:testimonial.Id,attrs:{\"testimonial\":testimonial}})}):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('article',{staticClass:\"testimonial\"},[_c('blockquote',[_c('RichText',{staticClass:\"testimonial__content\",attrs:{\"content\":_vm.testimonial.Description}})],1),_c('div',{staticClass:\"testimonial__author\"},[_vm._v(_vm._s(_vm.testimonial.ClientName)+_vm._s(_vm.testimonial.Suburb ? `, ${_vm.testimonial.Suburb}` : ''))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\nimport { Testimonial } from 'client-website-ts-library/types';\r\n\r\n@Component\r\nexport default class TestimonialItem extends Vue {\r\n @Prop()\r\n private readonly testimonial!: Testimonial;\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!./TestimonialItem.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!./TestimonialItem.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./TestimonialItem.vue?vue&type=template&id=11bc2e46&scoped=true\"\nimport script from \"./TestimonialItem.vue?vue&type=script&lang=ts\"\nexport * from \"./TestimonialItem.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TestimonialItem.vue?vue&type=style&index=0&id=11bc2e46&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 \"11bc2e46\",\n null\n \n)\n\nexport default component.exports","\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\nimport { TestimonialFilter } from 'client-website-ts-library/filters';\r\nimport { Testimonial } from 'client-website-ts-library/types';\r\nimport { API } from 'client-website-ts-library/services';\r\n\r\nimport TestimonialItem from './TestimonialItem.vue';\r\n\r\n@Component({\r\n components: {\r\n TestimonialItem,\r\n },\r\n})\r\nexport default class TestimonialList extends Vue {\r\n @Prop({ required: true })\r\n private readonly filter!: TestimonialFilter;\r\n\r\n private testimonials: Testimonial[] | null = null;\r\n\r\n private loading = true;\r\n\r\n mounted() {\r\n API.Testimonials.Search(this.filter).then((testimonials) => {\r\n this.testimonials = testimonials;\r\n this.loading = false;\r\n\r\n this.$emit('got_testimonial_count', testimonials.length);\r\n });\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!./TestimonialList.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!./TestimonialList.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./TestimonialList.vue?vue&type=template&id=13ffdb54&scoped=true\"\nimport script from \"./TestimonialList.vue?vue&type=script&lang=ts\"\nexport * from \"./TestimonialList.vue?vue&type=script&lang=ts\"\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 \"13ffdb54\",\n null\n \n)\n\nexport default component.exports","\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, TestimonialFilter, TestimonialOrderBy } 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 TestimonialList from '@/components/Testimonials/TestimonialList.vue';\r\nimport Loader from '@/components/UI/Loader.vue';\r\n\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 TestimonialList,\r\n Loader,\r\n },\r\n})\r\nexport default class AgentProfile extends Mixins(AsyncView) {\r\n private profile: Profile | null = null;\r\n\r\n private currentListingFilter: ListingFilter | null = null;\r\n\r\n private soldListingFilter: ListingFilter | null = null;\r\n\r\n private testimonialFilter: TestimonialFilter | null = null;\r\n\r\n private hasSoldListings = true;\r\n\r\n private hasCurrentListings = true;\r\n\r\n private hasTestimonials = 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 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} - ${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.Current,\r\n ListingStatus.UnderContract,\r\n ],\r\n OrderByStatements: [\r\n ListingOrderBy.CreateDateDesc,\r\n ],\r\n PageSize: 6,\r\n });\r\n\r\n this.soldListingFilter = new ListingFilter({\r\n SearchLevel: WebsiteLevel.Profile,\r\n SearchGuid: this.profile!.Id,\r\n Statuses: [\r\n ListingStatus.Sold,\r\n ListingStatus.Leased,\r\n ],\r\n OrderByStatements: [\r\n ListingOrderBy.LastUpdatedDateDesc,\r\n ],\r\n PageSize: 6,\r\n });\r\n\r\n this.testimonialFilter = new TestimonialFilter({\r\n SearchLevel: WebsiteLevel.Profile,\r\n SearchGuid: this.profile!.Id,\r\n OrderByStatements: [\r\n TestimonialOrderBy.CreateDateDesc,\r\n ],\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!./AgentProfile.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!./AgentProfile.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AgentProfile.vue?vue&type=template&id=c271aa14&scoped=true\"\nimport script from \"./AgentProfile.vue?vue&type=script&lang=ts\"\nexport * from \"./AgentProfile.vue?vue&type=script&lang=ts\"\nimport style0 from \"./AgentProfile.vue?vue&type=style&index=0&id=c271aa14&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 \"c271aa14\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}