pat-shared-components 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/pat-shared-components.js +1 -1
  2. package/dist/pat-shared-components.mjs +82 -80
  3. package/dist/src/components/BookingDetail/BookingCtaButtons.vue.js +1 -1
  4. package/dist/src/components/BookingDetail/BookingCtaButtons.vue.js.map +1 -1
  5. package/dist/src/components/BookingDetail/BookingCtaButtons.vue.mjs +54 -28
  6. package/dist/src/components/BookingDetail/BookingCtaButtons.vue.mjs.map +1 -1
  7. package/dist/src/components/BookingDetail/BookingDetail.vue.js +1 -1
  8. package/dist/src/components/BookingDetail/BookingDetail.vue.js.map +1 -1
  9. package/dist/src/components/BookingDetail/BookingDetail.vue.mjs +68 -59
  10. package/dist/src/components/BookingDetail/BookingDetail.vue.mjs.map +1 -1
  11. package/dist/src/components/BookingDetail/BookingDetailDesktop.vue.js +1 -1
  12. package/dist/src/components/BookingDetail/BookingDetailDesktop.vue.js.map +1 -1
  13. package/dist/src/components/BookingDetail/BookingDetailDesktop.vue.mjs +71 -62
  14. package/dist/src/components/BookingDetail/BookingDetailDesktop.vue.mjs.map +1 -1
  15. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue.js +2 -0
  16. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue.js.map +1 -0
  17. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue.mjs +34 -0
  18. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue.mjs.map +1 -0
  19. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue2.js +2 -0
  20. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue2.js.map +1 -0
  21. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue2.mjs +5 -0
  22. package/dist/src/components/BookingDetail/PaymentSuccessLabel.vue2.mjs.map +1 -0
  23. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.js +1 -1
  24. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.js.map +1 -1
  25. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.mjs +32 -34
  26. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.mjs.map +1 -1
  27. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.js +1 -1
  28. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.js.map +1 -1
  29. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.mjs +34 -36
  30. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.mjs.map +1 -1
  31. package/dist/src/constants/Common.js +1 -1
  32. package/dist/src/constants/Common.js.map +1 -1
  33. package/dist/src/constants/Common.mjs +22 -17
  34. package/dist/src/constants/Common.mjs.map +1 -1
  35. package/dist/src/constants/Enums.js +1 -1
  36. package/dist/src/constants/Enums.js.map +1 -1
  37. package/dist/src/constants/Enums.mjs +16 -15
  38. package/dist/src/constants/Enums.mjs.map +1 -1
  39. package/dist/src/locales/en.json.js +1 -1
  40. package/dist/src/locales/en.json.mjs +6 -0
  41. package/dist/src/locales/en.json.mjs.map +1 -1
  42. package/dist/src/locales/vi.json.js +1 -1
  43. package/dist/src/locales/vi.json.mjs +6 -0
  44. package/dist/src/locales/vi.json.mjs.map +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/types/components/BookingDetail/BookingCtaButtons.vue.d.ts +14 -2
  47. package/dist/types/components/BookingDetail/BookingDetail.vue.d.ts +10 -1
  48. package/dist/types/components/BookingDetail/BookingDetailDesktop.vue.d.ts +10 -1
  49. package/dist/types/components/BookingDetail/PaymentSuccessLabel.vue.d.ts +23 -0
  50. package/dist/types/constants/Common.d.ts +3 -0
  51. package/dist/types/constants/Enums.d.ts +17 -0
  52. package/dist/types/types/Booking.d.ts +3 -1
  53. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, defineAsyncComponent as D, toRef as y, computed as u, useSlots as P, openBlock as o, createElementBlock as _, createBlock as s, Fragment as F, unref as e, createElementVNode as R, createCommentVNode as i, createVNode as a, withCtx as r, createSlots as j, renderSlot as f } from "vue";
1
+ import { defineComponent as I, defineAsyncComponent as D, toRef as y, computed as a, useSlots as P, openBlock as e, createElementBlock as _, createBlock as s, Fragment as F, unref as o, createElementVNode as R, createCommentVNode as i, createVNode as u, withCtx as r, createSlots as j, renderSlot as f } from "vue";
2
2
  import q from "../../../Shared/PatientName.vue.mjs";
3
3
  import z from "../../Shared/ResultReadyV2.vue.mjs";
4
4
  import G from "../../Shared/RejectedResult.vue.mjs";
@@ -40,69 +40,67 @@ const tt = {
40
40
  testResult: y(t, "testResult"),
41
41
  hidePatientInfo: y(t, "hidePatientInfo"),
42
42
  hideSummary: y(t, "hideSummary")
43
- }), { surveyConfig: k } = Z(), B = u(
43
+ }), { surveyConfig: k } = Z(), B = a(
44
44
  () => $(t.testResult, "doctor-note")
45
- ), T = u(
45
+ ), T = a(
46
46
  () => W(
47
47
  t.testResult.collection_channel,
48
48
  t.testResult.is_free_consultant,
49
49
  k.value
50
50
  )
51
- ), E = u(
51
+ ), E = a(
52
52
  () => $(t.testResult)
53
- ), N = u(
53
+ ), N = a(
54
54
  () => !!t.testResult.doctor_note_detail && t.testResult.doctor_note_detail.length > 0
55
- ), A = u(
55
+ ), A = a(
56
56
  () => X(
57
57
  t.testResult.nps_test_result,
58
58
  t.testResult.collection_channel,
59
59
  t.testResult.is_free_consultant,
60
60
  k.value
61
61
  )
62
- ), V = P(), b = u(
63
- () => p.value.bookAppointment || !!V["book-appointment-box"]
64
- ), w = u(
62
+ ), V = P(), b = () => p.value.bookAppointment || !!V["book-appointment-box"], w = a(
65
63
  () => Y(
66
64
  t.testResult.nps_doctor_consult,
67
65
  k.value
68
66
  )
69
67
  );
