@rpcbase/ui 0.245.0 → 0.247.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 (680) hide show
  1. package/dist/index10.js +2 -2
  2. package/dist/index105.js +36 -36
  3. package/dist/index106.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index117.js +6 -6
  6. package/dist/index12.js +3 -3
  7. package/dist/index120.js +10 -10
  8. package/dist/index122.js +2 -2
  9. package/dist/index123.js +3 -3
  10. package/dist/index124.js +1 -1
  11. package/dist/index126.js +2 -2
  12. package/dist/index128.js +2 -2
  13. package/dist/index13.js +2 -2
  14. package/dist/index14.js +2 -2
  15. package/dist/index149.js +5 -14
  16. package/dist/index149.js.map +1 -1
  17. package/dist/index15.js +2 -2
  18. package/dist/index150.js +63 -63
  19. package/dist/index150.js.map +1 -1
  20. package/dist/index151.js +2 -38
  21. package/dist/index151.js.map +1 -1
  22. package/dist/index152.js +385 -13
  23. package/dist/index152.js.map +1 -1
  24. package/dist/index153.js +261 -23
  25. package/dist/index153.js.map +1 -1
  26. package/dist/index154.js +58 -109
  27. package/dist/index154.js.map +1 -1
  28. package/dist/index155.js +47 -13
  29. package/dist/index155.js.map +1 -1
  30. package/dist/index156.js +169 -4
  31. package/dist/index156.js.map +1 -1
  32. package/dist/index157.js +110 -4
  33. package/dist/index157.js.map +1 -1
  34. package/dist/index158.js +25 -5
  35. package/dist/index158.js.map +1 -1
  36. package/dist/index159.js +8 -12
  37. package/dist/index159.js.map +1 -1
  38. package/dist/index16.js +8 -8
  39. package/dist/index160.js +4 -19
  40. package/dist/index160.js.map +1 -1
  41. package/dist/index161.js +6 -11
  42. package/dist/index161.js.map +1 -1
  43. package/dist/index162.js +4 -176
  44. package/dist/index162.js.map +1 -1
  45. package/dist/index163.js +476 -268
  46. package/dist/index163.js.map +1 -1
  47. package/dist/index164.js +189 -4
  48. package/dist/index164.js.map +1 -1
  49. package/dist/index165.js +14 -28
  50. package/dist/index165.js.map +1 -1
  51. package/dist/index166.js +105 -124
  52. package/dist/index166.js.map +1 -1
  53. package/dist/index167.js +262 -63
  54. package/dist/index167.js.map +1 -1
  55. package/dist/index168.js +6 -8
  56. package/dist/index168.js.map +1 -1
  57. package/dist/index169.js +40 -15
  58. package/dist/index169.js.map +1 -1
  59. package/dist/index17.js +1 -1
  60. package/dist/index170.js +4 -30
  61. package/dist/index170.js.map +1 -1
  62. package/dist/index171.js +58 -69
  63. package/dist/index171.js.map +1 -1
  64. package/dist/index172.js +8 -5
  65. package/dist/index172.js.map +1 -1
  66. package/dist/index173.js +80 -61
  67. package/dist/index173.js.map +1 -1
  68. package/dist/index174.js +20 -2
  69. package/dist/index174.js.map +1 -1
  70. package/dist/index175.js +14 -383
  71. package/dist/index175.js.map +1 -1
  72. package/dist/index176.js +4 -260
  73. package/dist/index176.js.map +1 -1
  74. package/dist/index177.js +4 -59
  75. package/dist/index177.js.map +1 -1
  76. package/dist/index178.js +6 -46
  77. package/dist/index178.js.map +1 -1
  78. package/dist/index179.js +4 -169
  79. package/dist/index179.js.map +1 -1
  80. package/dist/index18.js +7 -7
  81. package/dist/index180.js +6 -109
  82. package/dist/index180.js.map +1 -1
  83. package/dist/index181.js +16 -24
  84. package/dist/index181.js.map +1 -1
  85. package/dist/index182.js +5 -8
  86. package/dist/index182.js.map +1 -1
  87. package/dist/index183.js +4 -4
  88. package/dist/index183.js.map +1 -1
  89. package/dist/index184.js +12 -5
  90. package/dist/index184.js.map +1 -1
  91. package/dist/index185.js +9 -4
  92. package/dist/index185.js.map +1 -1
  93. package/dist/index186.js +13 -487
  94. package/dist/index186.js.map +1 -1
  95. package/dist/index187.js +13 -189
  96. package/dist/index187.js.map +1 -1
  97. package/dist/index188.js +4 -13
  98. package/dist/index188.js.map +1 -1
  99. package/dist/index189.js +5 -107
  100. package/dist/index189.js.map +1 -1
  101. package/dist/index19.js +16 -16
  102. package/dist/index190.js +6 -262
  103. package/dist/index190.js.map +1 -1
  104. package/dist/index191.js +5 -6
  105. package/dist/index191.js.map +1 -1
  106. package/dist/index192.js +53 -39
  107. package/dist/index192.js.map +1 -1
  108. package/dist/index193.js +8 -4
  109. package/dist/index193.js.map +1 -1
  110. package/dist/index194.js +4 -58
  111. package/dist/index194.js.map +1 -1
  112. package/dist/index195.js +4 -8
  113. package/dist/index195.js.map +1 -1
  114. package/dist/index196.js +8 -87
  115. package/dist/index196.js.map +1 -1
  116. package/dist/index197.js +4 -19
  117. package/dist/index197.js.map +1 -1
  118. package/dist/index198.js +4 -16
  119. package/dist/index198.js.map +1 -1
  120. package/dist/index199.js +3 -5
  121. package/dist/index199.js.map +1 -1
  122. package/dist/index200.js +10 -5
  123. package/dist/index200.js.map +1 -1
  124. package/dist/index201.js +9 -6
  125. package/dist/index201.js.map +1 -1
  126. package/dist/index202.js +9 -4
  127. package/dist/index202.js.map +1 -1
  128. package/dist/index203.js +10 -6
  129. package/dist/index203.js.map +1 -1
  130. package/dist/index204.js +10 -16
  131. package/dist/index204.js.map +1 -1
  132. package/dist/index205.js +9 -4
  133. package/dist/index205.js.map +1 -1
  134. package/dist/index206.js +6 -4
  135. package/dist/index206.js.map +1 -1
  136. package/dist/index207.js +5 -12
  137. package/dist/index207.js.map +1 -1
  138. package/dist/index208.js +4 -9
  139. package/dist/index208.js.map +1 -1
  140. package/dist/index209.js +5 -13
  141. package/dist/index209.js.map +1 -1
  142. package/dist/index21.js +1 -1
  143. package/dist/index210.js +6 -13
  144. package/dist/index210.js.map +1 -1
  145. package/dist/index211.js +5 -4
  146. package/dist/index211.js.map +1 -1
  147. package/dist/index212.js +16 -5
  148. package/dist/index212.js.map +1 -1
  149. package/dist/index213.js +7 -6
  150. package/dist/index213.js.map +1 -1
  151. package/dist/index214.js +10 -5
  152. package/dist/index214.js.map +1 -1
  153. package/dist/index215.js +10 -54
  154. package/dist/index215.js.map +1 -1
  155. package/dist/index216.js +21 -8
  156. package/dist/index216.js.map +1 -1
  157. package/dist/index217.js +8 -4
  158. package/dist/index217.js.map +1 -1
  159. package/dist/index218.js +9 -4
  160. package/dist/index218.js.map +1 -1
  161. package/dist/index219.js +9 -8
  162. package/dist/index219.js.map +1 -1
  163. package/dist/index22.js +2 -2
  164. package/dist/index220.js +4 -4
  165. package/dist/index220.js.map +1 -1
  166. package/dist/index221.js +5 -4
  167. package/dist/index221.js.map +1 -1
  168. package/dist/index222.js +16 -3
  169. package/dist/index222.js.map +1 -1
  170. package/dist/index223.js +9 -10
  171. package/dist/index223.js.map +1 -1
  172. package/dist/index224.js +18 -9
  173. package/dist/index224.js.map +1 -1
  174. package/dist/index225.js +20 -9
  175. package/dist/index225.js.map +1 -1
  176. package/dist/index226.js +12 -10
  177. package/dist/index226.js.map +1 -1
  178. package/dist/index227.js +29 -10
  179. package/dist/index227.js.map +1 -1
  180. package/dist/index228.js +12 -9
  181. package/dist/index228.js.map +1 -1
  182. package/dist/index229.js +25 -6
  183. package/dist/index229.js.map +1 -1
  184. package/dist/index23.js +1 -1
  185. package/dist/index230.js +5 -5
  186. package/dist/index230.js.map +1 -1
  187. package/dist/index231.js +14 -4
  188. package/dist/index231.js.map +1 -1
  189. package/dist/index232.js +68 -5
  190. package/dist/index232.js.map +1 -1
  191. package/dist/index233.js +38 -7
  192. package/dist/index233.js.map +1 -1
  193. package/dist/index234.js +14 -6
  194. package/dist/index234.js.map +1 -1
  195. package/dist/index235.js +23 -16
  196. package/dist/index235.js.map +1 -1
  197. package/dist/index236.js +111 -7
  198. package/dist/index236.js.map +1 -1
  199. package/dist/index237.js +13 -11
  200. package/dist/index237.js.map +1 -1
  201. package/dist/index238.js +4 -10
  202. package/dist/index238.js.map +1 -1
  203. package/dist/index239.js +4 -22
  204. package/dist/index239.js.map +1 -1
  205. package/dist/index24.js +1 -1
  206. package/dist/index240.js +5 -9
  207. package/dist/index240.js.map +1 -1
  208. package/dist/index241.js +11 -9
  209. package/dist/index241.js.map +1 -1
  210. package/dist/index242.js +19 -9
  211. package/dist/index242.js.map +1 -1
  212. package/dist/index243.js +11 -5
  213. package/dist/index243.js.map +1 -1
  214. package/dist/index244.js +176 -5
  215. package/dist/index244.js.map +1 -1
  216. package/dist/index245.js +278 -15
  217. package/dist/index245.js.map +1 -1
  218. package/dist/index246.js +4 -9
  219. package/dist/index246.js.map +1 -1
  220. package/dist/index247.js +28 -19
  221. package/dist/index247.js.map +1 -1
  222. package/dist/index248.js +124 -18
  223. package/dist/index248.js.map +1 -1
  224. package/dist/index249.js +63 -12
  225. package/dist/index249.js.map +1 -1
  226. package/dist/index25.js +1 -1
  227. package/dist/index250.js +8 -29
  228. package/dist/index250.js.map +1 -1
  229. package/dist/index251.js +15 -12
  230. package/dist/index251.js.map +1 -1
  231. package/dist/index252.js +30 -25
  232. package/dist/index252.js.map +1 -1
  233. package/dist/index253.js +69 -5
  234. package/dist/index253.js.map +1 -1
  235. package/dist/index254.js +146 -58
  236. package/dist/index254.js.map +1 -1
  237. package/dist/index255.js +32 -8
  238. package/dist/index255.js.map +1 -1
  239. package/dist/index256.js +11 -11
  240. package/dist/index256.js.map +1 -1
  241. package/dist/index257.js +48 -7
  242. package/dist/index257.js.map +1 -1
  243. package/dist/index258.js +9 -5
  244. package/dist/index258.js.map +1 -1
  245. package/dist/index259.js +11 -13
  246. package/dist/index259.js.map +1 -1
  247. package/dist/index260.js +43 -3
  248. package/dist/index260.js.map +1 -1
  249. package/dist/index261.js +97 -3
  250. package/dist/index261.js.map +1 -1
  251. package/dist/index262.js +74 -87
  252. package/dist/index262.js.map +1 -1
  253. package/dist/index263.js +104 -16
  254. package/dist/index263.js.map +1 -1
  255. package/dist/index264.js +50 -27
  256. package/dist/index264.js.map +1 -1
  257. package/dist/index265.js +11 -51
  258. package/dist/index265.js.map +1 -1
  259. package/dist/index266.js +4 -5
  260. package/dist/index266.js.map +1 -1
  261. package/dist/index267.js +37 -5
  262. package/dist/index267.js.map +1 -1
  263. package/dist/index268.js +8 -61
  264. package/dist/index268.js.map +1 -1
  265. package/dist/index269.js +3 -66
  266. package/dist/index269.js.map +1 -1
  267. package/dist/index270.js +9 -133
  268. package/dist/index270.js.map +1 -1
  269. package/dist/index271.js +134 -7
  270. package/dist/index271.js.map +1 -1
  271. package/dist/index272.js +18 -5
  272. package/dist/index272.js.map +1 -1
  273. package/dist/index273.js +16 -4
  274. package/dist/index273.js.map +1 -1
  275. package/dist/index274.js +36 -11
  276. package/dist/index274.js.map +1 -1
  277. package/dist/index275.js +20 -21
  278. package/dist/index275.js.map +1 -1
  279. package/dist/index276.js +8 -16
  280. package/dist/index276.js.map +1 -1
  281. package/dist/index277.js +24 -11
  282. package/dist/index277.js.map +1 -1
  283. package/dist/index278.js +29 -8
  284. package/dist/index278.js.map +1 -1
  285. package/dist/index279.js +14 -142
  286. package/dist/index279.js.map +1 -1
  287. package/dist/index28.js +1 -1
  288. package/dist/index280.js +19 -79
  289. package/dist/index280.js.map +1 -1
  290. package/dist/index281.js +65 -60
  291. package/dist/index281.js.map +1 -1
  292. package/dist/index282.js +7 -15
  293. package/dist/index282.js.map +1 -1
  294. package/dist/index283.js +6 -20
  295. package/dist/index283.js.map +1 -1
  296. package/dist/index284.js +11 -6
  297. package/dist/index284.js.map +1 -1
  298. package/dist/index285.js +3 -11
  299. package/dist/index285.js.map +1 -1
  300. package/dist/index286.js +50 -3
  301. package/dist/index286.js.map +1 -1
  302. package/dist/index287.js +4 -51
  303. package/dist/index287.js.map +1 -1
  304. package/dist/index288.js +25 -12
  305. package/dist/index288.js.map +1 -1
  306. package/dist/index289.js +14 -19
  307. package/dist/index289.js.map +1 -1
  308. package/dist/index29.js +56 -3
  309. package/dist/index29.js.map +1 -1
  310. package/dist/index290.js +5 -53
  311. package/dist/index290.js.map +1 -1
  312. package/dist/index291.js +21 -20
  313. package/dist/index291.js.map +1 -1
  314. package/dist/index292.js +53 -41
  315. package/dist/index292.js.map +1 -1
  316. package/dist/index293.js +19 -38
  317. package/dist/index293.js.map +1 -1
  318. package/dist/index294.js +42 -46
  319. package/dist/index294.js.map +1 -1
  320. package/dist/index295.js +38 -19
  321. package/dist/index295.js.map +1 -1
  322. package/dist/index296.js +46 -71
  323. package/dist/index296.js.map +1 -1
  324. package/dist/index297.js +20 -17
  325. package/dist/index297.js.map +1 -1
  326. package/dist/index298.js +70 -3
  327. package/dist/index298.js.map +1 -1
  328. package/dist/index299.js +16 -12
  329. package/dist/index299.js.map +1 -1
  330. package/dist/index3.js +2 -2
  331. package/dist/index30.js +3 -242
  332. package/dist/index30.js.map +1 -1
  333. package/dist/index300.js +3 -18
  334. package/dist/index300.js.map +1 -1
  335. package/dist/index301.js +11 -36
  336. package/dist/index301.js.map +1 -1
  337. package/dist/index302.js +12 -238
  338. package/dist/index302.js.map +1 -1
  339. package/dist/index303.js +15 -249
  340. package/dist/index303.js.map +1 -1
  341. package/dist/index304.js +35 -67
  342. package/dist/index304.js.map +1 -1
  343. package/dist/index305.js +233 -77
  344. package/dist/index305.js.map +1 -1
  345. package/dist/index306.js +252 -3
  346. package/dist/index306.js.map +1 -1
  347. package/dist/index307.js +68 -29
  348. package/dist/index307.js.map +1 -1
  349. package/dist/index308.js +99 -16
  350. package/dist/index308.js.map +1 -1
  351. package/dist/index309.js +82 -33
  352. package/dist/index309.js.map +1 -1
  353. package/dist/index31.js +239 -21
  354. package/dist/index31.js.map +1 -1
  355. package/dist/index310.js +3 -17
  356. package/dist/index310.js.map +1 -1
  357. package/dist/index311.js +29 -3
  358. package/dist/index311.js.map +1 -1
  359. package/dist/index312.js +16 -26
  360. package/dist/index312.js.map +1 -1
  361. package/dist/index313.js +34 -28
  362. package/dist/index313.js.map +1 -1
  363. package/dist/index314.js +18 -4
  364. package/dist/index314.js.map +1 -1
  365. package/dist/index315.js +3 -78
  366. package/dist/index315.js.map +1 -1
  367. package/dist/index316.js +23 -269
  368. package/dist/index316.js.map +1 -1
  369. package/dist/index317.js +27 -10
  370. package/dist/index317.js.map +1 -1
  371. package/dist/index318.js +4 -11
  372. package/dist/index318.js.map +1 -1
  373. package/dist/index319.js +77 -24
  374. package/dist/index319.js.map +1 -1
  375. package/dist/index32.js +23 -4
  376. package/dist/index32.js.map +1 -1
  377. package/dist/index320.js +271 -15
  378. package/dist/index320.js.map +1 -1
  379. package/dist/index321.js +11 -125
  380. package/dist/index321.js.map +1 -1
  381. package/dist/index322.js +10 -5
  382. package/dist/index322.js.map +1 -1
  383. package/dist/index323.js +24 -64
  384. package/dist/index323.js.map +1 -1
  385. package/dist/index324.js +17 -14
  386. package/dist/index324.js.map +1 -1
  387. package/dist/index325.js +125 -7
  388. package/dist/index325.js.map +1 -1
  389. package/dist/index326.js +5 -5
  390. package/dist/index326.js.map +1 -1
  391. package/dist/index327.js +65 -3
  392. package/dist/index327.js.map +1 -1
  393. package/dist/index328.js +13 -10
  394. package/dist/index328.js.map +1 -1
  395. package/dist/index329.js +7 -7
  396. package/dist/index329.js.map +1 -1
  397. package/dist/index33.js +3 -6
  398. package/dist/index33.js.map +1 -1
  399. package/dist/index330.js +5 -399
  400. package/dist/index330.js.map +1 -1
  401. package/dist/index331.js +4 -5
  402. package/dist/index331.js.map +1 -1
  403. package/dist/index332.js +10 -52
  404. package/dist/index332.js.map +1 -1
  405. package/dist/index333.js +6 -10
  406. package/dist/index333.js.map +1 -1
  407. package/dist/index334.js +128 -22
  408. package/dist/index334.js.map +1 -1
  409. package/dist/index335.js +399 -11
  410. package/dist/index335.js.map +1 -1
  411. package/dist/index336.js +5 -155
  412. package/dist/index336.js.map +1 -1
  413. package/dist/index337.js +51 -31
  414. package/dist/index337.js.map +1 -1
  415. package/dist/index338.js +11 -11
  416. package/dist/index338.js.map +1 -1
  417. package/dist/index339.js +23 -45
  418. package/dist/index339.js.map +1 -1
  419. package/dist/index34.js +8 -38
  420. package/dist/index34.js.map +1 -1
  421. package/dist/index340.js +11 -9
  422. package/dist/index340.js.map +1 -1
  423. package/dist/index341.js +4 -11
  424. package/dist/index341.js.map +1 -1
  425. package/dist/index342.js +17 -43
  426. package/dist/index342.js.map +1 -1
  427. package/dist/index343.js +12 -97
  428. package/dist/index343.js.map +1 -1
  429. package/dist/index344.js +8 -86
  430. package/dist/index344.js.map +1 -1
  431. package/dist/index345.js +11 -105
  432. package/dist/index345.js.map +1 -1
  433. package/dist/index346.js +7 -51
  434. package/dist/index346.js.map +1 -1
  435. package/dist/index347.js +12 -10
  436. package/dist/index347.js.map +1 -1
  437. package/dist/index348.js +3 -4
  438. package/dist/index348.js.map +1 -1
  439. package/dist/index349.js +3 -37
  440. package/dist/index349.js.map +1 -1
  441. package/dist/index35.js +35 -74
  442. package/dist/index35.js.map +1 -1
  443. package/dist/index350.js +17 -8
  444. package/dist/index350.js.map +1 -1
  445. package/dist/index351.js +5 -135
  446. package/dist/index351.js.map +1 -1
  447. package/dist/index352.js +51 -17
  448. package/dist/index352.js.map +1 -1
  449. package/dist/index353.js +60 -14
  450. package/dist/index353.js.map +1 -1
  451. package/dist/index354.js +66 -3
  452. package/dist/index354.js.map +1 -1
  453. package/dist/index355.js +7 -35
  454. package/dist/index355.js.map +1 -1
  455. package/dist/index356.js +5 -21
  456. package/dist/index356.js.map +1 -1
  457. package/dist/index357.js +11 -9
  458. package/dist/index357.js.map +1 -1
  459. package/dist/index358.js +21 -8
  460. package/dist/index358.js.map +1 -1
  461. package/dist/index359.js +14 -22
  462. package/dist/index359.js.map +1 -1
  463. package/dist/index36.js +74 -20
  464. package/dist/index36.js.map +1 -1
  465. package/dist/index360.js +8 -29
  466. package/dist/index360.js.map +1 -1
  467. package/dist/index361.js +142 -14
  468. package/dist/index361.js.map +1 -1
  469. package/dist/index362.js +79 -4
  470. package/dist/index362.js.map +1 -1
  471. package/dist/index363.js +61 -17
  472. package/dist/index363.js.map +1 -1
  473. package/dist/index364.js +15 -13
  474. package/dist/index364.js.map +1 -1
  475. package/dist/index365.js +4 -8
  476. package/dist/index365.js.map +1 -1
  477. package/dist/index366.js +21 -27
  478. package/dist/index366.js.map +1 -1
  479. package/dist/index367.js +4 -138
  480. package/dist/index367.js.map +1 -1
  481. package/dist/index368.js +5 -12
  482. package/dist/index368.js.map +1 -1
  483. package/dist/index369.js +3 -47
  484. package/dist/index369.js.map +1 -1
  485. package/dist/index37.js +18 -33
  486. package/dist/index37.js.map +1 -1
  487. package/dist/index370.js +11 -3
  488. package/dist/index370.js.map +1 -1
  489. package/dist/index371.js +19 -20
  490. package/dist/index371.js.map +1 -1
  491. package/dist/index372.js +44 -75
  492. package/dist/index372.js.map +1 -1
  493. package/dist/index373.js +17 -11
  494. package/dist/index373.js.map +1 -1
  495. package/dist/index374.js +5 -4
  496. package/dist/index374.js.map +1 -1
  497. package/dist/index375.js +197 -70
  498. package/dist/index375.js.map +1 -1
  499. package/dist/index376.js +70 -197
  500. package/dist/index376.js.map +1 -1
  501. package/dist/index377.js +118 -66
  502. package/dist/index377.js.map +1 -1
  503. package/dist/index378.js +4 -35
  504. package/dist/index378.js.map +1 -1
  505. package/dist/index379.js +5 -7
  506. package/dist/index379.js.map +1 -1
  507. package/dist/index38.js +36 -26
  508. package/dist/index38.js.map +1 -1
  509. package/dist/index380.js +4 -16
  510. package/dist/index380.js.map +1 -1
  511. package/dist/index381.js +15 -123
  512. package/dist/index381.js.map +1 -1
  513. package/dist/index382.js +9 -4
  514. package/dist/index382.js.map +1 -1
  515. package/dist/index383.js +5 -11
  516. package/dist/index383.js.map +1 -1
  517. package/dist/index384.js +4 -5
  518. package/dist/index384.js.map +1 -1
  519. package/dist/index385.js +546 -3
  520. package/dist/index385.js.map +1 -1
  521. package/dist/index386.js +46 -20
  522. package/dist/index386.js.map +1 -1
  523. package/dist/index387.js +18 -45
  524. package/dist/index387.js.map +1 -1
  525. package/dist/index388.js +6 -18
  526. package/dist/index388.js.map +1 -1
  527. package/dist/index389.js +8 -5
  528. package/dist/index389.js.map +1 -1
  529. package/dist/index39.js +26 -21
  530. package/dist/index39.js.map +1 -1
  531. package/dist/index390.js +6 -4
  532. package/dist/index390.js.map +1 -1
  533. package/dist/index391.js +7 -20
  534. package/dist/index391.js.map +1 -1
  535. package/dist/index392.js +11 -4
  536. package/dist/index392.js.map +1 -1
  537. package/dist/index393.js +8 -4
  538. package/dist/index393.js.map +1 -1
  539. package/dist/index394.js +13 -4
  540. package/dist/index394.js.map +1 -1
  541. package/dist/index395.js +8 -15
  542. package/dist/index395.js.map +1 -1
  543. package/dist/index396.js +27 -9
  544. package/dist/index396.js.map +1 -1
  545. package/dist/index397.js +137 -5
  546. package/dist/index397.js.map +1 -1
  547. package/dist/index398.js +12 -4
  548. package/dist/index398.js.map +1 -1
  549. package/dist/index399.js +44 -543
  550. package/dist/index399.js.map +1 -1
  551. package/dist/index4.js +2 -2
  552. package/dist/index40.js +20 -56
  553. package/dist/index40.js.map +1 -1
  554. package/dist/index400.js +4 -47
  555. package/dist/index400.js.map +1 -1
  556. package/dist/index401.js +21 -17
  557. package/dist/index401.js.map +1 -1
  558. package/dist/index402.js +75 -5
  559. package/dist/index402.js.map +1 -1
  560. package/dist/index403.js +12 -8
  561. package/dist/index403.js.map +1 -1
  562. package/dist/index404.js +3 -6
  563. package/dist/index404.js.map +1 -1
  564. package/dist/index405.js +71 -7
  565. package/dist/index405.js.map +1 -1
  566. package/dist/index406.js +35 -11
  567. package/dist/index406.js.map +1 -1
  568. package/dist/index407.js +7 -9
  569. package/dist/index407.js.map +1 -1
  570. package/dist/index408.js +15 -12
  571. package/dist/index408.js.map +1 -1
  572. package/dist/index409.js +3 -3
  573. package/dist/index409.js.map +1 -1
  574. package/dist/index41.js +59 -51
  575. package/dist/index41.js.map +1 -1
  576. package/dist/index410.js +3 -15
  577. package/dist/index410.js.map +1 -1
  578. package/dist/index411.js +4 -491
  579. package/dist/index411.js.map +1 -1
  580. package/dist/index412.js +56 -3
  581. package/dist/index412.js.map +1 -1
  582. package/dist/index413.js +68 -3
  583. package/dist/index413.js.map +1 -1
  584. package/dist/index414.js +31 -5
  585. package/dist/index414.js.map +1 -1
  586. package/dist/index415.js +9 -56
  587. package/dist/index415.js.map +1 -1
  588. package/dist/index416.js +146 -61
  589. package/dist/index416.js.map +1 -1
  590. package/dist/index417.js +103 -26
  591. package/dist/index417.js.map +1 -1
  592. package/dist/index418.js +15 -9
  593. package/dist/index418.js.map +1 -1
  594. package/dist/index419.js +3 -153
  595. package/dist/index419.js.map +1 -1
  596. package/dist/index42.js +50 -21
  597. package/dist/index42.js.map +1 -1
  598. package/dist/index420.js +490 -106
  599. package/dist/index420.js.map +1 -1
  600. package/dist/index421.js +7 -32
  601. package/dist/index421.js.map +1 -1
  602. package/dist/index422.js +2 -8
  603. package/dist/index422.js.map +1 -1
  604. package/dist/index423.js +44 -2
  605. package/dist/index423.js.map +1 -1
  606. package/dist/index424.js +52 -40
  607. package/dist/index424.js.map +1 -1
  608. package/dist/index425.js +7 -55
  609. package/dist/index425.js.map +1 -1
  610. package/dist/index426.js +2 -8
  611. package/dist/index426.js.map +1 -1
  612. package/dist/index427.js +55 -2
  613. package/dist/index427.js.map +1 -1
  614. package/dist/index428.js +53 -52
  615. package/dist/index428.js.map +1 -1
  616. package/dist/index429.js +32 -55
  617. package/dist/index429.js.map +1 -1
  618. package/dist/index43.js +18 -127
  619. package/dist/index43.js.map +1 -1
  620. package/dist/index44.js +122 -39
  621. package/dist/index44.js.map +1 -1
  622. package/dist/index45.js +42 -85
  623. package/dist/index45.js.map +1 -1
  624. package/dist/index46.js +87 -123
  625. package/dist/index46.js.map +1 -1
  626. package/dist/index47.js +126 -5
  627. package/dist/index47.js.map +1 -1
  628. package/dist/index48.js +5 -332
  629. package/dist/index48.js.map +1 -1
  630. package/dist/index49.js +321 -246
  631. package/dist/index49.js.map +1 -1
  632. package/dist/index5.js +2 -2
  633. package/dist/index50.js +254 -23
  634. package/dist/index50.js.map +1 -1
  635. package/dist/index51.js +25 -129
  636. package/dist/index51.js.map +1 -1
  637. package/dist/index52.js +129 -24
  638. package/dist/index52.js.map +1 -1
  639. package/dist/index53.js +22 -19
  640. package/dist/index53.js.map +1 -1
  641. package/dist/index54.js +19 -134
  642. package/dist/index54.js.map +1 -1
  643. package/dist/index55.js +133 -30
  644. package/dist/index55.js.map +1 -1
  645. package/dist/index56.js +30 -24
  646. package/dist/index56.js.map +1 -1
  647. package/dist/index57.js +26 -38
  648. package/dist/index57.js.map +1 -1
  649. package/dist/index58.js +39 -19
  650. package/dist/index58.js.map +1 -1
  651. package/dist/index59.js +18 -133
  652. package/dist/index59.js.map +1 -1
  653. package/dist/index6.js +4 -4
  654. package/dist/index60.js +134 -49
  655. package/dist/index60.js.map +1 -1
  656. package/dist/index61.js +48 -25
  657. package/dist/index61.js.map +1 -1
  658. package/dist/index62.js +28 -57
  659. package/dist/index62.js.map +1 -1
  660. package/dist/index63.js +57 -56
  661. package/dist/index63.js.map +1 -1
  662. package/dist/index64.js +5 -5
  663. package/dist/index64.js.map +1 -1
  664. package/dist/index66.js +10 -22
  665. package/dist/index66.js.map +1 -1
  666. package/dist/index67.js +17 -232
  667. package/dist/index67.js.map +1 -1
  668. package/dist/index68.js +5 -5
  669. package/dist/index68.js.map +1 -1
  670. package/dist/index7.js +11 -11
  671. package/dist/index70.js +22 -10
  672. package/dist/index70.js.map +1 -1
  673. package/dist/index71.js +232 -17
  674. package/dist/index71.js.map +1 -1
  675. package/dist/index76.js +1 -1
  676. package/dist/index77.js +2 -2
  677. package/dist/index78.js +2 -2
  678. package/dist/index8.js +2 -2
  679. package/dist/index9.js +1 -1
  680. package/package.json +1 -1
