{"version":3,"sources":["webpack:///./src/views/checkin/checkin.view.vue?84d2","webpack:///./src/views/checkin/checkin.view.vue","webpack:///./src/views/checkin/checkin.view.vue?e278","webpack:///./src/views/checkin/checkin.view.vue?256d","webpack:///./src/views/checkin/checkin.view.vue?bef1","webpack:///./src/assets/client sync ^\\.\\/.*\\/style\\.json$","webpack:///./src/views/checkin/checkin.view.vue?93e3"],"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","name","Error","setStyle","$router","push","getOrderData","_kioskModule$session$","console","log","expiredOrder","session","lastPage","goToAppointments","catch","e","link","error","finally","getClientStyle","require","style","document","documentElement","setProperty","__decorate","Options","components","__exports__","content","__esModule","default","module","i","locals","exports","add","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","keys","Object","resolve","___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,EA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StE,KAErD,gB,uBCNf,IAAIuE,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACG,EAAOC,EAAIJ,EAAS,MAC7DA,EAAQK,SAAQF,EAAOG,QAAUN,EAAQK,QAE5C,IAAIE,EAAM,EAAQ,QAAkEL,QACvEK,EAAI,WAAYP,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,oCCT5E,W,uBCAA,IAAIQ,EAAM,CACT,iBAAkB,QAInB,SAASC,EAAeC,GACvB,IAAI7F,EAAK8F,EAAsBD,GAC/B,OAAOE,EAAoB/F,GAE5B,SAAS8F,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAEL,EAAKE,GAAM,CACpC,IAAIxB,EAAI,IAAIb,MAAM,uBAAyBqC,EAAM,KAEjD,MADAxB,EAAE4B,KAAO,mBACH5B,EAEP,OAAOsB,EAAIE,GAEZD,EAAeM,KAAO,WACrB,OAAOC,OAAOD,KAAKP,IAEpBC,EAAeQ,QAAUN,EACzBR,EAAOG,QAAUG,EACjBA,EAAe5F,GAAK,Q,qBCrBpB,IAAIqG,EAA8B,EAAQ,QAC1CZ,EAAUY,GAA4B,GAEtCZ,EAAQ9B,KAAK,CAAC2B,EAAOC,EAAI,oxBAAqxB,KAE9yBD,EAAOG,QAAUA,G","file":"js/checkin-1.71ef7bc57f92bed9480c.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 (this.$route.name == 'Expired') return;\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\n\t\t\t\t\t\t\t.getOrderData(this.$route.params.orderKey as string)\n\t\t\t\t\t\t\t.then((res) => {\n\t\t\t\t\t\t\t\tconsole.log('RR', res);\n\t\t\t\t\t\t\t\tif (res) {\n\t\t\t\t\t\t\t\t\tif (kioskModule.expiredOrder) this.$router.push({ name: 'Expired' });\n\t\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\t} else {\n\t\t\t\t\t\t\t\t\tkioskModule.resetSession();\n\t\t\t\t\t\t\t\t\tthis.goToAppointments();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\t\t\tif (e == 'Error: Conflict') {\n\t\t\t\t\t\t\t\t\tkioskModule.resetSession();\n\t\t\t\t\t\t\t\t\tthis.$router.push({ name: 'Expired', query: { link: 'true' } });\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tkioskModule.resetSession();\n\t\t\t\t\t\t\t\t\tthis.goToAppointments();\n\t\t\t\t\t\t\t\t}\n\t\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', 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=51aec158&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=51aec158&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__","// style-loader: Adds some css to the DOM by adding a