{"version":3,"sources":["webpack:///./src/views/CityRentalsOurAgents.vue?136c","webpack:///./src/views/CityRentalsOurAgents.vue?61cf","webpack:///./src/views/CityRentalsOurAgents.vue","webpack:///./src/views/CityRentalsOurAgents.vue?06b7","webpack:///./src/views/CityRentalsOurAgents.vue?d35c"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","source","formats","fallback","staticClass","directors","_v","_e","agents","propertyManagers","propertyManager","businessDevelopment","support","staticRenderFns","OfficeOurAgents","Mixins","AsyncView","constructor","profiles","mounted","id","$route","params","API","Slugs","Resolve","then","resolved","Type","updateProfiles","WebsiteLevel","Office","Id","index","findIndex","p","DisplayType","WebsiteProfileDisplayType","Agent","Franchise","Config","Website","Settings","WebsiteId","searchLevel","Profiles","Search","ProfileFilter","SearchLevel","SearchGuid","concat","profileIndex","Principal","filter","PropertyManager","PersonalAssistant","__decorate","Component","components","ProfileCards","Loader","Panels","component"],"mappings":"yIAAA,yBAAmf,EAAG,G,yCCAtf,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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,OAAOrC,KAAKuB,SAASmC,OAAQlB,GAAMA,EAAEC,cAAgBC,OAA0BiB,iBAA4B,yCAATnB,EAAEH,IAGtG,cACE,OAAOrC,KAAKuB,SAASmC,OAAQlB,GAAMA,EAAEC,cAAgBC,OAA0BkB,mBAAqBpB,EAAEC,cAAgBC,OAA0BN,UA5E/HjB,EAAe0C,wBAAA,CAPnCC,eAAU,CACTC,WAAY,CACVC,oBACAC,cACAC,kBAGiB/C,WCrF0X,I,wBCQ3YgD,EAAY,eACd,EACArE,EACAoB,GACA,EACA,KACA,WACA,MAIa,aAAAiD,E","file":"js/chunk-6d3b6b3b.073e261b.js","sourcesContent":["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!./CityRentalsOurAgents.vue?vue&type=style&index=0&id=ca49db78&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!./CityRentalsOurAgents.vue?vue&type=style&index=0&id=ca49db78&scoped=true&lang=css&\"","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(\"Manager\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.propertyManagers.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.propertyManager}}):_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(\"Business \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"beyond-infinity\"},[_vm._v(\" Development\")])]),_c('Deferrable',{attrs:{\"delay\":\"100\"}},[(_vm.propertyManagers.length)?_c('ProfileCards',{attrs:{\"profiles\":_vm.businessDevelopment}}):_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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Mixins, Watch } from 'vue-property-decorator';\r\nimport { ProfileFilter } from 'client-website-ts-library/filters';\r\nimport { Profile, WebsiteLevel, WebsiteProfileDisplayType } from 'client-website-ts-library/types';\r\nimport { API, Config } from 'client-website-ts-library/services';\r\nimport { AsyncView, View } from 'client-website-ts-library/plugins';\r\n\r\nimport Panels from '@/components/Panels.vue';\r\nimport ProfileCards from '../components/ProfileCards.vue';\r\nimport Loader from '../components/UI/Loader.vue';\r\n\r\n@Component({\r\n components: {\r\n ProfileCards,\r\n Loader,\r\n Panels,\r\n },\r\n})\r\nexport default class OfficeOurAgents extends Mixins(AsyncView) {\r\n private profiles: Profile[] = [];\r\n\r\n mounted() {\r\n const id = this.$route.params.id;\r\n\r\n if (id) {\r\n API.Slugs.Resolve(id).then((resolved) => {\r\n if (resolved.Type === 'Office') {\r\n this.updateProfiles(WebsiteLevel.Office, resolved.Id);\r\n\r\n // City\r\n if (resolved.Id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\r\n this.updateProfiles(WebsiteLevel.Office, '29d9080e-165e-4372-afc4-374f5b90fdde'); // City Rentals\r\n const index = this.profiles.findIndex((p) => p.Id === 'dbc21df2-268d-43da-a26c-da5711f7ee39');\r\n this.profiles[index].DisplayType = WebsiteProfileDisplayType.Agent;\r\n }\r\n\r\n // Redlynch\r\n if (resolved.Id === 'f2c947c3-1b35-41ce-8380-54f0ff32cd52') {\r\n this.updateProfiles(WebsiteLevel.Office, '4e9814df-12f6-4c08-b411-1499c2b952c9'); // Redlynch Rentals\r\n }\r\n\r\n // South\r\n if (resolved.Id === 'f9d229bb-51ff-4b83-94eb-4877c1c736d2') {\r\n //\r\n }\r\n }\r\n });\r\n } else {\r\n this.updateProfiles(WebsiteLevel.Franchise, Config.Website.Settings!.WebsiteId);\r\n }\r\n }\r\n\r\n updateProfiles(searchLevel: WebsiteLevel, id: string) {\r\n API.Profiles.Search(new ProfileFilter({\r\n SearchLevel: searchLevel,\r\n SearchGuid: id,\r\n }), true).then((profiles) => {\r\n this.profiles = this.profiles.concat(profiles);\r\n\r\n // City Rentals\r\n if (id === '29d9080e-165e-4372-afc4-374f5b90fdde') {\r\n const profileIndex = this.profiles.findIndex((p) => p.Id === 'e69c060e-60c0-4458-b535-a680c21beeb7');\r\n this.profiles[profileIndex].DisplayType = WebsiteProfileDisplayType.Principal;\r\n }\r\n\r\n // City\r\n if (id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\r\n const index = this.profiles.findIndex((p) => p.Id === 'dbc21df2-268d-43da-a26c-da5711f7ee39');\r\n this.profiles[index].DisplayType = WebsiteProfileDisplayType.Agent;\r\n }\r\n });\r\n }\r\n\r\n get directors(): Profile[] {\r\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.Principal);\r\n }\r\n\r\n get agents(): Profile[] {\r\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.Agent && p.Id !== '6f6bab8d-4a7a-4b92-8128-1f06eb791eeb');\r\n }\r\n\r\n get propertyManager(): Profile[] {\r\n return this.profiles.filter((p) => p.Id === '1980d31c-fe14-4f77-b1d4-6c2c20f4609a');\r\n }\r\n\r\n get businessDevelopment(): Profile[] {\r\n return this.profiles.filter((p) => p.Id === '6f6bab8d-4a7a-4b92-8128-1f06eb791eeb');\r\n }\r\n\r\n get propertyManagers(): Profile[] {\r\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.PropertyManager && p.Id !== '1980d31c-fe14-4f77-b1d4-6c2c20f4609a');\r\n }\r\n\r\n get support(): Profile[] {\r\n return this.profiles.filter((p) => p.DisplayType === WebsiteProfileDisplayType.PersonalAssistant || p.DisplayType === WebsiteProfileDisplayType.Office);\r\n }\r\n}\r\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!./CityRentalsOurAgents.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!./CityRentalsOurAgents.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CityRentalsOurAgents.vue?vue&type=template&id=ca49db78&scoped=true&\"\nimport script from \"./CityRentalsOurAgents.vue?vue&type=script&lang=ts&\"\nexport * from \"./CityRentalsOurAgents.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CityRentalsOurAgents.vue?vue&type=style&index=0&id=ca49db78&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 \"ca49db78\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}