@rpcbase/ui 0.213.0 → 0.214.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 (361) hide show
  1. package/dist/index108.js +36 -36
  2. package/dist/index120.js +6 -6
  3. package/dist/index123.js +10 -10
  4. package/dist/index125.js +2 -2
  5. package/dist/index126.js +3 -3
  6. package/dist/index127.js +1 -1
  7. package/dist/index129.js +2 -2
  8. package/dist/index131.js +1 -1
  9. package/dist/index152.js +46 -5
  10. package/dist/index152.js.map +1 -1
  11. package/dist/index153.js +40 -62
  12. package/dist/index153.js.map +1 -1
  13. package/dist/index154.js +230 -2
  14. package/dist/index154.js.map +1 -1
  15. package/dist/index155.js +22 -364
  16. package/dist/index155.js.map +1 -1
  17. package/dist/index156.js +23 -260
  18. package/dist/index156.js.map +1 -1
  19. package/dist/index157.js +391 -51
  20. package/dist/index157.js.map +1 -1
  21. package/dist/index158.js +5 -46
  22. package/dist/index158.js.map +1 -1
  23. package/dist/index159.js +56 -157
  24. package/dist/index159.js.map +1 -1
  25. package/dist/index16.js +1 -1
  26. package/dist/index160.js +2 -110
  27. package/dist/index160.js.map +1 -1
  28. package/dist/index161.js +363 -24
  29. package/dist/index161.js.map +1 -1
  30. package/dist/index162.js +262 -8
  31. package/dist/index162.js.map +1 -1
  32. package/dist/index163.js +60 -4
  33. package/dist/index163.js.map +1 -1
  34. package/dist/index164.js +46 -5
  35. package/dist/index164.js.map +1 -1
  36. package/dist/index165.js +169 -4
  37. package/dist/index165.js.map +1 -1
  38. package/dist/index166.js +102 -459
  39. package/dist/index166.js.map +1 -1
  40. package/dist/index167.js +24 -185
  41. package/dist/index167.js.map +1 -1
  42. package/dist/index168.js +8 -108
  43. package/dist/index168.js.map +1 -1
  44. package/dist/index169.js +4 -262
  45. package/dist/index169.js.map +1 -1
  46. package/dist/index170.js +5 -9
  47. package/dist/index170.js.map +1 -1
  48. package/dist/index171.js +4 -42
  49. package/dist/index171.js.map +1 -1
  50. package/dist/index172.js +466 -4
  51. package/dist/index172.js.map +1 -1
  52. package/dist/index173.js +177 -597
  53. package/dist/index173.js.map +1 -1
  54. package/dist/index174.js +103 -42
  55. package/dist/index174.js.map +1 -1
  56. package/dist/index175.js +253 -220
  57. package/dist/index175.js.map +1 -1
  58. package/dist/index176.js +10 -22
  59. package/dist/index176.js.map +1 -1
  60. package/dist/index177.js +42 -24
  61. package/dist/index177.js.map +1 -1
  62. package/dist/index178.js +4 -400
  63. package/dist/index178.js.map +1 -1
  64. package/dist/index179.js +67 -58
  65. package/dist/index179.js.map +1 -1
  66. package/dist/index180.js +180 -8
  67. package/dist/index180.js.map +1 -1
  68. package/dist/index181.js +42 -62
  69. package/dist/index181.js.map +1 -1
  70. package/dist/index182.js +57 -18
  71. package/dist/index182.js.map +1 -1
  72. package/dist/index183.js +8 -16
  73. package/dist/index183.js.map +1 -1
  74. package/dist/index184.js +65 -4
  75. package/dist/index184.js.map +1 -1
  76. package/dist/index185.js +18 -4
  77. package/dist/index185.js.map +1 -1
  78. package/dist/index186.js +16 -6
  79. package/dist/index186.js.map +1 -1
  80. package/dist/index187.js +5 -4
  81. package/dist/index187.js.map +1 -1
  82. package/dist/index188.js +5 -6
  83. package/dist/index188.js.map +1 -1
  84. package/dist/index189.js +6 -16
  85. package/dist/index189.js.map +1 -1
  86. package/dist/index190.js +4 -4
  87. package/dist/index190.js.map +1 -1
  88. package/dist/index191.js +6 -4
  89. package/dist/index191.js.map +1 -1
  90. package/dist/index192.js +16 -12
  91. package/dist/index192.js.map +1 -1
  92. package/dist/index193.js +4 -9
  93. package/dist/index193.js.map +1 -1
  94. package/dist/index194.js +4 -13
  95. package/dist/index194.js.map +1 -1
  96. package/dist/index195.js +12 -13
  97. package/dist/index195.js.map +1 -1
  98. package/dist/index196.js +9 -4
  99. package/dist/index196.js.map +1 -1
  100. package/dist/index197.js +13 -5
  101. package/dist/index197.js.map +1 -1
  102. package/dist/index198.js +13 -6
  103. package/dist/index198.js.map +1 -1
  104. package/dist/index199.js +4 -5
  105. package/dist/index199.js.map +1 -1
  106. package/dist/index200.js +5 -54
  107. package/dist/index200.js.map +1 -1
  108. package/dist/index201.js +6 -8
  109. package/dist/index201.js.map +1 -1
  110. package/dist/index202.js +4 -3
  111. package/dist/index202.js.map +1 -1
  112. package/dist/index203.js +54 -4
  113. package/dist/index203.js.map +1 -1
  114. package/dist/index204.js +6 -6
  115. package/dist/index204.js.map +1 -1
  116. package/dist/index205.js +4 -4
  117. package/dist/index205.js.map +1 -1
  118. package/dist/index206.js +4 -4
  119. package/dist/index206.js.map +1 -1
  120. package/dist/index207.js +8 -3
  121. package/dist/index207.js.map +1 -1
  122. package/dist/index208.js +4 -10
  123. package/dist/index208.js.map +1 -1
  124. package/dist/index209.js +4 -9
  125. package/dist/index209.js.map +1 -1
  126. package/dist/index210.js +3 -9
  127. package/dist/index210.js.map +1 -1
  128. package/dist/index211.js +10 -10
  129. package/dist/index211.js.map +1 -1
  130. package/dist/index212.js +9 -10
  131. package/dist/index212.js.map +1 -1
  132. package/dist/index213.js +9 -9
  133. package/dist/index213.js.map +1 -1
  134. package/dist/index214.js +10 -6
  135. package/dist/index214.js.map +1 -1
  136. package/dist/index215.js +10 -5
  137. package/dist/index215.js.map +1 -1
  138. package/dist/index216.js +9 -4
  139. package/dist/index216.js.map +1 -1
  140. package/dist/index217.js +6 -5
  141. package/dist/index217.js.map +1 -1
  142. package/dist/index218.js +5 -6
  143. package/dist/index218.js.map +1 -1
  144. package/dist/index219.js +4 -5
  145. package/dist/index219.js.map +1 -1
  146. package/dist/index220.js +5 -16
  147. package/dist/index220.js.map +1 -1
  148. package/dist/index221.js +6 -7
  149. package/dist/index221.js.map +1 -1
  150. package/dist/index222.js +5 -10
  151. package/dist/index222.js.map +1 -1
  152. package/dist/index223.js +15 -9
  153. package/dist/index223.js.map +1 -1
  154. package/dist/index224.js +7 -21
  155. package/dist/index224.js.map +1 -1
  156. package/dist/index225.js +10 -10
  157. package/dist/index225.js.map +1 -1
  158. package/dist/index226.js +10 -9
  159. package/dist/index226.js.map +1 -1
  160. package/dist/index227.js +21 -9
  161. package/dist/index227.js.map +1 -1
  162. package/dist/index228.js +10 -4
  163. package/dist/index228.js.map +1 -1
  164. package/dist/index229.js +9 -5
  165. package/dist/index229.js.map +1 -1
  166. package/dist/index230.js +9 -16
  167. package/dist/index230.js.map +1 -1
  168. package/dist/index231.js +4 -9
  169. package/dist/index231.js.map +1 -1
  170. package/dist/index232.js +5 -18
  171. package/dist/index232.js.map +1 -1
  172. package/dist/index233.js +16 -15
  173. package/dist/index233.js.map +1 -1
  174. package/dist/index234.js +9 -12
  175. package/dist/index234.js.map +1 -1
  176. package/dist/index235.js +18 -29
  177. package/dist/index235.js.map +1 -1
  178. package/dist/index236.js +15 -12
  179. package/dist/index236.js.map +1 -1
  180. package/dist/index237.js +12 -25
  181. package/dist/index237.js.map +1 -1
  182. package/dist/index238.js +29 -5
  183. package/dist/index238.js.map +1 -1
  184. package/dist/index239.js +12 -13
  185. package/dist/index239.js.map +1 -1
  186. package/dist/index240.js +23 -152
  187. package/dist/index240.js.map +1 -1
  188. package/dist/index241.js +5 -30
  189. package/dist/index241.js.map +1 -1
  190. package/dist/index242.js +24 -9
  191. package/dist/index242.js.map +1 -1
  192. package/dist/index243.js +29 -49
  193. package/dist/index243.js.map +1 -1
  194. package/dist/index244.js +5 -12
  195. package/dist/index244.js.map +1 -1
  196. package/dist/index245.js +13 -44
  197. package/dist/index245.js.map +1 -1
  198. package/dist/index246.js +145 -86
  199. package/dist/index246.js.map +1 -1
  200. package/dist/index247.js +27 -83
  201. package/dist/index247.js.map +1 -1
  202. package/dist/index248.js +9 -105
  203. package/dist/index248.js.map +1 -1
  204. package/dist/index249.js +41 -45
  205. package/dist/index249.js.map +1 -1
  206. package/dist/index250.js +11 -11
  207. package/dist/index250.js.map +1 -1
  208. package/dist/index251.js +42 -35
  209. package/dist/index251.js.map +1 -1
  210. package/dist/index252.js +95 -8
  211. package/dist/index252.js.map +1 -1
  212. package/dist/index253.js +86 -3
  213. package/dist/index253.js.map +1 -1
  214. package/dist/index254.js +105 -9
  215. package/dist/index254.js.map +1 -1
  216. package/dist/index255.js +46 -110
  217. package/dist/index255.js.map +1 -1
  218. package/dist/index256.js +11 -17
  219. package/dist/index256.js.map +1 -1
  220. package/dist/index257.js +35 -13
  221. package/dist/index257.js.map +1 -1
  222. package/dist/index258.js +8 -36
  223. package/dist/index258.js.map +1 -1
  224. package/dist/index259.js +115 -19
  225. package/dist/index259.js.map +1 -1
  226. package/dist/index260.js +17 -8
  227. package/dist/index260.js.map +1 -1
  228. package/dist/index261.js +12 -16
  229. package/dist/index261.js.map +1 -1
  230. package/dist/index262.js +3 -28
  231. package/dist/index262.js.map +1 -1
  232. package/dist/index263.js +35 -15
  233. package/dist/index263.js.map +1 -1
  234. package/dist/index264.js +20 -67
  235. package/dist/index264.js.map +1 -1
  236. package/dist/index265.js +9 -180
  237. package/dist/index265.js.map +1 -1
  238. package/dist/index266.js +8 -46
  239. package/dist/index266.js.map +1 -1
  240. package/dist/index267.js +19 -24
  241. package/dist/index267.js.map +1 -1
  242. package/dist/index268.js +29 -29
  243. package/dist/index268.js.map +1 -1
  244. package/dist/index269.js +17 -5
  245. package/dist/index269.js.map +1 -1
  246. package/dist/index271.js +5 -5
  247. package/dist/index273.js +5 -21
  248. package/dist/index273.js.map +1 -1
  249. package/dist/index274.js +3 -5
  250. package/dist/index274.js.map +1 -1
  251. package/dist/index275.js +24 -3
  252. package/dist/index275.js.map +1 -1
  253. package/dist/index276.js +111 -22
  254. package/dist/index276.js.map +1 -1
  255. package/dist/index277.js +14 -111
  256. package/dist/index277.js.map +1 -1
  257. package/dist/index278.js +528 -14
  258. package/dist/index278.js.map +1 -1
  259. package/dist/index279.js +111 -515
  260. package/dist/index279.js.map +1 -1
  261. package/dist/index280.js +117 -109
  262. package/dist/index280.js.map +1 -1
  263. package/dist/index281.js +20 -133
  264. package/dist/index281.js.map +1 -1
  265. package/dist/index289.js +4 -4
  266. package/dist/index292.js +1 -1
  267. package/dist/index293.js +2 -2
  268. package/dist/index295.js +1 -1
  269. package/dist/index296.js +1 -1
  270. package/dist/index297.js +1 -1
  271. package/dist/index298.js +1 -1
  272. package/dist/index299.js +1 -1
  273. package/dist/index300.js +1 -1
  274. package/dist/index304.js +68 -5
  275. package/dist/index304.js.map +1 -1
  276. package/dist/index305.js +30 -55
  277. package/dist/index305.js.map +1 -1
  278. package/dist/index306.js +9 -68
  279. package/dist/index306.js.map +1 -1
  280. package/dist/index307.js +148 -26
  281. package/dist/index307.js.map +1 -1
  282. package/dist/index308.js +108 -9
  283. package/dist/index308.js.map +1 -1
  284. package/dist/index309.js +5 -153
  285. package/dist/index309.js.map +1 -1
  286. package/dist/index31.js +5 -5
  287. package/dist/index310.js +54 -106
  288. package/dist/index310.js.map +1 -1
  289. package/dist/index36.js +1 -1
  290. package/dist/index37.js +2 -2
  291. package/dist/index40.js +2 -2
  292. package/dist/index41.js +20 -20
  293. package/dist/index45.js +1 -1
  294. package/dist/index46.js +1 -1
  295. package/dist/index49.js +1 -1
  296. package/dist/index50.js +1 -1
  297. package/dist/index51.js +205 -7
  298. package/dist/index51.js.map +1 -1
  299. package/dist/index52.js +2 -34
  300. package/dist/index52.js.map +1 -1
  301. package/dist/index53.js +2 -27
  302. package/dist/index53.js.map +1 -1
  303. package/dist/index54.js +6 -7
  304. package/dist/index54.js.map +1 -1
  305. package/dist/index55.js +33 -11
  306. package/dist/index55.js.map +1 -1
  307. package/dist/index56.js +27 -2
  308. package/dist/index56.js.map +1 -1
  309. package/dist/index57.js +8 -2
  310. package/dist/index57.js.map +1 -1
  311. package/dist/index58.js +12 -205
  312. package/dist/index58.js.map +1 -1
  313. package/dist/index59.js +3 -5
  314. package/dist/index59.js.map +1 -1
  315. package/dist/index60.js +47 -7
  316. package/dist/index60.js.map +1 -1
  317. package/dist/index61.js +50 -5
  318. package/dist/index61.js.map +1 -1
  319. package/dist/index62.js +8 -2
  320. package/dist/index62.js.map +1 -1
  321. package/dist/index63.js +15 -2
  322. package/dist/index63.js.map +1 -1
  323. package/dist/index64.js +133 -3
  324. package/dist/index64.js.map +1 -1
  325. package/dist/index65.js +10 -47
  326. package/dist/index65.js.map +1 -1
  327. package/dist/index66.js +214 -48
  328. package/dist/index66.js.map +1 -1
  329. package/dist/index67.js +13 -8
  330. package/dist/index67.js.map +1 -1
  331. package/dist/index68.js +45 -13
  332. package/dist/index68.js.map +1 -1
  333. package/dist/index69.js +47 -131
  334. package/dist/index69.js.map +1 -1
  335. package/dist/index70.js +4 -11
  336. package/dist/index70.js.map +1 -1
  337. package/dist/index71.js +5 -216
  338. package/dist/index71.js.map +1 -1
  339. package/dist/index72.js +28 -13
  340. package/dist/index72.js.map +1 -1
  341. package/dist/index73.js +49 -46
  342. package/dist/index73.js.map +1 -1
  343. package/dist/index74.js +9 -50
  344. package/dist/index74.js.map +1 -1
  345. package/dist/index75.js +2 -4
  346. package/dist/index75.js.map +1 -1
  347. package/dist/index76.js +2 -6
  348. package/dist/index76.js.map +1 -1
  349. package/dist/index77.js +6 -28
  350. package/dist/index77.js.map +1 -1
  351. package/dist/index78.js +8 -50
  352. package/dist/index78.js.map +1 -1
  353. package/dist/index79.js +6 -9
  354. package/dist/index79.js.map +1 -1
  355. package/dist/index80.js +599 -40
  356. package/dist/index80.js.map +1 -1
  357. package/package.json +1 -1
  358. package/dist/helpers/isMobileDevice.test.d.ts +0 -2
  359. package/dist/helpers/isMobileDevice.test.d.ts.map +0 -1
  360. package/dist/helpers/useScrollPagination.test.d.ts +0 -2
  361. package/dist/helpers/useScrollPagination.test.d.ts.map +0 -1
