@rpcbase/ui 0.235.0 → 0.236.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 (670) hide show
  1. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  2. package/dist/components/Notifications/types.d.ts +11 -2
  3. package/dist/components/Notifications/types.d.ts.map +1 -1
  4. package/dist/index100.js +52 -5
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js +3 -7
  7. package/dist/index101.js.map +1 -1
  8. package/dist/index102.js +4 -5
  9. package/dist/index102.js.map +1 -1
  10. package/dist/index103.js +15 -4
  11. package/dist/index103.js.map +1 -1
  12. package/dist/index104.js +5 -4
  13. package/dist/index104.js.map +1 -1
  14. package/dist/index105.js +7 -6
  15. package/dist/index105.js.map +1 -1
  16. package/dist/index106.js +16 -145
  17. package/dist/index106.js.map +1 -1
  18. package/dist/index107.js +4 -39
  19. package/dist/index107.js.map +1 -1
  20. package/dist/index108.js +4 -4
  21. package/dist/index108.js.map +1 -1
  22. package/dist/index109.js +5 -7
  23. package/dist/index109.js.map +1 -1
  24. package/dist/index110.js +5 -13
  25. package/dist/index110.js.map +1 -1
  26. package/dist/index111.js +4 -13
  27. package/dist/index111.js.map +1 -1
  28. package/dist/index112.js +4 -7
  29. package/dist/index112.js.map +1 -1
  30. package/dist/index113.js +6 -31
  31. package/dist/index113.js.map +1 -1
  32. package/dist/index114.js +24 -10
  33. package/dist/index114.js.map +1 -1
  34. package/dist/index115.js +6 -10
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +4 -8
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +6 -13
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +5 -101
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +5 -20
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index120.js +5 -53
  45. package/dist/index120.js.map +1 -1
  46. package/dist/index121.js +4 -72
  47. package/dist/index121.js.map +1 -1
  48. package/dist/index122.js +8 -9
  49. package/dist/index122.js.map +1 -1
  50. package/dist/index123.js +5 -20
  51. package/dist/index123.js.map +1 -1
  52. package/dist/index124.js +4 -16
  53. package/dist/index124.js.map +1 -1
  54. package/dist/index125.js +4 -23
  55. package/dist/index125.js.map +1 -1
  56. package/dist/index126.js +6 -6
  57. package/dist/index126.js.map +1 -1
  58. package/dist/index127.js +145 -5
  59. package/dist/index127.js.map +1 -1
  60. package/dist/index128.js +39 -23
  61. package/dist/index128.js.map +1 -1
  62. package/dist/index129.js +5 -35
  63. package/dist/index129.js.map +1 -1
  64. package/dist/index130.js +8 -16
  65. package/dist/index130.js.map +1 -1
  66. package/dist/index131.js +13 -6
  67. package/dist/index131.js.map +1 -1
  68. package/dist/index132.js +13 -4
  69. package/dist/index132.js.map +1 -1
  70. package/dist/index133.js +7 -4
  71. package/dist/index133.js.map +1 -1
  72. package/dist/index134.js +31 -4
  73. package/dist/index134.js.map +1 -1
  74. package/dist/index135.js +10 -4
  75. package/dist/index135.js.map +1 -1
  76. package/dist/index136.js +10 -3
  77. package/dist/index136.js.map +1 -1
  78. package/dist/index137.js +8 -6
  79. package/dist/index137.js.map +1 -1
  80. package/dist/index138.js +14 -24
  81. package/dist/index138.js.map +1 -1
  82. package/dist/index139.js +101 -7
  83. package/dist/index139.js.map +1 -1
  84. package/dist/index140.js +20 -7
  85. package/dist/index140.js.map +1 -1
  86. package/dist/index141.js +53 -5
  87. package/dist/index141.js.map +1 -1
  88. package/dist/index142.js +72 -3
  89. package/dist/index142.js.map +1 -1
  90. package/dist/index143.js +9 -3
  91. package/dist/index143.js.map +1 -1
  92. package/dist/index144.js +20 -4
  93. package/dist/index144.js.map +1 -1
  94. package/dist/index145.js +16 -3
  95. package/dist/index145.js.map +1 -1
  96. package/dist/index146.js +23 -4
  97. package/dist/index146.js.map +1 -1
  98. package/dist/index147.js +6 -3
  99. package/dist/index147.js.map +1 -1
  100. package/dist/index148.js +5 -3
  101. package/dist/index148.js.map +1 -1
  102. package/dist/index149.js +23 -3
  103. package/dist/index149.js.map +1 -1
  104. package/dist/index150.js +35 -6
  105. package/dist/index150.js.map +1 -1
  106. package/dist/index151.js +16 -69
  107. package/dist/index151.js.map +1 -1
  108. package/dist/index152.js +7 -2
  109. package/dist/index152.js.map +1 -1
  110. package/dist/index153.js +4 -363
  111. package/dist/index153.js.map +1 -1
  112. package/dist/index154.js +4 -261
  113. package/dist/index154.js.map +1 -1
  114. package/dist/index155.js +4 -60
  115. package/dist/index155.js.map +1 -1
  116. package/dist/index156.js +4 -46
  117. package/dist/index156.js.map +1 -1
  118. package/dist/index157.js +3 -169
  119. package/dist/index157.js.map +1 -1
  120. package/dist/index158.js +6 -109
  121. package/dist/index158.js.map +1 -1
  122. package/dist/index159.js +24 -25
  123. package/dist/index159.js.map +1 -1
  124. package/dist/index16.js +152 -144
  125. package/dist/index16.js.map +1 -1
  126. package/dist/index160.js +8 -8
  127. package/dist/index160.js.map +1 -1
  128. package/dist/index161.js +6 -4
  129. package/dist/index161.js.map +1 -1
  130. package/dist/index162.js +5 -5
  131. package/dist/index162.js.map +1 -1
  132. package/dist/index163.js +3 -4
  133. package/dist/index163.js.map +1 -1
  134. package/dist/index164.js +3 -466
  135. package/dist/index164.js.map +1 -1
  136. package/dist/index165.js +4 -185
  137. package/dist/index165.js.map +1 -1
  138. package/dist/index166.js +3 -107
  139. package/dist/index166.js.map +1 -1
  140. package/dist/index167.js +4 -262
  141. package/dist/index167.js.map +1 -1
  142. package/dist/index168.js +3 -9
  143. package/dist/index168.js.map +1 -1
  144. package/dist/index169.js +3 -42
  145. package/dist/index169.js.map +1 -1
  146. package/dist/index170.js +3 -4
  147. package/dist/index170.js.map +1 -1
  148. package/dist/index172.js +9 -9
  149. package/dist/index175.js +1 -1
  150. package/dist/index176.js +4 -4
  151. package/dist/index178.js +1 -1
  152. package/dist/index182.js +1 -1
  153. package/dist/index184.js +12 -12
  154. package/dist/index185.js +1 -1
  155. package/dist/index187.js +6 -6
  156. package/dist/index189.js +6 -6
  157. package/dist/index190.js +5 -5
  158. package/dist/index193.js +3 -3
  159. package/dist/index194.js +5 -5
  160. package/dist/index196.js +20 -59
  161. package/dist/index196.js.map +1 -1
  162. package/dist/index197.js +66 -8
  163. package/dist/index197.js.map +1 -1
  164. package/dist/index198.js +6 -87
  165. package/dist/index198.js.map +1 -1
  166. package/dist/index199.js +11 -19
  167. package/dist/index199.js.map +1 -1
  168. package/dist/index200.js +48 -14
  169. package/dist/index200.js.map +1 -1
  170. package/dist/index201.js +4 -6
  171. package/dist/index201.js.map +1 -1
  172. package/dist/index202.js +29 -5
  173. package/dist/index202.js.map +1 -1
  174. package/dist/index203.js +16 -6
  175. package/dist/index203.js.map +1 -1
  176. package/dist/index204.js +5 -4
  177. package/dist/index204.js.map +1 -1
  178. package/dist/index205.js +21 -6
  179. package/dist/index205.js.map +1 -1
  180. package/dist/index206.js +51 -16
  181. package/dist/index206.js.map +1 -1
  182. package/dist/index207.js +25 -4
  183. package/dist/index207.js.map +1 -1
  184. package/dist/index208.js +41 -4
  185. package/dist/index208.js.map +1 -1
  186. package/dist/index209.js +39 -12
  187. package/dist/index209.js.map +1 -1
  188. package/dist/index210.js +45 -10
  189. package/dist/index210.js.map +1 -1
  190. package/dist/index211.js +20 -13
  191. package/dist/index211.js.map +1 -1
  192. package/dist/index212.js +70 -13
  193. package/dist/index212.js.map +1 -1
  194. package/dist/index213.js +17 -4
  195. package/dist/index213.js.map +1 -1
  196. package/dist/index214.js +11 -5
  197. package/dist/index214.js.map +1 -1
  198. package/dist/index215.js +27 -6
  199. package/dist/index215.js.map +1 -1
  200. package/dist/index216.js +13 -5
  201. package/dist/index216.js.map +1 -1
  202. package/dist/index217.js +17 -53
  203. package/dist/index217.js.map +1 -1
  204. package/dist/index218.js +36 -8
  205. package/dist/index218.js.map +1 -1
  206. package/dist/index219.js +262 -4
  207. package/dist/index219.js.map +1 -1
  208. package/dist/index220.js +278 -4
  209. package/dist/index220.js.map +1 -1
  210. package/dist/index221.js +68 -8
  211. package/dist/index221.js.map +1 -1
  212. package/dist/index222.js +99 -4
  213. package/dist/index222.js.map +1 -1
  214. package/dist/index223.js +83 -4
  215. package/dist/index223.js.map +1 -1
  216. package/dist/index224.js +3 -3
  217. package/dist/index224.js.map +1 -1
  218. package/dist/index225.js +29 -10
  219. package/dist/index225.js.map +1 -1
  220. package/dist/index226.js +16 -9
  221. package/dist/index226.js.map +1 -1
  222. package/dist/index227.js +35 -10
  223. package/dist/index227.js.map +1 -1
  224. package/dist/index228.js +16 -10
  225. package/dist/index228.js.map +1 -1
  226. package/dist/index229.js +3 -10
  227. package/dist/index229.js.map +1 -1
  228. package/dist/index230.js +26 -9
  229. package/dist/index230.js.map +1 -1
  230. package/dist/index231.js +28 -6
  231. package/dist/index231.js.map +1 -1
  232. package/dist/index232.js +4 -6
  233. package/dist/index232.js.map +1 -1
  234. package/dist/index233.js +78 -4
  235. package/dist/index233.js.map +1 -1
  236. package/dist/index234.js +269 -5
  237. package/dist/index234.js.map +1 -1
  238. package/dist/index235.js +11 -6
  239. package/dist/index235.js.map +1 -1
  240. package/dist/index236.js +10 -5
  241. package/dist/index236.js.map +1 -1
  242. package/dist/index237.js +25 -16
  243. package/dist/index237.js.map +1 -1
  244. package/dist/index238.js +16 -7
  245. package/dist/index238.js.map +1 -1
  246. package/dist/index239.js +124 -9
  247. package/dist/index239.js.map +1 -1
  248. package/dist/index240.js +5 -10
  249. package/dist/index240.js.map +1 -1
  250. package/dist/index241.js +40 -21
  251. package/dist/index241.js.map +1 -1
  252. package/dist/index242.js +65 -10
  253. package/dist/index242.js.map +1 -1
  254. package/dist/index243.js +14 -10
  255. package/dist/index243.js.map +1 -1
  256. package/dist/index244.js +7 -9
  257. package/dist/index244.js.map +1 -1
  258. package/dist/index245.js +5 -4
  259. package/dist/index245.js.map +1 -1
  260. package/dist/index246.js +3 -5
  261. package/dist/index246.js.map +1 -1
  262. package/dist/index247.js +10 -16
  263. package/dist/index247.js.map +1 -1
  264. package/dist/index248.js +7 -9
  265. package/dist/index248.js.map +1 -1
  266. package/dist/index249.js +132 -17
  267. package/dist/index249.js.map +1 -1
  268. package/dist/index250.js +397 -13
  269. package/dist/index250.js.map +1 -1
  270. package/dist/index251.js +52 -12
  271. package/dist/index251.js.map +1 -1
  272. package/dist/index252.js +10 -28
  273. package/dist/index252.js.map +1 -1
  274. package/dist/index253.js +11 -12
  275. package/dist/index253.js.map +1 -1
  276. package/dist/index254.js +13 -25
  277. package/dist/index254.js.map +1 -1
  278. package/dist/index255.js +154 -5
  279. package/dist/index255.js.map +1 -1
  280. package/dist/index256.js +31 -20
  281. package/dist/index256.js.map +1 -1
  282. package/dist/index257.js +9 -66
  283. package/dist/index257.js.map +1 -1
  284. package/dist/index258.js +48 -6
  285. package/dist/index258.js.map +1 -1
  286. package/dist/index259.js +11 -11
  287. package/dist/index259.js.map +1 -1
  288. package/dist/index260.js +42 -48
  289. package/dist/index260.js.map +1 -1
  290. package/dist/index261.js +96 -4
  291. package/dist/index261.js.map +1 -1
  292. package/dist/index262.js +84 -27
  293. package/dist/index262.js.map +1 -1
  294. package/dist/index263.js +103 -14
  295. package/dist/index263.js.map +1 -1
  296. package/dist/index264.js +52 -5
  297. package/dist/index264.js.map +1 -1
  298. package/dist/index265.js +11 -21
  299. package/dist/index265.js.map +1 -1
  300. package/dist/index266.js +36 -50
  301. package/dist/index266.js.map +1 -1
  302. package/dist/index267.js +8 -25
  303. package/dist/index267.js.map +1 -1
  304. package/dist/index268.js +113 -38
  305. package/dist/index268.js.map +1 -1
  306. package/dist/index269.js +17 -39
  307. package/dist/index269.js.map +1 -1
  308. package/dist/index270.js +16 -45
  309. package/dist/index270.js.map +1 -1
  310. package/dist/index271.js +3 -20
  311. package/dist/index271.js.map +1 -1
  312. package/dist/index272.js +32 -66
  313. package/dist/index272.js.map +1 -1
  314. package/dist/index273.js +20 -17
  315. package/dist/index273.js.map +1 -1
  316. package/dist/index274.js +9 -11
  317. package/dist/index274.js.map +1 -1
  318. package/dist/index275.js +8 -27
  319. package/dist/index275.js.map +1 -1
  320. package/dist/index276.js +58 -13
  321. package/dist/index276.js.map +1 -1
  322. package/dist/index277.js +8 -18
  323. package/dist/index277.js.map +1 -1
  324. package/dist/index278.js +87 -36
  325. package/dist/index278.js.map +1 -1
  326. package/dist/index279.js +18 -261
  327. package/dist/index279.js.map +1 -1
  328. package/dist/index280.js +15 -277
  329. package/dist/index280.js.map +1 -1
  330. package/dist/index281.js +5 -68
  331. package/dist/index281.js.map +1 -1
  332. package/dist/index282.js +4 -98
  333. package/dist/index282.js.map +1 -1
  334. package/dist/index283.js +6 -83
  335. package/dist/index283.js.map +1 -1
  336. package/dist/index284.js +4 -3
  337. package/dist/index284.js.map +1 -1
  338. package/dist/index285.js +6 -29
  339. package/dist/index285.js.map +1 -1
  340. package/dist/index286.js +16 -16
  341. package/dist/index286.js.map +1 -1
  342. package/dist/index287.js +5 -35
  343. package/dist/index287.js.map +1 -1
  344. package/dist/index288.js +4 -16
  345. package/dist/index288.js.map +1 -1
  346. package/dist/index289.js +12 -3
  347. package/dist/index289.js.map +1 -1
  348. package/dist/index290.js +9 -26
  349. package/dist/index290.js.map +1 -1
  350. package/dist/index291.js +13 -28
  351. package/dist/index291.js.map +1 -1
  352. package/dist/index292.js +14 -4
  353. package/dist/index292.js.map +1 -1
  354. package/dist/index293.js +4 -78
  355. package/dist/index293.js.map +1 -1
  356. package/dist/index294.js +5 -269
  357. package/dist/index294.js.map +1 -1
  358. package/dist/index295.js +6 -11
  359. package/dist/index295.js.map +1 -1
  360. package/dist/index296.js +5 -10
  361. package/dist/index296.js.map +1 -1
  362. package/dist/index297.js +53 -24
  363. package/dist/index297.js.map +1 -1
  364. package/dist/index298.js +8 -16
  365. package/dist/index298.js.map +1 -1
  366. package/dist/index299.js +4 -125
  367. package/dist/index299.js.map +1 -1
  368. package/dist/index300.js +4 -5
  369. package/dist/index300.js.map +1 -1
  370. package/dist/index301.js +8 -40
  371. package/dist/index301.js.map +1 -1
  372. package/dist/index302.js +4 -65
  373. package/dist/index302.js.map +1 -1
  374. package/dist/index303.js +5 -14
  375. package/dist/index303.js.map +1 -1
  376. package/dist/index304.js +3 -7
  377. package/dist/index304.js.map +1 -1
  378. package/dist/index305.js +10 -5
  379. package/dist/index305.js.map +1 -1
  380. package/dist/index306.js +9 -3
  381. package/dist/index306.js.map +1 -1
  382. package/dist/index307.js +9 -10
  383. package/dist/index307.js.map +1 -1
  384. package/dist/index308.js +10 -7
  385. package/dist/index308.js.map +1 -1
  386. package/dist/index309.js +10 -133
  387. package/dist/index309.js.map +1 -1
  388. package/dist/index31.js +24 -24
  389. package/dist/index310.js +9 -399
  390. package/dist/index310.js.map +1 -1
  391. package/dist/index311.js +6 -52
  392. package/dist/index311.js.map +1 -1
  393. package/dist/index312.js +5 -11
  394. package/dist/index312.js.map +1 -1
  395. package/dist/index313.js +4 -11
  396. package/dist/index313.js.map +1 -1
  397. package/dist/index314.js +5 -13
  398. package/dist/index314.js.map +1 -1
  399. package/dist/index315.js +6 -154
  400. package/dist/index315.js.map +1 -1
  401. package/dist/index316.js +5 -30
  402. package/dist/index316.js.map +1 -1
  403. package/dist/index317.js +19 -9
  404. package/dist/index317.js.map +1 -1
  405. package/dist/index318.js +25 -45
  406. package/dist/index318.js.map +1 -1
  407. package/dist/index319.js +16 -11
  408. package/dist/index319.js.map +1 -1
  409. package/dist/index32.js +3 -3
  410. package/dist/index320.js +14 -42
  411. package/dist/index320.js.map +1 -1
  412. package/dist/index321.js +7 -95
  413. package/dist/index321.js.map +1 -1
  414. package/dist/index322.js +9 -85
  415. package/dist/index322.js.map +1 -1
  416. package/dist/index323.js +9 -104
  417. package/dist/index323.js.map +1 -1
  418. package/dist/index324.js +21 -52
  419. package/dist/index324.js.map +1 -1
  420. package/dist/index325.js +10 -11
  421. package/dist/index325.js.map +1 -1
  422. package/dist/index326.js +9 -37
  423. package/dist/index326.js.map +1 -1
  424. package/dist/index327.js +8 -7
  425. package/dist/index327.js.map +1 -1
  426. package/dist/index328.js +4 -116
  427. package/dist/index328.js.map +1 -1
  428. package/dist/index329.js +5 -17
  429. package/dist/index329.js.map +1 -1
  430. package/dist/index330.js +15 -14
  431. package/dist/index330.js.map +1 -1
  432. package/dist/index331.js +9 -3
  433. package/dist/index331.js.map +1 -1
  434. package/dist/index332.js +16 -34
  435. package/dist/index332.js.map +1 -1
  436. package/dist/index333.js +15 -20
  437. package/dist/index333.js.map +1 -1
  438. package/dist/index334.js +12 -9
  439. package/dist/index334.js.map +1 -1
  440. package/dist/index335.js +29 -8
  441. package/dist/index335.js.map +1 -1
  442. package/dist/index336.js +12 -8
  443. package/dist/index336.js.map +1 -1
  444. package/dist/index337.js +25 -11
  445. package/dist/index337.js.map +1 -1
  446. package/dist/index338.js +5 -8
  447. package/dist/index338.js.map +1 -1
  448. package/dist/index339.js +8 -13
  449. package/dist/index339.js.map +1 -1
  450. package/dist/index340.js +11 -3
  451. package/dist/index340.js.map +1 -1
  452. package/dist/index341.js +8 -3
  453. package/dist/index341.js.map +1 -1
  454. package/dist/index342.js +12 -16
  455. package/dist/index342.js.map +1 -1
  456. package/dist/index343.js +3 -19
  457. package/dist/index343.js.map +1 -1
  458. package/dist/index344.js +3 -28
  459. package/dist/index344.js.map +1 -1
  460. package/dist/index345.js +16 -15
  461. package/dist/index345.js.map +1 -1
  462. package/dist/index346.js +2 -2
  463. package/dist/index347.js +5 -122
  464. package/dist/index347.js.map +1 -1
  465. package/dist/index348.js +121 -31
  466. package/dist/index348.js.map +1 -1
  467. package/dist/index349.js +31 -72
  468. package/dist/index349.js.map +1 -1
  469. package/dist/index350.js +70 -139
  470. package/dist/index350.js.map +1 -1
  471. package/dist/index351.js +116 -35
  472. package/dist/index351.js.map +1 -1
  473. package/dist/index352.js +56 -44
  474. package/dist/index352.js.map +1 -1
  475. package/dist/index353.js +49 -14
  476. package/dist/index353.js.map +1 -1
  477. package/dist/index354.js +15 -6
  478. package/dist/index354.js.map +1 -1
  479. package/dist/index359.js +4 -5
  480. package/dist/index359.js.map +1 -1
  481. package/dist/index360.js +11 -17
  482. package/dist/index360.js.map +1 -1
  483. package/dist/index361.js +16 -12
  484. package/dist/index361.js.map +1 -1
  485. package/dist/index362.js +5 -11
  486. package/dist/index362.js.map +1 -1
  487. package/dist/index363.js +19 -15
  488. package/dist/index363.js.map +1 -1
  489. package/dist/index364.js +45 -6
  490. package/dist/index364.js.map +1 -1
  491. package/dist/index365.js +18 -4
  492. package/dist/index365.js.map +1 -1
  493. package/dist/index366.js +5 -21
  494. package/dist/index366.js.map +1 -1
  495. package/dist/index367.js +200 -44
  496. package/dist/index367.js.map +1 -1
  497. package/dist/index368.js +77 -17
  498. package/dist/index368.js.map +1 -1
  499. package/dist/index369.js +21 -5
  500. package/dist/index369.js.map +1 -1
  501. package/dist/index370.js +4 -200
  502. package/dist/index370.js.map +1 -1
  503. package/dist/index371.js +18 -78
  504. package/dist/index371.js.map +1 -1
  505. package/dist/index372.js +12 -20
  506. package/dist/index372.js.map +1 -1
  507. package/dist/index374.js +3 -3
  508. package/dist/index375.js +1 -1
  509. package/dist/index376.js +3 -3
  510. package/dist/index378.js +2 -2
  511. package/dist/index380.js +1 -1
  512. package/dist/index381.js +2 -2
  513. package/dist/index384.js +2 -2
  514. package/dist/index386.js +1 -1
  515. package/dist/index387.js +3 -5
  516. package/dist/index387.js.map +1 -1
  517. package/dist/index388.js +3 -5
  518. package/dist/index388.js.map +1 -1
  519. package/dist/index389.js +5 -4
  520. package/dist/index389.js.map +1 -1
  521. package/dist/index390.js +4 -15
  522. package/dist/index390.js.map +1 -1
  523. package/dist/index391.js +4 -9
  524. package/dist/index391.js.map +1 -1
  525. package/dist/index392.js +15 -5
  526. package/dist/index392.js.map +1 -1
  527. package/dist/index393.js +8 -4
  528. package/dist/index393.js.map +1 -1
  529. package/dist/index394.js +5 -545
  530. package/dist/index394.js.map +1 -1
  531. package/dist/index395.js +5 -47
  532. package/dist/index395.js.map +1 -1
  533. package/dist/index396.js +543 -15
  534. package/dist/index396.js.map +1 -1
  535. package/dist/index397.js +47 -6
  536. package/dist/index397.js.map +1 -1
  537. package/dist/index398.js +17 -7
  538. package/dist/index398.js.map +1 -1
  539. package/dist/index399.js +5 -6
  540. package/dist/index399.js.map +1 -1
  541. package/dist/index400.js +7 -7
  542. package/dist/index400.js.map +1 -1
  543. package/dist/index401.js +6 -11
  544. package/dist/index401.js.map +1 -1
  545. package/dist/index402.js +7 -8
  546. package/dist/index402.js.map +1 -1
  547. package/dist/index403.js +11 -12
  548. package/dist/index403.js.map +1 -1
  549. package/dist/index404.js +9 -3
  550. package/dist/index404.js.map +1 -1
  551. package/dist/index405.js +13 -3
  552. package/dist/index405.js.map +1 -1
  553. package/dist/index407.js +1 -1
  554. package/dist/index408.js +7 -4
  555. package/dist/index408.js.map +1 -1
  556. package/dist/index409.js +2 -56
  557. package/dist/index409.js.map +1 -1
  558. package/dist/index410.js +43 -67
  559. package/dist/index410.js.map +1 -1
  560. package/dist/index411.js +56 -31
  561. package/dist/index411.js.map +1 -1
  562. package/dist/index412.js +8 -9
  563. package/dist/index412.js.map +1 -1
  564. package/dist/index413.js +2 -153
  565. package/dist/index413.js.map +1 -1
  566. package/dist/index414.js +54 -107
  567. package/dist/index414.js.map +1 -1
  568. package/dist/index415.js +55 -7
  569. package/dist/index415.js.map +1 -1
  570. package/dist/index416.js +5 -2
  571. package/dist/index416.js.map +1 -1
  572. package/dist/index417.js +54 -42
  573. package/dist/index417.js.map +1 -1
  574. package/dist/index418.js +68 -56
  575. package/dist/index418.js.map +1 -1
  576. package/dist/index419.js +31 -8
  577. package/dist/index419.js.map +1 -1
  578. package/dist/index420.js +9 -2
  579. package/dist/index420.js.map +1 -1
  580. package/dist/index421.js +152 -54
  581. package/dist/index421.js.map +1 -1
  582. package/dist/index422.js +108 -56
  583. package/dist/index422.js.map +1 -1
  584. package/dist/index423.js +2 -16
  585. package/dist/index423.js.map +1 -1
  586. package/dist/index424.js +2 -29
  587. package/dist/index424.js.map +1 -1
  588. package/dist/index425.js +2 -13
  589. package/dist/index425.js.map +1 -1
  590. package/dist/index426.js +2 -7
  591. package/dist/index426.js.map +1 -1
  592. package/dist/index427.js +16 -2
  593. package/dist/index427.js.map +1 -1
  594. package/dist/index428.js +29 -2
  595. package/dist/index428.js.map +1 -1
  596. package/dist/index429.js +13 -2
  597. package/dist/index429.js.map +1 -1
  598. package/dist/index430.js +7 -2
  599. package/dist/index430.js.map +1 -1
  600. package/dist/index44.js +1 -1
  601. package/dist/index45.js +2 -2
  602. package/dist/index48.js +2 -2
  603. package/dist/index49.js +28 -28
  604. package/dist/index50.js +21 -21
  605. package/dist/index51.js +1 -1
  606. package/dist/index52.js +8 -8
  607. package/dist/index53.js +2 -2
  608. package/dist/index55.js +17 -17
  609. package/dist/index56.js +4 -4
  610. package/dist/index57.js +3 -3
  611. package/dist/index58.js +7 -7
  612. package/dist/index59.js +4 -4
  613. package/dist/index60.js +12 -12
  614. package/dist/index61.js +2 -2
  615. package/dist/index62.js +2 -2
  616. package/dist/index70.js +1 -1
  617. package/dist/index71.js +1 -1
  618. package/dist/index74.js +6 -2
  619. package/dist/index74.js.map +1 -1
  620. package/dist/index75.js +8 -2
  621. package/dist/index75.js.map +1 -1
  622. package/dist/index76.js +5 -5
  623. package/dist/index76.js.map +1 -1
  624. package/dist/index77.js +2 -8
  625. package/dist/index77.js.map +1 -1
  626. package/dist/index78.js +2 -6
  627. package/dist/index78.js.map +1 -1
  628. package/dist/index79.js +6 -52
  629. package/dist/index79.js.map +1 -1
  630. package/dist/index80.js +68 -4
  631. package/dist/index80.js.map +1 -1
  632. package/dist/index81.js +2 -5
  633. package/dist/index81.js.map +1 -1
  634. package/dist/index82.js +363 -15
  635. package/dist/index82.js.map +1 -1
  636. package/dist/index83.js +261 -5
  637. package/dist/index83.js.map +1 -1
  638. package/dist/index84.js +60 -7
  639. package/dist/index84.js.map +1 -1
  640. package/dist/index85.js +46 -16
  641. package/dist/index85.js.map +1 -1
  642. package/dist/index86.js +169 -4
  643. package/dist/index86.js.map +1 -1
  644. package/dist/index87.js +109 -4
  645. package/dist/index87.js.map +1 -1
  646. package/dist/index88.js +24 -5
  647. package/dist/index88.js.map +1 -1
  648. package/dist/index89.js +8 -6
  649. package/dist/index89.js.map +1 -1
  650. package/dist/index90.js +4 -4
  651. package/dist/index90.js.map +1 -1
  652. package/dist/index91.js +5 -4
  653. package/dist/index91.js.map +1 -1
  654. package/dist/index92.js +4 -6
  655. package/dist/index92.js.map +1 -1
  656. package/dist/index93.js +466 -24
  657. package/dist/index93.js.map +1 -1
  658. package/dist/index94.js +185 -6
  659. package/dist/index94.js.map +1 -1
  660. package/dist/index95.js +107 -4
  661. package/dist/index95.js.map +1 -1
  662. package/dist/index96.js +262 -6
  663. package/dist/index96.js.map +1 -1
  664. package/dist/index97.js +9 -5
  665. package/dist/index97.js.map +1 -1
  666. package/dist/index98.js +42 -4
  667. package/dist/index98.js.map +1 -1
  668. package/dist/index99.js +4 -5
  669. package/dist/index99.js.map +1 -1
  670. package/package.json +1 -1
