@rpcbase/ui 0.234.0 → 0.235.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 (270) hide show
  1. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  2. package/dist/index151.js +4 -4
  3. package/dist/index156.js +1 -1
  4. package/dist/index157.js +1 -1
  5. package/dist/index164.js +1 -1
  6. package/dist/index165.js +6 -6
  7. package/dist/index167.js +4 -4
  8. package/dist/index169.js +1 -1
  9. package/dist/index172.js +9 -9
  10. package/dist/index175.js +1 -1
  11. package/dist/index176.js +4 -4
  12. package/dist/index178.js +1 -1
  13. package/dist/index182.js +1 -1
  14. package/dist/index184.js +12 -12
  15. package/dist/index187.js +6 -6
  16. package/dist/index189.js +3 -3
  17. package/dist/index190.js +1 -1
  18. package/dist/index193.js +3 -3
  19. package/dist/index194.js +5 -5
  20. package/dist/index256.js +20 -14
  21. package/dist/index256.js.map +1 -1
  22. package/dist/index257.js +58 -146
  23. package/dist/index257.js.map +1 -1
  24. package/dist/index258.js +6 -30
  25. package/dist/index258.js.map +1 -1
  26. package/dist/index259.js +11 -9
  27. package/dist/index259.js.map +1 -1
  28. package/dist/index260.js +46 -44
  29. package/dist/index260.js.map +1 -1
  30. package/dist/index261.js +4 -12
  31. package/dist/index261.js.map +1 -1
  32. package/dist/index262.js +28 -43
  33. package/dist/index262.js.map +1 -1
  34. package/dist/index263.js +14 -93
  35. package/dist/index263.js.map +1 -1
  36. package/dist/index264.js +5 -86
  37. package/dist/index264.js.map +1 -1
  38. package/dist/index265.js +21 -105
  39. package/dist/index265.js.map +1 -1
  40. package/dist/index266.js +50 -51
  41. package/dist/index266.js.map +1 -1
  42. package/dist/index267.js +25 -11
  43. package/dist/index267.js.map +1 -1
  44. package/dist/index268.js +41 -37
  45. package/dist/index268.js.map +1 -1
  46. package/dist/index269.js +39 -8
  47. package/dist/index269.js.map +1 -1
  48. package/dist/index270.js +45 -117
  49. package/dist/index270.js.map +1 -1
  50. package/dist/index271.js +20 -17
  51. package/dist/index271.js.map +1 -1
  52. package/dist/index272.js +69 -14
  53. package/dist/index272.js.map +1 -1
  54. package/dist/index273.js +17 -3
  55. package/dist/index273.js.map +1 -1
  56. package/dist/index274.js +11 -36
  57. package/dist/index274.js.map +1 -1
  58. package/dist/index275.js +27 -20
  59. package/dist/index275.js.map +1 -1
  60. package/dist/index276.js +13 -9
  61. package/dist/index276.js.map +1 -1
  62. package/dist/index277.js +18 -8
  63. package/dist/index277.js.map +1 -1
  64. package/dist/index278.js +35 -18
  65. package/dist/index278.js.map +1 -1
  66. package/dist/index279.js +260 -26
  67. package/dist/index279.js.map +1 -1
  68. package/dist/index280.js +277 -15
  69. package/dist/index280.js.map +1 -1
  70. package/dist/index281.js +69 -20
  71. package/dist/index281.js.map +1 -1
  72. package/dist/index282.js +92 -59
  73. package/dist/index282.js.map +1 -1
  74. package/dist/index283.js +83 -6
  75. package/dist/index283.js.map +1 -1
  76. package/dist/index284.js +3 -11
  77. package/dist/index284.js.map +1 -1
  78. package/dist/index285.js +27 -48
  79. package/dist/index285.js.map +1 -1
  80. package/dist/index286.js +17 -4
  81. package/dist/index286.js.map +1 -1
  82. package/dist/index287.js +35 -30
  83. package/dist/index287.js.map +1 -1
  84. package/dist/index288.js +15 -15
  85. package/dist/index288.js.map +1 -1
  86. package/dist/index289.js +3 -5
  87. package/dist/index289.js.map +1 -1
  88. package/dist/index290.js +25 -20
  89. package/dist/index290.js.map +1 -1
  90. package/dist/index291.js +26 -49
  91. package/dist/index291.js.map +1 -1
  92. package/dist/index292.js +4 -26
  93. package/dist/index292.js.map +1 -1
  94. package/dist/index293.js +76 -39
  95. package/dist/index293.js.map +1 -1
  96. package/dist/index294.js +265 -35
  97. package/dist/index294.js.map +1 -1
  98. package/dist/index295.js +12 -45
  99. package/dist/index295.js.map +1 -1
  100. package/dist/index296.js +10 -20
  101. package/dist/index296.js.map +1 -1
  102. package/dist/index297.js +25 -70
  103. package/dist/index297.js.map +1 -1
  104. package/dist/index298.js +16 -17
  105. package/dist/index298.js.map +1 -1
  106. package/dist/index299.js +125 -11
  107. package/dist/index299.js.map +1 -1
  108. package/dist/index300.js +5 -27
  109. package/dist/index300.js.map +1 -1
  110. package/dist/index301.js +39 -12
  111. package/dist/index301.js.map +1 -1
  112. package/dist/index302.js +63 -16
  113. package/dist/index302.js.map +1 -1
  114. package/dist/index303.js +13 -36
  115. package/dist/index303.js.map +1 -1
  116. package/dist/index304.js +7 -262
  117. package/dist/index304.js.map +1 -1
  118. package/dist/index305.js +5 -278
  119. package/dist/index305.js.map +1 -1
  120. package/dist/index306.js +3 -68
  121. package/dist/index306.js.map +1 -1
  122. package/dist/index307.js +10 -99
  123. package/dist/index307.js.map +1 -1
  124. package/dist/index308.js +7 -83
  125. package/dist/index308.js.map +1 -1
  126. package/dist/index309.js +133 -3
  127. package/dist/index309.js.map +1 -1
  128. package/dist/index310.js +399 -29
  129. package/dist/index310.js.map +1 -1
  130. package/dist/index311.js +52 -16
  131. package/dist/index311.js.map +1 -1
  132. package/dist/index312.js +12 -35
  133. package/dist/index312.js.map +1 -1
  134. package/dist/index313.js +11 -16
  135. package/dist/index313.js.map +1 -1
  136. package/dist/index314.js +13 -3
  137. package/dist/index314.js.map +1 -1
  138. package/dist/index315.js +150 -22
  139. package/dist/index315.js.map +1 -1
  140. package/dist/index316.js +27 -25
  141. package/dist/index316.js.map +1 -1
  142. package/dist/index317.js +10 -4
  143. package/dist/index317.js.map +1 -1
  144. package/dist/index318.js +44 -74
  145. package/dist/index318.js.map +1 -1
  146. package/dist/index319.js +10 -268
  147. package/dist/index319.js.map +1 -1
  148. package/dist/index320.js +44 -11
  149. package/dist/index320.js.map +1 -1
  150. package/dist/index321.js +95 -10
  151. package/dist/index321.js.map +1 -1
  152. package/dist/index322.js +86 -25
  153. package/dist/index322.js.map +1 -1
  154. package/dist/index323.js +104 -15
  155. package/dist/index323.js.map +1 -1
  156. package/dist/index324.js +50 -123
  157. package/dist/index324.js.map +1 -1
  158. package/dist/index325.js +11 -5
  159. package/dist/index325.js.map +1 -1
  160. package/dist/index326.js +34 -37
  161. package/dist/index326.js.map +1 -1
  162. package/dist/index327.js +8 -65
  163. package/dist/index327.js.map +1 -1
  164. package/dist/index328.js +116 -13
  165. package/dist/index328.js.map +1 -1
  166. package/dist/index329.js +17 -7
  167. package/dist/index329.js.map +1 -1
  168. package/dist/index330.js +15 -5
  169. package/dist/index330.js.map +1 -1
  170. package/dist/index331.js +3 -3
  171. package/dist/index331.js.map +1 -1
  172. package/dist/index332.js +36 -10
  173. package/dist/index332.js.map +1 -1
  174. package/dist/index333.js +20 -7
  175. package/dist/index333.js.map +1 -1
  176. package/dist/index334.js +9 -133
  177. package/dist/index334.js.map +1 -1
  178. package/dist/index335.js +7 -398
  179. package/dist/index335.js.map +1 -1
  180. package/dist/index336.js +8 -52
  181. package/dist/index336.js.map +1 -1
  182. package/dist/index337.js +11 -11
  183. package/dist/index337.js.map +1 -1
  184. package/dist/index338.js +8 -11
  185. package/dist/index338.js.map +1 -1
  186. package/dist/index339.js +13 -8
  187. package/dist/index339.js.map +1 -1
  188. package/dist/index340.js +3 -11
  189. package/dist/index340.js.map +1 -1
  190. package/dist/index341.js +3 -8
  191. package/dist/index341.js.map +1 -1
  192. package/dist/index342.js +16 -12
  193. package/dist/index342.js.map +1 -1
  194. package/dist/index343.js +19 -3
  195. package/dist/index343.js.map +1 -1
  196. package/dist/index344.js +28 -3
  197. package/dist/index344.js.map +1 -1
  198. package/dist/index345.js +15 -16
  199. package/dist/index345.js.map +1 -1
  200. package/dist/index346.js +2 -2
  201. package/dist/index347.js +8 -8
  202. package/dist/index348.js +4 -4
  203. package/dist/index349.js +3 -3
  204. package/dist/index350.js +5 -5
  205. package/dist/index352.js +1 -1
  206. package/dist/index362.js +10 -19
  207. package/dist/index362.js.map +1 -1
  208. package/dist/index363.js +17 -4
  209. package/dist/index363.js.map +1 -1
  210. package/dist/index364.js +5 -11
  211. package/dist/index364.js.map +1 -1
  212. package/dist/index365.js +4 -17
  213. package/dist/index365.js.map +1 -1
  214. package/dist/index366.js +20 -5
  215. package/dist/index366.js.map +1 -1
  216. package/dist/index367.js +43 -19
  217. package/dist/index367.js.map +1 -1
  218. package/dist/index368.js +13 -40
  219. package/dist/index368.js.map +1 -1
  220. package/dist/index369.js +4 -17
  221. package/dist/index369.js.map +1 -1
  222. package/dist/index370.js +200 -4
  223. package/dist/index370.js.map +1 -1
  224. package/dist/index371.js +74 -197
  225. package/dist/index371.js.map +1 -1
  226. package/dist/index372.js +20 -77
  227. package/dist/index372.js.map +1 -1
  228. package/dist/index374.js +3 -3
  229. package/dist/index375.js +1 -1
  230. package/dist/index376.js +3 -3
  231. package/dist/index378.js +2 -2
  232. package/dist/index380.js +1 -1
  233. package/dist/index381.js +2 -2
  234. package/dist/index407.js +1 -1
  235. package/dist/index417.js +1 -1
  236. package/dist/index418.js +1 -1
  237. package/dist/index421.js +1 -1
  238. package/dist/index422.js +1 -1
  239. package/dist/index427.js +2 -2
  240. package/dist/index429.js +2 -2
  241. package/dist/index44.js +1 -1
  242. package/dist/index45.js +2 -2
  243. package/dist/index49.js +28 -28
  244. package/dist/index50.js +21 -21
  245. package/dist/index51.js +1 -1
  246. package/dist/index52.js +8 -8
  247. package/dist/index53.js +2 -2
  248. package/dist/index55.js +17 -17
  249. package/dist/index56.js +4 -4
  250. package/dist/index57.js +3 -3
  251. package/dist/index58.js +7 -7
  252. package/dist/index59.js +4 -4
  253. package/dist/index60.js +12 -12
  254. package/dist/index61.js +2 -2
  255. package/dist/index62.js +2 -2
  256. package/dist/index70.js +1 -1
  257. package/dist/index71.js +1 -1
  258. package/dist/index74.js +2 -6
  259. package/dist/index74.js.map +1 -1
  260. package/dist/index75.js +2 -8
  261. package/dist/index75.js.map +1 -1
  262. package/dist/index76.js +5 -5
  263. package/dist/index76.js.map +1 -1
  264. package/dist/index77.js +8 -2
  265. package/dist/index77.js.map +1 -1
  266. package/dist/index78.js +6 -2
  267. package/dist/index78.js.map +1 -1
  268. package/dist/index8.js +533 -698
  269. package/dist/index8.js.map +1 -1
  270. package/package.json +1 -1
