pat-shared-components 1.3.0-beta.21 → 1.3.0-beta.23

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 (412) hide show
  1. package/dist/pat-shared-components103.js +1 -1
  2. package/dist/pat-shared-components103.mjs +1 -1
  3. package/dist/pat-shared-components104.js +1 -1
  4. package/dist/pat-shared-components104.mjs +4 -4
  5. package/dist/pat-shared-components105.js +1 -1
  6. package/dist/pat-shared-components105.mjs +10 -10
  7. package/dist/pat-shared-components106.js +1 -1
  8. package/dist/pat-shared-components106.mjs +2 -2
  9. package/dist/pat-shared-components107.js +1 -1
  10. package/dist/pat-shared-components107.mjs +2 -2
  11. package/dist/pat-shared-components108.js +1 -1
  12. package/dist/pat-shared-components108.mjs +2 -2
  13. package/dist/pat-shared-components11.js +1 -1
  14. package/dist/pat-shared-components11.mjs +1 -1
  15. package/dist/pat-shared-components113.js +1 -1
  16. package/dist/pat-shared-components113.mjs +1 -1
  17. package/dist/pat-shared-components114.js +1 -1
  18. package/dist/pat-shared-components114.mjs +1 -1
  19. package/dist/pat-shared-components115.js +1 -1
  20. package/dist/pat-shared-components115.mjs +1 -1
  21. package/dist/pat-shared-components116.js +1 -1
  22. package/dist/pat-shared-components116.mjs +1 -1
  23. package/dist/pat-shared-components117.js +1 -1
  24. package/dist/pat-shared-components117.mjs +1 -1
  25. package/dist/pat-shared-components118.js +1 -1
  26. package/dist/pat-shared-components118.mjs +1 -1
  27. package/dist/pat-shared-components119.js +1 -1
  28. package/dist/pat-shared-components119.mjs +1 -1
  29. package/dist/pat-shared-components12.js +1 -1
  30. package/dist/pat-shared-components12.mjs +1 -1
  31. package/dist/pat-shared-components120.js +1 -1
  32. package/dist/pat-shared-components120.mjs +1 -1
  33. package/dist/pat-shared-components123.js +1 -1
  34. package/dist/pat-shared-components123.mjs +1 -1
  35. package/dist/pat-shared-components124.js +1 -1
  36. package/dist/pat-shared-components124.mjs +1 -1
  37. package/dist/pat-shared-components125.js +1 -1
  38. package/dist/pat-shared-components125.mjs +1 -1
  39. package/dist/pat-shared-components126.js +1 -1
  40. package/dist/pat-shared-components126.mjs +1 -1
  41. package/dist/pat-shared-components127.js +1 -1
  42. package/dist/pat-shared-components127.mjs +1 -1
  43. package/dist/pat-shared-components128.js +1 -1
  44. package/dist/pat-shared-components128.mjs +1 -1
  45. package/dist/pat-shared-components129.js +1 -1
  46. package/dist/pat-shared-components129.mjs +1 -1
  47. package/dist/pat-shared-components130.js +1 -1
  48. package/dist/pat-shared-components130.mjs +1 -1
  49. package/dist/pat-shared-components131.js +1 -1
  50. package/dist/pat-shared-components131.mjs +1 -1
  51. package/dist/pat-shared-components132.js +1 -1
  52. package/dist/pat-shared-components132.mjs +1 -1
  53. package/dist/pat-shared-components133.js +1 -1
  54. package/dist/pat-shared-components133.mjs +1 -1
  55. package/dist/pat-shared-components134.js +1 -1
  56. package/dist/pat-shared-components134.mjs +1 -1
  57. package/dist/pat-shared-components135.js +1 -1
  58. package/dist/pat-shared-components135.mjs +1 -1
  59. package/dist/pat-shared-components136.js +1 -1
  60. package/dist/pat-shared-components136.js.map +1 -1
  61. package/dist/pat-shared-components136.mjs +2 -25
  62. package/dist/pat-shared-components136.mjs.map +1 -1
  63. package/dist/pat-shared-components137.js +1 -1
  64. package/dist/pat-shared-components137.mjs +1 -1
  65. package/dist/pat-shared-components138.js +1 -1
  66. package/dist/pat-shared-components138.js.map +1 -1
  67. package/dist/pat-shared-components138.mjs +77 -2
  68. package/dist/pat-shared-components138.mjs.map +1 -1
  69. package/dist/pat-shared-components139.js +1 -1
  70. package/dist/pat-shared-components139.js.map +1 -1
  71. package/dist/pat-shared-components139.mjs +2 -77
  72. package/dist/pat-shared-components139.mjs.map +1 -1
  73. package/dist/pat-shared-components14.js +1 -1
  74. package/dist/pat-shared-components14.mjs +6 -6
  75. package/dist/pat-shared-components140.js +1 -1
  76. package/dist/pat-shared-components140.js.map +1 -1
  77. package/dist/pat-shared-components140.mjs +56 -2
  78. package/dist/pat-shared-components140.mjs.map +1 -1
  79. package/dist/pat-shared-components141.js +1 -1
  80. package/dist/pat-shared-components141.js.map +1 -1
  81. package/dist/pat-shared-components141.mjs +2 -56
  82. package/dist/pat-shared-components141.mjs.map +1 -1
  83. package/dist/pat-shared-components142.js +1 -1
  84. package/dist/pat-shared-components142.js.map +1 -1
  85. package/dist/pat-shared-components142.mjs +71 -2
  86. package/dist/pat-shared-components142.mjs.map +1 -1
  87. package/dist/pat-shared-components143.js +1 -1
  88. package/dist/pat-shared-components143.js.map +1 -1
  89. package/dist/pat-shared-components143.mjs +2 -71
  90. package/dist/pat-shared-components143.mjs.map +1 -1
  91. package/dist/pat-shared-components144.js +1 -1
  92. package/dist/pat-shared-components144.mjs +2 -2
  93. package/dist/pat-shared-components145.js +1 -1
  94. package/dist/pat-shared-components145.js.map +1 -1
  95. package/dist/pat-shared-components145.mjs +25 -2
  96. package/dist/pat-shared-components145.mjs.map +1 -1
  97. package/dist/pat-shared-components146.js +1 -1
  98. package/dist/pat-shared-components146.mjs +1 -1
  99. package/dist/pat-shared-components147.js +1 -1
  100. package/dist/pat-shared-components147.mjs +1 -1
  101. package/dist/pat-shared-components148.js +1 -1
  102. package/dist/pat-shared-components148.mjs +1 -1
  103. package/dist/pat-shared-components149.js +1 -1
  104. package/dist/pat-shared-components149.mjs +1 -1
  105. package/dist/pat-shared-components152.js +1 -1
  106. package/dist/pat-shared-components152.mjs +3 -3
  107. package/dist/pat-shared-components155.js +1 -1
  108. package/dist/pat-shared-components155.mjs +3 -3
  109. package/dist/pat-shared-components16.js +1 -1
  110. package/dist/pat-shared-components16.mjs +5 -5
  111. package/dist/pat-shared-components160.js +1 -1
  112. package/dist/pat-shared-components160.mjs +1 -1
  113. package/dist/pat-shared-components166.js +1 -1
  114. package/dist/pat-shared-components166.mjs +1 -1
  115. package/dist/pat-shared-components167.js +1 -1
  116. package/dist/pat-shared-components167.mjs +1 -1
  117. package/dist/pat-shared-components169.js +1 -1
  118. package/dist/pat-shared-components169.js.map +1 -1
  119. package/dist/pat-shared-components169.mjs +45 -37
  120. package/dist/pat-shared-components169.mjs.map +1 -1
  121. package/dist/pat-shared-components170.js +1 -1
  122. package/dist/pat-shared-components170.js.map +1 -1
  123. package/dist/pat-shared-components170.mjs +41 -10
  124. package/dist/pat-shared-components170.mjs.map +1 -1
  125. package/dist/pat-shared-components171.js +1 -1
  126. package/dist/pat-shared-components171.mjs +8 -8
  127. package/dist/pat-shared-components172.js +1 -1
  128. package/dist/pat-shared-components172.js.map +1 -1
  129. package/dist/pat-shared-components172.mjs +10 -49
  130. package/dist/pat-shared-components172.mjs.map +1 -1
  131. package/dist/pat-shared-components174.js +1 -1
  132. package/dist/pat-shared-components174.js.map +1 -1
  133. package/dist/pat-shared-components174.mjs +40 -7
  134. package/dist/pat-shared-components174.mjs.map +1 -1
  135. package/dist/pat-shared-components175.js +1 -1
  136. package/dist/pat-shared-components175.js.map +1 -1
  137. package/dist/pat-shared-components175.mjs +7 -10
  138. package/dist/pat-shared-components175.mjs.map +1 -1
  139. package/dist/pat-shared-components176.js +1 -1
  140. package/dist/pat-shared-components176.js.map +1 -1
  141. package/dist/pat-shared-components176.mjs +10 -78
  142. package/dist/pat-shared-components176.mjs.map +1 -1
  143. package/dist/pat-shared-components177.js +1 -1
  144. package/dist/pat-shared-components177.js.map +1 -1
  145. package/dist/pat-shared-components177.mjs +78 -20
  146. package/dist/pat-shared-components177.mjs.map +1 -1
  147. package/dist/pat-shared-components178.js +1 -1
  148. package/dist/pat-shared-components178.mjs +13 -12
  149. package/dist/pat-shared-components178.mjs.map +1 -1
  150. package/dist/pat-shared-components179.js +1 -1
  151. package/dist/pat-shared-components179.mjs +17 -14
  152. package/dist/pat-shared-components179.mjs.map +1 -1
  153. package/dist/pat-shared-components18.js +1 -1
  154. package/dist/pat-shared-components18.mjs +3 -3
  155. package/dist/pat-shared-components180.js +1 -1
  156. package/dist/pat-shared-components180.mjs +9 -9
  157. package/dist/pat-shared-components181.js +1 -1
  158. package/dist/pat-shared-components181.mjs +14 -32
  159. package/dist/pat-shared-components181.mjs.map +1 -1
  160. package/dist/pat-shared-components182.js +1 -1
  161. package/dist/pat-shared-components182.mjs +34 -5
  162. package/dist/pat-shared-components182.mjs.map +1 -1
  163. package/dist/pat-shared-components183.js +1 -1
  164. package/dist/pat-shared-components183.mjs +5 -18
  165. package/dist/pat-shared-components183.mjs.map +1 -1
  166. package/dist/pat-shared-components184.js +1 -1
  167. package/dist/pat-shared-components184.mjs +11 -13
  168. package/dist/pat-shared-components184.mjs.map +1 -1
  169. package/dist/pat-shared-components185.js +1 -6
  170. package/dist/pat-shared-components185.js.map +1 -1
  171. package/dist/pat-shared-components185.mjs +19 -106
  172. package/dist/pat-shared-components185.mjs.map +1 -1
  173. package/dist/pat-shared-components186.js +4 -4
  174. package/dist/pat-shared-components186.js.map +1 -1
  175. package/dist/pat-shared-components186.mjs +92 -935
  176. package/dist/pat-shared-components186.mjs.map +1 -1
  177. package/dist/pat-shared-components187.js +4 -5
  178. package/dist/pat-shared-components187.js.map +1 -1
  179. package/dist/pat-shared-components187.mjs +917 -828
  180. package/dist/pat-shared-components187.mjs.map +1 -1
  181. package/dist/pat-shared-components188.js +7 -1
  182. package/dist/pat-shared-components188.js.map +1 -1
  183. package/dist/pat-shared-components188.mjs +860 -5
  184. package/dist/pat-shared-components188.mjs.map +1 -1
  185. package/dist/pat-shared-components189.js +1 -1
  186. package/dist/pat-shared-components189.js.map +1 -1
  187. package/dist/pat-shared-components189.mjs +5 -3
  188. package/dist/pat-shared-components189.mjs.map +1 -1
  189. package/dist/pat-shared-components19.js +1 -1
  190. package/dist/pat-shared-components19.mjs +9 -9
  191. package/dist/pat-shared-components190.js +1 -1
  192. package/dist/pat-shared-components190.js.map +1 -1
  193. package/dist/pat-shared-components190.mjs +4 -2
  194. package/dist/pat-shared-components190.mjs.map +1 -1
  195. package/dist/pat-shared-components191.js +1 -1
  196. package/dist/pat-shared-components191.js.map +1 -1
  197. package/dist/pat-shared-components191.mjs +2 -37
  198. package/dist/pat-shared-components191.mjs.map +1 -1
  199. package/dist/pat-shared-components192.js +1 -1
  200. package/dist/pat-shared-components192.js.map +1 -1
  201. package/dist/pat-shared-components192.mjs +37 -13
  202. package/dist/pat-shared-components192.mjs.map +1 -1
  203. package/dist/pat-shared-components193.js +1 -1
  204. package/dist/pat-shared-components193.js.map +1 -1
  205. package/dist/pat-shared-components193.mjs +13 -27
  206. package/dist/pat-shared-components193.mjs.map +1 -1
  207. package/dist/pat-shared-components194.js +1 -1
  208. package/dist/pat-shared-components194.js.map +1 -1
  209. package/dist/pat-shared-components194.mjs +21 -52
  210. package/dist/pat-shared-components194.mjs.map +1 -1
  211. package/dist/pat-shared-components195.js +1 -1
  212. package/dist/pat-shared-components195.js.map +1 -1
  213. package/dist/pat-shared-components195.mjs +58 -40
  214. package/dist/pat-shared-components195.mjs.map +1 -1
  215. package/dist/pat-shared-components20.js +1 -1
  216. package/dist/pat-shared-components20.mjs +2 -2
  217. package/dist/pat-shared-components201.js +1 -1
  218. package/dist/pat-shared-components201.mjs +1 -1
  219. package/dist/pat-shared-components202.js +1 -1
  220. package/dist/pat-shared-components202.mjs +1 -1
  221. package/dist/pat-shared-components203.js +1 -1
  222. package/dist/pat-shared-components203.mjs +1 -1
  223. package/dist/pat-shared-components204.js +1 -1
  224. package/dist/pat-shared-components204.mjs +1 -1
  225. package/dist/pat-shared-components205.js +1 -1
  226. package/dist/pat-shared-components205.mjs +1 -1
  227. package/dist/pat-shared-components21.js +1 -1
  228. package/dist/pat-shared-components21.mjs +3 -3
  229. package/dist/pat-shared-components227.js +1 -1
  230. package/dist/pat-shared-components227.mjs +1 -1
  231. package/dist/pat-shared-components228.js +1 -1
  232. package/dist/pat-shared-components228.mjs +1 -1
  233. package/dist/pat-shared-components229.js +1 -1
  234. package/dist/pat-shared-components229.mjs +1 -1
  235. package/dist/pat-shared-components23.js +1 -1
  236. package/dist/pat-shared-components23.mjs +1 -1
  237. package/dist/pat-shared-components231.js +1 -1
  238. package/dist/pat-shared-components231.mjs +3 -3
  239. package/dist/pat-shared-components25.js +1 -1
  240. package/dist/pat-shared-components25.mjs +2 -2
  241. package/dist/pat-shared-components27.js +1 -1
  242. package/dist/pat-shared-components27.mjs +8 -8
  243. package/dist/pat-shared-components28.js +1 -1
  244. package/dist/pat-shared-components28.mjs +2 -2
  245. package/dist/pat-shared-components34.js +1 -1
  246. package/dist/pat-shared-components34.mjs +3 -3
  247. package/dist/pat-shared-components35.js +1 -1
  248. package/dist/pat-shared-components35.mjs +3 -3
  249. package/dist/pat-shared-components45.js +1 -1
  250. package/dist/pat-shared-components45.mjs +3 -3
  251. package/dist/pat-shared-components58.js +1 -1
  252. package/dist/pat-shared-components58.mjs +1 -1
  253. package/dist/pat-shared-components59.js +1 -1
  254. package/dist/pat-shared-components59.mjs +1 -1
  255. package/dist/pat-shared-components60.js +1 -1
  256. package/dist/pat-shared-components60.js.map +1 -1
  257. package/dist/pat-shared-components60.mjs +28 -57
  258. package/dist/pat-shared-components60.mjs.map +1 -1
  259. package/dist/pat-shared-components61.js +1 -1
  260. package/dist/pat-shared-components61.js.map +1 -1
  261. package/dist/pat-shared-components61.mjs +30 -11
  262. package/dist/pat-shared-components61.mjs.map +1 -1
  263. package/dist/pat-shared-components62.js +1 -1
  264. package/dist/pat-shared-components62.js.map +1 -1
  265. package/dist/pat-shared-components62.mjs +103 -33
  266. package/dist/pat-shared-components62.mjs.map +1 -1
  267. package/dist/pat-shared-components63.js +1 -1
  268. package/dist/pat-shared-components63.js.map +1 -1
  269. package/dist/pat-shared-components63.mjs +52 -42
  270. package/dist/pat-shared-components63.mjs.map +1 -1
  271. package/dist/pat-shared-components64.js +1 -1
  272. package/dist/pat-shared-components64.js.map +1 -1
  273. package/dist/pat-shared-components64.mjs +10 -16
  274. package/dist/pat-shared-components64.mjs.map +1 -1
  275. package/dist/pat-shared-components65.js +1 -1
  276. package/dist/pat-shared-components65.js.map +1 -1
  277. package/dist/pat-shared-components65.mjs +29 -42
  278. package/dist/pat-shared-components65.mjs.map +1 -1
  279. package/dist/pat-shared-components66.js +1 -1
  280. package/dist/pat-shared-components66.js.map +1 -1
  281. package/dist/pat-shared-components66.mjs +49 -53
  282. package/dist/pat-shared-components66.mjs.map +1 -1
  283. package/dist/pat-shared-components67.js +1 -1
  284. package/dist/pat-shared-components67.js.map +1 -1
  285. package/dist/pat-shared-components67.mjs +16 -27
  286. package/dist/pat-shared-components67.mjs.map +1 -1
  287. package/dist/pat-shared-components68.js +1 -1
  288. package/dist/pat-shared-components68.js.map +1 -1
  289. package/dist/pat-shared-components68.mjs +46 -5
  290. package/dist/pat-shared-components68.mjs.map +1 -1
  291. package/dist/pat-shared-components69.js +1 -1
  292. package/dist/pat-shared-components69.js.map +1 -1
  293. package/dist/pat-shared-components69.mjs +57 -28
  294. package/dist/pat-shared-components69.mjs.map +1 -1
  295. package/dist/pat-shared-components70.js +1 -1
  296. package/dist/pat-shared-components70.js.map +1 -1
  297. package/dist/pat-shared-components70.mjs +21 -10
  298. package/dist/pat-shared-components70.mjs.map +1 -1
  299. package/dist/pat-shared-components71.js +1 -1
  300. package/dist/pat-shared-components71.js.map +1 -1
  301. package/dist/pat-shared-components71.mjs +27 -80
  302. package/dist/pat-shared-components71.mjs.map +1 -1
  303. package/dist/pat-shared-components72.js +1 -1
  304. package/dist/pat-shared-components72.js.map +1 -1
  305. package/dist/pat-shared-components72.mjs +5 -22
  306. package/dist/pat-shared-components72.mjs.map +1 -1
  307. package/dist/pat-shared-components73.js +1 -1
  308. package/dist/pat-shared-components73.js.map +1 -1
  309. package/dist/pat-shared-components73.mjs +28 -71
  310. package/dist/pat-shared-components73.mjs.map +1 -1
  311. package/dist/pat-shared-components74.js +1 -1
  312. package/dist/pat-shared-components74.js.map +1 -1
  313. package/dist/pat-shared-components74.mjs +8 -8
  314. package/dist/pat-shared-components74.mjs.map +1 -1
  315. package/dist/pat-shared-components75.js +1 -1
  316. package/dist/pat-shared-components75.js.map +1 -1
  317. package/dist/pat-shared-components75.mjs +85 -10
  318. package/dist/pat-shared-components75.mjs.map +1 -1
  319. package/dist/pat-shared-components76.js +1 -1
  320. package/dist/pat-shared-components76.js.map +1 -1
  321. package/dist/pat-shared-components76.mjs +18 -21
  322. package/dist/pat-shared-components76.mjs.map +1 -1
  323. package/dist/pat-shared-components77.js +1 -1
  324. package/dist/pat-shared-components77.js.map +1 -1
  325. package/dist/pat-shared-components77.mjs +69 -16
  326. package/dist/pat-shared-components77.mjs.map +1 -1
  327. package/dist/pat-shared-components78.js +1 -1
  328. package/dist/pat-shared-components78.js.map +1 -1
  329. package/dist/pat-shared-components78.mjs +10 -23
  330. package/dist/pat-shared-components78.mjs.map +1 -1
  331. package/dist/pat-shared-components79.js +1 -1
  332. package/dist/pat-shared-components79.js.map +1 -1
  333. package/dist/pat-shared-components79.mjs +10 -21
  334. package/dist/pat-shared-components79.mjs.map +1 -1
  335. package/dist/pat-shared-components8.js +1 -1
  336. package/dist/pat-shared-components8.js.map +1 -1
  337. package/dist/pat-shared-components8.mjs +91 -83
  338. package/dist/pat-shared-components8.mjs.map +1 -1
  339. package/dist/pat-shared-components80.js +1 -1
  340. package/dist/pat-shared-components80.js.map +1 -1
  341. package/dist/pat-shared-components80.mjs +21 -18
  342. package/dist/pat-shared-components80.mjs.map +1 -1
  343. package/dist/pat-shared-components81.js +1 -5
  344. package/dist/pat-shared-components81.js.map +1 -1
  345. package/dist/pat-shared-components81.mjs +18 -821
  346. package/dist/pat-shared-components81.mjs.map +1 -1
  347. package/dist/pat-shared-components82.js +1 -1
  348. package/dist/pat-shared-components82.js.map +1 -1
  349. package/dist/pat-shared-components82.mjs +23 -4
  350. package/dist/pat-shared-components82.mjs.map +1 -1
  351. package/dist/pat-shared-components83.js +1 -1
  352. package/dist/pat-shared-components83.js.map +1 -1
  353. package/dist/pat-shared-components83.mjs +22 -10
  354. package/dist/pat-shared-components83.mjs.map +1 -1
  355. package/dist/pat-shared-components84.js +1 -1
  356. package/dist/pat-shared-components84.js.map +1 -1
  357. package/dist/pat-shared-components84.mjs +4 -103
  358. package/dist/pat-shared-components84.mjs.map +1 -1
  359. package/dist/pat-shared-components85.js +1 -1
  360. package/dist/pat-shared-components85.mjs +1 -1
  361. package/dist/pat-shared-components87.js +1 -1
  362. package/dist/pat-shared-components87.mjs +1 -1
  363. package/dist/pat-shared-components88.js +5 -1
  364. package/dist/pat-shared-components88.js.map +1 -1
  365. package/dist/pat-shared-components88.mjs +820 -46
  366. package/dist/pat-shared-components88.mjs.map +1 -1
  367. package/dist/pat-shared-components89.js +1 -1
  368. package/dist/pat-shared-components89.js.map +1 -1
  369. package/dist/pat-shared-components89.mjs +10 -46
  370. package/dist/pat-shared-components89.mjs.map +1 -1
  371. package/dist/pat-shared-components9.js +1 -1
  372. package/dist/pat-shared-components9.js.map +1 -1
  373. package/dist/pat-shared-components9.mjs +79 -74
  374. package/dist/pat-shared-components9.mjs.map +1 -1
  375. package/dist/pat-shared-components90.js +1 -1
  376. package/dist/pat-shared-components90.js.map +1 -1
  377. package/dist/pat-shared-components90.mjs +43 -50
  378. package/dist/pat-shared-components90.mjs.map +1 -1
  379. package/dist/pat-shared-components91.js +1 -1
  380. package/dist/pat-shared-components91.js.map +1 -1
  381. package/dist/pat-shared-components91.mjs +44 -46
  382. package/dist/pat-shared-components91.mjs.map +1 -1
  383. package/dist/pat-shared-components92.js +1 -1
  384. package/dist/pat-shared-components92.js.map +1 -1
  385. package/dist/pat-shared-components92.mjs +51 -19
  386. package/dist/pat-shared-components92.mjs.map +1 -1
  387. package/dist/pat-shared-components93.js +1 -1
  388. package/dist/pat-shared-components93.js.map +1 -1
  389. package/dist/pat-shared-components93.mjs +43 -75
  390. package/dist/pat-shared-components93.mjs.map +1 -1
  391. package/dist/pat-shared-components94.js +1 -1
  392. package/dist/pat-shared-components94.js.map +1 -1
  393. package/dist/pat-shared-components94.mjs +22 -12
  394. package/dist/pat-shared-components94.mjs.map +1 -1
  395. package/dist/pat-shared-components95.js +1 -1
  396. package/dist/pat-shared-components95.js.map +1 -1
  397. package/dist/pat-shared-components95.mjs +79 -43
  398. package/dist/pat-shared-components95.mjs.map +1 -1
  399. package/dist/pat-shared-components96.js +1 -1
  400. package/dist/pat-shared-components96.js.map +1 -1
  401. package/dist/pat-shared-components96.mjs +12 -32
  402. package/dist/pat-shared-components96.mjs.map +1 -1
  403. package/dist/pat-shared-components97.js +1 -1
  404. package/dist/pat-shared-components97.js.map +1 -1
  405. package/dist/pat-shared-components97.mjs +44 -34
  406. package/dist/pat-shared-components97.mjs.map +1 -1
  407. package/dist/pat-shared-components99.js +1 -1
  408. package/dist/pat-shared-components99.mjs +2 -2
  409. package/dist/style.css +1 -1
  410. package/dist/types/components/BookingDetail/TestList.vue.d.ts +1 -0
  411. package/dist/types/types/Booking.d.ts +2 -0
  412. package/package.json +1 -1
