@feathery/react 2.23.6 → 2.24.1

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 (111) hide show
  1. package/cjs/Form/index.d.ts.map +1 -1
  2. package/cjs/elements/basic/TableElement/Actions.d.ts.map +1 -1
  3. package/cjs/elements/basic/TableElement/Pagination.d.ts.map +1 -1
  4. package/cjs/elements/basic/TableElement/styles.d.ts +27 -17
  5. package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
  6. package/cjs/elements/fields/PhoneField/index.d.ts.map +1 -1
  7. package/cjs/{fthry_FormControl.BSFeGfR_.js → fthry_FormControl.BU7eBiY6.js} +1 -1
  8. package/cjs/{fthry_InlineTooltip.DdmX24ud.js → fthry_InlineTooltip.ueZUi_5a.js} +2 -2
  9. package/cjs/{fthry_Overlay.dLOs3POl.js → fthry_Overlay.LMt9KzN-.js} +1 -1
  10. package/cjs/{fthry_PaymentMethodField.B4hPg2W5.js → fthry_PaymentMethodField.CZ8TVq7i.js} +4 -4
  11. package/cjs/{fthry_Placeholder.CGG1eUWI.js → fthry_Placeholder.BN043D6l.js} +1 -1
  12. package/cjs/{fthry_ShowEyeIcon.CqkQEvU3.js → fthry_ShowEyeIcon.BHGgGTVb.js} +1 -1
  13. package/cjs/{fthry_index.CAGAOhTh.js → fthry_index.-nBOKhsO.js} +6 -6
  14. package/cjs/{fthry_index.Srl5eYm5.js → fthry_index.9ZmxFEH5.js} +1 -1
  15. package/cjs/{fthry_index.DC19EIx0.js → fthry_index.AaVrNLCT.js} +35 -15
  16. package/cjs/{fthry_index.BMCo2zda.js → fthry_index.B-q9OXEy.js} +6 -6
  17. package/cjs/{fthry_index.CWjgaGDT.js → fthry_index.B3KK7puA.js} +1 -1
  18. package/cjs/{fthry_index.DRD0iTwt.js → fthry_index.BEkekVor.js} +86 -69
  19. package/cjs/{fthry_index.Ba5C9yId.js → fthry_index.BbIkn13o.js} +6 -6
  20. package/cjs/{fthry_index.CIAaigRJ.js → fthry_index.BhlNE60I.js} +4 -4
  21. package/cjs/{fthry_index.CyaIdx9V.js → fthry_index.Bq8dNLHD.js} +4 -4
  22. package/cjs/{fthry_index.COIyjfXF.js → fthry_index.C5uvyAu5.js} +3 -3
  23. package/cjs/{fthry_index.BMhDSvsN.js → fthry_index.C9zhMsB3.js} +2 -2
  24. package/cjs/{fthry_index.BlbuXVF3.js → fthry_index.CMeJRKId.js} +1 -1
  25. package/cjs/{fthry_index.CWlKeuqz.js → fthry_index.CQO0U9To.js} +5 -5
  26. package/cjs/{fthry_index.BdTls4Lg.js → fthry_index.C_Q00nYG.js} +2 -2
  27. package/cjs/{fthry_index.BqNLbMy7.js → fthry_index.CaNFlDGz.js} +1 -1
  28. package/cjs/{fthry_index.vuYMQcab.js → fthry_index.CiYud9N5.js} +8 -8
  29. package/cjs/{fthry_index.D4Iu9UG6.js → fthry_index.CqTrVAy3.js} +4 -4
  30. package/cjs/{fthry_index.DxydBYq9.js → fthry_index.Cuiraxkm.js} +5 -5
  31. package/cjs/{fthry_index.FziiiLJL.js → fthry_index.D9U_tTQc.js} +54 -22
  32. package/cjs/{fthry_index.CLUV_Y9k.js → fthry_index.DAX6CIl6.js} +1 -1
  33. package/cjs/{fthry_index.B-tGwDjz.js → fthry_index.DdHlJNXo.js} +3 -3
  34. package/cjs/{fthry_index.H0oI-pdw.js → fthry_index.Dd_amHCw.js} +1 -1
  35. package/cjs/{fthry_index.Czm7tOJN.js → fthry_index.DlrqvoQj.js} +1 -1
  36. package/cjs/{fthry_index.DzZDhazI.js → fthry_index.Dpni8Z83.js} +1 -1
  37. package/cjs/{fthry_index.B6OWca6B.js → fthry_index.fQLeOlGR.js} +5 -5
  38. package/cjs/{fthry_input.3eZioCQX.js → fthry_input.3BaMJclT.js} +1 -1
  39. package/cjs/{fthry_script.B0ZxbIbw.js → fthry_script.Bmqmxs0p.js} +1 -1
  40. package/cjs/{fthry_styles.DDrbD7PV.js → fthry_styles.DlQ_QrZf.js} +1 -1
  41. package/cjs/{fthry_useElementSize.DnuxzPqr.js → fthry_useElementSize.EOJz4fsM.js} +1 -1
  42. package/cjs/{fthry_useSalesforceSync.uOFzu2dA.js → fthry_useSalesforceSync.DmWS-V5J.js} +1 -1
  43. package/cjs/{fthry_webfontloader.nyXgbNFp.js → fthry_webfontloader.japbiFN7.js} +1 -1
  44. package/cjs/index.d.ts +1 -6
  45. package/cjs/index.d.ts.map +1 -1
  46. package/cjs/index.js +1 -1
  47. package/cjs/utils/browser.d.ts.map +1 -1
  48. package/cjs/utils/featheryClient/index.d.ts +2 -7
  49. package/cjs/utils/featheryClient/index.d.ts.map +1 -1
  50. package/cjs/utils/formContext.d.ts +2 -7
  51. package/cjs/utils/formContext.d.ts.map +1 -1
  52. package/cjs/utils/internalState.d.ts +2 -7
  53. package/cjs/utils/internalState.d.ts.map +1 -1
  54. package/dist/Form/index.d.ts.map +1 -1
  55. package/dist/elements/basic/TableElement/Actions.d.ts.map +1 -1
  56. package/dist/elements/basic/TableElement/Pagination.d.ts.map +1 -1
  57. package/dist/elements/basic/TableElement/styles.d.ts +27 -17
  58. package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
  59. package/dist/elements/fields/PhoneField/index.d.ts.map +1 -1
  60. package/dist/{fthry_FormControl.BWQA5b0y.js → fthry_FormControl.CtIUnA-J.js} +1 -1
  61. package/dist/{fthry_InlineTooltip.BZLGojXl.js → fthry_InlineTooltip.GKo_d3mt.js} +2 -2
  62. package/dist/{fthry_Overlay.Dtxj6U3L.js → fthry_Overlay.4ZlAEXW1.js} +1 -1
  63. package/dist/{fthry_PaymentMethodField.C-mD7K2W.js → fthry_PaymentMethodField.CTbX31hm.js} +4 -4
  64. package/dist/{fthry_Placeholder.hAt5rBVS.js → fthry_Placeholder.D-0FVSlv.js} +1 -1
  65. package/dist/{fthry_ShowEyeIcon.C9RMRr7X.js → fthry_ShowEyeIcon.CWkfaHlA.js} +1 -1
  66. package/dist/{fthry_index.M__FBiFq.js → fthry_index.BSXkZiM_.js} +5 -5
  67. package/dist/{fthry_index.BXgOTSKx.js → fthry_index.BVyuhAaB.js} +54 -22
  68. package/dist/{fthry_index.BOupY-M9.js → fthry_index.Bfrw8LDY.js} +4 -4
  69. package/dist/{fthry_index.D3AC3IRu.js → fthry_index.BlVtNpHg.js} +35 -15
  70. package/dist/{fthry_index.BD_dUvCa.js → fthry_index.BpcrEQAF.js} +1 -1
  71. package/dist/{fthry_index.DsqQfUyE.js → fthry_index.Br4EpPfv.js} +1 -1
  72. package/dist/{fthry_index.C1M4obTx.js → fthry_index.BubYILPT.js} +2 -2
  73. package/dist/{fthry_index.BLC4N3MM.js → fthry_index.BwHR0X99.js} +5 -5
  74. package/dist/{fthry_index.CZG2sz8l.js → fthry_index.C7rRZJJJ.js} +3 -3
  75. package/dist/{fthry_index.oi3hyRpZ.js → fthry_index.CGIC29JZ.js} +2 -2
  76. package/dist/{fthry_index.BESTuSD0.js → fthry_index.CQm9Wgo2.js} +6 -6
  77. package/dist/{fthry_index.BHy82_xs.js → fthry_index.CY9COEXh.js} +3 -3
  78. package/dist/{fthry_index.DkySqYis.js → fthry_index.C_4oBp-_.js} +86 -69
  79. package/dist/{fthry_index.C0qPFRWZ.js → fthry_index.CaP6FDld.js} +1 -1
  80. package/dist/{fthry_index.CpjGr8XJ.js → fthry_index.DCFiQfco.js} +1 -1
  81. package/dist/{fthry_index.C0uIFVvg.js → fthry_index.DGlx2ESo.js} +4 -4
  82. package/dist/{fthry_index.Cnj3D2sE.js → fthry_index.DRNULsMX.js} +4 -4
  83. package/dist/{fthry_index.BRaDez8A.js → fthry_index.DTOP0mDS.js} +6 -6
  84. package/dist/{fthry_index.DsD0fPig.js → fthry_index.DbQeeu_6.js} +1 -1
  85. package/dist/{fthry_index.CDTlE3iz.js → fthry_index.DhOhsG51.js} +5 -5
  86. package/dist/{fthry_index.m_O5twIG.js → fthry_index.Dk-gZchc.js} +1 -1
  87. package/dist/{fthry_index.CioL9mXh.js → fthry_index.DmVOTw8U.js} +8 -8
  88. package/dist/{fthry_index.B-icxM59.js → fthry_index.DoSxA_wm.js} +1 -1
  89. package/dist/{fthry_index.UjyJiWL6.js → fthry_index.Drb37RtW.js} +1 -1
  90. package/dist/{fthry_index.BLWtc8eL.js → fthry_index.o6JLgCUj.js} +6 -6
  91. package/dist/{fthry_input.CabnFCSi.js → fthry_input.CXQBbNrL.js} +1 -1
  92. package/dist/{fthry_script.DPOcbAqz.js → fthry_script.CSrG_570.js} +1 -1
  93. package/dist/{fthry_styles.C2mCy0WK.js → fthry_styles.9258q6Oy.js} +1 -1
  94. package/dist/{fthry_useElementSize.secLYB15.js → fthry_useElementSize.Cl475xSW.js} +1 -1
  95. package/dist/{fthry_useSalesforceSync.Cpjc7KyH.js → fthry_useSalesforceSync.CzjckI_H.js} +1 -1
  96. package/dist/{fthry_webfontloader.ZS2IvgfF.js → fthry_webfontloader.e__UH2p_.js} +1 -1
  97. package/dist/index.d.ts +1 -6
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +1 -1
  100. package/dist/utils/browser.d.ts.map +1 -1
  101. package/dist/utils/featheryClient/index.d.ts +2 -7
  102. package/dist/utils/featheryClient/index.d.ts.map +1 -1
  103. package/dist/utils/formContext.d.ts +2 -7
  104. package/dist/utils/formContext.d.ts.map +1 -1
  105. package/dist/utils/internalState.d.ts +2 -7
  106. package/dist/utils/internalState.d.ts.map +1 -1
  107. package/package.json +2 -2
  108. package/umd/{PhoneField.42eae8ec161c28522777.js → PhoneField.7475243ed9d9c7374c28.js} +1 -1
  109. package/umd/TableElement.ee77e0f53a9ccac846ab.js +1 -0
  110. package/umd/index.js +1 -1
  111. package/umd/TableElement.8380efafa84627d75ce9.js +0 -1
