@rpcbase/ui 0.166.0 → 0.167.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.
Files changed (679) hide show
  1. package/dist/index100.js +318 -8
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +126 -38
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +20 -4
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +76 -52
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +18 -4
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +101 -4
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +5 -16
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +14 -5
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +2 -8
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +7 -16
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index11.js +13 -4
  22. package/dist/index11.js.map +1 -1
  23. package/dist/index110.js +326 -4
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +49 -4
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +52 -6
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +4 -5
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +4 -4
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +14 -3
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +5 -6
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +7 -24
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +16 -6
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +4 -4
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +4 -6
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +5 -5
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +5 -4
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +4 -5
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +4 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +5 -7
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +24 -5
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +6 -4
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +4 -4
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +6 -6
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index13.js +1 -1
  64. package/dist/index130.js +5 -145
  65. package/dist/index130.js.map +1 -1
  66. package/dist/index131.js +4 -39
  67. package/dist/index131.js.map +1 -1
  68. package/dist/index132.js +5 -4
  69. package/dist/index132.js.map +1 -1
  70. package/dist/index133.js +4 -7
  71. package/dist/index133.js.map +1 -1
  72. package/dist/index134.js +8 -13
  73. package/dist/index134.js.map +1 -1
  74. package/dist/index135.js +5 -13
  75. package/dist/index135.js.map +1 -1
  76. package/dist/index136.js +4 -7
  77. package/dist/index136.js.map +1 -1
  78. package/dist/index137.js +4 -31
  79. package/dist/index137.js.map +1 -1
  80. package/dist/index138.js +6 -10
  81. package/dist/index138.js.map +1 -1
  82. package/dist/index139.js +145 -10
  83. package/dist/index139.js.map +1 -1
  84. package/dist/index14.js +3 -3
  85. package/dist/index140.js +38 -7
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +4 -13
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +5 -99
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +14 -20
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +13 -53
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +6 -71
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +31 -9
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +10 -20
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +10 -16
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +8 -23
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +13 -6
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +101 -5
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +20 -24
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +53 -34
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +73 -16
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +9 -6
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +20 -4
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +16 -4
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +23 -4
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +6 -4
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index160.js +5 -3
  126. package/dist/index160.js.map +1 -1
  127. package/dist/index161.js +23 -6
  128. package/dist/index161.js.map +1 -1
  129. package/dist/index162.js +35 -24
  130. package/dist/index162.js.map +1 -1
  131. package/dist/index163.js +16 -8
  132. package/dist/index163.js.map +1 -1
  133. package/dist/index164.js +5 -5
  134. package/dist/index164.js.map +1 -1
  135. package/dist/index165.js +4 -5
  136. package/dist/index165.js.map +1 -1
  137. package/dist/index166.js +4 -3
  138. package/dist/index166.js.map +1 -1
  139. package/dist/index167.js +4 -3
  140. package/dist/index167.js.map +1 -1
  141. package/dist/index168.js +4 -4
  142. package/dist/index168.js.map +1 -1
  143. package/dist/index169.js +3 -3
  144. package/dist/index169.js.map +1 -1
  145. package/dist/index170.js +6 -4
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +24 -4
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +7 -3
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js +6 -3
  152. package/dist/index173.js.map +1 -1
  153. package/dist/index174.js +5 -24
  154. package/dist/index174.js.map +1 -1
  155. package/dist/index175.js +4 -29
  156. package/dist/index175.js.map +1 -1
  157. package/dist/index176.js +4 -5
  158. package/dist/index176.js.map +1 -1
  159. package/dist/index177.js +4 -67
  160. package/dist/index177.js.map +1 -1
  161. package/dist/index178.js +3 -180
  162. package/dist/index178.js.map +1 -1
  163. package/dist/index179.js +4 -46
  164. package/dist/index179.js.map +1 -1
  165. package/dist/index18.js +10 -1
  166. package/dist/index18.js.map +1 -1
  167. package/dist/index180.js +3 -13
  168. package/dist/index180.js.map +1 -1
  169. package/dist/index181.js +3 -154
  170. package/dist/index181.js.map +1 -1
  171. package/dist/index182.js +3 -30
  172. package/dist/index182.js.map +1 -1
  173. package/dist/index183.js +3 -9
  174. package/dist/index183.js.map +1 -1
  175. package/dist/index184.js +2 -48
  176. package/dist/index184.js.map +1 -1
  177. package/dist/index185.js +67 -11
  178. package/dist/index185.js.map +1 -1
  179. package/dist/index186.js +83 -43
  180. package/dist/index186.js.map +1 -1
  181. package/dist/index187.js +41 -90
  182. package/dist/index187.js.map +1 -1
  183. package/dist/index188.js +7 -86
  184. package/dist/index188.js.map +1 -1
  185. package/dist/index189.js +4 -105
  186. package/dist/index189.js.map +1 -1
  187. package/dist/index19.js +6 -6
  188. package/dist/index190.js +49 -50
  189. package/dist/index190.js.map +1 -1
  190. package/dist/index191.js +24 -11
  191. package/dist/index191.js.map +1 -1
  192. package/dist/index192.js +29 -38
  193. package/dist/index192.js.map +1 -1
  194. package/dist/index193.js +5 -9
  195. package/dist/index193.js.map +1 -1
  196. package/dist/index194.js +5 -116
  197. package/dist/index194.js.map +1 -1
  198. package/dist/index195.js +67 -16
  199. package/dist/index195.js.map +1 -1
  200. package/dist/index196.js +2 -16
  201. package/dist/index196.js.map +1 -1
  202. package/dist/index197.js +363 -3
  203. package/dist/index197.js.map +1 -1
  204. package/dist/index198.js +259 -34
  205. package/dist/index198.js.map +1 -1
  206. package/dist/index199.js +59 -19
  207. package/dist/index199.js.map +1 -1
  208. package/dist/index20.js +1 -1
  209. package/dist/index200.js +46 -9
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +169 -8
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +108 -18
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +24 -28
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index204.js +8 -17
  218. package/dist/index204.js.map +1 -1
  219. package/dist/index205.js +4 -58
  220. package/dist/index205.js.map +1 -1
  221. package/dist/index206.js +5 -8
  222. package/dist/index206.js.map +1 -1
  223. package/dist/index207.js +4 -66
  224. package/dist/index207.js.map +1 -1
  225. package/dist/index208.js +464 -17
  226. package/dist/index208.js.map +1 -1
  227. package/dist/index209.js +183 -14
  228. package/dist/index209.js.map +1 -1
  229. package/dist/index21.js +1 -1
  230. package/dist/index210.js +106 -4
  231. package/dist/index210.js.map +1 -1
  232. package/dist/index211.js +261 -4
  233. package/dist/index211.js.map +1 -1
  234. package/dist/index212.js +9 -6
  235. package/dist/index212.js.map +1 -1
  236. package/dist/index213.js +42 -4
  237. package/dist/index213.js.map +1 -1
  238. package/dist/index214.js +4 -7
  239. package/dist/index214.js.map +1 -1
  240. package/dist/index215.js +64 -17
  241. package/dist/index215.js.map +1 -1
  242. package/dist/index216.js +47 -4
  243. package/dist/index216.js.map +1 -1
  244. package/dist/index217.js +67 -5
  245. package/dist/index217.js.map +1 -1
  246. package/dist/index218.js +180 -13
  247. package/dist/index218.js.map +1 -1
  248. package/dist/index219.js +46 -10
  249. package/dist/index219.js.map +1 -1
  250. package/dist/index220.js +39 -14
  251. package/dist/index220.js.map +1 -1
  252. package/dist/index221.js +100 -14
  253. package/dist/index221.js.map +1 -1
  254. package/dist/index222.js +97 -5
  255. package/dist/index222.js.map +1 -1
  256. package/dist/index223.js +99 -6
  257. package/dist/index223.js.map +1 -1
  258. package/dist/index224.js +58 -7
  259. package/dist/index224.js.map +1 -1
  260. package/dist/index225.js +8 -6
  261. package/dist/index225.js.map +1 -1
  262. package/dist/index226.js +66 -9
  263. package/dist/index226.js.map +1 -1
  264. package/dist/index227.js +19 -5
  265. package/dist/index227.js.map +1 -1
  266. package/dist/index228.js +16 -5
  267. package/dist/index228.js.map +1 -1
  268. package/dist/index229.js +5 -9
  269. package/dist/index229.js.map +1 -1
  270. package/dist/index23.js +1 -1
  271. package/dist/index230.js +5 -5
  272. package/dist/index230.js.map +1 -1
  273. package/dist/index231.js +6 -5
  274. package/dist/index231.js.map +1 -1
  275. package/dist/index232.js +4 -4
  276. package/dist/index232.js.map +1 -1
  277. package/dist/index233.js +7 -11
  278. package/dist/index233.js.map +1 -1
  279. package/dist/index234.js +16 -9
  280. package/dist/index234.js.map +1 -1
  281. package/dist/index235.js +5 -10
  282. package/dist/index235.js.map +1 -1
  283. package/dist/index236.js +5 -11
  284. package/dist/index236.js.map +1 -1
  285. package/dist/index237.js +13 -11
  286. package/dist/index237.js.map +1 -1
  287. package/dist/index238.js +10 -10
  288. package/dist/index238.js.map +1 -1
  289. package/dist/index239.js +13 -6
  290. package/dist/index239.js.map +1 -1
  291. package/dist/index240.js +14 -6
  292. package/dist/index240.js.map +1 -1
  293. package/dist/index241.js +4 -4
  294. package/dist/index241.js.map +1 -1
  295. package/dist/index242.js +6 -6
  296. package/dist/index242.js.map +1 -1
  297. package/dist/index243.js +6 -6
  298. package/dist/index243.js.map +1 -1
  299. package/dist/index244.js +5 -5
  300. package/dist/index244.js.map +1 -1
  301. package/dist/index245.js +9 -55
  302. package/dist/index245.js.map +1 -1
  303. package/dist/index246.js +5 -23
  304. package/dist/index246.js.map +1 -1
  305. package/dist/index247.js +5 -16
  306. package/dist/index247.js.map +1 -1
  307. package/dist/index248.js +9 -7
  308. package/dist/index248.js.map +1 -1
  309. package/dist/index249.js +5 -10
  310. package/dist/index249.js.map +1 -1
  311. package/dist/index250.js +5 -10
  312. package/dist/index250.js.map +1 -1
  313. package/dist/index251.js +4 -21
  314. package/dist/index251.js.map +1 -1
  315. package/dist/index252.js +11 -10
  316. package/dist/index252.js.map +1 -1
  317. package/dist/index253.js +10 -9
  318. package/dist/index253.js.map +1 -1
  319. package/dist/index254.js +10 -9
  320. package/dist/index254.js.map +1 -1
  321. package/dist/index255.js +11 -4
  322. package/dist/index255.js.map +1 -1
  323. package/dist/index256.js +11 -5
  324. package/dist/index256.js.map +1 -1
  325. package/dist/index257.js +10 -16
  326. package/dist/index257.js.map +1 -1
  327. package/dist/index258.js +7 -9
  328. package/dist/index258.js.map +1 -1
  329. package/dist/index259.js +6 -18
  330. package/dist/index259.js.map +1 -1
  331. package/dist/index260.js +5 -15
  332. package/dist/index260.js.map +1 -1
  333. package/dist/index261.js +6 -12
  334. package/dist/index261.js.map +1 -1
  335. package/dist/index262.js +7 -29
  336. package/dist/index262.js.map +1 -1
  337. package/dist/index263.js +6 -12
  338. package/dist/index263.js.map +1 -1
  339. package/dist/index264.js +54 -24
  340. package/dist/index264.js.map +1 -1
  341. package/dist/index265.js +23 -5
  342. package/dist/index265.js.map +1 -1
  343. package/dist/index266.js +17 -5
  344. package/dist/index266.js.map +1 -1
  345. package/dist/index267.js +8 -3
  346. package/dist/index267.js.map +1 -1
  347. package/dist/index268.js +10 -23
  348. package/dist/index268.js.map +1 -1
  349. package/dist/index269.js +10 -112
  350. package/dist/index269.js.map +1 -1
  351. package/dist/index270.js +21 -15
  352. package/dist/index270.js.map +1 -1
  353. package/dist/index271.js +10 -524
  354. package/dist/index271.js.map +1 -1
  355. package/dist/index272.js +9 -127
  356. package/dist/index272.js.map +1 -1
  357. package/dist/index273.js +9 -133
  358. package/dist/index273.js.map +1 -1
  359. package/dist/index274.js +4 -20
  360. package/dist/index274.js.map +1 -1
  361. package/dist/index275.js +5 -4
  362. package/dist/index275.js.map +1 -1
  363. package/dist/index276.js +16 -18
  364. package/dist/index276.js.map +1 -1
  365. package/dist/index277.js +9 -12
  366. package/dist/index277.js.map +1 -1
  367. package/dist/index278.js +19 -69
  368. package/dist/index278.js.map +1 -1
  369. package/dist/index279.js +15 -8
  370. package/dist/index279.js.map +1 -1
  371. package/dist/index28.js +1 -1
  372. package/dist/index280.js +13 -14
  373. package/dist/index280.js.map +1 -1
  374. package/dist/index281.js +30 -66
  375. package/dist/index281.js.map +1 -1
  376. package/dist/index282.js +12 -64
  377. package/dist/index282.js.map +1 -1
  378. package/dist/index283.js +25 -5
  379. package/dist/index283.js.map +1 -1
  380. package/dist/index284.js +5 -5
  381. package/dist/index284.js.map +1 -1
  382. package/dist/index285.js +2 -4
  383. package/dist/index285.js.map +1 -1
  384. package/dist/index286.js +2 -16
  385. package/dist/index286.js.map +1 -1
  386. package/dist/index287.js +5 -9
  387. package/dist/index287.js.map +1 -1
  388. package/dist/index288.js +3 -6
  389. package/dist/index288.js.map +1 -1
  390. package/dist/index289.js +23 -4
  391. package/dist/index289.js.map +1 -1
  392. package/dist/index29.js +5 -5
  393. package/dist/index290.js +111 -544
  394. package/dist/index290.js.map +1 -1
  395. package/dist/index291.js +15 -46
  396. package/dist/index291.js.map +1 -1
  397. package/dist/index292.js +521 -14
  398. package/dist/index292.js.map +1 -1
  399. package/dist/index293.js +127 -6
  400. package/dist/index293.js.map +1 -1
  401. package/dist/index294.js +133 -8
  402. package/dist/index294.js.map +1 -1
  403. package/dist/index295.js +13 -7
  404. package/dist/index295.js.map +1 -1
  405. package/dist/index296.js +154 -8
  406. package/dist/index296.js.map +1 -1
  407. package/dist/index297.js +30 -12
  408. package/dist/index297.js.map +1 -1
  409. package/dist/index298.js +9 -9
  410. package/dist/index298.js.map +1 -1
  411. package/dist/index299.js +47 -13
  412. package/dist/index299.js.map +1 -1
  413. package/dist/index30.js +47 -231
  414. package/dist/index30.js.map +1 -1
  415. package/dist/index300.js +11 -3
  416. package/dist/index300.js.map +1 -1
  417. package/dist/index301.js +43 -21
  418. package/dist/index301.js.map +1 -1
  419. package/dist/index302.js +95 -4
  420. package/dist/index302.js.map +1 -1
  421. package/dist/index303.js +85 -54
  422. package/dist/index303.js.map +1 -1
  423. package/dist/index304.js +105 -67
  424. package/dist/index304.js.map +1 -1
  425. package/dist/index305.js +53 -31
  426. package/dist/index305.js.map +1 -1
  427. package/dist/index306.js +12 -9
  428. package/dist/index306.js.map +1 -1
  429. package/dist/index307.js +36 -151
  430. package/dist/index307.js.map +1 -1
  431. package/dist/index308.js +9 -108
  432. package/dist/index308.js.map +1 -1
  433. package/dist/index309.js +4 -23
  434. package/dist/index309.js.map +1 -1
  435. package/dist/index31.js +218 -49
  436. package/dist/index31.js.map +1 -1
  437. package/dist/index310.js +10 -13
  438. package/dist/index310.js.map +1 -1
  439. package/dist/index311.js +113 -24
  440. package/dist/index311.js.map +1 -1
  441. package/dist/index312.js +18 -5
  442. package/dist/index312.js.map +1 -1
  443. package/dist/index313.js +15 -15
  444. package/dist/index313.js.map +1 -1
  445. package/dist/index314.js +33 -25
  446. package/dist/index314.js.map +1 -1
  447. package/dist/index315.js +20 -12
  448. package/dist/index315.js.map +1 -1
  449. package/dist/index316.js +8 -6
  450. package/dist/index316.js.map +1 -1
  451. package/dist/index317.js +23 -0
  452. package/dist/index317.js.map +1 -0
  453. package/dist/index318.js +32 -0
  454. package/dist/index318.js.map +1 -0
  455. package/dist/index319.js +20 -0
  456. package/dist/index319.js.map +1 -0
  457. package/dist/index32.js +36 -2633
  458. package/dist/index32.js.map +1 -1
  459. package/dist/index320.js +8 -0
  460. package/dist/index320.js.map +1 -0
  461. package/dist/index321.js +22 -0
  462. package/dist/index321.js.map +1 -0
  463. package/dist/index322.js +16 -0
  464. package/dist/index322.js.map +1 -0
  465. package/dist/index323.js +72 -0
  466. package/dist/index323.js.map +1 -0
  467. package/dist/index324.js +12 -0
  468. package/dist/index324.js.map +1 -0
  469. package/dist/index325.js +17 -0
  470. package/dist/index325.js.map +1 -0
  471. package/dist/index326.js +69 -0
  472. package/dist/index326.js.map +1 -0
  473. package/dist/index327.js +68 -0
  474. package/dist/index327.js.map +1 -0
  475. package/dist/index328.js +24 -0
  476. package/dist/index328.js.map +1 -0
  477. package/dist/index329.js +9 -0
  478. package/dist/index329.js.map +1 -0
  479. package/dist/index33.js +35 -388
  480. package/dist/index33.js.map +1 -1
  481. package/dist/index330.js +9 -0
  482. package/dist/index330.js.map +1 -0
  483. package/dist/index331.js +7 -0
  484. package/dist/index331.js.map +1 -0
  485. package/dist/index332.js +19 -0
  486. package/dist/index332.js.map +1 -0
  487. package/dist/index333.js +12 -0
  488. package/dist/index333.js.map +1 -0
  489. package/dist/index334.js +9 -0
  490. package/dist/index334.js.map +1 -0
  491. package/dist/index335.js +8 -0
  492. package/dist/index335.js.map +1 -0
  493. package/dist/index336.js +549 -0
  494. package/dist/index336.js.map +1 -0
  495. package/dist/index337.js +50 -0
  496. package/dist/index337.js.map +1 -0
  497. package/dist/index338.js +21 -0
  498. package/dist/index338.js.map +1 -0
  499. package/dist/index339.js +10 -0
  500. package/dist/index339.js.map +1 -0
  501. package/dist/index34.js +26 -230
  502. package/dist/index34.js.map +1 -1
  503. package/dist/index340.js +12 -0
  504. package/dist/index340.js.map +1 -0
  505. package/dist/index341.js +11 -0
  506. package/dist/index341.js.map +1 -0
  507. package/dist/index342.js +12 -0
  508. package/dist/index342.js.map +1 -0
  509. package/dist/index343.js +16 -0
  510. package/dist/index343.js.map +1 -0
  511. package/dist/index344.js +13 -0
  512. package/dist/index344.js.map +1 -0
  513. package/dist/index345.js +17 -0
  514. package/dist/index345.js.map +1 -0
  515. package/dist/index346.js +7 -0
  516. package/dist/index346.js.map +1 -0
  517. package/dist/index347.js +26 -0
  518. package/dist/index347.js.map +1 -0
  519. package/dist/index348.js +8 -0
  520. package/dist/index348.js.map +1 -0
  521. package/dist/index349.js +59 -0
  522. package/dist/index349.js.map +1 -0
  523. package/dist/index35.js +44 -20
  524. package/dist/index35.js.map +1 -1
  525. package/dist/index350.js +71 -0
  526. package/dist/index350.js.map +1 -0
  527. package/dist/index351.js +34 -0
  528. package/dist/index351.js.map +1 -0
  529. package/dist/index352.js +12 -0
  530. package/dist/index352.js.map +1 -0
  531. package/dist/index353.js +156 -0
  532. package/dist/index353.js.map +1 -0
  533. package/dist/index354.js +111 -0
  534. package/dist/index354.js.map +1 -0
  535. package/dist/index355.js +26 -0
  536. package/dist/index355.js.map +1 -0
  537. package/dist/index356.js +16 -0
  538. package/dist/index356.js.map +1 -0
  539. package/dist/index357.js +31 -0
  540. package/dist/index357.js.map +1 -0
  541. package/dist/index358.js +8 -0
  542. package/dist/index358.js.map +1 -0
  543. package/dist/index359.js +19 -0
  544. package/dist/index359.js.map +1 -0
  545. package/dist/index36.js +27 -137
  546. package/dist/index36.js.map +1 -1
  547. package/dist/index360.js +32 -0
  548. package/dist/index360.js.map +1 -0
  549. package/dist/index361.js +16 -0
  550. package/dist/index361.js.map +1 -0
  551. package/dist/index362.js +10 -0
  552. package/dist/index362.js.map +1 -0
  553. package/dist/index37.js +22 -181
  554. package/dist/index37.js.map +1 -1
  555. package/dist/index38.js +23 -77
  556. package/dist/index38.js.map +1 -1
  557. package/dist/index39.js +127 -89
  558. package/dist/index39.js.map +1 -1
  559. package/dist/index40.js +231 -5
  560. package/dist/index40.js.map +1 -1
  561. package/dist/index41.js +51 -844
  562. package/dist/index41.js.map +1 -1
  563. package/dist/index42.js +2636 -61
  564. package/dist/index42.js.map +1 -1
  565. package/dist/index43.js +393 -7
  566. package/dist/index43.js.map +1 -1
  567. package/dist/index44.js +233 -2
  568. package/dist/index44.js.map +1 -1
  569. package/dist/index45.js +20 -22
  570. package/dist/index45.js.map +1 -1
  571. package/dist/index46.js +140 -232
  572. package/dist/index46.js.map +1 -1
  573. package/dist/index47.js +180 -198
  574. package/dist/index47.js.map +1 -1
  575. package/dist/index48.js +76 -3
  576. package/dist/index48.js.map +1 -1
  577. package/dist/index49.js +89 -5
  578. package/dist/index49.js.map +1 -1
  579. package/dist/index50.js +5 -47
  580. package/dist/index50.js.map +1 -1
  581. package/dist/index51.js +840 -23
  582. package/dist/index51.js.map +1 -1
  583. package/dist/index52.js +65 -50
  584. package/dist/index52.js.map +1 -1
  585. package/dist/index53.js +7 -7
  586. package/dist/index53.js.map +1 -1
  587. package/dist/index54.js +2 -15
  588. package/dist/index54.js.map +1 -1
  589. package/dist/index55.js +22 -132
  590. package/dist/index55.js.map +1 -1
  591. package/dist/index56.js +233 -10
  592. package/dist/index56.js.map +1 -1
  593. package/dist/index57.js +191 -203
  594. package/dist/index57.js.map +1 -1
  595. package/dist/index58.js +4 -13
  596. package/dist/index58.js.map +1 -1
  597. package/dist/index59.js +6 -33
  598. package/dist/index59.js.map +1 -1
  599. package/dist/index60.js +44 -43
  600. package/dist/index60.js.map +1 -1
  601. package/dist/index61.js +26 -7
  602. package/dist/index61.js.map +1 -1
  603. package/dist/index62.js +48 -47
  604. package/dist/index62.js.map +1 -1
  605. package/dist/index63.js +7 -3
  606. package/dist/index63.js.map +1 -1
  607. package/dist/index64.js +14 -5
  608. package/dist/index64.js.map +1 -1
  609. package/dist/index65.js +133 -27
  610. package/dist/index65.js.map +1 -1
  611. package/dist/index66.js +11 -50
  612. package/dist/index66.js.map +1 -1
  613. package/dist/index67.js +216 -8
  614. package/dist/index67.js.map +1 -1
  615. package/dist/index68.js +13 -2
  616. package/dist/index68.js.map +1 -1
  617. package/dist/index69.js +34 -2
  618. package/dist/index69.js.map +1 -1
  619. package/dist/index70.js +46 -11
  620. package/dist/index70.js.map +1 -1
  621. package/dist/index71.js +7 -53
  622. package/dist/index71.js.map +1 -1
  623. package/dist/index72.js +49 -5
  624. package/dist/index72.js.map +1 -1
  625. package/dist/index73.js +4 -8
  626. package/dist/index73.js.map +1 -1
  627. package/dist/index74.js +5 -5
  628. package/dist/index74.js.map +1 -1
  629. package/dist/index75.js +27 -46
  630. package/dist/index75.js.map +1 -1
  631. package/dist/index76.js +48 -204
  632. package/dist/index76.js.map +1 -1
  633. package/dist/index77.js +8 -21
  634. package/dist/index77.js.map +1 -1
  635. package/dist/index78.js +11 -24
  636. package/dist/index78.js.map +1 -1
  637. package/dist/index79.js +2 -400
  638. package/dist/index79.js.map +1 -1
  639. package/dist/index80.js +2 -47
  640. package/dist/index80.js.map +1 -1
  641. package/dist/index81.js +52 -604
  642. package/dist/index81.js.map +1 -1
  643. package/dist/index82.js +46 -5
  644. package/dist/index82.js.map +1 -1
  645. package/dist/index83.js +199 -62
  646. package/dist/index83.js.map +1 -1
  647. package/dist/index84.js +22 -2
  648. package/dist/index84.js.map +1 -1
  649. package/dist/index85.js +24 -363
  650. package/dist/index85.js.map +1 -1
  651. package/dist/index86.js +381 -243
  652. package/dist/index86.js.map +1 -1
  653. package/dist/index87.js +41 -55
  654. package/dist/index87.js.map +1 -1
  655. package/dist/index88.js +5 -46
  656. package/dist/index88.js.map +1 -1
  657. package/dist/index89.js +7 -169
  658. package/dist/index89.js.map +1 -1
  659. package/dist/index90.js +5 -109
  660. package/dist/index90.js.map +1 -1
  661. package/dist/index91.js +605 -24
  662. package/dist/index91.js.map +1 -1
  663. package/dist/index92.js +4 -8
  664. package/dist/index92.js.map +1 -1
  665. package/dist/index93.js +33 -4
  666. package/dist/index93.js.map +1 -1
  667. package/dist/index94.js +249 -5
  668. package/dist/index94.js.map +1 -1
  669. package/dist/index95.js +114 -4
  670. package/dist/index95.js.map +1 -1
  671. package/dist/index96.js +214 -461
  672. package/dist/index96.js.map +1 -1
  673. package/dist/index97.js +60 -179
  674. package/dist/index97.js.map +1 -1
  675. package/dist/index98.js +18 -105
  676. package/dist/index98.js.map +1 -1
  677. package/dist/index99.js +197 -250
  678. package/dist/index99.js.map +1 -1
  679. package/package.json +1 -1
