@feathery/react 2.24.4 → 2.25.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 (100) hide show
  1. package/cjs/Form/tests/testMocks.d.ts.map +1 -1
  2. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  3. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  4. package/cjs/elements/fields/SignatureField/index.d.ts +1 -1
  5. package/cjs/elements/fields/SignatureField/index.d.ts.map +1 -1
  6. package/cjs/elements/fields/SignatureField/translation.d.ts +10 -0
  7. package/cjs/elements/fields/SignatureField/translation.d.ts.map +1 -1
  8. package/cjs/{fthry_FormControl.JuNlGIue.js → fthry_FormControl.jb0RFGiz.js} +1 -1
  9. package/cjs/{fthry_InlineTooltip.CGlqnRfq.js → fthry_InlineTooltip.CJHgZjCO.js} +2 -2
  10. package/cjs/{fthry_Overlay.CtLw7y41.js → fthry_Overlay.2ODhW4Qf.js} +1 -1
  11. package/cjs/{fthry_PaymentMethodField.omuUnwso.js → fthry_PaymentMethodField.DrRGYE3e.js} +4 -4
  12. package/cjs/{fthry_Placeholder.BZswIwby.js → fthry_Placeholder.b8nhL5Yl.js} +1 -1
  13. package/cjs/{fthry_ShowEyeIcon.DtgqEf4Z.js → fthry_ShowEyeIcon.4s-diweI.js} +1 -1
  14. package/cjs/{fthry_index.Difpr0Et.js → fthry_index.1L5fWpFS.js} +45 -24
  15. package/cjs/{fthry_index.CsV1Y-lY.js → fthry_index.B5dyf2Aj.js} +1 -1
  16. package/cjs/{fthry_index.FDP40xD5.js → fthry_index.B9YSOHCN.js} +5 -5
  17. package/cjs/{fthry_index.CK8Ycs_Q.js → fthry_index.BMVRkb2U.js} +2 -2
  18. package/cjs/{fthry_index.DLB9m5Pl.js → fthry_index.BNUBW1rI.js} +1 -1
  19. package/cjs/{fthry_index.Dh6TAr60.js → fthry_index.Bxk3H1vc.js} +6 -6
  20. package/cjs/{fthry_index.BcZj1zst.js → fthry_index.ByqJTIzt.js} +4 -4
  21. package/cjs/{fthry_index.BHna0e7Q.js → fthry_index.C-FwT1B9.js} +5 -5
  22. package/cjs/{fthry_index.DbO8YU2f.js → fthry_index.CHt5K7jD.js} +6 -6
  23. package/cjs/{fthry_index.BhITJipg.js → fthry_index.CNsE0WN5.js} +4 -4
  24. package/cjs/{fthry_index.CDCjJVg-.js → fthry_index.CSORncsG.js} +1 -1
  25. package/cjs/{fthry_index.ieAdS6EQ.js → fthry_index.CZjed00f.js} +1 -1
  26. package/cjs/{fthry_index.DspE0QVU.js → fthry_index.CaCLsAde.js} +1 -1
  27. package/cjs/{fthry_index.CYpMy-da.js → fthry_index.DbIWEzc5.js} +6 -6
  28. package/cjs/{fthry_index.DrvzuQkT.js → fthry_index.Dig2SEg_.js} +1 -1
  29. package/cjs/{fthry_index.Dowf9pwf.js → fthry_index.DkGRPnT4.js} +8 -8
  30. package/cjs/{fthry_index.D_NkQGCM.js → fthry_index.DoGR9rQ0.js} +4 -4
  31. package/cjs/{fthry_index.D-mM1qIa.js → fthry_index.DxAJRBHW.js} +5 -5
  32. package/cjs/{fthry_index.BMy4ionO.js → fthry_index.FMAMFp-x.js} +1 -1
  33. package/cjs/{fthry_index.DKgFa6Cd.js → fthry_index.NshYktAt.js} +1 -1
  34. package/cjs/{fthry_index.BrZOG7L5.js → fthry_index.UKLh9uxG.js} +5 -5
  35. package/cjs/{fthry_index.CG1__KYc.js → fthry_index.YDCvOMn8.js} +1 -1
  36. package/cjs/{fthry_index.BSWVcOA7.js → fthry_index.ZavvQlhx.js} +2 -2
  37. package/cjs/{fthry_index.qqHoT24C.js → fthry_index.icVKn0SQ.js} +57 -46
  38. package/cjs/{fthry_index.D1Uj_nGP.js → fthry_index.y5UULq1V.js} +3 -3
  39. package/cjs/{fthry_index.CJh1CPKc.js → fthry_index.zkIb9UKy.js} +1 -1
  40. package/cjs/{fthry_input.-L9oQ_94.js → fthry_input.DsaLd4ld.js} +1 -1
  41. package/cjs/{fthry_script.Caoggvuw.js → fthry_script.wjhkBpJp.js} +1 -1
  42. package/cjs/{fthry_styles.DKn33jbX.js → fthry_styles.CzRjkNMl.js} +1 -1
  43. package/cjs/{fthry_useElementSize.DD2W5taq.js → fthry_useElementSize.DgelV5Yz.js} +1 -1
  44. package/cjs/{fthry_useSalesforceSync.CcSeZug-.js → fthry_useSalesforceSync.B3OEnpfg.js} +1 -1
  45. package/cjs/{fthry_webfontloader.CUQ9xv9a.js → fthry_webfontloader.BB3WpXDJ.js} +1 -1
  46. package/cjs/index.js +1 -1
  47. package/cjs/integrations/utils.d.ts.map +1 -1
  48. package/dist/Form/tests/testMocks.d.ts.map +1 -1
  49. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  50. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  51. package/dist/elements/fields/SignatureField/index.d.ts +1 -1
  52. package/dist/elements/fields/SignatureField/index.d.ts.map +1 -1
  53. package/dist/elements/fields/SignatureField/translation.d.ts +10 -0
  54. package/dist/elements/fields/SignatureField/translation.d.ts.map +1 -1
  55. package/dist/{fthry_FormControl.BCZVsuAV.js → fthry_FormControl.DD6Wm4mw.js} +1 -1
  56. package/dist/{fthry_InlineTooltip.CDUAdbuG.js → fthry_InlineTooltip.CPpjQXK4.js} +2 -2
  57. package/dist/{fthry_Overlay.ctFqM2nQ.js → fthry_Overlay.CYGG1RhN.js} +1 -1
  58. package/dist/{fthry_PaymentMethodField.VtlfUIMF.js → fthry_PaymentMethodField.CshopZ5T.js} +4 -4
  59. package/dist/{fthry_Placeholder.Cp4msK9u.js → fthry_Placeholder.fzA1OHT2.js} +1 -1
  60. package/dist/{fthry_ShowEyeIcon.CiALoTKo.js → fthry_ShowEyeIcon.BYaZwD6_.js} +1 -1
  61. package/dist/{fthry_index.FxHyaooV.js → fthry_index.BNrDR7Qm.js} +1 -1
  62. package/dist/{fthry_index.DRdqETnS.js → fthry_index.BXMcPXSP.js} +1 -1
  63. package/dist/{fthry_index.DEHPjw5N.js → fthry_index.BYsstaY5.js} +8 -8
  64. package/dist/{fthry_index.C38CGwVQ.js → fthry_index.BZC_tsm_.js} +6 -6
  65. package/dist/{fthry_index.nn3Dnffy.js → fthry_index.BZRgHpop.js} +6 -6
  66. package/dist/{fthry_index.BGWvH0-I.js → fthry_index.Bbh4fJmy.js} +1 -1
  67. package/dist/{fthry_index.DbVsvAfG.js → fthry_index.C87zQWsQ.js} +57 -46
  68. package/dist/{fthry_index.D-L1E3EI.js → fthry_index.CQ2F8Pux.js} +3 -3
  69. package/dist/{fthry_index.na55vuEk.js → fthry_index.CUeE7_i5.js} +2 -2
  70. package/dist/{fthry_index.CCveIs8W.js → fthry_index.Cai7pdVv.js} +5 -5
  71. package/dist/{fthry_index.BL3hwxtM.js → fthry_index.CrsqPaYg.js} +1 -1
  72. package/dist/{fthry_index.BGmnxFi_.js → fthry_index.CrzJQqch.js} +2 -2
  73. package/dist/{fthry_index.DoGk5JCR.js → fthry_index.D0gX8Qsy.js} +1 -1
  74. package/dist/{fthry_index.C84bJPAm.js → fthry_index.D6aqeOCu.js} +5 -5
  75. package/dist/{fthry_index.CkKAQJj8.js → fthry_index.DHVgM73m.js} +1 -1
  76. package/dist/{fthry_index.BtvYhVUg.js → fthry_index.DNWnXNPS.js} +45 -24
  77. package/dist/{fthry_index.DYQCtTKX.js → fthry_index.DOMX0Y5n.js} +4 -4
  78. package/dist/{fthry_index.DxxoAomr.js → fthry_index.DwqBJsdf.js} +1 -1
  79. package/dist/{fthry_index.DNGYgC2B.js → fthry_index.Dy9sVMTZ.js} +1 -1
  80. package/dist/{fthry_index.Dad_uojE.js → fthry_index.E52526pq.js} +4 -4
  81. package/dist/{fthry_index.XQlZNpaC.js → fthry_index.ew_AjU92.js} +5 -5
  82. package/dist/{fthry_index.ByVlyk0L.js → fthry_index.j9HIsLRA.js} +1 -1
  83. package/dist/{fthry_index.CeHJMbCX.js → fthry_index.jx3O0GbQ.js} +4 -4
  84. package/dist/{fthry_index.0k8kOGLl.js → fthry_index.m5RiN4cy.js} +1 -1
  85. package/dist/{fthry_index.-N8PSO4P.js → fthry_index.pDD7Y4vk.js} +5 -5
  86. package/dist/{fthry_index.u9hi5B_J.js → fthry_index.zPcNy7xQ.js} +6 -6
  87. package/dist/{fthry_input.DYcjVVpQ.js → fthry_input.62KY0z2u.js} +1 -1
  88. package/dist/{fthry_script.-H2luo6T.js → fthry_script.CwmE-2lH.js} +1 -1
  89. package/dist/{fthry_styles.zT4UfDQf.js → fthry_styles.CJpgAne5.js} +1 -1
  90. package/dist/{fthry_useElementSize.Cex8Fb9b.js → fthry_useElementSize.JrChdYNI.js} +1 -1
  91. package/dist/{fthry_useSalesforceSync.mbZUbW_1.js → fthry_useSalesforceSync.D8bWr6Oo.js} +1 -1
  92. package/dist/{fthry_webfontloader.DhmdQDYQ.js → fthry_webfontloader.BRbkRy6h.js} +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/integrations/utils.d.ts.map +1 -1
  95. package/package.json +3 -3
  96. package/umd/SignatureField.91e03c3324a30624271f.js +1 -0
  97. package/umd/index.js +1 -1
  98. package/umd/libphonenumber.4ab4d30edb4e455b2fc4.js +1 -0
  99. package/umd/SignatureField.56c69ad7ee1f7e0b5003.js +0 -1
  100. package/umd/libphonenumber.d53d0d1347fa5545ff45.js +0 -1
