pat-shared-components 1.3.0-beta.7 → 1.3.0-beta.9

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 (382) hide show
  1. package/dist/pat-shared-components100.js +1 -1
  2. package/dist/pat-shared-components100.mjs +9 -7
  3. package/dist/pat-shared-components100.mjs.map +1 -1
  4. package/dist/pat-shared-components101.js +1 -1
  5. package/dist/pat-shared-components101.js.map +1 -1
  6. package/dist/pat-shared-components101.mjs +44 -54
  7. package/dist/pat-shared-components101.mjs.map +1 -1
  8. package/dist/pat-shared-components102.js +1 -1
  9. package/dist/pat-shared-components102.js.map +1 -1
  10. package/dist/pat-shared-components102.mjs +8 -91
  11. package/dist/pat-shared-components102.mjs.map +1 -1
  12. package/dist/pat-shared-components103.js +1 -1
  13. package/dist/pat-shared-components103.js.map +1 -1
  14. package/dist/pat-shared-components103.mjs +32 -17
  15. package/dist/pat-shared-components103.mjs.map +1 -1
  16. package/dist/pat-shared-components104.js +1 -1
  17. package/dist/pat-shared-components104.js.map +1 -1
  18. package/dist/pat-shared-components104.mjs +30 -37
  19. package/dist/pat-shared-components104.mjs.map +1 -1
  20. package/dist/pat-shared-components105.js +1 -1
  21. package/dist/pat-shared-components105.js.map +1 -1
  22. package/dist/pat-shared-components105.mjs +21 -77
  23. package/dist/pat-shared-components105.mjs.map +1 -1
  24. package/dist/pat-shared-components11.js +1 -1
  25. package/dist/pat-shared-components11.mjs +1 -1
  26. package/dist/pat-shared-components113.js +1 -1
  27. package/dist/pat-shared-components113.mjs +1 -1
  28. package/dist/pat-shared-components114.js +1 -1
  29. package/dist/pat-shared-components114.mjs +1 -1
  30. package/dist/pat-shared-components115.js +1 -1
  31. package/dist/pat-shared-components115.mjs +1 -1
  32. package/dist/pat-shared-components116.js +1 -1
  33. package/dist/pat-shared-components116.mjs +1 -1
  34. package/dist/pat-shared-components117.js +1 -1
  35. package/dist/pat-shared-components117.mjs +1 -1
  36. package/dist/pat-shared-components118.js +1 -1
  37. package/dist/pat-shared-components118.mjs +1 -1
  38. package/dist/pat-shared-components119.js +1 -1
  39. package/dist/pat-shared-components119.mjs +1 -1
  40. package/dist/pat-shared-components12.js +1 -1
  41. package/dist/pat-shared-components12.mjs +1 -1
  42. package/dist/pat-shared-components120.js +1 -1
  43. package/dist/pat-shared-components120.mjs +1 -1
  44. package/dist/pat-shared-components123.js +1 -1
  45. package/dist/pat-shared-components123.mjs +1 -1
  46. package/dist/pat-shared-components124.js +1 -1
  47. package/dist/pat-shared-components124.mjs +1 -1
  48. package/dist/pat-shared-components125.js +1 -1
  49. package/dist/pat-shared-components125.mjs +1 -1
  50. package/dist/pat-shared-components126.js +1 -1
  51. package/dist/pat-shared-components126.mjs +1 -1
  52. package/dist/pat-shared-components127.js +1 -1
  53. package/dist/pat-shared-components127.mjs +1 -1
  54. package/dist/pat-shared-components128.js +1 -1
  55. package/dist/pat-shared-components128.mjs +1 -1
  56. package/dist/pat-shared-components129.js +1 -1
  57. package/dist/pat-shared-components129.mjs +1 -1
  58. package/dist/pat-shared-components130.js +1 -1
  59. package/dist/pat-shared-components130.mjs +1 -1
  60. package/dist/pat-shared-components131.js +1 -1
  61. package/dist/pat-shared-components131.mjs +1 -1
  62. package/dist/pat-shared-components134.js +1 -1
  63. package/dist/pat-shared-components134.mjs +1 -1
  64. package/dist/pat-shared-components135.js +1 -1
  65. package/dist/pat-shared-components135.mjs +1 -1
  66. package/dist/pat-shared-components136.js +1 -1
  67. package/dist/pat-shared-components136.mjs +1 -1
  68. package/dist/pat-shared-components137.js +1 -1
  69. package/dist/pat-shared-components137.mjs +1 -1
  70. package/dist/pat-shared-components138.js +1 -1
  71. package/dist/pat-shared-components138.mjs +1 -1
  72. package/dist/pat-shared-components139.js +1 -1
  73. package/dist/pat-shared-components139.mjs +1 -1
  74. package/dist/pat-shared-components14.js +1 -1
  75. package/dist/pat-shared-components14.mjs +6 -6
  76. package/dist/pat-shared-components141.js +1 -1
  77. package/dist/pat-shared-components141.mjs +1 -1
  78. package/dist/pat-shared-components142.js +1 -1
  79. package/dist/pat-shared-components142.mjs +1 -1
  80. package/dist/pat-shared-components143.js +1 -1
  81. package/dist/pat-shared-components143.mjs +1 -1
  82. package/dist/pat-shared-components144.js +1 -1
  83. package/dist/pat-shared-components144.mjs +1 -1
  84. package/dist/pat-shared-components16.js +1 -1
  85. package/dist/pat-shared-components16.mjs +5 -5
  86. package/dist/pat-shared-components160.js +1 -1
  87. package/dist/pat-shared-components160.mjs +1 -1
  88. package/dist/pat-shared-components166.js +1 -1
  89. package/dist/pat-shared-components166.mjs +1 -1
  90. package/dist/pat-shared-components167.js +1 -1
  91. package/dist/pat-shared-components167.mjs +1 -1
  92. package/dist/pat-shared-components169.js +1 -1
  93. package/dist/pat-shared-components169.mjs +1 -1
  94. package/dist/pat-shared-components170.js +1 -1
  95. package/dist/pat-shared-components170.mjs +1 -1
  96. package/dist/pat-shared-components174.js +1 -1
  97. package/dist/pat-shared-components174.js.map +1 -1
  98. package/dist/pat-shared-components174.mjs +37 -40
  99. package/dist/pat-shared-components174.mjs.map +1 -1
  100. package/dist/pat-shared-components175.js +1 -1
  101. package/dist/pat-shared-components175.js.map +1 -1
  102. package/dist/pat-shared-components175.mjs +13 -7
  103. package/dist/pat-shared-components175.mjs.map +1 -1
  104. package/dist/pat-shared-components176.js +1 -1
  105. package/dist/pat-shared-components176.js.map +1 -1
  106. package/dist/pat-shared-components176.mjs +27 -10
  107. package/dist/pat-shared-components176.mjs.map +1 -1
  108. package/dist/pat-shared-components177.js +1 -1
  109. package/dist/pat-shared-components177.js.map +1 -1
  110. package/dist/pat-shared-components177.mjs +52 -31
  111. package/dist/pat-shared-components177.mjs.map +1 -1
  112. package/dist/pat-shared-components178.js +1 -1
  113. package/dist/pat-shared-components178.js.map +1 -1
  114. package/dist/pat-shared-components178.mjs +7 -13
  115. package/dist/pat-shared-components178.mjs.map +1 -1
  116. package/dist/pat-shared-components179.js +1 -1
  117. package/dist/pat-shared-components179.js.map +1 -1
  118. package/dist/pat-shared-components179.mjs +10 -27
  119. package/dist/pat-shared-components179.mjs.map +1 -1
  120. package/dist/pat-shared-components18.js +1 -1
  121. package/dist/pat-shared-components18.mjs +3 -3
  122. package/dist/pat-shared-components180.js +1 -1
  123. package/dist/pat-shared-components180.js.map +1 -1
  124. package/dist/pat-shared-components180.mjs +40 -58
  125. package/dist/pat-shared-components180.mjs.map +1 -1
  126. package/dist/pat-shared-components187.js +1 -1
  127. package/dist/pat-shared-components187.mjs +1 -1
  128. package/dist/pat-shared-components19.js +1 -1
  129. package/dist/pat-shared-components19.js.map +1 -1
  130. package/dist/pat-shared-components19.mjs +77 -63
  131. package/dist/pat-shared-components19.mjs.map +1 -1
  132. package/dist/pat-shared-components193.js +1 -1
  133. package/dist/pat-shared-components193.mjs +4 -4
  134. package/dist/pat-shared-components20.js +1 -1
  135. package/dist/pat-shared-components20.mjs +2 -2
  136. package/dist/pat-shared-components204.js +1 -1
  137. package/dist/pat-shared-components204.mjs +1 -1
  138. package/dist/pat-shared-components205.js +1 -1
  139. package/dist/pat-shared-components205.mjs +1 -1
  140. package/dist/pat-shared-components207.js +1 -1
  141. package/dist/pat-shared-components207.mjs +1 -1
  142. package/dist/pat-shared-components21.js +1 -1
  143. package/dist/pat-shared-components21.js.map +1 -1
  144. package/dist/pat-shared-components21.mjs +4 -4
  145. package/dist/pat-shared-components228.js +1 -1
  146. package/dist/pat-shared-components228.js.map +1 -1
  147. package/dist/pat-shared-components228.mjs +18 -18
  148. package/dist/pat-shared-components228.mjs.map +1 -1
  149. package/dist/pat-shared-components23.js +1 -1
  150. package/dist/pat-shared-components23.js.map +1 -1
  151. package/dist/pat-shared-components23.mjs +2 -2
  152. package/dist/pat-shared-components247.js +1 -1
  153. package/dist/pat-shared-components247.mjs +2 -2
  154. package/dist/pat-shared-components25.js +1 -1
  155. package/dist/pat-shared-components25.mjs +2 -2
  156. package/dist/pat-shared-components27.js +1 -1
  157. package/dist/pat-shared-components27.js.map +1 -1
  158. package/dist/pat-shared-components27.mjs +9 -9
  159. package/dist/pat-shared-components28.js +1 -1
  160. package/dist/pat-shared-components28.js.map +1 -1
  161. package/dist/pat-shared-components28.mjs +8 -8
  162. package/dist/pat-shared-components33.js +1 -1
  163. package/dist/pat-shared-components33.mjs +2 -2
  164. package/dist/pat-shared-components34.js +1 -1
  165. package/dist/pat-shared-components34.js.map +1 -1
  166. package/dist/pat-shared-components34.mjs +3 -3
  167. package/dist/pat-shared-components35.js +1 -1
  168. package/dist/pat-shared-components35.mjs +3 -3
  169. package/dist/pat-shared-components43.js +1 -1
  170. package/dist/pat-shared-components43.mjs +1 -1
  171. package/dist/pat-shared-components44.js +1 -1
  172. package/dist/pat-shared-components44.mjs +2 -3
  173. package/dist/pat-shared-components44.mjs.map +1 -1
  174. package/dist/pat-shared-components45.js +1 -1
  175. package/dist/pat-shared-components45.js.map +1 -1
  176. package/dist/pat-shared-components45.mjs +3 -154
  177. package/dist/pat-shared-components45.mjs.map +1 -1
  178. package/dist/pat-shared-components46.js +1 -1
  179. package/dist/pat-shared-components46.js.map +1 -1
  180. package/dist/pat-shared-components46.mjs +154 -2
  181. package/dist/pat-shared-components46.mjs.map +1 -1
  182. package/dist/pat-shared-components47.js +1 -1
  183. package/dist/pat-shared-components47.mjs +2 -3
  184. package/dist/pat-shared-components47.mjs.map +1 -1
  185. package/dist/pat-shared-components48.js +1 -1
  186. package/dist/pat-shared-components48.mjs +2 -2
  187. package/dist/pat-shared-components49.js +1 -1
  188. package/dist/pat-shared-components49.mjs +3 -2
  189. package/dist/pat-shared-components49.mjs.map +1 -1
  190. package/dist/pat-shared-components5.js +1 -1
  191. package/dist/pat-shared-components5.mjs +1 -0
  192. package/dist/pat-shared-components5.mjs.map +1 -1
  193. package/dist/pat-shared-components50.js +1 -1
  194. package/dist/pat-shared-components50.mjs +1 -1
  195. package/dist/pat-shared-components51.js +1 -1
  196. package/dist/pat-shared-components51.mjs +1 -1
  197. package/dist/pat-shared-components52.js +1 -1
  198. package/dist/pat-shared-components52.mjs +1 -1
  199. package/dist/pat-shared-components53.js +1 -1
  200. package/dist/pat-shared-components53.mjs +1 -1
  201. package/dist/pat-shared-components54.js +1 -1
  202. package/dist/pat-shared-components54.mjs +2 -3
  203. package/dist/pat-shared-components54.mjs.map +1 -1
  204. package/dist/pat-shared-components55.js +1 -1
  205. package/dist/pat-shared-components55.mjs +2 -2
  206. package/dist/pat-shared-components56.js +1 -1
  207. package/dist/pat-shared-components56.mjs +2 -2
  208. package/dist/pat-shared-components57.js +1 -1
  209. package/dist/pat-shared-components57.mjs +3 -2
  210. package/dist/pat-shared-components57.mjs.map +1 -1
  211. package/dist/pat-shared-components58.js +1 -1
  212. package/dist/pat-shared-components58.mjs +1 -1
  213. package/dist/pat-shared-components6.js +1 -1
  214. package/dist/pat-shared-components6.mjs +4 -3
  215. package/dist/pat-shared-components6.mjs.map +1 -1
  216. package/dist/pat-shared-components60.js +1 -5
  217. package/dist/pat-shared-components60.js.map +1 -1
  218. package/dist/pat-shared-components60.mjs +59 -819
  219. package/dist/pat-shared-components60.mjs.map +1 -1
  220. package/dist/pat-shared-components61.js +1 -1
  221. package/dist/pat-shared-components61.js.map +1 -1
  222. package/dist/pat-shared-components61.mjs +15 -4
  223. package/dist/pat-shared-components61.mjs.map +1 -1
  224. package/dist/pat-shared-components62.js +1 -1
  225. package/dist/pat-shared-components62.js.map +1 -1
  226. package/dist/pat-shared-components62.mjs +33 -10
  227. package/dist/pat-shared-components62.mjs.map +1 -1
  228. package/dist/pat-shared-components63.js +1 -1
  229. package/dist/pat-shared-components63.js.map +1 -1
  230. package/dist/pat-shared-components63.mjs +47 -67
  231. package/dist/pat-shared-components63.mjs.map +1 -1
  232. package/dist/pat-shared-components64.js +1 -1
  233. package/dist/pat-shared-components64.js.map +1 -1
  234. package/dist/pat-shared-components64.mjs +21 -10
  235. package/dist/pat-shared-components64.mjs.map +1 -1
  236. package/dist/pat-shared-components65.js +1 -1
  237. package/dist/pat-shared-components65.js.map +1 -1
  238. package/dist/pat-shared-components65.mjs +46 -10
  239. package/dist/pat-shared-components65.mjs.map +1 -1
  240. package/dist/pat-shared-components66.js +1 -1
  241. package/dist/pat-shared-components66.js.map +1 -1
  242. package/dist/pat-shared-components66.mjs +55 -16
  243. package/dist/pat-shared-components66.mjs.map +1 -1
  244. package/dist/pat-shared-components67.js +1 -1
  245. package/dist/pat-shared-components67.js.map +1 -1
  246. package/dist/pat-shared-components67.mjs +15 -17
  247. package/dist/pat-shared-components67.mjs.map +1 -1
  248. package/dist/pat-shared-components68.js +1 -1
  249. package/dist/pat-shared-components68.js.map +1 -1
  250. package/dist/pat-shared-components68.mjs +27 -56
  251. package/dist/pat-shared-components68.mjs.map +1 -1
  252. package/dist/pat-shared-components69.js +1 -1
  253. package/dist/pat-shared-components69.js.map +1 -1
  254. package/dist/pat-shared-components69.mjs +5 -15
  255. package/dist/pat-shared-components69.mjs.map +1 -1
  256. package/dist/pat-shared-components70.js +1 -1
  257. package/dist/pat-shared-components70.js.map +1 -1
  258. package/dist/pat-shared-components70.mjs +28 -33
  259. package/dist/pat-shared-components70.mjs.map +1 -1
  260. package/dist/pat-shared-components71.js +1 -1
  261. package/dist/pat-shared-components71.js.map +1 -1
  262. package/dist/pat-shared-components71.mjs +10 -51
  263. package/dist/pat-shared-components71.mjs.map +1 -1
  264. package/dist/pat-shared-components72.js +1 -1
  265. package/dist/pat-shared-components72.js.map +1 -1
  266. package/dist/pat-shared-components72.mjs +81 -17
  267. package/dist/pat-shared-components72.mjs.map +1 -1
  268. package/dist/pat-shared-components73.js +1 -1
  269. package/dist/pat-shared-components73.js.map +1 -1
  270. package/dist/pat-shared-components73.mjs +17 -42
  271. package/dist/pat-shared-components73.mjs.map +1 -1
  272. package/dist/pat-shared-components74.js +1 -1
  273. package/dist/pat-shared-components74.js.map +1 -1
  274. package/dist/pat-shared-components74.mjs +10 -57
  275. package/dist/pat-shared-components74.mjs.map +1 -1
  276. package/dist/pat-shared-components75.js +1 -1
  277. package/dist/pat-shared-components75.js.map +1 -1
  278. package/dist/pat-shared-components75.mjs +51 -18
  279. package/dist/pat-shared-components75.mjs.map +1 -1
  280. package/dist/pat-shared-components76.js +1 -1
  281. package/dist/pat-shared-components76.js.map +1 -1
  282. package/dist/pat-shared-components76.mjs +85 -26
  283. package/dist/pat-shared-components76.mjs.map +1 -1
  284. package/dist/pat-shared-components77.js +1 -1
  285. package/dist/pat-shared-components77.js.map +1 -1
  286. package/dist/pat-shared-components77.mjs +4 -5
  287. package/dist/pat-shared-components77.mjs.map +1 -1
  288. package/dist/pat-shared-components78.js +5 -1
  289. package/dist/pat-shared-components78.js.map +1 -1
  290. package/dist/pat-shared-components78.mjs +819 -26
  291. package/dist/pat-shared-components78.mjs.map +1 -1
  292. package/dist/pat-shared-components79.js +1 -1
  293. package/dist/pat-shared-components79.js.map +1 -1
  294. package/dist/pat-shared-components79.mjs +16 -9
  295. package/dist/pat-shared-components79.mjs.map +1 -1
  296. package/dist/pat-shared-components8.js +1 -1
  297. package/dist/pat-shared-components8.mjs +14 -14
  298. package/dist/pat-shared-components80.js +1 -1
  299. package/dist/pat-shared-components80.js.map +1 -1
  300. package/dist/pat-shared-components80.mjs +37 -81
  301. package/dist/pat-shared-components80.mjs.map +1 -1
  302. package/dist/pat-shared-components81.js +1 -1
  303. package/dist/pat-shared-components81.js.map +1 -1
  304. package/dist/pat-shared-components81.mjs +78 -18
  305. package/dist/pat-shared-components81.mjs.map +1 -1
  306. package/dist/pat-shared-components82.js +1 -1
  307. package/dist/pat-shared-components82.js.map +1 -1
  308. package/dist/pat-shared-components82.mjs +22 -103
  309. package/dist/pat-shared-components82.mjs.map +1 -1
  310. package/dist/pat-shared-components83.js +1 -1
  311. package/dist/pat-shared-components83.js.map +1 -1
  312. package/dist/pat-shared-components83.mjs +67 -20
  313. package/dist/pat-shared-components83.mjs.map +1 -1
  314. package/dist/pat-shared-components84.js +1 -1
  315. package/dist/pat-shared-components84.js.map +1 -1
  316. package/dist/pat-shared-components84.mjs +10 -37
  317. package/dist/pat-shared-components84.mjs.map +1 -1
  318. package/dist/pat-shared-components85.js +1 -1
  319. package/dist/pat-shared-components85.js.map +1 -1
  320. package/dist/pat-shared-components85.mjs +10 -20
  321. package/dist/pat-shared-components85.mjs.map +1 -1
  322. package/dist/pat-shared-components86.js +1 -1
  323. package/dist/pat-shared-components86.js.map +1 -1
  324. package/dist/pat-shared-components86.mjs +18 -25
  325. package/dist/pat-shared-components86.mjs.map +1 -1
  326. package/dist/pat-shared-components87.js +1 -1
  327. package/dist/pat-shared-components87.js.map +1 -1
  328. package/dist/pat-shared-components87.mjs +19 -18
  329. package/dist/pat-shared-components87.mjs.map +1 -1
  330. package/dist/pat-shared-components88.js +1 -1
  331. package/dist/pat-shared-components88.js.map +1 -1
  332. package/dist/pat-shared-components88.mjs +10 -32
  333. package/dist/pat-shared-components88.mjs.map +1 -1
  334. package/dist/pat-shared-components89.js +1 -1
  335. package/dist/pat-shared-components89.js.map +1 -1
  336. package/dist/pat-shared-components89.mjs +19 -29
  337. package/dist/pat-shared-components89.mjs.map +1 -1
  338. package/dist/pat-shared-components9.js +1 -1
  339. package/dist/pat-shared-components9.mjs +13 -13
  340. package/dist/pat-shared-components90.js +1 -1
  341. package/dist/pat-shared-components90.js.map +1 -1
  342. package/dist/pat-shared-components90.mjs +103 -47
  343. package/dist/pat-shared-components90.mjs.map +1 -1
  344. package/dist/pat-shared-components91.js +1 -1
  345. package/dist/pat-shared-components91.js.map +1 -1
  346. package/dist/pat-shared-components91.mjs +35 -44
  347. package/dist/pat-shared-components91.mjs.map +1 -1
  348. package/dist/pat-shared-components92.js +1 -1
  349. package/dist/pat-shared-components92.js.map +1 -1
  350. package/dist/pat-shared-components92.mjs +16 -13
  351. package/dist/pat-shared-components92.mjs.map +1 -1
  352. package/dist/pat-shared-components93.js +1 -1
  353. package/dist/pat-shared-components93.js.map +1 -1
  354. package/dist/pat-shared-components93.mjs +25 -48
  355. package/dist/pat-shared-components93.mjs.map +1 -1
  356. package/dist/pat-shared-components94.js +1 -1
  357. package/dist/pat-shared-components94.js.map +1 -1
  358. package/dist/pat-shared-components94.mjs +43 -18
  359. package/dist/pat-shared-components94.mjs.map +1 -1
  360. package/dist/pat-shared-components95.js +1 -1
  361. package/dist/pat-shared-components95.js.map +1 -1
  362. package/dist/pat-shared-components95.mjs +30 -77
  363. package/dist/pat-shared-components95.mjs.map +1 -1
  364. package/dist/pat-shared-components96.js +1 -1
  365. package/dist/pat-shared-components96.js.map +1 -1
  366. package/dist/pat-shared-components96.mjs +17 -12
  367. package/dist/pat-shared-components96.mjs.map +1 -1
  368. package/dist/pat-shared-components97.js +1 -1
  369. package/dist/pat-shared-components97.js.map +1 -1
  370. package/dist/pat-shared-components97.mjs +47 -43
  371. package/dist/pat-shared-components97.mjs.map +1 -1
  372. package/dist/pat-shared-components98.js +1 -1
  373. package/dist/pat-shared-components98.js.map +1 -1
  374. package/dist/pat-shared-components98.mjs +22 -8
  375. package/dist/pat-shared-components98.mjs.map +1 -1
  376. package/dist/pat-shared-components99.js +1 -1
  377. package/dist/pat-shared-components99.js.map +1 -1
  378. package/dist/pat-shared-components99.mjs +77 -22
  379. package/dist/pat-shared-components99.mjs.map +1 -1
  380. package/dist/style.css +1 -1
  381. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.d.ts +4 -0
  382. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components19.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 { toRef } from 'vue';\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 DoctorNote from '../../Shared/DoctorNote.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';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: 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 },\n emits: ['click:book-appointment'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean };\n\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\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 class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\"]),\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(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\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","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BookAppointment","DoctorNote","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":"kfAGMA,EAAa,CACjB,IAAK,EACL,MAAO,6BACT,EACMC,EAAa,CAAE,MAAO,YA0BAC,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,CAC/C,EACA,MAAO,CAAC,wBAAwB,EAChC,MAAMC,EAAc,CAAE,KAAAC,GAAQ,CAEhC,MAAMC,EAAQF,EAYR,CAAE,mBAAAG,EAAoB,YAAAC,EAAa,WAAAC,EAAY,QAAAC,CAAA,EAAYC,EAAAA,cAAc,CAC7E,WAAYC,EAAAA,MAAMN,EAAO,YAAY,EACrC,gBAAiBM,EAAAA,MAAMN,EAAO,iBAAiB,EAC/C,YAAaM,EAAAA,MAAMN,EAAO,aAAa,CAAA,CACxC,EAEM,MAAA,CAACO,EAAUC,KACRC,YAAW,EAAGC,qBAAoB,MAAO,KAAM,CACpDV,EAAM,SACFS,EAAA,UAAA,EAAcE,EAAAA,YAAaC,EAA0B,CAAE,IAAK,CAAG,CAAA,IAC/DH,EAAAA,UAAc,EAAAC,EAAA,mBAAoBG,WAAW,CAAE,IA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,CACtBH,EAAAA,YAAaO,EAAY,CACvB,cAAezB,EAAM,WAAW,WAC/B,EAAA,KAAM,EAAG,CAAC,aAAa,CAAC,CAAA,CAC5B,EACD,EAAG,CAAA,CACJ,GACDiB,EAAAA,mBAAoB,GAAI,EAAI,EAC/BH,QAAOV,CAAO,EAAE,qBACZK,EAAA,UAAA,EAAcE,EAAA,YAAaS,EAAmB,CAAE,IAAK,GAAK,CACzD,QAASC,UAAS,IAAM,CACtBH,EAAAA,YAAaQ,EAAqB,CAChC,YAAa1B,EAAM,WAAW,YAC7B,EAAA,KAAM,EAAG,CAAC,WAAW,CAAC,CAAA,CAC1B,EACD,EAAG,CAAA,CACJ,GACDiB,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,EACDF,EAAA,mBAAoB,MAAOpB,EAAY,CACrCgC,aAAYpB,EAAK,OAAQ,QAAQ,EAC/BO,EAAA,MAAOZ,CAAW,EAEhBe,EAAAA,mBAAoB,GAAI,EAAI,EAD5BU,EAAAA,WAAYpB,EAAK,OAAQ,UAAW,CAAE,IAAK,CAAG,CAAA,EAElDoB,aAAYpB,EAAK,OAAQ,QAAQ,CAAA,CAClC,CACF,CAAA,IACAE,EAAW,UAAA,EAAGE,cAAaiB,EAAgB,CAC1C,IAAK,EACL,MAAO,UAAA,EACN,CACD,cAAeP,UAAS,IAAM,CAC5BH,EAAAA,YAAaW,EAAoB,CAAE,MAAO,WAAY,CAAA,CACvD,EACD,EAAG,CAAA,CACJ,IACJ,EAAE,EAAA,CACV,EAEH,CAEA,CAAC"}
