{"version":3,"sources":["webpack:///./src/pages/CompetitorAnalysis/index.vue?7dde","webpack:///./src/pages/CompetitorAnalysis/index.vue","webpack:///./src/pages/CompetitorAnalysis/index.vue?3ce2","webpack:///./src/pages/CompetitorAnalysis/index.vue?ddae","webpack:///./src/pages/CompetitorAnalysis/index.vue?f4e7"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","payload","scopedSlots","_u","key","fn","ref","loading","on","onLocationChange","model","value","callback","$$v","pulsemAccountId","expression","_v","locationValid","competitorInformation","$set","address","staticRenderFns","competitorName","street","street2","city","state","zipcode","country","googlePlaceId","phoneNumber","website","components","AccountIdInput","TechTaskCard","component","VTextField"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAACE,YAAY,2BAA2BC,MAAM,CAAC,YAAY,sBAAsB,MAAQ,8BAA8B,kBAAkBP,EAAIQ,SAASC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GACvT,IAAIC,EAAUD,EAAIC,QAClB,MAAO,CAACV,EAAG,iBAAiB,CAACG,MAAM,CAAC,SAAWO,GAASC,GAAG,CAAC,cAAgBf,EAAIgB,kBAAkBC,MAAM,CAACC,MAAOlB,EAAmB,gBAAEmB,SAAS,SAAUC,GAAMpB,EAAIqB,gBAAgBD,GAAKE,WAAW,qBAAqBlB,EAAG,KAAK,CAACJ,EAAIuB,GAAG,sKAAsKnB,EAAG,MAAM,CAACA,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,eAAe,MAAQ,UAAU,UAAYP,EAAIwB,eAAiBV,GAASG,MAAM,CAACC,MAAOlB,EAAIyB,sBAAoC,eAAEN,SAAS,SAAUC,GAAMpB,EAAI0B,KAAK1B,EAAIyB,sBAAuB,iBAAkBL,IAAME,WAAW,0CAA0ClB,EAAG,eAAe,CAACG,MAAM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AAS,MAEbC,cAAe,GACfC,YAAa,GACbC,QAAS,IA/CrB,wIAuBQ,MAAO,CACHjB,gBAAiBpB,KAAKoB,gBACtBI,sBAAuBxB,KAAKwB,2BAzBxC,GAAuD,QAAlC,EAAyB,gBAN7C,eAAU,CACPc,WAAY,CACRC,iBAAA,KACAC,eAAA,SAGa,WCzE6X,I,yDCQ9YC,EAAY,eACd,EACA3C,EACA6B,GACA,EACA,KACA,KACA,MAIa,aAAAc,EAAiB,QAKhC,IAAkBA,EAAW,CAACC,aAAA,Q,yDCxB9B","file":"js/chunk-5822f05a.cedc2b84.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('TechTaskCard',{staticClass:\"competitor-analysis-card\",attrs:{\"task-name\":\"competitor-analysis\",\"title\":\"Competitor Analysis Toolkit\",\"request-payload\":_vm.payload},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar loading = ref.loading;\nreturn [_c('AccountIdInput',{attrs:{\"disabled\":loading},on:{\"onStateChange\":_vm.onLocationChange},model:{value:(_vm.pulsemAccountId),callback:function ($$v) {_vm.pulsemAccountId=$$v},expression:\"pulsemAccountId\"}}),_c('h4',[_vm._v(\"An easy way to get this information is to take the google place id and put it behind 'https://search.google.com/local/writereview?placeid=' then follow the url.\")]),_c('div',[_c('v-text-field',{attrs:{\"label\":\"Company Name\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.competitorName),callback:function ($$v) {_vm.$set(_vm.competitorInformation, \"competitorName\", $$v)},expression:\"competitorInformation.competitorName\"}}),_c('v-text-field',{attrs:{\"label\":\"Google Place ID\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.googlePlaceId),callback:function ($$v) {_vm.$set(_vm.competitorInformation, \"googlePlaceId\", $$v)},expression:\"competitorInformation.googlePlaceId\"}}),_c('v-text-field',{attrs:{\"label\":\"Phone Number\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.phoneNumber),callback:function ($$v) {_vm.$set(_vm.competitorInformation, \"phoneNumber\", $$v)},expression:\"competitorInformation.phoneNumber\"}}),_c('v-text-field',{attrs:{\"label\":\"Website URL\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.website),callback:function ($$v) {_vm.$set(_vm.competitorInformation, \"website\", $$v)},expression:\"competitorInformation.website\"}})],1),_c('div',{staticClass:\"company-address-input\"},[_c('v-text-field',{attrs:{\"label\":\"Street\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.street),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"street\", $$v)},expression:\"competitorInformation.address.street\"}}),_c('v-text-field',{attrs:{\"label\":\"Street2\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.street2),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"street2\", $$v)},expression:\"competitorInformation.address.street2\"}}),_c('v-text-field',{attrs:{\"label\":\"City\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.city),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"city\", $$v)},expression:\"competitorInformation.address.city\"}}),_c('v-text-field',{attrs:{\"label\":\"State\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.state),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"state\", $$v)},expression:\"competitorInformation.address.state\"}}),_c('v-text-field',{attrs:{\"label\":\"Country\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.country),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"country\", $$v)},expression:\"competitorInformation.address.country\"}}),_c('v-text-field',{attrs:{\"label\":\"Zipcode\",\"color\":\"primary\",\"disabled\":!_vm.locationValid || loading},model:{value:(_vm.competitorInformation.address.zipcode),callback:function ($$v) {_vm.$set(_vm.competitorInformation.address, \"zipcode\", $$v)},expression:\"competitorInformation.address.zipcode\"}})],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\nimport { Component, Vue } from 'vue-property-decorator'\nimport AccountIdInput from '@/components/ui/AccountIdInput.vue'\nimport TechTaskCard from '@/components/ui/TechTaskCard.vue'\n\n\n// These are the Interfaces for the Payload we want to send to the server.\ninterface CompetitorGoogleAddress {\n street: string;\n street2: string|null;\n city: string;\n state: string;\n zipcode: string;\n country: string;\n}\n\n\ninterface CompetitorInformation {\n competitorName: string;\n address: CompetitorGoogleAddress|null;\n googlePlaceId: string;\n phoneNumber: string;\n website: string;\n}\n\n\ninterface CompetitorPayload {\n pulsemAccountId: number|null;\n competitorInformation: CompetitorInformation|null;\n}\n\n\n@Component({\n components: {\n AccountIdInput,\n TechTaskCard\n }\n})\nexport default class CompetitorAnalysisToolkit extends Vue {\n locationValid = false\n pulsemAccountId: number|null = null\n competitorInformation: CompetitorInformation|null = {\n competitorName: '',\n address: {\n street: '',\n street2: null,\n city: '',\n state: '',\n zipcode: '',\n country: 'US'\n },\n googlePlaceId: '',\n phoneNumber: '',\n website: ''\n }\n\n /**\n * Everything that we send up to the server needs to be a string.\n * @returns { CompetitorPayload }\n */\n get payload(): CompetitorPayload {\n return {\n pulsemAccountId: this.pulsemAccountId,\n competitorInformation: this.competitorInformation\n }\n }\n\n /**\n * Data cleanup when switching between locations.\n * @param locationValid\n */\n async onLocationChange(locationValid: boolean) {\n this.locationValid = locationValid\n this.competitorInformation = {\n competitorName: '',\n address: {\n street: '',\n street2: null,\n city: '',\n state: '',\n zipcode: '',\n country: 'US'\n },\n googlePlaceId: '',\n phoneNumber: '',\n website: ''\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!./index.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!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=ec7bb8dc&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=less&\"\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 null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VTextField})\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=less&\""],"sourceRoot":""}