@feathery/react 2.38.0 → 2.39.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 (126) hide show
  1. package/cjs/Form/grid/Element/index.d.ts.map +1 -1
  2. package/cjs/Form/grid/StyledContainer/index.d.ts +2 -1
  3. package/cjs/Form/grid/StyledContainer/index.d.ts.map +1 -1
  4. package/cjs/Form/index.d.ts.map +1 -1
  5. package/cjs/elements/basic/ImageElement.d.ts.map +1 -1
  6. package/cjs/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +1 -1
  7. package/cjs/elements/basic/ProgressBarElement/components/SegmentBar.d.ts.map +1 -1
  8. package/cjs/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +1 -1
  9. package/cjs/elements/basic/ProgressBarElement/components/SmoothBar.d.ts.map +1 -1
  10. package/cjs/elements/basic/ProgressBarElement/components/StepperBar.d.ts +16 -0
  11. package/cjs/elements/basic/ProgressBarElement/components/StepperBar.d.ts.map +1 -0
  12. package/cjs/elements/basic/ProgressBarElement/index.d.ts +1 -1
  13. package/cjs/elements/basic/ProgressBarElement/index.d.ts.map +1 -1
  14. package/cjs/elements/fields/index.d.ts +28 -23
  15. package/cjs/elements/fields/index.d.ts.map +1 -1
  16. package/cjs/elements/index.d.ts +66 -22
  17. package/cjs/elements/index.d.ts.map +1 -1
  18. package/cjs/{fthry_AssistantChat.DMRqYl7c.js → fthry_AssistantChat.DQ0U08nB.js} +4 -4
  19. package/cjs/{fthry_FormControl.Cl-dGLcM.js → fthry_FormControl.CGLQxWcB.js} +1 -1
  20. package/cjs/{fthry_InlineTooltip.B8DIhcwN.js → fthry_InlineTooltip.Di8A8FHv.js} +2 -2
  21. package/cjs/{fthry_Overlay.cDGh2blq.js → fthry_Overlay.Da9Aifek.js} +1 -1
  22. package/cjs/{fthry_PaymentMethodField.DBG_F2IV.js → fthry_PaymentMethodField.BCfRfF5k.js} +4 -4
  23. package/cjs/{fthry_Placeholder.D3e5FkES.js → fthry_Placeholder.DEc4QJJ4.js} +1 -1
  24. package/cjs/{fthry_ShowEyeIcon.Da2SnAC6.js → fthry_ShowEyeIcon.DUuKQNq7.js} +1 -1
  25. package/cjs/{fthry_highlighted-body-TPN3WLV5.BHwDjUKJ.js → fthry_highlighted-body-TPN3WLV5.sapB9BQx.js} +3 -3
  26. package/cjs/{fthry_index.CcDlE6Qp.js → fthry_index.-lo4kt_U.js} +1 -1
  27. package/cjs/{fthry_index.Bfi9gaRQ.js → fthry_index.0uHTYf8v.js} +4 -4
  28. package/cjs/{fthry_index.Cl5vVnOu.js → fthry_index.2hec0Cyq.js} +1 -1
  29. package/cjs/{fthry_index._rTrmGwo.js → fthry_index.BL8FLs1p.js} +379 -119
  30. package/cjs/{fthry_index.HtL5MFY2.js → fthry_index.BO0ubvlf.js} +1 -1
  31. package/cjs/{fthry_index.DVHeeCAd.js → fthry_index.BTKHmnww.js} +1 -1
  32. package/cjs/{fthry_index.DEnbUjkR.js → fthry_index.Bqr-JETA.js} +4 -4
  33. package/cjs/{fthry_index.8WMLSq-m.js → fthry_index.BvEoZLvr.js} +5 -5
  34. package/cjs/{fthry_index.DKbXGnnP.js → fthry_index.Bxvep-HH.js} +6 -6
  35. package/cjs/{fthry_index.Bq69xc_i.js → fthry_index.C4fLOWzK.js} +5 -5
  36. package/cjs/{fthry_index.z4phbmML.js → fthry_index.C9MjO1_2.js} +6 -6
  37. package/cjs/{fthry_index.71p3lEGO.js → fthry_index.CBXhgNiq.js} +5 -5
  38. package/cjs/{fthry_index.CUUU_mSN.js → fthry_index.CIczM5LF.js} +1 -1
  39. package/cjs/{fthry_index.DX0u8QrD.js → fthry_index.Cc253N4g.js} +2 -2
  40. package/cjs/{fthry_index.DD6R-HZB.js → fthry_index.D92_iqxj.js} +1 -1
  41. package/cjs/{fthry_index.C1bGkjXK.js → fthry_index.DRJnbdgq.js} +8 -8
  42. package/cjs/{fthry_index.DaWvIjDB.js → fthry_index.DpAKJ8nY.js} +2 -2
  43. package/cjs/{fthry_index.CE4Pt2Be.js → fthry_index.EDEcZRri.js} +5 -5
  44. package/cjs/{fthry_index.DGQK0BX6.js → fthry_index.KsIR58CL.js} +3 -3
  45. package/cjs/{fthry_index.Da2RxuWz.js → fthry_index.SCbU_F4C.js} +3 -3
  46. package/cjs/{fthry_index.DVl7lCQ4.js → fthry_index.ZWEzxCxs.js} +1 -1
  47. package/cjs/{fthry_index.CELRWX9K.js → fthry_index.bd_dascE.js} +1 -1
  48. package/cjs/{fthry_index.VY9IsOXx.js → fthry_index.hZwAxt4e.js} +6 -6
  49. package/cjs/{fthry_index.BHmognVe.js → fthry_index.iOhM0yii.js} +5 -5
  50. package/cjs/{fthry_index.B8RLVADy.js → fthry_index.nVNuvtTk.js} +1 -1
  51. package/cjs/{fthry_input.CNUxn07s.js → fthry_input.Cem2OoEV.js} +1 -1
  52. package/cjs/{fthry_mermaid-O7DHMXV3.C-jL0nU0.js → fthry_mermaid-O7DHMXV3.DtDL6zuT.js} +3 -3
  53. package/cjs/{fthry_script.CngcPx_9.js → fthry_script.CcpqD6sz.js} +1 -1
  54. package/cjs/{fthry_styles.BVmu9I22.js → fthry_styles.C570g4Qk.js} +1 -1
  55. package/cjs/{fthry_useElementSize.BgBAI35V.js → fthry_useElementSize.BTm7mSxv.js} +1 -1
  56. package/cjs/{fthry_useSalesforceSync.C1MgCEkl.js → fthry_useSalesforceSync.Bb_ko1ft.js} +1 -1
  57. package/cjs/{fthry_webfontloader.BgZRGUoe.js → fthry_webfontloader.DQj-dIFN.js} +1 -1
  58. package/cjs/index.d.ts +66 -22
  59. package/cjs/index.d.ts.map +1 -1
  60. package/cjs/index.js +1 -1
  61. package/dist/Form/grid/Element/index.d.ts.map +1 -1
  62. package/dist/Form/grid/StyledContainer/index.d.ts +2 -1
  63. package/dist/Form/grid/StyledContainer/index.d.ts.map +1 -1
  64. package/dist/Form/index.d.ts.map +1 -1
  65. package/dist/elements/basic/ImageElement.d.ts.map +1 -1
  66. package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +1 -1
  67. package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts.map +1 -1
  68. package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +1 -1
  69. package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts.map +1 -1
  70. package/dist/elements/basic/ProgressBarElement/components/StepperBar.d.ts +16 -0
  71. package/dist/elements/basic/ProgressBarElement/components/StepperBar.d.ts.map +1 -0
  72. package/dist/elements/basic/ProgressBarElement/index.d.ts +1 -1
  73. package/dist/elements/basic/ProgressBarElement/index.d.ts.map +1 -1
  74. package/dist/elements/fields/index.d.ts +28 -23
  75. package/dist/elements/fields/index.d.ts.map +1 -1
  76. package/dist/elements/index.d.ts +66 -22
  77. package/dist/elements/index.d.ts.map +1 -1
  78. package/dist/{fthry_AssistantChat.BpIazy4D.js → fthry_AssistantChat.D_blXDVn.js} +4 -4
  79. package/dist/{fthry_FormControl.VJETpF2_.js → fthry_FormControl.BAlGkOxw.js} +1 -1
  80. package/dist/{fthry_InlineTooltip.HYGB8l2S.js → fthry_InlineTooltip.CFWVGXML.js} +2 -2
  81. package/dist/{fthry_Overlay.DndK3JOJ.js → fthry_Overlay.BwPgEKz0.js} +1 -1
  82. package/dist/{fthry_PaymentMethodField.iCQc8h5O.js → fthry_PaymentMethodField.DU5n1W6P.js} +4 -4
  83. package/dist/{fthry_Placeholder.BRzhfZ1W.js → fthry_Placeholder.DXkvTQTB.js} +1 -1
  84. package/dist/{fthry_ShowEyeIcon.Cccxpke2.js → fthry_ShowEyeIcon.D_7XU7MB.js} +1 -1
  85. package/dist/{fthry_highlighted-body-TPN3WLV5._HIiKJRn.js → fthry_highlighted-body-TPN3WLV5.unZcvE33.js} +3 -3
  86. package/dist/{fthry_index.B_AxehyW.js → fthry_index.2IgipsEM.js} +6 -6
  87. package/dist/{fthry_index.P0AejkY4.js → fthry_index.B-nybZYJ.js} +5 -5
  88. package/dist/{fthry_index.Ca770hPU.js → fthry_index.B9DIVIQU.js} +1 -1
  89. package/dist/{fthry_index.BOItLjiR.js → fthry_index.BM2ld3tG.js} +8 -8
  90. package/dist/{fthry_index.BZZHsN5a.js → fthry_index.BTgeVAmS.js} +4 -4
  91. package/dist/{fthry_index.BQlKGMSZ.js → fthry_index.Bbc3lP0x.js} +6 -6
  92. package/dist/{fthry_index.DL46TGQr.js → fthry_index.BfNP3Kp1.js} +2 -2
  93. package/dist/{fthry_index.CQfKbwaC.js → fthry_index.BsBSZ5eS.js} +1 -1
  94. package/dist/{fthry_index.CBlXw7TW.js → fthry_index.Bv0Rd4n8.js} +379 -119
  95. package/dist/{fthry_index.CaQYjI5I.js → fthry_index.Bydv6C9o.js} +5 -5
  96. package/dist/{fthry_index.BZuK2sQ5.js → fthry_index.C2RescJg.js} +1 -1
  97. package/dist/{fthry_index.mxecJ9_a.js → fthry_index.C7DKIdK3.js} +6 -6
  98. package/dist/{fthry_index.BH5ZPwTL.js → fthry_index.CXEINKN6.js} +2 -2
  99. package/dist/{fthry_index.DOOj6cJp.js → fthry_index.CXcuEd6j.js} +1 -1
  100. package/dist/{fthry_index.08-lgbei.js → fthry_index.CZ9WEIQj.js} +5 -5
  101. package/dist/{fthry_index.JhHnGxYn.js → fthry_index.CsVcvrP3.js} +1 -1
  102. package/dist/{fthry_index.DHPFNhgl.js → fthry_index.CswL31zQ.js} +1 -1
  103. package/dist/{fthry_index.DwVO_QsO.js → fthry_index.D94NLNhy.js} +1 -1
  104. package/dist/{fthry_index.B020qTL1.js → fthry_index.DGbZqMXK.js} +5 -5
  105. package/dist/{fthry_index.-9Pe_RZJ.js → fthry_index.DKKxZ5bF.js} +1 -1
  106. package/dist/{fthry_index.DPAdqFeT.js → fthry_index.DVeINBpy.js} +3 -3
  107. package/dist/{fthry_index.CQOONMqP.js → fthry_index.DdyjeQle.js} +1 -1
  108. package/dist/{fthry_index.B2UzR5GS.js → fthry_index.DxbE60cC.js} +3 -3
  109. package/dist/{fthry_index.D7Lb5Krw.js → fthry_index.YWqg41F5.js} +5 -5
  110. package/dist/{fthry_index.DIIoaRob.js → fthry_index.mqd6gAHS.js} +4 -4
  111. package/dist/{fthry_input.DVAV1a0p.js → fthry_input.D1vjPw4v.js} +1 -1
  112. package/dist/{fthry_mermaid-O7DHMXV3.BdzSXu8K.js → fthry_mermaid-O7DHMXV3.Dby-9naO.js} +3 -3
  113. package/dist/{fthry_script.4UR41bnG.js → fthry_script.CdqUz_xN.js} +1 -1
  114. package/dist/{fthry_styles.BfM6iy4Q.js → fthry_styles.BwcJywy5.js} +1 -1
  115. package/dist/{fthry_useElementSize.BVjOicba.js → fthry_useElementSize.Bsa4K6S7.js} +1 -1
  116. package/dist/{fthry_useSalesforceSync.CXqC544h.js → fthry_useSalesforceSync.C6H1QGFx.js} +1 -1
  117. package/dist/{fthry_webfontloader.n8GaR_jB.js → fthry_webfontloader.CUla19Cs.js} +1 -1
  118. package/dist/index.d.ts +66 -22
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +1 -1
  121. package/package.json +2 -2
  122. package/umd/{AddressField.2d777eda22a67a0ed3a3.js → AddressField.c4188872f2a931394aa1.js} +1 -1
  123. package/umd/{DropdownMultiField.c8c926000cbed5ee771a.js → DropdownMultiField.72a44c0280217eeb5652.js} +1 -1
  124. package/umd/{PhoneField.6b9ad2d0d9387ef78a1f.js → PhoneField.8183bed71fa92767aa3a.js} +1 -1
  125. package/umd/{TextField.f5cc4a03e69d5872027b.js → TextField.28c59425e129e78a4551.js} +1 -1
  126. package/umd/index.js +1 -1