package/dist/index324.js CHANGED
@@ -1,129 +1,56 @@
1
- const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
2
- x: t,
3
- y: t
4
- }), p = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- };
10
- function L(t, n, e) {
11
- return h(t, m(n, e));
12
- }
13
- function E(t, n) {
14
- return typeof t == "function" ? t(n) : t;
15
- }
16
- function g(t) {
17
- return t.split("-")[0];
18
- }
19
- function a(t) {
20
- return t.split("-")[1];
21
- }
22
- function x(t) {
23
- return t === "x" ? "y" : "x";
24
- }
25
- function b(t) {
26
- return t === "y" ? "height" : "width";
27
- }
28
- function d(t) {
29
- const n = t[0];
30
- return n === "t" || n === "b" ? "y" : "x";
31
- }
32
- function A(t) {
33
- return x(d(t));
34
- }
35
- function R(t, n, e) {
36
- e === void 0 && (e = !1);
37
- const r = a(t), i = A(t), o = b(i);
38
- let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
39
- return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
40
- }
41
- function T(t) {
42
- const n = f(t);
43
- return [s(t), n, s(n)];
44
- }
45
- function s(t) {
46
- return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
- }
48
- const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
49
- function O(t, n, e) {
50
- switch (t) {
51
- case "top":
52
- case "bottom":
53
- return e ? n ? l : u : n ? u : l;
54
- case "left":
55
- case "right":
56
- return n ? P : y;
57
- default:
58
- return [];
1
+ import f from "./index328.js";
2
+ function o(r) {
3
+ "@babel/helpers - typeof";
4
+ return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
+ return typeof e;
6
+ } : function(e) {
7
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
+ }, o(r);
9
+ }
10
+ function i(r, e) {
11
+ var t = Object.keys(r);
12
+ if (Object.getOwnPropertySymbols) {
13
+ var n = Object.getOwnPropertySymbols(r);
14
+ e && (n = n.filter(function(c) {
15
+ return Object.getOwnPropertyDescriptor(r, c).enumerable;
16
+ })), t.push.apply(t, n);
59
17
  }
18
+ return t;
19
+ }
20
+ function u(r) {
21
+ for (var e = 1; e < arguments.length; e++) {
22
+ var t = arguments[e] != null ? arguments[e] : {};
23
+ e % 2 ? i(Object(t), !0).forEach(function(n) {
24
+ p(r, n, t[n]);
25
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(n) {
26
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
27
+ });
28
+ }
29
+ return r;
30
+ }
31
+ function p(r, e, t) {
32
+ return (e = b(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
33
+ }
34
+ function b(r) {
35
+ var e = y(r, "string");
36
+ return o(e) == "symbol" ? e : e + "";
37
+ }
38
+ function y(r, e) {
39
+ if (o(r) != "object" || !r) return r;
40
+ var t = r[Symbol.toPrimitive];
41
+ if (t !== void 0) {
42
+ var n = t.call(r, e);
43
+ if (o(n) != "object") return n;
44
+ throw new TypeError("@@toPrimitive must return a primitive value.");
45
+ }
46
+ return (e === "string" ? String : Number)(r);
60
47
  }
61
- function k(t, n, e, r) {
62
- const i = a(t);
63
- let o = O(g(t), e === "start", r);
64
- return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
65
- }
66
- function f(t) {
67
- const n = g(t);
68
- return p[n] + t.slice(n.length);
69
- }
70
- function M(t) {
71
- return {
72
- top: 0,
73
- right: 0,
74
- bottom: 0,
75
- left: 0,
76
- ...t
77
- };
78
- }
79
- function q(t) {
80
- return typeof t != "number" ? M(t) : {
81
- top: t,
82
- right: t,
83
- bottom: t,
84
- left: t
85
- };
86
- }
87
- function z(t) {
88
- const {
89
- x: n,
90
- y: e,
91
- width: r,
92
- height: i
93
- } = t;
94
- return {
95
- width: r,
96
- height: i,
97
- top: e,
98
- left: n,
99
- right: n + r,
100
- bottom: e + i,
101
- x: n,
102
- y: e
103
- };
48
+ function l(r, e, t) {
49
+ return f(r, u(u({}, e), {}, {
50
+ v2: !0
51
+ }), t);
104
52
  }
105
53
  export {
106
- L as clamp,
107
- j as createCoords,
108
- E as evaluate,
109
- M as expandPaddingObject,
110
- C as floor,
111
- a as getAlignment,
112
- A as getAlignmentAxis,
113
- R as getAlignmentSides,
114
- b as getAxisLength,
115
- T as getExpandedPlacements,
116
- s as getOppositeAlignmentPlacement,
117
- x as getOppositeAxis,
118
- k as getOppositeAxisPlacements,
119
- f as getOppositePlacement,
120
- q as getPaddingObject,
121
- g as getSide,
122
- d as getSideAxis,
123
- h as max,
124
- m as min,
125
- z as rectToClientRect,
126
- w as round,
127
- S as sides
54
+ l as default
128
55
  };
129
56
  //# sourceMappingURL=index324.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index324.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB,GAAGA;AAAA,EACH,GAAGA;AACL,IACMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,OAAO;AAAA,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IACR,MAAMA;AAAA,EACV;AACA;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index324.js","sources":["../../../node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, 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 parse from './parse.js';\nexport default function parsePhoneNumberWithError(text, options, metadata) {\n return parse(text, _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }), metadata);\n}\n//# sourceMappingURL=parsePhoneNumberWithError_.js.map"],"names":["_typeof","o","ownKeys","e","r","_objectSpread","_defineProperty","_toPropertyKey","t","i","_toPrimitive","parsePhoneNumberWithError","text","options","metadata","parse"],"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,EAAQC,GAAGC,GAAG;AAAE,MAAI,IAAI,OAAO,KAAKD,CAAC;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAIF,IAAI,OAAO,sBAAsBE,CAAC;AAAG,IAAAC,MAAMH,IAAIA,EAAE,OAAO,SAAUG,GAAG;AAAE,aAAO,OAAO,yBAAyBD,GAAGC,CAAC,EAAE;AAAA,IAAY,CAAC,IAAI,EAAE,KAAK,MAAM,GAAGH,CAAC;AAAA,EAAG;AAAE,SAAO;AAAG;AAC9P,SAASI,EAAcF,GAAG;AAAE,WAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,QAAI,IAAY,UAAUA,CAAC,KAAnB,OAAuB,UAAUA,CAAC,IAAI,CAAA;AAAI,IAAAA,IAAI,IAAIF,EAAQ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ignoreList":[0]}
package/dist/index325.js CHANGED
@@ -1,9 +1,15 @@
1
- function t(e, n, r, d) {
2
- return e.addEventListener(n, r, d), () => {
3
- e.removeEventListener(n, r, d);
4
- };
1
+ function f(r, t) {
2
+ r = r.split("-"), t = t.split("-");
3
+ for (var N = r[0].split("."), s = t[0].split("."), e = 0; e < 3; e++) {
4
+ var i = Number(N[e]), u = Number(s[e]);
5
+ if (i > u) return 1;
6
+ if (u > i) return -1;
7
+ if (!isNaN(i) && isNaN(u)) return 1;
8
+ if (isNaN(i) && !isNaN(u)) return -1;
9
+ }
10
+ return r[1] && t[1] ? r[1] > t[1] ? 1 : r[1] < t[1] ? -1 : 0 : !r[1] && t[1] ? 1 : r[1] && !t[1] ? -1 : 0;
5
11
  }
6
12
  export {
7
- t as addEventListener
13
+ f as default
8
14
  };
9
15
  //# sourceMappingURL=index325.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index325.js","sources":["../../../node_modules/@base-ui/utils/esm/addEventListener.js"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"names":["addEventListener","target","type","listener","options"],"mappings":"AAIO,SAASA,EAAiBC,GAAQC,GAAMC,GAAUC,GAAS;AAChE,SAAAH,EAAO,iBAAiBC,GAAMC,GAAUC,CAAO,GACxC,MAAM;AACX,IAAAH,EAAO,oBAAoBC,GAAMC,GAAUC,CAAO;AAAA,EACpD;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index325.js","sources":["../../../node_modules/libphonenumber-js/es6/tools/semver-compare.js"],"sourcesContent":["// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function (a, b) {\n a = a.split('-');\n b = b.split('-');\n var pa = a[0].split('.');\n var pb = b[0].split('.');\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i]);\n var nb = Number(pb[i]);\n if (na > nb) return 1;\n if (nb > na) return -1;\n if (!isNaN(na) && isNaN(nb)) return 1;\n if (isNaN(na) && !isNaN(nb)) return -1;\n }\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;\n }\n return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;\n}\n//# sourceMappingURL=semver-compare.js.map"],"names":["compare","a","b","pa","pb","i","na","nb"],"mappings":"AAQe,SAAAA,EAAUC,GAAGC,GAAG;AAC7B,EAAAD,IAAIA,EAAE,MAAM,GAAG,GACfC,IAAIA,EAAE,MAAM,GAAG;AAGf,WAFIC,IAAKF,EAAE,CAAC,EAAE,MAAM,GAAG,GACnBG,IAAKF,EAAE,CAAC,EAAE,MAAM,GAAG,GACdG,IAAI,GAAGA,IAAI,GAAGA,KAAK;AAC1B,QAAIC,IAAK,OAAOH,EAAGE,CAAC,CAAC,GACjBE,IAAK,OAAOH,EAAGC,CAAC,CAAC;AACrB,QAAIC,IAAKC,EAAI,QAAO;AACpB,QAAIA,IAAKD,EAAI,QAAO;AACpB,QAAI,CAAC,MAAMA,CAAE,KAAK,MAAMC,CAAE,EAAG,QAAO;AACpC,QAAI,MAAMD,CAAE,KAAK,CAAC,MAAMC,CAAE,EAAG,QAAO;AAAA,EACtC;AACA,SAAIN,EAAE,CAAC,KAAKC,EAAE,CAAC,IACND,EAAE,CAAC,IAAIC,EAAE,CAAC,IAAI,IAAID,EAAE,CAAC,IAAIC,EAAE,CAAC,IAAI,KAAK,IAEvC,CAACD,EAAE,CAAC,KAAKC,EAAE,CAAC,IAAI,IAAID,EAAE,CAAC,KAAK,CAACC,EAAE,CAAC,IAAI,KAAK;AAClD;","x_google_ignoreList":[0]}
package/dist/index326.js CHANGED
@@ -1,44 +1,41 @@
1
- const a = typeof navigator < "u", o = s(), r = f(), n = u(), c = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
2
- // iPads can claim to be MacIntel
3
- o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
4
- ), p = a && /apple/i.test(navigator.vendor), g = a && /android/i.test(r) || /android/i.test(n);
5
- a && r.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
6
- const d = n.includes("jsdom/");
7
- function s() {
8
- if (!a)
9
- return {
10
- platform: "",
11
- maxTouchPoints: -1
1
+ import { parseDigit as i } from "./index158.js";
2
+ function u(e, t) {
3
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
4
+ if (r) return (r = r.call(e)).next.bind(r);
5
+ if (Array.isArray(e) || (r = l(e)) || t) {
6
+ r && (e = r);
7
+ var n = 0;
8
+ return function() {
9
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
12
10
  };
13
- const t = navigator.userAgentData;
14
- return t?.platform ? {
15
- platform: t.platform,
16
- maxTouchPoints: navigator.maxTouchPoints
17
- } : {
18
- platform: navigator.platform ?? "",
19
- maxTouchPoints: navigator.maxTouchPoints ?? -1
20
- };
11
+ }
12
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
21
14
  }
22
- function u() {
23
- if (!a)
24
- return "";
25
- const t = navigator.userAgentData;
26
- return t && Array.isArray(t.brands) ? t.brands.map(({
27
- brand: i,
28
- version: e
29
- }) => `${i}/${e}`).join(" ") : navigator.userAgent;
15
+ function l(e, t) {
16
+ if (e) {
17
+ if (typeof e == "string") return o(e, t);
18
+ var r = {}.toString.call(e).slice(8, -1);
19
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? o(e, t) : void 0;
20
+ }
30
21
  }
31
- function f() {
32
- if (!a)
33
- return "";
34
- const t = navigator.userAgentData;
35
- return t?.platform ? t.platform : navigator.platform ?? "";
22
+ function o(e, t) {
23
+ (t == null || t > e.length) && (t = e.length);
24
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
25
+ return n;
26
+ }
27
+ function c(e) {
28
+ for (var t = "", r = u(e.split("")), n; !(n = r()).done; ) {
29
+ var a = n.value;
30
+ t += f(a, t) || "";
31
+ }
32
+ return t;
33
+ }
34
+ function f(e, t, r) {
35
+ return e === "+" ? t ? void 0 : "+" : i(e);
36
36
  }
37
37
  export {
38
- g as isAndroid,
39
- m as isIOS,
40
- d as isJSDOM,
41
- p as isSafari,
42
- c as isWebKit
38
+ c as default,
39
+ f as parsePhoneNumberCharacter
43
40
  };
44
41
  //# sourceMappingURL=index326.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index326.js","sources":["../../../node_modules/@base-ui/utils/esm/detectBrowser.js"],"sourcesContent":["const hasNavigator = typeof navigator !== 'undefined';\nconst nav = getNavigatorData();\nconst platform = getPlatform();\nconst userAgent = getUserAgent();\nexport const isWebKit = typeof CSS === 'undefined' || !CSS.supports ? false : CSS.supports('-webkit-backdrop-filter:none');\nexport const isIOS =\n// iPads can claim to be MacIntel\nnav.platform === 'MacIntel' && nav.maxTouchPoints > 1 ? true : /iP(hone|ad|od)|iOS/.test(nav.platform);\nexport const isFirefox = hasNavigator && /firefox/i.test(userAgent);\nexport const isSafari = hasNavigator && /apple/i.test(navigator.vendor);\nexport const isEdge = hasNavigator && /Edg/i.test(userAgent);\nexport const isAndroid = hasNavigator && /android/i.test(platform) || /android/i.test(userAgent);\nexport const isMac = hasNavigator && platform.toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\nexport const isJSDOM = userAgent.includes('jsdom/');\n\n// Avoid Chrome DevTools blue warning.\nfunction getNavigatorData() {\n if (!hasNavigator) {\n return {\n platform: '',\n maxTouchPoints: -1\n };\n }\n const uaData = navigator.userAgentData;\n if (uaData?.platform) {\n return {\n platform: uaData.platform,\n maxTouchPoints: navigator.maxTouchPoints\n };\n }\n return {\n platform: navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? -1\n };\n}\nfunction getUserAgent() {\n if (!hasNavigator) {\n return '';\n }\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return uaData.brands.map(({\n brand,\n version\n }) => `${brand}/${version}`).join(' ');\n }\n return navigator.userAgent;\n}\nfunction getPlatform() {\n if (!hasNavigator) {\n return '';\n }\n const uaData = navigator.userAgentData;\n if (uaData?.platform) {\n return uaData.platform;\n }\n return navigator.platform ?? '';\n}"],"names":["hasNavigator","nav","getNavigatorData","platform","getPlatform","userAgent","getUserAgent","isWebKit","isIOS","isSafari","isAndroid","isJSDOM","uaData","brand","version"],"mappings":"AAAA,MAAMA,IAAe,OAAO,YAAc,KACpCC,IAAMC,EAAgB,GACtBC,IAAWC,EAAW,GACtBC,IAAYC,EAAY,GACjBC,IAAW,OAAO,MAAQ,OAAe,CAAC,IAAI,WAAW,KAAQ,IAAI,SAAS,8BAA8B,GAC5GC;AAAA;AAAA,EAEbP,EAAI,aAAa,cAAcA,EAAI,iBAAiB,IAAI,KAAO,qBAAqB,KAAKA,EAAI,QAAQ;AAAA,GAExFQ,IAAWT,KAAgB,SAAS,KAAK,UAAU,MAAM,GAEzDU,IAAYV,KAAgB,WAAW,KAAKG,CAAQ,KAAK,WAAW,KAAKE,CAAS;AAC1EL,KAAgBG,EAAS,YAAW,EAAG,WAAW,KAAK,KAAM,UAAU;AAChF,MAACQ,IAAUN,EAAU,SAAS,QAAQ;AAGlD,SAASH,IAAmB;AAC1B,MAAI,CAACF;AACH,WAAO;AAAA,MACL,UAAU;AAAA,MACV,gBAAgB;AAAA,IACtB;AAEE,QAAMY,IAAS,UAAU;AACzB,SAAIA,GAAQ,WACH;AAAA,IACL,UAAUA,EAAO;AAAA,IACjB,gBAAgB,UAAU;AAAA,EAChC,IAES;AAAA,IACL,UAAU,UAAU,YAAY;AAAA,IAChC,gBAAgB,UAAU,kBAAkB;AAAA,EAChD;AACA;AACA,SAASN,IAAe;AACtB,MAAI,CAACN;AACH,WAAO;AAET,QAAMY,IAAS,UAAU;AACzB,SAAIA,KAAU,MAAM,QAAQA,EAAO,MAAM,IAChCA,EAAO,OAAO,IAAI,CAAC;AAAA,IACxB,OAAAC;AAAA,IACA,SAAAC;AAAA,EACN,MAAU,GAAGD,CAAK,IAAIC,CAAO,EAAE,EAAE,KAAK,GAAG,IAEhC,UAAU;AACnB;AACA,SAASV,IAAc;AACrB,MAAI,CAACJ;AACH,WAAO;AAET,QAAMY,IAAS,UAAU;AACzB,SAAIA,GAAQ,WACHA,EAAO,WAET,UAAU,YAAY;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index326.js","sources":["../../../node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.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 { parseDigit } from './helpers/parseDigits.js';\n\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\nexport default function parseIncompletePhoneNumber(string) {\n var result = '';\n // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n return result;\n}\n\n/**\r\n * Parses next character while parsing phone number digits (including a `+`)\r\n * from text: discards everything except `+` and digits, and `+` is only allowed\r\n * at the start of a phone number.\r\n * For example, is used in `react-phone-number-input` where it uses\r\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string?} prevParsedCharacters - Previous parsed characters.\r\n * @param {function?} eventListener - An optional \"on event\" function.\r\n * @return {string?} The parsed character.\r\n */\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (prevParsedCharacters) {\n // `eventListener` argument was added to this `export`ed function on Dec 26th, 2023.\n // Any 3rd-party code that used to `import` and call this function before that\n // won't be passing any `eventListener` argument.\n //\n // The addition of the `eventListener` argument was to fix the slightly-weird behavior\n // of parsing an input string when the user inputs something like `\"2+7\"\n // https://github.com/catamphetamine/react-phone-number-input/issues/437\n //\n // If the parser encounters an unexpected `+` in a string being parsed\n // then it simply discards that out-of-place `+` and any following characters.\n //\n if (typeof eventListener === 'function') {\n eventListener('end');\n }\n return;\n }\n return '+';\n }\n // Allow digits.\n return parseDigit(character);\n}\n//# sourceMappingURL=parseIncompletePhoneNumber.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","parseIncompletePhoneNumber","string","result","_iterator","_step","character","parsePhoneNumberCharacter","prevParsedCharacters","eventListener","parseDigit"],"mappings":";AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,SAAQA,IAAIA,EAAE,KAAKF,CAAC,GAAG,KAAK,KAAKE,CAAC;AAAG,MAAI,MAAM,QAAQF,CAAC,MAAME,IAAIC,EAA4BH,CAAC,MAAMC,GAAuC;AAAE,IAAAC,MAAMF,IAAIE;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKJ,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEI,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BH,GAAGK,GAAG;AAAE,MAAIL,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOM,EAAkBN,GAAGK,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAKF,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBE,MAAb,YAAkBF,EAAE,gBAAgBE,IAAIF,EAAE,YAAY,OAAiBE,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKF,CAAC,IAAoBE,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkBN,GAAGK,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBN,GAAGK,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIL,EAAE,YAAYK,IAAIL,EAAE;AAAS,WAASC,IAAI,GAAG,IAAI,MAAMI,CAAC,GAAGJ,IAAII,GAAGJ,IAAK,GAAEA,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAO;AAAG;AAkBpI,SAASM,EAA2BC,GAAQ;AAQzD,WAPIC,IAAS,IAOJC,IAAYX,EAAgCS,EAAO,MAAM,EAAE,CAAC,GAAGG,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AAC3G,QAAIE,IAAYD,EAAM;AACtB,IAAAF,KAAUI,EAA0BD,GAAWH,CAAM,KAAK;AAAA,EAC5D;AACA,SAAOA;AACT;AAaO,SAASI,EAA0BD,GAAWE,GAAsBC,GAAe;AAExF,SAAIH,MAAc,MAGZE,IAeF,SAEK,MAGFE,EAAWJ,CAAS;AAC7B;","x_google_ignoreList":[0]}
package/dist/index327.js CHANGED
@@ -1,69 +1,12 @@
1
- import { useRefWithInit as u } from "./index283.js";
2
- import { useOnMount as h } from "./index366.js";
3
- const s = null;
4
- let l = globalThis.requestAnimationFrame;
5
- class o {
6
- /* This implementation uses an array as a backing data-structure for frame callbacks.
7
- * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
8
- * never calls the native `cancelAnimationFrame` if there are no frames left. This can
9
- * be much more efficient if there is a call pattern that alterns as
10
- * "request-cancel-request-cancel-…".
11
- * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
12
- * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
13
- callbacks = [];
14
- callbacksCount = 0;
15
- nextId = 1;
16
- startId = 1;
17
- isScheduled = !1;
18
- tick = (t) => {
19
- this.isScheduled = !1;
20
- const e = this.callbacks, r = this.callbacksCount;
21
- if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, r > 0)
22
- for (let i = 0; i < e.length; i += 1)
23
- e[i]?.(t);
24
- };
25
- request(t) {
26
- const e = this.nextId;
27
- this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
28
- const r = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
29
- return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
30
- }
31
- cancel(t) {
32
- const e = t - this.startId;
33
- e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
34
- }
35
- }
36
- const c = new o();
37
- class a {
38
- static create() {
39
- return new a();
40
- }
41
- static request(t) {
42
- return c.request(t);
43
- }
44
- static cancel(t) {
45
- return c.cancel(t);
46
- }
47
- currentId = s;
48
- /**
49
- * Executes `fn` after `delay`, clearing any previously scheduled call.
50
- */
51
- request(t) {
52
- this.cancel(), this.currentId = c.request(() => {
53
- this.currentId = s, t();
54
- });
55
- }
56
- cancel = () => {
57
- this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
58
- };
59
- disposeEffect = () => this.cancel;
60
- }
61
- function k() {
62
- const n = u(a.create).current;
63
- return h(n.disposeEffect), n;
1
+ function n(r) {
2
+ var t = r.number, e = r.ext;
3
+ if (!t)
4
+ return "";
5
+ if (t[0] !== "+")
6
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
7
+ return "tel:".concat(t).concat(e ? ";ext=" + e : "");
64
8
  }
65
9
  export {
66
- a as AnimationFrame,
67
- k as useAnimationFrame
10
+ n as formatRFC3966
68
11
  };
69
12
  //# sourceMappingURL=index327.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index327.js","sources":["../../../node_modules/@base-ui/utils/esm/useAnimationFrame.js"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.js\";\nimport { useOnMount } from \"./useOnMount.js\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nconst scheduler = new Scheduler();\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"names":["EMPTY","LAST_RAF","Scheduler","timestamp","currentCallbacks","currentCallbacksCount","fn","id","didRAFChange","index","scheduler","AnimationFrame","useAnimationFrame","timeout","useRefWithInit","useOnMount"],"mappings":";;AAQA,MAAMA,IAAQ;AACd,IAAIC,IAAW,WAAW;AAC1B,MAAMC,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASd,YAAY,CAAA;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO,CAAAC,MAAa;AAClB,SAAK,cAAc;AACnB,UAAMC,IAAmB,KAAK,WACxBC,IAAwB,KAAK;AAMnC,QAHA,KAAK,YAAY,CAAA,GACjB,KAAK,iBAAiB,GACtB,KAAK,UAAU,KAAK,QAChBA,IAAwB;AAC1B,eAAS,IAAI,GAAG,IAAID,EAAiB,QAAQ,KAAK;AAChD,QAAAA,EAAiB,CAAC,IAAID,CAAS;AAAA,EAGrC;AAAA,EACA,QAAQG,GAAI;AACV,UAAMC,IAAK,KAAK;AAChB,SAAK,UAAU,GACf,KAAK,UAAU,KAAKD,CAAE,GACtB,KAAK,kBAAkB;AAKvB,UAAME,IAAe,QAAQ,IAAI,aAAa,gBAAgBP,MAAa,0BAA0BA,IAAW,uBAAuB;AACvI,YAAI,CAAC,KAAK,eAAeO,OACvB,sBAAsB,KAAK,IAAI,GAC/B,KAAK,cAAc,KAEdD;AAAA,EACT;AAAA,EACA,OAAOA,GAAI;AACT,UAAME,IAAQF,IAAK,KAAK;AACxB,IAAIE,IAAQ,KAAKA,KAAS,KAAK,UAAU,WAGzC,KAAK,UAAUA,CAAK,IAAI,MACxB,KAAK,kBAAkB;AAAA,EACzB;AACF;AACA,MAAMC,IAAY,IAAIR,EAAS;AACxB,MAAMS,EAAe;AAAA,EAC1B,OAAO,SAAS;AACd,WAAO,IAAIA,EAAc;AAAA,EAC3B;AAAA,EACA,OAAO,QAAQL,GAAI;AACjB,WAAOI,EAAU,QAAQJ,CAAE;AAAA,EAC7B;AAAA,EACA,OAAO,OAAOC,GAAI;AAChB,WAAOG,EAAU,OAAOH,CAAE;AAAA,EAC5B;AAAA,EACA,YAAYP;AAAA;AAAA;AAAA;AAAA,EAKZ,QAAQM,GAAI;AACV,SAAK,OAAM,GACX,KAAK,YAAYI,EAAU,QAAQ,MAAM;AACvC,WAAK,YAAYV,GACjBM,EAAE;AAAA,IACJ,CAAC;AAAA,EACH;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAcN,MACrBU,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAYV;AAAA,EAErB;AAAA,EACA,gBAAgB,MACP,KAAK;AAEhB;AAKO,SAASY,IAAoB;AAClC,QAAMC,IAAUC,EAAeH,EAAe,MAAM,EAAE;AACtD,SAAAI,EAAWF,EAAQ,aAAa,GACzBA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index327.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js"],"sourcesContent":["function _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 _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 _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 isViablePhoneNumber from './isViablePhoneNumber.js';\n\n// https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nexport function parseRFC3966(text) {\n var number;\n var ext;\n\n // Replace \"tel:\" with \"tel=\" for parsing convenience.\n text = text.replace(/^tel:/, 'tel=');\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n switch (name) {\n case 'tel':\n number = value;\n break;\n case 'ext':\n ext = value;\n break;\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n break;\n }\n }\n\n // If the phone number is not viable, then abort.\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n var result = {\n number: number\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n if (!number) {\n return '';\n }\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n//# sourceMappingURL=RFC3966.js.map"],"names":["formatRFC3966","_ref","number","ext"],"mappings":"AA6DO,SAASA,EAAcC,GAAM;AAClC,MAAIC,IAASD,EAAK,QAChBE,IAAMF,EAAK;AACb,MAAI,CAACC;AACH,WAAO;AAET,MAAIA,EAAO,CAAC,MAAM;AAChB,UAAM,IAAI,MAAM,2DAA+D;AAEjF,SAAO,OAAO,OAAOA,CAAM,EAAE,OAAOC,IAAM,UAAUA,IAAM,EAAE;AAC9D;","x_google_ignoreList":[0]}