@@ -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.DkySqYis.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.C_4oBp-_.js';
2
2
  import { useState, useRef, useEffect, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import 'react/jsx-runtime';
@@ -189,7 +189,7 @@ var buttonStyle = {
189
189
  cursor: 'auto'
190
190
  }
191
191
  };
192
- var actionButtonStyle = __assign(__assign({}, buttonStyle), { borderRadius: '4px', paddingInline: '8px', width: 'auto', height: '28px', position: 'relative' });
192
+ var actionButtonStyle = __assign(__assign({}, buttonStyle), { borderRadius: '4px', paddingInline: '8px', paddingBlock: '4px', width: 'auto', height: 'auto', minHeight: '28px', position: 'relative' });
193
193
  var menuIconStyle = {
194
194
  width: '16px',
195
195
  height: '16px',
@@ -245,9 +245,6 @@ var pageButtonStyle = __assign(__assign({}, buttonStyle), { width: '36px', borde
245
245
  var pageButtonPrevStyle = __assign(__assign({}, pageButtonStyle), { borderTopLeftRadius: '8px', borderBottomLeftRadius: '8px', paddingLeft: '12px', paddingRight: '12px', width: 'auto' });
246
246
  var pageButtonNextStyle = __assign(__assign({}, pageButtonStyle), { borderTopRightRadius: '8px', borderBottomRightRadius: '8px', paddingLeft: '12px', paddingRight: '12px', width: 'auto', borderRightWidth: 1 });
247
247
  var pageButtonActiveStyle = __assign(__assign({}, pageButtonStyle), { color: colors.blue700, backgroundColor: colors.blue50, border: "1px solid ".concat(colors.gray200) });
248
- var pageButtonEllipsisStyle = __assign(__assign({}, pageButtonStyle), { cursor: 'default', '&:focus': {
249
- outline: 'none'
250
- } });
251
248
  var pageButtonDisabledStyle = {
252
249
  opacity: 0.8,
253
250
  cursor: 'default',
@@ -256,7 +253,13 @@ var pageButtonDisabledStyle = {
256
253
  backgroundColor: colors.gray50,
257
254
  color: colors.gray400
258
255
  }
259
- };
256
+ };
257
+ var overflowSelectStyle = __assign(__assign({}, pageButtonStyle), { appearance: 'none', WebkitAppearance: 'none', cursor: 'pointer', paddingLeft: '8px', paddingRight: '8px', width: '36px', textAlign: 'center', outline: 'none', '&:hover': {
258
+ backgroundColor: colors.gray100,
259
+ color: colors.gray900
260
+ }, '&:focus': {
261
+ outline: 'none'
262
+ } });
260
263
 
261
264
  function SearchIcon() {
262
265
  return (jsx("svg", __assign({ css: searchIconStyle, fill: 'none', viewBox: '0 0 24 24', stroke: 'currentColor', strokeWidth: 2 }, { children: jsx("path", { strokeLinecap: 'round', d: 'M21 21l-3.5-3.5M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z' }) })));
@@ -298,22 +301,45 @@ function NextButton(_a) {
298
301
  var disabled = _a.disabled, onClick = _a.onClick;
299
302
  return (jsx("button", __assign({ type: 'button', onClick: onClick, disabled: disabled, css: __assign(__assign({}, pageButtonNextStyle), (disabled ? pageButtonDisabledStyle : {})) }, { children: "Next" })));
300
303
  }
304
+ function OverflowSelect(_a) {
305
+ var pages = _a.pages, onPageChange = _a.onPageChange;
306
+ return (jsxs("select", __assign({ value: '', onChange: function (e) {
307
+ onPageChange(Number(e.target.value));
308
+ }, "aria-label": 'Go to page', css: overflowSelectStyle }, { children: [jsx("option", __assign({ value: '', disabled: true, hidden: true }, { children: "..." })), pages.map(function (page) { return (jsx("option", __assign({ value: page }, { children: page + 1 }), page)); })] })));
309
+ }
301
310
  function PageNumbers(_a) {
302
311
  var currentPage = _a.currentPage, totalPages = _a.totalPages, onPageChange = _a.onPageChange;
303
- return (jsx(Fragment, { children: Array.from({ length: totalPages }, function (_, i) {
304
- // Show first page, last page, current page, and pages around current
305
- var showPage = i === 0 || i === totalPages - 1 || Math.abs(i - currentPage) <= 1;
306
- var showEllipsis = (i === 1 && currentPage > 2) ||
307
- (i === totalPages - 2 && currentPage < totalPages - 3);
308
- if (showEllipsis) {
309
- return (jsx("li", { children: jsx("button", __assign({ type: 'button', disabled: true, css: pageButtonEllipsisStyle }, { children: "..." })) }, i));
312
+ var visiblePages = new Set();
313
+ visiblePages.add(0);
314
+ visiblePages.add(totalPages - 1);
315
+ for (var i = Math.max(0, currentPage - 1); i <= Math.min(totalPages - 1, currentPage + 1); i++) {
316
+ visiblePages.add(i);
317
+ }
318
+ var items = [];
319
+ var sortedVisible = Array.from(visiblePages).sort(function (a, b) { return a - b; });
320
+ for (var i = 0; i < sortedVisible.length; i++) {
321
+ var page = sortedVisible[i];
322
+ var prevPage = i > 0 ? sortedVisible[i - 1] : -1;
323
+ if (page - prevPage > 1) {
324
+ var hiddenPages = [];
325
+ for (var j = prevPage + 1; j < page; j++) {
326
+ hiddenPages.push(j);
310
327
  }
311
- if (!showPage)
312
- return null;
313
- var isActive = i === currentPage;
314
- return (jsx("li", { children: jsx("button", __assign({ type: 'button', onClick: function () { return onPageChange(i); }, "aria-current": isActive ? 'page' : undefined, css: isActive
328
+ items.push({ type: 'overflow', pages: hiddenPages });
329
+ }
330
+ items.push({ type: 'page', page: page });
331
+ }
332
+ return (jsx(Fragment, { children: items.map(function (item, idx) {
333
+ if (item.type === 'overflow') {
334
+ if (item.pages.length === 1) {
335
+ return (jsx("li", { children: jsx("button", __assign({ type: 'button', onClick: function () { return onPageChange(item.pages[0]); }, css: pageButtonStyle }, { children: item.pages[0] + 1 })) }, "overflow-".concat(idx)));
336
+ }
337
+ return (jsx("li", { children: jsx(OverflowSelect, { pages: item.pages, onPageChange: onPageChange }) }, "overflow-".concat(idx)));
338
+ }
339
+ var isActive = item.page === currentPage;
340
+ return (jsx("li", { children: jsx("button", __assign({ type: 'button', onClick: function () { return onPageChange(item.page); }, "aria-current": isActive ? 'page' : undefined, css: isActive
315
341
  ? pageButtonActiveStyle
316
- : pageButtonStyle }, { children: i + 1 })) }, i));
342
+ : pageButtonStyle }, { children: item.page + 1 })) }, item.page));
317
343
  }) }));
318
344
  }
319
345
  function Pagination(_a) {
@@ -340,6 +366,8 @@ function ActionButtons(_a) {
340
366
  var menuButtonRef = useRef(null);
341
367
  var useOverflow = !forceInlineButtons && actions.length > 1;
342
368
  useEffect(function () {
369
+ if (!isMenuOpen)
370
+ return;
343
371
  var handleClickOutside = function (event) {
344
372
  if (menuRef.current &&
345
373
  !menuRef.current.contains(event.target) &&
@@ -348,11 +376,15 @@ function ActionButtons(_a) {
348
376
  setIsMenuOpen(false);
349
377
  }
350
378
  };
351
- if (isMenuOpen) {
352
- featheryDoc().addEventListener('mousedown', handleClickOutside);
353
- }
379
+ var handleScroll = function () {
380
+ setIsMenuOpen(false);
381
+ };
382
+ var doc = featheryDoc();
383
+ doc.addEventListener('mousedown', handleClickOutside);
384
+ doc.addEventListener('scroll', handleScroll, true);
354
385
  return function () {
355
- featheryDoc().removeEventListener('mousedown', handleClickOutside);
386
+ doc.removeEventListener('mousedown', handleClickOutside);
387
+ doc.removeEventListener('scroll', handleScroll, true);
356
388
  };
357
389
  }, [isMenuOpen]);
358
390
  var handleActionClick = function (action) {
@@ -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.DkySqYis.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.C_4oBp-_.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.D-0FVSlv.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.GKo_d3mt.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.Dtxj6U3L.js';
9
+ import './fthry_Overlay.4ZlAEXW1.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,9 +1,9 @@
1
- import { z as __rest, b as __read, C as countryData, ai as phoneLib, aj as authState, ak as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, al as phoneLibPromise, h as hoverStylesGuard, am as isNum, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
1
+ import { z as __rest, b as __read, C as countryData, ai as phoneLib, aj as authState, ak as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, al as phoneLibPromise, h as hoverStylesGuard, am as isNum, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.C_4oBp-_.js';
2
2
  import { forwardRef, useRef, useState, useEffect, useMemo, memo } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
5
- import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
6
- import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.D-0FVSlv.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.GKo_d3mt.js';
5
+ import { O as Overlay } from './fthry_Overlay.4ZlAEXW1.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.Cl475xSW.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
@@ -1763,9 +1763,7 @@ function PhoneField(_a) {
1763
1763
  var dropdownRef = useRef(null);
1764
1764
  var inputRef = useRef(null);
1765
1765
  var _h = __read(useState(null), 2), cursor = _h[0], setCursor = _h[1];
1766
- // Track cursorChange since cursor may stay in same place but need to be
1767
- // re-applied (e.g. delete)
1768
- var _j = __read(useState(false), 2), cursorChange = _j[0], setCursorChange = _j[1];
1766
+ var _j = __read(useState(0), 2), cursorTick = _j[0], setCursorTick = _j[1];
1769
1767
  var _k = __read(useState(false), 2), show = _k[0], setShow = _k[1];
1770
1768
  // The number parsed from the fullNumber prop, updated via triggerOnChange to rawNumber
1771
1769
  var _l = __read(useState(''), 2), curFullNumber = _l[0], setCurFullNumber = _l[1];
@@ -1798,15 +1796,37 @@ function PhoneField(_a) {
1798
1796
  error: inlineError,
1799
1797
  breakpoint: responsiveStyles.getMobileBreakpoint()
1800
1798
  }), borderStyles = _r.borderStyles, customBorder = _r.customBorder;
1799
+ var minCursorForPhoneCode = function (code) {
1800
+ return code.length + (code.length > 3 ? 2 : 1);
1801
+ };
1802
+ // cursorTick forces the effect to re-run even when position is unchanged
1803
+ // (e.g. re-focusing on the "+1" prefix)
1804
+ var moveCursor = function (pos) {
1805
+ setCursor(pos);
1806
+ setCursorTick(function (t) { return t + 1; });
1807
+ };
1801
1808
  var resetToPhoneCode = function (code) {
1802
- var delta = code.length > 3 ? 2 : 1;
1803
- setCursor(code.length + delta);
1809
+ moveCursor(minCursorForPhoneCode(code));
1810
+ };
1811
+ var clampCursorAfterPhoneCode = function (input) {
1812
+ var _a;
1813
+ if (!input)
1814
+ return;
1815
+ var minCursor = minCursorForPhoneCode(phoneCode);
1816
+ var start = (_a = input.selectionStart) !== null && _a !== void 0 ? _a : minCursor;
1817
+ if (start >= minCursor) {
1818
+ setCursor(start);
1819
+ return;
1820
+ }
1821
+ var cursor = rawNumber.length > phoneCode.length ? input.value.length : minCursor;
1822
+ input.setSelectionRange(cursor, cursor);
1823
+ setCursor(cursor);
1804
1824
  };
1805
1825
  useEffect(function () {
1806
1826
  var input = inputRef.current;
1807
1827
  if (input && cursor !== null)
1808
1828
  input.setSelectionRange(cursor, cursor);
1809
- }, [cursorChange]);
1829
+ }, [cursorTick]);
1810
1830
  useEffect(function () {
1811
1831
  if (fullNumber === curFullNumber || editMode)
1812
1832
  return;
@@ -1906,6 +1926,8 @@ function PhoneField(_a) {
1906
1926
  return prevNum;
1907
1927
  });
1908
1928
  setFocused(true);
1929
+ }, onClick: function (e) {
1930
+ clampCursorAfterPhoneCode(e.currentTarget);
1909
1931
  }, onBlur: function () {
1910
1932
  var newRawNumber = rawNumber;
1911
1933
  if (phoneCode.startsWith(rawNumber)) {
@@ -1983,11 +2005,9 @@ function PhoneField(_a) {
1983
2005
  }
1984
2006
  else {
1985
2007
  setRawNumber(phoneCode);
1986
- var delta = phoneCode.length > 3 ? 2 : 1;
1987
- start = phoneCode.length + delta;
2008
+ start = minCursorForPhoneCode(phoneCode);
1988
2009
  }
1989
- setCursor(start);
1990
- setCursorChange(!cursorChange);
2010
+ moveCursor(start !== null && start !== void 0 ? start : 0);
1991
2011
  } }), jsx(Placeholder, { value: formattedNumber, element: { properties: { placeholder: placeholder } }, responsiveStyles: responsiveStyles, repeatIndex: repeatIndex }), jsx(InlineTooltip, { containerRef: containerRef, id: element.id, text: element.properties.tooltipText, responsiveStyles: responsiveStyles, repeat: element.repeat })] }))] }))] })));
