{"version":3,"sources":["webpack:///./src/views/AgentProfile.vue?0573","webpack:///./src/components/Testimonials/TestimonialItem.vue?2d49","webpack:///./src/views/AgentProfile.vue?41ba","webpack:///./src/components/Testimonials/TestimonialList.vue?a0ee","webpack:///./src/components/Testimonials/TestimonialItem.vue?e900","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","MobilePhone","_e","OfficePhone","Email","PROLISTPhoto","Preview","Url","AboutAgent","length","FirstName","charAt","toLowerCase","currentListingFilter","on","$event","hasCurrentListings","staticStyle","Id","soldListingFilter","hasSoldListings","staticRenderFns","_l","testimonial","key","Description","ClientName","Suburb","component","testimonials","loading","Testimonials","Search","filter","then","$emit","required","components","TestimonialItem","testimonialFilter","hasTestimonials","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":"kHAAA,W,sFCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,YAAY,uBAAuB,CAAEN,EAAW,QAAE,CAACI,EAAG,WAAW,CAACE,YAAY,0BA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AAM9C,OAAS,MACjB8C,EAAWA,EAAME,UAAU,EAAG,KAAtB,OAGH,CACLC,MAAO,GAAGrE,KAAKS,QAAQC,cAAcV,KAAKS,QAAQE,WAClD2D,YAAaJ,EACbK,MAAOvE,KAAKS,QAAQ+D,MAAQxE,KAAKS,QAAQ+D,MAAMvD,QAAQC,SAAMuD,GAIjE,YAAYrB,GACV,OAAIsB,SAASC,IAAIvB,GAAIP,KAAMpC,IACzBT,KAAKS,QAAUA,EAEfT,KAAK8C,MAAM,cAEX9C,KAAKwB,qBAAuB,IAAI,OAAc,CAC5CoD,YAAa,OAAaC,QAC1BC,WAAY9E,KAAKS,QAASoB,GAC1BkD,SAAU,CACR,OAAcC,QACd,OAAcC,eAEhBC,kBAAmB,CACjB,OAAeC,gBAEjBC,SAAU,IAGZpF,KAAK8B,kBAAoB,IAAI,OAAc,CACzC8C,YAAa,OAAaC,QAC1BC,WAAY9E,KAAKS,QAASoB,GAC1BkD,SAAU,CACR,OAAcM,KACd,OAAcC,QAEhBJ,kBAAmB,CACjB,OAAeK,qBAEjBH,SAAU,IAGZpF,KAAKkD,kBAAoB,IAAI,OAAkB,CAC7C0B,YAAa,OAAaC,QAC1BC,WAAY9E,KAAKS,QAASoB,GAC1BqD,kBAAmB,CACjB,OAAmBC,oBAM3B,UACEnF,KAAKwF,YAGP,mBACE,OAAqB,OAAjBxF,KAAKS,QAAyB,KAE3BgF,EAAA,KAAqBC,YAAY1F,KAAKS,WAvG5B,EAAY,gBARhC,eAAU,CACTuC,WAAY,CACV2C,WAAA,KACAC,WAAA,KACAC,gBAAA,EACAC,SAAA,SAGiB,WC9GkX,ICQnY,G,UAAY,eACd,EACAhG,EACAkC,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-6d9d54ab.6ce34a7b.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=020a9134&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',{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(_vm._s(_vm.profile.Position))]),_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._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\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 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=020a9134&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=020a9134&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 \"020a9134\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}