{"version":3,"sources":["webpack:///./src/views/AgentProfile.vue?adaf","webpack:///./src/components/Testimonials/TestimonialItem.vue?2d49","webpack:///./src/views/AgentProfile.vue?4fc9","webpack:///./src/components/Testimonials/TestimonialList.vue?0c52","webpack:///./src/components/Testimonials/TestimonialItem.vue?8234","webpack:///./src/components/Testimonials/TestimonialItem.vue","webpack:///./src/components/Testimonials/TestimonialItem.vue?3f95","webpack:///./src/components/Testimonials/TestimonialItem.vue?5da5","webpack:///./src/components/Testimonials/TestimonialList.vue","webpack:///./src/components/Testimonials/TestimonialList.vue?aba9","webpack:///./src/components/Testimonials/TestimonialList.vue?bc13","webpack:///./src/views/AgentProfile.vue","webpack:///./src/views/AgentProfile.vue?b8fd","webpack:///./src/views/AgentProfile.vue?dc75"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","profile","FullName","Position","PROLISTPhoto","Preview","Url","_e","AboutAgent","length","FirstName","charAt","toLowerCase","currentListingFilter","on","$event","hasCurrentListings","staticStyle","Slug","soldListingFilter","hasSoldListings","testimonialFilter","hasTestimonials","staticRenderFns","_l","testimonial","key","Id","Description","ClientName","Suburb","component","testimonials","loading","Testimonials","Search","filter","then","$emit","required","components","TestimonialItem","id","$route","params","updateAgent","Slugs","Resolve","resolved","Type","html","el","document","createElement","innerHTML","innerText","about","stripHtml","substring","title","description","image","Photo","undefined","Profiles","Get","SearchLevel","Profile","SearchGuid","Statuses","Current","UnderContract","OrderByStatements","CreateDateDesc","PageSize","Sold","Leased","LastUpdatedDateDesc","resolveId","Analytics","FromProfile","Masthead","Listings","TestimonialList","Loader"],"mappings":"gHAAA,W,oFCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAAEJ,EAAW,QAAE,CAACI,EAAG,WAAW,CAACE,YAAY,0BAA0BC,MAAM,CAAC,MAAQ,qCAAqC,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C,WAAY5E,KAAKS,QAAS0B,GAC1B0C,SAAU,CACR,OAAcM,KACd,OAAcC,QAEhBJ,kBAAmB,CACjB,OAAeK,qBAEjBH,SAAU,IAGZlF,KAAK6B,kBAAoB,IAAI,OAAkB,CAC7C6C,YAAa,OAAaC,QAC1BC,WAAY5E,KAAKS,QAAS0B,GAC1B6C,kBAAmB,CACjB,OAAmBC,oBAM3B,UACEjF,KAAKsF,YAGP,mBACE,OAAqB,OAAjBtF,KAAKS,QAAyB,KAE3B8E,EAAA,KAAqBC,YAAYxF,KAAKS,WAxG5B,EAAY,GARhC,eAAU,CACTuC,WAAY,CACVyC,WAAA,KACAC,WAAA,KACAC,gBAAA,EACAC,SAAA,SAGiB,WCzFkX,ICQnY,G,UAAY,eACd,EACA9F,EACAiC,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-4bc4bfc2.70ecfa10.js","sourcesContent":["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!./AgentProfile.vue?vue&type=style&index=0&id=d63ddd54&scoped=true&lang=css&\"","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!./TestimonialItem.vue?vue&type=style&index=0&id=11bc2e46&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[(_vm.profile)?[_c('Masthead',{staticClass:\"agent-profile__masthead\",attrs:{\"image\":\"/assets/images/photos/about-us.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),_c('ContentRow',[(_vm.profile.AboutAgent.length > 0)?_c('ContentContainer',[_c('SectionTitle',[_vm._v(\"About \"+_vm._s(_vm.profile.FirstName))]),_c('RichText',{attrs:{\"content\":_vm.profile.AboutAgent}})],1):_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('Deferrable',[_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.Slug + '/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',[_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.Slug + '/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',[_c('TestimonialList',{attrs:{\"filter\":_vm.testimonialFilter},on:{\"got_testimonial_count\":function($event){_vm.hasTestimonials = $event > 0}}})],1)],1)],1):_vm._e()]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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)) : ''))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { Testimonial } from 'client-website-ts-library/types';\n\n@Component\nexport default class TestimonialItem extends Vue {\n @Prop()\n private readonly testimonial!: Testimonial;\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!./TestimonialItem.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!./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&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","\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { TestimonialFilter } from 'client-website-ts-library/filters';\nimport { Testimonial } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\n\nimport TestimonialItem from './TestimonialItem.vue';\n\n@Component({\n components: {\n TestimonialItem,\n },\n})\nexport default class TestimonialList extends Vue {\n @Prop({ required: true })\n private readonly filter!: TestimonialFilter;\n\n private testimonials: Testimonial[] | null = null;\n\n private loading = true;\n\n mounted() {\n API.Testimonials.Search(this.filter).then((testimonials) => {\n this.testimonials = testimonials;\n this.loading = false;\n\n this.$emit('got_testimonial_count', testimonials.length);\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!./TestimonialList.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!./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","\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, 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, TestimonialFilter, TestimonialOrderBy } 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 TestimonialList from '@/components/Testimonials/TestimonialList.vue';\nimport Loader from '@/components/UI/Loader.vue';\n\nimport { AnalyticsEventObject } from 'client-website-ts-library/services/Analytics';\n\n@Component({\n components: {\n Masthead,\n Listings,\n TestimonialList,\n Loader,\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 soldListingFilter: ListingFilter | null = null;\n\n private testimonialFilter: TestimonialFilter | null = null;\n\n private hasSoldListings = true;\n\n private hasCurrentListings = true;\n\n private hasTestimonials = 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} - ${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 this.soldListingFilter = new ListingFilter({\n SearchLevel: WebsiteLevel.Profile,\n SearchGuid: this.profile!.Id,\n Statuses: [\n ListingStatus.Sold,\n ListingStatus.Leased,\n ],\n OrderByStatements: [\n ListingOrderBy.LastUpdatedDateDesc,\n ],\n PageSize: 6,\n });\n\n this.testimonialFilter = new TestimonialFilter({\n SearchLevel: WebsiteLevel.Profile,\n SearchGuid: this.profile!.Id,\n OrderByStatements: [\n TestimonialOrderBy.CreateDateDesc,\n ],\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--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!./AgentProfile.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!./AgentProfile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AgentProfile.vue?vue&type=template&id=d63ddd54&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=d63ddd54&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 \"d63ddd54\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}