@feathery/react 2.28.0 → 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.
Files changed (108) hide show
  1. package/cjs/Form/index.d.ts.map +1 -1
  2. package/cjs/elements/fields/PhoneField/CountryDropdown.d.ts.map +1 -1
  3. package/cjs/elements/fields/PhoneField/index.d.ts.map +1 -1
  4. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  5. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  6. package/cjs/elements/fields/SignatureField/index.d.ts +1 -1
  7. package/cjs/elements/fields/SignatureField/index.d.ts.map +1 -1
  8. package/cjs/elements/fields/SignatureField/translation.d.ts +2 -0
  9. package/cjs/elements/fields/SignatureField/translation.d.ts.map +1 -1
  10. package/cjs/{fthry_FormControl.DJ2ejKRD.js → fthry_FormControl.kZ5yXjHP.js} +1 -1
  11. package/cjs/{fthry_InlineTooltip.BHasM38d.js → fthry_InlineTooltip.BBNkgzp3.js} +2 -2
  12. package/cjs/{fthry_Overlay.DQ20aqxz.js → fthry_Overlay.DQ1W49J6.js} +1 -1
  13. package/cjs/{fthry_PaymentMethodField.IAPD3gnd.js → fthry_PaymentMethodField.D7BpcTHT.js} +4 -4
  14. package/cjs/{fthry_Placeholder.tEb4GSRK.js → fthry_Placeholder.DY81qB5U.js} +1 -1
  15. package/cjs/{fthry_ShowEyeIcon.QFb4fIGS.js → fthry_ShowEyeIcon.Ck3HpNRr.js} +1 -1
  16. package/cjs/{fthry_index.B3QqDdJI.js → fthry_index.B2WrnDCu.js} +5 -5
  17. package/cjs/{fthry_index.B-FS84Je.js → fthry_index.BJquBpMQ.js} +1 -1
  18. package/cjs/{fthry_index.Cy-Qx5sb.js → fthry_index.BPi1okoK.js} +6 -6
  19. package/cjs/{fthry_index.Bk_Boul5.js → fthry_index.BXuRsANe.js} +2 -2
  20. package/cjs/{fthry_index.DoO3xbNe.js → fthry_index.Bgag42Np.js} +1 -1
  21. package/cjs/{fthry_index.oCW42ZYD.js → fthry_index.BhfQqXGJ.js} +4 -4
  22. package/cjs/{fthry_index.Cid-C-P4.js → fthry_index.BiaJ1jl2.js} +2 -2
  23. package/cjs/{fthry_index.4FufnP8D.js → fthry_index.BuH0Itrc.js} +4 -4
  24. package/cjs/{fthry_index.CRSxPhzY.js → fthry_index.CJ3nEvr8.js} +4 -4
  25. package/cjs/{fthry_index.CYgaO2lW.js → fthry_index.CR2ysImA.js} +1 -1
  26. package/cjs/{fthry_index.B2ehIZTb.js → fthry_index.CTmQVKHd.js} +1 -1
  27. package/cjs/{fthry_index.xu9gJQ5c.js → fthry_index.Ca-jN77c.js} +5 -5
  28. package/cjs/{fthry_index.js1djBgB.js → fthry_index.CaGtg7No.js} +1 -1
  29. package/cjs/{fthry_index.BC1ZC-PU.js → fthry_index.ChHqvi_w.js} +5 -5
  30. package/cjs/{fthry_index.Dbd8Txfp.js → fthry_index.CyO673Aw.js} +61 -43
  31. package/cjs/{fthry_index.C5y9RrU7.js → fthry_index.D9nl6yWC.js} +1 -1
  32. package/cjs/{fthry_index.F5WTWQNs.js → fthry_index.DIJxNTtb.js} +6 -6
  33. package/cjs/{fthry_index.BlVRbcnc.js → fthry_index.DXpLDtWu.js} +6 -6
  34. package/cjs/{fthry_index.DIKTuUc5.js → fthry_index.Da6aYIHM.js} +3 -3
  35. package/cjs/{fthry_index.CMuA8iv_.js → fthry_index.DkMxV18v.js} +24 -7
  36. package/cjs/{fthry_index.5eLn1PZo.js → fthry_index.Dxki7HdW.js} +8 -8
  37. package/cjs/{fthry_index.DAxtHi9p.js → fthry_index.EYrk9cSa.js} +1 -1
  38. package/cjs/{fthry_index.BfP1EdzS.js → fthry_index.V0-nv5L4.js} +1 -1
  39. package/cjs/{fthry_index.DVqSz2E6.js → fthry_index.hWQvQk7E.js} +34 -9
  40. package/cjs/{fthry_input.CqcOUg4h.js → fthry_input.bE0l-t_1.js} +1 -1
  41. package/cjs/{fthry_script.CCZkEwlj.js → fthry_script.BCkKPMlm.js} +1 -1
  42. package/cjs/{fthry_styles.BjXqB-Mr.js → fthry_styles.T0Rj_2XL.js} +1 -1
  43. package/cjs/{fthry_useElementSize.CY_zwmqq.js → fthry_useElementSize.Du6gVeG7.js} +1 -1
  44. package/cjs/{fthry_useSalesforceSync.B3wDaFIH.js → fthry_useSalesforceSync.CnsTa2jO.js} +1 -1
  45. package/cjs/{fthry_webfontloader.CcZCuQcE.js → fthry_webfontloader.D6rNHkUp.js} +1 -1
  46. package/cjs/index.js +1 -1
  47. package/cjs/utils/browser.d.ts +1 -1
  48. package/cjs/utils/browser.d.ts.map +1 -1
  49. package/cjs/utils/featheryClient/index.d.ts +2 -1
  50. package/cjs/utils/featheryClient/index.d.ts.map +1 -1
  51. package/cjs/utils/formHelperFunctions.d.ts.map +1 -1
  52. package/dist/Form/index.d.ts.map +1 -1
  53. package/dist/elements/fields/PhoneField/CountryDropdown.d.ts.map +1 -1
  54. package/dist/elements/fields/PhoneField/index.d.ts.map +1 -1
  55. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  56. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  57. package/dist/elements/fields/SignatureField/index.d.ts +1 -1
  58. package/dist/elements/fields/SignatureField/index.d.ts.map +1 -1
  59. package/dist/elements/fields/SignatureField/translation.d.ts +2 -0
  60. package/dist/elements/fields/SignatureField/translation.d.ts.map +1 -1
  61. package/dist/{fthry_FormControl.vWyzMBYY.js → fthry_FormControl.BuuMSi33.js} +1 -1
  62. package/dist/{fthry_InlineTooltip.IfAjQ586.js → fthry_InlineTooltip.BrYdk-JC.js} +2 -2
  63. package/dist/{fthry_Overlay.Dwq4APT1.js → fthry_Overlay.tEYnJT2R.js} +1 -1
  64. package/dist/{fthry_PaymentMethodField.3CrlaXau.js → fthry_PaymentMethodField.CtnTgodd.js} +4 -4
  65. package/dist/{fthry_Placeholder.DjqsoC_6.js → fthry_Placeholder.CNCz2tec.js} +1 -1
  66. package/dist/{fthry_ShowEyeIcon.mr9qSztB.js → fthry_ShowEyeIcon.D5SVexo6.js} +1 -1
  67. package/dist/{fthry_index.B9_e4yw5.js → fthry_index.9Ck9ftoz.js} +1 -1
  68. package/dist/{fthry_index.DGQnUaKp.js → fthry_index.BBfWFvRc.js} +1 -1
  69. package/dist/{fthry_index.BrFdbwfS.js → fthry_index.BCis3aeZ.js} +1 -1
  70. package/dist/{fthry_index.Bcf-mc5G.js → fthry_index.BDuq8oLk.js} +5 -5
  71. package/dist/{fthry_index.BBMP3Bfq.js → fthry_index.BE-1b7-q.js} +6 -6
  72. package/dist/{fthry_index.CKeBizqp.js → fthry_index.BFd-TLmA.js} +5 -5
  73. package/dist/{fthry_index.QQwc9HiL.js → fthry_index.BJMKe9bY.js} +4 -4
  74. package/dist/{fthry_index.DJabLIWc.js → fthry_index.BQguezyR.js} +1 -1
  75. package/dist/{fthry_index.B-mgmOCc.js → fthry_index.BTyNf3DP.js} +4 -4
  76. package/dist/{fthry_index.pCtAYNV8.js → fthry_index.BUzvhIcG.js} +2 -2
  77. package/dist/{fthry_index.Ciig6Ulw.js → fthry_index.Ba9mZR-a.js} +2 -2
  78. package/dist/{fthry_index.Dd9zfkN2.js → fthry_index.BnI0SWmF.js} +3 -3
  79. package/dist/{fthry_index.BUOb64mV.js → fthry_index.BueBK9vP.js} +1 -1
  80. package/dist/{fthry_index.DlkIbijU.js → fthry_index.CAiP8AGh.js} +34 -9
  81. package/dist/{fthry_index.DAHmuei9.js → fthry_index.CLHxEKDU.js} +61 -43
  82. package/dist/{fthry_index.Cs4wTdyu.js → fthry_index.CRSq4rGz.js} +6 -6
  83. package/dist/{fthry_index.FlZH2VqD.js → fthry_index.CbildiLx.js} +6 -6
  84. package/dist/{fthry_index.XqQmelY4.js → fthry_index.DIRJK8qX.js} +24 -7
  85. package/dist/{fthry_index.D5-ndRhx.js → fthry_index.DLVY2u37.js} +4 -4
  86. package/dist/{fthry_index.ChLoC8lN.js → fthry_index.DkCSBYBS.js} +1 -1
  87. package/dist/{fthry_index.DCwL0S28.js → fthry_index.DkIp3iRV.js} +5 -5
  88. package/dist/{fthry_index.CO4DBaVn.js → fthry_index.DoYMXQUW.js} +8 -8
  89. package/dist/{fthry_index.CPexlZyD.js → fthry_index.fk9t5r9-.js} +1 -1
  90. package/dist/{fthry_index._3LzvEov.js → fthry_index.q-SYsLEL.js} +1 -1
  91. package/dist/{fthry_input.Cmm6GzRX.js → fthry_input.CAzTu6mk.js} +1 -1
  92. package/dist/{fthry_script.D0pWwx7z.js → fthry_script.Bf8zgQ01.js} +1 -1
  93. package/dist/{fthry_styles.DEXSRoLJ.js → fthry_styles.DjMXy6e-.js} +1 -1
  94. package/dist/{fthry_useElementSize.CNVQHFG0.js → fthry_useElementSize.DPFsWHu0.js} +1 -1
  95. package/dist/{fthry_useSalesforceSync.Cg-6mYq7.js → fthry_useSalesforceSync.CxDImAZo.js} +1 -1
  96. package/dist/{fthry_webfontloader.E3H0HgG0.js → fthry_webfontloader.C1UQw9Fa.js} +1 -1
  97. package/dist/index.js +1 -1
  98. package/dist/utils/browser.d.ts +1 -1
  99. package/dist/utils/browser.d.ts.map +1 -1
  100. package/dist/utils/featheryClient/index.d.ts +2 -1
  101. package/dist/utils/featheryClient/index.d.ts.map +1 -1
  102. package/dist/utils/formHelperFunctions.d.ts.map +1 -1
  103. package/package.json +2 -1
  104. package/umd/PhoneField.c526085aaa5ccd25e982.js +1 -0
  105. package/umd/SignatureField.d710930ca89642eb651c.js +1 -0
  106. package/umd/index.js +1 -1
  107. package/umd/PhoneField.7475243ed9d9c7374c28.js +0 -1
  108. package/umd/SignatureField.91e03c3324a30624271f.js +0 -1
