@rpcbase/ui 0.243.0 → 0.245.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 (518) hide show
  1. package/dist/index10.js +2 -2
  2. package/dist/index106.js +1 -1
  3. package/dist/index11.js +2 -2
  4. package/dist/index12.js +3 -3
  5. package/dist/index13.js +2 -2
  6. package/dist/index14.js +2 -2
  7. package/dist/index149.js +14 -5
  8. package/dist/index149.js.map +1 -1
  9. package/dist/index15.js +2 -2
  10. package/dist/index150.js +63 -63
  11. package/dist/index150.js.map +1 -1
  12. package/dist/index151.js +38 -2
  13. package/dist/index151.js.map +1 -1
  14. package/dist/index152.js +13 -385
  15. package/dist/index152.js.map +1 -1
  16. package/dist/index153.js +23 -261
  17. package/dist/index153.js.map +1 -1
  18. package/dist/index154.js +109 -58
  19. package/dist/index154.js.map +1 -1
  20. package/dist/index155.js +13 -47
  21. package/dist/index155.js.map +1 -1
  22. package/dist/index156.js +4 -169
  23. package/dist/index156.js.map +1 -1
  24. package/dist/index157.js +4 -110
  25. package/dist/index157.js.map +1 -1
  26. package/dist/index158.js +5 -25
  27. package/dist/index158.js.map +1 -1
  28. package/dist/index159.js +12 -8
  29. package/dist/index159.js.map +1 -1
  30. package/dist/index16.js +8 -8
  31. package/dist/index160.js +19 -4
  32. package/dist/index160.js.map +1 -1
  33. package/dist/index161.js +11 -6
  34. package/dist/index161.js.map +1 -1
  35. package/dist/index162.js +176 -4
  36. package/dist/index162.js.map +1 -1
  37. package/dist/index163.js +268 -476
  38. package/dist/index163.js.map +1 -1
  39. package/dist/index164.js +4 -189
  40. package/dist/index164.js.map +1 -1
  41. package/dist/index165.js +28 -14
  42. package/dist/index165.js.map +1 -1
  43. package/dist/index166.js +124 -105
  44. package/dist/index166.js.map +1 -1
  45. package/dist/index167.js +63 -262
  46. package/dist/index167.js.map +1 -1
  47. package/dist/index168.js +8 -6
  48. package/dist/index168.js.map +1 -1
  49. package/dist/index169.js +15 -40
  50. package/dist/index169.js.map +1 -1
  51. package/dist/index17.js +1 -1
  52. package/dist/index170.js +30 -4
  53. package/dist/index170.js.map +1 -1
  54. package/dist/index171.js +69 -14
  55. package/dist/index171.js.map +1 -1
  56. package/dist/index172.js +5 -68
  57. package/dist/index172.js.map +1 -1
  58. package/dist/index173.js +66 -35
  59. package/dist/index173.js.map +1 -1
  60. package/dist/index174.js +2 -14
  61. package/dist/index174.js.map +1 -1
  62. package/dist/index175.js +384 -22
  63. package/dist/index175.js.map +1 -1
  64. package/dist/index176.js +258 -108
  65. package/dist/index176.js.map +1 -1
  66. package/dist/index177.js +61 -13
  67. package/dist/index177.js.map +1 -1
  68. package/dist/index178.js +46 -4
  69. package/dist/index178.js.map +1 -1
  70. package/dist/index179.js +170 -4
  71. package/dist/index179.js.map +1 -1
  72. package/dist/index18.js +7 -7
  73. package/dist/index180.js +110 -5
  74. package/dist/index180.js.map +1 -1
  75. package/dist/index181.js +24 -11
  76. package/dist/index181.js.map +1 -1
  77. package/dist/index182.js +8 -20
  78. package/dist/index182.js.map +1 -1
  79. package/dist/index183.js +5 -11
  80. package/dist/index183.js.map +1 -1
  81. package/dist/index184.js +5 -176
  82. package/dist/index184.js.map +1 -1
  83. package/dist/index185.js +4 -279
  84. package/dist/index185.js.map +1 -1
  85. package/dist/index186.js +487 -4
  86. package/dist/index186.js.map +1 -1
  87. package/dist/index187.js +189 -27
  88. package/dist/index187.js.map +1 -1
  89. package/dist/index188.js +13 -126
  90. package/dist/index188.js.map +1 -1
  91. package/dist/index189.js +107 -63
  92. package/dist/index189.js.map +1 -1
  93. package/dist/index19.js +16 -16
  94. package/dist/index190.js +262 -8
  95. package/dist/index190.js.map +1 -1
  96. package/dist/index191.js +7 -16
  97. package/dist/index191.js.map +1 -1
  98. package/dist/index192.js +39 -29
  99. package/dist/index192.js.map +1 -1
  100. package/dist/index193.js +4 -69
  101. package/dist/index193.js.map +1 -1
  102. package/dist/index21.js +1 -1
  103. package/dist/index22.js +2 -2
  104. package/dist/index23.js +1 -1
  105. package/dist/index24.js +1 -1
  106. package/dist/index246.js +1 -1
  107. package/dist/index25.js +1 -1
  108. package/dist/index252.js +1 -1
  109. package/dist/index254.js +58 -146
  110. package/dist/index254.js.map +1 -1
  111. package/dist/index255.js +8 -32
  112. package/dist/index255.js.map +1 -1
  113. package/dist/index256.js +11 -11
  114. package/dist/index256.js.map +1 -1
  115. package/dist/index257.js +7 -48
  116. package/dist/index257.js.map +1 -1
  117. package/dist/index258.js +5 -9
  118. package/dist/index258.js.map +1 -1
  119. package/dist/index259.js +13 -11
  120. package/dist/index259.js.map +1 -1
  121. package/dist/index260.js +3 -43
  122. package/dist/index260.js.map +1 -1
  123. package/dist/index261.js +3 -97
  124. package/dist/index261.js.map +1 -1
  125. package/dist/index262.js +87 -74
  126. package/dist/index262.js.map +1 -1
  127. package/dist/index263.js +16 -104
  128. package/dist/index263.js.map +1 -1
  129. package/dist/index264.js +27 -50
  130. package/dist/index264.js.map +1 -1
  131. package/dist/index265.js +51 -11
  132. package/dist/index265.js.map +1 -1
  133. package/dist/index266.js +5 -4
  134. package/dist/index266.js.map +1 -1
  135. package/dist/index267.js +5 -37
  136. package/dist/index267.js.map +1 -1
  137. package/dist/index268.js +61 -8
  138. package/dist/index268.js.map +1 -1
  139. package/dist/index269.js +61 -130
  140. package/dist/index269.js.map +1 -1
  141. package/dist/index270.js +133 -17
  142. package/dist/index270.js.map +1 -1
  143. package/dist/index271.js +7 -14
  144. package/dist/index271.js.map +1 -1
  145. package/dist/index272.js +5 -4
  146. package/dist/index272.js.map +1 -1
  147. package/dist/index273.js +4 -37
  148. package/dist/index273.js.map +1 -1
  149. package/dist/index274.js +11 -20
  150. package/dist/index274.js.map +1 -1
  151. package/dist/index275.js +21 -8
  152. package/dist/index275.js.map +1 -1
  153. package/dist/index276.js +16 -9
  154. package/dist/index276.js.map +1 -1
  155. package/dist/index277.js +11 -24
  156. package/dist/index277.js.map +1 -1
  157. package/dist/index278.js +8 -29
  158. package/dist/index278.js.map +1 -1
  159. package/dist/index279.js +142 -14
  160. package/dist/index279.js.map +1 -1
  161. package/dist/index28.js +1 -1
  162. package/dist/index280.js +79 -19
  163. package/dist/index280.js.map +1 -1
  164. package/dist/index281.js +60 -65
  165. package/dist/index281.js.map +1 -1
  166. package/dist/index282.js +15 -7
  167. package/dist/index282.js.map +1 -1
  168. package/dist/index283.js +20 -6
  169. package/dist/index283.js.map +1 -1
  170. package/dist/index284.js +6 -11
  171. package/dist/index284.js.map +1 -1
  172. package/dist/index285.js +11 -3
  173. package/dist/index285.js.map +1 -1
  174. package/dist/index286.js +3 -50
  175. package/dist/index286.js.map +1 -1
  176. package/dist/index287.js +51 -4
  177. package/dist/index287.js.map +1 -1
  178. package/dist/index288.js +12 -25
  179. package/dist/index288.js.map +1 -1
  180. package/dist/index289.js +19 -14
  181. package/dist/index289.js.map +1 -1
  182. package/dist/index29.js +3 -56
  183. package/dist/index29.js.map +1 -1
  184. package/dist/index290.js +53 -5
  185. package/dist/index290.js.map +1 -1
  186. package/dist/index291.js +20 -21
  187. package/dist/index291.js.map +1 -1
  188. package/dist/index292.js +41 -53
  189. package/dist/index292.js.map +1 -1
  190. package/dist/index293.js +38 -19
  191. package/dist/index293.js.map +1 -1
  192. package/dist/index294.js +46 -42
  193. package/dist/index294.js.map +1 -1
  194. package/dist/index295.js +19 -38
  195. package/dist/index295.js.map +1 -1
  196. package/dist/index296.js +71 -46
  197. package/dist/index296.js.map +1 -1
  198. package/dist/index297.js +17 -20
  199. package/dist/index297.js.map +1 -1
  200. package/dist/index298.js +3 -70
  201. package/dist/index298.js.map +1 -1
  202. package/dist/index299.js +12 -16
  203. package/dist/index299.js.map +1 -1
  204. package/dist/index3.js +2 -2
  205. package/dist/index30.js +242 -3
  206. package/dist/index30.js.map +1 -1
  207. package/dist/index300.js +18 -3
  208. package/dist/index300.js.map +1 -1
  209. package/dist/index301.js +36 -11
  210. package/dist/index301.js.map +1 -1
  211. package/dist/index302.js +238 -12
  212. package/dist/index302.js.map +1 -1
  213. package/dist/index303.js +249 -15
  214. package/dist/index303.js.map +1 -1
  215. package/dist/index304.js +67 -35
  216. package/dist/index304.js.map +1 -1
  217. package/dist/index305.js +77 -233
  218. package/dist/index305.js.map +1 -1
  219. package/dist/index306.js +3 -252
  220. package/dist/index306.js.map +1 -1
  221. package/dist/index307.js +29 -68
  222. package/dist/index307.js.map +1 -1
  223. package/dist/index308.js +16 -99
  224. package/dist/index308.js.map +1 -1
  225. package/dist/index309.js +33 -82
  226. package/dist/index309.js.map +1 -1
  227. package/dist/index31.js +21 -239
  228. package/dist/index31.js.map +1 -1
  229. package/dist/index310.js +17 -3
  230. package/dist/index310.js.map +1 -1
  231. package/dist/index311.js +3 -29
  232. package/dist/index311.js.map +1 -1
  233. package/dist/index312.js +26 -16
  234. package/dist/index312.js.map +1 -1
  235. package/dist/index313.js +28 -34
  236. package/dist/index313.js.map +1 -1
  237. package/dist/index314.js +4 -18
  238. package/dist/index314.js.map +1 -1
  239. package/dist/index315.js +78 -3
  240. package/dist/index315.js.map +1 -1
  241. package/dist/index316.js +269 -23
  242. package/dist/index316.js.map +1 -1
  243. package/dist/index317.js +10 -27
  244. package/dist/index317.js.map +1 -1
  245. package/dist/index318.js +11 -4
  246. package/dist/index318.js.map +1 -1
  247. package/dist/index319.js +24 -77
  248. package/dist/index319.js.map +1 -1
  249. package/dist/index32.js +4 -23
  250. package/dist/index32.js.map +1 -1
  251. package/dist/index320.js +15 -271
  252. package/dist/index320.js.map +1 -1
  253. package/dist/index321.js +125 -11
  254. package/dist/index321.js.map +1 -1
  255. package/dist/index322.js +5 -10
  256. package/dist/index322.js.map +1 -1
  257. package/dist/index323.js +64 -24
  258. package/dist/index323.js.map +1 -1
  259. package/dist/index324.js +14 -17
  260. package/dist/index324.js.map +1 -1
  261. package/dist/index325.js +7 -125
  262. package/dist/index325.js.map +1 -1
  263. package/dist/index326.js +5 -5
  264. package/dist/index326.js.map +1 -1
  265. package/dist/index327.js +3 -65
  266. package/dist/index327.js.map +1 -1
  267. package/dist/index328.js +10 -13
  268. package/dist/index328.js.map +1 -1
  269. package/dist/index329.js +7 -7
  270. package/dist/index329.js.map +1 -1
  271. package/dist/index33.js +6 -3
  272. package/dist/index33.js.map +1 -1
  273. package/dist/index330.js +399 -5
  274. package/dist/index330.js.map +1 -1
  275. package/dist/index331.js +5 -4
  276. package/dist/index331.js.map +1 -1
  277. package/dist/index332.js +52 -10
  278. package/dist/index332.js.map +1 -1
  279. package/dist/index333.js +10 -6
  280. package/dist/index333.js.map +1 -1
  281. package/dist/index334.js +22 -128
  282. package/dist/index334.js.map +1 -1
  283. package/dist/index335.js +11 -399
  284. package/dist/index335.js.map +1 -1
  285. package/dist/index336.js +155 -5
  286. package/dist/index336.js.map +1 -1
  287. package/dist/index337.js +31 -51
  288. package/dist/index337.js.map +1 -1
  289. package/dist/index338.js +11 -11
  290. package/dist/index338.js.map +1 -1
  291. package/dist/index339.js +45 -23
  292. package/dist/index339.js.map +1 -1
  293. package/dist/index34.js +38 -8
  294. package/dist/index34.js.map +1 -1
  295. package/dist/index340.js +9 -11
  296. package/dist/index340.js.map +1 -1
  297. package/dist/index341.js +11 -8
  298. package/dist/index341.js.map +1 -1
  299. package/dist/index342.js +43 -11
  300. package/dist/index342.js.map +1 -1
  301. package/dist/index343.js +96 -7
  302. package/dist/index343.js.map +1 -1
  303. package/dist/index344.js +84 -11
  304. package/dist/index344.js.map +1 -1
  305. package/dist/index345.js +105 -3
  306. package/dist/index345.js.map +1 -1
  307. package/dist/index346.js +52 -3
  308. package/dist/index346.js.map +1 -1
  309. package/dist/index347.js +10 -16
  310. package/dist/index347.js.map +1 -1
  311. package/dist/index348.js +4 -61
  312. package/dist/index348.js.map +1 -1
  313. package/dist/index349.js +34 -63
  314. package/dist/index349.js.map +1 -1
  315. package/dist/index35.js +74 -35
  316. package/dist/index35.js.map +1 -1
  317. package/dist/index350.js +8 -51
  318. package/dist/index350.js.map +1 -1
  319. package/dist/index351.js +135 -5
  320. package/dist/index351.js.map +1 -1
  321. package/dist/index352.js +17 -8
  322. package/dist/index352.js.map +1 -1
  323. package/dist/index353.js +16 -5
  324. package/dist/index353.js.map +1 -1
  325. package/dist/index354.js +3 -11
  326. package/dist/index354.js.map +1 -1
  327. package/dist/index355.js +34 -19
  328. package/dist/index355.js.map +1 -1
  329. package/dist/index356.js +20 -16
  330. package/dist/index356.js.map +1 -1
  331. package/dist/index357.js +10 -8
  332. package/dist/index357.js.map +1 -1
  333. package/dist/index358.js +8 -144
  334. package/dist/index358.js.map +1 -1
  335. package/dist/index359.js +22 -77
  336. package/dist/index359.js.map +1 -1
  337. package/dist/index36.js +20 -74
  338. package/dist/index36.js.map +1 -1
  339. package/dist/index360.js +28 -61
  340. package/dist/index360.js.map +1 -1
  341. package/dist/index361.js +17 -15
  342. package/dist/index361.js.map +1 -1
  343. package/dist/index363.js +5 -5
  344. package/dist/index365.js +8 -4
  345. package/dist/index365.js.map +1 -1
  346. package/dist/index366.js +27 -21
  347. package/dist/index366.js.map +1 -1
  348. package/dist/index367.js +138 -4
  349. package/dist/index367.js.map +1 -1
  350. package/dist/index368.js +11 -10
  351. package/dist/index368.js.map +1 -1
  352. package/dist/index369.js +46 -5
  353. package/dist/index369.js.map +1 -1
  354. package/dist/index37.js +33 -18
  355. package/dist/index37.js.map +1 -1
  356. package/dist/index370.js +4 -3
  357. package/dist/index370.js.map +1 -1
  358. package/dist/index371.js +20 -19
  359. package/dist/index371.js.map +1 -1
  360. package/dist/index372.js +75 -44
  361. package/dist/index372.js.map +1 -1
  362. package/dist/index373.js +11 -17
  363. package/dist/index373.js.map +1 -1
  364. package/dist/index374.js +4 -5
  365. package/dist/index374.js.map +1 -1
  366. package/dist/index375.js +70 -197
  367. package/dist/index375.js.map +1 -1
  368. package/dist/index376.js +197 -70
  369. package/dist/index376.js.map +1 -1
  370. package/dist/index377.js +66 -118
  371. package/dist/index377.js.map +1 -1
  372. package/dist/index378.js +35 -8
  373. package/dist/index378.js.map +1 -1
  374. package/dist/index379.js +7 -27
  375. package/dist/index379.js.map +1 -1
  376. package/dist/index38.js +26 -36
  377. package/dist/index38.js.map +1 -1
  378. package/dist/index380.js +14 -136
  379. package/dist/index380.js.map +1 -1
  380. package/dist/index381.js +121 -10
  381. package/dist/index381.js.map +1 -1
  382. package/dist/index382.js +4 -47
  383. package/dist/index382.js.map +1 -1
  384. package/dist/index383.js +11 -3
  385. package/dist/index383.js.map +1 -1
  386. package/dist/index384.js +5 -21
  387. package/dist/index384.js.map +1 -1
  388. package/dist/index385.js +3 -76
  389. package/dist/index385.js.map +1 -1
  390. package/dist/index386.js +21 -12
  391. package/dist/index386.js.map +1 -1
  392. package/dist/index387.js +45 -4
  393. package/dist/index387.js.map +1 -1
  394. package/dist/index388.js +16 -70
  395. package/dist/index388.js.map +1 -1
  396. package/dist/index389.js +5 -36
  397. package/dist/index389.js.map +1 -1
  398. package/dist/index39.js +21 -26
  399. package/dist/index39.js.map +1 -1
  400. package/dist/index390.js +5 -7
  401. package/dist/index390.js.map +1 -1
  402. package/dist/index391.js +20 -15
  403. package/dist/index391.js.map +1 -1
  404. package/dist/index399.js +2 -2
  405. package/dist/index4.js +2 -2
  406. package/dist/index40.js +56 -20
  407. package/dist/index40.js.map +1 -1
  408. package/dist/index409.js +3 -3
  409. package/dist/index409.js.map +1 -1
  410. package/dist/index41.js +51 -59
  411. package/dist/index41.js.map +1 -1
  412. package/dist/index410.js +15 -3
  413. package/dist/index410.js.map +1 -1
  414. package/dist/index411.js +488 -11
  415. package/dist/index411.js.map +1 -1
  416. package/dist/index412.js +3 -3
  417. package/dist/index412.js.map +1 -1
  418. package/dist/index413.js +3 -492
  419. package/dist/index413.js.map +1 -1
  420. package/dist/index414.js +5 -68
  421. package/dist/index414.js.map +1 -1
  422. package/dist/index415.js +55 -30
  423. package/dist/index415.js.map +1 -1
  424. package/dist/index416.js +68 -9
  425. package/dist/index416.js.map +1 -1
  426. package/dist/index417.js +26 -148
  427. package/dist/index417.js.map +1 -1
  428. package/dist/index418.js +9 -108
  429. package/dist/index418.js.map +1 -1
  430. package/dist/index419.js +153 -5
  431. package/dist/index419.js.map +1 -1
  432. package/dist/index42.js +21 -50
  433. package/dist/index42.js.map +1 -1
  434. package/dist/index420.js +106 -54
  435. package/dist/index420.js.map +1 -1
  436. package/dist/index421.js +32 -7
  437. package/dist/index421.js.map +1 -1
  438. package/dist/index422.js +8 -2
  439. package/dist/index422.js.map +1 -1
  440. package/dist/index423.js +2 -44
  441. package/dist/index423.js.map +1 -1
  442. package/dist/index424.js +40 -52
  443. package/dist/index424.js.map +1 -1
  444. package/dist/index425.js +55 -7
  445. package/dist/index425.js.map +1 -1
  446. package/dist/index426.js +8 -2
  447. package/dist/index426.js.map +1 -1
  448. package/dist/index427.js +2 -55
  449. package/dist/index427.js.map +1 -1
  450. package/dist/index428.js +52 -53
  451. package/dist/index428.js.map +1 -1
  452. package/dist/index429.js +55 -32
  453. package/dist/index429.js.map +1 -1
  454. package/dist/index43.js +127 -18
  455. package/dist/index43.js.map +1 -1
  456. package/dist/index44.js +39 -122
  457. package/dist/index44.js.map +1 -1
  458. package/dist/index45.js +85 -42
  459. package/dist/index45.js.map +1 -1
  460. package/dist/index46.js +123 -87
  461. package/dist/index46.js.map +1 -1
  462. package/dist/index47.js +5 -126
  463. package/dist/index47.js.map +1 -1
  464. package/dist/index48.js +332 -5
  465. package/dist/index48.js.map +1 -1
  466. package/dist/index49.js +246 -321
  467. package/dist/index49.js.map +1 -1
  468. package/dist/index5.js +2 -2
  469. package/dist/index50.js +23 -254
  470. package/dist/index50.js.map +1 -1
  471. package/dist/index51.js +129 -25
  472. package/dist/index51.js.map +1 -1
  473. package/dist/index52.js +24 -129
  474. package/dist/index52.js.map +1 -1
  475. package/dist/index53.js +19 -22
  476. package/dist/index53.js.map +1 -1
  477. package/dist/index54.js +134 -19
  478. package/dist/index54.js.map +1 -1
  479. package/dist/index55.js +30 -133
  480. package/dist/index55.js.map +1 -1
  481. package/dist/index56.js +24 -30
  482. package/dist/index56.js.map +1 -1
  483. package/dist/index57.js +38 -26
  484. package/dist/index57.js.map +1 -1
  485. package/dist/index58.js +19 -39
  486. package/dist/index58.js.map +1 -1
  487. package/dist/index59.js +133 -18
  488. package/dist/index59.js.map +1 -1
  489. package/dist/index6.js +4 -4
  490. package/dist/index60.js +49 -134
  491. package/dist/index60.js.map +1 -1
  492. package/dist/index61.js +25 -48
  493. package/dist/index61.js.map +1 -1
  494. package/dist/index62.js +57 -28
  495. package/dist/index62.js.map +1 -1
  496. package/dist/index63.js +56 -57
  497. package/dist/index63.js.map +1 -1
  498. package/dist/index64.js +5 -5
  499. package/dist/index64.js.map +1 -1
  500. package/dist/index66.js +22 -10
  501. package/dist/index66.js.map +1 -1
  502. package/dist/index67.js +232 -17
  503. package/dist/index67.js.map +1 -1
  504. package/dist/index68.js +5 -5
  505. package/dist/index68.js.map +1 -1
  506. package/dist/index7.js +11 -11
  507. package/dist/index70.js +10 -22
  508. package/dist/index70.js.map +1 -1
  509. package/dist/index71.js +17 -232
  510. package/dist/index71.js.map +1 -1
  511. package/dist/index76.js +1 -1
  512. package/dist/index77.js +2 -2
  513. package/dist/index77.js.map +1 -1
  514. package/dist/index78.js +2 -2
  515. package/dist/index78.js.map +1 -1
  516. package/dist/index8.js +2 -2
  517. package/dist/index9.js +1 -1
  518. package/package.json +1 -1