@@ -1,49 +1,36 @@
1
- import { defineComponent as n, computed as i, openBlock as s, createElementBlock as o, createVNode as _, withCtx as u, createTextVNode as d, toDisplayString as r, Fragment as m, renderList as f, unref as h, createElementVNode as l } from "vue";
2
- import { useI18n as x } from "./pat-shared-components81.mjs";
3
- import b from "./pat-shared-components70.mjs";
4
- const g = { class: "psc-space-y-4" }, k = { class: "psc-w-20 psc-flex-initial psc-text-black/[0.85]" }, v = { class: "psc-flex-auto" }, y = ["href"], z = /* @__PURE__ */ n({
5
- __name: "DiagSupport",
6
- setup(D) {
7
- const { t } = x(), c = i(() => [
8
- {
9
- label: t("psc.test_result_booking_support_zalo"),
10
- text: "Diag Laboratories",
11
- href: "https://zalo.me/1687121322887646763"
12
- },
13
- {
14
- label: t("psc.test_result_booking_support_hotline"),
15
- text: "19001717",
16
- href: "tel:19001717"
17
- },
18
- {
19
- label: t("psc.test_result_booking_support_email"),
20
- text: "customersupport@diag.vn",
21
- href: "mailto:customersupport@diag.vn"
22
- }
23
- ]);
24
- return (p, N) => (s(), o("div", g, [
25
- _(b, null, {
26
- default: u(() => [
27
- d(r(p.$t("psc.test_result_support")), 1)
28
- ]),
29
- _: 1
30
- }),
31
- (s(!0), o(m, null, f(h(c), (e, a) => (s(), o("div", {
32
- key: `link${a}`,
33
- class: "psc-flex"
34
- }, [
35
- l("div", k, r(e.label), 1),
36
- l("div", v, [
37
- l("a", {
38
- class: "psc-text-blue-darken-1",
39
- href: e.href
40
- }, r(e.text), 9, y)
1
+ import { defineComponent as p, openBlock as i, createElementBlock as l, createElementVNode as s, toDisplayString as e, createVNode as c } from "vue";
2
+ import a from "./pat-shared-components60.mjs";
3
+ import d from "./pat-shared-components61.mjs";
4
+ const _ = { class: "psc-h-[110px] psc-space-y-3 psc-rounded-lg psc-bg-white psc-p-4 psc-shadow" }, r = { class: "psc-flex psc-items-end" }, u = { class: "psc-flex-auto psc-text-sm psc-font-medium psc-text-black/[0.85]" }, m = { class: "psc-flex-initial psc-pl-2 psc-text-center" }, f = { class: "psc-flex psc-items-center" }, x = { class: "psc-flex-auto psc-text-lg psc-font-semibold psc-text-blue-darken-1" }, b = { class: "psc-flex-initial psc-pl-2 psc-text-center" }, S = /* @__PURE__ */ p({
5
+ __name: "BookingNumber",
6
+ props: {
7
+ bookingCode: null,
8
+ bookingStatus: null,
9
+ paymentStatus: null
10
+ },
11
+ setup(o) {
12
+ const t = o;
13
+ return (n, g) => (i(), l("div", _, [
14
+ s("div", r, [
15
+ s("div", u, e(n.$t("psc.test_result_booking_booking_number")), 1),
16
+ s("div", m, [
17
+ c(a, {
18
+ status: t.bookingStatus
19
+ }, null, 8, ["status"])
41
20
  ])
42
- ]))), 128))
21
+ ]),
22
+ s("div", f, [
23
+ s("div", x, e(t.bookingCode), 1),
24
+ s("div", b, [
25
+ c(d, {
26
+ status: t.paymentStatus
27
+ }, null, 8, ["status"])
28
+ ])
29
+ ])
43
30
  ]));
44
31
  }
45
32
  });
46
33
  export {
47
- z as default
34
+ S as default
48
35
  };
49
36
  //# sourceMappingURL=pat-shared-components65.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components65.mjs","sources":["../src/components/BookingDetail/DiagSupport.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-space-y-4\" }\nconst _hoisted_2 = { class: \"psc-w-20 psc-flex-initial psc-text-black/[0.85]\" }\nconst _hoisted_3 = { class: \"psc-flex-auto\" }\nconst _hoisted_4 = [\"href\"]\n\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport SectionTitle from '../Shared/SectionTitle.vue';\n\n/**\n * Data\n */\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DiagSupport',\n setup(__props) {\n\nconst { t } = useI18n();\nconst links = computed(() => [\n {\n label: t('psc.test_result_booking_support_zalo'),\n text: 'Diag Laboratories',\n href: 'https://zalo.me/1687121322887646763',\n },\n {\n label: t('psc.test_result_booking_support_hotline'),\n text: '19001717',\n href: 'tel:19001717',\n },\n {\n label: t('psc.test_result_booking_support_email'),\n text: 'customersupport@diag.vn',\n href: 'mailto:customersupport@diag.vn',\n },\n]);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(SectionTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_support')), 1)\n ]),\n _: 1\n }),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(links), (link, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `link${i}`,\n class: \"psc-flex\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(link.label), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"a\", {\n class: \"psc-text-blue-darken-1\",\n href: link.href\n }, _toDisplayString(link.text), 9, _hoisted_4)\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","useI18n","links","computed","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","SectionTitle","_withCtx","_createTextVNode","_toDisplayString","_Fragment","_renderList","_unref","link","i","_createElementVNode"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,mBACtBC,IAAa,EAAE,OAAO,qDACtBC,IAAa,EAAE,OAAO,mBACtBC,IAAa,CAAC,MAAM,GAUEC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,MAAMC,GAAS;AAEX,UAAA,EAAE,MAAMC,KACRC,IAAQC,EAAS,MAAM;AAAA,MAC3B;AAAA,QACE,OAAO,EAAE,sCAAsC;AAAA,QAC/C,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,OAAO,EAAE,yCAAyC;AAAA,QAClD,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,OAAO,EAAE,uCAAuC;AAAA,QAChD,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IAAA,CACD;AAEM,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAOb,GAAY;AAAA,MAC3Dc,EAAaC,GAAc,MAAM;AAAA,QAC/B,SAASC,EAAS,MAAM;AAAA,UACtBC,EAAiBC,EAAiBR,EAAK,GAAG,yBAAyB,CAAC,GAAG,CAAC;AAAA,QAAA,CACzE;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,OACAE,EAAW,EAAI,GAAGC,EAAoBM,GAAW,MAAMC,EAAYC,EAAOb,CAAK,GAAG,CAACc,GAAMC,OAChFX,EAAA,GAAcC,EAAoB,OAAO;AAAA,QAC/C,KAAK,OAAOU;AAAA,QACZ,OAAO;AAAA,MAAA,GACN;AAAA,QACDC,EAAoB,OAAOvB,GAAYiB,EAAiBI,EAAK,KAAK,GAAG,CAAC;AAAA,QACtEE,EAAoB,OAAOtB,GAAY;AAAA,UACrCsB,EAAoB,KAAK;AAAA,YACvB,OAAO;AAAA,YACP,MAAMF,EAAK;AAAA,aACVJ,EAAiBI,EAAK,IAAI,GAAG,GAAGnB,CAAU;AAAA,QAAA,CAC9C;AAAA,MAAA,CACF,EACF,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"pat-shared-components65.mjs","sources":["../src/components/Shared/BookingNumber.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-h-[110px] psc-space-y-3 psc-rounded-lg psc-bg-white psc-p-4 psc-shadow\" }\nconst _hoisted_2 = { class: \"psc-flex psc-items-end\" }\nconst _hoisted_3 = { class: \"psc-flex-auto psc-text-sm psc-font-medium psc-text-black/[0.85]\" }\nconst _hoisted_4 = { class: \"psc-flex-initial psc-pl-2 psc-text-center\" }\nconst _hoisted_5 = { class: \"psc-flex psc-items-center\" }\nconst _hoisted_6 = { class: \"psc-flex-auto psc-text-lg psc-font-semibold psc-text-blue-darken-1\" }\nconst _hoisted_7 = { class: \"psc-flex-initial psc-pl-2 psc-text-center\" }\n\nimport type { BookingStatus, PaymentStatus } from '@/constants/Enums';\nimport BookingStatusComponent from '../BookingDetail/BookingStatusComponent.vue';\nimport PaymentStatusComponent from '../BookingDetail/PaymentStatusComponent.vue';\n\n/**\n * Props\n */\nexport interface Props {\n bookingCode: string;\n bookingStatus: BookingStatus;\n paymentStatus: PaymentStatus;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingNumber',\n props: {\n bookingCode: null,\n bookingStatus: null,\n paymentStatus: null\n },\n setup(__props: any) {\n\nconst props = __props as { bookingCode: string, bookingStatus: BookingStatus, paymentStatus: PaymentStatus };\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_ctx.$t('psc.test_result_booking_booking_number')), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BookingStatusComponent, {\n status: props.bookingStatus\n }, null, 8, [\"status\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(props.bookingCode), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(PaymentStatusComponent, {\n status: props.paymentStatus\n }, null, 8, [\"status\"])\n ])\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_sfc_main","_defineComponent","__props","props","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_createVNode","BookingStatusComponent","PaymentStatusComponent"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,gFACtBC,IAAa,EAAE,OAAO,4BACtBC,IAAa,EAAE,OAAO,qEACtBC,IAAa,EAAE,OAAO,+CACtBC,IAAa,EAAE,OAAO,+BACtBC,IAAa,EAAE,OAAO,wEACtBC,IAAa,EAAE,OAAO,+CAeAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa;AAAA,IACb,eAAe;AAAA,IACf,eAAe;AAAA,EACjB;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD;AAIP,WAAA,CAACE,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAOd,GAAY;AAAA,MAC3De,EAAoB,OAAOd,GAAY;AAAA,QACrCc,EAAoB,OAAOb,GAAYc,EAAiBL,EAAK,GAAG,wCAAwC,CAAC,GAAG,CAAC;AAAA,QAC7GI,EAAoB,OAAOZ,GAAY;AAAA,UACrCc,EAAaC,GAAwB;AAAA,YACnC,QAAQR,EAAM;AAAA,UACb,GAAA,MAAM,GAAG,CAAC,QAAQ,CAAC;AAAA,QAAA,CACvB;AAAA,MAAA,CACF;AAAA,MACDK,EAAoB,OAAOX,GAAY;AAAA,QACrCW,EAAoB,OAAOV,GAAYW,EAAiBN,EAAM,WAAW,GAAG,CAAC;AAAA,QAC7EK,EAAoB,OAAOT,GAAY;AAAA,UACrCW,EAAaE,GAAwB;AAAA,YACnC,QAAQT,EAAM;AAAA,UACb,GAAA,MAAM,GAAG,CAAC,QAAQ,CAAC;AAAA,QAAA,CACvB;AAAA,MAAA,CACF;AAAA,IAAA,CACF;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),i=require("./pat-shared-components168.js"),_=require("./pat-shared-components84.js"),g=require("./pat-shared-components81.js"),m=require("./pat-shared-components70.js"),b={key:0,class:"psc-space-y-4"},k={class:"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},f=e.defineComponent({__name:"SampleCollectionInfo",props:{booking:null},setup(l){const o=l,{t:a}=g.useI18n(),{formatDateHuge:p}=_.useDate(),c=e.computed(()=>{var t,s,n,r;return{address:(t=o.booking.data)!=null&&t.is_hbc?o.booking.address:(n=(s=o.booking.data)==null?void 0:s.supportingInformation)==null?void 0:n.appointmentSampleCollectionPlace,expectedDate:(r=o.booking.data)==null?void 0:r.planned_test_date}}),d=e.computed(()=>{var t,s,n;return(!!o.booking.address||!!((s=(t=o.booking.data)==null?void 0:t.supportingInformation)!=null&&s.appointmentSampleCollectionPlace))&&!!((n=o.booking.data)!=null&&n.planned_test_date)}),u=e.computed(()=>{var t;return(t=o.booking.data)!=null&&t.is_hbc?a("psc.test_result_booking_sample_collection"):a("psc.test_result_booking_testing_location")});return(t,s)=>e.unref(d)?(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)),1)]),_:1}),e.createElementVNode("div",k,[e.unref(c).address?(e.openBlock(),e.createBlock(i,{key:0,icon:"dgic-pin-map-thick",title:t.$t("psc.test_result_booking_address"),subtitle:e.unref(c).address,class:"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']"},null,8,["title","subtitle"])):e.createCommentVNode("",!0),e.unref(c).expectedDate?(e.openBlock(),e.createBlock(i,{key:1,icon:"dgic-date-thick",title:t.$t("psc.test_result_booking_expected_date"),subtitle:e.unref(p)(new Date(e.unref(c).expectedDate))},null,8,["title","subtitle"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}});module.exports=f;
1
+ "use strict";const e=require("vue"),i=require("./pat-shared-components4.js"),d=require("./pat-shared-components88.js"),k={class:"psc-space-y-6"},g={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},v={class:"psc-space-y-3"},y=e.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[e.createElementVNode("i",{class:"dgic-test"})],-1),f={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},b=e.defineComponent({__name:"TestList",props:{services:null,bookingType:null},setup(l){const c=l,{t:o,locale:r}=d.useI18n(),p=e.computed(()=>{c.bookingType===""?console.log("bookingType is an empty string"):console.log("bookingType received in TestList:",c.bookingType);const s=[{title:o("psc.test_result_booking_tests"),items:[]},{title:o("psc.test_result_booking_packages"),items:[]},{title:o("psc.test_result_booking_imaging_services"),items:[]}];return c.services&&c.bookingType!=="RefDoc"&&c.services.forEach(({service:t})=>{t&&(t.service_type==i.ServiceType.ImagingService?s[2].items.push(t):[i.ServiceType.Group,i.ServiceType.Package].includes(t.service_type)?s[1].items.push(t):s[0].items.push(t))}),s.filter(t=>t.items.length>0)}),a=s=>r.value==="vi"?s.test_name_vi:s.test_name_en;return(s,t)=>(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(n,m)=>(e.openBlock(),e.createElementBlock("div",{key:`serviceDataItem${m}`},[e.createElementVNode("div",g,e.toDisplayString(n.title),1),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(u,_)=>(e.openBlock(),e.createElementBlock("div",{key:`item${_}`,class:"psc-flex"},[y,e.createElementVNode("div",f,e.toDisplayString(a(u)),1)]))),128))])]))),128))]))}});module.exports=b;
2
2
  //# sourceMappingURL=pat-shared-components66.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components66.js","sources":["../src/components/BookingDetail/SampleCollectionInfo.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, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-space-y-4\"\n}\nconst _hoisted_2 = { class: \"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow\" }\n\nimport TitleIcon from '@/components/Shared/TitleIcon.vue';\nimport type { Booking } from '@/types';\nimport { useDate } from 'pat-design-system';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport SectionTitle from '../Shared/SectionTitle.vue';\n\n/**\n * Props\n */\nexport interface Props {\n booking: Booking;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'SampleCollectionInfo',\n props: {\n booking: null\n },\n setup(__props: any) {\n\nconst props = __props as { booking: Booking };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { formatDateHuge } = useDate();\nconst sampleCollection = computed(() => ({\n address: props.booking.data?.is_hbc\n ? props.booking.address\n : props.booking.data?.supportingInformation\n ?.appointmentSampleCollectionPlace,\n expectedDate: props.booking.data?.planned_test_date,\n}));\nconst visible = computed(\n () =>\n (!!props.booking.address ||\n !!props.booking.data?.supportingInformation\n ?.appointmentSampleCollectionPlace) &&\n !!props.booking.data?.planned_test_date\n);\nconst title = computed(() =>\n props.booking.data?.is_hbc\n ? t('psc.test_result_booking_sample_collection')\n : t('psc.test_result_booking_testing_location')\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(visible))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(SectionTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(title)), 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(sampleCollection).address)\n ? (_openBlock(), _createBlock(TitleIcon, {\n key: 0,\n icon: \"dgic-pin-map-thick\",\n title: _ctx.$t('psc.test_result_booking_address'),\n subtitle: _unref(sampleCollection).address,\n class: \"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']\"\n }, null, 8, [\"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true),\n (_unref(sampleCollection).expectedDate)\n ? (_openBlock(), _createBlock(TitleIcon, {\n key: 1,\n icon: \"dgic-date-thick\",\n title: _ctx.$t('psc.test_result_booking_expected_date'),\n subtitle: _unref(formatDateHuge)(new Date(_unref(sampleCollection).expectedDate))\n }, null, 8, [\"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","t","useI18n","formatDateHuge","useDate","sampleCollection","computed","_a","_c","_b","_d","visible","title","_ctx","_cache","_unref","_openBlock","_createElementBlock","_createVNode","SectionTitle","_withCtx","_createTextVNode","_toDisplayString","_createElementVNode","_createBlock","TitleIcon","_createCommentVNode"],"mappings":"6MAGMA,EAAa,CACjB,IAAK,EACL,MAAO,eACT,EACMC,EAAa,CAAE,MAAO,wFAgBAC,EAAiBC,kBAAA,CAC3C,OAAQ,uBACR,MAAO,CACL,QAAS,IACX,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAOR,CAAE,EAAAE,GAAMC,EAAAA,UACR,CAAE,eAAAC,GAAmBC,EAAAA,UACrBC,EAAmBC,EAAAA,SAAS,IAAO,aAAA,OACvC,SAASC,EAAAP,EAAM,QAAQ,OAAd,MAAAO,EAAoB,OACzBP,EAAM,QAAQ,SACdQ,GAAAC,EAAAT,EAAM,QAAQ,OAAd,YAAAS,EAAoB,wBAApB,YAAAD,EACI,iCACR,cAAcE,EAAAV,EAAM,QAAQ,OAAd,YAAAU,EAAoB,iBAClC,EAAA,EACIC,EAAUL,EAAA,SACd,eACG,QAAC,CAACN,EAAM,QAAQ,SACf,CAAC,GAACS,GAAAF,EAAAP,EAAM,QAAQ,OAAd,YAAAO,EAAoB,wBAApB,MAAAE,EACE,oCACN,CAAC,GAACD,EAAAR,EAAM,QAAQ,OAAd,MAAAQ,EAAoB,mBAAA,EAEpBI,EAAQN,EAAA,SAAS,WACrB,OAAAC,EAAAP,EAAM,QAAQ,OAAd,MAAAO,EAAoB,OAChBN,EAAE,2CAA2C,EAC7CA,EAAE,0CAA0C,EAAA,EAG3C,MAAA,CAACY,EAAUC,IACRC,EAAAA,MAAOJ,CAAO,GACjBK,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAOtB,EAAY,CACpDuB,EAAA,YAAaC,EAAc,KAAM,CAC/B,QAASC,UAAS,IAAM,CACtBC,EAAAA,gBAAiBC,EAAAA,gBAAiBP,EAAAA,MAAOH,CAAK,CAAC,EAAG,CAAC,CAAA,CACpD,EACD,EAAG,CAAA,CACJ,EACDW,EAAA,mBAAoB,MAAO3B,EAAY,CACpCmB,QAAOV,CAAgB,EAAE,SACrBW,EAAAA,UAAW,EAAGQ,cAAaC,EAAW,CACrC,IAAK,EACL,KAAM,qBACN,MAAOZ,EAAK,GAAG,iCAAiC,EAChD,SAAUE,EAAAA,MAAOV,CAAgB,EAAE,QACnC,MAAO,2IAAA,EACN,KAAM,EAAG,CAAC,QAAS,UAAU,CAAC,GACjCqB,EAAAA,mBAAoB,GAAI,EAAI,EAC/BX,QAAOV,CAAgB,EAAE,cACrBW,EAAAA,UAAW,EAAGQ,cAAaC,EAAW,CACrC,IAAK,EACL,KAAM,kBACN,MAAOZ,EAAK,GAAG,uCAAuC,EACtD,SAAUE,EAAAA,MAAOZ,CAAc,EAAE,IAAI,KAAKY,QAAOV,CAAgB,EAAE,YAAY,CAAC,CAAA,EAC/E,KAAM,EAAG,CAAC,QAAS,UAAU,CAAC,GACjCqB,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,CACF,CAAA,GACDA,EAAoB,mBAAA,GAAI,EAAI,CAElC,CAEA,CAAC"}
