{"version":3,"sources":["webpack:///./src/views/Migration.vue?6f41","webpack:///./src/views/Migration.vue","webpack:///./src/views/Migration.vue?5e01","webpack:///./src/views/Migration.vue?9a69"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","toolbar","staticClass","staticStyle","_v","isConnected","$vuetify","breakpoint","xsOnly","on","$event","popMeetingPrompt","popConnectionPrompt","popMigratePrompt","popPhonePrompt","staticRenderFns","Vue","extend","data","loading","title","left","icon","back","tooltip","permission","feature","right","mounted","v2Setting","$store","getters","settingGet","connected","embedCalendly","document","createElement","setAttribute","head","appendChild","calendlyCSS","methods","dispatch","type","color","width","component","props","step","closeable","closeOnSubmit","callback","Calendly","initPopupWidget","url","VBtn","VCol","VRow"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,QAAUN,EAAIO,UAAU,CAACH,EAAG,QAAQ,CAACI,YAAY,kDAAkDC,YAAY,CAAC,YAAY,UAAU,CAACL,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACI,YAAY,0CAA0CC,YAAY,CAAC,cAAc,YAAY,YAAY,OAAO,cAAc,MAAM,cAAc,OAAO,aAAa,OAAO,iBAAiB,SAAS,MAAQ,YAAY,CAACT,EAAIU,GAAG,sBAAsBN,EAAG,QAAQ,CAACI,YAAY,0CAA0CC,YAAY,CAAC,cAAc,YAAY,YAAY,OAAO,cAAc,MAAM,cAAc,OAAO,aAAa,OAAO,iBAAiB,SAAS,MAAQ,YAAY,CAACT,EAAIU,GAAG,yCAAyCN,EAAG,QAAQ,CAACI,YAAY,gDAAgD,CAACJ,EAAG,MAAM,CAACK,YAAY,CAAC,cAAc,YAAY,YAAY,OAAO,cAAc,MAAM,cAAc,OAAO,aAAa,OAAO,iBAAiB,SAAS,MAAQ,YAAY,CAACT,EAAIU,GAAG,mCAAmCN,EAAG,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KAAM,KAEVC,WAAW,KAGnBnC,eAzCK,WA0CDnB,KAAKmC,OAAOY,SAAS,aAAc,CAC/BC,KAAM,MACNrB,KAAM,YACNF,MAAO,uBACPwB,MAAO,UACPC,MAAO,IACPC,UAAW,iBACXC,MAAO,CACHC,KAAM,KAEVC,WAAW,QCtKyW,I,qECOhYH,EAAY,eACd,EACArD,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAA+B,EAAiB,QAOhC,IAAkBA,EAAW,CAACS,OAAA,KAAKC,OAAA,KAAKC,OAAA","file":"js/migration.34ff846c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('page-template',{attrs:{\"toolbar\":_vm.toolbar}},[_c('v-row',{staticClass:\"flex-column justify-center align-center mx-auto\",staticStyle:{\"max-width\":\"600px\"}},[_c('v-col',[_c('v-row',{staticClass:\"flex-column justify-center align-center\",staticStyle:{\"font-family\":\"gt-alpina\",\"font-size\":\"32px\",\"font-weight\":\"400\",\"line-height\":\"40px\",\"text-align\":\"left\",\"letter-spacing\":\"0.04em\",\"color\":\"#000000\"}},[_vm._v(\" Migrate to 2.0 \")]),_c('v-row',{staticClass:\"flex-column justify-center align-center\",staticStyle:{\"font-family\":\"sofia-pro\",\"font-size\":\"18px\",\"font-weight\":\"400\",\"line-height\":\"28px\",\"text-align\":\"left\",\"letter-spacing\":\"0.04em\",\"color\":\"#000000\"}},[_vm._v(\" Migrating is a 4 step experience: \")]),_c('v-row',{staticClass:\"flex-column justify-center align-center pa-4\"},[_c('div',{staticStyle:{\"font-family\":\"sofia-pro\",\"font-size\":\"16px\",\"font-weight\":\"400\",\"line-height\":\"24px\",\"text-align\":\"left\",\"letter-spacing\":\"0.02em\",\"color\":\"#4D4D4D\"}},[_vm._v(\" Step 1: Setup a 2.0 Account \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"large\":\"\",\"disabled\":_vm.isConnected,\"width\":_vm.$vuetify.breakpoint.xsOnly ? '100%' : 200},on:{\"click\":function($event){return _vm.popMeetingPrompt()}}},[_vm._v(\" Schedule a setup call \")])],1),_c('v-row',{staticClass:\"flex-column justify-center align-center pa-4\"},[_c('div',{staticStyle:{\"font-family\":\"sofia-pro\",\"font-size\":\"16px\",\"font-weight\":\"400\",\"line-height\":\"24px\",\"text-align\":\"left\",\"letter-spacing\":\"0.02em\",\"color\":\"#4D4D4D\"}},[_vm._v(\" Step 2: Connect to 2.0 \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"large\":\"\",\"disabled\":_vm.isConnected,\"width\":_vm.$vuetify.breakpoint.xsOnly ? '100%' : 200},on:{\"click\":function($event){return _vm.popConnectionPrompt()}}},[_vm._v(\" Connect with 2.0 \")])],1),_c('v-row',{staticClass:\"flex-column justify-center align-center pa-4\"},[_c('div',{staticStyle:{\"font-family\":\"sofia-pro\",\"font-size\":\"16px\",\"font-weight\":\"400\",\"line-height\":\"24px\",\"text-align\":\"left\",\"letter-spacing\":\"0.02em\",\"color\":\"#4D4D4D\"}},[_vm._v(\" Step 3: Import Data from 1.0 to 2.0 \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"large\":\"\",\"disabled\":!_vm.isConnected,\"width\":_vm.$vuetify.breakpoint.xsOnly ? '100%' : 200},on:{\"click\":function($event){return _vm.popMigratePrompt()}}},[_vm._v(\" Begin Data Migration \")])],1),_c('v-row',{staticClass:\"flex-column justify-center align-center pa-4\"},[_c('div',{staticStyle:{\"font-family\":\"sofia-pro\",\"font-size\":\"16px\",\"font-weight\":\"400\",\"line-height\":\"24px\",\"text-align\":\"left\",\"letter-spacing\":\"0.02em\",\"color\":\"#4D4D4D\"}},[_vm._v(\" Step 4: Migrate Phone Number \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"large\":\"\",\"disabled\":!_vm.isConnected,\"width\":_vm.$vuetify.breakpoint.xsOnly ? '100%' : 200},on:{\"click\":function($event){return _vm.popPhonePrompt()}}},[_vm._v(\" Migrate Phone Number \")])],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\nimport Vue from 'vue'\nexport default Vue.extend({\n data() {\n return {\n isConnected: false,\n loading: false,\n toolbar: {\n title: 'Migration',\n left: [\n {\n title: 'Back',\n icon: 'mdi-chevron-left',\n back: '/settings',\n tooltip: 'Back',\n permission: 0,\n feature: null\n }\n ],\n right: []\n }\n }\n },\n mounted() {\n // This setting enables us to prevent users from continuously trying to reconnect their tenant to workspaces, \n // workflow will need to be adjusted when we allow multiple workspaces in v2, will need 'disconnect' functionality \n const v2Setting = this.$store.getters.settingGet('canMigrateToV2')\n\n if (!v2Setting.data) return\n \n this.isConnected = v2Setting.data.connected\n\n // Embed script for calendly\n let embedCalendly = document.createElement('script')\n embedCalendly.setAttribute(\n 'src',\n 'https://assets.calendly.com/assets/external/widget.js'\n )\n embedCalendly.setAttribute('async', 'async')\n document.head.appendChild(embedCalendly)\n\n // Embed calendly css stylesheet\n let calendlyCSS = document.createElement('link')\n calendlyCSS.setAttribute(\n 'href',\n 'https://assets.calendly.com/assets/external/widget.css'\n )\n calendlyCSS.setAttribute('rel', 'stylesheet')\n document.head.appendChild(calendlyCSS)\n },\n methods: {\n // This function is the only one with the callback as all we care about is if they're connected or not, doing this allows us to \n // disable the connect button only upon successful submission\n popConnectionPrompt(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'APP',\n icon: 'mdi-connection',\n title: 'Connect With 2.0',\n color: 'primary',\n width: 600,\n component: 'migration-form',\n props: {\n step: \"1\"\n },\n closeable: true,\n closeOnSubmit: true, \n callback: () => {\n this.isConnected = true\n }\n })\n },\n popMeetingPrompt(): void {\n // @ts-ignore\n Calendly.initPopupWidget({\n url: 'https://calendly.com/d/cqdk-krr-g3n/messagedesk-account-meeting'\n })\n },\n popMigratePrompt(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'APP',\n icon: 'mdi-folder-move',\n title: 'Begin Data Migraiton',\n color: 'primary',\n width: 600,\n component: 'migration-form',\n props: {\n step: \"2\"\n },\n closeable: true\n })\n },\n popPhonePrompt(): void {\n this.$store.dispatch('dialogOpen', {\n type: 'APP',\n icon: 'mdi-phone',\n title: 'Migrate Phone Number',\n color: 'primary',\n width: 600,\n component: 'migration-form',\n props: {\n step: \"3\"\n },\n closeable: true\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!./Migration.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!./Migration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Migration.vue?vue&type=template&id=6fb48772&\"\nimport script from \"./Migration.vue?vue&type=script&lang=ts&\"\nexport * from \"./Migration.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 { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VRow})\n"],"sourceRoot":""}