{"version":3,"sources":["webpack:///./src/views/awaitingApproval/awaitingApproval.vue?39ac","webpack:///./src/views/awaitingApproval/awaitingApproval.ts","webpack:///./src/views/awaitingApproval/awaitingApproval.ts?4e2e","webpack:///./src/views/awaitingApproval/awaitingApproval.vue","webpack:///./src/views/awaitingApproval/awaitingApproval.scss?3bf0"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","expression","attrs","loading","_e","_v","model","email","_s","workEmail","sendGridEmail","sendGridFrom","serverData","studioTitle","staticRenderFns","AwaitingApprovalComponent","_StudioPageBase","_inherits","_super","_createSuper","_this","_classCallCheck","options","Globals","NewRequestAccess","_createClass","key","get","ServerDataModule","_this2","_get","_getPrototypeOf","prototype","call","Debug","setDebugModule","alias","Browser","getRouteParam","$route","studio","fullName","getRequestAccessData","checkStudioAccess","setInterval","log","loaded","_getRequestAccessData","_asyncToGenerator","regeneratorRuntime","mark","_callee","response","message","wrap","_context","prev","next","PlayerApi","requestAccessData","sent","Object","assign","t0","error","PlayerUtil","redirectToError","$router","finish","stop","apply","arguments","Util","showToast","StudioPageBase","__decorate","Component","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,UAAU,CAACG,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOV,EAAW,QAAEW,WAAW,YAAYC,MAAM,CAAC,QAAU,mBAAmB,KAAO,qFAA2FZ,EAAIa,QAA4lCb,EAAIc,KAAvlCV,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,KAAK,CAACJ,EAAIe,GAAG,qBAAqBX,EAAG,IAAI,CAACE,YAAY,6BAA6B,CAACN,EAAIe,GAAG,oEAAoEX,EAAG,IAAI,CAACQ,MAAM,CAAC,KAAO,UAAYZ,EAAIgB,MAAMC,Q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GACVmB,OAAKC,UAAUpB,GAAW,uBAC7BtC,EA1DyC,CAAS2D,QAAlC3D,EAAyB4D,eAAA,CAD7CC,QACoB7D,WCX8U,I,wBCQ/V8D,EAAY,eACd,EACAxF,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAA+D,E,2CCnBf","file":"js/chunk-e01cca6e.18e16306.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"awaiting-approval-wrapper\"},[_c('BlockUI',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"message\":\"Loading data ...\",\"html\":\"
\"}}),(!_vm.loading)?_c('div',{staticClass:\"awaiting-approval-content\"},[_c('h2',[_vm._v(\"Awaiting Access\")]),_c('p',{staticClass:\"awaiting-approval-message\"},[_vm._v(\"\\n Please wait while access is being granted to your \"),_c('a',{attrs:{\"href\":'mailto:' + _vm.model.email}},[_vm._v(_vm._s(_vm.model.email))]),_vm._v(\" account.\"),_c('br'),_c('br'),_vm._v(\"\\n\\n You will be contacted by your work email \"),_c('a',{attrs:{\"href\":'mailto:' + _vm.model.workEmail}},[_vm._v(_vm._s(_vm.model.workEmail))]),_vm._v(\" to confirm your email.\"),_c('br'),_c('br'),_vm._v(\"\\n\\n Please ensure your spam blockers allow emails from \"),_c('a',{attrs:{\"href\":'mailto:' + _vm.model.sendGridEmail}},[_vm._v(_vm._s(_vm.model.sendGridFrom)+\" <\"+_vm._s(_vm.model.sendGridEmail)+\">\")]),_vm._v(\".\"),_c('br'),_c('br'),_vm._v(\"\\n\\n Once confirmed you will have access to the \"),_c('span',{staticClass:\"studio-title\"},[_vm._v(_vm._s(_vm.serverData.studioTitle))]),_vm._v(\" portal.\"),_c('br'),_c('br'),_vm._v(\"\\n\\n You can now close this page and await the email confirmation request.\\n \")])]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport StudioPageBase from '@/support/studioPageBase';\r\nimport { Component, Watch } from 'vue-property-decorator';\r\nimport Globals from '@/globals';\r\nimport PlayerApi from '@/support/playerApi';\r\nimport PlayerUtil from '@/support/playerUtil';\r\nimport Util from '@/support/utility';\r\nimport Browser from '@/support/browser';\r\nimport { ServerDataModule } from '@/store/serverData';\r\n\r\n@Component\r\nexport default class AwaitingApprovalComponent extends StudioPageBase {\r\n options = {\r\n };\r\n\r\n get serverData() {\r\n return ServerDataModule.serverData;\r\n }\r\n\r\n model = Globals.NewRequestAccess;\r\n\r\n loading = true;\r\n\r\n created() {\r\n super.created('awaitingApproval', true);\r\n\r\n Debug.setDebugModule('AwaitingApproval', this);\r\n\r\n this.alias = Browser.getRouteParam(this.$route, 'studio', null);\r\n\r\n this.model.studio = this.alias;\r\n this.model.email = this.serverData.email;\r\n this.model.fullName = this.serverData.fullName;\r\n\r\n this.getRequestAccessData();\r\n\r\n this.checkStudioAccess(this.alias);\r\n\r\n setInterval(() => {\r\n this.checkStudioAccess(this.alias);\r\n }, 5 * 60 * 1000);\r\n }\r\n\r\n mounted() {\r\n super.mounted();\r\n\r\n Debug.log(\"awaitingApproval mounted\");\r\n }\r\n\r\n protected onLoaded(loaded: boolean) {\r\n super.onLoaded(loaded);\r\n }\r\n\r\n async getRequestAccessData() {\r\n try {\r\n let response = await PlayerApi.requestAccessData(this.alias);\r\n Object.assign(this.model, response);\r\n } catch (err) {\r\n let message = err.message || 'ERROR';\r\n Debug.error('awaitingApproval - getRequestAccessData Failed: ' + message);\r\n\r\n PlayerUtil.redirectToError(this.$router);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n testShowToast(message) {\r\n Util.showToast(message || 'Missing message');\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./awaitingApproval.ts?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./awaitingApproval.ts?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./awaitingApproval.vue?vue&type=template&id=72b71006\"\nimport script from \"./awaitingApproval.ts?vue&type=script&lang=js&external\"\nexport * from \"./awaitingApproval.ts?vue&type=script&lang=js&external\"\nimport style0 from \"./awaitingApproval.scss?vue&type=style&index=0&prod&lang=scss&external\"\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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./awaitingApproval.scss?vue&type=style&index=0&prod&lang=scss&external\""],"sourceRoot":""}