1
+ {"version":3,"file":"pat-shared-components66.js","sources":["../src/components/BookingDetail/TestList.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, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-space-y-6\" }\nconst _hoisted_2 = { class: \"psc-pb-4 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_3 = { class: \"psc-space-y-3\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-test\" })\n], -1)\nconst _hoisted_5 = { class: \"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]\" }\n\nimport { ServiceType } from '@/constants/Enums';\nimport type { BookingService, BookingServiceDetail } from '@/types';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\n\nexport interface ServiceDataItem {\n title: string;\n items: BookingServiceDetail[];\n}\n\n/**\n * Props\n */\nexport interface Props {\n services: BookingService[];\n bookingType?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestList',\n props: {\n services: null,\n bookingType: null\n },\n setup(__props: any) {\n\nconst props = __props as { services: BookingService[], bookingType?: string };\n\n\n/**\n * Data\n */\nconst { t, locale } = useI18n();\nconst serviceDataItems = computed(() => {\n if (props.bookingType === \"\") {\n console.log(\"bookingType is an empty string\");\n } else {\n console.log(\"bookingType received in TestList:\", props.bookingType);\n }\n const result: ServiceDataItem[] = [\n {\n title: t('psc.test_result_booking_tests'),\n items: [],\n },\n {\n title: t('psc.test_result_booking_packages'),\n items: [],\n },\n {\n title: t('psc.test_result_booking_imaging_services'),\n items: [],\n },\n ];\n\n if (props.services && props.bookingType !== \"RefDoc\") {\n props.services.forEach(({ service }) => {\n // NOTE: There still be ONE case that `service` is NULL\n if (service) {\n if (service.service_type == ServiceType.ImagingService) {\n result[2].items.push(service);\n } else if (\n [ServiceType.Group, ServiceType.Package].includes(\n service.service_type\n )\n ) {\n result[1].items.push(service);\n } else {\n result[0].items.push(service);\n }\n }\n });\n }\n\n return result.filter((i) => i.items.length > 0);\n});\n\n/**\n * Methods\n */\nconst getTestName = (item: BookingServiceDetail) =>\n locale.value === 'vi' ? item.test_name_vi : item.test_name_en;\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(serviceDataItems), (serviceDataItem, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `serviceDataItem${i}`\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(serviceDataItem.title), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(serviceDataItem.items, (item, j) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `item${j}`,\n class: \"psc-flex\"\n }, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(getTestName(item)), 1)\n ]))\n }), 128))\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","props","t","locale","useI18n","serviceDataItems","computed","result","service","ServiceType","i","getTestName","item","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","serviceDataItem","_toDisplayString","j"],"mappings":"uHAGMA,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAE,MAAO,oDACtBC,EAAa,CAAE,MAAO,iBACtBC,EAA8CC,EAAAA,mBAAA,MAAO,CAAE,MAAO,0EAA4E,CAC7GA,EAAAA,mBAAA,IAAK,CAAE,MAAO,YAAa,CAC9D,EAAG,EAAE,EACCC,EAAa,CAAE,MAAO,4EAoBAC,EAAiBC,kBAAA,CAC3C,OAAQ,WACR,MAAO,CACL,SAAU,KACV,YAAa,IACf,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAMR,CAAE,EAAAE,EAAG,OAAAC,CAAO,EAAIC,EAAQ,QAAA,EACxBC,EAAmBC,EAAAA,SAAS,IAAM,CAClCL,EAAM,cAAgB,GACxB,QAAQ,IAAI,gCAAgC,EAEpC,QAAA,IAAI,oCAAqCA,EAAM,WAAW,EAEpE,MAAMM,EAA4B,CAChC,CACE,MAAOL,EAAE,+BAA+B,EACxC,MAAO,CAAC,CACV,EACA,CACE,MAAOA,EAAE,kCAAkC,EAC3C,MAAO,CAAC,CACV,EACA,CACE,MAAOA,EAAE,0CAA0C,EACnD,MAAO,CAAC,CACV,CAAA,EAGF,OAAID,EAAM,UAAYA,EAAM,cAAgB,UAC1CA,EAAM,SAAS,QAAQ,CAAC,CAAE,QAAAO,KAAc,CAElCA,IACEA,EAAQ,cAAgBC,EAAA,YAAY,eACtCF,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO,EAE5B,CAACC,EAAAA,YAAY,MAAOA,EAAAA,YAAY,OAAO,EAAE,SACvCD,EAAQ,YAAA,EAGVD,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO,EAE5BD,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO,EAEhC,CACD,EAGID,EAAO,OAAQG,GAAMA,EAAE,MAAM,OAAS,CAAC,CAAA,CAC/C,EAKKC,EAAeC,GACnBT,EAAO,QAAU,KAAOS,EAAK,aAAeA,EAAK,aAE5C,MAAA,CAACC,EAAUC,KACRC,YAAW,EAAGC,qBAAoB,MAAOxB,EAAY,EAC1DuB,EAAAA,UAAW,EAAI,EAAGC,EAAA,mBAAoBC,EAAW,SAAA,KAAMC,aAAYC,EAAAA,MAAOd,CAAgB,EAAG,CAACe,EAAiBV,KACtGK,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,IAAK,kBAAkBN,GAAA,EACtB,CACDd,qBAAoB,MAAOH,EAAY4B,EAAAA,gBAAiBD,EAAgB,KAAK,EAAG,CAAC,EACjFxB,EAAA,mBAAoB,MAAOF,EAAY,EACpCqB,EAAAA,UAAW,EAAI,EAAGC,EAAoB,mBAAAC,WAAW,KAAMC,EAAA,WAAYE,EAAgB,MAAO,CAACR,EAAMU,KACxFP,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,IAAK,OAAOM,IACZ,MAAO,UAAA,EACN,CACD3B,EACAC,EAAA,mBAAoB,MAAOC,EAAYwB,EAAAA,gBAAiBV,EAAYC,CAAI,CAAC,EAAG,CAAC,CAAA,CAC9E,EACF,EAAG,GAAG,EAAA,CACR,CAAA,CACF,EACF,EAAG,GAAG,EAAA,CACR,EAEH,CAEA,CAAC"}
@@ -1,60 +1,56 @@
1
- import { defineComponent as f, computed as c, unref as o, openBlock as i, createElementBlock as k, createVNode as h, withCtx as y, createTextVNode as D, toDisplayString as x, createElementVNode as C, createBlock as d, createCommentVNode as l } from "vue";
2
- import _ from "./pat-shared-components168.mjs";
3
- import { useDate as S } from "./pat-shared-components84.mjs";
4
- import { useI18n as v } from "./pat-shared-components81.mjs";
5
- import w from "./pat-shared-components70.mjs";
6
- const I = {
7
- key: 0,
8
- class: "psc-space-y-4"
9
- }, N = { class: "psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow" }, T = /* @__PURE__ */ f({
10
- __name: "SampleCollectionInfo",
1
+ import { defineComponent as y, computed as b, openBlock as i, createElementBlock as c, Fragment as r, renderList as a, unref as h, createElementVNode as o, toDisplayString as m } from "vue";
2
+ import { ServiceType as l } from "./pat-shared-components4.mjs";
3
+ import { useI18n as x } from "./pat-shared-components88.mjs";
4
+ const T = { class: "psc-space-y-6" }, D = { class: "psc-pb-4 psc-font-semibold psc-text-black/[0.85]" }, E = { class: "psc-space-y-3" }, I = /* @__PURE__ */ o("div", { class: "psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]" }, [
5
+ /* @__PURE__ */ o("i", { class: "dgic-test" })
6
+ ], -1), L = { class: "psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]" }, $ = /* @__PURE__ */ y({
7
+ __name: "TestList",
11
8
  props: {
12
- booking: null
9
+ services: null,
10
+ bookingType: null
13
11
  },
14
- setup(m) {
15
- const t = m, { t: p } = v(), { formatDateHuge: u } = S(), n = c(() => {
16
- var e, s, a, r;
17
- return {
18
- address: (e = t.booking.data) != null && e.is_hbc ? t.booking.address : (a = (s = t.booking.data) == null ? void 0 : s.supportingInformation) == null ? void 0 : a.appointmentSampleCollectionPlace,
19
- expectedDate: (r = t.booking.data) == null ? void 0 : r.planned_test_date
20
- };
21
- }), g = c(
22
- () => {
23
- var e, s, a;
24
- return (!!t.booking.address || !!((s = (e = t.booking.data) == null ? void 0 : e.supportingInformation) != null && s.appointmentSampleCollectionPlace)) && !!((a = t.booking.data) != null && a.planned_test_date);
25
- }
26
- ), b = c(
27
- () => {
28
- var e;
29
- return (e = t.booking.data) != null && e.is_hbc ? p("psc.test_result_booking_sample_collection") : p("psc.test_result_booking_testing_location");
30
- }
31
- );
32
- return (e, s) => o(g) ? (i(), k("div", I, [
33
- h(w, null, {
34
- default: y(() => [
35
- D(x(o(b)), 1)
36
- ]),
37
- _: 1
38
- }),
39
- C("div", N, [
40
- o(n).address ? (i(), d(_, {
41
- key: 0,
42
- icon: "dgic-pin-map-thick",
43
- title: e.$t("psc.test_result_booking_address"),
44
- subtitle: o(n).address,
45
- class: "psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']"
46
- }, null, 8, ["title", "subtitle"])) : l("", !0),
47
- o(n).expectedDate ? (i(), d(_, {
48
- key: 1,
49
- icon: "dgic-date-thick",
50
- title: e.$t("psc.test_result_booking_expected_date"),
51
- subtitle: o(u)(new Date(o(n).expectedDate))
52
- }, null, 8, ["title", "subtitle"])) : l("", !0)
53
- ])
54
- ])) : l("", !0);
12
+ setup(_) {
13
+ const t = _, { t: n, locale: u } = x(), g = b(() => {
14
+ t.bookingType === "" ? console.log("bookingType is an empty string") : console.log("bookingType received in TestList:", t.bookingType);
15
+ const s = [
16
+ {
17
+ title: n("psc.test_result_booking_tests"),
18
+ items: []
19
+ },
20
+ {
21
+ title: n("psc.test_result_booking_packages"),
22
+ items: []
23
+ },
24
+ {
25
+ title: n("psc.test_result_booking_imaging_services"),
26
+ items: []
27
+ }
28
+ ];
29
+ return t.services && t.bookingType !== "RefDoc" && t.services.forEach(({ service: e }) => {
30
+ e && (e.service_type == l.ImagingService ? s[2].items.push(e) : [l.Group, l.Package].includes(
31
+ e.service_type
32
+ ) ? s[1].items.push(e) : s[0].items.push(e));
33
+ }), s.filter((e) => e.items.length > 0);
34
+ }), d = (s) => u.value === "vi" ? s.test_name_vi : s.test_name_en;
35
+ return (s, e) => (i(), c("div", T, [
36
+ (i(!0), c(r, null, a(h(g), (p, f) => (i(), c("div", {
37
+ key: `serviceDataItem${f}`
38
+ }, [
39
+ o("div", D, m(p.title), 1),
40
+ o("div", E, [
41
+ (i(!0), c(r, null, a(p.items, (k, v) => (i(), c("div", {
42
+ key: `item${v}`,
43
+ class: "psc-flex"
44
+ }, [
45
+ I,
46
+ o("div", L, m(d(k)), 1)
47
+ ]))), 128))
48
+ ])
49
+ ]))), 128))
50
+ ]));
55
51
  }
56
52
  });
57
53
  export {
58
- T as default
54
+ $ as default
59
55
  };
60
56
  //# sourceMappingURL=pat-shared-components66.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components66.mjs","sources":["../src/components/BookingDetail/SampleCollectionInfo.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, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-space-y-4\"\n}\nconst _hoisted_2 = { class: \"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow\" }\n\nimport TitleIcon from '@/components/Shared/TitleIcon.vue';\nimport type { Booking } from '@/types';\nimport { useDate } from 'pat-design-system';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport SectionTitle from '../Shared/SectionTitle.vue';\n\n/**\n * Props\n */\nexport interface Props {\n booking: Booking;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'SampleCollectionInfo',\n props: {\n booking: null\n },\n setup(__props: any) {\n\nconst props = __props as { booking: Booking };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { formatDateHuge } = useDate();\nconst sampleCollection = computed(() => ({\n address: props.booking.data?.is_hbc\n ? props.booking.address\n : props.booking.data?.supportingInformation\n ?.appointmentSampleCollectionPlace,\n expectedDate: props.booking.data?.planned_test_date,\n}));\nconst visible = computed(\n () =>\n (!!props.booking.address ||\n !!props.booking.data?.supportingInformation\n ?.appointmentSampleCollectionPlace) &&\n !!props.booking.data?.planned_test_date\n);\nconst title = computed(() =>\n props.booking.data?.is_hbc\n ? t('psc.test_result_booking_sample_collection')\n : t('psc.test_result_booking_testing_location')\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(visible))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(SectionTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(title)), 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(sampleCollection).address)\n ? (_openBlock(), _createBlock(TitleIcon, {\n key: 0,\n icon: \"dgic-pin-map-thick\",\n title: _ctx.$t('psc.test_result_booking_address'),\n subtitle: _unref(sampleCollection).address,\n class: \"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']\"\n }, null, 8, [\"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true),\n (_unref(sampleCollection).expectedDate)\n ? (_openBlock(), _createBlock(TitleIcon, {\n key: 1,\n icon: \"dgic-date-thick\",\n title: _ctx.$t('psc.test_result_booking_expected_date'),\n subtitle: _unref(formatDateHuge)(new Date(_unref(sampleCollection).expectedDate))\n }, null, 8, [\"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","t","useI18n","formatDateHuge","useDate","sampleCollection","computed","_a","_c","_b","_d","visible","title","_ctx","_cache","_unref","_openBlock","_createElementBlock","_createVNode","SectionTitle","_withCtx","_createTextVNode","_toDisplayString","_createElementVNode","_createBlock","TitleIcon","_createCommentVNode"],"mappings":";;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,0FAgBAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,SAAS;AAAA,EACX;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAOR,EAAE,GAAAE,MAAMC,KACR,EAAE,gBAAAC,MAAmBC,KACrBC,IAAmBC,EAAS,MAAO;;AAAA;AAAA,QACvC,UAASC,IAAAP,EAAM,QAAQ,SAAd,QAAAO,EAAoB,SACzBP,EAAM,QAAQ,WACdQ,KAAAC,IAAAT,EAAM,QAAQ,SAAd,gBAAAS,EAAoB,0BAApB,gBAAAD,EACI;AAAA,QACR,eAAcE,IAAAV,EAAM,QAAQ,SAAd,gBAAAU,EAAoB;AAAA,MAClC;AAAA,KAAA,GACIC,IAAUL;AAAA,MACd;;AACG,iBAAC,CAACN,EAAM,QAAQ,WACf,CAAC,GAACS,KAAAF,IAAAP,EAAM,QAAQ,SAAd,gBAAAO,EAAoB,0BAApB,QAAAE,EACE,sCACN,CAAC,GAACD,IAAAR,EAAM,QAAQ,SAAd,QAAAQ,EAAoB;AAAA;AAAA,IAAA,GAEpBI,IAAQN;AAAA,MAAS;;AACrB,gBAAAC,IAAAP,EAAM,QAAQ,SAAd,QAAAO,EAAoB,SAChBN,EAAE,2CAA2C,IAC7CA,EAAE,0CAA0C;AAAA;AAAA,IAAA;AAG3C,WAAA,CAACY,GAAUC,MACRC,EAAOJ,CAAO,KACjBK,EAAc,GAAAC,EAAoB,OAAOtB,GAAY;AAAA,MACpDuB,EAAaC,GAAc,MAAM;AAAA,QAC/B,SAASC,EAAS,MAAM;AAAA,UACtBC,EAAiBC,EAAiBP,EAAOH,CAAK,CAAC,GAAG,CAAC;AAAA,QAAA,CACpD;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,MACDW,EAAoB,OAAO3B,GAAY;AAAA,QACpCmB,EAAOV,CAAgB,EAAE,WACrBW,EAAW,GAAGQ,EAAaC,GAAW;AAAA,UACrC,KAAK;AAAA,UACL,MAAM;AAAA,UACN,OAAOZ,EAAK,GAAG,iCAAiC;AAAA,UAChD,UAAUE,EAAOV,CAAgB,EAAE;AAAA,UACnC,OAAO;AAAA,QAAA,GACN,MAAM,GAAG,CAAC,SAAS,UAAU,CAAC,KACjCqB,EAAoB,IAAI,EAAI;AAAA,QAC/BX,EAAOV,CAAgB,EAAE,gBACrBW,EAAW,GAAGQ,EAAaC,GAAW;AAAA,UACrC,KAAK;AAAA,UACL,MAAM;AAAA,UACN,OAAOZ,EAAK,GAAG,uCAAuC;AAAA,UACtD,UAAUE,EAAOZ,CAAc,EAAE,IAAI,KAAKY,EAAOV,CAAgB,EAAE,YAAY,CAAC;AAAA,QAAA,GAC/E,MAAM,GAAG,CAAC,SAAS,UAAU,CAAC,KACjCqB,EAAoB,IAAI,EAAI;AAAA,MAAA,CACjC;AAAA,IACF,CAAA,KACDA,EAAoB,IAAI,EAAI;AAAA,EAElC;AAEA,CAAC;"}
1
+ {"version":3,"file":"pat-shared-components66.mjs","sources":["../src/components/BookingDetail/TestList.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, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-space-y-6\" }\nconst _hoisted_2 = { class: \"psc-pb-4 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_3 = { class: \"psc-space-y-3\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-test\" })\n], -1)\nconst _hoisted_5 = { class: \"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]\" }\n\nimport { ServiceType } from '@/constants/Enums';\nimport type { BookingService, BookingServiceDetail } from '@/types';\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\n\nexport interface ServiceDataItem {\n title: string;\n items: BookingServiceDetail[];\n}\n\n/**\n * Props\n */\nexport interface Props {\n services: BookingService[];\n bookingType?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestList',\n props: {\n services: null,\n bookingType: null\n },\n setup(__props: any) {\n\nconst props = __props as { services: BookingService[], bookingType?: string };\n\n\n/**\n * Data\n */\nconst { t, locale } = useI18n();\nconst serviceDataItems = computed(() => {\n if (props.bookingType === \"\") {\n console.log(\"bookingType is an empty string\");\n } else {\n console.log(\"bookingType received in TestList:\", props.bookingType);\n }\n const result: ServiceDataItem[] = [\n {\n title: t('psc.test_result_booking_tests'),\n items: [],\n },\n {\n title: t('psc.test_result_booking_packages'),\n items: [],\n },\n {\n title: t('psc.test_result_booking_imaging_services'),\n items: [],\n },\n ];\n\n if (props.services && props.bookingType !== \"RefDoc\") {\n props.services.forEach(({ service }) => {\n // NOTE: There still be ONE case that `service` is NULL\n if (service) {\n if (service.service_type == ServiceType.ImagingService) {\n result[2].items.push(service);\n } else if (\n [ServiceType.Group, ServiceType.Package].includes(\n service.service_type\n )\n ) {\n result[1].items.push(service);\n } else {\n result[0].items.push(service);\n }\n }\n });\n }\n\n return result.filter((i) => i.items.length > 0);\n});\n\n/**\n * Methods\n */\nconst getTestName = (item: BookingServiceDetail) =>\n locale.value === 'vi' ? item.test_name_vi : item.test_name_en;\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(serviceDataItems), (serviceDataItem, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `serviceDataItem${i}`\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(serviceDataItem.title), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(serviceDataItem.items, (item, j) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `item${j}`,\n class: \"psc-flex\"\n }, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(getTestName(item)), 1)\n ]))\n }), 128))\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","props","t","locale","useI18n","serviceDataItems","computed","result","service","ServiceType","i","getTestName","item","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","serviceDataItem","_toDisplayString","j"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,mBACtBC,IAAa,EAAE,OAAO,sDACtBC,IAAa,EAAE,OAAO,mBACtBC,IAA8CC,gBAAAA,EAAA,OAAO,EAAE,OAAO,4EAA4E;AAAA,EAC7GA,gBAAAA,EAAA,KAAK,EAAE,OAAO,aAAa;AAC9D,GAAG,EAAE,GACCC,IAAa,EAAE,OAAO,8EAoBAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAMR,EAAE,GAAAE,GAAG,QAAAC,EAAO,IAAIC,EAAQ,GACxBC,IAAmBC,EAAS,MAAM;AAClC,MAAAL,EAAM,gBAAgB,KACxB,QAAQ,IAAI,gCAAgC,IAEpC,QAAA,IAAI,qCAAqCA,EAAM,WAAW;AAEpE,YAAMM,IAA4B;AAAA,QAChC;AAAA,UACE,OAAOL,EAAE,+BAA+B;AAAA,UACxC,OAAO,CAAC;AAAA,QACV;AAAA,QACA;AAAA,UACE,OAAOA,EAAE,kCAAkC;AAAA,UAC3C,OAAO,CAAC;AAAA,QACV;AAAA,QACA;AAAA,UACE,OAAOA,EAAE,0CAA0C;AAAA,UACnD,OAAO,CAAC;AAAA,QACV;AAAA,MAAA;AAGF,aAAID,EAAM,YAAYA,EAAM,gBAAgB,YAC1CA,EAAM,SAAS,QAAQ,CAAC,EAAE,SAAAO,QAAc;AAEtC,QAAIA,MACEA,EAAQ,gBAAgBC,EAAY,iBACtCF,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO,IAE5B,CAACC,EAAY,OAAOA,EAAY,OAAO,EAAE;AAAA,UACvCD,EAAQ;AAAA,QAAA,IAGVD,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO,IAE5BD,EAAO,CAAC,EAAE,MAAM,KAAKC,CAAO;AAAA,MAEhC,CACD,GAGID,EAAO,OAAO,CAACG,MAAMA,EAAE,MAAM,SAAS,CAAC;AAAA,IAAA,CAC/C,GAKKC,IAAc,CAACC,MACnBT,EAAO,UAAU,OAAOS,EAAK,eAAeA,EAAK;AAE5C,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAOxB,GAAY;AAAA,OAC1DuB,EAAW,EAAI,GAAGC,EAAoBC,GAAW,MAAMC,EAAYC,EAAOd,CAAgB,GAAG,CAACe,GAAiBV,OACtGK,EAAA,GAAcC,EAAoB,OAAO;AAAA,QAC/C,KAAK,kBAAkBN;AAAA,MAAA,GACtB;AAAA,QACDd,EAAoB,OAAOH,GAAY4B,EAAiBD,EAAgB,KAAK,GAAG,CAAC;AAAA,QACjFxB,EAAoB,OAAOF,GAAY;AAAA,WACpCqB,EAAW,EAAI,GAAGC,EAAoBC,GAAW,MAAMC,EAAYE,EAAgB,OAAO,CAACR,GAAMU,OACxFP,EAAA,GAAcC,EAAoB,OAAO;AAAA,YAC/C,KAAK,OAAOM;AAAA,YACZ,OAAO;AAAA,UAAA,GACN;AAAA,YACD3B;AAAA,YACAC,EAAoB,OAAOC,GAAYwB,EAAiBV,EAAYC,CAAI,CAAC,GAAG,CAAC;AAAA,UAAA,CAC9E,EACF,GAAG,GAAG;AAAA,QAAA,CACR;AAAA,MAAA,CACF,EACF,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),o=require("./pat-shared-components4.js"),n=require("./pat-shared-components172.js"),c={key:0,class:"psc-w-full psc-font-semibold psc-text-blue-darken-2"},u={key:1,class:"psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1"},r=e.createElementVNode("i",{class:"dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl"},null,-1),a=e.defineComponent({__name:"BookingResultStatus",props:{testResultKey:{default:""},resultStatus:null,bookingStatus:null},setup(l){const t=l;return(s,i)=>(e.openBlock(),e.createElementBlock("div",null,[t.testResultKey?t.bookingStatus===e.unref(o.BookingStatus).Canceled?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("span",null,e.toDisplayString(s.$t("psc.test_result_booking_booking_canceled")),1),r])):(e.openBlock(),e.createBlock(n,{key:2,status:t.resultStatus},null,8,["status"])):(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("span",null,e.toDisplayString(s.$t("psc.test_result_booking_results_will_be_there")),1)]))]))}});module.exports=a;
1
+ "use strict";const t=require("vue"),n=require("./pat-shared-components167.js"),l={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},a={class:"psc-flex"},i=t.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[t.createElementVNode("i",{class:"dgic-statement-thick"})],-1),p={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},r=t.defineComponent({__name:"TotalPayment",props:{totalAmount:null},setup(e){const s=e,{getDisplayAmount:c}=n.useCurrency();return(o,m)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",l,t.toDisplayString(o.$t("psc.test_result_booking_total_payment")),1),t.createElementVNode("div",a,[i,t.createElementVNode("div",p,t.toDisplayString(t.unref(c)(s.totalAmount)),1)])]))}});module.exports=r;
2
2
  //# sourceMappingURL=pat-shared-components67.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components67.js","sources":["../src/components/BookingDetail/BookingResultStatus.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-w-full psc-font-semibold psc-text-blue-darken-2\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl\" }, null, -1)\n\nimport { BookingStatus, TestResultStatus } from '@/constants/Enums';\nimport ResultStatus from '@/components/Shared/ResultStatus.vue';\n\n/**\n * Props\n */\nexport interface Props {\n testResultKey?: string;\n resultStatus: TestResultStatus;\n bookingStatus: BookingStatus;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingResultStatus',\n props: {\n testResultKey: { default: '' },\n resultStatus: null,\n bookingStatus: null\n },\n setup(__props: any) {\n\nconst props = __props as { testResultKey: string, resultStatus: TestResultStatus, bookingStatus: BookingStatus };\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (!props.testResultKey)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('psc.test_result_booking_results_will_be_there')), 1)\n ]))\n : (props.bookingStatus === _unref(BookingStatus).Canceled)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('psc.test_result_booking_booking_canceled')), 1),\n _hoisted_3\n ]))\n : (_openBlock(), _createBlock(ResultStatus, {\n key: 2,\n status: props.resultStatus\n }, null, 8, [\"status\"]))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","props","_ctx","_cache","_openBlock","_createElementBlock","_unref","BookingStatus","_createElementVNode","_toDisplayString","_createBlock","ResultStatus"],"mappings":"wHAGMA,EAAa,CACjB,IAAK,EACL,MAAO,qDACT,EACMC,EAAa,CACjB,IAAK,EACL,MAAO,iEACT,EACMC,uBAA8C,IAAK,CAAE,MAAO,+EAAiF,KAAM,EAAE,EAc/HC,EAAiBC,kBAAA,CAC3C,OAAQ,sBACR,MAAO,CACL,cAAe,CAAE,QAAS,EAAG,EAC7B,aAAc,KACd,cAAe,IACjB,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAIP,MAAA,CAACE,EAAUC,KACRC,YAAW,EAAGC,qBAAoB,MAAO,KAAM,CACnDJ,EAAM,cAIHA,EAAM,gBAAkBK,EAAAA,MAAOC,EAAa,aAAA,EAAE,UAC5CH,YAAW,EAAGC,qBAAoB,MAAOT,EAAY,CACpDY,qBAAoB,OAAQ,KAAMC,EAAA,gBAAiBP,EAAK,GAAG,0CAA0C,CAAC,EAAG,CAAC,EAC1GL,CACD,CAAA,IACAO,EAAW,UAAA,EAAGM,cAAaC,EAAc,CACxC,IAAK,EACL,OAAQV,EAAM,YACb,EAAA,KAAM,EAAG,CAAC,QAAQ,CAAC,IAXvBG,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAOV,EAAY,CACpDa,qBAAoB,OAAQ,KAAMC,EAAA,gBAAiBP,EAAK,GAAG,+CAA+C,CAAC,EAAG,CAAC,CAChH,CAAA,EASuB,CAC7B,EAEH,CAEA,CAAC"}
1
+ {"version":3,"file":"pat-shared-components67.js","sources":["../src/components/BookingDetail/TotalPayment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-pb-4 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_2 = { class: \"psc-flex\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-statement-thick\" })\n], -1)\nconst _hoisted_4 = { class: \"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]\" }\n\nimport { useCurrency } from '@/composables/Currency';\n\n/**\n * Props\n */\nexport interface Props {\n totalAmount: number;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TotalPayment',\n props: {\n totalAmount: null\n },\n setup(__props: any) {\n\nconst props = __props as { totalAmount: number };\n\n\n\n/**\n * Data\n */\nconst { getDisplayAmount } = useCurrency();\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, _toDisplayString(_ctx.$t('psc.test_result_booking_total_payment')), 1),\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_unref(getDisplayAmount)(props.totalAmount)), 1)\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_4","_sfc_main","_defineComponent","__props","props","getDisplayAmount","useCurrency","_ctx","_cache","_openBlock","_createElementBlock","_toDisplayString","_unref"],"mappings":"+EAGMA,EAAa,CAAE,MAAO,oDACtBC,EAAa,CAAE,MAAO,YACtBC,EAA8CC,EAAAA,mBAAA,MAAO,CAAE,MAAO,0EAA4E,CAC7GA,EAAAA,mBAAA,IAAK,CAAE,MAAO,uBAAwB,CACzE,EAAG,EAAE,EACCC,EAAa,CAAE,MAAO,4EAWAC,EAAiBC,kBAAA,CAC3C,OAAQ,eACR,MAAO,CACL,YAAa,IACf,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAOR,CAAE,iBAAAE,GAAqBC,EAAAA,cAEtB,MAAA,CAACC,EAAUC,KACRC,YAAW,EAAGC,qBAAoB,MAAO,KAAM,CACrDX,qBAAoB,MAAOH,EAAYe,EAAA,gBAAiBJ,EAAK,GAAG,uCAAuC,CAAC,EAAG,CAAC,EAC5GR,EAAA,mBAAoB,MAAOF,EAAY,CACrCC,EACAC,EAAAA,mBAAoB,MAAOC,EAAYW,EAAAA,gBAAiBC,EAAA,MAAOP,CAAgB,EAAED,EAAM,WAAW,CAAC,EAAG,CAAC,CAAA,CACxG,CAAA,CACF,EAEH,CAEA,CAAC"}
@@ -1,35 +1,24 @@
1
- import { defineComponent as u, openBlock as t, createElementBlock as s, createElementVNode as l, toDisplayString as n, unref as a, createBlock as r } from "vue";
2
- import { BookingStatus as i } from "./pat-shared-components4.mjs";
3
- import p from "./pat-shared-components172.mjs";
4
- const _ = {
5
- key: 0,
6
- class: "psc-w-full psc-font-semibold psc-text-blue-darken-2"
7
- }, d = {
8
- key: 1,
9
- class: "psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1"
10
- }, m = /* @__PURE__ */ l("i", { class: "dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl" }, null, -1), S = /* @__PURE__ */ u({
11
- __name: "BookingResultStatus",
1
+ import { defineComponent as n, openBlock as p, createElementBlock as a, createElementVNode as t, toDisplayString as s, unref as i } from "vue";
2
+ import { useCurrency as r } from "./pat-shared-components167.mjs";
3
+ const m = { class: "psc-pb-4 psc-font-semibold psc-text-black/[0.85]" }, _ = { class: "psc-flex" }, d = /* @__PURE__ */ t("div", { class: "psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]" }, [
4
+ /* @__PURE__ */ t("i", { class: "dgic-statement-thick" })
5
+ ], -1), u = { class: "psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]" }, b = /* @__PURE__ */ n({
6
+ __name: "TotalPayment",
12
7
  props: {
13
- testResultKey: { default: "" },
14
- resultStatus: null,
15
- bookingStatus: null
8
+ totalAmount: null
16
9
  },
17
- setup(c) {
18
- const e = c;
19
- return (o, k) => (t(), s("div", null, [
20
- e.testResultKey ? e.bookingStatus === a(i).Canceled ? (t(), s("div", d, [
21
- l("span", null, n(o.$t("psc.test_result_booking_booking_canceled")), 1),
22
- m
23
- ])) : (t(), r(p, {
24
- key: 2,
25
- status: e.resultStatus
26
- }, null, 8, ["status"])) : (t(), s("div", _, [
27
- l("span", null, n(o.$t("psc.test_result_booking_results_will_be_there")), 1)
28
- ]))
10
+ setup(e) {
11
+ const c = e, { getDisplayAmount: o } = r();
12
+ return (l, f) => (p(), a("div", null, [
13
+ t("div", m, s(l.$t("psc.test_result_booking_total_payment")), 1),
14
+ t("div", _, [
15
+ d,
16
+ t("div", u, s(i(o)(c.totalAmount)), 1)
17
+ ])
29
18
  ]));
30
19
  }
31
20
  });
32
21
  export {
33
- S as default
22
+ b as default
34
23
  };
35
24
  //# sourceMappingURL=pat-shared-components67.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components67.mjs","sources":["../src/components/BookingDetail/BookingResultStatus.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-w-full psc-font-semibold psc-text-blue-darken-2\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl\" }, null, -1)\n\nimport { BookingStatus, TestResultStatus } from '@/constants/Enums';\nimport ResultStatus from '@/components/Shared/ResultStatus.vue';\n\n/**\n * Props\n */\nexport interface Props {\n testResultKey?: string;\n resultStatus: TestResultStatus;\n bookingStatus: BookingStatus;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingResultStatus',\n props: {\n testResultKey: { default: '' },\n resultStatus: null,\n bookingStatus: null\n },\n setup(__props: any) {\n\nconst props = __props as { testResultKey: string, resultStatus: TestResultStatus, bookingStatus: BookingStatus };\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (!props.testResultKey)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('psc.test_result_booking_results_will_be_there')), 1)\n ]))\n : (props.bookingStatus === _unref(BookingStatus).Canceled)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('psc.test_result_booking_booking_canceled')), 1),\n _hoisted_3\n ]))\n : (_openBlock(), _createBlock(ResultStatus, {\n key: 2,\n status: props.resultStatus\n }, null, 8, [\"status\"]))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","props","_ctx","_cache","_openBlock","_createElementBlock","_unref","BookingStatus","_createElementVNode","_toDisplayString","_createBlock","ResultStatus"],"mappings":";;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,sBAA8C,KAAK,EAAE,OAAO,iFAAiF,MAAM,EAAE,GAc/HC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,eAAe,EAAE,SAAS,GAAG;AAAA,IAC7B,cAAc;AAAA,IACd,eAAe;AAAA,EACjB;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD;AAIP,WAAA,CAACE,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO,MAAM;AAAA,MACnDJ,EAAM,gBAIHA,EAAM,kBAAkBK,EAAOC,CAAa,EAAE,YAC5CH,EAAW,GAAGC,EAAoB,OAAOT,GAAY;AAAA,QACpDY,EAAoB,QAAQ,MAAMC,EAAiBP,EAAK,GAAG,0CAA0C,CAAC,GAAG,CAAC;AAAA,QAC1GL;AAAA,MACD,CAAA,MACAO,EAAW,GAAGM,EAAaC,GAAc;AAAA,QACxC,KAAK;AAAA,QACL,QAAQV,EAAM;AAAA,MACb,GAAA,MAAM,GAAG,CAAC,QAAQ,CAAC,MAXvBG,EAAc,GAAAC,EAAoB,OAAOV,GAAY;AAAA,QACpDa,EAAoB,QAAQ,MAAMC,EAAiBP,EAAK,GAAG,+CAA+C,CAAC,GAAG,CAAC;AAAA,MAChH,CAAA;AAAA,IASuB,CAC7B;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"pat-shared-components67.mjs","sources":["../src/components/BookingDetail/TotalPayment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-pb-4 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_2 = { class: \"psc-flex\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-statement-thick\" })\n], -1)\nconst _hoisted_4 = { class: \"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]\" }\n\nimport { useCurrency } from '@/composables/Currency';\n\n/**\n * Props\n */\nexport interface Props {\n totalAmount: number;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TotalPayment',\n props: {\n totalAmount: null\n },\n setup(__props: any) {\n\nconst props = __props as { totalAmount: number };\n\n\n\n/**\n * Data\n */\nconst { getDisplayAmount } = useCurrency();\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, _toDisplayString(_ctx.$t('psc.test_result_booking_total_payment')), 1),\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_unref(getDisplayAmount)(props.totalAmount)), 1)\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_4","_sfc_main","_defineComponent","__props","props","getDisplayAmount","useCurrency","_ctx","_cache","_openBlock","_createElementBlock","_toDisplayString","_unref"],"mappings":";;AAGA,MAAMA,IAAa,EAAE,OAAO,sDACtBC,IAAa,EAAE,OAAO,cACtBC,IAA8CC,gBAAAA,EAAA,OAAO,EAAE,OAAO,4EAA4E;AAAA,EAC7GA,gBAAAA,EAAA,KAAK,EAAE,OAAO,wBAAwB;AACzE,GAAG,EAAE,GACCC,IAAa,EAAE,OAAO,8EAWAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa;AAAA,EACf;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAOR,EAAE,kBAAAE,MAAqBC;AAEtB,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO,MAAM;AAAA,MACrDX,EAAoB,OAAOH,GAAYe,EAAiBJ,EAAK,GAAG,uCAAuC,CAAC,GAAG,CAAC;AAAA,MAC5GR,EAAoB,OAAOF,GAAY;AAAA,QACrCC;AAAA,QACAC,EAAoB,OAAOC,GAAYW,EAAiBC,EAAOP,CAAgB,EAAED,EAAM,WAAW,CAAC,GAAG,CAAC;AAAA,MAAA,CACxG;AAAA,IAAA,CACF;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./pat-shared-components121.js");require("./pat-shared-components122.js");const t=require("./pat-shared-components39.js"),r=t(e,[["__scopeId","data-v-b1b7cc48"]]);module.exports=r;
1
+ "use strict";const e=require("vue"),c=require("./pat-shared-components88.js"),n=require("./pat-shared-components74.js"),a={class:"psc-space-y-4"},p={class:"psc-w-20 psc-flex-initial psc-text-black/[0.85]"},i={class:"psc-flex-auto"},u=["href"],_=e.defineComponent({__name:"DiagSupport",setup(d){const{t}=c.useI18n(),o=e.computed(()=>[{label:t("psc.test_result_booking_support_zalo"),text:"Diag Laboratories",href:"https://zalo.me/1687121322887646763"},{label:t("psc.test_result_booking_support_hotline"),text:"19001717",href:"tel:19001717"},{label:t("psc.test_result_booking_support_email"),text:"customersupport@diag.vn",href:"mailto:customersupport@diag.vn"}]);return(r,m)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("psc.test_result_support")),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(s,l)=>(e.openBlock(),e.createElementBlock("div",{key:`link${l}`,class:"psc-flex"},[e.createElementVNode("div",p,e.toDisplayString(s.label),1),e.createElementVNode("div",i,[e.createElementVNode("a",{class:"psc-text-blue-darken-1",href:s.href},e.toDisplayString(s.text),9,u)])]))),128))]))}});module.exports=_;
2
2
  //# sourceMappingURL=pat-shared-components68.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components68.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"pat-shared-components68.js","sources":["../src/components/BookingDetail/DiagSupport.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-space-y-4\" }\nconst _hoisted_2 = { class: \"psc-w-20 psc-flex-initial psc-text-black/[0.85]\" }\nconst _hoisted_3 = { class: \"psc-flex-auto\" }\nconst _hoisted_4 = [\"href\"]\n\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport SectionTitle from '../Shared/SectionTitle.vue';\n\n/**\n * Data\n */\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DiagSupport',\n setup(__props) {\n\nconst { t } = useI18n();\nconst links = computed(() => [\n {\n label: t('psc.test_result_booking_support_zalo'),\n text: 'Diag Laboratories',\n href: 'https://zalo.me/1687121322887646763',\n },\n {\n label: t('psc.test_result_booking_support_hotline'),\n text: '19001717',\n href: 'tel:19001717',\n },\n {\n label: t('psc.test_result_booking_support_email'),\n text: 'customersupport@diag.vn',\n href: 'mailto:customersupport@diag.vn',\n },\n]);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(SectionTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_support')), 1)\n ]),\n _: 1\n }),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(links), (link, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `link${i}`,\n class: \"psc-flex\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(link.label), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"a\", {\n class: \"psc-text-blue-darken-1\",\n href: link.href\n }, _toDisplayString(link.text), 9, _hoisted_4)\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","useI18n","links","computed","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","SectionTitle","_withCtx","_createTextVNode","_toDisplayString","_Fragment","_renderList","_unref","link","i","_createElementVNode"],"mappings":"wHAGMA,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAE,MAAO,mDACtBC,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAC,MAAM,EAUEC,EAAiBC,kBAAA,CAC3C,OAAQ,cACR,MAAMC,EAAS,CAEX,KAAA,CAAE,GAAMC,EAAAA,UACRC,EAAQC,EAAAA,SAAS,IAAM,CAC3B,CACE,MAAO,EAAE,sCAAsC,EAC/C,KAAM,oBACN,KAAM,qCACR,EACA,CACE,MAAO,EAAE,yCAAyC,EAClD,KAAM,WACN,KAAM,cACR,EACA,CACE,MAAO,EAAE,uCAAuC,EAChD,KAAM,0BACN,KAAM,gCACR,CAAA,CACD,EAEM,MAAA,CAACC,EAAUC,KACRC,YAAW,EAAGC,qBAAoB,MAAOb,EAAY,CAC3Dc,EAAA,YAAaC,EAAc,KAAM,CAC/B,QAASC,UAAS,IAAM,CACtBC,kBAAiBC,EAAiB,gBAAAR,EAAK,GAAG,yBAAyB,CAAC,EAAG,CAAC,CAAA,CACzE,EACD,EAAG,CAAA,CACJ,GACAE,EAAAA,UAAW,EAAI,EAAGC,EAAA,mBAAoBM,EAAW,SAAA,KAAMC,aAAYC,EAAAA,MAAOb,CAAK,EAAG,CAACc,EAAMC,KAChFX,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,IAAK,OAAOU,IACZ,MAAO,UAAA,EACN,CACDC,qBAAoB,MAAOvB,EAAYiB,EAAAA,gBAAiBI,EAAK,KAAK,EAAG,CAAC,EACtEE,EAAA,mBAAoB,MAAOtB,EAAY,CACrCsB,EAAAA,mBAAoB,IAAK,CACvB,MAAO,yBACP,KAAMF,EAAK,MACVJ,EAAiB,gBAAAI,EAAK,IAAI,EAAG,EAAGnB,CAAU,CAAA,CAC9C,CAAA,CACF,EACF,EAAG,GAAG,EAAA,CACR,EAEH,CAEA,CAAC"}
@@ -1,8 +1,49 @@
1
- import o from "./pat-shared-components121.mjs";
2
- import "./pat-shared-components122.mjs";
3
- import t from "./pat-shared-components39.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b1b7cc48"]]);
1
+ import { defineComponent as n, computed as i, openBlock as s, createElementBlock as o, createVNode as _, withCtx as u, createTextVNode as d, toDisplayString as r, Fragment as m, renderList as f, unref as h, createElementVNode as l } from "vue";
2
+ import { useI18n as x } from "./pat-shared-components88.mjs";
3
+ import b from "./pat-shared-components74.mjs";
4
+ const g = { class: "psc-space-y-4" }, k = { class: "psc-w-20 psc-flex-initial psc-text-black/[0.85]" }, v = { class: "psc-flex-auto" }, y = ["href"], z = /* @__PURE__ */ n({
5
+ __name: "DiagSupport",
6
+ setup(D) {
7
+ const { t } = x(), c = i(() => [
8
+ {
9
+ label: t("psc.test_result_booking_support_zalo"),
10
+ text: "Diag Laboratories",
11
+ href: "https://zalo.me/1687121322887646763"
12
+ },
13
+ {
14
+ label: t("psc.test_result_booking_support_hotline"),
15
+ text: "19001717",
16
+ href: "tel:19001717"
17
+ },
18
+ {
19
+ label: t("psc.test_result_booking_support_email"),
20
+ text: "customersupport@diag.vn",
21
+ href: "mailto:customersupport@diag.vn"
22
+ }
23
+ ]);
24
+ return (p, N) => (s(), o("div", g, [
25
+ _(b, null, {
26
+ default: u(() => [
27
+ d(r(p.$t("psc.test_result_support")), 1)
28
+ ]),
29
+ _: 1
30
+ }),
31
+ (s(!0), o(m, null, f(h(c), (e, a) => (s(), o("div", {
32
+ key: `link${a}`,
33
+ class: "psc-flex"
34
+ }, [
35
+ l("div", k, r(e.label), 1),
36
+ l("div", v, [
37
+ l("a", {
38
+ class: "psc-text-blue-darken-1",
39
+ href: e.href
40
+ }, r(e.text), 9, y)
41
+ ])
42
+ ]))), 128))
43
+ ]));
44
+ }
45
+ });
5
46
  export {
6
- p as default
47
+ z as default
7
48
  };