1992
2012
  }
1993
2013
  var index = memo(PhoneField);
@@ -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.DkySqYis.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.C_4oBp-_.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,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.DkySqYis.js';
1
+ import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, t as FORM_Z_INDEX } from './fthry_index.C_4oBp-_.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,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.DkySqYis.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.C_4oBp-_.js';
2
2
  import React__default, { useEffect, useCallback } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.C2mCy0WK.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.9258q6Oy.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,9 +1,9 @@
1
- import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, n as FeatheryClient, o as debounce } from './fthry_index.DkySqYis.js';
1
+ import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, n as FeatheryClient, o as debounce } from './fthry_index.C_4oBp-_.js';
2
2
  import { useRef, useEffect, memo, useState, useCallback } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
5
- import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
6
- import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.D-0FVSlv.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.GKo_d3mt.js';
5
+ import { O as Overlay } from './fthry_Overlay.4ZlAEXW1.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.Cl475xSW.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
@@ -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.DkySqYis.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.C_4oBp-_.js';
2
2
  import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
3
- import { P as PropTypes } from './fthry_index.m_O5twIG.js';
3
+ import { P as PropTypes } from './fthry_index.Dk-gZchc.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1433,7 +1433,7 @@ function SignatureField(_a) {
1433
1433
  useEffect(function () {
1434
1434
  if (!global.webfontloaderPromise)
1435
1435
  global.webfontloaderPromise = import(
1436
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ZS2IvgfF.js').then(function (n) { return n.w; });
1436
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.e__UH2p_.js').then(function (n) { return n.w; });
1437
1437
  global.webfontloaderPromise.then(function (WebFont) {
1438
1438
  WebFont.load({ google: { families: ['La Belle Aurore'] } });
1439
1439
  });
@@ -1,6 +1,6 @@
1
- import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.DkySqYis.js';
1
+ import { b as __read, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.C_4oBp-_.js';
2
2
  import { useState, useEffect } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.C2mCy0WK.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.9258q6Oy.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,14 +1,14 @@
1
- import { b as __read, a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
1
+ import { b as __read, a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.C_4oBp-_.js';
2
2
  import { useRef, useState, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.BWQA5b0y.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.B-icxM59.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.js';
3
+ import { F as FormControl } from './fthry_FormControl.CtIUnA-J.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.DoSxA_wm.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.GKo_d3mt.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.CzjckI_H.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.Dtxj6U3L.js';
11
+ import './fthry_Overlay.4ZlAEXW1.js';
12
12
 
13
13
  var applyRadioGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('radioGroup');
@@ -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.DkySqYis.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.C_4oBp-_.js';
2
2
  import { useState, useRef, useMemo } from 'react';
3
- import { O as Overlay, T as Tooltip } from './fthry_Overlay.Dtxj6U3L.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.B-icxM59.js';
3
+ import { O as Overlay, T as Tooltip } from './fthry_Overlay.4ZlAEXW1.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.DoSxA_wm.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom/client';
7
7
  import 'jszip';
@@ -6189,11 +6189,15 @@ function requireApi () {
6189
6189
  let runAsync;
6190
6190
  let variantId;
6191
6191
  let meetingUrl;
6192
+ let variantPerFile;
6193
+ let variantMode;
6192
6194
  if (typeof options === 'object') {
6193
6195
  runAsync = !options.waitForCompletion;
6194
6196
  pages = options.pages;
6195
6197
  variantId = options.variantId;
6196
6198
  meetingUrl = options.meetingUrl;
6199
+ variantPerFile = options.variantPerFile;
6200
+ variantMode = options.variantMode;
6197
6201
  }
6198
6202
  else {
6199
6203
  // deprecated usage, options is runAsync
@@ -6207,6 +6211,8 @@ function requireApi () {
6207
6211
  pages,
6208
6212
  meeting_url: meetingUrl,
6209
6213
  collaborator_user: collaboratorId,
6214
+ variant_per_file: variantPerFile,
6215
+ variant_mode: variantMode,
6210
6216
  };
6211
6217
  const res = await (0, utils_1.apiFetch)(sdkKey, `${(0, utils_1.getStaticUrl)()}ai/vision/`, {
6212
6218
  headers: { 'Content-Type': 'application/json' },
@@ -6303,21 +6309,22 @@ function requireApi () {
6303
6309
  };
6304
6310
  return await (0, utils_1.apiFetch)(sdkKey, url, options, false);
6305
6311
  }
6306
- async function forwardInboxEmail(sdkKey, userId, prefix, recipients, emailGroup, extractionRunId, panelKey) {
6312
+ async function forwardInboxEmail(sdkKey, userId, options, extractionRunId, panelKey) {
6307
6313
  const url = `${(0, utils_1.getApiUrl)()}email/forward/`;
6308
- const options = {
6314
+ const data = {
6309
6315
  headers: { 'Content-Type': 'application/json' },
6310
6316
  method: 'POST',
6311
6317
  body: JSON.stringify({
6312
- prefix: prefix || '',
6313
- recipients: recipients || [],
6318
+ user_id: options.submissionId || userId,
6319
+ prefix: options.prefix || '',
6320
+ recipients: options.emails || [],
6314
6321
  extraction_run_id: extractionRunId,
6315
- user_id: userId,
6316
- email_group: emailGroup,
6322
+ email_group: options.emailGroup,
6317
6323
  panel_key: panelKey,
6324
+ combine_recipients: options.combineRecipients,
6318
6325
  }),
6319
6326
  };
6320
- await (0, utils_1.apiFetch)(sdkKey, url, options);
6327
+ await (0, utils_1.apiFetch)(sdkKey, url, data);
6321
6328
  }
6322
6329
  function runCustomRequest(sdkKey, formId, payload, userId, fieldValues, offlineHandler) {
6323
6330
  const data = {
@@ -23105,7 +23112,9 @@ var getFormContext = function (formUuid) {
23105
23112
  return [2 /*return*/, formState.runAIExtraction(extractionId, options, pages)];
23106
23113
  }); });
23107
23114
  },
23108
- forwardInboxEmail: function (options) { return formState.forwardInboxEmail(options); },
23115
+ forwardInboxEmail: function (options) {
23116
+ return formState.forwardInboxEmail(options);
23117
+ },
23109
23118
  setCalendlyUrl: function (url) { return formState.setCalendlyUrl(url); },
23110
23119
  fillQuikForms: function (params) { return formState.fillQuikForms(params); },
23111
23120
  sendDocusignEnvelope: function (params) {
@@ -39437,7 +39446,7 @@ function useTrackUserInteraction(formRef, activeStep, stepKey, formName) {
39437
39446
  }, [activeStep, stepKey, formName]);
39438
39447
  }
39439
39448
 
39440
- var AssistantChat = lazy(function () { return import(/* webpackChunkName: "AssistantChat" */ './fthry_index.BD_dUvCa.js'); });
39449
+ var AssistantChat = lazy(function () { return import(/* webpackChunkName: "AssistantChat" */ './fthry_index.BpcrEQAF.js'); });
39441
39450
  var getSubmissionErrorMessage = function (error) {
39442
39451
  if (error instanceof TypeError && error.message === 'Failed to fetch') {
39443
39452
  return 'Unable to upload files. Please check your connection and try again.';
@@ -45558,7 +45567,7 @@ var FeatheryClient = /** @class */ (function (_super) {
45558
45567
  _b.sent();
45559
45568
  _a = initInfo(), userId = _a.userId, collaboratorId = _a.collaboratorId;
45560
45569
  url = "".concat(API_URL, "event/");
45561
- data = __assign(__assign({ form_key: this.formKey }, eventData), (userId ? { fuser_key: userId } : {}));
45570
+ data = __assign(__assign(__assign({ form_key: this.formKey }, eventData), (userId ? { fuser_key: userId } : {})), { event_id: v4$1(), timestamp: new Date().toISOString() });
45562
45571
  if (collaboratorId)
45563
45572
  data.collaborator_user = collaboratorId;
45564
45573
  if (this.version)
@@ -45589,16 +45598,7 @@ var FeatheryClient = /** @class */ (function (_super) {
45589
45598
  return;
45590
45599
  throw error;
45591
45600
  })
45592
- .then(function () {
45593
- return _this._fetch(url, options, true, true).catch(function (e) {
45594
- if (e instanceof TypeError && navigator.onLine)
45595
- // Wait 5 seconds since event may have actually been registered
45596
- // and just needs to be processed. If online, means it's not an
45597
- // offline error.
45598
- return new Promise(function (resolve) { return setTimeout(resolve, 5000); });
45599
- throw e;
45600
- });
45601
- });
45601
+ .then(function () { return _this._fetch(url, options, true, true); });
45602
45602
  }, url, options, 'registerEvent', stepKey);
45603
45603
  };
45604
45604
  if (eventData.completed && prom)
@@ -45658,7 +45658,7 @@ var FeatheryClient = /** @class */ (function (_super) {
45658
45658
  if (!forwardUserId) {
45659
45659
  throw new Error('No submission ID or user ID available for forwarding');
45660
45660
  }
45661
- return [4 /*yield*/, distExports$2.forwardInboxEmail(sdkKey, forwardUserId, options.prefix || '', options.emails || [], options.emailGroup || '', undefined, this.formKey)];
45661
+ return [4 /*yield*/, distExports$2.forwardInboxEmail(sdkKey, forwardUserId, options, undefined, this.formKey)];
45662
45662
  case 1:
45663
45663
  _c.sent();
45664
45664
  return [2 /*return*/];
@@ -45981,9 +45981,9 @@ function init(sdkKey, options) {
45981
45981
  if (runningInClient()) {
45982
45982
  // Dynamically load libraries that must be client side
45983
45983
  global.scriptjsLoadPromise = import(
45984
- /* webpackChunkName: "scriptjs" */ './fthry_script.DPOcbAqz.js').then(function (n) { return n.s; });
45984
+ /* webpackChunkName: "scriptjs" */ './fthry_script.CSrG_570.js').then(function (n) { return n.s; });
45985
45985
  global.webfontloaderPromise = import(
45986
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ZS2IvgfF.js').then(function (n) { return n.w; });
45986
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.e__UH2p_.js').then(function (n) { return n.w; });
45987
45987
  // Client-side tracking logic
45988
45988
  if (initState.userTracking === 'cookie') {
45989
45989
  var cookieKey = "feathery-user-id-".concat(sdkKey);
@@ -46129,7 +46129,7 @@ function getFieldValues() {
46129
46129
  return __assign({}, fieldValues);
46130
46130
  }
46131
46131
  function logFeatheryBadge() {
46132
- console.log('%c Feathery %c v' + "2.23.6" + ' ', // replaced with real version during build
46132
+ console.log('%c Feathery %c v' + "2.24.1" + ' ', // replaced with real version during build
46133
46133
  '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;');
46134
46134
  }
46135
46135
 
@@ -46581,41 +46581,58 @@ function getFileData(url) {
46581
46581
  }
46582
46582
  function downloadAllFileUrls(urls) {
46583
46583
  return __awaiter$2(this, void 0, void 0, function () {
46584
- var file, zip_1, zipBlob, _a, fileName, blob;
46585
- var _this = this;
46586
- return __generator(this, function (_b) {
46587
- switch (_b.label) {
46584
+ var file, zip, files, nameCount, files_1, files_1_1, _a, fileName, blob, uniqueName, dotIndex, zipBlob, _b, fileName, blob;
46585
+ var e_1, _c;
46586
+ return __generator(this, function (_d) {
46587
+ switch (_d.label) {
46588
46588
  case 0:
46589
46589
  if (urls.length === 0)
46590
46590
  return [2 /*return*/];
46591
46591
  if (!(urls.length > 1)) return [3 /*break*/, 3];
46592
- zip_1 = new JSZip();
46593
- return [4 /*yield*/, Promise.all(urls.map(function (url) { return __awaiter$2(_this, void 0, void 0, function () {
46594
- var _a, fileName, blob;
46595
- return __generator(this, function (_b) {
46596
- switch (_b.label) {
46597
- case 0: return [4 /*yield*/, getFileData(url)];
46598
- case 1:
46599
- _a = _b.sent(), fileName = _a.fileName, blob = _a.blob;
46600
- zip_1.file(fileName, blob);
46601
- return [2 /*return*/];
46602
- }
46603
- });
46604
- }); }))];
46592
+ zip = new JSZip();
46593
+ return [4 /*yield*/, Promise.all(urls.map(function (url) { return getFileData(url); }))];
46605
46594
  case 1:
46606
- _b.sent();
46607
- return [4 /*yield*/, zip_1.generateAsync({ type: 'blob' })];
46595
+ files = _d.sent();
46596
+ nameCount = {};
46597
+ try {
46598
+ for (files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
46599
+ _a = files_1_1.value, fileName = _a.fileName, blob = _a.blob;
46600
+ uniqueName = fileName;
46601
+ if (nameCount[fileName] != null) {
46602
+ nameCount[fileName]++;
46603
+ dotIndex = fileName.lastIndexOf('.');
46604
+ if (dotIndex !== -1) {
46605
+ uniqueName = "".concat(fileName.slice(0, dotIndex), " (").concat(nameCount[fileName], ")").concat(fileName.slice(dotIndex));
46606
+ }
46607
+ else {
46608
+ uniqueName = "".concat(fileName, " (").concat(nameCount[fileName], ")");
46609
+ }
46610
+ }
46611
+ else {
46612
+ nameCount[fileName] = 0;
46613
+ }
46614
+ zip.file(uniqueName, blob);
46615
+ }
46616
+ }
46617
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
46618
+ finally {
46619
+ try {
46620
+ if (files_1_1 && !files_1_1.done && (_c = files_1.return)) _c.call(files_1);
46621
+ }
46622
+ finally { if (e_1) throw e_1.error; }
46623
+ }
46624
+ return [4 /*yield*/, zip.generateAsync({ type: 'blob' })];
46608
46625
  case 2:
46609
- zipBlob = _b.sent();
46626
+ zipBlob = _d.sent();
46610
46627
  file = new File([zipBlob], 'Feathery_Download.zip', {
46611
46628
  type: 'application/zip'
46612
46629
  });
46613
46630
  return [3 /*break*/, 5];
46614
46631
  case 3: return [4 /*yield*/, getFileData(urls[0])];
46615
46632
  case 4:
46616
- _a = _b.sent(), fileName = _a.fileName, blob = _a.blob;
46633
+ _b = _d.sent(), fileName = _b.fileName, blob = _b.blob;
46617
46634
  file = new File([blob], fileName, { type: blob.type });
46618
- _b.label = 5;
46635
+ _d.label = 5;
46619
46636
  case 5:
46620
46637
  downloadFile(file);
46621
46638
  return [2 /*return*/];
@@ -47562,39 +47579,39 @@ breakpoint) {
47562
47579
  return styles.getTarget('inner-container', undefined, viewport === 'mobile');
47563
47580
  };
47564
47581
 
47565
- var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.BLC4N3MM.js'); });
47566
- var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.C0uIFVvg.js'); });
47567
- var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.B-icxM59.js'); });
47582
+ var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.BwHR0X99.js'); });
47583
+ var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.DGlx2ESo.js'); });
47584
+ var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.DoSxA_wm.js'); });
47568
47585
  var CheckboxGroupField = lazy(function () {
47569
- return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.BRaDez8A.js');
47586
+ return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.DTOP0mDS.js');
47570
47587
  });
47571
- var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.DsqQfUyE.js'); });
47572
- var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.C0qPFRWZ.js'); });
47588
+ var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.Br4EpPfv.js'); });
47589
+ var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.CaP6FDld.js'); });
47573
47590
  var DateSelectorField = lazy(function () {
47574
- return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.BLWtc8eL.js');
47591
+ return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.o6JLgCUj.js');
47575
47592
  });
47576
- var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.Cnj3D2sE.js'); });
47593
+ var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.DRNULsMX.js'); });
47577
47594
  var DropdownMultiField = lazy(function () {
47578
- return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.CDTlE3iz.js');
47595
+ return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.DhOhsG51.js');
47579
47596
  });
47580
- var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.UjyJiWL6.js'); });
47581
- var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.BHy82_xs.js'); });
47582
- var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.M__FBiFq.js'); });
47597
+ var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.Drb37RtW.js'); });
47598
+ var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.CY9COEXh.js'); });
47599
+ var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.BSXkZiM_.js'); });
47583
47600
  var PaymentMethodField = lazy(function () {
47584
- return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.C-mD7K2W.js');
47601
+ return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.CTbX31hm.js');
47585
47602
  });
47586
- var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.D3AC3IRu.js'); });
47587
- var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.CpjGr8XJ.js'); });
47588
- var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.C1M4obTx.js'); });
47603
+ var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.BlVtNpHg.js'); });
47604
+ var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.DCFiQfco.js'); });
47605
+ var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.BubYILPT.js'); });
47589
47606
  var RadioButtonGroupField = lazy(function () {
47590
47607
  return import(
47591
- /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.BESTuSD0.js');
47608
+ /* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.CQm9Wgo2.js');
47592
47609
  });
47593
- var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.DsD0fPig.js'); });
47594
- var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.CZG2sz8l.js'); });
47595
- var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.oi3hyRpZ.js'); });
47596
- var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.CioL9mXh.js'); });
47597
- var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.BOupY-M9.js'); });
47610
+ var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.DbQeeu_6.js'); });
47611
+ var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.C7rRZJJJ.js'); });
47612
+ var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.CGIC29JZ.js'); });
47613
+ var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.DmVOTw8U.js'); });
47614
+ var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.Bfrw8LDY.js'); });
47598
47615
  var Fields = {
47599
47616
  AddressLine1: AddressLine1,
47600
47617
  ButtonGroupField: ButtonGroupField,
@@ -48544,7 +48561,7 @@ function ElementSkeleton(_a) {
48544
48561
  }
48545
48562
  var templateObject_1;
48546
48563
 
48547
- var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.BXgOTSKx.js'); });
48564
+ var TableElement = lazy(function () { return import(/* webpackChunkName: "TableElement" */ './fthry_index.BVyuhAaB.js'); });
48548
48565
  var Basic = {
48549
48566
  ImageElement: ImageElement,
48550
48567
  VideoElement: VideoElement,