@@ -1,13 +1,13 @@
1
- import { u as useBorder, c as __read, a as jsx, _ as __assign, d as countryData, f as fieldValues, j as jsxs, h as hoverStylesGuard, e as css, g as __makeTemplateObject, G as Global, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.CBlXw7TW.js';
1
+ import { u as useBorder, c as __read, a as jsx, _ as __assign, d as countryData, f as fieldValues, j as jsxs, h as hoverStylesGuard, e as css, g as __makeTemplateObject, G as Global, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useState, useRef, useEffect } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
4
- import { h as hasState, g as getStateOptions } from './fthry_index.CQOONMqP.js';
5
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.CXqC544h.js';
3
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.js';
4
+ import { h as hasState, g as getStateOptions } from './fthry_index.DdyjeQle.js';
5
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.C6H1QGFx.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.DndK3JOJ.js';
10
+ import './fthry_Overlay.BwPgEKz0.js';
11
11
 
12
12
  function DropdownField(_a) {
13
13
  var _b, _c, _d;
@@ -1,4 +1,4 @@
1
- import { c as __read, j as jsxs$1, _ as __assign, a as jsx$1, F as FORM_Z_INDEX } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, j as jsxs$1, _ as __assign, a as jsx$1, F as FORM_Z_INDEX } from './fthry_index.Bv0Rd4n8.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,14 +1,14 @@
1
- import { c as __read, j as jsxs, _ as __assign, a as jsx, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, j as jsxs, _ as __assign, a as jsx, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useRef, useState, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.VJETpF2_.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.-9Pe_RZJ.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.CXqC544h.js';
3
+ import { F as FormControl } from './fthry_FormControl.BAlGkOxw.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.DKKxZ5bF.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.C6H1QGFx.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.DndK3JOJ.js';
11
+ import './fthry_Overlay.BwPgEKz0.js';
12
12
 
13
13
  var applyRadioGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('radioGroup');
@@ -1,6 +1,6 @@
1
- import { l as __awaiter, m as __generator, L as __spreadArray, c as __read, U as __values, p as featheryWindow, V as loadQRScanner, W as throttle, a as jsx, j as jsxs, _ as __assign, q as Fragment, E as ErrorInput, X as qrPromise } from './fthry_index.CBlXw7TW.js';
1
+ import { l as __awaiter, m as __generator, L as __spreadArray, c as __read, U as __values, p as featheryWindow, V as loadQRScanner, W as throttle, a as jsx, j as jsxs, _ as __assign, q as Fragment, E as ErrorInput, X as qrPromise } from './fthry_index.Bv0Rd4n8.js';
2
2
  import React__default, { useEffect, useCallback } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.BfM6iy4Q.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.BwcJywy5.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,4 +1,4 @@
1
- import { a as jsx, _ as __assign, j as jsxs, c as __read, l as __awaiter, m as __generator, p as featheryWindow, q as Fragment, E as ErrorInput } from './fthry_index.CBlXw7TW.js';
1
+ import { a as jsx, _ as __assign, j as jsxs, c as __read, l as __awaiter, m as __generator, p as featheryWindow, q as Fragment, E as ErrorInput } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useRef, useState, useEffect, memo, useMemo } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,9 +1,9 @@
1
- import { k as __rest, c as __read, d as countryData, Q as phoneLib, R as authState, S as firebaseSMSCountries, j as jsxs, a as jsx, _ as __assign, q as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, T as phoneLibPromise, h as hoverStylesGuard, P as isNum, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.CBlXw7TW.js';
1
+ import { k as __rest, c as __read, d as countryData, Q as phoneLib, R as authState, S as firebaseSMSCountries, j as jsxs, a as jsx, _ as __assign, q as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, T as phoneLibPromise, h as hoverStylesGuard, P as isNum, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { forwardRef, useRef, useState, useEffect, useMemo, memo } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.BRzhfZ1W.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
5
- import { O as Overlay } from './fthry_Overlay.DndK3JOJ.js';
6
- import { u as useElementSize } from './fthry_useElementSize.BVjOicba.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DXkvTQTB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.js';
5
+ import { O as Overlay } from './fthry_Overlay.BwPgEKz0.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.Bsa4K6S7.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
@@ -1,4 +1,4 @@
1
- import { k as __rest, a as jsx, _ as __assign, j as jsxs, q as Fragment, c as __read, t as featheryDoc, f as fieldValues, z as stringifyWithNull, U as __values, L as __spreadArray } from './fthry_index.CBlXw7TW.js';
1
+ import { k as __rest, a as jsx, _ as __assign, j as jsxs, q as Fragment, c as __read, t as featheryDoc, f as fieldValues, z as stringifyWithNull, U as __values, L as __spreadArray } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { j as jsxs, _ as __assign, a as jsx, c as __read, I as isEmptyArray, J as toList, K as useThumbnailData, L as __spreadArray, i as imgMaxSizeStyles, l as __awaiter, m as __generator, M as downloadFile, N as CloseIcon, b as iosScrollOnFocus, F as FORM_Z_INDEX, O as justRemove } from './fthry_index.CBlXw7TW.js';
1
+ import { j as jsxs, _ as __assign, a as jsx, c as __read, I as isEmptyArray, J as toList, K as useThumbnailData, L as __spreadArray, i as imgMaxSizeStyles, l as __awaiter, m as __generator, M as downloadFile, N as CloseIcon, b as iosScrollOnFocus, F as FORM_Z_INDEX, O as justRemove } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useRef, useState, useEffect } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { C as getDefaultExportFromCjs } from './fthry_index.CBlXw7TW.js';
1
+ import { C as getDefaultExportFromCjs } from './fthry_index.Bv0Rd4n8.js';
2
2
 
3
3
  var propTypes = {exports: {}};
4
4
 
@@ -1,9 +1,9 @@
1
- import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, o as FeatheryClient, H as debounce } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, o as FeatheryClient, H as debounce } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useRef, useEffect, memo, useState, useCallback } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.BRzhfZ1W.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
5
- import { O as Overlay } from './fthry_Overlay.DndK3JOJ.js';
6
- import { u as useElementSize } from './fthry_useElementSize.BVjOicba.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DXkvTQTB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.js';
5
+ import { O as Overlay } from './fthry_Overlay.BwPgEKz0.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.Bsa4K6S7.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
@@ -1,4 +1,4 @@
1
- import { _ as __assign, h as hoverStylesGuard, j as jsxs, a as jsx, b as iosScrollOnFocus } from './fthry_index.CBlXw7TW.js';
1
+ import { _ as __assign, h as hoverStylesGuard, j as jsxs, a as jsx, b as iosScrollOnFocus } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useMemo } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,7 +1,7 @@
1
- import { c as __read, a as jsx, q as Fragment, s as isMobile, j as jsxs, _ as __assign, F as FORM_Z_INDEX, b as iosScrollOnFocus } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, a as jsx, q as Fragment, s as isMobile, j as jsxs, _ as __assign, F as FORM_Z_INDEX, b as iosScrollOnFocus } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useState, useRef, useMemo } from 'react';
3
- import { O as Overlay, T as Tooltip } from './fthry_Overlay.DndK3JOJ.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.-9Pe_RZJ.js';
3
+ import { O as Overlay, T as Tooltip } from './fthry_Overlay.BwPgEKz0.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.DKKxZ5bF.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom/client';
7
7
  import 'jszip';
