pat-shared-components 1.3.1-beta.7 → 1.3.1-beta.8
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-components100.js +1 -1
- package/dist/pat-shared-components100.js.map +1 -1
- package/dist/pat-shared-components100.mjs +25 -80
- package/dist/pat-shared-components100.mjs.map +1 -1
- package/dist/pat-shared-components101.js +1 -1
- package/dist/pat-shared-components101.mjs +7 -9
- package/dist/pat-shared-components101.mjs.map +1 -1
- package/dist/pat-shared-components102.js +1 -1
- package/dist/pat-shared-components102.js.map +1 -1
- package/dist/pat-shared-components102.mjs +54 -44
- package/dist/pat-shared-components102.mjs.map +1 -1
- package/dist/pat-shared-components103.js +1 -1
- package/dist/pat-shared-components103.js.map +1 -1
- package/dist/pat-shared-components103.mjs +85 -31
- package/dist/pat-shared-components103.mjs.map +1 -1
- package/dist/pat-shared-components104.js +1 -1
- package/dist/pat-shared-components104.js.map +1 -1
- package/dist/pat-shared-components104.mjs +17 -20
- package/dist/pat-shared-components104.mjs.map +1 -1
- package/dist/pat-shared-components105.js +1 -1
- package/dist/pat-shared-components105.js.map +1 -1
- package/dist/pat-shared-components105.mjs +41 -25
- package/dist/pat-shared-components105.mjs.map +1 -1
- package/dist/pat-shared-components106.js +1 -1
- package/dist/pat-shared-components106.js.map +1 -1
- package/dist/pat-shared-components106.mjs +82 -23
- package/dist/pat-shared-components106.mjs.map +1 -1
- package/dist/pat-shared-components107.js +1 -1
- package/dist/pat-shared-components107.mjs +2 -2
- package/dist/pat-shared-components108.js +1 -1
- package/dist/pat-shared-components108.mjs +2 -2
- package/dist/pat-shared-components109.js +1 -1
- package/dist/pat-shared-components109.mjs +2 -2
- package/dist/pat-shared-components11.js +1 -1
- package/dist/pat-shared-components11.mjs +1 -1
- package/dist/pat-shared-components111.js +1 -6
- package/dist/pat-shared-components111.js.map +1 -1
- package/dist/pat-shared-components111.mjs +2 -107
- package/dist/pat-shared-components111.mjs.map +1 -1
- package/dist/pat-shared-components112.js +1 -6
- package/dist/pat-shared-components112.js.map +1 -1
- package/dist/pat-shared-components112.mjs +2 -951
- package/dist/pat-shared-components112.mjs.map +1 -1
- package/dist/pat-shared-components113.js +1 -7
- package/dist/pat-shared-components113.js.map +1 -1
- package/dist/pat-shared-components113.mjs +2 -861
- package/dist/pat-shared-components113.mjs.map +1 -1
- package/dist/pat-shared-components114.js +1 -1
- package/dist/pat-shared-components114.mjs +1 -1
- package/dist/pat-shared-components115.js +1 -1
- package/dist/pat-shared-components115.mjs +1 -1
- package/dist/pat-shared-components116.js +1 -1
- package/dist/pat-shared-components116.mjs +1 -1
- package/dist/pat-shared-components117.js +1 -1
- package/dist/pat-shared-components117.mjs +1 -1
- package/dist/pat-shared-components118.js +1 -1
- package/dist/pat-shared-components118.mjs +1 -1
- package/dist/pat-shared-components119.js +1 -1
- package/dist/pat-shared-components119.js.map +1 -1
- package/dist/pat-shared-components119.mjs +27 -1
- package/dist/pat-shared-components119.mjs.map +1 -1
- package/dist/pat-shared-components12.js +1 -1
- package/dist/pat-shared-components12.mjs +1 -1
- package/dist/pat-shared-components120.js +1 -1
- package/dist/pat-shared-components120.mjs +2 -2
- package/dist/pat-shared-components121.js +1 -1
- package/dist/pat-shared-components121.mjs +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 +1 -27
- package/dist/pat-shared-components122.mjs.map +1 -1
- package/dist/pat-shared-components123.js +1 -1
- package/dist/pat-shared-components123.mjs +2 -2
- package/dist/pat-shared-components124.js +1 -1
- package/dist/pat-shared-components124.mjs +1 -1
- package/dist/pat-shared-components125.js +6 -1
- package/dist/pat-shared-components125.js.map +1 -1
- package/dist/pat-shared-components125.mjs +107 -2
- package/dist/pat-shared-components125.mjs.map +1 -1
- package/dist/pat-shared-components126.js +6 -1
- package/dist/pat-shared-components126.js.map +1 -1
- package/dist/pat-shared-components126.mjs +951 -2
- package/dist/pat-shared-components126.mjs.map +1 -1
- package/dist/pat-shared-components127.js +7 -1
- package/dist/pat-shared-components127.js.map +1 -1
- package/dist/pat-shared-components127.mjs +861 -2
- package/dist/pat-shared-components127.mjs.map +1 -1
- package/dist/pat-shared-components128.js +1 -1
- package/dist/pat-shared-components128.mjs +1 -1
- package/dist/pat-shared-components129.js +1 -1
- package/dist/pat-shared-components129.mjs +1 -1
- package/dist/pat-shared-components130.js +1 -1
- package/dist/pat-shared-components130.js.map +1 -1
- package/dist/pat-shared-components130.mjs +159 -2
- package/dist/pat-shared-components130.mjs.map +1 -1
- package/dist/pat-shared-components131.js +1 -1
- package/dist/pat-shared-components131.mjs +2 -2
- package/dist/pat-shared-components132.js +1 -1
- package/dist/pat-shared-components132.js.map +1 -1
- package/dist/pat-shared-components132.mjs +2 -159
- package/dist/pat-shared-components132.mjs.map +1 -1
- package/dist/pat-shared-components133.js +1 -1
- package/dist/pat-shared-components133.mjs +2 -2
- package/dist/pat-shared-components134.js +1 -1
- package/dist/pat-shared-components134.mjs +1 -1
- package/dist/pat-shared-components135.js +1 -1
- package/dist/pat-shared-components135.mjs +1 -1
- package/dist/pat-shared-components136.js +1 -1
- package/dist/pat-shared-components136.mjs +1 -1
- package/dist/pat-shared-components137.js +1 -1
- package/dist/pat-shared-components137.mjs +1 -1
- package/dist/pat-shared-components138.js +1 -1
- package/dist/pat-shared-components138.mjs +1 -1
- package/dist/pat-shared-components139.js +1 -1
- package/dist/pat-shared-components139.mjs +1 -1
- package/dist/pat-shared-components14.js +1 -1
- package/dist/pat-shared-components14.mjs +6 -6
- package/dist/pat-shared-components140.js +1 -1
- package/dist/pat-shared-components140.js.map +1 -1
- package/dist/pat-shared-components140.mjs +25 -2
- package/dist/pat-shared-components140.mjs.map +1 -1
- package/dist/pat-shared-components141.js +1 -1
- package/dist/pat-shared-components141.mjs +1 -1
- package/dist/pat-shared-components142.js +1 -1
- package/dist/pat-shared-components142.js.map +1 -1
- package/dist/pat-shared-components142.mjs +2 -25
- package/dist/pat-shared-components142.mjs.map +1 -1
- package/dist/pat-shared-components143.js +1 -1
- package/dist/pat-shared-components143.mjs +1 -1
- package/dist/pat-shared-components144.js +1 -1
- package/dist/pat-shared-components144.mjs +1 -1
- package/dist/pat-shared-components145.js +1 -1
- package/dist/pat-shared-components145.js.map +1 -1
- package/dist/pat-shared-components145.mjs +77 -2
- 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 +2 -77
- 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 +56 -2
- package/dist/pat-shared-components147.mjs.map +1 -1
- package/dist/pat-shared-components148.js +1 -1
- package/dist/pat-shared-components148.js.map +1 -1
- package/dist/pat-shared-components148.mjs +2 -56
- 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 +71 -2
- 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 +2 -71
- package/dist/pat-shared-components150.mjs.map +1 -1
- package/dist/pat-shared-components151.js +1 -1
- package/dist/pat-shared-components151.mjs +2 -2
- package/dist/pat-shared-components154.js +1 -1
- package/dist/pat-shared-components154.mjs +3 -3
- package/dist/pat-shared-components157.js +1 -1
- package/dist/pat-shared-components157.mjs +3 -3
- package/dist/pat-shared-components16.js +1 -1
- package/dist/pat-shared-components16.mjs +5 -5
- package/dist/pat-shared-components162.js +1 -1
- package/dist/pat-shared-components162.mjs +1 -1
- package/dist/pat-shared-components169.js +1 -1
- package/dist/pat-shared-components169.mjs +1 -1
- package/dist/pat-shared-components170.js +1 -1
- package/dist/pat-shared-components170.mjs +1 -1
- package/dist/pat-shared-components172.js +1 -1
- package/dist/pat-shared-components172.mjs +1 -1
- package/dist/pat-shared-components173.js +1 -1
- package/dist/pat-shared-components173.mjs +1 -1
- package/dist/pat-shared-components174.js +1 -1
- package/dist/pat-shared-components174.mjs +4 -4
- package/dist/pat-shared-components176.js +1 -1
- package/dist/pat-shared-components176.js.map +1 -1
- package/dist/pat-shared-components176.mjs +39 -9
- 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 +10 -7
- 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 +7 -10
- 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 +10 -37
- package/dist/pat-shared-components179.mjs.map +1 -1
- package/dist/pat-shared-components18.js +1 -1
- package/dist/pat-shared-components18.mjs +3 -3
- package/dist/pat-shared-components180.js +1 -1
- package/dist/pat-shared-components180.js.map +1 -1
- package/dist/pat-shared-components180.mjs +78 -13
- package/dist/pat-shared-components180.mjs.map +1 -1
- package/dist/pat-shared-components181.js +1 -1
- package/dist/pat-shared-components181.js.map +1 -1
- package/dist/pat-shared-components181.mjs +20 -27
- package/dist/pat-shared-components181.mjs.map +1 -1
- package/dist/pat-shared-components182.js +1 -1
- package/dist/pat-shared-components182.js.map +1 -1
- package/dist/pat-shared-components182.mjs +19 -58
- package/dist/pat-shared-components182.mjs.map +1 -1
- package/dist/pat-shared-components183.js +1 -1
- package/dist/pat-shared-components183.js.map +1 -1
- package/dist/pat-shared-components183.mjs +15 -39
- package/dist/pat-shared-components183.mjs.map +1 -1
- package/dist/pat-shared-components184.js +1 -1
- package/dist/pat-shared-components184.js.map +1 -1
- package/dist/pat-shared-components184.mjs +16 -78
- package/dist/pat-shared-components184.mjs.map +1 -1
- package/dist/pat-shared-components185.js +1 -1
- package/dist/pat-shared-components185.mjs +31 -17
- package/dist/pat-shared-components185.mjs.map +1 -1
- package/dist/pat-shared-components186.js +1 -1
- package/dist/pat-shared-components186.mjs +5 -19
- package/dist/pat-shared-components186.mjs.map +1 -1
- package/dist/pat-shared-components187.js +1 -1
- package/dist/pat-shared-components187.mjs +14 -12
- 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 +106 -15
- 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 +948 -32
- package/dist/pat-shared-components189.mjs.map +1 -1
- package/dist/pat-shared-components19.js +1 -1
- package/dist/pat-shared-components19.js.map +1 -1
- package/dist/pat-shared-components19.mjs +10 -10
- package/dist/pat-shared-components190.js +7 -1
- package/dist/pat-shared-components190.js.map +1 -1
- package/dist/pat-shared-components190.mjs +861 -5
- 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 -17
- package/dist/pat-shared-components191.mjs.map +1 -1
- package/dist/pat-shared-components192.js +1 -6
- package/dist/pat-shared-components192.js.map +1 -1
- package/dist/pat-shared-components192.mjs +3 -106
- package/dist/pat-shared-components192.mjs.map +1 -1
- package/dist/pat-shared-components193.js +1 -6
- package/dist/pat-shared-components193.js.map +1 -1
- package/dist/pat-shared-components193.mjs +2 -950
- package/dist/pat-shared-components193.mjs.map +1 -1
- package/dist/pat-shared-components194.js +1 -7
- package/dist/pat-shared-components194.js.map +1 -1
- package/dist/pat-shared-components194.mjs +20 -861
- 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 +37 -6
- 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 +12 -3
- package/dist/pat-shared-components196.mjs.map +1 -1
- package/dist/pat-shared-components197.js +1 -1
- package/dist/pat-shared-components197.js.map +1 -1
- package/dist/pat-shared-components197.mjs +27 -2
- package/dist/pat-shared-components197.mjs.map +1 -1
- package/dist/pat-shared-components198.js +1 -1
- package/dist/pat-shared-components198.js.map +1 -1
- package/dist/pat-shared-components198.mjs +58 -20
- package/dist/pat-shared-components198.mjs.map +1 -1
- package/dist/pat-shared-components20.js +1 -1
- package/dist/pat-shared-components20.mjs +2 -2
- package/dist/pat-shared-components205.js +1 -1
- package/dist/pat-shared-components205.mjs +1 -1
- package/dist/pat-shared-components206.js +1 -1
- package/dist/pat-shared-components206.mjs +1 -1
- package/dist/pat-shared-components208.js +1 -1
- package/dist/pat-shared-components208.mjs +1 -1
- package/dist/pat-shared-components209.js +1 -1
- package/dist/pat-shared-components209.js.map +1 -1
- package/dist/pat-shared-components209.mjs +42 -2
- package/dist/pat-shared-components209.mjs.map +1 -1
- package/dist/pat-shared-components21.js +1 -1
- package/dist/pat-shared-components21.mjs +4 -4
- package/dist/pat-shared-components210.js +1 -1
- package/dist/pat-shared-components210.mjs +2 -2
- package/dist/pat-shared-components211.js +1 -1
- package/dist/pat-shared-components211.mjs +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 +2 -42
- package/dist/pat-shared-components212.mjs.map +1 -1
- package/dist/pat-shared-components213.js +1 -1
- package/dist/pat-shared-components213.mjs +2 -2
- package/dist/pat-shared-components23.js +1 -1
- package/dist/pat-shared-components23.mjs +2 -2
- package/dist/pat-shared-components234.js +1 -1
- package/dist/pat-shared-components234.mjs +2 -2
- package/dist/pat-shared-components237.js +1 -1
- package/dist/pat-shared-components237.mjs +2 -2
- package/dist/pat-shared-components25.js +1 -1
- package/dist/pat-shared-components25.mjs +2 -2
- package/dist/pat-shared-components257.js +1 -1
- package/dist/pat-shared-components257.js.map +1 -1
- package/dist/pat-shared-components257.mjs +53 -2
- package/dist/pat-shared-components257.mjs.map +1 -1
- package/dist/pat-shared-components258.js +1 -1
- package/dist/pat-shared-components258.mjs +2 -2
- package/dist/pat-shared-components259.js +1 -1
- package/dist/pat-shared-components259.js.map +1 -1
- package/dist/pat-shared-components259.mjs +2 -53
- package/dist/pat-shared-components259.mjs.map +1 -1
- package/dist/pat-shared-components260.js +1 -1
- package/dist/pat-shared-components260.mjs +2 -2
- package/dist/pat-shared-components27.js +1 -1
- package/dist/pat-shared-components27.js.map +1 -1
- package/dist/pat-shared-components27.mjs +10 -10
- package/dist/pat-shared-components28.js +1 -1
- package/dist/pat-shared-components28.js.map +1 -1
- package/dist/pat-shared-components28.mjs +8 -8
- package/dist/pat-shared-components33.js +1 -1
- package/dist/pat-shared-components33.mjs +2 -2
- package/dist/pat-shared-components34.js +1 -1
- package/dist/pat-shared-components34.mjs +2 -2
- package/dist/pat-shared-components35.js +1 -1
- package/dist/pat-shared-components35.mjs +3 -3
- package/dist/pat-shared-components43.js +1 -1
- package/dist/pat-shared-components43.mjs +1 -1
- package/dist/pat-shared-components44.js +1 -1
- package/dist/pat-shared-components44.mjs +3 -2
- package/dist/pat-shared-components44.mjs.map +1 -1
- package/dist/pat-shared-components45.js +1 -1
- package/dist/pat-shared-components45.js.map +1 -1
- package/dist/pat-shared-components45.mjs +154 -3
- package/dist/pat-shared-components45.mjs.map +1 -1
- package/dist/pat-shared-components46.js +1 -1
- package/dist/pat-shared-components46.js.map +1 -1
- package/dist/pat-shared-components46.mjs +2 -154
- package/dist/pat-shared-components46.mjs.map +1 -1
- package/dist/pat-shared-components47.js +1 -1
- package/dist/pat-shared-components47.mjs +3 -2
- package/dist/pat-shared-components47.mjs.map +1 -1
- package/dist/pat-shared-components48.js +1 -1
- package/dist/pat-shared-components48.mjs +2 -2
- package/dist/pat-shared-components49.js +1 -1
- package/dist/pat-shared-components49.mjs +2 -3
- package/dist/pat-shared-components49.mjs.map +1 -1
- package/dist/pat-shared-components5.js +1 -1
- package/dist/pat-shared-components5.mjs +3 -2
- package/dist/pat-shared-components5.mjs.map +1 -1
- package/dist/pat-shared-components50.js +1 -1
- package/dist/pat-shared-components50.mjs +1 -1
- package/dist/pat-shared-components51.js +1 -1
- package/dist/pat-shared-components51.mjs +1 -1
- package/dist/pat-shared-components52.js +1 -1
- package/dist/pat-shared-components52.mjs +1 -1
- package/dist/pat-shared-components53.js +1 -1
- package/dist/pat-shared-components53.mjs +1 -1
- package/dist/pat-shared-components54.js +1 -1
- package/dist/pat-shared-components54.mjs +3 -2
- package/dist/pat-shared-components54.mjs.map +1 -1
- package/dist/pat-shared-components55.js +1 -1
- package/dist/pat-shared-components55.mjs +2 -2
- package/dist/pat-shared-components56.js +1 -1
- package/dist/pat-shared-components56.mjs +2 -2
- package/dist/pat-shared-components57.js +1 -1
- package/dist/pat-shared-components57.mjs +2 -3
- package/dist/pat-shared-components57.mjs.map +1 -1
- package/dist/pat-shared-components58.js +1 -1
- package/dist/pat-shared-components58.mjs +1 -1
- package/dist/pat-shared-components6.js +1 -1
- package/dist/pat-shared-components6.mjs +2 -1
- package/dist/pat-shared-components6.mjs.map +1 -1
- package/dist/pat-shared-components60.js +1 -1
- package/dist/pat-shared-components60.js.map +1 -1
- package/dist/pat-shared-components60.mjs +63 -10
- package/dist/pat-shared-components60.mjs.map +1 -1
- package/dist/pat-shared-components61.js +1 -1
- package/dist/pat-shared-components61.js.map +1 -1
- package/dist/pat-shared-components61.mjs +12 -51
- package/dist/pat-shared-components61.mjs.map +1 -1
- package/dist/pat-shared-components62.js +1 -1
- package/dist/pat-shared-components62.js.map +1 -1
- package/dist/pat-shared-components62.mjs +21 -85
- package/dist/pat-shared-components62.mjs.map +1 -1
- package/dist/pat-shared-components63.js +1 -1
- package/dist/pat-shared-components63.js.map +1 -1
- package/dist/pat-shared-components63.mjs +53 -4
- package/dist/pat-shared-components63.mjs.map +1 -1
- package/dist/pat-shared-components64.js +1 -5
- package/dist/pat-shared-components64.js.map +1 -1
- package/dist/pat-shared-components64.mjs +20 -820
- package/dist/pat-shared-components64.mjs.map +1 -1
- package/dist/pat-shared-components65.js +1 -1
- package/dist/pat-shared-components65.js.map +1 -1
- package/dist/pat-shared-components65.mjs +44 -15
- package/dist/pat-shared-components65.mjs.map +1 -1
- package/dist/pat-shared-components66.js +1 -1
- package/dist/pat-shared-components66.js.map +1 -1
- package/dist/pat-shared-components66.mjs +52 -36
- package/dist/pat-shared-components66.mjs.map +1 -1
- package/dist/pat-shared-components67.js +1 -1
- package/dist/pat-shared-components67.js.map +1 -1
- package/dist/pat-shared-components67.mjs +17 -80
- package/dist/pat-shared-components67.mjs.map +1 -1
- package/dist/pat-shared-components68.js +1 -1
- package/dist/pat-shared-components68.js.map +1 -1
- package/dist/pat-shared-components68.mjs +32 -103
- package/dist/pat-shared-components68.mjs.map +1 -1
- package/dist/pat-shared-components69.js +1 -1
- package/dist/pat-shared-components69.js.map +1 -1
- package/dist/pat-shared-components69.mjs +5 -71
- package/dist/pat-shared-components69.mjs.map +1 -1
- package/dist/pat-shared-components70.js +1 -1
- package/dist/pat-shared-components70.js.map +1 -1
- package/dist/pat-shared-components70.mjs +27 -9
- package/dist/pat-shared-components70.mjs.map +1 -1
- package/dist/pat-shared-components71.js +1 -1
- package/dist/pat-shared-components71.js.map +1 -1
- package/dist/pat-shared-components71.mjs +8 -8
- package/dist/pat-shared-components71.mjs.map +1 -1
- package/dist/pat-shared-components72.js +1 -1
- package/dist/pat-shared-components72.js.map +1 -1
- package/dist/pat-shared-components72.mjs +83 -16
- package/dist/pat-shared-components72.mjs.map +1 -1
- package/dist/pat-shared-components73.js +1 -1
- package/dist/pat-shared-components73.js.map +1 -1
- package/dist/pat-shared-components73.mjs +17 -19
- package/dist/pat-shared-components73.mjs.map +1 -1
- package/dist/pat-shared-components74.js +1 -1
- package/dist/pat-shared-components74.js.map +1 -1
- package/dist/pat-shared-components74.mjs +22 -19
- package/dist/pat-shared-components74.mjs.map +1 -1
- package/dist/pat-shared-components75.js +1 -1
- package/dist/pat-shared-components75.js.map +1 -1
- package/dist/pat-shared-components75.mjs +18 -59
- package/dist/pat-shared-components75.mjs.map +1 -1
- package/dist/pat-shared-components76.js +1 -1
- package/dist/pat-shared-components76.js.map +1 -1
- package/dist/pat-shared-components76.mjs +67 -11
- package/dist/pat-shared-components76.mjs.map +1 -1
- package/dist/pat-shared-components77.js +1 -1
- package/dist/pat-shared-components77.js.map +1 -1
- package/dist/pat-shared-components77.mjs +10 -27
- package/dist/pat-shared-components77.mjs.map +1 -1
- package/dist/pat-shared-components78.js +1 -1
- package/dist/pat-shared-components78.js.map +1 -1
- package/dist/pat-shared-components78.mjs +10 -53
- package/dist/pat-shared-components78.mjs.map +1 -1
- package/dist/pat-shared-components79.js +1 -1
- package/dist/pat-shared-components79.js.map +1 -1
- package/dist/pat-shared-components79.mjs +15 -18
- package/dist/pat-shared-components79.mjs.map +1 -1
- package/dist/pat-shared-components8.js +1 -1
- package/dist/pat-shared-components8.mjs +15 -15
- package/dist/pat-shared-components80.js +1 -1
- package/dist/pat-shared-components80.js.map +1 -1
- package/dist/pat-shared-components80.mjs +20 -43
- package/dist/pat-shared-components80.mjs.map +1 -1
- package/dist/pat-shared-components81.js +1 -1
- package/dist/pat-shared-components81.js.map +1 -1
- package/dist/pat-shared-components81.mjs +44 -57
- package/dist/pat-shared-components81.mjs.map +1 -1
- package/dist/pat-shared-components82.js +1 -1
- package/dist/pat-shared-components82.js.map +1 -1
- package/dist/pat-shared-components82.mjs +5 -32
- package/dist/pat-shared-components82.mjs.map +1 -1
- package/dist/pat-shared-components83.js +1 -1
- package/dist/pat-shared-components83.js.map +1 -1
- package/dist/pat-shared-components83.mjs +46 -5
- package/dist/pat-shared-components83.mjs.map +1 -1
- package/dist/pat-shared-components84.js +1 -1
- package/dist/pat-shared-components84.js.map +1 -1
- package/dist/pat-shared-components84.mjs +80 -28
- package/dist/pat-shared-components84.mjs.map +1 -1
- package/dist/pat-shared-components85.js +1 -1
- package/dist/pat-shared-components85.mjs +9 -7
- package/dist/pat-shared-components85.mjs.map +1 -1
- package/dist/pat-shared-components86.js +1 -1
- package/dist/pat-shared-components86.js.map +1 -1
- package/dist/pat-shared-components86.mjs +49 -80
- package/dist/pat-shared-components86.mjs.map +1 -1
- package/dist/pat-shared-components87.js +3 -1
- package/dist/pat-shared-components87.js.map +1 -1
- package/dist/pat-shared-components87.mjs +281 -18
- package/dist/pat-shared-components87.mjs.map +1 -1
- package/dist/pat-shared-components88.js +1 -1
- package/dist/pat-shared-components88.js.map +1 -1
- package/dist/pat-shared-components88.mjs +41 -20
- package/dist/pat-shared-components88.mjs.map +1 -1
- package/dist/pat-shared-components89.js +1 -1
- package/dist/pat-shared-components89.js.map +1 -1
- package/dist/pat-shared-components89.mjs +22 -29
- package/dist/pat-shared-components89.mjs.map +1 -1
- package/dist/pat-shared-components9.js +1 -1
- package/dist/pat-shared-components9.mjs +14 -14
- package/dist/pat-shared-components90.js +1 -1
- package/dist/pat-shared-components90.js.map +1 -1
- package/dist/pat-shared-components90.mjs +33 -10
- package/dist/pat-shared-components90.mjs.map +1 -1
- package/dist/pat-shared-components91.js +5 -1
- package/dist/pat-shared-components91.js.map +1 -1
- package/dist/pat-shared-components91.mjs +820 -20
- package/dist/pat-shared-components91.mjs.map +1 -1
- package/dist/pat-shared-components92.js +1 -1
- package/dist/pat-shared-components92.js.map +1 -1
- package/dist/pat-shared-components92.mjs +10 -21
- package/dist/pat-shared-components92.mjs.map +1 -1
- package/dist/pat-shared-components93.js +1 -1
- package/dist/pat-shared-components93.js.map +1 -1
- package/dist/pat-shared-components93.mjs +103 -33
- package/dist/pat-shared-components93.mjs.map +1 -1
- package/dist/pat-shared-components94.js +1 -1
- package/dist/pat-shared-components94.js.map +1 -1
- package/dist/pat-shared-components94.mjs +23 -4
- package/dist/pat-shared-components94.mjs.map +1 -1
- package/dist/pat-shared-components95.js +1 -1
- package/dist/pat-shared-components95.js.map +1 -1
- package/dist/pat-shared-components95.mjs +30 -44
- package/dist/pat-shared-components95.mjs.map +1 -1
- package/dist/pat-shared-components96.js +1 -1
- package/dist/pat-shared-components96.js.map +1 -1
- package/dist/pat-shared-components96.mjs +19 -51
- package/dist/pat-shared-components96.mjs.map +1 -1
- package/dist/pat-shared-components97.js +1 -3
- package/dist/pat-shared-components97.js.map +1 -1
- package/dist/pat-shared-components97.mjs +4 -284
- package/dist/pat-shared-components97.mjs.map +1 -1
- package/dist/pat-shared-components98.js +1 -1
- package/dist/pat-shared-components98.js.map +1 -1
- package/dist/pat-shared-components98.mjs +33 -44
- package/dist/pat-shared-components98.mjs.map +1 -1
- package/dist/pat-shared-components99.js +1 -1
- package/dist/pat-shared-components99.js.map +1 -1
- package/dist/pat-shared-components99.mjs +18 -20
- package/dist/pat-shared-components99.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components27.js","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\"\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]\" }\nconst _hoisted_4 = { class: \"psc-w-full\" }\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 } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.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\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 (\n __props.testResult.doctor_note_detail &&\n __props.testResult.doctor_note_detail.length > 0\n )\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail,\n \"onClick:appointmentBooking\": _cache[1] || (_cache[1] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\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 _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","isDisplayBook","ref","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","$event","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":"giBAGMA,EAAa,CACjB,IAAK,EACL,MAAO,UACT,EACMC,EAAa,CAAE,MAAO,6DACt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/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\"\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]\" }\nconst _hoisted_4 = { class: \"psc-w-full\" }\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 } from 'vue';\nimport TestResultDetailDesktopSkeleton from '../Shared/TestResultDetailSkeleton/TestResultDetailDesktopSkeleton.vue';\nimport type { TimelineEvent } from '../Shared/ResultReadyV2.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\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 (\n __props.testResult.doctor_note_detail &&\n __props.testResult.doctor_note_detail.length > 0\n )\n ? (_openBlock(), _createBlock(TestResultSection, { key: 4 }, {\n default: _withCtx(() => [\n _createVNode(DoctorNoteDetail, {\n \"doctor-note-detail\": __props.testResult.doctor_note_detail,\n \"onClick:appointmentBooking\": _cache[1] || (_cache[1] = ($event: any) => (\n emit('click:appointment-booking', $event)\n ))\n }, null, 8, [\"doctor-note-detail\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(visible).upcomingAppointment)\n ? (_openBlock(), _createBlock(TestResultSection, { key: 5 }, {\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 _renderSlot(_ctx.$slots, \"header\"),\n (!_unref(hideContent))\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"footer\")\n ])\n ]))\n : (_openBlock(), _createBlock(RejectedResult, {\n key: 1,\n class: \"psc-px-4\"\n }, {\n \"body-append\": _withCtx(() => [\n _createVNode(CallUsFilledButton, { class: \"psc-mt-6\" })\n ]),\n _: 1\n }))\n ], 64))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_sfc_main","_defineComponent","__props","emit","props","healthSummaryItems","hideContent","isViewable","visible","useTestResult","toRef","isDisplayBook","ref","_ctx","_cache","_openBlock","_createBlock","TestResultDetailDesktopSkeleton","_createElementBlock","_Fragment","_unref","_createElementVNode","PatientName","_createCommentVNode","_createVNode","ResultReadyV2","TestResultSection","_withCtx","HealthSummary","BookAppointment","_createSlots","_renderSlot","DoctorNote","DoctorNoteDetail","$event","UpcomingAppointment","RejectedResult","CallUsFilledButton"],"mappings":"4hBAGMA,EAAa,CACjB,IAAK,EACL,MAAO,UACT,EACMC,EAAa,CAAE,MAAO,6DACtBC,EAAa,CAAE,MAAO,8BACtBC,EAAa,CAAE,MAAO,cA4BAC,EAAiBC,kBAAA,CAC3C,OAAQ,0BACR,MAAO,CACL,WAAY,KACZ,QAAS,CAAE,KAAM,OAAQ,EACzB,gBAAiB,CAAE,KAAM,QAAS,QAAS,EAAM,EACjD,YAAa,CAAE,KAAM,QAAS,QAAS,EAAM,EAC7C,qBAAsB,CAAE,KAAM,QAAS,QAAS,EAAM,EACtD,SAAU,CAAE,QAAS,MAAU,EAC/B,gBAAiB,CAAE,QAAS,MAAU,CACxC,EACA,MAAO,CACP,yBACA,2BACF,EACE,MAAMC,EAAc,CAAE,KAAAC,GAAQ,CAEhC,MAAMC,EAAQF,EAMR,CAAE,mBAAAG,EAAoB,YAAAC,EAAa,WAAAC,EAAY,QAAAC,CAAA,EAAYC,EAAAA,cAAc,CAC7E,WAAYC,EAAAA,MAAMN,EAAO,YAAY,EACrC,gBAAiBM,EAAAA,MAAMN,EAAO,iBAAiB,EAC/C,YAAaM,EAAAA,MAAMN,EAAO,aAAa,CAAA,CACxC,EAEKO,EAAgBC,MAAI,EAAK,EAExB,MAAA,CAACC,EAAUC,IACRV,EAAM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EAAY,CACrCgC,aAAYlB,EAAK,OAAQ,QAAQ,EAC/BO,EAAA,MAAOd,CAAW,EAEhBiB,EAAAA,mBAAoB,GAAI,EAAI,EAD5BQ,EAAAA,WAAYlB,EAAK,OAAQ,UAAW,CAAE,IAAK,CAAG,CAAA,EAElDkB,aAAYlB,EAAK,OAAQ,QAAQ,CAAA,CAClC,CACF,CAAA,IACAE,EAAW,UAAA,EAAGC,cAAaoB,EAAgB,CAC1C,IAAK,EACL,MAAO,UAAA,EACN,CACD,cAAeT,UAAS,IAAM,CAC5BH,EAAAA,YAAaa,EAAoB,CAAE,MAAO,WAAY,CAAA,CACvD,EACD,EAAG,CAAA,CACJ,EAAA,EACJ,EAAE,EAEX,CAEA,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as $, toRef as d, ref as g, openBlock as e, createBlock as o, createElementBlock as y, Fragment as B, unref as s, createElementVNode as f, createCommentVNode as l, createVNode as n, withCtx as i, createSlots as S, renderSlot as p } from "vue";
|
|
2
|
-
import { useTestResult as C } from "./pat-shared-
|
|
3
|
-
import w from "./pat-shared-
|
|
4
|
-
import x from "./pat-shared-
|
|
2
|
+
import { useTestResult as C } from "./pat-shared-components81.mjs";
|
|
3
|
+
import w from "./pat-shared-components67.mjs";
|
|
4
|
+
import x from "./pat-shared-components82.mjs";
|
|
5
5
|
import N from "./pat-shared-components32.mjs";
|
|
6
|
-
import V from "./pat-shared-
|
|
7
|
-
import E from "./pat-shared-
|
|
8
|
-
import m from "./pat-shared-
|
|
6
|
+
import V from "./pat-shared-components83.mjs";
|
|
7
|
+
import E from "./pat-shared-components84.mjs";
|
|
8
|
+
import m from "./pat-shared-components85.mjs";
|
|
9
9
|
import I from "./pat-shared-components11.mjs";
|
|
10
|
-
import A from "./pat-shared-
|
|
11
|
-
import D from "./pat-shared-
|
|
12
|
-
import F from "./pat-shared-
|
|
13
|
-
import P from "./pat-shared-
|
|
10
|
+
import A from "./pat-shared-components86.mjs";
|
|
11
|
+
import D from "./pat-shared-components87.mjs";
|
|
12
|
+
import F from "./pat-shared-components88.mjs";
|
|
13
|
+
import P from "./pat-shared-components89.mjs";
|
|
14
14
|
const T = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "psc-flex"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./pat-shared-components101.js"),u=require("./pat-shared-components102.js"),_=require("./pat-shared-components103.js"),d=require("./pat-shared-components97.js"),m=require("./pat-shared-components91.js"),r=require("./pat-shared-components4.js"),g=require("./pat-shared-components104.js"),k=require("./pat-shared-components105.js"),y=require("./pat-shared-components106.js"),b={key:1,class:"psc-px-4 psc-pb-4"},f={class:"psc-mb-6 psc-text-xl psc-font-semibold"},h={class:"psc-pb-2 psc-pt-1"},M=e.defineComponent({__name:"RemindRecommendation",props:{testMore:null,branchLocationUrl:null,booking:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click:book"],setup(i,{emit:l}){const t=i,{t:s}=m.useI18n(),{getCountText:a}=g.useDayMonthCount(),c=e.computed(()=>{const o=a(t.testMore.when);return{[r.TestMoreType.Remind]:{messageTitle:s("psc.test_result_remind_message_title"),messageContent:s("psc.test_result_remind_message_content",{count:o}),listTitle:s("psc.test_result_recommended_tests")},[r.TestMoreType.Recommend]:{messageTitle:s("psc.test_result_recommend_message_title"),messageContent:s("psc.test_result_recommend_message_content"),listTitle:s("psc.test_result_additional_tests")}}[t.testMore.type]});return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[t.testMore.booking_code?(e.openBlock(),e.createBlock(y,{key:0,"test-more":t.testMore,branch:t.testMore.psc,"branch-location-url":t.branchLocationUrl,loading:t.loading},null,8,["test-more","branch","branch-location-url","loading"])):(e.openBlock(),e.createElementBlock("div",b,[t.loading?(e.openBlock(),e.createBlock(u,{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("h1",f,e.toDisplayString(o.$t("psc.test_result_hi"))+" "+e.toDisplayString(t.testMore.first_name),1),e.createVNode(e.unref(_),{type:"warning",title:e.unref(c).messageTitle,icon:"dgic-triangle-exclamation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).messageContent),1)]),_:1},8,["title"]),e.createVNode(p,{class:"psc-mt-4 psc-p-3"},{default:e.withCtx(()=>[e.createVNode(k,{"test-more-services":t.testMore.services,total:t.testMore.total,"test-more-type":t.testMore.type,"total-discount":t.testMore.total_discount,discount:t.testMore.discount},null,8,["test-more-services","total","test-more-type","total-discount","discount"]),e.createElementVNode("div",h,[e.createVNode(e.unref(d),{type:"primary",class:"psc-w-full",disabled:t.booking,"prepend-icon":t.booking?"dgic-spinner-8":"","prepend-icon-css-class":t.booking?"psc-animate-spin":"",onClick:n[0]||(n[0]=v=>l("click:book"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("psc.test_result_book_now")),1)]),_:1},8,["disabled","prepend-icon","prepend-icon-css-class"])])]),_:1})],64))]))]))}});module.exports=M;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components28.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components28.js","sources":["../src/components/RemindRecommendation/RemindRecommendation.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, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 1,\n class: \"psc-px-4 psc-pb-4\"\n}\nconst _hoisted_2 = { class: \"psc-mb-6 psc-text-xl psc-font-semibold\" }\nconst _hoisted_3 = { class: \"psc-pb-2 psc-pt-1\" }\n\nimport type { TestMore } from '@/types';\nimport PatCard from '../Shared/PatCard.vue';\nimport RemindRecommendationSkeleton from './RemindRecommendationSkeleton.vue';\nimport { BMessage } from 'pat-design-system';\nimport { useI18n } from 'vue-i18n';\nimport { TestMoreType } from '@/constants/Enums';\nimport { computed } from 'vue';\nimport { useDayMonthCount } from '@/composables/DayMonthCount';\nimport { BButton } from 'pat-design-system';\nimport BookingContent from '@/components/Shared/BookingContent.vue';\nimport RemindRecommendationBooking from '@/components/RemindRecommendation/RemindRecommendationBooking.vue';\n\n/**\n * Props\n */\nexport interface RemindRecommendationProps {\n testMore: TestMore;\n branchLocationUrl: string;\n booking?: boolean;\n loading?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RemindRecommendation',\n props: {\n testMore: null,\n branchLocationUrl: null,\n booking: { type: Boolean, default: false },\n loading: { type: Boolean, default: false }\n },\n emits: ['click:book'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testMore: TestMore, branchLocationUrl: string, booking: boolean, loading: boolean };\n\n\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { getCountText } = useDayMonthCount();\nconst texts = computed<{\n messageTitle: string;\n messageContent: string;\n listTitle: string;\n}>(() => {\n const countText = getCountText(props.testMore.when);\n const result = {\n [TestMoreType.Remind]: {\n messageTitle: t('psc.test_result_remind_message_title'),\n messageContent: t('psc.test_result_remind_message_content', {\n count: countText,\n }),\n listTitle: t('psc.test_result_recommended_tests'),\n },\n [TestMoreType.Recommend]: {\n messageTitle: t('psc.test_result_recommend_message_title'),\n messageContent: t('psc.test_result_recommend_message_content'),\n listTitle: t('psc.test_result_additional_tests'),\n },\n };\n return result[props.testMore.type];\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (props.testMore.booking_code)\n ? (_openBlock(), _createBlock(RemindRecommendationBooking, {\n key: 0,\n \"test-more\": props.testMore,\n branch: props.testMore.psc,\n \"branch-location-url\": props.branchLocationUrl,\n loading: props.loading\n }, null, 8, [\"test-more\", \"branch\", \"branch-location-url\", \"loading\"]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (props.loading)\n ? (_openBlock(), _createBlock(RemindRecommendationSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t('psc.test_result_hi')) + \" \" + _toDisplayString(props.testMore.first_name), 1),\n _createVNode(_unref(BMessage), {\n type: \"warning\",\n title: _unref(texts).messageTitle,\n icon: \"dgic-triangle-exclamation\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(texts).messageContent), 1)\n ]),\n _: 1\n }, 8, [\"title\"]),\n _createVNode(PatCard, { class: \"psc-mt-4 psc-p-3\" }, {\n default: _withCtx(() => [\n _createVNode(BookingContent, {\n \"test-more-services\": props.testMore.services,\n total: props.testMore.total,\n \"test-more-type\": props.testMore.type,\n \"total-discount\": props.testMore.total_discount,\n discount: props.testMore.discount\n }, null, 8, [\"test-more-services\", \"total\", \"test-more-type\", \"total-discount\", \"discount\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_unref(BButton), {\n type: \"primary\",\n class: \"psc-w-full\",\n disabled: props.booking,\n \"prepend-icon\": props.booking ? 'dgic-spinner-8' : '',\n \"prepend-icon-css-class\": props.booking ? 'psc-animate-spin' : '',\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('click:book')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_book_now')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"prepend-icon\", \"prepend-icon-css-class\"])\n ])\n ]),\n _: 1\n })\n ], 64))\n ]))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","emit","props","t","useI18n","getCountText","useDayMonthCount","texts","computed","countText","TestMoreType","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","RemindRecommendationBooking","RemindRecommendationSkeleton","_Fragment","_createElementVNode","_toDisplayString","_createVNode","_unref","BMessage","_withCtx","_createTextVNode","PatCard","BookingContent","BButton","$event"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pat-shared-components28.js","sources":["../src/components/RemindRecommendation/RemindRecommendation.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, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 1,\n class: \"psc-px-4 psc-pb-4\"\n}\nconst _hoisted_2 = { class: \"psc-mb-6 psc-text-xl psc-font-semibold\" }\nconst _hoisted_3 = { class: \"psc-pb-2 psc-pt-1\" }\n\nimport type { TestMore } from '@/types';\nimport PatCard from '../Shared/PatCard.vue';\nimport RemindRecommendationSkeleton from './RemindRecommendationSkeleton.vue';\nimport { BMessage } from 'pat-design-system';\nimport { useI18n } from 'vue-i18n';\nimport { TestMoreType } from '@/constants/Enums';\nimport { computed } from 'vue';\nimport { useDayMonthCount } from '@/composables/DayMonthCount';\nimport { BButton } from 'pat-design-system';\nimport BookingContent from '@/components/Shared/BookingContent.vue';\nimport RemindRecommendationBooking from '@/components/RemindRecommendation/RemindRecommendationBooking.vue';\n\n/**\n * Props\n */\nexport interface RemindRecommendationProps {\n testMore: TestMore;\n branchLocationUrl: string;\n booking?: boolean;\n loading?: boolean;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RemindRecommendation',\n props: {\n testMore: null,\n branchLocationUrl: null,\n booking: { type: Boolean, default: false },\n loading: { type: Boolean, default: false }\n },\n emits: ['click:book'],\n setup(__props: any, { emit }) {\n\nconst props = __props as { testMore: TestMore, branchLocationUrl: string, booking: boolean, loading: boolean };\n\n\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { t } = useI18n();\nconst { getCountText } = useDayMonthCount();\nconst texts = computed<{\n messageTitle: string;\n messageContent: string;\n listTitle: string;\n}>(() => {\n const countText = getCountText(props.testMore.when);\n const result = {\n [TestMoreType.Remind]: {\n messageTitle: t('psc.test_result_remind_message_title'),\n messageContent: t('psc.test_result_remind_message_content', {\n count: countText,\n }),\n listTitle: t('psc.test_result_recommended_tests'),\n },\n [TestMoreType.Recommend]: {\n messageTitle: t('psc.test_result_recommend_message_title'),\n messageContent: t('psc.test_result_recommend_message_content'),\n listTitle: t('psc.test_result_additional_tests'),\n },\n };\n return result[props.testMore.type];\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (props.testMore.booking_code)\n ? (_openBlock(), _createBlock(RemindRecommendationBooking, {\n key: 0,\n \"test-more\": props.testMore,\n branch: props.testMore.psc,\n \"branch-location-url\": props.branchLocationUrl,\n loading: props.loading\n }, null, 8, [\"test-more\", \"branch\", \"branch-location-url\", \"loading\"]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (props.loading)\n ? (_openBlock(), _createBlock(RemindRecommendationSkeleton, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t('psc.test_result_hi')) + \" \" + _toDisplayString(props.testMore.first_name), 1),\n _createVNode(_unref(BMessage), {\n type: \"warning\",\n title: _unref(texts).messageTitle,\n icon: \"dgic-triangle-exclamation\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(texts).messageContent), 1)\n ]),\n _: 1\n }, 8, [\"title\"]),\n _createVNode(PatCard, { class: \"psc-mt-4 psc-p-3\" }, {\n default: _withCtx(() => [\n _createVNode(BookingContent, {\n \"test-more-services\": props.testMore.services,\n total: props.testMore.total,\n \"test-more-type\": props.testMore.type,\n \"total-discount\": props.testMore.total_discount,\n discount: props.testMore.discount\n }, null, 8, [\"test-more-services\", \"total\", \"test-more-type\", \"total-discount\", \"discount\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_unref(BButton), {\n type: \"primary\",\n class: \"psc-w-full\",\n disabled: props.booking,\n \"prepend-icon\": props.booking ? 'dgic-spinner-8' : '',\n \"prepend-icon-css-class\": props.booking ? 'psc-animate-spin' : '',\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('click:book')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('psc.test_result_book_now')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"prepend-icon\", \"prepend-icon-css-class\"])\n ])\n ]),\n _: 1\n })\n ], 64))\n ]))\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","emit","props","t","useI18n","getCountText","useDayMonthCount","texts","computed","countText","TestMoreType","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","RemindRecommendationBooking","RemindRecommendationSkeleton","_Fragment","_createElementVNode","_toDisplayString","_createVNode","_unref","BMessage","_withCtx","_createTextVNode","PatCard","BookingContent","BButton","$event"],"mappings":"maAGMA,EAAa,CACjB,IAAK,EACL,MAAO,mBACT,EACMC,EAAa,CAAE,MAAO,0CACtBC,EAAa,CAAE,MAAO,qBAwBAC,EAAiBC,kBAAA,CAC3C,OAAQ,uBACR,MAAO,CACL,SAAU,KACV,kBAAmB,KACnB,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EACzC,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,CAC3C,EACA,MAAO,CAAC,YAAY,EACpB,MAAMC,EAAc,CAAE,KAAAC,GAAQ,CAEhC,MAAMC,EAAQF,EAYR,CAAE,EAAAG,GAAMC,EAAAA,UACR,CAAE,aAAAC,GAAiBC,EAAAA,mBACnBC,EAAQC,EAAAA,SAIX,IAAM,CACP,MAAMC,EAAYJ,E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EAAG,CAAA,EACF,EAAG,CAAC,OAAO,CAAC,EACfc,EAAAA,YAAaK,EAAS,CAAE,MAAO,oBAAsB,CACnD,QAASF,UAAS,IAAM,CACtBH,EAAAA,YAAaM,EAAgB,CAC3B,qBAAsBzB,EAAM,SAAS,SACrC,MAAOA,EAAM,SAAS,MACtB,iBAAkBA,EAAM,SAAS,KACjC,iBAAkBA,EAAM,SAAS,eACjC,SAAUA,EAAM,SAAS,QAAA,EACxB,KAAM,EAAG,CAAC,qBAAsB,QAAS,iBAAkB,iBAAkB,UAAU,CAAC,EAC3FiB,EAAA,mBAAoB,MAAOtB,EAAY,CACrCwB,cAAaC,EAAAA,MAAOM,CAAO,EAAG,CAC5B,KAAM,UACN,MAAO,aACP,SAAU1B,EAAM,QAChB,eAAgBA,EAAM,QAAU,iBAAmB,GACnD,yBAA0BA,EAAM,QAAU,mBAAqB,GAC/D,QAASU,EAAO,CAAC,IAAMA,EAAO,CAAC,EAAKiB,GAAiB5B,EAAK,YAAY,EAAA,EACrE,CACD,QAASuB,UAAS,IAAM,CACtBC,kBAAiBL,EAAiB,gBAAAT,EAAK,GAAG,0BAA0B,CAAC,EAAG,CAAC,CAAA,CAC1E,EACD,EAAG,GACF,EAAG,CAAC,WAAY,eAAgB,wBAAwB,CAAC,CAAA,CAC7D,CAAA,CACF,EACD,EAAG,CAAA,CACJ,GACA,EAAE,EAAA,CACV,EAAA,CACN,EAEH,CAEA,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as k, computed as y, openBlock as s, createElementBlock as l, createBlock as p, Fragment as M, createElementVNode as d, toDisplayString as n, createVNode as r, unref as c, withCtx as a, createTextVNode as _ } from "vue";
|
|
2
|
-
import h from "./pat-shared-
|
|
3
|
-
import T from "./pat-shared-
|
|
4
|
-
import x from "./pat-shared-
|
|
5
|
-
import C from "./pat-shared-
|
|
6
|
-
import { useI18n as v } from "./pat-shared-
|
|
2
|
+
import h from "./pat-shared-components101.mjs";
|
|
3
|
+
import T from "./pat-shared-components102.mjs";
|
|
4
|
+
import x from "./pat-shared-components103.mjs";
|
|
5
|
+
import C from "./pat-shared-components97.mjs";
|
|
6
|
+
import { useI18n as v } from "./pat-shared-components91.mjs";
|
|
7
7
|
import { TestMoreType as u } from "./pat-shared-components4.mjs";
|
|
8
|
-
import { useDayMonthCount as $ } from "./pat-shared-
|
|
9
|
-
import w from "./pat-shared-
|
|
10
|
-
import B from "./pat-shared-
|
|
8
|
+
import { useDayMonthCount as $ } from "./pat-shared-components104.mjs";
|
|
9
|
+
import w from "./pat-shared-components105.mjs";
|
|
10
|
+
import B from "./pat-shared-components106.mjs";
|
|
11
11
|
const R = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "psc-px-4 psc-pb-4"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components45.js");require("./pat-shared-components46.js");const t=require("./pat-shared-components39.js"),o=t(e,[["__scopeId","data-v-2249c216"]]);module.exports=o;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components33.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import o from "./pat-shared-
|
|
2
|
-
import "./pat-shared-
|
|
1
|
+
import o from "./pat-shared-components45.mjs";
|
|
2
|
+
import "./pat-shared-components46.mjs";
|
|
3
3
|
import t from "./pat-shared-components39.mjs";
|
|
4
4
|
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2249c216"]]);
|
|
5
5
|
export {
|
|
@@ -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-components95.js"),n=require("./pat-shared-components93.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-components34.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import { useDate as d } from "./pat-shared-
|
|
2
|
+
import r from "./pat-shared-components95.mjs";
|
|
3
|
+
import { useDate as d } from "./pat-shared-components93.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" })
|
|
6
6
|
], -1), g = { class: "psc-flex psc-space-x-2" }, B = /* @__PURE__ */ n({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),o=require("./pat-shared-
|
|
1
|
+
"use strict";const t=require("vue"),o=require("./pat-shared-components93.js"),i=require("./pat-shared-components94.js"),d=require("./pat-shared-components91.js"),s=require("./pat-shared-components4.js"),u={class:"psc-cursor-pointer psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100"},p={class:"psc-flex psc-items-center"},_={class:"psc-flex-initial psc-font-semibold psc-text-blue-darken-1"},m={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6]"},x=t.createElementVNode("div",{class:"psc-flex-initial"},[t.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-2xl psc-text-blue-darken-1"})],-1),g={class:"psc-flex"},f={class:"psc-text-sm"},h=t.defineComponent({__name:"TestResultListItem",props:{item:null},setup(a){const c=a,{t:e}=d.useI18n(),{formatDate:r}=o.useDate(),l=t.computed(()=>({[s.TestResultStatus.Ordered]:{text:e("psc.test_result_status_not_ready"),cssClass:"psc-text-black/60",icon:"dgic-time-dotted"},[s.TestResultStatus.InProgress]:{text:e("psc.test_result_status_not_ready"),cssClass:"psc-text-black/60",icon:"dgic-time-dotted"},[s.TestResultStatus.PartiallyComplete]:{text:e("psc.test_result_status_partially_ready"),cssClass:"psc-text-black/60",icon:"dgic-partial-thin-2"},[s.TestResultStatus.Ready]:{text:e("psc.test_result_status_ready"),cssClass:"psc-text-green-darken-1",icon:"dgic-check-mark-thin"},[s.TestResultStatus.Canceled]:{text:e("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"},[s.TestResultStatus.Rejected]:{text:e("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"}})[c.item.result_status]||{text:"",cssClass:"",icon:""});return(n,k)=>(t.openBlock(),t.createElementBlock("div",u,[t.createElementVNode("div",p,[t.createElementVNode("div",_,[t.createElementVNode("span",null,t.toDisplayString(`${n.$t("psc.test_result_order")} ${c.item.order_id}`),1)]),t.createElementVNode("div",m,t.toDisplayString(t.unref(r)(new Date(c.item.visit_date))),1),x]),t.createElementVNode("div",g,[t.createElementVNode("div",{class:t.normalizeClass(["psc-flex psc-items-center psc-font-semibold",t.unref(l).cssClass])},[t.createElementVNode("span",f,t.toDisplayString(t.unref(l).text),1),t.createVNode(t.unref(i),{icon:t.unref(l).icon,class:"psc-ml-1 psc-text-2xl"},null,8,["icon"])],2)])]))}});module.exports=h;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components35.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, computed as d, openBlock as _, createElementBlock as u, createElementVNode as s, toDisplayString as a, unref as c, normalizeClass as m, createVNode as x } from "vue";
|
|
2
|
-
import { useDate as f } from "./pat-shared-
|
|
3
|
-
import h from "./pat-shared-
|
|
4
|
-
import { useI18n as g } from "./pat-shared-
|
|
2
|
+
import { useDate as f } from "./pat-shared-components93.mjs";
|
|
3
|
+
import h from "./pat-shared-components94.mjs";
|
|
4
|
+
import { useI18n as g } from "./pat-shared-components91.mjs";
|
|
5
5
|
import { TestResultStatus as e } from "./pat-shared-components4.mjs";
|
|
6
6
|
const k = { class: "psc-cursor-pointer psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100" }, C = { class: "psc-flex psc-items-center" }, v = { class: "psc-flex-initial psc-font-semibold psc-text-blue-darken-1" }, b = { class: "psc-flex-auto psc-pl-2 psc-text-black/[0.6]" }, y = /* @__PURE__ */ s("div", { class: "psc-flex-initial" }, [
|
|
7
7
|
/* @__PURE__ */ s("i", { class: "dgic-chevron-right-thin psc-text-2xl psc-text-blue-darken-1" })
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components11.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components43.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("./pat-shared-components12.js");require("./pat-shared-components13.js");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components44.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components44.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pat-shared-components44.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./pat-shared-
|
|
1
|
+
"use strict";const e=require("vue"),N=require("./pat-shared-components93.js"),q=require("./pat-shared-components97.js"),C=require("./pat-shared-components94.js"),w=require("./pat-shared-components98.js"),M=require("./pat-shared-components99.js"),a=require("./pat-shared-components4.js"),s=require("./pat-shared-components3.js"),$=require("./pat-shared-components100.js"),L={key:0,class:"modal-body__content psc-flex psc-items-center psc-justify-center psc-pb-[53px]"},I={class:"psc-animate-spin"},O={key:1,class:"book-appointment psc-space-y-8"},F={class:"psc-flex"},j={key:0},H={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},z={class:"-psc-mx-2 psc-flex"},G=e.defineComponent({__name:"BookAppointment",props:{timeSlots:null,disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},buttonLabel:{default:""}},emits:["book"],setup(_,{expose:g,emit:P}){const o=_,{formatDateHuge:k}=N.useDate(),{getDateStartEnd:S,dayPartTexts:v}=$.useAppointment(),T=e.computed(()=>o.timeSlots.map(t=>new Date(t))),y=e.computed(()=>{const t=[];for(let l=0;l<7;l++){const n=new Date,r=new Date(n.setDate(n.getDate()+l)),i=D(s.DayPartDuration[a.DayPartType.Morning].Start,s.DayPartDuration[a.DayPartType.Morning].End,r),d=D(s.DayPartDuration[a.DayPartType.Afternoon].Start,s.DayPartDuration[a.DayPartType.Afternoon].End,r),f=D(s.DayPartDuration[a.DayPartType.Evening].Start,s.DayPartDuration[a.DayPartType.Evening].End,r),b=[{text:v.value[a.DayPartType.Morning],value:a.DayPartType.Morning,start:s.DayPartDuration[a.DayPartType.Morning].Start,end:s.DayPartDuration[a.DayPartType.Morning].End,timeSlots:i,disabled:i.length===0},{text:v.value[a.DayPartType.Afternoon],value:a.DayPartType.Afternoon,start:s.DayPartDuration[a.DayPartType.Afternoon].Start,end:s.DayPartDuration[a.DayPartType.Afternoon].End,timeSlots:d,disabled:d.length===0},{text:v.value[a.DayPartType.Evening],value:a.DayPartType.Evening,start:s.DayPartDuration[a.DayPartType.Evening].Start,end:s.DayPartDuration[a.DayPartType.Evening].End,timeSlots:f,disabled:f.length===0}];t.push({value:r,disabled:b.every(A=>A.disabled),dayParts:b})}return t}),c=e.ref(),u=e.ref(),p=e.ref(),E=()=>{var t;P("book",(t=p.value)==null?void 0:t.toISOString())},x=()=>{m(),u.value=void 0,p.value=void 0},B=t=>{t.disabled||o.disabled||(c.value=t,u.value=void 0,p.value=void 0)},h=t=>{t.disabled||o.disabled||(u.value=t,p.value=void 0,u.value.timeSlots.length>0&&V(u.value.timeSlots[0]))},V=t=>{o.disabled||(p.value=t)},D=(t,l,n)=>{const{start:r,end:i}=S(t,l,n);return T.value.filter(d=>r<=d&&d<=i)},m=()=>{const t=y.value.find(l=>!l.disabled);t&&(c.value=t)};return e.watch(y,()=>{const t=y.value.find(l=>!l.disabled);t&&(c.value=t)}),m(),g({resetAll:x}),(t,l)=>o.loading?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",I,[e.createVNode(e.unref(C),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(n,r)=>{var i;return e.openBlock(),e.createElementBlock("div",{key:`date${r}`,class:"book-appointment__date"},[e.createVNode(w,{value:n.value,disabled:n.disabled,selected:((i=c.value)==null?void 0:i.value)===n.value,onClick:d=>B(n)},null,8,["value","disabled","selected","onClick"])])}),128))]),c.value?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",H,e.toDisplayString(e.unref(k)(c.value.value)),1),e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.dayParts,(n,r)=>{var i;return e.openBlock(),e.createElementBlock("div",{key:`dayPart${r}`,class:"psc-w-1/3 psc-px-2"},[e.createVNode(M,{text:n.text,disabled:n.disabled,selected:((i=u.value)==null?void 0:i.value)===n.value,onClick:d=>h(n)},null,8,["text","disabled","selected","onClick"])])}),128))])])):e.createCommentVNode("",!0),e.createVNode(e.unref(q),{type:"primary",class:"psc-w-full",disabled:!p.value||o.disabled,"prepend-icon":o.disabled?"dgic-spinner-8":"","prepend-icon-css-class":o.disabled?"psc-animate-spin":"",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.disabled?t.$t("psc.test_result_processing"):o.buttonLabel||t.$t("psc.confirm")),1)]),_:1},8,["disabled","prepend-icon","prepend-icon-css-class"])]))}});module.exports=G;
|
|
2
2
|
//# sourceMappingURL=pat-shared-components45.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components45.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"pat-shared-components45.js","sources":["../src/components/TestResult/BookAppointmentModal/BookAppointment/BookAppointment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2249c216\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"modal-body__content psc-flex psc-items-center psc-justify-center psc-pb-[53px]\"\n}\nconst _hoisted_2 = { class: \"psc-animate-spin\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"book-appointment psc-space-y-8\"\n}\nconst _hoisted_4 = { class: \"psc-flex\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = { class: \"psc-pb-6 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_7 = { class: \"-psc-mx-2 psc-flex\" }\n\nimport { computed, ref, watch } from 'vue';\nimport { BButton, useDate, BIcon } from 'pat-design-system';\nimport DateItem from './DateItem.vue';\nimport DayPartItem from './DayPartItem.vue';\nimport { DayPartType } from '@/constants/Enums';\nimport type { ApptDateOption, ApptDayPart } from '@/types';\nimport { DayPartDuration } from '@/constants/Common';\nimport { useAppointment } from '@/composables/Appointment';\n\n/**\n * Props\n */\nexport interface Props {\n timeSlots: string[];\n disabled?: boolean;\n loading?: boolean;\n buttonLabel?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookAppointment',\n props: {\n timeSlots: null,\n disabled: { type: Boolean, default: false },\n loading: { type: Boolean, default: false },\n buttonLabel: { default: '' }\n },\n emits: ['book'],\n setup(__props: any, { expose, emit }) {\n\nconst props = __props as { timeSlots: string[], disabled: boolean, loading: boolean, buttonLabel: string };\n\n\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { formatDateHuge } = useDate();\n\nconst { getDateStartEnd, dayPartTexts } = useAppointment();\n\nconst timeSlots = computed(() => props.timeSlots.map((t) => new Date(t)));\n\nconst dateOptions = computed<ApptDateOption[]>(() => {\n const result: ApptDateOption[] = [];\n // Within 7 days to the future\n for (let i = 0; i < 7; i++) {\n const currentDate = new Date();\n const date = new Date(currentDate.setDate(currentDate.getDate() + i));\n const morningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Morning].Start,\n DayPartDuration[DayPartType.Morning].End,\n date\n );\n const afternoonTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Afternoon].Start,\n DayPartDuration[DayPartType.Afternoon].End,\n date\n );\n const eveningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Evening].Start,\n DayPartDuration[DayPartType.Evening].End,\n date\n );\n const dayParts = [\n {\n text: dayPartTexts.value[DayPartType.Morning],\n value: DayPartType.Morning,\n start: DayPartDuration[DayPartType.Morning].Start,\n end: DayPartDuration[DayPartType.Morning].End,\n timeSlots: morningTimeSlots,\n disabled: morningTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Afternoon],\n value: DayPartType.Afternoon,\n start: DayPartDuration[DayPartType.Afternoon].Start,\n end: DayPartDuration[DayPartType.Afternoon].End,\n timeSlots: afternoonTimeSlots,\n disabled: afternoonTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Evening],\n value: DayPartType.Evening,\n start: DayPartDuration[DayPartType.Evening].Start,\n end: DayPartDuration[DayPartType.Evening].End,\n timeSlots: eveningTimeSlots,\n disabled: eveningTimeSlots.length === 0,\n },\n ];\n result.push({\n value: date,\n disabled: dayParts.every((dayPart) => dayPart.disabled),\n dayParts,\n });\n }\n return result;\n});\nconst selectedDateOption = ref<ApptDateOption>();\nconst selectedDayPart = ref<ApptDayPart>();\nconst selectedTimeSlot = ref<Date>();\n\n/**\n * Methods\n */\nconst book = () => {\n emit('book', selectedTimeSlot.value?.toISOString());\n};\nconst resetAll = () => {\n initSelectedDateValue();\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDate = (d: ApptDateOption) => {\n if (d.disabled || props.disabled) {\n return;\n }\n selectedDateOption.value = d;\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDayPart = (dayPart: ApptDayPart) => {\n if (dayPart.disabled || props.disabled) {\n return;\n }\n selectedDayPart.value = dayPart;\n selectedTimeSlot.value = undefined;\n\n // Select the first available time slot\n if (selectedDayPart.value.timeSlots.length > 0) {\n selectTimeSlot(selectedDayPart.value.timeSlots[0]);\n }\n};\nconst selectTimeSlot = (d: Date) => {\n if (props.disabled) {\n return;\n }\n selectedTimeSlot.value = d;\n};\n\nconst getTimeSlots = (dayPartStart: string, dayPartEnd: string, date: Date) => {\n const { start, end } = getDateStartEnd(dayPartStart, dayPartEnd, date);\n return timeSlots.value.filter((t) => start <= t && t <= end);\n};\n\nconst initSelectedDateValue = () => {\n // Select the nearest avaliable date\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n};\n\nwatch(dateOptions, () => {\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n});\n\ninitSelectedDateValue();\n\nexpose({ resetAll });\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(dateOptions), (date, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `date${index}`,\n class: \"book-appointment__date\"\n }, [\n _createVNode(DateItem, {\n value: date.value,\n disabled: date.disabled,\n selected: selectedDateOption.value?.value === date.value,\n onClick: ($event: any) => (selectDate(date))\n }, null, 8, [\"value\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ]),\n (selectedDateOption.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_unref(formatDateHuge)(selectedDateOption.value.value)), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedDateOption.value.dayParts, (dayPart, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `dayPart${i}`,\n class: \"psc-w-1/3 psc-px-2\"\n }, [\n _createVNode(DayPartItem, {\n text: dayPart.text,\n disabled: dayPart.disabled,\n selected: selectedDayPart.value?.value === dayPart.value,\n onClick: ($event: any) => (selectDayPart(dayPart))\n }, null, 8, [\"text\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(BButton), {\n type: \"primary\",\n class: \"psc-w-full\",\n disabled: !selectedTimeSlot.value || props.disabled,\n \"prepend-icon\": props.disabled ? 'dgic-spinner-8' : '',\n \"prepend-icon-css-class\": props.disabled ? 'psc-animate-spin' : '',\n onClick: book\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(props.disabled\n ? _ctx.$t('psc.test_result_processing')\n : props.buttonLabel || _ctx.$t('psc.confirm')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"prepend-icon\", \"prepend-icon-css-class\"])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_sfc_main","_defineComponent","__props","expose","emit","props","formatDateHuge","useDate","getDateStartEnd","dayPartTexts","useAppointment","timeSlots","computed","dateOptions","result","i","currentDate","date","morningTimeSlots","getTimeSlots","DayPartDuration","DayPartType","afternoonTimeSlots","eveningTimeSlots","dayParts","dayPart","selectedDateOption","ref","selectedDayPart","selectedTimeSlot","book","_a","resetAll","initSelectedDateValue","selectDate","d","selectDayPart","selectTimeSlot","dayPartStart","dayPartEnd","start","end","t","watch","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","BIcon","_Fragment","_renderList","index","DateItem","$event","_toDisplayString","DayPartItem","_createCommentVNode","BButton","_withCtx","_createTextVNode"],"mappings":"mXAIMA,EAAa,CACjB,IAAK,EACL,MAAO,gFACT,EACMC,EAAa,CAAE,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gBAAiBpD,EAAM,SACxCuC,EAAK,GAAG,4BAA4B,EACpCvC,EAAM,aAAeuC,EAAK,GAAG,aAAa,CAAC,EAAG,CAAC,CAAA,CAChD,EACD,EAAG,GACF,EAAG,CAAC,WAAY,eAAgB,wBAAwB,CAAC,CAC7D,CAAA,EAEP,CAEA,CAAC"}
|
|
@@ -1,6 +1,157 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./pat-shared-
|
|
1
|
+
import { defineComponent as H, computed as h, ref as k, watch as I, openBlock as r, createElementBlock as u, createElementVNode as f, createVNode as b, unref as g, Fragment as E, renderList as A, toDisplayString as T, createCommentVNode as q, withCtx as z, createTextVNode as G } from "vue";
|
|
2
|
+
import { useDate as J } from "./pat-shared-components93.mjs";
|
|
3
|
+
import K from "./pat-shared-components97.mjs";
|
|
4
|
+
import Q from "./pat-shared-components94.mjs";
|
|
5
|
+
import R from "./pat-shared-components98.mjs";
|
|
6
|
+
import U from "./pat-shared-components99.mjs";
|
|
7
|
+
import { DayPartType as t } from "./pat-shared-components4.mjs";
|
|
8
|
+
import { DayPartDuration as s } from "./pat-shared-components3.mjs";
|
|
9
|
+
import { useAppointment as W } from "./pat-shared-components100.mjs";
|
|
10
|
+
const X = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "modal-body__content psc-flex psc-items-center psc-justify-center psc-pb-[53px]"
|
|
13
|
+
}, Y = { class: "psc-animate-spin" }, Z = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "book-appointment psc-space-y-8"
|
|
16
|
+
}, ee = { class: "psc-flex" }, te = { key: 0 }, ne = { class: "psc-pb-6 psc-font-semibold psc-text-black/[0.85]" }, se = { class: "-psc-mx-2 psc-flex" }, ve = /* @__PURE__ */ H({
|
|
17
|
+
__name: "BookAppointment",
|
|
18
|
+
props: {
|
|
19
|
+
timeSlots: null,
|
|
20
|
+
disabled: { type: Boolean, default: !1 },
|
|
21
|
+
loading: { type: Boolean, default: !1 },
|
|
22
|
+
buttonLabel: { default: "" }
|
|
23
|
+
},
|
|
24
|
+
emits: ["book"],
|
|
25
|
+
setup(C, { expose: $, emit: w }) {
|
|
26
|
+
const o = C, { formatDateHuge: M } = J(), { getDateStartEnd: B, dayPartTexts: _ } = W(), V = h(() => o.timeSlots.map((e) => new Date(e))), m = h(() => {
|
|
27
|
+
const e = [];
|
|
28
|
+
for (let l = 0; l < 7; l++) {
|
|
29
|
+
const n = /* @__PURE__ */ new Date(), a = new Date(n.setDate(n.getDate() + l)), i = S(
|
|
30
|
+
s[t.Morning].Start,
|
|
31
|
+
s[t.Morning].End,
|
|
32
|
+
a
|
|
33
|
+
), c = S(
|
|
34
|
+
s[t.Afternoon].Start,
|
|
35
|
+
s[t.Afternoon].End,
|
|
36
|
+
a
|
|
37
|
+
), D = S(
|
|
38
|
+
s[t.Evening].Start,
|
|
39
|
+
s[t.Evening].End,
|
|
40
|
+
a
|
|
41
|
+
), x = [
|
|
42
|
+
{
|
|
43
|
+
text: _.value[t.Morning],
|
|
44
|
+
value: t.Morning,
|
|
45
|
+
start: s[t.Morning].Start,
|
|
46
|
+
end: s[t.Morning].End,
|
|
47
|
+
timeSlots: i,
|
|
48
|
+
disabled: i.length === 0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
text: _.value[t.Afternoon],
|
|
52
|
+
value: t.Afternoon,
|
|
53
|
+
start: s[t.Afternoon].Start,
|
|
54
|
+
end: s[t.Afternoon].End,
|
|
55
|
+
timeSlots: c,
|
|
56
|
+
disabled: c.length === 0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
text: _.value[t.Evening],
|
|
60
|
+
value: t.Evening,
|
|
61
|
+
start: s[t.Evening].Start,
|
|
62
|
+
end: s[t.Evening].End,
|
|
63
|
+
timeSlots: D,
|
|
64
|
+
disabled: D.length === 0
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
e.push({
|
|
68
|
+
value: a,
|
|
69
|
+
disabled: x.every((F) => F.disabled),
|
|
70
|
+
dayParts: x
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return e;
|
|
74
|
+
}), d = k(), p = k(), v = k(), N = () => {
|
|
75
|
+
var e;
|
|
76
|
+
w("book", (e = v.value) == null ? void 0 : e.toISOString());
|
|
77
|
+
}, P = () => {
|
|
78
|
+
y(), p.value = void 0, v.value = void 0;
|
|
79
|
+
}, L = (e) => {
|
|
80
|
+
e.disabled || o.disabled || (d.value = e, p.value = void 0, v.value = void 0);
|
|
81
|
+
}, O = (e) => {
|
|
82
|
+
e.disabled || o.disabled || (p.value = e, v.value = void 0, p.value.timeSlots.length > 0 && j(p.value.timeSlots[0]));
|
|
83
|
+
}, j = (e) => {
|
|
84
|
+
o.disabled || (v.value = e);
|
|
85
|
+
}, S = (e, l, n) => {
|
|
86
|
+
const { start: a, end: i } = B(e, l, n);
|
|
87
|
+
return V.value.filter((c) => a <= c && c <= i);
|
|
88
|
+
}, y = () => {
|
|
89
|
+
const e = m.value.find((l) => !l.disabled);
|
|
90
|
+
e && (d.value = e);
|
|
91
|
+
};
|
|
92
|
+
return I(m, () => {
|
|
93
|
+
const e = m.value.find((l) => !l.disabled);
|
|
94
|
+
e && (d.value = e);
|
|
95
|
+
}), y(), $({ resetAll: P }), (e, l) => o.loading ? (r(), u("div", X, [
|
|
96
|
+
f("div", Y, [
|
|
97
|
+
b(g(Q), {
|
|
98
|
+
icon: "dgic-spinner-8",
|
|
99
|
+
class: "psc-text-4xl"
|
|
100
|
+
})
|
|
101
|
+
])
|
|
102
|
+
])) : (r(), u("div", Z, [
|
|
103
|
+
f("div", ee, [
|
|
104
|
+
(r(!0), u(E, null, A(g(m), (n, a) => {
|
|
105
|
+
var i;
|
|
106
|
+
return r(), u("div", {
|
|
107
|
+
key: `date${a}`,
|
|
108
|
+
class: "book-appointment__date"
|
|
109
|
+
}, [
|
|
110
|
+
b(R, {
|
|
111
|
+
value: n.value,
|
|
112
|
+
disabled: n.disabled,
|
|
113
|
+
selected: ((i = d.value) == null ? void 0 : i.value) === n.value,
|
|
114
|
+
onClick: (c) => L(n)
|
|
115
|
+
}, null, 8, ["value", "disabled", "selected", "onClick"])
|
|
116
|
+
]);
|
|
117
|
+
}), 128))
|
|
118
|
+
]),
|
|
119
|
+
d.value ? (r(), u("div", te, [
|
|
120
|
+
f("div", ne, T(g(M)(d.value.value)), 1),
|
|
121
|
+
f("div", se, [
|
|
122
|
+
(r(!0), u(E, null, A(d.value.dayParts, (n, a) => {
|
|
123
|
+
var i;
|
|
124
|
+
return r(), u("div", {
|
|
125
|
+
key: `dayPart${a}`,
|
|
126
|
+
class: "psc-w-1/3 psc-px-2"
|
|
127
|
+
}, [
|
|
128
|
+
b(U, {
|
|
129
|
+
text: n.text,
|
|
130
|
+
disabled: n.disabled,
|
|
131
|
+
selected: ((i = p.value) == null ? void 0 : i.value) === n.value,
|
|
132
|
+
onClick: (c) => O(n)
|
|
133
|
+
}, null, 8, ["text", "disabled", "selected", "onClick"])
|
|
134
|
+
]);
|
|
135
|
+
}), 128))
|
|
136
|
+
])
|
|
137
|
+
])) : q("", !0),
|
|
138
|
+
b(g(K), {
|
|
139
|
+
type: "primary",
|
|
140
|
+
class: "psc-w-full",
|
|
141
|
+
disabled: !v.value || o.disabled,
|
|
142
|
+
"prepend-icon": o.disabled ? "dgic-spinner-8" : "",
|
|
143
|
+
"prepend-icon-css-class": o.disabled ? "psc-animate-spin" : "",
|
|
144
|
+
onClick: N
|
|
145
|
+
}, {
|
|
146
|
+
default: z(() => [
|
|
147
|
+
G(T(o.disabled ? e.$t("psc.test_result_processing") : o.buttonLabel || e.$t("psc.confirm")), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["disabled", "prepend-icon", "prepend-icon-css-class"])
|
|
151
|
+
]));
|
|
152
|
+
}
|
|
153
|
+
});
|
|
3
154
|
export {
|
|
4
|
-
|
|
155
|
+
ve as default
|
|
5
156
|
};
|
|
6
157
|
//# sourceMappingURL=pat-shared-components45.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components45.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
1
|
+
{"version":3,"file":"pat-shared-components45.mjs","sources":["../src/components/TestResult/BookAppointmentModal/BookAppointment/BookAppointment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2249c216\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"modal-body__content psc-flex psc-items-center psc-justify-center psc-pb-[53px]\"\n}\nconst _hoisted_2 = { class: \"psc-animate-spin\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"book-appointment psc-space-y-8\"\n}\nconst _hoisted_4 = { class: \"psc-flex\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = { class: \"psc-pb-6 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_7 = { class: \"-psc-mx-2 psc-flex\" }\n\nimport { computed, ref, watch } from 'vue';\nimport { BButton, useDate, BIcon } from 'pat-design-system';\nimport DateItem from './DateItem.vue';\nimport DayPartItem from './DayPartItem.vue';\nimport { DayPartType } from '@/constants/Enums';\nimport type { ApptDateOption, ApptDayPart } from '@/types';\nimport { DayPartDuration } from '@/constants/Common';\nimport { useAppointment } from '@/composables/Appointment';\n\n/**\n * Props\n */\nexport interface Props {\n timeSlots: string[];\n disabled?: boolean;\n loading?: boolean;\n buttonLabel?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookAppointment',\n props: {\n timeSlots: null,\n disabled: { type: Boolean, default: false },\n loading: { type: Boolean, default: false },\n buttonLabel: { default: '' }\n },\n emits: ['book'],\n setup(__props: any, { expose, emit }) {\n\nconst props = __props as { timeSlots: string[], disabled: boolean, loading: boolean, buttonLabel: string };\n\n\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { formatDateHuge } = useDate();\n\nconst { getDateStartEnd, dayPartTexts } = useAppointment();\n\nconst timeSlots = computed(() => props.timeSlots.map((t) => new Date(t)));\n\nconst dateOptions = computed<ApptDateOption[]>(() => {\n const result: ApptDateOption[] = [];\n // Within 7 days to the future\n for (let i = 0; i < 7; i++) {\n const currentDate = new Date();\n const date = new Date(currentDate.setDate(currentDate.getDate() + i));\n const morningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Morning].Start,\n DayPartDuration[DayPartType.Morning].End,\n date\n );\n const afternoonTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Afternoon].Start,\n DayPartDuration[DayPartType.Afternoon].End,\n date\n );\n const eveningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Evening].Start,\n DayPartDuration[DayPartType.Evening].End,\n date\n );\n const dayParts = [\n {\n text: dayPartTexts.value[DayPartType.Morning],\n value: DayPartType.Morning,\n start: DayPartDuration[DayPartType.Morning].Start,\n end: DayPartDuration[DayPartType.Morning].End,\n timeSlots: morningTimeSlots,\n disabled: morningTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Afternoon],\n value: DayPartType.Afternoon,\n start: DayPartDuration[DayPartType.Afternoon].Start,\n end: DayPartDuration[DayPartType.Afternoon].End,\n timeSlots: afternoonTimeSlots,\n disabled: afternoonTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Evening],\n value: DayPartType.Evening,\n start: DayPartDuration[DayPartType.Evening].Start,\n end: DayPartDuration[DayPartType.Evening].End,\n timeSlots: eveningTimeSlots,\n disabled: eveningTimeSlots.length === 0,\n },\n ];\n result.push({\n value: date,\n disabled: dayParts.every((dayPart) => dayPart.disabled),\n dayParts,\n });\n }\n return result;\n});\nconst selectedDateOption = ref<ApptDateOption>();\nconst selectedDayPart = ref<ApptDayPart>();\nconst selectedTimeSlot = ref<Date>();\n\n/**\n * Methods\n */\nconst book = () => {\n emit('book', selectedTimeSlot.value?.toISOString());\n};\nconst resetAll = () => {\n initSelectedDateValue();\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDate = (d: ApptDateOption) => {\n if (d.disabled || props.disabled) {\n return;\n }\n selectedDateOption.value = d;\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDayPart = (dayPart: ApptDayPart) => {\n if (dayPart.disabled || props.disabled) {\n return;\n }\n selectedDayPart.value = dayPart;\n selectedTimeSlot.value = undefined;\n\n // Select the first available time slot\n if (selectedDayPart.value.timeSlots.length > 0) {\n selectTimeSlot(selectedDayPart.value.timeSlots[0]);\n }\n};\nconst selectTimeSlot = (d: Date) => {\n if (props.disabled) {\n return;\n }\n selectedTimeSlot.value = d;\n};\n\nconst getTimeSlots = (dayPartStart: string, dayPartEnd: string, date: Date) => {\n const { start, end } = getDateStartEnd(dayPartStart, dayPartEnd, date);\n return timeSlots.value.filter((t) => start <= t && t <= end);\n};\n\nconst initSelectedDateValue = () => {\n // Select the nearest avaliable date\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n};\n\nwatch(dateOptions, () => {\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n});\n\ninitSelectedDateValue();\n\nexpose({ resetAll });\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(dateOptions), (date, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `date${index}`,\n class: \"book-appointment__date\"\n }, [\n _createVNode(DateItem, {\n value: date.value,\n disabled: date.disabled,\n selected: selectedDateOption.value?.value === date.value,\n onClick: ($event: any) => (selectDate(date))\n }, null, 8, [\"value\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ]),\n (selectedDateOption.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_unref(formatDateHuge)(selectedDateOption.value.value)), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedDateOption.value.dayParts, (dayPart, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `dayPart${i}`,\n class: \"psc-w-1/3 psc-px-2\"\n }, [\n _createVNode(DayPartItem, {\n text: dayPart.text,\n disabled: dayPart.disabled,\n selected: selectedDayPart.value?.value === dayPart.value,\n onClick: ($event: any) => (selectDayPart(dayPart))\n }, null, 8, [\"text\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(BButton), {\n type: \"primary\",\n class: \"psc-w-full\",\n disabled: !selectedTimeSlot.value || props.disabled,\n \"prepend-icon\": props.disabled ? 'dgic-spinner-8' : '',\n \"prepend-icon-css-class\": props.disabled ? 'psc-animate-spin' : '',\n onClick: book\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(props.disabled\n ? _ctx.$t('psc.test_result_processing')\n : props.buttonLabel || _ctx.$t('psc.confirm')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"prepend-icon\", \"prepend-icon-css-class\"])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_sfc_main","_defineComponent","__props","expose","emit","props","formatDateHuge","useDate","getDateStartEnd","dayPartTexts","useAppointment","timeSlots","computed","t","dateOptions","result","i","currentDate","date","morningTimeSlots","getTimeSlots","DayPartDuration","DayPartType","afternoonTimeSlots","eveningTimeSlots","dayParts","dayPart","selectedDateOption","ref","selectedDayPart","selectedTimeSlot","book","_a","resetAll","initSelectedDateValue","selectDate","d","selectDayPart","selectTimeSlot","dayPartStart","dayPartEnd","start","end","watch","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","BIcon","_Fragment","_renderList","index","DateItem","$event","_toDisplayString","DayPartItem","_createCommentVNode","BButton","_withCtx","_createTextVNode"],"mappings":";;;;;;;;;AAIA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,sBACtBC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,KAAa,EAAE,OAAO,cACtBC,KAAa,EAAE,KAAK,KACpBC,KAAa,EAAE,OAAO,sDACtBC,KAAa,EAAE,OAAO,wBAqBAC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW;AAAA,IACX,UAAU,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IAC1C,SAAS,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IACzC,aAAa,EAAE,SAAS,GAAG;AAAA,EAC7B;AAAA,EACA,OAAO,CAAC,MAAM;AAAA,EACd,MAAMC,GAAc,EAAE,QAAAC,GAAQ,MAAAC,KAAQ;AAExC,UAAMC,IAAQH,GAYR,EAAE,gBAAAI,MAAmBC,KAErB,EAAE,iBAAAC,GAAiB,cAAAC,EAAa,IAAIC,EAAe,GAEnDC,IAAYC,EAAS,MAAMP,EAAM,UAAU,IAAI,CAACQ,MAAM,IAAI,KAAKA,CAAC,CAAC,CAAC,GAElEC,IAAcF,EAA2B,MAAM;AACnD,YAAMG,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
//# sourceMappingURL=pat-shared-components46.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat-shared-components46.js","sources":["../src/components/TestResult/BookAppointmentModal/BookAppointment/BookAppointment.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2249c216\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"modal-body__content psc-flex psc-items-center psc-justify-center psc-pb-[53px]\"\n}\nconst _hoisted_2 = { class: \"psc-animate-spin\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"book-appointment psc-space-y-8\"\n}\nconst _hoisted_4 = { class: \"psc-flex\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = { class: \"psc-pb-6 psc-font-semibold psc-text-black/[0.85]\" }\nconst _hoisted_7 = { class: \"-psc-mx-2 psc-flex\" }\n\nimport { computed, ref, watch } from 'vue';\nimport { BButton, useDate, BIcon } from 'pat-design-system';\nimport DateItem from './DateItem.vue';\nimport DayPartItem from './DayPartItem.vue';\nimport { DayPartType } from '@/constants/Enums';\nimport type { ApptDateOption, ApptDayPart } from '@/types';\nimport { DayPartDuration } from '@/constants/Common';\nimport { useAppointment } from '@/composables/Appointment';\n\n/**\n * Props\n */\nexport interface Props {\n timeSlots: string[];\n disabled?: boolean;\n loading?: boolean;\n buttonLabel?: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookAppointment',\n props: {\n timeSlots: null,\n disabled: { type: Boolean, default: false },\n loading: { type: Boolean, default: false },\n buttonLabel: { default: '' }\n },\n emits: ['book'],\n setup(__props: any, { expose, emit }) {\n\nconst props = __props as { timeSlots: string[], disabled: boolean, loading: boolean, buttonLabel: string };\n\n\n\n/**\n * Events\n */\n\n\n/**\n * Data\n */\nconst { formatDateHuge } = useDate();\n\nconst { getDateStartEnd, dayPartTexts } = useAppointment();\n\nconst timeSlots = computed(() => props.timeSlots.map((t) => new Date(t)));\n\nconst dateOptions = computed<ApptDateOption[]>(() => {\n const result: ApptDateOption[] = [];\n // Within 7 days to the future\n for (let i = 0; i < 7; i++) {\n const currentDate = new Date();\n const date = new Date(currentDate.setDate(currentDate.getDate() + i));\n const morningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Morning].Start,\n DayPartDuration[DayPartType.Morning].End,\n date\n );\n const afternoonTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Afternoon].Start,\n DayPartDuration[DayPartType.Afternoon].End,\n date\n );\n const eveningTimeSlots = getTimeSlots(\n DayPartDuration[DayPartType.Evening].Start,\n DayPartDuration[DayPartType.Evening].End,\n date\n );\n const dayParts = [\n {\n text: dayPartTexts.value[DayPartType.Morning],\n value: DayPartType.Morning,\n start: DayPartDuration[DayPartType.Morning].Start,\n end: DayPartDuration[DayPartType.Morning].End,\n timeSlots: morningTimeSlots,\n disabled: morningTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Afternoon],\n value: DayPartType.Afternoon,\n start: DayPartDuration[DayPartType.Afternoon].Start,\n end: DayPartDuration[DayPartType.Afternoon].End,\n timeSlots: afternoonTimeSlots,\n disabled: afternoonTimeSlots.length === 0,\n },\n {\n text: dayPartTexts.value[DayPartType.Evening],\n value: DayPartType.Evening,\n start: DayPartDuration[DayPartType.Evening].Start,\n end: DayPartDuration[DayPartType.Evening].End,\n timeSlots: eveningTimeSlots,\n disabled: eveningTimeSlots.length === 0,\n },\n ];\n result.push({\n value: date,\n disabled: dayParts.every((dayPart) => dayPart.disabled),\n dayParts,\n });\n }\n return result;\n});\nconst selectedDateOption = ref<ApptDateOption>();\nconst selectedDayPart = ref<ApptDayPart>();\nconst selectedTimeSlot = ref<Date>();\n\n/**\n * Methods\n */\nconst book = () => {\n emit('book', selectedTimeSlot.value?.toISOString());\n};\nconst resetAll = () => {\n initSelectedDateValue();\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDate = (d: ApptDateOption) => {\n if (d.disabled || props.disabled) {\n return;\n }\n selectedDateOption.value = d;\n selectedDayPart.value = undefined;\n selectedTimeSlot.value = undefined;\n};\nconst selectDayPart = (dayPart: ApptDayPart) => {\n if (dayPart.disabled || props.disabled) {\n return;\n }\n selectedDayPart.value = dayPart;\n selectedTimeSlot.value = undefined;\n\n // Select the first available time slot\n if (selectedDayPart.value.timeSlots.length > 0) {\n selectTimeSlot(selectedDayPart.value.timeSlots[0]);\n }\n};\nconst selectTimeSlot = (d: Date) => {\n if (props.disabled) {\n return;\n }\n selectedTimeSlot.value = d;\n};\n\nconst getTimeSlots = (dayPartStart: string, dayPartEnd: string, date: Date) => {\n const { start, end } = getDateStartEnd(dayPartStart, dayPartEnd, date);\n return timeSlots.value.filter((t) => start <= t && t <= end);\n};\n\nconst initSelectedDateValue = () => {\n // Select the nearest avaliable date\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n};\n\nwatch(dateOptions, () => {\n const date = dateOptions.value.find((d) => !d.disabled);\n if (date) {\n selectedDateOption.value = date;\n }\n});\n\ninitSelectedDateValue();\n\nexpose({ resetAll });\n\nreturn (_ctx: any,_cache: any) => {\n return (props.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(BIcon), {\n icon: \"dgic-spinner-8\",\n class: \"psc-text-4xl\"\n })\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(dateOptions), (date, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `date${index}`,\n class: \"book-appointment__date\"\n }, [\n _createVNode(DateItem, {\n value: date.value,\n disabled: date.disabled,\n selected: selectedDateOption.value?.value === date.value,\n onClick: ($event: any) => (selectDate(date))\n }, null, 8, [\"value\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ]),\n (selectedDateOption.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_unref(formatDateHuge)(selectedDateOption.value.value)), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedDateOption.value.dayParts, (dayPart, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: `dayPart${i}`,\n class: \"psc-w-1/3 psc-px-2\"\n }, [\n _createVNode(DayPartItem, {\n text: dayPart.text,\n disabled: dayPart.disabled,\n selected: selectedDayPart.value?.value === dayPart.value,\n onClick: ($event: any) => (selectDayPart(dayPart))\n }, null, 8, [\"text\", \"disabled\", \"selected\", \"onClick\"])\n ]))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(BButton), {\n type: \"primary\",\n class: \"psc-w-full\",\n disabled: !selectedTimeSlot.value || props.disabled,\n \"prepend-icon\": props.disabled ? 'dgic-spinner-8' : '',\n \"prepend-icon-css-class\": props.disabled ? 'psc-animate-spin' : '',\n onClick: book\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(props.disabled\n ? _ctx.$t('psc.test_result_processing')\n : props.buttonLabel || _ctx.$t('psc.confirm')), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"prepend-icon\", \"prepend-icon-css-class\"])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_sfc_main","_defineComponent","__props","expose","emit","props","formatDateHuge","useDate","getDateStartEnd","dayPartTexts","useAppointment","timeSlots","computed","dateOptions","result","i","currentDate","date","morningTimeSlots","getTimeSlots","DayPartDuration","DayPartType","afternoonTimeSlots","eveningTimeSlots","dayParts","dayPart","selectedDateOption","ref","selectedDayPart","selectedTimeSlot","book","_a","resetAll","initSelectedDateValue","selectDate","d","selectDayPart","selectTimeSlot","dayPartStart","dayPartEnd","start","end","t","watch","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","BIcon","_Fragment","_renderList","index","DateItem","$event","_toDisplayString","DayPartItem","_createCommentVNode","BButton","_withCtx","_createTextVNode"],"mappings":"qXAIMA,EAAa,CACjB,IAAK,EACL,MAAO,gFACT,EACMC,EAAa,CAAE,MAAO,oBACtBC,EAAa,CACjB,IAAK,EACL,MAAO,gCACT,EACMC,EAAa,CAAE,MAAO,YACtBC,EAAa,CAAE,IAAK,GACpBC,EAAa,CAAE,MAAO,oDACtBC,EAAa,CAAE,MAAO,sBAqBAC,EAAiBC,kBAAA,CAC3C,OAAQ,kBACR,MAAO,CACL,UAAW,KACX,SAAU,CAAE,KAAM,QAAS,QAAS,EAAM,EAC1C,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EACzC,YAAa,CAAE,QAAS,EAAG,CAC7B,EACA,MAAO,CAAC,MAAM,EACd,MAAMC,EAAc,CAAE,OAAAC,EAAQ,KAAAC,GAAQ,CAExC,MAAMC,EAAQH,EAYR,CAAE,eAAAI,GAAmBC,EAAAA,UAErB,CAAE,gBAAAC,EAAiB,aAAAC,CAAa,EAAIC,EAAe,eAAA,EAEnDC,EAAYC,EAAAA,SAAS,IAAMP,EAAM,UAAU,IAAK,GAAM,IAAI,KAAK,CAAC,CAAC,CAAC,EAElEQ,EAAcD,EAAAA,SAA2B,IAAM,CACnD,MAAME,EAA2B,CAAA,EAEjC,QAASC,EAAI,EAAGA,EAAI,EAAGA,IAAK,CACpB,MAAAC,MAAkB,KAClBC,EAAO,IAAI,KAAKD,EAAY,QA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