@feathery/react 2.28.1 → 2.29.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/cjs/Form/index.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/SignatureField/components/SignatureModal.d.ts +1 -0
- package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
- package/cjs/elements/fields/SignatureField/index.d.ts +1 -1
- package/cjs/elements/fields/SignatureField/index.d.ts.map +1 -1
- package/cjs/elements/fields/SignatureField/translation.d.ts +2 -0
- package/cjs/elements/fields/SignatureField/translation.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.BlMvfQ_d.js → fthry_FormControl.kZ5yXjHP.js} +1 -1
- package/cjs/{fthry_InlineTooltip.B-Bvx2Dw.js → fthry_InlineTooltip.BBNkgzp3.js} +2 -2
- package/cjs/{fthry_Overlay.D5P4Fvkc.js → fthry_Overlay.DQ1W49J6.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.CJs3wU3J.js → fthry_PaymentMethodField.D7BpcTHT.js} +4 -4
- package/cjs/{fthry_Placeholder.BnyMgjQP.js → fthry_Placeholder.DY81qB5U.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.2L8TP_tO.js → fthry_ShowEyeIcon.Ck3HpNRr.js} +1 -1
- package/cjs/{fthry_index.DOk4ICUP.js → fthry_index.B2WrnDCu.js} +5 -5
- package/cjs/{fthry_index.itt2nB4V.js → fthry_index.BJquBpMQ.js} +1 -1
- package/cjs/{fthry_index.CQLnf3hm.js → fthry_index.BPi1okoK.js} +6 -6
- package/cjs/{fthry_index.7TrXFxsv.js → fthry_index.BXuRsANe.js} +2 -2
- package/cjs/{fthry_index.BOpyv-M-.js → fthry_index.Bgag42Np.js} +1 -1
- package/cjs/{fthry_index.C26ZdgP5.js → fthry_index.BhfQqXGJ.js} +4 -4
- package/cjs/{fthry_index.B1f5zXbD.js → fthry_index.BiaJ1jl2.js} +2 -2
- package/cjs/{fthry_index.DVQ4WG9Q.js → fthry_index.BuH0Itrc.js} +4 -4
- package/cjs/{fthry_index.CsC-Eikm.js → fthry_index.CJ3nEvr8.js} +4 -4
- package/cjs/{fthry_index.3qYQ6tfs.js → fthry_index.CR2ysImA.js} +1 -1
- package/cjs/{fthry_index.DqkJHm2t.js → fthry_index.CTmQVKHd.js} +1 -1
- package/cjs/{fthry_index.DFJtQg2I.js → fthry_index.Ca-jN77c.js} +5 -5
- package/cjs/{fthry_index.Ai64Uezr.js → fthry_index.CaGtg7No.js} +1 -1
- package/cjs/{fthry_index.VFdonI6E.js → fthry_index.ChHqvi_w.js} +5 -5
- package/cjs/{fthry_index.BrrCx6gV.js → fthry_index.CyO673Aw.js} +34 -36
- package/cjs/{fthry_index.ucQBvleU.js → fthry_index.D9nl6yWC.js} +1 -1
- package/cjs/{fthry_index.DZOcP447.js → fthry_index.DIJxNTtb.js} +6 -6
- package/cjs/{fthry_index.DR6ODJ18.js → fthry_index.DXpLDtWu.js} +6 -6
- package/cjs/{fthry_index.BAEP5DF-.js → fthry_index.Da6aYIHM.js} +3 -3
- package/cjs/{fthry_index.Dg9WPadV.js → fthry_index.DkMxV18v.js} +24 -7
- package/cjs/{fthry_index.CLmBmcwn.js → fthry_index.Dxki7HdW.js} +8 -8
- package/cjs/{fthry_index.DVsuUYU6.js → fthry_index.EYrk9cSa.js} +1 -1
- package/cjs/{fthry_index.DeAJwTBz.js → fthry_index.V0-nv5L4.js} +1 -1
- package/cjs/{fthry_index.toFhbumO.js → fthry_index.hWQvQk7E.js} +34 -9
- package/cjs/{fthry_input.D7yBTJAA.js → fthry_input.bE0l-t_1.js} +1 -1
- package/cjs/{fthry_script.ChXnsAYi.js → fthry_script.BCkKPMlm.js} +1 -1
- package/cjs/{fthry_styles.KNGSmpv5.js → fthry_styles.T0Rj_2XL.js} +1 -1
- package/cjs/{fthry_useElementSize.D-iMIbmC.js → fthry_useElementSize.Du6gVeG7.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.CAmwk5ZU.js → fthry_useSalesforceSync.CnsTa2jO.js} +1 -1
- package/cjs/{fthry_webfontloader.BbnH4vxY.js → fthry_webfontloader.D6rNHkUp.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/browser.d.ts +1 -1
- package/cjs/utils/browser.d.ts.map +1 -1
- package/cjs/utils/featheryClient/index.d.ts +2 -1
- package/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/Form/index.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/SignatureField/components/SignatureModal.d.ts +1 -0
- package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
- package/dist/elements/fields/SignatureField/index.d.ts +1 -1
- package/dist/elements/fields/SignatureField/index.d.ts.map +1 -1
- package/dist/elements/fields/SignatureField/translation.d.ts +2 -0
- package/dist/elements/fields/SignatureField/translation.d.ts.map +1 -1
- package/dist/{fthry_FormControl.CbB5XB3F.js → fthry_FormControl.BuuMSi33.js} +1 -1
- package/dist/{fthry_InlineTooltip.DfUPmZIX.js → fthry_InlineTooltip.BrYdk-JC.js} +2 -2
- package/dist/{fthry_Overlay.BrCGPX8T.js → fthry_Overlay.tEYnJT2R.js} +1 -1
- package/dist/{fthry_PaymentMethodField.Dh5MF0LI.js → fthry_PaymentMethodField.CtnTgodd.js} +4 -4
- package/dist/{fthry_Placeholder.Mu_R6Bg4.js → fthry_Placeholder.CNCz2tec.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.zaqisbFn.js → fthry_ShowEyeIcon.D5SVexo6.js} +1 -1
- package/dist/{fthry_index.GXsYMSN_.js → fthry_index.9Ck9ftoz.js} +1 -1
- package/dist/{fthry_index.BeaMdjin.js → fthry_index.BBfWFvRc.js} +1 -1
- package/dist/{fthry_index.fNt6f0eq.js → fthry_index.BCis3aeZ.js} +1 -1
- package/dist/{fthry_index.DV21IHCb.js → fthry_index.BDuq8oLk.js} +5 -5
- package/dist/{fthry_index.D_3nLa7a.js → fthry_index.BE-1b7-q.js} +6 -6
- package/dist/{fthry_index.C66TZtvg.js → fthry_index.BFd-TLmA.js} +5 -5
- package/dist/{fthry_index.B4YaHgh4.js → fthry_index.BJMKe9bY.js} +4 -4
- package/dist/{fthry_index.CkVNoCvZ.js → fthry_index.BQguezyR.js} +1 -1
- package/dist/{fthry_index.CUMthLyE.js → fthry_index.BTyNf3DP.js} +4 -4
- package/dist/{fthry_index.CN6hw5PJ.js → fthry_index.BUzvhIcG.js} +2 -2
- package/dist/{fthry_index.DvowDLEg.js → fthry_index.Ba9mZR-a.js} +2 -2
- package/dist/{fthry_index.CUEyiObD.js → fthry_index.BnI0SWmF.js} +3 -3
- package/dist/{fthry_index.Dqwx_Xiz.js → fthry_index.BueBK9vP.js} +1 -1
- package/dist/{fthry_index.JnEAOhWW.js → fthry_index.CAiP8AGh.js} +34 -9
- package/dist/{fthry_index.C9QHgBp-.js → fthry_index.CLHxEKDU.js} +34 -36
- package/dist/{fthry_index.V3meYKWw.js → fthry_index.CRSq4rGz.js} +6 -6
- package/dist/{fthry_index.BxuwIE29.js → fthry_index.CbildiLx.js} +6 -6
- package/dist/{fthry_index.IY-OVjmW.js → fthry_index.DIRJK8qX.js} +24 -7
- package/dist/{fthry_index.DW8swWIW.js → fthry_index.DLVY2u37.js} +4 -4
- package/dist/{fthry_index.C8myrllR.js → fthry_index.DkCSBYBS.js} +1 -1
- package/dist/{fthry_index.J9398MtH.js → fthry_index.DkIp3iRV.js} +5 -5
- package/dist/{fthry_index.D6BnFXF1.js → fthry_index.DoYMXQUW.js} +8 -8
- package/dist/{fthry_index.CZWTrmM6.js → fthry_index.fk9t5r9-.js} +1 -1
- package/dist/{fthry_index.Bucqzak_.js → fthry_index.q-SYsLEL.js} +1 -1
- package/dist/{fthry_input.DAwMxIXG.js → fthry_input.CAzTu6mk.js} +1 -1
- package/dist/{fthry_script.CxNki5T5.js → fthry_script.Bf8zgQ01.js} +1 -1
- package/dist/{fthry_styles.Dzz2nMkG.js → fthry_styles.DjMXy6e-.js} +1 -1
- package/dist/{fthry_useElementSize.D6DGF_QM.js → fthry_useElementSize.DPFsWHu0.js} +1 -1
- package/dist/{fthry_useSalesforceSync.DM_5Ow-9.js → fthry_useSalesforceSync.CxDImAZo.js} +1 -1
- package/dist/{fthry_webfontloader.I68gPpHE.js → fthry_webfontloader.C1UQw9Fa.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/browser.d.ts +1 -1
- package/dist/utils/browser.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts +2 -1
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/umd/PhoneField.c526085aaa5ccd25e982.js +1 -0
- package/umd/SignatureField.d710930ca89642eb651c.js +1 -0
- package/umd/index.js +1 -1
- package/umd/PhoneField.7475243ed9d9c7374c28.js +0 -1
- package/umd/SignatureField.91e03c3324a30624271f.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, u as useBorder, b as __read, A as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, v as css, w as __makeTemplateObject, G as Global, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, u as useBorder, b as __read, A as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, v as css, w as __makeTemplateObject, G as Global, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CLHxEKDU.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.BrYdk-JC.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.CxDImAZo.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.tEYnJT2R.js';
|
|
10
10
|
|
|
11
11
|
var ae = [
|
|
12
12
|
{ name: 'Abu Dhabi', code: 'AZ' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.
|
|
1
|
+
import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.DjMXy6e-.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, al as loadQRScanner, am as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, an as qrPromise } from './fthry_index.
|
|
1
|
+
import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, al as loadQRScanner, am as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, an as qrPromise } from './fthry_index.CLHxEKDU.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.DjMXy6e-.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as __read, j as jsx, F as Fragment, x as isMobile, a as jsxs, _ as __assign, q as FORM_Z_INDEX, i as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { b as __read, j as jsx, F as Fragment, x as isMobile, a as jsxs, _ as __assign, q as FORM_Z_INDEX, i as iosScrollOnFocus } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useState, useRef, useMemo } from 'react';
|
|
3
|
-
import { O as Overlay, T as Tooltip } from './fthry_Overlay.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.tEYnJT2R.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.fk9t5r9-.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as featheryDoc, ao as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, k as __awaiter, l as __generator, ap as toBase64, n as debounce, aq as MODAL_Z_INDEX, ab as CloseIcon, ar as dataURLToFile, q as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { f as featheryDoc, ao as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, k as __awaiter, l as __generator, ap as toBase64, n as debounce, aq as MODAL_Z_INDEX, ab as CloseIcon, ar as dataURLToFile, q as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.CLHxEKDU.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.9Ck9ftoz.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1134,7 +1134,7 @@ var SignatureCanvas = forwardRef(function (props, ref) {
|
|
|
1134
1134
|
onClear();
|
|
1135
1135
|
setIsClearVisible(false);
|
|
1136
1136
|
} }, { children: t.clear }))), jsx(SignatureCanvas$1, { penColor: 'black', dotSize: 4, minWidth: 1.5, maxWidth: 3, clearOnResize: false, canvasProps: {
|
|
1137
|
-
id: "".concat(fieldKey).concat(repeatIndex),
|
|
1137
|
+
id: "canvas_".concat(fieldKey).concat(repeatIndex !== null && repeatIndex !== void 0 ? repeatIndex : ''),
|
|
1138
1138
|
style: __assign(__assign({}, signatureCanvasStyles), { width: '100%', height: '100%', boxSizing: 'border-box', paddingLeft: '5px' })
|
|
1139
1139
|
}, ref: signatureRef, onEnd: function () {
|
|
1140
1140
|
onEnd();
|
|
@@ -1146,7 +1146,7 @@ var SIGNER_NAME_KEY = 'feathery-signer-name';
|
|
|
1146
1146
|
var SIGNER_INITIALS_KEY = 'feathery-signer-initials';
|
|
1147
1147
|
function SignatureModal(props) {
|
|
1148
1148
|
var _a, _b;
|
|
1149
|
-
var _c = props.show, show = _c === void 0 ? false : _c, _d = props.setShow, setShow = _d === void 0 ? function () { } : _d, fieldKey = props.fieldKey, repeatIndex = props.repeatIndex, defaultValue = props.defaultValue, responsiveStyles = props.responsiveStyles, _e = props.onClear, onClear = _e === void 0 ? function () { } : _e, _f = props.onEnd, onEnd = _f === void 0 ? function () { } : _f, _g = props.signMethods, signMethods = _g === void 0 ? '' : _g, _h = props.isInitials, isInitials = _h === void 0 ? false : _h, t = props.translation;
|
|
1149
|
+
var _c = props.show, show = _c === void 0 ? false : _c, _d = props.setShow, setShow = _d === void 0 ? function () { } : _d, fieldKey = props.fieldKey, repeatIndex = props.repeatIndex, defaultValue = props.defaultValue, responsiveStyles = props.responsiveStyles, _e = props.onClear, onClear = _e === void 0 ? function () { } : _e, _f = props.onEnd, onEnd = _f === void 0 ? function () { } : _f, _g = props.signMethods, signMethods = _g === void 0 ? '' : _g, _h = props.isInitials, isInitials = _h === void 0 ? false : _h, onSignAll = props.onSignAll, t = props.translation;
|
|
1150
1150
|
var typeOnly = signMethods === 'type';
|
|
1151
1151
|
var drawOnly = signMethods === 'draw';
|
|
1152
1152
|
var _j = __read(useState(drawOnly), 2), drawSignature = _j[0], setDrawSignature = _j[1];
|
|
@@ -1242,6 +1242,14 @@ function SignatureModal(props) {
|
|
|
1242
1242
|
resetState();
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
+
var handleSignAll = function () {
|
|
1246
|
+
if (signatureFile && onSignAll) {
|
|
1247
|
+
onSignAll(signatureFile);
|
|
1248
|
+
sessionStorage.setItem(storageKey, fullName);
|
|
1249
|
+
setShow(false);
|
|
1250
|
+
resetState();
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1245
1253
|
if (!show) {
|
|
1246
1254
|
return null;
|
|
1247
1255
|
}
|
|
@@ -1392,7 +1400,22 @@ function SignatureModal(props) {
|
|
|
1392
1400
|
}, css: {
|
|
1393
1401
|
marginRight: '10px',
|
|
1394
1402
|
'&:hover': { backgroundColor: '#e1e1e1' }
|
|
1395
|
-
} }, { children: t.clear }))), jsx("button", __assign({ onClick: function () {
|
|
1403
|
+
} }, { children: t.clear }))), onSignAll && (jsx("button", __assign({ onClick: function () {
|
|
1404
|
+
if (!isLoading)
|
|
1405
|
+
handleSignAll();
|
|
1406
|
+
}, disabled: isLoading || !signatureFile, css: {
|
|
1407
|
+
marginRight: '10px',
|
|
1408
|
+
backgroundColor: '#535353',
|
|
1409
|
+
color: '#fff',
|
|
1410
|
+
'&:hover': {
|
|
1411
|
+
backgroundColor: '#3a3a3a'
|
|
1412
|
+
},
|
|
1413
|
+
'&:disabled': {
|
|
1414
|
+
'&:hover': {
|
|
1415
|
+
cursor: 'not-allowed'
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
} }, { children: isInitials ? t.initials_confirm_all : t.confirm_all }))), jsx("button", __assign({ onClick: function () {
|
|
1396
1419
|
if (!isLoading)
|
|
1397
1420
|
handleSubmit();
|
|
1398
1421
|
}, disabled: isLoading || !signatureFile, css: {
|
|
@@ -1421,6 +1444,7 @@ var defaultTranslations = {
|
|
|
1421
1444
|
draw_subtitle: 'Draw your signature here using your mouse or trackpad',
|
|
1422
1445
|
draw_instructions: 'Draw your signature in the box below',
|
|
1423
1446
|
confirm: 'Sign',
|
|
1447
|
+
confirm_all: 'Sign All',
|
|
1424
1448
|
cancel: 'Cancel',
|
|
1425
1449
|
back: 'Back',
|
|
1426
1450
|
clear: 'Clear',
|
|
@@ -1433,12 +1457,13 @@ var defaultTranslations = {
|
|
|
1433
1457
|
initials_draw_option: 'Draw your initials',
|
|
1434
1458
|
initials_draw_subtitle: 'Draw your initials here using your mouse or trackpad',
|
|
1435
1459
|
initials_draw_instructions: 'Draw your initials in the box below',
|
|
1436
|
-
initials_confirm: 'Initial'
|
|
1460
|
+
initials_confirm: 'Initial',
|
|
1461
|
+
initials_confirm_all: 'Initial All'
|
|
1437
1462
|
};
|
|
1438
1463
|
|
|
1439
1464
|
function SignatureField(_a) {
|
|
1440
1465
|
var _b, _c, _d, _e, _f;
|
|
1441
|
-
var element = _a.element, responsiveStyles = _a.responsiveStyles, _g = _a.defaultValue, defaultValue = _g === void 0 ? null : _g, editMode = _a.editMode, repeatIndex = _a.repeatIndex, _h = _a.elementProps, elementProps = _h === void 0 ? {} : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, _k = _a.onEnd, onEnd = _k === void 0 ? function () { } : _k, _l = _a.onClear, onClear = _l === void 0 ? function () { } : _l, _m = _a.ReactPortal, ReactPortal = _m === void 0 ? null : _m, // This is allowing the ability to pass a portal for the modal
|
|
1466
|
+
var element = _a.element, responsiveStyles = _a.responsiveStyles, _g = _a.defaultValue, defaultValue = _g === void 0 ? null : _g, editMode = _a.editMode, repeatIndex = _a.repeatIndex, _h = _a.elementProps, elementProps = _h === void 0 ? {} : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, _k = _a.onEnd, onEnd = _k === void 0 ? function () { } : _k, _l = _a.onClear, onClear = _l === void 0 ? function () { } : _l, onSignAll = _a.onSignAll, _m = _a.ReactPortal, ReactPortal = _m === void 0 ? null : _m, // This is allowing the ability to pass a portal for the modal
|
|
1442
1467
|
children = _a.children;
|
|
1443
1468
|
var _o = __read(useState(false), 2), showSignatureModal = _o[0], setShowSignatureModal = _o[1];
|
|
1444
1469
|
var Portal = ReactPortal !== null && ReactPortal !== void 0 ? ReactPortal : (function (_a) {
|
|
@@ -1452,12 +1477,12 @@ function SignatureField(_a) {
|
|
|
1452
1477
|
useEffect(function () {
|
|
1453
1478
|
if (!global.webfontloaderPromise)
|
|
1454
1479
|
global.webfontloaderPromise = import(
|
|
1455
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
1480
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.C1UQw9Fa.js').then(function (n) { return n.w; });
|
|
1456
1481
|
global.webfontloaderPromise.then(function (WebFont) {
|
|
1457
1482
|
WebFont.load({ google: { families: ['La Belle Aurore'] } });
|
|
1458
1483
|
});
|
|
1459
1484
|
}, []);
|
|
1460
|
-
return (jsxs(Fragment, { children: [jsx(Portal, { children: jsx(SignatureModal, { show: showSignatureModal, setShow: setShowSignatureModal, defaultValue: defaultValue, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: onEnd, signMethods: (_f = (_e = servar.metadata) === null || _e === void 0 ? void 0 : _e.sign_methods) !== null && _f !== void 0 ? _f : '', isInitials: isInitials, translation: t }) }), jsxs("div", __assign({ css: __assign(__assign({ maxWidth: '100%', width: '100%', height: '100%' }, responsiveStyles.getTarget('fc')), { position: 'relative', pointerEvents: editMode || disabled ? 'none' : 'auto' }) }, elementProps, { children: [children, jsxs("div", __assign({ css: __assign({ position: 'relative' }, responsiveStyles.getTarget('sub-fc')) }, { children: [jsxs(Suspense, __assign({ fallback: jsx("div", { css: __assign(__assign({}, responsiveStyles.getTarget('field', true)), { width: '100%', height: '100%', boxSizing: 'border-box', paddingLeft: '5px' }) }) }, { children: [jsx("div", __assign({ onClick: function () {
|
|
1485
|
+
return (jsxs(Fragment, { children: [jsx(Portal, { children: jsx(SignatureModal, { show: showSignatureModal, setShow: setShowSignatureModal, defaultValue: defaultValue, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: onEnd, signMethods: (_f = (_e = servar.metadata) === null || _e === void 0 ? void 0 : _e.sign_methods) !== null && _f !== void 0 ? _f : '', isInitials: isInitials, onSignAll: onSignAll, translation: t }) }), jsxs("div", __assign({ css: __assign(__assign({ maxWidth: '100%', width: '100%', height: '100%' }, responsiveStyles.getTarget('fc')), { position: 'relative', pointerEvents: editMode || disabled ? 'none' : 'auto' }) }, elementProps, { children: [children, jsxs("div", __assign({ css: __assign({ position: 'relative' }, responsiveStyles.getTarget('sub-fc')) }, { children: [jsxs(Suspense, __assign({ fallback: jsx("div", { css: __assign(__assign({}, responsiveStyles.getTarget('field', true)), { width: '100%', height: '100%', boxSizing: 'border-box', paddingLeft: '5px' }) }) }, { children: [jsx("div", __assign({ onClick: function () {
|
|
1461
1486
|
if (!disabled)
|
|
1462
1487
|
setShowSignatureModal(true);
|
|
1463
1488
|
}, css: __assign(__assign({ position: 'absolute', display: 'flex', top: 0, left: 0, width: '100%', height: '100%', zIndex: FORM_Z_INDEX, alignItems: 'center', justifyContent: 'center' }, (disabled ? { backgroundColor: 'rgb(229, 229, 229)' } : {})), { '&:hover': {
|
|
@@ -40223,7 +40223,6 @@ function Form(_a) {
|
|
|
40223
40223
|
});
|
|
40224
40224
|
setSteps(JSON.parse(JSON.stringify(steps)));
|
|
40225
40225
|
updateStepFieldOptions(newStep, newOptions, repeatIndex);
|
|
40226
|
-
setActiveStep(JSON.parse(JSON.stringify(newStep)));
|
|
40227
40226
|
},
|
|
40228
40227
|
updateFieldStyles: function (fieldKey, newStyles) {
|
|
40229
40228
|
Object.values(steps).forEach(function (step) {
|
|
@@ -40231,7 +40230,6 @@ function Form(_a) {
|
|
|
40231
40230
|
});
|
|
40232
40231
|
setSteps(JSON.parse(JSON.stringify(steps)));
|
|
40233
40232
|
updateStepFieldStyles(newStep, fieldKey, newStyles);
|
|
40234
|
-
setActiveStep(JSON.parse(JSON.stringify(newStep)));
|
|
40235
40233
|
},
|
|
40236
40234
|
updateFieldProperties: function (fieldKey, newProperties, onServar) {
|
|
40237
40235
|
if (onServar === void 0) { onServar = false; }
|
|
@@ -40240,7 +40238,6 @@ function Form(_a) {
|
|
|
40240
40238
|
});
|
|
40241
40239
|
setSteps(JSON.parse(JSON.stringify(steps)));
|
|
40242
40240
|
updateStepFieldProperties(newStep, fieldKey, newProperties, onServar);
|
|
40243
|
-
setActiveStep(JSON.parse(JSON.stringify(newStep)));
|
|
40244
40241
|
},
|
|
40245
40242
|
setFieldErrors: function (errors) {
|
|
40246
40243
|
Object.entries(errors).forEach(function (_a) {
|
|
@@ -41874,7 +41871,7 @@ function Form(_a) {
|
|
|
41874
41871
|
case 97:
|
|
41875
41872
|
if (!(envAction === 'download' && data.files)) return [3 /*break*/, 99];
|
|
41876
41873
|
// Download files directly
|
|
41877
|
-
return [4 /*yield*/, downloadAllFileUrls(data.files)];
|
|
41874
|
+
return [4 /*yield*/, downloadAllFileUrls(data.files, replaceTextVariables(action.envelope_zip_name))];
|
|
41878
41875
|
case 98:
|
|
41879
41876
|
// Download files directly
|
|
41880
41877
|
_u.sent();
|
|
@@ -41928,7 +41925,7 @@ function Form(_a) {
|
|
|
41928
41925
|
return [2 /*return*/, "break"];
|
|
41929
41926
|
case 108:
|
|
41930
41927
|
if (!(action.form_fill_type === 'pdf' && payload.files)) return [3 /*break*/, 110];
|
|
41931
|
-
return [4 /*yield*/, downloadAllFileUrls(payload.files)];
|
|
41928
|
+
return [4 /*yield*/, downloadAllFileUrls(payload.files, replaceTextVariables(action.envelope_zip_name))];
|
|
41932
41929
|
case 109:
|
|
41933
41930
|
_u.sent();
|
|
41934
41931
|
_u.label = 110;
|
|
@@ -45901,7 +45898,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45901
45898
|
});
|
|
45902
45899
|
};
|
|
45903
45900
|
FeatheryClient.prototype.generateDocuments = function (_a) {
|
|
45904
|
-
var documentIds = _a.documentIds, _b = _a.download, download = _b === void 0 ? false : _b, _c = _a.merge, merge = _c === void 0 ? false : _c;
|
|
45901
|
+
var documentIds = _a.documentIds, _b = _a.download, download = _b === void 0 ? false : _b, _c = _a.merge, merge = _c === void 0 ? false : _c, zipName = _a.zipName;
|
|
45905
45902
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
45906
45903
|
var _d, userId, sdkKey, payload, files;
|
|
45907
45904
|
return __generator(this, function (_e) {
|
|
@@ -45922,7 +45919,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
45922
45919
|
throw Error(payload.message);
|
|
45923
45920
|
files = payload === null || payload === void 0 ? void 0 : payload.files;
|
|
45924
45921
|
if (!download) return [3 /*break*/, 3];
|
|
45925
|
-
return [4 /*yield*/, downloadAllFileUrls(files)];
|
|
45922
|
+
return [4 /*yield*/, downloadAllFileUrls(files, zipName)];
|
|
45926
45923
|
case 2:
|
|
45927
45924
|
_e.sent();
|
|
45928
45925
|
_e.label = 3;
|
|
@@ -46076,9 +46073,9 @@ function init(sdkKey, options) {
|
|
|
46076
46073
|
if (runningInClient()) {
|
|
46077
46074
|
// Dynamically load libraries that must be client side
|
|
46078
46075
|
global.scriptjsLoadPromise = import(
|
|
46079
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
46076
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.Bf8zgQ01.js').then(function (n) { return n.s; });
|
|
46080
46077
|
global.webfontloaderPromise = import(
|
|
46081
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
46078
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.C1UQw9Fa.js').then(function (n) { return n.w; });
|
|
46082
46079
|
// Client-side tracking logic
|
|
46083
46080
|
if (initState.userTracking === 'cookie') {
|
|
46084
46081
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -46224,7 +46221,7 @@ function getFieldValues() {
|
|
|
46224
46221
|
return __assign({}, fieldValues);
|
|
46225
46222
|
}
|
|
46226
46223
|
function logFeatheryBadge() {
|
|
46227
|
-
console.log('%c Feathery %c v' + "2.
|
|
46224
|
+
console.log('%c Feathery %c v' + "2.29.0" + ' ', // replaced with real version during build
|
|
46228
46225
|
'background: #e2626e; color: white; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;', 'background: #fce7e9; color: #c5495a; padding: 2px 6px; border-radius: 0 3px 3px 0;');
|
|
46229
46226
|
}
|
|
46230
46227
|
|
|
@@ -46705,9 +46702,9 @@ function getFileData(url) {
|
|
|
46705
46702
|
});
|
|
46706
46703
|
});
|
|
46707
46704
|
}
|
|
46708
|
-
function downloadAllFileUrls(urls) {
|
|
46705
|
+
function downloadAllFileUrls(urls, zipName) {
|
|
46709
46706
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
46710
|
-
var file, zip, files, nameCount, files_1, files_1_1, _a, fileName, blob, uniqueName, dotIndex, zipBlob, _b, fileName, blob;
|
|
46707
|
+
var file, zip, files, nameCount, files_1, files_1_1, _a, fileName, blob, uniqueName, dotIndex, zipBlob, finalZipName, _b, fileName, blob;
|
|
46711
46708
|
var e_1, _c;
|
|
46712
46709
|
return __generator(this, function (_d) {
|
|
46713
46710
|
switch (_d.label) {
|
|
@@ -46750,7 +46747,8 @@ function downloadAllFileUrls(urls) {
|
|
|
46750
46747
|
return [4 /*yield*/, zip.generateAsync({ type: 'blob' })];
|
|
46751
46748
|
case 2:
|
|
46752
46749
|
zipBlob = _d.sent();
|
|
46753
|
-
|
|
46750
|
+
finalZipName = zipName && !zipName.endsWith('.zip') ? "".concat(zipName, ".zip") : zipName;
|
|
46751
|
+
file = new File([zipBlob], finalZipName || 'Feathery_Download.zip', {
|
|
46754
46752
|
type: 'application/zip'
|
|
46755
46753
|
});
|
|
46756
46754
|
return [3 /*break*/, 5];
|
|
@@ -47705,39 +47703,39 @@ breakpoint) {
|
|
|
47705
47703
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
47706
47704
|
};
|
|
47707
47705
|
|
|
47708
|
-
var AddressLine1 = lazy$1(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
47709
|
-
var ButtonGroupField = lazy$1(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
47710
|
-
var CheckboxField = lazy$1(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
47706
|
+
var AddressLine1 = lazy$1(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.BFd-TLmA.js'); });
|
|
47707
|
+
var ButtonGroupField = lazy$1(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.BJMKe9bY.js'); });
|
|
47708
|
+
var CheckboxField = lazy$1(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.fk9t5r9-.js'); });
|
|
47711
47709
|
var CheckboxGroupField = lazy$1(function () {
|
|
47712
|
-
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
47710
|
+
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.CbildiLx.js');
|
|
47713
47711
|
});
|
|
47714
|
-
var ColorPickerField = lazy$1(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
47715
|
-
var CustomField = lazy$1(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
47712
|
+
var ColorPickerField = lazy$1(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.BQguezyR.js'); });
|
|
47713
|
+
var CustomField = lazy$1(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.BBfWFvRc.js'); });
|
|
47716
47714
|
var DateSelectorField = lazy$1(function () {
|
|
47717
|
-
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
47715
|
+
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.BE-1b7-q.js');
|
|
47718
47716
|
});
|
|
47719
|
-
var DropdownField = lazy$1(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
47717
|
+
var DropdownField = lazy$1(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.BTyNf3DP.js'); });
|
|
47720
47718
|
var DropdownMultiField = lazy$1(function () {
|
|
47721
|
-
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
47719
|
+
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.BDuq8oLk.js');
|
|
47722
47720
|
});
|
|
47723
|
-
var FileUploadField = lazy$1(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
47724
|
-
var MatrixField = lazy$1(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
47725
|
-
var PasswordField = lazy$1(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
47721
|
+
var FileUploadField = lazy$1(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.DkCSBYBS.js'); });
|
|
47722
|
+
var MatrixField = lazy$1(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.BnI0SWmF.js'); });
|
|
47723
|
+
var PasswordField = lazy$1(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.DkIp3iRV.js'); });
|
|
47726
47724
|
var PaymentMethodField = lazy$1(function () {
|
|
47727
|
-
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
47725
|
+
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.CtnTgodd.js');
|
|
47728
47726
|
});
|
|
47729
|
-
var PhoneField = lazy$1(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
47730
|
-
var PinInputField = lazy$1(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
47731
|
-
var QRScanner = lazy$1(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
47727
|
+
var PhoneField = lazy$1(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.DIRJK8qX.js'); });
|
|
47728
|
+
var PinInputField = lazy$1(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.q-SYsLEL.js'); });
|
|
47729
|
+
var QRScanner = lazy$1(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.Ba9mZR-a.js'); });
|
|
47732
47730
|
var RadioButtonGroupField = lazy$1(function () {
|
|
47733
47731
|
return import(
|
|
47734
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
47732
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.CRSq4rGz.js');
|
|
47735
47733
|
});
|
|
47736
|
-
var RatingField = lazy$1(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
47737
|
-
var SignatureField = lazy$1(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
47738
|
-
var SliderField = lazy$1(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
47739
|
-
var TextField = lazy$1(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
47740
|
-
var TextArea = lazy$1(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
47734
|
+
var RatingField = lazy$1(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.BueBK9vP.js'); });
|
|
47735
|
+
var SignatureField = lazy$1(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.CAiP8AGh.js'); });
|
|
47736
|
+
var SliderField = lazy$1(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.BUzvhIcG.js'); });
|
|
47737
|
+
var TextField = lazy$1(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.DoYMXQUW.js'); });
|
|
47738
|
+
var TextArea = lazy$1(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.DLVY2u37.js'); });
|
|
47741
47739
|
var Fields = {
|
|
47742
47740
|
AddressLine1: AddressLine1,
|
|
47743
47741
|
ButtonGroupField: ButtonGroupField,
|
|
@@ -48687,7 +48685,7 @@ function ElementSkeleton(_a) {
|
|
|
48687
48685
|
}
|
|
48688
48686
|
var templateObject_1;
|
|
48689
48687
|
|
|
48690
|
-
var TableElement = lazy$1(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.
|
|
48688
|
+
var TableElement = lazy$1(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.BCis3aeZ.js'); });
|
|
48691
48689
|
var Basic = {
|
|
48692
48690
|
ImageElement: ImageElement,
|
|
48693
48691
|
VideoElement: VideoElement,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as __read, a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as __read, a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useRef, useState, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.BuuMSi33.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.fk9t5r9-.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.CxDImAZo.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.tEYnJT2R.js';
|
|
12
12
|
|
|
13
13
|
var applyRadioGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('radioGroup');
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.BuuMSi33.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.fk9t5r9-.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.CxDImAZo.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.tEYnJT2R.js';
|
|
12
12
|
|
|
13
13
|
var applyCheckboxGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('checkboxGroup');
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { y as __rest, b as __read, A as countryData, ag as phoneLib, ah as authState, ai as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, aj as phoneLibPromise, h as hoverStylesGuard, ak as isNum, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { y as __rest, b as __read, A as countryData, ag as phoneLib, ah as authState, ai as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, aj as phoneLibPromise, h as hoverStylesGuard, ak as isNum, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CLHxEKDU.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.CNCz2tec.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.tEYnJT2R.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.DPFsWHu0.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
|
|
12
|
+
const r='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';function a(){const o=document.createElement("canvas");o.width=o.height=1;const t=o.getContext("2d",{willReadFrequently:true});return t.textBaseline="top",t.font=`100px ${r}`,t.scale(.01,.01),t}function i(o,t,e){return o.clearRect(0,0,100,100),o.fillStyle=e,o.fillText(t,0,0),o.getImageData(0,0,1,1).data.join(",")}function l(o){const t=a(),e=i(t,o,"#fff"),n=i(t,o,"#000");return n===e&&!n.startsWith("0,0,0,")}function f(o="Twemoji Country Flags",t="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&l("\u{1F60A}")&&!l("\u{1F1E8}\u{1F1ED}")){const e=document.createElement("style");return e.textContent=`@font-face {
|
|
13
|
+
font-family: "${o}";
|
|
14
|
+
unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
|
|
15
|
+
U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
|
|
16
|
+
src: url('${t}') format('woff2');
|
|
17
|
+
font-display: swap;
|
|
18
|
+
}`,document.head.appendChild(e),true}return false}
|
|
19
|
+
|
|
12
20
|
var timeZoneCountries = {
|
|
13
21
|
'Africa/Abidjan': {
|
|
14
22
|
c: ['CI', 'BF', 'GH', 'GM', 'GN', 'ML', 'MR', 'SH', 'SL', 'SN', 'TG']
|
|
@@ -1721,7 +1729,8 @@ function CountryDropdown(_a, ref) {
|
|
|
1721
1729
|
}, onClick: function () { return itemOnClick(countryCode, phoneCode); } }, { children: [jsx("span", __assign({ css: {
|
|
1722
1730
|
fontSize: '24px',
|
|
1723
1731
|
marginRight: '7px',
|
|
1724
|
-
lineHeight: '33px'
|
|
1732
|
+
lineHeight: '33px',
|
|
1733
|
+
fontFamily: '"Twemoji Country Flags", sans-serif'
|
|
1725
1734
|
} }, { children: flag })), countryName, jsxs("span", __assign({ css: { marginLeft: '7px', color: 'grey' } }, { children: ["+", phoneCode] }))] }), countryCode));
|
|
1726
1735
|
})] }));
|
|
1727
1736
|
}, [query]);
|
|
@@ -1785,6 +1794,14 @@ function PhoneField(_a) {
|
|
|
1785
1794
|
}, [servar.metadata.default_country]);
|
|
1786
1795
|
var _m = __read(useState(defaultCountry), 2), curCountryCode = _m[0], setCurCountryCode = _m[1];
|
|
1787
1796
|
useEffect(function () { return setCurCountryCode(defaultCountry); }, [defaultCountry]);
|
|
1797
|
+
useEffect(function () {
|
|
1798
|
+
try {
|
|
1799
|
+
f();
|
|
1800
|
+
}
|
|
1801
|
+
catch (_a) {
|
|
1802
|
+
// Gracefully degrade if polyfill fails (e.g. in test environments)
|
|
1803
|
+
}
|
|
1804
|
+
}, []);
|
|
1788
1805
|
var phoneCode = countryMap[curCountryCode].phoneCode;
|
|
1789
1806
|
// The raw number entered by the user, including phone code
|
|
1790
1807
|
var _o = __read(useState(''), 2), rawNumber = _o[0], setRawNumber = _o[1];
|
|
@@ -1887,7 +1904,7 @@ function PhoneField(_a) {
|
|
|
1887
1904
|
return (jsxs("div", __assign({ ref: containerRef, css: __assign({ maxWidth: '100%', width: '100%', height: '100%', position: 'relative', pointerEvents: editMode ? 'none' : 'auto' }, responsiveStyles.getTarget('fc')) }, elementProps, { children: [children, fieldLabel, jsxs("div", __assign({ ref: fieldWrapperRef, css: __assign(__assign(__assign({ display: 'flex', position: 'relative' }, responsiveStyles.getTarget('sub-fc')), (disabled ? responsiveStyles.getTarget('disabled') : {})), { '&:hover': hoverStylesGuard(disabled
|
|
1888
1905
|
? {}
|
|
1889
1906
|
: __assign(__assign({}, responsiveStyles.getTarget('hover')), borderStyles.hover)), '&&': focused
|
|
1890
|
-
? __assign(__assign({}, responsiveStyles.getTarget('active')), borderStyles.active) : {} }) }, { children: [customBorder, jsx("div", __assign({ "data-testid": 'country-trigger', css: __assign(__assign({ transition: '0.2s ease all', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '0 6px', position: 'relative', cursor: 'default' }, responsiveStyles.getTarget('fieldToggle')), enabledCountryStyles), ref: triggerRef, onClick: function () {
|
|
1907
|
+
? __assign(__assign({}, responsiveStyles.getTarget('active')), borderStyles.active) : {} }) }, { children: [customBorder, jsx("div", __assign({ "data-testid": 'country-trigger', css: __assign(__assign({ transition: '0.2s ease all', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '0 6px', position: 'relative', cursor: 'default', fontFamily: '"Twemoji Country Flags", sans-serif' }, responsiveStyles.getTarget('fieldToggle')), enabledCountryStyles), ref: triggerRef, onClick: function () {
|
|
1891
1908
|
if (countriesEnabled && !disabled)
|
|
1892
1909
|
setShow(!show);
|
|
1893
1910
|
} }, { children: countryMap[curCountryCode].flag })), jsx(Overlay, __assign({ show: show, onHide: function () { return setShow(false); }, targetRef: triggerRef, containerRef: containerRef, placement: 'bottom-start', offset: 0 }, { children: jsx(CountryDropdown$1, { itemOnClick: function (countryCode, phoneCode) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CNCz2tec.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.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.tEYnJT2R.js';
|
|
10
10
|
|
|
11
11
|
function TextArea(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _b = _a.elementProps, elementProps = _b === void 0 ? {} : _b, _c = _a.required, required = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, editMode = _a.editMode, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, _f = _a.setRef, setRef = _f === void 0 ? function () { } : _f, _g = _a.rawValue, rawValue = _g === void 0 ? '' : _g, inlineError = _a.inlineError, _h = _a.repeatIndex, repeatIndex = _h === void 0 ? null : _h, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, b as __read, a7 as isEmptyArray, a8 as toList, a9 as useThumbnailData, e as __spreadArray, o as imgMaxSizeStyles, k as __awaiter, l as __generator, aa as downloadFile, ab as CloseIcon, i as iosScrollOnFocus, q as FORM_Z_INDEX, ac as justRemove } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, b as __read, a7 as isEmptyArray, a8 as toList, a9 as useThumbnailData, e as __spreadArray, o as imgMaxSizeStyles, k as __awaiter, l as __generator, aa as downloadFile, ab as CloseIcon, i as iosScrollOnFocus, q as FORM_Z_INDEX, ac as justRemove } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CNCz2tec.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
|
|
5
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.D5SVexo6.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import 'react-dom/client';
|
|
8
8
|
import 'jszip';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import './fthry_Overlay.
|
|
10
|
+
import './fthry_Overlay.tEYnJT2R.js';
|
|
11
11
|
|
|
12
12
|
function PasswordField(_a) {
|
|
13
13
|
var _b;
|
|
@@ -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, at as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles, au as emailPatternStr } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, at as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles, au as emailPatternStr } from './fthry_index.CLHxEKDU.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.CNCz2tec.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.tEYnJT2R.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.DPFsWHu0.js';
|
|
7
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.D5SVexo6.js';
|
|
8
|
+
import { a as IMaskInput } from './fthry_input.CAzTu6mk.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.9Ck9ftoz.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, i as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, i as iosScrollOnFocus } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, ak as isNum } from './fthry_index.
|
|
1
|
+
import { t as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, ak as isNum } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useState, useMemo } from 'react';
|
|
3
|
-
import { as as cls, a as jsxs, F as Fragment, j as jsx, G as Global, v as css, w as __makeTemplateObject } from './fthry_index.
|
|
3
|
+
import { as as cls, a as jsxs, F as Fragment, j as jsx, G as Global, v as css, w as __makeTemplateObject } from './fthry_index.CLHxEKDU.js';
|
|
4
4
|
import { flushSync } from 'react-dom';
|
|
5
5
|
|
|
6
6
|
function canUseDom() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as __read, k as __awaiter, l as __generator, m as FeatheryClient } from './fthry_index.
|
|
1
|
+
import { b as __read, k as __awaiter, l as __generator, m as FeatheryClient } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
function useSalesforceSync(salesforceSync, editMode) {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aG as AssistantChat, ax as Elements, aH as Feathery, aw as Form, aE as LoginForm, aI as StyledContainer, aC as getFieldValues, ay as init, aD as renderAt, aB as setFieldValues, aA as updateTheme, az as updateUserId, aF as useAuthClient } from './fthry_index.
|
|
1
|
+
export { aG as AssistantChat, ax as Elements, aH as Feathery, aw as Form, aE as LoginForm, aI as StyledContainer, aC as getFieldValues, ay as init, aD as renderAt, aB as setFieldValues, aA as updateTheme, az as updateUserId, aF as useAuthClient } from './fthry_index.CLHxEKDU.js';
|
|
2
2
|
import 'react-dom/client';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|