@@ -1,4 +1,4 @@
1
- import { a as jsxs, _ as __assign, j as jsx, b as __read, a9 as isEmptyArray, aa as toList, ab as useThumbnailData, e as __spreadArray, p as imgMaxSizeStyles, l as __awaiter, m as __generator, ac as downloadFile, ad as CloseIcon, k as iosScrollOnFocus, t as FORM_Z_INDEX, ae as justRemove } from './fthry_index.DbVsvAfG.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, b as __read, a9 as isEmptyArray, aa as toList, ab as useThumbnailData, e as __spreadArray, p as imgMaxSizeStyles, l as __awaiter, m as __generator, ac as downloadFile, ad as CloseIcon, k as iosScrollOnFocus, t as FORM_Z_INDEX, ae as justRemove } from './fthry_index.C87zQWsQ.js';
2
2
  import { useRef, useState, useEffect } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -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, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.DbVsvAfG.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.C87zQWsQ.js';
2
2
  import { memo, useRef, useState } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.Cp4msK9u.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
5
- import { O as Overlay } from './fthry_Overlay.ctFqM2nQ.js';
6
- import { u as useElementSize } from './fthry_useElementSize.Cex8Fb9b.js';
7
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.CiALoTKo.js';
8
- import { a as IMaskInput } from './fthry_input.DYcjVVpQ.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.fzA1OHT2.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.js';
5
+ import { O as Overlay } from './fthry_Overlay.CYGG1RhN.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.JrChdYNI.js';
7
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.BYaZwD6_.js';
8
+ import { a as IMaskInput } from './fthry_input.62KY0z2u.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.BGWvH0-I.js';
13
+ import './fthry_index.Bbh4fJmy.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,14 +1,14 @@
1
- import { a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DbVsvAfG.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.C87zQWsQ.js';
2
2
  import { useRef, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.BCZVsuAV.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.ByVlyk0L.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.mbZUbW_1.js';
3
+ import { F as FormControl } from './fthry_FormControl.DD6Wm4mw.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.j9HIsLRA.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.D8bWr6Oo.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.ctFqM2nQ.js';
11
+ import './fthry_Overlay.CYGG1RhN.js';
12
12
 
13
13
  var applyCheckboxGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('checkboxGroup');
@@ -1,16 +1,16 @@
1
- import { j as jsx, G as Global, w as css, x as __makeTemplateObject, _ as __assign, b as __read, y as isMobile, v as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, z as __rest, B as formatDateString } from './fthry_index.DbVsvAfG.js';
1
+ import { j as jsx, G as Global, w as css, x as __makeTemplateObject, _ as __assign, b as __read, y as isMobile, v as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, z as __rest, B as formatDateString } from './fthry_index.C87zQWsQ.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.Cp4msK9u.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
4
+ import { P as Placeholder } from './fthry_Placeholder.fzA1OHT2.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.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.DYcjVVpQ.js';
9
+ import { I as IMask, a as IMaskInput } from './fthry_input.62KY0z2u.js';
10
10
  import 'react-dom/client';
11
11
  import 'jszip';
12
- import './fthry_Overlay.ctFqM2nQ.js';
13
- import './fthry_index.BGWvH0-I.js';
12
+ import './fthry_Overlay.CYGG1RhN.js';
13
+ import './fthry_index.Bbh4fJmy.js';
14
14
 
15
15
  var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
16
16
  var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './fthry_index.DbVsvAfG.js';
1
+ import { g as getDefaultExportFromCjs } from './fthry_index.C87zQWsQ.js';
2
2
 
3
3
  var propTypes = {exports: {}};
4
4
 
@@ -6219,14 +6219,14 @@ function requireApi () {
6219
6219
  method: 'POST',
6220
6220
  body: JSON.stringify(data),
6221
6221
  });
6222
- const pollUrl = `${(0, utils_1.getStaticUrl)()}ai/vision/completion/?fid=${userId}&eid=${extractionId}&evid=${variantId ?? ''}`;
6222
+ const response = await res?.json();
6223
+ const pollUrl = `${(0, utils_1.getStaticUrl)()}ai/vision/completion/?fid=${userId}&eid=${extractionId}&evid=${variantId ?? ''}&poll_ids=${(response?.poll_ids ?? []).join(',')}`;
6223
6224
  const CHECK_INTERVAL = pollCheckInterval ?? 2000;
6224
6225
  const MAX_TIME = pollMaxTime ?? 3 * 60 * 1000;
6225
6226
  if (runAsync) {
6226
6227
  pollForCompletion(sdkKey, pollUrl, CHECK_INTERVAL, MAX_TIME, 'Extraction', onStatusUpdate);
6227
6228
  return {};
6228
6229
  }
6229
- const response = await res?.json();
6230
6230
  if (response?.meeting_info) {
6231
6231
  onMeetingInfo?.();
6232
6232
  return {};
@@ -6237,29 +6237,36 @@ function requireApi () {
6237
6237
  return new Promise((resolve) => {
6238
6238
  let attempts = 0;
6239
6239
  const maxAttempts = maxTime / checkInterval;
6240
+ const retryOrTimeout = () => {
6241
+ if (attempts < maxAttempts) {
6242
+ setTimeout(checkCompletion, checkInterval);
6243
+ }
6244
+ else {
6245
+ const message = `${operationName} took too long...`;
6246
+ console.error(message);
6247
+ resolve({ status: 'error', message });
6248
+ }
6249
+ };
6240
6250
  const checkCompletion = async () => {
6241
- const response = await (0, utils_1.apiFetch)(sdkKey, pollUrl, { method: 'GET' }, false);
6251
+ attempts += 1;
6252
+ let response;
6253
+ try {
6254
+ response = await (0, utils_1.apiFetch)(sdkKey, pollUrl, { method: 'GET' }, false);
6255
+ }
6256
+ catch {
6257
+ // transient network error — retry on next interval
6258
+ }
6242
6259
  if (!response)
6243
- return;
6260
+ return retryOrTimeout();
6244
6261
  const data = await response.json();
6245
6262
  if (onStatusUpdate) {
6246
6263
  onStatusUpdate(data);
6247
6264
  }
6248
6265
  if (response.ok) {
6249
- if (data.status === 'complete') {
6266
+ if (data.status === 'complete')
6250
6267
  return resolve(data);
6251
- }
6252
- else {
6253
- attempts += 1;
6254
- if (attempts < maxAttempts) {
6255
- setTimeout(checkCompletion, checkInterval);
6256
- }
6257
- else {
6258
- const message = `${operationName} took too long...`;
6259
- console.error(message);
6260
- return resolve({ status: 'error', message });
6261
- }
6262
- }
6268
+ else
6269
+ return retryOrTimeout();
6263
6270
  }
6264
6271
  else {
6265
6272
  const message = (0, error_1.parseAPIError)(data);
@@ -17756,7 +17763,7 @@ var phoneLib = null;
17756
17763
  var phoneLibPromise = Promise.resolve();
17757
17764
  var loadPhoneValidator = function () {
17758
17765
  phoneLibPromise = import(
17759
- /* webpackChunkName: "libphonenumber" */ './fthry_index.FxHyaooV.js').then(function (mod) {
17766
+ /* webpackChunkName: "libphonenumber" */ './fthry_index.BNrDR7Qm.js').then(function (mod) {
17760
17767
  phoneLib = mod;
17761
17768
  return mod;
17762
17769
  });
@@ -39446,7 +39453,7 @@ function useTrackUserInteraction(formRef, activeStep, stepKey, formName) {
39446
39453
  }, [activeStep, stepKey, formName]);
39447
39454
  }
39448
39455
 
39449
- var AssistantChat = lazy(function () { return import(/* webpackChunkName: "AssistantChat" */ './fthry_index.DNGYgC2B.js'); });
39456
+ var AssistantChat = lazy(function () { return import(/* webpackChunkName: "AssistantChat" */ './fthry_index.Dy9sVMTZ.js'); });
39450
39457
  var getSubmissionErrorMessage = function (error) {
39451
39458
  if (error instanceof TypeError && error.message === 'Failed to fetch') {
39452
39459
  return 'Unable to upload files. Please check your connection and try again.';
@@ -44604,7 +44611,11 @@ function initializeIntegrations(integs, featheryClient) {
44604
44611
  });
44605
44612
  }
44606
44613
  function trackEvent(integrations, title, stepId, formName, fieldData) {
44607
- var metadata = { formName: formName };
44614
+ var _a;
44615
+ var metadata = {
44616
+ formName: formName,
44617
+ userId: (_a = initInfo().userId) !== null && _a !== void 0 ? _a : ''
44618
+ };
44608
44619
  if (stepId)
44609
44620
  metadata.stepId = stepId;
44610
44621
  // Google Tag Manager
@@ -45986,9 +45997,9 @@ function init(sdkKey, options) {
45986
45997
  if (runningInClient()) {
45987
45998
  // Dynamically load libraries that must be client side
45988
45999
  global.scriptjsLoadPromise = import(
45989
- /* webpackChunkName: "scriptjs" */ './fthry_script.-H2luo6T.js').then(function (n) { return n.s; });
46000
+ /* webpackChunkName: "scriptjs" */ './fthry_script.CwmE-2lH.js').then(function (n) { return n.s; });
45990
46001
  global.webfontloaderPromise = import(
45991
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.DhmdQDYQ.js').then(function (n) { return n.w; });
46002
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.BRbkRy6h.js').then(function (n) { return n.w; });
45992
46003
  // Client-side tracking logic
45993
46004
  if (initState.userTracking === 'cookie') {
45994
46005
  var cookieKey = "feathery-user-id-".concat(sdkKey);
@@ -46134,7 +46145,7 @@ function getFieldValues() {
46134
46145
  return __assign({}, fieldValues);
46135
46146
  }
46136
46147
  function logFeatheryBadge() {
46137
- console.log('%c Feathery %c v' + "2.24.4" + ' ', // replaced with real version during build
46148
+ console.log('%c Feathery %c v' + "2.25.0" + ' ', // replaced with real version during build
46138
46149
  '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;');
46139
46150
  }
46140
46151
 
@@ -47584,39 +47595,39 @@ breakpoint) {
47584
47595
  return styles.getTarget('inner-container', undefined, viewport === 'mobile');
47585
47596
  };
47586
47597
 
47587
- var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.-N8PSO4P.js'); });
47588
- var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.CeHJMbCX.js'); });
47589
- var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.ByVlyk0L.js'); });
47598
+ var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.pDD7Y4vk.js'); });
47599
+ var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.jx3O0GbQ.js'); });
47600
+ var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.j9HIsLRA.js'); });
47590
47601
  var CheckboxGroupField = lazy(function () {
47591
- return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.C38CGwVQ.js');
47602
+ return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.BZC_tsm_.js');
47592
47603
  });
47593
- var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.DoGk5JCR.js'); });
47594
- var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DxxoAomr.js'); });
47604
+ var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.D0gX8Qsy.js'); });
47605
+ var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.DwqBJsdf.js'); });
47595
47606
  var DateSelectorField = lazy(function () {
47596
- return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.nn3Dnffy.js');
47607
+ return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.BZRgHpop.js');
47597
47608
  });
47598
- var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.Dad_uojE.js'); });
47609
+ var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.E52526pq.js'); });
47599
47610
  var DropdownMultiField = lazy(function () {
47600
- return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.CCveIs8W.js');
47611
+ return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.Cai7pdVv.js');
47601
47612
  });
47602
- var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.DRdqETnS.js'); });
47603
- var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.D-L1E3EI.js'); });
47604
- var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.C84bJPAm.js'); });
47613
+ var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.BXMcPXSP.js'); });
47614
+ var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.CQ2F8Pux.js'); });
47615
+ var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.D6aqeOCu.js'); });
47605
47616
  var PaymentMethodField = lazy(function () {
47606
- return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.VtlfUIMF.js');
47617
+ return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.CshopZ5T.js');
47607
47618
  });
47608
- var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.XQlZNpaC.js'); });
47609
- var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.0k8kOGLl.js'); });
47610
- var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.na55vuEk.js'); });
47619
+ var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.ew_AjU92.js'); });
47620
+ var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.m5RiN4cy.js'); });
47621
+ var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.CUeE7_i5.js'); });
47611
47622
  var RadioButtonGroupField = lazy(function () {
47612
47623
  return import(
47613
- /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.u9hi5B_J.js');
47624
+ /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.zPcNy7xQ.js');
47614
47625
  });
47615
- var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.BL3hwxtM.js'); });
47616
- var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.BtvYhVUg.js'); });
47617
- var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.BGmnxFi_.js'); });
47618
- var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.DEHPjw5N.js'); });
47619
- var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.DYQCtTKX.js'); });
47626
+ var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.CrsqPaYg.js'); });
47627
+ var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.DNWnXNPS.js'); });
47628
+ var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.CrzJQqch.js'); });
47629
+ var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.BYsstaY5.js'); });
47630
+ var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.DOMX0Y5n.js'); });
47620
47631
  var Fields = {
47621
47632
  AddressLine1: AddressLine1,
47622
47633
  ButtonGroupField: ButtonGroupField,
@@ -48566,7 +48577,7 @@ function ElementSkeleton(_a) {
48566
48577
  }
48567
48578
  var templateObject_1;
48568
48579
 
48569
- var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.CkKAQJj8.js'); });
48580
+ var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.DHVgM73m.js'); });
48570
48581
  var Basic = {
48571
48582
  ImageElement: ImageElement,
48572
48583
  VideoElement: VideoElement,
@@ -1,7 +1,7 @@
1
- import { b as __read, j as jsx, F as Fragment, y as isMobile, a as jsxs, _ as __assign, t as FORM_Z_INDEX, k as iosScrollOnFocus } from './fthry_index.DbVsvAfG.js';
1
+ import { b as __read, j as jsx, F as Fragment, y as isMobile, a as jsxs, _ as __assign, t as FORM_Z_INDEX, k as iosScrollOnFocus } from './fthry_index.C87zQWsQ.js';
2
2
  import { useState, useRef, useMemo } from 'react';
3
- import { O as Overlay, T as Tooltip } from './fthry_Overlay.ctFqM2nQ.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.ByVlyk0L.js';
3
+ import { O as Overlay, T as Tooltip } from './fthry_Overlay.CYGG1RhN.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.j9HIsLRA.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom/client';
7
7
  import 'jszip';
@@ -1,6 +1,6 @@
1
- import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow, an as loadQRScanner, ao as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, ap as qrPromise } from './fthry_index.DbVsvAfG.js';
1
+ import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow, an as loadQRScanner, ao as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, ap as qrPromise } from './fthry_index.C87zQWsQ.js';
2
2
  import React__default, { useEffect, useCallback } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.zT4UfDQf.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.CJpgAne5.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,10 +1,10 @@
1
- import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.DbVsvAfG.js';
1
+ import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.C87zQWsQ.js';
2
2
  import * as React from 'react';
3
3
  import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
5
- import { P as Placeholder$2 } from './fthry_Placeholder.Cp4msK9u.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.mbZUbW_1.js';
7
- import { T as Tooltip, O as Overlay } from './fthry_Overlay.ctFqM2nQ.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.js';
5
+ import { P as Placeholder$2 } from './fthry_Placeholder.fzA1OHT2.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.D8bWr6Oo.js';
7
+ import { T as Tooltip, O as Overlay } from './fthry_Overlay.CYGG1RhN.js';
8
8
  import { createPortal } from 'react-dom';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.DbVsvAfG.js';
1
+ import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.C87zQWsQ.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 { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.DbVsvAfG.js';
1
+ import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.C87zQWsQ.js';
2
2
  import { useState, useEffect } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.zT4UfDQf.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.CJpgAne5.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,4 +1,4 @@
1
- import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, t as FORM_Z_INDEX } from './fthry_index.DbVsvAfG.js';
1
+ import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, t as FORM_Z_INDEX } from './fthry_index.C87zQWsQ.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,13 +1,13 @@
1
- import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles } from './fthry_index.DbVsvAfG.js';
1
+ import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles } from './fthry_index.C87zQWsQ.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.Cp4msK9u.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
5
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.CiALoTKo.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.fzA1OHT2.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.js';
5
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.BYaZwD6_.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.ctFqM2nQ.js';
10
+ import './fthry_Overlay.CYGG1RhN.js';
11
11
 
12
12
  function PasswordField(_a) {
13
13
  var _b;
@@ -1,4 +1,4 @@
1
- import { _ as __assign, j as jsx, a as jsxs, F as Fragment, b as __read, f as featheryDoc, c as fieldValues, s as stringifyWithNull, d as __values, e as __spreadArray } from './fthry_index.DbVsvAfG.js';
1
+ import { _ as __assign, j as jsx, a as jsxs, F as Fragment, b as __read, f as featheryDoc, c as fieldValues, s as stringifyWithNull, d as __values, e as __spreadArray } from './fthry_index.C87zQWsQ.js';
2
2
  import { useState, useRef, useEffect, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
- import { f as featheryDoc, aq as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, l as __awaiter, m as __generator, ar as toBase64, o as debounce, as as MODAL_Z_INDEX, ad as CloseIcon, at as dataURLToFile, t as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.DbVsvAfG.js';
1
+ import { f as featheryDoc, aq as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, l as __awaiter, m as __generator, ar as toBase64, o as debounce, as as MODAL_Z_INDEX, ad as CloseIcon, at as dataURLToFile, t as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.C87zQWsQ.js';
2
2
  import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
3
- import { P as PropTypes } from './fthry_index.BGWvH0-I.js';
3
+ import { P as PropTypes } from './fthry_index.Bbh4fJmy.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1143,20 +1143,22 @@ var SignatureCanvas = forwardRef(function (props, ref) {
1143
1143
  });
1144
1144
 
1145
1145
  var SIGNER_NAME_KEY = 'feathery-signer-name';
1146
+ var SIGNER_INITIALS_KEY = 'feathery-signer-initials';
1146
1147
  function SignatureModal(props) {
1147
1148
  var _a, _b;
1148
- 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, 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, t = props.translation;
1149
1150
  var typeOnly = signMethods === 'type';
1150
1151
  var drawOnly = signMethods === 'draw';
1151
- var _h = __read(useState(drawOnly), 2), drawSignature = _h[0], setDrawSignature = _h[1];
1152
- var _j = __read(useState(''), 2), fullName = _j[0], setFullName = _j[1];
1153
- var _k = __read(useState(false), 2), isLoading = _k[0], setLoading = _k[1];
1154
- var _l = __read(useState(), 2), signatureFile = _l[0], setSignatureFile = _l[1];
1155
- var _m = __read(useState(''), 2), signatureImgData = _m[0], setSignatureImgData = _m[1];
1152
+ var _j = __read(useState(drawOnly), 2), drawSignature = _j[0], setDrawSignature = _j[1];
1153
+ var _k = __read(useState(''), 2), fullName = _k[0], setFullName = _k[1];
1154
+ var _l = __read(useState(false), 2), isLoading = _l[0], setLoading = _l[1];
1155
+ var _m = __read(useState(), 2), signatureFile = _m[0], setSignatureFile = _m[1];
1156
+ var _o = __read(useState(''), 2), signatureImgData = _o[0], setSignatureImgData = _o[1];
1156
1157
  var fullNameRef = useRef(fullName);
1157
1158
  var signatureCanvasRef = useRef(null);
1159
+ var storageKey = isInitials ? SIGNER_INITIALS_KEY : SIGNER_NAME_KEY;
1158
1160
  var getSignerNameFromSessionStorage = function () {
1159
- var signerName = sessionStorage.getItem(SIGNER_NAME_KEY);
1161
+ var signerName = sessionStorage.getItem(storageKey);
1160
1162
  return signerName || '';
1161
1163
  };
1162
1164
  useEffect(function () {
@@ -1235,7 +1237,7 @@ function SignatureModal(props) {
1235
1237
  var handleSubmit = function () {
1236
1238
  if (signatureFile) {
1237
1239
  onEnd(signatureFile);
1238
- sessionStorage.setItem(SIGNER_NAME_KEY, fullName);
1240
+ sessionStorage.setItem(storageKey, fullName);
1239
1241
  setShow(false);
1240
1242
  resetState();
1241
1243
  }
@@ -1273,7 +1275,7 @@ function SignatureModal(props) {
1273
1275
  display: 'flex',
1274
1276
  padding: '20px',
1275
1277
  borderBottom: '1px solid #e9e9e9'
1276
- } }, { children: [jsx("h3", __assign({ css: { padding: 0, margin: 0, flex: '1' } }, { children: t.title })), jsx(CloseIcon, { onClick: function () { return handleCancel(); }, css: { '&:hover': { cursor: 'pointer' } } })] })), jsxs("div", __assign({ css: {
1278
+ } }, { children: [jsx("h3", __assign({ css: { padding: 0, margin: 0, flex: '1' } }, { children: isInitials ? t.initials_title : t.title })), jsx(CloseIcon, { onClick: function () { return handleCancel(); }, css: { '&:hover': { cursor: 'pointer' } } })] })), jsxs("div", __assign({ css: {
1277
1279
  position: 'relative',
1278
1280
  padding: '20px 20px 30px 20px',
1279
1281
  '& h3': {
@@ -1286,10 +1288,12 @@ function SignatureModal(props) {
1286
1288
  gap: '15px',
1287
1289
  flexDirection: 'column',
1288
1290
  paddingBottom: '30px'
1289
- } }, { children: [jsx("h3", { children: t.type_option }), jsx("input", { defaultValue: getSignerNameFromSessionStorage(), onChange: function (e) {
1291
+ } }, { children: [jsx("h3", { children: isInitials ? t.initials_type_option : t.type_option }), jsx("input", { defaultValue: getSignerNameFromSessionStorage(), onChange: function (e) {
1290
1292
  var val = e.target.value.trim();
1291
1293
  setFullName(val);
1292
- }, placeholder: t.type_placeholder, css: {
1294
+ }, placeholder: isInitials
1295
+ ? t.initials_type_placeholder
1296
+ : t.type_placeholder, css: {
1293
1297
  padding: '8px 10px',
1294
1298
  borderRadius: '4px',
1295
1299
  border: '1px solid #e9e9e9',
@@ -1320,7 +1324,7 @@ function SignatureModal(props) {
1320
1324
  fontFamily: 'sans-serif',
1321
1325
  fontSize: '.9rem',
1322
1326
  borderRadius: '4px'
1323
- } }, { children: t.type_loading }))), !signatureImgData ? (t.type_example) : (jsx("img", { src: signatureImgData, alt: 'Signature', css: { maxHeight: '100%', maxWidth: '100%' } }))] }))] })), !typeOnly && (jsxs(Fragment, { children: [jsx("div", __assign({ css: {
1327
+ } }, { children: isInitials ? t.initials_type_loading : t.type_loading }))), !signatureImgData ? (isInitials ? (t.initials_type_example) : (t.type_example)) : (jsx("img", { src: signatureImgData, alt: 'Signature', css: { maxHeight: '100%', maxWidth: '100%' } }))] }))] })), !typeOnly && (jsxs(Fragment, { children: [jsx("div", __assign({ css: {
1324
1328
  height: '1px',
1325
1329
  display: 'flex',
1326
1330
  alignItems: 'center',
@@ -1349,14 +1353,18 @@ function SignatureModal(props) {
1349
1353
  border: '1px solid #5e5e5e',
1350
1354
  cursor: 'pointer'
1351
1355
  }
1352
- } }, { children: [jsx("h3", { children: t.draw_option }), jsx("p", { children: t.draw_subtitle })] })) }))] }))] })), drawSignature && (jsxs("div", __assign({ css: {
1356
+ } }, { children: [jsx("h3", { children: isInitials ? t.initials_draw_option : t.draw_option }), jsx("p", { children: isInitials
1357
+ ? t.initials_draw_subtitle
1358
+ : t.draw_subtitle })] })) }))] }))] })), drawSignature && (jsxs("div", __assign({ css: {
1353
1359
  display: 'flex',
1354
1360
  flexDirection: 'column',
1355
1361
  gap: '15px'
1356
1362
  } }, { children: [jsx("p", __assign({ css: {
1357
1363
  margin: 0,
1358
1364
  padding: 0
1359
- } }, { children: t.draw_instructions })), jsx("div", __assign({ css: { position: 'relative', width: '100%', height: '200px' } }, { children: jsx(SignatureCanvas, { ref: signatureCanvasRef, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: generateDrawnSignature, showClear: false, translation: t }) }))] })))] })), jsxs("div", __assign({ css: {
1365
+ } }, { children: isInitials
1366
+ ? t.initials_draw_instructions
1367
+ : t.draw_instructions })), jsx("div", __assign({ css: { position: 'relative', width: '100%', height: '200px' } }, { children: jsx(SignatureCanvas, { ref: signatureCanvasRef, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: generateDrawnSignature, showClear: false, translation: t }) }))] })))] })), jsxs("div", __assign({ css: {
1360
1368
  position: 'relative',
1361
1369
  display: 'flex',
1362
1370
  padding: '20px 20px',
@@ -1398,7 +1406,7 @@ function SignatureModal(props) {
1398
1406
  cursor: 'not-allowed'
1399
1407
  }
1400
1408
  }
1401
- } }, { children: t.confirm }))] })] }))] }))] })));
1409
+ } }, { children: isInitials ? t.initials_confirm : t.confirm }))] })] }))] }))] })));
1402
1410
  }