package/dist/index272.js CHANGED
@@ -1,74 +1,40 @@
1
- import * as c from "react";
2
- import { serializeValue as a } from "./index362.js";
3
- import { j as i } from "./index30.js";
4
- function s(r) {
5
- return r != null && r.length > 0 && typeof r[0] == "object" && r[0] != null && "items" in r[0];
6
- }
7
- function A(r) {
8
- if (!Array.isArray(r))
9
- return r != null && "null" in r;
10
- const n = r;
11
- if (s(n)) {
12
- for (const l of n)
13
- for (const u of l.items)
14
- if (u && u.value == null && u.label != null)
15
- return !0;
16
- return !1;
17
- }
18
- for (const l of n)
19
- if (l && l.value == null && l.label != null)
20
- return !0;
21
- return !1;
22
- }
23
- function b(r, n) {
24
- if (n && r != null)
25
- return n(r) ?? "";
26
- if (r && typeof r == "object") {
27
- if ("label" in r && r.label != null)
28
- return String(r.label);
29
- if ("value" in r)
30
- return String(r.value);
1
+ import l from "./index318.js";
2
+ import o from "./index271.js";
3
+ import u from "./index254.js";
4
+ import N from "./index97.js";
5
+ function g(e, n, r) {
6
+ var i = l(e, r), a = i.carrierCode, t = i.nationalNumber;
7
+ if (t !== e) {
8
+ if (!m(e, t, r))
9
+ return {
10
+ nationalNumber: e
11
+ };
12
+ if (r.numberingPlan.possibleLengths() && (n || (n = N(r.numberingPlan.callingCode(), {
13
+ nationalNumber: t,
14
+ metadata: r
15
+ })), !f(t, n, r)))
16
+ return {
17
+ nationalNumber: e
18
+ };
31
19
  }
32
- return a(r);
20
+ return {
21
+ nationalNumber: t,
22
+ carrierCode: a
23
+ };
33
24
  }
34
- function h(r, n) {
35
- return n && r != null ? n(r) ?? "" : r && typeof r == "object" && "value" in r && "label" in r ? a(r.value) : a(r);
25
+ function m(e, n, r) {
26
+ return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
36
27
  }
37
- function p(r, n, l) {
38
- function u() {
39
- return b(r, l);
40
- }
41
- if (l && r != null)
42
- return l(r);
43
- if (r && typeof r == "object" && "label" in r && r.label != null)
44
- return r.label;
45
- if (n && !Array.isArray(n))
46
- return n[r] ?? u();
47
- if (Array.isArray(n)) {
48
- const e = n, t = s(e) ? e.flatMap((f) => f.items) : e;
49
- if (r == null || typeof r != "object") {
50
- const f = t.find((o) => o.value === r);
51
- return f && f.label != null ? f.label : u();
52
- }
53
- if ("value" in r) {
54
- const f = t.find((o) => o && o.value === r.value);
55
- if (f && f.label != null)
56
- return f.label;
57
- }
28
+ function f(e, n, r) {
29
+ switch (u(e, n, r)) {
30
+ case "TOO_SHORT":
31
+ case "INVALID_LENGTH":
32
+ return !1;
33
+ default:
34
+ return !0;
58
35
  }
59
- return u();
60
- }
61
- function d(r, n, l) {
62
- return r.reduce((u, e, t) => (t > 0 && u.push(", "), u.push(/* @__PURE__ */ i.jsx(c.Fragment, {
63
- children: p(e, n, l)
64
- }, t)), u), []);
65
36
  }
66
37
  export {
67
- A as hasNullItemLabel,
68
- s as isGroupedItems,
69
- d as resolveMultipleLabels,
70
- p as resolveSelectedLabel,
71
- b as stringifyAsLabel,
72
- h as stringifyAsValue
38
+ g as default
73
39
  };
74
40
  //# sourceMappingURL=index272.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index272.js","sources":["../../../node_modules/@base-ui/react/esm/internals/resolveValueLabel.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : arrayItems;\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"names":["isGroupedItems","items","hasNullItemLabel","arrayItems","group","item","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","value","fallback","flatItems","match","resolveMultipleLabels","values","acc","index","_jsx","React"],"mappings":";;;AAKO,SAASA,EAAeC,GAAO;AACpC,SAAOA,KAAS,QAAQA,EAAM,SAAS,KAAK,OAAOA,EAAM,CAAC,KAAM,YAAYA,EAAM,CAAC,KAAK,QAAQ,WAAWA,EAAM,CAAC;AACpH;AAKO,SAASC,EAAiBD,GAAO;AACtC,MAAI,CAAC,MAAM,QAAQA,CAAK;AACtB,WAAOA,KAAS,QAAQ,UAAUA;AAEpC,QAAME,IAAaF;AACnB,MAAID,EAAeG,CAAU,GAAG;AAC9B,eAAWC,KAASD;AAClB,iBAAWE,KAAQD,EAAM;AACvB,YAAIC,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,iBAAO;AAIb,WAAO;AAAA,EACT;AACA,aAAWA,KAAQF;AACjB,QAAIE,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,aAAO;AAGX,SAAO;AACT;AACO,SAASC,EAAiBD,GAAME,GAAmB;AACxD,MAAIA,KAAqBF,KAAQ;AAC/B,WAAOE,EAAkBF,CAAI,KAAK;AAEpC,MAAIA,KAAQ,OAAOA,KAAS,UAAU;AACpC,QAAI,WAAWA,KAAQA,EAAK,SAAS;AACnC,aAAO,OAAOA,EAAK,KAAK;AAE1B,QAAI,WAAWA;AACb,aAAO,OAAOA,EAAK,KAAK;AAAA,EAE5B;AACA,SAAOG,EAAeH,CAAI;AAC5B;AACO,SAASI,EAAiBJ,GAAMK,GAAmB;AACxD,SAAIA,KAAqBL,KAAQ,OACxBK,EAAkBL,CAAI,KAAK,KAEhCA,KAAQ,OAAOA,KAAS,YAAY,WAAWA,KAAQ,WAAWA,IAC7DG,EAAeH,EAAK,KAAK,IAE3BG,EAAeH,CAAI;AAC5B;AACO,SAASM,EAAqBC,GAAOX,GAAOM,GAAmB;AACpE,WAASM,IAAW;AAClB,WAAOP,EAAiBM,GAAOL,CAAiB;AAAA,EAClD;AACA,MAAIA,KAAqBK,KAAS;AAChC,WAAOL,EAAkBK,CAAK;AAIhC,MAAIA,KAAS,OAAOA,KAAU,YAAY,WAAWA,KAASA,EAAM,SAAS;AAC3E,WAAOA,EAAM;AAIf,MAAIX,KAAS,CAAC,MAAM,QAAQA,CAAK;AAC/B,WAAOA,EAAMW,CAAK,KAAKC,EAAQ;AAIjC,MAAI,MAAM,QAAQZ,CAAK,GAAG;AACxB,UAAME,IAAaF,GACba,IAAYd,EAAeG,CAAU,IAAIA,EAAW,QAAQ,CAAAC,MAASA,EAAM,KAAK,IAAID;AAC1F,QAAIS,KAAS,QAAQ,OAAOA,KAAU,UAAU;AAC9C,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,EAAK,UAAUO,CAAK;AACzD,aAAIG,KAASA,EAAM,SAAS,OACnBA,EAAM,QAERF,EAAQ;AAAA,IACjB;AAGA,QAAI,WAAWD,GAAO;AACpB,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,KAAQA,EAAK,UAAUO,EAAM,KAAK;AACvE,UAAIG,KAASA,EAAM,SAAS;AAC1B,eAAOA,EAAM;AAAA,IAEjB;AAAA,EACF;AACA,SAAOF,EAAQ;AACjB;AACO,SAASG,EAAsBC,GAAQhB,GAAOM,GAAmB;AACtE,SAAOU,EAAO,OAAO,CAACC,GAAKN,GAAOO,OAC5BA,IAAQ,KACVD,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkBE,gBAAAA,MAAKC,EAAM,UAAU;AAAA,IACzC,UAAUV,EAAqBC,GAAOX,GAAOM,CAAiB;AAAA,EACpE,GAAOY,CAAK,CAAC,GACFD,IACN,CAAA,CAAE;AACP;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index272.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js"],"sourcesContent":["import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryByCallingCode from './getCountryByCallingCode.js';\n\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {string?} country — Country, if known.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\nexport default function extractNationalNumber(number, country, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n if (metadata.numberingPlan.possibleLengths()) {\n // If an exact `country` is not specified, attempt to detect it from the assumed national number.\n if (!country) {\n country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n }\n\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n }\n // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n return true;\n}\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\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 return false;\n default:\n return true;\n }\n}\n//# sourceMappingURL=extractNationalNumber.js.map"],"names":["extractNationalNumber","number","country","metadata","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","carrierCode","nationalNumber","shouldHaveExtractedNationalPrefix","getCountryByCallingCode","isPossibleIncompleteNationalNumber","nationalNumberBefore","nationalNumberAfter","matchesEntirely","checkNumberLength"],"mappings":";;;;AAee,SAASA,EAAsBC,GAAQC,GAASC,GAAU;AAUvE,MAAIC,IAAwBC,EAAkDJ,GAAQE,CAAQ,GAC5FG,IAAcF,EAAsB,aACpCG,IAAiBH,EAAsB;AACzC,MAAIG,MAAmBN,GAAQ;AAC7B,QAAI,CAACO,EAAkCP,GAAQM,GAAgBJ,CAAQ;AAErE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MACxB;AAII,QAAIE,EAAS,cAAc,sBAEpBD,MACHA,IAAUO,EAAwBN,EAAS,cAAc,YAAW,GAAI;AAAA,MACtE,gBAAgBI;AAAA,MAChB,UAAUJ;AAAA,IACpB,CAAS,IAWC,CAACO,EAAmCH,GAAgBL,GAASC,CAAQ;AAEvE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MAC1B;AAAA,EAGE;AACA,SAAO;AAAA,IACL,gBAAgBM;AAAA,IAChB,aAAaD;AAAA,EACjB;AACA;AAgBA,SAASE,EAAkCG,GAAsBC,GAAqBT,GAAU;AAG9F,SAAI,EAAAU,EAAgBF,GAAsBR,EAAS,sBAAqB,CAAE,KAAK,CAACU,EAAgBD,GAAqBT,EAAS,sBAAqB,CAAE;AAiBvJ;AACA,SAASO,EAAmCH,GAAgBL,GAASC,GAAU;AAC7E,UAAQW,EAAkBP,GAAgBL,GAASC,CAAQ,GAAC;AAAA,IAC1D,KAAK;AAAA,IACL,KAAK;AAIH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACb;AACA;","x_google_ignoreList":[0]}
package/dist/index273.js CHANGED
@@ -1,21 +1,24 @@
1
- const i = (n, r) => Object.is(n, r);
2
- function u(n, r, t) {
3
- return n == null || r == null ? Object.is(n, r) : t(n, r);
4
- }
5
- function e(n, r, t) {
6
- return !n || n.length === 0 ? !1 : n.some((f) => f === void 0 ? !1 : u(r, f, t));
7
- }
8
- function o(n, r, t) {
9
- return !n || n.length === 0 ? -1 : n.findIndex((f) => f === void 0 ? !1 : u(f, r, t));
10
- }
11
- function I(n, r, t) {
12
- return n.filter((f) => !u(r, f, t));
1
+ import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./index369.js";
2
+ import v from "./index262.js";
3
+ function S(r, _) {
4
+ var f = _.extractFormattedPhoneNumber, e = s(r);
5
+ if (!x(e))
6
+ throw new v("NOT_A_NUMBER");
7
+ var t;
8
+ if (e === null)
9
+ t = f(r) || "";
10
+ else {
11
+ t = "", e.charAt(0) === F && (t += e);
12
+ var n = r.indexOf(a), o;
13
+ n >= 0 ? o = n + a.length : o = 0;
14
+ var h = r.indexOf(d);
15
+ t += r.substring(o, h);
16
+ }
17
+ var i = t.indexOf(m);
18
+ if (i > 0 && (t = t.substring(0, i)), t !== "")
19
+ return t;
13
20
  }
14
21
  export {
15
- u as compareItemEquality,
16
- i as defaultItemEquality,
17
- o as findItemIndex,
18
- I as removeItem,
19
- e as selectedValueIncludes
22
+ S as default
20
23
  };
21
24
  //# sourceMappingURL=index273.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index273.js","sources":["../../../node_modules/@base-ui/react/esm/internals/itemEquality.js"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index273.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js"],"sourcesContent":["import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n var phoneNumberString;\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = '';\n\n // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n }\n\n // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber;\n // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n /* istanbul ignore else */\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n }\n\n // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n }\n // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n//# sourceMappingURL=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map"],"names":["extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","_ref","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","isPhoneContextValid","ParseError","phoneNumberString","PLUS_SIGN","indexOfRfc3966Prefix","RFC3966_PREFIX_","indexOfNationalNumber","indexOfPhoneContext","RFC3966_PHONE_CONTEXT_","indexOfIsdn","RFC3966_ISDN_SUBADDRESS_"],"mappings":";;AAQe,SAASA,EAAwDC,GAAeC,GAAM;AACnG,MAAIC,IAA8BD,EAAK,6BACnCE,IAAeC,EAAoBJ,CAAa;AACpD,MAAI,CAACK,EAAoBF,CAAY;AACnC,UAAM,IAAIG,EAAW,cAAc;AAErC,MAAIC;AACJ,MAAIJ,MAAiB;AAGnB,IAAAI,IAAoBL,EAA4BF,CAAa,KAAK;AAAA,OAC7D;AACL,IAAAO,IAAoB,IAIhBJ,EAAa,OAAO,CAAC,MAAMK,MAC7BD,KAAqBJ;AAQvB,QAAIM,IAAuBT,EAAc,QAAQU,CAAe,GAC5DC;AAIJ,IAAIF,KAAwB,IAC1BE,IAAwBF,IAAuBC,EAAgB,SAE/DC,IAAwB;AAE1B,QAAIC,IAAsBZ,EAAc,QAAQa,CAAsB;AACtE,IAAAN,KAAqBP,EAAc,UAAUW,GAAuBC,CAAmB;AAAA,EACzF;AAKA,MAAIE,IAAcP,EAAkB,QAAQQ,CAAwB;AAUpE,MATID,IAAc,MAChBP,IAAoBA,EAAkB,UAAU,GAAGO,CAAW,IAQ5DP,MAAsB;AACxB,WAAOA;AAEX;","x_google_ignoreList":[0]}
package/dist/index274.js CHANGED
@@ -1,15 +1,13 @@
1
- import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index261.js";
3
- import { useStableCallback as f } from "./index262.js";
4
- function u(r, n) {
5
- const t = c.useRef(r), e = f(n);
6
- o(() => {
7
- t.current !== r && e(t.current);
8
- }, [r, e]), o(() => {
9
- t.current = r;
10
- }, [r]);
1
+ import f from "./index93.js";
2
+ var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
3
+ function D(t, r, a) {
4
+ var e = new f(a);
5
+ if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
6
+ return e.defaultIDDPrefix();
7
+ if (u.test(e.IDDPrefix()))
8
+ return e.IDDPrefix();
11
9
  }
12
10
  export {
13
- u as useValueChanged
11
+ D as default
14
12
  };
15
13
  //# sourceMappingURL=index274.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index274.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useValueChanged.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index274.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// If the `country` supports IDD calling, it returns a preferred IDD prefix.\n// If the `country` doesn't support IDD calling, it returns `undefined`.\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n//# sourceMappingURL=getIddPrefix.js.map"],"names":["SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","country","callingCode","metadata","countryMetadata","Metadata"],"mappings":";AAWA,IAAIA,IAA4B;AAIjB,SAASC,EAAaC,GAASC,GAAaC,GAAU;AACnE,MAAIC,IAAkB,IAAIC,EAASF,CAAQ;AAE3C,MADAC,EAAgB,oBAAoBH,GAASC,CAAW,GACpDE,EAAgB;AAClB,WAAOA,EAAgB,iBAAgB;AAEzC,MAAIL,EAA0B,KAAKK,EAAgB,UAAS,CAAE;AAC5D,WAAOA,EAAgB,UAAS;AAEpC;","x_google_ignoreList":[0]}
package/dist/index275.js CHANGED
@@ -1,31 +1,12 @@
1
- import * as l from "react";
2
- import { useStableCallback as c } from "./index262.js";
3
- import { useEnhancedClickHandler as u } from "./index363.js";
4
- import { isIOS as m } from "./index301.js";
5
- import { useValueChanged as p } from "./index274.js";
6
- function C(e) {
7
- const [o, t] = l.useState(null), s = c((i, a) => {
8
- e || t(a || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9
- // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
10
- // will be "" in that case.
11
- (m ? "touch" : ""));
12
- });
13
- p(e, (i) => {
14
- i && !e && t(null);
15
- });
16
- const {
17
- onClick: r,
18
- onPointerDown: n
19
- } = u(s);
20
- return l.useMemo(() => ({
21
- openMethod: o,
22
- triggerProps: {
23
- onClick: r,
24
- onPointerDown: n
25
- }
26
- }), [o, r, n]);
1
+ import { VALID_DIGITS as A } from "./index89.js";
2
+ var g = ";ext=", t = function(a) {
3
+ return "([".concat(A, "]{1,").concat(a, "})");
4
+ };
5
+ function D(x) {
6
+ var a = "20", o = "15", i = "9", F = "6", n = "[  \\t,]*", e = "[:\\..]?[  \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[  \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
7
+ return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
27
8
  }
28
9
  export {
29
- C as useOpenInteractionType
10
+ D as default
30
11
  };
31
12
  //# sourceMappingURL=index275.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index275.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index275.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js"],"sourcesContent":["import { VALID_DIGITS } from '../../constants.js';\n\n// The RFC 3966 format for extensions.\nvar RFC3966_EXTN_PREFIX = ';ext=';\n\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n var extLimitWhenNotSure = '6';\n\n /** @type {string} */\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\";\n // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n /** @type {string} */\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n var optionalExtnSuffix = \"#?\";\n\n // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n /** @type {string} */\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n /** @type {string} */\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n // When extension is not separated clearly.\n /** @type {string} */\n var ambiguousSeparator = \"[- ]+\";\n // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n /** @type {string} */\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\";\n // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n /** @type {string} */\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n /** @type {string} */\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n /** @type {string} */\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n\n // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n//# sourceMappingURL=createExtensionPattern.js.map"],"names":["RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","maxLength","VALID_DIGITS","createExtensionPattern","purpose","extLimitAfterExplicitLabel","extLimitAfterLikelyLabel","extLimitAfterAmbiguousChar","extLimitWhenNotSure","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","explicitExtLabels","ambiguousExtLabels","ambiguousSeparator","possibleSeparatorsNumberExtLabelNoComma","autoDiallingAndExtLabelsFound","rfcExtn","explicitExtn","ambiguousExtn","americanStyleExtnWithSuffix","autoDiallingExtn","onlyCommasExtn"],"mappings":";AAGA,IAAIA,IAAsB,SAOtBC,IAA4B,SAAmCC,GAAW;AAC5E,SAAO,KAAK,OAAOC,GAAc,MAAM,EAAE,OAAOD,GAAW,IAAI;AACjE;AASe,SAASE,EAAuBC,GAAS;AAOtD,MAAIC,IAA6B,MAE7BC,IAA2B,MAE3BC,IAA6B,KAE7BC,IAAsB,KAGtBC,IAA6C,aAG7CC,IAA6B,sBAE7BC,IAAqB,MAKrBC,IAAoB,iDAIpBC,IAAqB,wBAGrBC,IAAqB,SAIrBC,IAA0C,YAM1CC,IAAgC,cAGhCC,IAAUlB,IAAsBC,EAA0BK,CAA0B,GAEpFa,IAAeT,IAA6CG,IAAoBF,IAA6BV,EAA0BK,CAA0B,IAAIM,GAErKQ,IAAgBV,IAA6CI,IAAqBH,IAA6BV,EAA0BO,CAA0B,IAAII,GAEvKS,IAA8BN,IAAqBd,EAA0BQ,CAAmB,IAAI,KAGpGa,IAAmBN,IAA0CC,IAAgCN,IAA6BV,EAA0BM,CAAwB,IAAIK,GAEhLW,IAAiBP,IAA0C,WAAWL,IAA6BV,EAA0BO,CAA0B,IAAII;AAc/J,SAAOM,IAAU,MAAMC,IAAe,MAAMC,IAAgB,MAAMC,IAA8B,MAAMC,IAAmB,MAAMC;AACjI;","x_google_ignoreList":[0]}
package/dist/index276.js CHANGED
@@ -1,17 +1,62 @@
1
- import { clamp as s } from "./index306.js";
2
- const f = 1;
3
- function a(n, t) {
4
- return Math.max(0, n - t);
5
- }
6
- function u(n, t) {
7
- if (t <= 0)
8
- return 0;
9
- const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
- return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
1
+ import { tzName as r } from "./index277.js";
2
+ import { TZDateMini as s } from "./index278.js";
3
+ class o extends s {
4
+ //#region static
5
+ static tz(t, ...e) {
6
+ return e.length ? new o(...e, t) : new o(Date.now(), t);
7
+ }
8
+ //#endregion
9
+ //#region representation
10
+ toISOString() {
11
+ const [t, e, n] = this.tzComponents(), i = `${t}${e}:${n}`;
12
+ return this.internal.toISOString().slice(0, -1) + i;
13
+ }
14
+ toString() {
15
+ return `${this.toDateString()} ${this.toTimeString()}`;
16
+ }
17
+ toDateString() {
18
+ const [t, e, n, i] = this.internal.toUTCString().split(" ");
19
+ return `${t?.slice(0, -1)} ${n} ${e} ${i}`;
20
+ }
21
+ toTimeString() {
22
+ const t = this.internal.toUTCString().split(" ")[4], [e, n, i] = this.tzComponents();
23
+ return `${t} GMT${e}${n}${i} (${r(this.timeZone, this)})`;
24
+ }
25
+ toLocaleString(t, e) {
26
+ return Date.prototype.toLocaleString.call(this, t, {
27
+ ...e,
28
+ timeZone: e?.timeZone || this.timeZone
29
+ });
30
+ }
31
+ toLocaleDateString(t, e) {
32
+ return Date.prototype.toLocaleDateString.call(this, t, {
33
+ ...e,
34
+ timeZone: e?.timeZone || this.timeZone
35
+ });
36
+ }
37
+ toLocaleTimeString(t, e) {
38
+ return Date.prototype.toLocaleTimeString.call(this, t, {
39
+ ...e,
40
+ timeZone: e?.timeZone || this.timeZone
41
+ });
42
+ }
43
+ //#endregion
44
+ //#region private
45
+ tzComponents() {
46
+ const t = this.getTimezoneOffset(), e = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0");
47
+ return [e, n, i];
48
+ }
49
+ //#endregion
50
+ withTimeZone(t) {
51
+ return new o(+this, t);
52
+ }
53
+ //#region date-fns integration
54
+ [/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
55
+ return new o(+new Date(t), this.timeZone);
56
+ }
57
+ //#endregion
11
58
  }
12
59
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
60
+ o as TZDate
16
61
  };
17
62
  //# sourceMappingURL=index276.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index276.js","sources":["../../../node_modules/@base-ui/react/esm/utils/scrollEdges.js"],"sourcesContent":["import { clamp } from \"../internals/clamp.js\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index276.js","sources":["../../../node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}"],"names":["TZDate","TZDateMini","tz","args","sign","hours","minutes","day","date","month","year","time","tzName","locales","options","offset","timeZone"],"mappings":";;AAEO,MAAMA,UAAeC,EAAW;AAAA;AAAA,EAGrC,OAAO,GAAGC,MAAOC,GAAM;AACrB,WAAOA,EAAK,SAAS,IAAIH,EAAO,GAAGG,GAAMD,CAAE,IAAI,IAAIF,EAAO,KAAK,IAAG,GAAIE,CAAE;AAAA,EAC1E;AAAA;AAAA;AAAA,EAMA,cAAc;AACZ,UAAM,CAACE,GAAMC,GAAOC,CAAO,IAAI,KAAK,aAAY,GAC1CJ,IAAK,GAAGE,CAAI,GAAGC,CAAK,IAAIC,CAAO;AACrC,WAAO,KAAK,SAAS,YAAW,EAAG,MAAM,GAAG,EAAE,IAAIJ;AAAA,EACpD;AAAA,EACA,WAAW;AAET,WAAO,GAAG,KAAK,aAAY,CAAE,IAAI,KAAK,aAAY,CAAE;AAAA,EACtD;AAAA,EACA,eAAe;AAEb,UAAM,CAACK,GAAKC,GAAMC,GAAOC,CAAI,IAAI,KAAK,SAAS,cAAc,MAAM,GAAG;AAEtE,WAAO,GAAGH,GAAK,MAAM,GAAG,EAAE,CAAC,IAAqBE,CAAK,IAAID,CAAI,IAAIE,CAAI;AAAA,EACvE;AAAA,EACA,eAAe;AAEb,UAAMC,IAAO,KAAK,SAAS,YAAW,EAAG,MAAM,GAAG,EAAE,CAAC,GAC/C,CAACP,GAAMC,GAAOC,CAAO,IAAI,KAAK,aAAY;AAEhD,WAAO,GAAGK,CAAI,OAAOP,CAAI,GAAGC,CAAK,GAAGC,CAAO,KAAKM,EAAO,KAAK,UAAU,IAAI,CAAC;AAAA,EAC7E;AAAA,EACA,eAAeC,GAASC,GAAS;AAC/B,WAAO,KAAK,UAAU,eAAe,KAAK,MAAMD,GAAS;AAAA,MACvD,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA,EACA,mBAAmBD,GAASC,GAAS;AACnC,WAAO,KAAK,UAAU,mBAAmB,KAAK,MAAMD,GAAS;AAAA,MAC3D,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA,EACA,mBAAmBD,GAASC,GAAS;AACnC,WAAO,KAAK,UAAU,mBAAmB,KAAK,MAAMD,GAAS;AAAA,MAC3D,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA;AAAA;AAAA,EAMA,eAAe;AACb,UAAMC,IAAS,KAAK,kBAAiB,GAC/BX,IAAOW,IAAS,IAAI,MAAM,KAC1BV,IAAQ,OAAO,KAAK,MAAM,KAAK,IAAIU,CAAM,IAAI,EAAE,CAAC,EAAE,SAAS,GAAG,GAAG,GACjET,IAAU,OAAO,KAAK,IAAIS,CAAM,IAAI,EAAE,EAAE,SAAS,GAAG,GAAG;AAC7D,WAAO,CAACX,GAAMC,GAAOC,CAAO;AAAA,EAC9B;AAAA;AAAA,EAIA,aAAaU,GAAU;AACrB,WAAO,IAAIhB,EAAO,CAAC,MAAMgB,CAAQ;AAAA,EACnC;AAAA;AAAA,EAIA,CAAC,uBAAO,IAAI,mBAAmB,CAAC,EAAER,GAAM;AACtC,WAAO,IAAIR,EAAO,CAAC,IAAI,KAAKQ,CAAI,GAAG,KAAK,QAAQ;AAAA,EAClD;AAAA;AAGF;","x_google_ignoreList":[0]}
package/dist/index277.js CHANGED
@@ -1,22 +1,12 @@
1
- import * as c from "react";
2
- import { s as u } from "./index404.js";
3
- import { w as i } from "./index405.js";
4
- import { isReactVersionAtLeast as S } from "./index354.js";
5
- const a = S(19), m = a ? f : l;
6
- function g(t, e, r, n, o) {
7
- return m(t, e, r, n, o);
8
- }
9
- function p(t, e, r, n, o) {
10
- const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
- return u.useSyncExternalStore(t.subscribe, s, s);
12
- }
13
- function f(t, e, r, n, o) {
14
- return p(t, e, r, n, o);
15
- }
16
- function l(t, e, r, n, o) {
17
- return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
1
+ function o(e, n, t = "long") {
2
+ return new Intl.DateTimeFormat("en-US", {
3
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
4
+ hour: "numeric",
5
+ timeZone: e,
6
+ timeZoneName: t
7
+ }).format(n).split(/\s/g).slice(2).join(" ");
18
8
  }
19
9
  export {
20
- g as useStore
10
+ o as tzName
21
11
  };
22
12
  //# sourceMappingURL=index277.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index277.js","sources":["../../../node_modules/@base-ui/utils/esm/store/useStore.js"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.js\";\nimport { register, getInstance } from \"../fastHooks.js\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (hook.didChange || !Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n hook.didChange = false;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3),\n didChange: false\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.didChange = true;\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAmDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA+BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index277.js","sources":["../../../node_modules/@date-fns/tz/tzName/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}"],"names":["tzName","timeZone","date","format"],"mappings":"AA2BO,SAASA,EAAOC,GAAUC,GAAMC,IAAS,QAAQ;AACtD,SAAO,IAAI,KAAK,eAAe,SAAS;AAAA;AAAA,IAEtC,MAAM;AAAA,IACN,UAAUF;AAAA,IACV,cAAcE;AAAA,EAClB,CAAG,EAAE,OAAOD,CAAI,EAAE,MAAM,KAAK,EAC1B,MAAM,CAAC,EACP,KAAK,GAAG;AACX;","x_google_ignoreList":[0]}