pat-shared-components 1.3.1-beta.28 → 1.3.1-beta.29
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-components111.js +1 -1
- package/dist/pat-shared-components111.mjs +1 -1
- package/dist/pat-shared-components114.js +1 -1
- package/dist/pat-shared-components114.mjs +1 -1
- package/dist/pat-shared-components121.js +1 -1
- package/dist/pat-shared-components121.js.map +1 -1
- package/dist/pat-shared-components121.mjs +5 -32
- package/dist/pat-shared-components121.mjs.map +1 -1
- package/dist/pat-shared-components122.js +1 -1
- package/dist/pat-shared-components122.js.map +1 -1
- package/dist/pat-shared-components122.mjs +46 -5
- package/dist/pat-shared-components122.mjs.map +1 -1
- package/dist/pat-shared-components123.js +1 -1
- package/dist/pat-shared-components123.js.map +1 -1
- package/dist/pat-shared-components123.mjs +50 -42
- package/dist/pat-shared-components123.mjs.map +1 -1
- package/dist/pat-shared-components124.js +1 -1
- package/dist/pat-shared-components124.js.map +1 -1
- package/dist/pat-shared-components124.mjs +43 -49
- package/dist/pat-shared-components124.mjs.map +1 -1
- package/dist/pat-shared-components125.js +1 -1
- package/dist/pat-shared-components125.js.map +1 -1
- package/dist/pat-shared-components125.mjs +19 -45
- package/dist/pat-shared-components125.mjs.map +1 -1
- package/dist/pat-shared-components126.js +1 -1
- package/dist/pat-shared-components126.js.map +1 -1
- package/dist/pat-shared-components126.mjs +77 -19
- package/dist/pat-shared-components126.mjs.map +1 -1
- package/dist/pat-shared-components127.js +1 -1
- package/dist/pat-shared-components127.js.map +1 -1
- package/dist/pat-shared-components127.mjs +12 -80
- package/dist/pat-shared-components127.mjs.map +1 -1
- package/dist/pat-shared-components128.js +1 -1
- package/dist/pat-shared-components128.js.map +1 -1
- package/dist/pat-shared-components128.mjs +43 -11
- package/dist/pat-shared-components128.mjs.map +1 -1
- package/dist/pat-shared-components129.js +1 -1
- package/dist/pat-shared-components129.js.map +1 -1
- package/dist/pat-shared-components129.mjs +56 -42
- package/dist/pat-shared-components129.mjs.map +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 +32 -15
- package/dist/pat-shared-components130.mjs.map +1 -1
- package/dist/pat-shared-components132.js +1 -1
- package/dist/pat-shared-components132.mjs +1 -1
- package/dist/pat-shared-components135.js +1 -1
- package/dist/pat-shared-components135.mjs +2 -2
- package/dist/pat-shared-components137.js +1 -1
- package/dist/pat-shared-components137.mjs +3 -3
- 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 +2 -2
- package/dist/pat-shared-components140.js +1 -1
- package/dist/pat-shared-components140.mjs +2 -2
- package/dist/pat-shared-components141.js +1 -1
- package/dist/pat-shared-components141.mjs +2 -2
- package/dist/pat-shared-components144.js +1 -1
- package/dist/pat-shared-components144.js.map +1 -1
- package/dist/pat-shared-components144.mjs +9 -29
- package/dist/pat-shared-components144.mjs.map +1 -1
- package/dist/pat-shared-components145.js +5 -1
- package/dist/pat-shared-components145.js.map +1 -1
- package/dist/pat-shared-components145.mjs +789 -27
- package/dist/pat-shared-components145.mjs.map +1 -1
- package/dist/pat-shared-components146.js +1 -1
- package/dist/pat-shared-components146.js.map +1 -1
- package/dist/pat-shared-components146.mjs +5 -24
- package/dist/pat-shared-components146.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 +25 -17
- package/dist/pat-shared-components147.mjs.map +1 -1
- package/dist/pat-shared-components148.js +4 -1
- package/dist/pat-shared-components148.js.map +1 -1
- package/dist/pat-shared-components148.mjs +1364 -27
- package/dist/pat-shared-components148.mjs.map +1 -1
- package/dist/pat-shared-components149.js +1 -1
- package/dist/pat-shared-components149.js.map +1 -1
- package/dist/pat-shared-components149.mjs +89 -153
- package/dist/pat-shared-components149.mjs.map +1 -1
- package/dist/pat-shared-components150.js +1 -1
- package/dist/pat-shared-components150.js.map +1 -1
- package/dist/pat-shared-components150.mjs +17 -2
- package/dist/pat-shared-components150.mjs.map +1 -1
- package/dist/pat-shared-components151.js +1 -1
- package/dist/pat-shared-components151.js.map +1 -1
- package/dist/pat-shared-components151.mjs +63 -2
- package/dist/pat-shared-components151.mjs.map +1 -1
- package/dist/pat-shared-components152.js +1 -1
- package/dist/pat-shared-components152.js.map +1 -1
- package/dist/pat-shared-components152.mjs +15 -2
- package/dist/pat-shared-components152.mjs.map +1 -1
- package/dist/pat-shared-components153.js +1 -1
- package/dist/pat-shared-components153.js.map +1 -1
- package/dist/pat-shared-components153.mjs +106 -2
- 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 +7 -2
- package/dist/pat-shared-components154.mjs.map +1 -1
- package/dist/pat-shared-components155.js +1 -1
- package/dist/pat-shared-components155.js.map +1 -1
- package/dist/pat-shared-components155.mjs +4 -2
- package/dist/pat-shared-components155.mjs.map +1 -1
- package/dist/pat-shared-components156.js +1 -1
- package/dist/pat-shared-components156.js.map +1 -1
- package/dist/pat-shared-components156.mjs +48 -2
- 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 +29 -25
- 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 +24 -73
- 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 +24 -2
- package/dist/pat-shared-components159.mjs.map +1 -1
- package/dist/pat-shared-components160.js +1 -1
- package/dist/pat-shared-components160.js.map +1 -1
- package/dist/pat-shared-components160.mjs +17 -56
- 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 +161 -2
- 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 +2 -71
- package/dist/pat-shared-components162.mjs.map +1 -1
- package/dist/pat-shared-components163.js +1 -1
- package/dist/pat-shared-components163.mjs +2 -2
- package/dist/pat-shared-components164.js +1 -1
- package/dist/pat-shared-components164.mjs +1 -1
- package/dist/pat-shared-components165.js +1 -1
- package/dist/pat-shared-components165.mjs +1 -1
- package/dist/pat-shared-components166.js +1 -1
- package/dist/pat-shared-components166.mjs +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.js.map +1 -1
- package/dist/pat-shared-components168.mjs +2 -9
- package/dist/pat-shared-components168.mjs.map +1 -1
- package/dist/pat-shared-components169.js +1 -5
- package/dist/pat-shared-components169.js.map +1 -1
- package/dist/pat-shared-components169.mjs +24 -789
- package/dist/pat-shared-components169.mjs.map +1 -1
- package/dist/pat-shared-components170.js +1 -1
- package/dist/pat-shared-components170.js.map +1 -1
- package/dist/pat-shared-components170.mjs +2 -5
- package/dist/pat-shared-components170.mjs.map +1 -1
- package/dist/pat-shared-components171.js +1 -1
- package/dist/pat-shared-components171.js.map +1 -1
- package/dist/pat-shared-components171.mjs +2 -25
- package/dist/pat-shared-components171.mjs.map +1 -1
- package/dist/pat-shared-components172.js +1 -4
- package/dist/pat-shared-components172.js.map +1 -1
- package/dist/pat-shared-components172.mjs +2 -1364
- package/dist/pat-shared-components172.mjs.map +1 -1
- package/dist/pat-shared-components173.js +1 -1
- package/dist/pat-shared-components173.js.map +1 -1
- package/dist/pat-shared-components173.mjs +2 -97
- package/dist/pat-shared-components173.mjs.map +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 +76 -16
- 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 +2 -63
- 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 +54 -13
- 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 +2 -106
- 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 +71 -7
- 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 +2 -4
- package/dist/pat-shared-components179.mjs.map +1 -1
- package/dist/pat-shared-components180.js +1 -1
- package/dist/pat-shared-components180.js.map +1 -1
- package/dist/pat-shared-components180.mjs +22 -43
- package/dist/pat-shared-components180.mjs.map +1 -1
- package/dist/pat-shared-components182.js +1 -1
- package/dist/pat-shared-components182.mjs +1 -1
- package/dist/pat-shared-components183.js +1 -1
- package/dist/pat-shared-components183.mjs +4 -4
- package/dist/pat-shared-components185.js +1 -1
- package/dist/pat-shared-components185.mjs +3 -3
- package/dist/pat-shared-components186.js +1 -1
- package/dist/pat-shared-components186.mjs +4 -4
- package/dist/pat-shared-components187.js +1 -1
- package/dist/pat-shared-components187.js.map +1 -1
- package/dist/pat-shared-components187.mjs +20 -2
- package/dist/pat-shared-components187.mjs.map +1 -1
- package/dist/pat-shared-components188.js +6 -1
- package/dist/pat-shared-components188.js.map +1 -1
- package/dist/pat-shared-components188.mjs +107 -2
- package/dist/pat-shared-components188.mjs.map +1 -1
- package/dist/pat-shared-components189.js +6 -1
- package/dist/pat-shared-components189.js.map +1 -1
- package/dist/pat-shared-components189.mjs +950 -2
- package/dist/pat-shared-components189.mjs.map +1 -1
- package/dist/pat-shared-components190.js +7 -1
- package/dist/pat-shared-components190.js.map +1 -1
- package/dist/pat-shared-components190.mjs +860 -19
- package/dist/pat-shared-components190.mjs.map +1 -1
- package/dist/pat-shared-components191.js +1 -1
- package/dist/pat-shared-components191.js.map +1 -1
- package/dist/pat-shared-components191.mjs +5 -9
- package/dist/pat-shared-components191.mjs.map +1 -1
- package/dist/pat-shared-components192.js +1 -1
- package/dist/pat-shared-components192.js.map +1 -1
- package/dist/pat-shared-components192.mjs +3 -39
- package/dist/pat-shared-components192.mjs.map +1 -1
- package/dist/pat-shared-components193.js +1 -1
- package/dist/pat-shared-components193.js.map +1 -1
- package/dist/pat-shared-components193.mjs +2 -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 +4 -78
- 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 +8 -5
- 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 +6 -18
- package/dist/pat-shared-components196.mjs.map +1 -1
- package/dist/pat-shared-components197.js +1 -1
- package/dist/pat-shared-components197.mjs +1 -17
- package/dist/pat-shared-components197.mjs.map +1 -1
- package/dist/pat-shared-components198.js +1 -1
- package/dist/pat-shared-components198.mjs +2 -20
- package/dist/pat-shared-components198.mjs.map +1 -1
- package/dist/pat-shared-components199.js +1 -1
- package/dist/pat-shared-components199.mjs +2 -16
- package/dist/pat-shared-components199.mjs.map +1 -1
- package/dist/pat-shared-components20.js +1 -1
- package/dist/pat-shared-components20.js.map +1 -1
- package/dist/pat-shared-components20.mjs +11 -11
- package/dist/pat-shared-components20.mjs.map +1 -1
- package/dist/pat-shared-components200.js +1 -1
- package/dist/pat-shared-components200.mjs +3 -15
- package/dist/pat-shared-components200.mjs.map +1 -1
- package/dist/pat-shared-components201.js +1 -1
- package/dist/pat-shared-components201.mjs +10 -20
- package/dist/pat-shared-components201.mjs.map +1 -1
- package/dist/pat-shared-components202.js +1 -6
- package/dist/pat-shared-components202.js.map +1 -1
- package/dist/pat-shared-components202.mjs +2 -107
- package/dist/pat-shared-components202.mjs.map +1 -1
- package/dist/pat-shared-components203.js +1 -6
- package/dist/pat-shared-components203.js.map +1 -1
- package/dist/pat-shared-components203.mjs +2 -950
- package/dist/pat-shared-components203.mjs.map +1 -1
- package/dist/pat-shared-components204.js +1 -7
- package/dist/pat-shared-components204.js.map +1 -1
- package/dist/pat-shared-components204.mjs +2 -861
- package/dist/pat-shared-components204.mjs.map +1 -1
- package/dist/pat-shared-components205.js +1 -1
- package/dist/pat-shared-components205.js.map +1 -1
- package/dist/pat-shared-components205.mjs +9 -5
- package/dist/pat-shared-components205.mjs.map +1 -1
- package/dist/pat-shared-components206.js +1 -1
- package/dist/pat-shared-components206.js.map +1 -1
- package/dist/pat-shared-components206.mjs +39 -3
- package/dist/pat-shared-components206.mjs.map +1 -1
- package/dist/pat-shared-components207.js +1 -1
- package/dist/pat-shared-components207.js.map +1 -1
- package/dist/pat-shared-components207.mjs +37 -2
- package/dist/pat-shared-components207.mjs.map +1 -1
- package/dist/pat-shared-components208.js +1 -1
- package/dist/pat-shared-components208.js.map +1 -1
- package/dist/pat-shared-components208.mjs +13 -37
- package/dist/pat-shared-components208.mjs.map +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 +27 -13
- package/dist/pat-shared-components209.mjs.map +1 -1
- package/dist/pat-shared-components210.js +1 -1
- package/dist/pat-shared-components210.js.map +1 -1
- package/dist/pat-shared-components210.mjs +52 -21
- 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 +74 -54
- 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 +20 -4
- 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 +18 -7
- 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 +15 -6
- package/dist/pat-shared-components214.mjs.map +1 -1
- package/dist/pat-shared-components215.js +1 -1
- package/dist/pat-shared-components215.mjs +16 -2
- package/dist/pat-shared-components215.mjs.map +1 -1
- package/dist/pat-shared-components216.js +1 -1
- package/dist/pat-shared-components216.mjs +33 -3
- package/dist/pat-shared-components216.mjs.map +1 -1
- package/dist/pat-shared-components217.js +1 -1
- package/dist/pat-shared-components217.mjs +5 -10
- package/dist/pat-shared-components217.mjs.map +1 -1
- package/dist/pat-shared-components218.js +1 -1
- package/dist/pat-shared-components218.mjs +17 -1
- package/dist/pat-shared-components218.mjs.map +1 -1
- package/dist/pat-shared-components219.js +1 -1
- package/dist/pat-shared-components219.mjs +19 -1
- package/dist/pat-shared-components219.mjs.map +1 -1
- package/dist/pat-shared-components220.js +5 -1
- package/dist/pat-shared-components220.js.map +1 -1
- package/dist/pat-shared-components220.mjs +10 -2
- 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 -42
- 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 +42 -2
- package/dist/pat-shared-components222.mjs.map +1 -1
- package/dist/pat-shared-components223.js +1 -1
- package/dist/pat-shared-components223.mjs +2 -2
- package/dist/pat-shared-components224.js +1 -1
- package/dist/pat-shared-components224.mjs +1 -1
- package/dist/pat-shared-components225.js +1 -1
- package/dist/pat-shared-components225.mjs +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 +2 -9
- 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 +7 -5
- 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 +6 -3
- 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 +4 -3
- package/dist/pat-shared-components229.mjs.map +1 -1
- package/dist/pat-shared-components230.js +1 -1
- package/dist/pat-shared-components230.js.map +1 -1
- package/dist/pat-shared-components230.mjs +3 -6
- package/dist/pat-shared-components230.mjs.map +1 -1
- package/dist/pat-shared-components231.js +1 -1
- package/dist/pat-shared-components231.js.map +1 -1
- package/dist/pat-shared-components231.mjs +5 -9
- package/dist/pat-shared-components231.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 +9 -4
- 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 +5 -5
- 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 +5 -4
- 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 +4 -4
- 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 +3 -11
- 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 +12 -27
- 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 +27 -6
- 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 +6 -6
- 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 +6 -8
- 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 +7 -4
- 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 +4 -9
- 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 +9 -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 +6 -10
- package/dist/pat-shared-components244.mjs.map +1 -1
- package/dist/pat-shared-components245.js +1 -5
- package/dist/pat-shared-components245.js.map +1 -1
- package/dist/pat-shared-components245.mjs +10 -10
- package/dist/pat-shared-components245.mjs.map +1 -1
- package/dist/pat-shared-components246.js +1 -1
- package/dist/pat-shared-components246.mjs +2 -2
- package/dist/pat-shared-components254.js +1 -1
- package/dist/pat-shared-components254.mjs +1 -1
- package/dist/pat-shared-components258.js +1 -1
- package/dist/pat-shared-components258.mjs +1 -1
- package/dist/pat-shared-components259.js +1 -1
- package/dist/pat-shared-components259.mjs +1 -1
- package/dist/pat-shared-components260.js +1 -1
- package/dist/pat-shared-components260.mjs +1 -1
- package/dist/pat-shared-components261.js +1 -1
- package/dist/pat-shared-components261.mjs +1 -1
- package/dist/pat-shared-components262.js +1 -1
- package/dist/pat-shared-components262.mjs +1 -1
- package/dist/pat-shared-components264.js +1 -1
- package/dist/pat-shared-components264.mjs +2 -2
- package/dist/pat-shared-components273.js +1 -1
- package/dist/pat-shared-components273.mjs +1 -1
- package/dist/pat-shared-components28.js +1 -1
- package/dist/pat-shared-components28.js.map +1 -1
- package/dist/pat-shared-components28.mjs +10 -10
- package/dist/pat-shared-components28.mjs.map +1 -1
- package/dist/pat-shared-components35.js +1 -1
- package/dist/pat-shared-components35.mjs +1 -1
- package/dist/pat-shared-components36.js +1 -1
- package/dist/pat-shared-components36.js.map +1 -1
- package/dist/pat-shared-components36.mjs +69 -61
- package/dist/pat-shared-components36.mjs.map +1 -1
- package/dist/pat-shared-components6.js +1 -1
- package/dist/pat-shared-components6.mjs +1 -1
- package/dist/pat-shared-components66.js +2 -2
- package/dist/pat-shared-components66.js.map +1 -1
- package/dist/pat-shared-components66.mjs +136 -132
- package/dist/pat-shared-components66.mjs.map +1 -1
- package/dist/pat-shared-components68.js +1 -1
- package/dist/pat-shared-components68.mjs +3 -3
- package/dist/pat-shared-components7.js +1 -1
- package/dist/pat-shared-components7.mjs +1 -1
- package/dist/pat-shared-components70.js +1 -1
- package/dist/pat-shared-components70.mjs +1 -1
- package/dist/pat-shared-components72.js +1 -1
- package/dist/pat-shared-components72.mjs +1 -1
- package/dist/pat-shared-components74.js +1 -1
- package/dist/pat-shared-components74.mjs +1 -1
- package/dist/pat-shared-components81.js +1 -1
- package/dist/pat-shared-components81.mjs +1 -1
- package/dist/pat-shared-components84.js +1 -1
- package/dist/pat-shared-components84.mjs +1 -1
- package/dist/pat-shared-components85.js +1 -1
- package/dist/pat-shared-components85.mjs +2 -2
- package/dist/pat-shared-components86.js +1 -1
- package/dist/pat-shared-components86.mjs +2 -2
- package/dist/pat-shared-components91.js +1 -1
- package/dist/pat-shared-components91.mjs +3 -3
- package/dist/pat-shared-components92.js +1 -1
- package/dist/pat-shared-components92.mjs +1 -1
- package/dist/pat-shared-components93.js +1 -1
- package/dist/pat-shared-components93.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/TestResult/Shared/TakeSurvey.vue.d.ts +2 -2
- package/dist/types/helpers/SurveyHelper.d.ts +5 -0
- package/dist/types/types/TestResult.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as N, toRef as _, ref as D, computed as c, openBlock as o, createBlock as s, createElementBlock as R, Fragment as E, unref as e, createElementVNode as d, createCommentVNode as l, createVNode as n, withCtx as i, createSlots as V, renderSlot as f } from "vue";
|
|
2
|
-
import { useTestResult as I } from "./pat-shared-
|
|
2
|
+
import { useTestResult as I } from "./pat-shared-components128.mjs";
|
|
3
3
|
import T from "./pat-shared-components75.mjs";
|
|
4
|
-
import A from "./pat-shared-
|
|
4
|
+
import A from "./pat-shared-components121.mjs";
|
|
5
5
|
import F from "./pat-shared-components33.mjs";
|
|
6
|
-
import P from "./pat-shared-
|
|
7
|
-
import j from "./pat-shared-
|
|
8
|
-
import a from "./pat-shared-
|
|
6
|
+
import P from "./pat-shared-components122.mjs";
|
|
7
|
+
import j from "./pat-shared-components126.mjs";
|
|
8
|
+
import a from "./pat-shared-components127.mjs";
|
|
9
9
|
import q from "./pat-shared-components12.mjs";
|
|
10
|
-
import z from "./pat-shared-
|
|
10
|
+
import z from "./pat-shared-components123.mjs";
|
|
11
11
|
import G from "./pat-shared-components66.mjs";
|
|
12
|
-
import H from "./pat-shared-
|
|
12
|
+
import H from "./pat-shared-components124.mjs";
|
|
13
13
|
import J from "./pat-shared-components132.mjs";
|
|
14
|
-
import { buildTestResultSurveyContext as h, getSurveySlug as K } from "./pat-shared-
|
|
14
|
+
import { buildTestResultSurveyContext as h, getSurveySlug as K } from "./pat-shared-components129.mjs";
|
|
15
15
|
import L from "./pat-shared-components36.mjs";
|
|
16
16
|
import "./pat-shared-components56.mjs";
|
|
17
17
|
const M = {
|
|
@@ -48,7 +48,7 @@ const M = {
|
|
|
48
48
|
() => h(t.testResult)
|
|
49
49
|
), C = c(
|
|
50
50
|
() => !!t.testResult.doctor_note_detail && t.testResult.doctor_note_detail.length > 0
|
|
51
|
-
), v = c(() =>
|
|
51
|
+
), v = c(() => !0);
|
|
52
52
|
return (r, p) => t.loading ? (o(), s(J, { key: 0 })) : (o(), R(E, { key: 1 }, [
|
|
53
53
|
e(g) ? (o(), R("div", M, [
|
|
54
54
|
d("div", O, [
|
|
@@ -112,7 +112,7 @@ const M = {
|
|
|
112
112
|
variant: "bar",
|
|
113
113
|
"survey-slug": e($),
|
|
114
114
|
context: e(B),
|
|
115
|
-
text: r.$t("psc.
|
|
115
|
+
text: r.$t("psc.test_result_take_survey_button")
|
|
116
116
|
}, null, 8, ["survey-slug", "context", "text"])
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components28.mjs","sources":["../src/components/TestResult/Desktop/TestResultDetailDesktop.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, renderSlot as _renderSlot, createSlots as _createSlots, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-flex psc-items-start\"\n}\nconst _hoisted_2 = { class: \"-psc-ml-4 psc-mr-16 psc-w-[480px] psc-shrink-0 psc-grow-0\" }\nconst _hoisted_3 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\nconst _hoisted_4 = { class: \"psc-min-w-0 psc-flex-1\" }\nconst _hoisted_5 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\n\nimport { useTestResult } from '@/composables/TestResult';\nimport PatientName from '../../Shared/PatientName.vue';\nimport ResultReadyV2 from '../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../Shared/RejectedResult.vue';\nimport BookAppointment from '../Shared/BookAppointment.vue';\nimport HealthSummary from '../HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../Shared/TestResultSection.vue';\nimport CallUsFilledButton from '../Shared/CallUsFilledButton.vue';\nimport DoctorNote from '../Shared/DoctorNote.vue';\nimport DoctorNoteDetail from '../Shared/DoctorNoteDetail.vue';\nimport type { TestResult } from '@/types';\nimport UpcomingAppointment from '../Shared/UpcomingAppointment.vue';\nimport { ref, toRef, computed } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.vue';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n} from '@/helpers/SurveyHelper';\nimport TakeSurvey from '../Shared/TakeSurvey.vue';\n\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n enableBookingFeature?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetailDesktop',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n enableBookingFeature: { type: Boolean, default: false },\n timeline: { default: undefined },\n listActionEvent: { default: undefined }\n },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\n],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, enableBookingFeature: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string> };\n\n\n\n\n\nconst { healthSummaryItems, hideContent, isViewable, visible } = useTestResult({\n testResult: toRef(props, 'testResult'),\n hidePatientInfo: toRef(props, 'hidePatientInfo'),\n hideSummary: toRef(props, 'hideSummary'),\n});\n\nconst isDisplayBook = ref(false);\n\nconst doctorNoteSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult, 'doctor-note')\n);\n\nconst testSurveySlug = computed(() =>\n getSurveySlug(\n props.testResult.collection_channel,\n props.testResult.is_free_consultant\n )\n);\n\nconst testSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult)\n);\n\nconst hasDoctorNoteDetail = computed(\n () =>\n !!props.testResult.doctor_note_detail &&\n props.testResult.doctor_note_detail.length > 0\n);\n\nconst isSurveyEnabled = computed(() => props.testResult.enable_survey === true);\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailDesktopSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (_unref(visible).patientName)\n ? (_openBlock(), _createBlock(PatientName, {\n key: 0,\n \"first-name\": props.testResult.first_name,\n class: \"psc-px-4 psc-pb-2\"\n }, null, 8, [\"first-name\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(ResultReadyV2, {\n \"test-result\": props.testResult,\n timeline: props.timeline,\n \"list-action-event\": props.listActionEvent,\n class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\", \"timeline\", \"list-action-event\"]),\n (_unref(visible).healthSummary)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 1 }, {\n default: _withCtx(() => [\n _createVNode(HealthSummary, { items: _unref(healthSummaryItems) }, null, 8, [\"items\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (__props.testResult.is_free_consultant)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[0] || (_cache[0] = \n () => {\n isDisplayBook.value = true;\n emit('click:book-appointment');\n }\n )\n }, _createSlots({ _: 2 }, [\n (__props.enableBookingFeature && isDisplayBook.value)\n ? {\n name: \"content\",\n fn: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"book-appointment\")\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024)\n ]),\n _: 3\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNote, {\n \"doctor-note\": props.testResult.doctor_note\n }, null, 8, [\"doctor-note\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(hasDoctorNoteDetail))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail!,\n \"survey-context\": \n _unref(isSurveyEnabled) ? _unref(doctorNoteSurveyContext) : undefined\n ,\n \"onClick:appointmentBooking\": _cache[1] || (_cache[1] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\", \"survey-context\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(isSurveyEnabled))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\n default: _withCtx(() => [\n _createVNode(TakeSurvey, {\n variant: \"bar\",\n \"survey-slug\": _unref(testSurveySlug),\n context: _unref(testSurveyContext),\n text: _ctx.$t('psc.test_result_take_survey')\n }, null, 8, [\"survey-slug\", \"context\", \"text\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 6 }, {\n default: _withCtx(() => [\n _createVNode(UpcomingAppointment, {\n \"time-slot\": props.testResult.consult_time!\n }, null, 8, [\"time-slot\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","isDisplayBook","ref","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","$event","TakeSurvey","UpcomingAppointment","Reject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AS,MAAM;AAAA,UAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,QAAA,CACvD;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,IAAA,GACJ,EAAE;AAAA,EAEX;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"pat-shared-components28.mjs","sources":["../src/components/TestResult/Desktop/TestResultDetailDesktop.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, renderSlot as _renderSlot, createSlots as _createSlots, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"psc-flex psc-items-start\"\n}\nconst _hoisted_2 = { class: \"-psc-ml-4 psc-mr-16 psc-w-[480px] psc-shrink-0 psc-grow-0\" }\nconst _hoisted_3 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\nconst _hoisted_4 = { class: \"psc-min-w-0 psc-flex-1\" }\nconst _hoisted_5 = { class: \"psc-sticky psc-top-[154px] psc-max-h-[calc(100vh-154px)] psc-overflow-y-auto\" }\n\nimport { useTestResult } from '@/composables/TestResult';\nimport PatientName from '../../Shared/PatientName.vue';\nimport ResultReadyV2 from '../Shared/ResultReadyV2.vue';\nimport RejectedResult from '../Shared/RejectedResult.vue';\nimport BookAppointment from '../Shared/BookAppointment.vue';\nimport HealthSummary from '../HealthSummary/HealthSummary.vue';\nimport TestResultSection from '../Shared/TestResultSection.vue';\nimport CallUsFilledButton from '../Shared/CallUsFilledButton.vue';\nimport DoctorNote from '../Shared/DoctorNote.vue';\nimport DoctorNoteDetail from '../Shared/DoctorNoteDetail.vue';\nimport type { TestResult } from '@/types';\nimport UpcomingAppointment from '../Shared/UpcomingAppointment.vue';\nimport { ref, toRef, computed } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.vue';\nimport {\n buildTestResultSurveyContext,\n getSurveySlug,\n} from '@/helpers/SurveyHelper';\nimport TakeSurvey from '../Shared/TakeSurvey.vue';\n\nexport interface Props {\n testResult: TestResult;\n loading: boolean;\n hidePatientInfo?: boolean;\n hideSummary?: boolean;\n enableBookingFeature?: boolean;\n timeline?: TimelineEvent[];\n listActionEvent?: Record<string, string>;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TestResultDetailDesktop',\n props: {\n testResult: null,\n loading: { type: Boolean },\n hidePatientInfo: { type: Boolean, default: false },\n hideSummary: { type: Boolean, default: false },\n enableBookingFeature: { type: Boolean, default: false },\n timeline: { default: undefined },\n listActionEvent: { default: undefined }\n },\n emits: [\n 'click:book-appointment',\n 'click:appointment-booking',\n],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testResult: TestResult, loading: boolean, hidePatientInfo: boolean, hideSummary: boolean, enableBookingFeature: boolean, timeline: TimelineEvent[], listActionEvent: Record<string, string> };\n\n\n\n\n\nconst { healthSummaryItems, hideContent, isViewable, visible } = useTestResult({\n testResult: toRef(props, 'testResult'),\n hidePatientInfo: toRef(props, 'hidePatientInfo'),\n hideSummary: toRef(props, 'hideSummary'),\n});\n\nconst isDisplayBook = ref(false);\n\nconst doctorNoteSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult, 'doctor-note')\n);\n\nconst testSurveySlug = computed(() =>\n getSurveySlug(\n props.testResult.collection_channel,\n props.testResult.is_free_consultant\n )\n);\n\nconst testSurveyContext = computed(() =>\n buildTestResultSurveyContext(props.testResult)\n);\n\nconst hasDoctorNoteDetail = computed(\n () =>\n !!props.testResult.doctor_note_detail &&\n props.testResult.doctor_note_detail.length > 0\n);\n\n// TODO: temp — revert to props.testResult.enable_survey === true\nconst isSurveyEnabled = computed(() => true);\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createBlock(TestResultDetailDesktopSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isViewable))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (_unref(visible).patientName)\n ? (_openBlock(), _createBlock(PatientName, {\n key: 0,\n \"first-name\": props.testResult.first_name,\n class: \"psc-px-4 psc-pb-2\"\n }, null, 8, [\"first-name\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(ResultReadyV2, {\n \"test-result\": props.testResult,\n timeline: props.timeline,\n \"list-action-event\": props.listActionEvent,\n class: \"psc-px-4 psc-pb-4\"\n }, null, 8, [\"test-result\", \"timeline\", \"list-action-event\"]),\n (_unref(visible).healthSummary)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 1 }, {\n default: _withCtx(() => [\n _createVNode(HealthSummary, { items: _unref(healthSummaryItems) }, null, 8, [\"items\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (__props.testResult.is_free_consultant)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 2 }, {\n default: _withCtx(() => [\n _createVNode(BookAppointment, {\n \"onClick:book\": _cache[0] || (_cache[0] = \n () => {\n isDisplayBook.value = true;\n emit('click:book-appointment');\n }\n )\n }, _createSlots({ _: 2 }, [\n (__props.enableBookingFeature && isDisplayBook.value)\n ? {\n name: \"content\",\n fn: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"book-appointment\")\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024)\n ]),\n _: 3\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).doctorNote)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 3 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNote, {\n \"doctor-note\": props.testResult.doctor_note\n }, null, 8, [\"doctor-note\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(hasDoctorNoteDetail))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail!,\n \"survey-context\": \n _unref(isSurveyEnabled) ? _unref(doctorNoteSurveyContext) : undefined\n ,\n \"onClick:appointmentBooking\": _cache[1] || (_cache[1] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\", \"survey-context\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(isSurveyEnabled))\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\n default: _withCtx(() => [\n _createVNode(TakeSurvey, {\n variant: \"bar\",\n \"survey-slug\": _unref(testSurveySlug),\n context: _unref(testSurveyContext),\n text: _ctx.$t('psc.test_result_take_survey_button')\n }, null, 8, [\"survey-slug\", \"context\", \"text\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 6 }, {\n default: _withCtx(() => [\n _createVNode(UpcomingAppointment, {\n \"time-slot\": props.testResult.consult_time!\n }, null, 8, [\"time-slot\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","isDisplayBook","ref","doctorNoteSurveyContext","computed","buildTestResultSurveyContext","testSurveySlug","getSurveySlug","testSurveyContext","hasDoctorNoteDetail","isSurveyEnabled","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","$event","TakeSurvey","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,+DACtBC,IAAa,EAAE,OAAO,kFACtBC,IAAa,EAAE,OAAO,4BACtBC,IAAa,EAAE,OAAO,kFAiCAC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY;AAAA,IACZ,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,iBAAiB,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IACjD,aAAa,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IAC7C,sBAAsB,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IACtD,UAAU,EAAE,SAAS,OAAU;AAAA,IAC/B,iBAAiB,EAAE,SAAS,OAAU;AAAA,EACxC;AAAA,EACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,EACF;AAAA,EACE,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAEhC,UAAMC,IAAQF,GAMR,EAAE,oBAAAG,GAAoB,aAAAC,GAAa,YAAAC,GAAY,SAAAC,EAAA,IAAYC,EAAc;AAAA,MAC7E,YAAYC,EAAMN,GAAO,YAAY;AAA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AAAA,UACrC+B,EAAoB,OAAO9B,GAAY;AAAA,YACrCwC,EAAYlB,EAAK,QAAQ,QAAQ;AAAA,YAC/BO,EAAOtB,CAAW,IAEhByB,EAAoB,IAAI,EAAI,IAD5BQ,EAAYlB,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA;AAAA,YAElDkB,EAAYlB,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,QAAA,CACF;AAAA,MACF,CAAA,MACAE,EAAW,GAAGC,EAAaqB,GAAgB;AAAA,QAC1C,KAAK;AAAA,QACL,OAAO;AAAA,MAAA,GACN;AAAA,QACD,eAAeV,EAAS,MAAM;AAAA,UAC5BH,EAAac,GAAoB,EAAE,OAAO,YAAY;AAAA,QAAA,CACvD;AAAA,QACD,GAAG;AAAA,MAAA,CACJ;AAAA,IAAA,GACJ,EAAE;AAAA,EAEX;AAEA,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./pat-shared-components130.js"),n=require("./pat-shared-components85.js"),a={class:"psc-cursor-pointer psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100"},i={class:"psc-space-y-3"},p={class:"psc-flex psc-items-center"},l={class:"psc-flex-initial psc-font-semibold psc-text-blue-darken-1"},r={class:"psc-flex-auto psc-pl-2 psc-text-sm psc-font-normal psc-text-black/[0.6]"},d=e.createElementVNode("div",{class:"!psc-mt-0 psc-flex psc-justify-end"},[e.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-2xl psc-leading-3 psc-text-blue-darken-1"})],-1),_={class:"psc-flex psc-space-x-2"},u=e.defineComponent({__name:"BookingListItem",props:{item:null},setup(s){const t=s,{formatDate:c}=n.useDate();return(m,x)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",i,[e.createElementVNode("div",p,[e.createElementVNode("div",l,[e.createElementVNode("span",null,e.toDisplayString(t.item.booking_code),1)]),e.createElementVNode("div",r,e.toDisplayString(e.unref(c)(new Date(t.item.created_at))),1)]),d]),e.createElementVNode("div",_,[e.createVNode(o,{status:t.item.booking_status},null,8,["status"])])]))}});module.exports=u;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components35.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as i, createElementBlock as p, createElementVNode as s, toDisplayString as e, unref as a, createVNode as l } from "vue";
|
|
2
|
-
import r from "./pat-shared-
|
|
2
|
+
import r from "./pat-shared-components130.mjs";
|
|
3
3
|
import { useDate as d } from "./pat-shared-components85.mjs";
|
|
4
4
|
const _ = { class: "psc-cursor-pointer psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100" }, m = { class: "psc-space-y-3" }, u = { class: "psc-flex psc-items-center" }, f = { class: "psc-flex-initial psc-font-semibold psc-text-blue-darken-1" }, x = { class: "psc-flex-auto psc-pl-2 psc-text-sm psc-font-normal psc-text-black/[0.6]" }, h = /* @__PURE__ */ s("div", { class: "!psc-mt-0 psc-flex psc-justify-end" }, [
|
|
5
5
|
/* @__PURE__ */ s("i", { class: "dgic-chevron-right-thin psc-text-2xl psc-leading-3 psc-text-blue-darken-1" })
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var x=Object.defineProperty;var m=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var v=(s,t,l)=>t in s?x(s,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[t]=l,p=(s,t)=>{for(var l in t||(t={}))C.call(t,l)&&v(s,l,t[l]);if(m)for(var l of m(t))S.call(t,l)&&v(s,l,t[l]);return s};const e=require("vue"),V=require("./pat-shared-components67.js"),E=require("./pat-shared-components91.js"),h=require("./pat-shared-components87.js"),B=require("./pat-shared-components4.js"),N=require("./pat-shared-components129.js"),U=["aria-label"],I={class:"psc-survey-modal psc-survey-modal__content"},q=e.createElementVNode("i",{class:"dgic-close-round psc-text-2xl psc-text-black/40"},null,-1),$=[q],D={key:0,class:"psc-survey-modal__loading"},w={class:"psc-animate-spin"},L={key:1,class:"psc-survey-modal__loading"},R={class:"psc-px-6 psc-text-center psc-text-sm psc-text-black/60"},K=["src","title"],z=e.defineComponent({__name:"TakeSurvey",props:{surveySlug:null,baseUrl:{default:B.SURVEY_BASE_URL},text:null,variant:{default:"pill"},userId:null,context:null},setup(s){const t=s,{t:l}=V.useI18n(),i=e.computed(()=>{var n;return(n=t.text)!=null?n:l("psc.test_result_take_survey_button")}),r=e.ref(!1),d=e.ref(0),c=e.ref(!0),a=e.ref(null),u=e.ref(!1),_=e.computed(()=>{var o;const n=p({},(o=t.context)!=null?o:{});return t.userId&&!n.patient_number&&(n.patient_number=t.userId),n}),y=e.computed(()=>a.value?`${t.baseUrl.replace(/\/$/,"")}/${encodeURIComponent(t.surveySlug)}?key=${encodeURIComponent(a.value)}`:""),f=async()=>{r.value=!0,c.value=!0,u.value=!1,a.value=null;try{a.value=await N.mintSurveyEmbedKey(t.baseUrl,t.surveySlug,_.value),d.value+=1}catch(n){u.value=!0,c.value=!1}},b=()=>{r.value=!1,a.value=null,u.value=!1},k=()=>{c.value=!1};return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.variant==="bar"?"div":"span"),{class:e.normalizeClass(s.variant==="bar"?"psc-w-full":"psc-inline-flex psc-shrink-0")},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["psc-survey-trigger",{"psc-survey-trigger--bar":s.variant==="bar"}]),"aria-label":e.unref(i),onClick:f},e.toDisplayString(e.unref(i)),11,U)]),_:1},8,["class"])),e.createVNode(e.unref(E),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=g=>r.value=g),class:"psc-survey-modal",fullscreen:""},{default:e.withCtx(()=>[e.createElementVNode("div",I,[e.createElementVNode("button",{type:"button",class:"psc-survey-modal__close",onClick:b},$),c.value?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",w,[e.createVNode(e.unref(h),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):u.value?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("p",R,e.toDisplayString(n.$t("psc.test_result_take_survey_error")),1)])):e.createCommentVNode("",!0),r.value&&a.value?(e.openBlock(),e.createElementBlock("iframe",{key:d.value,src:e.unref(y),class:"psc-survey-modal__iframe",title:n.$t("psc.test_result_take_survey_button"),onLoad:k},null,40,K)):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])],64))}});module.exports=z;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components36.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components36.js","sources":["../src/components/TestResult/Shared/TakeSurvey.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = [\"aria-label\"]\nconst _hoisted_2 = { class: \"psc-survey-modal psc-survey-modal__content\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-close-round psc-text-2xl psc-text-black/40\" }, null, -1)\nconst _hoisted_4 = [\n _hoisted_3\n]\nconst _hoisted_5 = {\n key: 0,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_6 = { class: \"psc-animate-spin\" }\nconst _hoisted_7 = [\"src\", \"title\"]\n\nimport { computed, ref
|
|
1
|
+
{"version":3,"file":"pat-shared-components36.js","sources":["../src/components/TestResult/Shared/TakeSurvey.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = [\"aria-label\"]\nconst _hoisted_2 = { class: \"psc-survey-modal psc-survey-modal__content\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-close-round psc-text-2xl psc-text-black/40\" }, null, -1)\nconst _hoisted_4 = [\n _hoisted_3\n]\nconst _hoisted_5 = {\n key: 0,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_6 = { class: \"psc-animate-spin\" }\nconst _hoisted_7 = {\n key: 1,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_8 = { class: \"psc-px-6 psc-text-center psc-text-sm psc-text-black/60\" }\nconst _hoisted_9 = [\"src\", \"title\"]\n\nimport { computed, ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { BIcon, BModal } from 'pat-design-system';\nimport { SURVEY_BASE_URL } from '@/constants/Common';\nimport { mintSurveyEmbedKey } from '@/helpers/SurveyHelper';\n\n/**\n * Attribution context minted into an opaque `?key=` (never put PII in the iframe URL).\n * Common keys: patient_number, order_id, appointment_code, source, template_type, result_status.\n */\nexport type SurveyContext = Record<string, string>;\n\n/**\n * Props\n */\nexport interface Props {\n surveySlug: string;\n baseUrl?: string;\n /** Custom button label; falls back to `psc.test_result_take_survey_button`. */\n text?: string;\n /** `pill` = compact inline; `bar` = full-width section button. */\n variant?: 'pill' | 'bar';\n /** @deprecated Use `context.patient_number` instead. */\n userId?: string;\n context?: SurveyContext;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TakeSurvey',\n props: {\n surveySlug: null,\n baseUrl: { default: SURVEY_BASE_URL },\n text: null,\n variant: { default: 'pill' },\n userId: null,\n context: null\n },\n setup(__props: any) {\n\nconst props = __props as { surveySlug: string, baseUrl: string, text?: string, variant: 'pill' | 'bar', userId?: string, context?: SurveyContext };\n\n\n\nconst { t } = useI18n();\n\nconst buttonText = computed(\n () => props.text ?? t('psc.test_result_take_survey_button')\n);\n\n/**\n * Data\n */\nconst open = ref(false);\nconst iframeKey = ref(0);\nconst iframeLoading = ref(true);\nconst mintedKey = ref<string | null>(null);\nconst mintFailed = ref(false);\n\nconst surveyContext = computed<SurveyContext>(() => {\n const merged: SurveyContext = { ...(props.context ?? {}) };\n if (props.userId && !merged.patient_number) {\n merged.patient_number = props.userId;\n }\n return merged;\n});\n\nconst surveyUrl = computed(() => {\n if (!mintedKey.value) return '';\n const base = props.baseUrl.replace(/\\/$/, '');\n return `${base}/${encodeURIComponent(props.surveySlug)}?key=${encodeURIComponent(mintedKey.value)}`;\n});\n\n/**\n * Methods\n */\nconst openSurvey = async () => {\n open.value = true;\n iframeLoading.value = true;\n mintFailed.value = false;\n mintedKey.value = null;\n try {\n mintedKey.value = await mintSurveyEmbedKey(\n props.baseUrl,\n props.surveySlug,\n surveyContext.value\n );\n iframeKey.value += 1;\n } catch {\n mintFailed.value = true;\n iframeLoading.value = false;\n }\n};\nconst closeSurvey = () => {\n open.value = false;\n mintedKey.value = null;\n mintFailed.value = false;\n};\nconst onIframeLoad = () => {\n iframeLoading.value = false;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(__props.variant === 'bar' ? 'div' : 'span'), {\n class: _normalizeClass(__props.variant === 'bar' ? 'psc-w-full' : 'psc-inline-flex psc-shrink-0')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: _normalizeClass([\n 'psc-survey-trigger',\n { 'psc-survey-trigger--bar': __props.variant === 'bar' },\n ]),\n \"aria-label\": _unref(buttonText),\n onClick: openSurvey\n }, _toDisplayString(_unref(buttonText)), 11, _hoisted_1)\n ]),\n _: 1\n }, 8, [\"class\"])),\n _createVNode(_unref(BModal), {\n modelValue: open.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((open).value = $event)),\n class: \"psc-survey-modal\",\n fullscreen: \"\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"psc-survey-modal__close\",\n onClick: closeSurvey\n }, _hoisted_4),\n (iframeLoading.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : (mintFailed.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"p\", _hoisted_8, _toDisplayString(_ctx.$t('psc.test_result_take_survey_error')), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (open.value && mintedKey.value)\n ? (_openBlock(), _createElementBlock(\"iframe\", {\n key: iframeKey.value,\n src: _unref(surveyUrl),\n class: \"psc-survey-modal__iframe\",\n title: _ctx.$t('psc.test_result_take_survey_button'),\n onLoad: onIframeLoad\n }, null, 40, _hoisted_9))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_sfc_main","_defineComponent","SURVEY_BASE_URL","__props","props","t","useI18n","buttonText","computed","_a","open","ref","iframeKey","iframeLoading","mintedKey","mintFailed","surveyContext","merged","__spreadValues","surveyUrl","openSurvey","mintSurveyEmbedKey","e","closeSurvey","onIframeLoad","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_createBlock","_resolveDynamicComponent","_normalizeClass","_withCtx","_createElementVNode","_unref","_toDisplayString","_createVNode","BModal","$event","BIcon","_createCommentVNode"],"mappings":"+kBAGMA,EAAa,CAAC,YAAY,EAC1BC,EAAa,CAAE,MAAO,8CACtBC,uBAA8C,IAAK,CAAE,MAAO,mDAAqD,KAAM,EAAE,EACzHC,EAAa,CACjBD,CACF,EACME,EAAa,CACjB,IAAK,EACL,MAAO,2BACT,EACMC,EAAa,CAAE,MAAO,oBACtBC,EAAa,CACjB,IAAK,EACL,MAAO,2BACT,EACMC,EAAa,CAAE,MAAO,0DACtBC,EAAa,CAAC,MAAO,OAAO,EA6BNC,EAAiBC,kBAAA,CAC3C,OAAQ,aACR,MAAO,CACL,WAAY,KACZ,QAAS,CAAE,QAASC,iBAAgB,EACpC,KAAM,KACN,QAAS,CAAE,QAAS,MAAO,EAC3B,OAAQ,KACR,QAAS,IACX,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAIR,CAAE,EAAAE,GAAMC,EAAAA,UAERC,EAAaC,EAAA,SACjB,IAAA,OAAM,OAAAC,EAAAL,EAAM,OAAN,KAAAK,EAAcJ,EAAE,oCAAoC,EAAA,EAMtDK,EAAOC,MAAI,EAAK,EAChBC,EAAYD,MAAI,CAAC,EACjBE,EAAgBF,MAAI,EAAI,EACxBG,EAAYH,MAAmB,IAAI,EACnCI,EAAaJ,MAAI,EAAK,EAEtBK,EAAgBR,EAAAA,SAAwB,IAAM,OAClD,MAAMS,EAAwBC,EAAA,IAAMT,EAAAL,EAAM,UAAN,KAAAK,EAAiB,CAAI,GACzD,OAAIL,EAAM,QAAU,CAACa,EAAO,iBAC1BA,EAAO,eAAiBb,EAAM,QAEzBa,CAAA,CACR,EAEKE,EAAYX,EAAAA,SAAS,IACpBM,EAAU,MAER,GADMV,EAAM,QAAQ,QAAQ,MAAO,EAAE,KAC1B,mBAAmBA,EAAM,UAAU,SAAS,mBAAmBU,EAAU,KAAK,IAFnE,EAG9B,EAKKM,EAAa,SAAY,CAC7B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ACN,MAAO,0BACP,QAASX,GACR7B,CAAU,EACZmB,EAAc,OACVc,EAAA,UAAA,EAAcC,EAAAA,mBAAoB,MAAOjC,EAAY,CACpDuC,EAAA,mBAAoB,MAAOtC,EAAY,CACrCyC,cAAaF,EAAAA,MAAOK,CAAK,EAAG,CAC1B,KAAM,iBACN,MAAO,cAAA,CACR,CAAA,CACF,CAAA,CACF,GACAzB,EAAW,OACTY,EAAAA,UAAc,EAAAC,EAAA,mBAAoB,MAAO/B,EAAY,CACpDqC,qBAAoB,IAAKpC,EAAYsC,EAAA,gBAAiBX,EAAK,GAAG,mCAAmC,CAAC,EAAG,CAAC,CAAA,CACvG,GACDgB,EAAAA,mBAAoB,GAAI,EAAI,EACjC/B,EAAK,OAASI,EAAU,OACpBa,EAAAA,UAAW,EAAGC,qBAAoB,SAAU,CAC3C,IAAKhB,EAAU,MACf,IAAKuB,QAAOhB,CAAS,EACrB,MAAO,2BACP,MAAOM,EAAK,GAAG,oCAAoC,EACnD,OAAQD,CAAA,EACP,KAAM,GAAIzB,CAAU,GACvB0C,EAAA,mBAAoB,GAAI,EAAI,CAAA,CACjC,CAAA,CACF,EACD,EAAG,CAAA,EACF,EAAG,CAAC,YAAY,CAAC,GACnB,EAAE,EAEP,CAEA,CAAC"}
|
|
@@ -1,103 +1,111 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var b = (t, e, s) => e in t ?
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
|
+
var f = Object.getOwnPropertySymbols;
|
|
3
|
+
var R = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var b = (t, e, s) => e in t ? L(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, x = (t, e) => {
|
|
5
5
|
for (var s in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var s of
|
|
9
|
-
|
|
6
|
+
R.call(e, s) && b(t, s, e[s]);
|
|
7
|
+
if (f)
|
|
8
|
+
for (var s of f(e))
|
|
9
|
+
w.call(e, s) && b(t, s, e[s]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { defineComponent as
|
|
13
|
-
import { useI18n as
|
|
12
|
+
import { defineComponent as F, computed as p, ref as u, openBlock as c, createElementBlock as m, Fragment as K, createBlock as N, resolveDynamicComponent as D, normalizeClass as k, withCtx as g, createElementVNode as n, unref as i, toDisplayString as h, createVNode as C, createCommentVNode as S } from "vue";
|
|
13
|
+
import { useI18n as T } from "./pat-shared-components67.mjs";
|
|
14
14
|
import z from "./pat-shared-components91.mjs";
|
|
15
15
|
import A from "./pat-shared-components87.mjs";
|
|
16
|
-
import { SURVEY_BASE_URL as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
import { SURVEY_BASE_URL as Y } from "./pat-shared-components4.mjs";
|
|
17
|
+
import { mintSurveyEmbedKey as j } from "./pat-shared-components129.mjs";
|
|
18
|
+
const q = ["aria-label"], G = { class: "psc-survey-modal psc-survey-modal__content" }, H = /* @__PURE__ */ n("i", { class: "dgic-close-round psc-text-2xl psc-text-black/40" }, null, -1), J = [
|
|
19
|
+
H
|
|
20
|
+
], M = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "psc-survey-modal__loading"
|
|
22
|
-
},
|
|
23
|
+
}, O = { class: "psc-animate-spin" }, P = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "psc-survey-modal__loading"
|
|
26
|
+
}, Q = { class: "psc-px-6 psc-text-center psc-text-sm psc-text-black/60" }, W = ["src", "title"], ne = /* @__PURE__ */ F({
|
|
23
27
|
__name: "TakeSurvey",
|
|
24
28
|
props: {
|
|
25
29
|
surveySlug: null,
|
|
26
|
-
baseUrl: { default:
|
|
30
|
+
baseUrl: { default: Y },
|
|
27
31
|
text: null,
|
|
28
32
|
variant: { default: "pill" },
|
|
29
33
|
userId: null,
|
|
30
34
|
context: null
|
|
31
35
|
},
|
|
32
36
|
setup(t) {
|
|
33
|
-
const e = t, { t: s } =
|
|
37
|
+
const e = t, { t: s } = T(), _ = p(
|
|
34
38
|
() => {
|
|
35
|
-
var
|
|
36
|
-
return (
|
|
39
|
+
var l;
|
|
40
|
+
return (l = e.text) != null ? l : s("psc.test_result_take_survey_button");
|
|
41
|
+
}
|
|
42
|
+
), o = u(!1), y = u(0), d = u(!0), a = u(null), v = u(!1), U = p(() => {
|
|
43
|
+
var r;
|
|
44
|
+
const l = x({}, (r = e.context) != null ? r : {});
|
|
45
|
+
return e.userId && !l.patient_number && (l.patient_number = e.userId), l;
|
|
46
|
+
}), I = p(() => a.value ? `${e.baseUrl.replace(/\/$/, "")}/${encodeURIComponent(e.surveySlug)}?key=${encodeURIComponent(a.value)}` : ""), V = async () => {
|
|
47
|
+
o.value = !0, d.value = !0, v.value = !1, a.value = null;
|
|
48
|
+
try {
|
|
49
|
+
a.value = await j(
|
|
50
|
+
e.baseUrl,
|
|
51
|
+
e.surveySlug,
|
|
52
|
+
U.value
|
|
53
|
+
), y.value += 1;
|
|
54
|
+
} catch (l) {
|
|
55
|
+
v.value = !0, d.value = !1;
|
|
37
56
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}), U = d(() => {
|
|
43
|
-
const a = e.baseUrl.replace(/\/$/, ""), l = new URLSearchParams({ embed: "1" });
|
|
44
|
-
for (const [i, f] of Object.entries(C.value))
|
|
45
|
-
f && l.set(i, f);
|
|
46
|
-
return `${a}/${encodeURIComponent(e.surveySlug)}?${l.toString()}`;
|
|
47
|
-
}), V = () => {
|
|
48
|
-
o.value = !0;
|
|
49
|
-
}, I = () => {
|
|
50
|
-
o.value = !1;
|
|
51
|
-
}, L = () => {
|
|
52
|
-
u.value = !1;
|
|
57
|
+
}, $ = () => {
|
|
58
|
+
o.value = !1, a.value = null, v.value = !1;
|
|
59
|
+
}, E = () => {
|
|
60
|
+
d.value = !1;
|
|
53
61
|
};
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
(c(), D(F(t.variant === "bar" ? "div" : "span"), {
|
|
58
|
-
class: x(t.variant === "bar" ? "psc-w-full" : "psc-inline-flex psc-shrink-0")
|
|
62
|
+
return (l, r) => (c(), m(K, null, [
|
|
63
|
+
(c(), N(D(t.variant === "bar" ? "div" : "span"), {
|
|
64
|
+
class: k(t.variant === "bar" ? "psc-w-full" : "psc-inline-flex psc-shrink-0")
|
|
59
65
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
|
|
66
|
+
default: g(() => [
|
|
67
|
+
n("button", {
|
|
62
68
|
type: "button",
|
|
63
|
-
class:
|
|
69
|
+
class: k([
|
|
64
70
|
"psc-survey-trigger",
|
|
65
71
|
{ "psc-survey-trigger--bar": t.variant === "bar" }
|
|
66
72
|
]),
|
|
67
|
-
"aria-label":
|
|
73
|
+
"aria-label": i(_),
|
|
68
74
|
onClick: V
|
|
69
|
-
},
|
|
75
|
+
}, h(i(_)), 11, q)
|
|
70
76
|
]),
|
|
71
77
|
_: 1
|
|
72
78
|
}, 8, ["class"])),
|
|
73
|
-
|
|
79
|
+
C(i(z), {
|
|
74
80
|
modelValue: o.value,
|
|
75
|
-
"onUpdate:modelValue":
|
|
81
|
+
"onUpdate:modelValue": r[0] || (r[0] = (B) => o.value = B),
|
|
76
82
|
class: "psc-survey-modal",
|
|
77
83
|
fullscreen: ""
|
|
78
84
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
default: g(() => [
|
|
86
|
+
n("div", G, [
|
|
87
|
+
n("button", {
|
|
82
88
|
type: "button",
|
|
83
89
|
class: "psc-survey-modal__close",
|
|
84
|
-
onClick:
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
onClick: $
|
|
91
|
+
}, J),
|
|
92
|
+
d.value ? (c(), m("div", M, [
|
|
93
|
+
n("div", O, [
|
|
94
|
+
C(i(A), {
|
|
89
95
|
icon: "dgic-spinner-8",
|
|
90
96
|
class: "psc-text-4xl"
|
|
91
97
|
})
|
|
92
98
|
])
|
|
99
|
+
])) : v.value ? (c(), m("div", P, [
|
|
100
|
+
n("p", Q, h(l.$t("psc.test_result_take_survey_error")), 1)
|
|
93
101
|
])) : S("", !0),
|
|
94
|
-
o.value ? (c(),
|
|
95
|
-
key:
|
|
96
|
-
src:
|
|
102
|
+
o.value && a.value ? (c(), m("iframe", {
|
|
103
|
+
key: y.value,
|
|
104
|
+
src: i(I),
|
|
97
105
|
class: "psc-survey-modal__iframe",
|
|
98
|
-
title:
|
|
99
|
-
onLoad:
|
|
100
|
-
}, null, 40,
|
|
106
|
+
title: l.$t("psc.test_result_take_survey_button"),
|
|
107
|
+
onLoad: E
|
|
108
|
+
}, null, 40, W)) : S("", !0)
|
|
101
109
|
])
|
|
102
110
|
]),
|
|
103
111
|
_: 1
|
|
@@ -106,6 +114,6 @@ const O = ["aria-label"], P = { class: "psc-survey-modal psc-survey-modal__conte
|
|
|
106
114
|
}
|
|
107
115
|
});
|
|
108
116
|
export {
|
|
109
|
-
|
|
117
|
+
ne as default
|
|
110
118
|
};
|
|
111
119
|
//# sourceMappingURL=pat-shared-components36.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components36.mjs","sources":["../src/components/TestResult/Shared/TakeSurvey.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = [\"aria-label\"]\nconst _hoisted_2 = { class: \"psc-survey-modal psc-survey-modal__content\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-close-round psc-text-2xl psc-text-black/40\" }, null, -1)\nconst _hoisted_4 = [\n _hoisted_3\n]\nconst _hoisted_5 = {\n key: 0,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_6 = { class: \"psc-animate-spin\" }\nconst _hoisted_7 = [\"src\", \"title\"]\n\nimport { computed, ref, watch } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { BIcon, BModal } from 'pat-design-system';\nimport { SURVEY_BASE_URL } from '@/constants/Common';\n\n/**\n * Attribution context passed to the survey iframe (query params).\n * Common keys: patient_number, order_id, source, template_type, result_status.\n */\nexport type SurveyContext = Record<string, string>;\n\n/**\n * Props\n */\nexport interface Props {\n surveySlug: string;\n baseUrl?: string;\n /** Custom button label; falls back to `psc.test_result_take_survey_button`. */\n text?: string;\n /** `pill` = compact inline; `bar` = full-width section button. */\n variant?: 'pill' | 'bar';\n /** @deprecated Use `context.patient_number` instead. */\n userId?: string;\n context?: SurveyContext;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TakeSurvey',\n props: {\n surveySlug: null,\n baseUrl: { default: SURVEY_BASE_URL },\n text: null,\n variant: { default: 'pill' },\n userId: null,\n context: null\n },\n setup(__props: any) {\n\nconst props = __props as { surveySlug: string, baseUrl: string, text?: string, variant: 'pill' | 'bar', userId?: string, context?: SurveyContext };\n\n\n\nconst { t } = useI18n();\n\nconst buttonText = computed(\n () => props.text ?? t('psc.test_result_take_survey_button')\n);\n\n/**\n * Data\n */\nconst open = ref(false);\nconst iframeKey = ref(0);\nconst iframeLoading = ref(true);\n\nconst surveyContext = computed<SurveyContext>(() => {\n const merged: SurveyContext = { ...(props.context ?? {}) };\n if (props.userId && !merged.patient_number) {\n merged.patient_number = props.userId;\n }\n return merged;\n});\n\nconst surveyUrl = computed(() => {\n const base = props.baseUrl.replace(/\\/$/, '');\n const params = new URLSearchParams({ embed: '1' });\n\n for (const [key, value] of Object.entries(surveyContext.value)) {\n if (value) {\n params.set(key, value);\n }\n }\n\n return `${base}/${encodeURIComponent(props.surveySlug)}?${params.toString()}`;\n});\n\n/**\n * Methods\n */\nconst openSurvey = () => {\n open.value = true;\n};\nconst closeSurvey = () => {\n open.value = false;\n};\nconst onIframeLoad = () => {\n iframeLoading.value = false;\n};\n\nwatch(open, (isOpen) => {\n if (isOpen) {\n iframeLoading.value = true;\n iframeKey.value += 1;\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(__props.variant === 'bar' ? 'div' : 'span'), {\n class: _normalizeClass(__props.variant === 'bar' ? 'psc-w-full' : 'psc-inline-flex psc-shrink-0')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: _normalizeClass([\n 'psc-survey-trigger',\n { 'psc-survey-trigger--bar': __props.variant === 'bar' },\n ]),\n \"aria-label\": _unref(buttonText),\n onClick: openSurvey\n }, _toDisplayString(_unref(buttonText)), 11, _hoisted_1)\n ]),\n _: 1\n }, 8, [\"class\"])),\n _createVNode(_unref(BModal), {\n modelValue: open.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((open).value = $event)),\n class: \"psc-survey-modal\",\n fullscreen: \"\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"psc-survey-modal__close\",\n onClick: closeSurvey\n }, _hoisted_4),\n (iframeLoading.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (open.value)\n ? (_openBlock(), _createElementBlock(\"iframe\", {\n key: iframeKey.value,\n src: _unref(surveyUrl),\n class: \"psc-survey-modal__iframe\",\n title: _ctx.$t('psc.test_result_take_survey'),\n onLoad: onIframeLoad\n }, null, 40, _hoisted_7))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_sfc_main","_defineComponent","SURVEY_BASE_URL","__props","props","t","useI18n","buttonText","computed","_a","open","ref","iframeKey","iframeLoading","surveyContext","merged","__spreadValues","surveyUrl","base","params","key","value","openSurvey","closeSurvey","onIframeLoad","watch","isOpen","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_createBlock","_resolveDynamicComponent","_normalizeClass","_withCtx","_createElementVNode","_unref","_toDisplayString","_createVNode","BModal","$event","BIcon","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAMA,IAAa,CAAC,YAAY,GAC1BC,IAAa,EAAE,OAAO,gDACtBC,sBAA8C,KAAK,EAAE,OAAO,qDAAqD,MAAM,EAAE,GACzHC,IAAa;AAAA,EACjBD;AACF,GACME,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,sBACtBC,IAAa,CAAC,OAAO,OAAO,GA4BNC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY;AAAA,IACZ,SAAS,EAAE,SAASC,EAAgB;AAAA,IACpC,MAAM;AAAA,IACN,SAAS,EAAE,SAAS,OAAO;AAAA,IAC3B,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIR,EAAE,GAAAE,MAAMC,KAERC,IAAaC;AAAA,MACjB,MAAA;;AAAM,gBAAAC,IAAAL,EAAM,SAAN,OAAAK,IAAcJ,EAAE,oCAAoC;AAAA;AAAA,IAAA,GAMtDK,IAAOC,EAAI,EAAK,GAChBC,IAAYD,EAAI,CAAC,GACjBE,IAAgBF,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shared-components36.mjs","sources":["../src/components/TestResult/Shared/TakeSurvey.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = [\"aria-label\"]\nconst _hoisted_2 = { class: \"psc-survey-modal psc-survey-modal__content\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"dgic-close-round psc-text-2xl psc-text-black/40\" }, null, -1)\nconst _hoisted_4 = [\n _hoisted_3\n]\nconst _hoisted_5 = {\n key: 0,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_6 = { class: \"psc-animate-spin\" }\nconst _hoisted_7 = {\n key: 1,\n class: \"psc-survey-modal__loading\"\n}\nconst _hoisted_8 = { class: \"psc-px-6 psc-text-center psc-text-sm psc-text-black/60\" }\nconst _hoisted_9 = [\"src\", \"title\"]\n\nimport { computed, ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { BIcon, BModal } from 'pat-design-system';\nimport { SURVEY_BASE_URL } from '@/constants/Common';\nimport { mintSurveyEmbedKey } from '@/helpers/SurveyHelper';\n\n/**\n * Attribution context minted into an opaque `?key=` (never put PII in the iframe URL).\n * Common keys: patient_number, order_id, appointment_code, source, template_type, result_status.\n */\nexport type SurveyContext = Record<string, string>;\n\n/**\n * Props\n */\nexport interface Props {\n surveySlug: string;\n baseUrl?: string;\n /** Custom button label; falls back to `psc.test_result_take_survey_button`. */\n text?: string;\n /** `pill` = compact inline; `bar` = full-width section button. */\n variant?: 'pill' | 'bar';\n /** @deprecated Use `context.patient_number` instead. */\n userId?: string;\n context?: SurveyContext;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TakeSurvey',\n props: {\n surveySlug: null,\n baseUrl: { default: SURVEY_BASE_URL },\n text: null,\n variant: { default: 'pill' },\n userId: null,\n context: null\n },\n setup(__props: any) {\n\nconst props = __props as { surveySlug: string, baseUrl: string, text?: string, variant: 'pill' | 'bar', userId?: string, context?: SurveyContext };\n\n\n\nconst { t } = useI18n();\n\nconst buttonText = computed(\n () => props.text ?? t('psc.test_result_take_survey_button')\n);\n\n/**\n * Data\n */\nconst open = ref(false);\nconst iframeKey = ref(0);\nconst iframeLoading = ref(true);\nconst mintedKey = ref<string | null>(null);\nconst mintFailed = ref(false);\n\nconst surveyContext = computed<SurveyContext>(() => {\n const merged: SurveyContext = { ...(props.context ?? {}) };\n if (props.userId && !merged.patient_number) {\n merged.patient_number = props.userId;\n }\n return merged;\n});\n\nconst surveyUrl = computed(() => {\n if (!mintedKey.value) return '';\n const base = props.baseUrl.replace(/\\/$/, '');\n return `${base}/${encodeURIComponent(props.surveySlug)}?key=${encodeURIComponent(mintedKey.value)}`;\n});\n\n/**\n * Methods\n */\nconst openSurvey = async () => {\n open.value = true;\n iframeLoading.value = true;\n mintFailed.value = false;\n mintedKey.value = null;\n try {\n mintedKey.value = await mintSurveyEmbedKey(\n props.baseUrl,\n props.surveySlug,\n surveyContext.value\n );\n iframeKey.value += 1;\n } catch {\n mintFailed.value = true;\n iframeLoading.value = false;\n }\n};\nconst closeSurvey = () => {\n open.value = false;\n mintedKey.value = null;\n mintFailed.value = false;\n};\nconst onIframeLoad = () => {\n iframeLoading.value = false;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(__props.variant === 'bar' ? 'div' : 'span'), {\n class: _normalizeClass(__props.variant === 'bar' ? 'psc-w-full' : 'psc-inline-flex psc-shrink-0')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: _normalizeClass([\n 'psc-survey-trigger',\n { 'psc-survey-trigger--bar': __props.variant === 'bar' },\n ]),\n \"aria-label\": _unref(buttonText),\n onClick: openSurvey\n }, _toDisplayString(_unref(buttonText)), 11, _hoisted_1)\n ]),\n _: 1\n }, 8, [\"class\"])),\n _createVNode(_unref(BModal), {\n modelValue: open.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((open).value = $event)),\n class: \"psc-survey-modal\",\n fullscreen: \"\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"psc-survey-modal__close\",\n onClick: closeSurvey\n }, _hoisted_4),\n (iframeLoading.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : (mintFailed.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"p\", _hoisted_8, _toDisplayString(_ctx.$t('psc.test_result_take_survey_error')), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (open.value && mintedKey.value)\n ? (_openBlock(), _createElementBlock(\"iframe\", {\n key: iframeKey.value,\n src: _unref(surveyUrl),\n class: \"psc-survey-modal__iframe\",\n title: _ctx.$t('psc.test_result_take_survey_button'),\n onLoad: onIframeLoad\n }, null, 40, _hoisted_9))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_sfc_main","_defineComponent","SURVEY_BASE_URL","__props","props","t","useI18n","buttonText","computed","_a","open","ref","iframeKey","iframeLoading","mintedKey","mintFailed","surveyContext","merged","__spreadValues","surveyUrl","openSurvey","mintSurveyEmbedKey","e","closeSurvey","onIframeLoad","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_createBlock","_resolveDynamicComponent","_normalizeClass","_withCtx","_createElementVNode","_unref","_toDisplayString","_createVNode","BModal","$event","BIcon","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;AAGA,MAAMA,IAAa,CAAC,YAAY,GAC1BC,IAAa,EAAE,OAAO,gDACtBC,sBAA8C,KAAK,EAAE,OAAO,qDAAqD,MAAM,EAAE,GACzHC,IAAa;AAAA,EACjBD;AACF,GACME,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,sBACtBC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,4DACtBC,IAAa,CAAC,OAAO,OAAO,GA6BNC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY;AAAA,IACZ,SAAS,EAAE,SAASC,EAAgB;AAAA,IACpC,MAAM;AAAA,IACN,SAAS,EAAE,SAAS,OAAO;AAAA,IAC3B,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIR,EAAE,GAAAE,MAAMC,KAERC,IAAaC;AAAA,MACjB,MAAA;;AAAM,gBAAAC,IAAAL,EAAM,SAAN,OAAAK,IAAcJ,EAAE,oCAAoC;AAAA;AAAA,IAAA,GAMtDK,IAAOC,EAAI,EAAK,GAChBC,IAAYD,EAAI,CAAC,GACjBE,IAAgBF,EAAI,EAAI,GACxBG,IAAYH,EAAmB,IAAI,GACnCI,IAAaJ,EAAI,EAAK,GAEtBK,IAAgBR,EAAwB,MAAM;;AAClD,YAAMS,IAAwBC,EAAA,KAAMT,IAAAL,EAAM,YAAN,OAAAK,IAAiB,CAAI;AACzD,aAAIL,EAAM,UAAU,CAACa,EAAO,mBAC1BA,EAAO,iBAAiBb,EAAM,SAEzBa;AAAA,I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4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={and:"và",gender:"Giới tính",male:"Nam",female:"Nữ",confirm:"Xác nhận",test_result_my_profile:"Hồ sơ của tôi",test_result_if_you_wish_to_edit_your_profile:'Nếu cần thay đổi thông tin cá nhân, bạn vui lòng <a href="tel:1900 1717" class="contact-support">liên hệ hỗ trợ</a>',test_result_test_more_for_better_health:"Để thấu hiểu và duy trì sức khoẻ",test_result_book_general_screening_panel_now:"Đặt hẹn Gói Xét Nghiệm Tổng Quát ngay",test_result_status_not_ready:"Chưa có kết quả",test_result_status_couldnt_process:"Mẫu không thể xử lý",test_result_status_ready:"Sẵn sàng",test_result_status_partially_ready:"Sẵn sàng một phần",test_result_order:"Chỉ định",test_result_all_results:"Tất cả kết quả",test_result_load_older_results:"Xem các kết quả cũ hơn",test_result_all_results_loaded:"Đã hiển thị tất cả kết quả",test_result_hi:"Xin chào,",test_result_your_result_ready:"Bạn đã có kết quả xét nghiệm",test_result_result_partial_completed:"Xét nghiệm của bạn đã hoàn thành một phần",test_result_your_result_not_ready:"Kết quả của bạn chưa hoàn tất",test_result_sample_collected:"Lấy mẫu:",test_result_result_ready:"Có kết quả:",test_result_sample_collected_on:"Mẫu đã được lấy vào ngày",test_result_result_released_on:"và có kết quả xét nghiệm vào ngày",test_result_check_other_results:"Xem các kết quả khác",call_us:"Liên hệ Diag",test_result_time_support:"Từ 06:00 - 21:00",test_result_sample_could_not_processed:"Không thể xử lý mẫu bạn đã gửi.",test_result_contact_support:"Xin liên hệ bộ phận CSKH của chúng tôi để được hỗ trợ thêm",test_result_being_prepared:"Mẫu của bạn đang được xét nghiệm.",test_result_note:"Tư vấn từ bác sĩ",doctor_note_detail_show_more:"Xem thêm",doctor_note_detail_show_less:"Thu gọn",doctor_note_detail_title:"Bạn có ghi chú từ bác sĩ đối tác",doctor_note_detail_conclusion:"Kết luận từ kết quả xét nghiệm (tình trạng phát hiện)",doctor_note_detail_diet:"Chế độ ăn",doctor_note_detail_lifestyle:"Chế độ sinh hoạt",doctor_note_detail_physical_activity:"Vận động thể chất",doctor_note_detail_follow_up_plans:"Kế hoạch theo dõi",doctor_note_detail_next_appointment_date:"Ngày hẹn tái khám tiếp theo",doctor_note_detail_vaccination_treatment:"Tiêm chủng & điều trị",doctor_note_detail_appointment_bookings:"Mã đặt chỗ & Hẹn tái khám",doctor_note_detail_booking_now:"Làm ngay",doctor_note_detail_booking_overdue:"Quá hạn",test_result_measured_in:"đơn vị tính là",test_result_critical:"Nguy hiểm",test_result_high:"Cao",test_result_low:"Thấp",test_result_normal:"Bình thường",test_result_about:"Ý nghĩa của",test_result_all_bookings:"Tất cả lịch hẹn",test_result_more_bookings:"Lịch hẹn khác",test_result_no_booking_found:"Không có lịch hẹn nào",test_result_message_no_booking_yet:"Bạn chưa tạo lịch hẹn xét nghiệm nào",test_result_support:"Hỗ trợ",test_result_find_nearest_diag_branch:"Tìm chi nhánh gần nhất",test_result_no_results_found:"Chưa có kết quả nào",test_result_book_to_show_result:"Đặt hẹn xét nghiệm ngay để xem kết quả",test_result_doctor_appointment:"Giải thích kết quả",test_result_free:"Miễn phí",test_result_step_ordered:"Đã tạo hồ sơ",test_result_step_sample_collected:"Đã lấy mẫu",test_result_step_in_progress:"Phòng xét nghiệm đang xử lý",test_result_step_partially_approved:"Đã hoàn thành một phần",test_result_step_approved:"Đã hoàn thành",test_result_more_about_your_results:"Hiểu rõ hơn về kết quả của bạn",test_result_choose_time:"Đặt cuộc hẹn",test_result_book_appointment:"Đặt hẹn nhận cuộc gọi",test_result_call_support:"Liên hệ hỗ trợ",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={and:"và",gender:"Giới tính",male:"Nam",female:"Nữ",confirm:"Xác nhận",test_result_my_profile:"Hồ sơ của tôi",test_result_if_you_wish_to_edit_your_profile:'Nếu cần thay đổi thông tin cá nhân, bạn vui lòng <a href="tel:1900 1717" class="contact-support">liên hệ hỗ trợ</a>',test_result_test_more_for_better_health:"Để thấu hiểu và duy trì sức khoẻ",test_result_book_general_screening_panel_now:"Đặt hẹn Gói Xét Nghiệm Tổng Quát ngay",test_result_status_not_ready:"Chưa có kết quả",test_result_status_couldnt_process:"Mẫu không thể xử lý",test_result_status_ready:"Sẵn sàng",test_result_status_partially_ready:"Sẵn sàng một phần",test_result_order:"Chỉ định",test_result_all_results:"Tất cả kết quả",test_result_load_older_results:"Xem các kết quả cũ hơn",test_result_all_results_loaded:"Đã hiển thị tất cả kết quả",test_result_hi:"Xin chào,",test_result_your_result_ready:"Bạn đã có kết quả xét nghiệm",test_result_result_partial_completed:"Xét nghiệm của bạn đã hoàn thành một phần",test_result_your_result_not_ready:"Kết quả của bạn chưa hoàn tất",test_result_sample_collected:"Lấy mẫu:",test_result_result_ready:"Có kết quả:",test_result_sample_collected_on:"Mẫu đã được lấy vào ngày",test_result_result_released_on:"và có kết quả xét nghiệm vào ngày",test_result_check_other_results:"Xem các kết quả khác",call_us:"Liên hệ Diag",test_result_time_support:"Từ 06:00 - 21:00",test_result_sample_could_not_processed:"Không thể xử lý mẫu bạn đã gửi.",test_result_contact_support:"Xin liên hệ bộ phận CSKH của chúng tôi để được hỗ trợ thêm",test_result_being_prepared:"Mẫu của bạn đang được xét nghiệm.",test_result_note:"Tư vấn từ bác sĩ",doctor_note_detail_show_more:"Xem thêm",doctor_note_detail_show_less:"Thu gọn",doctor_note_detail_title:"Bạn có ghi chú từ bác sĩ đối tác",doctor_note_detail_conclusion:"Kết luận từ kết quả xét nghiệm (tình trạng phát hiện)",doctor_note_detail_diet:"Chế độ ăn",doctor_note_detail_lifestyle:"Chế độ sinh hoạt",doctor_note_detail_physical_activity:"Vận động thể chất",doctor_note_detail_follow_up_plans:"Kế hoạch theo dõi",doctor_note_detail_next_appointment_date:"Ngày hẹn tái khám tiếp theo",doctor_note_detail_vaccination_treatment:"Tiêm chủng & điều trị",doctor_note_detail_appointment_bookings:"Mã đặt chỗ & Hẹn tái khám",doctor_note_detail_booking_now:"Làm ngay",doctor_note_detail_booking_overdue:"Quá hạn",test_result_measured_in:"đơn vị tính là",test_result_critical:"Nguy hiểm",test_result_high:"Cao",test_result_low:"Thấp",test_result_normal:"Bình thường",test_result_about:"Ý nghĩa của",test_result_all_bookings:"Tất cả lịch hẹn",test_result_more_bookings:"Lịch hẹn khác",test_result_no_booking_found:"Không có lịch hẹn nào",test_result_message_no_booking_yet:"Bạn chưa tạo lịch hẹn xét nghiệm nào",test_result_support:"Hỗ trợ",test_result_find_nearest_diag_branch:"Tìm chi nhánh gần nhất",test_result_no_results_found:"Chưa có kết quả nào",test_result_book_to_show_result:"Đặt hẹn xét nghiệm ngay để xem kết quả",test_result_doctor_appointment:"Giải thích kết quả",test_result_free:"Miễn phí",test_result_step_ordered:"Đã tạo hồ sơ",test_result_step_sample_collected:"Đã lấy mẫu",test_result_step_in_progress:"Phòng xét nghiệm đang xử lý",test_result_step_partially_approved:"Đã hoàn thành một phần",test_result_step_approved:"Đã hoàn thành",test_result_more_about_your_results:"Hiểu rõ hơn về kết quả của bạn",test_result_choose_time:"Đặt cuộc hẹn",test_result_book_appointment:"Đặt hẹn nhận cuộc gọi",test_result_call_support:"Liên hệ hỗ trợ",test_result_take_survey_description:"Trả lời vài câu hỏi để chúng tôi hỗ trợ bạn tốt hơn",test_result_take_survey_button:"Đánh giá trải nghiệm",test_result_take_survey_error:"Không mở được khảo sát. Vui lòng thử lại sau.",test_result_take_teledoc_survey_button:"Đánh giá tư vấn",test_result_successfully_booked:"Đặt hẹn thành công",test_result_have_an_appointment_with_doctor:"Bạn có lịch hẹn với bác sĩ của Diag vào ngày {date}.",test_result_book_appointment_error_title:"Đã có lỗi xảy ra...",test_result_book_appointment_error_description:"Bạn vui lòng thử lại hoặc liên hệ Diag qua hotline 19001717 nếu vẫn không thể đặt hẹn thành công.",test_result_upcoming_appointment:"Lịch hẹn sắp tới",test_result_get_started:"Bắt đầu",test_result_book_first_test:"Đặt hẹn xét nghiệm ngay",test_result_booking_account_code:"Mã tài khoản:",test_result_booking_document_type_id_number:"CMND/CCCD:",test_result_booking_document_type_passport_no:"Hộ chiếu:",test_result_booking_patient:"Bệnh nhân",test_result_booking_doctor:"Bác sĩ",test_result_booking_booking_number:"Mã đặt chỗ của bạn",test_result_booking_results_will_be_there:"Xem kết quả tại đây khi hoàn tất...",test_result_booking_booking_canceled:"Lịch hẹn của bạn đã huỷ",test_result_booking_next_step:"Bước tiếp theo",test_result_booking_diag_contact_you_and_check:"Diag sẽ liên hệ để sắp xếp lịch hẹn phù hợp với thời gian của bạn.",test_result_booking_find_location_center:"Tìm chi nhánh Diag",test_result_booking_view_results:"Xem kết quả của tôi",test_result_booking_test_results:"Kết quả xét nghiệm",test_result_booking_need_collect_sample:"Y tá cần lấy mẫu của bạn.",test_result_booking_processing_sample:"Chúng tôi đang xử lý mẫu của bạn.",test_result_booking_fully_ready:"Kết quả xét nghiệm của bạn đã hoàn tất.",test_result_booking_booking_details:"Chi tiết lịch hẹn",test_result_booking_payment_status_pay_later:"Thanh toán sau",test_result_booking_payment_status_paid_online:"Đã thanh toán",test_result_booking_payment_status_paid:"Đã thanh toán",test_result_booking_payment_status_refund_in_progress:"Đang hoàn tiền",test_result_booking_payment_status_refunded:"Đã hoàn tiền",test_result_booking_payment_status_canceled:"Đã huỷ",test_result_booking_booking_status_created:"Đã tạo",test_result_booking_booking_status_in_progress:"Đang xử lý mẫu",test_result_booking_booking_status_completed:"Hoàn tất",test_result_booking_booking_status_canceled:"Đã huỷ",test_result_booking_total_payment:"Tổng thanh toán",test_result_booking_note:"Ghi chú",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"Lấy mẫu",test_result_booking_testing_location:"Địa điểm xét nghiệm",test_result_booking_address:"Địa chỉ",test_result_booking_expected_date:"Ngày dự kiến",test_result_booking_tests:"Xét nghiệm",test_result_booking_packages:"Gói xét nghiệm",test_result_booking_imaging_services:"Chẩn đoán hình ảnh",test_result_booking_attachment:"Tệp đính kèm",date_time:{day_parts:{morning:"Sáng",afternoon:"Chiều",evening:"Tối"}},test_result_health_summary:"Tóm tắt sức khoẻ sơ bộ",test_result_have_questions:"Đặt cuộc gọi tư vấn",test_result_appointment_date:"{time} ngày {date}",test_result_come_to_diag_to_get_tested:"Hãy đến Diag để xét nghiệm",test_result_locate_this_center:"Tìm địa điểm này",test_result_show_all_locations:"Xem tất cả các địa điểm",test_result_booking_number:"Mã đặt chỗ của bạn",test_result_total_price:"Tổng thanh toán",test_result_add_remove_test_message:"Nếu bạn muốn thêm hoặc bớt xét nghiệm, vui lòng liên hệ với lễ tân của chúng tôi.",test_result_additional_tests:"Các xét nghiệm bổ sung",test_result_recommended_tests:"Các xét nghiệm khuyến nghị",test_result_count_day:"{count} ngày",test_result_count_month:"{count} tháng",test_result_count_days:"{count} ngày",test_result_count_months:"{count} tháng",test_result_remind_message_title:"Đã đến lúc xét nghiệm lại!",test_result_remind_message_content:"Đã {count} kể từ lúc bạn kiểm tra lần cuối",test_result_recommend_message_title:"Bạn nên xét nghiệm thêm những xét nghiệm này",test_result_recommend_message_content:"Dựa và những lần kiểm tra gần đây, bạn được khuyến nghị kiểm tra thêm những xét nghiệm này.",test_result_followup_title:"Lịch theo dõi sức khỏe của bạn",test_result_followup_subtitle:"Bạn có lịch hẹn theo dõi sức khỏe ngày {date} với Diag. Mã đặt chỗ của bạn là {code}.",test_result_recommend_title:"Theo dõi thêm từ kết quả của bạn",test_result_recommend_subtitle:"Diag khuyến nghị xét nghiệm theo dõi dựa trên kết quả xét nghiệm của bạn. Mã đặt chỗ của bạn là {code}.",test_result_recommend_subtitle_no_code:"Diag khuyến nghị xét nghiệm theo dõi dựa trên kết quả xét nghiệm của bạn.",test_result_followup_context_remind:`Cảm ơn bạn đã lựa chọn Diag! Sức khỏe của bạn luôn là ưu tiên hàng đầu của chúng tôi.
|
|
2
2
|
|
|
3
3
|
Từ kết quả xét nghiệm ngày {last_visit_date} (mã hồ sơ: {customer_code}), bác sĩ khuyến nghị bạn thực hiện các xét nghiệm theo dõi dưới đây để đảm bảo việc theo dõi và quản lý sức khỏe hiệu quả hơn.`,test_result_followup_context_recommend:`Cảm ơn bạn đã lựa chọn Diag! Sức khỏe của bạn luôn là ưu tiên hàng đầu của chúng tôi.
|
|
4
4
|
|
|
@@ -69,9 +69,9 @@ const t = {
|
|
|
69
69
|
test_result_choose_time: "Đặt cuộc hẹn",
|
|
70
70
|
test_result_book_appointment: "Đặt hẹn nhận cuộc gọi",
|
|
71
71
|
test_result_call_support: "Liên hệ hỗ trợ",
|
|
72
|
-
test_result_take_survey: "Đánh giá kết quả xét nghiệm",
|
|
73
72
|
test_result_take_survey_description: "Trả lời vài câu hỏi để chúng tôi hỗ trợ bạn tốt hơn",
|
|
74
73
|
test_result_take_survey_button: "Đánh giá trải nghiệm",
|
|
74
|
+
test_result_take_survey_error: "Không mở được khảo sát. Vui lòng thử lại sau.",
|
|
75
75
|
test_result_take_teledoc_survey_button: "Đánh giá tư vấn",
|
|
76
76
|
test_result_successfully_booked: "Đặt hẹn thành công",
|
|
77
77
|
test_result_have_an_appointment_with_doctor: "Bạn có lịch hẹn với bác sĩ của Diag vào ngày {date}.",
|