package/dist/index176.js CHANGED
@@ -1,25 +1,13 @@
1
- import * as n from "react";
2
- import { Primitive as p } from "./index52.js";
3
- import { j as o } from "./index30.js";
4
- var v = "Arrow", e = n.forwardRef((r, i) => {
5
- const { children: t, width: s = 10, height: a = 5, ...m } = r;
6
- return /* @__PURE__ */ o.jsx(
7
- p.svg,
8
- {
9
- ...m,
10
- ref: i,
11
- width: s,
12
- height: a,
13
- viewBox: "0 0 30 10",
14
- preserveAspectRatio: "none",
15
- children: r.asChild ? t : /* @__PURE__ */ o.jsx("polygon", { points: "0,0 30,0 15,10" })
16
- }
17
- );
18
- });
19
- e.displayName = v;
20
- var h = e;
1
+ import o from "./index177.js";
2
+ function i(n, a) {
3
+ var r = a.nationalNumber, e = a.metadata, t = e.getCountryCodesForCallingCode(n);
4
+ if (t)
5
+ return t.length === 1 ? t[0] : o(r, {
6
+ countries: t,
7
+ metadata: e.metadata
8
+ });
9
+ }
21
10
  export {
22
- e as Arrow,
23
- h as Root
11
+ i as default
24
12
  };
