@rpcbase/ui 0.182.0 → 0.184.0
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/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/useScrollPagination.d.ts +23 -0
- package/dist/helpers/useScrollPagination.d.ts.map +1 -0
- package/dist/helpers/useScrollPagination.test.d.ts +2 -0
- package/dist/helpers/useScrollPagination.test.d.ts.map +1 -0
- package/dist/index.js +62 -60
- package/dist/index.js.map +1 -1
- package/dist/index10.js +24 -69
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -6
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +4 -145
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +6 -39
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +24 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -13
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +6 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -7
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +38 -552
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +4 -31
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +5 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +4 -10
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +8 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +5 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -101
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +6 -53
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +145 -72
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +39 -9
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +571 -115
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +4 -20
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +7 -16
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +13 -23
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +13 -6
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +7 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +31 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +11 -35
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +11 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +8 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +13 -4
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +137 -76
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +101 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +20 -5
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +53 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +72 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +9 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +21 -24
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +16 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +23 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -3
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +74 -730
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +23 -3
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +35 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +16 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +6 -4
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -46
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -46
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +6 -205
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +870 -22
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +24 -22
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +7 -24
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +6 -399
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +5 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -68
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -363
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +3 -261
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -60
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +3 -46
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +20 -17
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +3 -169
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +3 -109
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -24
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +69 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +363 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +261 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +52 -458
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +42 -181
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +156 -94
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +18 -387
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +102 -255
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -43
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -605
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -58
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +466 -8
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +178 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +105 -17
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +260 -14
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +431 -693
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +9 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +41 -4
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -6
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +24 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +29 -8
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -18
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +67 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +180 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +46 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +58 -10
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +661 -634
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +8 -14
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +66 -14
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +19 -5
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +16 -6
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -7
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +5 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -9
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +7 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +17 -9
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.js +455 -198
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +5 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +13 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +9 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +14 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +14 -10
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -11
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +6 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -7
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +263 -5
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +9 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +9 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +5 -55
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +4 -16
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +11 -7
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -10
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -35
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +11 -21
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +11 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -9
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +7 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +6 -4
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +54 -14
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +27 -268
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +16 -12
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -29
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -11
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +9 -24
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +21 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -24
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -29
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +10 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -13
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +5 -154
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +251 -166
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +15 -29
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +18 -47
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +15 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +12 -44
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +28 -94
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +11 -85
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +23 -103
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -52
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +13 -11
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +176 -14
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +149 -32
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +30 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -116
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +46 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +44 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +91 -32
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +85 -19
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +105 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +52 -8
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +15 -2763
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +10 -18
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +36 -27
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +8 -16
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +3 -67
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +9 -180
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +110 -40
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +17 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +15 -18
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +36 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +21 -5
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +2761 -35
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +9 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +19 -23
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +26 -110
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -525
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +3 -128
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +22 -132
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +111 -19
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +15 -5
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +524 -5
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +128 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +132 -14
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +19 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +12 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +19 -544
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +65 -43
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +9 -18
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +14 -7
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +66 -9
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +33 -121
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +64 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -8
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -12
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +4 -10
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +15 -13
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -64
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +6 -69
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +5 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +545 -13
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +45 -64
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +3 -232
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +17 -4
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +7 -56
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -68
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +8 -31
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -9
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +13 -153
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -108
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +13 -3
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +3 -22
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +22 -15
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +123 -22
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +4 -28
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +56 -13
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +68 -7
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +30 -22
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +9 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +151 -26
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +107 -4
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +26 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +16 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +31 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +230 -49
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +8 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +19 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +32 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +16 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +10 -0
- package/dist/index324.js.map +1 -0
- package/dist/index33.js +20 -2637
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +47 -390
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +2604 -196
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +390 -18
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +222 -131
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +18 -183
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +118 -65
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +17 -15
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +216 -93
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +90 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +115 -840
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +6 -66
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +843 -7
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +57 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +7 -23
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +2 -234
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +11 -6
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +18 -33
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +34 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +7 -26
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -8
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +22 -10
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +233 -3
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +201 -44
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +3 -50
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +6 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +47 -14
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +22 -129
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +50 -10
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +172 -25
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +7 -216
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +15 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +128 -41
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +9 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +216 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -6
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +34 -28
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +46 -49
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +8 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -2
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +31 -29
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +4 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +6 -205
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -54
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -8
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -52
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +11 -4
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +7 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +25 -222
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +5 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -8
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +2 -17
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +53 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +46 -4
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +205 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +22 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +24 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +399 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +46 -6
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +177 -23
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +604 -23
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +52 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +3 -3
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -6
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +15 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +5 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +7 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +16 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -8
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index9.js
CHANGED
|
@@ -1,27 +1,181 @@
|
|
|
1
|
-
import { j as c } from "./
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { j as c } from "./index30.js";
|
|
2
|
+
import { c as V } from "./index28.js";
|
|
3
|
+
import { useState as N, useRef as b, useMemo as X, useEffect as O } from "react";
|
|
4
|
+
import { clsx as Z } from "./index26.js";
|
|
5
|
+
import { useMapsLibrary as ee } from "./index5.js";
|
|
6
|
+
import { Input as te } from "./index17.js";
|
|
7
|
+
import { cn as re } from "./index2.js";
|
|
8
|
+
const ne = /* @__PURE__ */ new Set(["street_address", "route", "premise", "subpremise", "intersection", "sublocality", "sublocality_level_1", "sublocality_level_2", "sublocality_level_3", "sublocality_level_4", "sublocality_level_5", "administrative_area_level_1", "administrative_area_level_2", "administrative_area_level_3", "administrative_area_level_4", "administrative_area_level_5", "administrative_area_level_6", "administrative_area_level_7", "postal_code", "locality", "country", "geocode", "plus_code", "political", "neighborhood", "colloquial_area", "lodging", "train_station", "transit_station"]), U = (n) => (n.text?.text ?? "").replace(/, France$/, "").trim(), se = (n) => {
|
|
9
|
+
const e = V.c(8), {
|
|
10
|
+
prediction: l
|
|
11
|
+
} = n;
|
|
12
|
+
let r, o, d;
|
|
13
|
+
if (e[0] !== l) {
|
|
14
|
+
d = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
15
|
+
e: {
|
|
16
|
+
r = U(l);
|
|
17
|
+
const h = l.text?.text ?? "", E = l.text?.matches ?? [], F = r.length < h.length;
|
|
18
|
+
if (E.length === 0) {
|
|
19
|
+
d = /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
|
|
20
|
+
break e;
|
|
21
|
+
}
|
|
22
|
+
o = [];
|
|
23
|
+
let f = 0;
|
|
24
|
+
E.forEach((y, u) => {
|
|
25
|
+
if (F && y.startOffset >= r.length)
|
|
26
|
+
return;
|
|
27
|
+
const g = y.startOffset, i = Math.min(y.endOffset, r.length);
|
|
28
|
+
if (g > f && o.push(r.substring(f, g)), i > g) {
|
|
29
|
+
const m = r.substring(g, i);
|
|
30
|
+
o.push(/* @__PURE__ */ c.jsx("strong", { children: m }, u));
|
|
31
|
+
}
|
|
32
|
+
f = Math.max(f, i);
|
|
33
|
+
}), f < r.length && o.push(r.substring(f));
|
|
34
|
+
}
|
|
35
|
+
e[0] = l, e[1] = r, e[2] = o, e[3] = d;
|
|
36
|
+
} else
|
|
37
|
+
r = e[1], o = e[2], d = e[3];
|
|
38
|
+
if (d !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
39
|
+
return d;
|
|
40
|
+
if (o.length === 0) {
|
|
41
|
+
let h;
|
|
42
|
+
return e[4] !== r ? (h = /* @__PURE__ */ c.jsx(c.Fragment, { children: r }), e[4] = r, e[5] = h) : h = e[5], h;
|
|
22
43
|
}
|
|
23
|
-
|
|
44
|
+
let p;
|
|
45
|
+
return e[6] !== o ? (p = /* @__PURE__ */ c.jsx(c.Fragment, { children: o }), e[6] = o, e[7] = p) : p = e[7], p;
|
|
46
|
+
}, oe = (n, e) => !n.types || n.types.length === 0 || !e || e.size === 0 ? !0 : n.types.some((l) => e.has(l)), le = (n, e) => n.placeId || `${n.text?.text ?? "prediction"}-${e}`, ie = (n) => {
|
|
47
|
+
const e = /* @__PURE__ */ new Map();
|
|
48
|
+
return n.forEach((l) => {
|
|
49
|
+
const r = l.placeId;
|
|
50
|
+
r && (e.has(r) || e.set(r, l));
|
|
51
|
+
}), Array.from(e.values());
|
|
52
|
+
}, ce = (n, e) => n.filter((l) => oe(l, e)), ae = (n) => n.sort((e, l) => {
|
|
53
|
+
const r = e.distanceMeters ?? Number.POSITIVE_INFINITY, o = l.distanceMeters ?? Number.POSITIVE_INFINITY;
|
|
54
|
+
return r - o;
|
|
55
|
+
}), ue = (n, e) => ae(ce(ie(n), e)), fe = (n, e) => U(n).toLowerCase() === e.trim().toLowerCase(), ve = ({
|
|
56
|
+
id: n,
|
|
57
|
+
label: e,
|
|
58
|
+
placeholder: l,
|
|
59
|
+
value: r,
|
|
60
|
+
onValueChange: o,
|
|
61
|
+
disabled: d,
|
|
62
|
+
name: p,
|
|
63
|
+
className: h,
|
|
64
|
+
autofillShimName: E,
|
|
65
|
+
googleMapsApiKey: F,
|
|
66
|
+
locationRestriction: f,
|
|
67
|
+
allowedTypes: y
|
|
68
|
+
}) => {
|
|
69
|
+
const [u, g] = N(r ?? ""), [i, m] = N([]), [S, a] = N(!1), [v, M] = N(-1), L = b(null), P = b(null), R = b(!1), k = b(!1), x = b(null), $ = b([]), _ = b("smooth"), B = ee("places", F), q = X(() => {
|
|
70
|
+
if (!y)
|
|
71
|
+
return ne;
|
|
72
|
+
const t = /* @__PURE__ */ new Set();
|
|
73
|
+
for (const s of y)
|
|
74
|
+
t.add(s);
|
|
75
|
+
return t;
|
|
76
|
+
}, [y]);
|
|
77
|
+
O(() => {
|
|
78
|
+
g(r ?? ""), k.current = !1;
|
|
79
|
+
}, [r]), O(() => {
|
|
80
|
+
if (R.current) {
|
|
81
|
+
R.current = !1;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
let t = !0;
|
|
85
|
+
const s = setTimeout(() => {
|
|
86
|
+
if (!t)
|
|
87
|
+
return;
|
|
88
|
+
if (u.trim() === "") {
|
|
89
|
+
m([]), a(!1), x.current = null, r !== "" && o("");
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (!B) return;
|
|
93
|
+
const {
|
|
94
|
+
AutocompleteSuggestion: I,
|
|
95
|
+
AutocompleteSessionToken: j
|
|
96
|
+
} = B;
|
|
97
|
+
if (!I || !j) {
|
|
98
|
+
console.error("AddressAutocompleteInput: missing AutocompleteSuggestion or AutocompleteSessionToken exports"), m([]), a(!1);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
x.current || (x.current = new j());
|
|
102
|
+
const A = {
|
|
103
|
+
input: u,
|
|
104
|
+
sessionToken: x.current ?? void 0,
|
|
105
|
+
includedRegionCodes: ["fr"]
|
|
106
|
+
};
|
|
107
|
+
f && (A.locationRestriction = f), I.fetchAutocompleteSuggestions(A).then((T) => {
|
|
108
|
+
if (!t)
|
|
109
|
+
return;
|
|
110
|
+
const J = T.suggestions.map((C) => C.placePrediction).filter((C) => !!C), D = ue(J, q), z = D[0], Q = z && D.length === 1 && fe(z, u);
|
|
111
|
+
if (!k.current && Q) {
|
|
112
|
+
m(D), a(!1);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
D.length > 0 ? (m(D), k.current && a(!0), M(-1)) : (m([]), a(!1));
|
|
116
|
+
}).catch((T) => {
|
|
117
|
+
t && (console.error("AddressAutocompleteInput: suggestion fetch failed", T), m([]), a(!1));
|
|
118
|
+
});
|
|
119
|
+
}, 300);
|
|
120
|
+
return () => {
|
|
121
|
+
t = !1, clearTimeout(s);
|
|
122
|
+
};
|
|
123
|
+
}, [u, B, o, r, f, q]), O(() => {
|
|
124
|
+
const t = (s) => {
|
|
125
|
+
L.current && !L.current.contains(s.target) && P.current && !P.current.contains(s.target) && a(!1);
|
|
126
|
+
};
|
|
127
|
+
return document.addEventListener("mousedown", t), () => {
|
|
128
|
+
document.removeEventListener("mousedown", t);
|
|
129
|
+
};
|
|
130
|
+
}, []);
|
|
131
|
+
const H = (t) => {
|
|
132
|
+
R.current = !0;
|
|
133
|
+
const s = U(t);
|
|
134
|
+
g(s), o(s), m([]), a(!1), x.current = null;
|
|
135
|
+
}, K = (t) => {
|
|
136
|
+
k.current = !0, g(t.target.value);
|
|
137
|
+
}, W = (t) => {
|
|
138
|
+
if (!S || i.length === 0) {
|
|
139
|
+
t.key === "Enter" && (t.preventDefault(), o(u), a(!1), x.current = null);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
t.key === "ArrowDown" ? (_.current = t.repeat ? "auto" : "smooth", t.preventDefault(), M((s) => i.length === 0 ? -1 : s < 0 ? 0 : (s + 1) % i.length)) : t.key === "ArrowUp" ? (_.current = t.repeat ? "auto" : "smooth", t.preventDefault(), M((s) => i.length === 0 ? -1 : s <= 0 ? i.length - 1 : (s - 1) % i.length)) : t.key === "Enter" ? (t.preventDefault(), v > -1 && i[v] ? H(i[v]) : (o(u), a(!1), x.current = null)) : t.key === "Escape" && a(!1);
|
|
143
|
+
}, G = () => {
|
|
144
|
+
a(!1), r !== u && o(u), x.current = null;
|
|
145
|
+
}, Y = E ?? (p ? `${p}_shim` : void 0);
|
|
146
|
+
return O(() => {
|
|
147
|
+
if (!S || v < 0) {
|
|
148
|
+
_.current = "smooth";
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const t = $.current[v], s = P.current;
|
|
152
|
+
if (!t || !s) {
|
|
153
|
+
_.current = "smooth";
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const w = _.current;
|
|
157
|
+
_.current = "smooth";
|
|
158
|
+
const I = t.offsetTop, j = I + t.offsetHeight, A = s.scrollTop, T = A + s.clientHeight;
|
|
159
|
+
I >= A && j <= T || t.scrollIntoView({
|
|
160
|
+
block: "nearest",
|
|
161
|
+
behavior: w
|
|
162
|
+
});
|
|
163
|
+
}, [v, S]), $.current.length = i.length, /* @__PURE__ */ c.jsxs("div", { className: "relative", children: [
|
|
164
|
+
Y && /* @__PURE__ */ c.jsx("input", { tabIndex: -1, autoComplete: "street-address", name: Y, "aria-hidden": "true", className: "pointer-events-none absolute left-0 top-0 h-0 w-0 opacity-0" }),
|
|
165
|
+
/* @__PURE__ */ c.jsx("label", { htmlFor: n, className: "text-left block text-sm font-medium text-gray-700 mb-1 cursor-pointer", children: e }),
|
|
166
|
+
/* @__PURE__ */ c.jsx(te, { ref: L, id: n, type: "text", placeholder: l, name: p ?? `${n}_input`, value: u, onChange: K, onKeyDown: W, onFocus: () => {
|
|
167
|
+
i.length > 0 && u && a(!0);
|
|
168
|
+
}, onBlur: G, disabled: d, autoComplete: "off", className: re("w-full", h) }),
|
|
169
|
+
S && i.length > 0 && /* @__PURE__ */ c.jsx("ul", { ref: P, className: "absolute z-10 mt-1 w-full max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white text-left shadow-lg", role: "listbox", children: i.map((t, s) => /* @__PURE__ */ c.jsx("li", { ref: (w) => {
|
|
170
|
+
$.current[s] = w;
|
|
171
|
+
}, className: Z("cursor-pointer px-3 py-2 text-sm text-gray-700 hover:bg-gray-100", {
|
|
172
|
+
"bg-gray-100": v === s
|
|
173
|
+
}), role: "option", onMouseDown: (w) => {
|
|
174
|
+
w.preventDefault(), H(t);
|
|
175
|
+
}, children: /* @__PURE__ */ c.jsx(se, { prediction: t }) }, le(t, s))) })
|
|
176
|
+
] });
|
|
177
|
+
};
|
|
24
178
|
export {
|
|
25
|
-
|
|
179
|
+
ve as AddressAutocompleteInput
|
|
26
180
|
};
|
|
27
181
|
//# sourceMappingURL=index9.js.map
|
package/dist/index9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":["../src/components/ApplePayButton/index.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from \"react\"\nimport clsx from \"clsx\"\n\n\ntype ApplePayButtonProps = ComponentPropsWithoutRef<\"button\">\n\n\nexport const ApplePayButton = ({\n className,\n onClick,\n children,\n ...buttonProps\n}: ApplePayButtonProps) => {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n className={clsx(\n \"flex w-full items-center justify-center rounded-md border border-transparent bg-black py-2 text-white hover:bg-gray-800 focus:ring-2 focus:ring-gray-900 focus:ring-offset-2 focus:outline-hidden\",\n className,\n )}\n {...buttonProps}\n >\n {children ?? <span className=\"sr-only\">Pay with Apple Pay</span>}\n <svg fill=\"currentColor\" viewBox=\"0 0 50 20\" className=\"h-5 w-auto\">\n <path d=\"M9.536 2.579c-.571.675-1.485 1.208-2.4 1.132-.113-.914.334-1.884.858-2.484C8.565.533 9.564.038 10.374 0c.095.951-.276 1.884-.838 2.579zm.829 1.313c-1.324-.077-2.457.751-3.085.751-.638 0-1.6-.713-2.647-.694-1.362.019-2.628.79-3.323 2.017-1.429 2.455-.372 6.09 1.009 8.087.676.99 1.485 2.075 2.552 2.036 1.009-.038 1.409-.656 2.628-.656 1.228 0 1.58.656 2.647.637 1.104-.019 1.8-.99 2.475-1.979.771-1.122 1.086-2.217 1.105-2.274-.02-.019-2.133-.828-2.152-3.263-.02-2.036 1.666-3.007 1.742-3.064-.952-1.408-2.437-1.56-2.951-1.598zm7.645-2.76v14.834h2.305v-5.072h3.19c2.913 0 4.96-1.998 4.96-4.89 0-2.893-2.01-4.872-4.885-4.872h-5.57zm2.305 1.941h2.656c2 0 3.142 1.066 3.142 2.94 0 1.875-1.142 2.95-3.151 2.95h-2.647v-5.89zM32.673 16.08c1.448 0 2.79-.733 3.4-1.893h.047v1.779h2.133V8.582c0-2.14-1.714-3.52-4.351-3.52-2.447 0-4.256 1.399-4.323 3.32h2.076c.171-.913 1.018-1.512 2.18-1.512 1.41 0 2.2.656 2.2 1.865v.818l-2.876.171c-2.675.162-4.123 1.256-4.123 3.159 0 1.922 1.495 3.197 3.637 3.197zm.62-1.76c-1.229 0-2.01-.59-2.01-1.494 0-.933.752-1.475 2.19-1.56l2.562-.162v.837c0 1.39-1.181 2.379-2.743 2.379zM41.1 20c2.247 0 3.304-.856 4.227-3.454l4.047-11.341h-2.342l-2.714 8.763h-.047l-2.714-8.763h-2.409l3.904 10.799-.21.656c-.352 1.114-.923 1.542-1.942 1.542-.18 0-.533-.02-.676-.038v1.779c.133.038.705.057.876.057z\" />\n </svg>\n </button>\n )\n}\n"],"names":["ApplePayButton","className","onClick","children","buttonProps","jsxs","clsx","jsx"],"mappings":";;AAOO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,SAAAH;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD,KAAYI,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,sBAAkB;AAAA,MACzDA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,MAAK,gBAAe,SAAQ,aAAY,WAAU,cACrD,UAAAA,gBAAAA,EAAAA,IAAC,QAAA,EAAK,GAAE,syCAAA,CAAsyC,EAAA,CAChzC;AAAA,IAAA;AAAA,EAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"index9.js","sources":["../src/components/AddressAutocompleteInput/index.tsx"],"sourcesContent":["import { ReactNode, ChangeEvent, KeyboardEvent, useState, useEffect, useRef, useMemo } from \"react\"\nimport clsx from \"clsx\"\n\nimport { useMapsLibrary } from \"@/helpers/useMapsLibrary\"\nimport { Input } from \"@/components/Input\"\nimport { cn } from \"@/lib/utils\"\n\n\nconst DEFAULT_ALLOWED_TYPES = new Set([\n \"street_address\",\n \"route\",\n \"premise\",\n \"subpremise\",\n \"intersection\",\n \"sublocality\",\n \"sublocality_level_1\",\n \"sublocality_level_2\",\n \"sublocality_level_3\",\n \"sublocality_level_4\",\n \"sublocality_level_5\",\n \"administrative_area_level_1\",\n \"administrative_area_level_2\",\n \"administrative_area_level_3\",\n \"administrative_area_level_4\",\n \"administrative_area_level_5\",\n \"administrative_area_level_6\",\n \"administrative_area_level_7\",\n \"postal_code\",\n \"locality\",\n \"country\",\n \"geocode\",\n \"plus_code\",\n \"political\",\n \"neighborhood\",\n \"colloquial_area\",\n \"lodging\",\n \"train_station\",\n \"transit_station\",\n])\n\nconst getDisplayText = (prediction: google.maps.places.PlacePrediction) => {\n const fullText = prediction.text?.text ?? \"\"\n return fullText.replace(/, France$/, \"\").trim()\n}\n\nconst PredictionItem = ({ prediction }: { prediction: google.maps.places.PlacePrediction }) => {\n const displayText = getDisplayText(prediction)\n const fullText = prediction.text?.text ?? \"\"\n const matches = prediction.text?.matches ?? []\n const wasCountryRemoved = displayText.length < fullText.length\n\n if (matches.length === 0) {\n return <>{displayText}</>\n }\n\n const parts: ReactNode[] = []\n let lastIndex = 0\n\n matches.forEach((substring, index) => {\n if (wasCountryRemoved && substring.startOffset >= displayText.length) {\n return\n }\n\n const startOffset = substring.startOffset\n const endOffset = Math.min(substring.endOffset, displayText.length)\n\n if (startOffset > lastIndex) {\n parts.push(displayText.substring(lastIndex, startOffset))\n }\n\n if (endOffset > startOffset) {\n const matched = displayText.substring(startOffset, endOffset)\n parts.push(<strong key={index}>{matched}</strong>)\n }\n\n lastIndex = Math.max(lastIndex, endOffset)\n })\n\n if (lastIndex < displayText.length) {\n parts.push(displayText.substring(lastIndex))\n }\n\n if (parts.length === 0) {\n return <>{displayText}</>\n }\n\n return <>{parts}</>\n}\n\nconst isAllowedPrediction = (\n prediction: google.maps.places.PlacePrediction,\n allowedTypes: ReadonlySet<string> | null,\n) => {\n if (!prediction.types || prediction.types.length === 0) {\n return true\n }\n\n if (!allowedTypes || allowedTypes.size === 0) {\n return true\n }\n\n return prediction.types.some(type => allowedTypes.has(type))\n}\n\nconst getPredictionId = (prediction: google.maps.places.PlacePrediction, index: number) =>\n prediction.placeId || `${prediction.text?.text ?? \"prediction\"}-${index}`\n\nconst getUniquePredictions = (predictions: google.maps.places.PlacePrediction[]) => {\n const map = new Map<string, google.maps.places.PlacePrediction>()\n\n predictions.forEach(prediction => {\n const key = prediction.placeId\n\n if (!key) {\n return\n }\n\n if (!map.has(key)) {\n map.set(key, prediction)\n }\n })\n\n return Array.from(map.values())\n}\n\nconst getFilteredPredictions = (\n predictions: google.maps.places.PlacePrediction[],\n allowedTypes: ReadonlySet<string> | null,\n) => predictions.filter(prediction => isAllowedPrediction(prediction, allowedTypes))\n\nconst sortPredictions = (predictions: google.maps.places.PlacePrediction[]) =>\n predictions.sort((a, b) => {\n const aDistance = a.distanceMeters ?? Number.POSITIVE_INFINITY\n const bDistance = b.distanceMeters ?? Number.POSITIVE_INFINITY\n\n return aDistance - bDistance\n })\n\nconst buildDisplayPredictions = (\n predictions: google.maps.places.PlacePrediction[],\n allowedTypes: ReadonlySet<string> | null,\n) => sortPredictions(getFilteredPredictions(getUniquePredictions(predictions), allowedTypes))\n\nconst isExactMatch = (prediction: google.maps.places.PlacePrediction, value: string) => {\n const display = getDisplayText(prediction)\n return display.toLowerCase() === value.trim().toLowerCase()\n}\n\nexport const AddressAutocompleteInput = ({\n id,\n label,\n placeholder,\n value,\n onValueChange,\n disabled,\n name,\n className,\n autofillShimName,\n googleMapsApiKey,\n locationRestriction,\n allowedTypes,\n}: {\n id: string\n label: string\n placeholder: string\n value: string | undefined\n onValueChange: (value: string) => void\n disabled?: boolean\n name?: string\n className?: string\n autofillShimName?: string\n googleMapsApiKey?: string\n locationRestriction?: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds\n allowedTypes?: Iterable<string>\n}) => {\n const [inputValue, setInputValue] = useState(value ?? \"\")\n const [predictions, setPredictions] = useState<google.maps.places.PlacePrediction[]>([])\n const [isDropdownOpen, setIsDropdownOpen] = useState(false)\n const [highlightedIndex, setHighlightedIndex] = useState(-1)\n\n const inputRef = useRef<HTMLInputElement>(null)\n const dropdownRef = useRef<HTMLUListElement>(null)\n const isSelecting = useRef(false)\n const hasUserTyped = useRef(false)\n const sessionTokenRef = useRef<google.maps.places.AutocompleteSessionToken | null>(null)\n const optionRefs = useRef<(HTMLLIElement | null)[]>([])\n const scrollBehaviorRef = useRef<ScrollBehavior>(\"smooth\")\n const placesLibrary = useMapsLibrary(\"places\", googleMapsApiKey)\n const allowedTypesSet = useMemo(() => {\n if (!allowedTypes) {\n return DEFAULT_ALLOWED_TYPES\n }\n\n const newSet = new Set<string>()\n for (const type of allowedTypes) {\n newSet.add(type)\n }\n return newSet\n }, [allowedTypes])\n\n useEffect(() => {\n setInputValue(value ?? \"\")\n hasUserTyped.current = false\n }, [value])\n\n useEffect(() => {\n if (isSelecting.current) {\n isSelecting.current = false\n return\n }\n\n let isActive = true\n\n const handler = setTimeout(() => {\n if (!isActive) {\n return\n }\n\n const trimmed = inputValue.trim()\n\n if (trimmed === \"\") {\n setPredictions([])\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n if (value !== \"\") {\n onValueChange(\"\")\n }\n return\n }\n\n if (!placesLibrary) return\n\n const { AutocompleteSuggestion, AutocompleteSessionToken } = placesLibrary\n\n if (!AutocompleteSuggestion || !AutocompleteSessionToken) {\n console.error(\"AddressAutocompleteInput: missing AutocompleteSuggestion or AutocompleteSessionToken exports\")\n setPredictions([])\n setIsDropdownOpen(false)\n return\n }\n\n if (!sessionTokenRef.current) {\n sessionTokenRef.current = new AutocompleteSessionToken()\n }\n\n const request: google.maps.places.AutocompleteRequest = {\n input: inputValue,\n sessionToken: sessionTokenRef.current ?? undefined,\n includedRegionCodes: [\"fr\"],\n }\n if (locationRestriction) {\n request.locationRestriction = locationRestriction\n }\n\n AutocompleteSuggestion.fetchAutocompleteSuggestions(request)\n .then((response: { suggestions: google.maps.places.AutocompleteSuggestion[] }) => {\n if (!isActive) {\n return\n }\n\n const placePredictions = response.suggestions\n .map((suggestion: google.maps.places.AutocompleteSuggestion) => suggestion.placePrediction)\n .filter((prediction): prediction is google.maps.places.PlacePrediction => Boolean(prediction))\n\n const combinedPredictions = buildDisplayPredictions(placePredictions, allowedTypesSet)\n\n const singlePrediction = combinedPredictions[0]\n const hasExactMatch =\n singlePrediction && combinedPredictions.length === 1 && isExactMatch(singlePrediction, inputValue)\n\n if (!hasUserTyped.current && hasExactMatch) {\n setPredictions(combinedPredictions)\n setIsDropdownOpen(false)\n return\n }\n\n if (combinedPredictions.length > 0) {\n setPredictions(combinedPredictions)\n if (hasUserTyped.current) {\n setIsDropdownOpen(true)\n }\n setHighlightedIndex(-1)\n } else {\n setPredictions([])\n setIsDropdownOpen(false)\n }\n })\n .catch((error: unknown) => {\n if (!isActive) {\n return\n }\n console.error(\"AddressAutocompleteInput: suggestion fetch failed\", error)\n setPredictions([])\n setIsDropdownOpen(false)\n })\n }, 300)\n\n return () => {\n isActive = false\n clearTimeout(handler)\n }\n }, [inputValue, placesLibrary, onValueChange, value, locationRestriction, allowedTypesSet])\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n inputRef.current &&\n !inputRef.current.contains(event.target as Node) &&\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsDropdownOpen(false)\n }\n }\n document.addEventListener(\"mousedown\", handleClickOutside)\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside)\n }\n }, [])\n\n const handleSelectPrediction = (prediction: google.maps.places.PlacePrediction) => {\n isSelecting.current = true\n const newAddress = getDisplayText(prediction)\n setInputValue(newAddress)\n onValueChange(newAddress)\n setPredictions([])\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n hasUserTyped.current = true\n setInputValue(e.target.value)\n }\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (!isDropdownOpen || predictions.length === 0) {\n if (e.key === \"Enter\") {\n e.preventDefault()\n onValueChange(inputValue)\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n return\n }\n\n if (e.key === \"ArrowDown\") {\n scrollBehaviorRef.current = e.repeat ? \"auto\" : \"smooth\"\n e.preventDefault()\n setHighlightedIndex(prev => {\n if (predictions.length === 0) {\n return -1\n }\n return prev < 0 ? 0 : (prev + 1) % predictions.length\n })\n } else if (e.key === \"ArrowUp\") {\n scrollBehaviorRef.current = e.repeat ? \"auto\" : \"smooth\"\n e.preventDefault()\n setHighlightedIndex(prev => {\n if (predictions.length === 0) {\n return -1\n }\n if (prev <= 0) {\n return predictions.length - 1\n }\n return (prev - 1) % predictions.length\n })\n } else if (e.key === \"Enter\") {\n e.preventDefault()\n if (highlightedIndex > -1 && predictions[highlightedIndex]) {\n handleSelectPrediction(predictions[highlightedIndex])\n } else {\n onValueChange(inputValue)\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n } else if (e.key === \"Escape\") {\n setIsDropdownOpen(false)\n }\n }\n\n const handleBlur = () => {\n setIsDropdownOpen(false)\n if (value !== inputValue) {\n onValueChange(inputValue)\n }\n sessionTokenRef.current = null\n }\n\n const shimName = autofillShimName ?? (name ? `${name}_shim` : undefined)\n\n useEffect(() => {\n if (!isDropdownOpen || highlightedIndex < 0) {\n scrollBehaviorRef.current = \"smooth\"\n return\n }\n\n const item = optionRefs.current[highlightedIndex]\n const list = dropdownRef.current\n\n if (!item || !list) {\n scrollBehaviorRef.current = \"smooth\"\n return\n }\n\n const behavior = scrollBehaviorRef.current\n scrollBehaviorRef.current = \"smooth\"\n\n const top = item.offsetTop\n const bottom = top + item.offsetHeight\n const viewTop = list.scrollTop\n const viewBottom = viewTop + list.clientHeight\n\n if (top >= viewTop && bottom <= viewBottom) {\n return\n }\n\n item.scrollIntoView({\n block: \"nearest\",\n behavior,\n })\n }, [highlightedIndex, isDropdownOpen])\n\n optionRefs.current.length = predictions.length\n\n return (\n <div className=\"relative\">\n {shimName && (\n <input\n tabIndex={-1}\n autoComplete=\"street-address\"\n name={shimName}\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute left-0 top-0 h-0 w-0 opacity-0\"\n />\n )}\n <label htmlFor={id} className=\"text-left block text-sm font-medium text-gray-700 mb-1 cursor-pointer\">\n {label}\n </label>\n <Input\n ref={inputRef}\n id={id}\n type=\"text\"\n placeholder={placeholder}\n name={name ?? `${id}_input`}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n onFocus={() => {\n if (predictions.length > 0 && inputValue) {\n setIsDropdownOpen(true)\n }\n }}\n onBlur={handleBlur}\n disabled={disabled}\n autoComplete=\"off\"\n className={cn(\"w-full\", className)}\n />\n {isDropdownOpen && predictions.length > 0 && (\n <ul\n ref={dropdownRef}\n className=\"absolute z-10 mt-1 w-full max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white text-left shadow-lg\"\n role=\"listbox\"\n >\n {predictions.map((prediction, index) => (\n <li\n key={getPredictionId(prediction, index)}\n ref={node => {\n optionRefs.current[index] = node\n }}\n className={clsx(\n \"cursor-pointer px-3 py-2 text-sm text-gray-700 hover:bg-gray-100\",\n { \"bg-gray-100\": highlightedIndex === index },\n )}\n role=\"option\"\n onMouseDown={e => {\n e.preventDefault()\n handleSelectPrediction(prediction)\n }}\n >\n <PredictionItem prediction={prediction} />\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n}\n"],"names":["DEFAULT_ALLOWED_TYPES","Set","getDisplayText","prediction","text","replace","trim","PredictionItem","t0","$","_c","displayText","parts","t1","Symbol","for","bb0","fullText","matches","wasCountryRemoved","length","lastIndex","forEach","substring","index","startOffset","endOffset","Math","min","push","matched","jsx","max","t2","isAllowedPrediction","allowedTypes","types","size","some","type","has","getPredictionId","placeId","getUniquePredictions","predictions","map","Map","key","set","Array","from","values","getFilteredPredictions","filter","sortPredictions","sort","a","b","aDistance","distanceMeters","Number","POSITIVE_INFINITY","bDistance","buildDisplayPredictions","isExactMatch","value","toLowerCase","AddressAutocompleteInput","id","label","placeholder","onValueChange","disabled","name","className","autofillShimName","googleMapsApiKey","locationRestriction","inputValue","setInputValue","useState","setPredictions","isDropdownOpen","setIsDropdownOpen","highlightedIndex","setHighlightedIndex","inputRef","useRef","dropdownRef","isSelecting","hasUserTyped","sessionTokenRef","optionRefs","scrollBehaviorRef","placesLibrary","useMapsLibrary","allowedTypesSet","useMemo","newSet","add","useEffect","current","isActive","handler","setTimeout","AutocompleteSuggestion","AutocompleteSessionToken","console","error","request","input","sessionToken","undefined","includedRegionCodes","fetchAutocompleteSuggestions","then","response","placePredictions","suggestions","suggestion","placePrediction","Boolean","combinedPredictions","singlePrediction","hasExactMatch","catch","clearTimeout","handleClickOutside","event","contains","target","document","addEventListener","removeEventListener","handleSelectPrediction","newAddress","handleInputChange","e","handleKeyDown","preventDefault","repeat","prev","handleBlur","shimName","item","list","behavior","top","offsetTop","bottom","offsetHeight","viewTop","scrollTop","viewBottom","clientHeight","scrollIntoView","block","jsxs","Input","cn","node","clsx"],"mappings":";;;;;;;AAQA,MAAMA,KAAwB,oBAAIC,IAAI,CACpC,kBACA,SACA,WACA,cACA,gBACA,eACA,uBACA,uBACA,uBACA,uBACA,uBACA,+BACA,+BACA,+BACA,+BACA,+BACA,+BACA,+BACA,eACA,YACA,WACA,WACA,aACA,aACA,gBACA,mBACA,WACA,iBACA,iBAAiB,CAClB,GAEKC,IAAiBA,CAACC,OACLA,EAAWC,MAAMA,QAAQ,IAC1BC,QAAQ,aAAa,EAAE,EAAEC,KAAAA,GAGrCC,KAAiBC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAAC;AAAA,IAAAP,YAAAA;AAAAA,EAAAA,IAAAK;AAAkE,MAAAG,GAAAC,GAAAC;AAAA,MAAAJ,SAAAN,GAAA;AAO/EU,IAAAA,IAAAC,uBAAkBC,IAAlB,6BAAiB;AAACC,IAAAA,GAAA;AAN3BL,MAAAA,IAAoBT,EAAeC,CAAU;AAC7C,YAAAc,IAAiBd,EAAUC,MAAWA,QAArB,IACjBc,IAAgBf,EAAUC,MAAcc,WAAxB,CAAA,GAChBC,IAA0BR,EAAWS,SAAUH,EAAQG;AAEvD,UAAIF,EAAOE,WAAY,GAAC;AACfP,QAAAA,wCAAGF,UAAAA,EAAAA,CAAW;AAAd,cAAAK;AAAAA,MAAkB;AAG3BJ,MAAAA,IAA2B,CAAA;AAC3B,UAAAS,IAAgB;AAEhBH,MAAAA,EAAOI,QAAS,CAAAC,GAAAC,MAAA;AACd,YAAIL,KAAqBI,EAASE,eAAgBd,EAAWS;AAAO;AAIpE,cAAAK,IAAoBF,EAASE,aAC7BC,IAAkB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