1
+ {"version":3,"file":"pat-shared-components19.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, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, 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 psc-pb-2\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-download-thick psc-mr-1 psc-text-base\" }, null, -1)\nconst _hoisted_4 = { class: \"psc-px-4\" }\n\nimport { computed, toRef } from 'vue';\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 DoctorNote from '../../Shared/DoctorNote.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 { BButton } from 'pat-design-system';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n pdf?: 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 pdf: { default: '' }\n },\n emits: ['click:book-appointment'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, pdf: string };\n\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 pdfUrl = computed(() => props.pdf || props.testResult.pdf);\n\n/**\n * Methods\n */\nconst downloadPdf = () => {\n window.open(pdfUrl.value, '_blank');\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 class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\"]),\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 _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(BButton), {\n class: \"psc-w-full\",\n type: \"primary\",\n disabled: !_unref(pdfUrl),\n onClick: downloadPdf\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('psc.test_result_download_pdf')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\"]),\n (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(BookAppointment, {\n key: 0,\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n }))\n : _createCommentVNode(\"\", true)\n ]),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\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(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\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_4, [\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","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","pdfUrl","computed","downloadPdf","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BButton","_createTextVNode","_toDisplayString","BookAppointment","DoctorNote","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":"8hBAGMA,EAAa,CACjB,IAAK,EACL,MAAO,6BACT,EACMC,EAAa,CAAE,MAAO,qBACtBC,uBAA8C,IAAK,C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EAAA,KAAM,EAAG,CAAC,aAAa,CAAC,CAAA,CAC5B,EACD,EAAG,CAAA,CACJ,GACDoB,EAAAA,mBAAoB,GAAI,EAAI,EAC/BH,QAAOb,CAAO,EAAE,qBACZQ,EAAA,UAAA,EAAcE,EAAA,YAAaS,EAAmB,CAAE,IAAK,GAAK,CACzD,QAASC,UAAS,IAAM,CACtBH,EAAAA,YAAaW,EAAqB,CAChC,YAAahC,EAAM,WAAW,YAC7B,EAAA,KAAM,EAAG,CAAC,WAAW,CAAC,CAAA,CAC1B,EACD,EAAG,CAAA,CACJ,GACDoB,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,EACDF,EAAA,mBAAoB,MAAOvB,EAAY,CACrCsC,aAAYvB,EAAK,OAAQ,QAAQ,EAC/BO,EAAA,MAAOf,CAAW,EAEhBkB,EAAAA,mBAAoB,GAAI,EAAI,EAD5Ba,EAAAA,WAAYvB,EAAK,OAAQ,UAAW,CAAE,IAAK,CAAG,CAAA,EAElDuB,aAAYvB,EAAK,OAAQ,QAAQ,CAAA,CAClC,CACF,CAAA,IACAE,EAAW,UAAA,EAAGE,cAAaoB,EAAgB,CAC1C,IAAK,EACL,MAAO,UAAA,EACN,CACD,cAAeV,UAAS,IAAM,CAC5BH,EAAAA,YAAac,EAAoB,CAAE,MAAO,WAAY,CAAA,CACvD,EACD,EAAG,CAAA,CACJ,IACJ,EAAE,EAAA,CACV,EAEH,CAEA,CAAC"}
@@ -1,92 +1,106 @@
1
- import { defineComponent as h, toRef as p, openBlock as t, createElementBlock as c, createBlock as s, Fragment as v, unref as o, createElementVNode as _, createCommentVNode as n, createVNode as l, withCtx as m, renderSlot as f } from "vue";
2
- import B from "./pat-shared-components75.mjs";
3
- import S from "./pat-shared-components90.mjs";
4
- import C from "./pat-shared-components32.mjs";
5
- import N from "./pat-shared-components91.mjs";
6
- import g from "./pat-shared-components92.mjs";
7
- import x from "./pat-shared-components93.mjs";
8
- import I from "./pat-shared-components11.mjs";
9
- import V from "./pat-shared-components94.mjs";
10
- import P from "./pat-shared-components95.mjs";
11
- import a from "./pat-shared-components96.mjs";
12
- import { useTestResult as T } from "./pat-shared-components97.mjs";
13
- const w = {
1
+ import { defineComponent as w, toRef as c, computed as S, openBlock as e, createElementBlock as d, createBlock as s, Fragment as B, unref as o, createElementVNode as p, createCommentVNode as l, createVNode as n, withCtx as a, createTextVNode as C, toDisplayString as g, renderSlot as u } from "vue";
2
+ import x from "./pat-shared-components67.mjs";
3
+ import N from "./pat-shared-components94.mjs";
4
+ import V from "./pat-shared-components32.mjs";
5
+ import I from "./pat-shared-components95.mjs";
6
+ import P from "./pat-shared-components96.mjs";
7
+ import T from "./pat-shared-components97.mjs";
8
+ import A from "./pat-shared-components11.mjs";
9
+ import D from "./pat-shared-components98.mjs";
10
+ import E from "./pat-shared-components99.mjs";
11
+ import f from "./pat-shared-components100.mjs";
12
+ import { useTestResult as j } from "./pat-shared-components101.mjs";
13
+ import F from "./pat-shared-components77.mjs";
14
+ const U = {
14
15
  key: 0,
15
16
  class: "consumer-test-result__ready"
16
- }, A = { class: "psc-px-4" }, O = /* @__PURE__ */ h({
17
+ }, q = { class: "psc-px-4 psc-pb-2" }, z = /* @__PURE__ */ p("i", { class: "dgic-download-thick psc-mr-1 psc-text-base" }, null, -1), G = { class: "psc-px-4" }, ot = /* @__PURE__ */ w({
17
18
  __name: "TestResultDetail",
18
19
  props: {
19
20
  testResult: null,
20
21
  loading: { type: Boolean },
21
22
  hidePatientInfo: { type: Boolean, default: !1 },
22
- hideSummary: { type: Boolean, default: !1 }
23
+ hideSummary: { type: Boolean, default: !1 },
24
+ pdf: { default: "" }
23
25
  },
24
26
  emits: ["click:book-appointment"],
25
- setup(k, { emit: d }) {
26
- const e = k, { healthSummaryItems: y, hideContent: R, isViewable: $, visible: i } = T({
27
- testResult: p(e, "testResult"),
28
- hidePatientInfo: p(e, "hidePatientInfo"),
29
- hideSummary: p(e, "hideSummary")
30
- });
31
- return (u, r) => (t(), c("div", null, [
32
- e.loading ? (t(), s(V, { key: 0 })) : (t(), c(v, { key: 1 }, [
33
- o($) ? (t(), c("div", w, [
34
- _("div", null, [
35
- o(i).patientName ? (t(), s(B, {
27
+ setup(y, { emit: _ }) {
28
+ const t = y, { healthSummaryItems: b, hideContent: h, isViewable: R, visible: i } = j({
29
+ testResult: c(t, "testResult"),
30
+ hidePatientInfo: c(t, "hidePatientInfo"),
31
+ hideSummary: c(t, "hideSummary")
32
+ }), k = S(() => t.pdf || t.testResult.pdf), $ = () => {
33
+ window.open(k.value, "_blank");
34
+ };
35
+ return (r, m) => (e(), d("div", null, [
36
+ t.loading ? (e(), s(D, { key: 0 })) : (e(), d(B, { key: 1 }, [
37
+ o(R) ? (e(), d("div", U, [
38
+ p("div", null, [
39
+ o(i).patientName ? (e(), s(x, {
36
40
  key: 0,
37
- "first-name": e.testResult.first_name,
41
+ "first-name": t.testResult.first_name,
38
42
  class: "psc-px-4 psc-pb-2"
39
- }, null, 8, ["first-name"])) : n("", !0),
40
- l(S, {
41
- "test-result": e.testResult,
43
+ }, null, 8, ["first-name"])) : l("", !0),
44
+ n(N, {
45
+ "test-result": t.testResult,
42
46
  class: "psc-px-4 psc-pb-4"
43
47
  }, null, 8, ["test-result"]),
44
- o(i).healthSummary ? (t(), s(a, { key: 1 }, {
45
- default: m(() => [
46
- l(P, {
47
- items: o(y),
48
- "cta-button": e.testResult.is_free_consultant,
49
- "onClick:ctaButton": r[0] || (r[0] = (b) => d("click:book-appointment"))
48
+ o(i).healthSummary ? (e(), s(f, { key: 1 }, {
49
+ default: a(() => [
50
+ n(E, {
51
+ items: o(b),
52
+ "cta-button": t.testResult.is_free_consultant,
53
+ "onClick:ctaButton": m[0] || (m[0] = (v) => _("click:book-appointment"))
50
54
  }, null, 8, ["items", "cta-button"])
51
55
  ]),
52
56
  _: 1
53
- })) : n("", !0),
54
- o(i).bookAppointment ? (t(), s(a, { key: 2 }, {
55
- default: m(() => [
56
- l(N, {
57
- "onClick:book": r[1] || (r[1] = (b) => d("click:book-appointment"))
58
- })
59
- ]),
60
- _: 1
61
- })) : n("", !0),
62
- o(i).doctorNote ? (t(), s(a, { key: 3 }, {
63
- default: m(() => [
64
- l(g, {
65
- "doctor-note": e.testResult.doctor_note
57
+ })) : l("", !0),
58
+ p("div", q, [
59
+ n(o(F), {
60
+ class: "psc-w-full",
61
+ type: "primary",
62
+ disabled: !o(k),
63
+ onClick: $
64
+ }, {
65
+ default: a(() => [
66
+ z,
67
+ C(" " + g(r.$t("psc.test_result_download_pdf")), 1)
68
+ ]),
69
+ _: 1
70
+ }, 8, ["disabled"]),
71
+ o(i).bookAppointment ? (e(), s(I, {
72
+ key: 0,
73
+ "onClick:book": m[1] || (m[1] = (v) => _("click:book-appointment"))
74
+ })) : l("", !0)
75
+ ]),
76
+ o(i).doctorNote ? (e(), s(f, { key: 2 }, {
77
+ default: a(() => [
78
+ n(P, {
79
+ "doctor-note": t.testResult.doctor_note
66
80
  }, null, 8, ["doctor-note"])
67
81
  ]),
68
82
  _: 1
69
- })) : n("", !0),
70
- o(i).upcomingAppointment ? (t(), s(a, { key: 4 }, {
71
- default: m(() => [
72
- l(x, {
73
- "time-slot": e.testResult.consult_time
83
+ })) : l("", !0),
84
+ o(i).upcomingAppointment ? (e(), s(f, { key: 3 }, {
85
+ default: a(() => [
86
+ n(T, {
87
+ "time-slot": t.testResult.consult_time
74
88
  }, null, 8, ["time-slot"])
75
89
  ]),
76
90
  _: 1
77
- })) : n("", !0)
91
+ })) : l("", !0)
78
92
  ]),
79
- _("div", A, [
80
- f(u.$slots, "header"),
81
- o(R) ? n("", !0) : f(u.$slots, "default", { key: 0 }),
82
- f(u.$slots, "footer")
93
+ p("div", G, [
94
+ u(r.$slots, "header"),
95
+ o(h) ? l("", !0) : u(r.$slots, "default", { key: 0 }),
96
+ u(r.$slots, "footer")
83
97
  ])
84
- ])) : (t(), s(C, {
98
+ ])) : (e(), s(V, {
85
99
  key: 1,
86
100
  class: "psc-px-4"
87
101
  }, {
88
- "body-append": m(() => [
89
- l(I, { class: "psc-mt-6" })
102
+ "body-append": a(() => [
103
+ n(A, { class: "psc-mt-6" })
90
104
  ]),
91
105
  _: 1
92
106
  }))
@@ -95,6 +109,6 @@ const w = {
95
109
  }
96
110
  });
97
111
  export {
98
- O as default
112
+ ot as default
99
113
  };
100
114
  //# sourceMappingURL=pat-shared-components19.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components19.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 { toRef } from 'vue';\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 DoctorNote from '../../Shared/DoctorNote.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';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: 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 },\n emits: ['click:book-appointment'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean };\n\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\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 class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\"]),\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(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\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","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BookAppointment","DoctorNote","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,cA0BAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,E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G;AAAA,YAAA,CACJ,KACDiB,EAAoB,IAAI,EAAI;AAAA,UAAA,CACjC;AAAA,UACDF,EAAoB,OAAOpB,GAAY;AAAA,YACrCgC,EAAYpB,EAAK,QAAQ,QAAQ;AAAA,YAC/BO,EAAOZ,CAAW,IAEhBe,EAAoB,IAAI,EAAI,IAD5BU,EAAYpB,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA;AAAA,YAElDoB,EAAYpB,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,QACF,CAAA,MACAE,EAAW,GAAGE,EAAaiB,GAAgB;AAAA,UAC1C,KAAK;AAAA,UACL,OAAO;AAAA,QAAA,GACN;AAAA,UACD,eAAeP,EAAS,MAAM;AAAA,YAC5BH,EAAaW,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":"pat-shared-components19.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, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, 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 psc-pb-2\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-download-thick psc-mr-1 psc-text-base\" }, null, -1)\nconst _hoisted_4 = { class: \"psc-px-4\" }\n\nimport { computed, toRef } from 'vue';\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 DoctorNote from '../../Shared/DoctorNote.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 { BButton } from 'pat-design-system';\n\n/**\n * Props\n */\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n pdf?: 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 pdf: { default: '' }\n },\n emits: ['click:book-appointment'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, pdf: string };\n\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 pdfUrl = computed(() => props.pdf || props.testResult.pdf);\n\n/**\n * Methods\n */\nconst downloadPdf = () => {\n window.open(pdfUrl.value, '_blank');\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 class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\"]),\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 _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(BButton), {\n class: \"psc-w-full\",\n type: \"primary\",\n disabled: !_unref(pdfUrl),\n onClick: downloadPdf\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('psc.test_result_download_pdf')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\"]),\n (_unref(visible).bookAppointment)\n ? (_openBlock(), _createBlock(BookAppointment, {\n key: 0,\n \"onClick:book\": _cache[1] || (_cache[1] = ($event: any) => (emit('click:book-appointment')))\n }))\n : _createCommentVNode(\"\", true)\n ]),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\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(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\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_4, [\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","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","pdfUrl","computed","downloadPdf","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","TestResultDetailSkeleton","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","$event","BButton","_createTextVNode","_toDisplayString","BookAppointment","DoctorNote","UpcomingAppointment","_renderSlot","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,uBACtBC,sBAA8C,KAAK,EAAE,OAAO,gDAAgD,MAAM,EAAE,GACpHC,IAAa,EAAE,OAAO,cA4BAC,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,KAAK,EAAE,SAAS,G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EAAI;AAAA,YAC/BH,EAAOb,CAAO,EAAE,uBACZQ,EAAA,GAAcE,EAAaS,GAAmB,EAAE,KAAK,KAAK;AAAA,cACzD,SAASC,EAAS,MAAM;AAAA,gBACtBH,EAAaW,GAAqB;AAAA,kBAChC,aAAahC,EAAM,WAAW;AAAA,gBAC7B,GAAA,MAAM,GAAG,CAAC,WAAW,CAAC;AAAA,cAAA,CAC1B;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACDoB,EAAoB,IAAI,EAAI;AAAA,UAAA,CACjC;AAAA,UACDF,EAAoB,OAAOvB,GAAY;AAAA,YACrCsC,EAAYvB,EAAK,QAAQ,QAAQ;AAAA,YAC/BO,EAAOf,CAAW,IAEhBkB,EAAoB,IAAI,EAAI,IAD5Ba,EAAYvB,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA;AAAA,YAElDuB,EAAYvB,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,QACF,CAAA,MACAE,EAAW,GAAGE,EAAaoB,GAAgB;AAAA,UAC1C,KAAK;AAAA,UACL,OAAO;AAAA,QAAA,GACN;AAAA,UACD,eAAeV,EAAS,MAAM;AAAA,YAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,UAAA,CACvD;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,SACJ,EAAE;AAAA,IAAA,CACV;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./pat-shared-components228.js");require("./pat-shared-components229.js");const r=require("./pat-shared-components39.js"),t=r(e,[["__scopeId","data-v-d1b89c01"]]);module.exports=t;
1
+ "use strict";const e=require("./pat-shared-components228.js");require("./pat-shared-components229.js");const r=require("./pat-shared-components39.js"),t=r(e,[["__scopeId","data-v-5c7faee9"]]);module.exports=t;
2
2
  //# sourceMappingURL=pat-shared-components193.js.map
@@ -1,8 +1,8 @@
1
- import o from "./pat-shared-components228.mjs";
1
+ import e from "./pat-shared-components228.mjs";
2
2
  import "./pat-shared-components229.mjs";
3
- import t from "./pat-shared-components39.mjs";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1b89c01"]]);
3
+ import a from "./pat-shared-components39.mjs";
4
+ const f = /* @__PURE__ */ a(e, [["__scopeId", "data-v-5c7faee9"]]);
5
5
  export {
6
- i as default
6
+ f as default
7
7
  };
8
8
  //# sourceMappingURL=pat-shared-components193.mjs.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),u=require("./pat-shared-components61.js"),a=require("./pat-shared-components31.js"),d=require("./pat-shared-components30.js"),p=require("./pat-shared-components35.js"),_=require("./pat-shared-components10.js"),k=require("./pat-shared-components62.js"),m={class:"psc-space-y-4 psc-px-4"},B={class:"psc-w-full psc-px-4 psc-pt-7 psc-text-center"},g={key:1},y={key:0,class:"psc-px-4 psc-pt-7"},h=e.defineComponent({__name:"TestResultList",props:{items:null,loading:{type:Boolean},skeletonCount:null,ctaButtonUrl:{default:""},hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(s,{emit:n}){const t=s,c=async()=>{n("click:load-more")},r=async o=>{n("switch-to-detail",o)};return(o,b)=>(e.openBlock(),e.createElementBlock("div",null,[!t.loading&&t.items.length===0?(e.openBlock(),e.createBlock(_,{key:0,title:o.$t("psc.test_result_no_results_found"),subtitle:o.$t("psc.test_result_book_to_show_result"),"booking-button-url":t.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(k,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_all_results")),1)]),_:1}),e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,i)=>(e.openBlock(),e.createElementBlock("div",{key:`item${i}`},[e.createVNode(p,{item:l,onClick:v=>r(l)},null,8,["item","onClick"])]))),128)),t.loading?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.skeletonCount,l=>(e.openBlock(),e.createBlock(d,{key:`skeleton${l}`}))),128)):e.createCommentVNode("",!0)]),e.createElementVNode("div",B,[t.hideLoadMore?(e.openBlock(),e.createElementBlock("div",g,e.toDisplayString(o.$t("psc.test_result_all_results_loaded")),1)):(e.openBlock(),e.createBlock(e.unref(u),{key:0,type:"secondary",disabled:t.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_load_older_results")),1)]),_:1},8,["disabled"]))]),t.ctaButtonUrl?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(a,{class:"psc-mt-[20px]",url:s.ctaButtonUrl,title:o.$t("psc.test_result_test_more_for_better_health"),subtitle:o.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):e.createCommentVNode("",!0)],64))]))}});module.exports=h;
1
+ "use strict";const e=require("vue"),u=require("./pat-shared-components77.js"),a=require("./pat-shared-components31.js"),d=require("./pat-shared-components30.js"),p=require("./pat-shared-components35.js"),_=require("./pat-shared-components10.js"),k=require("./pat-shared-components88.js"),m={class:"psc-space-y-4 psc-px-4"},B={class:"psc-w-full psc-px-4 psc-pt-7 psc-text-center"},g={key:1},y={key:0,class:"psc-px-4 psc-pt-7"},h=e.defineComponent({__name:"TestResultList",props:{items:null,loading:{type:Boolean},skeletonCount:null,ctaButtonUrl:{default:""},hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(s,{emit:n}){const t=s,c=async()=>{n("click:load-more")},r=async o=>{n("switch-to-detail",o)};return(o,b)=>(e.openBlock(),e.createElementBlock("div",null,[!t.loading&&t.items.length===0?(e.openBlock(),e.createBlock(_,{key:0,title:o.$t("psc.test_result_no_results_found"),subtitle:o.$t("psc.test_result_book_to_show_result"),"booking-button-url":t.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(k,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_all_results")),1)]),_:1}),e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,i)=>(e.openBlock(),e.createElementBlock("div",{key:`item${i}`},[e.createVNode(p,{item:l,onClick:v=>r(l)},null,8,["item","onClick"])]))),128)),t.loading?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.skeletonCount,l=>(e.openBlock(),e.createBlock(d,{key:`skeleton${l}`}))),128)):e.createCommentVNode("",!0)]),e.createElementVNode("div",B,[t.hideLoadMore?(e.openBlock(),e.createElementBlock("div",g,e.toDisplayString(o.$t("psc.test_result_all_results_loaded")),1)):(e.openBlock(),e.createBlock(e.unref(u),{key:0,type:"secondary",disabled:t.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_load_older_results")),1)]),_:1},8,["disabled"]))]),t.ctaButtonUrl?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(a,{class:"psc-mt-[20px]",url:s.ctaButtonUrl,title:o.$t("psc.test_result_test_more_for_better_health"),subtitle:o.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):e.createCommentVNode("",!0)],64))]))}});module.exports=h;
2
2
  //# sourceMappingURL=pat-shared-components20.js.map
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as y, openBlock as t, createElementBlock as l, createBlock as n, Fragment as r, createVNode as i, withCtx as d, createTextVNode as p, toDisplayString as c, createElementVNode as _, renderList as m, createCommentVNode as k, unref as g } from "vue";
2
- import $ from "./pat-shared-components61.mjs";
2
+ import $ from "./pat-shared-components77.mjs";
3
3
  import B from "./pat-shared-components31.mjs";
4
4
  import C from "./pat-shared-components30.mjs";
5
5
  import v from "./pat-shared-components35.mjs";
6
6
  import w from "./pat-shared-components10.mjs";
7
- import L from "./pat-shared-components62.mjs";
7
+ import L from "./pat-shared-components88.mjs";
8
8
  const T = { class: "psc-space-y-4 psc-px-4" }, U = { class: "psc-w-full psc-px-4 psc-pt-7 psc-text-center" }, N = { key: 1 }, V = {
9
9
  key: 0,
10
10
  class: "psc-px-4 psc-pt-7"
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./pat-shared-components177.js");module.exports=e;
1
+ "use strict";const e=require("./pat-shared-components174.js");module.exports=e;
2
2
  //# sourceMappingURL=pat-shared-components204.js.map
@@ -1,4 +1,4 @@
1
- import f from "./pat-shared-components177.mjs";
1
+ import f from "./pat-shared-components174.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./pat-shared-components179.js");module.exports=e;
1
+ "use strict";const e=require("./pat-shared-components176.js");module.exports=e;
2
2
  //# sourceMappingURL=pat-shared-components205.js.map
@@ -1,4 +1,4 @@
1
- import f from "./pat-shared-components179.mjs";
1
+ import f from "./pat-shared-components176.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./pat-shared-components180.js");module.exports=e;
1
+ "use strict";const e=require("./pat-shared-components177.js");module.exports=e;
2
2
  //# sourceMappingURL=pat-shared-components207.js.map
@@ -1,4 +1,4 @@
1
- import f from "./pat-shared-components180.mjs";
1
+ import f from "./pat-shared-components177.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),a=require("./pat-shared-components98.js"),u=require("./pat-shared-components60.js"),m=require("./pat-shared-components31.js"),_=require("./pat-shared-components30.js"),n=require("./pat-shared-components4.js"),x=require("./pat-shared-components62.js"),f=require("./pat-shared-components82.js"),N={class:"psc-px-4"},b={key:1,class:"psc-mb-[20px] psc-flex"},h=e.createElementVNode("div",{class:"psc-mr-[16px] psc-h-[60px] psc-w-[60px] psc-min-w-[60px] psc-overflow-hidden psc-rounded-full psc-border-[1px] psc-border-solid psc-border-[#00000019]"},[e.createElementVNode("i",{class:"dgic-user-circle psc-text-[60px] psc-text-[#00000019]"})],-1),g={class:"psc-text-[14px]"},V={class:"psc-mb-[12px] psc-text-[20px] psc-font-[600]"},E={class:"psc-mb-[8px] psc-flex psc-items-center"},k=e.createElementVNode("i",{class:"dgic-cake psc-mr-1 psc-text-[22px] psc-font-bold"},null,-1),v={class:"psc-mb-[8px] psc-flex psc-items-center"},y=e.createElementVNode("i",{class:"dgic-phone-light psc-mr-1 psc-text-[22px]"},null,-1),B={class:"psc-mb-[8px] psc-flex psc-items-center"},D={class:"psc-mb-[35px] psc-flex psc-rounded-[8px] psc-bg-[#e6f0fe] psc-px-[16px] psc-py-[20px]"},q=e.createElementVNode("div",{class:"items-start psc-mr-[8px] psc-flex"},[e.createElementVNode("i",{class:"dgic-info-fill psc-text-[24px] psc-text-blue-darken-1"})],-1),T=["innerHTML"],w=e.defineComponent({__name:"MyProfile",props:{fullName:null,dob:null,gender:null,phoneNumber:null,loading:{type:Boolean},ctaButtonUrl:{default:""}},setup(r){const t=r,{t:s}=u.useI18n(),{formatDate:l}=f.useDate(),p=e.computed(()=>t.fullName),i=e.computed(()=>l(new Date(t.dob))),o=e.computed(()=>t.gender?{[n.Gender.Male]:{icon:"dgic-gender-male",text:s("psc.male")},[n.Gender.Female]:{icon:"dgic-gender-female",text:s("psc.female")}}[t.gender]:{icon:"",text:""}),d=e.computed(()=>t.phoneNumber?a.phoneNumberFormat(t.phoneNumber):"");return(c,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(x,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("psc.test_result_my_profile")),1)]),_:1}),e.createElementVNode("div",N,[t.loading?(e.openBlock(),e.createBlock(_,{key:0,class:"psc-mb-[20px] psc-pb-16"})):(e.openBlock(),e.createElementBlock("div",b,[h,e.createElementVNode("div",g,[e.createElementVNode("div",V,e.toDisplayString(e.unref(p)),1),e.createElementVNode("div",E,[k,e.createTextVNode(" "+e.toDisplayString(e.unref(i)),1)]),e.createElementVNode("div",v,[y,e.createTextVNode(" "+e.toDisplayString(e.unref(d)),1)]),e.createElementVNode("div",B,[e.createElementVNode("i",{class:e.normalizeClass(["psc-mr-1 psc-text-[22px]",e.unref(o).icon])},null,2),e.createTextVNode(" "+e.toDisplayString(e.unref(o).text),1)])])])),e.createElementVNode("div",D,[q,e.createElementVNode("div",{innerHTML:e.unref(s)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,T)]),t.ctaButtonUrl?(e.openBlock(),e.createBlock(m,{key:2,class:"psc-mt-[20px]",url:t.ctaButtonUrl,title:c.$t("psc.test_result_test_more_for_better_health"),subtitle:c.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])):e.createCommentVNode("",!0)])]))}});module.exports=w;
1
+ "use strict";const e=require("vue"),a=require("./pat-shared-components102.js"),u=require("./pat-shared-components78.js"),m=require("./pat-shared-components31.js"),_=require("./pat-shared-components30.js"),n=require("./pat-shared-components4.js"),x=require("./pat-shared-components88.js"),f=require("./pat-shared-components90.js"),N={class:"psc-px-4"},b={key:1,class:"psc-mb-[20px] psc-flex"},h=e.createElementVNode("div",{class:"psc-mr-[16px] psc-h-[60px] psc-w-[60px] psc-min-w-[60px] psc-overflow-hidden psc-rounded-full psc-border-[1px] psc-border-solid psc-border-[#00000019]"},[e.createElementVNode("i",{class:"dgic-user-circle psc-text-[60px] psc-text-[#00000019]"})],-1),g={class:"psc-text-[14px]"},V={class:"psc-mb-[12px] psc-text-[20px] psc-font-[600]"},E={class:"psc-mb-[8px] psc-flex psc-items-center"},k=e.createElementVNode("i",{class:"dgic-cake psc-mr-1 psc-text-[22px] psc-font-bold"},null,-1),v={class:"psc-mb-[8px] psc-flex psc-items-center"},y=e.createElementVNode("i",{class:"dgic-phone-light psc-mr-1 psc-text-[22px]"},null,-1),B={class:"psc-mb-[8px] psc-flex psc-items-center"},D={class:"psc-mb-[35px] psc-flex psc-rounded-[8px] psc-bg-[#e6f0fe] psc-px-[16px] psc-py-[20px]"},q=e.createElementVNode("div",{class:"items-start psc-mr-[8px] psc-flex"},[e.createElementVNode("i",{class:"dgic-info-fill psc-text-[24px] psc-text-blue-darken-1"})],-1),T=["innerHTML"],w=e.defineComponent({__name:"MyProfile",props:{fullName:null,dob:null,gender:null,phoneNumber:null,loading:{type:Boolean},ctaButtonUrl:{default:""}},setup(r){const t=r,{t:s}=u.useI18n(),{formatDate:l}=f.useDate(),p=e.computed(()=>t.fullName),i=e.computed(()=>l(new Date(t.dob))),o=e.computed(()=>t.gender?{[n.Gender.Male]:{icon:"dgic-gender-male",text:s("psc.male")},[n.Gender.Female]:{icon:"dgic-gender-female",text:s("psc.female")}}[t.gender]:{icon:"",text:""}),d=e.computed(()=>t.phoneNumber?a.phoneNumberFormat(t.phoneNumber):"");return(c,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(x,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("psc.test_result_my_profile")),1)]),_:1}),e.createElementVNode("div",N,[t.loading?(e.openBlock(),e.createBlock(_,{key:0,class:"psc-mb-[20px] psc-pb-16"})):(e.openBlock(),e.createElementBlock("div",b,[h,e.createElementVNode("div",g,[e.createElementVNode("div",V,e.toDisplayString(e.unref(p)),1),e.createElementVNode("div",E,[k,e.createTextVNode(" "+e.toDisplayString(e.unref(i)),1)]),e.createElementVNode("div",v,[y,e.createTextVNode(" "+e.toDisplayString(e.unref(d)),1)]),e.createElementVNode("div",B,[e.createElementVNode("i",{class:e.normalizeClass(["psc-mr-1 psc-text-[22px]",e.unref(o).icon])},null,2),e.createTextVNode(" "+e.toDisplayString(e.unref(o).text),1)])])])),e.createElementVNode("div",D,[q,e.createElementVNode("div",{innerHTML:e.unref(s)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,T)]),t.ctaButtonUrl?(e.openBlock(),e.createBlock(m,{key:2,class:"psc-mt-[20px]",url:t.ctaButtonUrl,title:c.$t("psc.test_result_test_more_for_better_health"),subtitle:c.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])):e.createCommentVNode("",!0)])]))}});module.exports=w;
2
2
  //# sourceMappingURL=pat-shared-components21.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components21.js","sources":["../src/components/TestResult/Mobile/MyProfile.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-px-4\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"psc-mb-[20px] psc-flex\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-mr-[16px] psc-h-[60px] psc-w-[60px] psc-min-w-[60px] psc-overflow-hidden psc-rounded-full psc-border-[1px] psc-border-solid psc-border-[#00000019]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-user-circle psc-text-[60px] psc-text-[#00000019]\" })\n], -1)\nconst _hoisted_4 = { class: \"psc-text-[14px]\" }\nconst _hoisted_5 = { class: \"psc-mb-[12px] psc-text-[20px] psc-font-[600]\" }\nconst _hoisted_6 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-cake psc-mr-1 psc-text-[22px] psc-font-bold\" }, null, -1)\nconst _hoisted_8 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-phone-light psc-mr-1 psc-text-[22px]\" }, null, -1)\nconst _hoisted_10 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_11 = { class: \"psc-mb-[35px] psc-flex psc-rounded-[8px] psc-bg-[#e6f0fe] psc-px-[16px] psc-py-[20px]\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"items-start psc-mr-[8px] psc-flex\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-info-fill psc-text-[24px] psc-text-blue-darken-1\" })\n], -1)\nconst _hoisted_13 = [\"innerHTML\"]\n\nimport { phoneNumberFormat } from '@/helpers/ComponentHelper';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport CtaButton from '@/components/Shared/CtaButton.vue';\nimport LoadingSkeleton from '@/components/Shared/LoadingSkeleton.vue';\nimport { Gender } from '@/constants/Enums';\nimport TabTitle from '../Shared/TabTitle.vue';\nimport { useDate } from 'pat-design-system';\n\n/**\n * Props\n */\nexport interface Props {\n fullName: string;\n dob: string;\n gender: Gender;\n phoneNumber: string;\n loading: boolean;\n ctaButtonUrl?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MyProfile',\n props: {\n fullName: null,\n dob: null,\n gender: null,\n phoneNumber: null,\n loading: { type: Boolean },\n ctaButtonUrl: { default: '' }\n },\n setup(__props: any) {\n\nconst props = __props as { fullName: string, dob: string, gender: Gender, phoneNumber: string, loading: boolean, ctaButtonUrl: string };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { formatDate } = useDate();\nconst firstName = computed(() => props.fullName);\nconst dob = computed(() => formatDate(new Date(props.dob)));\nconst gender = computed(() => {\n if (!props.gender) {\n return {\n icon: '',\n text: '',\n };\n }\n\n const result: Record<Gender, any> = {\n [Gender.Male]: {\n icon: `dgic-gender-male`,\n text: t(`psc.male`),\n },\n [Gender.Female]: {\n icon: `dgic-gender-female`,\n text: t(`psc.female`),\n },\n };\n\n return result[props.gender as Gender];\n});\nconst phoneNumber = computed(() =>\n props.phoneNumber ? phoneNumberFormat(props.phoneNumber) : ''\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(TabTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(t)('psc.test_result_my_profile')), 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_1, [\n (props.loading)\n ? (_openBlock(), _createBlock(LoadingSkeleton, {\n key: 0,\n class: \"psc-mb-[20px] psc-pb-16\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_unref(firstName)), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createTextVNode(\" \" + _toDisplayString(_unref(dob)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createTextVNode(\" \" + _toDisplayString(_unref(phoneNumber)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"psc-mr-1 psc-text-[22px]\", _unref(gender).icon])\n }, null, 2),\n _createTextVNode(\" \" + _toDisplayString(_unref(gender).text), 1)\n ])\n ])\n ])),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"div\", {\n innerHTML: _unref(t)('psc.test_result_if_you_wish_to_edit_your_profile')\n }, null, 8, _hoisted_13)\n ]),\n (props.ctaButtonUrl)\n ? (_openBlock(), _createBlock(CtaButton, {\n key: 2,\n class: \"psc-mt-[20px]\",\n url: props.ctaButtonUrl,\n title: _ctx.$t('psc.test_result_test_more_for_better_health'),\n subtitle: _ctx.$t('psc.test_result_book_general_screening_panel_now')\n }, null, 8, [\"url\", \"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_sfc_main","_defineComponent","__props","props","t","useI18n","formatDate","useDate","firstName","computed","dob","gender","Gender","phoneNumber","phoneNumberFormat","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","TabTitle","_withCtx","_createTextVNode","_toDisplayString","_unref","_createBlock","LoadingSkeleton","_normalizeClass","CtaButton","_createCommentVNode"],"mappings":"yUAGMA,EAAa,CAAE,MAAO,YACtBC,EAAa,CACjB,IAAK,EACL,MAAO,wBACT,EACMC,EAA8CC,EAAAA,mBAAA,MAAO,CAAE,MAAO,0JAA4J,CAC7LA,EAAAA,mBAAA,IAAK,CAAE,MAAO,wDAAyD,CAC1G,EAAG,EAAE,EACCC,EAAa,CAAE,MAAO,mBACtBC,EAAa,CAAE,MAAO,gDACtBC,EAAa,CAAE,MAAO,0CACtBC,uBAA8C,IAAK,CAAE,MAAO,oDAAsD,KAAM,EAAE,EAC1HC,EAAa,CAAE,MAAO,0CACtBC,uBAA8C,IAAK,CAAE,MAAO,6CAA+C,KAAM,EAAE,EACnHC,EAAc,CAAE,MAAO,0CACvBC,EAAc,CAAE,MAAO,yFACvBC,EAA+CT,EAAAA,mBAAA,MAAO,CAAE,MAAO,qCAAuC,CACzEA,EAAAA,mBAAA,IAAK,CAAE,MAAO,wDAAyD,CAC1G,EAAG,EAAE,EACCU,EAAc,CAAC,WAAW,EAuBJC,EAAiBC,kBAAA,CAC3C,OAAQ,YACR,MAAO,CACL,SAAU,KACV,IAAK,KACL,OAAQ,KACR,YAAa,KACb,QAAS,CAAE,KAAM,OAAQ,EACzB,aAAc,CAAE,QAAS,EAAG,CAC9B,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAOR,CAAE,EAAAE,GAAMC,EAAAA,UACR,CAAE,WAAAC,GAAeC,EAAAA,UACjBC,EAAYC,EAAA,SAAS,IAAMN,EAAM,QAAQ,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CAChE,EACDxB,EAAA,mBAAoB,MAAOO,EAAa,CACtCP,EAAAA,mBAAoB,IAAK,CACvB,MAAOsC,iBAAgB,CAAC,2BAA4BH,QAAOb,CAAM,EAAE,IAAI,CAAC,CAAA,EACvE,KAAM,CAAC,EACVW,EAAA,gBAAiB,IAAMC,kBAAiBC,EAAAA,MAAOb,CAAM,EAAE,IAAI,EAAG,CAAC,CAAA,CAChE,CAAA,CACF,CAAA,CACF,GACLtB,EAAA,mBAAoB,MAAOQ,EAAa,CACtCC,EACAT,EAAAA,mBAAoB,MAAO,CACzB,UAAWmC,EAAA,MAAOpB,CAAC,EAAE,kDAAkD,CAAA,EACtE,KAAM,EAAGL,CAAW,CAAA,CACxB,EACAI,EAAM,cACFc,EAAAA,YAAcQ,EAAAA,YAAaG,EAAW,CACrC,IAAK,EACL,MAAO,gBACP,IAAKzB,EAAM,aACX,MAAOY,EAAK,GAAG,6CAA6C,EAC5D,SAAUA,EAAK,GAAG,kDAAkD,CAAA,EACnE,KAAM,EAAG,CAAC,MAAO,QAAS,UAAU,CAAC,GACxCc,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,CAAA,CACF,EAEH,CAEA,CAAC"}
1
+ {"version":3,"file":"pat-shared-components21.js","sources":["../src/components/TestResult/Mobile/MyProfile.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-px-4\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"psc-mb-[20px] psc-flex\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-mr-[16px] psc-h-[60px] psc-w-[60px] psc-min-w-[60px] psc-overflow-hidden psc-rounded-full psc-border-[1px] psc-border-solid psc-border-[#00000019]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-user-circle psc-text-[60px] psc-text-[#00000019]\" })\n], -1)\nconst _hoisted_4 = { class: \"psc-text-[14px]\" }\nconst _hoisted_5 = { class: \"psc-mb-[12px] psc-text-[20px] psc-font-[600]\" }\nconst _hoisted_6 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-cake psc-mr-1 psc-text-[22px] psc-font-bold\" }, null, -1)\nconst _hoisted_8 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-phone-light psc-mr-1 psc-text-[22px]\" }, null, -1)\nconst _hoisted_10 = { class: \"psc-mb-[8px] psc-flex psc-items-center\" }\nconst _hoisted_11 = { class: \"psc-mb-[35px] psc-flex psc-rounded-[8px] psc-bg-[#e6f0fe] psc-px-[16px] psc-py-[20px]\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"items-start psc-mr-[8px] psc-flex\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-info-fill psc-text-[24px] psc-text-blue-darken-1\" })\n], -1)\nconst _hoisted_13 = [\"innerHTML\"]\n\nimport { phoneNumberFormat } from '@/helpers/ComponentHelper';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport CtaButton from '@/components/Shared/CtaButton.vue';\nimport LoadingSkeleton from '@/components/Shared/LoadingSkeleton.vue';\nimport { Gender } from '@/constants/Enums';\nimport TabTitle from '../Shared/TabTitle.vue';\nimport { useDate } from 'pat-design-system';\n\n/**\n * Props\n */\nexport interface Props {\n fullName: string;\n dob: string;\n gender: Gender;\n phoneNumber: string;\n loading: boolean;\n ctaButtonUrl?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MyProfile',\n props: {\n fullName: null,\n dob: null,\n gender: null,\n phoneNumber: null,\n loading: { type: Boolean },\n ctaButtonUrl: { default: '' }\n },\n setup(__props: any) {\n\nconst props = __props as { fullName: string, dob: string, gender: Gender, phoneNumber: string, loading: boolean, ctaButtonUrl: string };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { formatDate } = useDate();\nconst firstName = computed(() => props.fullName);\nconst dob = computed(() => formatDate(new Date(props.dob)));\nconst gender = computed(() => {\n if (!props.gender) {\n return {\n icon: '',\n text: '',\n };\n }\n\n const result: Record<Gender, any> = {\n [Gender.Male]: {\n icon: `dgic-gender-male`,\n text: t(`psc.male`),\n },\n [Gender.Female]: {\n icon: `dgic-gender-female`,\n text: t(`psc.female`),\n },\n };\n\n return result[props.gender as Gender];\n});\nconst phoneNumber = computed(() =>\n props.phoneNumber ? phoneNumberFormat(props.phoneNumber) : ''\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(TabTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(t)('psc.test_result_my_profile')), 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_1, [\n (props.loading)\n ? (_openBlock(), _createBlock(LoadingSkeleton, {\n key: 0,\n class: \"psc-mb-[20px] psc-pb-16\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_unref(firstName)), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createTextVNode(\" \" + _toDisplayString(_unref(dob)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createTextVNode(\" \" + _toDisplayString(_unref(phoneNumber)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"psc-mr-1 psc-text-[22px]\", _unref(gender).icon])\n }, null, 2),\n _createTextVNode(\" \" + _toDisplayString(_unref(gender).text), 1)\n ])\n ])\n ])),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"div\", {\n innerHTML: _unref(t)('psc.test_result_if_you_wish_to_edit_your_profile')\n }, null, 8, _hoisted_13)\n ]),\n (props.ctaButtonUrl)\n ? (_openBlock(), _createBlock(CtaButton, {\n key: 2,\n class: \"psc-mt-[20px]\",\n url: props.ctaButtonUrl,\n title: _ctx.$t('psc.test_result_test_more_for_better_health'),\n subtitle: _ctx.$t('psc.test_result_book_general_screening_panel_now')\n }, null, 8, [\"url\", \"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_sfc_main","_defineComponent","__props","props","t","useI18n","formatDate","useDate","firstName","computed","dob","gender","Gender","phoneNumber","phoneNumberFormat","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","TabTitle","_withCtx","_createTextVNode","_toDisplayString","_unref","_createBlock","LoadingSkeleton","_normalizeClass","CtaButton","_createCommentVNode"],"mappings":"0UAGMA,EAAa,CAAE,MAAO,YACtBC,EAAa,CACjB,IAAK,EACL,MAAO,wBACT,EACMC,EAA8CC,EAAAA,mBAAA,MAAO,CAAE,MAAO,0JAA4J,CAC7LA,EAAAA,mBAAA,IAAK,CAAE,MAAO,wDAAyD,CAC1G,EAAG,EAAE,EACCC,EAAa,CAAE,MAAO,mBACtBC,EAAa,CAAE,MAAO,gDACtBC,EAAa,CAAE,MAAO,0CACtBC,uBAA8C,IAAK,CAAE,MAAO,oDAAsD,KAAM,EAAE,EAC1HC,EAAa,CAAE,MAAO,0CACtBC,uBAA8C,IAAK,CAAE,MAAO,6CAA+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CACjC,CAAA,CACF,EAEH,CAEA,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as h, computed as p, openBlock as l, createElementBlock as d, createVNode as g, withCtx as v, createTextVNode as n, toDisplayString as c, unref as s, createElementVNode as e, createBlock as a, normalizeClass as N, createCommentVNode as k } from "vue";
2
- import { phoneNumberFormat as y } from "./pat-shared-components98.mjs";
3
- import { useI18n as B } from "./pat-shared-components60.mjs";
2
+ import { phoneNumberFormat as y } from "./pat-shared-components102.mjs";
3
+ import { useI18n as B } from "./pat-shared-components78.mjs";
4
4
  import w from "./pat-shared-components31.mjs";
5
5
  import C from "./pat-shared-components30.mjs";
6
6
  import { Gender as m } from "./pat-shared-components4.mjs";
7
- import D from "./pat-shared-components62.mjs";
8
- import { useDate as T } from "./pat-shared-components82.mjs";
7
+ import D from "./pat-shared-components88.mjs";
8
+ import { useDate as T } from "./pat-shared-components90.mjs";
9
9
  const M = { class: "psc-px-4" }, V = {
10
10
  key: 1,
11
11
  class: "psc-mb-[20px] psc-flex"
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("vue"),i=require("./pat-shared-components60.js"),_=require("./pat-shared-components250.js"),h=["href"],o=t.defineComponent({__name:"WebsiteHeaderMainNav",props:{baseUrl:null},setup(a){const r=a,{t:e}=i.useI18n(),l=t.computed(()=>[{label:e("psc.website_header.text.about_us"),child:[{label:e("psc.website_header.text.about_diag"),href:e("psc.website_header.route.about_diag")},{label:e("psc.website_header.text.careers"),href:e("psc.website_header.route.careers")}]},{label:e("psc.website_header.text.home_collection"),href:e("psc.website_header.route.home_collection")},{label:e("psc.website_header.text.test_packages"),child:[{label:e("psc.website_header.text.all_test_packages"),href:e("psc.website_header.route.all_test_packages")},{label:e("psc.website_header.text.general_wellness"),href:e("psc.website_header.route.general_wellness")},{label:e("psc.website_header.text.cancer_screening"),href:e("psc.website_header.route.cancer_screening")},{label:e("psc.website_header.text.sexual_health"),href:e("psc.website_header.route.sexual_health")},{label:e("psc.website_header.text.preproductive_health"),href:e("psc.website_header.route.preproductive_health")},{label:e("psc.website_header.text.liver_function"),href:e("psc.website_header.route.liver_function")}]},{label:e("psc.website_header.text.invidual_tests"),child:[{label:e("psc.website_header.text.all_individual_tests"),href:e("psc.website_header.route.all_individual_tests")},{label:e("psc.website_header.text.digestive_system_liver"),href:e("psc.website_header.route.digestive_system_liver")},{label:e("psc.website_header.text.pregnancy"),href:e("psc.website_header.route.pregnancy")},{label:e("psc.website_header.text.infectious_diseases_stds"),href:e("psc.website_header.route.infectious_diseases_stds")},{label:e("psc.website_header.text.allergies"),href:e("psc.website_header.route.allergies")},{label:e("psc.website_header.text.diabetes"),href:e("psc.website_header.route.diabetes")}]},{label:e("psc.website_header.text.covid"),href:e("psc.website_header.route.about_covid_testing")},{label:e("psc.website_header.text.std"),href:e("psc.website_header.route.std"),isRoot:!0},{label:e("psc.website_header.text.health_kits"),child:[{label:e("psc.website_header.text.std_sample_self_collection_kit"),href:e("psc.website_header.route.std_sample_self_collection_kit")},{label:e("psc.website_header.text.hpv_sample_self_collection_kit"),href:e("psc.website_header.route.hpv_sample_self_collection_kit")}]},{label:e("psc.website_header.text.partnership"),child:[{label:e("psc.website_header.text.healthcare_professionals"),href:e("psc.website_header.route.health_care_services")},{label:e("psc.website_header.text.corporates"),href:e("psc.website_header.route.corporates")},{label:e("psc.website_header.text.life_insurance"),href:e("psc.website_header.route.life_insurance")}]},{label:e("psc.website_header.text.shop_now"),href:e("psc.website_header.route.shop_now")}]);return(p,b)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l),(s,c)=>(t.openBlock(),t.createElementBlock("div",{key:`${c}`},[s.child?(t.openBlock(),t.createBlock(_,{key:1,options:s.child,"main-label":s.label,class:"xl:psc-ml-4 xl:psc-h-auto","base-url":r.baseUrl},null,8,["options","main-label","base-url"])):(t.openBlock(),t.createElementBlock("a",{key:0,class:"link psc-group psc-relative psc-flex psc-h-14 xl:psc-ml-4 xl:psc-h-auto",href:s.isRoot?s.href:`${r.baseUrl}${s.href}`},t.toDisplayString(s.label),9,h))]))),128))}});module.exports=o;
1
+ "use strict";const t=require("vue"),i=require("./pat-shared-components78.js"),h=require("./pat-shared-components250.js"),_=["href"],o=t.defineComponent({__name:"WebsiteHeaderMainNav",props:{baseUrl:null},setup(a){const r=a,{t:e}=i.useI18n(),l=t.computed(()=>[{label:e("psc.website_header.text.about_us"),child:[{label:e("psc.website_header.text.about_diag"),href:e("psc.website_header.route.about_diag")},{label:e("psc.website_header.text.careers"),href:e("psc.website_header.route.careers")}]},{label:e("psc.website_header.text.home_collection"),href:e("psc.website_header.route.home_collection")},{label:e("psc.website_header.text.test_packages"),child:[{label:e("psc.website_header.text.all_test_packages"),href:e("psc.website_header.route.all_test_packages")},{label:e("psc.website_header.text.general_wellness"),href:e("psc.website_header.route.general_wellness")},{label:e("psc.website_header.text.cancer_screening"),href:e("psc.website_header.route.cancer_screening")},{label:e("psc.website_header.text.sexual_health"),href:e("psc.website_header.route.sexual_health")},{label:e("psc.website_header.text.preproductive_health"),href:e("psc.website_header.route.preproductive_health")},{label:e("psc.website_header.text.liver_function"),href:e("psc.website_header.route.liver_function")}]},{label:e("psc.website_header.text.invidual_tests"),child:[{label:e("psc.website_header.text.all_individual_tests"),href:e("psc.website_header.route.all_individual_tests")},{label:e("psc.website_header.text.digestive_system_liver"),href:e("psc.website_header.route.digestive_system_liver")},{label:e("psc.website_header.text.pregnancy"),href:e("psc.website_header.route.pregnancy")},{label:e("psc.website_header.text.infectious_diseases_stds"),href:e("psc.website_header.route.infectious_diseases_stds")},{label:e("psc.website_header.text.allergies"),href:e("psc.website_header.route.allergies")},{label:e("psc.website_header.text.diabetes"),href:e("psc.website_header.route.diabetes")}]},{label:e("psc.website_header.text.covid"),href:e("psc.website_header.route.about_covid_testing")},{label:e("psc.website_header.text.std"),href:e("psc.website_header.route.std"),isRoot:!0},{label:e("psc.website_header.text.partnership"),child:[{label:e("psc.website_header.text.healthcare_professionals"),href:e("psc.website_header.route.health_care_services")},{label:e("psc.website_header.text.corporates"),href:e("psc.website_header.route.corporates")},{label:e("psc.website_header.text.life_insurance"),href:e("psc.website_header.route.life_insurance")}]},{label:e("psc.website_header.text.shop_now"),href:e("psc.website_header.route.shop_now")}]);return(b,p)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l),(s,c)=>(t.openBlock(),t.createElementBlock("div",{key:`${c}`},[s.child?(t.openBlock(),t.createBlock(h,{key:1,options:s.child,"main-label":s.label,class:"xl:psc-ml-4 xl:psc-h-auto","base-url":r.baseUrl},null,8,["options","main-label","base-url"])):(t.openBlock(),t.createElementBlock("a",{key:0,class:"link psc-group psc-relative psc-flex psc-h-14 xl:psc-ml-4 xl:psc-h-auto",href:s.isRoot?s.href:`${r.baseUrl}${s.href}`},t.toDisplayString(s.label),9,_))]))),128))}});module.exports=o;
2
2
  //# sourceMappingURL=pat-shared-components228.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components228.js","sources":["../src/components/WebsiteHeader/WebsiteHeaderMainNav.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-d1b89c01\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"href\"]\n\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport WebsiteHeaderDropdownMenu from './WebsiteHeaderDropdownMenu.vue';\n\nexport interface WebsiteHeaderMainNavProps {\n baseUrl: string;\n}\n\ninterface Menu {\n label: string;\n href?: string;\n child?: Omit<Menu, 'child'>[];\n isRoot?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'WebsiteHeaderMainNav',\n props: {\n baseUrl: null\n },\n setup(__props: any) {\n\nconst props = __props as { baseUrl: string };\n\n\n\nconst { t } = useI18n();\n\nconst menus = computed<Menu[]>(() => [\n {\n label: t('psc.website_header.text.about_us'),\n child: [\n {\n label: t('psc.website_header.text.about_diag'),\n href: t('psc.website_header.route.about_diag'),\n },\n {\n label: t('psc.website_header.text.careers'),\n href: t('psc.website_header.route.careers'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.home_collection'),\n href: t('psc.website_header.route.home_collection'),\n },\n {\n label: t('psc.website_header.text.test_packages'),\n child: [\n {\n label: t('psc.website_header.text.all_test_packages'),\n href: t('psc.website_header.route.all_test_packages'),\n },\n {\n label: t('psc.website_header.text.general_wellness'),\n href: t('psc.website_header.route.general_wellness'),\n },\n {\n label: t('psc.website_header.text.cancer_screening'),\n href: t('psc.website_header.route.cancer_screening'),\n },\n {\n label: t('psc.website_header.text.sexual_health'),\n href: t('psc.website_header.route.sexual_health'),\n },\n {\n label: t('psc.website_header.text.preproductive_health'),\n href: t('psc.website_header.route.preproductive_health'),\n },\n {\n label: t('psc.website_header.text.liver_function'),\n href: t('psc.website_header.route.liver_function'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.invidual_tests'),\n child: [\n {\n label: t('psc.website_header.text.all_individual_tests'),\n href: t('psc.website_header.route.all_individual_tests'),\n },\n {\n label: t('psc.website_header.text.digestive_system_liver'),\n href: t('psc.website_header.route.digestive_system_liver'),\n },\n {\n label: t('psc.website_header.text.pregnancy'),\n href: t('psc.website_header.route.pregnancy'),\n },\n {\n label: t('psc.website_header.text.infectious_diseases_stds'),\n href: t('psc.website_header.route.infectious_diseases_stds'),\n },\n {\n label: t('psc.website_header.text.allergies'),\n href: t('psc.website_header.route.allergies'),\n },\n {\n label: t('psc.website_header.text.diabetes'),\n href: t('psc.website_header.route.diabetes'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.covid'),\n href: t('psc.website_header.route.about_covid_testing'),\n },\n {\n label: t('psc.website_header.text.std'),\n href: t('psc.website_header.route.std'),\n isRoot: true,\n },\n {\n label: t('psc.website_header.text.health_kits'),\n child: [\n {\n label: t('psc.website_header.text.std_sample_self_collection_kit'),\n href: t('psc.website_header.route.std_sample_self_collection_kit'),\n },\n {\n label: t('psc.website_header.text.hpv_sample_self_collection_kit'),\n href: t('psc.website_header.route.hpv_sample_self_collection_kit'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.partnership'),\n child: [\n {\n label: t('psc.website_header.text.healthcare_professionals'),\n href: t('psc.website_header.route.health_care_services'),\n },\n {\n label: t('psc.website_header.text.corporates'),\n href: t('psc.website_header.route.corporates'),\n },\n {\n label: t('psc.website_header.text.life_insurance'),\n href: t('psc.website_header.route.life_insurance'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.shop_now'),\n href: t('psc.website_header.route.shop_now'),\n },\n]);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(menus), (item, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `${i}`\n }, [\n (!item.child)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n class: \"link psc-group psc-relative psc-flex psc-h-14 xl:psc-ml-4 xl:psc-h-auto\",\n href: item.isRoot ? item.href : `${props.baseUrl}${item.href}`\n }, _toDisplayString(item.label), 9, _hoisted_1))\n : (_openBlock(), _createBlock(WebsiteHeaderDropdownMenu, {\n key: 1,\n options: item.child,\n \"main-label\": item.label,\n class: \"xl:psc-ml-4 xl:psc-h-auto\",\n \"base-url\": props.baseUrl\n }, null, 8, [\"options\", \"main-label\", \"base-url\"]))\n ]))\n }), 128))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","t","useI18n","menus","computed","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","item","i","_createBlock","WebsiteHeaderDropdownMenu","_toDisplayString"],"mappings":"yHAIMA,EAAa,CAAC,MAAM,EAkBEC,EAAiBC,kBAA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ASA,EAAK,KAAO,GAAGZ,EAAM,UAAUY,EAAK,MAAA,EACvDI,EAAiB,gBAAAJ,EAAK,KAAK,EAAG,EAAGhB,CAAU,EAOG,CACtD,EACF,EAAG,GAAG,EAET,CAEA,CAAC"}
1
+ {"version":3,"file":"pat-shared-components228.js","sources":["../src/components/WebsiteHeader/WebsiteHeaderMainNav.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5c7faee9\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"href\"]\n\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport WebsiteHeaderDropdownMenu from './WebsiteHeaderDropdownMenu.vue';\n\nexport interface WebsiteHeaderMainNavProps {\n baseUrl: string;\n}\n\ninterface Menu {\n label: string;\n href?: string;\n child?: Omit<Menu, 'child'>[];\n isRoot?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'WebsiteHeaderMainNav',\n props: {\n baseUrl: null\n },\n setup(__props: any) {\n\nconst props = __props as { baseUrl: string };\n\n\n\nconst { t } = useI18n();\n\nconst menus = computed<Menu[]>(() => [\n {\n label: t('psc.website_header.text.about_us'),\n child: [\n {\n label: t('psc.website_header.text.about_diag'),\n href: t('psc.website_header.route.about_diag'),\n },\n {\n label: t('psc.website_header.text.careers'),\n href: t('psc.website_header.route.careers'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.home_collection'),\n href: t('psc.website_header.route.home_collection'),\n },\n {\n label: t('psc.website_header.text.test_packages'),\n child: [\n {\n label: t('psc.website_header.text.all_test_packages'),\n href: t('psc.website_header.route.all_test_packages'),\n },\n {\n label: t('psc.website_header.text.general_wellness'),\n href: t('psc.website_header.route.general_wellness'),\n },\n {\n label: t('psc.website_header.text.cancer_screening'),\n href: t('psc.website_header.route.cancer_screening'),\n },\n {\n label: t('psc.website_header.text.sexual_health'),\n href: t('psc.website_header.route.sexual_health'),\n },\n {\n label: t('psc.website_header.text.preproductive_health'),\n href: t('psc.website_header.route.preproductive_health'),\n },\n {\n label: t('psc.website_header.text.liver_function'),\n href: t('psc.website_header.route.liver_function'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.invidual_tests'),\n child: [\n {\n label: t('psc.website_header.text.all_individual_tests'),\n href: t('psc.website_header.route.all_individual_tests'),\n },\n {\n label: t('psc.website_header.text.digestive_system_liver'),\n href: t('psc.website_header.route.digestive_system_liver'),\n },\n {\n label: t('psc.website_header.text.pregnancy'),\n href: t('psc.website_header.route.pregnancy'),\n },\n {\n label: t('psc.website_header.text.infectious_diseases_stds'),\n href: t('psc.website_header.route.infectious_diseases_stds'),\n },\n {\n label: t('psc.website_header.text.allergies'),\n href: t('psc.website_header.route.allergies'),\n },\n {\n label: t('psc.website_header.text.diabetes'),\n href: t('psc.website_header.route.diabetes'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.covid'),\n href: t('psc.website_header.route.about_covid_testing'),\n },\n {\n label: t('psc.website_header.text.std'),\n href: t('psc.website_header.route.std'),\n isRoot: true,\n },\n // {\n // label: t('psc.website_header.text.health_kits'),\n // child: [\n // {\n // label: t('psc.website_header.text.std_sample_self_collection_kit'),\n // href: t('psc.website_header.route.std_sample_self_collection_kit'),\n // },\n // {\n // label: t('psc.website_header.text.hpv_sample_self_collection_kit'),\n // href: t('psc.website_header.route.hpv_sample_self_collection_kit'),\n // },\n // ],\n // },\n {\n label: t('psc.website_header.text.partnership'),\n child: [\n {\n label: t('psc.website_header.text.healthcare_professionals'),\n href: t('psc.website_header.route.health_care_services'),\n },\n {\n label: t('psc.website_header.text.corporates'),\n href: t('psc.website_header.route.corporates'),\n },\n {\n label: t('psc.website_header.text.life_insurance'),\n href: t('psc.website_header.route.life_insurance'),\n },\n ],\n },\n {\n label: t('psc.website_header.text.shop_now'),\n href: t('psc.website_header.route.shop_now'),\n },\n]);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(menus), (item, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `${i}`\n }, [\n (!item.child)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n class: \"link psc-group psc-relative psc-flex psc-h-14 xl:psc-ml-4 xl:psc-h-auto\",\n href: item.isRoot ? item.href : `${props.baseUrl}${item.href}`\n }, _toDisplayString(item.label), 9, _hoisted_1))\n : (_openBlock(), _createBlock(WebsiteHeaderDropdownMenu, {\n key: 1,\n options: item.child,\n \"main-label\": item.label,\n class: \"xl:psc-ml-4 xl:psc-h-auto\",\n \"base-url\": props.baseUrl\n }, null, 8, [\"options\", \"main-label\", \"base-url\"]))\n ]))\n }), 128))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","t","useI18n","menus","computed","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","item","i","_createBlock","WebsiteHeaderDropdownMenu","_toDisplayString"],"mappings":"yHAIMA,EAAa,CAAC,MAAM,EAkBEC,EAAiBC,kBAAA,CAC3C,OAAQ,uBACR,MAAO,CACL,QAAS,IACX,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAIR,CAAE,EAAAE,GAAMC,EAAAA,UAERC,EAAQC,EAAAA,SAAiB,IAAM,CACnC,CACE,MAAOH,EAAE,kCAAkC,EAC3C,MAAO,CACL,CACE,MAAOA,EAAE,oCAAoC,EAC7C,KAAMA,EAAE,qCAAqC,CAC/C,EACA,CACE,MAAOA,EAAE,iCAAiC,EAC1C,KAAMA,EAAE,kCAAkC,CAC5C,CACF,CACF,EACA,CACE,MAAOA,EAAE,yCAAyC,EAClD,KAAMA,EAAE,0CAA0C,CACpD,EACA,C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E,wCAAwC,EACjD,KAAMA,EAAE,yCAAyC,CACnD,CACF,CACF,EACA,CACE,MAAOA,EAAE,kCAAkC,EAC3C,KAAMA,EAAE,mCAAmC,CAC7C,CAAA,CACD,EAEM,MAAA,CAACI,EAAUC,KACRC,YAAW,EAAI,EAAGC,EAAAA,mBAAoBC,EAAAA,SAAW,KAAMC,EAAY,WAAAC,EAAA,MAAOR,CAAK,EAAG,CAACS,EAAMC,KACvFN,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,IAAK,GAAGK,GAAA,EACP,CACCD,EAAK,OAMFL,EAAA,UAAA,EAAcO,EAAA,YAAaC,EAA2B,CACrD,IAAK,EACL,QAASH,EAAK,MACd,aAAcA,EAAK,MACnB,MAAO,4BACP,WAAYZ,EAAM,OAAA,EACjB,KAAM,EAAG,CAAC,UAAW,aAAc,UAAU,CAAC,IAXhDO,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,IAAK,CACtC,IAAK,EACL,MAAO,0EACP,KAAMI,EAAK,OAASA,EAAK,KAAO,GAAGZ,EAAM,UAAUY,EAAK,MAAA,EACvDI,EAAiB,gBAAAJ,EAAK,KAAK,EAAG,EAAGhB,CAAU,EAOG,CACtD,EACF,EAAG,GAAG,EAET,CAEA,CAAC"}
@@ -1,13 +1,13 @@
1
- import { defineComponent as _, computed as h, openBlock as s, createElementBlock as r, Fragment as p, renderList as b, unref as o, toDisplayString as d, createBlock as n } from "vue";
2
- import { useI18n as u } from "./pat-shared-components60.mjs";
1
+ import { defineComponent as h, computed as _, openBlock as s, createElementBlock as r, Fragment as b, renderList as p, unref as o, toDisplayString as d, createBlock as n } from "vue";
2
+ import { useI18n as u } from "./pat-shared-components78.mjs";
3
3
  import w from "./pat-shared-components250.mjs";
4
- const f = ["href"], y = /* @__PURE__ */ _({
4
+ const f = ["href"], y = /* @__PURE__ */ h({
5
5
  __name: "WebsiteHeaderMainNav",
6
6
  props: {
7
7
  baseUrl: null
8
8
  },
9
9
  setup(l) {
10
- const a = l, { t: e } = u(), i = h(() => [
10
+ const a = l, { t: e } = u(), i = _(() => [
11
11
  {
12
12
  label: e("psc.website_header.text.about_us"),
13
13
  child: [
@@ -92,19 +92,19 @@ const f = ["href"], y = /* @__PURE__ */ _({
92
92
  href: e("psc.website_header.route.std"),
93
93
  isRoot: !0
94
94
  },
95
- {
96
- label: e("psc.website_header.text.health_kits"),
97
- child: [
98
- {
99
- label: e("psc.website_header.text.std_sample_self_collection_kit"),
100
- href: e("psc.website_header.route.std_sample_self_collection_kit")
101
- },
102
- {
103
- label: e("psc.website_header.text.hpv_sample_self_collection_kit"),
104
- href: e("psc.website_header.route.hpv_sample_self_collection_kit")
105
- }
106
- ]
107
- },
95
+ // {
96
+ // label: t('psc.website_header.text.health_kits'),
97
+ // child: [
98
+ // {
99
+ // label: t('psc.website_header.text.std_sample_self_collection_kit'),
100
+ // href: t('psc.website_header.route.std_sample_self_collection_kit'),
101
+ // },
102
+ // {
103
+ // label: t('psc.website_header.text.hpv_sample_self_collection_kit'),
104
+ // href: t('psc.website_header.route.hpv_sample_self_collection_kit'),
105
+ // },
106
+ // ],
107
+ // },
108
108
  {
109
109
  label: e("psc.website_header.text.partnership"),
110
110
  child: [
@@ -127,7 +127,7 @@ const f = ["href"], y = /* @__PURE__ */ _({
127
127
  href: e("psc.website_header.route.shop_now")
128
128
  }
129
129
  ]);
130
- return (x, g) => (s(!0), r(p, null, b(o(i), (t, c) => (s(), r("div", {
130
+ return (x, g) => (s(!0), r(b, null, p(o(i), (t, c) => (s(), r("div", {
131
131
  key: `${c}`
132
132
  }, [
133
133
  t.child ? (s(), n(w, {