@feathery/react 2.23.4 → 2.23.6
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/cjs/auth/internal/utils.d.ts.map +1 -1
- package/cjs/elements/basic/ButtonElement.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/useTableData.d.ts +1 -0
- package/cjs/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/cjs/elements/fields/PhoneField/CountryDropdown.d.ts.map +1 -1
- package/cjs/elements/fields/PhoneField/index.d.ts.map +1 -1
- package/cjs/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.CP_mLa1m.js → fthry_FormControl.BSFeGfR_.js} +1 -1
- package/cjs/{fthry_InlineTooltip.B8DmZAm_.js → fthry_InlineTooltip.DdmX24ud.js} +2 -2
- package/cjs/{fthry_Overlay.NbtN0szY.js → fthry_Overlay.dLOs3POl.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.Chdv_-BE.js → fthry_PaymentMethodField.B4hPg2W5.js} +4 -4
- package/cjs/{fthry_Placeholder.DqfWdyxL.js → fthry_Placeholder.CGG1eUWI.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.D0r8cp_B.js → fthry_ShowEyeIcon.CqkQEvU3.js} +1 -1
- package/cjs/{fthry_index.jPrS6PXj.js → fthry_index.B-tGwDjz.js} +3 -3
- package/cjs/{fthry_index.DnxpWsMc.js → fthry_index.B6OWca6B.js} +5 -5
- package/cjs/{fthry_index.BEVeNRzV.js → fthry_index.BMCo2zda.js} +6 -6
- package/cjs/{fthry_index.CxSsfqmh.js → fthry_index.BMhDSvsN.js} +2 -2
- package/cjs/{fthry_index.C5j86Jvn.js → fthry_index.Ba5C9yId.js} +6 -6
- package/cjs/{fthry_index.D4Wh5Gae.js → fthry_index.BdTls4Lg.js} +2 -2
- package/cjs/{fthry_index.D12V6N10.js → fthry_index.BlbuXVF3.js} +1 -1
- package/cjs/{fthry_index.Cmq71Bt9.js → fthry_index.BqNLbMy7.js} +1 -1
- package/cjs/{fthry_index.DYCqVDAy.js → fthry_index.CAGAOhTh.js} +6 -6
- package/cjs/{fthry_index.DxlmMil4.js → fthry_index.CIAaigRJ.js} +4 -4
- package/cjs/{fthry_index.B2zNdCo9.js → fthry_index.CLUV_Y9k.js} +1 -1
- package/cjs/{fthry_index.D48NiLIf.js → fthry_index.COIyjfXF.js} +3 -3
- package/cjs/{fthry_index.xSHVUU1i.js → fthry_index.CWjgaGDT.js} +1 -1
- package/cjs/{fthry_index.NQG80c7p.js → fthry_index.CWlKeuqz.js} +5 -5
- package/cjs/{fthry_index.MhBBvjf4.js → fthry_index.CyaIdx9V.js} +4 -4
- package/cjs/{fthry_index.qt3C-Qt1.js → fthry_index.Czm7tOJN.js} +1 -1
- package/cjs/{fthry_index.BYHR4MSY.js → fthry_index.D4Iu9UG6.js} +4 -4
- package/cjs/{fthry_index.DMpC4pzK.js → fthry_index.DC19EIx0.js} +14 -16
- package/cjs/fthry_index.DKgFa6Cd.js +7245 -0
- package/cjs/{fthry_index.BwJ8UbV0.js → fthry_index.DRD0iTwt.js} +1287 -1264
- package/cjs/{fthry_index.Bsfl9n6o.js → fthry_index.DxydBYq9.js} +5 -5
- package/cjs/{fthry_index.DHiNhZNV.js → fthry_index.DzZDhazI.js} +1 -1
- package/cjs/{fthry_index.CJcXFlqa.js → fthry_index.FziiiLJL.js} +54 -4
- package/cjs/{fthry_index.nk3LibkG.js → fthry_index.H0oI-pdw.js} +1 -1
- package/cjs/{fthry_index.BUWCPnkW.js → fthry_index.Srl5eYm5.js} +1 -1
- package/cjs/{fthry_index.CwZQzFeM.js → fthry_index.vuYMQcab.js} +8 -8
- package/cjs/{fthry_input.BtD9rhOL.js → fthry_input.3eZioCQX.js} +1 -1
- package/cjs/{fthry_script.Bse2qene.js → fthry_script.B0ZxbIbw.js} +1 -1
- package/cjs/{fthry_styles.CBS4ziaS.js → fthry_styles.DDrbD7PV.js} +1 -1
- package/cjs/{fthry_useElementSize.1JZE9_XK.js → fthry_useElementSize.DnuxzPqr.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.BDWg3Re_.js → fthry_useSalesforceSync.uOFzu2dA.js} +1 -1
- package/cjs/{fthry_webfontloader.C5EOl2GC.js → fthry_webfontloader.nyXgbNFp.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/validation.d.ts +4 -3
- package/cjs/utils/validation.d.ts.map +1 -1
- package/dist/auth/internal/utils.d.ts.map +1 -1
- package/dist/elements/basic/ButtonElement.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/useTableData.d.ts +1 -0
- package/dist/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/dist/elements/fields/PhoneField/CountryDropdown.d.ts.map +1 -1
- package/dist/elements/fields/PhoneField/index.d.ts.map +1 -1
- package/dist/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/dist/{fthry_FormControl.pCOAO7LM.js → fthry_FormControl.BWQA5b0y.js} +1 -1
- package/dist/{fthry_InlineTooltip.C_1nocB9.js → fthry_InlineTooltip.BZLGojXl.js} +2 -2
- package/dist/{fthry_Overlay.B71_lHCP.js → fthry_Overlay.Dtxj6U3L.js} +1 -1
- package/dist/{fthry_PaymentMethodField.DWQiQajb.js → fthry_PaymentMethodField.C-mD7K2W.js} +4 -4
- package/dist/{fthry_Placeholder.CmfLMsuU.js → fthry_Placeholder.hAt5rBVS.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.CwsDOp-1.js → fthry_ShowEyeIcon.C9RMRr7X.js} +1 -1
- package/dist/{fthry_index.DkOfnwMo.js → fthry_index.B-icxM59.js} +1 -1
- package/dist/{fthry_index.DpJv-8TU.js → fthry_index.BD_dUvCa.js} +1 -1
- package/dist/{fthry_index.DrbC7Yvj.js → fthry_index.BESTuSD0.js} +6 -6
- package/dist/{fthry_index.B662KpzL.js → fthry_index.BHy82_xs.js} +3 -3
- package/dist/{fthry_index.DNkI9rK_.js → fthry_index.BLC4N3MM.js} +5 -5
- package/dist/{fthry_index.B_MGu0vq.js → fthry_index.BLWtc8eL.js} +6 -6
- package/dist/{fthry_index.fgPxSncQ.js → fthry_index.BOupY-M9.js} +4 -4
- package/dist/{fthry_index.B-1AsITd.js → fthry_index.BRaDez8A.js} +6 -6
- package/dist/{fthry_index.B6e40TNH.js → fthry_index.BXgOTSKx.js} +54 -4
- package/dist/{fthry_index.UgzTpusQ.js → fthry_index.C0qPFRWZ.js} +1 -1
- package/dist/{fthry_index.CTNmp4Uu.js → fthry_index.C0uIFVvg.js} +4 -4
- package/dist/{fthry_index.CRHUBRQI.js → fthry_index.C1M4obTx.js} +2 -2
- package/dist/{fthry_index.BFjEVX8Q.js → fthry_index.CDTlE3iz.js} +5 -5
- package/dist/{fthry_index.qSUOQAau.js → fthry_index.CZG2sz8l.js} +3 -3
- package/dist/{fthry_index.Boum24kr.js → fthry_index.CioL9mXh.js} +8 -8
- package/dist/{fthry_index.3I3TFRij.js → fthry_index.Cnj3D2sE.js} +4 -4
- package/dist/{fthry_index.Du7-Siwz.js → fthry_index.CpjGr8XJ.js} +1 -1
- package/dist/{fthry_index.DZzcdxua.js → fthry_index.D3AC3IRu.js} +14 -16
- package/dist/{fthry_index.EsYuFuWJ.js → fthry_index.DkySqYis.js} +1288 -1265
- package/dist/{fthry_index.lUtvQLwf.js → fthry_index.DsD0fPig.js} +1 -1
- package/dist/{fthry_index.Zw_6EeQW.js → fthry_index.DsqQfUyE.js} +1 -1
- package/dist/fthry_index.FxHyaooV.js +7193 -0
- package/dist/{fthry_index.xiCtRiXP.js → fthry_index.M__FBiFq.js} +5 -5
- package/dist/{fthry_index.BdiPlpSw.js → fthry_index.UjyJiWL6.js} +1 -1
- package/dist/{fthry_index.BM9D8gpq.js → fthry_index.m_O5twIG.js} +1 -1
- package/dist/{fthry_index.CDEcS8bU.js → fthry_index.oi3hyRpZ.js} +2 -2
- package/dist/{fthry_input.DDJESt6C.js → fthry_input.CabnFCSi.js} +1 -1
- package/dist/{fthry_script.BZXm6Hk6.js → fthry_script.DPOcbAqz.js} +1 -1
- package/dist/{fthry_styles.LF8XhlRV.js → fthry_styles.C2mCy0WK.js} +1 -1
- package/dist/{fthry_useElementSize.Bs-CqmP2.js → fthry_useElementSize.secLYB15.js} +1 -1
- package/dist/{fthry_useSalesforceSync.DWx9gd0A.js → fthry_useSalesforceSync.Cpjc7KyH.js} +1 -1
- package/dist/{fthry_webfontloader.Fmt0quEr.js → fthry_webfontloader.ZS2IvgfF.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/validation.d.ts +4 -3
- package/dist/utils/validation.d.ts.map +1 -1
- package/package.json +2 -1
- package/umd/{PhoneField.f52b5de44614b445feeb.js → PhoneField.42eae8ec161c28522777.js} +1 -1
- package/umd/TableElement.8380efafa84627d75ce9.js +1 -0
- package/umd/index.js +1 -1
- package/umd/libphonenumber.d53d0d1347fa5545ff45.js +1 -0
- package/umd/TableElement.8fe7915eeb32e23ba816.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, p as imgMaxSizeStyles, q as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, p as imgMaxSizeStyles, q as noTextSelectStyles, E as ErrorInput } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
10
10
|
|
|
11
11
|
function ButtonGroupField(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow,
|
|
1
|
+
import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow, an as loadQRScanner, ao as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, ap as qrPromise } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.C2mCy0WK.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { P as Placeholder$2 } from './fthry_Placeholder.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
7
|
-
import { T as Tooltip, O as Overlay } from './fthry_Overlay.
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { P as Placeholder$2 } from './fthry_Placeholder.hAt5rBVS.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.js';
|
|
7
|
+
import { T as Tooltip, O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as featheryDoc,
|
|
1
|
+
import { f as featheryDoc, aq as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, l as __awaiter, m as __generator, ar as toBase64, o as debounce, as as MODAL_Z_INDEX, ad as CloseIcon, at as dataURLToFile, t as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
|
|
3
|
-
import { P as PropTypes } from './fthry_index.
|
|
3
|
+
import { P as PropTypes } from './fthry_index.m_O5twIG.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1433,7 +1433,7 @@ function SignatureField(_a) {
|
|
|
1433
1433
|
useEffect(function () {
|
|
1434
1434
|
if (!global.webfontloaderPromise)
|
|
1435
1435
|
global.webfontloaderPromise = import(
|
|
1436
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
1436
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ZS2IvgfF.js').then(function (n) { return n.w; });
|
|
1437
1437
|
global.webfontloaderPromise.then(function (WebFont) {
|
|
1438
1438
|
WebFont.load({ google: { families: ['La Belle Aurore'] } });
|
|
1439
1439
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder,
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { memo, useRef, useState } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
7
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
8
|
-
import { a as IMaskInput } from './fthry_input.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
|
|
7
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.C9RMRr7X.js';
|
|
8
|
+
import { a as IMaskInput } from './fthry_input.CabnFCSi.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import './fthry_index.
|
|
13
|
+
import './fthry_index.m_O5twIG.js';
|
|
14
14
|
|
|
15
15
|
function TextAutocomplete(_a) {
|
|
16
16
|
var _b = _a.allOptions, allOptions = _b === void 0 ? [] : _b, showOptions = _a.showOptions, _c = _a.onSelect, onSelect = _c === void 0 ? function () { } : _c, _d = _a.onHide, onHide = _d === void 0 ? function () { } : _d, _e = _a.onInputFocus, onInputFocus = _e === void 0 ? function () { } : _e, _f = _a.value, value = _f === void 0 ? '' : _f, containerRef = _a.containerRef, responsiveStyles = _a.responsiveStyles, listItemRef = _a.listItemRef, children = _a.children;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, u as useBorder, b as __read, C as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, w as css, x as __makeTemplateObject, G as Global, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, u as useBorder, b as __read, C as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, w as css, x as __makeTemplateObject, G as Global, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useState, useRef, useEffect } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
10
10
|
|
|
11
11
|
var ae = [
|
|
12
12
|
{ name: 'Abu Dhabi', code: 'AZ' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard,
|
|
1
|
+
import { v as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, am as isNum } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z as __rest, b as __read, C as countryData, ai as
|
|
1
|
+
import { z as __rest, b as __read, C as countryData, ai as phoneLib, aj as authState, ak as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, al as phoneLibPromise, h as hoverStylesGuard, am as isNum, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { forwardRef, useRef, useState, useEffect, useMemo, memo } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -1656,7 +1656,7 @@ function CountryDropdown(_a, ref) {
|
|
|
1656
1656
|
var filteredData = countryData.filter(function (_a) {
|
|
1657
1657
|
var _b;
|
|
1658
1658
|
var countryCode = _a.countryCode, countryName = _a.countryName, phoneCode = _a.phoneCode;
|
|
1659
|
-
if (!((_b =
|
|
1659
|
+
if (!((_b = phoneLib) === null || _b === void 0 ? void 0 : _b.isSupportedCountry(countryCode)) ||
|
|
1660
1660
|
(authState.client && !firebaseSMSCountries.has(countryCode)))
|
|
1661
1661
|
return false;
|
|
1662
1662
|
return (!query ||
|
|
@@ -1810,11 +1810,11 @@ function PhoneField(_a) {
|
|
|
1810
1810
|
useEffect(function () {
|
|
1811
1811
|
if (fullNumber === curFullNumber || editMode)
|
|
1812
1812
|
return;
|
|
1813
|
-
phoneLibPromise.then(function () {
|
|
1813
|
+
phoneLibPromise.then(function (LPN) {
|
|
1814
1814
|
var _a, _b;
|
|
1815
|
-
if (!
|
|
1815
|
+
if (!LPN)
|
|
1816
1816
|
return;
|
|
1817
|
-
var ayt = new
|
|
1817
|
+
var ayt = new LPN.AsYouType();
|
|
1818
1818
|
ayt.input("+".concat(fullNumber));
|
|
1819
1819
|
var numberObj = (_a = ayt.getNumber()) !== null && _a !== void 0 ? _a : '';
|
|
1820
1820
|
setCurFullNumber(fullNumber);
|
|
@@ -1825,7 +1825,7 @@ function PhoneField(_a) {
|
|
|
1825
1825
|
});
|
|
1826
1826
|
}, [fullNumber]);
|
|
1827
1827
|
var formattedNumber = useMemo(function () {
|
|
1828
|
-
var LPN =
|
|
1828
|
+
var LPN = phoneLib;
|
|
1829
1829
|
if (!LPN)
|
|
1830
1830
|
return "+".concat(rawNumber);
|
|
1831
1831
|
// handle blurred and empty input
|
|
@@ -1843,12 +1843,10 @@ function PhoneField(_a) {
|
|
|
1843
1843
|
return;
|
|
1844
1844
|
}
|
|
1845
1845
|
var exampleNumber = exampleNumbers[curCountryCode];
|
|
1846
|
-
phoneLibPromise.then(function () {
|
|
1847
|
-
if (!
|
|
1846
|
+
phoneLibPromise.then(function (LPN) {
|
|
1847
|
+
if (!LPN)
|
|
1848
1848
|
return;
|
|
1849
|
-
setPlaceholder(
|
|
1850
|
-
.parsePhoneNumber(exampleNumber, curCountryCode)
|
|
1851
|
-
.formatInternational());
|
|
1849
|
+
setPlaceholder(LPN.parsePhoneNumber(exampleNumber, curCountryCode).formatInternational());
|
|
1852
1850
|
});
|
|
1853
1851
|
}, [curCountryCode, element]);
|
|
1854
1852
|
var handleOnComplete = function (curRawNumber) {
|
|
@@ -1928,7 +1926,7 @@ function PhoneField(_a) {
|
|
|
1928
1926
|
var start = e.target.selectionStart;
|
|
1929
1927
|
var newNum = e.target.value;
|
|
1930
1928
|
if (newNum) {
|
|
1931
|
-
var LPN =
|
|
1929
|
+
var LPN = phoneLib;
|
|
1932
1930
|
if (!LPN)
|
|
1933
1931
|
return;
|
|
1934
1932
|
// Handle pasted numbers:
|