package/dist/index274.js CHANGED
@@ -1,15 +1,40 @@
1
- import n from "./index168.js";
2
- import * as t from "react";
3
- const e = /* @__PURE__ */ t.createContext(void 0);
4
- process.env.NODE_ENV !== "production" && (e.displayName = "CompositeRootContext");
5
- function r(s = !1) {
6
- const o = t.useContext(e);
7
- if (o === void 0 && !s)
8
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : n(16));
9
- return o;
1
+ import l from "./index278.js";
2
+ import o from "./index269.js";
3
+ import u from "./index165.js";
4
+ import N from "./index168.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
+ };
19
+ }
20
+ return {
21
+ nationalNumber: t,
22
+ carrierCode: a
23
+ };
24
+ }
25
+ function m(e, n, r) {
26
+ return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
27
+ }
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;
35
+ }
10
36
  }
11
37
  export {
12
- e as CompositeRootContext,
13
- r as useCompositeRootContext
38
+ g as default
14
39
  };
15
40
  //# sourceMappingURL=index274.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index274.js","sources":["../../../node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CompositeRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CompositeRootContext.displayName = \"CompositeRootContext\";\nexport function useCompositeRootContext(optional = false) {\n const context = React.useContext(CompositeRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.' : _formatErrorMessage(16));\n }\n return context;\n}"],"names":["CompositeRootContext","React","useCompositeRootContext","optional","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAoC,gBAAAC,EAAM,cAAc,MAAS;AAC1E,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,EAAwBC,IAAW,IAAO;AACxD,QAAMC,IAAUH,EAAM,WAAWD,CAAoB;AACrD,MAAII,MAAY,UAAa,CAACD;AAC5B,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,sGAAsGE,EAAoB,EAAE,CAAC;AAEvL,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index274.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 — Specific country to use instead of the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\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 // so this `if` will only be executed with newer metadata.\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}\n\n/**\r\n * Tells if a given incomplete national number is possible or not.\r\n * @param {string} nationalNumber\r\n * @param {string?} country — Specific country rather than the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\r\n * @returns {boolean}\r\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;AAKI,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;AASA,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/index275.js CHANGED