@@ -1,16 +1,16 @@
1
- import { j as jsx, G as Global, v as css, w as __makeTemplateObject, _ as __assign, b as __read, x as isMobile, t as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, y as __rest, z as formatDateString } from './fthry_index.DAHmuei9.js';
1
+ import { j as jsx, G as Global, v as css, w as __makeTemplateObject, _ as __assign, b as __read, x as isMobile, t as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, y as __rest, z as formatDateString } from './fthry_index.CLHxEKDU.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
4
- import { P as Placeholder } from './fthry_Placeholder.DjqsoC_6.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
4
+ import { P as Placeholder } from './fthry_Placeholder.CNCz2tec.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.BrYdk-JC.js';
6
6
  import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
7
7
  import * as ReactDOM from 'react-dom';
8
8
  import ReactDOM__default from 'react-dom';
9
- import { I as IMask, a as IMaskInput } from './fthry_input.Cmm6GzRX.js';
9
+ import { I as IMask, a as IMaskInput } from './fthry_input.CAzTu6mk.js';
10
10
  import 'react-dom/client';
11
11
  import 'jszip';
12
- import './fthry_Overlay.Dwq4APT1.js';
13
- import './fthry_index.B9_e4yw5.js';
12
+ import './fthry_Overlay.tEYnJT2R.js';
13
+ import './fthry_index.9Ck9ftoz.js';
14
14
 