25
13
  //# sourceMappingURL=index176.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index176.js","sources":["../../../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// src/arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","Arrow","React","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","Root"],"mappings":";;;AAIA,IAAIA,IAAO,SACPC,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACpD,QAAM,EAAE,UAAAC,GAAU,OAAAC,IAAQ,IAAI,QAAAC,IAAS,GAAG,GAAGC,EAAU,IAAKL;AAC5D,SAAuBM,gBAAAA,EAAAA;AAAAA,IACrBC,EAAU;AAAA,IACV;AAAA,MACE,GAAGF;AAAA,MACH,KAAKJ;AAAA,MACL,OAAAE;AAAA,MACA,QAAAC;AAAA,MACA,SAAS;AAAA,MACT,qBAAqB;AAAA,MACrB,UAAUJ,EAAM,UAAUE,IAA2BI,gBAAAA,EAAAA,IAAI,WAAW,EAAE,QAAQ,iBAAgB,CAAE;AAAA,IACtG;AAAA,EACA;AACA,CAAC;AACDR,EAAM,cAAcD;AACjB,IAACW,IAAOV;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index176.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js"],"sourcesContent":["import getCountryByNationalNumber from './getCountryByNationalNumber.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Returns the exact country for the `nationalNumber`\n// that belongs to the specified \"country calling code\".\nexport default function getCountryByCallingCode(callingCode, _ref) {\n var nationalPhoneNumber = _ref.nationalNumber,\n metadata = _ref.metadata;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n }\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return;\n }\n // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n return getCountryByNationalNumber(nationalPhoneNumber, {\n countries: possibleCountries,\n metadata: metadata.metadata\n });\n}\n//# sourceMappingURL=getCountryByCallingCode.js.map"],"names":["getCountryByCallingCode","callingCode","_ref","nationalPhoneNumber","metadata","possibleCountries","getCountryByNationalNumber"],"mappings":";AAKe,SAASA,EAAwBC,GAAaC,GAAM;AACjE,MAAIC,IAAsBD,EAAK,gBAC7BE,IAAWF,EAAK,UAOdG,IAAoBD,EAAS,8BAA8BH,CAAW;AAC1E,MAAKI;AAKL,WAAIA,EAAkB,WAAW,IACxBA,EAAkB,CAAC,IAErBC,EAA2BH,GAAqB;AAAA,MACrD,WAAWE;AAAA,MACX,UAAUD,EAAS;AAAA,IACvB,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index177.js CHANGED
