@awell-health/ui-library 0.1.70 → 0.1.71
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/index.js +233 -201
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1504,46 +1504,39 @@
|
|
|
1504
1504
|
Button.displayName = 'Button';
|
|
1505
1505
|
|
|
1506
1506
|
const fr = "https://app.cal.com/embed/embed.js";
|
|
1507
|
-
function X(
|
|
1508
|
-
(function (
|
|
1509
|
-
let
|
|
1510
|
-
|
|
1511
|
-
},
|
|
1512
|
-
|
|
1513
|
-
let
|
|
1514
|
-
if (
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1517
|
-
},
|
|
1518
|
-
|
|
1507
|
+
function X(C = fr) {
|
|
1508
|
+
(function (g, m, y) {
|
|
1509
|
+
let p = function (u, d) {
|
|
1510
|
+
u.q.push(d);
|
|
1511
|
+
},R = g.document;
|
|
1512
|
+
g.Cal = g.Cal || function () {
|
|
1513
|
+
let u = g.Cal,d = arguments;
|
|
1514
|
+
if (u.loaded || (u.ns = {}, u.q = u.q || [], R.head.appendChild(R.createElement("script")).src = m, u.loaded = !0), d[0] === y) {
|
|
1515
|
+
const l = function () {
|
|
1516
|
+
p(l, arguments);
|
|
1517
|
+
},b = d[1];
|
|
1518
|
+
l.q = l.q || [], typeof b == "string" ? (u.ns[b] = u.ns[b] || l, p(u.ns[b], d), p(u, ["initNamespace", b])) : p(u, d);
|
|
1519
1519
|
return;
|
|
1520
1520
|
}
|
|
1521
|
-
|
|
1521
|
+
p(u, d);
|
|
1522
1522
|
};
|
|
1523
1523
|
})(
|
|
1524
1524
|
window,
|
|
1525
1525
|
//! Replace it with "https://cal.com/embed.js" or the URL where you have embed.js installed
|
|
1526
|
-
|
|
1526
|
+
C,
|
|
1527
1527
|
"init");
|
|
1528
1528
|
|
|
1529
1529
|
/*! Copying ends here. */
|
|
1530
1530
|
return window.Cal;
|
|
1531
1531
|
}
|
|
1532
1532
|
X.toString();
|
|
1533
|
-
function cr(
|
|
1534
|
-
const [
|
|
1533
|
+
function cr(C) {
|
|
1534
|
+
const [g, m] = React.useState();
|
|
1535
1535
|
return React.useEffect(() => {
|
|
1536
|
-
|
|
1537
|
-
}, []),
|
|
1536
|
+
m(() => X(C));
|
|
1537
|
+
}, []), g;
|
|
1538
1538
|
}
|
|
1539
|
-
var H = {},
|
|
1540
|
-
get exports() {
|
|
1541
|
-
return H;
|
|
1542
|
-
},
|
|
1543
|
-
set exports(g) {
|
|
1544
|
-
H = g;
|
|
1545
|
-
} },
|
|
1546
|
-
A = {};
|
|
1539
|
+
var H = { exports: {} },A = {};
|
|
1547
1540
|
/**
|
|
1548
1541
|
* @license React
|
|
1549
1542
|
* react-jsx-runtime.production.min.js
|
|
@@ -1554,22 +1547,22 @@
|
|
|
1554
1547
|
* LICENSE file in the root directory of this source tree.
|
|
1555
1548
|
*/
|
|
1556
1549
|
var Te;
|
|
1557
|
-
function
|
|
1550
|
+
function dr() {
|
|
1558
1551
|
if (Te)
|
|
1559
1552
|
return A;
|
|
1560
1553
|
Te = 1;
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1563
|
-
var
|
|
1564
|
-
|
|
1565
|
-
for (
|
|
1566
|
-
|
|
1567
|
-
if (
|
|
1568
|
-
for (
|
|
1569
|
-
|
|
1570
|
-
return { $$typeof:
|
|
1571
|
-
}
|
|
1572
|
-
return A.Fragment =
|
|
1554
|
+
var C = React__default["default"],g = Symbol.for("react.element"),m = Symbol.for("react.fragment"),y = Object.prototype.hasOwnProperty,p = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1555
|
+
function u(d, l, b) {
|
|
1556
|
+
var f,_ = {},w = null,$ = null;
|
|
1557
|
+
b !== void 0 && (w = "" + b), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && ($ = l.ref);
|
|
1558
|
+
for (f in l)
|
|
1559
|
+
y.call(l, f) && !R.hasOwnProperty(f) && (_[f] = l[f]);
|
|
1560
|
+
if (d && d.defaultProps)
|
|
1561
|
+
for (f in l = d.defaultProps, l)
|
|
1562
|
+
_[f] === void 0 && (_[f] = l[f]);
|
|
1563
|
+
return { $$typeof: g, type: d, key: w, ref: $, props: _, _owner: p.current };
|
|
1564
|
+
}
|
|
1565
|
+
return A.Fragment = m, A.jsx = u, A.jsxs = u, A;
|
|
1573
1566
|
}
|
|
1574
1567
|
var I = {};
|
|
1575
1568
|
/**
|
|
@@ -1582,17 +1575,17 @@
|
|
|
1582
1575
|
* LICENSE file in the root directory of this source tree.
|
|
1583
1576
|
*/
|
|
1584
1577
|
var we;
|
|
1585
|
-
function
|
|
1578
|
+
function vr() {
|
|
1586
1579
|
return we || (we = 1, process.env.NODE_ENV !== "production" && function () {
|
|
1587
|
-
var
|
|
1580
|
+
var C = React__default["default"],g = Symbol.for("react.element"),m = Symbol.for("react.portal"),y = Symbol.for("react.fragment"),p = Symbol.for("react.strict_mode"),R = Symbol.for("react.profiler"),u = Symbol.for("react.provider"),d = Symbol.for("react.context"),l = Symbol.for("react.forward_ref"),b = Symbol.for("react.suspense"),f = Symbol.for("react.suspense_list"),_ = Symbol.for("react.memo"),w = Symbol.for("react.lazy"),$ = Symbol.for("react.offscreen"),Z = Symbol.iterator,Pe = "@@iterator";
|
|
1588
1581
|
function xe(e) {
|
|
1589
1582
|
if (e === null || typeof e != "object")
|
|
1590
1583
|
return null;
|
|
1591
1584
|
var r = Z && e[Z] || e[Pe];
|
|
1592
1585
|
return typeof r == "function" ? r : null;
|
|
1593
1586
|
}
|
|
1594
|
-
var x =
|
|
1595
|
-
function
|
|
1587
|
+
var x = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1588
|
+
function h(e) {
|
|
1596
1589
|
{
|
|
1597
1590
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
1598
1591
|
t[n - 1] = arguments[n];
|
|
@@ -1603,16 +1596,16 @@
|
|
|
1603
1596
|
{
|
|
1604
1597
|
var n = x.ReactDebugCurrentFrame,o = n.getStackAddendum();
|
|
1605
1598
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
1606
|
-
var
|
|
1599
|
+
var s = t.map(function (i) {
|
|
1607
1600
|
return String(i);
|
|
1608
1601
|
});
|
|
1609
|
-
|
|
1602
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
1610
1603
|
}
|
|
1611
1604
|
}
|
|
1612
1605
|
var ke = !1,De = !1,Fe = !1,Ae = !1,Ie = !1,Q;
|
|
1613
1606
|
Q = Symbol.for("react.module.reference");
|
|
1614
1607
|
function $e(e) {
|
|
1615
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
1608
|
+
return !!(typeof e == "string" || typeof e == "function" || e === y || e === R || Ie || e === p || e === b || e === f || Ae || e === $ || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === _ || e.$$typeof === u || e.$$typeof === d || e.$$typeof === l || // This needs to include all possible module reference object
|
|
1616
1609
|
// types supported by any Flight configuration anywhere since
|
|
1617
1610
|
// we don't know which Flight build this will end up being used
|
|
1618
1611
|
// with.
|
|
@@ -1628,44 +1621,44 @@
|
|
|
1628
1621
|
function ee(e) {
|
|
1629
1622
|
return e.displayName || "Context";
|
|
1630
1623
|
}
|
|
1631
|
-
function
|
|
1624
|
+
function O(e) {
|
|
1632
1625
|
if (e == null)
|
|
1633
1626
|
return null;
|
|
1634
|
-
if (typeof e.tag == "number" &&
|
|
1627
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
1635
1628
|
return e.displayName || e.name || null;
|
|
1636
1629
|
if (typeof e == "string")
|
|
1637
1630
|
return e;
|
|
1638
1631
|
switch (e) {
|
|
1639
|
-
case
|
|
1632
|
+
case y:
|
|
1640
1633
|
return "Fragment";
|
|
1641
|
-
case
|
|
1634
|
+
case m:
|
|
1642
1635
|
return "Portal";
|
|
1643
|
-
case T:
|
|
1644
|
-
return "Profiler";
|
|
1645
1636
|
case R:
|
|
1637
|
+
return "Profiler";
|
|
1638
|
+
case p:
|
|
1646
1639
|
return "StrictMode";
|
|
1647
|
-
case
|
|
1640
|
+
case b:
|
|
1648
1641
|
return "Suspense";
|
|
1649
|
-
case
|
|
1642
|
+
case f:
|
|
1650
1643
|
return "SuspenseList";}
|
|
1651
1644
|
|
|
1652
1645
|
if (typeof e == "object")
|
|
1653
1646
|
switch (e.$$typeof) {
|
|
1654
|
-
case
|
|
1647
|
+
case d:
|
|
1655
1648
|
var r = e;
|
|
1656
1649
|
return ee(r) + ".Consumer";
|
|
1657
|
-
case
|
|
1650
|
+
case u:
|
|
1658
1651
|
var t = e;
|
|
1659
1652
|
return ee(t._context) + ".Provider";
|
|
1660
|
-
case
|
|
1653
|
+
case l:
|
|
1661
1654
|
return We(e, e.render, "ForwardRef");
|
|
1662
|
-
case
|
|
1655
|
+
case _:
|
|
1663
1656
|
var n = e.displayName || null;
|
|
1664
|
-
return n !== null ? n :
|
|
1665
|
-
case
|
|
1666
|
-
var o = e,
|
|
1657
|
+
return n !== null ? n : O(e.type) || "Memo";
|
|
1658
|
+
case w:{
|
|
1659
|
+
var o = e,s = o._payload,i = o._init;
|
|
1667
1660
|
try {
|
|
1668
|
-
return
|
|
1661
|
+
return O(i(s));
|
|
1669
1662
|
} catch {
|
|
1670
1663
|
return null;
|
|
1671
1664
|
}
|
|
@@ -1732,7 +1725,7 @@
|
|
|
1732
1725
|
|
|
1733
1726
|
|
|
1734
1727
|
}
|
|
1735
|
-
D < 0 &&
|
|
1728
|
+
D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1736
1729
|
}
|
|
1737
1730
|
}
|
|
1738
1731
|
var V = x.ReactCurrentDispatcher,M;
|
|
@@ -1766,8 +1759,8 @@
|
|
|
1766
1759
|
q = !0;
|
|
1767
1760
|
var o = Error.prepareStackTrace;
|
|
1768
1761
|
Error.prepareStackTrace = void 0;
|
|
1769
|
-
var
|
|
1770
|
-
|
|
1762
|
+
var s;
|
|
1763
|
+
s = V.current, V.current = null, Ye();
|
|
1771
1764
|
try {
|
|
1772
1765
|
if (r) {
|
|
1773
1766
|
var i = function () {
|
|
@@ -1780,47 +1773,47 @@
|
|
|
1780
1773
|
typeof Reflect == "object" && Reflect.construct) {
|
|
1781
1774
|
try {
|
|
1782
1775
|
Reflect.construct(i, []);
|
|
1783
|
-
} catch (
|
|
1784
|
-
n =
|
|
1776
|
+
} catch (S) {
|
|
1777
|
+
n = S;
|
|
1785
1778
|
}
|
|
1786
1779
|
Reflect.construct(e, [], i);
|
|
1787
1780
|
} else {
|
|
1788
1781
|
try {
|
|
1789
1782
|
i.call();
|
|
1790
|
-
} catch (
|
|
1791
|
-
n =
|
|
1783
|
+
} catch (S) {
|
|
1784
|
+
n = S;
|
|
1792
1785
|
}
|
|
1793
1786
|
e.call(i.prototype);
|
|
1794
1787
|
}
|
|
1795
1788
|
} else {
|
|
1796
1789
|
try {
|
|
1797
1790
|
throw Error();
|
|
1798
|
-
} catch (
|
|
1799
|
-
n =
|
|
1791
|
+
} catch (S) {
|
|
1792
|
+
n = S;
|
|
1800
1793
|
}
|
|
1801
1794
|
e();
|
|
1802
1795
|
}
|
|
1803
|
-
} catch (
|
|
1804
|
-
if (
|
|
1805
|
-
for (var a =
|
|
1796
|
+
} catch (S) {
|
|
1797
|
+
if (S && n && typeof S.stack == "string") {
|
|
1798
|
+
for (var a = S.stack.split(`
|
|
1806
1799
|
`), E = n.stack.split(`
|
|
1807
|
-
`),
|
|
1808
|
-
|
|
1809
|
-
for (;
|
|
1810
|
-
if (a[
|
|
1811
|
-
if (
|
|
1800
|
+
`), c = a.length - 1, v = E.length - 1; c >= 1 && v >= 0 && a[c] !== E[v];)
|
|
1801
|
+
v--;
|
|
1802
|
+
for (; c >= 1 && v >= 0; c--, v--)
|
|
1803
|
+
if (a[c] !== E[v]) {
|
|
1804
|
+
if (c !== 1 || v !== 1)
|
|
1812
1805
|
do
|
|
1813
|
-
if (
|
|
1814
|
-
var
|
|
1815
|
-
` + a[
|
|
1816
|
-
return e.displayName &&
|
|
1806
|
+
if (c--, v--, v < 0 || a[c] !== E[v]) {
|
|
1807
|
+
var T = `
|
|
1808
|
+
` + a[c].replace(" at new ", " at ");
|
|
1809
|
+
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, T), T;
|
|
1817
1810
|
} while (
|
|
1818
|
-
|
|
1811
|
+
c >= 1 && v >= 0);
|
|
1819
1812
|
break;
|
|
1820
1813
|
}
|
|
1821
1814
|
}
|
|
1822
1815
|
} finally {
|
|
1823
|
-
q = !1, V.current =
|
|
1816
|
+
q = !1, V.current = s, Le(), Error.prepareStackTrace = o;
|
|
1824
1817
|
}
|
|
1825
1818
|
var k = e ? e.displayName || e.name : "",_e = k ? W(k) : "";
|
|
1826
1819
|
return typeof e == "function" && Y.set(e, _e), _e;
|
|
@@ -1840,21 +1833,21 @@
|
|
|
1840
1833
|
if (typeof e == "string")
|
|
1841
1834
|
return W(e);
|
|
1842
1835
|
switch (e) {
|
|
1843
|
-
case
|
|
1836
|
+
case b:
|
|
1844
1837
|
return W("Suspense");
|
|
1845
|
-
case
|
|
1838
|
+
case f:
|
|
1846
1839
|
return W("SuspenseList");}
|
|
1847
1840
|
|
|
1848
1841
|
if (typeof e == "object")
|
|
1849
1842
|
switch (e.$$typeof) {
|
|
1850
|
-
case
|
|
1843
|
+
case l:
|
|
1851
1844
|
return Ue(e.render);
|
|
1852
|
-
case
|
|
1845
|
+
case _:
|
|
1853
1846
|
return L(e.type, r, t);
|
|
1854
|
-
case
|
|
1855
|
-
var n = e,o = n._payload,
|
|
1847
|
+
case w:{
|
|
1848
|
+
var n = e,o = n._payload,s = n._init;
|
|
1856
1849
|
try {
|
|
1857
|
-
return L(
|
|
1850
|
+
return L(s(o), r, t);
|
|
1858
1851
|
} catch {
|
|
1859
1852
|
}
|
|
1860
1853
|
}}
|
|
@@ -1871,9 +1864,9 @@
|
|
|
1871
1864
|
}
|
|
1872
1865
|
function Me(e, r, t, n, o) {
|
|
1873
1866
|
{
|
|
1874
|
-
var
|
|
1867
|
+
var s = Function.call.bind(N);
|
|
1875
1868
|
for (var i in e)
|
|
1876
|
-
if (
|
|
1869
|
+
if (s(e, i)) {
|
|
1877
1870
|
var a = void 0;
|
|
1878
1871
|
try {
|
|
1879
1872
|
if (typeof e[i] != "function") {
|
|
@@ -1881,10 +1874,10 @@
|
|
|
1881
1874
|
throw E.name = "Invariant Violation", E;
|
|
1882
1875
|
}
|
|
1883
1876
|
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1884
|
-
} catch (
|
|
1885
|
-
a =
|
|
1877
|
+
} catch (c) {
|
|
1878
|
+
a = c;
|
|
1886
1879
|
}
|
|
1887
|
-
a && !(a instanceof Error) && (U(o),
|
|
1880
|
+
a && !(a instanceof Error) && (U(o), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, U(o), h("Failed %s type: %s", t, a.message), U(null));
|
|
1888
1881
|
}
|
|
1889
1882
|
}
|
|
1890
1883
|
}
|
|
@@ -1910,7 +1903,7 @@
|
|
|
1910
1903
|
}
|
|
1911
1904
|
function ve(e) {
|
|
1912
1905
|
if (Je(e))
|
|
1913
|
-
return
|
|
1906
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
|
|
1914
1907
|
}
|
|
1915
1908
|
var F = x.ReactCurrentOwner,Ge = {
|
|
1916
1909
|
key: !0,
|
|
@@ -1937,14 +1930,14 @@
|
|
|
1937
1930
|
}
|
|
1938
1931
|
function He(e, r) {
|
|
1939
1932
|
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
|
|
1940
|
-
var t =
|
|
1941
|
-
J[t] || (
|
|
1933
|
+
var t = O(F.current.type);
|
|
1934
|
+
J[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(F.current.type), e.ref), J[t] = !0);
|
|
1942
1935
|
}
|
|
1943
1936
|
}
|
|
1944
1937
|
function Xe(e, r) {
|
|
1945
1938
|
{
|
|
1946
1939
|
var t = function () {
|
|
1947
|
-
pe || (pe = !0,
|
|
1940
|
+
pe || (pe = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1948
1941
|
};
|
|
1949
1942
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1950
1943
|
get: t,
|
|
@@ -1955,7 +1948,7 @@
|
|
|
1955
1948
|
function Ze(e, r) {
|
|
1956
1949
|
{
|
|
1957
1950
|
var t = function () {
|
|
1958
|
-
ge || (ge = !0,
|
|
1951
|
+
ge || (ge = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1959
1952
|
};
|
|
1960
1953
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1961
1954
|
get: t,
|
|
@@ -1963,17 +1956,17 @@
|
|
|
1963
1956
|
|
|
1964
1957
|
}
|
|
1965
1958
|
}
|
|
1966
|
-
var Qe = function (e, r, t, n, o,
|
|
1959
|
+
var Qe = function (e, r, t, n, o, s, i) {
|
|
1967
1960
|
var a = {
|
|
1968
1961
|
// This tag allows us to uniquely identify this as a React Element
|
|
1969
|
-
$$typeof:
|
|
1962
|
+
$$typeof: g,
|
|
1970
1963
|
// Built-in properties that belong on the element
|
|
1971
1964
|
type: e,
|
|
1972
1965
|
key: r,
|
|
1973
1966
|
ref: t,
|
|
1974
1967
|
props: i,
|
|
1975
1968
|
// Record the component responsible for creating this element.
|
|
1976
|
-
_owner:
|
|
1969
|
+
_owner: s };
|
|
1977
1970
|
|
|
1978
1971
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
1979
1972
|
configurable: !1,
|
|
@@ -1994,18 +1987,18 @@
|
|
|
1994
1987
|
};
|
|
1995
1988
|
function er(e, r, t, n, o) {
|
|
1996
1989
|
{
|
|
1997
|
-
var
|
|
1990
|
+
var s,i = {},a = null,E = null;
|
|
1998
1991
|
t !== void 0 && (ve(t), a = "" + t), Ke(r) && (ve(r.key), a = "" + r.key), ze(r) && (E = r.ref, He(r, o));
|
|
1999
|
-
for (
|
|
2000
|
-
N.call(r,
|
|
1992
|
+
for (s in r)
|
|
1993
|
+
N.call(r, s) && !Ge.hasOwnProperty(s) && (i[s] = r[s]);
|
|
2001
1994
|
if (e && e.defaultProps) {
|
|
2002
|
-
var
|
|
2003
|
-
for (
|
|
2004
|
-
i[
|
|
1995
|
+
var c = e.defaultProps;
|
|
1996
|
+
for (s in c)
|
|
1997
|
+
i[s] === void 0 && (i[s] = c[s]);
|
|
2005
1998
|
}
|
|
2006
1999
|
if (a || E) {
|
|
2007
|
-
var
|
|
2008
|
-
a && Xe(i,
|
|
2000
|
+
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
2001
|
+
a && Xe(i, v), E && Ze(i, v);
|
|
2009
2002
|
}
|
|
2010
2003
|
return Qe(e, a, E, o, n, F.current, i);
|
|
2011
2004
|
}
|
|
@@ -2021,12 +2014,12 @@
|
|
|
2021
2014
|
var z;
|
|
2022
2015
|
z = !1;
|
|
2023
2016
|
function K(e) {
|
|
2024
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
2017
|
+
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
2025
2018
|
}
|
|
2026
2019
|
function be() {
|
|
2027
2020
|
{
|
|
2028
2021
|
if (G.current) {
|
|
2029
|
-
var e =
|
|
2022
|
+
var e = O(G.current.type);
|
|
2030
2023
|
if (e)
|
|
2031
2024
|
return `
|
|
2032
2025
|
|
|
@@ -2046,7 +2039,7 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
2046
2039
|
return "";
|
|
2047
2040
|
}
|
|
2048
2041
|
}
|
|
2049
|
-
var
|
|
2042
|
+
var he = {};
|
|
2050
2043
|
function tr(e) {
|
|
2051
2044
|
{
|
|
2052
2045
|
var r = be();
|
|
@@ -2059,35 +2052,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2059
2052
|
return r;
|
|
2060
2053
|
}
|
|
2061
2054
|
}
|
|
2062
|
-
function
|
|
2055
|
+
function Ee(e, r) {
|
|
2063
2056
|
{
|
|
2064
2057
|
if (!e._store || e._store.validated || e.key != null)
|
|
2065
2058
|
return;
|
|
2066
2059
|
e._store.validated = !0;
|
|
2067
2060
|
var t = tr(r);
|
|
2068
|
-
if (
|
|
2061
|
+
if (he[t])
|
|
2069
2062
|
return;
|
|
2070
|
-
|
|
2063
|
+
he[t] = !0;
|
|
2071
2064
|
var n = "";
|
|
2072
|
-
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " +
|
|
2065
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + O(e._owner.type) + "."), j(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
|
|
2073
2066
|
}
|
|
2074
2067
|
}
|
|
2075
|
-
function
|
|
2068
|
+
function ye(e, r) {
|
|
2076
2069
|
{
|
|
2077
2070
|
if (typeof e != "object")
|
|
2078
2071
|
return;
|
|
2079
2072
|
if (B(e))
|
|
2080
2073
|
for (var t = 0; t < e.length; t++) {
|
|
2081
2074
|
var n = e[t];
|
|
2082
|
-
K(n) &&
|
|
2075
|
+
K(n) && Ee(n, r);
|
|
2083
2076
|
} else
|
|
2084
2077
|
if (K(e))
|
|
2085
2078
|
e._store && (e._store.validated = !0);else
|
|
2086
2079
|
if (e) {
|
|
2087
2080
|
var o = xe(e);
|
|
2088
2081
|
if (typeof o == "function" && o !== e.entries)
|
|
2089
|
-
for (var
|
|
2090
|
-
K(i.value) &&
|
|
2082
|
+
for (var s = o.call(e), i; !(i = s.next()).done;)
|
|
2083
|
+
K(i.value) && Ee(i.value, r);
|
|
2091
2084
|
}
|
|
2092
2085
|
}
|
|
2093
2086
|
}
|
|
@@ -2099,21 +2092,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2099
2092
|
var t;
|
|
2100
2093
|
if (typeof r == "function")
|
|
2101
2094
|
t = r.propTypes;else
|
|
2102
|
-
if (typeof r == "object" && (r.$$typeof ===
|
|
2095
|
+
if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
|
|
2103
2096
|
// Inner props are checked in the reconciler.
|
|
2104
|
-
r.$$typeof ===
|
|
2097
|
+
r.$$typeof === _))
|
|
2105
2098
|
t = r.propTypes;else
|
|
2106
2099
|
|
|
2107
2100
|
return;
|
|
2108
2101
|
if (t) {
|
|
2109
|
-
var n =
|
|
2102
|
+
var n = O(r);
|
|
2110
2103
|
Me(t, e.props, "prop", n, e);
|
|
2111
2104
|
} else if (r.PropTypes !== void 0 && !z) {
|
|
2112
2105
|
z = !0;
|
|
2113
|
-
var o =
|
|
2114
|
-
|
|
2106
|
+
var o = O(r);
|
|
2107
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
2115
2108
|
}
|
|
2116
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
2109
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2117
2110
|
}
|
|
2118
2111
|
}
|
|
2119
2112
|
function ar(e) {
|
|
@@ -2121,14 +2114,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2121
2114
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
2122
2115
|
var n = r[t];
|
|
2123
2116
|
if (n !== "children" && n !== "key") {
|
|
2124
|
-
j(e),
|
|
2117
|
+
j(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
2125
2118
|
break;
|
|
2126
2119
|
}
|
|
2127
2120
|
}
|
|
2128
|
-
e.ref !== null && (j(e),
|
|
2121
|
+
e.ref !== null && (j(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
2129
2122
|
}
|
|
2130
2123
|
}
|
|
2131
|
-
function
|
|
2124
|
+
function Re(e, r, t, n, o, s) {
|
|
2132
2125
|
{
|
|
2133
2126
|
var i = $e(e);
|
|
2134
2127
|
if (!i) {
|
|
@@ -2136,81 +2129,93 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2136
2129
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2137
2130
|
var E = rr(o);
|
|
2138
2131
|
E ? a += E : a += be();
|
|
2139
|
-
var
|
|
2140
|
-
e === null ?
|
|
2132
|
+
var c;
|
|
2133
|
+
e === null ? c = "null" : B(e) ? c = "array" : e !== void 0 && e.$$typeof === g ? (c = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
|
|
2141
2134
|
}
|
|
2142
|
-
var
|
|
2143
|
-
if (
|
|
2144
|
-
return
|
|
2135
|
+
var v = er(e, r, t, o, s);
|
|
2136
|
+
if (v == null)
|
|
2137
|
+
return v;
|
|
2145
2138
|
if (i) {
|
|
2146
|
-
var
|
|
2147
|
-
if (
|
|
2139
|
+
var T = r.children;
|
|
2140
|
+
if (T !== void 0)
|
|
2148
2141
|
if (n) {
|
|
2149
|
-
if (B(
|
|
2150
|
-
for (var k = 0; k <
|
|
2151
|
-
|
|
2152
|
-
Object.freeze && Object.freeze(
|
|
2142
|
+
if (B(T)) {
|
|
2143
|
+
for (var k = 0; k < T.length; k++)
|
|
2144
|
+
ye(T[k], e);
|
|
2145
|
+
Object.freeze && Object.freeze(T);
|
|
2153
2146
|
} else
|
|
2154
|
-
|
|
2147
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");} else
|
|
2155
2148
|
|
|
2156
|
-
|
|
2149
|
+
ye(T, e);
|
|
2157
2150
|
}
|
|
2158
|
-
return e ===
|
|
2151
|
+
return e === y ? ar(v) : nr(v), v;
|
|
2159
2152
|
}
|
|
2160
2153
|
}
|
|
2161
2154
|
function ir(e, r, t) {
|
|
2162
|
-
return
|
|
2155
|
+
return Re(e, r, t, !0);
|
|
2163
2156
|
}
|
|
2164
2157
|
function or(e, r, t) {
|
|
2165
|
-
return
|
|
2158
|
+
return Re(e, r, t, !1);
|
|
2166
2159
|
}
|
|
2167
2160
|
var ur = or,sr = ir;
|
|
2168
|
-
I.Fragment =
|
|
2161
|
+
I.Fragment = y, I.jsx = ur, I.jsxs = sr;
|
|
2169
2162
|
}()), I;
|
|
2170
2163
|
}
|
|
2171
|
-
(
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
const gr = H.jsx,mr = function (d) {
|
|
2164
|
+
process.env.NODE_ENV === "production" ? H.exports = dr() : H.exports = vr();
|
|
2165
|
+
var pr = H.exports;
|
|
2166
|
+
const gr = pr.jsx,mr = function (g) {
|
|
2175
2167
|
const {
|
|
2176
|
-
calLink:
|
|
2177
|
-
calOrigin:
|
|
2168
|
+
calLink: m,
|
|
2169
|
+
calOrigin: y,
|
|
2170
|
+
namespace: p = "",
|
|
2178
2171
|
config: R,
|
|
2179
|
-
initConfig:
|
|
2180
|
-
embedJsUrl:
|
|
2181
|
-
...
|
|
2182
|
-
|
|
2183
|
-
if (!
|
|
2172
|
+
initConfig: u = {},
|
|
2173
|
+
embedJsUrl: d,
|
|
2174
|
+
...l } =
|
|
2175
|
+
g;
|
|
2176
|
+
if (!m)
|
|
2184
2177
|
throw new Error("calLink is required");
|
|
2185
|
-
const
|
|
2178
|
+
const b = React.useRef(!1),f = cr(d),_ = React.useRef(null);
|
|
2186
2179
|
return React.useEffect(() => {
|
|
2187
|
-
if (!
|
|
2180
|
+
if (!f || b.current || !_.current)
|
|
2188
2181
|
return;
|
|
2189
|
-
|
|
2190
|
-
const
|
|
2191
|
-
|
|
2192
|
-
...
|
|
2193
|
-
origin:
|
|
2194
|
-
|
|
2195
|
-
elementOrSelector:
|
|
2196
|
-
calLink:
|
|
2197
|
-
config: R })
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2182
|
+
b.current = !0;
|
|
2183
|
+
const w = _.current;
|
|
2184
|
+
p ? (f("init", p, {
|
|
2185
|
+
...u,
|
|
2186
|
+
origin: y }),
|
|
2187
|
+
f.ns[p]("inline", {
|
|
2188
|
+
elementOrSelector: w,
|
|
2189
|
+
calLink: m,
|
|
2190
|
+
config: R })) : (
|
|
2191
|
+
f("init", {
|
|
2192
|
+
...u,
|
|
2193
|
+
origin: y }),
|
|
2194
|
+
f("inline", {
|
|
2195
|
+
elementOrSelector: w,
|
|
2196
|
+
calLink: m,
|
|
2197
|
+
config: R }));
|
|
2198
|
+
|
|
2199
|
+
}, [f, m, R, p, y, u]), f ? /* @__PURE__ */gr("div", {
|
|
2200
|
+
ref: _,
|
|
2201
|
+
...l }) :
|
|
2202
2202
|
null;
|
|
2203
|
-
},
|
|
2204
|
-
|
|
2205
|
-
const
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2203
|
+
},hr = mr;
|
|
2204
|
+
function Er(C) {
|
|
2205
|
+
const g = typeof C == "string" ? { embedJsUrl: C } : C ?? {},{ namespace: m = "", embedJsUrl: y } = g;
|
|
2206
|
+
return new Promise(function p(R) {
|
|
2207
|
+
const u = X(y);
|
|
2208
|
+
u("init", m);
|
|
2209
|
+
const d = m ? u.ns[m] : u;
|
|
2210
|
+
if (!d) {
|
|
2211
|
+
setTimeout(() => {
|
|
2212
|
+
p(R);
|
|
2213
|
+
}, 50);
|
|
2214
|
+
return;
|
|
2215
|
+
}
|
|
2216
|
+
R(d);
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2214
2219
|
|
|
2215
2220
|
var DEFAULT_ACCENT_COLOR = '#004ac2';
|
|
2216
2221
|
var useAccentColor = function () {
|
|
@@ -2231,14 +2236,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2231
2236
|
var CalDotComScheduling = function (_a) {
|
|
2232
2237
|
var calLink = _a.calLink,_b = _a.hideEventTypeDetails,hideEventTypeDetails = _b === void 0 ? false : _b,onBookingSuccessful = _a.onBookingSuccessful,metadata = _a.metadata;
|
|
2233
2238
|
var accentColor = useAccentColor().accentColor;
|
|
2239
|
+
var eventListenerRef = React.useRef(false);
|
|
2240
|
+
var calApiRef = React.useRef(null);
|
|
2241
|
+
var bookingSuccessfulCallback = function (e) {
|
|
2242
|
+
var data = e.detail.data;
|
|
2243
|
+
var confirmed = data.confirmed,eventType = data.eventType,date = data.date,booking = data.booking;
|
|
2244
|
+
onBookingSuccessful({ confirmed: confirmed, eventType: eventType, date: date, booking: booking });
|
|
2245
|
+
};
|
|
2234
2246
|
var initComponent = function () {return __awaiter(void 0, void 0, void 0, function () {
|
|
2235
2247
|
var cal;
|
|
2236
2248
|
return __generator(this, function (_a) {
|
|
2237
2249
|
switch (_a.label) {
|
|
2238
|
-
case 0:return [4,
|
|
2250
|
+
case 0:return [4, Er()];
|
|
2239
2251
|
case 1:
|
|
2240
2252
|
cal = _a.sent();
|
|
2241
|
-
|
|
2253
|
+
calApiRef.current = cal;
|
|
2254
|
+
if (cal && !eventListenerRef.current) {
|
|
2242
2255
|
cal('ui', {
|
|
2243
2256
|
theme: 'light',
|
|
2244
2257
|
styles: { branding: { brandColor: accentColor } },
|
|
@@ -2246,17 +2259,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2246
2259
|
|
|
2247
2260
|
cal('on', {
|
|
2248
2261
|
action: 'bookingSuccessful',
|
|
2249
|
-
callback:
|
|
2250
|
-
var data = e.detail.data;
|
|
2251
|
-
var confirmed = data.confirmed,eventType = data.eventType,date = data.date,booking = data.booking;
|
|
2252
|
-
onBookingSuccessful({
|
|
2253
|
-
confirmed: confirmed,
|
|
2254
|
-
eventType: eventType,
|
|
2255
|
-
date: date,
|
|
2256
|
-
booking: booking });
|
|
2257
|
-
|
|
2258
|
-
} });
|
|
2262
|
+
callback: bookingSuccessfulCallback });
|
|
2259
2263
|
|
|
2264
|
+
eventListenerRef.current = true;
|
|
2260
2265
|
}
|
|
2261
2266
|
return [2];}
|
|
2262
2267
|
|
|
@@ -2264,7 +2269,34 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2264
2269
|
});};
|
|
2265
2270
|
React.useEffect(function () {
|
|
2266
2271
|
initComponent();
|
|
2267
|
-
|
|
2272
|
+
return function () {
|
|
2273
|
+
var cleanup = function () {return __awaiter(void 0, void 0, void 0, function () {
|
|
2274
|
+
var cal, _a;
|
|
2275
|
+
return __generator(this, function (_b) {
|
|
2276
|
+
switch (_b.label) {
|
|
2277
|
+
case 0:
|
|
2278
|
+
_a = calApiRef.current;
|
|
2279
|
+
if (_a) return [3, 2];
|
|
2280
|
+
return [4, Er()];
|
|
2281
|
+
case 1:
|
|
2282
|
+
_a = _b.sent();
|
|
2283
|
+
_b.label = 2;
|
|
2284
|
+
case 2:
|
|
2285
|
+
cal = _a;
|
|
2286
|
+
if (cal && eventListenerRef.current) {
|
|
2287
|
+
cal('off', {
|
|
2288
|
+
action: 'bookingSuccessful',
|
|
2289
|
+
callback: bookingSuccessfulCallback });
|
|
2290
|
+
|
|
2291
|
+
eventListenerRef.current = false;
|
|
2292
|
+
}
|
|
2293
|
+
return [2];}
|
|
2294
|
+
|
|
2295
|
+
});
|
|
2296
|
+
});};
|
|
2297
|
+
cleanup();
|
|
2298
|
+
};
|
|
2299
|
+
}, [accentColor, hideEventTypeDetails]);
|
|
2268
2300
|
var metadataString = '';
|
|
2269
2301
|
if (metadata) {
|
|
2270
2302
|
metadataString = Object.entries(metadata).
|
|
@@ -2276,7 +2308,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2276
2308
|
}
|
|
2277
2309
|
var metadataSeparator = calLink.includes('?') ? '&' : '?';
|
|
2278
2310
|
var composedCalLink = "".concat(calLink).concat(metadataString ? "".concat(metadataSeparator).concat(metadataString) : '');
|
|
2279
|
-
return jsxRuntime.exports.jsx(
|
|
2311
|
+
return jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(hr, { calLink: composedCalLink, style: { width: '100%', height: '100%', overflow: 'hidden' } }) });
|
|
2280
2312
|
};
|
|
2281
2313
|
|
|
2282
2314
|
var classes$u = {"input_wrapper":"awell__checkboxButton_input_wrapper","checkbox_wrapper":"awell__checkboxButton_checkbox_wrapper","label_wrapper":"awell__checkboxButton_label_wrapper"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awell-health/ui-library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.71",
|
|
4
4
|
"description": "UI components to integrate with Awell Health",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-dom": "^18.2.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@calcom/embed-react": "^1.
|
|
47
|
+
"@calcom/embed-react": "^1.5.1",
|
|
48
48
|
"@heroicons/react": "^2.1.3",
|
|
49
49
|
"cloudinary-core": "^2.13.0",
|
|
50
50
|
"date-fns": "^2.29.1",
|