pat-shared-components 1.3.1-beta.35 → 1.3.1-beta.36

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 (54) hide show
  1. package/dist/pat-shared-components.js +1 -1
  2. package/dist/pat-shared-components.mjs +42 -40
  3. package/dist/pat-shared-components.mjs.map +1 -1
  4. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.js +1 -1
  5. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.js.map +1 -1
  6. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.mjs +89 -81
  7. package/dist/src/components/TestResult/Desktop/TestResultDetailDesktop.vue.mjs.map +1 -1
  8. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.js +1 -1
  9. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.js.map +1 -1
  10. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.mjs +86 -78
  11. package/dist/src/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.mjs.map +1 -1
  12. package/dist/src/components/TestResult/Shared/BookAppointment.vue.js +1 -1
  13. package/dist/src/components/TestResult/Shared/BookAppointment.vue.js.map +1 -1
  14. package/dist/src/components/TestResult/Shared/BookAppointment.vue.mjs +48 -23
  15. package/dist/src/components/TestResult/Shared/BookAppointment.vue.mjs.map +1 -1
  16. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue.js +2 -0
  17. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue.js.map +1 -0
  18. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue.mjs +30 -0
  19. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue.mjs.map +1 -0
  20. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue2.js +2 -0
  21. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue2.js.map +1 -0
  22. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue2.mjs +5 -0
  23. package/dist/src/components/TestResult/Shared/ResultInsightCards.vue2.mjs.map +1 -0
  24. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue.js +1 -1
  25. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue.mjs +2 -2
  26. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue2.js +1 -1
  27. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue2.js.map +1 -1
  28. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue2.mjs +184 -108
  29. package/dist/src/components/TestResult/Shared/ResultReadyV2.vue2.mjs.map +1 -1
  30. package/dist/src/components/TestResult/Shared/ResultReport.vue.js +2 -0
  31. package/dist/src/components/TestResult/Shared/ResultReport.vue.js.map +1 -0
  32. package/dist/src/components/TestResult/Shared/ResultReport.vue.mjs +53 -0
  33. package/dist/src/components/TestResult/Shared/ResultReport.vue.mjs.map +1 -0
  34. package/dist/src/components/TestResult/Shared/ResultReport.vue2.js +2 -0
  35. package/dist/src/components/TestResult/Shared/ResultReport.vue2.js.map +1 -0
  36. package/dist/src/components/TestResult/Shared/ResultReport.vue2.mjs +5 -0
  37. package/dist/src/components/TestResult/Shared/ResultReport.vue2.mjs.map +1 -0
  38. package/dist/src/components/TestResult/Shared/TakeSurvey.vue.js.map +1 -1
  39. package/dist/src/components/TestResult/Shared/TakeSurvey.vue.mjs +3 -1
  40. package/dist/src/components/TestResult/Shared/TakeSurvey.vue.mjs.map +1 -1
  41. package/dist/src/locales/en.json.js +1 -1
  42. package/dist/src/locales/en.json.mjs +7 -0
  43. package/dist/src/locales/en.json.mjs.map +1 -1
  44. package/dist/src/locales/vi.json.js +1 -1
  45. package/dist/src/locales/vi.json.mjs +8 -1
  46. package/dist/src/locales/vi.json.mjs.map +1 -1
  47. package/dist/style.css +1 -1
  48. package/dist/types/components/TestResult/Desktop/TestResultDetailDesktop.vue.d.ts +6 -1
  49. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.d.ts +6 -1
  50. package/dist/types/components/TestResult/Shared/BookAppointment.vue.d.ts +28 -2
  51. package/dist/types/components/TestResult/Shared/ResultInsightCards.vue.d.ts +31 -0
  52. package/dist/types/components/TestResult/Shared/ResultReport.vue.d.ts +30 -0
  53. package/dist/types/components/TestResult/index.d.ts +1 -0
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TestResultDetailDesktop.vue.mjs","sources":["../../../../../src/components/TestResult/Desktop/TestResultDetailDesktop.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: \"psc-flex psc-items-start\"\n}\nconst _hoisted_2 = { class: \"-psc-ml-4 psc-mr-16 psc-w-[480px] psc-shrink-0 psc-grow-0\" }\nconst _hoisted_3 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\nconst _hoisted_4 = { class: \"psc-min-w-0 psc-flex-1\" }\nconst _hoisted_5 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\n\nimport { useTestResult } from '@/composables/TestResult';\nimport PatientName from '../../Shared/PatientName.vue';\nimport ResultReadyV2 from '../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../Shared/RejectedResult.vue';\nimport BookAppointment from '../Shared/BookAppointment.vue';\nimport HealthSummary from '../HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../Shared/TestResultSection.vue';\nimport CallUsFilledButton from '../Shared/CallUsFilledButton.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 { computed, defineAsyncComponent, ref, toRef } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.vue';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n isSurveyEnabledForTestResult,\n isTeledocSurveyEnabled,\n} from '@/helpers/SurveyHelper';\nimport { useSurveyConfig } from '@/composables/useSurveyConfig';\n\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n enableBookingFeature?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetailDesktop',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n enableBookingFeature: { type: Boolean, default: false },\n timeline: { default: undefined },\n listActionEvent: { default: undefined }\n },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\n],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, enableBookingFeature: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string> };\n\n\n\nconst TakeSurvey = defineAsyncComponent(\n () => import('../Shared/TakeSurvey.vue')\n);\n\n\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 isDisplayBook = ref(false);\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\nconst isTeledocSurveyVisible = computed(() =>\n isTeledocSurveyEnabled(\n props.testResult.nps_doctor_consult,\n surveyConfig.value\n )\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailDesktopSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\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, { items: _unref(healthSummaryItems) }, null, 8, [\"items\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (__props.testResult.is_free_consultant)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[0] || (_cache[0] = \n () => {\n isDisplayBook.value = true;\n emit('click:book-appointment');\n }\n )\n }, _createSlots({ _: 2 }, [\n (__props.enableBookingFeature && isDisplayBook.value)\n ? {\n name: \"content\",\n fn: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"book-appointment\")\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024)\n ]),\n _: 3\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\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: 4 }, {\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[1] || (_cache[1] = ($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: 5 }, {\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: 6 }, {\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 ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\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 ]))\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})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","TakeSurvey","defineAsyncComponent","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","isDisplayBook","ref","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","$event","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,+DACtBC,KAAa,EAAE,OAAO,kFACtBC,KAAa,EAAE,OAAO,4BACtBC,KAAa,EAAE,OAAO,kFAmCAC,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,G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,EAAE,OAAO,YAAY;AAAA,QAAA,CACvD;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,IAAA,GACJ,EAAE;AAAA,EAEX;AAEA,CAAC;"}
1
+ {"version":3,"file":"TestResultDetailDesktop.vue.mjs","sources":["../../../../../src/components/TestResult/Desktop/TestResultDetailDesktop.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: \"psc-flex psc-items-start\"\n}\nconst _hoisted_2 = { class: \"-psc-ml-4 psc-mr-16 psc-w-[480px] psc-shrink-0 psc-grow-0\" }\nconst _hoisted_3 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\nconst _hoisted_4 = { class: \"psc-min-w-0 psc-flex-1\" }\nconst _hoisted_5 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\n\nimport { useTestResult } from '@/composables/TestResult';\nimport PatientName from '../../Shared/PatientName.vue';\nimport ResultReadyV2 from '../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../Shared/RejectedResult.vue';\nimport BookAppointment from '../Shared/BookAppointment.vue';\nimport ResultInsightCards from '../Shared/ResultInsightCards.vue';\nimport HealthSummary from '../HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../Shared/TestResultSection.vue';\nimport CallUsFilledButton from '../Shared/CallUsFilledButton.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 { computed, defineAsyncComponent, ref, toRef } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.vue';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n isSurveyEnabledForTestResult,\n isTeledocSurveyEnabled,\n} from '@/helpers/SurveyHelper';\nimport { useSurveyConfig } from '@/composables/useSurveyConfig';\n\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n enableBookingFeature?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n showResultReport?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetailDesktop',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n enableBookingFeature: { 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, enableBookingFeature: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string>, showResultReport: boolean };\n\n\n\nconst TakeSurvey = defineAsyncComponent(\n () => import('../Shared/TakeSurvey.vue')\n);\n\n\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 isDisplayBook = ref(false);\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\nconst isTeledocSurveyVisible = computed(() =>\n isTeledocSurveyEnabled(\n props.testResult.nps_doctor_consult,\n surveyConfig.value\n )\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailDesktopSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\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, { items: _unref(healthSummaryItems) }, null, 8, [\"items\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (props.showResultReport)\n ? (_openBlock(), _createBlock(ResultInsightCards, {\n key: 2,\n \"show-book-appointment\": __props.testResult.is_free_consultant,\n \"onClick:report\": _cache[0] || (_cache[0] = ($event: any) => (emit('click:result-report'))),\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n }, null, 8, [\"show-book-appointment\"]))\n : (__props.testResult.is_free_consultant)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[2] || (_cache[2] = \n () => {\n isDisplayBook.value = true;\n emit('click:book-appointment');\n }\n )\n }, _createSlots({ _: 2 }, [\n (__props.enableBookingFeature && isDisplayBook.value)\n ? {\n name: \"content\",\n fn: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"book-appointment\")\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024)\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[3] || (_cache[3] = ($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 ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\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 ]))\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})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","TakeSurvey","defineAsyncComponent","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","isDisplayBook","ref","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","ResultInsightCards","$event","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,G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aAAa/C,EAAM,WAAW;AAAA,gBAC7B,GAAA,MAAM,GAAG,CAAC,WAAW,CAAC;AAAA,cAAA,CAC1B;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACDkC,EAAoB,IAAI,EAAI;AAAA,UAAA,CACjC;AAAA,QAAA,CACF;AAAA,QACDF,EAAoB,OAAOtC,IAAY;AAAA,UACrCsC,EAAoB,OAAOrC,IAAY;AAAA,YACrCiD,EAAYpB,EAAK,QAAQ,QAAQ;AAAA,YAC/BO,EAAO3B,CAAW,IAEhB8B,EAAoB,IAAI,EAAI,IAD5BU,EAAYpB,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA;AAAA,YAElDoB,EAAYpB,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,QAAA,CACF;AAAA,MACF,CAAA,MACAE,EAAW,GAAGC,EAAaqB,GAAgB;AAAA,QAC1C,KAAK;AAAA,QACL,OAAO;AAAA,MAAA,GACN;AAAA,QACD,eAAeV,EAAS,MAAM;AAAA,UAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,QAAA,CACvD;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,IAAA,GACJ,EAAE;AAAA,EAEX;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),C=require("../../../Shared/PatientName.vue.js"),S=require("../../Shared/ResultReadyV2.vue.js"),g=require("../../Shared/RejectedResult.vue.js"),N=require("../../Shared/BookAppointment.vue.js"),b=require("../../Shared/DoctorNote.vue.js"),h=require("../../Shared/DoctorNoteDetail.vue.js"),V=require("../../Shared/UpcomingAppointment.vue.js"),x=require("../../Shared/CallUsFilledButton.vue.js"),q=require("../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue.js"),T=require("../../HealthSummary/HealthSummary.vue.js"),n=require("../../Shared/TestResultSection.vue.js"),E=require("../../../../composables/TestResult.js"),l=require("../../../../helpers/SurveyHelper.js"),w=require("../../../../composables/useSurveyConfig.js"),D=u=>Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),A={key:0,class:"consumer-test-result__ready"},P={class:"psc-px-4"},$=e.defineComponent({__name:"TestResultDetail",props:{testResult:null,loading:{type:Boolean},hidePatientInfo:{type:Boolean,default:!1},hideSummary:{type:Boolean,default:!1},timeline:{default:void 0},listActionEvent:{default:void 0}},emits:["click:book-appointment","click:appointment-booking"],setup(u,{emit:c}){const t=u,p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>D(require("../../Shared/TakeSurvey.vue2.js")))),{healthSummaryItems:_,hideContent:d,isViewable:m,visible:s}=E.useTestResult({testResult:e.toRef(t,"testResult"),hidePatientInfo:e.toRef(t,"hidePatientInfo"),hideSummary:e.toRef(t,"hideSummary")}),{surveyConfig:i}=w.useSurveyConfig(),v=e.computed(()=>l.buildTestResultSurveyContext(t.testResult,"doctor-note")),k=e.computed(()=>l.getSurveySlug(t.testResult.collection_channel,t.testResult.is_free_consultant,i.value)),y=e.computed(()=>l.buildTestResultSurveyContext(t.testResult)),f=e.computed(()=>!!t.testResult.doctor_note_detail&&t.testResult.doctor_note_detail.length>0),R=e.computed(()=>l.isSurveyEnabledForTestResult(t.testResult.nps_test_result,t.testResult.collection_channel,t.testResult.is_free_consultant,i.value)),B=e.computed(()=>l.isTeledocSurveyEnabled(t.testResult.nps_doctor_consult,i.value));return(r,o)=>(e.openBlock(),e.createElementBlock("div",null,[t.loading?(e.openBlock(),e.createBlock(q,{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",null,[e.unref(s).patientName?(e.openBlock(),e.createBlock(C,{key:0,"first-name":t.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])):e.createCommentVNode("",!0),e.createVNode(S,{"test-result":t.testResult,timeline:t.timeline,"list-action-event":t.listActionEvent,class:"psc-px-4 psc-pb-4"},null,8,["test-result","timeline","list-action-event"]),e.unref(s).healthSummary?(e.openBlock(),e.createBlock(n,{key:1},{default:e.withCtx(()=>[e.createVNode(T,{items:e.unref(_),"cta-button":t.testResult.is_free_consultant,"onClick:ctaButton":o[0]||(o[0]=a=>c("click:book-appointment"))},null,8,["items","cta-button"])]),_:1})):e.createCommentVNode("",!0),e.unref(s).bookAppointment?(e.openBlock(),e.createBlock(n,{key:2},{default:e.withCtx(()=>[e.createVNode(N,{"onClick:book":o[1]||(o[1]=a=>c("click:book-appointment"))})]),_:1})):e.createCommentVNode("",!0),e.unref(s).doctorNote?(e.openBlock(),e.createBlock(n,{key:3},{default:e.withCtx(()=>[e.createVNode(b,{"doctor-note":t.testResult.doctor_note},null,8,["doctor-note"])]),_:1})):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(n,{key:4},{default:e.withCtx(()=>[e.createVNode(h,{"doctor-note-detail":u.testResult.doctor_note_detail,"survey-context":e.unref(B)?e.unref(v):void 0,"onClick:appointmentBooking":o[2]||(o[2]=a=>c("click:appointment-booking",a))},null,8,["doctor-note-detail","survey-context"])]),_:1})):e.createCommentVNode("",!0),e.unref(R)?(e.openBlock(),e.createBlock(n,{key:5},{default:e.withCtx(()=>[e.createVNode(e.unref(p),{variant:"bar","survey-slug":e.unref(k),context:e.unref(y),text:r.$t("psc.test_result_take_survey_button")},null,8,["survey-slug","context","text"])]),_:1})):e.createCommentVNode("",!0),e.unref(s).upcomingAppointment?(e.openBlock(),e.createBlock(n,{key:6},{default:e.withCtx(()=>[e.createVNode(V,{"time-slot":t.testResult.consult_time},null,8,["time-slot"])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",P,[e.renderSlot(r.$slots,"header"),e.unref(d)?e.createCommentVNode("",!0):e.renderSlot(r.$slots,"default",{key:0}),e.renderSlot(r.$slots,"footer")])])):(e.openBlock(),e.createBlock(g,{key:1,class:"psc-px-4"},{"body-append":e.withCtx(()=>[e.createVNode(x,{class:"psc-mt-6"})]),_:1}))],64))]))}});module.exports=$;
1
+ "use strict";const e=require("vue"),C=require("../../../Shared/PatientName.vue.js"),b=require("../../Shared/ResultReadyV2.vue.js"),g=require("../../Shared/RejectedResult.vue.js"),S=require("../../Shared/BookAppointment.vue.js"),N=require("../../Shared/ResultInsightCards.vue.js"),h=require("../../Shared/DoctorNote.vue.js"),V=require("../../Shared/DoctorNoteDetail.vue.js"),x=require("../../Shared/UpcomingAppointment.vue.js"),q=require("../../Shared/CallUsFilledButton.vue.js"),w=require("../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue.js"),T=require("../../HealthSummary/HealthSummary.vue.js"),l=require("../../Shared/TestResultSection.vue.js"),E=require("../../../../composables/TestResult.js"),r=require("../../../../helpers/SurveyHelper.js"),A=require("../../../../composables/useSurveyConfig.js"),D=c=>Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"})),$={key:0,class:"consumer-test-result__ready"},P={class:"psc-px-4"},I=e.defineComponent({__name:"TestResultDetail",props:{testResult:null,loading:{type:Boolean},hidePatientInfo:{type:Boolean,default:!1},hideSummary:{type:Boolean,default:!1},timeline:{default:void 0},listActionEvent:{default:void 0},showResultReport:{type:Boolean,default:!1}},emits:["click:book-appointment","click:appointment-booking","click:result-report"],setup(c,{emit:s}){const t=c,p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>D(require("../../Shared/TakeSurvey.vue2.js")))),{healthSummaryItems:_,hideContent:d,isViewable:m,visible:n}=E.useTestResult({testResult:e.toRef(t,"testResult"),hidePatientInfo:e.toRef(t,"hidePatientInfo"),hideSummary:e.toRef(t,"hideSummary")}),{surveyConfig:a}=A.useSurveyConfig(),k=e.computed(()=>r.buildTestResultSurveyContext(t.testResult,"doctor-note")),v=e.computed(()=>r.getSurveySlug(t.testResult.collection_channel,t.testResult.is_free_consultant,a.value)),y=e.computed(()=>r.buildTestResultSurveyContext(t.testResult)),f=e.computed(()=>!!t.testResult.doctor_note_detail&&t.testResult.doctor_note_detail.length>0),R=e.computed(()=>r.isSurveyEnabledForTestResult(t.testResult.nps_test_result,t.testResult.collection_channel,t.testResult.is_free_consultant,a.value)),B=e.computed(()=>r.isTeledocSurveyEnabled(t.testResult.nps_doctor_consult,a.value));return(i,o)=>(e.openBlock(),e.createElementBlock("div",null,[t.loading?(e.openBlock(),e.createBlock(w,{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",null,[e.unref(n).patientName?(e.openBlock(),e.createBlock(C,{key:0,"first-name":t.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])):e.createCommentVNode("",!0),e.createVNode(b,{"test-result":t.testResult,timeline:t.timeline,"list-action-event":t.listActionEvent,class:"psc-px-4 psc-pb-4"},null,8,["test-result","timeline","list-action-event"]),e.unref(n).healthSummary?(e.openBlock(),e.createBlock(l,{key:1},{default:e.withCtx(()=>[e.createVNode(T,{items:e.unref(_),"cta-button":t.testResult.is_free_consultant,"onClick:ctaButton":o[0]||(o[0]=u=>s("click:book-appointment"))},null,8,["items","cta-button"])]),_:1})):e.createCommentVNode("",!0),t.showResultReport?(e.openBlock(),e.createBlock(N,{key:2,"show-book-appointment":e.unref(n).bookAppointment,"onClick:report":o[1]||(o[1]=u=>s("click:result-report")),"onClick:book":o[2]||(o[2]=u=>s("click:book-appointment"))},null,8,["show-book-appointment"])):e.unref(n).bookAppointment?(e.openBlock(),e.createBlock(l,{key:3},{default:e.withCtx(()=>[e.createVNode(S,{"onClick:book":o[3]||(o[3]=u=>s("click:book-appointment"))})]),_:1})):e.createCommentVNode("",!0),e.unref(n).doctorNote?(e.openBlock(),e.createBlock(l,{key:4},{default:e.withCtx(()=>[e.createVNode(h,{"doctor-note":t.testResult.doctor_note},null,8,["doctor-note"])]),_:1})):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(l,{key:5},{default:e.withCtx(()=>[e.createVNode(V,{"doctor-note-detail":c.testResult.doctor_note_detail,"survey-context":e.unref(B)?e.unref(k):void 0,"onClick:appointmentBooking":o[4]||(o[4]=u=>s("click:appointment-booking",u))},null,8,["doctor-note-detail","survey-context"])]),_:1})):e.createCommentVNode("",!0),e.unref(R)?(e.openBlock(),e.createBlock(l,{key:6},{default:e.withCtx(()=>[e.createVNode(e.unref(p),{variant:"bar","survey-slug":e.unref(v),context:e.unref(y),text:i.$t("psc.test_result_take_survey_button")},null,8,["survey-slug","context","text"])]),_:1})):e.createCommentVNode("",!0),e.unref(n).upcomingAppointment?(e.openBlock(),e.createBlock(l,{key:7},{default:e.withCtx(()=>[e.createVNode(x,{"time-slot":t.testResult.consult_time},null,8,["time-slot"])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",P,[e.renderSlot(i.$slots,"header"),e.unref(d)?e.createCommentVNode("",!0):e.renderSlot(i.$slots,"default",{key:0}),e.renderSlot(i.$slots,"footer")])])):(e.openBlock(),e.createBlock(g,{key:1,class:"psc-px-4"},{"body-append":e.withCtx(()=>[e.createVNode(q,{class:"psc-mt-6"})]),_:1}))],64))]))}});module.exports=I;
2
2
  //# sourceMappingURL=TestResultDetail.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TestResultDetail.vue.js","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, createElementVNode as _createElementVNode, renderSlot as _renderSlot, 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 } 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 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}\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 },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\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> };\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\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 (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n })\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\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: 4 }, {\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[2] || (_cache[2] = ($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: 5 }, {\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: 6 }, {\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","_interopNamespaceDefaultOnly","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":"62BAGMA,EAAa,CACjB,IAAK,EACL,MAAO,6BACT,EACMC,EAAa,CAAE,MAAO,YAsCAC,EAAiBC,kBAAA,CAC3C,OAAQ,mBACR,MAAO,CACL,WAAY,KACZ,QAAS,CAAE,KAAM,OAAQ,EACzB,gBAAiB,CAAE,KAAM,QAAS,QAAS,EAAM,EACjD,YAAa,CAAE,KAAM,QAAS,QAAS,EAAM,EAC7C,SAAU,CAAE,QAAS,MAAU,E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AChC,YAAa3C,EAAM,WAAW,YAC7B,EAAA,KAAM,EAAG,CAAC,WAAW,CAAC,CAAA,CAC1B,EACD,EAAG,CAAA,CACJ,GACDiC,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,EACDF,EAAA,mBAAoB,MAAOpC,EAAY,CACrCiD,aAAYrB,EAAK,OAAQ,QAAQ,EAC/BO,EAAA,MAAOzB,CAAW,EAEhB4B,EAAAA,mBAAoB,GAAI,EAAI,EAD5BW,EAAAA,WAAYrB,EAAK,OAAQ,UAAW,CAAE,IAAK,CAAG,CAAA,EAElDqB,aAAYrB,EAAK,OAAQ,QAAQ,CAAA,CAClC,CACF,CAAA,IACAE,EAAW,UAAA,EAAGE,cAAakB,EAAgB,CAC1C,IAAK,EACL,MAAO,UAAA,EACN,CACD,cAAeR,UAAS,IAAM,CAC5BH,EAAAA,YAAaY,EAAoB,CAAE,MAAO,WAAY,CAAA,CACvD,EACD,EAAG,CAAA,CACJ,IACJ,EAAE,EAAA,CACV,EAEH,CAEA,CAAC"}
1
+ {"version":3,"file":"TestResultDetail.vue.js","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, createElementVNode as _createElementVNode, renderSlot as _renderSlot, 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 } 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\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 \"show-book-appointment\": _unref(visible).bookAppointment,\n \"onClick:report\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:result-report'))),\n \"onClick:book\": _cache[2] || (_cache[2] = ($event: any) => (emit('click:book-appointment')))\n }, null, 8, [\"show-book-appointment\"]))\n : (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[3] || (_cache[3] = ($event: any) => (emit('click:book-appointment')))\n })\n ]),\n _: 1\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","_interopNamespaceDefaultOnly","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","surveyConfig","useSurveyConfig","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","isSurveyEnabledForTestResult","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","ResultInsightCards","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":"i6BAGMA,EAAa,CACjB,IAAK,EACL,M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,EAAA,CACV,EAEH,CAEA,CAAC"}
@@ -1,22 +1,23 @@
1
- import { defineComponent as V, defineAsyncComponent as A, toRef as _, computed as r, openBlock as o, createElementBlock as y, createBlock as s, Fragment as I, unref as e, createElementVNode as R, createCommentVNode as n, createVNode as l, withCtx as i, renderSlot as v } from "vue";
2
- import D from "../../../Shared/PatientName.vue.mjs";
3
- import P from "../../Shared/ResultReadyV2.vue.mjs";
4
- import w from "../../Shared/RejectedResult.vue.mjs";
1
+ import { defineComponent as w, defineAsyncComponent as A, toRef as _, computed as a, openBlock as o, createElementBlock as k, createBlock as n, Fragment as V, unref as e, createElementVNode as R, createCommentVNode as l, createVNode as i, withCtx as r, renderSlot as y } from "vue";
2
+ import I from "../../../Shared/PatientName.vue.mjs";
3
+ import D from "../../Shared/ResultReadyV2.vue.mjs";
4
+ import P from "../../Shared/RejectedResult.vue.mjs";
5
5
  import F from "../../Shared/BookAppointment.vue.mjs";
6
- import j from "../../Shared/DoctorNote.vue.mjs";
7
- import q from "../../Shared/DoctorNoteDetail.vue.mjs";
8
- import z from "../../Shared/UpcomingAppointment.vue.mjs";
9
- import G from "../../Shared/CallUsFilledButton.vue.mjs";
10
- import H from "../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue.mjs";
11
- import J from "../../HealthSummary/HealthSummary.vue.mjs";
12
- import a from "../../Shared/TestResultSection.vue.mjs";
13
- import { useTestResult as K } from "../../../../composables/TestResult.mjs";
14
- import { buildTestResultSurveyContext as b, getSurveySlug as L, isSurveyEnabledForTestResult as M, isTeledocSurveyEnabled as O } from "../../../../helpers/SurveyHelper.mjs";
15
- import { useSurveyConfig as Q } from "../../../../composables/useSurveyConfig.mjs";
16
- const U = {
6
+ import j from "../../Shared/ResultInsightCards.vue.mjs";
7
+ import q from "../../Shared/DoctorNote.vue.mjs";
8
+ import z from "../../Shared/DoctorNoteDetail.vue.mjs";
9
+ import G from "../../Shared/UpcomingAppointment.vue.mjs";
10
+ import H from "../../Shared/CallUsFilledButton.vue.mjs";
11
+ import J from "../../Shared/TestResultDetailSkeleton/TestResultDetailSkeleton.vue.mjs";
12
+ import K from "../../HealthSummary/HealthSummary.vue.mjs";
13
+ import c from "../../Shared/TestResultSection.vue.mjs";
14
+ import { useTestResult as L } from "../../../../composables/TestResult.mjs";
15
+ import { buildTestResultSurveyContext as b, getSurveySlug as M, isSurveyEnabledForTestResult as O, isTeledocSurveyEnabled as Q } from "../../../../helpers/SurveyHelper.mjs";
16
+ import { useSurveyConfig as U } from "../../../../composables/useSurveyConfig.mjs";
17
+ const W = {
17
18
  key: 0,
18
19
  class: "consumer-test-result__ready"
19
- }, W = { class: "psc-px-4" }, dt = /* @__PURE__ */ V({
20
+ }, X = { class: "psc-px-4" }, ft = /* @__PURE__ */ w({
20
21
  __name: "TestResultDetail",
21
22
  props: {
22
23
  testResult: null,
@@ -24,126 +25,133 @@ const U = {
24
25
  hidePatientInfo: { type: Boolean, default: !1 },
25
26
  hideSummary: { type: Boolean, default: !1 },
26
27
  timeline: { default: void 0 },
27
- listActionEvent: { default: void 0 }
28
+ listActionEvent: { default: void 0 },
29
+ showResultReport: { type: Boolean, default: !1 }
28
30
  },
29
31
  emits: [
30
32
  "click:book-appointment",
31
- "click:appointment-booking"
33
+ "click:appointment-booking",
34
+ "click:result-report"
32
35
  ],
33
- setup(k, { emit: d }) {
34
- const t = k, S = A(
36
+ setup(v, { emit: m }) {
37
+ const t = v, S = A(
35
38
  () => import("../../Shared/TakeSurvey.vue2.mjs")
36
- ), { healthSummaryItems: g, hideContent: h, isViewable: $, visible: c } = K({
39
+ ), { healthSummaryItems: $, hideContent: g, isViewable: C, visible: u } = L({
37
40
  testResult: _(t, "testResult"),
38
41
  hidePatientInfo: _(t, "hidePatientInfo"),
39
42
  hideSummary: _(t, "hideSummary")
40
- }), { surveyConfig: p } = Q(), C = r(
43
+ }), { surveyConfig: f } = U(), h = a(
41
44
  () => b(t.testResult, "doctor-note")
42
- ), x = r(
43
- () => L(
45
+ ), x = a(
46
+ () => M(
44
47
  t.testResult.collection_channel,
45
48
  t.testResult.is_free_consultant,
46
- p.value
49
+ f.value
47
50
  )
48
- ), B = r(
51
+ ), B = a(
49
52
  () => b(t.testResult)
50
- ), T = r(
53
+ ), T = a(
51
54
  () => !!t.testResult.doctor_note_detail && t.testResult.doctor_note_detail.length > 0
52
- ), E = r(
53
- () => M(
55
+ ), E = a(
56
+ () => O(
54
57
  t.testResult.nps_test_result,
55
58
  t.testResult.collection_channel,
56
59
  t.testResult.is_free_consultant,
57
- p.value
60
+ f.value
58
61
  )
59
- ), N = r(
60
- () => O(
62
+ ), N = a(
63
+ () => Q(
61
64
  t.testResult.nps_doctor_consult,
62
- p.value
65
+ f.value
63
66
  )
64
67
  );
65
- return (m, u) => (o(), y("div", null, [
66
- t.loading ? (o(), s(H, { key: 0 })) : (o(), y(I, { key: 1 }, [
67
- e($) ? (o(), y("div", U, [
68
+ return (d, s) => (o(), k("div", null, [
69
+ t.loading ? (o(), n(J, { key: 0 })) : (o(), k(V, { key: 1 }, [
70
+ e(C) ? (o(), k("div", W, [
68
71
  R("div", null, [
69
- e(c).patientName ? (o(), s(D, {
72
+ e(u).patientName ? (o(), n(I, {
70
73
  key: 0,
71
74
  "first-name": t.testResult.first_name,
72
75
  class: "psc-px-4 psc-pb-2"
73
- }, null, 8, ["first-name"])) : n("", !0),
74
- l(P, {
76
+ }, null, 8, ["first-name"])) : l("", !0),
77
+ i(D, {
75
78
  "test-result": t.testResult,
76
79
  timeline: t.timeline,
77
80
  "list-action-event": t.listActionEvent,
78
81
  class: "psc-px-4 psc-pb-4"
79
82
  }, null, 8, ["test-result", "timeline", "list-action-event"]),
80
- e(c).healthSummary ? (o(), s(a, { key: 1 }, {
81
- default: i(() => [
82
- l(J, {
83
- items: e(g),
83
+ e(u).healthSummary ? (o(), n(c, { key: 1 }, {
84
+ default: r(() => [
85
+ i(K, {
86
+ items: e($),
84
87
  "cta-button": t.testResult.is_free_consultant,
85
- "onClick:ctaButton": u[0] || (u[0] = (f) => d("click:book-appointment"))
88
+ "onClick:ctaButton": s[0] || (s[0] = (p) => m("click:book-appointment"))
86
89
  }, null, 8, ["items", "cta-button"])
87
90
  ]),
88
91
  _: 1
89
- })) : n("", !0),
90
- e(c).bookAppointment ? (o(), s(a, { key: 2 }, {
91
- default: i(() => [
92
- l(F, {
93
- "onClick:book": u[1] || (u[1] = (f) => d("click:book-appointment"))
92
+ })) : l("", !0),
93
+ t.showResultReport ? (o(), n(j, {
94
+ key: 2,
95
+ "show-book-appointment": e(u).bookAppointment,
96
+ "onClick:report": s[1] || (s[1] = (p) => m("click:result-report")),
97
+ "onClick:book": s[2] || (s[2] = (p) => m("click:book-appointment"))
98
+ }, null, 8, ["show-book-appointment"])) : e(u).bookAppointment ? (o(), n(c, { key: 3 }, {
99
+ default: r(() => [
100
+ i(F, {
101
+ "onClick:book": s[3] || (s[3] = (p) => m("click:book-appointment"))
94
102
  })
95
103
  ]),
96
104
  _: 1
97
- })) : n("", !0),
98
- e(c).doctorNote ? (o(), s(a, { key: 3 }, {
99
- default: i(() => [
100
- l(j, {
105
+ })) : l("", !0),
106
+ e(u).doctorNote ? (o(), n(c, { key: 4 }, {
107
+ default: r(() => [
108
+ i(q, {
101
109
  "doctor-note": t.testResult.doctor_note
102
110
  }, null, 8, ["doctor-note"])
103
111
  ]),
104
112
  _: 1
105
- })) : n("", !0),
106
- e(T) ? (o(), s(a, { key: 4 }, {
107
- default: i(() => [
108
- l(q, {
109
- "doctor-note-detail": k.testResult.doctor_note_detail,
110
- "survey-context": e(N) ? e(C) : void 0,
111
- "onClick:appointmentBooking": u[2] || (u[2] = (f) => d("click:appointment-booking", f))
113
+ })) : l("", !0),
114
+ e(T) ? (o(), n(c, { key: 5 }, {
115
+ default: r(() => [
116
+ i(z, {
117
+ "doctor-note-detail": v.testResult.doctor_note_detail,
118
+ "survey-context": e(N) ? e(h) : void 0,
119
+ "onClick:appointmentBooking": s[4] || (s[4] = (p) => m("click:appointment-booking", p))
112
120
  }, null, 8, ["doctor-note-detail", "survey-context"])
113
121
  ]),
114
122
  _: 1
115
- })) : n("", !0),
116
- e(E) ? (o(), s(a, { key: 5 }, {
117
- default: i(() => [
118
- l(e(S), {
123
+ })) : l("", !0),
124
+ e(E) ? (o(), n(c, { key: 6 }, {
125
+ default: r(() => [
126
+ i(e(S), {
119
127
  variant: "bar",
120
128
  "survey-slug": e(x),
121
129
  context: e(B),
122
- text: m.$t("psc.test_result_take_survey_button")
130
+ text: d.$t("psc.test_result_take_survey_button")
123
131
  }, null, 8, ["survey-slug", "context", "text"])
124
132
  ]),
125
133
  _: 1
126
- })) : n("", !0),
127
- e(c).upcomingAppointment ? (o(), s(a, { key: 6 }, {
128
- default: i(() => [
129
- l(z, {
134
+ })) : l("", !0),
135
+ e(u).upcomingAppointment ? (o(), n(c, { key: 7 }, {
136
+ default: r(() => [
137
+ i(G, {
130
138
  "time-slot": t.testResult.consult_time
131
139
  }, null, 8, ["time-slot"])
132
140
  ]),
133
141
  _: 1
134
- })) : n("", !0)
142
+ })) : l("", !0)
135
143
  ]),
136
- R("div", W, [
137
- v(m.$slots, "header"),
138
- e(h) ? n("", !0) : v(m.$slots, "default", { key: 0 }),
139
- v(m.$slots, "footer")
144
+ R("div", X, [
145
+ y(d.$slots, "header"),
146
+ e(g) ? l("", !0) : y(d.$slots, "default", { key: 0 }),
147
+ y(d.$slots, "footer")
140
148
  ])
141
- ])) : (o(), s(w, {
149
+ ])) : (o(), n(P, {
142
150
  key: 1,
143
151
  class: "psc-px-4"
144
152
  }, {
145
- "body-append": i(() => [
146
- l(G, { class: "psc-mt-6" })
153
+ "body-append": r(() => [
154
+ i(H, { class: "psc-mt-6" })
147
155
  ]),
148
156
  _: 1
149
157
  }))
@@ -152,6 +160,6 @@ const U = {
152
160
  }
153
161
  });
154
162
  export {
155
- dt as default
163
+ ft as default
156
164
  };
157
165
  //# sourceMappingURL=TestResultDetail.vue.mjs.map
@@ -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, createElementVNode as _createElementVNode, renderSlot as _renderSlot, 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 } 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 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}\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 },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\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> };\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\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 (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n })\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\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: 4 }, {\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[2] || (_cache[2] = ($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: 5 }, {\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: 6 }, {\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","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,cAsCAC,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,EACxC;AAAA,EACA,OAAO;AAAA,IACP;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,YAAY,aAAa;AAAA,IAAA,GAGxDc,IAAiBF;AAAA,MAAS,MAC9BG;AAAA,QACEf,EAAM,WAAW;AAAA,QACjBA,EAAM,WAAW;AAAA,QACjBS,EAAa;AAAA,MACf;AAAA,IAAA,GAGIO,IAAoBJ;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C;AAAA,QACF,CAAA,MACAE,EAAW,GAAGE,EAAakB,GAAgB;AAAA,UAC1C,KAAK;AAAA,UACL,OAAO;AAAA,QAAA,GACN;AAAA,UACD,eAAeR,EAAS,MAAM;AAAA,YAC5BH,EAAaY,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, createElementVNode as _createElementVNode, renderSlot as _renderSlot, 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 } 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\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 \"show-book-appointment\": _unref(visible).bookAppointment,\n \"onClick:report\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:result-report'))),\n \"onClick:book\": _cache[2] || (_cache[2] = ($event: any) => (emit('click:book-appointment')))\n }, null, 8, [\"show-book-appointment\"]))\n : (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[3] || (_cache[3] = ($event: any) => (emit('click:book-appointment')))\n })\n ]),\n _: 1\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","isTeledocSurveyVisible","isTeledocSurveyEnabled","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","ResultInsightCards","BookAppointment","DoctorNote","DoctorNoteDetail","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,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,O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,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";const e=require("vue"),c=require("pat-design-system"),n={class:"psc-flex psc-w-full psc-items-center"},l={class:"psc-flex-auto"},p={class:"psc-flex psc-items-center"},r={class:"psc-font-semibold psc-text-black/[0.85]"},i={class:"psc-ml-2 psc-rounded-lg psc-bg-[#e6f0fe] psc-px-2 psc-py-1 psc-text-xs psc-font-semibold psc-uppercase psc-text-blue-darken-1"},a={class:"psc-pt-1 psc-text-sm psc-text-black/[0.6]"},d={key:0,class:"psc-mt-4 psc-w-full psc-border-t psc-border-gray-lighten-2 psc-p-4"},u={key:1,class:"psc-w-full psc-pt-3"},m=e.defineComponent({__name:"BookAppointment",emits:["click:book"],setup(_,{emit:o}){return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",n,[e.createVNode(e.unref(c.BIcon),{icon:"dgic-doctor-advice-thin",class:"psc-pr-3 psc-text-[44px] psc-text-blue-darken-1"}),e.createElementVNode("div",l,[e.createElementVNode("div",p,[e.createElementVNode("div",r,e.toDisplayString(t.$t("psc.test_result_doctor_appointment")),1),e.createElementVNode("div",i,e.toDisplayString(t.$t("psc.test_result_free")),1)]),e.createElementVNode("div",a,e.toDisplayString(t.$t("psc.test_result_more_about_your_results")),1)])]),t.$slots.content?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(t.$slots,"content")])):e.createCommentVNode("",!0),t.$slots.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(e.unref(c.BButton),{class:"psc-w-full",type:"secondary",onClick:s[0]||(s[0]=k=>o("click:book"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("psc.test_result_call_support")),1)]),_:1})]))],64))}});module.exports=m;
1
+ "use strict";const e=require("vue"),c=require("pat-design-system"),r={class:"psc-flex psc-w-full psc-items-start psc-justify-between"},a={class:"psc-rounded-md psc-bg-[#e6f0fe] psc-px-1.5 psc-py-0.5 psc-text-2xs psc-font-semibold psc-uppercase psc-text-blue-darken-1"},i={class:"psc-flex psc-w-full psc-items-center psc-justify-between psc-gap-1"},d={class:"psc-text-sm psc-font-semibold psc-text-black/[0.85]"},u={class:"psc-hidden psc-text-xs psc-text-black/[0.6] sm:psc-block"},m={class:"psc-flex psc-w-full psc-items-center"},_={class:"psc-flex-auto"},f={class:"psc-flex psc-items-center"},k={class:"psc-font-semibold psc-text-black/[0.85]"},b={class:"psc-ml-2 psc-rounded-lg psc-bg-[#e6f0fe] psc-px-2 psc-py-1 psc-text-xs psc-font-semibold psc-uppercase psc-text-blue-darken-1"},x={class:"psc-pt-1 psc-text-sm psc-text-black/[0.6]"},g={key:0,class:"psc-mt-4 psc-w-full psc-border-t psc-border-gray-lighten-2 psc-p-4"},h={key:1,class:"psc-w-full psc-pt-3"},y=e.defineComponent({__name:"BookAppointment",props:{compact:{type:Boolean,default:!1}},emits:["click:book"],setup(p,{emit:o}){const n=p;return(t,s)=>n.compact?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"psc-flex psc-h-full psc-w-full psc-flex-col psc-gap-2 psc-rounded-xl psc-border psc-border-gray-lighten-2 psc-bg-white psc-p-3 psc-text-left psc-shadow",onClick:s[0]||(s[0]=l=>o("click:book"))},[e.createElementVNode("span",r,[e.createVNode(e.unref(c.BIcon),{icon:"dgic-doctor-advice-thin",class:"psc-text-[1.5rem] psc-leading-none psc-text-blue-darken-1"}),e.createElementVNode("span",a,e.toDisplayString(t.$t("psc.test_result_free")),1)]),e.createElementVNode("span",i,[e.createElementVNode("span",d,e.toDisplayString(t.$t("psc.test_result_doctor_appointment")),1),e.createVNode(e.unref(c.BIcon),{icon:"dgic-chevron-right-thin",class:"psc-shrink-0 psc-text-xs psc-text-blue-darken-1"})]),e.createElementVNode("span",u,e.toDisplayString(t.$t("psc.test_result_contact_for_explanation")),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",m,[e.createVNode(e.unref(c.BIcon),{icon:"dgic-doctor-advice-thin",class:"psc-pr-3 psc-text-[44px] psc-text-blue-darken-1"}),e.createElementVNode("div",_,[e.createElementVNode("div",f,[e.createElementVNode("div",k,e.toDisplayString(t.$t("psc.test_result_doctor_appointment")),1),e.createElementVNode("div",b,e.toDisplayString(t.$t("psc.test_result_free")),1)]),e.createElementVNode("div",x,e.toDisplayString(t.$t("psc.test_result_more_about_your_results")),1)])]),t.$slots.content?(e.openBlock(),e.createElementBlock("div",g,[e.renderSlot(t.$slots,"content")])):e.createCommentVNode("",!0),t.$slots.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(e.unref(c.BButton),{class:"psc-w-full",type:"secondary",onClick:s[1]||(s[1]=l=>o("click:book"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("psc.test_result_call_support")),1)]),_:1})]))],64))}});module.exports=y;
2
2
  //# sourceMappingURL=BookAppointment.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookAppointment.vue.js","sources":["../../../../../src/components/TestResult/Shared/BookAppointment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-flex psc-w-full psc-items-center\" }\nconst _hoisted_2 = { class: \"psc-flex-auto\" }\nconst _hoisted_3 = { class: \"psc-flex psc-items-center\" }\nconst _hoisted_4 = { class: \"psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_5 = { class: \"psc-ml-2 psc-rounded-lg psc-bg-[#e6f0fe] psc-px-2 psc-py-1 psc-text-xs psc-font-semibold psc-uppercase psc-text-blue-darken-1\" }\nconst _hoisted_6 = { class: \"psc-pt-1 psc-text-sm psc-text-black/[0.6]\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"psc-mt-4 psc-w-full psc-border-t psc-border-gray-lighten-2 psc-p-4\"\n}\nconst _hoisted_8 = {\n key: 1,\n class: \"psc-w-full psc-pt-3\"\n}\n\nimport { BButton, BIcon } from 'pat-design-system';\n\n/**\n * Events\n */\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookAppointment',\n emits: ['click:book'],\n setup(__props, { emit }) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-doctor-advice-thin\",\n class: \"psc-pr-3 psc-text-[44px] psc-text-blue-darken-1\"\n }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.$t('psc.test_result_doctor_appointment')), 1),\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_ctx.$t('psc.test_result_free')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.$t('psc.test_result_more_about_your_results')), 1)\n ])\n ]),\n (_ctx.$slots.content)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _renderSlot(_ctx.$slots, \"content\")\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.$slots.content)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createVNode(_unref(BButton), {\n class: \"psc-w-full\",\n type: \"secondary\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('click:book')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_call_support')), 1)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_sfc_main","_defineComponent","__props","emit","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_createVNode","_unref","BIcon","_toDisplayString","_renderSlot","_createCommentVNode","BButton","$event","_withCtx","_createTextVNode"],"mappings":"mEAGMA,EAAa,CAAE,MAAO,wCACtBC,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAE,MAAO,6BACtBC,EAAa,CAAE,MAAO,2CACtBC,EAAa,CAAE,MAAO,iIACtBC,EAAa,CAAE,MAAO,6CACtBC,EAAa,CACjB,IAAK,EACL,MAAO,oEACT,EACMC,EAAa,CACjB,IAAK,EACL,MAAO,qBACT,EAQ4BC,EAAiBC,kBAAA,CAC3C,OAAQ,kBACR,MAAO,CAAC,YAAY,EACpB,MAAMC,EAAS,CAAE,KAAAC,GAAQ,CAIpB,MAAA,CAACC,EAAUC,KACRC,YAAW,EAAGC,qBAAoBC,EAAAA,SAAW,KAAM,CACzDC,EAAA,mBAAoB,MAAOjB,EAAY,CACrCkB,cAAaC,EAAAA,MAAOC,EAAAA,KAAK,EAAG,CAC1B,KAAM,0BACN,MAAO,iDAAA,CACR,EACDH,EAAA,mBAAoB,MAAOhB,EAAY,CACrCgB,EAAA,mBAAoB,MAAOf,EAAY,CACrCe,qBAAoB,MAAOd,EAAYkB,EAAA,gBAAiBT,EAAK,GAAG,oCAAoC,CAAC,EAAG,CAAC,EACzGK,qBAAoB,MAAOb,EAAYiB,EAAA,gBAAiBT,EAAK,GAAG,sBAAsB,CAAC,EAAG,CAAC,CAAA,CAC5F,EACDK,qBAAoB,MAAOZ,EAAYgB,EAAA,gBAAiBT,EAAK,GAAG,yCAAyC,CAAC,EAAG,CAAC,CAAA,CAC/G,CAAA,CACF,EACAA,EAAK,OAAO,SACRE,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAOT,EAAY,CACpDgB,aAAYV,EAAK,OAAQ,SAAS,CAAA,CACnC,GACDW,EAAAA,mBAAoB,GAAI,EAAI,EAC9BX,EAAK,OAAO,QAaVW,EAAAA,mBAAoB,GAAI,EAAI,GAZ3BT,cAAcC,EAAA,mBAAoB,MAAOR,EAAY,CACpDW,cAAaC,EAAAA,MAAOK,EAAAA,OAAO,EAAG,CAC5B,MAAO,aACP,KAAM,YACN,QAASX,EAAO,CAAC,IAAMA,EAAO,CAAC,EAAKY,GAAiBd,EAAK,YAAY,EAAA,EACrE,CACD,QAASe,UAAS,IAAM,CACtBC,kBAAiBN,EAAiB,gBAAAT,EAAK,GAAG,8BAA8B,CAAC,EAAG,CAAC,CAAA,CAC9E,EACD,EAAG,CAAA,CACJ,CAAA,CACF,IAEJ,EAAE,EAEP,CAEA,CAAC"}
1
+ {"version":3,"file":"BookAppointment.vue.js","sources":["../../../../../src/components/TestResult/Shared/BookAppointment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createTextVNode as _createTextVNode, withCtx as _withCtx, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-flex psc-w-full psc-items-start psc-justify-between\" }\nconst _hoisted_2 = { class: \"psc-rounded-md psc-bg-[#e6f0fe] psc-px-1.5 psc-py-0.5 psc-text-2xs psc-font-semibold psc-uppercase psc-text-blue-darken-1\" }\nconst _hoisted_3 = { class: \"psc-flex psc-w-full psc-items-center psc-justify-between psc-gap-1\" }\nconst _hoisted_4 = { class: \"psc-text-sm psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_5 = { class: \"psc-hidden psc-text-xs psc-text-black/[0.6] sm:psc-block\" }\nconst _hoisted_6 = { class: \"psc-flex psc-w-full psc-items-center\" }\nconst _hoisted_7 = { class: \"psc-flex-auto\" }\nconst _hoisted_8 = { class: \"psc-flex psc-items-center\" }\nconst _hoisted_9 = { class: \"psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_10 = { class: \"psc-ml-2 psc-rounded-lg psc-bg-[#e6f0fe] psc-px-2 psc-py-1 psc-text-xs psc-font-semibold psc-uppercase psc-text-blue-darken-1\" }\nconst _hoisted_11 = { class: \"psc-pt-1 psc-text-sm psc-text-black/[0.6]\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"psc-mt-4 psc-w-full psc-border-t psc-border-gray-lighten-2 psc-p-4\"\n}\nconst _hoisted_13 = {\n key: 1,\n class: \"psc-w-full psc-pt-3\"\n}\n\nimport { BButton, BIcon } from 'pat-design-system';\n\n/**\n * Props\n */\nexport interface Props {\n // Compact layout: small tile, whole card is clickable, used side by side with ResultReport\n compact?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookAppointment',\n props: {\n compact: { type: Boolean, default: false }\n },\n emits: ['click:book'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { compact: boolean };\n\n\n\n/**\n * Events\n */\n\n\nreturn (_ctx: any,_cache: any) => {\n return (props.compact)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n type: \"button\",\n class: \"psc-flex psc-h-full psc-w-full psc-flex-col psc-gap-2 psc-rounded-xl psc-border psc-border-gray-lighten-2 psc-bg-white psc-p-3 psc-text-left psc-shadow\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('click:book')))\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-doctor-advice-thin\",\n class: \"psc-text-[1.5rem] psc-leading-none psc-text-blue-darken-1\"\n }),\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.$t('psc.test_result_free')), 1)\n ]),\n _createElementVNode(\"span\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.$t('psc.test_result_doctor_appointment')), 1),\n _createVNode(_unref(BIcon), {\n icon: \"dgic-chevron-right-thin\",\n class: \"psc-shrink-0 psc-text-xs psc-text-blue-darken-1\"\n })\n ]),\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t('psc.test_result_contact_for_explanation')), 1)\n ]))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-doctor-advice-thin\",\n class: \"psc-pr-3 psc-text-[44px] psc-text-blue-darken-1\"\n }),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t('psc.test_result_doctor_appointment')), 1),\n _createElementVNode(\"div\", _hoisted_10, _toDisplayString(_ctx.$t('psc.test_result_free')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString(_ctx.$t('psc.test_result_more_about_your_results')), 1)\n ])\n ]),\n (_ctx.$slots.content)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _renderSlot(_ctx.$slots, \"content\")\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.$slots.content)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createVNode(_unref(BButton), {\n class: \"psc-w-full\",\n type: \"secondary\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (emit('click:book')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_call_support')), 1)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_sfc_main","_defineComponent","__props","emit","props","_ctx","_cache","_openBlock","_createElementBlock","$event","_createElementVNode","_createVNode","_unref","BIcon","_toDisplayString","_Fragment","_renderSlot","_createCommentVNode","BButton","_withCtx","_createTextVNode"],"mappings":"mEAGMA,EAAa,CAAE,MAAO,2DACtBC,EAAa,CAAE,MAAO,6HACtBC,EAAa,CAAE,MAAO,sEACtBC,EAAa,CAAE,MAAO,uDACtBC,EAAa,CAAE,MAAO,4DACtBC,EAAa,CAAE,MAAO,wCACtBC,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAE,MAAO,6BACtBC,EAAa,CAAE,MAAO,2CACtBC,EAAc,CAAE,MAAO,iIACvBC,EAAc,CAAE,MAAO,6CACvBC,EAAc,CAClB,IAAK,EACL,MAAO,oEACT,EACMC,EAAc,CAClB,IAAK,EACL,MAAO,qBACT,EAY4BC,EAAiBC,kBAAA,CAC3C,OAAQ,kBACR,MAAO,CACL,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,CAC3C,EACA,MAAO,CAAC,YAAY,EACpB,MAAMC,EAAc,CAAE,KAAAC,GAAQ,CAEhC,MAAMC,EAAQF,EASP,MAAA,CAACG,EAAUC,IACRF,EAAM,SACTG,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,SAAU,CAC3C,IAAK,EACL,KAAM,SACN,MAAO,0JACP,QAASF,EAAO,CAAC,IAAMA,EAAO,CAAC,EAAKG,GAAiBN,EAAK,YAAY,EAAA,EACrE,CACDO,EAAA,mBAAoB,OAAQvB,EAAY,CACtCwB,cAAaC,EAAAA,MAAOC,EAAAA,KAAK,EAAG,CAC1B,KAAM,0BACN,MAAO,2DAAA,CACR,EACDH,qBAAoB,OAAQtB,EAAY0B,EAAA,gBAAiBT,EAAK,GAAG,sBAAsB,CAAC,EAAG,CAAC,CAAA,CAC7F,EACDK,EAAA,mBAAoB,OAAQrB,EAAY,CACtCqB,qBAAoB,OAAQpB,EAAYwB,EAAA,gBAAiBT,EAAK,GAAG,oCAAoC,CAAC,EAAG,CAAC,EAC1G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