@rpcbase/ui 0.157.0 → 0.158.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/index.js +67 -24680
- package/dist/index.js.map +1 -1
- package/dist/index10.js +73 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +8 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +10 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +9 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +8 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +9 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +8 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +12 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +9 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +8 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +8 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +483 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +10 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +149 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +43 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +8 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +11 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +17 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +17 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +11 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +35 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +14 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +130 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +14 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +12 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +17 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +105 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +23 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +57 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +76 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +13 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +24 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +20 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +79 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +27 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +10 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +9 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +27 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +38 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +19 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +10 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +8 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +8 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +8 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +735 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +8 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +7 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +10 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +27 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +11 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +10 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +9 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +7 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +7 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +8 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.js +26 -0
- package/dist/index15.js.map +1 -0
- package/dist/index150.js +7 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.js +8 -0
- package/dist/index151.js.map +1 -0
- package/dist/index152.js +7 -0
- package/dist/index152.js.map +1 -0
- package/dist/index153.js +7 -0
- package/dist/index153.js.map +1 -0
- package/dist/index154.js +7 -0
- package/dist/index154.js.map +1 -0
- package/dist/index155.js +7 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +37 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +253 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +118 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +223 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +21 -0
- package/dist/index16.js.map +1 -0
- package/dist/index160.js +70 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +24 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +213 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +323 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +134 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +24 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +79 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +22 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +105 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +8 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +390 -0
- package/dist/index17.js.map +1 -0
- package/dist/index170.js +18 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +5 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +11 -0
- package/dist/index172.js.map +1 -0
- package/dist/index173.js +330 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +53 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +609 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +50 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +15 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +209 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +25 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +662 -0
- package/dist/index18.js.map +1 -0
- package/dist/index180.js +28 -0
- package/dist/index180.js.map +1 -0
- package/dist/index181.js +403 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +50 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +9 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +72 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +5 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +367 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +265 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +64 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +50 -0
- package/dist/index189.js.map +1 -0
- package/dist/index19.js +661 -0
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +173 -0
- package/dist/index190.js.map +1 -0
- package/dist/index191.js +113 -0
- package/dist/index191.js.map +1 -0
- package/dist/index192.js +28 -0
- package/dist/index192.js.map +1 -0
- package/dist/index193.js +11 -0
- package/dist/index193.js.map +1 -0
- package/dist/index194.js +8 -0
- package/dist/index194.js.map +1 -0
- package/dist/index195.js +9 -0
- package/dist/index195.js.map +1 -0
- package/dist/index196.js +8 -0
- package/dist/index196.js.map +1 -0
- package/dist/index197.js +470 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +189 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +111 -0
- package/dist/index199.js.map +1 -0
- package/dist/index2.js +9 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +204 -0
- package/dist/index20.js.map +1 -0
- package/dist/index200.js +266 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +13 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +46 -0
- package/dist/index202.js.map +1 -0
- package/dist/index203.js +8 -0
- package/dist/index203.js.map +1 -0
- package/dist/index204.js +5 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +71 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +88 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +50 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +11 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +8 -0
- package/dist/index209.js.map +1 -0
- package/dist/index21.js +8 -0
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +55 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +20 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +9 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +9 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +62 -0
- package/dist/index214.js.map +1 -0
- package/dist/index215.js +70 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +10 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +8 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +11 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +21 -0
- package/dist/index219.js.map +1 -0
- package/dist/index22.js +38 -0
- package/dist/index22.js.map +1 -0
- package/dist/index220.js +9 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +9 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +17 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +14 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +18 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +18 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +9 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +10 -0
- package/dist/index227.js.map +1 -0
- package/dist/index228.js +11 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +10 -0
- package/dist/index229.js.map +1 -0
- package/dist/index23.js +272 -0
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +13 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +9 -0
- package/dist/index231.js.map +1 -0
- package/dist/index232.js +9 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +13 -0
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +9 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +9 -0
- package/dist/index235.js.map +1 -0
- package/dist/index236.js +8 -0
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +15 -0
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +14 -0
- package/dist/index238.js.map +1 -0
- package/dist/index239.js +14 -0
- package/dist/index239.js.map +1 -0
- package/dist/index24.js +184 -0
- package/dist/index24.js.map +1 -0
- package/dist/index240.js +15 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +15 -0
- package/dist/index241.js.map +1 -0
- package/dist/index242.js +14 -0
- package/dist/index242.js.map +1 -0
- package/dist/index243.js +11 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +10 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +9 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +10 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +11 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +10 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +59 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +18 -0
- package/dist/index25.js.map +1 -0
- package/dist/index250.js +12 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +23 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +27 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +20 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +11 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +14 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +14 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +25 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +14 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +13 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +2766 -0
- package/dist/index26.js.map +1 -0
- package/dist/index260.js +13 -0
- package/dist/index260.js.map +1 -0
- package/dist/index261.js +8 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +9 -0
- package/dist/index262.js.map +1 -0
- package/dist/index263.js +20 -0
- package/dist/index263.js.map +1 -0
- package/dist/index264.js +13 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +22 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +19 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +16 -0
- package/dist/index267.js.map +1 -0
- package/dist/index268.js +33 -0
- package/dist/index268.js.map +1 -0
- package/dist/index269.js +16 -0
- package/dist/index269.js.map +1 -0
- package/dist/index27.js +40 -0
- package/dist/index27.js.map +1 -0
- package/dist/index270.js +29 -0
- package/dist/index270.js.map +1 -0
- package/dist/index271.js +9 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +68 -0
- package/dist/index272.js.map +1 -0
- package/dist/index273.js +52 -0
- package/dist/index273.js.map +1 -0
- package/dist/index274.js +43 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +104 -0
- package/dist/index275.js.map +1 -0
- package/dist/index276.js +101 -0
- package/dist/index276.js.map +1 -0
- package/dist/index277.js +103 -0
- package/dist/index277.js.map +1 -0
- package/dist/index278.js +7 -0
- package/dist/index278.js.map +1 -0
- package/dist/index279.js +71 -0
- package/dist/index279.js.map +1 -0
- package/dist/index28.js +6 -0
- package/dist/index28.js.map +1 -0
- package/dist/index280.js +184 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +50 -0
- package/dist/index281.js.map +1 -0
- package/dist/index282.js +28 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +32 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +8 -0
- package/dist/index284.js.map +1 -0
- package/dist/index285.js +17 -0
- package/dist/index285.js.map +1 -0
- package/dist/index286.js +158 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +34 -0
- package/dist/index287.js.map +1 -0
- package/dist/index288.js +13 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +51 -0
- package/dist/index289.js.map +1 -0
- package/dist/index29.js +51 -0
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +15 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +48 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +99 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +90 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +109 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +56 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +15 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +41 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +12 -0
- package/dist/index298.js.map +1 -0
- package/dist/index299.js +120 -0
- package/dist/index299.js.map +1 -0
- package/dist/index3.js +5 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +223 -0
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +21 -0
- package/dist/index300.js.map +1 -0
- package/dist/index301.js +19 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +7 -0
- package/dist/index302.js.map +1 -0
- package/dist/index303.js +40 -0
- package/dist/index303.js.map +1 -0
- package/dist/index304.js +24 -0
- package/dist/index304.js.map +1 -0
- package/dist/index305.js +13 -0
- package/dist/index305.js.map +1 -0
- package/dist/index306.js +12 -0
- package/dist/index306.js.map +1 -0
- package/dist/index307.js +23 -0
- package/dist/index307.js.map +1 -0
- package/dist/index308.js +32 -0
- package/dist/index308.js.map +1 -0
- package/dist/index309.js +20 -0
- package/dist/index309.js.map +1 -0
- package/dist/index31.js +47 -0
- package/dist/index31.js.map +1 -0
- package/dist/index310.js +5 -0
- package/dist/index310.js.map +1 -0
- package/dist/index311.js +5 -0
- package/dist/index311.js.map +1 -0
- package/dist/index312.js +8 -0
- package/dist/index312.js.map +1 -0
- package/dist/index313.js +22 -0
- package/dist/index313.js.map +1 -0
- package/dist/index314.js +16 -0
- package/dist/index314.js.map +1 -0
- package/dist/index315.js +8 -0
- package/dist/index315.js.map +1 -0
- package/dist/index316.js +6 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +27 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +116 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +19 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +44 -0
- package/dist/index32.js.map +1 -0
- package/dist/index320.js +528 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +131 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +137 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +24 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +9 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +9 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +7 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +19 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +12 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +32 -0
- package/dist/index33.js.map +1 -0
- package/dist/index330.js +8 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +549 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +50 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +21 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +10 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +12 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +11 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +12 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +16 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +13 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +49 -0
- package/dist/index34.js.map +1 -0
- package/dist/index340.js +17 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +72 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +12 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +17 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +69 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +68 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +8 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +59 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +71 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +34 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +35 -0
- package/dist/index35.js.map +1 -0
- package/dist/index350.js +12 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +156 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +111 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +7 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +26 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +19 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +32 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +16 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +10 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +26 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +31 -0
- package/dist/index36.js.map +1 -0
- package/dist/index360.js +16 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +31 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +8 -0
- package/dist/index362.js.map +1 -0
- package/dist/index37.js +26 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +132 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +235 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +27 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +54 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +2644 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +397 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +236 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +25 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +145 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +190 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +80 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +94 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +9 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +48 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +847 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +69 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +11 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +5 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +27 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +237 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +208 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +7 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +10 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +51 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +33 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +30 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +54 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +11 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +128 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +18 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +137 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +14 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +220 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +16 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +37 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +36 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +50 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +11 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +53 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +7 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +9 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +31 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +53 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +12 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +57 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +9 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +230 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +11 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +9 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +5 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +5 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +55 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +8 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +8 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +19 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +9 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +11 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +27 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +20 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +8 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +8 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +9 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +9 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +8 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +8 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +10 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +28 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +10 -0
- package/dist/index99.js.map +1 -0
- package/package.json +4 -1
package/dist/index306.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VALID_DIGITS as A } from "./index193.js";
|
|
2
|
+
var g = ";ext=", t = function(a) {
|
|
3
|
+
return "([".concat(A, "]{1,").concat(a, "})");
|
|
4
|
+
};
|
|
5
|
+
function D(x) {
|
|
6
|
+
var a = "20", o = "15", i = "9", F = "6", n = "[ \\t,]*", e = "[:\\..]?[ \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
|
|
7
|
+
return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
D as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index306.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index306.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js"],"sourcesContent":["import { VALID_DIGITS } from '../../constants.js';\n\n// The RFC 3966 format for extensions.\nvar RFC3966_EXTN_PREFIX = ';ext=';\n\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n var extLimitWhenNotSure = '6';\n\n /** @type {string} */\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\";\n // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n /** @type {string} */\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n var optionalExtnSuffix = \"#?\";\n\n // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n /** @type {string} */\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n /** @type {string} */\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n // When extension is not separated clearly.\n /** @type {string} */\n var ambiguousSeparator = \"[- ]+\";\n // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n /** @type {string} */\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\";\n // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n /** @type {string} */\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n /** @type {string} */\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n /** @type {string} */\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n\n // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n//# sourceMappingURL=createExtensionPattern.js.map"],"names":["RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","maxLength","VALID_DIGITS","createExtensionPattern","purpose","extLimitAfterExplicitLabel","extLimitAfterLikelyLabel","extLimitAfterAmbiguousChar","extLimitWhenNotSure","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","explicitExtLabels","ambiguousExtLabels","ambiguousSeparator","possibleSeparatorsNumberExtLabelNoComma","autoDiallingAndExtLabelsFound","rfcExtn","explicitExtn","ambiguousExtn","americanStyleExtnWithSuffix","autoDiallingExtn","onlyCommasExtn"],"mappings":";AAGA,IAAIA,IAAsB,SAOtBC,IAA4B,SAAmCC,GAAW;AAC5E,SAAO,KAAK,OAAOC,GAAc,MAAM,EAAE,OAAOD,GAAW,IAAI;AACjE;AASe,SAASE,EAAuBC,GAAS;AAOtD,MAAIC,IAA6B,MAE7BC,IAA2B,MAE3BC,IAA6B,KAE7BC,IAAsB,KAGtBC,IAA6C,aAG7CC,IAA6B,sBAE7BC,IAAqB,MAKrBC,IAAoB,iDAIpBC,IAAqB,wBAGrBC,IAAqB,SAIrBC,IAA0C,YAM1CC,IAAgC,cAGhCC,IAAUlB,IAAsBC,EAA0BK,CAA0B,GAEpFa,IAAeT,IAA6CG,IAAoBF,IAA6BV,EAA0BK,CAA0B,IAAIM,GAErKQ,IAAgBV,IAA6CI,IAAqBH,IAA6BV,EAA0BO,CAA0B,IAAII,GAEvKS,IAA8BN,IAAqBd,EAA0BQ,CAAmB,IAAI,KAGpGa,IAAmBN,IAA0CC,IAAgCN,IAA6BV,EAA0BM,CAAwB,IAAIK,GAEhLW,IAAiBP,IAA0C,WAAWL,IAA6BV,EAA0BO,CAA0B,IAAII;AAc/J,SAAOM,IAAU,MAAMC,IAAe,MAAMC,IAAgB,MAAMC,IAA8B,MAAMC,IAAmB,MAAMC;AACjI;","x_google_ignoreList":[0]}
|
package/dist/index307.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import c, { getCountryCallingCode as b } from "./index197.js";
|
|
2
|
+
import g from "./index302.js";
|
|
3
|
+
import C from "./index303.js";
|
|
4
|
+
import h from "./index285.js";
|
|
5
|
+
function P(i, r, l, N, n) {
|
|
6
|
+
var e = r || l ? b(r || l, n) : N;
|
|
7
|
+
if (i.indexOf(e) === 0) {
|
|
8
|
+
n = new c(n), n.selectNumberingPlan(r || l, e);
|
|
9
|
+
var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
|
|
10
|
+
if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
|
|
11
|
+
return {
|
|
12
|
+
countryCallingCode: e,
|
|
13
|
+
number: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
number: i
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
P as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index307.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index307.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index308.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function F(l, i) {
|
|
2
|
+
if (l && i.numberingPlan.nationalPrefixForParsing()) {
|
|
3
|
+
var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
|
|
4
|
+
if (n) {
|
|
5
|
+
var r, P, v = n.length - 1, e = v > 0 && n[v];
|
|
6
|
+
if (i.nationalPrefixTransformRule() && e)
|
|
7
|
+
r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
|
|
8
|
+
else {
|
|
9
|
+
var o = n[0];
|
|
10
|
+
r = l.slice(o.length), e && (P = n[1]);
|
|
11
|
+
}
|
|
12
|
+
var f;
|
|
13
|
+
if (e) {
|
|
14
|
+
var s = l.indexOf(n[1]), a = l.slice(0, s);
|
|
15
|
+
a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
|
|
16
|
+
} else
|
|
17
|
+
f = n[0];
|
|
18
|
+
return {
|
|
19
|
+
nationalNumber: r,
|
|
20
|
+
nationalPrefix: f,
|
|
21
|
+
carrierCode: P
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
nationalNumber: l
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
F as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index308.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
|
package/dist/index309.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import I from "./index197.js";
|
|
2
|
+
import { VALID_DIGITS as l } from "./index193.js";
|
|
3
|
+
var c = new RegExp("([" + l + "])");
|
|
4
|
+
function D(t, r, f, n) {
|
|
5
|
+
if (r) {
|
|
6
|
+
var a = new I(n);
|
|
7
|
+
a.selectNumberingPlan(r, f);
|
|
8
|
+
var i = new RegExp(a.IDDPrefix());
|
|
9
|
+
if (t.search(i) === 0) {
|
|
10
|
+
t = t.slice(t.match(i)[0].length);
|
|
11
|
+
var e = t.match(c);
|
|
12
|
+
if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
D as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index309.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index309.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n }\n // Check if the number is IDD-prefixed.\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadata","countryMetadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAU;AAC7E,MAAKF,GAIL;AAAA,QAAIG,IAAkB,IAAIC,EAASF,CAAQ;AAC3C,IAAAC,EAAgB,oBAAoBH,GAASC,CAAW;AACxD,QAAII,IAAmB,IAAI,OAAOF,EAAgB,UAAS,CAAE;AAC7D,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAIxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAK9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index31.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { isObject as t, pick as o, isString as f } from "./index272.js";
|
|
2
|
+
import r from "./index155.js";
|
|
3
|
+
function d(e) {
|
|
4
|
+
if (e == null) throw new Error("mask property should be defined");
|
|
5
|
+
return e instanceof RegExp ? r.MaskedRegExp : f(e) ? r.MaskedPattern : e === Date ? r.MaskedDate : e === Number ? r.MaskedNumber : Array.isArray(e) || e === Array ? r.MaskedDynamic : r.Masked && e.prototype instanceof r.Masked ? e : r.Masked && e instanceof r.Masked ? e.constructor : e instanceof Function ? r.MaskedFunction : (console.warn("Mask not found for mask", e), r.Masked);
|
|
6
|
+
}
|
|
7
|
+
function k(e) {
|
|
8
|
+
if (!e) throw new Error("Options in not defined");
|
|
9
|
+
if (r.Masked) {
|
|
10
|
+
if (e.prototype instanceof r.Masked) return {
|
|
11
|
+
mask: e
|
|
12
|
+
};
|
|
13
|
+
const {
|
|
14
|
+
mask: n = void 0,
|
|
15
|
+
...a
|
|
16
|
+
} = e instanceof r.Masked ? {
|
|
17
|
+
mask: e
|
|
18
|
+
} : t(e) && e.mask instanceof r.Masked ? e : {};
|
|
19
|
+
if (n) {
|
|
20
|
+
const s = n.mask;
|
|
21
|
+
return {
|
|
22
|
+
...o(n, (c, i) => !i.startsWith("_")),
|
|
23
|
+
mask: n.constructor,
|
|
24
|
+
_mask: s,
|
|
25
|
+
...a
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return t(e) ? {
|
|
30
|
+
...e
|
|
31
|
+
} : {
|
|
32
|
+
mask: e
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function u(e) {
|
|
36
|
+
if (r.Masked && e instanceof r.Masked) return e;
|
|
37
|
+
const n = k(e), a = d(n.mask);
|
|
38
|
+
if (!a) throw new Error("Masked class is not found for provided mask " + n.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
39
|
+
return n.mask === a && delete n.mask, n._mask && (n.mask = n._mask, delete n._mask), new a(n);
|
|
40
|
+
}
|
|
41
|
+
r.createMask = u;
|
|
42
|
+
export {
|
|
43
|
+
u as default,
|
|
44
|
+
d as maskedClass,
|
|
45
|
+
k as normalizeOpts
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=index31.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index31.js","sources":["../../../node_modules/imask/esm/masked/factory.js"],"sourcesContent":["import { isString, isObject, pick } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n// TODO can't use overloads here because of https://github.com/microsoft/TypeScript/issues/50754\n// export function maskedClass(mask: string): typeof MaskedPattern;\n// export function maskedClass(mask: DateConstructor): typeof MaskedDate;\n// export function maskedClass(mask: NumberConstructor): typeof MaskedNumber;\n// export function maskedClass(mask: Array<any> | ArrayConstructor): typeof MaskedDynamic;\n// export function maskedClass(mask: MaskedDate): typeof MaskedDate;\n// export function maskedClass(mask: MaskedNumber): typeof MaskedNumber;\n// export function maskedClass(mask: MaskedEnum): typeof MaskedEnum;\n// export function maskedClass(mask: MaskedRange): typeof MaskedRange;\n// export function maskedClass(mask: MaskedRegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: MaskedFunction): typeof MaskedFunction;\n// export function maskedClass(mask: MaskedPattern): typeof MaskedPattern;\n// export function maskedClass(mask: MaskedDynamic): typeof MaskedDynamic;\n// export function maskedClass(mask: Masked): typeof Masked;\n// export function maskedClass(mask: typeof Masked): typeof Masked;\n// export function maskedClass(mask: typeof MaskedDate): typeof MaskedDate;\n// export function maskedClass(mask: typeof MaskedNumber): typeof MaskedNumber;\n// export function maskedClass(mask: typeof MaskedEnum): typeof MaskedEnum;\n// export function maskedClass(mask: typeof MaskedRange): typeof MaskedRange;\n// export function maskedClass(mask: typeof MaskedRegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: typeof MaskedFunction): typeof MaskedFunction;\n// export function maskedClass(mask: typeof MaskedPattern): typeof MaskedPattern;\n// export function maskedClass(mask: typeof MaskedDynamic): typeof MaskedDynamic;\n// export function maskedClass<Mask extends typeof Masked> (mask: Mask): Mask;\n// export function maskedClass(mask: RegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: (value: string, ...args: any[]) => boolean): typeof MaskedFunction;\n\n/** Get Masked class by mask type */\nfunction maskedClass(mask) /* TODO */{\n if (mask == null) throw new Error('mask property should be defined');\n if (mask instanceof RegExp) return IMask.MaskedRegExp;\n if (isString(mask)) return IMask.MaskedPattern;\n if (mask === Date) return IMask.MaskedDate;\n if (mask === Number) return IMask.MaskedNumber;\n if (Array.isArray(mask) || mask === Array) return IMask.MaskedDynamic;\n if (IMask.Masked && mask.prototype instanceof IMask.Masked) return mask;\n if (IMask.Masked && mask instanceof IMask.Masked) return mask.constructor;\n if (mask instanceof Function) return IMask.MaskedFunction;\n console.warn('Mask not found for mask', mask); // eslint-disable-line no-console\n return IMask.Masked;\n}\nfunction normalizeOpts(opts) {\n if (!opts) throw new Error('Options in not defined');\n if (IMask.Masked) {\n if (opts.prototype instanceof IMask.Masked) return {\n mask: opts\n };\n\n /*\n handle cases like:\n 1) opts = Masked\n 2) opts = { mask: Masked, ...instanceOpts }\n */\n const {\n mask = undefined,\n ...instanceOpts\n } = opts instanceof IMask.Masked ? {\n mask: opts\n } : isObject(opts) && opts.mask instanceof IMask.Masked ? opts : {};\n if (mask) {\n const _mask = mask.mask;\n return {\n ...pick(mask, (_, k) => !k.startsWith('_')),\n mask: mask.constructor,\n _mask,\n ...instanceOpts\n };\n }\n }\n if (!isObject(opts)) return {\n mask: opts\n };\n return {\n ...opts\n };\n}\n\n// TODO can't use overloads here because of https://github.com/microsoft/TypeScript/issues/50754\n\n// From masked\n// export default function createMask<Opts extends Masked, ReturnMasked=Opts> (opts: Opts): ReturnMasked;\n// // From masked class\n// export default function createMask<Opts extends MaskedOptions<typeof Masked>, ReturnMasked extends Masked=InstanceType<Opts['mask']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedDate>, ReturnMasked extends MaskedDate=MaskedDate<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedNumber>, ReturnMasked extends MaskedNumber=MaskedNumber<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedEnum>, ReturnMasked extends MaskedEnum=MaskedEnum<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedRange>, ReturnMasked extends MaskedRange=MaskedRange<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedRegExp>, ReturnMasked extends MaskedRegExp=MaskedRegExp<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedFunction>, ReturnMasked extends MaskedFunction=MaskedFunction<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedPattern>, ReturnMasked extends MaskedPattern=MaskedPattern<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedDynamic>, ReturnMasked extends MaskedDynamic=MaskedDynamic<Opts['parent']>> (opts: Opts): ReturnMasked;\n// // From mask opts\n// export default function createMask<Opts extends MaskedOptions<Masked>, ReturnMasked=Opts extends MaskedOptions<infer M> ? M : never> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedNumberOptions, ReturnMasked extends MaskedNumber=MaskedNumber<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedDateFactoryOptions, ReturnMasked extends MaskedDate=MaskedDate<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedEnumOptions, ReturnMasked extends MaskedEnum=MaskedEnum<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedRangeOptions, ReturnMasked extends MaskedRange=MaskedRange<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedPatternOptions, ReturnMasked extends MaskedPattern=MaskedPattern<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedDynamicOptions, ReturnMasked extends MaskedDynamic=MaskedDynamic<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<RegExp>, ReturnMasked extends MaskedRegExp=MaskedRegExp<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<Function>, ReturnMasked extends MaskedFunction=MaskedFunction<Opts['parent']>> (opts: Opts): ReturnMasked;\n\n/** Creates new {@link Masked} depending on mask type */\nfunction createMask(opts) {\n if (IMask.Masked && opts instanceof IMask.Masked) return opts;\n const nOpts = normalizeOpts(opts);\n const MaskedClass = maskedClass(nOpts.mask);\n if (!MaskedClass) throw new Error(\"Masked class is not found for provided mask \" + nOpts.mask + \", appropriate module needs to be imported manually before creating mask.\");\n if (nOpts.mask === MaskedClass) delete nOpts.mask;\n if (nOpts._mask) {\n nOpts.mask = nOpts._mask;\n delete nOpts._mask;\n }\n return new MaskedClass(nOpts);\n}\nIMask.createMask = createMask;\n\nexport { createMask as default, maskedClass, normalizeOpts };\n"],"names":["maskedClass","mask","IMask","isString","normalizeOpts","opts","instanceOpts","isObject","_mask","pick","_","k","createMask","nOpts","MaskedClass"],"mappings":";;AA+BA,SAASA,EAAYC,GAAgB;AACnC,MAAIA,KAAQ,KAAM,OAAM,IAAI,MAAM,iCAAiC;AACnE,SAAIA,aAAgB,SAAeC,EAAM,eACrCC,EAASF,CAAI,IAAUC,EAAM,gBAC7BD,MAAS,OAAaC,EAAM,aAC5BD,MAAS,SAAeC,EAAM,eAC9B,MAAM,QAAQD,CAAI,KAAKA,MAAS,QAAcC,EAAM,gBACpDA,EAAM,UAAUD,EAAK,qBAAqBC,EAAM,SAAeD,IAC/DC,EAAM,UAAUD,aAAgBC,EAAM,SAAeD,EAAK,cAC1DA,aAAgB,WAAiBC,EAAM,kBAC3C,QAAQ,KAAK,2BAA2BD,CAAI,GACrCC,EAAM;AACf;AACA,SAASE,EAAcC,GAAM;AAC3B,MAAI,CAACA,EAAM,OAAM,IAAI,MAAM,wBAAwB;AACnD,MAAIH,EAAM,QAAQ;AAChB,QAAIG,EAAK,qBAAqBH,EAAM,OAAQ,QAAO;AAAA,MACjD,MAAMG;AAAA,IACZ;AAOI,UAAM;AAAA,MACJ,MAAAJ,IAAO;AAAA,MACP,GAAGK;AAAA,IACT,IAAQD,aAAgBH,EAAM,SAAS;AAAA,MACjC,MAAMG;AAAA,IACZ,IAAQE,EAASF,CAAI,KAAKA,EAAK,gBAAgBH,EAAM,SAASG,IAAO,CAAA;AACjE,QAAIJ,GAAM;AACR,YAAMO,IAAQP,EAAK;AACnB,aAAO;AAAA,QACL,GAAGQ,EAAKR,GAAM,CAACS,GAAGC,MAAM,CAACA,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1C,MAAMV,EAAK;AAAA,QACX,OAAAO;AAAA,QACA,GAAGF;AAAA,MACX;AAAA,IACI;AAAA,EACF;AACA,SAAKC,EAASF,CAAI,IAGX;AAAA,IACL,GAAGA;AAAA,EACP,IAL8B;AAAA,IAC1B,MAAMA;AAAA,EACV;AAIA;AA4BA,SAASO,EAAWP,GAAM;AACxB,MAAIH,EAAM,UAAUG,aAAgBH,EAAM,OAAQ,QAAOG;AACzD,QAAMQ,IAAQT,EAAcC,CAAI,GAC1BS,IAAcd,EAAYa,EAAM,IAAI;AAC1C,MAAI,CAACC,EAAa,OAAM,IAAI,MAAM,iDAAiDD,EAAM,OAAO,0EAA0E;AAC1K,SAAIA,EAAM,SAASC,KAAa,OAAOD,EAAM,MACzCA,EAAM,UACRA,EAAM,OAAOA,EAAM,OACnB,OAAOA,EAAM,QAER,IAAIC,EAAYD,CAAK;AAC9B;AACAX,EAAM,aAAaU;","x_google_ignoreList":[0]}
|
package/dist/index310.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index310.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index311.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index311.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index312.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function r(s, t) {
|
|
2
|
+
const e = t.startOfMonth(s), n = e.getDay() > 0 ? e.getDay() : 7, a = t.addDays(s, -n + 1), o = t.addDays(a, 34);
|
|
3
|
+
return t.getMonth(s) === t.getMonth(o) ? 5 : 4;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
r as getBroadcastWeeksInMonth
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index312.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index312.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js"],"sourcesContent":["const FIVE_WEEKS = 5;\nconst FOUR_WEEKS = 4;\n/**\n * Returns the number of weeks to display in the broadcast calendar for a given\n * month.\n *\n * The broadcast calendar may have either 4 or 5 weeks in a month, depending on\n * the start and end dates of the broadcast weeks.\n *\n * @since 9.4.0\n * @param month The month for which to calculate the number of weeks.\n * @param dateLib The date library to use for date manipulation.\n * @returns The number of weeks in the broadcast calendar (4 or 5).\n */\nexport function getBroadcastWeeksInMonth(month, dateLib) {\n // Get the first day of the month\n const firstDayOfMonth = dateLib.startOfMonth(month);\n // Get the day of the week for the first day of the month (1-7, where 1 is Monday)\n const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;\n const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);\n const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);\n const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)\n ? FIVE_WEEKS\n : FOUR_WEEKS;\n return numberOfWeeks;\n}\n"],"names":["getBroadcastWeeksInMonth","month","dateLib","firstDayOfMonth","firstDayOfWeek","broadcastStartDate","lastDateOfLastWeek"],"mappings":"AAcO,SAASA,EAAyBC,GAAOC,GAAS;AAErD,QAAMC,IAAkBD,EAAQ,aAAaD,CAAK,GAE5CG,IAAiBD,EAAgB,OAAM,IAAK,IAAIA,EAAgB,OAAM,IAAK,GAC3EE,IAAqBH,EAAQ,QAAQD,GAAO,CAACG,IAAiB,CAAC,GAC/DE,IAAqBJ,EAAQ,QAAQG,GAAoB,EAAkB;AAIjF,SAHsBH,EAAQ,SAASD,CAAK,MAAMC,EAAQ,SAASI,CAAkB,IAC/E,IACA;AAEV;","x_google_ignoreList":[0]}
|
package/dist/index313.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { formatDistance as o } from "./index348.js";
|
|
2
|
+
import { formatLong as t } from "./index349.js";
|
|
3
|
+
import { formatRelative as a } from "./index350.js";
|
|
4
|
+
import { localize as r } from "./index351.js";
|
|
5
|
+
import { match as e } from "./index352.js";
|
|
6
|
+
const s = {
|
|
7
|
+
code: "en-US",
|
|
8
|
+
formatDistance: o,
|
|
9
|
+
formatLong: t,
|
|
10
|
+
formatRelative: a,
|
|
11
|
+
localize: r,
|
|
12
|
+
match: e,
|
|
13
|
+
options: {
|
|
14
|
+
weekStartsOn: 0,
|
|
15
|
+
firstWeekContainsDate: 1
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
s as default,
|
|
20
|
+
s as enUS
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index313.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index313.js","sources":["../../../node_modules/date-fns/locale/en-US.js"],"sourcesContent":["import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n"],"names":["enUS","formatDistance","formatLong","formatRelative","localize","match"],"mappings":";;;;;AAcY,MAACA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,gBAAgBC;AAAA,EAChB,YAAYC;AAAA,EACZ,gBAAgBC;AAAA,EAChB,UAAUC;AAAA,EACV,OAAOC;AAAA,EACP,SAAS;AAAA,IACP,cAAc;AAAA,IACd,uBAAuB;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
|
package/dist/index314.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function g(d, s, k, t, f, O, n) {
|
|
2
|
+
const { ISOWeek: o, broadcastCalendar: r } = O, { addDays: W, addMonths: c, addWeeks: l, addYears: u, endOfBroadcastWeek: b, endOfISOWeek: m, endOfWeek: y, max: F, min: I, startOfBroadcastWeek: h, startOfISOWeek: x, startOfWeek: B } = n;
|
|
3
|
+
let a = {
|
|
4
|
+
day: W,
|
|
5
|
+
week: l,
|
|
6
|
+
month: c,
|
|
7
|
+
year: u,
|
|
8
|
+
startOfWeek: (e) => r ? h(e, n) : o ? x(e) : B(e),
|
|
9
|
+
endOfWeek: (e) => r ? b(e) : o ? m(e) : y(e)
|
|
10
|
+
}[d](k, s === "after" ? 1 : -1);
|
|
11
|
+
return s === "before" && t ? a = F([t, a]) : s === "after" && f && (a = I([f, a])), a;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
g as getFocusableDate
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index314.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index314.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/**\n * Calculates the next date that should be focused in the calendar.\n *\n * This function determines the next focusable date based on the movement\n * direction, constraints, and calendar configuration.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDate The reference date from which to calculate the next focusable\n * date.\n * @param navStart The earliest date the user can navigate to.\n * @param navEnd The latest date the user can navigate to.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next focusable date.\n */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date),\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","focusableDate","date"],"mappings":"AAgBO,SAASA,EAAiBC,GAAQC,GAASC,GAASC,GAAUC,GAAQC,GAAOC,GAAS;AACzF,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAiB,IAAKH,GACjC,EAAE,SAAAI,GAAS,WAAAC,GAAW,UAAAC,GAAU,UAAAC,GAAU,oBAAAC,GAAoB,cAAAC,GAAc,WAAAC,GAAW,KAAAC,GAAK,KAAAC,GAAK,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMd;AAiB9J,MAAIe,IAhBY;AAAA,IACZ,KAAKZ;AAAA,IACL,MAAME;AAAA,IACN,OAAOD;AAAA,IACP,MAAME;AAAA,IACN,aAAa,CAACU,MAASd,IACjBU,EAAqBI,GAAMhB,CAAO,IAClCC,IACIY,EAAeG,CAAI,IACnBF,EAAYE,CAAI;AAAA,IAC1B,WAAW,CAACA,MAASd,IACfK,EAAmBS,CAAI,IACvBf,IACIO,EAAaQ,CAAI,IACjBP,EAAUO,CAAI;AAAA,EAChC,EACgCtB,CAAM,EAAEE,GAASD,MAAY,UAAU,IAAI,EAAE;AACzE,SAAIA,MAAY,YAAYE,IACxBkB,IAAgBL,EAAI,CAACb,GAAUkB,CAAa,CAAC,IAExCpB,MAAY,WAAWG,MAC5BiB,IAAgBJ,EAAI,CAACb,GAAQiB,CAAa,CAAC,IAExCA;AACX;","x_google_ignoreList":[0]}
|
package/dist/index315.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
|
|
2
|
+
export {
|
|
3
|
+
a as fullWidthClassName,
|
|
4
|
+
l as noScrollbarsClassName,
|
|
5
|
+
e as removedBarSizeVariable,
|
|
6
|
+
r as zeroRightClassName
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index315.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index315.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
|
package/dist/index316.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index316.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":";AACU,IAACA,IAAYC,EAAmB;","x_google_ignoreList":[0]}
|
package/dist/index317.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { assignRef as o } from "./index353.js";
|
|
3
|
+
import { useCallbackRef as l } from "./index354.js";
|
|
4
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function v(e, m) {
|
|
6
|
+
var t = l(null, function(n) {
|
|
7
|
+
return e.forEach(function(u) {
|
|
8
|
+
return o(u, n);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
return s(function() {
|
|
12
|
+
var n = c.get(t);
|
|
13
|
+
if (n) {
|
|
14
|
+
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
+
u.forEach(function(a) {
|
|
16
|
+
r.has(a) || o(a, null);
|
|
17
|
+
}), r.forEach(function(a) {
|
|
18
|
+
u.has(a) || o(a, i);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
c.set(t, e);
|
|
22
|
+
}, [e]), t;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
v as useMergeRefs
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index317.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index317.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js"],"sourcesContent":["import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n"],"names":["useIsomorphicLayoutEffect","React","currentValues","useMergeRefs","refs","defaultValue","callbackRef","useCallbackRef","newValue","ref","assignRef","oldValue","prevRefs_1","nextRefs_1","current_1"],"mappings":";;;AAGA,IAAIA,IAA4B,OAAO,SAAW,MAAcC,EAAM,kBAAkBA,EAAM,WAC1FC,IAAgB,oBAAI,QAAO;AAexB,SAASC,EAAaC,GAAMC,GAAc;AAC7C,MAAIC,IAAcC,EAA+B,MAAM,SAAUC,GAAU;AACvE,WAAOJ,EAAK,QAAQ,SAAUK,GAAK;AAAE,aAAOC,EAAUD,GAAKD,CAAQ;AAAA,IAAG,CAAC;AAAA,EAC3E,CAAC;AAED,SAAAR,EAA0B,WAAY;AAClC,QAAIW,IAAWT,EAAc,IAAII,CAAW;AAC5C,QAAIK,GAAU;AACV,UAAIC,IAAa,IAAI,IAAID,CAAQ,GAC7BE,IAAa,IAAI,IAAIT,CAAI,GACzBU,IAAYR,EAAY;AAC5B,MAAAM,EAAW,QAAQ,SAAUH,GAAK;AAC9B,QAAKI,EAAW,IAAIJ,CAAG,KACnBC,EAAUD,GAAK,IAAI;AAAA,MAE3B,CAAC,GACDI,EAAW,QAAQ,SAAUJ,GAAK;AAC9B,QAAKG,EAAW,IAAIH,CAAG,KACnBC,EAAUD,GAAKK,CAAS;AAAA,MAEhC,CAAC;AAAA,IACL;AACA,IAAAZ,EAAc,IAAII,GAAaF,CAAI;AAAA,EACvC,GAAG,CAACA,CAAI,CAAC,GACFE;AACX;","x_google_ignoreList":[0]}
|
package/dist/index318.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { __spreadArray as N } from "./index282.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { RemoveScrollBar as W } from "./index341.js";
|
|
4
|
+
import { styleSingleton as F } from "./index342.js";
|
|
5
|
+
import { nonPassive as s } from "./index343.js";
|
|
6
|
+
import { locationCouldBeScrolled as B, handleScroll as K } from "./index344.js";
|
|
7
|
+
var k = function(e) {
|
|
8
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
9
|
+
}, M = function(e) {
|
|
10
|
+
return [e.deltaX, e.deltaY];
|
|
11
|
+
}, X = function(e) {
|
|
12
|
+
return e && "current" in e ? e.current : e;
|
|
13
|
+
}, O = function(e, c) {
|
|
14
|
+
return e[0] === c[0] && e[1] === c[1];
|
|
15
|
+
}, Q = function(e) {
|
|
16
|
+
return `
|
|
17
|
+
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
18
|
+
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
19
|
+
`);
|
|
20
|
+
}, Z = 0, f = [];
|
|
21
|
+
function J(e) {
|
|
22
|
+
var c = n.useRef([]), R = n.useRef([0, 0]), m = n.useRef(), h = n.useState(Z++)[0], g = n.useState(F)[0], S = n.useRef(e);
|
|
23
|
+
n.useEffect(function() {
|
|
24
|
+
S.current = e;
|
|
25
|
+
}, [e]), n.useEffect(function() {
|
|
26
|
+
if (e.inert) {
|
|
27
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
28
|
+
var t = N([e.lockRef.current], (e.shards || []).map(X), !0).filter(Boolean);
|
|
29
|
+
return t.forEach(function(r) {
|
|
30
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
31
|
+
}), function() {
|
|
32
|
+
document.body.classList.remove("block-interactivity-".concat(h)), t.forEach(function(r) {
|
|
33
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}, [e.inert, e.lockRef.current, e.shards]);
|
|
38
|
+
var C = n.useCallback(function(t, r) {
|
|
39
|
+
if ("touches" in t && t.touches.length === 2 || t.type === "wheel" && t.ctrlKey)
|
|
40
|
+
return !S.current.allowPinchZoom;
|
|
41
|
+
var l = k(t), u = R.current, o = "deltaX" in t ? t.deltaX : u[0] - l[0], i = "deltaY" in t ? t.deltaY : u[1] - l[1], a, v = t.target, d = Math.abs(o) > Math.abs(i) ? "h" : "v";
|
|
42
|
+
if ("touches" in t && d === "h" && v.type === "range")
|
|
43
|
+
return !1;
|
|
44
|
+
var P = window.getSelection(), E = P && P.anchorNode, I = E ? E === v || E.contains(v) : !1;
|
|
45
|
+
if (I)
|
|
46
|
+
return !1;
|
|
47
|
+
var b = B(d, v);
|
|
48
|
+
if (!b)
|
|
49
|
+
return !0;
|
|
50
|
+
if (b ? a = d : (a = d === "v" ? "h" : "v", b = B(d, v)), !b)
|
|
51
|
+
return !1;
|
|
52
|
+
if (!m.current && "changedTouches" in t && (o || i) && (m.current = a), !a)
|
|
53
|
+
return !0;
|
|
54
|
+
var Y = m.current || a;
|
|
55
|
+
return K(Y, r, t, Y === "h" ? o : i);
|
|
56
|
+
}, []), y = n.useCallback(function(t) {
|
|
57
|
+
var r = t;
|
|
58
|
+
if (!(!f.length || f[f.length - 1] !== g)) {
|
|
59
|
+
var l = "deltaY" in r ? M(r) : k(r), u = c.current.filter(function(a) {
|
|
60
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && O(a.delta, l);
|
|
61
|
+
})[0];
|
|
62
|
+
if (u && u.should) {
|
|
63
|
+
r.cancelable && r.preventDefault();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!u) {
|
|
67
|
+
var o = (S.current.shards || []).map(X).filter(Boolean).filter(function(a) {
|
|
68
|
+
return a.contains(r.target);
|
|
69
|
+
}), i = o.length > 0 ? C(r, o[0]) : !S.current.noIsolation;
|
|
70
|
+
i && r.cancelable && r.preventDefault();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, []), w = n.useCallback(function(t, r, l, u) {
|
|
74
|
+
var o = { name: t, delta: r, target: l, should: u, shadowParent: _(l) };
|
|
75
|
+
c.current.push(o), setTimeout(function() {
|
|
76
|
+
c.current = c.current.filter(function(i) {
|
|
77
|
+
return i !== o;
|
|
78
|
+
});
|
|
79
|
+
}, 1);
|
|
80
|
+
}, []), L = n.useCallback(function(t) {
|
|
81
|
+
R.current = k(t), m.current = void 0;
|
|
82
|
+
}, []), T = n.useCallback(function(t) {
|
|
83
|
+
w(t.type, M(t), t.target, C(t, e.lockRef.current));
|
|
84
|
+
}, []), D = n.useCallback(function(t) {
|
|
85
|
+
w(t.type, k(t), t.target, C(t, e.lockRef.current));
|
|
86
|
+
}, []);
|
|
87
|
+
n.useEffect(function() {
|
|
88
|
+
return f.push(g), e.setCallbacks({
|
|
89
|
+
onScrollCapture: T,
|
|
90
|
+
onWheelCapture: T,
|
|
91
|
+
onTouchMoveCapture: D
|
|
92
|
+
}), document.addEventListener("wheel", y, s), document.addEventListener("touchmove", y, s), document.addEventListener("touchstart", L, s), function() {
|
|
93
|
+
f = f.filter(function(t) {
|
|
94
|
+
return t !== g;
|
|
95
|
+
}), document.removeEventListener("wheel", y, s), document.removeEventListener("touchmove", y, s), document.removeEventListener("touchstart", L, s);
|
|
96
|
+
};
|
|
97
|
+
}, []);
|
|
98
|
+
var x = e.removeScrollBar, A = e.inert;
|
|
99
|
+
return n.createElement(
|
|
100
|
+
n.Fragment,
|
|
101
|
+
null,
|
|
102
|
+
A ? n.createElement(g, { styles: Q(h) }) : null,
|
|
103
|
+
x ? n.createElement(W, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function _(e) {
|
|
107
|
+
for (var c = null; e !== null; )
|
|
108
|
+
e instanceof ShadowRoot && (c = e.host, e = e.host), e = e.parentNode;
|
|
109
|
+
return c;
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
J as RemoveScrollSideCar,
|
|
113
|
+
M as getDeltaXY,
|
|
114
|
+
k as getTouchXY
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=index318.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index318.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","selection","anchorNode","isTouchingSelection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index319.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __rest as o, __assign as d } from "./index282.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
var i = function(r) {
|
|
4
|
+
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
+
var t = e.read();
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("Sidecar medium not found");
|
|
10
|
+
return n.createElement(t, d({}, a));
|
|
11
|
+
};
|
|
12
|
+
i.isSideCarExport = !0;
|
|
13
|
+
function p(r, e) {
|
|
14
|
+
return r.useMedium(e), i;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as exportSidecar
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index319.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index319.js","sources":["../../../node_modules/use-sidecar/dist/es2015/exports.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n"],"names":["SideCar","_a","sideCar","rest","__rest","Target","React","__assign","exportSidecar","medium","exported"],"mappings":";;AAEA,IAAIA,IAAU,SAAUC,GAAI;AACxB,MAAIC,IAAUD,EAAG,SAASE,IAAOC,EAAOH,GAAI,CAAC,SAAS,CAAC;AACvD,MAAI,CAACC;AACD,UAAM,IAAI,MAAM,oEAAoE;AAExF,MAAIG,IAASH,EAAQ,KAAI;AACzB,MAAI,CAACG;AACD,UAAM,IAAI,MAAM,0BAA0B;AAE9C,SAAOC,EAAM,cAAcD,GAAQE,EAAS,CAAA,GAAIJ,CAAI,CAAC;AACzD;AACAH,EAAQ,kBAAkB;AACnB,SAASQ,EAAcC,GAAQC,GAAU;AAC5C,SAAAD,EAAO,UAAUC,CAAQ,GAClBV;AACX;","x_google_ignoreList":[0]}
|
package/dist/index32.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import l from "./index155.js";
|
|
2
|
+
class n {
|
|
3
|
+
/** */
|
|
4
|
+
/** */
|
|
5
|
+
/** */
|
|
6
|
+
/** Safely returns selection start */
|
|
7
|
+
get selectionStart() {
|
|
8
|
+
let t;
|
|
9
|
+
try {
|
|
10
|
+
t = this._unsafeSelectionStart;
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
return t ?? this.value.length;
|
|
14
|
+
}
|
|
15
|
+
/** Safely returns selection end */
|
|
16
|
+
get selectionEnd() {
|
|
17
|
+
let t;
|
|
18
|
+
try {
|
|
19
|
+
t = this._unsafeSelectionEnd;
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
return t ?? this.value.length;
|
|
23
|
+
}
|
|
24
|
+
/** Safely sets element selection */
|
|
25
|
+
select(t, e) {
|
|
26
|
+
if (!(t == null || e == null || t === this.selectionStart && e === this.selectionEnd))
|
|
27
|
+
try {
|
|
28
|
+
this._unsafeSelect(t, e);
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** */
|
|
33
|
+
get isActive() {
|
|
34
|
+
return !1;
|
|
35
|
+
}
|
|
36
|
+
/** */
|
|
37
|
+
/** */
|
|
38
|
+
/** */
|
|
39
|
+
}
|
|
40
|
+
l.MaskElement = n;
|
|
41
|
+
export {
|
|
42
|
+
n as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index32.js","sources":["../../../node_modules/imask/esm/controls/mask-element.js"],"sourcesContent":["import IMask from '../core/holder.js';\n\n/** Generic element API to use with mask */\nclass MaskElement {\n /** */\n\n /** */\n\n /** */\n\n /** Safely returns selection start */\n get selectionStart() {\n let start;\n try {\n start = this._unsafeSelectionStart;\n } catch {}\n return start != null ? start : this.value.length;\n }\n\n /** Safely returns selection end */\n get selectionEnd() {\n let end;\n try {\n end = this._unsafeSelectionEnd;\n } catch {}\n return end != null ? end : this.value.length;\n }\n\n /** Safely sets element selection */\n select(start, end) {\n if (start == null || end == null || start === this.selectionStart && end === this.selectionEnd) return;\n try {\n this._unsafeSelect(start, end);\n } catch {}\n }\n\n /** */\n get isActive() {\n return false;\n }\n /** */\n\n /** */\n\n /** */\n}\nIMask.MaskElement = MaskElement;\n\nexport { MaskElement as default };\n"],"names":["MaskElement","start","end","IMask"],"mappings":";AAGA,MAAMA,EAAY;AAAA;AAAA;AAAA;AAAA;AAAA,EAQhB,IAAI,iBAAiB;AACnB,QAAIC;AACJ,QAAI;AACF,MAAAA,IAAQ,KAAK;AAAA,IACf,QAAQ;AAAA,IAAC;AACT,WAAOA,KAAwB,KAAK,MAAM;AAAA,EAC5C;AAAA;AAAA,EAGA,IAAI,eAAe;AACjB,QAAIC;AACJ,QAAI;AACF,MAAAA,IAAM,KAAK;AAAA,IACb,QAAQ;AAAA,IAAC;AACT,WAAOA,KAAoB,KAAK,MAAM;AAAA,EACxC;AAAA;AAAA,EAGA,OAAOD,GAAOC,GAAK;AACjB,QAAI,EAAAD,KAAS,QAAQC,KAAO,QAAQD,MAAU,KAAK,kBAAkBC,MAAQ,KAAK;AAClF,UAAI;AACF,aAAK,cAAcD,GAAOC,CAAG;AAAA,MAC/B,QAAQ;AAAA,MAAC;AAAA,EACX;AAAA;AAAA,EAGA,IAAI,WAAW;AACb,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAMF;AACAC,EAAM,cAAcH;","x_google_ignoreList":[0]}
|