8
49
  //# sourceMappingURL=pat-shared-components68.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pat-shared-components68.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"pat-shared-components68.mjs","sources":["../src/components/BookingDetail/DiagSupport.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"psc-space-y-4\" }\nconst _hoisted_2 = { class: \"psc-w-20 psc-flex-initial psc-text-black/[0.85]\" }\nconst _hoisted_3 = { class: \"psc-flex-auto\" }\nconst _hoisted_4 = [\"href\"]\n\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport SectionTitle from '../Shared/SectionTitle.vue';\n\n/**\n * Data\n */\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DiagSupport',\n setup(__props) {\n\nconst { t } = useI18n();\nconst links = computed(() => [\n {\n label: t('psc.test_result_booking_support_zalo'),\n text: 'Diag Laboratories',\n href: 'https://zalo.me/1687121322887646763',\n },\n {\n label: t('psc.test_result_booking_support_hotline'),\n text: '19001717',\n href: 'tel:19001717',\n },\n {\n label: t('psc.test_result_booking_support_email'),\n text: 'customersupport@diag.vn',\n href: 'mailto:customersupport@diag.vn',\n },\n]);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(SectionTitle, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_support')), 1)\n ]),\n _: 1\n }),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(links), (link, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `link${i}`,\n class: \"psc-flex\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(link.label), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"a\", {\n class: \"psc-text-blue-darken-1\",\n href: link.href\n }, _toDisplayString(link.text), 9, _hoisted_4)\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","useI18n","links","computed","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","SectionTitle","_withCtx","_createTextVNode","_toDisplayString","_Fragment","_renderList","_unref","link","i","_createElementVNode"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,mBACtBC,IAAa,EAAE,OAAO,qDACtBC,IAAa,EAAE,OAAO,mBACtBC,IAAa,CAAC,MAAM,GAUEC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,MAAMC,GAAS;AAEX,UAAA,EAAE,MAAMC,KACRC,IAAQC,EAAS,MAAM;AAAA,MAC3B;AAAA,QACE,OAAO,EAAE,sCAAsC;AAAA,QAC/C,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,OAAO,EAAE,yCAAyC;AAAA,QAClD,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,OAAO,EAAE,uCAAuC;AAAA,QAChD,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IAAA,CACD;AAEM,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAOb,GAAY;AAAA,MAC3Dc,EAAaC,GAAc,MAAM;AAAA,QAC/B,SAASC,EAAS,MAAM;AAAA,UACtBC,EAAiBC,EAAiBR,EAAK,GAAG,yBAAyB,CAAC,GAAG,CAAC;AAAA,QAAA,CACzE;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,OACAE,EAAW,EAAI,GAAGC,EAAoBM,GAAW,MAAMC,EAAYC,EAAOb,CAAK,GAAG,CAACc,GAAMC,OAChFX,EAAA,GAAcC,EAAoB,OAAO;AAAA,QAC/C,KAAK,OAAOU;AAAA,QACZ,OAAO;AAAA,MAAA,GACN;AAAA,QACDC,EAAoB,OAAOvB,GAAYiB,EAAiBI,EAAK,KAAK,GAAG,CAAC;AAAA,QACtEE,EAAoB,OAAOtB,GAAY;AAAA,UACrCsB,EAAoB,KAAK;AAAA,YACvB,OAAO;AAAA,YACP,MAAMF,EAAK;AAAA,aACVJ,EAAiBI,EAAK,IAAI,GAAG,GAAGnB,CAAU;AAAA,QAAA,CAC9C;AAAA,MAAA,CACF,EACF,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,EAEH;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),d=require("./pat-shared-components4.js");function l(e){const r=n.computed(()=>({first_name:e.value.first_name,date_of_birth:e.value.date_of_birth,document_number:e.value.document_number,document_type:e.value.document_type,gender:e.value.gender,phone_number:e.value.phone_number,address:e.value.address,email:e.value.email})),m=n.computed(()=>{var u,t,a,c;return((u=e.value.account)==null?void 0:u.account_segment)===d.AccountSegment.Doctor?{name:(t=e.value.account)==null?void 0:t.name,account_code:(a=e.value.account)==null?void 0:a.account_code,phone_number:(c=e.value.account)==null?void 0:c.phone_number}:void 0});return{patient:r,doctor:m}}exports.useBookingDetail=l;
