@rpcbase/ui 0.189.0 → 0.191.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/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index100.js +420 -139
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +149 -71
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +74 -229
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +262 -9
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +9 -42
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +42 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +4 -46
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +597 -197
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +52 -22
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +4 -24
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +4 -399
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +15 -46
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +6 -52
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +6 -3
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +16 -4
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -15
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +4 -5
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +5 -7
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +5 -16
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -4
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -4
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +6 -5
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +24 -5
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +6 -4
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +2 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +5 -5
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +5 -24
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -6
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +5 -4
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +4 -6
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +8 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -3
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -5
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +3 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +6 -8
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +145 -5
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +39 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +7 -6
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +13 -145
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +13 -39
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +7 -4
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +29 -5
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +10 -13
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +10 -13
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +8 -7
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +13 -31
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +101 -10
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +20 -11
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +53 -8
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +55 -54
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +70 -11
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +9 -101
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +21 -20
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +15 -52
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +23 -72
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +6 -9
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +5 -20
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +23 -16
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +35 -24
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +16 -7
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +6 -5
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +4 -23
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -35
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +5 -16
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -6
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +3 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +6 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +24 -5
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +7 -4
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +6 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +5 -6
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -24
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +3 -7
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -6
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +3 -5
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -3
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +3 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +3 -4
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +3 -3
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +24 -4
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +29 -4
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +5 -4
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +13 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +148 -61
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +27 -177
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -46
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +46 -12
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +10 -153
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +42 -28
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +95 -9
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +82 -43
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +104 -10
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +50 -42
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +10 -94
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +33 -82
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +8 -105
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +110 -46
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +17 -11
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +13 -35
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -8
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +6 -6
- package/dist/index200.js +32 -112
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +20 -17
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +9 -15
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +8 -3
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +14 -31
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +27 -19
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +15 -8
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +66 -7
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +179 -18
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +44 -26
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +15 -15
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -24
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -29
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +59 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +64 -14
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +6 -5
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +4 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +7 -58
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +17 -66
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +5 -6
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +5 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +13 -7
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +9 -16
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +14 -5
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +14 -5
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -13
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +5 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -14
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -14
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -5
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -6
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -7
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +5 -9
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +4 -5
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +11 -9
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +10 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -5
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +11 -4
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +11 -11
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +10 -10
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +7 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +6 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -11
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +6 -10
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -7
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +6 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +55 -5
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +8 -6
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +19 -7
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +29 -6
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +12 -55
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +25 -8
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -19
- package/dist/index254.js.map +1 -1
- package/dist/index259.js +3 -3
- package/dist/index265.js +1 -1
- package/dist/index266.js +2 -2
- package/dist/index268.js +3 -3
- package/dist/index270.js +5 -30
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +3 -13
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +22 -24
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +112 -5
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +15 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +525 -5
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +128 -3
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +132 -22
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +19 -111
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +4 -15
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +17 -523
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +12 -127
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +61 -130
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +69 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +8 -18
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +14 -13
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +65 -64
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +6 -69
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +6 -9
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -14
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +15 -65
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +8 -5
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +5 -4
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +545 -15
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +47 -9
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +17 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +6 -4
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +8 -545
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +8 -47
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +1 -1
- package/dist/index300.js +8 -17
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +12 -6
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -8
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +13 -7
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +3 -8
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +22 -12
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +4 -9
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +56 -14
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +68 -4
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +31 -23
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -5
- package/dist/index310.js +9 -5
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +147 -50
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +106 -66
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +12 -30
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +28 -9
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +4 -152
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +22 -107
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +15 -22
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +28 -12
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +12 -27
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +24 -24
- package/dist/index320.js +7 -5
- package/dist/index320.js.map +1 -1
- package/dist/index33.js +3 -3
- package/dist/index35.js +16 -2635
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +113 -377
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +204 -215
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +87 -18
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +115 -126
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +5 -221
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +836 -83
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +53 -115
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +7 -5
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +2 -844
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +12 -57
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +18 -7
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +8 -2
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +2 -12
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +22 -17
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +233 -7
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +4 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +6 -23
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +46 -232
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +26 -204
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +51 -2
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +8 -2
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +14 -5
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +133 -7
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -5
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +214 -51
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +13 -2
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +34 -2
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +46 -3
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -6
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +48 -46
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +4 -27
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +4 -49
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +28 -8
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -15
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +8 -133
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +205 -11
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -217
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -13
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -33
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -46
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +5 -7
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -50
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -5
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +46 -27
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +204 -48
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +21 -8
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +24 -11
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +383 -589
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +46 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +5 -68
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +69 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +2 -364
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +303 -201
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +247 -46
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +56 -42
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +46 -169
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +156 -96
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +109 -24
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +25 -8
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +8 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +4 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -466
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index321.js +0 -19
- package/dist/index321.js.map +0 -1
- package/dist/index322.js +0 -32
- package/dist/index322.js.map +0 -1
- package/dist/index323.js +0 -16
- package/dist/index323.js.map +0 -1
- package/dist/index324.js +0 -10
- package/dist/index324.js.map +0 -1
package/dist/index183.js
CHANGED
|
@@ -1,71 +1,158 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
function s(t) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4
|
+
return typeof e;
|
|
5
|
+
} : function(e) {
|
|
6
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7
|
+
}, s(t);
|
|
6
8
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
function f(t, e) {
|
|
10
|
+
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
11
|
+
}
|
|
12
|
+
function l(t, e) {
|
|
13
|
+
for (var r = 0; r < e.length; r++) {
|
|
14
|
+
var n = e[r];
|
|
15
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, g(n.key), n);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function p(t, e, r) {
|
|
19
|
+
return e && l(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
20
|
+
}
|
|
21
|
+
function g(t) {
|
|
22
|
+
var e = x(t, "string");
|
|
23
|
+
return s(e) == "symbol" ? e : e + "";
|
|
24
|
+
}
|
|
25
|
+
function x(t, e) {
|
|
26
|
+
if (s(t) != "object" || !t) return t;
|
|
27
|
+
var r = t[Symbol.toPrimitive];
|
|
28
|
+
if (r !== void 0) {
|
|
29
|
+
var n = r.call(t, e);
|
|
30
|
+
if (s(n) != "object") return n;
|
|
31
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
|
+
}
|
|
33
|
+
return String(t);
|
|
34
|
+
}
|
|
35
|
+
var y = /* @__PURE__ */ (function() {
|
|
36
|
+
function t() {
|
|
37
|
+
f(this, t);
|
|
38
|
+
}
|
|
39
|
+
return p(t, [{
|
|
40
|
+
key: "parse",
|
|
41
|
+
value: function(r) {
|
|
42
|
+
if (this.context = [{
|
|
43
|
+
or: !0,
|
|
44
|
+
instructions: []
|
|
45
|
+
}], this.parsePattern(r), this.context.length !== 1)
|
|
46
|
+
throw new Error("Non-finalized contexts left when pattern parse ended");
|
|
47
|
+
var n = this.context[0], i = n.branches, o = n.instructions;
|
|
48
|
+
if (i)
|
|
49
|
+
return {
|
|
50
|
+
op: "|",
|
|
51
|
+
args: i.concat([a(o)])
|
|
52
|
+
};
|
|
53
|
+
if (o.length === 0)
|
|
54
|
+
throw new Error("Pattern is required");
|
|
55
|
+
return o.length === 1 ? o[0] : o;
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
key: "startContext",
|
|
59
|
+
value: function(r) {
|
|
60
|
+
this.context.push(r);
|
|
24
61
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, [N]), A(() => {
|
|
30
|
-
const o = r.current, m = a.current;
|
|
31
|
-
if (m !== n) {
|
|
32
|
-
const f = c.current, u = l(o);
|
|
33
|
-
n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
|
|
62
|
+
}, {
|
|
63
|
+
key: "endContext",
|
|
64
|
+
value: function() {
|
|
65
|
+
this.context.pop();
|
|
34
66
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
67
|
+
}, {
|
|
68
|
+
key: "getContext",
|
|
69
|
+
value: function() {
|
|
70
|
+
return this.context[this.context.length - 1];
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "parsePattern",
|
|
74
|
+
value: function(r) {
|
|
75
|
+
if (!r)
|
|
76
|
+
throw new Error("Pattern is required");
|
|
77
|
+
var n = r.match(w);
|
|
78
|
+
if (!n) {
|
|
79
|
+
if (C.test(r))
|
|
80
|
+
throw new Error("Illegal characters found in a pattern: ".concat(r));
|
|
81
|
+
this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
var i = n[1], o = r.slice(0, n.index), c = r.slice(n.index + i.length);
|
|
85
|
+
switch (i) {
|
|
86
|
+
case "(?:":
|
|
87
|
+
o && this.parsePattern(o), this.startContext({
|
|
88
|
+
or: !0,
|
|
89
|
+
instructions: [],
|
|
90
|
+
branches: []
|
|
91
|
+
});
|
|
92
|
+
break;
|
|
93
|
+
case ")":
|
|
94
|
+
if (!this.getContext().or)
|
|
95
|
+
throw new Error('")" operator must be preceded by "(?:" operator');
|
|
96
|
+
if (o && this.parsePattern(o), this.getContext().instructions.length === 0)
|
|
97
|
+
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
98
|
+
var h = this.getContext(), u = h.branches;
|
|
99
|
+
u.push(a(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
100
|
+
op: "|",
|
|
101
|
+
args: u
|
|
102
|
+
});
|
|
103
|
+
break;
|
|
104
|
+
case "|":
|
|
105
|
+
if (!this.getContext().or)
|
|
106
|
+
throw new Error('"|" operator can only be used inside "or" groups');
|
|
107
|
+
if (o && this.parsePattern(o), !this.getContext().branches)
|
|
108
|
+
if (this.context.length === 1)
|
|
109
|
+
this.getContext().branches = [];
|
|
110
|
+
else
|
|
111
|
+
throw new Error('"branches" not found in an "or" group context');
|
|
112
|
+
this.getContext().branches.push(a(this.getContext().instructions)), this.getContext().instructions = [];
|
|
113
|
+
break;
|
|
114
|
+
case "[":
|
|
115
|
+
o && this.parsePattern(o), this.startContext({
|
|
116
|
+
oneOfSet: !0
|
|
44
117
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
118
|
+
break;
|
|
119
|
+
case "]":
|
|
120
|
+
if (!this.getContext().oneOfSet)
|
|
121
|
+
throw new Error('"]" operator must be preceded by "[" operator');
|
|
122
|
+
this.endContext(), this.getContext().instructions.push({
|
|
123
|
+
op: "[]",
|
|
124
|
+
args: b(o)
|
|
125
|
+
});
|
|
126
|
+
break;
|
|
127
|
+
/* istanbul ignore next */
|
|
128
|
+
default:
|
|
129
|
+
throw new Error("Unknown operator: ".concat(i));
|
|
130
|
+
}
|
|
131
|
+
c && this.parsePattern(c);
|
|
132
|
+
}
|
|
133
|
+
}]);
|
|
134
|
+
})();
|
|
135
|
+
function b(t) {
|
|
136
|
+
for (var e = [], r = 0; r < t.length; ) {
|
|
137
|
+
if (t[r] === "-") {
|
|
138
|
+
if (r === 0 || r === t.length - 1)
|
|
139
|
+
throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
|
|
140
|
+
for (var n = t[r - 1].charCodeAt(0) + 1, i = t[r + 1].charCodeAt(0) - 1, o = n; o <= i; )
|
|
141
|
+
e.push(String.fromCharCode(o)), o++;
|
|
52
142
|
} else
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
r.current = o ? getComputedStyle(o) : null, t(o);
|
|
58
|
-
}, [])
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function l(n) {
|
|
62
|
-
return n?.animationName || "none";
|
|
143
|
+
e.push(t[r]);
|
|
144
|
+
r++;
|
|
145
|
+
}
|
|
146
|
+
return e;
|
|
63
147
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
148
|
+
var C = /[\(\)\[\]\?\:\|]/, w = new RegExp(
|
|
149
|
+
// any of:
|
|
150
|
+
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
151
|
+
);
|
|
152
|
+
function a(t) {
|
|
153
|
+
return t.length === 1 ? t[0] : t;
|
|
67
154
|
}
|
|
68
155
|
export {
|
|
69
|
-
|
|
156
|
+
y as default
|
|
70
157
|
};
|
|
71
158
|
//# sourceMappingURL=index183.js.map
|
package/dist/index183.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index183.js","sources":["../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","mayWarn"],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AA,EAExB,GAAG,CAACL,GAAMK,CAAI,CAAC,GACR;AAAA,IACL,WAAW,CAAC,WAAW,kBAAkB,EAAE,SAASlB,CAAK;AAAA,IACzD,KAAKS,EAAO,YAAY,CAACsB,MAAU;AACjC,MAAAhB,EAAU,UAAUgB,IAAQ,iBAAiBA,CAAK,IAAI,MACtDjB,EAAQiB,CAAK;AAAA,IACf,GAAG,CAAA,CAAE;AAAA,EACT;AACA;AACA,SAASX,EAAiBE,GAAQ;AAChC,SAAOA,GAAQ,iBAAiB;AAClC;AACA,SAASV,EAAcoB,GAAS;AAC9B,MAAIC,IAAS,OAAO,yBAAyBD,EAAQ,OAAO,KAAK,GAAG,KAChEE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index183.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar PatternParser = /*#__PURE__*/function () {\n function PatternParser() {\n _classCallCheck(this, PatternParser);\n }\n return _createClass(PatternParser, [{\n key: \"parse\",\n value: function parse(pattern) {\n this.context = [{\n or: true,\n instructions: []\n }];\n this.parsePattern(pattern);\n if (this.context.length !== 1) {\n throw new Error('Non-finalized contexts left when pattern parse ended');\n }\n var _this$context$ = this.context[0],\n branches = _this$context$.branches,\n instructions = _this$context$.instructions;\n if (branches) {\n return {\n op: '|',\n args: branches.concat([expandSingleElementArray(instructions)])\n };\n }\n\n /* istanbul ignore if */\n if (instructions.length === 0) {\n throw new Error('Pattern is required');\n }\n if (instructions.length === 1) {\n return instructions[0];\n }\n return instructions;\n }\n }, {\n key: \"startContext\",\n value: function startContext(context) {\n this.context.push(context);\n }\n }, {\n key: \"endContext\",\n value: function endContext() {\n this.context.pop();\n }\n }, {\n key: \"getContext\",\n value: function getContext() {\n return this.context[this.context.length - 1];\n }\n }, {\n key: \"parsePattern\",\n value: function parsePattern(pattern) {\n if (!pattern) {\n throw new Error('Pattern is required');\n }\n var match = pattern.match(OPERATOR);\n if (!match) {\n if (ILLEGAL_CHARACTER_REGEXP.test(pattern)) {\n throw new Error(\"Illegal characters found in a pattern: \".concat(pattern));\n }\n this.getContext().instructions = this.getContext().instructions.concat(pattern.split(''));\n return;\n }\n var operator = match[1];\n var before = pattern.slice(0, match.index);\n var rightPart = pattern.slice(match.index + operator.length);\n switch (operator) {\n case '(?:':\n if (before) {\n this.parsePattern(before);\n }\n this.startContext({\n or: true,\n instructions: [],\n branches: []\n });\n break;\n case ')':\n if (!this.getContext().or) {\n throw new Error('\")\" operator must be preceded by \"(?:\" operator');\n }\n if (before) {\n this.parsePattern(before);\n }\n if (this.getContext().instructions.length === 0) {\n throw new Error('No instructions found after \"|\" operator in an \"or\" group');\n }\n var _this$getContext = this.getContext(),\n branches = _this$getContext.branches;\n branches.push(expandSingleElementArray(this.getContext().instructions));\n this.endContext();\n this.getContext().instructions.push({\n op: '|',\n args: branches\n });\n break;\n case '|':\n if (!this.getContext().or) {\n throw new Error('\"|\" operator can only be used inside \"or\" groups');\n }\n if (before) {\n this.parsePattern(before);\n }\n // The top-level is an implicit \"or\" group, if required.\n if (!this.getContext().branches) {\n // `branches` are not defined only for the root implicit \"or\" operator.\n /* istanbul ignore else */\n if (this.context.length === 1) {\n this.getContext().branches = [];\n } else {\n throw new Error('\"branches\" not found in an \"or\" group context');\n }\n }\n this.getContext().branches.push(expandSingleElementArray(this.getContext().instructions));\n this.getContext().instructions = [];\n break;\n case '[':\n if (before) {\n this.parsePattern(before);\n }\n this.startContext({\n oneOfSet: true\n });\n break;\n case ']':\n if (!this.getContext().oneOfSet) {\n throw new Error('\"]\" operator must be preceded by \"[\" operator');\n }\n this.endContext();\n this.getContext().instructions.push({\n op: '[]',\n args: parseOneOfSet(before)\n });\n break;\n\n /* istanbul ignore next */\n default:\n throw new Error(\"Unknown operator: \".concat(operator));\n }\n if (rightPart) {\n this.parsePattern(rightPart);\n }\n }\n }]);\n}();\nexport { PatternParser as default };\nfunction parseOneOfSet(pattern) {\n var values = [];\n var i = 0;\n while (i < pattern.length) {\n if (pattern[i] === '-') {\n if (i === 0 || i === pattern.length - 1) {\n throw new Error(\"Couldn't parse a one-of set pattern: \".concat(pattern));\n }\n var prevValue = pattern[i - 1].charCodeAt(0) + 1;\n var nextValue = pattern[i + 1].charCodeAt(0) - 1;\n var value = prevValue;\n while (value <= nextValue) {\n values.push(String.fromCharCode(value));\n value++;\n }\n } else {\n values.push(pattern[i]);\n }\n i++;\n }\n return values;\n}\nvar ILLEGAL_CHARACTER_REGEXP = /[\\(\\)\\[\\]\\?\\:\\|]/;\nvar OPERATOR = new RegExp(\n// any of:\n'(' +\n// or operator\n'\\\\|' +\n// or\n'|' +\n// or group start\n'\\\\(\\\\?\\\\:' +\n// or\n'|' +\n// or group end\n'\\\\)' +\n// or\n'|' +\n// one-of set start\n'\\\\[' +\n// or\n'|' +\n// one-of set end\n'\\\\]' + ')');\nfunction expandSingleElementArray(array) {\n if (array.length === 1) {\n return array[0];\n }\n return array;\n}\n//# sourceMappingURL=AsYouTypeFormatter.PatternParser.js.map"],"names":["_typeof","o","_classCallCheck","a","n","_defineProperties","e","r","t","_toPropertyKey","_createClass","i","_toPrimitive","PatternParser","pattern","_this$context$","branches","instructions","expandSingleElementArray","context","match","OPERATOR","ILLEGAL_CHARACTER_REGEXP","operator","before","rightPart","_this$getContext","parseOneOfSet","values","prevValue","nextValue","value","array"],"mappings":"AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAgBC,GAAGC,GAAG;AAAE,MAAI,EAAED,aAAaC,GAAI,OAAM,IAAI,UAAU,mCAAmC;AAAG;AAClH,SAASC,EAAkBC,GAAGC,GAAG;AAAE,WAASC,IAAI,GAAGA,IAAID,EAAE,QAAQC,KAAK;AAAE,QAAIP,IAAIM,EAAEC,CAAC;AAAG,IAAAP,EAAE,aAAaA,EAAE,cAAc,IAAIA,EAAE,eAAe,IAAI,WAAWA,MAAMA,EAAE,WAAW,KAAK,OAAO,eAAeK,GAAGG,EAAeR,EAAE,GAAG,GAAGA,C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Q;AACzB,QAAIA,EAAQH,CAAC,MAAM,KAAK;AACtB,UAAIA,MAAM,KAAKA,MAAMG,EAAQ,SAAS;AACpC,cAAM,IAAI,MAAM,wCAAwC,OAAOA,CAAO,CAAC;AAKzE,eAHIe,IAAYf,EAAQH,IAAI,CAAC,EAAE,WAAW,CAAC,IAAI,GAC3CmB,IAAYhB,EAAQH,IAAI,CAAC,EAAE,WAAW,CAAC,IAAI,GAC3CoB,IAAQF,GACLE,KAASD;AACd,QAAAF,EAAO,KAAK,OAAO,aAAaG,CAAK,CAAC,GACtCA;AAAA,IAEJ;AACE,MAAAH,EAAO,KAAKd,EAAQH,CAAC,CAAC;AAExB,IAAAA;AAAA,EACF;AACA,SAAOiB;AACT;AACA,IAAIN,IAA2B,oBAC3BD,IAAW,IAAI;AAAA;AAAA,EAEnB;AAkBW;AACX,SAASH,EAAyBc,GAAO;AACvC,SAAIA,EAAM,WAAW,IACZA,EAAM,CAAC,IAETA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index184.js
CHANGED
|
@@ -1,184 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
var te = s.forwardRef((e, r) => {
|
|
20
|
-
const {
|
|
21
|
-
__scopeRovingFocusGroup: c,
|
|
22
|
-
orientation: o,
|
|
23
|
-
loop: T = !1,
|
|
24
|
-
dir: w,
|
|
25
|
-
currentTabStopId: v,
|
|
26
|
-
defaultCurrentTabStopId: C,
|
|
27
|
-
onCurrentTabStopIdChange: S,
|
|
28
|
-
onEntryFocus: m,
|
|
29
|
-
preventScrollOnEntryFocus: u = !1,
|
|
30
|
-
...b
|
|
31
|
-
} = e, F = s.useRef(null), g = V(r, F), R = W(w), [E, t] = Q({
|
|
32
|
-
prop: v,
|
|
33
|
-
defaultProp: C ?? null,
|
|
34
|
-
onChange: S,
|
|
35
|
-
caller: I
|
|
36
|
-
}), [i, h] = s.useState(!1), a = J(m), l = N(c), x = s.useRef(!1), [k, D] = s.useState(0);
|
|
37
|
-
return s.useEffect(() => {
|
|
38
|
-
const n = F.current;
|
|
39
|
-
if (n)
|
|
40
|
-
return n.addEventListener(_, a), () => n.removeEventListener(_, a);
|
|
41
|
-
}, [a]), /* @__PURE__ */ d.jsx(
|
|
42
|
-
ee,
|
|
43
|
-
{
|
|
44
|
-
scope: c,
|
|
45
|
-
orientation: o,
|
|
46
|
-
dir: R,
|
|
47
|
-
loop: T,
|
|
48
|
-
currentTabStopId: E,
|
|
49
|
-
onItemFocus: s.useCallback(
|
|
50
|
-
(n) => t(n),
|
|
51
|
-
[t]
|
|
52
|
-
),
|
|
53
|
-
onItemShiftTab: s.useCallback(() => h(!0), []),
|
|
54
|
-
onFocusableItemAdd: s.useCallback(
|
|
55
|
-
() => D((n) => n + 1),
|
|
56
|
-
[]
|
|
57
|
-
),
|
|
58
|
-
onFocusableItemRemove: s.useCallback(
|
|
59
|
-
() => D((n) => n - 1),
|
|
60
|
-
[]
|
|
61
|
-
),
|
|
62
|
-
children: /* @__PURE__ */ d.jsx(
|
|
63
|
-
G.div,
|
|
64
|
-
{
|
|
65
|
-
tabIndex: i || k === 0 ? -1 : 0,
|
|
66
|
-
"data-orientation": o,
|
|
67
|
-
...b,
|
|
68
|
-
ref: g,
|
|
69
|
-
style: { outline: "none", ...e.style },
|
|
70
|
-
onMouseDown: p(e.onMouseDown, () => {
|
|
71
|
-
x.current = !0;
|
|
72
|
-
}),
|
|
73
|
-
onFocus: p(e.onFocus, (n) => {
|
|
74
|
-
const L = !x.current;
|
|
75
|
-
if (n.target === n.currentTarget && L && !i) {
|
|
76
|
-
const P = new CustomEvent(_, X);
|
|
77
|
-
if (n.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
78
|
-
const A = l().filter((f) => f.focusable), U = A.find((f) => f.active), B = A.find((f) => f.id === E), Y = [U, B, ...A].filter(
|
|
79
|
-
Boolean
|
|
80
|
-
).map((f) => f.ref.current);
|
|
81
|
-
M(Y, u);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
x.current = !1;
|
|
85
|
-
}),
|
|
86
|
-
onBlur: p(e.onBlur, () => h(!1))
|
|
87
|
-
}
|
|
88
|
-
)
|
|
1
|
+
import o from "./index100.js";
|
|
2
|
+
import l from "./index182.js";
|
|
3
|
+
function u(e, n, r) {
|
|
4
|
+
if (n === void 0 && (n = {}), r = new o(r), n.v2) {
|
|
5
|
+
if (!e.countryCallingCode)
|
|
6
|
+
throw new Error("Invalid phone number object passed");
|
|
7
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
8
|
+
} else {
|
|
9
|
+
if (!e.phone)
|
|
10
|
+
return !1;
|
|
11
|
+
if (e.country) {
|
|
12
|
+
if (!r.hasCountry(e.country))
|
|
13
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
14
|
+
r.selectNumberingPlan(e.country);
|
|
15
|
+
} else {
|
|
16
|
+
if (!e.countryCallingCode)
|
|
17
|
+
throw new Error("Invalid phone number object passed");
|
|
18
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
89
19
|
}
|
|
90
|
-
);
|
|
91
|
-
}), K = "RovingFocusGroupItem", j = s.forwardRef(
|
|
92
|
-
(e, r) => {
|
|
93
|
-
const {
|
|
94
|
-
__scopeRovingFocusGroup: c,
|
|
95
|
-
focusable: o = !0,
|
|
96
|
-
active: T = !1,
|
|
97
|
-
tabStopId: w,
|
|
98
|
-
children: v,
|
|
99
|
-
...C
|
|
100
|
-
} = e, S = q(), m = w || S, u = oe(K, c), b = u.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = u;
|
|
101
|
-
return s.useEffect(() => {
|
|
102
|
-
if (o)
|
|
103
|
-
return g(), () => R();
|
|
104
|
-
}, [o, g, R]), /* @__PURE__ */ d.jsx(
|
|
105
|
-
y.ItemSlot,
|
|
106
|
-
{
|
|
107
|
-
scope: c,
|
|
108
|
-
id: m,
|
|
109
|
-
focusable: o,
|
|
110
|
-
active: T,
|
|
111
|
-
children: /* @__PURE__ */ d.jsx(
|
|
112
|
-
G.span,
|
|
113
|
-
{
|
|
114
|
-
tabIndex: b ? 0 : -1,
|
|
115
|
-
"data-orientation": u.orientation,
|
|
116
|
-
...C,
|
|
117
|
-
ref: r,
|
|
118
|
-
onMouseDown: p(e.onMouseDown, (t) => {
|
|
119
|
-
o ? u.onItemFocus(m) : t.preventDefault();
|
|
120
|
-
}),
|
|
121
|
-
onFocus: p(e.onFocus, () => u.onItemFocus(m)),
|
|
122
|
-
onKeyDown: p(e.onKeyDown, (t) => {
|
|
123
|
-
if (t.key === "Tab" && t.shiftKey) {
|
|
124
|
-
u.onItemShiftTab();
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
if (t.target !== t.currentTarget) return;
|
|
128
|
-
const i = se(t, u.orientation, u.dir);
|
|
129
|
-
if (i !== void 0) {
|
|
130
|
-
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
131
|
-
t.preventDefault();
|
|
132
|
-
let a = F().filter((l) => l.focusable).map((l) => l.ref.current);
|
|
133
|
-
if (i === "last") a.reverse();
|
|
134
|
-
else if (i === "prev" || i === "next") {
|
|
135
|
-
i === "prev" && a.reverse();
|
|
136
|
-
const l = a.indexOf(t.currentTarget);
|
|
137
|
-
a = u.loop ? ce(a, l + 1) : a.slice(l + 1);
|
|
138
|
-
}
|
|
139
|
-
setTimeout(() => M(a));
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
20
|
}
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
ArrowRight: "next",
|
|
154
|
-
ArrowDown: "next",
|
|
155
|
-
PageUp: "first",
|
|
156
|
-
Home: "first",
|
|
157
|
-
PageDown: "last",
|
|
158
|
-
End: "last"
|
|
159
|
-
};
|
|
160
|
-
function ne(e, r) {
|
|
161
|
-
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
162
|
-
}
|
|
163
|
-
function se(e, r, c) {
|
|
164
|
-
const o = ne(e.key, c);
|
|
165
|
-
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
166
|
-
return re[o];
|
|
167
|
-
}
|
|
168
|
-
function M(e, r = !1) {
|
|
169
|
-
const c = document.activeElement;
|
|
170
|
-
for (const o of e)
|
|
171
|
-
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
|
21
|
+
if (r.possibleLengths())
|
|
22
|
+
return s(e.phone || e.nationalNumber, e.country, r);
|
|
23
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
|
|
24
|
+
return !0;
|
|
25
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
172
26
|
}
|
|
173
|
-
function
|
|
174
|
-
return e
|
|
27
|
+
function s(e, n, r) {
|
|
28
|
+
return l(e, n, r) === "IS_POSSIBLE";
|
|
175
29
|
}
|
|
176
|
-
var ge = O, Re = j;
|
|
177
30
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
O as RovingFocusGroup,
|
|
181
|
-
j as RovingFocusGroupItem,
|
|
182
|
-
Fe as createRovingFocusGroupScope
|
|
31
|
+
u as default,
|
|
32
|
+
s as isPossibleNumber
|
|
183
33
|
};
|
|
184
34
|
//# sourceMappingURL=index184.js.map
|
package/dist/index184.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index184.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","children","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":";;;;;;;;;;;AAcA,IAAIA,IAAc,iCACdC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAI,GAClDC,IAAa,oBACb,CAACC,GAAYC,GAAeC,CAAqB,IAAIC,EAAiBJ,CAAU,GAChF,CAACK,GAA+BC,EAA2B,IAAIC;AAAA,EACjEP;AAAA,EACA,CAACG,CAAqB;AACxB,GACI,CAACK,IAAqBC,EAAqB,IAAIJ,EAA8BL,CAAU,GACvFU,IAAmBC,EAAM;AAAA,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QACA;AAAA,MACA;AAAA,IACA;AAAA,EACE;AACF;AACAH,EAAqB,cAAcD;AACnC,IAAIiB,KAA0B;AAAA,EAC5B,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,KAAK;AACP;AACA,SAASC,GAAqBC,GAAKxD,GAAK;AACtC,SAAIA,MAAQ,QAAcwD,IACnBA,MAAQ,cAAc,eAAeA,MAAQ,eAAe,cAAcA;AACnF;AACA,SAASL,GAAevB,GAAO9B,GAAaE,GAAK;AAC/C,QAAMwD,IAAMD,GAAqB3B,EAAM,KAAK5B,CAAG;AAC/C,MAAI,EAAAF,MAAgB,cAAc,CAAC,aAAa,YAAY,EAAE,SAAS0D,CAAG,MACtE,EAAA1D,MAAgB,gBAAgB,CAAC,WAAW,WAAW,EAAE,SAAS0D,CAAG;AACzE,WAAOF,GAAwBE,CAAG;AACpC;AACA,SAASpB,EAAWqB,GAAYC,IAAgB,IAAO;AACrD,QAAMC,IAA6B,SAAS;AAC5C,aAAWC,KAAaH;AAGtB,QAFIG,MAAcD,MAClBC,EAAU,MAAM,EAAE,eAAAF,GAAe,GAC7B,SAAS,kBAAkBC,GAA4B;AAE/D;AACA,SAASN,GAAUQ,GAAOC,GAAY;AACpC,SAAOD,EAAM,IAAI,CAACE,GAAGC,MAAUH,GAAOC,IAAaE,KAASH,EAAM,MAAM,CAAC;AAC3E;AACG,IAACI,KAAO1E,GACP2E,KAAO5B;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index184.js","sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n metadata = new Metadata(metadata);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old metadata (< 1.0.18) had no \"possible length\" data.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, country, metadata) {\n //, isInternational) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"names":["isPossiblePhoneNumber","input","options","metadata","Metadata","isPossibleNumber","nationalNumber","country","checkNumberLength"],"mappings":";;AAgBe,SAASA,EAAsBC,GAAOC,GAASC,GAAU;AAMtE,MAJID,MAAY,WACdA,IAAU,CAAA,IAEZC,IAAW,IAAIC,EAASD,CAAQ,GAC5BD,EAAQ,IAAI;AACd,QAAI,CAACD,EAAM;AACT,YAAM,IAAI,MAAM,oCAAoC;AAEtD,IAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,EACvD,OAAO;AACL,QAAI,CAACA,EAAM;AACT,aAAO;AAET,QAAIA,EAAM,SAAS;AACjB,UAAI,CAACE,EAAS,WAAWF,EAAM,OAAO;AACpC,cAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,MAAAE,EAAS,oBAAoBF,EAAM,OAAO;AAAA,IAC5C,OAAO;AACL,UAAI,CAACA,EAAM;AACT,cAAM,IAAI,MAAM,oCAAoC;AAEtD,MAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,IACvD;AAAA,EACF;AAGA,MAAIE,EAAS;AACX,WAAOE,EAAiBJ,EAAM,SAASA,EAAM,gBAAgBA,EAAM,SAASE,CAAQ;AAQpF,MAAIF,EAAM,sBAAsBE,EAAS,2BAA2BF,EAAM,kBAAkB;AAG1F,WAAO;AAEP,QAAM,IAAI,MAAM,gGAAgG;AAGtH;AACO,SAASI,EAAiBC,GAAgBC,GAASJ,GAAU;AAElE,SAAQK,EAAkBF,GAAgBC,GAASJ,CAAQ,MACpD;AAST;","x_google_ignoreList":[0]}
|
package/dist/index185.js
CHANGED
|
@@ -1,50 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
-
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
|
|
13
|
-
});
|
|
14
|
-
return t.displayName = `${e}.Slot`, t;
|
|
15
|
-
}
|
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
|
17
|
-
function y(e) {
|
|
18
|
-
const r = l.forwardRef((t, o) => {
|
|
19
|
-
const { children: n, ...i } = t;
|
|
20
|
-
if (l.isValidElement(n)) {
|
|
21
|
-
const c = R(n), s = C(i, n.props);
|
|
22
|
-
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
-
}
|
|
24
|
-
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
-
});
|
|
26
|
-
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
-
}
|
|
28
|
-
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
-
function g(e) {
|
|
30
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
|
-
}
|
|
32
|
-
function C(e, r) {
|
|
33
|
-
const t = { ...r };
|
|
34
|
-
for (const o in r) {
|
|
35
|
-
const n = e[o], i = r[o];
|
|
36
|
-
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
-
const a = i(...s);
|
|
38
|
-
return n(...s), a;
|
|
39
|
-
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
-
}
|
|
41
|
-
return { ...e, ...t };
|
|
42
|
-
}
|
|
43
|
-
function R(e) {
|
|
44
|
-
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
-
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
1
|
+
import m from "./index100.js";
|
|
2
|
+
import o from "./index199.js";
|
|
3
|
+
import u from "./index186.js";
|
|
4
|
+
function b(e, n, r) {
|
|
5
|
+
if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
|
6
|
+
return u(e, n, r.metadata) !== void 0;
|
|
7
|
+
var l = n.v2 ? e.nationalNumber : e.phone;
|
|
8
|
+
return o(l, r.nationalNumberPattern());
|
|
46
9
|
}
|
|
47
10
|
export {
|
|
48
|
-
|
|
11
|
+
b as default
|
|
49
12
|
};
|
|
50
13
|
//# sourceMappingURL=index185.js.map
|