package/dist/index297.js CHANGED
@@ -1,16 +1,34 @@
1
- import { constructFrom as s } from "./index283.js";
2
- import { startOfISOWeek as a } from "./index241.js";
3
- import { toDate as m } from "./index284.js";
4
- function Y(f, n) {
5
- const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
6
- r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
7
- const u = a(r), o = s(e, 0);
8
- o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0);
9
- const i = a(o);
10
- return e.getTime() >= u.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
1
+ import o from "./index208.js";
2
+ import l from "./index295.js";
3
+ function u(e, n, r) {
4
+ if (n === void 0 && (n = {}), r = new o(r), n.v2) {
5
+ if (!e.countryCallingCode)
6
+ throw new Error("Invalid phone number object passed");
7
+ r.selectNumberingPlan(e.countryCallingCode);
8
+ } else {
9
+ if (!e.phone)
10
+ return !1;
11
+ if (e.country) {
12
+ if (!r.hasCountry(e.country))
13
+ throw new Error("Unknown country: ".concat(e.country));
14
+ r.selectNumberingPlan(e.country);
15
+ } else {
16
+ if (!e.countryCallingCode)
17
+ throw new Error("Invalid phone number object passed");
18
+ r.selectNumberingPlan(e.countryCallingCode);
19
+ }
20
+ }
21
+ if (r.possibleLengths())
22
+ return s(e.phone || e.nationalNumber, e.country, r);
23
+ if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
24
+ return !0;
25
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
26
+ }
27
+ function s(e, n, r) {
28
+ return l(e, n, r) === "IS_POSSIBLE";
11
29
  }
