{"version":3,"sources":["webpack:///./src/components/CsvImportStepTwo.vue?0ac6","webpack:///./src/views/CsvImport.vue?d4e8","webpack:///./src/components/CsvImportStepOne.vue?52c5","webpack:///./src/components/SupportPlaceholder.vue?fc50","webpack:///./src/components/SupportPlaceholder.vue","webpack:///./src/components/SupportPlaceholder.vue?80e4","webpack:///./src/components/SupportPlaceholder.vue?f9bf","webpack:///./src/components/CsvImportStepOne.vue","webpack:///./src/components/CsvImportStepOne.vue?5224","webpack:///./src/components/CsvImportStepOne.vue?3341","webpack:///./src/components/CsvImportStepTwo.vue?1018","webpack:///./src/components/CsvImportStepTwo.vue","webpack:///./src/components/CsvImportStepTwo.vue?46e6","webpack:///./src/components/CsvImportStepTwo.vue?1acc","webpack:///./src/components/CsvImportStepThree.vue?b837","webpack:///./src/components/CsvImportTile.vue?b5d0","webpack:///./src/components/CsvImportTile.vue","webpack:///./src/components/CsvImportTile.vue?848f","webpack:///./src/components/CsvImportTile.vue?e4da","webpack:///./src/components/CsvImportStepThree.vue","webpack:///./src/components/CsvImportStepThree.vue?6bae","webpack:///./src/components/CsvImportStepThree.vue?227e","webpack:///./src/components/CsvImportStepFour.vue?c262","webpack:///./src/components/CsvImportStepFour.vue","webpack:///./src/components/CsvImportStepFour.vue?5fef","webpack:///./src/components/CsvImportStepFour.vue?5339","webpack:///./src/views/CsvImport.vue","webpack:///./src/views/CsvImport.vue?9299","webpack:///./src/views/CsvImport.vue?aa0d","webpack:///./src/components/ProgressSpinner.vue?0be7","webpack:///./src/components/ProgressSpinner.vue","webpack:///./src/components/ProgressSpinner.vue?16c0","webpack:///./src/components/ProgressSpinner.vue?1232","webpack:///./src/components/CsvImportTile.vue?61d9","webpack:///./src/components/CsvImportReport.vue?4d7c","webpack:///./src/components/CsvImportReport.vue","webpack:///./src/components/CsvImportReport.vue?7b75","webpack:///./src/components/CsvImportReport.vue?e8ac","webpack:///./src/components/CsvExportFields.vue?00a6","webpack:///./src/components/CsvExportFields.vue","webpack:///./src/components/CsvExportFields.vue?eb32","webpack:///./src/components/CsvExportFields.vue?632d"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","toolbar","staticClass","$images","brandLogoHorizontal","_e","_v","staticStyle","model","value","callback","$$v","step","expression","on","$event","ref","importExecute","staticRenderFns","placeholder","title","articles","buttons","video","content","domProps","_s","isAndroid","$vuetify","breakpoint","xsOnly","image","_l","article","i","key","goToArticle","name","button","class","length","outlined","disabled","dark","color","icon","text","subject","Vue","extend","props","type","Array","default","String","computed","$store","getters","isMobile","isApp","videoWidth","methods","window","open","href","component","VBtn","VCol","VIcon","VImg","VRow","components","SupportPlaceholder","process","csvExportConfirm","$emit","csvExport","selected","dispatch","response","commit","percent","message","onFileSelected","downloadIcon","templateHelp","googleSheetsLink","templateDownload","uploadDocument","fileHelp","$refs","csvUpload","click","mapGetters","mounted","popImportDisabled","importConfirm","csvError","invalidFileType","fileType","isExcel","file","files","test","size","csvhelper","toArray","csvArray","url","resetInput","input","document","getElementById","isTemplate","headers","forEach","x","exportCsv","watch","csvRowData","then","back","next","messagedeskFieldHelp","matchedHelp","item","uuid","refInFor","matchedFields","resetTile","sdkField","Object","keys","rows","csvField","onCsvFieldSelected","csvValue","required","matched","clone","_","cloneDeep","validKeys","filter","includes","push","temp","field","reset","allOptions","importOptions","tile","VSelect","CsvImportTile","options","setFields","map","phoneIsMatched","phone","option","tiles","scopedSlots","_u","fn","preventDefault","stopPropagation","overwriteHelp","apply","arguments","proxy","overwrite","searchOptions","selectedSearch","groupCheckboxChanged","groupHelp","groupCheckbox","directives","rawName","group","errors","groupSelected","GroupSelector","data","goto","$route","query","newGroup","new_group","groupId","get","importOverwrite","set","dialogsExist","app","dialogApp","confirm","dialogConfirm","dialogMessage","feature","dialogFeature","bool","popGroupUncheckedError","selector","groupSelector","groupSelect","blur","$nextTick","importGroup","assign","$router","replace","id","VCheckbox","CsvImportStepOne","CsvImportStepTwo","CsvImportStepThree","CsvImportStepFour","ProgressSpinner","subtitle","left","tooltip","permission","right","popRoutingDialog","count","csvFileName","csvStepTwo","VStepper","VStepperContent","style","imgTop","imgTopWidth","iconTop","progress","total","imgBottom","imgBottomWidth","iconBottom","bind","imgTopStyle","imgBottomStyle","VProgressCircular","importReport","updated","contactsUpdatedHelp","downloadUpdated","created","downloadCreated","not_found","contactsNotFoundHelp","downloadNotFound","duplicates","contactsDuplicatesHelp","downloadDuplicates","not_updated","contactsNotUpdatedHelp","downloadNotUpdated","csvFailureLink","tempUrl","VContainer","VDivider","selectAll","prop","selectedProperties","dispatchExport","Boolean","properties","provider","qboHasAccount","xeroHasAccount","cond","personProperties","dataProviderPhones","concat","mobilePhone","find","property","dialog_result"],"mappings":"8GAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,QAAUN,EAAIO,UAAU,CAAEP,EAAqB,kBAAEI,EAAG,mBAAmB,CAACI,YAAY,OAAOF,MAAM,CAAC,KAAO,oBAAoB,UAAUN,EAAIS,QAAQC,oBAAoB,cAAc,6BAA6BV,EAAIW,KAAMX,EAAqB,kBAAEI,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,SAAS,MAAQ,WAAW,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,MAAQ,SAAS,QAAU,WAAW,CAACN,EAAIY,GAAG,+JAA+J,GAAGZ,EAAIW,KAAKP,EAAG,YAAY,CAACS,YAAY,CAAC,aAAa,SAASC,MAAM,CAACC,MAAOf,EAAQ,KAAEgB,SAAS,SAAUC,GAAMjB,EAAIkB,KAAKD,GAAKE,WAAW,SAAS,CAACf,EAAG,oBAAoB,CAACI,YAAY,OAAOF,MAAM,CAAC,KAAO,MAAM,CAACF,EAAG,sBAAsB,CAACgB,GAAG,CAAC,KAAO,SAASC,KAAUrB,EAAIkB,UAAU,GAAGd,EAAG,oBAAoB,CAACE,MAAM,CAAC,KA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M,UACN/B,MAAO,QACPyB,KAAM,YACND,MAAO,MACPE,KAAM,+CAKd,GAAInD,KAAKsH,WAAY,CAEjB,IAAMiK,EAAcvR,KAAK4Q,mBAAmBY,MACxC,SAACC,GAAD,MAAgD,iBAAlBA,EAAS/O,QAI3C,IAAK6O,EACD,OAAOvR,KAAK6D,OAAOsB,SAAS,aAAc,CACtC3B,KAAM,UACN/B,MAAO,UACP0B,KAAM,yLACND,KAAM,YACND,MAAO,UACPlC,SAAU,SAAC2Q,GAEFA,GAGL,EAAK1M,MAAM,SAAU,EAAK4L,uBAM1C5Q,KAAKgF,MAAM,SAAUhF,KAAK4Q,qBAE9BF,UAzCK,SAyCK7D,GAEN,IAAMmE,EAAWhR,KAAKiR,eAAiBjR,KAAKkR,eAGtCC,EAAOH,IAAahR,KAAKsH,WAQ3BtH,KAAK4Q,mBALJ/D,EAEKsE,EAGoBnR,KAAKoR,iBAAiBE,OAC5CtR,KAAKqR,oBAJ6BrR,KAAKoR,iBAFV,OC7HyV,I,yGCOtY9M,EAAY,eACd,EACAxE,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAA+C,EAAiB,QAUhC,IAAkBA,EAAW,CAACC,OAAA,KAAKkJ,YAAA,KAAUjJ,OAAA,KAAKiM,WAAA,KAAShM,QAAA,KAAME,OAAA,Q","file":"js/csv-import.db64996c.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!./CsvImportStepTwo.vue?vue&type=style&index=0&id=5c5cded8&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('page-template',{attrs:{\"toolbar\":_vm.toolbar}},[(_vm.csvImportProgress)?_c('progress-spinner',{staticClass:\"mt-2\",attrs:{\"bind\":\"csvImportProgress\",\"img-top\":_vm.$images.brandLogoHorizontal,\"icon-bottom\":\"mdi-file-export-outline\"}}):_vm._e(),(_vm.csvImportProgress)?_c('v-row',{attrs:{\"justify\":\"center\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_vm._v(\" Hang tight, you'll recieve a email and/or notifcation when the import completes. Processing time is dependent on the number of rows in your .csv file. \")])],1):_vm._e(),_c('v-stepper',{staticStyle:{\"box-shadow\":\"unset\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c('v-stepper-content',{staticClass:\"pa-0\",attrs:{\"step\":\"1\"}},[_c('csv-import-step-one',{on:{\"next\":function($event){++_vm.step}}})],1),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('csv-import-step-two',{ref:\"csvStepTwo\",on:{\"next\":function($event){++_vm.step}}})],1),_c('v-stepper-content',{attrs:{\"step\":\"3\"}},[_c('csv-import-step-three',{on:{\"back\":function($event){--_vm.step},\"next\":function($event){++_vm.step}}})],1),_c('v-stepper-content',{attrs:{\"step\":\"4\"}},[_c('csv-import-step-four',{on:{\"back\":function($event){--_vm.step},\"next\":_vm.importExecute}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('support-placeholder',{attrs:{\"title\":_vm.placeholder.title,\"articles\":_vm.placeholder.articles,\"buttons\":_vm.placeholder.buttons,\"video\":_vm.placeholder.video,\"content\":_vm.placeholder.content}})}\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',[(_vm.title)?_c('v-col',{staticClass:\"mt-3\",staticStyle:{\"font-size\":\"20px\"},attrs:{\"align\":\"center\"}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.title)}})]):_vm._e(),_c('v-col',{staticClass:\"pa-2\",attrs:{\"align\":\"center\"}},[(_vm.video && !_vm.isAndroid)?_c('iframe',{attrs:{\"width\":_vm.$vuetify.breakpoint.xsOnly ? 300 : 560,\"height\":_vm.$vuetify.breakpoint.xsOnly ? 168 : 315,\"src\":_vm.video,\"frameborder\":\"0\",\"allow\":\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\"sandbox\":\"allow-scripts allow-same-origin\",\"allowfullscreen\":\"\"}}):_vm._e(),(_vm.image)?_c('v-img',{attrs:{\"max-height\":400,\"width\":\"auto\",\"contain\":\"\",\"src\":_vm.image}}):_vm._e()],1),_c('v-col',{staticClass:\"pa-1\",attrs:{\"align\":\"center\"}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.content)}})]),(_vm.articles)?_c('v-col',{staticClass:\"pa-1\",attrs:{\"align\":\"center\"}},[_vm._l((_vm.articles),function(article,i){return [_c('v-row',{key:i,attrs:{\"no-gutters\":\"\",\"align\":\"center\",\"justify\":\"center\"}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-school\")]),_c('a',{on:{\"click\":function($event){return _vm.goToArticle(article)}}},[_vm._v(\" \"+_vm._s(article.name)+\" \")])],1)]})],2):_vm._e(),(_vm.buttons)?_c('v-col',{staticClass:\"pa-2\",attrs:{\"align\":\"center\"}},[_c('v-row',{attrs:{\"justify\":\"center\"}},[_vm._l((_vm.buttons),function(button,i){return [_c('v-btn',{key:(\"button-\" + i),class:(\"text-capitalize \" + (_vm.buttons.length > 1 ? 'mx-4' : '')),attrs:{\"rounded\":\"\",\"outlined\":button.outlined,\"disabled\":button.disabled,\"dark\":button.dark,\"color\":button.color},on:{\"click\":button.callback}},[(button.icon)?_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(_vm._s(button.icon)+\" \")]):_vm._e(),_vm._v(\" \"+_vm._s(button.text)+\" \")],1)]})],2)],1):_vm._e(),(_vm.subject)?_c('v-col',{attrs:{\"align\":\"center\"}},[_vm._v(\" Feel free to email \"),_c('a',{attrs:{\"href\":\"mailto:josh@snapdesk.app\"}},[_vm._v(\"josh@snapdesk.app\")]),_c('span',[_vm._v(\"with the subject line \\\"\"+_vm._s(_vm.subject)+\"\\\"\")]),_vm._v(\" for extra assistance. \")]):_vm._e()],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\nimport Vue from 'vue'\nexport default Vue.extend({\n props: {\n articles: {\n type: Array,\n default: null\n },\n buttons: {\n type: Array,\n default: null\n },\n content: {\n type: String,\n default: null\n },\n subject: {\n type: String,\n default: null\n },\n title: {\n type: String,\n default: null\n },\n video: {\n type: String,\n default: null\n },\n image: {\n type: String,\n default: null\n }\n },\n computed: {\n isAndroid(): boolean {\n return this.$store.getters.isMobile('nonIos')\n },\n isApp(): boolean {\n return this.$store.getters.isApp\n },\n videoWidth(): string {\n return '200px'\n }\n },\n methods: {\n goToArticle(article: URL): void {\n window.open(article.href, this.isApp ? '_system' : '_blank')\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SupportPlaceholder.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SupportPlaceholder.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SupportPlaceholder.vue?vue&type=template&id=359d8225&\"\nimport script from \"./SupportPlaceholder.vue?vue&type=script&lang=ts&\"\nexport * from \"./SupportPlaceholder.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 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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VImg,VRow})\n","\n\n\n\n\n\nimport Button from '@/types/components/Button.interface'\nimport PersonProperty from '@/types/PersonProperty.interface'\nimport SupportPlaceholder from '@/components/SupportPlaceholder.vue'\nimport Vue from 'vue'\nexport default Vue.extend({\n components: { SupportPlaceholder },\n computed: {\n isApp(): boolean {\n return this.$store.getters.isApp\n },\n placeholder(): object {\n return {\n title: 'Import new data or export your existing MessageDesk data.',\n content: `Checkout our Learning Center for support articles on how to import data into MessageDesk!`,\n subject: 'CSV Upload Help',\n video: 'https://www.loom.com/embed/11dbd811cb644dfcb6f5a6645b3c4b3d',\n articles: [\n {\n name: 'How to Import Data into MessageDesk',\n href: `${process.env.VUE_APP_URL_LEARN}/en/articles/4527053-how-to-import-contacts-into-messagedesk`\n }\n ],\n buttons: [\n {\n text: 'Export Data',\n icon: 'mdi-cloud-download',\n color: 'primary',\n outlined: true,\n disabled: this.isApp,\n callback: () => this.csvExportConfirm()\n },\n {\n text: 'Import Data',\n icon: 'mdi-cloud-upload',\n color: 'primary',\n dark: true,\n callback: () => this.$emit('next')\n }\n ] as Button[]\n }\n }\n },\n methods: {\n async csvExport(selected: PersonProperty[]): Promise {\n // Send the export request to the API\n const response = await this.$store.dispatch('csvExport', {\n selected: selected\n })\n\n // If the request failed, do nothing\n if (!response) return\n\n // Else, start the progress spinner\n this.$store.commit('csvExportProgressSet', {\n percent: 0,\n message: 'Beginning Export'\n })\n\n // Notify user of export\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Export in Progress',\n icon: 'mdi-database-export',\n text: response.message\n })\n },\n csvExportConfirm(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'APP',\n title: 'Export Confirmation (.csv)',\n icon: 'mdi-cloud-download',\n color: 'primary',\n component: 'csv-export-fields',\n callback: async (selected: PersonProperty[]): Promise => {\n // Close this dialog\n await this.$store.dispatch('dialogClose', 'APP')\n\n // Begin export\n this.csvExport(selected)\n }\n })\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepOne.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepOne.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportStepOne.vue?vue&type=template&id=737354ad&\"\nimport script from \"./CsvImportStepOne.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportStepOne.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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pa-3\"},[(_vm.isMobile())?_c('div',[_c('v-row',{staticClass:\"text-center\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',[_vm._v(\" Data import is unavailable on mobile devices. Please login to MessageDesk from a desktop computer to upload data. \")])],1)],1):_c('div',[_c('input',{ref:\"csvUpload\",staticStyle:{\"display\":\"none\"},attrs:{\"id\":\"csvUpload\",\"type\":\"file\",\"name\":\"csvUpload\",\"accept\":\"text/csv\"},on:{\"change\":_vm.onFileSelected}}),_c('v-row',{staticClass:\"grey--text text--darken-2\",staticStyle:{\"font-size\":\"18px\"},attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('span',[_vm._v(\" Upload a .csv file or download our .csv template and copy and paste your data to get started. \")])]),_c('v-row',{staticStyle:{\"max-width\":\"1250px\",\"margin\":\"auto\"},attrs:{\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",staticStyle:{\"margin\":\"40px\"},attrs:{\"align\":\"center\"}},[_c('v-img',{staticClass:\"ma-8\",attrs:{\"src\":_vm.$images.downloadIcon,\"contain\":\"\",\"width\":\"220\",\"height\":\"220\"}}),_c('div',{staticClass:\"pa-2\",staticStyle:{\"font-size\":\"22px\"}},[_vm._v(\" Step 1 (optional): Use our .csv Template \")]),_c('div',{staticClass:\"pa-2 grey--text text--darken-2\"},[_vm._v(\" Copy our example Google Sheet (preferred) or download a .csv file directly (for those who don't have a google account) \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.templateHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('div',{staticClass:\"pa-2\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\"},attrs:{\"rounded\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.googleSheetsLink()}}},[_vm._v(\" Use Google Sheets Template (Best) \")])],1),_c('div',{staticClass:\"pa-2\",staticStyle:{\"font-size\":\"13px\"}},[_vm._v(\" or \")]),_c('div',[_c('a',{on:{\"click\":function($event){return _vm.templateDownload()}}},[_vm._v(\" Create CSV Template \")])]),_c('div',{staticStyle:{\"font-size\":\"13px\"}},[_c('i',[_vm._v(\" Best if you don't have a Google account \")])])],1),_c('v-col',{staticClass:\"pa-0\",staticStyle:{\"margin\":\"40px\"},attrs:{\"align\":\"center\"}},[_c('v-img',{staticClass:\"ma-8\",attrs:{\"src\":_vm.$images.uploadDocument,\"contain\":\"\",\"width\":\"220\",\"height\":\"220\"}}),_c('div',{staticClass:\"pa-2\",staticStyle:{\"font-size\":\"22px\"}},[_vm._v(\" Step 2: Upload .csv File \")]),_c('div',{staticClass:\"pa-2 grey--text text--darken-2\"},[_c('div',[_vm._v(\" Your file must be saved in a .csv file format \")]),_c('div',[_vm._v(\" and contain under 2,500 rows. \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.fileHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1)]),_c('div',{staticClass:\"pa-2\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\"},attrs:{\"rounded\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.$refs.csvUpload.click()}}},[_vm._v(\" Upload .csv File \")])],1)],1)],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport PersonProperty from '@/types/PersonProperty.interface'\nimport Vue from 'vue'\nimport { mapGetters } from 'vuex'\nimport csvhelper from '@/plugins/csvhelper'\nexport default Vue.extend({\n computed: {\n ...mapGetters(['isApp', 'csvRowData', 'csvImportProgress', 'isMobile'])\n },\n mounted() {\n // If we're on a mobile device, pop 'disabled' message\n if (this.isMobile()) this.popImportDisabled()\n },\n methods: {\n fileHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Upload .csv File',\n text: `MessageDesk requires that you upload your contacts formatted in a .csv file. Read our how-to article to learn how to format your existing data into a .csv.`\n })\n },\n googleSheetsLink(): void {\n window.open(\n 'https://docs.google.com/spreadsheets/u/1/d/1ZiieD9Lg7H81xuB1iQo8YLibF4Z_ABNWt5zZpYX0iII/copy',\n '_blank'\n )\n },\n importConfirm(): void {\n this.$emit('next')\n },\n csvError(message: string): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'CSV Error',\n icon: 'mdi-alert-circle',\n color: 'red lighten-2',\n text: message\n })\n },\n invalidFileType(fileType: string): void {\n const isExcel =\n fileType ==\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n\n if (isExcel) {\n return this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Unsupported File Type',\n text: `Excel files are currently unsupported. Please save your excel file as as a .csv file. Read our guide on how to convert an excel file to CSV for more information.`,\n icon: 'mdi-alert-circle'\n })\n }\n\n return this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Upload Error',\n text: 'The file selected is not a .csv file',\n icon: 'mdi-alert-circle'\n })\n },\n async onFileSelected(): Promise {\n // Get the file from the file input field\n const file = this.$refs.csvUpload.files[0]\n\n // If the file type is not csv, open error dialog\n if (!/\\.csv$/i.test(file.name)) {\n return this.invalidFileType(file.type)\n }\n\n // If the file size is greater than 12MB, open error dialog\n if (file.size > 12000000) {\n return this.csvError('The maximum file size for is 12MB')\n }\n\n // Parse the csv file\n const csvArray = await csvhelper.toArray(file)\n\n // If there isn't at least 1 row in the csv file, open error dialog\n if (csvArray.length < 1) {\n return this.csvError(\"We couldn't find any data in your csv\")\n }\n\n // If there's more than 2,500 rows, open error dialog\n if (csvArray.length > 2500) {\n return this.csvError('CSV files must have 2,500 rows or less')\n }\n\n // Set the csv file name\n this.$store.commit('csvFileNameSet', file.name)\n\n // Set the first row of the csv (for displaying sample data)\n this.$store.commit('csvRowDataSet', csvArray[0])\n\n // Set all rows of the csv\n this.$store.commit('csvDataSet', csvArray)\n },\n popImportDisabled(): void {\n // Create the redirect url\n const url = `${process.env.VUE_APP_URL_BASE}/#/signin`\n\n // Pop the dialog\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Desktop Only Feature',\n text: `Importing contacts is only available for desktop users. To login on a desktop device, please visit the MessageDesk Website.`\n })\n },\n resetInput(): void {\n // Reset the CSV inputs\n this.$store.commit('csvReset')\n\n // Grab our CSV upload input field\n const input = document.getElementById('csvUpload') as HTMLInputElement\n\n // Reset the value on this field\n input.value = ''\n },\n templateDownload(): void {\n // Open dialog for choosing template fields/headers\n this.$store.dispatch('dialogOpen', {\n type: 'APP',\n title: 'Choose Template Fields',\n icon: 'mdi-cloud-download',\n color: 'primary',\n component: 'csv-export-fields',\n props: {\n isTemplate: true\n },\n callback: async (selected: PersonProperty[]): Promise => {\n // Close this dialog\n await this.$store.dispatch('dialogClose', 'APP')\n\n // Init headers\n const headers = {}\n\n // Add persons keys to the headers object\n selected.forEach((x) => {\n headers[x.name] = null\n })\n\n // Export the headers template\n csvhelper.exportCsv('template.csv', [headers])\n }\n })\n },\n templateHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: '.csv Template',\n text: `Once you download our .csv template, copy and paste your existing data into the appropriate column. Read our how-to article to learn how to format your existing data into a .csv.`\n })\n }\n },\n watch: {\n csvRowData(value: string): void {\n // If the value does NOT exist, do nothing\n if (!value) return\n\n // Else, a new csv has been set, so re-initialize the mapping form\n this.$store.dispatch('csvInit').then(() => {\n // Since new bindings have been set with auto-match, lets validate and try to upload\n this.importConfirm()\n })\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepTwo.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepTwo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportStepTwo.vue?vue&type=template&id=5c5cded8&scoped=true&\"\nimport script from \"./CsvImportStepTwo.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportStepTwo.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CsvImportStepTwo.vue?vue&type=style&index=0&id=5c5cded8&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 \"5c5cded8\",\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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VImg,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pa-2 text-center grey--text text--darken-2\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-row',[_c('v-col',{staticStyle:{\"max-width\":\"20%\",\"text-align\":\"left\"}},[_c('div',{staticClass:\"pl-8 pt-4\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\",\"width\":\"150px\"},attrs:{\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.back()}}},[_vm._v(\" Back \")])],1)]),_c('v-col',{staticClass:\"text-center\",staticStyle:{\"max-width\":\"60%\"}},[_c('div',{staticClass:\"font-weight-bold\",staticStyle:{\"font-size\":\"26px\"}},[_vm._v(\" Step 3: Match Fields \")]),_c('div',[_vm._v(\" Match MessageDesk data fields with columns from your .csv file. Fields with \\\"No Match\\\" will not be imported. \")])]),_c('v-col',{staticStyle:{\"max-width\":\"20%\",\"text-align\":\"right\"}},[_c('div',{staticClass:\"pr-8 pt-4\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\",\"width\":\"150px\"},attrs:{\"rounded\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.next()}}},[_vm._v(\" Next \")])],1)])],1),_c('v-row',{staticClass:\"pt-3 font-weight-medium\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\"},[_vm._v(\" MessageDesk Data Field \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.messagedeskFieldHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-col',{staticClass:\"pa-0\"},[_vm._v(\" Matched? \")]),_c('v-col',{staticClass:\"pa-0\"},[_vm._v(\" Matched Data Field \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.matchedHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-col',{staticClass:\"pa-0\"},[_vm._v(\"Data From Your File\")])],1),_vm._l((_vm.importOptions),function(item,i){return [_c('csv-import-tile',{key:i,ref:item.uuid,refInFor:true,attrs:{\"item\":item,\"matchedFields\":_vm.matchedFields},on:{\"reset\":_vm.resetTile}})]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.item)?_c('v-row',{staticClass:\"text-center\",staticStyle:{\"height\":\"65px\"},attrs:{\"justify\":\"center\",\"align\":\"center\"}},[_c('v-col',{staticClass:\"text-truncate grey--text text--darken-2\",staticStyle:{\"margin-bottom\":\"27px\"}},[_vm._v(\" \"+_vm._s(_vm.item.sdkField ? _vm.item.sdkField.name : null)+\" \")]),_c('v-col',{staticClass:\"pa-0\",staticStyle:{\"margin-bottom\":\"27px\"}},[(_vm.matched)?_c('v-icon',{attrs:{\"color\":\"primary\"}},[_vm._v(\"mdi-check\")]):_c('v-icon',{attrs:{\"color\":\"red\"}},[_vm._v(\"mdi-close-circle\")])],1),_c('v-col',[_c('v-select',{attrs:{\"dense\":\"\",\"outlined\":\"\",\"items\":Object.keys(_vm.rows),\"value\":_vm.item.csvField || 'No Match'},on:{\"change\":function($event){return _vm.onCsvFieldSelected($event)}}})],1),_c('v-col',{staticClass:\"grey--text text--darken-1 text-truncate\",staticStyle:{\"margin-bottom\":\"27px\"}},[_vm._v(\" \"+_vm._s(_vm.item.csvValue ? _vm.item.csvValue : null)+\" \")])],1):_vm._e()}\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\nimport Vue from 'vue'\nimport { mapGetters } from 'vuex'\nexport default Vue.extend({\n props: {\n // The line item being displayed\n item: {\n type: Object,\n required: true\n },\n matchedFields: {\n type: Array,\n default: null\n }\n },\n computed: {\n ...mapGetters(['csvRowData', 'importOptions']),\n matched(): boolean {\n return (\n this.item.csvField !== null &&\n this.item.sdkField !== null &&\n this.item.csvField !== 'No Match'\n )\n },\n rows(): object {\n // Once we have csvRowData\n if (this.csvRowData) {\n // Create temp array of rows\n const clone = window._.cloneDeep(this.csvRowData)\n\n // Grab our matched prop, or default to an empty array if null\n const matched = this.matchedFields || []\n\n // Our valid keys are the keys NOT in our matched\n const validKeys = Object.keys(clone).filter(\n (key) => !matched.includes(key)\n )\n\n // Make sure we append our current matched field if we have one\n if (this.item.csvField) validKeys.push(this.item.csvField)\n\n // So our only valid array will be without these keys\n const temp = {}\n\n // Iterate through oue keys and assign to temp\n for (let i = 0; i < validKeys.length; i++) {\n temp[validKeys[i]] = clone[validKeys[i]]\n }\n\n // Create a 'No Match' option\n temp['No Match'] = null\n\n // Return rows with 'No Match' option\n return temp\n }\n\n // Otherwise return nothing\n return null\n }\n },\n methods: {\n onCsvFieldSelected(field: string): void {\n // If No Match was chosen, reset\n if (field === 'No Match') return this.reset()\n\n // Get our required and matched fields\n const allOptions = this.importOptions\n\n // Find the option we need to remove from the other tile\n const tile = allOptions.filter((matched) => {\n return matched.csvField === field\n })\n\n // If tile exists, emit the reset event to that tile\n if (tile.length > 0) this.$emit('reset', tile[0].uuid)\n\n // Find csvRowData for the selected field\n this.item.csvValue = this.csvRowData[field]\n\n // Set the matched data field name\n this.item.csvField = field\n },\n reset(): void {\n this.item.csvValue = null\n this.item.csvField = null\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportTile.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportTile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportTile.vue?vue&type=template&id=9bd90e18&\"\nimport script from \"./CsvImportTile.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportTile.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CsvImportTile.vue?vue&type=style&index=0&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 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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\ninstallComponents(component, {VCol,VIcon,VRow,VSelect})\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 Vue from 'vue'\nimport CsvImportTile from '@/components/CsvImportTile.vue'\nimport { mapGetters } from 'vuex'\nexport default Vue.extend({\n components: { CsvImportTile },\n computed: {\n ...mapGetters(['importOptions']),\n matchedFields() {\n // Get all import options\n const options = this.importOptions\n\n // Grab all of our fields that have been set\n const setFields = options.filter((x) => x.csvField != null)\n\n // We only want the csvField value for each\n return setFields.map((x) => x.csvField)\n },\n phoneIsMatched(): boolean {\n // Get all importOptions\n const options = this.importOptions\n\n // Set valid bool\n let phone = false\n\n // Iterate through importOptions, if item is Phone Number and is matched, set bool\n options.forEach((item) => {\n if (item.sdkField.name === 'Phone Number' && item.csvField) {\n phone = true\n }\n })\n\n // Return bool\n return phone\n }\n },\n methods: {\n back(): void {\n this.$emit('back')\n },\n next(): void {\n // Phone number is required to be matched\n // if (!this.phoneIsMatched) {\n // return this.$store.dispatch('dialogOpen', {\n // type: 'MESSAGE',\n // title: 'Error',\n // icon: 'mdi-alert',\n // color: 'primary',\n // text: \"You must match a field to 'Phone Number' in order to continue.\"\n // })\n // }\n\n // Filter out options that are not matched\n const matched = this.importOptions.filter(\n (option) => option.csvField !== null\n )\n\n // Set importMatched\n this.$store.commit('importMatchedSet', matched)\n\n // Go to CsvImportStepFour\n this.$emit('next')\n },\n matchedHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Matched Data Field',\n text: 'A matched data field matches a column from the .csv file you are attempting to import into MessageDesk. Non-matched fields will not be imported.',\n color: 'primary',\n icon: 'mdi-help-circle'\n })\n },\n messagedeskFieldHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'MessageDesk Data Field',\n text: 'MessageDesk data fields are fields that are already present and available in MessageDesk. These include MessageDesk custom fields as well.',\n color: 'primary',\n icon: 'mdi-help-circle'\n })\n },\n resetTile(uuid: string): void {\n // Find the tile with this uuid\n const tiles = this.$refs[uuid]\n\n // If no tile was found, do nothing\n if (!tiles) return\n\n // Our refs are in array format so we need to call it on each entry\n for (const tile of tiles) tile.reset()\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepThree.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepThree.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportStepThree.vue?vue&type=template&id=43d2b7c5&\"\nimport script from \"./CsvImportStepThree.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportStepThree.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 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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.mounted)?_c('div',{staticClass:\"pb-8 grey--text text--darken-2\"},[_c('v-row',[_c('v-col',{staticStyle:{\"max-width\":\"20%\",\"text-align\":\"left\"}},[_c('div',{staticClass:\"pl-8 pt-4\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\",\"width\":\"150px\"},attrs:{\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.back()}}},[_vm._v(\" Back \")])],1)]),_c('v-col',{staticClass:\"text-center\",staticStyle:{\"max-width\":\"60%\"}},[_c('div',{staticClass:\"font-weight-bold\",staticStyle:{\"font-size\":\"26px\"}},[_vm._v(\" Step 4: Confirm Field Matching \")]),_c('div',[_vm._v(\" Make sure that all MessageDesk data fields are properly matched with data from your .csv file \")])]),_c('v-col',{staticStyle:{\"max-width\":\"20%\",\"text-align\":\"right\"}},[_c('div',{staticClass:\"pr-8 pt-4\"},[_c('v-btn',{staticClass:\"white--text\",staticStyle:{\"text-transform\":\"none\",\"width\":\"150px\"},attrs:{\"rounded\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.next()}}},[_vm._v(\" Upload Contacts \")])],1)])],1),_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-row',{staticClass:\"font-weight-medium\",staticStyle:{\"width\":\"500px\"},attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"text-left\",staticStyle:{\"padding\":\"4px\"}},[_vm._v(\"MessageDesk Data Field \")]),_c('v-col',{staticClass:\"text-center\",staticStyle:{\"padding\":\"4px\"}},[_vm._v(\"Data From Your File \")])],1),_c('div',{staticStyle:{\"max-height\":\"400px\",\"width\":\"500px\",\"overflow-y\":\"scroll\",\"overflow-x\":\"hidden\",\"padding-left\":\"10px\",\"padding-right\":\"10px\"}},[_vm._l((_vm.importMatched),function(item,i){return [_c('v-row',{key:(\"m-\" + i),staticClass:\"text-left\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"text-truncate\",staticStyle:{\"padding\":\"4px\"}},[_vm._v(\" \"+_vm._s(item.sdkField.name)+\" \")]),_c('v-icon',{attrs:{\"color\":\"primary\"}},[_vm._v(\"mdi-check \")]),_c('v-col',{staticClass:\"text-truncate\",staticStyle:{\"padding\":\"4px\",\"padding-left\":\"50px\"}},[_vm._v(\" \"+_vm._s(item.csvValue)+\" \")])],1)]})],2)],1)],1),_c('v-row',{staticStyle:{\"height\":\"60px\"},attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('div',{staticStyle:{\"width\":\"550px\"}},[_c('v-checkbox',{attrs:{\"color\":\"primary\",\"hide-details\":\"\"},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',{staticClass:\"pr-2\"},[_vm._v(\"Update existing contacts\")]),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.overwriteHelp.apply(null, arguments)}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)]},proxy:true}],null,false,1401466735),model:{value:(_vm.overwrite),callback:function ($$v) {_vm.overwrite=$$v},expression:\"overwrite\"}})],1)])],1),(_vm.overwrite)?_c('v-row',{staticStyle:{\"height\":\"60px\"}},[_c('v-col',{staticClass:\"pa-0\",staticStyle:{\"height\":\"60px\"}},[_c('div',{staticStyle:{\"width\":\"550px\",\"margin\":\"auto\"}},[_c('v-row',[_c('v-col',{staticClass:\"pb-0 pt-2\"},[_c('span',{staticStyle:{\"padding-top\":\"8px\",\"padding-right\":\"30px\"}},[_vm._v(\" Match and update contacts by: \")])]),_c('v-col',{staticClass:\"py-0\"},[_c('v-select',{staticStyle:{\"max-width\":\"250px\"},attrs:{\"dense\":\"\",\"outlined\":\"\",\"items\":_vm.searchOptions},model:{value:(_vm.selectedSearch),callback:function ($$v) {_vm.selectedSearch=$$v},expression:\"selectedSearch\"}})],1)],1)],1)])],1):_vm._e(),_c('v-row',{staticStyle:{\"height\":\"60px\"},attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('div',{staticStyle:{\"width\":\"550px\"}},[_c('v-checkbox',{attrs:{\"hide-details\":\"\",\"color\":\"primary\",\"disabled\":!_vm.overwrite},on:{\"change\":function($event){return _vm.groupCheckboxChanged($event)}},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',{staticClass:\"pr-2\"},[_vm._v(\"Import all contacts from CSV to new or existing group\")]),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.groupHelp.apply(null, arguments)}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)]},proxy:true}],null,false,3010790811),model:{value:(_vm.groupCheckbox),callback:function ($$v) {_vm.groupCheckbox=$$v},expression:\"groupCheckbox\"}})],1)])],1),(_vm.groupCheckbox)?_c('v-row',{staticStyle:{\"height\":\"60px\"},attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticStyle:{\"height\":\"60px\"}},[_c('div',{staticStyle:{\"width\":\"550px\",\"margin\":\"auto\"}},[_c('v-row',[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"5\"}},[_c('span',{staticStyle:{\"padding-top\":\"8px\",\"padding-right\":\"30px\"}},[_vm._v(\"Select or create a group:\")])]),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"7\"}},[_c('group-selector',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],ref:\"groupSelector\",attrs:{\"create-new\":\"\",\"static\":\"\",\"dense\":\"\",\"outlined\":\"\",\"group\":_vm.group,\"name\":\"Group\",\"validation-errors\":_vm.errors,\"disabled\":!_vm.overwrite},on:{\"groupSelected\":_vm.groupSelected}})],1)],1)],1)])],1):_vm._e(),(!_vm.overwrite)?_c('v-row',{staticStyle:{\"height\":\"60px\"},attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticStyle:{\"height\":\"60px\"}},[_c('div',{staticStyle:{\"width\":\"550px\",\"margin\":\"auto\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('span',{staticStyle:{\"color\":\"#4d4d4d\",\"font-size\":\"16px\"}},[_c('i',[_vm._v(\"Please check \\\"Update Contacts\\\" to import contacts into a Group\")])])])],1)])],1):_vm._e()],1):_vm._e()}\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\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 Group from '@/types/Group.interface'\nimport Vue from 'vue'\nimport { mapGetters } from 'vuex'\nimport GroupSelector from '@/components/GroupSelector.vue'\nexport default Vue.extend({\n components: { GroupSelector },\n data() {\n return {\n group: null,\n groupCheckbox: false,\n // Determines if we are ready to start using the page\n mounted: false,\n searchOptions: ['Phone Number', 'First and Last Name', 'Full Name', 'Email'],\n selectedSearch: 'Phone Number',\n goto: null\n }\n },\n async mounted() {\n if (this.$route.query.goto) this.goto = this.$route.query.goto\n // Grab the new group query from our path\n const newGroup = this.$route.query.new_group\n\n // Grab the group query from our path\n const groupId = this.$route.query.group\n\n // If a new group needs to be created, pre-select group create/update checkbox\n if (newGroup) this.groupCheckbox = true\n\n // If group was NOT passed, do nothing\n if (!groupId) return (this.mounted = true)\n\n // Else, if a group id was passed\n // Set the group id on importGroup\n this.$store.commit('importGroupSet', groupId)\n\n // Get the group\n const group = await this.$store.dispatch('groupsFind', this.$route.query.group)\n\n // Set the group on the group-selector\n if (group) this.group = group\n\n // We're done so mark mounted as true\n this.mounted = true\n },\n computed: {\n ...mapGetters(['importGroup', 'importMatched']),\n overwrite: {\n get(): object {\n return this.$store.getters.importOverwrite\n },\n set(value: object): void {\n this.$store.commit('importOverwriteSet', value)\n }\n }\n },\n methods: {\n back(): void {\n this.$emit('back')\n },\n dialogsExist(): boolean {\n // Grab our app dialogs\n const app = this.$store.getters.dialogApp\n\n // Grab our confirm dialogs\n const confirm = this.$store.getters.dialogConfirm\n\n // Grab our message dialogs\n const message = this.$store.getters.dialogMessage\n\n // Grab our feature dialogs\n const feature = this.$store.getters.dialogFeature\n\n // If ANY of these have a length > 0 then return true\n return app.length || confirm.length || message.length || feature.length\n },\n groupCheckboxChanged(bool: boolean): void {\n // If unchecked and goto includes broadcasts\n if (!bool && this.goto && this.goto.includes('broadcast')) {\n // Notify user that hey won't be navigated back to broadcasts if no group is selected to import to\n this.popGroupUncheckedError()\n }\n // If the group checkbox is toggled off, reset importGroup\n if (!bool) this.$store.commit('importGroupSet', null)\n },\n next(): void {\n // Grab our group selector component\n const selector = this.$refs.groupSelector\n\n // If it exists, then blur it\n if (selector) selector.$refs.groupSelect.blur()\n\n // const dialogsExist = this.$nextTick(this.dialogsExist())\n this.$nextTick(() => {\n // Check if we already have a dialog, and if we do, do nothing\n if (this.dialogsExist()) return\n\n // If user checked the import to group box, make sure they selected a group\n if (this.groupCheckbox && !this.importGroup) {\n return this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Error',\n icon: 'mdi-alert',\n color: 'primary',\n text: 'Please select a group to import your contacts into!'\n })\n }\n\n // If import group is not set and query contains goto\n if (!this.$store.getters.importGroup && this.goto) {\n // Copy query object from router\n let query = Object.assign({}, this.$route.query)\n\n // Delete goto query param\n delete query.goto\n\n // Replace new router link with new query\n this.$router.replace({ query })\n }\n\n // Set the csv search (Phone Number by default)\n this.$store.commit('importSearchSet', this.selectedSearch)\n\n // Reset group checkbox\n this.groupCheckbox = null\n\n // Reset selected search\n this.selectedSearch = 'Phone Number'\n\n // Begin import in CsvImport\n this.$emit('next')\n })\n },\n groupSelected(group: Group): void {\n // When a group is selected in group-selector, set the importGroup\n this.$store.commit('importGroupSet', group.id)\n },\n popGroupUncheckedError(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Import into group unchecked',\n text: 'Not importing contacts from CSV to new or existing group will result in not being navigated back to broadcasts.',\n icon: 'mdi-help-circle',\n color: 'primary'\n })\n },\n overwriteHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Update Existing Contacts',\n text: 'Messagedesk will replace exisiting contact information with the fields provided in your .CSV file',\n icon: 'mdi-help-circle',\n color: 'primary'\n })\n },\n groupHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Update Existing Contacts',\n text: \"You can import your contact list from this .csv file directly into a group. Start by selecting an existing group that you've already made, or create a new one and directly import your contacts.\",\n icon: 'mdi-help-circle',\n color: 'primary'\n })\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepFour.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportStepFour.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportStepFour.vue?vue&type=template&id=0b835980&\"\nimport script from \"./CsvImportStepFour.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportStepFour.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 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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\ninstallComponents(component, {VBtn,VCheckbox,VCol,VIcon,VRow,VSelect})\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 Vue from 'vue'\nimport CsvImportStepOne from '@/components/CsvImportStepOne.vue'\nimport CsvImportStepTwo from '@/components/CsvImportStepTwo.vue'\nimport CsvImportStepThree from '@/components/CsvImportStepThree.vue'\nimport CsvImportStepFour from '@/components/CsvImportStepFour.vue'\nimport ProgressSpinner from '@/components/ProgressSpinner.vue'\nimport { mapGetters } from 'vuex'\nexport default Vue.extend({\n components: {\n CsvImportStepOne,\n CsvImportStepTwo,\n CsvImportStepThree,\n CsvImportStepFour,\n ProgressSpinner\n },\n data() {\n return {\n toolbar: {\n title: 'Import and Export Contacts',\n subtitle: null,\n left: [\n {\n title: 'Back',\n icon: 'mdi-chevron-left',\n back: '/settings',\n tooltip: 'Back',\n permission: 0\n }\n ],\n right: []\n },\n step: 1\n }\n },\n mounted() {\n // Grab the new group query from our path\n const newGroup = this.$route.query.new_group\n\n // IF it exists, then navigate to step 2\n if (newGroup) this.step = 2\n\n // Regardless, make sure we get our person properties and reset CSV\n this.$store.dispatch('personPropertiesGet')\n this.$store.commit('csvReset')\n },\n computed: {\n ...mapGetters(['csvFileName', 'csvImportProgress'])\n },\n methods: {\n async importExecute(): Promise {\n // Start csv progress immediately\n this.$store.commit('csvImportProgressSet', {\n percent: 0,\n message: 'Beginning CSV Import'\n })\n\n // Go back to step 1\n this.step = 1\n\n // If user came from broadcasts, pop message \n if (this.$route.query.goto == '/broadcasts/create') this.popRoutingDialog()\n\n // Set the csv mapping first, then we send the file\n const map = await this.$store.dispatch('csvMap')\n\n // If the request failed, do nothing\n if (!map) return\n\n // Else, upload the file to the API\n const response = await this.$store.dispatch('csvImport')\n\n // If the request failed, do nothing\n if (!response) return\n\n // Reset import group\n this.$store.commit('importGroupSet', null)\n\n // Fetch the person count form the api (to determine is this is the first import)\n const count = await this.$store.dispatch('personsCount')\n\n // If the request failed, do nothing\n if (!count) return\n },\n popRoutingDialog(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'CSV Importing',\n text: `Your contacts are being uploaded, You'll be notified when it's complete and will also be routed to broadcasts if you stay on this page.`,\n icon: 'mdi-help-circle',\n color: 'primary'\n })\n }\n },\n watch: {\n csvFileName(name: string): void {\n this.toolbar.subtitle = name\n },\n step(value: number): void {\n // If we get to step 2, make sure we reset step 2\n if (value === 2) this.$refs.csvStepTwo.resetInput()\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImport.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImport.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImport.vue?vue&type=template&id=2a47e70c&\"\nimport script from \"./CsvImport.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImport.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 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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VStepper } from 'vuetify/lib/components/VStepper';\nimport { VStepperContent } from 'vuetify/lib/components/VStepper';\ninstallComponents(component, {VCol,VRow,VStepper,VStepperContent})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticClass:\"pa-0\",attrs:{\"align\":\"center\"}},[(_vm.imgTop)?_c('v-img',{style:(_vm.imgTopStyle),attrs:{\"src\":_vm.imgTop,\"width\":_vm.imgTopWidth}}):(_vm.iconTop)?_c('div',[_c('v-icon',{attrs:{\"x-large\":\"\",\"color\":_vm.color}},[_vm._v(\" \"+_vm._s(_vm.iconTop)+\" \")])],1):_vm._e(),(!_vm.progress)?_c('v-icon',{attrs:{\"color\":_vm.color,\"size\":50}},[_vm._v(\" mdi-sync \")]):_c('v-progress-circular',{attrs:{\"indeterminate\":!_vm.progress || _vm.progress.percent === 0 || _vm.progress.total === 999999,\"value\":_vm.progress && _vm.progress.percent,\"size\":50,\"width\":5,\"color\":_vm.color,\"rotate\":-90}},[(_vm.progress && _vm.progress.total == 999999)?_c('span',[_vm._v(\"IND\")]):(_vm.progress)?_c('span',[_vm._v(\" \"+_vm._s(_vm.progress.percent + '%')+\" \")]):_vm._e()]),(_vm.imgBottom)?_c('v-img',{style:(_vm.imgBottomStyle),attrs:{\"src\":_vm.imgBottom,\"width\":_vm.imgBottomWidth}}):(_vm.iconBottom)?_c('div',[_c('v-icon',{attrs:{\"x-large\":\"\",\"color\":_vm.color}},[_vm._v(\" \"+_vm._s(_vm.iconBottom)+\" \")])],1):_vm._e(),(_vm.progress && _vm.progress.message)?_c('div',{staticClass:\"mt-2\",class:(_vm.color + \"--text\")},[_vm._v(\" \"+_vm._s(_vm.progress.message)+\" \")]):_vm._e()],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\nimport Vue from 'vue'\nexport default Vue.extend ({\n props: {\n // The name of the vuex getter that holds progress data\n bind: {\n type: String,\n required: true\n },\n // The color of the circular spinner\n color: {\n type: String,\n default: 'primary'\n },\n // The icon displayed above the spinner\n iconTop: {\n type: String,\n default: null\n },\n // The icon displayed below the spinner\n iconBottom: {\n type: String,\n default: null\n },\n // The image displayed above the progress circular (overrides iconTop)\n imgTop: {\n type: String,\n default: null\n },\n // Style applied to the top image\n imgTopStyle: {\n type: String,\n default: null\n },\n // The width of the image displayed above the progress circular\n imgTopWidth: {\n type: String,\n default: '230px'\n },\n // The image displayed below the progress circular (overrides iconBottom)\n imgBottom: {\n type: String,\n default: null\n },\n // Style applied to the bottom image\n imgBottomStyle: {\n type: String,\n default: null\n },\n // The width of the image displayed below the progress circular\n imgBottomWidth: {\n type: String,\n default: '160px'\n }\n },\n computed: {\n progress(): object {\n return this.$store.getters[this.bind]\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressSpinner.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressSpinner.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProgressSpinner.vue?vue&type=template&id=061bbe43&\"\nimport script from \"./ProgressSpinner.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProgressSpinner.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 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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\ninstallComponents(component, {VCol,VIcon,VImg,VProgressCircular})\n","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!./CsvImportTile.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pb-6\"},[(_vm.importReport.updated.count > 0)?_c('v-col',[_c('div',{staticClass:\"grey--text text--darken-2\"},[_vm._v(\" Contacts Updated: \"+_vm._s(_vm.importReport.updated.count)+\" \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.contactsUpdatedHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-divider',{staticClass:\"py-2\"}),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.downloadUpdated}},[_vm._v(\" Download Report \")])],1)],1):_vm._e(),(_vm.importReport.created.count > 0)?_c('v-col',{staticClass:\"pt-4\"},[_c('div',{staticClass:\"grey--text text--darken-2\"},[_vm._v(\" Contacts Created: \"+_vm._s(_vm.importReport.created.count)+\" \")]),_c('v-divider',{staticClass:\"py-2\"}),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.downloadCreated}},[_vm._v(\" Download Report \")])],1)],1):_vm._e(),(_vm.importReport.not_found.count > 0)?_c('v-col',{staticClass:\"pt-4\"},[_c('div',{staticClass:\"grey--text text--darken-2\"},[_vm._v(\" Not Found: \"+_vm._s(_vm.importReport.not_found.count)+\" \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.contactsNotFoundHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-divider',{staticClass:\"py-2\"}),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.downloadNotFound}},[_vm._v(\" Download Report \")])],1)],1):_vm._e(),(_vm.importReport.duplicates.count > 0)?_c('v-col',{staticClass:\"pt-4\"},[_c('div',{staticClass:\"grey--text text--darken-2\"},[_vm._v(\" Duplicates Found: \"+_vm._s(_vm.importReport.duplicates.count)+\" \"),_c('v-btn',{attrs:{\"icon\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.contactsDuplicatesHelp()}}},[_c('v-icon',[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-divider',{staticClass:\"py-2\"}),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.downloadDuplicates}},[_vm._v(\" Download Report \")])],1)],1):_vm._e(),(_vm.importReport.not_updated.count > 0)?_c('v-col',{staticClass:\"pt-4\"},[_c('div',{staticClass:\"grey--text text--darken-2\"},[_vm._v(\" Not Updated: \"+_vm._s(_vm.importReport.not_updated.count)+\" \"),_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.contactsNotUpdatedHelp()}}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-help-circle\")])],1)],1),_c('v-divider',{staticClass:\"py-2\"}),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.downloadNotUpdated}},[_vm._v(\" Download Report \")])],1)],1):_vm._e()],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\n\n\n\n\nimport Vue from 'vue'\nimport CsvImportReport from '@/types/CsvImportReport.interface'\nexport default Vue.extend({\n computed: {\n importReport(): CsvImportReport {\n return this.$store.getters.importReport\n }\n },\n methods: {\n contactsDuplicatesHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Duplicate Contacts',\n text: \"We found more than one contact for each of these CSV rows. Use the 'Merge Contacts' feature in 'Settings' to merge your duplicate contacts.\"\n })\n },\n contactsNotFoundHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Contacts Not Found',\n text: 'We could not find a contact for each of these CSV rows. Contact creation when connected to external accounting software must be done manually. Once the contacts are created, you may use the CSV feature to update their information.'\n })\n },\n contactsUpdatedHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Contacts Updated',\n text: 'This is a count of all contacts that MessageDesk successfully updated with new data from your CSV file.'\n })\n },\n contactsNotUpdatedHelp(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Contacts Not Updated',\n text: `These contacts were found but not updated because the contact overwrite option was disabled. If you would like to update contacts that already exist, check the 'Update existing contacts' box in step 4 of the import process.\\nIf this doesn't resolve your issue, please read our CSV Troubleshooting Guide.`\n })\n },\n csvFailureLink(): string {\n // Assemble the support link\n return `${process.env.VUE_APP_URL_LEARN}/en/articles/4547566-troubleshooting-your-csv-when-importing-contacts`\n },\n downloadCreated(): void {\n const url = this.importReport.created.file.tempUrl\n this.$store.dispatch('csvDownload', url)\n },\n downloadDuplicates(): void {\n const url = this.importReport.duplicates.file.tempUrl\n this.$store.dispatch('csvDownload', url)\n },\n downloadNotUpdated(): void {\n const url = this.importReport.not_updated.file.tempUrl\n this.$store.dispatch('csvDownload', url)\n },\n downloadNotFound(): void {\n const url = this.importReport.not_found.file.tempUrl\n this.$store.dispatch('csvDownload', url)\n },\n downloadUpdated(): void {\n const url = this.importReport.updated.file.tempUrl\n this.$store.dispatch('csvDownload', url)\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportReport.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvImportReport.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvImportReport.vue?vue&type=template&id=1260fdf4&\"\nimport script from \"./CsvImportReport.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvImportReport.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 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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VBtn,VCol,VContainer,VDivider,VIcon})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_vm._v(\" \"+_vm._s(_vm.isTemplate ? \"Choose what fields you would like in your template\" : \"Select at least one field to export\")+\" \")]),_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('div',{staticStyle:{\"max-height\":\"400px\",\"overflow-y\":\"scroll\",\"overflow-x\":\"hidden\"}},[_c('v-row',{staticStyle:{\"padding-left\":\"30px\",\"height\":\"40px\"}},[_c('v-checkbox',{attrs:{\"color\":\"primary\",\"label\":\"Select All\"},on:{\"change\":function($event){return _vm.selectAll($event)}}})],1),_c('v-divider',{staticStyle:{\"margin-top\":\"20px\"}}),_vm._l((_vm.properties),function(prop,i){return _c('v-row',{key:i,staticStyle:{\"padding-left\":\"30px\",\"height\":\"40px\"}},[_c('v-checkbox',{attrs:{\"disabled\":prop.disabled,\"value\":prop,\"label\":prop.name,\"color\":\"primary\"},model:{value:(_vm.selectedProperties),callback:function ($$v) {_vm.selectedProperties=$$v},expression:\"selectedProperties\"}})],1)})],2)])],1),_c('v-row',{staticClass:\"py-4\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-btn',{staticStyle:{\"text-transform\":\"none\"},attrs:{\"outlined\":\"\",\"rounded\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.dispatchExport}},[_c('v-icon',{staticClass:\"pr-2\"},[_vm._v(\"mdi-cloud-download\")]),_vm._v(\" \"+_vm._s(_vm.isTemplate ? 'Download Template' : 'Confirm Export')+\" \")],1)],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\nimport Vue from 'vue'\nimport PersonProperty from '@/types/PersonProperty.interface'\nimport { mapGetters } from 'vuex'\nexport default Vue.extend({\n props: {\n isTemplate: {\n type: Boolean,\n required: false,\n default: null\n }\n },\n data() {\n return {\n selectedProperties: []\n }\n },\n mounted() {},\n computed: {\n ...mapGetters([\n 'personProperties',\n 'qboHasAccount',\n 'dataProviderPhones',\n 'xeroHasAccount'\n ]),\n properties(): PersonProperty[] {\n // Check if we have a data provider\n const provider = this.qboHasAccount || this.xeroHasAccount\n\n // If we have a provider AND properties AND provider phones AND this is NOT a template, add provider phones to properties\n const cond =\n provider &&\n this.personProperties &&\n this.dataProviderPhones &&\n !this.isTemplate\n\n // If a qbo or xero tenant, add home, work, and home fax phones to export\n if (cond) return this.personProperties.concat(this.dataProviderPhones)\n\n // If not qbo or xero, push default person properties\n if (this.personProperties) return this.personProperties\n\n // Return null if person properties not loaded yet\n return null\n }\n },\n methods: {\n dispatchExport(): void {\n // User has to select at least 1 field to export\n if (this.selectedProperties.length < 1) {\n return this.$store.dispatch('dialogOpen', {\n type: 'MESSAGE',\n title: 'Error',\n icon: 'mdi-alert',\n color: 'red',\n text: 'Please select at least one field to export'\n })\n }\n\n // If a CSV template download and the 'Phone Number' field is not chosen, pop warning dialog\n if (this.isTemplate) {\n // Try to find Phone Number property\n const mobilePhone = this.selectedProperties.find(\n (property: PersonProperty) => property.name === 'Phone Number'\n )\n\n // If no phone number pop dialog\n if (!mobilePhone)\n return this.$store.dispatch('dialogOpen', {\n type: 'CONFIRM',\n title: 'Warning',\n text: \"You chose not to include 'Phone Number' in your template. You will be required to match this field to a column from your CSV file in the next step. Are you sure you want to continue?\",\n icon: 'mdi-alert',\n color: 'primary',\n callback: (dialog_result: boolean): void => {\n // If false, do nothing\n if (!dialog_result) return\n\n // Begin export\n this.$emit('submit', this.selectedProperties)\n }\n })\n }\n\n // Begin export\n this.$emit('submit', this.selectedProperties)\n },\n selectAll(bool: boolean): void {\n // Check if we have a provider\n const provider = this.qboHasAccount || this.xeroHasAccount\n\n // Our condition is if we have a provider and this is NOT a template\n const cond = provider && !this.isTemplate\n\n // If select all = no, set selectedProperties to empty array (uncheck everything)\n if (!bool) this.selectedProperties = []\n // If provider is false, then set our selected properties to person properties\n else if (!cond) this.selectedProperties = this.personProperties\n // else, if select all = yes, set selectedProperties to all personProperties (check everything)\n else {\n this.selectedProperties = this.personProperties.concat(\n this.dataProviderPhones\n )\n }\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvExportFields.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CsvExportFields.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CsvExportFields.vue?vue&type=template&id=8050aca6&\"\nimport script from \"./CsvExportFields.vue?vue&type=script&lang=ts&\"\nexport * from \"./CsvExportFields.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 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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCheckbox,VCol,VDivider,VIcon,VRow})\n"],"sourceRoot":""}