15
15
  var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
16
16
  var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
@@ -1,9 +1,9 @@
1
- import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, i as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, k as __awaiter, l as __generator, m as FeatheryClient, n as debounce } from './fthry_index.DAHmuei9.js';
1
+ import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, i as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, k as __awaiter, l as __generator, m as FeatheryClient, n as debounce } from './fthry_index.CLHxEKDU.js';
2
2
  import { useRef, useEffect, memo, useState, useCallback } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.DjqsoC_6.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
5
- import { O as Overlay } from './fthry_Overlay.Dwq4APT1.js';
6
- import { u as useElementSize } from './fthry_useElementSize.CNVQHFG0.js';
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';
@@ -1,12 +1,12 @@
1
- import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, o as imgMaxSizeStyles, p as noTextSelectStyles, E as ErrorInput } from './fthry_index.DAHmuei9.js';
1
+ import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, o as imgMaxSizeStyles, p as noTextSelectStyles, E as ErrorInput } from './fthry_index.CLHxEKDU.js';
2
2
  import { useRef, useMemo } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cg-6mYq7.js';
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.Dwq4APT1.js';
9
+ import './fthry_Overlay.tEYnJT2R.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,4 +1,4 @@
1
- import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, q as FORM_Z_INDEX } from './fthry_index.DAHmuei9.js';
1
+ import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, q as FORM_Z_INDEX } from './fthry_index.CLHxEKDU.js';
2
2
  import React__default, { useRef, useEffect, useCallback, useState, useMemo, Fragment } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -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.DAHmuei9.js';
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.IfAjQ586.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cg-6mYq7.js';
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.Dwq4APT1.js';
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.DAHmuei9.js';
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.DEXSRoLJ.js';
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.DAHmuei9.js';
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.DEXSRoLJ.js';
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.DAHmuei9.js';
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.Dwq4APT1.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.CPexlZyD.js';
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.DAHmuei9.js';
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.DAHmuei9.js';
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.B9_e4yw5.js';
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.E3H0HgG0.js').then(function (n) { return n.w; });
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.D0pWwx7z.js').then(function (n) { return n.s; });
46076
+ /* webpackChunkName: "scriptjs" */ './fthry_script.Bf8zgQ01.js').then(function (n) { return n.s; });
46080
46077
  global.webfontloaderPromise = import(
46081
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.E3H0HgG0.js').then(function (n) { return n.w; });
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.28.0" + ' ', // replaced with real version during build
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
 
@@ -46318,9 +46315,10 @@ function setFormElementError(_a) {
46318
46315
  // Empty message means no error / clearing the error
46319
46316
  message = _d === void 0 ? '' : _d, _e = _a.index, index = _e === void 0 ? null : _e, _f = _a.servarType, servarType = _f === void 0 ? '' : _f, _g = _a.inlineErrors, inlineErrors = _g === void 0 ? {} : _g, _h = _a.setInlineErrors, setInlineErrors = _h === void 0 ? function () { } : _h, _j = _a.triggerErrors, triggerErrors = _j === void 0 ? false : _j;
46320
46317
  return __awaiter$2(this, void 0, void 0, function () {
46321
- var invalid, listIndex, errorTriggered_1, singleOrList, elements;
46322
- return __generator(this, function (_k) {
46323
- switch (_k.label) {
46318
+ var invalid, listIndex, errorTriggered_1, singleOrList, elements, formElements, formElements_1, formElements_1_1, el;
46319
+ var e_1, _k;
46320
+ return __generator(this, function (_l) {
46321
+ switch (_l.label) {
46324
46322
  case 0:
46325
46323
  invalid = false;
46326
46324
  listIndex = index;
@@ -46359,8 +46357,27 @@ function setFormElementError(_a) {
46359
46357
  }
46360
46358
  });
46361
46359
  }
46362
- if (triggerErrors && !errorTriggered_1)
46363
- formRef.current.reportValidity();
46360
+ if (triggerErrors && !errorTriggered_1) {
46361
+ formElements = Array.from(formRef.current.elements);
46362
+ try {
46363
+ for (formElements_1 = __values(formElements), formElements_1_1 = formElements_1.next(); !formElements_1_1.done; formElements_1_1 = formElements_1.next()) {
46364
+ el = formElements_1_1.value;
46365
+ if ('checkValidity' in el &&
46366
+ !el.checkValidity() &&
46367
+ el.offsetParent !== null) {
46368
+ el.reportValidity();
46369
+ break;
46370
+ }
46371
+ }
46372
+ }
46373
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
46374
+ finally {
46375
+ try {
46376
+ if (formElements_1_1 && !formElements_1_1.done && (_k = formElements_1.return)) _k.call(formElements_1);
46377
+ }
46378
+ finally { if (e_1) throw e_1.error; }
46379
+ }
46380
+ }
46364
46381
  invalid = !formRef.current.checkValidity();
46365
46382
  }
46366
46383
  else if (errorType === 'inline') {
@@ -46378,8 +46395,8 @@ function setFormElementError(_a) {
46378
46395
  elementRepeatIndex: index || 0
46379
46396
  })];
46380
46397
  case 1:
46381
- _k.sent();
46382
- _k.label = 2;
46398
+ _l.sent();
46399
+ _l.label = 2;
46383
46400
  case 2: return [2 /*return*/, invalid];
46384
46401
  }
46385
46402
  });
@@ -46685,9 +46702,9 @@ function getFileData(url) {
46685
46702
  });
46686
46703
  });