70
- return (l, n) => (o(), _("div", null, [
71
- t.loading ? (o(), s(O, { key: 0 })) : (o(), _(F, { key: 1 }, [
72
- e(h) ? (o(), _("div", tt, [
68
+ return (l, n) => (e(), _("div", null, [
69
+ t.loading ? (e(), s(O, { key: 0 })) : (e(), _(F, { key: 1 }, [
70
+ o(h) ? (e(), _("div", tt, [
73
71
  R("div", null, [
74
- e(p).patientName ? (o(), s(q, {
72
+ o(p).patientName ? (e(), s(q, {
75
73
  key: 0,
76
74
  "first-name": t.testResult.first_name,
77
75
  class: "psc-px-4 psc-pb-2"
78
76
  }, null, 8, ["first-name"])) : i("", !0),
79
- a(z, {
77
+ u(z, {
80
78
  "test-result": t.testResult,
81
79
  timeline: t.timeline,
82
80
  "list-action-event": t.listActionEvent,
83
81
  class: "psc-px-4 psc-pb-4"
84
82
  }, null, 8, ["test-result", "timeline", "list-action-event"]),
85
- e(p).healthSummary ? (o(), s(m, { key: 1 }, {
83
+ o(p).healthSummary ? (e(), s(m, { key: 1 }, {
86
84
  default: r(() => [
87
- a(Q, {
88
- items: e(x),
85
+ u(Q, {
86
+ items: o(x),
89
87
  "cta-button": t.testResult.is_free_consultant,
90
88
  "onClick:ctaButton": n[0] || (n[0] = (d) => c("click:book-appointment"))
91
89
  }, null, 8, ["items", "cta-button"])
92
90
  ]),
93
91
  _: 1
94
92
  })) : i("", !0),
95
- t.showResultReport ? (o(), s(H, {
93
+ t.showResultReport ? (e(), s(H, {
96
94
  key: 2,
97
95
  "onClick:report": n[2] || (n[2] = (d) => c("click:result-report"))
98
96
  }, j({ _: 2 }, [
99
- e(b) ? {
97
+ b() ? {
100
98
  name: "book-appointment-box",
101
99
  fn: r(() => [
102
100
  l.$slots["book-appointment-box"] ? f(l.$slots, "book-appointment-box", {
103
101
  key: 0,
104
102
  compact: !0
105
- }) : (o(), s(S, {
103
+ }) : (e(), s(S, {
106
104
  key: 1,
107
105
  compact: "",
108
106
  "onClick:book": n[1] || (n[1] = (d) => c("click:book-appointment"))
@@ -110,50 +108,50 @@ const tt = {
110
108
  ]),
111
109
  key: "0"
112
110
  } : void 0
113
- ]), 1024)) : e(b) ? (o(), s(m, { key: 3 }, {
111
+ ]), 1024)) : b() ? (e(), s(m, { key: 3 }, {
114
112
  default: r(() => [
115
113
  l.$slots["book-appointment-box"] ? f(l.$slots, "book-appointment-box", {
116
114
  key: 0,
117
115
  compact: !1
118
- }) : (o(), s(S, {
116
+ }) : (e(), s(S, {
119
117
  key: 1,
120
118
  "onClick:book": n[3] || (n[3] = (d) => c("click:book-appointment"))
121
119
  }))
122
120
  ]),
123
121
  _: 3
124
122
  })) : i("", !0),
125
- e(p).doctorNote ? (o(), s(m, { key: 4 }, {
123
+ o(p).doctorNote ? (e(), s(m, { key: 4 }, {
126
124
  default: r(() => [
127
- a(J, {
125
+ u(J, {
128
126
  "doctor-note": t.testResult.doctor_note
129
127
  }, null, 8, ["doctor-note"])
130
128
  ]),
131
129
  _: 1
132
130
  })) : i("", !0),
133
- e(N) ? (o(), s(m, { key: 5 }, {
131
+ o(N) ? (e(), s(m, { key: 5 }, {
134
132
  default: r(() => [
135
- a(K, {
133
+ u(K, {
136
134
  "doctor-note-detail": v.testResult.doctor_note_detail,
137
- "survey-context": e(w) ? e(B) : void 0,
135
+ "survey-context": o(w) ? o(B) : void 0,
138
136
  "onClick:appointmentBooking": n[4] || (n[4] = (d) => c("click:appointment-booking", d))
139
137
  }, null, 8, ["doctor-note-detail", "survey-context"])
140
138
  ]),
141
139
  _: 1
142
140
  })) : i("", !0),
143
- e(A) ? (o(), s(m, { key: 6 }, {
141
+ o(A) ? (e(), s(m, { key: 6 }, {
144
142
  default: r(() => [
145
- a(e(g), {
143
+ u(o(g), {
146
144
  variant: "bar",
147
- "survey-slug": e(T),
148
- context: e(E),
145
+ "survey-slug": o(T),
146
+ context: o(E),
149
147
  text: l.$t("psc.test_result_take_survey_button")
150
148
  }, null, 8, ["survey-slug", "context", "text"])
151
149
  ]),
152
150
  _: 1
153
151
  })) : i("", !0),
154
- e(p).upcomingAppointment ? (o(), s(m, { key: 7 }, {
152
+ o(p).upcomingAppointment ? (e(), s(m, { key: 7 }, {
155
153
  default: r(() => [
156
- a(L, {
154
+ u(L, {
157
155
  "time-slot": t.testResult.consult_time
158
156
  }, null, 8, ["time-slot"])
159
157
  ]),
@@ -162,15 +160,15 @@ const tt = {
162
160
  ]),
163
161
  R("div", et, [
164
162
  f(l.$slots, "header"),
165
- e(C) ? i("", !0) : f(l.$slots, "default", { key: 0 }),
163
+ o(C) ? i("", !0) : f(l.$slots, "default", { key: 0 }),
166
164
  f(l.$slots, "footer")
167
165
  ])
168
- ])) : (o(), s(G, {
166
+ ])) : (e(), s(G, {
169
167
  key: 1,
170
168
  class: "psc-px-4"
171
169
  }, {
172
170
  "body-append": r(() => [
173
- a(M, { class: "psc-mt-6" })
171
+ u(M, { class: "psc-mt-6" })
174
172
  ]),
175
173
  _: 1
176
174
  }))
@@ -1 +1 @@
1
- {"version":3,"file":"TestResultDetail.vue.mjs","sources":["../../../../../../src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, renderSlot as _renderSlot, createSlots as _createSlots, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"consumer-test-result__ready\"\n}\nconst _hoisted_2 = { class: \"psc-px-4\" }\n\nimport { computed, defineAsyncComponent, toRef, useSlots } from 'vue';\nimport PatientName from '../../../Shared/PatientName.vue';\nimport ResultReadyV2, {\n type TimelineEvent,\n} from '../../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../../Shared/RejectedResult.vue';\nimport BookAppointment from '../../Shared/BookAppointment.vue';\nimport ResultInsightCards from '../../Shared/ResultInsightCards.vue';\nimport DoctorNote from '../../Shared/DoctorNote.vue';\nimport DoctorNoteDetail from '../../Shared/DoctorNoteDetail.vue';\nimport type { TestResult } from '@/types';\nimport UpcomingAppointment from '../../Shared/UpcomingAppointment.vue';\nimport CallUsFilledButton from '../../Shared/CallUsFilledButton.vue';\nimport TestResultDetailSkeleton from '../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue';\nimport HealthSummary from '@/components/TestResult/HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../../Shared/TestResultSection.vue';\nimport { useTestResult } from '@/composables/TestResult';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n isSurveyEnabledForTestResult,\n isTeledocSurveyEnabled,\n} from '@/helpers/SurveyHelper';\nimport { useSurveyConfig } from '@/composables/useSurveyConfig';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n showResultReport?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetail',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n timeline: { default: undefined },\n listActionEvent: { default: undefined },\n showResultReport: { type: Boolean, default: false }\n },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\n 'click:result-report',\n],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string>, showResultReport: boolean };\n\n\n\nconst TakeSurvey = defineAsyncComponent(\n () => import('../../Shared/TakeSurvey.vue')\n);\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { healthSummaryItems, hideContent, isViewable, visible } = useTestResult({\n testResult: toRef(props, 'testResult'),\n hidePatientInfo: toRef(props, 'hidePatientInfo'),\n hideSummary: toRef(props, 'hideSummary'),\n});\n\nconst { surveyConfig } = useSurveyConfig();\n\nconst doctorNoteSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult, 'doctor-note')\n);\n\nconst testSurveySlug = computed(() =>\n getSurveySlug(\n props.testResult.collection_channel,\n props.testResult.is_free_consultant,\n surveyConfig.value\n )\n);\n\nconst testSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult)\n);\n\nconst hasDoctorNoteDetail = computed(\n () =>\n !!props.testResult.doctor_note_detail &&\n props.testResult.doctor_note_detail.length > 0\n);\n\nconst isSurveyEnabled = computed(() =>\n isSurveyEnabledForTestResult(\n props.testResult.nps_test_result,\n props.testResult.collection_channel,\n props.testResult.is_free_consultant,\n surveyConfig.value\n )\n);\n\n// DPT-8995: the host's `book-appointment-box` slot replaces BookAppointment and is not\n// gated by is_free_consultant.\nconst slots = useSlots();\nconst showBookAppointmentBox = computed(\n () => visible.value.bookAppointment || !!slots['book-appointment-box']\n);\n\nconst isTeledocSurveyVisible = computed(() =>\n isTeledocSurveyEnabled(\n props.testResult.nps_doctor_consult,\n surveyConfig.value\n )\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n (_unref(visible).patientName)\n ? (_openBlock(), _createBlock(PatientName, {\n key: 0,\n \"first-name\": props.testResult.first_name,\n class: \"psc-px-4 psc-pb-2\"\n }, null, 8, [\"first-name\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(ResultReadyV2, {\n \"test-result\": props.testResult,\n timeline: props.timeline,\n \"list-action-event\": props.listActionEvent,\n class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\", \"timeline\", \"list-action-event\"]),\n (_unref(visible).healthSummary)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 1 }, {\n default: _withCtx(() => [\n _createVNode(HealthSummary, {\n items: _unref(healthSummaryItems),\n \"cta-button\": props.testResult.is_free_consultant,\n \"onClick:ctaButton\": _cache[0] || (_cache[0] = ($event: any) => (emit('click:book-appointment')))\n }, null, 8, [\"items\", \"cta-button\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (props.showResultReport)\n ? (_openBlock(), _createBlock(ResultInsightCards, {\n key: 2,\n \"onClick:report\": _cache[2] || (_cache[2] = ($event: any) => (emit('click:result-report')))\n }, _createSlots({ _: 2 }, [\n (_unref(showBookAppointmentBox))\n ? {\n name: \"book-appointment-box\",\n fn: _withCtx(() => [\n (_ctx.$slots['book-appointment-box'])\n ? _renderSlot(_ctx.$slots, \"book-appointment-box\", {\n key: 0,\n compact: true\n })\n : (_openBlock(), _createBlock(BookAppointment, {\n key: 1,\n compact: \"\",\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n }))\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024))\n : (_unref(showBookAppointmentBox))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n (_ctx.$slots['book-appointment-box'])\n ? _renderSlot(_ctx.$slots, \"book-appointment-box\", {\n key: 0,\n compact: false\n })\n : (_openBlock(), _createBlock(BookAppointment, {\n key: 1,\n \"onClick:book\": _cache[3] || (_cache[3] = ($event: any) => (emit('click:book-appointment')))\n }))\n ]),\n _: 3\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNote, {\n \"doctor-note\": props.testResult.doctor_note\n }, null, 8, [\"doctor-note\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(hasDoctorNoteDetail))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail!,\n \"survey-context\": \n _unref(isTeledocSurveyVisible) ? _unref(doctorNoteSurveyContext) : undefined\n ,\n \"onClick:appointmentBooking\": _cache[4] || (_cache[4] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\", \"survey-context\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(isSurveyEnabled))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 6 }, {\n default: _withCtx(() => [\n _createVNode(_unref(TakeSurvey), {\n variant: \"bar\",\n \"survey-slug\": _unref(testSurveySlug),\n context: _unref(testSurveyContext),\n text: _ctx.$t('psc.test_result_take_survey_button')\n }, null, 8, [\"survey-slug\", \"context\", \"text\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 7 }, {\n default: _withCtx(() => [\n _createVNode(UpcomingAppointment, {\n \"time-slot\": props.testResult.consult_time!\n }, null, 8, [\"time-slot\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","emit","props","TakeSurvey","defineAsyncComponent","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","slots","useSlots","showBookAppointmentBox","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","ResultInsightCards","_createSlots","_renderSlot","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAMA,KAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,KAAa,EAAE,OAAO,cAwCAC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY;AAAA,IACZ,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,iBAAiB,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IACjD,aAAa,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IAC7C,UAAU,EAAE,SAAS,OAAU;AAAA,IAC/B,iBAAiB,EAAE,SAAS,OAAU;AAAA,IACtC,kBAAkB,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,EACpD;AAAA,EACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACE,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAEhC,UAAMC,IAAQF,GAIRG,IAAaC;AAAA,MACjB,MAAM,OAAO,kCAA6B;AAAA,IAAA,GAWtC,EAAE,oBAAAC,GAAoB,aAAAC,GAAa,YAAAC,GAAY,SAAAC,EAAA,IAAYC,EAAc;AAAA,MAC7E,YAAYC,EAAMR,GAAO,YAAY;AAAA,MACrC,iBAAiBQ,EAAMR,GAAO,iBAAiB;AAAA,MAC/C,aAAaQ,EAAMR,GAAO,aAAa;AAAA,IAAA,CACxC,GAEK,EAAE,cAAAS,MAAiBC,KAEnBC,IAA0BC;AAAA,MAAS,MACvCC,EAA6Bb,EAAM,YAA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M;AAAA,YAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,UAAA,CACvD;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,SACJ,EAAE;AAAA,IAAA,CACV;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"TestResultDetail.vue.mjs","sources":["../../../../../../src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, renderSlot as _renderSlot, createSlots as _createSlots, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"consumer-test-result__ready\"\n}\nconst _hoisted_2 = { class: \"psc-px-4\" }\n\nimport { computed, defineAsyncComponent, toRef, useSlots } from 'vue';\nimport PatientName from '../../../Shared/PatientName.vue';\nimport ResultReadyV2, {\n type TimelineEvent,\n} from '../../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../../Shared/RejectedResult.vue';\nimport BookAppointment from '../../Shared/BookAppointment.vue';\nimport ResultInsightCards from '../../Shared/ResultInsightCards.vue';\nimport DoctorNote from '../../Shared/DoctorNote.vue';\nimport DoctorNoteDetail from '../../Shared/DoctorNoteDetail.vue';\nimport type { TestResult } from '@/types';\nimport UpcomingAppointment from '../../Shared/UpcomingAppointment.vue';\nimport CallUsFilledButton from '../../Shared/CallUsFilledButton.vue';\nimport TestResultDetailSkeleton from '../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue';\nimport HealthSummary from '@/components/TestResult/HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../../Shared/TestResultSection.vue';\nimport { useTestResult } from '@/composables/TestResult';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n isSurveyEnabledForTestResult,\n isTeledocSurveyEnabled,\n} from '@/helpers/SurveyHelper';\nimport { useSurveyConfig } from '@/composables/useSurveyConfig';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n showResultReport?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetail',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n timeline: { default: undefined },\n listActionEvent: { default: undefined },\n showResultReport: { type: Boolean, default: false }\n },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\n 'click:result-report',\n],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string>, showResultReport: boolean };\n\n\n\nconst TakeSurvey = defineAsyncComponent(\n () => import('../../Shared/TakeSurvey.vue')\n);\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { healthSummaryItems, hideContent, isViewable, visible } = useTestResult({\n testResult: toRef(props, 'testResult'),\n hidePatientInfo: toRef(props, 'hidePatientInfo'),\n hideSummary: toRef(props, 'hideSummary'),\n});\n\nconst { surveyConfig } = useSurveyConfig();\n\nconst doctorNoteSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult, 'doctor-note')\n);\n\nconst testSurveySlug = computed(() =>\n getSurveySlug(\n props.testResult.collection_channel,\n props.testResult.is_free_consultant,\n surveyConfig.value\n )\n);\n\nconst testSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult)\n);\n\nconst hasDoctorNoteDetail = computed(\n () =>\n !!props.testResult.doctor_note_detail &&\n props.testResult.doctor_note_detail.length > 0\n);\n\nconst isSurveyEnabled = computed(() =>\n isSurveyEnabledForTestResult(\n props.testResult.nps_test_result,\n props.testResult.collection_channel,\n props.testResult.is_free_consultant,\n surveyConfig.value\n )\n);\n\n// DPT-8995: the host's `book-appointment-box` slot replaces BookAppointment and is not\n// gated by is_free_consultant. A function, not a computed: slots are not reactive, so a\n// computed would keep `false` when the host passes the slot after the first render.\nconst slots = useSlots();\nconst showBookAppointmentBox = () =>\n visible.value.bookAppointment || !!slots['book-appointment-box'];\n\nconst isTeledocSurveyVisible = computed(() =>\n isTeledocSurveyEnabled(\n props.testResult.nps_doctor_consult,\n surveyConfig.value\n )\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n (_unref(visible).patientName)\n ? (_openBlock(), _createBlock(PatientName, {\n key: 0,\n \"first-name\": props.testResult.first_name,\n class: \"psc-px-4 psc-pb-2\"\n }, null, 8, [\"first-name\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(ResultReadyV2, {\n \"test-result\": props.testResult,\n timeline: props.timeline,\n \"list-action-event\": props.listActionEvent,\n class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\", \"timeline\", \"list-action-event\"]),\n (_unref(visible).healthSummary)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 1 }, {\n default: _withCtx(() => [\n _createVNode(HealthSummary, {\n items: _unref(healthSummaryItems),\n \"cta-button\": props.testResult.is_free_consultant,\n \"onClick:ctaButton\": _cache[0] || (_cache[0] = ($event: any) => (emit('click:book-appointment')))\n }, null, 8, [\"items\", \"cta-button\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (props.showResultReport)\n ? (_openBlock(), _createBlock(ResultInsightCards, {\n key: 2,\n \"onClick:report\": _cache[2] || (_cache[2] = ($event: any) => (emit('click:result-report')))\n }, _createSlots({ _: 2 }, [\n (showBookAppointmentBox())\n ? {\n name: \"book-appointment-box\",\n fn: _withCtx(() => [\n (_ctx.$slots['book-appointment-box'])\n ? _renderSlot(_ctx.$slots, \"book-appointment-box\", {\n key: 0,\n compact: true\n })\n : (_openBlock(), _createBlock(BookAppointment, {\n key: 1,\n compact: \"\",\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n }))\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024))\n : (showBookAppointmentBox())\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n (_ctx.$slots['book-appointment-box'])\n ? _renderSlot(_ctx.$slots, \"book-appointment-box\", {\n key: 0,\n compact: false\n })\n : (_openBlock(), _createBlock(BookAppointment, {\n key: 1,\n \"onClick:book\": _cache[3] || (_cache[3] = ($event: any) => (emit('click:book-appointment')))\n }))\n ]),\n _: 3\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNote, {\n \"doctor-note\": props.testResult.doctor_note\n }, null, 8, [\"doctor-note\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(hasDoctorNoteDetail))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail!,\n \"survey-context\": \n _unref(isTeledocSurveyVisible) ? _unref(doctorNoteSurveyContext) : undefined\n ,\n \"onClick:appointmentBooking\": _cache[4] || (_cache[4] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\", \"survey-context\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(isSurveyEnabled))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 6 }, {\n default: _withCtx(() => [\n _createVNode(_unref(TakeSurvey), {\n variant: \"bar\",\n \"survey-slug\": _unref(testSurveySlug),\n context: _unref(testSurveyContext),\n text: _ctx.$t('psc.test_result_take_survey_button')\n }, null, 8, [\"survey-slug\", \"context\", \"text\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 7 }, {\n default: _withCtx(() => [\n _createVNode(UpcomingAppointment, {\n \"time-slot\": props.testResult.consult_time!\n }, null, 8, [\"time-slot\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","emit","props","TakeSurvey","defineAsyncComponent","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","slots","useSlots","showBookAppointmentBox","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","ResultInsightCards","_createSlots","_renderSlot","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":";;;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hB,CAAiB;AAAA,kBACjC,MAAMS,EAAK,GAAG,oCAAoC;AAAA,gBAAA,GACjD,MAAM,GAAG,CAAC,eAAe,WAAW,MAAM,CAAC;AAAA,cAAA,CAC/C;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACDU,EAAoB,IAAI,EAAI;AAAA,YAC/BH,EAAO1B,CAAO,EAAE,uBACZqB,EAAA,GAAcE,EAAaS,GAAmB,EAAE,KAAK,KAAK;AAAA,cACzD,SAASC,EAAS,MAAM;AAAA,gBACtBH,EAAaY,GAAqB;AAAA,kBAChC,aAAahD,EAAM,WAAW;AAAA,gBAC7B,GAAA,MAAM,GAAG,CAAC,WAAW,CAAC;AAAA,cAAA,CAC1B;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACDmC,EAAoB,IAAI,EAAI;AAAA,UAAA,CACjC;AAAA,UACDF,EAAoB,OAAOtC,IAAY;AAAA,YACrCiD,EAAYnB,EAAK,QAAQ,QAAQ;AAAA,YAC/BO,EAAO5B,CAAW,IAEhB+B,EAAoB,IAAI,EAAI,IAD5BS,EAAYnB,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA;AAAA,YAElDmB,EAAYnB,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,QACF,CAAA,MACAE,EAAW,GAAGE,EAAaoB,GAAgB;AAAA,UAC1C,KAAK;AAAA,UACL,OAAO;AAAA,QAAA,GACN;AAAA,UACD,eAAeV,EAAS,MAAM;AAAA,YAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,UAAA,CACvD;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,SACJ,EAAE;AAAA,IAAA,CACV;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Enums.js"),n="19001717",r="customersupport@diag.vn",a="https://webportal-staging-micro-survey.diagvietnam.com/surveys",s="https://webportal-micro-survey.diagvietnam.com/surveys",E=t=>t.replace(/\/$/,""),c=E(process.env.SURVEY_BASE_URL||(process.env.VUE_APP_ENV==="production"?s:a)),i=process.env.SURVEY_FORCE_ENABLE==="true";var o=(t=>(t.Locale="DiagPatientPortalLocale",t))(o||{});const p={Container:"pat-container",MicroTestResult:"pat-micro-test-result"},u={ChangeRoute:"change-route"},S={AccessToken:"pe_access_token"},_={[e.DayPartType.Morning]:{Start:"05:00",End:"11:59"},[e.DayPartType.Afternoon]:{Start:"12:00",End:"16:59"},[e.DayPartType.Evening]:{Start:"17:00",End:"22:00"}};exports.CookieName=S;exports.DayPartDuration=_;exports.EventBusName=p;exports.EventType=u;exports.LsKey=o;exports.SURVEY_BASE_URL=c;exports.SURVEY_FORCE_ENABLE=i;exports.SupportEmail=r;exports.SupportPhone=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Enums.js"),n="19001717",r="customersupport@diag.vn",a=[e.BookingSourceType.DiagInternalBooking,e.BookingSourceType.AssistedDoctorCreation,e.BookingSourceType.DiagTreatmentPlan],s="https://webportal-staging-micro-survey.diagvietnam.com/surveys",E="https://webportal-micro-survey.diagvietnam.com/surveys",c=t=>t.replace(/\/$/,""),i=c(process.env.SURVEY_BASE_URL||(process.env.VUE_APP_ENV==="production"?E:s)),_=process.env.SURVEY_FORCE_ENABLE==="true";var o=(t=>(t.Locale="DiagPatientPortalLocale",t))(o||{});const p={Container:"pat-container",MicroTestResult:"pat-micro-test-result"},S={ChangeRoute:"change-route"},u={AccessToken:"pe_access_token"},R={[e.DayPartType.Morning]:{Start:"05:00",End:"11:59"},[e.DayPartType.Afternoon]:{Start:"12:00",End:"16:59"},[e.DayPartType.Evening]:{Start:"17:00",End:"22:00"}};exports.CookieName=u;exports.DayPartDuration=R;exports.EventBusName=p;exports.EventType=S;exports.LsKey=o;exports.SOURCE_TYPES_PAID_ONLINE_BY_PATIENT=a;exports.SURVEY_BASE_URL=i;exports.SURVEY_FORCE_ENABLE=_;exports.SupportEmail=r;exports.SupportPhone=n;
2
2
  //# sourceMappingURL=Common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Common.js","sources":["../../../src/constants/Common.ts"],"sourcesContent":["import { DayPartType } from './Enums';\n\nexport const SupportPhone = '19001717';\nexport const SupportEmail = 'customersupport@diag.vn';\n\nconst SURVEY_BASE_URL_STAGING =\n 'https://webportal-staging-micro-survey.diagvietnam.com/surveys';\nconst SURVEY_BASE_URL_PRODUCTION =\n 'https://webportal-micro-survey.diagvietnam.com/surveys';\n\nconst trimTrailingSlash = (url: string) => url.replace(/\\/$/, '');\n\n/** Resolved by the host app webpack DefinePlugin from SURVEY_BASE_URL / VUE_APP_ENV. */\nexport const SURVEY_BASE_URL = trimTrailingSlash(\n process.env.SURVEY_BASE_URL ||\n (process.env.VUE_APP_ENV === 'production'\n ? SURVEY_BASE_URL_PRODUCTION\n : SURVEY_BASE_URL_STAGING)\n);\n\n/** Local dev override (default false): show survey for all test results when `SURVEY_FORCE_ENABLE=true`. */\nexport const SURVEY_FORCE_ENABLE = process.env.SURVEY_FORCE_ENABLE === 'true';\nexport enum LsKey {\n Locale = 'DiagPatientPortalLocale',\n}\nexport const EventBusName = {\n Container: 'pat-container',\n MicroTestResult: 'pat-micro-test-result',\n};\nexport const EventType = {\n ChangeRoute: 'change-route',\n};\nexport const CookieName = {\n AccessToken: 'pe_access_token',\n};\nexport const DayPartDuration = {\n [DayPartType.Morning]: {\n Start: '05:00',\n End: '11:59',\n },\n [DayPartType.Afternoon]: {\n Start: '12:00',\n End: '16:59',\n },\n [DayPartType.Evening]: {\n Start: '17:00',\n End: '22:00',\n },\n};\n"],"names":["SupportPhone","SupportEmail","SURVEY_BASE_URL_STAGING","SURVEY_BASE_URL_PRODUCTION","trimTrailingSlash","url","SURVEY_BASE_URL","SURVEY_FORCE_ENABLE","LsKey","EventBusName","EventType","CookieName","DayPartDuration","DayPartType"],"mappings":"8GAEaA,EAAe,WACfC,EAAe,0BAEtBC,EACJ,iEACIC,EACJ,yDAEIC,EAAqBC,GAAgBA,EAAI,QAAQ,MAAO,EAAE,EAGnDC,EAAkBF,EAC7B,QAAQ,IAAI,kBACT,QAAQ,IAAI,cAAgB,aACzBD,EACAD,EACR,EAGaK,EAAsB,QAAQ,IAAI,sBAAwB,OAC3D,IAAAC,GAAAA,IACVA,EAAA,OAAS,0BADCA,IAAAA,GAAA,CAAA,CAAA,EAGL,MAAMC,EAAe,CAC1B,UAAW,gBACX,gBAAiB,uBACnB,EACaC,EAAY,CACvB,YAAa,cACf,EACaC,EAAa,CACxB,YAAa,iBACf,EACaC,EAAkB,CAC7B,CAACC,EAAAA,YAAY,OAAO,EAAG,CACrB,MAAO,QACP,IAAK,OACP,EACA,CAACA,EAAAA,YAAY,SAAS,EAAG,CACvB,MAAO,QACP,IAAK,OACP,EACA,CAACA,EAAAA,YAAY,OAAO,EAAG,CACrB,MAAO,QACP,IAAK,OACP,CACF"}
1
+ {"version":3,"file":"Common.js","sources":["../../../src/constants/Common.ts"],"sourcesContent":["import { BookingSourceType, DayPartType } from './Enums';\n\nexport const SupportPhone = '19001717';\nexport const SupportEmail = 'customersupport@diag.vn';\n\n/** Source types of the bookings the patient pays online themselves (pat--booking--be Booking::SOURCE_TYPES_PAID_ONLINE_BY_PATIENT). */\nexport const SOURCE_TYPES_PAID_ONLINE_BY_PATIENT: `${BookingSourceType}`[] = [\n BookingSourceType.DiagInternalBooking,\n BookingSourceType.AssistedDoctorCreation,\n BookingSourceType.DiagTreatmentPlan,\n];\n\nconst SURVEY_BASE_URL_STAGING =\n 'https://webportal-staging-micro-survey.diagvietnam.com/surveys';\nconst SURVEY_BASE_URL_PRODUCTION =\n 'https://webportal-micro-survey.diagvietnam.com/surveys';\n\nconst trimTrailingSlash = (url: string) => url.replace(/\\/$/, '');\n\n/** Resolved by the host app webpack DefinePlugin from SURVEY_BASE_URL / VUE_APP_ENV. */\nexport const SURVEY_BASE_URL = trimTrailingSlash(\n process.env.SURVEY_BASE_URL ||\n (process.env.VUE_APP_ENV === 'production'\n ? SURVEY_BASE_URL_PRODUCTION\n : SURVEY_BASE_URL_STAGING)\n);\n\n/** Local dev override (default false): show survey for all test results when `SURVEY_FORCE_ENABLE=true`. */\nexport const SURVEY_FORCE_ENABLE = process.env.SURVEY_FORCE_ENABLE === 'true';\nexport enum LsKey {\n Locale = 'DiagPatientPortalLocale',\n}\nexport const EventBusName = {\n Container: 'pat-container',\n MicroTestResult: 'pat-micro-test-result',\n};\nexport const EventType = {\n ChangeRoute: 'change-route',\n};\nexport const CookieName = {\n AccessToken: 'pe_access_token',\n};\nexport const DayPartDuration = {\n [DayPartType.Morning]: {\n Start: '05:00',\n End: '11:59',\n },\n [DayPartType.Afternoon]: {\n Start: '12:00',\n End: '16:59',\n },\n [DayPartType.Evening]: {\n Start: '17:00',\n End: '22:00',\n },\n};\n"],"names":["SupportPhone","SupportEmail","SOURCE_TYPES_PAID_ONLINE_BY_PATIENT","BookingSourceType","SURVEY_BASE_URL_STAGING","SURVEY_BASE_URL_PRODUCTION","trimTrailingSlash","url","SURVEY_BASE_URL","SURVEY_FORCE_ENABLE","LsKey","EventBusName","EventType","CookieName","DayPartDuration","DayPartType"],"mappings":"8GAEaA,EAAe,WACfC,EAAe,0BAGfC,EAAgE,CAC3EC,EAAAA,kBAAkB,oBAClBA,EAAAA,kBAAkB,uBAClBA,EAAAA,kBAAkB,iBACpB,EAEMC,EACJ,iEACIC,EACJ,yDAEIC,EAAqBC,GAAgBA,EAAI,QAAQ,MAAO,EAAE,EAGnDC,EAAkBF,EAC7B,QAAQ,IAAI,kBACT,QAAQ,IAAI,cAAgB,aACzBD,EACAD,EACR,EAGaK,EAAsB,QAAQ,IAAI,sBAAwB,OAC3D,IAAAC,GAAAA,IACVA,EAAA,OAAS,0BADCA,IAAAA,GAAA,CAAA,CAAA,EAGL,MAAMC,EAAe,CAC1B,UAAW,gBACX,gBAAiB,uBACnB,EACaC,EAAY,CACvB,YAAa,cACf,EACaC,EAAa,CACxB,YAAa,iBACf,EACaC,EAAkB,CAC7B,CAACC,EAAAA,YAAY,OAAO,EAAG,CACrB,MAAO,QACP,IAAK,OACP,EACA,CAACA,EAAAA,YAAY,SAAS,EAAG,CACvB,MAAO,QACP,IAAK,OACP,EACA,CAACA,EAAAA,YAAY,OAAO,EAAG,CACrB,MAAO,QACP,IAAK,OACP,CACF"}
@@ -1,16 +1,20 @@
1
- import { DayPartType as e } from "./Enums.mjs";
2
- const c = "19001717", E = "customersupport@diag.vn", o = "https://webportal-staging-micro-survey.diagvietnam.com/surveys", n = "https://webportal-micro-survey.diagvietnam.com/surveys", r = (t) => t.replace(/\/$/, ""), i = r(
3
- process.env.SURVEY_BASE_URL || (process.env.VUE_APP_ENV === "production" ? n : o)
4
- ), p = process.env.SURVEY_FORCE_ENABLE === "true";
5
- var s = /* @__PURE__ */ ((t) => (t.Locale = "DiagPatientPortalLocale", t))(s || {});
6
- const _ = {
1
+ import { BookingSourceType as o, DayPartType as e } from "./Enums.mjs";
2
+ const i = "19001717", E = "customersupport@diag.vn", p = [
3
+ o.DiagInternalBooking,
4
+ o.AssistedDoctorCreation,
5
+ o.DiagTreatmentPlan
6
+ ], n = "https://webportal-staging-micro-survey.diagvietnam.com/surveys", r = "https://webportal-micro-survey.diagvietnam.com/surveys", s = (t) => t.replace(/\/$/, ""), _ = s(
7
+ process.env.SURVEY_BASE_URL || (process.env.VUE_APP_ENV === "production" ? r : n)
8
+ ), S = process.env.SURVEY_FORCE_ENABLE === "true";
9
+ var a = /* @__PURE__ */ ((t) => (t.Locale = "DiagPatientPortalLocale", t))(a || {});
10
+ const u = {
7
11
  Container: "pat-container",
8
12
  MicroTestResult: "pat-micro-test-result"
9
- }, u = {
13
+ }, R = {
10
14
  ChangeRoute: "change-route"
11
- }, S = {
15
+ }, g = {
12
16
  AccessToken: "pe_access_token"
13
- }, R = {
17
+ }, m = {
14
18
  [e.Morning]: {
15
19
  Start: "05:00",
16
20
  End: "11:59"
@@ -25,14 +29,15 @@ const _ = {
25
29
  }
26
30
  };
27
31
  export {
28
- S as CookieName,
29
- R as DayPartDuration,
30
- _ as EventBusName,
31
- u as EventType,
32
- s as LsKey,
33
- i as SURVEY_BASE_URL,
34
- p as SURVEY_FORCE_ENABLE,
32
+ g as CookieName,
33
+ m as DayPartDuration,
34
+ u as EventBusName,
35
+ R as EventType,
36
+ a as LsKey,
37
+ p as SOURCE_TYPES_PAID_ONLINE_BY_PATIENT,
38
+ _ as SURVEY_BASE_URL,
39
+ S as SURVEY_FORCE_ENABLE,
35
40
  E as SupportEmail,
36
- c as SupportPhone
41
+ i as SupportPhone
37
42
  };
38
43
  //# sourceMappingURL=Common.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Common.mjs","sources":["../../../src/constants/Common.ts"],"sourcesContent":["import { DayPartType } from './Enums';\n\nexport const SupportPhone = '19001717';\nexport const SupportEmail = 'customersupport@diag.vn';\n\nconst SURVEY_BASE_URL_STAGING =\n 'https://webportal-staging-micro-survey.diagvietnam.com/surveys';\nconst SURVEY_BASE_URL_PRODUCTION =\n 'https://webportal-micro-survey.diagvietnam.com/surveys';\n\nconst trimTrailingSlash = (url: string) => url.replace(/\\/$/, '');\n\n/** Resolved by the host app webpack DefinePlugin from SURVEY_BASE_URL / VUE_APP_ENV. */\nexport const SURVEY_BASE_URL = trimTrailingSlash(\n process.env.SURVEY_BASE_URL ||\n (process.env.VUE_APP_ENV === 'production'\n ? SURVEY_BASE_URL_PRODUCTION\n : SURVEY_BASE_URL_STAGING)\n);\n\n/** Local dev override (default false): show survey for all test results when `SURVEY_FORCE_ENABLE=true`. */\nexport const SURVEY_FORCE_ENABLE = process.env.SURVEY_FORCE_ENABLE === 'true';\nexport enum LsKey {\n Locale = 'DiagPatientPortalLocale',\n}\nexport const EventBusName = {\n Container: 'pat-container',\n MicroTestResult: 'pat-micro-test-result',\n};\nexport const EventType = {\n ChangeRoute: 'change-route',\n};\nexport const CookieName = {\n AccessToken: 'pe_access_token',\n};\nexport const DayPartDuration = {\n [DayPartType.Morning]: {\n Start: '05:00',\n End: '11:59',\n },\n [DayPartType.Afternoon]: {\n Start: '12:00',\n End: '16:59',\n },\n [DayPartType.Evening]: {\n Start: '17:00',\n End: '22:00',\n },\n};\n"],"names":["SupportPhone","SupportEmail","SURVEY_BASE_URL_STAGING","SURVEY_BASE_URL_PRODUCTION","trimTrailingSlash","url","SURVEY_BASE_URL","SURVEY_FORCE_ENABLE","LsKey","EventBusName","EventType","CookieName","DayPartDuration","DayPartType"],"mappings":";AAEO,MAAMA,IAAe,YACfC,IAAe,2BAEtBC,IACJ,kEACIC,IACJ,0DAEIC,IAAoB,CAACC,MAAgBA,EAAI,QAAQ,OAAO,EAAE,GAGnDC,IAAkBF;AAAA,EAC7B,QAAQ,IAAI,oBACT,QAAQ,IAAI,gBAAgB,eACzBD,IACAD;AACR,GAGaK,IAAsB,QAAQ,IAAI,wBAAwB;AAC3D,IAAAC,sBAAAA,OACVA,EAAA,SAAS,2BADCA,IAAAA,KAAA,CAAA,CAAA;AAGL,MAAMC,IAAe;AAAA,EAC1B,WAAW;AAAA,EACX,iBAAiB;AACnB,GACaC,IAAY;AAAA,EACvB,aAAa;AACf,GACaC,IAAa;AAAA,EACxB,aAAa;AACf,GACaC,IAAkB;AAAA,EAC7B,CAACC,EAAY,OAAO,GAAG;AAAA,IACrB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,CAACA,EAAY,SAAS,GAAG;AAAA,IACvB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,CAACA,EAAY,OAAO,GAAG;AAAA,IACrB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AACF;"}
1
+ {"version":3,"file":"Common.mjs","sources":["../../../src/constants/Common.ts"],"sourcesContent":["import { BookingSourceType, DayPartType } from './Enums';\n\nexport const SupportPhone = '19001717';\nexport const SupportEmail = 'customersupport@diag.vn';\n\n/** Source types of the bookings the patient pays online themselves (pat--booking--be Booking::SOURCE_TYPES_PAID_ONLINE_BY_PATIENT). */\nexport const SOURCE_TYPES_PAID_ONLINE_BY_PATIENT: `${BookingSourceType}`[] = [\n BookingSourceType.DiagInternalBooking,\n BookingSourceType.AssistedDoctorCreation,\n BookingSourceType.DiagTreatmentPlan,\n];\n\nconst SURVEY_BASE_URL_STAGING =\n 'https://webportal-staging-micro-survey.diagvietnam.com/surveys';\nconst SURVEY_BASE_URL_PRODUCTION =\n 'https://webportal-micro-survey.diagvietnam.com/surveys';\n\nconst trimTrailingSlash = (url: string) => url.replace(/\\/$/, '');\n\n/** Resolved by the host app webpack DefinePlugin from SURVEY_BASE_URL / VUE_APP_ENV. */\nexport const SURVEY_BASE_URL = trimTrailingSlash(\n process.env.SURVEY_BASE_URL ||\n (process.env.VUE_APP_ENV === 'production'\n ? SURVEY_BASE_URL_PRODUCTION\n : SURVEY_BASE_URL_STAGING)\n);\n\n/** Local dev override (default false): show survey for all test results when `SURVEY_FORCE_ENABLE=true`. */\nexport const SURVEY_FORCE_ENABLE = process.env.SURVEY_FORCE_ENABLE === 'true';\nexport enum LsKey {\n Locale = 'DiagPatientPortalLocale',\n}\nexport const EventBusName = {\n Container: 'pat-container',\n MicroTestResult: 'pat-micro-test-result',\n};\nexport const EventType = {\n ChangeRoute: 'change-route',\n};\nexport const CookieName = {\n AccessToken: 'pe_access_token',\n};\nexport const DayPartDuration = {\n [DayPartType.Morning]: {\n Start: '05:00',\n End: '11:59',\n },\n [DayPartType.Afternoon]: {\n Start: '12:00',\n End: '16:59',\n },\n [DayPartType.Evening]: {\n Start: '17:00',\n End: '22:00',\n },\n};\n"],"names":["SupportPhone","SupportEmail","SOURCE_TYPES_PAID_ONLINE_BY_PATIENT","BookingSourceType","SURVEY_BASE_URL_STAGING","SURVEY_BASE_URL_PRODUCTION","trimTrailingSlash","url","SURVEY_BASE_URL","SURVEY_FORCE_ENABLE","LsKey","EventBusName","EventType","CookieName","DayPartDuration","DayPartType"],"mappings":";AAEO,MAAMA,IAAe,YACfC,IAAe,2BAGfC,IAAgE;AAAA,EAC3EC,EAAkB;AAAA,EAClBA,EAAkB;AAAA,EAClBA,EAAkB;AACpB,GAEMC,IACJ,kEACIC,IACJ,0DAEIC,IAAoB,CAACC,MAAgBA,EAAI,QAAQ,OAAO,EAAE,GAGnDC,IAAkBF;AAAA,EAC7B,QAAQ,IAAI,oBACT,QAAQ,IAAI,gBAAgB,eACzBD,IACAD;AACR,GAGaK,IAAsB,QAAQ,IAAI,wBAAwB;AAC3D,IAAAC,sBAAAA,OACVA,EAAA,SAAS,2BADCA,IAAAA,KAAA,CAAA,CAAA;AAGL,MAAMC,IAAe;AAAA,EAC1B,WAAW;AAAA,EACX,iBAAiB;AACnB,GACaC,IAAY;AAAA,EACvB,aAAa;AACf,GACaC,IAAa;AAAA,EACxB,aAAa;AACf,GACaC,IAAkB;AAAA,EAC7B,CAACC,EAAY,OAAO,GAAG;AAAA,IACrB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,CAACA,EAAY,SAAS,GAAG;AAAA,IACvB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,CAACA,EAAY,OAAO,GAAG;AAAA,IACrB,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(r=>(r.Created="created",r.InProgress="in-progress",r.Completed="completed",r.Canceled="canceled",r))(e||{}),n=(r=>(r.RefundInProgress="refund_in_progress",r.Refunded="refunded",r.PayLater="pay-later",r.PaidOnline="paid-online",r.Paid="paid",r.Canceled="cancelled",r))(n||{}),a=(r=>(r.Group="GRP",r.Package="PKG",r.Investigation="INV",r.ImagingService="IMG",r))(a||{}),o=(r=>(r.Ordered="ordered",r.Ready="ready",r.PartiallyComplete="partial",r.InProgress="in-progress",r.Canceled="canceled",r.Rejected="rejected",r))(o||{}),d=(r=>(r.Default="default",r.GXNT1="GXNT1",r.HPV="HPV",r.STD="STD",r))(d||{}),i=(r=>(r.Abnormal="A",r.LowerAbnormal="L",r.Panic="P",r.Normal="N",r))(i||{}),l=(r=>(r.SampleCollected="SampleCollected",r.SampleReceived="SampleReceived",r.YetToTransfer="Yet to Transfer",r.Completed="Completed",r.Cancel="Cancel",r.Approve="Approve",r))(l||{}),c=(r=>(r.Numberic="numeric",r.Text="text",r.XML="XML",r))(c||{}),v=(r=>(r.Normal="normal",r.Attention="attention",r.Critical="critical",r))(v||{}),p=(r=>(r.GreaterThan=">",r.GreaterThanOrEqualTo="≥",r.LessThan="<",r.LessThanOrEqualTo="≤",r.BTW="btw",r.Txt="txt",r))(p||{}),m=(r=>(r.Remind="reminder",r.Recommend="recommend",r))(m||{}),C=(r=>(r.IDCard="ID Card",r.Passport="Passport",r.PassportNo="Passport No",r.Unknown="Unknown",r))(C||{}),f=(r=>(r.Male="Male",r.Female="Female",r))(f||{}),P=(r=>(r.Morning="morning",r.Afternoon="afternoon",r.Evening="evening",r))(P||{}),g=(r=>(r.HomeKit="homekit",r.Walkin="walkin",r.Doctor="doctor",r.Corporate="corporate",r))(g||{}),I=(r=>(r.Medium="md",r.Large="lg",r))(I||{});exports.AccountSegment=g;exports.BookingStatus=e;exports.BottomCursedType=I;exports.DayPartType=P;exports.DocumentType=C;exports.Gender=f;exports.PaymentStatus=n;exports.ResultSegmentNormalType=v;exports.ResultSegmentValueOPR=p;exports.ResultType=c;exports.ServiceType=a;exports.TestMoreType=m;exports.TestResultConclusion=i;exports.TestResultStatus=o;exports.TestResultTemplate=d;exports.TestStatus=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a=(r=>(r.Created="created",r.InProgress="in-progress",r.Completed="completed",r.Canceled="canceled",r))(a||{}),e=(r=>(r.RefundInProgress="refund_in_progress",r.Refunded="refunded",r.PayLater="pay-later",r.PaidOnline="paid-online",r.Paid="paid",r.Canceled="cancelled",r))(e||{}),n=(r=>(r.RefDoc="RefDoc",r.PatientApp="PatientApp",r.DTC="DTC",r.External="External",r.Website="Website",r.PatientExperience="PE",r.WebsitePaidOnline="WebsitePaidOnline",r.DiagTreatmentPlan="DiagTreatmentPlan",r.DiagInternalBooking="DiagInternalBooking",r.AssistedDoctorCreation="AssistedDoctorCreation",r.B2B="B2B",r.B2BPaidOnline="B2BPaidOnline",r.PharmacyReferral="PharmacyReferral",r.PharmacyReferralPaidOnline="PharmacyReferralPaidOnline",r.FOCBooking="FOCBooking",r))(n||{}),d=(r=>(r.Group="GRP",r.Package="PKG",r.Investigation="INV",r.ImagingService="IMG",r))(d||{}),i=(r=>(r.Ordered="ordered",r.Ready="ready",r.PartiallyComplete="partial",r.InProgress="in-progress",r.Canceled="canceled",r.Rejected="rejected",r))(i||{}),l=(r=>(r.Default="default",r.GXNT1="GXNT1",r.HPV="HPV",r.STD="STD",r))(l||{}),t=(r=>(r.Abnormal="A",r.LowerAbnormal="L",r.Panic="P",r.Normal="N",r))(t||{}),P=(r=>(r.SampleCollected="SampleCollected",r.SampleReceived="SampleReceived",r.YetToTransfer="Yet to Transfer",r.Completed="Completed",r.Cancel="Cancel",r.Approve="Approve",r))(P||{}),o=(r=>(r.Numberic="numeric",r.Text="text",r.XML="XML",r))(o||{}),v=(r=>(r.Normal="normal",r.Attention="attention",r.Critical="critical",r))(v||{}),m=(r=>(r.GreaterThan=">",r.GreaterThanOrEqualTo="≥",r.LessThan="<",r.LessThanOrEqualTo="≤",r.BTW="btw",r.Txt="txt",r))(m||{}),c=(r=>(r.Remind="reminder",r.Recommend="recommend",r))(c||{}),C=(r=>(r.IDCard="ID Card",r.Passport="Passport",r.PassportNo="Passport No",r.Unknown="Unknown",r))(C||{}),f=(r=>(r.Male="Male",r.Female="Female",r))(f||{}),D=(r=>(r.Morning="morning",r.Afternoon="afternoon",r.Evening="evening",r))(D||{}),p=(r=>(r.HomeKit="homekit",r.Walkin="walkin",r.Doctor="doctor",r.Corporate="corporate",r))(p||{}),I=(r=>(r.Medium="md",r.Large="lg",r))(I||{});exports.AccountSegment=p;exports.BookingSourceType=n;exports.BookingStatus=a;exports.BottomCursedType=I;exports.DayPartType=D;exports.DocumentType=C;exports.Gender=f;exports.PaymentStatus=e;exports.ResultSegmentNormalType=v;exports.ResultSegmentValueOPR=m;exports.ResultType=o;exports.ServiceType=d;exports.TestMoreType=c;exports.TestResultConclusion=t;exports.TestResultStatus=i;exports.TestResultTemplate=l;exports.TestStatus=P;
2
2
  //# sourceMappingURL=Enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Enums.js","sources":["../../../src/constants/Enums.ts"],"sourcesContent":["/**\n * Booking\n */\nexport enum BookingStatus {\n // Pending = 'pending', // there is no VID yet\n Created = 'created',\n InProgress = 'in-progress',\n Completed = 'completed',\n Canceled = 'canceled',\n}\nexport enum PaymentStatus {\n RefundInProgress = 'refund_in_progress',\n Refunded = 'refunded',\n PayLater = 'pay-later',\n PaidOnline = 'paid-online',\n Paid = 'paid',\n Canceled = 'cancelled',\n}\nexport enum ServiceType {\n Group = 'GRP',\n Package = 'PKG',\n Investigation = 'INV',\n ImagingService = 'IMG',\n}\n\n/**\n * Test Result\n */\nexport enum TestResultStatus {\n Ordered = 'ordered',\n Ready = 'ready',\n PartiallyComplete = 'partial',\n InProgress = 'in-progress',\n Canceled = 'canceled',\n Rejected = 'rejected',\n}\nexport enum TestResultTemplate {\n Default = 'default',\n GXNT1 = 'GXNT1',\n HPV = 'HPV',\n STD = 'STD',\n}\nexport enum TestResultConclusion {\n Abnormal = 'A',\n LowerAbnormal = 'L',\n Panic = 'P',\n Normal = 'N',\n}\nexport enum TestStatus {\n // Raw statuses from Attune\n SampleCollected = 'SampleCollected',\n SampleReceived = 'SampleReceived',\n YetToTransfer = 'Yet to Transfer',\n Completed = 'Completed',\n Cancel = 'Cancel',\n Approve = 'Approve',\n}\nexport enum ResultType {\n Numberic = 'numeric',\n Text = 'text',\n XML = 'XML',\n}\nexport enum ResultSegmentNormalType {\n Normal = 'normal',\n Attention = 'attention',\n Critical = 'critical',\n}\nexport enum ResultSegmentValueOPR {\n // value_min < * < +∞\n GreaterThan = '>',\n // value_min <= * < +∞\n GreaterThanOrEqualTo = '≥',\n // 0 < * < value_max\n LessThan = '<',\n // 0 < * <= value_max\n LessThanOrEqualTo = '≤',\n // value_min < *** <= value_max\n BTW = 'btw',\n\n // result_type=text\n Txt = 'txt',\n}\nexport enum TestMoreType {\n Remind = 'reminder',\n Recommend = 'recommend',\n}\n\n/**\n * Patient\n */\nexport enum DocumentType {\n IDCard = 'ID Card',\n Passport = 'Passport',\n PassportNo = 'Passport No',\n Unknown = 'Unknown',\n}\nexport enum Gender {\n Male = 'Male',\n Female = 'Female',\n}\n\n/**\n * Others\n */\nexport enum DayPartType {\n Morning = 'morning',\n Afternoon = 'afternoon',\n Evening = 'evening',\n}\nexport enum AccountSegment {\n HomeKit = 'homekit',\n Walkin = 'walkin',\n Doctor = 'doctor',\n Corporate = 'corporate',\n}\nexport enum BottomCursedType {\n Medium = 'md',\n Large = 'lg',\n}\n"],"names":["BookingStatus","PaymentStatus","ServiceType","TestResultStatus","TestResultTemplate","TestResultConclusion","TestStatus","ResultType","ResultSegmentNormalType","ResultSegmentValueOPR","TestMoreType","DocumentType","Gender","DayPartType","AccountSegment","BottomCursedType"],"mappings":"gFAGY,IAAAA,GAAAA,IAEVA,EAAA,QAAU,UACVA,EAAA,WAAa,cACbA,EAAA,UAAY,YACZA,EAAA,SAAW,WALDA,IAAAA,GAAA,CAAA,CAAA,EAOAC,GAAAA,IACVA,EAAA,iBAAmB,qBACnBA,EAAA,SAAW,WACXA,EAAA,SAAW,YACXA,EAAA,WAAa,cACbA,EAAA,KAAO,OACPA,EAAA,SAAW,YANDA,IAAAA,GAAA,CAAA,CAAA,EAQAC,GAAAA,IACVA,EAAA,MAAQ,MACRA,EAAA,QAAU,MACVA,EAAA,cAAgB,MAChBA,EAAA,eAAiB,MAJPA,IAAAA,GAAA,CAAA,CAAA,EAUAC,GAAAA,IACVA,EAAA,QAAU,UACVA,EAAA,MAAQ,QACRA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QAAU,UAHAA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,UAAY,YAJFA,IAAAA,GAAA,CAAA,CAAA,EAMAC,GAAAA,IACVA,EAAA,OAAS,KACTA,EAAA,MAAQ,KAFEA,IAAAA,GAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"Enums.js","sources":["../../../src/constants/Enums.ts"],"sourcesContent":["/**\n * Booking\n */\nexport enum BookingStatus {\n // Pending = 'pending', // there is no VID yet\n Created = 'created',\n InProgress = 'in-progress',\n Completed = 'completed',\n Canceled = 'canceled',\n}\nexport enum PaymentStatus {\n RefundInProgress = 'refund_in_progress',\n Refunded = 'refunded',\n PayLater = 'pay-later',\n PaidOnline = 'paid-online',\n Paid = 'paid',\n Canceled = 'cancelled',\n}\n// Where the booking comes from (pat--booking--be Booking::SOURCE_TYPE_*).\nexport enum BookingSourceType {\n RefDoc = 'RefDoc',\n PatientApp = 'PatientApp',\n DTC = 'DTC',\n External = 'External',\n Website = 'Website',\n PatientExperience = 'PE',\n WebsitePaidOnline = 'WebsitePaidOnline',\n DiagTreatmentPlan = 'DiagTreatmentPlan',\n DiagInternalBooking = 'DiagInternalBooking',\n AssistedDoctorCreation = 'AssistedDoctorCreation',\n B2B = 'B2B',\n B2BPaidOnline = 'B2BPaidOnline',\n PharmacyReferral = 'PharmacyReferral',\n PharmacyReferralPaidOnline = 'PharmacyReferralPaidOnline',\n FOCBooking = 'FOCBooking',\n}\nexport enum ServiceType {\n Group = 'GRP',\n Package = 'PKG',\n Investigation = 'INV',\n ImagingService = 'IMG',\n}\n\n/**\n * Test Result\n */\nexport enum TestResultStatus {\n Ordered = 'ordered',\n Ready = 'ready',\n PartiallyComplete = 'partial',\n InProgress = 'in-progress',\n Canceled = 'canceled',\n Rejected = 'rejected',\n}\nexport enum TestResultTemplate {\n Default = 'default',\n GXNT1 = 'GXNT1',\n HPV = 'HPV',\n STD = 'STD',\n}\nexport enum TestResultConclusion {\n Abnormal = 'A',\n LowerAbnormal = 'L',\n Panic = 'P',\n Normal = 'N',\n}\nexport enum TestStatus {\n // Raw statuses from Attune\n SampleCollected = 'SampleCollected',\n SampleReceived = 'SampleReceived',\n YetToTransfer = 'Yet to Transfer',\n Completed = 'Completed',\n Cancel = 'Cancel',\n Approve = 'Approve',\n}\nexport enum ResultType {\n Numberic = 'numeric',\n Text = 'text',\n XML = 'XML',\n}\nexport enum ResultSegmentNormalType {\n Normal = 'normal',\n Attention = 'attention',\n Critical = 'critical',\n}\nexport enum ResultSegmentValueOPR {\n // value_min < * < +∞\n GreaterThan = '>',\n // value_min <= * < +∞\n GreaterThanOrEqualTo = '≥',\n // 0 < * < value_max\n LessThan = '<',\n // 0 < * <= value_max\n LessThanOrEqualTo = '≤',\n // value_min < *** <= value_max\n BTW = 'btw',\n\n // result_type=text\n Txt = 'txt',\n}\nexport enum TestMoreType {\n Remind = 'reminder',\n Recommend = 'recommend',\n}\n\n/**\n * Patient\n */\nexport enum DocumentType {\n IDCard = 'ID Card',\n Passport = 'Passport',\n PassportNo = 'Passport No',\n Unknown = 'Unknown',\n}\nexport enum Gender {\n Male = 'Male',\n Female = 'Female',\n}\n\n/**\n * Others\n */\nexport enum DayPartType {\n Morning = 'morning',\n Afternoon = 'afternoon',\n Evening = 'evening',\n}\nexport enum AccountSegment {\n HomeKit = 'homekit',\n Walkin = 'walkin',\n Doctor = 'doctor',\n Corporate = 'corporate',\n}\nexport enum BottomCursedType {\n Medium = 'md',\n Large = 'lg',\n}\n"],"names":["BookingStatus","PaymentStatus","BookingSourceType","ServiceType","TestResultStatus","TestResultTemplate","TestResultConclusion","TestStatus","ResultType","ResultSegmentNormalType","ResultSegmentValueOPR","TestMoreType","DocumentType","Gender","DayPartType","AccountSegment","BottomCursedType"],"mappings":"gFAGY,IAAAA,GAAAA,IAEVA,EAAA,QAAU,UACVA,EAAA,WAAa,cACbA,EAAA,UAAY,YACZA,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,GAAA,CAAA,CAAA,EASAC,GAAAA,IACVA,EAAA,SAAW,UACXA,EAAA,KAAO,OACPA,EAAA,IAAM,MAHIA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,UAAY,YACZA,EAAA,SAAW,WAHDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IAEVA,EAAA,YAAc,IAEdA,EAAA,qBAAuB,IAEvBA,EAAA,SAAW,IAEXA,EAAA,kBAAoB,IAEpBA,EAAA,IAAM,MAGNA,EAAA,IAAM,MAbIA,IAAAA,GAAA,CAAA,CAAA,EAeAC,GAAAA,IACVA,EAAA,OAAS,WACTA,EAAA,UAAY,YAFFA,IAAAA,GAAA,CAAA,CAAA,EAQAC,GAAAA,IACVA,EAAA,OAAS,UACTA,EAAA,SAAW,WACXA,EAAA,WAAa,cACbA,EAAA,QAAU,UAJAA,IAAAA,GAAA,CAAA,CAAA,EAMAC,GAAAA,IACVA,EAAA,KAAO,OACPA,EAAA,OAAS,SAFCA,IAAAA,GAAA,CAAA,CAAA,EAQAC,GAAAA,IACVA,EAAA,QAAU,UACVA,EAAA,UAAY,YACZA,EAAA,QAAU,UAHAA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,UAAY,YAJFA,IAAAA,GAAA,CAAA,CAAA,EAMAC,GAAAA,IACVA,EAAA,OAAS,KACTA,EAAA,MAAQ,KAFEA,IAAAA,GAAA,CAAA,CAAA"}
@@ -1,20 +1,21 @@
1
- var n = /* @__PURE__ */ ((r) => (r.Created = "created", r.InProgress = "in-progress", r.Completed = "completed", r.Canceled = "canceled", r))(n || {}), a = /* @__PURE__ */ ((r) => (r.RefundInProgress = "refund_in_progress", r.Refunded = "refunded", r.PayLater = "pay-later", r.PaidOnline = "paid-online", r.Paid = "paid", r.Canceled = "cancelled", r))(a || {}), d = /* @__PURE__ */ ((r) => (r.Group = "GRP", r.Package = "PKG", r.Investigation = "INV", r.ImagingService = "IMG", r))(d || {}), e = /* @__PURE__ */ ((r) => (r.Ordered = "ordered", r.Ready = "ready", r.PartiallyComplete = "partial", r.InProgress = "in-progress", r.Canceled = "canceled", r.Rejected = "rejected", r))(e || {}), o = /* @__PURE__ */ ((r) => (r.Default = "default", r.GXNT1 = "GXNT1", r.HPV = "HPV", r.STD = "STD", r))(o || {}), i = /* @__PURE__ */ ((r) => (r.Abnormal = "A", r.LowerAbnormal = "L", r.Panic = "P", r.Normal = "N", r))(i || {}), v = /* @__PURE__ */ ((r) => (r.SampleCollected = "SampleCollected", r.SampleReceived = "SampleReceived", r.YetToTransfer = "Yet to Transfer", r.Completed = "Completed", r.Cancel = "Cancel", r.Approve = "Approve", r))(v || {}), c = /* @__PURE__ */ ((r) => (r.Numberic = "numeric", r.Text = "text", r.XML = "XML", r))(c || {}), l = /* @__PURE__ */ ((r) => (r.Normal = "normal", r.Attention = "attention", r.Critical = "critical", r))(l || {}), C = /* @__PURE__ */ ((r) => (r.GreaterThan = ">", r.GreaterThanOrEqualTo = "≥", r.LessThan = "<", r.LessThanOrEqualTo = "≤", r.BTW = "btw", r.Txt = "txt", r))(C || {}), p = /* @__PURE__ */ ((r) => (r.Remind = "reminder", r.Recommend = "recommend", r))(p || {}), f = /* @__PURE__ */ ((r) => (r.IDCard = "ID Card", r.Passport = "Passport", r.PassportNo = "Passport No", r.Unknown = "Unknown", r))(f || {}), I = /* @__PURE__ */ ((r) => (r.Male = "Male", r.Female = "Female", r))(I || {}), L = /* @__PURE__ */ ((r) => (r.Morning = "morning", r.Afternoon = "afternoon", r.Evening = "evening", r))(L || {}), G = /* @__PURE__ */ ((r) => (r.HomeKit = "homekit", r.Walkin = "walkin", r.Doctor = "doctor", r.Corporate = "corporate", r))(G || {}), N = /* @__PURE__ */ ((r) => (r.Medium = "md", r.Large = "lg", r))(N || {});
1
+ var a = /* @__PURE__ */ ((r) => (r.Created = "created", r.InProgress = "in-progress", r.Completed = "completed", r.Canceled = "canceled", r))(a || {}), n = /* @__PURE__ */ ((r) => (r.RefundInProgress = "refund_in_progress", r.Refunded = "refunded", r.PayLater = "pay-later", r.PaidOnline = "paid-online", r.Paid = "paid", r.Canceled = "cancelled", r))(n || {}), e = /* @__PURE__ */ ((r) => (r.RefDoc = "RefDoc", r.PatientApp = "PatientApp", r.DTC = "DTC", r.External = "External", r.Website = "Website", r.PatientExperience = "PE", r.WebsitePaidOnline = "WebsitePaidOnline", r.DiagTreatmentPlan = "DiagTreatmentPlan", r.DiagInternalBooking = "DiagInternalBooking", r.AssistedDoctorCreation = "AssistedDoctorCreation", r.B2B = "B2B", r.B2BPaidOnline = "B2BPaidOnline", r.PharmacyReferral = "PharmacyReferral", r.PharmacyReferralPaidOnline = "PharmacyReferralPaidOnline", r.FOCBooking = "FOCBooking", r))(e || {}), d = /* @__PURE__ */ ((r) => (r.Group = "GRP", r.Package = "PKG", r.Investigation = "INV", r.ImagingService = "IMG", r))(d || {}), i = /* @__PURE__ */ ((r) => (r.Ordered = "ordered", r.Ready = "ready", r.PartiallyComplete = "partial", r.InProgress = "in-progress", r.Canceled = "canceled", r.Rejected = "rejected", r))(i || {}), l = /* @__PURE__ */ ((r) => (r.Default = "default", r.GXNT1 = "GXNT1", r.HPV = "HPV", r.STD = "STD", r))(l || {}), v = /* @__PURE__ */ ((r) => (r.Abnormal = "A", r.LowerAbnormal = "L", r.Panic = "P", r.Normal = "N", r))(v || {}), P = /* @__PURE__ */ ((r) => (r.SampleCollected = "SampleCollected", r.SampleReceived = "SampleReceived", r.YetToTransfer = "Yet to Transfer", r.Completed = "Completed", r.Cancel = "Cancel", r.Approve = "Approve", r))(P || {}), C = /* @__PURE__ */ ((r) => (r.Numberic = "numeric", r.Text = "text", r.XML = "XML", r))(C || {}), f = /* @__PURE__ */ ((r) => (r.Normal = "normal", r.Attention = "attention", r.Critical = "critical", r))(f || {}), c = /* @__PURE__ */ ((r) => (r.GreaterThan = ">", r.GreaterThanOrEqualTo = "≥", r.LessThan = "<", r.LessThanOrEqualTo = "≤", r.BTW = "btw", r.Txt = "txt", r))(c || {}), m = /* @__PURE__ */ ((r) => (r.Remind = "reminder", r.Recommend = "recommend", r))(m || {}), D = /* @__PURE__ */ ((r) => (r.IDCard = "ID Card", r.Passport = "Passport", r.PassportNo = "Passport No", r.Unknown = "Unknown", r))(D || {}), I = /* @__PURE__ */ ((r) => (r.Male = "Male", r.Female = "Female", r))(I || {}), h = /* @__PURE__ */ ((r) => (r.Morning = "morning", r.Afternoon = "afternoon", r.Evening = "evening", r))(h || {}), o = /* @__PURE__ */ ((r) => (r.HomeKit = "homekit", r.Walkin = "walkin", r.Doctor = "doctor", r.Corporate = "corporate", r))(o || {}), b = /* @__PURE__ */ ((r) => (r.Medium = "md", r.Large = "lg", r))(b || {});
2
2
  export {
3
- G as AccountSegment,
4
- n as BookingStatus,
5
- N as BottomCursedType,
6
- L as DayPartType,
7
- f as DocumentType,
3
+ o as AccountSegment,
4
+ e as BookingSourceType,
5
+ a as BookingStatus,
6
+ b as BottomCursedType,
7
+ h as DayPartType,
8
+ D as DocumentType,
8
9
  I as Gender,
9
- a as PaymentStatus,
10
- l as ResultSegmentNormalType,
11
- C as ResultSegmentValueOPR,
12
- c as ResultType,
10
+ n as PaymentStatus,
11
+ f as ResultSegmentNormalType,
12
+ c as ResultSegmentValueOPR,
13
+ C as ResultType,
13
14
  d as ServiceType,
14
- p as TestMoreType,
15
- i as TestResultConclusion,
16
- e as TestResultStatus,
17
- o as TestResultTemplate,
18
- v as TestStatus
15
+ m as TestMoreType,
16
+ v as TestResultConclusion,
17
+ i as TestResultStatus,
18
+ l as TestResultTemplate,
19
+ P as TestStatus
19
20
  };
20
21
  //# sourceMappingURL=Enums.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Enums.mjs","sources":["../../../src/constants/Enums.ts"],"sourcesContent":["/**\n * Booking\n */\nexport enum BookingStatus {\n // Pending = 'pending', // there is no VID yet\n Created = 'created',\n InProgress = 'in-progress',\n Completed = 'completed',\n Canceled = 'canceled',\n}\nexport enum PaymentStatus {\n RefundInProgress = 'refund_in_progress',\n Refunded = 'refunded',\n PayLater = 'pay-later',\n PaidOnline = 'paid-online',\n Paid = 'paid',\n Canceled = 'cancelled',\n}\nexport enum ServiceType {\n Group = 'GRP',\n Package = 'PKG',\n Investigation = 'INV',\n ImagingService = 'IMG',\n}\n\n/**\n * Test Result\n */\nexport enum TestResultStatus {\n Ordered = 'ordered',\n Ready = 'ready',\n PartiallyComplete = 'partial',\n InProgress = 'in-progress',\n Canceled = 'canceled',\n Rejected = 'rejected',\n}\nexport enum TestResultTemplate {\n Default = 'default',\n GXNT1 = 'GXNT1',\n HPV = 'HPV',\n STD = 'STD',\n}\nexport enum TestResultConclusion {\n Abnormal = 'A',\n LowerAbnormal = 'L',\n Panic = 'P',\n Normal = 'N',\n}\nexport enum TestStatus {\n // Raw statuses from Attune\n SampleCollected = 'SampleCollected',\n SampleReceived = 'SampleReceived',\n YetToTransfer = 'Yet to Transfer',\n Completed = 'Completed',\n Cancel = 'Cancel',\n Approve = 'Approve',\n}\nexport enum ResultType {\n Numberic = 'numeric',\n Text = 'text',\n XML = 'XML',\n}\nexport enum ResultSegmentNormalType {\n Normal = 'normal',\n Attention = 'attention',\n Critical = 'critical',\n}\nexport enum ResultSegmentValueOPR {\n // value_min < * < +∞\n GreaterThan = '>',\n // value_min <= * < +∞\n GreaterThanOrEqualTo = '≥',\n // 0 < * < value_max\n LessThan = '<',\n // 0 < * <= value_max\n LessThanOrEqualTo = '≤',\n // value_min < *** <= value_max\n BTW = 'btw',\n\n // result_type=text\n Txt = 'txt',\n}\nexport enum TestMoreType {\n Remind = 'reminder',\n Recommend = 'recommend',\n}\n\n/**\n * Patient\n */\nexport enum DocumentType {\n IDCard = 'ID Card',\n Passport = 'Passport',\n PassportNo = 'Passport No',\n Unknown = 'Unknown',\n}\nexport enum Gender {\n Male = 'Male',\n Female = 'Female',\n}\n\n/**\n * Others\n */\nexport enum DayPartType {\n Morning = 'morning',\n Afternoon = 'afternoon',\n Evening = 'evening',\n}\nexport enum AccountSegment {\n HomeKit = 'homekit',\n Walkin = 'walkin',\n Doctor = 'doctor',\n Corporate = 'corporate',\n}\nexport enum BottomCursedType {\n Medium = 'md',\n Large = 'lg',\n}\n"],"names":["BookingStatus","PaymentStatus","ServiceType","TestResultStatus","TestResultTemplate","TestResultConclusion","TestStatus","ResultType","ResultSegmentNormalType","ResultSegmentValueOPR","TestMoreType","DocumentType","Gender","DayPartType","AccountSegment","BottomCursedType"],"mappings":"AAGY,IAAAA,sBAAAA,OAEVA,EAAA,UAAU,WACVA,EAAA,aAAa,eACbA,EAAA,YAAY,aACZA,EAAA,WAAW,YALDA,IAAAA,KAAA,CAAA,CAAA,GAOAC,sBAAAA,OACVA,EAAA,mBAAmB,sBACnBA,EAAA,WAAW,YACXA,EAAA,WAAW,aACXA,EAAA,aAAa,eACbA,EAAA,OAAO,QACPA,EAAA,WAAW,aANDA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,QAAQ,OACRA,EAAA,UAAU,OACVA,EAAA,gBAAgB,OAChBA,EAAA,iBAAiB,OAJPA,IAAAA,KAAA,CAAA,CAAA,GAUAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,oBAAoB,WACpBA,EAAA,aAAa,eACbA,EAAA,WAAW,YACXA,EAAA,WAAW,YANDA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,MAAM,OACNA,EAAA,MAAM,OAJIA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACVA,EAAA,WAAW,KACXA,EAAA,gBAAgB,KAChBA,EAAA,QAAQ,KACRA,EAAA,SAAS,KAJCA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OAEVA,EAAA,kBAAkB,mBAClBA,EAAA,iBAAiB,kBACjBA,EAAA,gBAAgB,mBAChBA,EAAA,YAAY,aACZA,EAAA,SAAS,UACTA,EAAA,UAAU,WAPAA,IAAAA,KAAA,CAAA,CAAA,GASAC,sBAAAA,OACVA,EAAA,WAAW,WACXA,EAAA,OAAO,QACPA,EAAA,MAAM,OAHIA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,YAAY,aACZA,EAAA,WAAW,YAHDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OAEVA,EAAA,cAAc,KAEdA,EAAA,uBAAuB,KAEvBA,EAAA,WAAW,KAEXA,EAAA,oBAAoB,KAEpBA,EAAA,MAAM,OAGNA,EAAA,MAAM,OAbIA,IAAAA,KAAA,CAAA,CAAA,GAeAC,sBAAAA,OACVA,EAAA,SAAS,YACTA,EAAA,YAAY,aAFFA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,SAAS,WACTA,EAAA,WAAW,YACXA,EAAA,aAAa,eACbA,EAAA,UAAU,WAJAA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,YAAY,aACZA,EAAA,UAAU,WAHAA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UACTA,EAAA,SAAS,UACTA,EAAA,YAAY,aAJFA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACVA,EAAA,SAAS,MACTA,EAAA,QAAQ,MAFEA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"Enums.mjs","sources":["../../../src/constants/Enums.ts"],"sourcesContent":["/**\n * Booking\n */\nexport enum BookingStatus {\n // Pending = 'pending', // there is no VID yet\n Created = 'created',\n InProgress = 'in-progress',\n Completed = 'completed',\n Canceled = 'canceled',\n}\nexport enum PaymentStatus {\n RefundInProgress = 'refund_in_progress',\n Refunded = 'refunded',\n PayLater = 'pay-later',\n PaidOnline = 'paid-online',\n Paid = 'paid',\n Canceled = 'cancelled',\n}\n// Where the booking comes from (pat--booking--be Booking::SOURCE_TYPE_*).\nexport enum BookingSourceType {\n RefDoc = 'RefDoc',\n PatientApp = 'PatientApp',\n DTC = 'DTC',\n External = 'External',\n Website = 'Website',\n PatientExperience = 'PE',\n WebsitePaidOnline = 'WebsitePaidOnline',\n DiagTreatmentPlan = 'DiagTreatmentPlan',\n DiagInternalBooking = 'DiagInternalBooking',\n AssistedDoctorCreation = 'AssistedDoctorCreation',\n B2B = 'B2B',\n B2BPaidOnline = 'B2BPaidOnline',\n PharmacyReferral = 'PharmacyReferral',\n PharmacyReferralPaidOnline = 'PharmacyReferralPaidOnline',\n FOCBooking = 'FOCBooking',\n}\nexport enum ServiceType {\n Group = 'GRP',\n Package = 'PKG',\n Investigation = 'INV',\n ImagingService = 'IMG',\n}\n\n/**\n * Test Result\n */\nexport enum TestResultStatus {\n Ordered = 'ordered',\n Ready = 'ready',\n PartiallyComplete = 'partial',\n InProgress = 'in-progress',\n Canceled = 'canceled',\n Rejected = 'rejected',\n}\nexport enum TestResultTemplate {\n Default = 'default',\n GXNT1 = 'GXNT1',\n HPV = 'HPV',\n STD = 'STD',\n}\nexport enum TestResultConclusion {\n Abnormal = 'A',\n LowerAbnormal = 'L',\n Panic = 'P',\n Normal = 'N',\n}\nexport enum TestStatus {\n // Raw statuses from Attune\n SampleCollected = 'SampleCollected',\n SampleReceived = 'SampleReceived',\n YetToTransfer = 'Yet to Transfer',\n Completed = 'Completed',\n Cancel = 'Cancel',\n Approve = 'Approve',\n}\nexport enum ResultType {\n Numberic = 'numeric',\n Text = 'text',\n XML = 'XML',\n}\nexport enum ResultSegmentNormalType {\n Normal = 'normal',\n Attention = 'attention',\n Critical = 'critical',\n}\nexport enum ResultSegmentValueOPR {\n // value_min < * < +∞\n GreaterThan = '>',\n // value_min <= * < +∞\n GreaterThanOrEqualTo = '≥',\n // 0 < * < value_max\n LessThan = '<',\n // 0 < * <= value_max\n LessThanOrEqualTo = '≤',\n // value_min < *** <= value_max\n BTW = 'btw',\n\n // result_type=text\n Txt = 'txt',\n}\nexport enum TestMoreType {\n Remind = 'reminder',\n Recommend = 'recommend',\n}\n\n/**\n * Patient\n */\nexport enum DocumentType {\n IDCard = 'ID Card',\n Passport = 'Passport',\n PassportNo = 'Passport No',\n Unknown = 'Unknown',\n}\nexport enum Gender {\n Male = 'Male',\n Female = 'Female',\n}\n\n/**\n * Others\n */\nexport enum DayPartType {\n Morning = 'morning',\n Afternoon = 'afternoon',\n Evening = 'evening',\n}\nexport enum AccountSegment {\n HomeKit = 'homekit',\n Walkin = 'walkin',\n Doctor = 'doctor',\n Corporate = 'corporate',\n}\nexport enum BottomCursedType {\n Medium = 'md',\n Large = 'lg',\n}\n"],"names":["BookingStatus","PaymentStatus","BookingSourceType","ServiceType","TestResultStatus","TestResultTemplate","TestResultConclusion","TestStatus","ResultType","ResultSegmentNormalType","ResultSegmentValueOPR","TestMoreType","DocumentType","Gender","DayPartType","AccountSegment","BottomCursedType"],"mappings":"AAGY,IAAAA,sBAAAA,OAEVA,EAAA,UAAU,WACVA,EAAA,aAAa,eACbA,EAAA,YAAY,aACZA,EAAA,WAAW,YALDA,IAAAA,KAAA,CAAA,CAAA,GAOAC,sBAAAA,OACVA,EAAA,mBAAmB,sBACnBA,EAAA,WAAW,YACXA,EAAA,WAAW,aACXA,EAAA,aAAa,eACbA,EAAA,OAAO,QACPA,EAAA,WAAW,aANDA,IAAAA,KAAA,CAAA,CAAA,GASAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,aAAa,cACbA,EAAA,MAAM,OACNA,EAAA,WAAW,YACXA,EAAA,UAAU,WACVA,EAAA,oBAAoB,MACpBA,EAAA,oBAAoB,qBACpBA,EAAA,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EAAA,MAAM,OAbIA,IAAAA,KAAA,CAAA,CAAA,GAeAC,sBAAAA,OACVA,EAAA,SAAS,YACTA,EAAA,YAAY,aAFFA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,SAAS,WACTA,EAAA,WAAW,YACXA,EAAA,aAAa,eACbA,EAAA,UAAU,WAJAA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,YAAY,aACZA,EAAA,UAAU,WAHAA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UACTA,EAAA,SAAS,UACTA,EAAA,YAAY,aAJFA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACVA,EAAA,SAAS,MACTA,EAAA,QAAQ,MAFEA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={and:"and",gender:"Gender",male:"Male",female:"Female",confirm:"Confirm",test_result_my_profile:"Hồ sơ của tôi",test_result_if_you_wish_to_edit_your_profile:'If you wish to edit your profile, please <a href="tel:1900 1717" class="contact-support">contact support</a>',test_result_test_more_for_better_health:"Test more for better health",test_result_book_general_screening_panel_now:"Book General Screening Panel now",test_result_status_not_ready:"Not ready yet",test_result_status_couldnt_process:"Couldn't process",test_result_status_ready:"Ready",test_result_status_partially_ready:"Partially ready",test_result_order:"Order",test_result_all_results:"All results",test_result_load_older_results:"Load older results",test_result_all_results_loaded:"All results are loaded",test_result_hi:"Hi,",test_result_your_result_ready:"Your results are ready",test_result_result_partial_completed:"Your results are partially ready",test_result_your_result_not_ready:"Your results are not ready yet",test_result_sample_collected:"Collected:",test_result_result_ready:"Ready:",test_result_sample_collected_on:"Your sample was collected on",test_result_result_released_on:"and your results were released on ",test_result_check_other_results:"Check other results",call_us:"Call for support",test_result_time_support:"From 06:00 - 21:00",test_result_sample_could_not_processed:"Results could not be processed",test_result_contact_support:"Please contact our customer service for further support.",test_result_being_prepared:"Your results are being prepared.",test_result_note:"Doctor's comments",doctor_note_detail_show_more:"Show more",doctor_note_detail_show_less:"Show less",doctor_note_detail_title:"You have notes from our doctor",doctor_note_detail_conclusion:"Conclusion of test report (conditions)",doctor_note_detail_diet:"Diet",doctor_note_detail_lifestyle:"Lifestyle",doctor_note_detail_physical_activity:"Physical activity",doctor_note_detail_follow_up_plans:"Follow-up plans",doctor_note_detail_next_appointment_date:"Next appointment date",doctor_note_detail_vaccination_treatment:"Vaccination & treatment",doctor_note_detail_appointment_bookings:"Bookings & Follow-up appointment",doctor_note_detail_booking_now:"Book now",doctor_note_detail_booking_overdue:"Overdue",test_result_measured_in:"measured in",test_result_critical:"Critical",test_result_high:"High",test_result_low:"Low",test_result_normal:"Normal",test_result_about:"About",test_result_all_bookings:"All bookings",test_result_more_bookings:"More Bookings",test_result_no_booking_found:"No booking found",test_result_message_no_booking_yet:"You haven't created any booking yet",test_result_support:"Support",test_result_find_nearest_diag_branch:"Find the nearest branch",test_result_no_results_found:"No results found",test_result_book_to_show_result:"Book a test to show results",test_result_doctor_appointment:"Lab tests explanation",test_result_contact_for_explanation:"Contact DIAG to better understand your test results",test_result_report:"Result report",test_result_new:"Beta",test_result_report_description:"Easy-to-understand, personalized summary of your test results",test_result_free:"Free",test_result_step_ordered:"Order Created",test_result_step_sample_collected:"Sample Collected",test_result_step_in_progress:"Lab Processing",test_result_step_partially_approved:"Partially Completed",test_result_step_approved:"Completed",test_result_current_status:"Current status",test_result_view_detail:"View details",test_result_collapse:"Collapse",test_result_more_about_your_results:"Find out more about your resutls",test_result_choose_time:"Book your appointment",test_result_book_appointment:"Book a call",test_result_call_support:"Call support",test_result_take_survey_description:"Answer a few questions so we can support you better",test_result_take_survey_button:"Rate your experience",test_result_take_survey_error:"Could not open the survey. Please try again later.",test_result_take_teledoc_survey_button:"Rate your consultation",test_result_successfully_booked:"Successfully booked",test_result_have_an_appointment_with_doctor:"You have an appointment with our doctor on {date}.",test_result_book_appointment_error_title:"Something went wrong...",test_result_book_appointment_error_description:"Please try to book the appointment again or contact Diag via hotline 19001717 if the error still happens",test_result_upcoming_appointment:"Upcoming appoinment",test_result_get_started:"Get started",test_result_book_first_test:"Book your first test now",test_result_booking_account_code:"Account code:",test_result_booking_document_type_id_number:"ID number:",test_result_booking_document_type_passport_no:"Passport no:",test_result_booking_patient:"Patient",test_result_booking_doctor:"Doctor",test_result_booking_booking_number:"Your booking number",test_result_booking_results_will_be_there:"Your results will be here...",test_result_booking_booking_canceled:"Your booking was cancelled",test_result_booking_next_step:"Next steps",test_result_booking_diag_contact_you_and_check:"Diag will contact you and check for your preferred time slot.",test_result_booking_find_location_center:"Find location center",test_result_booking_view_results:"View my results",test_result_booking_test_results:"Test results",test_result_booking_need_collect_sample:"Nurse needs to collect your sample.",test_result_booking_processing_sample:"We are processing your sample.",test_result_booking_fully_ready:"Your results are fully ready now.",test_result_booking_booking_details:"Booking details",test_result_booking_payment_status_pay_later:"Pay later",test_result_booking_payment_status_paid_online:"Paid",test_result_booking_payment_status_paid:"Paid",test_result_booking_payment_status_refund_in_progress:"Refunding",test_result_booking_payment_status_refunded:"Refunded",test_result_booking_payment_status_canceled:"Canceled",test_result_booking_booking_status_created:"Created",test_result_booking_booking_status_in_progress:"In progress",test_result_booking_booking_status_completed:"Completed",test_result_booking_booking_status_canceled:"Canceled",test_result_booking_total_payment:"Total Payment",test_result_booking_note:"Note",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"Sample collection",test_result_booking_testing_location:"Testing location",test_result_booking_address:"Address",test_result_booking_expected_date:"Expected date",test_result_booking_tests:"Tests",test_result_booking_packages:"Packages",test_result_booking_imaging_services:"Imaging services",test_result_booking_attachment:"Attachments",date_time:{day_parts:{morning:"Morning",afternoon:"Afternoon",evening:"Evening"}},test_result_health_summary:"Health summary",test_result_have_questions:"Book a consult call",test_result_appointment_date:"{date} in the {time}",test_result_come_to_diag_to_get_tested:"Come to Diag to get tested",test_result_locate_this_center:"Locate this center",test_result_show_all_locations:"Show all locations",test_result_booking_number:"Booking number",test_result_total_price:"Total price",test_result_add_remove_test_message:"If you want to add or remove a test, please indicate this to our receptionist.",test_result_additional_tests:"Additional tests",test_result_recommended_tests:"Recommended tests",test_result_count_day:"{count} day",test_result_count_month:"{count} month",test_result_count_days:"{count} days",test_result_count_months:"{count} months",test_result_remind_message_title:"Time to get tested again!",test_result_remind_message_content:"It's been almost {count} since your last health check-up.",test_result_recommend_message_title:"You should take additional tests",test_result_recommend_message_content:"Based on your recent results, you are recommended to take additional tests.",test_result_followup_title:"Your Health Follow-up Reminder",test_result_followup_subtitle:"You have a health follow-up appointment with Diag on {date}. Your booking code is {code}.",test_result_recommend_title:"Further Tests Suggested",test_result_recommend_subtitle:"Diag recommends follow-up tests based on your test results. Your booking code is {code}.",test_result_recommend_subtitle_no_code:"Diag recommends follow-up tests based on your test results.",test_result_followup_context_remind:`Thank you for choosing Diag! Your health is always our top priority.
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={and:"and",gender:"Gender",male:"Male",female:"Female",confirm:"Confirm",test_result_my_profile:"Hồ sơ của tôi",test_result_if_you_wish_to_edit_your_profile:'If you wish to edit your profile, please <a href="tel:1900 1717" class="contact-support">contact support</a>',test_result_test_more_for_better_health:"Test more for better health",test_result_book_general_screening_panel_now:"Book General Screening Panel now",test_result_status_not_ready:"Not ready yet",test_result_status_couldnt_process:"Couldn't process",test_result_status_ready:"Ready",test_result_status_partially_ready:"Partially ready",test_result_order:"Order",test_result_all_results:"All results",test_result_load_older_results:"Load older results",test_result_all_results_loaded:"All results are loaded",test_result_hi:"Hi,",test_result_your_result_ready:"Your results are ready",test_result_result_partial_completed:"Your results are partially ready",test_result_your_result_not_ready:"Your results are not ready yet",test_result_sample_collected:"Collected:",test_result_result_ready:"Ready:",test_result_sample_collected_on:"Your sample was collected on",test_result_result_released_on:"and your results were released on ",test_result_check_other_results:"Check other results",call_us:"Call for support",test_result_time_support:"From 06:00 - 21:00",test_result_sample_could_not_processed:"Results could not be processed",test_result_contact_support:"Please contact our customer service for further support.",test_result_being_prepared:"Your results are being prepared.",test_result_note:"Doctor's comments",doctor_note_detail_show_more:"Show more",doctor_note_detail_show_less:"Show less",doctor_note_detail_title:"You have notes from our doctor",doctor_note_detail_conclusion:"Conclusion of test report (conditions)",doctor_note_detail_diet:"Diet",doctor_note_detail_lifestyle:"Lifestyle",doctor_note_detail_physical_activity:"Physical activity",doctor_note_detail_follow_up_plans:"Follow-up plans",doctor_note_detail_next_appointment_date:"Next appointment date",doctor_note_detail_vaccination_treatment:"Vaccination & treatment",doctor_note_detail_appointment_bookings:"Bookings & Follow-up appointment",doctor_note_detail_booking_now:"Book now",doctor_note_detail_booking_overdue:"Overdue",test_result_measured_in:"measured in",test_result_critical:"Critical",test_result_high:"High",test_result_low:"Low",test_result_normal:"Normal",test_result_about:"About",test_result_all_bookings:"All bookings",test_result_more_bookings:"More Bookings",test_result_no_booking_found:"No booking found",test_result_message_no_booking_yet:"You haven't created any booking yet",test_result_support:"Support",test_result_find_nearest_diag_branch:"Find the nearest branch",test_result_no_results_found:"No results found",test_result_book_to_show_result:"Book a test to show results",test_result_doctor_appointment:"Lab tests explanation",test_result_contact_for_explanation:"Contact DIAG to better understand your test results",test_result_report:"Result report",test_result_new:"Beta",test_result_report_description:"Easy-to-understand, personalized summary of your test results",test_result_free:"Free",test_result_step_ordered:"Order Created",test_result_step_sample_collected:"Sample Collected",test_result_step_in_progress:"Lab Processing",test_result_step_partially_approved:"Partially Completed",test_result_step_approved:"Completed",test_result_current_status:"Current status",test_result_view_detail:"View details",test_result_collapse:"Collapse",test_result_more_about_your_results:"Find out more about your resutls",test_result_choose_time:"Book your appointment",test_result_book_appointment:"Book a call",test_result_call_support:"Call support",test_result_take_survey_description:"Answer a few questions so we can support you better",test_result_take_survey_button:"Rate your experience",test_result_take_survey_error:"Could not open the survey. Please try again later.",test_result_take_teledoc_survey_button:"Rate your consultation",test_result_successfully_booked:"Successfully booked",test_result_have_an_appointment_with_doctor:"You have an appointment with our doctor on {date}.",test_result_book_appointment_error_title:"Something went wrong...",test_result_book_appointment_error_description:"Please try to book the appointment again or contact Diag via hotline 19001717 if the error still happens",test_result_upcoming_appointment:"Upcoming appoinment",test_result_get_started:"Get started",test_result_book_first_test:"Book your first test now",test_result_booking_account_code:"Account code:",test_result_booking_document_type_id_number:"ID number:",test_result_booking_document_type_passport_no:"Passport no:",test_result_booking_patient:"Patient",test_result_booking_doctor:"Doctor",test_result_booking_booking_number:"Your booking number",test_result_booking_results_will_be_there:"Your results will be here...",test_result_booking_booking_canceled:"Your booking was cancelled",test_result_booking_next_step:"Next steps",test_result_booking_pay_online_title:"Pay online",test_result_booking_pay_online_subtitle:"Pay for this booking online before your visit. Once paid online, this booking can no longer be changed.",test_result_booking_pay_online_button:"Pay now",test_result_booking_pay_online_creating:"Opening payment page...",test_result_booking_pay_online_failed:"Could not open the payment page. Please try again.",test_result_booking_payment_successful:"Payment successful",test_result_booking_diag_contact_you_and_check:"Diag will contact you and check for your preferred time slot.",test_result_booking_find_location_center:"Find location center",test_result_booking_view_results:"View my results",test_result_booking_test_results:"Test results",test_result_booking_need_collect_sample:"Nurse needs to collect your sample.",test_result_booking_processing_sample:"We are processing your sample.",test_result_booking_fully_ready:"Your results are fully ready now.",test_result_booking_booking_details:"Booking details",test_result_booking_payment_status_pay_later:"Pay later",test_result_booking_payment_status_paid_online:"Paid",test_result_booking_payment_status_paid:"Paid",test_result_booking_payment_status_refund_in_progress:"Refunding",test_result_booking_payment_status_refunded:"Refunded",test_result_booking_payment_status_canceled:"Canceled",test_result_booking_booking_status_created:"Created",test_result_booking_booking_status_in_progress:"In progress",test_result_booking_booking_status_completed:"Completed",test_result_booking_booking_status_canceled:"Canceled",test_result_booking_total_payment:"Total Payment",test_result_booking_note:"Note",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"Sample collection",test_result_booking_testing_location:"Testing location",test_result_booking_address:"Address",test_result_booking_expected_date:"Expected date",test_result_booking_tests:"Tests",test_result_booking_packages:"Packages",test_result_booking_imaging_services:"Imaging services",test_result_booking_attachment:"Attachments",date_time:{day_parts:{morning:"Morning",afternoon:"Afternoon",evening:"Evening"}},test_result_health_summary:"Health summary",test_result_have_questions:"Book a consult call",test_result_appointment_date:"{date} in the {time}",test_result_come_to_diag_to_get_tested:"Come to Diag to get tested",test_result_locate_this_center:"Locate this center",test_result_show_all_locations:"Show all locations",test_result_booking_number:"Booking number",test_result_total_price:"Total price",test_result_add_remove_test_message:"If you want to add or remove a test, please indicate this to our receptionist.",test_result_additional_tests:"Additional tests",test_result_recommended_tests:"Recommended tests",test_result_count_day:"{count} day",test_result_count_month:"{count} month",test_result_count_days:"{count} days",test_result_count_months:"{count} months",test_result_remind_message_title:"Time to get tested again!",test_result_remind_message_content:"It's been almost {count} since your last health check-up.",test_result_recommend_message_title:"You should take additional tests",test_result_recommend_message_content:"Based on your recent results, you are recommended to take additional tests.",test_result_followup_title:"Your Health Follow-up Reminder",test_result_followup_subtitle:"You have a health follow-up appointment with Diag on {date}. Your booking code is {code}.",test_result_recommend_title:"Further Tests Suggested",test_result_recommend_subtitle:"Diag recommends follow-up tests based on your test results. Your booking code is {code}.",test_result_recommend_subtitle_no_code:"Diag recommends follow-up tests based on your test results.",test_result_followup_context_remind:`Thank you for choosing Diag! Your health is always our top priority.
2
2
 
3
3
  Based on your test results from {last_visit_date} (Record ID: {customer_code}), our doctor recommends that you undergo the follow-up tests below to ensure more effective health monitoring and management.`,test_result_followup_context_recommend:`Thank you for choosing Diag! Your health is always our top priority.
4
4
 
@@ -96,6 +96,12 @@ const t = {
96
96
  test_result_booking_results_will_be_there: "Your results will be here...",
97
97
  test_result_booking_booking_canceled: "Your booking was cancelled",
98
98
  test_result_booking_next_step: "Next steps",
99
+ test_result_booking_pay_online_title: "Pay online",
100
+ test_result_booking_pay_online_subtitle: "Pay for this booking online before your visit. Once paid online, this booking can no longer be changed.",
101
+ test_result_booking_pay_online_button: "Pay now",
102
+ test_result_booking_pay_online_creating: "Opening payment page...",
103
+ test_result_booking_pay_online_failed: "Could not open the payment page. Please try again.",
104
+ test_result_booking_payment_successful: "Payment successful",
99
105
  test_result_booking_diag_contact_you_and_check: "Diag will contact you and check for your preferred time slot.",
100
106
  test_result_booking_find_location_center: "Find location center",
101
107
  test_result_booking_view_results: "View my results",
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}