1403
1411
 
1404
1412
  var defaultTranslations = {
@@ -1415,35 +1423,48 @@ var defaultTranslations = {
1415
1423
  confirm: 'Sign',
1416
1424
  cancel: 'Cancel',
1417
1425
  back: 'Back',
1418
- clear: 'Clear'
1426
+ clear: 'Clear',
1427
+ initials_label: 'Initial here',
1428
+ initials_title: 'Add your initials',
1429
+ initials_type_option: 'Type your initials',
1430
+ initials_type_placeholder: 'Your initials',
1431
+ initials_type_example: 'A.B.',
1432
+ initials_type_loading: 'Generating initials',
1433
+ initials_draw_option: 'Draw your initials',
1434
+ initials_draw_subtitle: 'Draw your initials here using your mouse or trackpad',
1435
+ initials_draw_instructions: 'Draw your initials in the box below',
1436
+ initials_confirm: 'Initial'
1419
1437
  };
1420
1438
 
1421
1439
  function SignatureField(_a) {
1422
- var _b, _c, _d, _e;
1423
- var element = _a.element, fieldLabel = _a.fieldLabel, responsiveStyles = _a.responsiveStyles, _f = _a.defaultValue, defaultValue = _f === void 0 ? null : _f, editMode = _a.editMode, repeatIndex = _a.repeatIndex, _g = _a.elementProps, elementProps = _g === void 0 ? {} : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.onEnd, onEnd = _j === void 0 ? function () { } : _j, _k = _a.onClear, onClear = _k === void 0 ? function () { } : _k, _l = _a.ReactPortal, ReactPortal = _l === void 0 ? null : _l, // This is allowing the ability to pass a portal for the modal
1440
+ 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
1424
1442
  children = _a.children;
1425
- var _m = __read(useState(false), 2), showSignatureModal = _m[0], setShowSignatureModal = _m[1];
1443
+ var _o = __read(useState(false), 2), showSignatureModal = _o[0], setShowSignatureModal = _o[1];
1426
1444
  var Portal = ReactPortal !== null && ReactPortal !== void 0 ? ReactPortal : (function (_a) {
1427
1445
  var children = _a.children;
1428
1446
  return jsx(Fragment, { children: children });
1429
1447
  });
1430
1448
  var servar = (_b = element.servar) !== null && _b !== void 0 ? _b : {};
1431
1449
  var fieldKey = (_c = servar.key) !== null && _c !== void 0 ? _c : element.key;
1450
+ var isInitials = ((_d = servar.metadata) === null || _d === void 0 ? void 0 : _d.sign_type) === 'initials';
1432
1451
  var t = __assign(__assign({}, defaultTranslations), element.properties.translate);
1433
1452
  useEffect(function () {
1434
1453
  if (!global.webfontloaderPromise)
1435
1454
  global.webfontloaderPromise = import(
1436
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.DhmdQDYQ.js').then(function (n) { return n.w; });
1455
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.BRbkRy6h.js').then(function (n) { return n.w; });
1437
1456
  global.webfontloaderPromise.then(function (WebFont) {
1438
1457
  WebFont.load({ google: { families: ['La Belle Aurore'] } });
1439
1458
  });
1440
1459
  }, []);
1441
- 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: (_e = (_d = servar.metadata) === null || _d === void 0 ? void 0 : _d.sign_methods) !== null && _e !== void 0 ? _e : '', 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, fieldLabel, 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 () {
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 () {
1442
1461
  if (!disabled)
1443
1462
  setShowSignatureModal(true);
1444
1463
  }, 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': {
1445
1464
  cursor: 'pointer'
1446
- } }) }, { children: !defaultValue && !disabled && t.label })), jsx(SignatureCanvas, { fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, defaultValue: defaultValue, disabled: disabled, showClear: false, translation: t })] })), jsx(ErrorInput, { id: servar.key, "aria-label": element.properties.aria_label })] }))] }))] }));
1465
+ } }) }, { children: !defaultValue &&
1466
+ !disabled &&
1467
+ (servar.name || (isInitials ? t.initials_label : t.label)) })), jsx(SignatureCanvas, { fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, defaultValue: defaultValue, disabled: disabled, showClear: false, translation: t })] })), jsx(ErrorInput, { id: servar.key, "aria-label": element.properties.aria_label })] }))] }))] }));
1447
1468
  }
