{"version":3,"sources":["webpack:///./src/views/checkin/checkin.view.vue?f964","webpack:///./src/views/checkin/checkin.view.vue","webpack:///./src/views/checkin/checkin.view.vue?e278","webpack:///./src/assets/client sync ^\\.\\/.*\\/style\\.json$","webpack:///./src/views/checkin/checkin.view.vue?b8e5","webpack:///./src/views/checkin/checkin.view.vue?163f","webpack:///./src/views/checkin/checkin.view.vue?6cd7"],"names":["_hoisted_1","id","class","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_4","key","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","render","_ctx","_cache","$props","$setup","$data","$options","_ctx$clientName","_component_loader_display","_resolveComponent","_component_router_view","_openBlock","_createElementBlock","isLoading","_createCommentVNode","logoUrl","src","_toDisplayString","clientName","_createBlock","CheckinView","Vue","constructor","kioskModule","clientLogoUrl","_kioskModule$clientLo","clientLocationName","created","this","setOnSite","$route","params","onsite","query","unassigned","setUnassigned","initSession","orderKey","resetSession","getClientLocationData","clientCode","then","res","Error","setStyle","$router","push","name","getOrderData","_kioskModule$session$","expiredOrder","session","lastPage","goToAppointments","catch","e","console","error","log","finally","getClientStyle","require","style","document","documentElement","setProperty","__decorate","Options","components","__exports__","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","keys","Object","resolve","module","exports","content","__esModule","default","i","locals","add","___CSS_LOADER_API_IMPORT___"],"mappings":"oIAEA,MAAMA,EAAa,CACjBC,GAAI,iBACJC,MAAO,YAEHC,EAAa,CAAED,MAAO,YACtBE,EAA0BC,gCAAoB,MAAO,CAAEH,MAAO,UAAY,MAAO,GACjFI,EAAa,CACjBC,IAAK,EACLL,MAAO,oBAEHM,EAAa,CAAEN,MAAO,YACtBO,EAAa,CACjBF,IAAK,EACLL,MAAO,2BAEHQ,EAAa,CAAC,OACdC,EAAa,CACjBJ,IAAK,EACLL,MAAO,wBAEHU,EAA0BP,gCAAoB,MAAO,CAAEH,MAAO,UAAY,MAAO,GAEjF,SAAUW,EAAOC,EAAUC,EAA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uBAAyB6B,EAAM,KAEjD,MADAjB,EAAEqB,KAAO,mBACHrB,EAEP,OAAOe,EAAIE,GAEZD,EAAeM,KAAO,WACrB,OAAOC,OAAOD,KAAKP,IAEpBC,EAAeQ,QAAUN,EACzBO,EAAOC,QAAUV,EACjBA,EAAenF,GAAK,Q,oCCtBpB,W,qBCGA,IAAI8F,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOK,EAAIH,EAAS,MAC7DA,EAAQI,SAAQN,EAAOC,QAAUC,EAAQI,QAE5C,IAAIC,EAAM,EAAQ,QAAkEH,QACvEG,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,2FCR5E,IAAIM,EAA8B,EAAQ,QAC1CP,EAAUO,GAA4B,GAEtCP,EAAQnC,KAAK,CAACkC,EAAOK,EAAI,4lBAA6lB,KAEtnBL,EAAOC,QAAUA","file":"js/checkin-1.55c7742144f5b095585e.js","sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = {\n id: \"checkinWrapper\",\n class: \"flex-col\"\n}\nconst _hoisted_2 = { class: \"flex-row\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"gutter\" }, null, -1)\nconst _hoisted_4 = {\n key: 0,\n class: \"content flex-col\"\n}\nconst _hoisted_5 = { class: \"logo-hdr\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"img-wrapper flex-center\"\n}\nconst _hoisted_7 = [\"src\"]\nconst _hoisted_8 = {\n key: 1,\n class: \"def-client-name bold\"\n}\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"gutter\" }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_loader_display = _resolveComponent(\"loader-display\")!\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"main\", _hoisted_4, [\n _createElementVNode(\"header\", _hoisted_5, [\n (_ctx.logoUrl)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"img\", { src: _ctx.logoUrl }, null, 8, _hoisted_7)\n ]))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_8, _toDisplayString(_ctx.clientName ?? ''), 1))\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_component_loader_display, { key: 0 }))\n : (_openBlock(), _createBlock(_component_router_view, { key: 1 }))\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_9\n ])\n ]))\n}","\nimport { kioskModule } from '@/store/kiosk.vuex-module';\nimport { Options, Vue } from 'vue-class-component';\n\n@Options({\n\tname: 'CheckinView',\n\tcomponents: {},\n})\nexport default class CheckinView extends Vue {\n\tisLoading = false;\n\n\tget logoUrl() {\n\t\treturn kioskModule.clientLogoUrl;\n\t}\n\n\tget clientName() {\n\t\treturn `${kioskModule.clientName} ${kioskModule.clientLocationName ?? ''}`;\n\t}\n\n\tcreated() {\n\t\tthis.isLoading = true;\n\t\tkioskModule.setOnSite(this.$route.params.onsite === 'true');\n\n\t\tif (this.$route.query.unassigned) kioskModule.setUnassigned(true);\n\n\t\tkioskModule.initSession();\n\t\tif ((kioskModule.orderKey && kioskModule.orderKey != this.$route.params.orderKey) || this.$route.params.orderKey == '0') {\n\t\t\tkioskModule.resetSession();\n\t\t}\n\n\t\tkioskModule\n\t\t\t.getClientLocationData(this.$route.params.clientCode as string)\n\t\t\t.then((res) => {\n\t\t\t\tif (res) {\n\t\t\t\t\tthis.setStyle(res);\n\t\t\t\t\tif (this.$route.query.unassigned) {\n\t\t\t\t\t\t// no order associated with consent\n\t\t\t\t\t\tthis.$router.push({ name: 'AdultCheckin', query: { ...this.$route.query } });\n\t\t\t\t\t} else if (this.$route.params.orderKey != '0') {\n\t\t\t\t\t\t// lookup order\n\t\t\t\t\t\tkioskModule.getOrderData(this.$route.params.orderKey as string).then((res) => {\n\t\t\t\t\t\t\tif (res) {\n\t\t\t\t\t\t\t\tif (kioskModule.expiredOrder) this.$router.push({ name: 'Expired' });\n\t\t\t\t\t\t\t\telse this.$router.push({ name: kioskModule.session.lastPage ?? 'AdultCheckin', query: { ...this.$route.query } });\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tkioskModule.resetSession();\n\t\t\t\t\t\t\t\tthis.goToAppointments();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else this.goToAppointments();\n\t\t\t\t} else throw new Error(`Error getting client '${this.$route.params.clientCode}' location data.`);\n\t\t\t})\n\t\t\t.catch((e) => {\n\t\t\t\tconsole.error(e);\n\t\t\t\tkioskModule.resetSession();\n\t\t\t\tconsole.log('here');\n\t\t\t\tthis.$router.push({ name: 'PageNotFound' });\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tthis.isLoading = false;\n\t\t\t});\n\t}\n\n\t// go to appointments list\n\tgoToAppointments() {\n\t\tthis.$router.push({\n\t\t\tname: 'AppointmentsView',\n\t\t});\n\t}\n\n\tgetClientStyle(key: number) {\n\t\ttry {\n\t\t\treturn require(`@/assets/client/${key}/style.json`);\n\t\t} catch (e) {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tsetStyle(key: number) {\n\t\t// set global css variables\n\t\tconst style = this.getClientStyle(key);\n\t\tconsole.log('Loaded style', style);\n\t\tif (style) {\n\t\t\tdocument.documentElement.style.setProperty('--theme-color', style['--theme-color']);\n\t\t}\n\t}\n}\n","import { render } from \"./checkin.view.vue?vue&type=template&id=34505b3d&ts=true\"\nimport script from \"./checkin.view.vue?vue&type=script&lang=ts\"\nexport * from \"./checkin.view.vue?vue&type=script&lang=ts\"\n\nimport \"./checkin.view.vue?vue&type=style&index=0&id=34505b3d&lang=scss\"\n\nimport exportComponent from \"/agent/_work/1/s/Customer/onlinekiosk_vue_js/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","var map = {\n\t\"./1/style.json\": \"c706\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"63cb\";","export * from \"-!../../../node_modules/vue-style-loader/index.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-3!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./checkin.view.vue?vue&type=style&index=0&id=34505b3d&lang=scss\"","// style-loader: Adds some css to the DOM by adding a