package/dist/index175.js CHANGED
@@ -1,27 +1,389 @@
1
- import { EMPTY_OBJECT as l } from "./index290.js";
2
- function u(a, n, o, s) {
3
- let e = !1, t = !1;
4
- const r = l;
5
- return {
6
- reason: a,
7
- event: n ?? new Event("base-ui"),
8
- cancel() {
9
- e = !0;
10
- },
11
- allowPropagation() {
12
- t = !0;
13
- },
14
- get isCanceled() {
15
- return e;
16
- },
17
- get isPropagationAllowed() {
1
+ import m from "./index186.js";
2
+ import h from "./index187.js";
3
+ import c from "./index188.js";
4
+ import y from "./index189.js";
5
+ import C from "./index176.js";
6
+ import b from "./index190.js";
7
+ import v from "./index191.js";
8
+ import N from "./index192.js";
9
+ import p from "./index193.js";
10
+ import { DIGIT_PLACEHOLDER as S } from "./index177.js";
11
+ function f(i) {
12
+ "@babel/helpers - typeof";
13
+ return f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
14
+ return typeof e;
15
+ } : function(e) {
16
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
17
+ }, f(i);
18
+ }
19
+ function P(i, e) {
20
+ return k(i) || I(i, e) || _(i, e) || T();
21
+ }
22
+ function T() {
23
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
25
+ }
26
+ function _(i, e) {
27
+ if (i) {
28
+ if (typeof i == "string") return d(i, e);
29
+ var t = {}.toString.call(i).slice(8, -1);
30
+ return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? d(i, e) : void 0;
31
+ }
32
+ }
33
+ function d(i, e) {
34
+ (e == null || e > i.length) && (e = i.length);
35
+ for (var t = 0, n = Array(e); t < e; t++) n[t] = i[t];
36
+ return n;
37
+ }
38
+ function I(i, e) {
39
+ var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
40
+ if (t != null) {
41
+ var n, r, o, a, u = [], s = !0, l = !1;
42
+ try {
43
+ if (o = (t = t.call(i)).next, e !== 0) for (; !(s = (n = o.call(t)).done) && (u.push(n.value), u.length !== e); s = !0) ;
44
+ } catch (g) {
45
+ l = !0, r = g;
46
+ } finally {
47
+ try {
48
+ if (!s && t.return != null && (a = t.return(), Object(a) !== a)) return;
49
+ } finally {
50
+ if (l) throw r;
51
+ }
52
+ }
53
+ return u;
54
+ }
55
+ }
56
+ function k(i) {
57
+ if (Array.isArray(i)) return i;
58
+ }
59
+ function A(i, e) {
60
+ if (!(i instanceof e)) throw new TypeError("Cannot call a class as a function");
61
+ }
62
+ function F(i, e) {
63
+ for (var t = 0; t < e.length; t++) {
64
+ var n = e[t];
65
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, x(n.key), n);
66
+ }
67
+ }
68
+ function w(i, e, t) {
69
+ return e && F(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
70
+ }
71
+ function x(i) {
72
+ var e = O(i, "string");
73
+ return f(e) == "symbol" ? e : e + "";
74
+ }
75
+ function O(i, e) {
76
+ if (f(i) != "object" || !i) return i;
77
+ var t = i[Symbol.toPrimitive];
78
+ if (t !== void 0) {
79
+ var n = t.call(i, e);
80
+ if (f(n) != "object") return n;
81
+ throw new TypeError("@@toPrimitive must return a primitive value.");
82
+ }
83
+ return String(i);
84
+ }
85
+ var U = /* @__PURE__ */ (function() {
86
+ function i(e, t) {
87
+ A(this, i), this.metadata = new m(t);
88
+ var n = this.getCountryAndCallingCode(e), r = P(n, 2), o = r[0], a = r[1];
89
+ this.defaultCountry = o, this.defaultCallingCode = a, this.reset();
90
+ }
91
+ return w(i, [{
92
+ key: "getCountryAndCallingCode",
93
+ value: function(t) {
94
+ var n, r;
95
+ return t && (p(t) ? (n = t.defaultCountry, r = t.defaultCallingCode) : n = t), n && !this.metadata.hasCountry(n) && (n = void 0), [n, r];
96
+ }
97
+ /**
98
+ * Inputs "next" phone number characters.
99
+ * @param {string} text
100
+ * @return {string} Formatted phone number characters that have been input so far.
101
+ */
102
+ }, {
103
+ key: "input",
104
+ value: function(t) {
105
+ var n = this.parser.input(t, this.state), r = n.digits, o = n.justLeadingPlus;
106
+ if (o)
107
+ this.formattedOutput = "+";
108
+ else if (r) {
109
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
110
+ var a;
111
+ if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(r, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
112
+ this.determineTheCountryIfNeeded();
113
+ var u = this.state.getNationalDigits();
114
+ u && (a = this.formatter.format(u, this.state));
115
+ }
116
+ this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
117
+ }
118
+ return this.formattedOutput;
119
+ }
120
+ }, {
121
+ key: "reset",
122
+ value: function() {
123
+ var t = this;
124
+ return this.state = new y({
125
+ onCountryChange: function(r) {
126
+ t.country = r;
127
+ },
128
+ onCallingCodeChange: function(r, o) {
129
+ t.metadata.selectNumberingPlan(o || r), t.formatter.reset(t.metadata.numberingPlan, t.state), t.parser.reset(t.metadata.numberingPlan);
130
+ }
131
+ }), this.formatter = new C({
132
+ state: this.state,
133
+ metadata: this.metadata
134
+ }), this.parser = new b({
135
+ defaultCountry: this.defaultCountry,
136
+ defaultCallingCode: this.defaultCallingCode,
137
+ metadata: this.metadata,
138
+ state: this.state,
139
+ onNationalSignificantNumberChange: function() {
140
+ t.determineTheCountryIfNeeded(), t.formatter.reset(t.metadata.numberingPlan, t.state);
141
+ }
142
+ }), this.state.reset({
143
+ country: this.defaultCountry,
144
+ callingCode: this.defaultCallingCode
145
+ }), this.formattedOutput = "", this;
146
+ }
147
+ /**
148
+ * Returns `true` if the phone number is being input in international format.
149
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
150
+ * @return {boolean}
151
+ */
152
+ }, {
153
+ key: "isInternational",
154
+ value: function() {
155
+ return this.state.international;
156
+ }
157
+ /**
158
+ * Returns the "calling code" part of the phone number when it's being input
159
+ * in an international format.
160
+ * If no valid calling code has been entered so far, returns `undefined`.
161
+ * @return {string} [callingCode]
162
+ */
163
+ }, {
164
+ key: "getCallingCode",
165
+ value: function() {
166
+ if (this.isInternational())
167
+ return this.state.callingCode;
168
+ }
169
+ // A legacy alias.
170
+ }, {
171
+ key: "getCountryCallingCode",
172
+ value: function() {
173
+ return this.getCallingCode();
174
+ }
175
+ /**
176
+ * Returns a two-letter country code of the phone number.
177
+ * Returns `undefined` for "non-geographic" phone numbering plans.
178
+ * Returns `undefined` if no phone number has been input yet.
179
+ * @return {string} [country]
180
+ */
181
+ }, {
182
+ key: "getCountry",
183
+ value: function() {
184
+ var t = this.state.digits;
185
+ if (t)
186
+ return this._getCountry();
187
+ }
188
+ /**
189
+ * Returns a two-letter country code of the phone number.
190
+ * Returns `undefined` for "non-geographic" phone numbering plans.
191
+ * @return {string} [country]
192
+ */
193
+ }, {
194
+ key: "_getCountry",
195
+ value: function() {
196
+ var t = this.state.country;
197
+ return t;
198
+ }
199
+ }, {
200
+ key: "determineTheCountryIfNeeded",
201
+ value: function() {
202
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
203
+ }
204
+ // Prepends `+CountryCode ` in case of an international phone number
205
+ }, {
206
+ key: "getFullNumber",
207
+ value: function(t) {
208
+ var n = this;
209
+ if (this.isInternational()) {
210
+ var r = function(u) {
211
+ return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
212
+ spacing: !!u
213
+ }) + u;
214
+ }, o = this.state.callingCode;
215
+ return r(o ? t ? "".concat(o, " ").concat(t) : o : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
216
+ }
18
217
  return t;
19
- },
20
- trigger: o,
21
- ...r
22
- };
218
+ }
219
+ }, {
220
+ key: "getNonFormattedNationalNumberWithPrefix",
221
+ value: function() {
222
+ var t = this.state, n = t.nationalSignificantNumber, r = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = t.nationalPrefix, a = n, u = r || o;
223
+ return u && (a = u + a), a;
224
+ }
225
+ }, {
226
+ key: "getNonFormattedNumber",
227
+ value: function() {
228
+ var t = this.state.nationalSignificantNumberIsModified;
229
+ return this.getFullNumber(t ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
230
+ }
231
+ }, {
232
+ key: "getNonFormattedTemplate",
233
+ value: function() {
234
+ var t = this.getNonFormattedNumber();
235
+ if (t)
236
+ return t.replace(/[\+\d]/g, S);
237
+ }
238
+ }, {
239
+ key: "isCountryCallingCodeAmbiguous",
240
+ value: function() {
241
+ var t = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(t);
242
+ return n && n.length > 1;
243
+ }
244
+ // Determines the exact country of the phone number
245
+ // entered so far based on the country phone code
246
+ // and the national phone number.
247
+ }, {
248
+ key: "determineTheCountry",
249
+ value: function() {
250
+ var t = v(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
251
+ nationalNumber: this.state.nationalSignificantNumber,
252
+ metadata: this.metadata
253
+ });
254
+ t !== this.state.country && (this.state.setCountry(t), t && this.metadata.selectNumberingPlan(t));
255
+ }
256
+ /**
257
+ * Returns a E.164 phone number value for the user's input.
258
+ *
259
+ * For example, for country `"US"` and input `"(222) 333-4444"`
260
+ * it will return `"+12223334444"`.
261
+ *
262
+ * For international phone number input, it will also auto-correct
263
+ * some minor errors such as using a national prefix when writing
264
+ * an international phone number. For example, if the user inputs
265
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
266
+ * `"+447400000000"` phone number value.
267
+ *
268
+ * Will return `undefined` if no digits have been input,
269
+ * or when inputting a phone number in national format and no
270
+ * default country or default "country calling code" have been set.
271
+ *
272
+ * @return {string} [value]
273
+ */
274
+ }, {
275
+ key: "getNumberValue",
276
+ value: function() {
277
+ var t = this.state, n = t.digits, r = t.callingCode, o = t.country, a = t.nationalSignificantNumber;
278
+ if (n) {
279
+ if (this.isInternational())
280
+ return r ? "+" + r + a : "+" + n;
281
+ if (o || r) {
282
+ var u = o ? this.metadata.countryCallingCode() : r;
283
+ return "+" + u + a;
284
+ }
285
+ }
286
+ }
287
+ /**
288
+ * Returns an instance of `PhoneNumber` class.
289
+ * Will return `undefined` if no national (significant) number
290
+ * digits have been entered so far, or if no `defaultCountry` has been
291
+ * set and the user enters a phone number not in international format.
292
+ */
293
+ }, {
294
+ key: "getNumber",
295
+ value: function() {
296
+ var t = this.state, n = t.nationalSignificantNumber, r = t.carrierCode, o = t.callingCode;
297
+ if (n) {
298
+ var a = this._getCountry();
299
+ if (!(!a && !o)) {
300
+ if (a && a === this.defaultCountry) {
301
+ var u = this.metadata.numberingPlan.callingCode(), s = L(u, n, this.metadata);
302
+ s && (a = s);
303
+ }
304
+ var l = new h(a || o, n, this.metadata.metadata);
305
+ return r && (l.carrierCode = r), l;
306
+ }
307
+ }
308
+ }
309
+ /**
310
+ * Returns `true` if the phone number is "possible".
311
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
312
+ * @return {boolean}
313
+ */
314
+ }, {
315
+ key: "isPossible",
316
+ value: function() {
317
+ var t = this.getNumber();
318
+ return t ? t.isPossible() : !1;
319
+ }
320
+ /**
321
+ * Returns `true` if the phone number is "valid".
322
+ * Is just a shortcut for `PhoneNumber.isValid()`.
323
+ * @return {boolean}
324
+ */
325
+ }, {
326
+ key: "isValid",
327
+ value: function() {
328
+ var t = this.getNumber();
329
+ return t ? t.isValid() : !1;
330
+ }
331
+ /**
332
+ * Checks if the phone number length is valid.
333
+ * If it is, nothing is returned.
334
+ * Otherwise, a rejection reason is returned.
335
+ * @return {string?}
336
+ */
337
+ }, {
338
+ key: "validateLength",
339
+ value: function() {
340
+ var t = this.state, n = t.digits, r = t.nationalSignificantNumber;
341
+ if (!n)
342
+ return "NOT_A_NUMBER";
343
+ if (!this.metadata.numberingPlan)
344
+ return "INVALID_COUNTRY";
345
+ if (!r)
346
+ return "TOO_SHORT";
347
+ var o = c(r, void 0, this.metadata);
348
+ if (o !== "IS_POSSIBLE")
349
+ return o;
350
+ }
351
+ /**
352
+ * @deprecated
353
+ * This method is used in `react-phone-number-input/source/input-control.js`
354
+ * in versions before `3.0.16`.
355
+ */
356
+ }, {
357
+ key: "getNationalNumber",
358
+ value: function() {
359
+ return this.state.nationalSignificantNumber;
360
+ }
361
+ /**
362
+ * Returns the phone number characters entered by the user.
363
+ * @return {string}
364
+ */
365
+ }, {
366
+ key: "getChars",
367
+ value: function() {
368
+ return (this.state.international ? "+" : "") + this.state.digits;
369
+ }
370
+ /**
371
+ * Returns the template for the formatted phone number.
372
+ * @return {string}
373
+ */
374
+ }, {
375
+ key: "getTemplate",
376
+ value: function() {
377
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
378
+ }
379
+ }]);
380
+ })();
381
+ function L(i, e, t) {
382
+ var n = t.getCountryCodesForCallingCode(i);
383
+ if (n.length > 1)
384
+ return N(e, n, t.metadata);
23
385
  }