@@ -1,25 +1,24 @@
1
- import * as r from "react";
2
- function f(l) {
3
- const {
4
- focusableWhenDisabled: e,
5
- disabled: o,
6
- composite: t = !1,
7
- tabIndex: i = 0,
8
- isNativeButton: s
9
- } = l, n = t && e !== !1, b = t && e === !1;
10
- return {
11
- props: r.useMemo(() => {
12
- const a = {
13
- // allow Tabbing away from focusableWhenDisabled elements
14
- onKeyDown(d) {
15
- o && e && d.key !== "Tab" && d.preventDefault();
16
- }
17
- };
18
- return t || (a.tabIndex = i, !s && o && (a.tabIndex = e ? i : -1)), (s && (e || n) || !s && o) && (a["aria-disabled"] = o), s && (!e || b) && (a.disabled = o), a;
19
- }, [t, o, e, n, b, s, i])
20
- };
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 "./index366.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;
21
20
  }
22
21
  export {
23
- f as useFocusableWhenDisabled
22
+ S as default
24
23
  };
25
24
  //# sourceMappingURL=index275.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index275.js","sources":["../../../node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport function useFocusableWhenDisabled(parameters) {\n const {\n focusableWhenDisabled,\n disabled,\n composite = false,\n tabIndex: tabIndexProp = 0,\n isNativeButton\n } = parameters;\n const isFocusableComposite = composite && focusableWhenDisabled !== false;\n const isNonFocusableComposite = composite && focusableWhenDisabled === false;\n\n // we can't explicitly assign `undefined` to any of these props because it\n // would otherwise prevent subsequently merged props from setting them\n const props = React.useMemo(() => {\n const additionalProps = {\n // allow Tabbing away from focusableWhenDisabled elements\n onKeyDown(event) {\n if (disabled && focusableWhenDisabled && event.key !== 'Tab') {\n event.preventDefault();\n }\n }\n };\n if (!composite) {\n additionalProps.tabIndex = tabIndexProp;\n if (!isNativeButton && disabled) {\n additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1;\n }\n }\n if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled) {\n additionalProps['aria-disabled'] = disabled;\n }\n if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) {\n additionalProps.disabled = disabled;\n }\n return additionalProps;\n }, [composite, disabled, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]);\n return {\n props\n };\n}"],"names":["useFocusableWhenDisabled","parameters","focusableWhenDisabled","disabled","composite","tabIndexProp","isNativeButton","isFocusableComposite","isNonFocusableComposite","React","additionalProps","event"],"mappings":";AAGO,SAASA,EAAyBC,GAAY;AACnD,QAAM;AAAA,IACJ,uBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,UAAUC,IAAe;AAAA,IACzB,gBAAAC;AAAA,EACJ,IAAML,GACEM,IAAuBH,KAAaF,MAA0B,IAC9DM,IAA0BJ,KAAaF,MAA0B;AA2BvE,SAAO;AAAA,IACL,OAxBYO,EAAM,QAAQ,MAAM;AAChC,YAAMC,IAAkB;AAAA;AAAA,QAEtB,UAAUC,GAAO;AACf,UAAIR,KAAYD,KAAyBS,EAAM,QAAQ,SACrDA,EAAM,eAAc;AAAA,QAExB;AAAA,MACN;AACI,aAAKP,MACHM,EAAgB,WAAWL,GACvB,CAACC,KAAkBH,MACrBO,EAAgB,WAAWR,IAAwBG,IAAe,OAGlEC,MAAmBJ,KAAyBK,MAAyB,CAACD,KAAkBH,OAC1FO,EAAgB,eAAe,IAAIP,IAEjCG,MAAmB,CAACJ,KAAyBM,OAC/CE,EAAgB,WAAWP,IAEtBO;AAAA,IACT,GAAG,CAACN,GAAWD,GAAUD,GAAuBK,GAAsBC,GAAyBF,GAAgBD,CAAY,CAAC;AAAA,EAG9H;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index275.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/index276.js CHANGED