1448
1469
 
1449
1470
  export { SignatureField as default };
@@ -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.DbVsvAfG.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.C87zQWsQ.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.Cp4msK9u.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.fzA1OHT2.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.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.ctFqM2nQ.js';
9
+ import './fthry_Overlay.CYGG1RhN.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 { j as jsx, _ as __assign, a as jsxs, b as __read, l as __awaiter, m as __generator, v as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.DbVsvAfG.js';
1
+ import { j as jsx, _ as __assign, a as jsxs, b as __read, l as __awaiter, m as __generator, v as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.C87zQWsQ.js';
2
2
  import { useRef, useState, useEffect, memo, useMemo } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, j as jsx, _ as __assign, a as jsxs, b as __read, e as __spreadArray, i as initInfo, A as API_URL } from './fthry_index.DbVsvAfG.js';
1
+ import { g as getDefaultExportFromCjs, j as jsx, _ as __assign, a as jsxs, b as __read, e as __spreadArray, i as initInfo, A as API_URL } from './fthry_index.C87zQWsQ.js';
2
2
  import { useRef, useCallback, useSyncExternalStore, useEffect, useState, memo, useMemo, Fragment } from 'react';
3
3
  import '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, C as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, w as css, x as __makeTemplateObject, G as Global, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DbVsvAfG.js';
1
+ import { j as jsx, _ as __assign, u as useBorder, b as __read, C as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, w as css, x as __makeTemplateObject, G as Global, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.C87zQWsQ.js';
2
2
  import { useState, useRef, useEffect } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.CDUAdbuG.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.mbZUbW_1.js';
3
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CPpjQXK4.js';
4
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.D8bWr6Oo.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.ctFqM2nQ.js';
9
+ import './fthry_Overlay.CYGG1RhN.js';
10
10
 
11
11
  var ae = [
12
12
  { name: 'Abu Dhabi', code: 'AZ' },