24
386
  export {
25
- u as createChangeEventDetails
387
+ U as default
26
388
  };
27
389
  //# sourceMappingURL=index175.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index175.js","sources":["../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.mjs\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}"],"names":["createChangeEventDetails","reason","event","trigger","customProperties","canceled","allowPropagation","custom","EMPTY_OBJECT"],"mappings":";AAmBO,SAASA,EAAyBC,GAAQC,GAAOC,GAASC,GAAkB;AACjF,MAAIC,IAAW,IACXC,IAAmB;AACvB,QAAMC,IAA6BC;AAmBnC,SAlBgB;AAAA,IACd,QAAAP;AAAA,IACA,OAAOC,KAAS,IAAI,MAAM,SAAS;AAAA,IACnC,SAAS;AACP,MAAAG,IAAW;AAAA,IACb;AAAA,IACA,mBAAmB;AACjB,MAAAC,IAAmB;AAAA,IACrB;AAAA,IACA,IAAI,aAAa;AACf,aAAOD;AAAA,IACT;AAAA,IACA,IAAI,uBAAuB;AACzB,aAAOC;AAAA,IACT;AAAA,IACA,SAAAH;AAAA,IACA,GAAGI;AAAA,EACP;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index175.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouType.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport Metadata from './metadata.js';\nimport PhoneNumber from './PhoneNumber.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\nimport AsYouTypeState from './AsYouTypeState.js';\nimport AsYouTypeFormatter, { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter.js';\nimport AsYouTypeParser, { extractFormattedDigitsAndPlus } from './AsYouTypeParser.js';\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport getCountryByNationalNumber from './helpers/getCountryByNationalNumber.js';\nimport isObject from './helpers/isObject.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nvar AsYouType = /*#__PURE__*/function () {\n /**\r\n * @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.\r\n * @param {Object} metadata\r\n */\n function AsYouType(optionsOrDefaultCountry, metadata) {\n _classCallCheck(this, AsYouType);\n // Metadata instance is created once and stays constant.\n // This is required because other utility classes such as `AsYouTypeFormatter`\n // will use this metadata instance \"reference\" and will assume that it stays constant.\n this.metadata = new Metadata(metadata);\n var _this$getCountryAndCa = this.getCountryAndCallingCode(optionsOrDefaultCountry),\n _this$getCountryAndCa2 = _slicedToArray(_this$getCountryAndCa, 2),\n defaultCountry = _this$getCountryAndCa2[0],\n defaultCallingCode = _this$getCountryAndCa2[1];\n // `this.defaultCountry` and `this.defaultCallingCode` aren't required to be in sync.\n // For example, `this.defaultCountry` could be `\"AR\"` and `this.defaultCallingCode` could be `undefined`.\n // So `this.defaultCountry` and `this.defaultCallingCode` are totally independent.\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.reset();\n }\n return _createClass(AsYouType, [{\n key: \"getCountryAndCallingCode\",\n value: function getCountryAndCallingCode(optionsOrDefaultCountry) {\n // Set `defaultCountry` and `defaultCallingCode` options.\n var defaultCountry;\n var defaultCallingCode;\n // Turns out `null` also has type \"object\". Weird.\n if (optionsOrDefaultCountry) {\n if (isObject(optionsOrDefaultCountry)) {\n defaultCountry = optionsOrDefaultCountry.defaultCountry;\n defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;\n } else {\n defaultCountry = optionsOrDefaultCountry;\n }\n }\n if (defaultCountry && !this.metadata.hasCountry(defaultCountry)) {\n defaultCountry = undefined;\n }\n if (defaultCallingCode) {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (this.metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n defaultCountry = '001';\n }\n }\n }\n return [defaultCountry, defaultCallingCode];\n }\n\n /**\r\n * Inputs \"next\" phone number characters.\r\n * @param {string} text\r\n * @return {string} Formatted phone number characters that have been input so far.\r\n */\n }, {\n key: \"input\",\n value: function input(text) {\n var _this$parser$input = this.parser.input(text, this.state),\n digits = _this$parser$input.digits,\n justLeadingPlus = _this$parser$input.justLeadingPlus;\n if (justLeadingPlus) {\n this.formattedOutput = '+';\n } else if (digits) {\n this.determineTheCountryIfNeeded();\n // Match the available formats by the currently available leading digits.\n if (this.state.nationalSignificantNumber) {\n this.formatter.narrowDownMatchingFormats(this.state);\n }\n var formattedNationalNumber;\n if (this.metadata.hasSelectedNumberingPlan()) {\n formattedNationalNumber = this.formatter.format(digits, this.state);\n }\n if (formattedNationalNumber === undefined) {\n // See if another national (significant) number could be re-extracted.\n if (this.parser.reExtractNationalSignificantNumber(this.state)) {\n this.determineTheCountryIfNeeded();\n // If it could, then re-try formatting the new national (significant) number.\n var nationalDigits = this.state.getNationalDigits();\n if (nationalDigits) {\n formattedNationalNumber = this.formatter.format(nationalDigits, this.state);\n }\n }\n }\n this.formattedOutput = formattedNationalNumber ? this.getFullNumber(formattedNationalNumber) : this.getNonFormattedNumber();\n }\n return this.formattedOutput;\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var _this = this;\n this.state = new AsYouTypeState({\n onCountryChange: function onCountryChange(country) {\n // Before version `1.6.0`, the official `AsYouType` formatter API\n // included a `.country` property on an `AsYouType` instance.\n // Since that property (along with the others) have been moved to\n // `this.state`, `this.country` property is emulated for compatibility\n // with the old versions.\n _this.country = country;\n },\n onCallingCodeChange: function onCallingCodeChange(callingCode, country) {\n _this.metadata.selectNumberingPlan(country || callingCode);\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n _this.parser.reset(_this.metadata.numberingPlan);\n }\n });\n this.formatter = new AsYouTypeFormatter({\n state: this.state,\n metadata: this.metadata\n });\n this.parser = new AsYouTypeParser({\n defaultCountry: this.defaultCountry,\n defaultCallingCode: this.defaultCallingCode,\n metadata: this.metadata,\n state: this.state,\n onNationalSignificantNumberChange: function onNationalSignificantNumberChange() {\n _this.determineTheCountryIfNeeded();\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n }\n });\n this.state.reset({\n country: this.defaultCountry,\n callingCode: this.defaultCallingCode\n });\n this.formattedOutput = '';\n return this;\n }\n\n /**\r\n * Returns `true` if the phone number is being input in international format.\r\n * In other words, returns `true` if and only if the parsed phone number starts with a `\"+\"`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isInternational\",\n value: function isInternational() {\n return this.state.international;\n }\n\n /**\r\n * Returns the \"calling code\" part of the phone number when it's being input\r\n * in an international format.\r\n * If no valid calling code has been entered so far, returns `undefined`.\r\n * @return {string} [callingCode]\r\n */\n }, {\n key: \"getCallingCode\",\n value: function getCallingCode() {\n // If the number is being input in national format and some \"default calling code\"\n // has been passed to `AsYouType` constructor, then `this.state.callingCode`\n // is equal to that \"default calling code\".\n //\n // If the number is being input in national format and no \"default calling code\"\n // has been passed to `AsYouType` constructor, then returns `undefined`,\n // even if a \"default country\" has been passed to `AsYouType` constructor.\n //\n if (this.isInternational()) {\n return this.state.callingCode;\n }\n }\n\n // A legacy alias.\n }, {\n key: \"getCountryCallingCode\",\n value: function getCountryCallingCode() {\n return this.getCallingCode();\n }\n\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * Returns `undefined` if no phone number has been input yet.\r\n * @return {string} [country]\r\n */\n }, {\n key: \"getCountry\",\n value: function getCountry() {\n var digits = this.state.digits;\n // Return `undefined` if no digits have been input yet.\n if (digits) {\n return this._getCountry();\n }\n }\n\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * @return {string} [country]\r\n */\n }, {\n key: \"_getCountry\",\n value: function _getCountry() {\n var country = this.state.country;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n // `AsYouType.getCountry()` returns `undefined`\n // for \"non-geographic\" phone numbering plans.\n if (country === '001') {\n return;\n }\n }\n return country;\n }\n }, {\n key: \"determineTheCountryIfNeeded\",\n value: function determineTheCountryIfNeeded() {\n // Suppose a user enters a phone number in international format,\n // and there're several countries corresponding to that country calling code,\n // and a country has been derived from the number, and then\n // a user enters one more digit and the number is no longer\n // valid for the derived country, so the country should be re-derived\n // on every new digit in those cases.\n //\n // If the phone number is being input in national format,\n // then it could be a case when `defaultCountry` wasn't specified\n // when creating `AsYouType` instance, and just `defaultCallingCode` was specified,\n // and that \"calling code\" could correspond to a \"non-geographic entity\",\n // or there could be several countries corresponding to that country calling code.\n // In those cases, `this.country` is `undefined` and should be derived\n // from the number. Again, if country calling code is ambiguous, then\n // `this.country` should be re-derived with each new digit.\n //\n if (!this.state.country || this.isCountryCallingCodeAmbiguous()) {\n this.determineTheCountry();\n }\n }\n\n // Prepends `+CountryCode ` in case of an international phone number\n }, {\n key: \"getFullNumber\",\n value: function getFullNumber(formattedNationalNumber) {\n var _this2 = this;\n if (this.isInternational()) {\n var prefix = function prefix(text) {\n return _this2.formatter.getInternationalPrefixBeforeCountryCallingCode(_this2.state, {\n spacing: text ? true : false\n }) + text;\n };\n var callingCode = this.state.callingCode;\n if (!callingCode) {\n return prefix(\"\".concat(this.state.getDigitsWithoutInternationalPrefix()));\n }\n if (!formattedNationalNumber) {\n return prefix(callingCode);\n }\n return prefix(\"\".concat(callingCode, \" \").concat(formattedNationalNumber));\n }\n return formattedNationalNumber;\n }\n }, {\n key: \"getNonFormattedNationalNumberWithPrefix\",\n value: function getNonFormattedNationalNumberWithPrefix() {\n var _this$state = this.state,\n nationalSignificantNumber = _this$state.nationalSignificantNumber,\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _this$state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,\n nationalPrefix = _this$state.nationalPrefix;\n var number = nationalSignificantNumber;\n var prefix = prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix || nationalPrefix;\n if (prefix) {\n number = prefix + number;\n }\n return number;\n }\n }, {\n key: \"getNonFormattedNumber\",\n value: function getNonFormattedNumber() {\n var nationalSignificantNumberIsModified = this.state.nationalSignificantNumberIsModified;\n return this.getFullNumber(nationalSignificantNumberIsModified ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());\n }\n }, {\n key: \"getNonFormattedTemplate\",\n value: function getNonFormattedTemplate() {\n var number = this.getNonFormattedNumber();\n if (number) {\n return number.replace(/[\\+\\d]/g, DIGIT_PLACEHOLDER);\n }\n }\n }, {\n key: \"isCountryCallingCodeAmbiguous\",\n value: function isCountryCallingCodeAmbiguous() {\n var callingCode = this.state.callingCode;\n var countryCodes = this.metadata.getCountryCodesForCallingCode(callingCode);\n return countryCodes && countryCodes.length > 1;\n }\n\n // Determines the exact country of the phone number\n // entered so far based on the country phone code\n // and the national phone number.\n }, {\n key: \"determineTheCountry\",\n value: function determineTheCountry() {\n // Get a more precise country code for this national number.\n // It is possible that the precise country couldn't be determined\n // in cases when there're multiple countries sharing the same calling code.\n // In that case, `country` will be `undefined`.\n var country = getCountryByCallingCode(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {\n nationalNumber: this.state.nationalSignificantNumber,\n metadata: this.metadata\n });\n // If the derived country is indeed more precise,\n // or if no country could be derived for the updated phone number.\n if (country !== this.state.country) {\n // Set (or reset) the more precise country.\n this.state.setCountry(country);\n // If a more precise country could be derived.\n if (country) {\n // Select a more precise telephone numbering plan.\n // For example, consider that `AsYouType` instance was created with `defaultCountry: \"US\"` argument.\n // In that case, the metadata instance will be using \"US\" metadata.\n // But then the user could input a Canadian phone number, in which case\n // the metadata instance should be switched to Canadian telephone numbering plan.\n // It is required to do that because later `canFormatCompleteNumber()` function will be called,\n // and that function relies on the precise country being pre-selected in the metadata instance.\n // Or, for example, `checkNumberLength()` function also relies on same thing.\n this.metadata.selectNumberingPlan(country);\n }\n }\n }\n\n /**\r\n * Returns a E.164 phone number value for the user's input.\r\n *\r\n * For example, for country `\"US\"` and input `\"(222) 333-4444\"`\r\n * it will return `\"+12223334444\"`.\r\n *\r\n * For international phone number input, it will also auto-correct\r\n * some minor errors such as using a national prefix when writing\r\n * an international phone number. For example, if the user inputs\r\n * `\"+44 0 7400 000000\"` then it will return an auto-corrected\r\n * `\"+447400000000\"` phone number value.\r\n *\r\n * Will return `undefined` if no digits have been input,\r\n * or when inputting a phone number in national format and no\r\n * default country or default \"country calling code\" have been set.\r\n *\r\n * @return {string} [value]\r\n */\n }, {\n key: \"getNumberValue\",\n value: function getNumberValue() {\n var _this$state2 = this.state,\n digits = _this$state2.digits,\n callingCode = _this$state2.callingCode,\n country = _this$state2.country,\n nationalSignificantNumber = _this$state2.nationalSignificantNumber;\n\n // Will return `undefined` if no digits have been input.\n if (!digits) {\n return;\n }\n if (this.isInternational()) {\n if (callingCode) {\n return '+' + callingCode + nationalSignificantNumber;\n } else {\n return '+' + digits;\n }\n } else {\n if (country || callingCode) {\n var callingCode_ = country ? this.metadata.countryCallingCode() : callingCode;\n return '+' + callingCode_ + nationalSignificantNumber;\n }\n }\n }\n\n /**\r\n * Returns an instance of `PhoneNumber` class.\r\n * Will return `undefined` if no national (significant) number\r\n * digits have been entered so far, or if no `defaultCountry` has been\r\n * set and the user enters a phone number not in international format.\r\n */\n }, {\n key: \"getNumber\",\n value: function getNumber() {\n var _this$state3 = this.state,\n nationalSignificantNumber = _this$state3.nationalSignificantNumber,\n carrierCode = _this$state3.carrierCode,\n callingCode = _this$state3.callingCode;\n if (!nationalSignificantNumber) {\n return;\n }\n\n // `this._getCountry()` is basically same as `this.state.country`\n // with the only change that it returns `undefined` in case of a\n // \"non-geographic\" numbering plan instead of `\"001\"` \"internal use\" value.\n var country = this._getCountry();\n\n // Sidenote:\n // `state.callingCode` and `state.country` are somewhat independent from one another\n // and there could be situations when one is defined but the other is not.\n // See the comment in `AsYouTypeState.js` for more info on when that is possible.\n\n if (!country && !callingCode) {\n return;\n }\n\n // By default, if `defaultCountry` parameter was passed when\n // creating `AsYouType` instance, `state.country` is gonna be\n // that `defaultCountry`, which doesn't entirely conform with\n // `parsePhoneNumber()`'s behavior where it attempts to determine\n // the country more precisely in cases when multiple countries\n // could correspond to the same `countryCallingCode`.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417192969\n //\n // Because `AsYouType.getNumber()` method is supposed to be a 1:1\n // equivalent for `parsePhoneNumber(AsYouType.getNumberValue())`,\n // it means that it should also behave accordingly in such cases of `country` ambiguity.\n // That's how users of this library would expect it to behave anyway.\n //\n // So here it checks if `state.country` is same as the `defaultCountry`,\n // and if it is, it attempts to get rid of any potential ambiguity.\n //\n if (country) {\n if (country === this.defaultCountry) {\n // // Create a `Metadata` instance just to get the calling code of the `country`.\n // const metadata = new Metadata(this.metadata.metadata)\n // // `state.callingCode` and `state.country` are somewhat independent from one another\n // // and there could be situations when one is defined but the other is not.\n // // See the comment in `AsYouTypeState.js` for more info on when that is possible.\n // // Here, it only passes `state.country` because there's no need to pass `state.callingCode`\n // // because `state.country` is known to be defined.\n // metadata.selectNumberingPlan(country)\n // const countryCallingCode = metadata.numberingPlan.callingCode()\n\n // Instead of getting `countryCallingCode` value above,\n // it could simply read it from the existing metadata instance.\n var countryCallingCode = this.metadata.numberingPlan.callingCode();\n\n // Attempt to rule out any potential country code ambiguity, if present.\n var exactCountry = getExactCountryForMultiCountryCallingCode(countryCallingCode, nationalSignificantNumber, this.metadata);\n if (exactCountry) {\n country = exactCountry;\n }\n }\n }\n var phoneNumber = new PhoneNumber(country || callingCode, nationalSignificantNumber, this.metadata.metadata);\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n // Phone number extensions are not supported by \"As You Type\" formatter.\n return phoneNumber;\n }\n\n /**\r\n * Returns `true` if the phone number is \"possible\".\r\n * Is just a shortcut for `PhoneNumber.isPossible()`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n var phoneNumber = this.getNumber();\n if (!phoneNumber) {\n return false;\n }\n return phoneNumber.isPossible();\n }\n\n /**\r\n * Returns `true` if the phone number is \"valid\".\r\n * Is just a shortcut for `PhoneNumber.isValid()`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isValid\",\n value: function isValid() {\n var phoneNumber = this.getNumber();\n if (!phoneNumber) {\n return false;\n }\n return phoneNumber.isValid();\n }\n\n /**\r\n * Checks if the phone number length is valid.\r\n * If it is, nothing is returned.\r\n * Otherwise, a rejection reason is returned.\r\n * @return {string?}\r\n */\n }, {\n key: \"validateLength\",\n value: function validateLength() {\n var _this$state4 = this.state,\n digits = _this$state4.digits,\n nationalSignificantNumber = _this$state4.nationalSignificantNumber;\n if (!digits) {\n return 'NOT_A_NUMBER';\n }\n if (!this.metadata.numberingPlan) {\n return 'INVALID_COUNTRY';\n }\n if (!nationalSignificantNumber) {\n return 'TOO_SHORT';\n }\n\n // `state.callingCode` and `state.country` are somewhat independent from one another\n // and there could be situations when one is defined but the other is not.\n // See the comment in `AsYouTypeState.js` for more info on when that is possible.\n // Here, it uses both: if `country` is defined then it will use that,\n // otherwise it will use `callingCode`.\n var result = checkNumberLength(nationalSignificantNumber, undefined, this.metadata);\n if (result !== 'IS_POSSIBLE') {\n return result;\n }\n }\n\n /**\r\n * @deprecated\r\n * This method is used in `react-phone-number-input/source/input-control.js`\r\n * in versions before `3.0.16`.\r\n */\n }, {\n key: \"getNationalNumber\",\n value: function getNationalNumber() {\n return this.state.nationalSignificantNumber;\n }\n\n /**\r\n * Returns the phone number characters entered by the user.\r\n * @return {string}\r\n */\n }, {\n key: \"getChars\",\n value: function getChars() {\n return (this.state.international ? '+' : '') + this.state.digits;\n }\n\n /**\r\n * Returns the template for the formatted phone number.\r\n * @return {string}\r\n */\n }, {\n key: \"getTemplate\",\n value: function getTemplate() {\n return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || '';\n }\n }]);\n}(); // In situations when multiple countries use the same calling code,\n// this function tells what exact country does a given national (significant) number belong to.\nexport { AsYouType as default };\nfunction getExactCountryForMultiCountryCallingCode(callingCode, nationalSignificantNumber, metadata) {\n var ambiguousCountries = metadata.getCountryCodesForCallingCode(callingCode);\n if (ambiguousCountries.length > 1) {\n return getCountryByNationalNumber(nationalSignificantNumber, ambiguousCountries, metadata.metadata);\n }\n}\n//# sourceMappingURL=AsYouType.js.map"],"names":["_typeof","o","_slicedToArray","r","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","e","l","n","i","u","f","_classCallCheck","_defineProperties","_toPropertyKey","_createClass","t","_toPrimitive","AsYouType","optionsOrDefaultCountry","metadata","Metadata","_this$getCountryAndCa","_this$getCountryAndCa2","defaultCountry","defaultCallingCode","isObject","text","_this$parser$input","digits","justLeadingPlus","formattedNationalNumber","nationalDigits","_this","AsYouTypeState","country","callingCode","AsYouTypeFormatter","AsYouTypeParser","_this2","prefix","_this$state","nationalSignificantNumber","prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix","nationalPrefix","number","nationalSignificantNumberIsModified","DIGIT_PLACEHOLDER","countryCodes","getCountryByCallingCode","_this$state2","callingCode_","_this$state3","carrierCode","countryCallingCode","exactCountry","getExactCountryForMultiCountryCallingCode","phoneNumber","PhoneNumber","_this$state4","result","checkNumberLength","ambiguousCountries","getCountryByNationalNumber"],"mappings":";;;;;;;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAeC,GAAG,GAAG;AAAE,SAAOC,EAAgBD,CAAC,KAAKE,EAAsBF,GAAG,CAAC,KAAKG,EAA4BH,GAAG,CAAC,KAAKI,EAAgB;AAAI;AACrJ,SAASA,IAAmB;AAAE,QAAM,IAAI,UAAU;AAAA,mFAA2I;AAAG;AAChM,SAASD,EAA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