@rpcbase/ui 0.165.0 → 0.166.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/index100.js +9 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +42 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -6
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +52 -146
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -39
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +15 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +5 -13
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +16 -7
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +4 -31
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +4 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +5 -10
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +5 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -101
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +7 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +24 -53
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +6 -72
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -9
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +6 -20
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -16
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -23
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -6
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +8 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -35
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +5 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -4
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +145 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +39 -4
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +13 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +14 -24
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +7 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +31 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +10 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +10 -3
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +8 -3
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +13 -4
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +101 -3
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +20 -5
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +53 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +72 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +9 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +19 -45
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +15 -45
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +21 -203
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +7 -22
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +5 -24
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +18 -394
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +35 -6
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +16 -69
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -363
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -261
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -60
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +4 -46
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +3 -169
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -109
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +24 -25
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +8 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +6 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +3 -466
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -185
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -107
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +4 -262
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +3 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +3 -42
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +3 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +22 -65
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +27 -179
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -47
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +67 -58
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +180 -8
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +42 -62
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +12 -18
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +152 -14
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +29 -4
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +9 -5
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +47 -6
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +11 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +44 -7
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +95 -17
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +86 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +105 -5
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +52 -13
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +11 -10
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +37 -14
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -14
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +116 -5
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +17 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +15 -7
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -6
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +36 -9
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +20 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +9 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -9
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +58 -11
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +66 -10
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +19 -11
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -11
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +5 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -7
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +7 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +17 -7
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -6
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -55
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -16
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +14 -7
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +14 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -10
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -21
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +7 -10
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +6 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -4
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -5
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -16
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -18
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -15
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +11 -12
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +10 -29
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -12
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +11 -25
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +11 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -24
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +8 -29
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +7 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -13
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +6 -154
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -30
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +53 -45
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +23 -11
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +14 -42
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -95
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -85
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +9 -104
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +21 -52
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -11
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +9 -37
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +8 -7
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +4 -116
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +5 -17
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +15 -14
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +16 -34
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +15 -20
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +12 -9
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +29 -8
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +11 -18
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +23 -26
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -16
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -19
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +23 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +113 -5
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +16 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +522 -21
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +127 -112
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +133 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +19 -523
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +4 -127
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +18 -133
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -20
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +69 -6
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -6
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +14 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -15
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +64 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +5 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +4 -546
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -47
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +8 -17
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +5 -6
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -8
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -5
- package/dist/index290.js +545 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -9
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +17 -12
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -9
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -13
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +7 -64
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +9 -69
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +13 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -14
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +14 -66
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +24 -24
- package/dist/index300.js +3 -4
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +23 -56
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +5 -68
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +55 -30
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +68 -9
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +26 -148
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +9 -108
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +153 -4
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +108 -23
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +22 -15
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +12 -28
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +27 -12
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +5 -7
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -22
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +28 -12
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +12 -27
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -5
- package/dist/index316.js.map +1 -1
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.js +7 -7
- package/dist/index48.js +4 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +7 -2
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +46 -5
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +26 -33
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +48 -24
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +11 -8
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +133 -3
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +10 -47
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +214 -48
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +13 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +33 -14
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +41 -128
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +7 -10
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +46 -213
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +4 -13
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -46
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +28 -50
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +49 -3
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +9 -6
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +2 -28
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -50
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +11 -8
- package/dist/index70.js.map +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.js +2 -2
- package/dist/index74.js +2 -2
- package/dist/index75.js +40 -599
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +206 -52
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +22 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +24 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +399 -15
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +46 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +605 -7
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -16
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +68 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +2 -5
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +363 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +261 -5
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +60 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +46 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +169 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +109 -24
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +24 -6
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +8 -5
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -6
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +5 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +466 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +185 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +107 -8
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +262 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index245.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index245.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL'];\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n\n // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n // Is this national number even valid for this country\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n }\n\n // Is it fixed line number\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n /* istanbul ignore if */\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n return 'FIXED_LINE';\n }\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n type = metadata.type(type);\n if (!type || !type.pattern()) {\n return false;\n }\n // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, type.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","NON_FIXED_LINE_PHONE_TYPES","getNumberType","input","options","metadata","Metadata","nationalNumber","matchesEntirely","isNumberTypeEqualTo","_iterator","_step","type"],"mappings":";;AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,SAAQA,IAAIA,EAAE,KAAKF,CAAC,GAAG,KAAK,KAAKE,CAAC;AAAG,MAAI,MAAM,QAAQF,CAAC,MAAME,IAAIC,EAA4BH,CAAC,MAAMC,GAAuC;AAAE,IAAAC,MAAMF,IAAIE;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKJ,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEI,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BH,GAAGK,GAAG;AAAE,MAAIL,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOM,EAAkBN,GAAGK,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAKF,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBE,MAAb,YAAkBF,EAAE,gBAAgBE,IAAIF,EAAE,YAAY,OAAiBE,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKF,CAAC,IAAoBE,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkBN,GAAGK,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBN,GAAGK,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIL,EAAE,YAAYK,IAAIL,EAAE;AAAS,WAASC,IAAI,GAAGM,IAAI,MAAMF,CAAC,GAAGJ,IAAII,GAAGJ,IAAK,CAAAM,EAAEN,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAOM;AAAG;AAGnJ,IAAIC,IAA6B,CAAC,UAAU,gBAAgB,aAAa,eAAe,QAAQ,mBAAmB,SAAS,OAAO,WAAW;AAG/H,SAASC,EAAcC,GAAOC,GAASC,GAAU;AAQ9D,MALAD,IAAUA,KAAW,CAAA,GAKjB,GAACD,EAAM,WAAW,CAACA,EAAM,qBAG7B;AAAA,IAAAE,IAAW,IAAIC,EAASD,CAAQ,GAChCA,EAAS,oBAAoBF,EAAM,SAASA,EAAM,kBAAkB;AACpE,QAAII,IAAiBH,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAM/D,QAAKK,EAAgBD,GAAgBF,EAAS,sBAAqB,CAAE,GAKrE;AAAA,UAAII,EAAoBF,GAAgB,cAAcF,CAAQ;AAuB5D,eAlBIA,EAAS,KAAK,QAAQ,KAAKA,EAAS,KAAK,QAAQ,EAAE,QAAO,MAAO,MAWjE,CAACA,EAAS,KAAK,QAAQ,KAOvBI,EAAoBF,GAAgB,UAAUF,CAAQ,IACjD,yBAEF;AAET,eAASK,IAAYlB,EAAgCS,CAA0B,GAAGU,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AACrH,YAAIE,IAAOD,EAAM;AACjB,YAAIF,EAAoBF,GAAgBK,GAAMP,CAAQ;AACpD,iBAAOO;AAAA,MAEX;AAAA;AAAA;AACF;AACO,SAASH,EAAoBF,GAAgBK,GAAMP,GAAU;AAWlE,SAVAO,IAAOP,EAAS,KAAKO,CAAI,GACrB,CAACA,KAAQ,CAACA,EAAK,QAAO,KAStBA,EAAK,gBAAe,KAAMA,EAAK,kBAAkB,QAAQL,EAAe,MAAM,IAAI,IAC7E,KAEFC,EAAgBD,GAAgBK,EAAK,QAAO,CAAE;AACvD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index245.js","sources":["../../../node_modules/date-fns/format.js"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { formatters } from \"./_lib/format/formatters.js\";\nimport { longFormatters } from \"./_lib/format/longFormatters.js\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.js\";\nimport { isValid } from \"./isValid.js\";\nimport { toDate } from \"./toDate.js\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date, options?.in);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","date","formatStr","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","toDate","isValid","parts","substring","firstCharacter","longFormatter","longFormatters","cleanEscapedString","formatters","formatterOptions","part","token","isProtectedWeekYearToken","isProtectedDayOfYearToken","warnOrThrowProtectedError","formatter","input","matched"],"mappings":";;;;;;;AA2BA,MAAMA,IACJ,yDAIIC,IAA6B,qCAE7BC,IAAsB,gBACtBC,IAAoB,OACpBC,IAAgC;AAoS/B,SAASC,EAAOC,GAAMC,GAAWC,GAAS;AAC/C,QAAMC,IAAiBC,EAAiB,GAClCC,IAASH,GAAS,UAAUC,EAAe,UAAUG,GAErDC,IACJL,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BC,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIK,IACJN,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIM,IAAeC,EAAOV,GAAME,GAAS,EAAE;AAE7C,MAAI,CAACS,EAAQF,CAAY;AACvB,UAAM,IAAI,WAAW,oBAAoB;AAG3C,MAAIG,IAAQX,EACT,MAAMN,CAA0B,EAChC,IAAI,CAACkB,MAAc;AAClB,UAAMC,IAAiBD,EAAU,CAAC;AAClC,QAAIC,MAAmB,OAAOA,MAAmB,KAAK;AACpD,YAAMC,IAAgBC,EAAeF,CAAc;AACnD,aAAOC,EAAcF,GAAWR,EAAO,UAAU;AAAA,IACnD;AACA,WAAOQ;AAAA,EACT,CAAC,EACA,KAAK,EAAE,EACP,MAAMnB,CAAsB,EAC5B,IAAI,CAACmB,MAAc;AAElB,QAAIA,MAAc;AAChB,aAAO,EAAE,SAAS,IAAO,OAAO,IAAG;AAGrC,UAAMC,IAAiBD,EAAU,CAAC;AAClC,QAAIC,MAAmB;AACrB,aAAO,EAAE,SAAS,IAAO,OAAOG,EAAmBJ,CAAS,EAAC;AAG/D,QAAIK,EAAWJ,CAAc;AAC3B,aAAO,EAAE,SAAS,IAAM,OAAOD,EAAS;AAG1C,QAAIC,EAAe,MAAMhB,CAA6B;AACpD,YAAM,IAAI;AAAA,QACR,mEACEgB,IACA;AAAA,MACZ;AAGM,WAAO,EAAE,SAAS,IAAO,OAAOD,EAAS;AAAA,EAC3C,CAAC;AAGH,EAAIR,EAAO,SAAS,iBAClBO,IAAQP,EAAO,SAAS,aAAaI,GAAcG,CAAK;AAG1D,QAAMO,IAAmB;AAAA,IACvB,uBAAAZ;AAAA,IACA,cAAAC;AAAA,IACA,QAAAH;AAAA,EACJ;AAEE,SAAOO,EACJ,IAAI,CAACQ,MAAS;AACb,QAAI,CAACA,EAAK,QAAS,QAAOA,EAAK;AAE/B,UAAMC,IAAQD,EAAK;AAEnB,KACG,CAAClB,GAAS,+BACToB,EAAyBD,CAAK,KAC/B,CAACnB,GAAS,gCACTqB,EAA0BF,CAAK,MAEjCG,EAA0BH,GAAOpB,GAAW,OAAOD,CAAI,CAAC;AAG1D,UAAMyB,IAAYP,EAAWG,EAAM,CAAC,CAAC;AACrC,WAAOI,EAAUhB,GAAcY,GAAOhB,EAAO,UAAUc,CAAgB;AAAA,EACzE,CAAC,EACA,KAAK,EAAE;AACZ;AAEA,SAASF,EAAmBS,GAAO;AACjC,QAAMC,IAAUD,EAAM,MAAM9B,CAAmB;AAE/C,SAAK+B,IAIEA,EAAQ,CAAC,EAAE,QAAQ9B,GAAmB,GAAG,IAHvC6B;AAIX;","x_google_ignoreList":[0]}
|
package/dist/index246.js
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { defaultDateLib as A } from "./index130.js";
|
|
2
|
+
import { rangeIncludesDate as p } from "./index150.js";
|
|
3
|
+
import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index152.js";
|
|
4
|
+
function b(f, n, r = A) {
|
|
5
|
+
const t = Array.isArray(n) ? n : [n], { isSameDay: o, differenceInCalendarDays: i, isAfter: D } = r;
|
|
6
|
+
return t.some((e) => {
|
|
7
|
+
if (typeof e == "boolean")
|
|
8
|
+
return e;
|
|
9
|
+
if (r.isDate(e))
|
|
10
|
+
return o(f, e);
|
|
11
|
+
if (a(e, r))
|
|
12
|
+
return e.some((s) => o(f, s));
|
|
13
|
+
if (I(e))
|
|
14
|
+
return p(e, f, !1, r);
|
|
15
|
+
if (g(e))
|
|
16
|
+
return Array.isArray(e.dayOfWeek) ? e.dayOfWeek.includes(f.getDay()) : e.dayOfWeek === f.getDay();
|
|
17
|
+
if (k(e)) {
|
|
18
|
+
const s = i(e.before, f), l = i(e.after, f), y = s > 0, u = l < 0;
|
|
19
|
+
return D(e.before, e.after) ? u && y : y || u;
|
|
20
|
+
}
|
|
21
|
+
return O(e) ? i(f, e.after) > 0 : W(e) ? i(e.before, f) > 0 : typeof e == "function" ? e(f) : !1;
|
|
22
|
+
});
|
|
11
23
|
}
|
|
12
24
|
export {
|
|
13
|
-
|
|
25
|
+
b as dateMatchModifiers
|
|
14
26
|
};
|
|
15
27
|
//# sourceMappingURL=index246.js.map
|
package/dist/index246.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index246.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index246.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((matcherDate) => isSameDay(date, matcherDate));\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n"],"names":["dateMatchModifiers","date","matchers","dateLib","defaultDateLib","matchersArr","isSameDay","differenceInCalendarDays","isAfter","matcher","isDatesArray","matcherDate","isDateRange","rangeIncludesDate","isDayOfWeekType","isDateInterval","diffBefore","diffAfter","isDayBefore","isDayAfter","isDateAfterType","isDateBeforeType"],"mappings":";;;AAYO,SAASA,EAAmBC,GAAMC,GAAUC,IAAUC,GAAgB;AACzE,QAAMC,IAAe,MAAM,QAAQH,CAAQ,IAAiBA,IAAb,CAACA,CAAQ,GAClD,EAAE,WAAAI,GAAW,0BAAAC,GAA0B,SAAAC,EAAO,IAAKL;AACzD,SAAOE,EAAY,KAAK,CAACI,MAAY;AACjC,QAAI,OAAOA,KAAY;AACnB,aAAOA;AAEX,QAAIN,EAAQ,OAAOM,CAAO;AACtB,aAAOH,EAAUL,GAAMQ,CAAO;AAElC,QAAIC,EAAaD,GAASN,CAAO;AAC7B,aAAOM,EAAQ,KAAK,CAACE,MAAgBL,EAAUL,GAAMU,CAAW,CAAC;AAErE,QAAIC,EAAYH,CAAO;AACnB,aAAOI,EAAkBJ,GAASR,GAAM,IAAOE,CAAO;AAE1D,QAAIW,EAAgBL,CAAO;AACvB,aAAK,MAAM,QAAQA,EAAQ,SAAS,IAG7BA,EAAQ,UAAU,SAASR,EAAK,OAAM,CAAE,IAFpCQ,EAAQ,cAAcR,EAAK,OAAM;AAIhD,QAAIc,EAAeN,CAAO,GAAG;AACzB,YAAMO,IAAaT,EAAyBE,EAAQ,QAAQR,CAAI,GAC1DgB,IAAYV,EAAyBE,EAAQ,OAAOR,CAAI,GACxDiB,IAAcF,IAAa,GAC3BG,IAAaF,IAAY;AAE/B,aADyBT,EAAQC,EAAQ,QAAQA,EAAQ,KAAK,IAEnDU,KAAcD,IAGdA,KAAeC;AAAA,IAE9B;AACA,WAAIC,EAAgBX,CAAO,IAChBF,EAAyBN,GAAMQ,EAAQ,KAAK,IAAI,IAEvDY,EAAiBZ,CAAO,IACjBF,EAAyBE,EAAQ,QAAQR,CAAI,IAAI,IAExD,OAAOQ,KAAY,aACZA,EAAQR,CAAI,IAEhB;AAAA,EACX,CAAC;AACL;","x_google_ignoreList":[0]}
|
package/dist/index247.js
CHANGED
|
@@ -1,48 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (!r)
|
|
7
|
-
return {};
|
|
8
|
-
var n;
|
|
9
|
-
if (r[0] !== "+") {
|
|
10
|
-
var l = t(r, e || f, _, i);
|
|
11
|
-
if (l && l !== r)
|
|
12
|
-
n = !0, r = "+" + l;
|
|
13
|
-
else {
|
|
14
|
-
if (e || f || _) {
|
|
15
|
-
var s = I(r, e, f, _, i), M = s.countryCallingCode, c = s.number;
|
|
16
|
-
if (M)
|
|
17
|
-
return {
|
|
18
|
-
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
19
|
-
countryCallingCode: M,
|
|
20
|
-
number: c
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
// No need to set it to `UNSPECIFIED`. It can be just `undefined`.
|
|
25
|
-
// countryCallingCodeSource: 'UNSPECIFIED',
|
|
26
|
-
number: r
|
|
27
|
-
};
|
|
28
|
-
}
|
|
1
|
+
function j(r, n, I, W) {
|
|
2
|
+
const s = r[0], o = r[r.length - 1], { ISOWeek: c, fixedWeeks: u, broadcastCalendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
|
|
3
|
+
for (let t = 0; t <= A; t++) {
|
|
4
|
+
const d = i(g, t);
|
|
5
|
+
e.push(d);
|
|
29
6
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
countryCallingCodeSource: n ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
38
|
-
countryCallingCode: N,
|
|
39
|
-
number: r.slice(o)
|
|
40
|
-
};
|
|
41
|
-
o++;
|
|
7
|
+
const y = (a ? 35 : 42) * B;
|
|
8
|
+
if (u && e.length < y) {
|
|
9
|
+
const t = y - e.length;
|
|
10
|
+
for (let d = 0; d < t; d++) {
|
|
11
|
+
const T = i(e[e.length - 1], 1);
|
|
12
|
+
e.push(T);
|
|
13
|
+
}
|
|
42
14
|
}
|
|
43
|
-
return
|
|
15
|
+
return e;
|
|
44
16
|
}
|
|
45
17
|
export {
|
|
46
|
-
|
|
18
|
+
j as getDates
|
|
47
19
|
};
|
|
48
20
|
//# sourceMappingURL=index247.js.map
|
package/dist/index247.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index247.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index247.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","displayMonthsWeekEnd","constraintWeekEnd","gridEndDate","nOfDays","nOfMonths","dates","i","date","extraDates","daysToAdd"],"mappings":"AAYO,SAASA,EAASC,GAAeC,GAASC,GAAOC,GAAS;AAC7D,QAAMC,IAAaJ,EAAc,CAAC,GAC5BK,IAAYL,EAAcA,EAAc,SAAS,CAAC,GAClD,EAAE,SAAAM,GAAS,YAAAC,GAAY,mBAAAC,EAAiB,IAAKN,KAAS,CAAA,GACtD,EAAE,SAAAO,GAAS,0BAAAC,GAA0B,4BAAAC,GAA4B,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMhB,GAC1LiB,IAAqBZ,IACrBS,EAAqBb,GAAYD,CAAO,IACxCG,IACIY,EAAed,CAAU,IACzBe,EAAYf,CAAU,GAC1BiB,IAAuBb,IACvBI,EAAmBP,CAAS,IAC5BC,IACIO,EAAaC,EAAWT,CAAS,CAAC,IAClCU,EAAUD,EAAWT,CAAS,CAAC,GAEnCiB,IAAoBrB,MACrBO,IACKI,EAAmBX,CAAO,IAC1BK,IACIO,EAAaZ,CAAO,IACpBc,EAAUd,CAAO,IAEzBsB,IAAcD,KAAqBN,EAAQK,GAAsBC,CAAiB,IAClFA,IACAD,GACAG,IAAUd,EAAyBa,GAAaH,CAAkB,GAClEK,IAAYd,EAA2BN,GAAWD,CAAU,IAAI,GAChEsB,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,KAAKH,GAASG,KAAK;AAC/B,UAAMC,IAAOnB,EAAQW,GAAoBO,CAAC;AAC1C,IAAAD,EAAM,KAAKE,CAAI;AAAA,EACnB;AAGA,QAAMC,KADyBrB,IAAoB,KAAK,MACZiB;AAC5C,MAAIlB,KAAcmB,EAAM,SAASG,GAAY;AACzC,UAAMC,IAAYD,IAAaH,EAAM;AACrC,aAASC,IAAI,GAAGA,IAAIG,GAAWH,KAAK;AAChC,YAAMC,IAAOnB,EAAQiB,EAAMA,EAAM,SAAS,CAAC,GAAG,CAAC;AAC/C,MAAAA,EAAM,KAAKE,CAAI;AAAA,IACnB;AAAA,EACJ;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
|
package/dist/index248.js
CHANGED
|
@@ -1,99 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
formatExtension: function(t, r, e) {
|
|
8
|
-
return "".concat(t).concat(e.ext()).concat(r);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
function O(n, t, r, e) {
|
|
12
|
-
if (r ? r = E({}, l, r) : r = l, e = new m(e), n.country && n.country !== "001") {
|
|
13
|
-
if (!e.hasCountry(n.country))
|
|
14
|
-
throw new Error("Unknown country: ".concat(n.country));
|
|
15
|
-
e.selectNumberingPlan(n.country);
|
|
16
|
-
} else if (n.countryCallingCode)
|
|
17
|
-
e.selectNumberingPlan(n.countryCallingCode);
|
|
18
|
-
else return n.phone || "";
|
|
19
|
-
var o = e.countryCallingCode(), a = r.v2 ? n.nationalNumber : n.phone, c;
|
|
20
|
-
switch (t) {
|
|
21
|
-
case "NATIONAL":
|
|
22
|
-
return a ? (c = f(a, n.carrierCode, "NATIONAL", e, r), u(c, n.ext, e, r.formatExtension)) : "";
|
|
23
|
-
case "INTERNATIONAL":
|
|
24
|
-
return a ? (c = f(a, null, "INTERNATIONAL", e, r), c = "+".concat(o, " ").concat(c), u(c, n.ext, e, r.formatExtension)) : "+".concat(o);
|
|
25
|
-
case "E.164":
|
|
26
|
-
return "+".concat(o).concat(a);
|
|
27
|
-
case "RFC3966":
|
|
28
|
-
return I({
|
|
29
|
-
number: "+".concat(o).concat(a),
|
|
30
|
-
ext: n.ext
|
|
31
|
-
});
|
|
32
|
-
// For reference, here's Google's IDD formatter:
|
|
33
|
-
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
34
|
-
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
35
|
-
// Who would even need to format phone numbers in IDD format anyway?
|
|
36
|
-
case "IDD":
|
|
37
|
-
if (!r.fromCountry)
|
|
38
|
-
return;
|
|
39
|
-
var i = A(a, n.carrierCode, o, r.fromCountry, e);
|
|
40
|
-
return u(i, n.ext, e, r.formatExtension);
|
|
41
|
-
default:
|
|
42
|
-
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function f(n, t, r, e, o) {
|
|
46
|
-
var a = x(e.formats(), n);
|
|
47
|
-
return a ? g(n, a, {
|
|
48
|
-
useInternationalFormat: r === "INTERNATIONAL",
|
|
49
|
-
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && o && o.nationalPrefix === !1),
|
|
50
|
-
carrierCode: t,
|
|
51
|
-
metadata: e
|
|
52
|
-
}) : n;
|
|
53
|
-
}
|
|
54
|
-
function x(n, t) {
|
|
55
|
-
return v(n, function(r) {
|
|
56
|
-
if (r.leadingDigitsPatterns().length > 0) {
|
|
57
|
-
var e = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
|
58
|
-
if (t.search(e) !== 0)
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
return N(t, r.pattern());
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function u(n, t, r, e) {
|
|
65
|
-
return t ? e(n, t, r) : n;
|
|
66
|
-
}
|
|
67
|
-
function A(n, t, r, e, o) {
|
|
68
|
-
var a = s(e, o.metadata);
|
|
69
|
-
if (a === r) {
|
|
70
|
-
var c = f(n, t, "NATIONAL", o);
|
|
71
|
-
return r === "1" ? r + " " + c : c;
|
|
72
|
-
}
|
|
73
|
-
var i = h(e, void 0, o.metadata);
|
|
74
|
-
if (i)
|
|
75
|
-
return "".concat(i, " ").concat(r, " ").concat(f(n, null, "INTERNATIONAL", o));
|
|
76
|
-
}
|
|
77
|
-
function E() {
|
|
78
|
-
for (var n = 1, t = arguments.length, r = new Array(t), e = 0; e < t; e++)
|
|
79
|
-
r[e] = arguments[e];
|
|
80
|
-
for (; n < r.length; ) {
|
|
81
|
-
if (r[n])
|
|
82
|
-
for (var o in r[n])
|
|
83
|
-
r[0][o] = r[n][o];
|
|
84
|
-
n++;
|
|
85
|
-
}
|
|
86
|
-
return r[0];
|
|
87
|
-
}
|
|
88
|
-
function v(n, t) {
|
|
89
|
-
for (var r = 0; r < n.length; ) {
|
|
90
|
-
if (t(n[r]))
|
|
91
|
-
return n[r];
|
|
92
|
-
r++;
|
|
93
|
-
}
|
|
1
|
+
function a(c) {
|
|
2
|
+
const e = [];
|
|
3
|
+
return c.reduce((s, t) => {
|
|
4
|
+
const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
|
|
5
|
+
return s.concat(n.slice());
|
|
6
|
+
}, e.slice());
|
|
94
7
|
}
|
|
95
8
|
export {
|
|
96
|
-
|
|
97
|
-
O as default
|
|
9
|
+
a as getDays
|
|
98
10
|
};
|
|
99
11
|
//# sourceMappingURL=index248.js.map
|
package/dist/index248.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index248.js","sources":["../../../node_modules/libphonenumber-js/es6/format.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n\n/**\r\n * Formats a phone number.\r\n *\r\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\r\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\r\n *\r\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\r\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {string} format\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\nexport default function formatNumber(input, format, options, metadata) {\n // Apply default options.\n if (options) {\n // Using ES6 \"rest spread\" syntax here didn't work with `babel`/`istanbul`\n // for some weird reason: this line of code would cause the code coverage\n // to show as not 100%. That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // options = { ...DEFAULT_OPTIONS, ...options }\n //\n options = merge({}, DEFAULT_OPTIONS, options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n metadata = new Metadata(metadata);\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n var number;\n switch (format) {\n case 'NATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return '';\n }\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n case 'IDD':\n if (!options.fromCountry) {\n return;\n // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n if (!format) {\n return number;\n }\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\nexport function chooseFormatForNumber(availableFormats, nationalNumber) {\n // Using a `for ... of` loop here didn't work with `babel`/`istanbul`:\n // for some weird reason, it showed code coverage less than 100%.\n // That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // for (const format of availableFormats) { ... }\n //\n return pickFirstMatchingElement(availableFormats, function (format) {\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];\n // If leading digits don't match then move on to the next phone number format\n if (nationalNumber.search(lastLeadingDigitsPattern) !== 0) {\n return false;\n }\n }\n // Check that the national number matches the phone number format regular expression\n return matchesEntirely(nationalNumber, format.pattern());\n });\n}\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata);\n // When calling within the same country calling code.\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata);\n // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n }\n // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n return formattedNumber;\n }\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\nfunction merge() {\n var i = 1;\n for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {\n objects[_key] = arguments[_key];\n }\n while (i < objects.length) {\n if (objects[i]) {\n for (var key in objects[i]) {\n objects[0][key] = objects[i][key];\n }\n }\n i++;\n }\n return objects[0];\n}\nfunction pickFirstMatchingElement(elements, testFunction) {\n var i = 0;\n while (i < elements.length) {\n if (testFunction(elements[i])) {\n return elements[i];\n }\n i++;\n }\n}\n//# sourceMappingURL=format.js.map"],"names":["DEFAULT_OPTIONS","formattedNumber","extension","metadata","formatNumber","input","format","options","merge","Metadata","countryCallingCode","nationalNumber","number","formatNationalNumber","addExtension","formatRFC3966","formatIDD","carrierCode","formatAs","chooseFormatForNumber","formatNationalNumberUsingFormat","availableFormats","pickFirstMatchingElement","lastLeadingDigitsPattern","matchesEntirely","ext","formatExtension","fromCountry","fromCountryCallingCode","getCountryCallingCode","iddPrefix","getIddPrefix","i","_len","objects","_key","key","elements","testFunction"],"mappings":";;;;;AAUA,IAAIA,IAAkB;AAAA,EACpB,iBAAiB,SAAyBC,GAAiBC,GAAWC,GAAU;AAC9E,WAAO,GAAG,OAAOF,CAAe,EAAE,OAAOE,EAAS,IAAG,CAAE,EAAE,OAAOD,CAAS;AAAA,EAC3E;AACF;AAiBe,SAASE,EAAaC,GAAOC,GAAQC,GAASJ,GAAU;AAerE,MAbII,IAQFA,IAAUC,EAAM,IAAIR,GAAiBO,CAAO,IAE5CA,IAAUP,GAEZG,IAAW,IAAIM,EAASN,CAAQ,GAC5BE,EAAM,WAAWA,EAAM,YAAY,OAAO;AAE5C,QAAI,CAACF,EAAS,WAAWE,EAAM,OAAO;AACpC,YAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,IAAAF,EAAS,oBAAoBE,EAAM,OAAO;AAAA,EAC5C,WAAWA,EAAM;AACf,IAAAF,EAAS,oBAAoBE,EAAM,kBAAkB;AAAA,MAChD,QAAOA,EAAM,SAAS;AAC7B,MAAIK,IAAqBP,EAAS,mBAAkB,GAChDQ,IAAiBJ,EAAQ,KAAKF,EAAM,iBAAiBA,EAAM,OAI3DO;AACJ,UAAQN,GAAM;AAAA,IACZ,KAAK;AAGH,aAAKK,KAGLC,IAASC,EAAqBF,GAAgBN,EAAM,aAAa,YAAYF,GAAUI,CAAO,GACvFO,EAAaF,GAAQP,EAAM,KAAKF,GAAUI,EAAQ,eAAe,KAH/D;AAAA,IAIX,KAAK;AAGH,aAAKI,KAGLC,IAASC,EAAqBF,GAAgB,MAAM,iBAAiBR,GAAUI,CAAO,GACtFK,IAAS,IAAI,OAAOF,GAAoB,GAAG,EAAE,OAAOE,CAAM,GACnDE,EAAaF,GAAQP,EAAM,KAAKF,GAAUI,EAAQ,eAAe,KAJ/D,IAAI,OAAOG,CAAkB;AAAA,IAKxC,KAAK;AAEH,aAAO,IAAI,OAAOA,CAAkB,EAAE,OAAOC,CAAc;AAAA,IAC7D,KAAK;AACH,aAAOI,EAAc;AAAA,QACnB,QAAQ,IAAI,OAAOL,CAAkB,EAAE,OAAOC,CAAc;AAAA,QAC5D,KAAKN,EAAM;AAAA,MACnB,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAMH,KAAK;AACH,UAAI,CAACE,EAAQ;AACX;AAGF,UAAIN,IAAkBe,EAAUL,GAAgBN,EAAM,aAAaK,GAAoBH,EAAQ,aAAaJ,CAAQ;AACpH,aAAOW,EAAab,GAAiBI,EAAM,KAAKF,GAAUI,EAAQ,eAAe;AAAA,IACnF;AACE,YAAM,IAAI,MAAM,0DAA+D,OAAOD,GAAQ,GAAI,CAAC;AAAA,EACzG;AACA;AACA,SAASO,EAAqBD,GAAQK,GAAaC,GAAUf,GAAUI,GAAS;AAC9E,MAAID,IAASa,EAAsBhB,EAAS,QAAO,GAAIS,CAAM;AAC7D,SAAKN,IAGEc,EAAgCR,GAAQN,GAAQ;AAAA,IACrD,wBAAwBY,MAAa;AAAA,IACrC,oBAAoB,EAAAZ,EAAO,4DAA4DC,KAAWA,EAAQ,mBAAmB;AAAA,IAC7H,aAAaU;AAAA,IACb,UAAUd;AAAA,EACd,CAAG,IAPQS;AAQX;AACO,SAASO,EAAsBE,GAAkBV,GAAgB;AAQtE,SAAOW,EAAyBD,GAAkB,SAAUf,GAAQ;AAIlE,QAAIA,EAAO,wBAAwB,SAAS,GAAG;AAE7C,UAAIiB,IAA2BjB,EAAO,sBAAqB,EAAGA,EAAO,sBAAqB,EAAG,SAAS,CAAC;AAEvG,UAAIK,EAAe,OAAOY,CAAwB,MAAM;AACtD,eAAO;AAAA,IAEX;AAEA,WAAOC,EAAgBb,GAAgBL,EAAO,QAAO,CAAE;AAAA,EACzD,CAAC;AACH;AACA,SAASQ,EAAab,GAAiBwB,GAAKtB,GAAUuB,GAAiB;AACrE,SAAOD,IAAMC,EAAgBzB,GAAiBwB,GAAKtB,CAAQ,IAAIF;AACjE;AACA,SAASe,EAAUL,GAAgBM,GAAaP,GAAoBiB,GAAaxB,GAAU;AACzF,MAAIyB,IAAyBC,EAAsBF,GAAaxB,EAAS,QAAQ;AAEjF,MAAIyB,MAA2BlB,GAAoB;AACjD,QAAIT,IAAkBY,EAAqBF,GAAgBM,GAAa,YAAYd,CAAQ;AAG5F,WAAIO,MAAuB,MAClBA,IAAqB,MAAMT,IAW7BA;AAAA,EACT;AACA,MAAI6B,IAAYC,EAAaJ,GAAa,QAAWxB,EAAS,QAAQ;AACtE,MAAI2B;AACF,WAAO,GAAG,OAAOA,GAAW,GAAG,EAAE,OAAOpB,GAAoB,GAAG,EAAE,OAAOG,EAAqBF,GAAgB,MAAM,iBAAiBR,CAAQ,CAAC;AAEjJ;AACA,SAASK,IAAQ;AAEf,WADIwB,IAAI,GACCC,IAAO,UAAU,QAAQC,IAAU,IAAI,MAAMD,CAAI,GAAGE,IAAO,GAAGA,IAAOF,GAAME;AAClF,IAAAD,EAAQC,CAAI,IAAI,UAAUA,CAAI;AAEhC,SAAOH,IAAIE,EAAQ,UAAQ;AACzB,QAAIA,EAAQF,CAAC;AACX,eAASI,KAAOF,EAAQF,CAAC;AACvB,QAAAE,EAAQ,CAAC,EAAEE,CAAG,IAAIF,EAAQF,CAAC,EAAEI,CAAG;AAGpC,IAAAJ;AAAA,EACF;AACA,SAAOE,EAAQ,CAAC;AAClB;AACA,SAASZ,EAAyBe,GAAUC,GAAc;AAExD,WADIN,IAAI,GACDA,IAAIK,EAAS,UAAQ;AAC1B,QAAIC,EAAaD,EAASL,CAAC,CAAC;AAC1B,aAAOK,EAASL,CAAC;AAEnB,IAAAA;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index248.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":["getDays","calendarMonths","initialDays","days","month","weekDays","week"],"mappings":"AAQO,SAASA,EAAQC,GAAgB;AACpC,QAAMC,IAAc,CAAA;AACpB,SAAOD,EAAe,OAAO,CAACE,GAAMC,MAAU;AAC1C,UAAMC,IAAWD,EAAM,MAAM,OAAO,CAACC,GAAUC,MACpCD,EAAS,OAAOC,EAAK,KAAK,MAAK,CAAE,GACzCJ,EAAY,OAAO;AACtB,WAAOC,EAAK,OAAOE,EAAS,MAAK,CAAE;AAAA,EACvC,GAAGH,EAAY,OAAO;AAC1B;","x_google_ignoreList":[0]}
|
package/dist/index249.js
CHANGED
|
@@ -1,90 +1,14 @@
|
|
|
1
|
-
function i(r) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
function a(r, t, n) {
|
|
10
|
-
return Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
11
|
-
}
|
|
12
|
-
function s(r, t) {
|
|
13
|
-
if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
15
|
-
function l(r, t, n) {
|
|
16
|
-
return t = c(t), y(r, p() ? Reflect.construct(t, n || [], c(r).constructor) : t.apply(r, n));
|
|
17
|
-
}
|
|
18
|
-
function y(r, t) {
|
|
19
|
-
if (t && (i(t) == "object" || typeof t == "function")) return t;
|
|
20
|
-
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
21
|
-
return b(r);
|
|
22
|
-
}
|
|
23
|
-
function b(r) {
|
|
24
|
-
if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25
|
-
return r;
|
|
26
|
-
}
|
|
27
|
-
function _(r, t) {
|
|
28
|
-
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
29
|
-
r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), t && u(r, t);
|
|
30
|
-
}
|
|
31
|
-
function f(r) {
|
|
32
|
-
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
33
|
-
return f = function(e) {
|
|
34
|
-
if (e === null || !v(e)) return e;
|
|
35
|
-
if (typeof e != "function") throw new TypeError("Super expression must either be null or a function");
|
|
36
|
-
if (t !== void 0) {
|
|
37
|
-
if (t.has(e)) return t.get(e);
|
|
38
|
-
t.set(e, o);
|
|
39
|
-
}
|
|
40
|
-
function o() {
|
|
41
|
-
return h(e, arguments, c(this).constructor);
|
|
42
|
-
}
|
|
43
|
-
return o.prototype = Object.create(e.prototype, { constructor: { value: o, enumerable: !1, writable: !0, configurable: !0 } }), u(o, e);
|
|
44
|
-
}, f(r);
|
|
45
|
-
}
|
|
46
|
-
function h(r, t, n) {
|
|
47
|
-
if (p()) return Reflect.construct.apply(null, arguments);
|
|
48
|
-
var e = [null];
|
|
49
|
-
e.push.apply(e, t);
|
|
50
|
-
var o = new (r.bind.apply(r, e))();
|
|
51
|
-
return n && u(o, n.prototype), o;
|
|
52
|
-
}
|
|
53
|
-
function p() {
|
|
54
|
-
try {
|
|
55
|
-
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
56
|
-
}));
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
return (p = function() {
|
|
60
|
-
return !!r;
|
|
61
|
-
})();
|
|
62
|
-
}
|
|
63
|
-
function v(r) {
|
|
64
|
-
try {
|
|
65
|
-
return Function.toString.call(r).indexOf("[native code]") !== -1;
|
|
66
|
-
} catch {
|
|
67
|
-
return typeof r == "function";
|
|
1
|
+
function i(e, o, h, r) {
|
|
2
|
+
const { numberOfMonths: f = 1 } = h, n = [];
|
|
3
|
+
for (let t = 0; t < f; t++) {
|
|
4
|
+
const s = r.addMonths(e, t);
|
|
5
|
+
if (o && s > o)
|
|
6
|
+
break;
|
|
7
|
+
n.push(s);
|
|
68
8
|
}
|
|
9
|
+
return n;
|
|
69
10
|
}
|
|
70
|
-
function u(r, t) {
|
|
71
|
-
return u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, e) {
|
|
72
|
-
return n.__proto__ = e, n;
|
|
73
|
-
}, u(r, t);
|
|
74
|
-
}
|
|
75
|
-
function c(r) {
|
|
76
|
-
return c = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
77
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
78
|
-
}, c(r);
|
|
79
|
-
}
|
|
80
|
-
var O = /* @__PURE__ */ (function(r) {
|
|
81
|
-
function t(n) {
|
|
82
|
-
var e;
|
|
83
|
-
return s(this, t), e = l(this, t, [n]), Object.setPrototypeOf(e, t.prototype), e.name = e.constructor.name, e;
|
|
84
|
-
}
|
|
85
|
-
return _(t, r), a(t);
|
|
86
|
-
})(/* @__PURE__ */ f(Error));
|
|
87
11
|
export {
|
|
88
|
-
|
|
12
|
+
i as getDisplayMonths
|
|
89
13
|
};
|
|
90
14
|
//# sourceMappingURL=index249.js.map
|
package/dist/index249.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index249.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index249.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month"],"mappings":"AAUO,SAASA,EAAiBC,GAAqBC,GAAkBC,GAAOC,GAAS;AACpF,QAAM,EAAE,gBAAAC,IAAiB,EAAC,IAAKF,GACzBG,IAAS,CAAA;AACf,WAASC,IAAI,GAAGA,IAAIF,GAAgBE,KAAK;AACrC,UAAMC,IAAQJ,EAAQ,UAAUH,GAAqBM,CAAC;AACtD,QAAIL,KAAoBM,IAAQN;AAC5B;AAEJ,IAAAI,EAAO,KAAKE,CAAK;AAAA,EACrB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
|