@@ -1,28 +1,46 @@
1
- import * as h from "react";
2
- import { useLayoutEffect as z } from "./index75.js";
3
- function c(r) {
4
- const [d, e] = h.useState(void 0);
5
- return z(() => {
6
- if (r) {
7
- e({ width: r.offsetWidth, height: r.offsetHeight });
8
- const f = new ResizeObserver((i) => {
9
- if (!Array.isArray(i) || !i.length)
10
- return;
11
- const b = i[0];
12
- let o, t;
13
- if ("borderBoxSize" in b) {
14
- const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
- o = u.inlineSize, t = u.blockSize;
16
- } else
17
- o = r.offsetWidth, t = r.offsetHeight;
18
- e({ width: o, height: t });
19
- });
20
- return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
- } else
22
- e(void 0);
23
- }, [r]), d;
1
+ import l from "./index172.js";
2
+ import f from "./index249.js";
3
+ function d(e, r) {
4
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
+ if (t) return (t = t.call(e)).next.bind(t);
6
+ if (Array.isArray(e) || (t = s(e)) || r) {
7
+ t && (e = t);
8
+ var a = 0;
9
+ return function() {
10
+ return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
11
+ };
12
+ }
13
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15
+ }
16
+ function s(e, r) {
17
+ if (e) {
18
+ if (typeof e == "string") return i(e, r);
19
+ var t = {}.toString.call(e).slice(8, -1);
20
+ return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? i(e, r) : void 0;
21
+ }
22
+ }
23
+ function i(e, r) {
24
+ (r == null || r > e.length) && (r = e.length);
25
+ for (var t = 0, a = Array(r); t < r; t++) a[t] = e[t];
26
+ return a;
27
+ }
28
+ function y(e, r) {
29
+ var t = r.countries, a = r.metadata;
30
+ a = new l(a);
31
+ for (var u = d(t), o; !(o = u()).done; ) {
32
+ var n = o.value;
33
+ if (a.selectNumberingPlan(n), a.leadingDigits()) {
34
+ if (e && e.search(a.leadingDigits()) === 0)
35
+ return n;
36
+ } else if (f({
37
+ phone: e,
38
+ country: n
39
+ }, void 0, a.metadata))
40
+ return n;
41
+ }
24
42
  }
25
43
  export {
26
- c as useSize
44
+ y as default
27
45
  };
28
46
  //# sourceMappingURL=index177.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index177.js","sources":["../../../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QACtB;AACE,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MAC3B,CAAC;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IAC/C;AACE,MAAAE,EAAQ,MAAM;AAAA,EAElB,GAAG,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index177.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport getNumberType from './getNumberType.js';\n\n// Returns the exact country that the `nationalPhoneNumber` belongs to\n// in cases of ambiguity, i.e. when multiple countries share the same \"country calling code\".\nexport default function getCountryByNationalNumber(nationalPhoneNumber, _ref) {\n var countries = _ref.countries,\n metadata = _ref.metadata;\n // Re-create `metadata` because it will be selecting a `country`.\n metadata = new Metadata(metadata);\n\n // const matchingCountries = []\n\n for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;) {\n var country = _step.value;\n metadata.selectNumberingPlan(country);\n // \"Leading digits\" patterns are only defined for about 20% of all countries.\n // By definition, matching \"leading digits\" is a sufficient but not a necessary\n // condition for a phone number to belong to a country.\n // The point of \"leading digits\" check is that it's the fastest one to get a match.\n // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n // I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n // because of the intended use of that feature.\n if (metadata.leadingDigits()) {\n if (nationalPhoneNumber && nationalPhoneNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n }\n // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalPhoneNumber,\n country: country\n }, undefined, metadata.metadata)) {\n // When multiple countries share the same \"country calling code\",\n // type patterns aren't guaranteed to be unique among them.\n // For example, both `US` and `CA` have the same pattern for `toll_free` numbers.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417147572\n //\n // That means that this `if` condition could be `true` for multiple countries from the list.\n // Currently, it just returns the first one, which is also the \"main\" country for the \"country calling code\".\n // In an example with `toll_free` numbers above, `\"US\"` would be returned even though\n // it could as well be `\"CA\"`.\n //\n // There was also a time when this attempted to be overly smart\n // and kept track of all such multiple matching countries\n // and then picked the one that matched the `defaultCountry`, if provided.\n // For example, with `toll_free` numbers above, and with `defaultCountry: \"CA\"`,\n // it would've returned `\"CA\"` instead of `\"US\"`.\n // Later it turned out that such \"overly smart\" behavior turned out to be just confusing,\n // so this \"overly smart\" country detection was reverted to returning the \"main\" country\n // for the \"country calling code\".\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/154\n //\n return country;\n //\n // The \"overly smart\" behavior code:\n //\n // if (defaultCountry) {\n // \tif (country === defaultCountry) {\n // \t\treturn country\n // \t} else {\n // \t\tmatchingCountries.push(country)\n // \t}\n // } else {\n // \treturn country\n // }\n }\n }\n\n // // Return the first (\"main\") one of the `matchingCountries`.\n // if (matchingCountries.length > 0) {\n // \treturn matchingCountries[0]\n // }\n}\n//# sourceMappingURL=getCountryByNationalNumber.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","getCountryByNationalNumber","nationalPhoneNumber","_ref","countries","metadata","Metadata","_iterator","_step","country","getNumberType"],"mappings":";;AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAI,IAAmB,OAAO,SAAtB,OAAgCD,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAI,EAAG,SAAQ,IAAI,EAAE,KAAKA,CAAC,GAAG,KAAK,KAAK,CAAC;AAAG,MAAI,MAAM,QAAQA,CAAC,MAAM,IAAIE,EAA4BF,CAAC,MAAMC,GAAuC;AAAE,UAAMD,IAAI;AAAI,QAAIG,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKH,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEG,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BF,GAAGI,GAAG;AAAE,MAAIJ,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOK,EAAkBL,GAAGI,CAAC;AAAG,QAAI,IAAI,CAAA,EAAG,SAAS,KAAKJ,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoB,MAAb,YAAkBA,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAKA,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAIK,EAAkBL,GAAGI,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBL,GAAGI,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIJ,EAAE,YAAYI,IAAIJ,EAAE;AAAS,WAASC,IAAI,GAAGK,IAAI,MAAMF,CAAC,GAAGH,IAAIG,GAAGH,IAAK,CAAAK,EAAEL,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAOK;AAAG;AAMpI,SAASC,EAA2BC,GAAqBC,GAAM;AAC5E,MAAIC,IAAYD,EAAK,WACnBE,IAAWF,EAAK;AAElB,EAAAE,IAAW,IAAIC,EAASD,CAAQ;AAIhC,WAASE,IAAYd,EAAgCW,CAAS,GAAGI,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AACpG,QAAIE,IAAUD,EAAM;AASpB,QARAH,EAAS,oBAAoBI,CAAO,GAQhCJ,EAAS;AACX,UAAIH,KAAuBA,EAAoB,OAAOG,EAAS,cAAa,CAAE,MAAM;AAClF,eAAOI;AAAA,eAKFC,EAAc;AAAA,MACrB,OAAOR;AAAA,MACP,SAASO;AAAA,IACf,GAAO,QAAWJ,EAAS,QAAQ;AAqB7B,aAAOI;AAAA,EAcX;AAMF;","x_google_ignoreList":[0]}
package/dist/index178.js CHANGED
@@ -1,404 +1,8 @@
1
- import { computePosition as st, offset as rt, shift as ct, flip as lt, size as ft, hide as ut, arrow as ht, limitShift as at } from "./index279.js";
2
- import { createCoords as y, round as z, max as E, min as N, rectToClientRect as J, floor as D } from "./index280.js";
3
- import { isElement as v, getDocumentElement as b, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as T, getWindow as O, isTopLayer as V, getParentNode as S, isLastTraversableNode as A, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "./index281.js";
4
- function Z(t) {
5
- const e = R(t);
6
- let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
7
- const n = T(t), r = n ? t.offsetWidth : i, s = n ? t.offsetHeight : o, c = z(i) !== r || z(o) !== s;
8
- return c && (i = r, o = s), {
9
- width: i,
10
- height: o,
11
- $: c
12
- };
1
+ var t = {}.constructor;
2
+ function n(r) {
3
+ return r != null && r.constructor === t;
13
4
  }
14
- function X(t) {
15
- return v(t) ? t : t.contextElement;
16
- }
17
- function F(t) {
18
- const e = X(t);
19
- if (!T(e))
20
- return y(1);
21
- const i = e.getBoundingClientRect(), {
22
- width: o,
23
- height: n,
24
- $: r
25
- } = Z(e);
26
- let s = (r ? z(i.width) : i.width) / o, c = (r ? z(i.height) : i.height) / n;
27
- return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
- x: s,
29
- y: c
30
- };
31
- }
32
- const pt = /* @__PURE__ */ y(0);
33
- function tt(t) {
34
- const e = O(t);
35
- return !Y() || !e.visualViewport ? pt : {
36
- x: e.visualViewport.offsetLeft,
37
- y: e.visualViewport.offsetTop
38
- };
39
- }
40
- function mt(t, e, i) {
41
- return e === void 0 && (e = !1), !i || e && i !== O(t) ? !1 : e;
42
- }
43
- function L(t, e, i, o) {
44
- e === void 0 && (e = !1), i === void 0 && (i = !1);
45
- const n = t.getBoundingClientRect(), r = X(t);
46
- let s = y(1);
47
- e && (o ? v(o) && (s = F(o)) : s = F(t));
48
- const c = mt(r, i, o) ? tt(r) : y(0);
49
- let l = (n.left + c.x) / s.x, f = (n.top + c.y) / s.y, u = n.width / s.x, a = n.height / s.y;
50
- if (r) {
51
- const d = O(r), h = o && v(o) ? O(o) : o;
52
- let m = d, p = U(m);
53
- for (; p && o && h !== m; ) {
54
- const w = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
55
- l *= w.x, f *= w.y, u *= w.x, a *= w.y, l += C, f += W, m = O(p), p = U(m);
56
- }
57
- }
58
- return J({
59
- width: u,
60
- height: a,
61
- x: l,
62
- y: f
63
- });
64
- }
65
- function I(t, e) {
66
- const i = H(t).scrollLeft;
67
- return e ? e.left + i : L(b(t)).left + i;
68
- }
69
- function et(t, e) {
70
- const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - I(t, i), n = i.top + e.scrollTop;
71
- return {
72
- x: o,
73
- y: n
74
- };
75
- }
76
- function wt(t) {
77
- let {
78
- elements: e,
79
- rect: i,
80
- offsetParent: o,
81
- strategy: n
82
- } = t;
83
- const r = n === "fixed", s = b(o), c = e ? V(e.floating) : !1;
84
- if (o === s || c && r)
85
- return i;
86
- let l = {
87
- scrollLeft: 0,
88
- scrollTop: 0
89
- }, f = y(1);
90
- const u = y(0), a = T(o);
91
- if ((a || !a && !r) && ((_(o) !== "body" || q(s)) && (l = H(o)), a)) {
92
- const h = L(o);
93
- f = F(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
94
- }
95
- const d = s && !a && !r ? et(s, l) : y(0);
96
- return {
97
- width: i.width * f.x,
98
- height: i.height * f.y,
99
- x: i.x * f.x - l.scrollLeft * f.x + u.x + d.x,
100
- y: i.y * f.y - l.scrollTop * f.y + u.y + d.y
101
- };
102
- }
103
- function yt(t) {
104
- return Array.from(t.getClientRects());
105
- }
106
- function xt(t) {
107
- const e = b(t), i = H(t), o = t.ownerDocument.body, n = E(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = E(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
108
- let s = -i.scrollLeft + I(t);
109
- const c = -i.scrollTop;
110
- return R(o).direction === "rtl" && (s += E(e.clientWidth, o.clientWidth) - n), {
111
- width: n,
112
- height: r,
113
- x: s,
114
- y: c
115
- };
116
- }
117
- const K = 25;
118
- function vt(t, e) {
119
- const i = O(t), o = b(t), n = i.visualViewport;
120
- let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
121
- if (n) {
122
- r = n.width, s = n.height;
123
- const u = Y();
124
- (!u || u && e === "fixed") && (c = n.offsetLeft, l = n.offsetTop);
125
- }
126
- const f = I(o);
127
- if (f <= 0) {
128
- const u = o.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(o.clientWidth - a.clientWidth - h);
129
- m <= K && (r -= m);
130
- } else f <= K && (r += f);
131
- return {
132
- width: r,
133
- height: s,
134
- x: c,
135
- y: l
136
- };
137
- }
138
- function Rt(t, e) {
139
- const i = L(t, !0, e === "fixed"), o = i.top + t.clientTop, n = i.left + t.clientLeft, r = T(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = n * r.x, f = o * r.y;
140
- return {
141
- width: s,
142
- height: c,
143
- x: l,
144
- y: f
145
- };
146
- }
147
- function j(t, e, i) {
148
- let o;
149
- if (e === "viewport")
150
- o = vt(t, i);
151
- else if (e === "document")
152
- o = xt(b(t));
153
- else if (v(e))
154
- o = Rt(e, i);
155
- else {
156
- const n = tt(t);
157
- o = {
158
- x: e.x - n.x,
159
- y: e.y - n.y,
160
- width: e.width,
161
- height: e.height
162
- };
163
- }
164
- return J(o);
165
- }
166
- function it(t, e) {
167
- const i = S(t);
168
- return i === e || !v(i) || A(i) ? !1 : R(i).position === "fixed" || it(i, e);
169
- }
170
- function bt(t, e) {
171
- const i = e.get(t);
172
- if (i)
173
- return i;
174
- let o = $(t, [], !1).filter((c) => v(c) && _(c) !== "body"), n = null;
175
- const r = R(t).position === "fixed";
176
- let s = r ? S(t) : t;
177
- for (; v(s) && !A(s); ) {
178
- const c = R(s), l = Q(s);
179
- !l && c.position === "fixed" && (n = null), (r ? !l && !n : !l && c.position === "static" && !!n && (n.position === "absolute" || n.position === "fixed") || q(s) && !l && it(t, s)) ? o = o.filter((u) => u !== s) : n = c, s = S(s);
180
- }
181
- return e.set(t, o), o;
182
- }
183
- function Ct(t) {
184
- let {
185
- element: e,
186
- boundary: i,
187
- rootBoundary: o,
188
- strategy: n
189
- } = t;
190
- const s = [...i === "clippingAncestors" ? V(e) ? [] : bt(e, this._c) : [].concat(i), o], c = j(e, s[0], n);
191
- let l = c.top, f = c.right, u = c.bottom, a = c.left;
192
- for (let d = 1; d < s.length; d++) {
193
- const h = j(e, s[d], n);
194
- l = E(h.top, l), f = N(h.right, f), u = N(h.bottom, u), a = E(h.left, a);
195
- }
196
- return {
197
- width: f - a,
198
- height: u - l,
199
- x: a,
200
- y: l
201
- };
202
- }
203
- function Ot(t) {
204
- const {
205
- width: e,
206
- height: i
207
- } = Z(t);
208
- return {
209
- width: e,
210
- height: i
211
- };
212
- }
213
- function Lt(t, e, i) {
214
- const o = T(e), n = b(e), r = i === "fixed", s = L(t, !0, r, e);
215
- let c = {
216
- scrollLeft: 0,
217
- scrollTop: 0
218
- };
219
- const l = y(0);
220
- function f() {
221
- l.x = I(n);
222
- }
223
- if (o || !o && !r)
224
- if ((_(e) !== "body" || q(n)) && (c = H(e)), o) {
225
- const h = L(e, !0, r, e);
226
- l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
227
- } else n && f();
228
- r && !o && n && f();
229
- const u = n && !o && !r ? et(n, c) : y(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
230
- return {
231
- x: a,
232
- y: d,
233
- width: s.width,
234
- height: s.height
235
- };
236
- }
237
- function M(t) {
238
- return R(t).position === "static";
239
- }
240
- function G(t, e) {
241
- if (!T(t) || R(t).position === "fixed")
242
- return null;
243
- if (e)
244
- return e(t);
245
- let i = t.offsetParent;
246
- return b(t) === i && (i = i.ownerDocument.body), i;
247
- }
248
- function ot(t, e) {
249
- const i = O(t);
250
- if (V(t))
251
- return i;
252
- if (!T(t)) {
253
- let n = S(t);
254
- for (; n && !A(n); ) {
255
- if (v(n) && !M(n))
256
- return n;
257
- n = S(n);
258
- }
259
- return i;
260
- }
261
- let o = G(t, e);
262
- for (; o && dt(o) && M(o); )
263
- o = G(o, e);
264
- return o && A(o) && M(o) && !Q(o) ? i : o || gt(t) || i;
265
- }
266
- const Tt = async function(t) {
267
- const e = this.getOffsetParent || ot, i = this.getDimensions, o = await i(t.floating);
268
- return {
269
- reference: Lt(t.reference, await e(t.floating), t.strategy),
270
- floating: {
271
- x: 0,
272
- y: 0,
273
- width: o.width,
274
- height: o.height
275
- }
276
- };
277
- };
278
- function Et(t) {
279
- return R(t).direction === "rtl";
280
- }
281
- const Ft = {
282
- convertOffsetParentRelativeRectToViewportRelativeRect: wt,
283
- getDocumentElement: b,
284
- getClippingRect: Ct,
285
- getOffsetParent: ot,
286
- getElementRects: Tt,
287
- getClientRects: yt,
288
- getDimensions: Ot,
289
- getScale: F,
290
- isElement: v,
291
- isRTL: Et
292
- };
293
- function nt(t, e) {
294
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
295
- }
296
- function St(t, e) {
297
- let i = null, o;
298
- const n = b(t);
299
- function r() {
300
- var c;
301
- clearTimeout(o), (c = i) == null || c.disconnect(), i = null;
302
- }
303
- function s(c, l) {
304
- c === void 0 && (c = !1), l === void 0 && (l = 1), r();
305
- const f = t.getBoundingClientRect(), {
306
- left: u,
307
- top: a,
308
- width: d,
309
- height: h
310
- } = f;
311
- if (c || e(), !d || !h)
312
- return;
313
- const m = D(a), p = D(n.clientWidth - (u + d)), w = D(n.clientHeight - (a + h)), g = D(u), C = {
314
- rootMargin: -m + "px " + -p + "px " + -w + "px " + -g + "px",
315
- threshold: E(0, N(1, l)) || 1
316
- };
317
- let W = !0;
318
- function k(P) {
319
- const B = P[0].intersectionRatio;
320
- if (B !== l) {
321
- if (!W)
322
- return s();
323
- B ? s(!1, B) : o = setTimeout(() => {
324
- s(!1, 1e-7);
325
- }, 1e3);
326
- }
327
- B === 1 && !nt(f, t.getBoundingClientRect()) && s(), W = !1;
328
- }
329
- try {
330
- i = new IntersectionObserver(k, {
331
- ...C,
332
- // Handle <iframe>s
333
- root: n.ownerDocument
334
- });
335
- } catch {
336
- i = new IntersectionObserver(k, C);
337
- }
338
- i.observe(t);
339
- }
340
- return s(!0), r;
341
- }
342
- function zt(t, e, i, o) {
343
- o === void 0 && (o = {});
344
- const {
345
- ancestorScroll: n = !0,
346
- ancestorResize: r = !0,
347
- elementResize: s = typeof ResizeObserver == "function",
348
- layoutShift: c = typeof IntersectionObserver == "function",
349
- animationFrame: l = !1
350
- } = o, f = X(t), u = n || r ? [...f ? $(f) : [], ...e ? $(e) : []] : [];
351
- u.forEach((g) => {
352
- n && g.addEventListener("scroll", i, {
353
- passive: !0
354
- }), r && g.addEventListener("resize", i);
355
- });
356
- const a = f && c ? St(f, i) : null;
357
- let d = -1, h = null;
358
- s && (h = new ResizeObserver((g) => {
359
- let [x] = g;
360
- x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
361
- var C;
362
- (C = h) == null || C.observe(e);
363
- })), i();
364
- }), f && !l && h.observe(f), e && h.observe(e));
365
- let m, p = l ? L(t) : null;
366
- l && w();
367
- function w() {
368
- const g = L(t);
369
- p && !nt(p, g) && i(), p = g, m = requestAnimationFrame(w);
370
- }
371
- return i(), () => {
372
- var g;
373
- u.forEach((x) => {
374
- n && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
375
- }), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(m);
376
- };
377
- }
378
- const At = rt, Ht = ct, It = lt, Mt = ft, Nt = ut, $t = ht, Vt = at, _t = (t, e, i) => {
379
- const o = /* @__PURE__ */ new Map(), n = {
380
- platform: Ft,
381
- ...i
382
- }, r = {
383
- ...n.platform,
384
- _c: o
385
- };
386
- return st(t, e, {
387
- ...n,
388
- platform: r
389
- });
390
- };
391
5
  export {
392
- $t as arrow,
393
- zt as autoUpdate,
394
- _t as computePosition,
395
- It as flip,
396
- $ as getOverflowAncestors,
397
- Nt as hide,
398
- Vt as limitShift,
399
- At as offset,
400
- Ft as platform,
401
- Ht as shift,
402
- Mt as size
6
+ n as default
403
7
  };
404
8
  //# sourceMappingURL=index178.js.map