@@ -1,20 +1,12 @@
1
- import * as e from "react";
2
- function t(i) {
3
- const o = e.useRef(""), n = e.useCallback((r) => {
4
- r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
5
- }, [i]);
6
- return {
7
- onClick: e.useCallback((r) => {
8
- if (r.detail === 0) {
9
- i(r, "keyboard");
10
- return;
11
- }
12
- "pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
13
- }, [i]),
14
- onPointerDown: n
15
- };
1
+ import { VALID_DIGITS as A } from "./index159.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;
16
8
  }
17
9
  export {
18
- t as useEnhancedClickHandler
10
+ D as default
19
11
  };
20
12
  //# sourceMappingURL=index276.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index276.js","sources":["../../../node_modules/@base-ui/utils/useEnhancedClickHandler.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}"],"names":["useEnhancedClickHandler","handler","lastClickInteractionTypeRef","React","handlePointerDown","event"],"mappings":";AAUO,SAASA,EAAwBC,GAAS;AAC/C,QAAMC,IAA8BC,EAAM,OAAO,EAAE,GAC7CC,IAAoBD,EAAM,YAAY,CAAAE,MAAS;AACnD,IAAIA,EAAM,qBAGVH,EAA4B,UAAUG,EAAM,aAC5CJ,EAAQI,GAAOA,EAAM,WAAW;AAAA,EAClC,GAAG,CAACJ,CAAO,CAAC;AAeZ,SAAO;AAAA,IACL,SAfkBE,EAAM,YAAY,CAAAE,MAAS;AAE7C,UAAIA,EAAM,WAAW,GAAG;AACtB,QAAAJ,EAAQI,GAAO,UAAU;AACzB;AAAA,MACF;AACA,MAAI,iBAAiBA,IAEnBJ,EAAQI,GAAOA,EAAM,WAAW,IAEhCJ,EAAQI,GAAOH,EAA4B,OAAO,GAEpDA,EAA4B,UAAU;AAAA,IACxC,GAAG,CAACD,CAAO,CAAC;AAAA,IAGV,eAAeG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index276.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/index277.js CHANGED