1
+ "use strict";const e=require("vue"),i=require("./pat-shared-components168.js"),_=require("./pat-shared-components62.js"),g=require("./pat-shared-components88.js"),m=require("./pat-shared-components74.js"),b={key:0,class:"psc-space-y-4"},k={class:"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},f=e.defineComponent({__name:"SampleCollectionInfo",props:{booking:null},setup(l){const o=l,{t:a}=g.useI18n(),{formatDateHuge:p}=_.useDate(),c=e.computed(()=>{var t,s,n,r;return{address:(t=o.booking.data)!=null&&t.is_hbc?o.booking.address:(n=(s=o.booking.data)==null?void 0:s.supportingInformation)==null?void 0:n.appointmentSampleCollectionPlace,expectedDate:(r=o.booking.data)==null?void 0:r.planned_test_date}}),d=e.computed(()=>{var t,s,n;return(!!o.booking.address||!!((s=(t=o.booking.data)==null?void 0:t.supportingInformation)!=null&&s.appointmentSampleCollectionPlace))&&!!((n=o.booking.data)!=null&&n.planned_test_date)}),u=e.computed(()=>{var t;return(t=o.booking.data)!=null&&t.is_hbc?a("psc.test_result_booking_sample_collection"):a("psc.test_result_booking_testing_location")});return(t,s)=>e.unref(d)?(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)),1)]),_:1}),e.createElementVNode("div",k,[e.unref(c).address?(e.openBlock(),e.createBlock(i,{key:0,icon:"dgic-pin-map-thick",title:t.$t("psc.test_result_booking_address"),subtitle:e.unref(c).address,class:"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']"},null,8,["title","subtitle"])):e.createCommentVNode("",!0),e.unref(c).expectedDate?(e.openBlock(),e.createBlock(i,{key:1,icon:"dgic-date-thick",title:t.$t("psc.test_result_booking_expected_date"),subtitle:e.unref(p)(new Date(e.unref(c).expectedDate))},null,8,["title","subtitle"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}});module.exports=f;
2
2
  //# sourceMappingURL=pat-shared-components69.js.map