pat-shared-components 1.3.0-beta.40 → 1.3.0-beta.42
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.
- package/dist/pat-shared-components102.js +1 -1
- package/dist/pat-shared-components102.mjs +2 -2
- package/dist/pat-shared-components103.js +1 -1
- package/dist/pat-shared-components103.mjs +1 -1
- package/dist/pat-shared-components104.js +1 -1
- package/dist/pat-shared-components104.mjs +4 -4
- package/dist/pat-shared-components105.js +1 -1
- package/dist/pat-shared-components105.mjs +7 -7
- package/dist/pat-shared-components106.js +1 -1
- package/dist/pat-shared-components106.mjs +2 -2
- package/dist/pat-shared-components107.js +1 -1
- package/dist/pat-shared-components107.mjs +2 -2
- package/dist/pat-shared-components108.js +1 -1
- package/dist/pat-shared-components108.mjs +2 -2
- package/dist/pat-shared-components11.js +1 -1
- package/dist/pat-shared-components11.mjs +1 -1
- package/dist/pat-shared-components111.js +1 -1
- package/dist/pat-shared-components111.mjs +1 -1
- package/dist/pat-shared-components12.js +1 -1
- package/dist/pat-shared-components12.mjs +1 -1
- package/dist/pat-shared-components120.js +1 -1
- package/dist/pat-shared-components120.mjs +1 -1
- package/dist/pat-shared-components123.js +1 -1
- package/dist/pat-shared-components123.mjs +1 -1
- package/dist/pat-shared-components124.js +1 -1
- package/dist/pat-shared-components124.mjs +1 -1
- package/dist/pat-shared-components125.js +1 -1
- package/dist/pat-shared-components125.mjs +1 -1
- package/dist/pat-shared-components126.js +1 -1
- package/dist/pat-shared-components126.mjs +1 -1
- package/dist/pat-shared-components127.js +1 -1
- package/dist/pat-shared-components127.mjs +1 -1
- package/dist/pat-shared-components128.js +1 -1
- package/dist/pat-shared-components128.mjs +1 -1
- package/dist/pat-shared-components129.js +1 -1
- package/dist/pat-shared-components129.mjs +1 -1
- package/dist/pat-shared-components130.js +1 -1
- package/dist/pat-shared-components130.js.map +1 -1
- package/dist/pat-shared-components130.mjs +155 -2
- package/dist/pat-shared-components130.mjs.map +1 -1
- package/dist/pat-shared-components131.js +1 -1
- package/dist/pat-shared-components131.mjs +2 -2
- package/dist/pat-shared-components132.js +1 -1
- package/dist/pat-shared-components132.mjs +1 -1
- package/dist/pat-shared-components133.js +1 -1
- package/dist/pat-shared-components133.mjs +1 -1
- package/dist/pat-shared-components134.js +1 -1
- package/dist/pat-shared-components134.js.map +1 -1
- package/dist/pat-shared-components134.mjs +2 -140
- package/dist/pat-shared-components134.mjs.map +1 -1
- package/dist/pat-shared-components135.js +1 -1
- package/dist/pat-shared-components135.mjs +2 -2
- package/dist/pat-shared-components136.js +1 -1
- package/dist/pat-shared-components136.mjs +1 -1
- package/dist/pat-shared-components137.js +1 -1
- package/dist/pat-shared-components137.mjs +1 -1
- package/dist/pat-shared-components138.js +1 -1
- package/dist/pat-shared-components138.mjs +1 -1
- package/dist/pat-shared-components139.js +1 -1
- package/dist/pat-shared-components139.mjs +1 -1
- package/dist/pat-shared-components14.js +1 -1
- package/dist/pat-shared-components14.mjs +6 -6
- package/dist/pat-shared-components140.js +1 -1
- package/dist/pat-shared-components140.js.map +1 -1
- package/dist/pat-shared-components140.mjs +25 -2
- package/dist/pat-shared-components140.mjs.map +1 -1
- package/dist/pat-shared-components141.js +1 -1
- package/dist/pat-shared-components141.js.map +1 -1
- package/dist/pat-shared-components141.mjs +77 -2
- package/dist/pat-shared-components141.mjs.map +1 -1
- package/dist/pat-shared-components142.js +1 -1
- package/dist/pat-shared-components142.mjs +2 -2
- package/dist/pat-shared-components143.js +1 -1
- package/dist/pat-shared-components143.js.map +1 -1
- package/dist/pat-shared-components143.mjs +56 -25
- package/dist/pat-shared-components143.mjs.map +1 -1
- package/dist/pat-shared-components144.js +1 -1
- package/dist/pat-shared-components144.mjs +2 -2
- package/dist/pat-shared-components145.js +1 -1
- package/dist/pat-shared-components145.js.map +1 -1
- package/dist/pat-shared-components145.mjs +54 -60
- package/dist/pat-shared-components145.mjs.map +1 -1
- package/dist/pat-shared-components147.js +1 -1
- package/dist/pat-shared-components147.js.map +1 -1
- package/dist/pat-shared-components147.mjs +2 -56
- package/dist/pat-shared-components147.mjs.map +1 -1
- package/dist/pat-shared-components148.js +1 -1
- package/dist/pat-shared-components148.mjs +2 -2
- package/dist/pat-shared-components149.js +1 -1
- package/dist/pat-shared-components149.js.map +1 -1
- package/dist/pat-shared-components149.mjs +2 -71
- package/dist/pat-shared-components149.mjs.map +1 -1
- package/dist/pat-shared-components150.js +1 -1
- package/dist/pat-shared-components150.mjs +2 -2
- package/dist/pat-shared-components151.js +1 -5
- package/dist/pat-shared-components151.js.map +1 -1
- package/dist/pat-shared-components151.mjs +8 -9
- package/dist/pat-shared-components151.mjs.map +1 -1
- package/dist/pat-shared-components152.js +5 -1
- package/dist/pat-shared-components152.js.map +1 -1
- package/dist/pat-shared-components152.mjs +789 -8
- package/dist/pat-shared-components152.mjs.map +1 -1
- package/dist/pat-shared-components153.js +1 -5
- package/dist/pat-shared-components153.js.map +1 -1
- package/dist/pat-shared-components153.mjs +5 -790
- package/dist/pat-shared-components153.mjs.map +1 -1
- package/dist/pat-shared-components154.js +1 -1
- package/dist/pat-shared-components154.js.map +1 -1
- package/dist/pat-shared-components154.mjs +25 -5
- package/dist/pat-shared-components154.mjs.map +1 -1
- package/dist/pat-shared-components155.js +4 -1
- package/dist/pat-shared-components155.js.map +1 -1
- package/dist/pat-shared-components155.mjs +1364 -25
- package/dist/pat-shared-components155.mjs.map +1 -1
- package/dist/pat-shared-components156.js +1 -4
- package/dist/pat-shared-components156.js.map +1 -1
- package/dist/pat-shared-components156.mjs +92 -1359
- package/dist/pat-shared-components156.mjs.map +1 -1
- package/dist/pat-shared-components157.js +1 -1
- package/dist/pat-shared-components157.js.map +1 -1
- package/dist/pat-shared-components157.mjs +16 -96
- package/dist/pat-shared-components157.mjs.map +1 -1
- package/dist/pat-shared-components158.js +1 -1
- package/dist/pat-shared-components158.js.map +1 -1
- package/dist/pat-shared-components158.mjs +62 -16
- package/dist/pat-shared-components158.mjs.map +1 -1
- package/dist/pat-shared-components159.js +1 -1
- package/dist/pat-shared-components159.js.map +1 -1
- package/dist/pat-shared-components159.mjs +11 -59
- package/dist/pat-shared-components159.mjs.map +1 -1
- package/dist/pat-shared-components16.js +1 -1
- package/dist/pat-shared-components16.mjs +5 -5
- package/dist/pat-shared-components160.js +1 -1
- package/dist/pat-shared-components160.js.map +1 -1
- package/dist/pat-shared-components160.mjs +102 -11
- package/dist/pat-shared-components160.mjs.map +1 -1
- package/dist/pat-shared-components161.js +1 -1
- package/dist/pat-shared-components161.js.map +1 -1
- package/dist/pat-shared-components161.mjs +7 -106
- package/dist/pat-shared-components161.mjs.map +1 -1
- package/dist/pat-shared-components162.js +1 -1
- package/dist/pat-shared-components162.js.map +1 -1
- package/dist/pat-shared-components162.mjs +4 -7
- package/dist/pat-shared-components162.mjs.map +1 -1
- package/dist/pat-shared-components163.js +1 -1
- package/dist/pat-shared-components163.js.map +1 -1
- package/dist/pat-shared-components163.mjs +48 -4
- package/dist/pat-shared-components163.mjs.map +1 -1
- package/dist/pat-shared-components164.js +5 -1
- package/dist/pat-shared-components164.js.map +1 -1
- package/dist/pat-shared-components164.mjs +10 -48
- package/dist/pat-shared-components164.mjs.map +1 -1
- package/dist/pat-shared-components167.js +1 -1
- package/dist/pat-shared-components167.mjs +1 -1
- package/dist/pat-shared-components168.js +1 -1
- package/dist/pat-shared-components168.mjs +1 -1
- package/dist/pat-shared-components170.js +1 -1
- package/dist/pat-shared-components170.mjs +1 -1
- package/dist/pat-shared-components171.js +1 -1
- package/dist/pat-shared-components171.mjs +1 -1
- package/dist/pat-shared-components174.js +1 -1
- package/dist/pat-shared-components174.js.map +1 -1
- package/dist/pat-shared-components174.mjs +7 -10
- package/dist/pat-shared-components174.mjs.map +1 -1
- package/dist/pat-shared-components175.js +1 -1
- package/dist/pat-shared-components175.js.map +1 -1
- package/dist/pat-shared-components175.mjs +9 -39
- package/dist/pat-shared-components175.mjs.map +1 -1
- package/dist/pat-shared-components176.js +1 -1
- package/dist/pat-shared-components176.js.map +1 -1
- package/dist/pat-shared-components176.mjs +10 -7
- package/dist/pat-shared-components176.mjs.map +1 -1
- package/dist/pat-shared-components177.js +1 -1
- package/dist/pat-shared-components177.js.map +1 -1
- package/dist/pat-shared-components177.mjs +37 -10
- package/dist/pat-shared-components177.mjs.map +1 -1
- package/dist/pat-shared-components178.js +1 -1
- package/dist/pat-shared-components178.js.map +1 -1
- package/dist/pat-shared-components178.mjs +13 -37
- package/dist/pat-shared-components178.mjs.map +1 -1
- package/dist/pat-shared-components179.js +1 -1
- package/dist/pat-shared-components179.js.map +1 -1
- package/dist/pat-shared-components179.mjs +27 -13
- package/dist/pat-shared-components179.mjs.map +1 -1
- package/dist/pat-shared-components18.js +1 -1
- package/dist/pat-shared-components18.mjs +3 -3
- package/dist/pat-shared-components180.js +1 -1
- package/dist/pat-shared-components180.js.map +1 -1
- package/dist/pat-shared-components180.mjs +52 -21
- package/dist/pat-shared-components180.mjs.map +1 -1
- package/dist/pat-shared-components181.js +1 -1
- package/dist/pat-shared-components181.js.map +1 -1
- package/dist/pat-shared-components181.mjs +74 -54
- package/dist/pat-shared-components181.mjs.map +1 -1
- package/dist/pat-shared-components182.js +1 -6
- package/dist/pat-shared-components182.js.map +1 -1
- package/dist/pat-shared-components182.mjs +19 -106
- package/dist/pat-shared-components182.mjs.map +1 -1
- package/dist/pat-shared-components183.js +1 -6
- package/dist/pat-shared-components183.js.map +1 -1
- package/dist/pat-shared-components183.mjs +17 -948
- package/dist/pat-shared-components183.mjs.map +1 -1
- package/dist/pat-shared-components184.js +1 -7
- package/dist/pat-shared-components184.js.map +1 -1
- package/dist/pat-shared-components184.mjs +16 -861
- package/dist/pat-shared-components184.mjs.map +1 -1
- package/dist/pat-shared-components185.js +1 -1
- package/dist/pat-shared-components185.js.map +1 -1
- package/dist/pat-shared-components185.mjs +15 -5
- package/dist/pat-shared-components185.mjs.map +1 -1
- package/dist/pat-shared-components186.js +1 -1
- package/dist/pat-shared-components186.js.map +1 -1
- package/dist/pat-shared-components186.mjs +33 -3
- package/dist/pat-shared-components186.mjs.map +1 -1
- package/dist/pat-shared-components187.js +1 -1
- package/dist/pat-shared-components187.js.map +1 -1
- package/dist/pat-shared-components187.mjs +5 -2
- package/dist/pat-shared-components187.mjs.map +1 -1
- package/dist/pat-shared-components188.js +1 -1
- package/dist/pat-shared-components188.js.map +1 -1
- package/dist/pat-shared-components188.mjs +18 -78
- package/dist/pat-shared-components188.mjs.map +1 -1
- package/dist/pat-shared-components189.js +1 -1
- package/dist/pat-shared-components189.mjs +16 -16
- package/dist/pat-shared-components19.js +1 -1
- package/dist/pat-shared-components19.js.map +1 -1
- package/dist/pat-shared-components19.mjs +25 -25
- package/dist/pat-shared-components19.mjs.map +1 -1
- package/dist/pat-shared-components190.js +1 -1
- package/dist/pat-shared-components190.js.map +1 -1
- package/dist/pat-shared-components190.mjs +39 -18
- package/dist/pat-shared-components190.mjs.map +1 -1
- package/dist/pat-shared-components191.js +6 -1
- package/dist/pat-shared-components191.js.map +1 -1
- package/dist/pat-shared-components191.mjs +106 -15
- package/dist/pat-shared-components191.mjs.map +1 -1
- package/dist/pat-shared-components192.js +6 -1
- package/dist/pat-shared-components192.js.map +1 -1
- package/dist/pat-shared-components192.mjs +948 -14
- package/dist/pat-shared-components192.mjs.map +1 -1
- package/dist/pat-shared-components193.js +7 -1
- package/dist/pat-shared-components193.js.map +1 -1
- package/dist/pat-shared-components193.mjs +861 -34
- package/dist/pat-shared-components193.mjs.map +1 -1
- package/dist/pat-shared-components194.js +1 -1
- package/dist/pat-shared-components194.js.map +1 -1
- package/dist/pat-shared-components194.mjs +6 -5
- package/dist/pat-shared-components194.mjs.map +1 -1
- package/dist/pat-shared-components195.js +1 -1
- package/dist/pat-shared-components195.js.map +1 -1
- package/dist/pat-shared-components195.mjs +3 -17
- package/dist/pat-shared-components195.mjs.map +1 -1
- package/dist/pat-shared-components196.js +1 -1
- package/dist/pat-shared-components196.js.map +1 -1
- package/dist/pat-shared-components196.mjs +2 -20
- package/dist/pat-shared-components196.mjs.map +1 -1
- package/dist/pat-shared-components20.js +1 -1
- package/dist/pat-shared-components20.mjs +2 -2
- package/dist/pat-shared-components203.js +1 -1
- package/dist/pat-shared-components203.mjs +1 -1
- package/dist/pat-shared-components204.js +1 -1
- package/dist/pat-shared-components204.mjs +1 -1
- package/dist/pat-shared-components205.js +1 -1
- package/dist/pat-shared-components205.mjs +3 -3
- package/dist/pat-shared-components206.js +1 -1
- package/dist/pat-shared-components206.mjs +1 -1
- package/dist/pat-shared-components207.js +1 -1
- package/dist/pat-shared-components207.mjs +1 -1
- package/dist/pat-shared-components208.js +1 -1
- package/dist/pat-shared-components208.mjs +1 -1
- package/dist/pat-shared-components209.js +1 -1
- package/dist/pat-shared-components209.js.map +1 -1
- package/dist/pat-shared-components209.mjs +2 -9
- package/dist/pat-shared-components209.mjs.map +1 -1
- package/dist/pat-shared-components21.js +1 -1
- package/dist/pat-shared-components21.mjs +4 -4
- package/dist/pat-shared-components210.js +1 -1
- package/dist/pat-shared-components210.js.map +1 -1
- package/dist/pat-shared-components210.mjs +42 -7
- package/dist/pat-shared-components210.mjs.map +1 -1
- package/dist/pat-shared-components211.js +1 -1
- package/dist/pat-shared-components211.js.map +1 -1
- package/dist/pat-shared-components211.mjs +1 -3
- package/dist/pat-shared-components211.mjs.map +1 -1
- package/dist/pat-shared-components212.js +1 -1
- package/dist/pat-shared-components212.js.map +1 -1
- package/dist/pat-shared-components212.mjs +9 -3
- package/dist/pat-shared-components212.mjs.map +1 -1
- package/dist/pat-shared-components213.js +1 -1
- package/dist/pat-shared-components213.js.map +1 -1
- package/dist/pat-shared-components213.mjs +6 -5
- package/dist/pat-shared-components213.mjs.map +1 -1
- package/dist/pat-shared-components214.js +1 -1
- package/dist/pat-shared-components214.js.map +1 -1
- package/dist/pat-shared-components214.mjs +3 -9
- package/dist/pat-shared-components214.mjs.map +1 -1
- package/dist/pat-shared-components215.js +1 -1
- package/dist/pat-shared-components215.js.map +1 -1
- package/dist/pat-shared-components215.mjs +3 -5
- package/dist/pat-shared-components215.mjs.map +1 -1
- package/dist/pat-shared-components216.js +1 -1
- package/dist/pat-shared-components216.js.map +1 -1
- package/dist/pat-shared-components216.mjs +6 -5
- package/dist/pat-shared-components216.mjs.map +1 -1
- package/dist/pat-shared-components217.js +1 -1
- package/dist/pat-shared-components217.js.map +1 -1
- package/dist/pat-shared-components217.mjs +10 -4
- package/dist/pat-shared-components217.mjs.map +1 -1
- package/dist/pat-shared-components218.js +1 -1
- package/dist/pat-shared-components218.js.map +1 -1
- package/dist/pat-shared-components218.mjs +4 -3
- package/dist/pat-shared-components218.mjs.map +1 -1
- package/dist/pat-shared-components219.js +1 -1
- package/dist/pat-shared-components219.js.map +1 -1
- package/dist/pat-shared-components219.mjs +5 -12
- package/dist/pat-shared-components219.mjs.map +1 -1
- package/dist/pat-shared-components220.js +1 -1
- package/dist/pat-shared-components220.js.map +1 -1
- package/dist/pat-shared-components220.mjs +4 -27
- package/dist/pat-shared-components220.mjs.map +1 -1
- package/dist/pat-shared-components221.js +1 -1
- package/dist/pat-shared-components221.js.map +1 -1
- package/dist/pat-shared-components221.mjs +2 -4
- package/dist/pat-shared-components221.mjs.map +1 -1
- package/dist/pat-shared-components222.js +1 -1
- package/dist/pat-shared-components222.js.map +1 -1
- package/dist/pat-shared-components222.mjs +12 -6
- package/dist/pat-shared-components222.mjs.map +1 -1
- package/dist/pat-shared-components223.js +1 -1
- package/dist/pat-shared-components223.js.map +1 -1
- package/dist/pat-shared-components223.mjs +27 -8
- package/dist/pat-shared-components223.mjs.map +1 -1
- package/dist/pat-shared-components224.js +1 -1
- package/dist/pat-shared-components224.js.map +1 -1
- package/dist/pat-shared-components224.mjs +5 -4
- package/dist/pat-shared-components224.mjs.map +1 -1
- package/dist/pat-shared-components225.js +1 -1
- package/dist/pat-shared-components225.js.map +1 -1
- package/dist/pat-shared-components225.mjs +6 -10
- package/dist/pat-shared-components225.mjs.map +1 -1
- package/dist/pat-shared-components226.js +1 -1
- package/dist/pat-shared-components226.js.map +1 -1
- package/dist/pat-shared-components226.mjs +7 -5
- package/dist/pat-shared-components226.mjs.map +1 -1
- package/dist/pat-shared-components227.js +1 -1
- package/dist/pat-shared-components227.js.map +1 -1
- package/dist/pat-shared-components227.mjs +4 -9
- package/dist/pat-shared-components227.mjs.map +1 -1
- package/dist/pat-shared-components228.js +1 -1
- package/dist/pat-shared-components228.js.map +1 -1
- package/dist/pat-shared-components228.mjs +10 -2
- package/dist/pat-shared-components228.mjs.map +1 -1
- package/dist/pat-shared-components229.js +1 -1
- package/dist/pat-shared-components229.js.map +1 -1
- package/dist/pat-shared-components229.mjs +6 -42
- package/dist/pat-shared-components229.mjs.map +1 -1
- package/dist/pat-shared-components23.js +1 -1
- package/dist/pat-shared-components23.mjs +2 -2
- package/dist/pat-shared-components230.js +1 -1
- package/dist/pat-shared-components230.js.map +1 -1
- package/dist/pat-shared-components230.mjs +10 -2
- package/dist/pat-shared-components230.mjs.map +1 -1
- package/dist/pat-shared-components232.js +1 -1
- package/dist/pat-shared-components232.js.map +1 -1
- package/dist/pat-shared-components232.mjs +82 -2
- package/dist/pat-shared-components232.mjs.map +1 -1
- package/dist/pat-shared-components233.js +1 -1
- package/dist/pat-shared-components233.js.map +1 -1
- package/dist/pat-shared-components233.mjs +23 -4
- package/dist/pat-shared-components233.mjs.map +1 -1
- package/dist/pat-shared-components234.js +1 -1
- package/dist/pat-shared-components234.js.map +1 -1
- package/dist/pat-shared-components234.mjs +14 -10
- package/dist/pat-shared-components234.mjs.map +1 -1
- package/dist/pat-shared-components235.js +1 -1
- package/dist/pat-shared-components235.js.map +1 -1
- package/dist/pat-shared-components235.mjs +5 -3
- package/dist/pat-shared-components235.mjs.map +1 -1
- package/dist/pat-shared-components236.js +1 -1
- package/dist/pat-shared-components236.js.map +1 -1
- package/dist/pat-shared-components236.mjs +2 -4
- package/dist/pat-shared-components236.mjs.map +1 -1
- package/dist/pat-shared-components237.js +1 -1
- package/dist/pat-shared-components237.js.map +1 -1
- package/dist/pat-shared-components237.mjs +3 -12
- package/dist/pat-shared-components237.mjs.map +1 -1
- package/dist/pat-shared-components238.js +1 -1
- package/dist/pat-shared-components238.js.map +1 -1
- package/dist/pat-shared-components238.mjs +10 -5
- package/dist/pat-shared-components238.mjs.map +1 -1
- package/dist/pat-shared-components239.js +1 -1
- package/dist/pat-shared-components239.js.map +1 -1
- package/dist/pat-shared-components239.mjs +23 -4
- package/dist/pat-shared-components239.mjs.map +1 -1
- package/dist/pat-shared-components240.js +1 -1
- package/dist/pat-shared-components240.js.map +1 -1
- package/dist/pat-shared-components240.mjs +20 -5
- package/dist/pat-shared-components240.mjs.map +1 -1
- package/dist/pat-shared-components241.js +1 -1
- package/dist/pat-shared-components241.js.map +1 -1
- package/dist/pat-shared-components241.mjs +16 -5
- package/dist/pat-shared-components241.mjs.map +1 -1
- package/dist/pat-shared-components242.js +1 -1
- package/dist/pat-shared-components242.js.map +1 -1
- package/dist/pat-shared-components242.mjs +3 -5
- package/dist/pat-shared-components242.mjs.map +1 -1
- package/dist/pat-shared-components243.js +1 -1
- package/dist/pat-shared-components243.js.map +1 -1
- package/dist/pat-shared-components243.mjs +4 -5
- package/dist/pat-shared-components243.mjs.map +1 -1
- package/dist/pat-shared-components244.js +1 -1
- package/dist/pat-shared-components244.js.map +1 -1
- package/dist/pat-shared-components244.mjs +12 -4
- package/dist/pat-shared-components244.mjs.map +1 -1
- package/dist/pat-shared-components245.js +1 -1
- package/dist/pat-shared-components245.js.map +1 -1
- package/dist/pat-shared-components245.mjs +2 -12
- package/dist/pat-shared-components245.mjs.map +1 -1
- package/dist/pat-shared-components246.js +1 -1
- package/dist/pat-shared-components246.js.map +1 -1
- package/dist/pat-shared-components246.mjs +4 -14
- package/dist/pat-shared-components246.mjs.map +1 -1
- package/dist/pat-shared-components247.js +1 -1
- package/dist/pat-shared-components247.js.map +1 -1
- package/dist/pat-shared-components247.mjs +5 -9
- package/dist/pat-shared-components247.mjs.map +1 -1
- package/dist/pat-shared-components248.js +1 -1
- package/dist/pat-shared-components248.js.map +1 -1
- package/dist/pat-shared-components248.mjs +5 -82
- package/dist/pat-shared-components248.mjs.map +1 -1
- package/dist/pat-shared-components249.js +1 -1
- package/dist/pat-shared-components249.js.map +1 -1
- package/dist/pat-shared-components249.mjs +5 -23
- package/dist/pat-shared-components249.mjs.map +1 -1
- package/dist/pat-shared-components25.js +1 -1
- package/dist/pat-shared-components25.mjs +2 -2
- package/dist/pat-shared-components250.js +1 -1
- package/dist/pat-shared-components250.js.map +1 -1
- package/dist/pat-shared-components250.mjs +5 -14
- package/dist/pat-shared-components250.mjs.map +1 -1
- package/dist/pat-shared-components251.js +1 -1
- package/dist/pat-shared-components251.js.map +1 -1
- package/dist/pat-shared-components251.mjs +4 -4
- package/dist/pat-shared-components251.mjs.map +1 -1
- package/dist/pat-shared-components252.js +1 -1
- package/dist/pat-shared-components252.js.map +1 -1
- package/dist/pat-shared-components252.mjs +14 -22
- package/dist/pat-shared-components252.mjs.map +1 -1
- package/dist/pat-shared-components253.js +1 -1
- package/dist/pat-shared-components253.js.map +1 -1
- package/dist/pat-shared-components253.mjs +13 -19
- package/dist/pat-shared-components253.mjs.map +1 -1
- package/dist/pat-shared-components254.js +1 -1
- package/dist/pat-shared-components254.js.map +1 -1
- package/dist/pat-shared-components254.mjs +8 -15
- package/dist/pat-shared-components254.mjs.map +1 -1
- package/dist/pat-shared-components255.js +1 -1
- package/dist/pat-shared-components255.js.map +1 -1
- package/dist/pat-shared-components255.mjs +2 -6
- package/dist/pat-shared-components255.mjs.map +1 -1
- package/dist/pat-shared-components256.js +1 -1
- package/dist/pat-shared-components256.js.map +1 -1
- package/dist/pat-shared-components256.mjs +1 -6
- package/dist/pat-shared-components256.mjs.map +1 -1
- package/dist/pat-shared-components257.js +1 -1
- package/dist/pat-shared-components257.js.map +1 -1
- package/dist/pat-shared-components257.mjs +53 -4
- package/dist/pat-shared-components257.mjs.map +1 -1
- package/dist/pat-shared-components258.js +1 -1
- package/dist/pat-shared-components258.mjs +2 -2
- package/dist/pat-shared-components259.js +1 -1
- package/dist/pat-shared-components259.js.map +1 -1
- package/dist/pat-shared-components259.mjs +91 -2
- package/dist/pat-shared-components259.mjs.map +1 -1
- package/dist/pat-shared-components260.js +1 -1
- package/dist/pat-shared-components260.js.map +1 -1
- package/dist/pat-shared-components260.mjs +6 -53
- package/dist/pat-shared-components260.mjs.map +1 -1
- package/dist/pat-shared-components261.js +1 -1
- package/dist/pat-shared-components261.js.map +1 -1
- package/dist/pat-shared-components261.mjs +7 -2
- package/dist/pat-shared-components261.mjs.map +1 -1
- package/dist/pat-shared-components262.js +1 -1
- package/dist/pat-shared-components262.js.map +1 -1
- package/dist/pat-shared-components262.mjs +4 -91
- package/dist/pat-shared-components262.mjs.map +1 -1
- package/dist/pat-shared-components263.js +1 -1
- package/dist/pat-shared-components263.js.map +1 -1
- package/dist/pat-shared-components263.mjs +23 -3
- package/dist/pat-shared-components263.mjs.map +1 -1
- package/dist/pat-shared-components264.js +1 -1
- package/dist/pat-shared-components264.js.map +1 -1
- package/dist/pat-shared-components264.mjs +3 -23
- package/dist/pat-shared-components264.mjs.map +1 -1
- package/dist/pat-shared-components27.js +1 -1
- package/dist/pat-shared-components27.js.map +1 -1
- package/dist/pat-shared-components27.mjs +45 -45
- package/dist/pat-shared-components27.mjs.map +1 -1
- package/dist/pat-shared-components28.js +1 -1
- package/dist/pat-shared-components28.mjs +2 -2
- package/dist/pat-shared-components34.js +1 -1
- package/dist/pat-shared-components34.mjs +2 -2
- package/dist/pat-shared-components35.js +1 -1
- package/dist/pat-shared-components35.mjs +3 -3
- package/dist/pat-shared-components45.js +1 -1
- package/dist/pat-shared-components45.mjs +6 -6
- package/dist/pat-shared-components60.js +1 -1
- package/dist/pat-shared-components60.mjs +2 -2
- package/dist/pat-shared-components62.js +1 -1
- package/dist/pat-shared-components62.mjs +1 -1
- package/dist/pat-shared-components63.js +1 -1
- package/dist/pat-shared-components63.mjs +1 -1
- package/dist/pat-shared-components65.js +1 -1
- package/dist/pat-shared-components65.mjs +2 -2
- package/dist/pat-shared-components66.js +1 -1
- package/dist/pat-shared-components66.mjs +3 -3
- package/dist/pat-shared-components67.js +1 -1
- package/dist/pat-shared-components67.js.map +1 -1
- package/dist/pat-shared-components67.mjs +16 -27
- package/dist/pat-shared-components67.mjs.map +1 -1
- package/dist/pat-shared-components68.js +1 -1
- package/dist/pat-shared-components68.js.map +1 -1
- package/dist/pat-shared-components68.mjs +32 -5
- package/dist/pat-shared-components68.mjs.map +1 -1
- package/dist/pat-shared-components69.js +1 -1
- package/dist/pat-shared-components69.js.map +1 -1
- package/dist/pat-shared-components69.mjs +5 -28
- package/dist/pat-shared-components69.mjs.map +1 -1
- package/dist/pat-shared-components70.js +1 -1
- package/dist/pat-shared-components70.js.map +1 -1
- package/dist/pat-shared-components70.mjs +27 -9
- package/dist/pat-shared-components70.mjs.map +1 -1
- package/dist/pat-shared-components71.js +1 -1
- package/dist/pat-shared-components71.js.map +1 -1
- package/dist/pat-shared-components71.mjs +10 -85
- package/dist/pat-shared-components71.mjs.map +1 -1
- package/dist/pat-shared-components72.js +1 -1
- package/dist/pat-shared-components72.js.map +1 -1
- package/dist/pat-shared-components72.mjs +83 -20
- package/dist/pat-shared-components72.mjs.map +1 -1
- package/dist/pat-shared-components73.js +1 -1
- package/dist/pat-shared-components73.js.map +1 -1
- package/dist/pat-shared-components73.mjs +18 -24
- package/dist/pat-shared-components73.mjs.map +1 -1
- package/dist/pat-shared-components74.js +1 -1
- package/dist/pat-shared-components74.js.map +1 -1
- package/dist/pat-shared-components74.mjs +22 -16
- package/dist/pat-shared-components74.mjs.map +1 -1
- package/dist/pat-shared-components75.js +5 -1
- package/dist/pat-shared-components75.js.map +1 -1
- package/dist/pat-shared-components75.mjs +821 -21
- package/dist/pat-shared-components75.mjs.map +1 -1
- package/dist/pat-shared-components76.js +1 -1
- package/dist/pat-shared-components76.js.map +1 -1
- package/dist/pat-shared-components76.mjs +22 -103
- package/dist/pat-shared-components76.mjs.map +1 -1
- package/dist/pat-shared-components77.js +1 -1
- package/dist/pat-shared-components77.js.map +1 -1
- package/dist/pat-shared-components77.mjs +71 -4
- package/dist/pat-shared-components77.mjs.map +1 -1
- package/dist/pat-shared-components78.js +1 -1
- package/dist/pat-shared-components78.js.map +1 -1
- package/dist/pat-shared-components78.mjs +10 -24
- package/dist/pat-shared-components78.mjs.map +1 -1
- package/dist/pat-shared-components79.js +1 -1
- package/dist/pat-shared-components79.js.map +1 -1
- package/dist/pat-shared-components79.mjs +10 -37
- package/dist/pat-shared-components79.mjs.map +1 -1
- package/dist/pat-shared-components8.js +1 -1
- package/dist/pat-shared-components8.mjs +8 -8
- package/dist/pat-shared-components80.js +1 -1
- package/dist/pat-shared-components80.js.map +1 -1
- package/dist/pat-shared-components80.mjs +20 -16
- package/dist/pat-shared-components80.mjs.map +1 -1
- package/dist/pat-shared-components81.js +1 -1
- package/dist/pat-shared-components81.js.map +1 -1
- package/dist/pat-shared-components81.mjs +18 -25
- package/dist/pat-shared-components81.mjs.map +1 -1
- package/dist/pat-shared-components82.js +1 -1
- package/dist/pat-shared-components82.js.map +1 -1
- package/dist/pat-shared-components82.mjs +19 -67
- package/dist/pat-shared-components82.mjs.map +1 -1
- package/dist/pat-shared-components83.js +1 -1
- package/dist/pat-shared-components83.js.map +1 -1
- package/dist/pat-shared-components83.mjs +4 -10
- package/dist/pat-shared-components83.mjs.map +1 -1
- package/dist/pat-shared-components84.js +1 -1
- package/dist/pat-shared-components84.js.map +1 -1
- package/dist/pat-shared-components84.mjs +8 -8
- package/dist/pat-shared-components84.mjs.map +1 -1
- package/dist/pat-shared-components85.js +1 -1
- package/dist/pat-shared-components85.js.map +1 -1
- package/dist/pat-shared-components85.mjs +103 -18
- package/dist/pat-shared-components85.mjs.map +1 -1
- package/dist/pat-shared-components86.js +1 -1
- package/dist/pat-shared-components86.js.map +1 -1
- package/dist/pat-shared-components86.mjs +32 -18
- package/dist/pat-shared-components86.mjs.map +1 -1
- package/dist/pat-shared-components87.js +1 -1
- package/dist/pat-shared-components87.js.map +1 -1
- package/dist/pat-shared-components87.mjs +16 -28
- package/dist/pat-shared-components87.mjs.map +1 -1
- package/dist/pat-shared-components88.js +1 -5
- package/dist/pat-shared-components88.js.map +1 -1
- package/dist/pat-shared-components88.mjs +22 -818
- package/dist/pat-shared-components88.mjs.map +1 -1
- package/dist/pat-shared-components89.js +1 -1
- package/dist/pat-shared-components89.js.map +1 -1
- package/dist/pat-shared-components89.mjs +32 -10
- package/dist/pat-shared-components89.mjs.map +1 -1
- package/dist/pat-shared-components9.js +1 -1
- package/dist/pat-shared-components9.mjs +7 -7
- package/dist/pat-shared-components90.js +1 -1
- package/dist/pat-shared-components90.js.map +1 -1
- package/dist/pat-shared-components90.mjs +5 -30
- package/dist/pat-shared-components90.mjs.map +1 -1
- package/dist/pat-shared-components91.js +1 -1
- package/dist/pat-shared-components91.js.map +1 -1
- package/dist/pat-shared-components91.mjs +46 -5
- package/dist/pat-shared-components91.mjs.map +1 -1
- package/dist/pat-shared-components92.js +1 -1
- package/dist/pat-shared-components92.js.map +1 -1
- package/dist/pat-shared-components92.mjs +50 -42
- package/dist/pat-shared-components92.mjs.map +1 -1
- package/dist/pat-shared-components93.js +1 -1
- package/dist/pat-shared-components93.js.map +1 -1
- package/dist/pat-shared-components93.mjs +43 -49
- package/dist/pat-shared-components93.mjs.map +1 -1
- package/dist/pat-shared-components94.js +1 -1
- package/dist/pat-shared-components94.js.map +1 -1
- package/dist/pat-shared-components94.mjs +19 -45
- package/dist/pat-shared-components94.mjs.map +1 -1
- package/dist/pat-shared-components95.js +1 -1
- package/dist/pat-shared-components95.js.map +1 -1
- package/dist/pat-shared-components95.mjs +77 -19
- package/dist/pat-shared-components95.mjs.map +1 -1
- package/dist/pat-shared-components96.js +1 -1
- package/dist/pat-shared-components96.js.map +1 -1
- package/dist/pat-shared-components96.mjs +12 -80
- package/dist/pat-shared-components96.mjs.map +1 -1
- package/dist/pat-shared-components97.js +1 -1
- package/dist/pat-shared-components97.js.map +1 -1
- package/dist/pat-shared-components97.mjs +43 -11
- package/dist/pat-shared-components97.mjs.map +1 -1
- package/dist/pat-shared-components98.js +1 -1
- package/dist/pat-shared-components98.js.map +1 -1
- package/dist/pat-shared-components98.mjs +32 -44
- package/dist/pat-shared-components98.mjs.map +1 -1
- package/dist/pat-shared-components99.js +1 -1
- package/dist/pat-shared-components99.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/TestResult/Desktop/TestResultDetailDesktop.vue.d.ts +5 -5
- package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail.vue.d.ts +5 -5
- package/dist/types/components/TestResult/Shared/ResultReadyV2.vue.d.ts +8 -7
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./pat-shared-components153.js"),o=require("./pat-shared-components159.js"),m={class:"ds-flex"},k={class:"ds-ml-2"},b={key:0,class:"ds-w-full ds-text-base ds-font-semibold ds-text-black/[0.85]"},f={key:1,class:"ds-w-full ds-pb-2 ds-pt-4"},B=["href"],y=e.defineComponent({__name:"BMessage",props:{type:{default:s.BMessageType.Info},actionUrl:{default:""},actionLabel:{default:""},title:{default:""},icon:{default:""}},emits:["click:action"],setup(c,{emit:r}){const t=c,d=e.useSlots(),i=e.computed(()=>({[s.BMessageType.Info]:"ds-border-blue-darken-1 ds-bg-blue-lighten-2",[s.BMessageType.Warning]:"ds-border-amber-darken-1 ds-bg-amber-lighten-1",[s.BMessageType.Success]:"ds-border-green-darken-1 ds-bg-green-lighten-2",[s.BMessageType.Error]:"ds-border-red-darken-1 ds-bg-red-lighten-2"})[t.type]),u=e.computed(()=>{const l={[s.BMessageType.Info]:"ds-text-blue-darken-1",[s.BMessageType.Warning]:"ds-text-amber-darken-1",[s.BMessageType.Success]:"ds-text-green-darken-1",[s.BMessageType.Error]:"ds-text-red-darken-1"},a={[s.BMessageType.Info]:"dgic-info-fill",[s.BMessageType.Warning]:"dgic-circle-exclamation",[s.BMessageType.Success]:"dgic-circle-check",[s.BMessageType.Error]:"dgic-circle-error-fill"};return[l[t.type],t.icon||a[t.type]]}),p=e.computed(()=>t.actionLabel||d.action),n=e.computed(()=>t.title||d.title);return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-flex ds-flex-wrap ds-rounded-lg ds-border ds-p-4 ds-shadow",i.value])},[e.createElementVNode("div",m,[e.renderSlot(l.$slots,"icon",{},()=>[e.createElementVNode("i",{class:e.normalizeClass(["ds-text-[32px] ds-leading-none",u.value])},null,2)]),e.createElementVNode("div",k,[n.value?(e.openBlock(),e.createElementBlock("div",b,[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ds-w-full ds-text-sm ds-text-black/[0.85]",n.value?"ds-mt-1":""])},[e.renderSlot(l.$slots,"default")],2),p.value?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(l.$slots,"action",{},()=>[t.actionUrl?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.actionUrl,target:"_blank",class:"ds-flex ds-items-center ds-text-blue-darken-1",onClick:a[0]||(a[0]=g=>r("click:action"))},[e.createVNode(o,{label:t.actionLabel},null,8,["label"])],8,B)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ds-flex ds-cursor-pointer ds-items-center ds-text-blue-darken-1",onClick:a[1]||(a[1]=g=>r("click:action"))},[e.createVNode(o,{label:t.actionLabel},null,8,["label"])]))])])):e.createCommentVNode("",!0)])])],2))}});module.exports=y;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components102.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, useSlots as S, computed as r, openBlock as d, createElementBlock as a, normalizeClass as c, createElementVNode as n, renderSlot as o, createTextVNode as w, toDisplayString as E, createCommentVNode as f, createVNode as k } from "vue";
|
|
2
|
-
import { BMessageType as e } from "./pat-shared-
|
|
3
|
-
import m from "./pat-shared-
|
|
2
|
+
import { BMessageType as e } from "./pat-shared-components153.mjs";
|
|
3
|
+
import m from "./pat-shared-components159.mjs";
|
|
4
4
|
const B = { class: "ds-flex" }, C = { class: "ds-ml-2" }, I = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "ds-w-full ds-text-base ds-font-semibold ds-text-black/[0.85]"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./pat-shared-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./pat-shared-components75.js");function c(){const{t:e}=u.useI18n();return{getCountText:t=>{const o=t%30===0,n=o?t/30:t,s=n>1;return o?e(s?"psc.test_result_count_months":"psc.test_result_count_month",{count:n}):e(s?"psc.test_result_count_days":"psc.test_result_count_day",{count:n})}}}exports.useDayMonthCount=c;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components103.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./pat-shared-components177.js"),u=require("./pat-shared-components178.js"),i=require("./pat-shared-components179.js"),_=require("./pat-shared-components75.js"),o=require("./pat-shared-components4.js"),d={class:"psc-border-b psc-border-gray-lighten-2 psc-py-5"},p={class:"psc-border-b psc-border-gray-lighten-2 psc-py-5"},a={class:"psc-py-5"},m=e.defineComponent({__name:"BookingContent",props:{testMoreType:null,testMoreServices:null,total:null,totalDiscount:null,discount:null},setup(n){const t=n,{t:s}=_.useI18n(),r=e.computed(()=>({[o.TestMoreType.Remind]:s("psc.test_result_recommended_tests"),[o.TestMoreType.Recommend]:s("psc.test_result_additional_tests")})[t.testMoreType]);return(c,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",d,[e.createVNode(i,{title:e.unref(r),tests:t.testMoreServices},null,8,["title","tests"])]),e.createElementVNode("div",p,[e.createVNode(u)]),e.createElementVNode("div",a,[e.createVNode(l,{total:t.total,"total-discount":t.totalDiscount,discount:t.discount},null,8,["total","total-discount","discount"])])],64))}});module.exports=m;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components104.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as i, computed as p, openBlock as u, createElementBlock as a, Fragment as d, createElementVNode as e, createVNode as s, unref as m } from "vue";
|
|
2
|
-
import _ from "./pat-shared-
|
|
3
|
-
import f from "./pat-shared-
|
|
4
|
-
import y from "./pat-shared-
|
|
5
|
-
import { useI18n as g } from "./pat-shared-
|
|
2
|
+
import _ from "./pat-shared-components177.mjs";
|
|
3
|
+
import f from "./pat-shared-components178.mjs";
|
|
4
|
+
import y from "./pat-shared-components179.mjs";
|
|
5
|
+
import { useI18n as g } from "./pat-shared-components75.mjs";
|
|
6
6
|
import { TestMoreType as n } from "./pat-shared-components4.mjs";
|
|
7
7
|
const b = { class: "psc-border-b psc-border-gray-lighten-2 psc-py-5" }, h = { class: "psc-border-b psc-border-gray-lighten-2 psc-py-5" }, M = { class: "psc-py-5" }, E = /* @__PURE__ */ i({
|
|
8
8
|
__name: "BookingContent",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./pat-shared-components68.js"),i=require("./pat-shared-components67.js"),l=require("./pat-shared-components171.js"),_=require("./pat-shared-components71.js"),p=require("./pat-shared-components69.js"),d=require("./pat-shared-components60.js"),g=require("./pat-shared-components62.js"),k=require("./pat-shared-components104.js"),m=require("./pat-shared-components180.js"),v=require("./pat-shared-components70.js"),b=require("./pat-shared-components73.js"),y={class:"psc-px-4 psc-pb-4"},h={class:"psc-space-y-6"},f={class:"psc-space-y-1"},B={class:"psc-space-y-4 psc-pt-6"},N={class:"psc-rounded-lg psc-shadow"},V={class:"psc-relative psc-px-4 psc-pb-4 lg:psc-px-6"},q=e.defineComponent({__name:"RemindRecommendationBooking",props:{testMore:null,branch:null,branchLocationUrl:null,loading:{type:Boolean}},setup(r){const t=r,s=e.computed(()=>t.testMore.booking_detail),{patient:c,doctor:u}=v.useBookingDetail(s);return(o,x)=>{var n;return e.openBlock(),e.createElementBlock("div",y,[t.loading?(e.openBlock(),e.createBlock(b,{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",h,[e.createElementVNode("div",f,[e.createVNode(i,{"first-name":e.unref(s).first_name},null,8,["first-name"]),e.createVNode(a,{"test-result-key":e.unref(s).test_result_key,"result-status":e.unref(s).result_status,"booking-status":e.unref(s).booking_status},null,8,["test-result-key","result-status","booking-status"])]),e.createVNode(l,{title:o.$t("psc.test_result_be_in_touch_soon"),subtitle:o.$t("psc.test_result_will_call_you_shortly"),icon:"dgic-support-thick"},null,8,["title","subtitle"])]),e.createElementVNode("div",B,[e.createVNode(_,{class:"psc-text-black/[0.85]"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_booking_booking_details")),1)]),_:1}),e.createElementVNode("div",N,[e.createVNode(d,{patient:e.unref(c),doctor:e.unref(u),class:"psc-px-4 psc-py-4 lg:psc-px-6"},null,8,["patient","doctor"]),e.createVNode(p),e.createElementVNode("div",V,[e.createVNode(g,{"booking-code":e.unref(s).booking_code,"booking-status":e.unref(s).booking_status,"payment-status":((n=e.unref(s).data)==null?void 0:n.type)==="foc"?void 0:e.unref(s).payment_status},null,8,["booking-code","booking-status","payment-status"]),e.createVNode(k,{"test-more-services":t.testMore.services,total:t.testMore.total,"test-more-type":t.testMore.type,"total-discount":t.testMore.total_discount,discount:t.testMore.discount},null,8,["test-more-services","total","test-more-type","total-discount","discount"])])])]),e.createVNode(m,{class:"psc-mt-6",branch:t.branch,"branches-url":t.branchLocationUrl},null,8,["branch","branches-url"])],64))])}}});module.exports=q;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components105.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as m, computed as u, openBlock as i, createElementBlock as a, createBlock as d, Fragment as f, createElementVNode as c, createVNode as e, unref as t, withCtx as b, createTextVNode as k, toDisplayString as g } from "vue";
|
|
2
|
-
import h from "./pat-shared-
|
|
3
|
-
import y from "./pat-shared-
|
|
2
|
+
import h from "./pat-shared-components68.mjs";
|
|
3
|
+
import y from "./pat-shared-components67.mjs";
|
|
4
4
|
import v from "./pat-shared-components171.mjs";
|
|
5
|
-
import $ from "./pat-shared-
|
|
6
|
-
import x from "./pat-shared-
|
|
5
|
+
import $ from "./pat-shared-components71.mjs";
|
|
6
|
+
import x from "./pat-shared-components69.mjs";
|
|
7
7
|
import B from "./pat-shared-components60.mjs";
|
|
8
8
|
import M from "./pat-shared-components62.mjs";
|
|
9
9
|
import w from "./pat-shared-components104.mjs";
|
|
10
|
-
import C from "./pat-shared-
|
|
11
|
-
import { useBookingDetail as N } from "./pat-shared-
|
|
12
|
-
import V from "./pat-shared-
|
|
10
|
+
import C from "./pat-shared-components180.mjs";
|
|
11
|
+
import { useBookingDetail as N } from "./pat-shared-components70.mjs";
|
|
12
|
+
import V from "./pat-shared-components73.mjs";
|
|
13
13
|
const D = { class: "psc-px-4 psc-pb-4" }, E = { class: "psc-space-y-6" }, L = { class: "psc-space-y-1" }, R = { class: "psc-space-y-4 psc-pt-6" }, S = { class: "psc-rounded-lg psc-shadow" }, T = { class: "psc-relative psc-px-4 psc-pb-4 lg:psc-px-6" }, Q = /* @__PURE__ */ m({
|
|
14
14
|
__name: "RemindRecommendationBooking",
|
|
15
15
|
props: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components141.js");require("./pat-shared-components142.js");const r=require("./pat-shared-components39.js"),t=r(e,[["__scopeId","data-v-c18767f9"]]);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components106.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import o from "./pat-shared-
|
|
2
|
-
import "./pat-shared-
|
|
1
|
+
import o from "./pat-shared-components141.mjs";
|
|
2
|
+
import "./pat-shared-components142.mjs";
|
|
3
3
|
import t from "./pat-shared-components39.mjs";
|
|
4
4
|
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c18767f9"]]);
|
|
5
5
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components143.js");require("./pat-shared-components144.js");const t=require("./pat-shared-components39.js"),r=t(e,[["__scopeId","data-v-3333ee9a"]]);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components107.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import o from "./pat-shared-
|
|
2
|
-
import "./pat-shared-
|
|
1
|
+
import o from "./pat-shared-components143.mjs";
|
|
2
|
+
import "./pat-shared-components144.mjs";
|
|
3
3
|
import t from "./pat-shared-components39.mjs";
|
|
4
4
|
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3333ee9a"]]);
|
|
5
5
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components145.js");require("./pat-shared-components146.js");const r=require("./pat-shared-components39.js"),t=r(e,[["__scopeId","data-v-42f2fc03"]]);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components108.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./pat-shared-
|
|
2
|
-
import "./pat-shared-
|
|
1
|
+
import e from "./pat-shared-components145.mjs";
|
|
2
|
+
import "./pat-shared-components146.mjs";
|
|
3
3
|
import o from "./pat-shared-components39.mjs";
|
|
4
4
|
const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-42f2fc03"]]);
|
|
5
5
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("./pat-shared-components3.js"),n=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),c=require("./pat-shared-components3.js"),n=require("./pat-shared-components75.js"),o={class:"psc-text-center"},l={class:"psc-font-medium"},p={class:"psc-text-sm"},r=e.createElementVNode("i",{class:"dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold"},null,-1),i=e.defineComponent({__name:"CallUsFilledButton",setup(a){const{t}=n.useI18n(),s=()=>{window.open(`tel:${c.SupportPhone}`,"_self")};return(u,d)=>(e.openBlock(),e.createElementBlock("button",{class:"psc-w-full psc-rounded-lg psc-bg-blue-darken-1 psc-px-4 psc-py-2.5 psc-text-white disabled:psc-bg-[#aeb0bd]",style:{textAlign:"left",position:"relative"},onClick:s},[e.createElementVNode("div",o,[e.createElementVNode("div",l,e.toDisplayString(`${e.unref(t)("psc.call_us")}`),1),e.createElementVNode("div",p,e.toDisplayString(e.unref(t)("psc.test_result_time_support")),1),r])]))}});module.exports=i;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components11.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as p, createElementBlock as n, createElementVNode as t, toDisplayString as e, unref as c } from "vue";
|
|
2
2
|
import { SupportPhone as i } from "./pat-shared-components3.mjs";
|
|
3
|
-
import { useI18n as r } from "./pat-shared-
|
|
3
|
+
import { useI18n as r } from "./pat-shared-components75.mjs";
|
|
4
4
|
const a = { class: "psc-text-center" }, d = { class: "psc-font-medium" }, _ = { class: "psc-text-sm" }, u = /* @__PURE__ */ t("i", { class: "dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold" }, null, -1), v = /* @__PURE__ */ l({
|
|
5
5
|
__name: "CallUsFilledButton",
|
|
6
6
|
setup(m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./pat-shared-components110.js"),y=require("./pat-shared-components112.js"),Q=require("./pat-shared-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./pat-shared-components110.js"),y=require("./pat-shared-components112.js"),Q=require("./pat-shared-components164.js");/*!
|
|
2
2
|
* core-base v9.2.2
|
|
3
3
|
* (c) 2022 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getGlobalThis as Fe, isObject as h, isArray as $, isPlainObject as M, isString as u, isBoolean as I, assign as H, isFunction as C, isRegExp as ee, warn as j, format as me, escapeHtml as te, inBrowser as K, mark as R, measure as B, isNumber as L, isEmptyObject as z, generateCodeFrame as Me, generateFormatCacheKey as be, isDate as ve, toDisplayString as he } from "./pat-shared-components110.mjs";
|
|
2
2
|
import { defaultOnError as Ie, baseCompile as Ce, createCompileError as Le, CompileErrorCodes as we } from "./pat-shared-components112.mjs";
|
|
3
|
-
import { IntlifyDevToolsHooks as ue } from "./pat-shared-
|
|
3
|
+
import { IntlifyDevToolsHooks as ue } from "./pat-shared-components164.mjs";
|
|
4
4
|
/*!
|
|
5
5
|
* core-base v9.2.2
|
|
6
6
|
* (c) 2022 kazuya kawaguchi
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),i=require("./pat-shared-components85.js"),r={class:"test-result-full-patient-info"},p={class:"fullname"},d={key:0},u={class:"psc-pr-1"},m={class:"psc-capitalize"},_={class:"more-info"},f={class:"psc-mr-[24px] psc-flex psc-items-center"},h=e.createElementVNode("i",{class:"dgic-cake"},null,-1),N={class:"psc-flex psc-items-center"},V=e.createElementVNode("i",{class:"dgic-phone-light"},null,-1),g=e.defineComponent({__name:"PatientFullInfo",props:{isGreeting:{type:Boolean,default:!1},testResult:null},setup(s){const t=s,o=e.computed(()=>(t.testResult.first_name||"").toLowerCase()),{formatDate:c}=i.useDate(),l=e.computed(()=>t.testResult.phone_number||""),a=e.computed(()=>c(new Date(t.testResult.date_of_birth)));return(n,E)=>(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",p,[s.isGreeting?(e.openBlock(),e.createElementBlock("span",d,[e.createElementVNode("span",u,e.toDisplayString(n.$t("psc.test_result_hi")),1),e.createElementVNode("span",m,e.toDisplayString(e.unref(o)),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[e.createElementVNode("div",f,[h,e.createTextVNode(" "+e.toDisplayString(e.unref(a)),1)]),e.createElementVNode("div",N,[V,e.createTextVNode(" "+e.toDisplayString(e.unref(l)),1)])])]))}});module.exports=g;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components12.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, computed as o, openBlock as a, createElementBlock as i, createElementVNode as e, toDisplayString as t, unref as n, createCommentVNode as f, createTextVNode as r } from "vue";
|
|
2
|
-
import { useDate as h } from "./pat-shared-
|
|
2
|
+
import { useDate as h } from "./pat-shared-components85.mjs";
|
|
3
3
|
const N = { class: "test-result-full-patient-info" }, g = { class: "fullname" }, D = { key: 0 }, v = { class: "psc-pr-1" }, x = { class: "psc-capitalize" }, k = { class: "more-info" }, B = { class: "psc-mr-[24px] psc-flex psc-items-center" }, R = /* @__PURE__ */ e("i", { class: "dgic-cake" }, null, -1), b = { class: "psc-flex psc-items-center" }, y = /* @__PURE__ */ e("i", { class: "dgic-phone-light" }, null, -1), E = /* @__PURE__ */ m({
|
|
4
4
|
__name: "PatientFullInfo",
|
|
5
5
|
props: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./pat-shared-
|
|
1
|
+
"use strict";const t=require("./pat-shared-components68.js");module.exports=t;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components120.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./pat-shared-
|
|
1
|
+
"use strict";const t=require("./pat-shared-components72.js");module.exports=t;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components123.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components76.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components124.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./pat-shared-
|
|
1
|
+
"use strict";const t=require("./pat-shared-components74.js");module.exports=t;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components125.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components81.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components126.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components82.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components127.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components101.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components128.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components67.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components129.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("vue"),N=require("./pat-shared-components4.js"),u=require("./pat-shared-components174.js"),h=require("./pat-shared-components89.js"),B=require("./pat-shared-components75.js"),D=require("./pat-shared-components170.js"),x=r=>(e.pushScopeId("data-v-b3e4434c"),r=r(),e.popScopeId(),r),C={class:"psc-flex psc-w-full psc-flex-wrap psc-justify-center psc-space-y-2 psc-overflow-hidden"},w={key:0,class:"psc-w-full psc-py-4"},R={class:"custom-steps"},T={class:"steps-line-container"},I=x(()=>e.createElementVNode("div",{class:"steps-line"},null,-1)),K=["onClick"],q={class:"steps-content"},b={class:"step-title"},M={key:0,class:"step-description"},$={key:1,class:"psc-w-full"},z={class:"-psc-mx-0.5 psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6]"},F={key:0,class:"psc-flex-auto psc-px-0.5"},A={class:"psc-mr-1"},H={key:1,class:"psc-flex-auto psc-px-0.5 psc-text-right"},L={class:"psc-mr-1"},j=e.defineComponent({__name:"ResultReadyV2",props:{testResult:null,timeline:{default:void 0}},setup(r){const l=r,{t:p}=B.useI18n(),a=e.computed(()=>u.formatDateTimeShort(l.testResult.sample_collected_at)),d=e.computed(()=>u.formatDateTimeShort(l.testResult.result_at)),_=e.computed(()=>l.testResult.result_status===N.TestResultStatus.Ready),m=["ordered","sample_collected","in_progress","partially_approved","approved"],E=s=>{const c=m.indexOf(s);return c===-1?0:c},S=e.computed(()=>{if(!l.timeline||l.timeline.length===0)return new Map;const s=new Map,c=[...l.timeline].sort((n,t)=>new Date(t.created_at).getTime()-new Date(n.created_at).getTime());return m.forEach(n=>{const t=c.find(k=>h.ActionEventMap[k.action_event]===n);t&&s.set(n,t.created_at)}),s}),g=()=>{if(!l.timeline||l.timeline.length===0)return 0;let s=0;return l.timeline.forEach(c=>{const n=h.ActionEventMap[c.action_event];if(n){const t=E(n);t>s&&(s=t)}}),s},f=[{key:"ordered",titleKey:"psc.test_result_step_ordered"},{key:"sample_collected",titleKey:"psc.test_result_step_sample_collected"},{key:"in_progress",titleKey:"psc.test_result_step_in_progress"},{key:"partially_approved",titleKey:"psc.test_result_step_partially_approved"},{key:"approved",titleKey:"psc.test_result_step_approved"}],v=s=>{const c=S.value.get(s);if(c)return u.formatDateTimeShort(c);switch(s){case"sample_collected":return a.value;case"approved":return d.value;default:return}},o=e.computed(()=>g()),y=e.computed(()=>typeof i.value=="number"?i.value:o.value),i=e.ref(null),V=s=>{s<=o.value&&(i.value=s)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(D,{status:l.testResult.result_status},null,8,["status"]),l.timeline&&l.timeline.length>0?(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",R,[e.createElementVNode("div",T,[I,e.createElementVNode("div",{class:e.normalizeClass(["steps-line-progress",`progress-to-${e.unref(o)}`])},null,2),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,(n,t)=>e.createElementVNode("div",{key:n.key,class:e.normalizeClass(["step-dot",[{active:t<=e.unref(o),current:t===e.unref(o),disabled:t>e.unref(o),selected:t===e.unref(y)},`step-dot-${t}`]]),onClick:k=>V(t)},null,10,K)),64))]),e.createElementVNode("div",q,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,(n,t)=>e.createElementVNode("div",{key:n.key,class:e.normalizeClass(["step-content-box",[{active:t===e.unref(y)},`step-content-${t}`]])},[e.createElementVNode("div",b,e.toDisplayString(e.unref(p)(n.titleKey)),1),v(n.key)?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(v(n.key)),1)):e.createCommentVNode("",!0)],2)),64))])])])):e.createCommentVNode("",!0),e.unref(a)||e.unref(_)?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",z,[e.unref(a)?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("span",A,e.toDisplayString(e.unref(p)("psc.test_result_sample_collected")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)),1)])):e.createCommentVNode("",!0),e.unref(_)?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("span",L,e.toDisplayString(e.unref(p)("psc.test_result_result_ready")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(d)),1)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}});module.exports=j;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components130.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components130.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"pat-shared-components130.js","sources":["../src/components/TestResult/Shared/ResultReadyV2.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b3e4434c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"psc-flex psc-w-full psc-flex-wrap psc-justify-center psc-space-y-2 psc-overflow-hidden\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"psc-w-full psc-py-4\"\n}\nconst _hoisted_3 = { class: \"custom-steps\" }\nconst _hoisted_4 = { class: \"steps-line-container\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"steps-line\" }, null, -1))\nconst _hoisted_6 = [\"onClick\"]\nconst _hoisted_7 = { class: \"steps-content\" }\nconst _hoisted_8 = { class: \"step-title\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"step-description\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"psc-w-full\"\n}\nconst _hoisted_11 = { class: \"-psc-mx-0.5 psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6]\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"psc-flex-auto psc-px-0.5\"\n}\nconst _hoisted_13 = { class: \"psc-mr-1\" }\nconst _hoisted_14 = {\n key: 1,\n class: \"psc-flex-auto psc-px-0.5 psc-text-right\"\n}\nconst _hoisted_15 = { class: \"psc-mr-1\" }\n\nimport { TestResultStatus } from '@/constants/Enums';\nimport { formatDateTimeShort } from '@/helpers/DateHelper';\nimport { ActionEventMap } from '@/helpers/ComponentHelper';\nimport type { TestResult } from '@/types';\nimport { computed, ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport ResultStatus from '../../Shared/ResultStatus.vue';\n\n/**\n * Props\n */\nexport interface TimelineEvent {\n vid: string;\n created_at: string;\n action_event: string;\n}\n\nexport interface StepConfig {\n key: string;\n titleKey: string;\n date?: string;\n}\n\nexport interface Props {\n testResult: TestResult;\n timeline?: TimelineEvent[];\n}\ntype StepKey = (typeof STEP_KEYS)[number];\n\n// Map step key to index\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ResultReadyV2',\n props: {\n testResult: null,\n timeline: { default: undefined }\n },\n setup(__props: any) {\n\nconst props = __props as { testResult: TestResult, timeline: TimelineEvent[] };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst sampleCollectedDate = computed(() =>\n formatDateTimeShort(props.testResult.sample_collected_at)\n);\nconst resultDate = computed(() =>\n formatDateTimeShort(props.testResult.result_at)\n);\nconst isReady = computed(\n () => props.testResult.result_status === TestResultStatus.Ready\n);\n\n// Define the step keys in order\nconst STEP_KEYS = [\n 'ordered',\n 'sample_collected',\n 'in_progress',\n 'partially_approved',\n 'approved',\n] as const;\n\nconst stepKeyToIndex = (key: string): number => {\n const index = STEP_KEYS.indexOf(key as StepKey);\n return index === -1 ? 0 : index;\n};\n\n// Process timeline to get the latest date for each step\nconst stepDates = computed(() => {\n if (!props.timeline || props.timeline.length === 0) {\n return new Map<string, string>();\n }\n\n const dateMap = new Map<string, string>();\n\n // Sort timeline by created_at descending to process latest events first\n const sortedTimeline = [...props.timeline].sort(\n (a, b) =>\n new Date(b.created_at).getTime() - new Date(a.created_at).getTime()\n );\n\n // For each step, find the latest event that maps to it\n STEP_KEYS.forEach((stepKey) => {\n const latestEvent = sortedTimeline.find((event) => {\n const mappedStep = ActionEventMap[event.action_event];\n return mappedStep === stepKey;\n });\n\n if (latestEvent) {\n dateMap.set(stepKey, latestEvent.created_at);\n }\n });\n\n return dateMap;\n});\n\n// Get current step from timeline (the highest step reached)\nconst getCurrentStepFromTimeline = (): number => {\n if (!props.timeline || props.timeline.length === 0) {\n return 0;\n }\n\n let maxStepIndex = 0;\n\n props.timeline.forEach((event) => {\n const statusKey = ActionEventMap[event.action_event];\n if (statusKey) {\n const stepIndex = stepKeyToIndex(statusKey);\n if (stepIndex > maxStepIndex) {\n maxStepIndex = stepIndex;\n }\n }\n });\n\n return maxStepIndex;\n};\n\n// Steps configuration\nconst steps: StepConfig[] = [\n {\n key: 'ordered',\n titleKey: 'psc.test_result_step_ordered',\n },\n {\n key: 'sample_collected',\n titleKey: 'psc.test_result_step_sample_collected',\n },\n {\n key: 'in_progress',\n titleKey: 'psc.test_result_step_in_progress',\n },\n {\n key: 'partially_approved',\n titleKey: 'psc.test_result_step_partially_approved',\n },\n {\n key: 'approved',\n titleKey: 'psc.test_result_step_approved',\n },\n];\n\n// Get step date based on key\nconst getStepDate = (key: string): string | Date | undefined => {\n // Check if we have a date from timeline for this step\n const timelineDate = stepDates.value.get(key);\n if (timelineDate) {\n return formatDateTimeShort(timelineDate);\n }\n\n // Fallback to original logic for specific steps\n switch (key) {\n case 'sample_collected':\n return sampleCollectedDate.value;\n case 'approved':\n return resultDate.value;\n default:\n return undefined;\n }\n};\n\nconst currentStep = computed(() => getCurrentStepFromTimeline());\n\nconst selectedStep = computed(() => {\n return typeof selectedStepIndex.value === 'number'\n ? selectedStepIndex.value\n : currentStep.value;\n});\nconst selectedStepIndex = ref<number | null>(null);\n\nconst handleStepClick = (index: number) => {\n // Only allow clicking on current step and previous steps\n if (index <= currentStep.value) {\n selectedStepIndex.value = index;\n }\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(ResultStatus, {\n status: props.testResult.result_status\n }, null, 8, [\"status\"]),\n (props.timeline && props.timeline.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"steps-line-progress\", `progress-to-${_unref(currentStep)}`])\n }, null, 2),\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(steps, (step, index) => {\n return _createElementVNode(\"div\", {\n key: step.key,\n class: _normalizeClass([\"step-dot\", [\n {\n active: index <= _unref(currentStep),\n current: index === _unref(currentStep),\n disabled: index > _unref(currentStep),\n selected: index === _unref(selectedStep),\n },\n `step-dot-${index}`,\n ]]),\n onClick: ($event: any) => (handleStepClick(index))\n }, null, 10, _hoisted_6)\n }), 64))\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(steps, (step, index) => {\n return _createElementVNode(\"div\", {\n key: step.key,\n class: _normalizeClass([\"step-content-box\", [\n { active: index === _unref(selectedStep) },\n `step-content-${index}`,\n ]])\n }, [\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString(_unref(t)(step.titleKey)), 1),\n (getStepDate(step.key))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, _toDisplayString(getStepDate(step.key)), 1))\n : _createCommentVNode(\"\", true)\n ], 2)\n }), 64))\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(sampleCollectedDate) || _unref(isReady))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n (_unref(sampleCollectedDate))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, _toDisplayString(_unref(t)('psc.test_result_sample_collected')), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_unref(sampleCollectedDate)), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(isReady))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"span\", _hoisted_15, _toDisplayString(_unref(t)('psc.test_result_result_ready')), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_unref(resultDate)), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})"],"names":["_withScopeId","_pushScopeId","n","_popScopeId","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createElementVNode","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_sfc_main","_defineComponent","__props","props","t","useI18n","sampleCollectedDate","computed","formatDateTimeShort","resultDate","isReady","TestResultStatus","STEP_KEYS","stepKeyToIndex","key","index","stepDates","dateMap","sortedTimeline","a","b","stepKey","latestEvent","event","ActionEventMap","getCurrentStepFromTimeline","maxStepIndex","statusKey","stepIndex","steps","getStepDate","timelineDate","currentStep","selectedStep","selectedStepIndex","ref","handleStepClick","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","ResultStatus","_normalizeClass","_unref","_Fragment","_renderList","step","$event","_toDisplayString","_createCommentVNode"],"mappings":"uPAGMA,MAAqBC,EAAa,YAAA,iBAAiB,EAAEC,EAAEA,IAAIC,EAAAA,aAAcD,GACzEE,EAAa,CAAE,MAAO,0FACtBC,EAAa,CACjB,IAAK,EACL,MAAO,qBACT,EACMC,EAAa,CAAE,MAAO,gBACtBC,EAAa,CAAE,MAAO,wBACtBC,EAAwCR,EAAA,IAAuCS,EAAA,mBAAA,MAAO,CAAE,MAAO,cAAgB,KAAM,EAAE,CAAC,EACxHC,EAAa,CAAC,SAAS,EACvBC,EAAa,CAAE,MAAO,iBACtBC,EAAa,CAAE,MAAO,cACtBC,EAAa,CACjB,IAAK,EACL,MAAO,kBACT,EACMC,EAAc,CAClB,IAAK,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C,CACL,EAAG,EAAE,EAAA,CACP,CAAA,CACF,CAAA,CACF,GACDA,EAAAA,mBAAoB,GAAI,EAAI,EAC/BN,QAAOtC,CAAmB,GAAKsC,EAAAA,MAAOlC,CAAO,GACzC6B,EAAAA,YAAcC,EAAAA,mBAAoB,MAAO9C,EAAa,CACrDL,EAAA,mBAAoB,MAAOM,EAAa,CACrCiD,QAAOtC,CAAmB,GACtBiC,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAO5C,EAAa,CACrDP,qBAAoB,OAAQQ,EAAaoD,kBAAiBL,EAAAA,MAAOxC,CAAC,EAAE,kCAAkC,CAAC,EAAG,CAAC,EAC3Gf,EAAA,mBAAoB,OAAQ,KAAM4D,EAAAA,gBAAiBL,EAAAA,MAAOtC,CAAmB,CAAC,EAAG,CAAC,CAAA,CACnF,GACD4C,EAAAA,mBAAoB,GAAI,EAAI,EAC/BN,QAAOlC,CAAO,GACV6B,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAO1C,EAAa,CACrDT,qBAAoB,OAAQU,EAAakD,kBAAiBL,EAAAA,MAAOxC,CAAC,EAAE,8BAA8B,CAAC,EAAG,CAAC,EACvGf,EAAA,mBAAoB,OAAQ,KAAM4D,EAAAA,gBAAiBL,EAAAA,MAAOnC,CAAU,CAAC,EAAG,CAAC,CAAA,CAC1E,GACDyC,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,CAAA,CACF,GACDA,EAAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,EAEH,CAEA,CAAC"}
|
|
@@ -1,5 +1,158 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as M, computed as i, ref as V, openBlock as r, createElementBlock as p, createVNode as N, createElementVNode as c, normalizeClass as y, unref as s, Fragment as C, renderList as E, toDisplayString as d, createCommentVNode as _, pushScopeId as B, popScopeId as F } from "vue";
|
|
2
|
+
import { TestResultStatus as j } from "./pat-shared-components4.mjs";
|
|
3
|
+
import { formatDateTimeShort as h } from "./pat-shared-components174.mjs";
|
|
4
|
+
import { ActionEventMap as I } from "./pat-shared-components89.mjs";
|
|
5
|
+
import { useI18n as z } from "./pat-shared-components75.mjs";
|
|
6
|
+
import A from "./pat-shared-components170.mjs";
|
|
7
|
+
const L = (u) => (B("data-v-b3e4434c"), u = u(), F(), u), O = { class: "psc-flex psc-w-full psc-flex-wrap psc-justify-center psc-space-y-2 psc-overflow-hidden" }, P = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "psc-w-full psc-py-4"
|
|
10
|
+
}, Y = { class: "custom-steps" }, q = { class: "steps-line-container" }, G = /* @__PURE__ */ L(() => /* @__PURE__ */ c("div", { class: "steps-line" }, null, -1)), H = ["onClick"], J = { class: "steps-content" }, Q = { class: "step-title" }, U = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "step-description"
|
|
13
|
+
}, W = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "psc-w-full"
|
|
16
|
+
}, X = { class: "-psc-mx-0.5 psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6]" }, Z = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "psc-flex-auto psc-px-0.5"
|
|
19
|
+
}, ee = { class: "psc-mr-1" }, te = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "psc-flex-auto psc-px-0.5 psc-text-right"
|
|
22
|
+
}, se = { class: "psc-mr-1" }, ie = /* @__PURE__ */ M({
|
|
23
|
+
__name: "ResultReadyV2",
|
|
24
|
+
props: {
|
|
25
|
+
testResult: null,
|
|
26
|
+
timeline: { default: void 0 }
|
|
27
|
+
},
|
|
28
|
+
setup(u) {
|
|
29
|
+
const o = u, { t: v } = z(), m = i(
|
|
30
|
+
() => h(o.testResult.sample_collected_at)
|
|
31
|
+
), k = i(
|
|
32
|
+
() => h(o.testResult.result_at)
|
|
33
|
+
), S = i(
|
|
34
|
+
() => o.testResult.result_status === j.Ready
|
|
35
|
+
), g = [
|
|
36
|
+
"ordered",
|
|
37
|
+
"sample_collected",
|
|
38
|
+
"in_progress",
|
|
39
|
+
"partially_approved",
|
|
40
|
+
"approved"
|
|
41
|
+
], K = (t) => {
|
|
42
|
+
const n = g.indexOf(t);
|
|
43
|
+
return n === -1 ? 0 : n;
|
|
44
|
+
}, T = i(() => {
|
|
45
|
+
if (!o.timeline || o.timeline.length === 0)
|
|
46
|
+
return /* @__PURE__ */ new Map();
|
|
47
|
+
const t = /* @__PURE__ */ new Map(), n = [...o.timeline].sort(
|
|
48
|
+
(l, e) => new Date(e.created_at).getTime() - new Date(l.created_at).getTime()
|
|
49
|
+
);
|
|
50
|
+
return g.forEach((l) => {
|
|
51
|
+
const e = n.find((D) => I[D.action_event] === l);
|
|
52
|
+
e && t.set(l, e.created_at);
|
|
53
|
+
}), t;
|
|
54
|
+
}), b = () => {
|
|
55
|
+
if (!o.timeline || o.timeline.length === 0)
|
|
56
|
+
return 0;
|
|
57
|
+
let t = 0;
|
|
58
|
+
return o.timeline.forEach((n) => {
|
|
59
|
+
const l = I[n.action_event];
|
|
60
|
+
if (l) {
|
|
61
|
+
const e = K(l);
|
|
62
|
+
e > t && (t = e);
|
|
63
|
+
}
|
|
64
|
+
}), t;
|
|
65
|
+
}, x = [
|
|
66
|
+
{
|
|
67
|
+
key: "ordered",
|
|
68
|
+
titleKey: "psc.test_result_step_ordered"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "sample_collected",
|
|
72
|
+
titleKey: "psc.test_result_step_sample_collected"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: "in_progress",
|
|
76
|
+
titleKey: "psc.test_result_step_in_progress"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: "partially_approved",
|
|
80
|
+
titleKey: "psc.test_result_step_partially_approved"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "approved",
|
|
84
|
+
titleKey: "psc.test_result_step_approved"
|
|
85
|
+
}
|
|
86
|
+
], w = (t) => {
|
|
87
|
+
const n = T.value.get(t);
|
|
88
|
+
if (n)
|
|
89
|
+
return h(n);
|
|
90
|
+
switch (t) {
|
|
91
|
+
case "sample_collected":
|
|
92
|
+
return m.value;
|
|
93
|
+
case "approved":
|
|
94
|
+
return k.value;
|
|
95
|
+
default:
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
}, a = i(() => b()), R = i(() => typeof f.value == "number" ? f.value : a.value), f = V(null), $ = (t) => {
|
|
99
|
+
t <= a.value && (f.value = t);
|
|
100
|
+
};
|
|
101
|
+
return (t, n) => (r(), p("div", O, [
|
|
102
|
+
N(A, {
|
|
103
|
+
status: o.testResult.result_status
|
|
104
|
+
}, null, 8, ["status"]),
|
|
105
|
+
o.timeline && o.timeline.length > 0 ? (r(), p("div", P, [
|
|
106
|
+
c("div", Y, [
|
|
107
|
+
c("div", q, [
|
|
108
|
+
G,
|
|
109
|
+
c("div", {
|
|
110
|
+
class: y(["steps-line-progress", `progress-to-${s(a)}`])
|
|
111
|
+
}, null, 2),
|
|
112
|
+
(r(), p(C, null, E(x, (l, e) => c("div", {
|
|
113
|
+
key: l.key,
|
|
114
|
+
class: y(["step-dot", [
|
|
115
|
+
{
|
|
116
|
+
active: e <= s(a),
|
|
117
|
+
current: e === s(a),
|
|
118
|
+
disabled: e > s(a),
|
|
119
|
+
selected: e === s(R)
|
|
120
|
+
},
|
|
121
|
+
`step-dot-${e}`
|
|
122
|
+
]]),
|
|
123
|
+
onClick: (D) => $(e)
|
|
124
|
+
}, null, 10, H)), 64))
|
|
125
|
+
]),
|
|
126
|
+
c("div", J, [
|
|
127
|
+
(r(), p(C, null, E(x, (l, e) => c("div", {
|
|
128
|
+
key: l.key,
|
|
129
|
+
class: y(["step-content-box", [
|
|
130
|
+
{ active: e === s(R) },
|
|
131
|
+
`step-content-${e}`
|
|
132
|
+
]])
|
|
133
|
+
}, [
|
|
134
|
+
c("div", Q, d(s(v)(l.titleKey)), 1),
|
|
135
|
+
w(l.key) ? (r(), p("div", U, d(w(l.key)), 1)) : _("", !0)
|
|
136
|
+
], 2)), 64))
|
|
137
|
+
])
|
|
138
|
+
])
|
|
139
|
+
])) : _("", !0),
|
|
140
|
+
s(m) || s(S) ? (r(), p("div", W, [
|
|
141
|
+
c("div", X, [
|
|
142
|
+
s(m) ? (r(), p("div", Z, [
|
|
143
|
+
c("span", ee, d(s(v)("psc.test_result_sample_collected")), 1),
|
|
144
|
+
c("span", null, d(s(m)), 1)
|
|
145
|
+
])) : _("", !0),
|
|
146
|
+
s(S) ? (r(), p("div", te, [
|
|
147
|
+
c("span", se, d(s(v)("psc.test_result_result_ready")), 1),
|
|
148
|
+
c("span", null, d(s(k)), 1)
|
|
149
|
+
])) : _("", !0)
|
|
150
|
+
])
|
|
151
|
+
])) : _("", !0)
|
|
152
|
+
]));
|
|
153
|
+
}
|
|
154
|
+
});
|
|
2
155
|
export {
|
|
3
|
-
|
|
156
|
+
ie as default
|
|
4
157
|
};
|
|
5
158
|
//# sourceMappingURL=pat-shared-components130.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components130.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"pat-shared-components130.mjs","sources":["../src/components/TestResult/Shared/ResultReadyV2.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b3e4434c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"psc-flex psc-w-full psc-flex-wrap psc-justify-center psc-space-y-2 psc-overflow-hidden\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"psc-w-full psc-py-4\"\n}\nconst _hoisted_3 = { class: \"custom-steps\" }\nconst _hoisted_4 = { class: \"steps-line-container\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"steps-line\" }, null, -1))\nconst _hoisted_6 = [\"onClick\"]\nconst _hoisted_7 = { class: \"steps-content\" }\nconst _hoisted_8 = { class: \"step-title\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"step-description\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"psc-w-full\"\n}\nconst _hoisted_11 = { class: \"-psc-mx-0.5 psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6]\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"psc-flex-auto psc-px-0.5\"\n}\nconst _hoisted_13 = { class: \"psc-mr-1\" }\nconst _hoisted_14 = {\n key: 1,\n class: \"psc-flex-auto psc-px-0.5 psc-text-right\"\n}\nconst _hoisted_15 = { class: \"psc-mr-1\" }\n\nimport { TestResultStatus } from '@/constants/Enums';\nimport { formatDateTimeShort } from '@/helpers/DateHelper';\nimport { ActionEventMap } from '@/helpers/ComponentHelper';\nimport type { TestResult } from '@/types';\nimport { computed, ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport ResultStatus from '../../Shared/ResultStatus.vue';\n\n/**\n * Props\n */\nexport interface TimelineEvent {\n vid: string;\n created_at: string;\n action_event: string;\n}\n\nexport interface StepConfig {\n key: string;\n titleKey: string;\n date?: string;\n}\n\nexport interface Props {\n testResult: TestResult;\n timeline?: TimelineEvent[];\n}\ntype StepKey = (typeof STEP_KEYS)[number];\n\n// Map step key to index\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ResultReadyV2',\n props: {\n testResult: null,\n timeline: { default: undefined }\n },\n setup(__props: any) {\n\nconst props = __props as { testResult: TestResult, timeline: TimelineEvent[] };\n\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst sampleCollectedDate = computed(() =>\n formatDateTimeShort(props.testResult.sample_collected_at)\n);\nconst resultDate = computed(() =>\n formatDateTimeShort(props.testResult.result_at)\n);\nconst isReady = computed(\n () => props.testResult.result_status === TestResultStatus.Ready\n);\n\n// Define the step keys in order\nconst STEP_KEYS = [\n 'ordered',\n 'sample_collected',\n 'in_progress',\n 'partially_approved',\n 'approved',\n] as const;\n\nconst stepKeyToIndex = (key: string): number => {\n const index = STEP_KEYS.indexOf(key as StepKey);\n return index === -1 ? 0 : index;\n};\n\n// Process timeline to get the latest date for each step\nconst stepDates = computed(() => {\n if (!props.timeline || props.timeline.length === 0) {\n return new Map<string, string>();\n }\n\n const dateMap = new Map<string, string>();\n\n // Sort timeline by created_at descending to process latest events first\n const sortedTimeline = [...props.timeline].sort(\n (a, b) =>\n new Date(b.created_at).getTime() - new Date(a.created_at).getTime()\n );\n\n // For each step, find the latest event that maps to it\n STEP_KEYS.forEach((stepKey) => {\n const latestEvent = sortedTimeline.find((event) => {\n const mappedStep = ActionEventMap[event.action_event];\n return mappedStep === stepKey;\n });\n\n if (latestEvent) {\n dateMap.set(stepKey, latestEvent.created_at);\n }\n });\n\n return dateMap;\n});\n\n// Get current step from timeline (the highest step reached)\nconst getCurrentStepFromTimeline = (): number => {\n if (!props.timeline || props.timeline.length === 0) {\n return 0;\n }\n\n let maxStepIndex = 0;\n\n props.timeline.forEach((event) => {\n const statusKey = ActionEventMap[event.action_event];\n if (statusKey) {\n const stepIndex = stepKeyToIndex(statusKey);\n if (stepIndex > maxStepIndex) {\n maxStepIndex = stepIndex;\n }\n }\n });\n\n return maxStepIndex;\n};\n\n// Steps configuration\nconst steps: StepConfig[] = [\n {\n key: 'ordered',\n titleKey: 'psc.test_result_step_ordered',\n },\n {\n key: 'sample_collected',\n titleKey: 'psc.test_result_step_sample_collected',\n },\n {\n key: 'in_progress',\n titleKey: 'psc.test_result_step_in_progress',\n },\n {\n key: 'partially_approved',\n titleKey: 'psc.test_result_step_partially_approved',\n },\n {\n key: 'approved',\n titleKey: 'psc.test_result_step_approved',\n },\n];\n\n// Get step date based on key\nconst getStepDate = (key: string): string | Date | undefined => {\n // Check if we have a date from timeline for this step\n const timelineDate = stepDates.value.get(key);\n if (timelineDate) {\n return formatDateTimeShort(timelineDate);\n }\n\n // Fallback to original logic for specific steps\n switch (key) {\n case 'sample_collected':\n return sampleCollectedDate.value;\n case 'approved':\n return resultDate.value;\n default:\n return undefined;\n }\n};\n\nconst currentStep = computed(() => getCurrentStepFromTimeline());\n\nconst selectedStep = computed(() => {\n return typeof selectedStepIndex.value === 'number'\n ? selectedStepIndex.value\n : currentStep.value;\n});\nconst selectedStepIndex = ref<number | null>(null);\n\nconst handleStepClick = (index: number) => {\n // Only allow clicking on current step and previous steps\n if (index <= currentStep.value) {\n selectedStepIndex.value = index;\n }\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(ResultStatus, {\n status: props.testResult.result_status\n }, null, 8, [\"status\"]),\n (props.timeline && props.timeline.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"steps-line-progress\", `progress-to-${_unref(currentStep)}`])\n }, null, 2),\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(steps, (step, index) => {\n return _createElementVNode(\"div\", {\n key: step.key,\n class: _normalizeClass([\"step-dot\", [\n {\n active: index <= _unref(currentStep),\n current: index === _unref(currentStep),\n disabled: index > _unref(currentStep),\n selected: index === _unref(selectedStep),\n },\n `step-dot-${index}`,\n ]]),\n onClick: ($event: any) => (handleStepClick(index))\n }, null, 10, _hoisted_6)\n }), 64))\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(steps, (step, index) => {\n return _createElementVNode(\"div\", {\n key: step.key,\n class: _normalizeClass([\"step-content-box\", [\n { active: index === _unref(selectedStep) },\n `step-content-${index}`,\n ]])\n }, [\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString(_unref(t)(step.titleKey)), 1),\n (getStepDate(step.key))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, _toDisplayString(getStepDate(step.key)), 1))\n : _createCommentVNode(\"\", true)\n ], 2)\n }), 64))\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(sampleCollectedDate) || _unref(isReady))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n (_unref(sampleCollectedDate))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, _toDisplayString(_unref(t)('psc.test_result_sample_collected')), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_unref(sampleCollectedDate)), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(isReady))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"span\", _hoisted_15, _toDisplayString(_unref(t)('psc.test_result_result_ready')), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_unref(resultDate)), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})"],"names":["_withScopeId","_pushScopeId","n","_popScopeId","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createElementVNode","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_sfc_main","_defineComponent","__props","props","t","useI18n","sampleCollectedDate","computed","formatDateTimeShort","resultDate","isReady","TestResultStatus","STEP_KEYS","stepKeyToIndex","key","index","stepDates","dateMap","sortedTimeline","a","b","stepKey","latestEvent","event","ActionEventMap","getCurrentStepFromTimeline","maxStepIndex","statusKey","stepIndex","steps","getStepDate","timelineDate","currentStep","selectedStep","selectedStepIndex","ref","handleStepClick","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","ResultStatus","_normalizeClass","_unref","_Fragment","_renderList","step","$event","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;AAGA,MAAMA,IAAe,QAAMC,EAAa,iBAAiB,GAAEC,IAAEA,KAAIC,KAAcD,IACzEE,IAAa,EAAE,OAAO,4FACtBC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,kBACtBC,IAAa,EAAE,OAAO,0BACtBC,IAAwC,gBAAAR,EAAA,MAAuCS,gBAAAA,EAAA,OAAO,EAAE,OAAO,gBAAgB,MAAM,EAAE,CAAC,GACxHC,IAAa,CAAC,SAAS,GACvBC,IAAa,EAAE,OAAO,mBACtBC,IAAa,EAAE,OAAO,gBACtBC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAc;AAAA,EAClB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAc,EAAE,OAAO,yEACvBC,IAAc;AAAA,EAClB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,KAAc,EAAE,OAAO,cACvBC,KAAc;AAAA,EAClB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,KAAc,EAAE,OAAO,cAiCDC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY;AAAA,IACZ,UAAU,EAAE,SAAS,OAAU;AAAA,EACjC;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAOR,EAAE,GAAAE,MAAMC,KACRC,IAAsBC;AAAA,MAAS,MACnCC,EAAoBL,EAAM,WAAW,mBAAmB;AAAA,IAAA,GAEpDM,IAAaF;AAAA,MAAS,MAC1BC,EAAoBL,EAAM,WAAW,SAAS;AAAA,IAAA,GAE1CO,IAAUH;AAAA,MACd,MAAMJ,EAAM,WAAW,kBAAkBQ,EAAiB;AAAA,IAAA,GAItDC,IAAY;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Aa;AAAA,YACrDP,EAAoB,QAAQQ,IAAaoD,EAAiBL,EAAOxC,CAAC,EAAE,kCAAkC,CAAC,GAAG,CAAC;AAAA,YAC3Gf,EAAoB,QAAQ,MAAM4D,EAAiBL,EAAOtC,CAAmB,CAAC,GAAG,CAAC;AAAA,UAAA,CACnF,KACD4C,EAAoB,IAAI,EAAI;AAAA,UAC/BN,EAAOlC,CAAO,KACV6B,EAAc,GAAAC,EAAoB,OAAO1C,IAAa;AAAA,YACrDT,EAAoB,QAAQU,IAAakD,EAAiBL,EAAOxC,CAAC,EAAE,8BAA8B,CAAC,GAAG,CAAC;AAAA,YACvGf,EAAoB,QAAQ,MAAM4D,EAAiBL,EAAOnC,CAAU,CAAC,GAAG,CAAC;AAAA,UAAA,CAC1E,KACDyC,EAAoB,IAAI,EAAI;AAAA,QAAA,CACjC;AAAA,MAAA,CACF,KACDA,EAAoB,IAAI,EAAI;AAAA,IAAA,CACjC;AAAA,EAEH;AAEA,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=
|
|
1
|
+
"use strict";const e="";module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components131.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components91.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components132.js.map
|