@@ -1,15 +1,28 @@
1
- import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index273.js";
3
- import { useStableCallback as f } from "./index264.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 v, { getCountryCallingCode as b } from "./index163.js";
2
+ import u from "./index269.js";
3
+ import N from "./index274.js";
4
+ import h from "./index165.js";
5
+ function C(r, i, e, o, l) {
6
+ if (!(i || e || o))
7
+ return {
8
+ number: r
9
+ };
10
+ var t = i || e ? b(i || e, l) : o;
11
+ if (r.indexOf(t) === 0) {
12
+ var n = new v(l);
13
+ n.selectNumberingPlan(i || e || o);
14
+ var m = r.slice(t.length), c = N(m, void 0, n), g = c.nationalNumber, a = N(r, void 0, n), f = a.nationalNumber;
15
+ if (!u(f, n.nationalNumberPattern()) && u(g, n.nationalNumberPattern()) || h(f, void 0, n) === "TOO_LONG")
16
+ return {
17
+ countryCallingCode: t,
18
+ number: m
19
+ };
20
+ }
21
+ return {
22
+ number: r
23
+ };
11
24
  }
12
25
  export {
13
- u as useValueChanged
26
+ C as default
14
27
  };
15
28
  //# sourceMappingURL=index277.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index277.js","sources":["../../../node_modules/@base-ui/react/internals/useValueChanged.mjs"],"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":"index277.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits (only digits, no `+`).\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadataJson\r\n * @return {object} `{ countryCallingCode: string?, number: string }`, where `countryCallingCode` is the calling code that was extracted from the input `number` string, and `number` is the originally passed `number` without the extracted calling code.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadataJson) {\n // Validate arguments.\n // The `number` is known to be in a non-international form\n // because there's no leading \"+\" character.\n // Therefore, there must be either `country` or `defaultCountry` or `defaultCallingCode`.\n // Otherwise, there'd be no source for the calling code to search for in the `number`.\n if (!(country || defaultCountry || defaultCallingCode)) {\n // There's no source for the calling code to search for in the `number`.\n return {\n number: number\n };\n }\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadataJson) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country || defaultCountry || defaultCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, undefined, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, undefined, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, undefined, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadataJson","countryCallingCode","getCountryCallingCode","metadata","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAc;AAMzJ,MAAI,EAAEH,KAAWC,KAAkBC;AAEjC,WAAO;AAAA,MACL,QAAQH;AAAA,IACd;AAEE,MAAIK,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAY,IAAID;AACtH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,QAAIE,IAAW,IAAIC,EAASJ,CAAY;AACxC,IAAAG,EAAS,oBAAoBN,KAAWC,KAAkBC,CAAkB;AAC5E,QAAIM,IAAwBT,EAAO,MAAMK,EAAmB,MAAM,GAC9DK,IAAwBC,EAAsBF,GAAuB,QAAWF,CAAQ,GAC1FK,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBX,GAAQ,QAAWO,CAAQ,GAC5EO,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBP,EAAS,sBAAqB,CAAE,KAAKQ,EAAgBH,GAA+BL,EAAS,sBAAqB,CAAE,KAAKS,EAAkBF,GAAgB,QAAWP,CAAQ,MAAM;AACvN,aAAO;AAAA,QACL,oBAAoBF;AAAA,QACpB,QAAQI;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQT;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