12
30
  export {
13
- Y as default,
14
- Y as getISOWeekYear
31
+ u as default,
32
+ s as isPossibleNumber
15
33
  };
16
34
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/date-fns/getISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n"],"names":["getISOWeekYear","date","options","_date","toDate","year","fourthOfJanuaryOfNextYear","constructFrom","startOfNextYear","startOfISOWeek","fourthOfJanuaryOfThisYear","startOfThisYear"],"mappings":";;;AA4BO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAA4BC,EAAcJ,GAAO,CAAC;AACxD,EAAAG,EAA0B,YAAYD,IAAO,GAAG,GAAG,CAAC,GACpDC,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAME,IAAkBC,EAAeH,CAAyB,GAE1DI,IAA4BH,EAAcJ,GAAO,CAAC;AACxD,EAAAO,EAA0B,YAAYL,GAAM,GAAG,CAAC,GAChDK,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAMC,IAAkBF,EAAeC,CAAyB;AAEhE,SAAIP,EAAM,QAAO,KAAMK,EAAgB,QAAO,IACrCH,IAAO,IACLF,EAAM,QAAO,KAAMQ,EAAgB,QAAO,IAC5CN,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n metadata = new Metadata(metadata);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old metadata (< 1.0.18) had no \"possible length\" data.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, country, metadata) {\n //, isInternational) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"names":["isPossiblePhoneNumber","input","options","metadata","Metadata","isPossibleNumber","nationalNumber","country","checkNumberLength"],"mappings":";;AAgBe,SAASA,EAAsBC,GAAOC,GAASC,GAAU;AAMtE,MAJID,MAAY,WACdA,IAAU,CAAA,IAEZC,IAAW,IAAIC,EAASD,CAAQ,GAC5BD,EAAQ,IAAI;AACd,QAAI,CAACD,EAAM;AACT,YAAM,IAAI,MAAM,oCAAoC;AAEtD,IAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,EACvD,OAAO;AACL,QAAI,CAACA,EAAM;AACT,aAAO;AAET,QAAIA,EAAM,SAAS;AACjB,UAAI,CAACE,EAAS,WAAWF,EAAM,OAAO;AACpC,cAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,MAAAE,EAAS,oBAAoBF,EAAM,OAAO;AAAA,IAC5C,OAAO;AACL,UAAI,CAACA,EAAM;AACT,cAAM,IAAI,MAAM,oCAAoC;AAEtD,MAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,IACvD;AAAA,EACF;AAGA,MAAIE,EAAS;AACX,WAAOE,EAAiBJ,EAAM,SAASA,EAAM,gBAAgBA,EAAM,SAASE,CAAQ;AAQpF,MAAIF,EAAM,sBAAsBE,EAAS,2BAA2BF,EAAM,kBAAkB;AAG1F,WAAO;AAEP,QAAM,IAAI,MAAM,gGAAgG;AAGtH;AACO,SAASI,EAAiBC,GAAgBC,GAASJ,GAAU;AAElE,SAAQK,EAAkBF,GAAgBC,GAASJ,CAAQ,MACpD;AAST;","x_google_ignoreList":[0]}
package/dist/index298.js CHANGED
@@ -1,13 +1,13 @@
1
- import { getDefaultOptions as n } from "./index289.js";
2
- import { constructFrom as i } from "./index283.js";
3
- import { getWeekYear as f } from "./index299.js";
4
- import { startOfWeek as c } from "./index243.js";
5
- function D(r, t) {
6
- const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
7
- return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
1
+ import m from "./index208.js";
2
+ import o from "./index309.js";
3
+ import u from "./index299.js";
4
+ function b(e, n, r) {
5
+ if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
6
+ return u(e, n, r.metadata) !== void 0;
7
+ var l = n.v2 ? e.nationalNumber : e.phone;
8
+ return o(l, r.nationalNumberPattern());
8
9
  }
9
10
  export {
10
- D as default,
11
- D as startOfWeekYear
11
+ b as default
12
12
  };
13
13
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/date-fns/startOfWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n"],"names":["startOfWeekYear","date","options","defaultOptions","getDefaultOptions","firstWeekContainsDate","year","getWeekYear","firstWeek","constructFrom","startOfWeek"],"mappings":";;;;AA8CO,SAASA,EAAgBC,GAAMC,GAAS;AAC7C,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BC,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAOC,EAAYN,GAAMC,CAAO,GAChCM,IAAYC,EAAcP,GAAS,MAAMD,GAAM,CAAC;AACtD,SAAAO,EAAU,YAAYF,GAAM,GAAGD,CAAqB,GACpDG,EAAU,SAAS,GAAG,GAAG,GAAG,CAAC,GACfE,EAAYF,GAAWN,CAAO;AAE9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.js","sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\nexport default function isValidNumber(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 metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"names":["isValidNumber","input","options","metadata","Metadata","getNumberType","nationalNumber","matchesEntirely"],"mappings":";;;AAsCe,SAASA,EAAcC,GAAOC,GAASC,GAAU;AAS9D,MANAD,IAAUA,KAAW,CAAA,GACrBC,IAAW,IAAIC,EAASD,CAAQ,GAChCA,EAAS,oBAAoBF,EAAM,SAASA,EAAM,kBAAkB,GAIhEE,EAAS;AACX,WAAOE,EAAcJ,GAAOC,GAASC,EAAS,QAAQ,MAAM;AAK9D,MAAIG,IAAiBJ,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAC/D,SAAOM,EAAgBD,GAAgBH,EAAS,sBAAqB,CAAE;AACzE;","x_google_ignoreList":[0]}
package/dist/index299.js CHANGED
@@ -1,17 +1,51 @@
1
- import { getDefaultOptions as k } from "./index289.js";
2
- import { constructFrom as i } from "./index283.js";
3
- import { startOfWeek as l } from "./index243.js";
4
- import { toDate as m } from "./index284.js";
5
- function C(r, e) {
6
- const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
7
- a.setFullYear(t + 1, 0, f), a.setHours(0, 0, 0, 0);
8
- const c = l(a, e), n = i(e?.in || r, 0);
9
- n.setFullYear(t, 0, f), n.setHours(0, 0, 0, 0);
10
- const u = l(n, e);
11
- return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
1
+ import a from "./index208.js";
2
+ import E from "./index309.js";
3
+ function I(e, n) {
4
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
+ if (r) return (r = r.call(e)).next.bind(r);
6
+ if (Array.isArray(e) || (r = c(e)) || n) {
7
+ r && (e = r);
8
+ var t = 0;
9
+ return function() {
10
+ return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
11
+ };
12
+ }
13
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15
+ }
16
+ function c(e, n) {
17
+ if (e) {
18
+ if (typeof e == "string") return l(e, n);
19
+ var r = {}.toString.call(e).slice(8, -1);
20
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? l(e, n) : void 0;
21
+ }
22
+ }
23
+ function l(e, n) {
24
+ (n == null || n > e.length) && (n = e.length);
25
+ for (var r = 0, t = Array(n); r < n; r++) t[r] = e[r];
26
+ return t;
27
+ }
28
+ var s = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
29
+ function _(e, n, r) {
30
+ if (n = n || {}, !(!e.country && !e.countryCallingCode)) {
31
+ r = new a(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
32
+ var t = n.v2 ? e.nationalNumber : e.phone;
33
+ if (E(t, r.nationalNumberPattern())) {
34
+ if (o(t, "FIXED_LINE", r))
35
+ return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || o(t, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
36
+ for (var f = I(s), i; !(i = f()).done; ) {
37
+ var u = i.value;
38
+ if (o(t, u, r))
39
+ return u;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ function o(e, n, r) {
45
+ return n = r.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : E(e, n.pattern());
12
46
  }
13
47
  export {
14
- C as default,
15
- C as getWeekYear
48
+ _ as default,
49
+ o as isNumberTypeEqualTo
16
50
  };
17
51
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":["getWeekYear","date","options","_date","toDate","year","defaultOptions","getDefaultOptions","firstWeekContainsDate","firstWeekOfNextYear","constructFrom","startOfNextYear","startOfWeek","firstWeekOfThisYear","startOfThisYear"],"mappings":";;;;AA2CO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAAiBC,EAAiB,GAClCC,IACJN,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BI,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAsBC,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAQ,EAAoB,YAAYJ,IAAO,GAAG,GAAGG,CAAqB,GAClEC,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAME,IAAkBC,EAAYH,GAAqBP,CAAO,GAE1DW,IAAsBH,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAY,EAAoB,YAAYR,GAAM,GAAGG,CAAqB,GAC9DK,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAMC,IAAkBF,EAAYC,GAAqBX,CAAO;AAEhE,SAAI,CAACC,KAAS,CAACQ,IACNN,IAAO,IACL,CAACF,KAAS,CAACW,IACbT,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.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]}
package/dist/index30.js CHANGED
@@ -1,235 +1,51 @@
1
- import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
2
- import { DateLib as Ze } from "./index130.js";
3
- import { createGetModifiers as Ie } from "./index131.js";
4
- import { getClassNamesForModifiers as Ge } from "./index132.js";
5
- import { getComponents as He } from "./index133.js";
6
- import { getDataAttributes as _e } from "./index134.js";
7
- import { getDefaultClassNames as Ue } from "./index135.js";
8
- import { getFormatters as je } from "./index136.js";
9
- import { getLabels as Ve } from "./index137.js";
10
- import { getMonthOptions as $e } from "./index138.js";
11
- import { getStyleForModifiers as qe } from "./index139.js";
12
- import { getWeekdays as ze } from "./index140.js";
13
- import { getYearOptions as Je } from "./index141.js";
14
- import { createNoonOverrides as Qe } from "./index142.js";
15
- import { UI as n, DayFlag as Xe, SelectionState as w } from "./index143.js";
16
- import { useAnimation as et } from "./index144.js";
17
- import { useCalendar as tt } from "./index145.js";
18
- import { dayPickerContext as at } from "./index146.js";
19
- import { useFocus as ot } from "./index147.js";
20
- import { useSelection as nt } from "./index148.js";
21
- import { convertMatchersToTimeZone as K } from "./index149.js";
22
- import { rangeIncludesDate as st } from "./index150.js";
23
- import { toTimeZone as k } from "./index151.js";
24
- import { isDateRange as rt } from "./index152.js";
25
- import { enUS as it } from "./index153.js";
26
- function Yt(R) {
27
- let e = R;
28
- const u = e.timeZone;
29
- if (u && (e = {
30
- ...R,
31
- timeZone: u
32
- }, e.today && (e.today = k(e.today, u)), e.month && (e.month = k(e.month, u)), e.defaultMonth && (e.defaultMonth = k(e.defaultMonth, u)), e.startMonth && (e.startMonth = k(e.startMonth, u)), e.endMonth && (e.endMonth = k(e.endMonth, u)), e.mode === "single" && e.selected ? e.selected = k(e.selected, u) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((o) => k(o, u)) : e.mode === "range" && e.selected && (e.selected = {
33
- from: e.selected.from ? k(e.selected.from, u) : e.selected.from,
34
- to: e.selected.to ? k(e.selected.to, u) : e.selected.to
35
- }), e.disabled !== void 0 && (e.disabled = K(e.disabled, u)), e.hidden !== void 0 && (e.hidden = K(e.hidden, u)), e.modifiers)) {
36
- const o = {};
37
- Object.keys(e.modifiers).forEach((i) => {
38
- o[i] = K(e.modifiers?.[i], u);
39
- }), e.modifiers = o;
40
- }
41
- const { components: m, formatters: v, labels: Z, dateLib: a, locale: se, classNames: d } = T(() => {
42
- const o = { ...it, ...e.locale }, i = e.broadcastCalendar ? 1 : e.weekStartsOn, t = e.noonSafe && e.timeZone ? Qe(e.timeZone, {
43
- weekStartsOn: i,
44
- locale: o
45
- }) : void 0, r = e.dateLib && t ? { ...t, ...e.dateLib } : e.dateLib ?? t, f = new Ze({
46
- locale: o,
47
- weekStartsOn: i,
48
- firstWeekContainsDate: e.firstWeekContainsDate,
49
- useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
50
- useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens,
51
- timeZone: e.timeZone,
52
- numerals: e.numerals
53
- }, r);
54
- return {
55
- dateLib: f,
56
- components: He(e.components),
57
- formatters: je(e.formatters),
58
- labels: Ve(e.labels, f.options),
59
- locale: o,
60
- classNames: { ...Ue(), ...e.classNames }
61
- };
62
- }, [
63
- e.locale,
64
- e.broadcastCalendar,
65
- e.weekStartsOn,
66
- e.firstWeekContainsDate,
67
- e.useAdditionalWeekYearTokens,
68
- e.useAdditionalDayOfYearTokens,
69
- e.timeZone,
70
- e.numerals,
71
- e.dateLib,
72
- e.noonSafe,
73
- e.components,
74
- e.formatters,
75
- e.labels,
76
- e.classNames
77
- ]);
78
- e.today || (e = { ...e, today: a.today() });
79
- const { captionLayout: N, mode: C, navLayout: D, numberOfMonths: I = 1, onDayBlur: G, onDayClick: W, onDayFocus: H, onDayKeyDown: _, onDayMouseEnter: U, onDayMouseLeave: j, onNextClick: V, onPrevClick: $, showWeekNumber: q, styles: c } = e, { formatCaption: z, formatDay: J, formatMonthDropdown: re, formatWeekNumber: ie, formatWeekNumberHeader: de, formatWeekdayName: le, formatYearDropdown: me } = v, Q = tt(e, a), { days: ce, months: E, navStart: B, navEnd: O, previousMonth: p, nextMonth: b, goToMonth: y } = Q, S = Ie(ce, e, B, O, a), { isSelected: x, select: L, selected: g } = nt(e, a) ?? {}, { blur: X, focused: ee, isFocusTarget: ue, moveFocus: te, setFocused: M } = ot(e, Q, S, x ?? (() => !1), a), { labelDayButton: fe, labelGridcell: pe, labelGrid: be, labelMonthDropdown: he, labelNav: ae, labelPrevious: ye, labelNext: ke, labelWeekday: Ne, labelWeekNumber: ve, labelWeekNumberHeader: De, labelYearDropdown: ge } = Z, Me = T(() => ze(a, e.ISOWeek, e.broadcastCalendar, e.today), [a, e.ISOWeek, e.broadcastCalendar, e.today]), oe = C !== void 0 || W !== void 0, Y = h(() => {
80
- p && (y(p), $?.(p));
81
- }, [p, y, $]), P = h(() => {
82
- b && (y(b), V?.(b));
83
- }, [y, b, V]), we = h((o, i) => (t) => {
84
- t.preventDefault(), t.stopPropagation(), M(o), !i.disabled && (L?.(o.date, i, t), W?.(o.date, i, t));
85
- }, [L, W, M]), Ce = h((o, i) => (t) => {
86
- M(o), H?.(o.date, i, t);
87
- }, [H, M]), We = h((o, i) => (t) => {
88
- X(), G?.(o.date, i, t);
89
- }, [X, G]), Ee = h((o, i) => (t) => {
90
- const r = {
91
- ArrowLeft: [
92
- t.shiftKey ? "month" : "day",
93
- e.dir === "rtl" ? "after" : "before"
94
- ],
95
- ArrowRight: [
96
- t.shiftKey ? "month" : "day",
97
- e.dir === "rtl" ? "before" : "after"
98
- ],
99
- ArrowDown: [t.shiftKey ? "year" : "week", "after"],
100
- ArrowUp: [t.shiftKey ? "year" : "week", "before"],
101
- PageUp: [t.shiftKey ? "year" : "month", "before"],
102
- PageDown: [t.shiftKey ? "year" : "month", "after"],
103
- Home: ["startOfWeek", "before"],
104
- End: ["endOfWeek", "after"]
105
- };
106
- if (r[t.key]) {
107
- t.preventDefault(), t.stopPropagation();
108
- const [f, s] = r[t.key];
109
- te(f, s);
110
- }
111
- _?.(o.date, i, t);
112
- }, [te, _, e.dir]), Be = h((o, i) => (t) => {
113
- U?.(o.date, i, t);
114
- }, [U]), Oe = h((o, i) => (t) => {
115
- j?.(o.date, i, t);
116
- }, [j]), Se = h((o) => (i) => {
117
- const t = Number(i.target.value), r = a.setMonth(a.startOfMonth(o), t);
118
- y(r);
119
- }, [a, y]), xe = h((o) => (i) => {
120
- const t = Number(i.target.value), r = a.setYear(a.startOfMonth(o), t);
121
- y(r);
122
- }, [a, y]), { className: Le, style: Ye } = T(() => ({
123
- className: [d[n.Root], e.className].filter(Boolean).join(" "),
124
- style: { ...c?.[n.Root], ...e.style }
125
- }), [d, e.className, e.style, c]), Pe = _e(e), ne = Re(null);
126
- et(ne, !!e.animate, {
127
- classNames: d,
128
- months: E,
129
- focused: ee,
130
- dateLib: a
131
- });
132
- const Fe = {
133
- dayPickerProps: e,
134
- selected: g,
135
- select: L,
136
- isSelected: x,
137
- months: E,
138
- nextMonth: b,
139
- previousMonth: p,
140
- goToMonth: y,
141
- getModifiers: S,
142
- components: m,
143
- classNames: d,
144
- styles: c,
145
- labels: Z,
146
- formatters: v
147
- };
148
- return l.createElement(
149
- at.Provider,
150
- { value: Fe },
151
- l.createElement(
152
- m.Root,
153
- { rootRef: e.animate ? ne : void 0, className: Le, style: Ye, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...Pe },
154
- l.createElement(
155
- m.Months,
156
- { className: d[n.Months], style: c?.[n.Months] },
157
- !e.hideNavigation && !D && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
158
- E.map((o, i) => l.createElement(
159
- m.Month,
160
- {
161
- "data-animated-month": e.animate ? "true" : void 0,
162
- className: d[n.Month],
163
- style: c?.[n.Month],
164
- // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
165
- key: i,
166
- displayIndex: i,
167
- calendarMonth: o
168
- },
169
- D === "around" && !e.hideNavigation && i === 0 && l.createElement(
170
- m.PreviousMonthButton,
171
- { type: "button", className: d[n.PreviousMonthButton], tabIndex: p ? void 0 : -1, "aria-disabled": p ? void 0 : !0, "aria-label": ye(p), onClick: Y, "data-animated-button": e.animate ? "true" : void 0 },
172
- l.createElement(m.Chevron, { disabled: p ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
173
- ),
174
- l.createElement(m.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: d[n.MonthCaption], style: c?.[n.MonthCaption], calendarMonth: o, displayIndex: i }, N?.startsWith("dropdown") ? l.createElement(
175
- m.DropdownNav,
176
- { className: d[n.Dropdowns], style: c?.[n.Dropdowns] },
177
- (() => {
178
- const t = N === "dropdown" || N === "dropdown-months" ? l.createElement(m.MonthsDropdown, { key: "month", className: d[n.MonthsDropdown], "aria-label": he(), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: Se(o.date), options: $e(o.date, B, O, v, a), style: c?.[n.Dropdown], value: a.getMonth(o.date) }) : l.createElement("span", { key: "month" }, re(o.date, a)), r = N === "dropdown" || N === "dropdown-years" ? l.createElement(m.YearsDropdown, { key: "year", className: d[n.YearsDropdown], "aria-label": ge(a.options), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: xe(o.date), options: Je(B, O, v, a, !!e.reverseYears), style: c?.[n.Dropdown], value: a.getYear(o.date) }) : l.createElement("span", { key: "year" }, me(o.date, a));
179
- return a.getMonthYearOrder() === "year-first" ? [r, t] : [t, r];
180
- })(),
181
- l.createElement("span", { role: "status", "aria-live": "polite", style: {
182
- border: 0,
183
- clip: "rect(0 0 0 0)",
184
- height: "1px",
185
- margin: "-1px",
186
- overflow: "hidden",
187
- padding: 0,
188
- position: "absolute",
189
- width: "1px",
190
- whiteSpace: "nowrap",
191
- wordWrap: "normal"
192
- } }, z(o.date, a.options, a))
193
- ) : l.createElement(m.CaptionLabel, { className: d[n.CaptionLabel], role: "status", "aria-live": "polite" }, z(o.date, a.options, a))),
194
- D === "around" && !e.hideNavigation && i === I - 1 && l.createElement(
195
- m.NextMonthButton,
196
- { type: "button", className: d[n.NextMonthButton], tabIndex: b ? void 0 : -1, "aria-disabled": b ? void 0 : !0, "aria-label": ke(b), onClick: P, "data-animated-button": e.animate ? "true" : void 0 },
197
- l.createElement(m.Chevron, { disabled: b ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
198
- ),
199
- i === I - 1 && D === "after" && !e.hideNavigation && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
200
- l.createElement(
201
- m.MonthGrid,
202
- { role: "grid", "aria-multiselectable": C === "multiple" || C === "range", "aria-label": be(o.date, a.options, a) || void 0, className: d[n.MonthGrid], style: c?.[n.MonthGrid] },
203
- !e.hideWeekdays && l.createElement(
204
- m.Weekdays,
205
- { "data-animated-weekdays": e.animate ? "true" : void 0, className: d[n.Weekdays], style: c?.[n.Weekdays] },
206
- q && l.createElement(m.WeekNumberHeader, { "aria-label": De(a.options), className: d[n.WeekNumberHeader], style: c?.[n.WeekNumberHeader], scope: "col" }, de()),
207
- Me.map((t) => l.createElement(m.Weekday, { "aria-label": Ne(t, a.options, a), className: d[n.Weekday], key: String(t), style: c?.[n.Weekday], scope: "col" }, le(t, a.options, a)))
208
- ),
209
- l.createElement(m.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: d[n.Weeks], style: c?.[n.Weeks] }, o.weeks.map((t) => l.createElement(
210
- m.Week,
211
- { className: d[n.Week], key: t.weekNumber, style: c?.[n.Week], week: t },
212
- q && l.createElement(m.WeekNumber, { week: t, style: c?.[n.WeekNumber], "aria-label": ve(t.weekNumber, {
213
- locale: se
214
- }), className: d[n.WeekNumber], scope: "row", role: "rowheader" }, ie(t.weekNumber, a)),
215
- t.days.map((r) => {
216
- const { date: f } = r, s = S(r);
217
- if (s[Xe.focused] = !s.hidden && !!ee?.isEqualTo(r), s[w.selected] = x?.(f) || s.selected, rt(g)) {
218
- const { from: F, to: A } = g;
219
- s[w.range_start] = !!(F && A && a.isSameDay(f, F)), s[w.range_end] = !!(F && A && a.isSameDay(f, A)), s[w.range_middle] = st(g, f, !0, a);
220
- }
221
- const Ae = qe(s, c, e.modifiersStyles), Te = Ge(s, d, e.modifiersClassNames), Ke = !oe && !s.hidden ? pe(f, s, a.options, a) : void 0;
222
- return l.createElement(m.Day, { key: `${r.isoDate}_${r.displayMonthId}`, day: r, modifiers: s, className: Te.join(" "), style: Ae, role: "gridcell", "aria-selected": s.selected || void 0, "aria-label": Ke, "data-day": r.isoDate, "data-month": r.outside ? r.dateMonthId : void 0, "data-selected": s.selected || void 0, "data-disabled": s.disabled || void 0, "data-hidden": s.hidden || void 0, "data-outside": r.outside || void 0, "data-focused": s.focused || void 0, "data-today": s.today || void 0 }, !s.hidden && oe ? l.createElement(m.DayButton, { className: d[n.DayButton], style: c?.[n.DayButton], type: "button", day: r, modifiers: s, disabled: !s.focused && s.disabled || void 0, "aria-disabled": s.focused && s.disabled || void 0, tabIndex: ue(r) ? 0 : -1, "aria-label": fe(f, s, a.options, a), onClick: we(r, s), onBlur: We(r, s), onFocus: Ce(r, s), onKeyDown: Ee(r, s), onMouseEnter: Be(r, s), onMouseLeave: Oe(r, s) }, J(f, a.options, a)) : !s.hidden && J(r.date, a.options, a));
223
- })
224
- )))
225
- )
226
- ))
227
- ),
228
- e.footer && l.createElement(m.Footer, { className: d[n.Footer], style: c?.[n.Footer], role: "status", "aria-live": "polite" }, e.footer)
229
- )
230
- );
1
+ import { default as f } from "./index31.js";
2
+ import e from "./index92.js";
3
+ import { default as p } from "./index36.js";
4
+ import { default as d } from "./index34.js";
5
+ import { default as u } from "./index35.js";
6
+ import { default as n } from "./index33.js";
7
+ import { default as k } from "./index93.js";
8
+ import { default as E } from "./index94.js";
9
+ import { default as I } from "./index95.js";
10
+ import { default as T } from "./index96.js";
11
+ import { default as D } from "./index97.js";
12
+ import { default as h, normalizeOpts as H } from "./index32.js";
13
+ import { default as R } from "./index98.js";
14
+ import { default as C } from "./index99.js";
15
+ import { default as B } from "./index100.js";
16
+ import { default as N } from "./index101.js";
17
+ import { PIPE_TYPE as Y, createPipe as _, pipe as j } from "./index102.js";
18
+ import { default as v } from "./index103.js";
19
+ import { default as A } from "./index104.js";
20
+ import { default as J } from "./index105.js";
21
+ import "./index37.js";
22
+ try {
23
+ globalThis.IMask = e;
24
+ } catch {
231
25
  }
232
26
  export {
233
- Yt as DayPicker
27
+ k as ChangeDetails,
28
+ p as HTMLContenteditableMaskElement,
29
+ d as HTMLInputMaskElement,
30
+ u as HTMLMaskElement,
31
+ f as InputMask,
32
+ n as MaskElement,
33
+ E as Masked,
34
+ I as MaskedDate,
35
+ T as MaskedDynamic,
36
+ D as MaskedEnum,
37
+ R as MaskedFunction,
38
+ C as MaskedNumber,
39
+ B as MaskedPattern,
40
+ v as MaskedRange,
41
+ A as MaskedRegExp,
42
+ Y as PIPE_TYPE,
43
+ N as PatternInputDefinition,
44
+ J as RepeatBlock,
45
+ h as createMask,
46
+ _ as createPipe,
47
+ e as default,
48
+ H as normalizeOpts,
49
+ j as pipe
234
50
  };
235
51
  //# sourceMappingURL=index30.js.map