46687
46704
  }
46688
- function downloadAllFileUrls(urls) {
46705
+ function downloadAllFileUrls(urls, zipName) {
46689
46706
  return __awaiter$2(this, void 0, void 0, function () {
46690
- 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;
46691
46708
  var e_1, _c;
46692
46709
  return __generator(this, function (_d) {
46693
46710
  switch (_d.label) {
@@ -46730,7 +46747,8 @@ function downloadAllFileUrls(urls) {
46730
46747
  return [4 /*yield*/, zip.generateAsync({ type: 'blob' })];
46731
46748
  case 2:
46732
46749
  zipBlob = _d.sent();
46733
- file = new File([zipBlob], 'Feathery_Download.zip', {
46750
+ finalZipName = zipName && !zipName.endsWith('.zip') ? "".concat(zipName, ".zip") : zipName;
46751
+ file = new File([zipBlob], finalZipName || 'Feathery_Download.zip', {
46734
46752
  type: 'application/zip'
46735
46753
  });
46736
46754
  return [3 /*break*/, 5];
@@ -47685,39 +47703,39 @@ breakpoint) {
47685
47703
  return styles.getTarget('inner-container', undefined, viewport === 'mobile');
47686
47704
  };
47687
47705
 
47688
- var AddressLine1 = lazy$1(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.CKeBizqp.js'); });
47689
- var ButtonGroupField = lazy$1(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.QQwc9HiL.js'); });
47690
- var CheckboxField = lazy$1(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.CPexlZyD.js'); });
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'); });
47691
47709
  var CheckboxGroupField = lazy$1(function () {
47692
- return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.FlZH2VqD.js');
47710
+ return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.CbildiLx.js');
47693
47711
  });
47694
- var ColorPickerField = lazy$1(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.DJabLIWc.js'); });
47695
- var CustomField = lazy$1(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DGQnUaKp.js'); });
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'); });
47696
47714
  var DateSelectorField = lazy$1(function () {
47697
- return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.BBMP3Bfq.js');
47715
+ return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.BE-1b7-q.js');
47698
47716
  });
47699
- var DropdownField = lazy$1(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.B-mgmOCc.js'); });
47717
+ var DropdownField = lazy$1(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.BTyNf3DP.js'); });
47700
47718
  var DropdownMultiField = lazy$1(function () {
47701
- return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.Bcf-mc5G.js');
47719
+ return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.BDuq8oLk.js');
47702
47720
  });
47703
- var FileUploadField = lazy$1(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.ChLoC8lN.js'); });
47704
- var MatrixField = lazy$1(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.Dd9zfkN2.js'); });
47705
- var PasswordField = lazy$1(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.DCwL0S28.js'); });
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'); });
47706
47724
  var PaymentMethodField = lazy$1(function () {
47707
- return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.3CrlaXau.js');
47725
+ return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.CtnTgodd.js');
47708
47726
  });
47709
- var PhoneField = lazy$1(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.XqQmelY4.js'); });
47710
- var PinInputField = lazy$1(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index._3LzvEov.js'); });
47711
- var QRScanner = lazy$1(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.Ciig6Ulw.js'); });
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'); });
47712
47730
  var RadioButtonGroupField = lazy$1(function () {
47713
47731
  return import(
47714
- /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.Cs4wTdyu.js');
47732
+ /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.CRSq4rGz.js');
47715
47733
  });
47716
- var RatingField = lazy$1(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.BUOb64mV.js'); });
47717
- var SignatureField = lazy$1(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.DlkIbijU.js'); });
47718
- var SliderField = lazy$1(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.pCtAYNV8.js'); });
47719
- var TextField = lazy$1(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.CO4DBaVn.js'); });
47720
- var TextArea = lazy$1(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.D5-ndRhx.js'); });
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'); });
47721
47739
  var Fields = {
47722
47740
  AddressLine1: AddressLine1,
47723
47741
  ButtonGroupField: ButtonGroupField,
@@ -48667,7 +48685,7 @@ function ElementSkeleton(_a) {
48667
48685
  }
48668
48686
  var templateObject_1;
48669
48687
 
48670
- var TableElement = lazy$1(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.BrFdbwfS.js'); });
48688
+ var TableElement = lazy$1(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.BCis3aeZ.js'); });
48671
48689
  var Basic = {
48672
48690
  ImageElement: ImageElement,
48673
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.DAHmuei9.js';
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.vWyzMBYY.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.CPexlZyD.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cg-6mYq7.js';
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.Dwq4APT1.js';
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.DAHmuei9.js';
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.vWyzMBYY.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.CPexlZyD.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cg-6mYq7.js';
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.Dwq4APT1.js';
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.DAHmuei9.js';
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.DjqsoC_6.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
5
- import { O as Overlay } from './fthry_Overlay.Dwq4APT1.js';
6
- import { u as useElementSize } from './fthry_useElementSize.CNVQHFG0.js';
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.DAHmuei9.js';
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.DjqsoC_6.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.IfAjQ586.js';
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.Dwq4APT1.js';
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.DAHmuei9.js';
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';