package/dist/index278.js CHANGED
@@ -1,11 +1,32 @@
1
- import { lowerPlatform as t, lowerUserAgent as n, maxTouchPoints as i } from "./index421.js";
2
- const s = /^i(os$|p)/.test(t) || t === "macintel" && i > 1, o = "android", c = t === o || n.includes(o), r = !s && t.startsWith("mac");
3
- t.startsWith("win");
4
- const e = r || s;
1
+ function F(l, i) {
2
+ if (l && i.numberingPlan.nationalPrefixForParsing()) {
3
+ var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
4
+ if (n) {
5
+ var r, P, v = n.length - 1, e = v > 0 && n[v];
6
+ if (i.nationalPrefixTransformRule() && e)
7
+ r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
8
+ else {
9
+ var o = n[0];
10
+ r = l.slice(o.length), e && (P = n[1]);
11
+ }
12
+ var f;
13
+ if (e) {
14
+ var s = l.indexOf(n[1]), a = l.slice(0, s);
15
+ a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
16
+ } else
17
+ f = n[0];
18
+ return {
19
+ nationalNumber: r,
20
+ nationalPrefix: f,
21
+ carrierCode: P
22
+ };
23
+ }
24
+ }
25
+ return {
26
+ nationalNumber: l
27
+ };
28
+ }
5
29
  export {
6
- c as android,
7
- e as apple,
8
- s as ios,
9
- r as mac
30
+ F as default
10
31
  };
11
32
  //# sourceMappingURL=index278.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index278.js","sources":["../../../node_modules/@base-ui/utils/platform/os.mjs"],"sourcesContent":["import { lowerUserAgent, lowerPlatform, maxTouchPoints } from \"./shared.mjs\";\n\n// iPadOS 13+ reports `MacIntel` for `navigator.platform`; disambiguated via\n// `maxTouchPoints` so iPad is classified as iOS, not macOS.\n// https://github.com/mui/base-ui/issues/1309\n/** iPhone, iPad (including iPadOS 13+ reporting as macOS), iPod. */\nexport const ios = /^i(os$|p)/.test(lowerPlatform) || lowerPlatform === 'macintel' && maxTouchPoints > 1;\n\n/** Android phones, tablets, and embedded Android browsers. */\nconst ANDROID_STRING = 'android';\nexport const android = lowerPlatform === ANDROID_STRING || lowerUserAgent.includes(ANDROID_STRING);\n\n/** macOS desktop. Excludes iPadOS, which reports as `MacIntel`. */\nexport const mac = !ios && lowerPlatform.startsWith('mac');\n\n/** Windows desktop. */\nexport const windows = lowerPlatform.startsWith('win');\n\n/** Linux desktop (including Chrome OS). */\nexport const linux = !android && /^(linux|chrome os)/.test(lowerPlatform);\n\n/** Any Apple OS (`mac || ios`). */\nexport const apple = mac || ios;"],"names":["ios","lowerPlatform","maxTouchPoints","ANDROID_STRING","android","lowerUserAgent","mac","apple"],"mappings":";AAMY,MAACA,IAAM,YAAY,KAAKC,CAAa,KAAKA,MAAkB,cAAcC,IAAiB,GAGjGC,IAAiB,WACVC,IAAUH,MAAkBE,KAAkBE,EAAe,SAASF,CAAc,GAGpFG,IAAM,CAACN,KAAOC,EAAc,WAAW,KAAK;AAGlCA,EAAc,WAAW,KAAK;AAMzC,MAACM,IAAQD,KAAON;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index278.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
