{"version":3,"sources":["webpack:///./src/views/OfficeOurAgents.vue?17e6","webpack:///./src/views/OfficeOurAgents.vue","webpack:///./src/views/OfficeOurAgents.vue?8447","webpack:///./src/views/OfficeOurAgents.vue?cc1b","webpack:///./src/views/OfficeOurAgents.vue?8e2b"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","source","formats","fallback","staticClass","directors","_v","_e","agents","propertyManagers","support","staticRenderFns","profiles","id","$route","params","Slugs","Resolve","then","resolved","Type","updateProfiles","Office","Id","index","findIndex","p","DisplayType","Agent","Profiles","Get","profile","push","Franchise","Website","Settings","WebsiteId","searchLevel","Search","SearchLevel","SearchGuid","concat","filter","Principal","PropertyManager","PersonalAssistant","components","ProfileCards","Loader","Panels","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,CAAEC,OAAQ,4BAA6BC,QAAS,CAAC,OAAQC,SAAU,OAAQ,oBAAmB,EAAK,QAAS,EAAM,QAAS,KAAQL,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACM,YAAY,8BAA8B,CAAEV,EAAIW,UAAgB,OAAEP,EAAG,MAAM,CAACM,YAAY,iBAAiB,CAACN,EAAG,KAAK,CAACM,YAAY,wBAAwB,CAACV,EAAIY,GAAG,QAAQR,EAAG,MAAMJ,EAAIY,GAAG,KAAKR,EAAG,OAAO,CAACM,YAAY,mBAAmB,CAACV,EAAIY,GAAG,iBAAiBR,EAAG,aAAa,CAACE,MAAM,CAAC,MAAQ,QAAQ,CAAEN,EAAIW,UAAgB,OAAEP,EAAG,eAAe,CAACE,MAAM,CAAC,SAAWN,EAAIW,aAAaP,EAAG,WAAW,IAAI,GAAGJ,EAAIa,KAAMb,EAAIc,OAAa,OAAEV,EAAG,KAAK,CAACM,YAAY,SAASV,EAAIa,KAA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B,GAAMA,EAAEC,cAAgB,OAA0BiB,iBAGjF,cACE,OAAOjD,KAAKiB,SAAS8B,OAAQhB,GAAMA,EAAEC,cAAgB,OAA0BkB,qBA/D9D,EAAe,GAPnC,eAAU,CACTC,WAAY,CACVC,eAAA,KACAC,SAAA,KACAC,SAAA,SAGiB,WCjEqX,I,wBCQtYC,EAAY,eACd,EACAzD,EACAkB,GACA,EACA,KACA,WACA,MAIa,aAAAuC,E,2CCnBf,yBAA8e,EAAG,G","file":"js/chunk-188ca478.e4c9e762.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('SiteMasthead',{attrs:{\"image\":{ source: '/assets/images/profile-bg', formats: ['jpg'], fallback: 'jpg' },\"relative-content\":true,\"darken\":false,\"medium\":true}}),_c('ContentRow',[_c('ContentContainer',{staticClass:\"content-container--medium \"},[(_vm.directors.length)?_c('div',{staticClass:\"profile-group\"},[_c('h4',{staticClass:\"profile-group__title\"},[_vm._v(\"Our \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"beyond-infinity\"},[_vm._v(\"Directors\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.directors.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.directors}}):_c('Loader')],1)],1):_vm._e(),(_vm.agents.length)?_c('hr',{staticClass:\"line\"}):_vm._e(),(_vm.agents.length)?_c('div',{staticClass:\"profile-group\"},[_c('h4',{staticClass:\"profile-group__title\"},[_vm._v(\"Our \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"beyond-infinity\"},[_vm._v(\"Agents\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.agents.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.agents}}):_c('Loader')],1)],1):_vm._e(),(_vm.propertyManagers.length)?_c('hr',{staticClass:\"line\"}):_vm._e(),(_vm.propertyManagers.length)?_c('div',{staticClass:\"profile-group\"},[_c('h4',{staticClass:\"profile-group__title\"},[_vm._v(\"Our \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"beyond-infinity\"},[_vm._v(\"Property Management\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.propertyManagers.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.propertyManagers}}):_c('Loader')],1)],1):_vm._e(),(_vm.support.length)?_c('hr',{staticClass:\"line\"}):_vm._e(),(_vm.support.length)?_c('div',{staticClass:\"profile-group\"},[_c('h4',{staticClass:\"profile-group__title\"},[_vm._v(\"Our \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"beyond-infinity\"},[_vm._v(\"Administration Team\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.support.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.support}}):_c('Loader')],1)],1):_vm._e()])],1)],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\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, Watch } from 'vue-property-decorator';\nimport { ProfileFilter } from 'client-website-ts-library/filters';\nimport { Profile, WebsiteLevel, WebsiteProfileDisplayType } from 'client-website-ts-library/types';\nimport { API, Config } from 'client-website-ts-library/services';\nimport { AsyncView, View } from 'client-website-ts-library/plugins';\n\nimport Panels from '@/components/Panels.vue';\nimport ProfileCards from '../components/ProfileCards.vue';\nimport Loader from '../components/UI/Loader.vue';\n\n@Component({\n components: {\n ProfileCards,\n Loader,\n Panels,\n },\n})\nexport default class OfficeOurAgents extends Mixins(AsyncView) {\n private profiles: Profile[] = [];\n\n mounted() {\n const id = this.$route.params.id;\n\n if (id) {\n API.Slugs.Resolve(id).then((resolved) => {\n if (resolved.Type === 'Office') {\n this.updateProfiles(WebsiteLevel.Office, resolved.Id);\n\n // City\n if (resolved.Id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\n this.updateProfiles(WebsiteLevel.Office, '29d9080e-165e-4372-afc4-374f5b90fdde'); // City Rentals\n const index = this.profiles.findIndex((p) => p.Id === 'dbc21df2-268d-43da-a26c-da5711f7ee39');\n this.profiles[index].DisplayType = WebsiteProfileDisplayType.Agent;\n }\n\n // Redlynch\n if (resolved.Id === 'f2c947c3-1b35-41ce-8380-54f0ff32cd52') {\n this.updateProfiles(WebsiteLevel.Office, '4e9814df-12f6-4c08-b411-1499c2b952c9'); // Redlynch Rentals\n }\n\n // South\n if (resolved.Id === 'f9d229bb-51ff-4b83-94eb-4877c1c736d2') {\n API.Profiles.Get('998d6fdc-8b5e-4864-9d82-ba9efb3c6629', true).then((profile) => {\n this.profiles.push(profile);\n }); // Greg\n }\n }\n });\n } else {\n this.updateProfiles(WebsiteLevel.Franchise, Config.Website.Settings!.WebsiteId);\n }\n }\n\n updateProfiles(searchLevel: WebsiteLevel, id: string) {\n API.Profiles.Search(new ProfileFilter({\n SearchLevel: searchLevel,\n SearchGuid: id,\n }), true).then((profiles) => {\n this.profiles = this.profiles.concat(profiles);\n // City\n if (id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\n const index = this.profiles.findIndex((p) => p.Id === 'dbc21df2-268d-43da-a26c-da5711f7ee39');\n this.profiles[index].DisplayType = WebsiteProfileDisplayType.Agent;\n }\n });\n }\n\n get directors(): Profile[] {\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.Principal);\n }\n\n get agents(): Profile[] {\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.Agent);\n }\n\n get propertyManagers(): Profile[] {\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.PropertyManager);\n }\n\n get support(): Profile[] {\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.PersonalAssistant);\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!./OfficeOurAgents.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!./OfficeOurAgents.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficeOurAgents.vue?vue&type=template&id=2eafbad4&scoped=true&\"\nimport script from \"./OfficeOurAgents.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficeOurAgents.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./OfficeOurAgents.vue?vue&type=style&index=0&id=2eafbad4&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 \"2eafbad4\",\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!./OfficeOurAgents.vue?vue&type=style&index=0&id=2eafbad4&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!./OfficeOurAgents.vue?vue&type=style&index=0&id=2eafbad4&scoped=true&lang=css&\""],"sourceRoot":""}