@@ -1,4 +1,4 @@
1
- import { a as jsx, _ as __assign } from './fthry_index.CBlXw7TW.js';
1
+ import { a as jsx, _ as __assign } from './fthry_index.Bv0Rd4n8.js';
2
2
 
3
3
  var ae = [
4
4
  { name: 'Abu Dhabi', code: 'AZ' },
@@ -1,6 +1,6 @@
1
- import { t as featheryDoc, Z as devicePixelRatio, C as getDefaultExportFromCjs, c as __read, j as jsxs, a as jsx, _ as __assign, q as Fragment, l as __awaiter, m as __generator, $ as toBase64, H as debounce, a0 as MODAL_Z_INDEX, N as CloseIcon, a1 as dataURLToFile, F as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.CBlXw7TW.js';
1
+ import { t as featheryDoc, Z as devicePixelRatio, C as getDefaultExportFromCjs, c as __read, j as jsxs, a as jsx, _ as __assign, q as Fragment, l as __awaiter, m as __generator, $ as toBase64, H as debounce, a0 as MODAL_Z_INDEX, N as CloseIcon, a1 as dataURLToFile, F as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.Bv0Rd4n8.js';
2
2
  import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
3
- import { P as PropTypes } from './fthry_index.DwVO_QsO.js';
3
+ import { P as PropTypes } from './fthry_index.D94NLNhy.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1477,7 +1477,7 @@ function SignatureField(_a) {
1477
1477
  useEffect(function () {
1478
1478
  if (!global.webfontloaderPromise)
1479
1479
  global.webfontloaderPromise = import(
1480
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.n8GaR_jB.js').then(function (n) { return n.w; });
1480
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.CUla19Cs.js').then(function (n) { return n.w; });
1481
1481
  global.webfontloaderPromise.then(function (WebFont) {
1482
1482
  WebFont.load({ google: { families: ['La Belle Aurore'] } });
1483
1483
  });
@@ -1,13 +1,13 @@
1
- import { u as useBorder, c as __read, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles } from './fthry_index.CBlXw7TW.js';
1
+ import { u as useBorder, c as __read, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.BRzhfZ1W.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
5
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.Cccxpke2.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DXkvTQTB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.js';
5
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.D_7XU7MB.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.DndK3JOJ.js';
10
+ import './fthry_Overlay.BwPgEKz0.js';
11
11
 
12
12
  function PasswordField(_a) {
13
13
  var _b;
@@ -1,12 +1,12 @@
1
- import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, r as resetStyles } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, r as resetStyles } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.BRzhfZ1W.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.HYGB8l2S.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DXkvTQTB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.CFWVGXML.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.DndK3JOJ.js';
9
+ import './fthry_Overlay.BwPgEKz0.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,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { P as PropTypes } from './fthry_index.DwVO_QsO.js';
2
+ import { P as PropTypes } from './fthry_index.D94NLNhy.js';
3
3
 
4
4
  /** Checks if value is string */
5
5
  function isString(str) {
@@ -1,9 +1,9 @@
1
- export { u as Mermaid } from './fthry_AssistantChat.BpIazy4D.js';
2
- import './fthry_index.CBlXw7TW.js';
1
+ export { u as Mermaid } from './fthry_AssistantChat.D_blXDVn.js';
2
+ import './fthry_index.Bv0Rd4n8.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
7
7
  import 'react-dom';
8
8
  import './fthry_clsx.ChV9xqsO.js';
9
- import './fthry_index.CQOONMqP.js';
9
+ import './fthry_index.DdyjeQle.js';
@@ -1,4 +1,4 @@
1
- import { C as getDefaultExportFromCjs } from './fthry_index.CBlXw7TW.js';
1
+ import { C as getDefaultExportFromCjs } from './fthry_index.Bv0Rd4n8.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useState, useMemo } from 'react';
3
- import { Y as cls, j as jsxs, q as Fragment, a as jsx, G as Global, e as css, g as __makeTemplateObject } from './fthry_index.CBlXw7TW.js';
3
+ import { Y as cls, j as jsxs, q as Fragment, a as jsx, G as Global, e as css, g as __makeTemplateObject } from './fthry_index.Bv0Rd4n8.js';
4
4
  import { flushSync } from 'react-dom';
5
5
 
6
6
  function canUseDom() {
@@ -1,4 +1,4 @@
1
- import { c as __read, p as featheryWindow } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, p as featheryWindow } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useState, useLayoutEffect } from 'react';
3
3
 
4
4
  function useElementSize(anchorRef) {
@@ -1,4 +1,4 @@
1
- import { c as __read, l as __awaiter, m as __generator, o as FeatheryClient } from './fthry_index.CBlXw7TW.js';
1
+ import { c as __read, l as __awaiter, m as __generator, o as FeatheryClient } from './fthry_index.Bv0Rd4n8.js';
2
2
  import { useState, useEffect } from 'react';
3
3
 
4
4
  function useSalesforceSync(salesforceSync, editMode) {
@@ -1,4 +1,4 @@
1
- import { C as getDefaultExportFromCjs } from './fthry_index.CBlXw7TW.js';
1
+ import { C as getDefaultExportFromCjs } from './fthry_index.Bv0Rd4n8.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
package/dist/index.d.ts CHANGED
@@ -123,28 +123,72 @@ declare function renderAt(elementId: any, props: FormProps, loginEnabled?: boole
123
123
  declare const Feathery: {
124
124
  Form: typeof Form;
125
125
  Elements: {
126
- AddressLine1: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, disabled, autoComplete, editMode, repeatIndex, onSelect, onChange, required, onBlur, onEnter, setRef, value, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
127
- ButtonGroupField: import("react").LazyExoticComponent<typeof import("./elements/fields/ButtonGroupField").default>;
128
- CheckboxField: import("react").LazyExoticComponent<typeof import("./elements/fields/CheckboxField").default>;
129
- CheckboxGroupField: import("react").LazyExoticComponent<typeof import("./elements/fields/CheckboxGroupField").default>;
130
- ColorPickerField: import("react").LazyExoticComponent<typeof import("./elements/fields/ColorPickerField").default>;
131
- CustomField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, elementProps, responsiveStyles, onChange, rawValue, required, disabled, fieldStyles, editMode, rightToLeft, index }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
132
- DateSelectorField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onComplete, onEnter, setRef, value, inlineError, children }: import("./elements/fields/DateSelectorField").DateSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element>>;
133
- DropdownField: import("react").LazyExoticComponent<typeof import("./elements/fields/DropdownField").default>;
134
- DropdownMultiField: import("react").LazyExoticComponent<typeof import("./elements/fields/DropdownMultiField").default>;
135
- FileUploadField: import("react").LazyExoticComponent<typeof import("./elements/fields/FileUploadField").default>;
136
- MatrixField: import("react").LazyExoticComponent<typeof import("./elements/fields/MatrixField").default>;
137
- PasswordField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onChange, onEnter, setRef, rawValue, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
138
- PaymentMethodField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ editMode, children, ...props }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
139
- PhoneField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, fullNumber, elementProps, required, disabled, repeatIndex, autoComplete, editMode, onComplete, setRef, inlineError, rightToLeft, onEnter, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
140
- PinInputField: import("react").LazyExoticComponent<typeof import("./elements/fields/PinInputField").default>;
141
- QRScanner: import("react").LazyExoticComponent<typeof import("./elements/fields/QRScanner").default>;
142
- RadioButtonGroupField: import("react").LazyExoticComponent<typeof import("./elements/fields/RadioButtonGroupField").default>;
143
- RatingField: import("react").LazyExoticComponent<typeof import("./elements/fields/RatingField").default>;
144
- SignatureField: import("react").LazyExoticComponent<typeof import("./elements/fields/SignatureField").default>;
145
- SliderField: import("react").LazyExoticComponent<typeof import("./elements/fields/SliderField").default>;
146
- TextField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, autoComplete, editMode, onAccept, onEnter, setRef, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
147
- TextArea: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, editMode, onChange, setRef, rawValue, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
126
+ AddressLine1: import("react").ComponentType<any> & {
127
+ preload: () => Promise<any>;
128
+ };
129
+ ButtonGroupField: import("react").ComponentType<any> & {
130
+ preload: () => Promise<any>;
131
+ };
132
+ CheckboxField: import("react").ComponentType<any> & {
133
+ preload: () => Promise<any>;
134
+ };
135
+ CheckboxGroupField: import("react").ComponentType<any> & {
136
+ preload: () => Promise<any>;
137
+ };
138
+ ColorPickerField: import("react").ComponentType<any> & {
139
+ preload: () => Promise<any>;
140
+ };
141
+ CustomField: import("react").ComponentType<any> & {
142
+ preload: () => Promise<any>;
143
+ };
144
+ DateSelectorField: import("react").ComponentType<any> & {
145
+ preload: () => Promise<any>;
146
+ };
147
+ DropdownField: import("react").ComponentType<any> & {
148
+ preload: () => Promise<any>;
149
+ };
150
+ DropdownMultiField: import("react").ComponentType<any> & {
151
+ preload: () => Promise<any>;
152
+ };
153
+ FileUploadField: import("react").ComponentType<any> & {
154
+ preload: () => Promise<any>;
155
+ };
156
+ MatrixField: import("react").ComponentType<any> & {
157
+ preload: () => Promise<any>;
158
+ };
159
+ PasswordField: import("react").ComponentType<any> & {
160
+ preload: () => Promise<any>;
161
+ };
162
+ PaymentMethodField: import("react").ComponentType<any> & {
163
+ preload: () => Promise<any>;
164
+ };
165
+ PhoneField: import("react").ComponentType<any> & {
166
+ preload: () => Promise<any>;
167
+ };
168
+ PinInputField: import("react").ComponentType<any> & {
169
+ preload: () => Promise<any>;
170
+ };
171
+ QRScanner: import("react").ComponentType<any> & {
172
+ preload: () => Promise<any>;
173
+ };
174
+ RadioButtonGroupField: import("react").ComponentType<any> & {
175
+ preload: () => Promise<any>;
176
+ };
177
+ RatingField: import("react").ComponentType<any> & {
178
+ preload: () => Promise<any>;
179
+ };
180
+ SignatureField: import("react").ComponentType<any> & {
181
+ preload: () => Promise<any>;
182
+ };
183
+ SliderField: import("react").ComponentType<any> & {
184
+ preload: () => Promise<any>;
185
+ };
186
+ TextField: import("react").ComponentType<any> & {
187
+ preload: () => Promise<any>;
188
+ };
189
+ TextArea: import("react").ComponentType<any> & {
190
+ preload: () => Promise<any>;
191
+ };
148
192
  ImageElement: typeof import("./elements/basic/ImageElement").default;
149
193
  VideoElement: typeof import("./elements/basic/VideoElement").default;
150
194
  TextElement: typeof import("./elements/basic/TextElement").default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,EAAE,EAAU,KAAK,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvE;AAGD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASb,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EAChB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAC3C,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,EAAE,EAAU,KAAK,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvE;AAGD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASb,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EAChB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAC3C,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { aM as AssistantChat, aE as Elements, aN as Feathery, aD as Form, aK as LoginForm, aO as StyledContainer, aI as getFieldValues, aF as init, aJ as renderAt, ay as setFieldValues, aH as updateTheme, aG as updateUserId, aL as useAuthClient } from './fthry_index.CBlXw7TW.js';
1
+ export { aM as AssistantChat, aE as Elements, aN as Feathery, aD as Form, aK as LoginForm, aO as StyledContainer, aI as getFieldValues, aF as init, aJ as renderAt, ay as setFieldValues, aH as updateTheme, aG as updateUserId, aL as useAuthClient } from './fthry_index.Bv0Rd4n8.js';
2
2
  import 'react-dom/client';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feathery/react",
3
- "version": "2.38.0",
3
+ "version": "2.39.1",
4
4
  "description": "React library for Feathery",
5
5
  "author": "Boyang Dun",
6
6
  "license": "MIT",
@@ -115,7 +115,7 @@
115
115
  "@emotion/babel-preset-css-prop": "11.12.0",
116
116
  "@emotion/react": "11.14.0",
117
117
  "@emotion/styled": "11.14.0",
118
- "@feathery/client-utils": "^0.15.3",
118
+ "@feathery/client-utils": "^0.16.1",
119
119
  "@fingerprintjs/fingerprintjs": "4.6.2",
120
120
  "@rc-component/slider": "^1.0.0",
121
121
  "@stripe/react-stripe-js": "3.7.0",
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,v=void 0===p||p,h=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:v?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:h,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,v=e.offset,h=void 0===v?0:v,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,h),d=f.top,v=f.left,g=d+l.height,y=v+l.width,b=d>=0&&g<=n.innerHeight,w=v>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,h)).top,v=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?v+n.scrollX:v-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,h,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,v=void 0===p?null:p,h=l.properties,g=null!==(i=(null!==(r=h.repeat_placeholder)&&void 0!==r?r:[])[null!=v?v:0])&&void 0!==i?i:h.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9292),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),v=r(9479),h=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,_=e.setRef,F=void 0===_?function(){}:_,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),v=p[0],h=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(h(t),d(e))}))}),500),[h,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(v.length&&h([]),d(t)))}),[e]),v}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,h.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder,ne="gmap_city"===A.type?"address-level2":"street-address";return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?ne:"new-password",value:H,ref:function(e){Q.current=e,F(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,v.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,v=void 0===p||p,h=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:v?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:h,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,v=e.offset,h=void 0===v?0:v,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,h),d=f.top,v=f.left,g=d+l.height,y=v+l.width,b=d>=0&&g<=n.innerHeight,w=v>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,h)).top,v=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?v+n.scrollX:v-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,h,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,v=void 0===p?null:p,h=l.properties,g=null!==(i=(null!==(r=h.repeat_placeholder)&&void 0!==r?r:[])[null!=v?v:0])&&void 0!==i?i:h.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9292),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),v=r(9479),h=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,_=e.setRef,F=void 0===_?function(){}:_,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),v=p[0],h=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(h(t),d(e))}))}),500),[h,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(v.length&&h([]),d(t)))}),[e]),v}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,h.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder,ne="gmap_city"===A.type?"address-level2":"street-address";return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?ne:"new-password",value:H,ref:function(e){Q.current=e,F(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,v.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m6,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);