package/dist/index279.js CHANGED
@@ -1,148 +1,20 @@
1
- import * as c from "react";
2
- import { Store as l } from "./index305.js";
3
- import { useStore as a } from "./index300.js";
4
- import { useStableCallback as f } from "./index264.js";
5
- import { useIsoLayoutEffect as u } from "./index273.js";
6
- import { NOOP as d } from "./index258.js";
7
- class g extends l {
8
- /**
9
- * Creates a new ReactStore instance.
10
- *
11
- * @param state Initial state of the store.
12
- * @param context Non-reactive context values.
13
- * @param selectors Optional selectors for use with `useState`.
14
- */
15
- constructor(e, t = {}, s) {
16
- super(e), this.context = t, this.selectors = s;
17
- }
18
- /**
19
- * Non-reactive values such as refs, callbacks, etc.
20
- */
21
- /**
22
- * Synchronizes a single external value into the store.
23
- *
24
- * Note that the while the value in `state` is updated immediately, the value returned
25
- * by `useState` is updated before the next render (similarly to React's `useState`).
26
- */
27
- useSyncedValue(e, t) {
28
- c.useDebugValue(e);
29
- const s = this;
30
- u(() => {
31
- s.state[e] !== t && s.set(e, t);
32
- }, [s, e, t]);
33
- }
34
- /**
35
- * Synchronizes a single external value into the store and
36
- * cleans it up (sets to `undefined`) on unmount.
37
- *
38
- * Note that the while the value in `state` is updated immediately, the value returned
39
- * by `useState` is updated before the next render (similarly to React's `useState`).
40
- */
41
- useSyncedValueWithCleanup(e, t) {
42
- const s = this;
43
- u(() => (s.state[e] !== t && s.set(e, t), () => {
44
- s.set(e, void 0);
45
- }), [s, e, t]);
46
- }
47
- /**
48
- * Synchronizes multiple external values into the store.
49
- *
50
- * Note that the while the values in `state` are updated immediately, the values returned
51
- * by `useState` are updated before the next render (similarly to React's `useState`).
52
- */
53
- useSyncedValues(e) {
54
- const t = this;
55
- if (process.env.NODE_ENV !== "production") {
56
- c.useDebugValue(e, (r) => Object.keys(r));
57
- const o = c.useRef(Object.keys(e)).current, n = Object.keys(e);
58
- (o.length !== n.length || o.some((r, i) => r !== n[i])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
59
- }
60
- const s = Object.values(e);
61
- u(() => {
62
- t.update(e);
63
- }, [t, ...s]);
64
- }
65
- /**
66
- * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
67
- * is non-undefined, the store's state at `key` is updated to match `controlled`.
68
- */
69
- useControlledProp(e, t) {
70
- c.useDebugValue(e);
71
- const s = this, o = t !== void 0;
72
- if (u(() => {
73
- o && !Object.is(s.state[e], t) && s.setState({
74
- ...s.state,
75
- [e]: t
76
- });
77
- }, [s, e, t, o]), process.env.NODE_ENV !== "production") {
78
- const n = this.controlledValues ??= /* @__PURE__ */ new Map();
79
- n.has(e) || n.set(e, o);
80
- const r = n.get(e);
81
- r !== void 0 && r !== o && console.error(`A component is changing the ${o ? "" : "un"}controlled state of ${e.toString()} to be ${o ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
1
+ import I from "./index163.js";
2
+ import { VALID_DIGITS as l } from "./index159.js";
3
+ var p = new RegExp("([" + l + "])");
4
+ function c(t, r, f, n) {
5
+ if (r) {
6
+ var a = new I(n);
7
+ a.selectNumberingPlan(r || f);
8
+ var i = new RegExp(a.IDDPrefix());
9
+ if (t.search(i) === 0) {
10
+ t = t.slice(t.match(i)[0].length);
11
+ var e = t.match(p);
12
+ if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
13
+ return t;
82
14
  }
83
15
  }
84
- /** Gets the current value from the store using a selector with the provided key.
85
- *
86
- * @param key Key of the selector to use.
87
- */
88
- select(e, t, s, o) {
89
- const n = this.selectors[e];
90
- return n(this.state, t, s, o);
91
- }
92
- /**
93
- * Returns a value from the store's state using a selector function.
94
- * Used to subscribe to specific parts of the state.
95
- * This methods causes a rerender whenever the selected state changes.
96
- *
97
- * @param key Key of the selector to use.
98
- */
99
- useState(e, t, s, o) {
100
- return c.useDebugValue(e), a(this, this.selectors[e], t, s, o);
101
- }
102
- /**
103
- * Wraps a function with `useStableCallback` to ensure it has a stable reference
104
- * and assigns it to the context.
105
- *
106
- * @param key Key of the event callback. Must be a function in the context.
107
- * @param fn Function to assign.
108
- */
109
- useContextCallback(e, t) {
110
- c.useDebugValue(e);
111
- const s = f(t ?? d);
112
- this.context[e] = s;
113
- }
114
- /**
115
- * Returns a stable setter function for a specific key in the store's state.
116
- * It's commonly used to pass as a ref callback to React elements.
117
- *
118
- * @param key Key of the state to set.
119
- */
120
- useStateSetter(e) {
121
- const t = c.useRef(void 0);
122
- return t.current === void 0 && (t.current = (s) => {
123
- this.set(e, s);
124
- }), t.current;
125
- }
126
- /**
127
- * Observes changes derived from the store's selectors and calls the listener when the selected value changes.
128
- *
129
- * @param key Key of the selector to observe.
130
- * @param listener Listener function called when the selector result changes.
131
- */
132
- observe(e, t) {
133
- let s;
134
- typeof e == "function" ? s = e : s = this.selectors[e];
135
- let o = s(this.state);
136
- return t(o, o, this), this.subscribe((n) => {
137
- const r = s(n);
138
- if (!Object.is(o, r)) {
139
- const i = o;
140
- o = r, t(r, i, this);
141
- }
142
- });
143
- }
144
16
  }
145
17
  export {
146
- g as ReactStore
18
+ c as default
147
19
  };
148
20
  //# sourceMappingURL=index279.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index279.js","sources":["../../../node_modules/@base-ui/utils/store/ReactStore.mjs"],"sourcesContent":["/* False positives - ESLint thinks we're calling a hook from a class component. */\n/* eslint-disable react-hooks/rules-of-hooks */\n'use client';\n\nimport * as React from 'react';\nimport { Store } from \"./Store.mjs\";\nimport { useStore } from \"./useStore.mjs\";\nimport { useStableCallback } from \"../useStableCallback.mjs\";\nimport { useIsoLayoutEffect } from \"../useIsoLayoutEffect.mjs\";\nimport { NOOP } from \"../empty.mjs\";\n\n/**\n * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.\n */\nexport class ReactStore extends Store {\n /**\n * Creates a new ReactStore instance.\n *\n * @param state Initial state of the store.\n * @param context Non-reactive context values.\n * @param selectors Optional selectors for use with `useState`.\n */\n constructor(state, context = {}, selectors) {\n super(state);\n this.context = context;\n this.selectors = selectors;\n }\n\n /**\n * Non-reactive values such as refs, callbacks, etc.\n */\n\n /**\n * Synchronizes a single external value into the store.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValue(key, value) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes a single external value into the store and\n * cleans it up (sets to `undefined`) on unmount.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValueWithCleanup(key, value) {\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n return () => {\n store.set(key, undefined);\n };\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes multiple external values into the store.\n *\n * Note that the while the values in `state` are updated immediately, the values returned\n * by `useState` are updated before the next render (similarly to React's `useState`).\n */\n useSyncedValues(statePart) {\n // eslint-disable-next-line consistent-this\n const store = this;\n if (process.env.NODE_ENV !== 'production') {\n // Check that an object with the same shape is passed on every render\n React.useDebugValue(statePart, p => Object.keys(p));\n const keys = React.useRef(Object.keys(statePart)).current;\n const nextKeys = Object.keys(statePart);\n if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) {\n console.error('ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.');\n }\n }\n const dependencies = Object.values(statePart);\n useIsoLayoutEffect(() => {\n store.update(statePart);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [store, ...dependencies]);\n }\n\n /**\n * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`\n * is non-undefined, the store's state at `key` is updated to match `controlled`.\n */\n useControlledProp(key, controlled) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n const isControlled = controlled !== undefined;\n useIsoLayoutEffect(() => {\n if (isControlled && !Object.is(store.state[key], controlled)) {\n // Set the internal state to match the controlled value.\n store.setState({\n ...store.state,\n [key]: controlled\n });\n }\n }, [store, key, controlled, isControlled]);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n const cache = this.controlledValues ??= new Map();\n if (!cache.has(key)) {\n cache.set(key, isControlled);\n }\n const previouslyControlled = cache.get(key);\n if (previouslyControlled !== undefined && previouslyControlled !== isControlled) {\n console.error(`A component is changing the ${isControlled ? '' : 'un'}controlled state of ${key.toString()} to be ${isControlled ? 'un' : ''}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);\n }\n }\n }\n\n /** Gets the current value from the store using a selector with the provided key.\n *\n * @param key Key of the selector to use.\n */\n\n select(key, a1, a2, a3) {\n const selector = this.selectors[key];\n return selector(this.state, a1, a2, a3);\n }\n\n /**\n * Returns a value from the store's state using a selector function.\n * Used to subscribe to specific parts of the state.\n * This methods causes a rerender whenever the selected state changes.\n *\n * @param key Key of the selector to use.\n */\n\n useState(key, a1, a2, a3) {\n React.useDebugValue(key);\n return useStore(this, this.selectors[key], a1, a2, a3);\n }\n\n /**\n * Wraps a function with `useStableCallback` to ensure it has a stable reference\n * and assigns it to the context.\n *\n * @param key Key of the event callback. Must be a function in the context.\n * @param fn Function to assign.\n */\n useContextCallback(key, fn) {\n React.useDebugValue(key);\n const stableFunction = useStableCallback(fn ?? NOOP);\n this.context[key] = stableFunction;\n }\n\n /**\n * Returns a stable setter function for a specific key in the store's state.\n * It's commonly used to pass as a ref callback to React elements.\n *\n * @param key Key of the state to set.\n */\n useStateSetter(key) {\n const ref = React.useRef(undefined);\n if (ref.current === undefined) {\n ref.current = value => {\n this.set(key, value);\n };\n }\n return ref.current;\n }\n\n /**\n * Observes changes derived from the store's selectors and calls the listener when the selected value changes.\n *\n * @param key Key of the selector to observe.\n * @param listener Listener function called when the selector result changes.\n */\n\n observe(selector, listener) {\n let selectFn;\n if (typeof selector === 'function') {\n selectFn = selector;\n } else {\n selectFn = this.selectors[selector];\n }\n let prevValue = selectFn(this.state);\n listener(prevValue, prevValue, this);\n return this.subscribe(nextState => {\n const nextValue = selectFn(nextState);\n if (!Object.is(prevValue, nextValue)) {\n const oldValue = prevValue;\n prevValue = nextValue;\n listener(nextValue, oldValue, this);\n }\n });\n }\n}"],"names":["ReactStore","Store","state","context","selectors","key","value","React","store","useIsoLayoutEffect","statePart","p","keys","nextKeys","index","dependencies","controlled","isControlled","cache","previouslyControlled","a1","a2","a3","selector","useStore","fn","stableFunction","useStableCallback","NOOP","ref","listener","selectFn","prevValue","nextState","nextValue","oldValue"],"mappings":";;;;;;AAcO,MAAMA,UAAmBC,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpC,YAAYC,GAAOC,IAAU,CAAA,GAAIC,GAAW;AAC1C,UAAMF,CAAK,GACX,KAAK,UAAUC,GACf,KAAK,YAAYC;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,eAAeC,GAAKC,GAAO;AACzB,IAAAC,EAAM,cAAcF,CAAG;AAEvB,UAAMG,IAAQ;AACd,IAAAC,EAAmB,MAAM;AACvB,MAAID,EAAM,MAAMH,CAAG,MAAMC,KACvBE,EAAM,IAAIH,GAAKC,CAAK;AAAA,IAExB,GAAG,CAACE,GAAOH,GAAKC,CAAK,CAAC;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,0BAA0BD,GAAKC,GAAO;AAEpC,UAAME,IAAQ;AACd,IAAAC,EAAmB,OACbD,EAAM,MAAMH,CAAG,MAAMC,KACvBE,EAAM,IAAIH,GAAKC,CAAK,GAEf,MAAM;AACX,MAAAE,EAAM,IAAIH,GAAK,MAAS;AAAA,IAC1B,IACC,CAACG,GAAOH,GAAKC,CAAK,CAAC;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,gBAAgBI,GAAW;AAEzB,UAAMF,IAAQ;AACd,QAAI,QAAQ,IAAI,aAAa,cAAc;AAEzC,MAAAD,EAAM,cAAcG,GAAW,CAAAC,MAAK,OAAO,KAAKA,CAAC,CAAC;AAClD,YAAMC,IAAOL,EAAM,OAAO,OAAO,KAAKG,CAAS,CAAC,EAAE,SAC5CG,IAAW,OAAO,KAAKH,CAAS;AACtC,OAAIE,EAAK,WAAWC,EAAS,UAAUD,EAAK,KAAK,CAACP,GAAKS,MAAUT,MAAQQ,EAASC,CAAK,CAAC,MACtF,QAAQ,MAAM,+FAA+F;AAAA,IAEjH;AACA,UAAMC,IAAe,OAAO,OAAOL,CAAS;AAC5C,IAAAD,EAAmB,MAAM;AACvB,MAAAD,EAAM,OAAOE,CAAS;AAAA,IAExB,GAAG,CAACF,GAAO,GAAGO,CAAY,CAAC;AAAA,EAC7B;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,kBAAkBV,GAAKW,GAAY;AACjC,IAAAT,EAAM,cAAcF,CAAG;AAEvB,UAAMG,IAAQ,MACRS,IAAeD,MAAe;AAUpC,QATAP,EAAmB,MAAM;AACvB,MAAIQ,KAAgB,CAAC,OAAO,GAAGT,EAAM,MAAMH,CAAG,GAAGW,CAAU,KAEzDR,EAAM,SAAS;AAAA,QACb,GAAGA,EAAM;AAAA,QACT,CAACH,CAAG,GAAGW;AAAA,MACjB,CAAS;AAAA,IAEL,GAAG,CAACR,GAAOH,GAAKW,GAAYC,CAAY,CAAC,GACrC,QAAQ,IAAI,aAAa,cAAc;AAEzC,YAAMC,IAAQ,KAAK,qBAAqB,oBAAI,IAAG;AAC/C,MAAKA,EAAM,IAAIb,CAAG,KAChBa,EAAM,IAAIb,GAAKY,CAAY;AAE7B,YAAME,IAAuBD,EAAM,IAAIb,CAAG;AAC1C,MAAIc,MAAyB,UAAaA,MAAyBF,KACjE,QAAQ,MAAM,+BAA+BA,IAAe,KAAK,IAAI,uBAAuBZ,EAAI,SAAQ,CAAE,UAAUY,IAAe,OAAO,EAAE,yFAAyF;AAAA,IAEzO;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAOZ,GAAKe,GAAIC,GAAIC,GAAI;AACtB,UAAMC,IAAW,KAAK,UAAUlB,CAAG;AACnC,WAAOkB,EAAS,KAAK,OAAOH,GAAIC,GAAIC,CAAE;AAAA,EACxC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,SAASjB,GAAKe,GAAIC,GAAIC,GAAI;AACxB,WAAAf,EAAM,cAAcF,CAAG,GAChBmB,EAAS,MAAM,KAAK,UAAUnB,CAAG,GAAGe,GAAIC,GAAIC,CAAE;AAAA,EACvD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,mBAAmBjB,GAAKoB,GAAI;AAC1B,IAAAlB,EAAM,cAAcF,CAAG;AACvB,UAAMqB,IAAiBC,EAAkBF,KAAMG,CAAI;AACnD,SAAK,QAAQvB,CAAG,IAAIqB;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAerB,GAAK;AAClB,UAAMwB,IAAMtB,EAAM,OAAO,MAAS;AAClC,WAAIsB,EAAI,YAAY,WAClBA,EAAI,UAAU,CAAAvB,MAAS;AACrB,WAAK,IAAID,GAAKC,CAAK;AAAA,IACrB,IAEKuB,EAAI;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,QAAQN,GAAUO,GAAU;AAC1B,QAAIC;AACJ,IAAI,OAAOR,KAAa,aACtBQ,IAAWR,IAEXQ,IAAW,KAAK,UAAUR,CAAQ;AAEpC,QAAIS,IAAYD,EAAS,KAAK,KAAK;AACnC,WAAAD,EAASE,GAAWA,GAAW,IAAI,GAC5B,KAAK,UAAU,CAAAC,MAAa;AACjC,YAAMC,IAAYH,EAASE,CAAS;AACpC,UAAI,CAAC,OAAO,GAAGD,GAAWE,CAAS,GAAG;AACpC,cAAMC,IAAWH;AACjB,QAAAA,IAAYE,GACZJ,EAASI,GAAWC,GAAU,IAAI;AAAA,MACpC;AAAA,IACF,CAAC;AAAA,EACH;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index279.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadataJson) {\n if (!country) {\n return;\n }\n\n // Get the IDD prefix pattern.\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country || callingCode);\n var IDDPrefixPattern = new RegExp(metadata.IDDPrefix());\n\n // Check if the number is IDD-prefixed.\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadataJson","metadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAc;AACjF,MAAKF,GAKL;AAAA,QAAIG,IAAW,IAAIC,EAASF,CAAY;AACxC,IAAAC,EAAS,oBAAoBH,KAAWC,CAAW;AACnD,QAAII,IAAmB,IAAI,OAAOF,EAAS,UAAS,CAAE;AAGtD,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAKxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAM9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}
package/dist/index28.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __require as r } from "./index64.js";
2
2
  var i = r();
3
3
  export {
4
- i as j
4
+ i as c
5
5
  };
6
6
  //# sourceMappingURL=index28.js.map