{"version":3,"sources":["webpack:///./src/common/enums/status.enum.ts","webpack:///./src/views/manage/order.view.vue?e20b","webpack:///./src/views/manage/order.view.vue","webpack:///./src/views/manage/order.view.vue?cab9","webpack:///./src/views/manage/order.view.vue?870f","webpack:///./src/views/manage/order.view.vue?22cb","webpack:///./src/views/manage/order.view.vue?a41a"],"names":["Status","_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","key","_hoisted_8","_hoisted_9","_createElementVNode","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","render","_ctx","_cache","$props","$setup","$data","$options","_ctx$order$orderNumbe","_ctx$order","_component_si_currency","_resolveComponent","_openBlock","_createElementBlock","_toDisplayString","customerName","order","orderNumber","_Fragment","_renderList","activityStatuses","status","times","time","_time$OrderEntityTime","_normalizeClass","OrderEntityTimeKey","onClick","$event","linkTo","Appointment","ActivityName","AppointmentTypeKey","_createTextVNode","AppointmentDate","TimeString","_createCommentVNode","balance","balanceClass","_createVNode","amount","Math","abs","type","ticketUrl","src","width","OrderLanding","Vue","_this$order","this","ticketUUID","_window$config$KioskU","kioskUrl","window","config","KioskUrl","location","origin","qrCodeSize","payload","_this$order$activitie","_this$order2","results","Map","allTimes","activities","reduce","prev","current","concat","SelectedTimes","forEach","_results$get","stringForStatus","OrderStatusKey","get","push","set","_orderModule$_activeO","_orderModule$_activeO2","orderModule","_activeOrder","Upcoming","$router","name","params","orderEntityTimeKey","console","error","Cancelled","Complete","_this$order3","_this$order4","_this$order5","_this$order6","_ref","_this$order$customerI","_this$order7","_this$order8","customerInfo","FirstName","LastName","__decorate","Options","components","__exports__","content","__esModule","default","module","i","locals","exports","add","___CSS_LOADER_API_IMPORT___"],"mappings":"gHAAO,IAAKA,EAAZ,2CAAYA,GACXA,IAAA,kBACAA,IAAA,0BACAA,IAAA,4BACAA,IAA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M,EAAQ,QAAkEL,QACvEK,EAAI,WAAYP,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,kCCT5E,W,qBCCA,IAAIQ,EAA8B,EAAQ,QAC1CF,EAAUE,GAA4B,GAEtCF,EAAQpC,KAAK,CAACiC,EAAOC,EAAI,mfAAof,KAE7gBD,EAAOG,QAAUA","file":"js/OrderLanding.72449eb20581cfa719b5.js","sourcesContent":["export enum Status {\r\n\t'null' = 0, // used to signal appointment status is changing\r\n\t'Upcoming' = 1,\r\n\t'Cancelled' = 2,\r\n\t'No Show' = 3,\r\n\t'Complete' = 4,\r\n\t'Checked In' = 5,\r\n}\r\n","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, resolveComponent as _resolveComponent, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-33b8ad80\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"manage-order content\" }\nconst _hoisted_2 = { class: \"title\" }\nconst _hoisted_3 = { class: \"title\" }\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = { class: \"left\" }\nconst _hoisted_6 = { class: \"activity-title\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"activity-time\"\n}\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"right\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"gg-chevron-right\" })\n], -1))\nconst _hoisted_10 = {\n key: 0,\n class: \"item\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Order Details\", -1))\nconst _hoisted_12 = { class: \"item-box col\" }\nconst _hoisted_13 = { class: \"flex spaced v-center\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"activity-title\" }, \"Order Balance:\", -1))\nconst _hoisted_15 = {\n key: 1,\n class: \"item\"\n}\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Digital Ticket\", -1))\nconst _hoisted_17 = { class: \"item-box center\" }\nconst _hoisted_18 = [\"src\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_si_currency = _resolveComponent(\"si-currency\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(_ctx.customerName) + \" • Order #\" + _toDisplayString(_ctx.order?.orderNumber ?? ' N/A'), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.activityStatuses, ([status, times]) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"item\",\n key: status\n }, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(status), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(times, (time) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"item-box row link v-center anim\", status]),\n key: time.OrderEntityTimeKey ?? -1,\n onClick: ($event: any) => (_ctx.linkTo(time))\n }, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(time.Appointment.ActivityName), 1),\n (time.AppointmentTypeKey != 3)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createTextVNode(_toDisplayString(time.AppointmentDate), 1),\n (time.AppointmentTypeKey == 1)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_8, \" @ \" + _toDisplayString(time.TimeString), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_9\n ], 10, _hoisted_4))\n }), 128))\n ]))\n }), 128)),\n (_ctx.balance)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"bal\", _ctx.balanceClass])\n }, [\n _createVNode(_component_si_currency, {\n amount: Math.abs(_ctx.balance)\n }, null, 8, [\"amount\"]),\n _createTextVNode(\" \" + _toDisplayString(_ctx.type), 1)\n ], 2)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.ticketUrl)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"img\", {\n src: _ctx.ticketUrl,\n width: \"250\"\n }, null, 8, _hoisted_18)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { orderModule } from '@/modules/order/orderModule.vuex-module';\r\nimport ActiveOrder from '@/modules/order/common/classes/ActiveOrder.class';\r\nimport { Ticket } from '@/common/types/Ticket.type';\r\nimport { apiService } from '@/services/api.service';\r\nimport { Status } from '@/common/enums/status.enum';\r\nimport { Time } from '@/common/models/Time.model';\r\n\r\n@Options({\r\n\tname: 'OrderLanding',\r\n\tcomponents: {},\r\n})\r\nexport default class OrderLanding extends Vue {\r\n\tget ticketUrl(): string | null {\r\n\t\tif (this.order?.ticketUUID) {\r\n\t\t\tconst kioskUrl = (window as any).config.KioskUrl ?? window.location.origin;\r\n\r\n\t\t\tconst qrCodeSize = 240;\r\n\t\t\tvar payload = `w;${this.order.ticketUUID}`;\r\n\r\n\t\t\treturn `${kioskUrl}/api/qr?s=${qrCodeSize}&p=${payload}`;\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\tget balanceClass() {\r\n\t\treturn this.balance < 0 ? 'green' : 'red';\r\n\t}\r\n\tget type() {\r\n\t\treturn this.balance < 0 ? 'credit' : 'due';\r\n\t}\r\n\tget activityStatuses(): Map {\r\n\t\tvar times: Time[] = [];\r\n\t\tvar results: Map = new Map();\r\n\t\tlet allTimes: Time[] =\r\n\t\t\tthis.order?.activities.reduce((prev, current) => {\r\n\t\t\t\treturn prev.concat(current.SelectedTimes);\r\n\t\t\t}, times) ?? [];\r\n\t\tallTimes.forEach((time) => {\r\n\t\t\tvar status: string = this.stringForStatus(time.OrderStatusKey);\r\n\t\t\tvar times: Time[] = results.get(status) ?? [];\r\n\t\t\ttimes.push(time);\r\n\t\t\tresults.set(status, times);\r\n\t\t});\r\n\t\treturn results;\r\n\t}\r\n\tget balance(): number {\r\n\t\treturn orderModule._activeOrder?.balance ?? 0;\r\n\t}\r\n\tlinkTo(time: Time): void {\r\n\t\tif (time.OrderEntityTimeKey && time.OrderStatusKey == Status.Upcoming) this.$router.push({ name: 'OrderTime', params: { orderEntityTimeKey: time.OrderEntityTimeKey } });\r\n\t\telse {\r\n\t\t\tconsole.error('No OrderEntityTimeKey');\r\n\t\t}\r\n\t}\r\n\tstringForStatus(status: Status): string {\r\n\t\tswitch (status) {\r\n\t\t\tcase Status.Upcoming:\r\n\t\t\t\treturn 'Upcoming';\r\n\t\t\tcase Status.Cancelled:\r\n\t\t\t\treturn 'Cancelled';\r\n\t\t\tcase Status['Checked In']:\r\n\t\t\t\treturn 'Checked In';\r\n\t\t\tcase Status.Complete:\r\n\t\t\t\treturn 'Complete';\r\n\t\t\tcase Status['No Show']:\r\n\t\t\t\treturn 'No Show';\r\n\t\t\tdefault:\r\n\t\t\t\treturn 'None';\r\n\t\t}\r\n\t}\r\n\tget order(): ActiveOrder | null {\r\n\t\treturn orderModule._activeOrder;\r\n\t}\r\n\tget customerName(): string | undefined {\r\n\t\tif (this.order?.customerInfo.FirstName && this.order?.customerInfo.LastName) {\r\n\t\t\treturn this.order?.customerInfo.FirstName + ' ' + this.order?.customerInfo.LastName;\r\n\t\t} else {\r\n\t\t\treturn this.order?.customerInfo.LastName ?? this.order?.customerInfo.FirstName ?? 'No Customer Info';\r\n\t\t}\r\n\t}\r\n}\r\n","import { render } from \"./order.view.vue?vue&type=template&id=33b8ad80&scoped=true&ts=true\"\nimport script from \"./order.view.vue?vue&type=script&lang=ts\"\nexport * from \"./order.view.vue?vue&type=script&lang=ts\"\n\nimport \"./order.view.vue?vue&type=style&index=0&id=33b8ad80&lang=scss&scoped=true\"\n\nimport exportComponent from \"E:\\\\Repos\\\\Singenuity\\\\agent\\\\_work\\\\1\\\\s\\\\Customer\\\\onlinekiosk_vue_js\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-33b8ad80\"]])\n\nexport default __exports__","// style-loader: Adds some css to the DOM by adding a