@rpcbase/ui 0.251.0 → 0.252.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.
- package/dist/index150.js +3 -3
- package/dist/index156.js +1 -1
- package/dist/index163.js +2 -2
- package/dist/index164.js +7 -7
- package/dist/index167.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index172.js +3 -3
- package/dist/index175.js +1 -1
- package/dist/index176.js +4 -4
- package/dist/index182.js +1 -1
- package/dist/index184.js +4 -4
- package/dist/index185.js +13 -13
- package/dist/index188.js +5 -5
- package/dist/index189.js +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +6 -6
- package/dist/index254.js +155 -20
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +31 -65
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -6
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +49 -5
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -11
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -3
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +41 -48
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +98 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +84 -27
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +103 -14
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +52 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +11 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -53
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +37 -20
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +132 -36
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +18 -46
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +14 -19
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +3 -70
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +34 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +20 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +9 -11
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -13
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +20 -19
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +65 -35
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +6 -239
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +5 -252
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +10 -67
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -99
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +47 -80
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +4 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +27 -27
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +6 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +21 -17
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +53 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +20 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +40 -27
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +40 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +46 -79
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +19 -271
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +70 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +18 -11
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +3 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +11 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +12 -124
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +18 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +35 -64
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +240 -14
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +252 -7
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +68 -5
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +99 -3
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +83 -10
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +3 -7
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +24 -128
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +16 -399
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +35 -5
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +16 -51
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +3 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +22 -23
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +27 -10
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +4 -33
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +78 -11
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +268 -45
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -9
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +10 -11
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +25 -43
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +15 -96
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +122 -83
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +4 -104
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +60 -47
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +13 -11
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +7 -4
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +5 -37
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +3 -8
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +10 -154
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -135
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +133 -17
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +398 -14
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +5 -4
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +50 -34
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -20
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +27 -9
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +11 -8
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +2 -2
- package/dist/index348.js +2 -2
- package/dist/index350.js +4 -4
- package/dist/index358.js +5 -5
- package/dist/index359.js +1 -1
- package/dist/index365.js +5 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +20 -5
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +4 -3
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +5 -11
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +3 -21
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +11 -44
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +20 -17
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +45 -5
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +15 -198
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +5 -74
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +192 -115
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +73 -4
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +122 -19
- package/dist/index377.js.map +1 -1
- package/dist/index379.js +3 -3
- package/dist/index380.js +3 -3
- package/dist/index382.js +1 -1
- package/dist/index384.js +1 -1
- package/dist/index385.js +2 -2
- package/dist/index388.js +1 -1
- package/dist/index389.js +2 -2
- package/dist/index413.js +1 -1
- package/dist/index423.js +1 -1
- package/dist/index424.js +1 -1
- package/dist/index427.js +1 -1
- package/dist/index428.js +1 -1
- package/dist/index434.js +2 -2
- package/dist/index436.js +2 -2
- package/dist/index49.js +30 -30
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +16 -16
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/package.json +1 -1
package/dist/index150.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import p from "./
|
|
2
|
-
import y from "./
|
|
3
|
-
import b from "./
|
|
1
|
+
import p from "./index263.js";
|
|
2
|
+
import y from "./index264.js";
|
|
3
|
+
import b from "./index262.js";
|
|
4
4
|
import l from "./index163.js";
|
|
5
5
|
import s from "./index165.js";
|
|
6
6
|
function i(r) {
|
package/dist/index156.js
CHANGED
package/dist/index163.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import h from "./
|
|
1
|
+
import h from "./index265.js";
|
|
2
2
|
import l from "./index170.js";
|
|
3
|
-
import v from "./
|
|
3
|
+
import v from "./index266.js";
|
|
4
4
|
function o(n) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
package/dist/index164.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import g, { validateMetadata as h } from "./index163.js";
|
|
2
|
-
import d from "./
|
|
3
|
-
import v from "./
|
|
4
|
-
import w from "./
|
|
5
|
-
import P from "./
|
|
6
|
-
import E from "./
|
|
7
|
-
import O from "./
|
|
2
|
+
import d from "./index255.js";
|
|
3
|
+
import v from "./index256.js";
|
|
4
|
+
import w from "./index257.js";
|
|
5
|
+
import P from "./index258.js";
|
|
6
|
+
import E from "./index259.js";
|
|
7
|
+
import O from "./index260.js";
|
|
8
8
|
import s from "./index170.js";
|
|
9
|
-
import j from "./
|
|
9
|
+
import j from "./index261.js";
|
|
10
10
|
function i(r) {
|
|
11
11
|
"@babel/helpers - typeof";
|
|
12
12
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
package/dist/index167.js
CHANGED
package/dist/index169.js
CHANGED
package/dist/index172.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import b from "./index190.js";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { createElement as p } from "react";
|
|
4
|
-
import { useMergedRefs as E, useMergedRefsN as g } from "./
|
|
4
|
+
import { useMergedRefs as E, useMergedRefsN as g } from "./index278.js";
|
|
5
5
|
import { getReactElementRef as y } from "./index341.js";
|
|
6
6
|
import { mergeObjects as R } from "./index342.js";
|
|
7
7
|
import { warn as v } from "./index343.js";
|
|
8
|
-
import { EMPTY_OBJECT as f } from "./
|
|
8
|
+
import { EMPTY_OBJECT as f } from "./index287.js";
|
|
9
9
|
import { getStateAttributesProps as w } from "./index344.js";
|
|
10
10
|
import { resolveClassName as C } from "./index345.js";
|
|
11
11
|
import { resolveStyle as T } from "./index346.js";
|
|
12
|
-
import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./
|
|
12
|
+
import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./index305.js";
|
|
13
13
|
function q(r, e, t = {}) {
|
|
14
14
|
const a = e.render, s = I(e, t);
|
|
15
15
|
if (t.enabled === !1)
|
package/dist/index175.js
CHANGED
package/dist/index176.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { isHTMLElement as M } from "./
|
|
3
|
-
import { useStableCallback as H } from "./
|
|
2
|
+
import { isHTMLElement as M } from "./index331.js";
|
|
3
|
+
import { useStableCallback as H } from "./index285.js";
|
|
4
4
|
import { error as y } from "./index352.js";
|
|
5
5
|
import { SafeReact as B } from "./index353.js";
|
|
6
|
-
import { useIsoLayoutEffect as A } from "./
|
|
6
|
+
import { useIsoLayoutEffect as A } from "./index284.js";
|
|
7
7
|
import { useCompositeRootContext as L } from "./index354.js";
|
|
8
8
|
import { useFocusableWhenDisabled as W } from "./index355.js";
|
|
9
|
-
import { mergeProps as $, makeEventPreventable as x } from "./
|
|
9
|
+
import { mergeProps as $, makeEventPreventable as x } from "./index305.js";
|
|
10
10
|
function X(a = {}) {
|
|
11
11
|
const {
|
|
12
12
|
disabled: o = !1,
|
package/dist/index182.js
CHANGED
package/dist/index184.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import "react-dom";
|
|
3
|
-
import { EMPTY_OBJECT as f } from "./
|
|
3
|
+
import { EMPTY_OBJECT as f } from "./index287.js";
|
|
4
4
|
import { useId as T } from "./index347.js";
|
|
5
|
-
import { useStableCallback as p } from "./
|
|
6
|
-
import { useIsoLayoutEffect as s } from "./
|
|
5
|
+
import { useStableCallback as p } from "./index285.js";
|
|
6
|
+
import { useIsoLayoutEffect as s } from "./index284.js";
|
|
7
7
|
import { FOCUSABLE_ATTRIBUTE as v } from "./index390.js";
|
|
8
8
|
import { useFloatingParentNodeId as C } from "./index386.js";
|
|
9
9
|
import { useSyncedFloatingRootContext as E } from "./index389.js";
|
|
10
|
-
import { useTransitionStatus as I } from "./
|
|
10
|
+
import { useTransitionStatus as I } from "./index292.js";
|
|
11
11
|
import { useOpenChangeComplete as O } from "./index182.js";
|
|
12
12
|
import { createChangeEventDetails as S } from "./index175.js";
|
|
13
13
|
import { none as P } from "./index177.js";
|
package/dist/index185.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as E from "react";
|
|
2
|
-
import { isHTMLElement as q, getNodeName as Se, getWindow as Be } from "./
|
|
3
|
-
import { addEventListener as I } from "./
|
|
2
|
+
import { isHTMLElement as q, getNodeName as Se, getWindow as Be } from "./index331.js";
|
|
3
|
+
import { addEventListener as I } from "./index323.js";
|
|
4
4
|
import { mergeCleanups as ge } from "./index378.js";
|
|
5
|
-
import { useMergedRefs as Ee } from "./
|
|
6
|
-
import { useValueAsRef as $ } from "./
|
|
7
|
-
import { useStableCallback as oe } from "./
|
|
8
|
-
import { useIsoLayoutEffect as W } from "./
|
|
9
|
-
import { useTimeout as Fe } from "./
|
|
10
|
-
import { useAnimationFrame as Ue } from "./
|
|
11
|
-
import { ownerDocument as O } from "./
|
|
5
|
+
import { useMergedRefs as Ee } from "./index278.js";
|
|
6
|
+
import { useValueAsRef as $ } from "./index286.js";
|
|
7
|
+
import { useStableCallback as oe } from "./index285.js";
|
|
8
|
+
import { useIsoLayoutEffect as W } from "./index284.js";
|
|
9
|
+
import { useTimeout as Fe } from "./index308.js";
|
|
10
|
+
import { useAnimationFrame as Ue } from "./index324.js";
|
|
11
|
+
import { ownerDocument as O } from "./index307.js";
|
|
12
12
|
import { FocusGuard as Te } from "./index379.js";
|
|
13
|
-
import { isTypeableCombobox as xe, getFloatingFocusElement as ye, isTypeableElement as $e } from "./
|
|
14
|
-
import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./
|
|
13
|
+
import { isTypeableCombobox as xe, getFloatingFocusElement as ye, isTypeableElement as $e } from "./index313.js";
|
|
14
|
+
import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index336.js";
|
|
15
15
|
import { isOutsideEvent as Ie, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as De, isTabbable as ie, focusable as Ze } from "./index380.js";
|
|
16
16
|
import { getNodeAncestors as ve, getNodeChildren as he } from "./index381.js";
|
|
17
17
|
import { isElementVisible as et } from "./index382.js";
|
|
@@ -24,9 +24,9 @@ import { useFloatingTree as rt } from "./index386.js";
|
|
|
24
24
|
import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index191.js";
|
|
25
25
|
import { resolveRef as w } from "./index387.js";
|
|
26
26
|
import { j as ue } from "./index30.js";
|
|
27
|
-
import { activeElement as N, contains as c, getTarget as z } from "./
|
|
27
|
+
import { activeElement as N, contains as c, getTarget as z } from "./index314.js";
|
|
28
28
|
import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index177.js";
|
|
29
|
-
import { webkit as ct } from "./
|
|
29
|
+
import { webkit as ct } from "./index333.js";
|
|
30
30
|
function ft(n, D) {
|
|
31
31
|
const M = Be(z(n));
|
|
32
32
|
return n instanceof M.KeyboardEvent ? "keyboard" : n instanceof M.FocusEvent ? D || "keyboard" : "pointerType" in n ? n.pointerType || "keyboard" : "touches" in n ? "touch" : n instanceof M.MouseEvent ? D || (n.detail === 0 ? "keyboard" : "mouse") : "";
|
package/dist/index188.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import * as j from "react-dom";
|
|
3
|
-
import { isNode as w } from "./
|
|
4
|
-
import { addEventListener as S } from "./
|
|
3
|
+
import { isNode as w } from "./index331.js";
|
|
4
|
+
import { addEventListener as S } from "./index323.js";
|
|
5
5
|
import { mergeCleanups as G } from "./index378.js";
|
|
6
6
|
import { useId as _ } from "./index347.js";
|
|
7
|
-
import { useIsoLayoutEffect as h } from "./
|
|
8
|
-
import { useStableCallback as L } from "./
|
|
9
|
-
import { EMPTY_OBJECT as k } from "./
|
|
7
|
+
import { useIsoLayoutEffect as h } from "./index284.js";
|
|
8
|
+
import { useStableCallback as L } from "./index285.js";
|
|
9
|
+
import { EMPTY_OBJECT as k } from "./index287.js";
|
|
10
10
|
import { FocusGuard as T } from "./index379.js";
|
|
11
11
|
import { enableFocusInside as I, isOutsideEvent as E, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index380.js";
|
|
12
12
|
import { createChangeEventDetails as H } from "./index175.js";
|
package/dist/index189.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as w from "react";
|
|
2
|
-
import { useOnFirstRender as y } from "./
|
|
2
|
+
import { useOnFirstRender as y } from "./index280.js";
|
|
3
3
|
import { useDialogRoot as T, DialogInteractions as k } from "./index350.js";
|
|
4
4
|
import { useDialogRootContext as V, IsDrawerContext as A, DialogRootContext as B } from "./index171.js";
|
|
5
5
|
import { DialogStore as E } from "./index351.js";
|
package/dist/index192.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { useStableCallback as u } from "./
|
|
2
|
+
import { useStableCallback as u } from "./index285.js";
|
|
3
3
|
import { useEnhancedClickHandler as c } from "./index356.js";
|
|
4
|
-
import { useValueChanged as l } from "./
|
|
4
|
+
import { useValueChanged as l } from "./index298.js";
|
|
5
5
|
import { ios as a } from "./index357.js";
|
|
6
6
|
function m(e, t) {
|
|
7
7
|
const n = u((p, s) => {
|
package/dist/index193.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { useAnimationFrame as v } from "./
|
|
3
|
-
import { useTimeout as P } from "./
|
|
4
|
-
import { EMPTY_OBJECT as b } from "./
|
|
5
|
-
import { isTypeableElement as x } from "./
|
|
6
|
-
import { isMouseLikePointerType as E } from "./
|
|
2
|
+
import { useAnimationFrame as v } from "./index324.js";
|
|
3
|
+
import { useTimeout as P } from "./index308.js";
|
|
4
|
+
import { EMPTY_OBJECT as b } from "./index287.js";
|
|
5
|
+
import { isTypeableElement as x } from "./index313.js";
|
|
6
|
+
import { isMouseLikePointerType as E } from "./index336.js";
|
|
7
7
|
import { createChangeEventDetails as I } from "./index175.js";
|
|
8
|
-
import { getTarget as S } from "./
|
|
8
|
+
import { getTarget as S } from "./index314.js";
|
|
9
9
|
import { triggerPress as q } from "./index177.js";
|
|
10
10
|
function Y(s, M = {}) {
|
|
11
11
|
const {
|
package/dist/index254.js
CHANGED
|
@@ -1,23 +1,158 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
function s(t) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4
|
+
return typeof e;
|
|
5
|
+
} : function(e) {
|
|
6
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7
|
+
}, s(t);
|
|
8
|
+
}
|
|
9
|
+
function f(t, e) {
|
|
10
|
+
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
11
|
+
}
|
|
12
|
+
function l(t, e) {
|
|
13
|
+
for (var r = 0; r < e.length; r++) {
|
|
14
|
+
var n = e[r];
|
|
15
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, g(n.key), n);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function p(t, e, r) {
|
|
19
|
+
return e && l(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
20
|
+
}
|
|
21
|
+
function g(t) {
|
|
22
|
+
var e = x(t, "string");
|
|
23
|
+
return s(e) == "symbol" ? e : e + "";
|
|
24
|
+
}
|
|
25
|
+
function x(t, e) {
|
|
26
|
+
if (s(t) != "object" || !t) return t;
|
|
27
|
+
var r = t[Symbol.toPrimitive];
|
|
28
|
+
if (r !== void 0) {
|
|
29
|
+
var n = r.call(t, e);
|
|
30
|
+
if (s(n) != "object") return n;
|
|
31
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
|
+
}
|
|
33
|
+
return String(t);
|
|
34
|
+
}
|
|
35
|
+
var y = /* @__PURE__ */ (function() {
|
|
36
|
+
function t() {
|
|
37
|
+
f(this, t);
|
|
38
|
+
}
|
|
39
|
+
return p(t, [{
|
|
40
|
+
key: "parse",
|
|
41
|
+
value: function(r) {
|
|
42
|
+
if (this.context = [{
|
|
43
|
+
or: !0,
|
|
44
|
+
instructions: []
|
|
45
|
+
}], this.parsePattern(r), this.context.length !== 1)
|
|
46
|
+
throw new Error("Non-finalized contexts left when pattern parse ended");
|
|
47
|
+
var n = this.context[0], i = n.branches, o = n.instructions;
|
|
48
|
+
if (i)
|
|
49
|
+
return {
|
|
50
|
+
op: "|",
|
|
51
|
+
args: i.concat([a(o)])
|
|
52
|
+
};
|
|
53
|
+
if (o.length === 0)
|
|
54
|
+
throw new Error("Pattern is required");
|
|
55
|
+
return o.length === 1 ? o[0] : o;
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
key: "startContext",
|
|
59
|
+
value: function(r) {
|
|
60
|
+
this.context.push(r);
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "endContext",
|
|
64
|
+
value: function() {
|
|
65
|
+
this.context.pop();
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "getContext",
|
|
69
|
+
value: function() {
|
|
70
|
+
return this.context[this.context.length - 1];
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "parsePattern",
|
|
74
|
+
value: function(r) {
|
|
75
|
+
if (!r)
|
|
76
|
+
throw new Error("Pattern is required");
|
|
77
|
+
var n = r.match(w);
|
|
78
|
+
if (!n) {
|
|
79
|
+
if (C.test(r))
|
|
80
|
+
throw new Error("Illegal characters found in a pattern: ".concat(r));
|
|
81
|
+
this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
var i = n[1], o = r.slice(0, n.index), c = r.slice(n.index + i.length);
|
|
85
|
+
switch (i) {
|
|
86
|
+
case "(?:":
|
|
87
|
+
o && this.parsePattern(o), this.startContext({
|
|
88
|
+
or: !0,
|
|
89
|
+
instructions: [],
|
|
90
|
+
branches: []
|
|
91
|
+
});
|
|
92
|
+
break;
|
|
93
|
+
case ")":
|
|
94
|
+
if (!this.getContext().or)
|
|
95
|
+
throw new Error('")" operator must be preceded by "(?:" operator');
|
|
96
|
+
if (o && this.parsePattern(o), this.getContext().instructions.length === 0)
|
|
97
|
+
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
98
|
+
var h = this.getContext(), u = h.branches;
|
|
99
|
+
u.push(a(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
100
|
+
op: "|",
|
|
101
|
+
args: u
|
|
102
|
+
});
|
|
103
|
+
break;
|
|
104
|
+
case "|":
|
|
105
|
+
if (!this.getContext().or)
|
|
106
|
+
throw new Error('"|" operator can only be used inside "or" groups');
|
|
107
|
+
if (o && this.parsePattern(o), !this.getContext().branches)
|
|
108
|
+
if (this.context.length === 1)
|
|
109
|
+
this.getContext().branches = [];
|
|
110
|
+
else
|
|
111
|
+
throw new Error('"branches" not found in an "or" group context');
|
|
112
|
+
this.getContext().branches.push(a(this.getContext().instructions)), this.getContext().instructions = [];
|
|
113
|
+
break;
|
|
114
|
+
case "[":
|
|
115
|
+
o && this.parsePattern(o), this.startContext({
|
|
116
|
+
oneOfSet: !0
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
case "]":
|
|
120
|
+
if (!this.getContext().oneOfSet)
|
|
121
|
+
throw new Error('"]" operator must be preceded by "[" operator');
|
|
122
|
+
this.endContext(), this.getContext().instructions.push({
|
|
123
|
+
op: "[]",
|
|
124
|
+
args: b(o)
|
|
125
|
+
});
|
|
126
|
+
break;
|
|
127
|
+
/* istanbul ignore next */
|
|
128
|
+
default:
|
|
129
|
+
throw new Error("Unknown operator: ".concat(i));
|
|
130
|
+
}
|
|
131
|
+
c && this.parsePattern(c);
|
|
132
|
+
}
|
|
133
|
+
}]);
|
|
134
|
+
})();
|
|
135
|
+
function b(t) {
|
|
136
|
+
for (var e = [], r = 0; r < t.length; ) {
|
|
137
|
+
if (t[r] === "-") {
|
|
138
|
+
if (r === 0 || r === t.length - 1)
|
|
139
|
+
throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
|
|
140
|
+
for (var n = t[r - 1].charCodeAt(0) + 1, i = t[r + 1].charCodeAt(0) - 1, o = n; o <= i; )
|
|
141
|
+
e.push(String.fromCharCode(o)), o++;
|
|
142
|
+
} else
|
|
143
|
+
e.push(t[r]);
|
|
144
|
+
r++;
|
|
145
|
+
}
|
|
146
|
+
return e;
|
|
147
|
+
}
|
|
148
|
+
var C = /[\(\)\[\]\?\:\|]/, w = new RegExp(
|
|
149
|
+
// any of:
|
|
150
|
+
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
151
|
+
);
|
|
152
|
+
function a(t) {
|
|
153
|
+
return t.length === 1 ? t[0] : t;
|
|
154
|
+
}
|
|
19
155
|
export {
|
|
20
|
-
|
|
21
|
-
t as visuallyHiddenInput
|
|
156
|
+
y as default
|
|
22
157
|
};
|
|
23
158
|
//# sourceMappingURL=index254.js.map
|
package/dist/index254.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index254.js","sources":["../../../node_modules/@base-ui/utils/visuallyHidden.mjs"],"sourcesContent":["const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};"],"names":["visuallyHiddenBase","visuallyHidden","visuallyHiddenInput"],"mappings":"AAAA,MAAMA,IAAqB;AAAA,EACzB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV,GACaC,IAAiB;AAAA,EAC5B,GAAGD;AAAA,EACH,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AACR,GACaE,IAAsB;AAAA,EACjC,GAAGF;AAAA,EACH,UAAU;AACZ;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index254.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar PatternParser = /*#__PURE__*/function () {\n function PatternParser() {\n _classCallCheck(this, PatternParser);\n }\n return _createClass(PatternParser, [{\n key: \"parse\",\n value: function parse(pattern) {\n this.context = [{\n or: true,\n instructions: []\n }];\n this.parsePattern(pattern);\n if (this.context.length !== 1) {\n throw new Error('Non-finalized contexts left when pattern parse ended');\n }\n var _this$context$ = this.context[0],\n branches = _this$context$.branches,\n instructions = _this$context$.instructions;\n if (branches) {\n return {\n op: '|',\n args: branches.concat([expandSingleElementArray(instructions)])\n };\n }\n\n /* istanbul ignore if */\n if (instructions.length === 0) {\n throw new Error('Pattern is required');\n }\n if (instructions.length === 1) {\n return instructions[0];\n }\n return instructions;\n }\n }, {\n key: \"startContext\",\n value: function startContext(context) {\n this.context.push(context);\n }\n }, {\n key: \"endContext\",\n value: function endContext() {\n this.context.pop();\n }\n }, {\n key: \"getContext\",\n value: function getContext() {\n return this.context[this.context.length - 1];\n }\n }, {\n key: \"parsePattern\",\n value: function parsePattern(pattern) {\n if (!pattern) {\n throw new Error('Pattern is required');\n }\n var match = pattern.match(OPERATOR);\n if (!match) {\n if (ILLEGAL_CHARACTER_REGEXP.test(pattern)) {\n throw new Error(\"Illegal characters found in a pattern: \".concat(pattern));\n }\n this.getContext().instructions = this.getContext().instructions.concat(pattern.split(''));\n return;\n }\n var operator = match[1];\n var before = pattern.slice(0, match.index);\n var rightPart = pattern.slice(match.index + operator.length);\n switch (operator) {\n case '(?:':\n if (before) {\n this.parsePattern(before);\n }\n this.startContext({\n or: true,\n instructions: [],\n branches: []\n });\n break;\n case ')':\n if (!this.getContext().or) {\n throw new Error('\")\" operator must be preceded by \"(?:\" operator');\n }\n if (before) {\n this.parsePattern(before);\n }\n if (this.getContext().instructions.length === 0) {\n throw new Error('No instructions found after \"|\" operator in an \"or\" group');\n }\n var _this$getContext = this.getContext(),\n branches = _this$getContext.branches;\n branches.push(expandSingleElementArray(this.getContext().instructions));\n this.endContext();\n this.getContext().instructions.push({\n op: '|',\n args: branches\n });\n break;\n case '|':\n if (!this.getContext().or) {\n throw new Error('\"|\" operator can only be used inside \"or\" groups');\n }\n if (before) {\n this.parsePattern(before);\n }\n // The top-level is an implicit \"or\" group, if required.\n if (!this.getContext().branches) {\n // `branches` are not defined only for the root implicit \"or\" operator.\n /* istanbul ignore else */\n if (this.context.length === 1) {\n this.getContext().branches = [];\n } else {\n throw new Error('\"branches\" not found in an \"or\" group context');\n }\n }\n this.getContext().branches.push(expandSingleElementArray(this.getContext().instructions));\n this.getContext().instructions = [];\n break;\n case '[':\n if (before) {\n this.parsePattern(before);\n }\n this.startContext({\n oneOfSet: true\n });\n break;\n case ']':\n if (!this.getContext().oneOfSet) {\n throw new Error('\"]\" operator must be preceded by \"[\" operator');\n }\n this.endContext();\n this.getContext().instructions.push({\n op: '[]',\n args: parseOneOfSet(before)\n });\n break;\n\n /* istanbul ignore next */\n default:\n throw new Error(\"Unknown operator: \".concat(operator));\n }\n if (rightPart) {\n this.parsePattern(rightPart);\n }\n }\n }]);\n}();\nexport { PatternParser as default };\nfunction parseOneOfSet(pattern) {\n var values = [];\n var i = 0;\n while (i < pattern.length) {\n if (pattern[i] === '-') {\n if (i === 0 || i === pattern.length - 1) {\n throw new Error(\"Couldn't parse a one-of set pattern: \".concat(pattern));\n }\n var prevValue = pattern[i - 1].charCodeAt(0) + 1;\n var nextValue = pattern[i + 1].charCodeAt(0) - 1;\n var value = prevValue;\n while (value <= nextValue) {\n values.push(String.fromCharCode(value));\n value++;\n }\n } else {\n values.push(pattern[i]);\n }\n i++;\n }\n return values;\n}\nvar ILLEGAL_CHARACTER_REGEXP = /[\\(\\)\\[\\]\\?\\:\\|]/;\nvar OPERATOR = new RegExp(\n// any of:\n'(' +\n// or operator\n'\\\\|' +\n// or\n'|' +\n// or group start\n'\\\\(\\\\?\\\\:' +\n// or\n'|' +\n// or group end\n'\\\\)' +\n// or\n'|' +\n// one-of set start\n'\\\\[' +\n// or\n'|' +\n// one-of set end\n'\\\\]' + ')');\nfunction expandSingleElementArray(array) {\n if (array.length === 1) {\n return array[0];\n }\n return array;\n}\n//# sourceMappingURL=AsYouTypeFormatter.PatternParser.js.map"],"names":["_typeof","o","_classCallCheck","a","n","_defineProperties","e","r","t","_toPropertyKey","_createClass","i","_toPrimitive","PatternParser","pattern","_this$context$","branches","instructions","expandSingleElementArray","context","match","OPERATOR","ILLEGAL_CHARACTER_REGEXP","operator","before","rightPart","_this$getContext","parseOneOfSet","values","prevValue","nextValue","value","array"],"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;A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
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return n.refs.length !== e.length || n.refs.some((c, t) => c !== e[t]);
|
|
22
|
-
}
|
|
23
|
-
function o(n, e) {
|
|
24
|
-
if (n.refs = e, e.every((c) => c == null)) {
|
|
25
|
-
n.callback = null;
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
n.callback = (c) => {
|
|
29
|
-
if (n.cleanup && (n.cleanup(), n.cleanup = null), c != null) {
|
|
30
|
-
const t = Array(e.length).fill(null);
|
|
31
|
-
for (let l = 0; l < e.length; l += 1) {
|
|
32
|
-
const u = e[l];
|
|
33
|
-
if (u != null)
|
|
34
|
-
switch (typeof u) {
|
|
35
|
-
case "function": {
|
|
36
|
-
const a = u(c);
|
|
37
|
-
typeof a == "function" && (t[l] = a);
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
case "object": {
|
|
41
|
-
u.current = c;
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
n.cleanup = () => {
|
|
47
|
-
for (let l = 0; l < e.length; l += 1) {
|
|
48
|
-
const u = e[l];
|
|
49
|
-
if (u != null)
|
|
50
|
-
switch (typeof u) {
|
|
51
|
-
case "function": {
|
|
52
|
-
const a = t[l];
|
|
53
|
-
typeof a == "function" ? a() : u(null);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
case "object": {
|
|
57
|
-
u.current = null;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
1
|
+
import a from "./index163.js";
|
|
2
|
+
import t from "./index165.js";
|
|
3
|
+
function i(e, n, o) {
|
|
4
|
+
n === void 0 && (n = {});
|
|
5
|
+
var r = new a(o);
|
|
6
|
+
if (n.v2) {
|
|
7
|
+
if (!e.countryCallingCode)
|
|
8
|
+
throw new Error("Invalid phone number object passed");
|
|
9
|
+
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
10
|
+
} else {
|
|
11
|
+
if (!e.phone)
|
|
12
|
+
return !1;
|
|
13
|
+
if (e.country) {
|
|
14
|
+
if (!r.hasCountry(e.country))
|
|
15
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
16
|
+
r.selectNumberingPlan(e.country);
|
|
17
|
+
} else {
|
|
18
|
+
if (!e.countryCallingCode)
|
|
19
|
+
throw new Error("Invalid phone number object passed");
|
|
20
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
63
21
|
}
|
|
64
|
-
}
|
|
22
|
+
}
|
|
23
|
+
if (r.possibleLengths())
|
|
24
|
+
return l(e.phone || e.nationalNumber, r);
|
|
25
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
|
|
26
|
+
return !0;
|
|
27
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
28
|
+
}
|
|
29
|
+
function l(e, n) {
|
|
30
|
+
return t(e, void 0, n) === "IS_POSSIBLE";
|
|
65
31
|
}
|
|
66
32
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
33
|
+
i as default,
|
|
34
|
+
l as isPossibleNumber
|
|
69
35
|
};
|
|
70
36
|
//# sourceMappingURL=index255.js.map
|
package/dist/index255.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index255.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index255.js","sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n var metadata = new Metadata(metadataJson);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n // So `isPossibleNumber()` function is supported only for non-legacy metadata.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n }\n\n // There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n // where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n // After that, the bug was noticed and fixed.\n // So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n // The reason is that the bug was noticed relatively quickly (within a day or so)\n // and it's unlikely that anyone generated their custom metadata in that short time span.\n // And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n return true;\n }\n\n // `isPossibleNumber()` function is not supported.\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\r\n * Tells if a given national (significant) number is possible\r\n * @param {string} nationalNumber\r\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\r\n * @returns {boolean}\r\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"names":["isPossiblePhoneNumber","input","options","metadataJson","metadata","Metadata","isPossibleNumber","nationalNumber","checkNumberLength"],"mappings":";;AAgBe,SAASA,EAAsBC,GAAOC,GAASC,GAAc;AAE1E,EAAID,MAAY,WACdA,IAAU,CAAA;AAEZ,MAAIE,IAAW,IAAIC,EAASF,CAAY;AACxC,MAAID,EAAQ,IAAI;AACd,QAAI,CAACD,EAAM;AACT,YAAM,IAAI,MAAM,oCAAoC;AAEtD,IAAAG,EAAS,oBAAoBH,EAAM,WAAWA,EAAM,kBAAkB;AAAA,EACxE,OAAO;AACL,QAAI,CAACA,EAAM;AACT,aAAO;AAET,QAAIA,EAAM,SAAS;AACjB,UAAI,CAACG,EAAS,WAAWH,EAAM,OAAO;AACpC,cAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,MAAAG,EAAS,oBAAoBH,EAAM,OAAO;AAAA,IAC5C,OAAO;AACL,UAAI,CAACA,EAAM;AACT,cAAM,IAAI,MAAM,oCAAoC;AAEtD,MAAAG,EAAS,oBAAoBH,EAAM,kBAAkB;AAAA,IACvD;AAAA,EACF;AAIA,MAAIG,EAAS;AACX,WAAOE,EAAiBL,EAAM,SAASA,EAAM,gBAAgBG,CAAQ;AAUvE,MAAIH,EAAM,sBAAsBG,EAAS,2BAA2BH,EAAM,kBAAkB;AAC1F,WAAO;AAIT,QAAM,IAAI,MAAM,gGAAgG;AAClH;AAQO,SAASK,EAAiBC,GAAgBH,GAAU;AACzD,SAAQI,EAAkBD,GAAgB,QAAWH,CAAQ,MACtD;AAST;","x_google_ignoreList":[0]}
|
package/dist/index256.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import n from "./index163.js";
|
|
2
|
+
import l from "./index272.js";
|
|
3
|
+
import o from "./index257.js";
|
|
4
|
+
function i(e, a, t) {
|
|
5
|
+
a = a || {};
|
|
6
|
+
var r = new n(t);
|
|
7
|
+
if (r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes())
|
|
8
|
+
return o(e, a, r.metadata) !== void 0;
|
|
9
|
+
var m = a.v2 ? e.nationalNumber : e.phone;
|
|
10
|
+
return l(m, r.nationalNumberPattern());
|
|
6
11
|
}
|
|
7
12
|
export {
|
|
8
|
-
|
|
13
|
+
i as default
|
|
9
14
|
};
|
|
10
15
|
//# sourceMappingURL=index256.js.map
|