@feathery/react 2.24.5 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/cjs/Form/index.d.ts.map +1 -1
  2. package/cjs/assistant/MarkdownText.d.ts.map +1 -0
  3. package/cjs/assistant/ToolStatus.d.ts.map +1 -0
  4. package/cjs/assistant/colors.d.ts.map +1 -0
  5. package/cjs/assistant/icons.d.ts.map +1 -0
  6. package/cjs/assistant/index.d.ts +13 -0
  7. package/cjs/assistant/index.d.ts.map +1 -0
  8. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  9. package/cjs/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  10. package/cjs/elements/fields/SignatureField/index.d.ts +1 -1
  11. package/cjs/elements/fields/SignatureField/index.d.ts.map +1 -1
  12. package/cjs/elements/fields/SignatureField/translation.d.ts +10 -0
  13. package/cjs/elements/fields/SignatureField/translation.d.ts.map +1 -1
  14. package/cjs/{fthry_FormControl.BeQdi_oy.js → fthry_FormControl.CSx15_Ir.js} +1 -1
  15. package/cjs/{fthry_InlineTooltip.JDIqbr9w.js → fthry_InlineTooltip.Cp0s9kUF.js} +2 -2
  16. package/cjs/{fthry_Overlay.C9SknKq5.js → fthry_Overlay.Cr4u15O9.js} +1 -1
  17. package/cjs/{fthry_PaymentMethodField.JfJ_laRt.js → fthry_PaymentMethodField.lAFg6X8n.js} +4 -4
  18. package/cjs/{fthry_Placeholder.DlfmbD13.js → fthry_Placeholder.BzmSHFZS.js} +1 -1
  19. package/cjs/{fthry_ShowEyeIcon.BYXp1gc5.js → fthry_ShowEyeIcon.CWT1feku.js} +1 -1
  20. package/cjs/{fthry_index.BFjqlD3R.js → fthry_index.63LgbQI7.js} +3 -3
  21. package/cjs/{fthry_index.DEnsRV24.js → fthry_index.8lmKVPi0.js} +1 -1
  22. package/cjs/{fthry_index.BZSzfWUi.js → fthry_index.9R2U0Amq.js} +1 -1
  23. package/cjs/{fthry_index.DLvcAfTz.js → fthry_index.B8T5jdab.js} +5 -5
  24. package/cjs/{fthry_index.BRjGQJbO.js → fthry_index.BFrmQ8yb.js} +1 -1
  25. package/cjs/{fthry_index.CzeRkRlF.js → fthry_index.BRn2ISsy.js} +6 -6
  26. package/cjs/{fthry_index.Cnt_FbUZ.js → fthry_index.BZVHrk5I.js} +6 -6
  27. package/cjs/{fthry_index.B7VJyeV6.js → fthry_index.B_dgfix5.js} +1 -1
  28. package/cjs/{fthry_index.Djzt_vEk.js → fthry_index.BcyVyeS6.js} +10375 -215
  29. package/cjs/{fthry_index.DT54d0j2.js → fthry_index.Bu8SCD1U.js} +2 -2
  30. package/cjs/{fthry_index.xMk13dQn.js → fthry_index.C3S36Nfm.js} +1 -1
  31. package/cjs/{fthry_index.C-AxJL_h.js → fthry_index.CWELHNI-.js} +5 -5
  32. package/cjs/{fthry_index.VSkkQ6TB.js → fthry_index.Cih69RYn.js} +1 -1
  33. package/cjs/{fthry_index.BtVqKAfR.js → fthry_index.CqozVApH.js} +45 -24
  34. package/cjs/{fthry_index.aXfpFGUX.js → fthry_index.D1j5W60C.js} +2 -2
  35. package/cjs/{fthry_index.DpxRELOq.js → fthry_index.D5VAS8Jk.js} +6 -6
  36. package/cjs/{fthry_index.Buw2duHI.js → fthry_index.DCfQom1Z.js} +1 -1
  37. package/cjs/{fthry_index.CBvZrZ4w.js → fthry_index.DSUx0OUY.js} +4 -4
  38. package/cjs/{fthry_index.C25IpQCq.js → fthry_index.Ds4GrRMy.js} +8 -8
  39. package/cjs/{fthry_index.DW_iHxls.js → fthry_index.DzchzBOG.js} +5 -5
  40. package/cjs/{fthry_index.w6TID5fN.js → fthry_index.MKXXrzjo.js} +5 -5
  41. package/cjs/{fthry_index.BnaRCpME.js → fthry_index.RWTHQHh1.js} +4 -4
  42. package/cjs/{fthry_index.BVNF-Uxg.js → fthry_index.uqNmyoLQ.js} +4 -4
  43. package/cjs/{fthry_index.9TNGWYGR.js → fthry_index.vZKn_nfC.js} +1 -1
  44. package/cjs/{fthry_input.Bkj-GDD0.js → fthry_input.Ckamu1Zk.js} +1 -1
  45. package/cjs/{fthry_script.Cle8KBVx.js → fthry_script.BIBtcWlE.js} +1 -1
  46. package/cjs/{fthry_styles.DizFfkr_.js → fthry_styles.DSUc8-dj.js} +1 -1
  47. package/cjs/{fthry_useElementSize.NZ7PWLwc.js → fthry_useElementSize.C908wP2B.js} +1 -1
  48. package/cjs/{fthry_useSalesforceSync.DBY9ESV8.js → fthry_useSalesforceSync.BYBtRoT0.js} +1 -1
  49. package/cjs/{fthry_webfontloader.CjUehDgb.js → fthry_webfontloader.DopALYRz.js} +1 -1
  50. package/cjs/index.d.ts +3 -1
  51. package/cjs/index.d.ts.map +1 -1
  52. package/cjs/index.js +2 -1
  53. package/cjs/utils/featheryClient/integrationClient.d.ts +1 -1
  54. package/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
  55. package/cjs/utils/internalState.d.ts +3 -2
  56. package/cjs/utils/internalState.d.ts.map +1 -1
  57. package/dist/Form/index.d.ts.map +1 -1
  58. package/dist/assistant/MarkdownText.d.ts.map +1 -0
  59. package/dist/assistant/ToolStatus.d.ts.map +1 -0
  60. package/dist/assistant/colors.d.ts.map +1 -0
  61. package/dist/assistant/icons.d.ts.map +1 -0
  62. package/dist/assistant/index.d.ts +13 -0
  63. package/dist/assistant/index.d.ts.map +1 -0
  64. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts +1 -0
  65. package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts.map +1 -1
  66. package/dist/elements/fields/SignatureField/index.d.ts +1 -1
  67. package/dist/elements/fields/SignatureField/index.d.ts.map +1 -1
  68. package/dist/elements/fields/SignatureField/translation.d.ts +10 -0
  69. package/dist/elements/fields/SignatureField/translation.d.ts.map +1 -1
  70. package/dist/{fthry_FormControl.CccKs2L_.js → fthry_FormControl.CNTM-tar.js} +1 -1
  71. package/dist/{fthry_InlineTooltip.WV-ZsT1J.js → fthry_InlineTooltip.DKW9C1ff.js} +2 -2
  72. package/dist/{fthry_Overlay.BzHdQCnz.js → fthry_Overlay.CcqCmYFD.js} +1 -1
  73. package/dist/{fthry_PaymentMethodField.CE2pRJHY.js → fthry_PaymentMethodField.CvTG3rul.js} +4 -4
  74. package/dist/{fthry_Placeholder.DjYnUAby.js → fthry_Placeholder.DmwTTXDB.js} +1 -1
  75. package/dist/{fthry_ShowEyeIcon.BcfT98wq.js → fthry_ShowEyeIcon.CxnQ2lsv.js} +1 -1
  76. package/dist/{fthry_index.CA0ook00.js → fthry_index.7AkjUuIo.js} +1 -1
  77. package/dist/{fthry_index.C4kJttt_.js → fthry_index.BBiyBHIA.js} +1 -1
  78. package/dist/{fthry_index.BzeT96Fk.js → fthry_index.BPWrFtsS.js} +6 -6
  79. package/dist/{fthry_index.DWdqARvj.js → fthry_index.B_esZjUf.js} +5 -5
  80. package/dist/{fthry_index.DFLamhNC.js → fthry_index.Bbbw18ph.js} +1 -1
  81. package/dist/{fthry_index.D_JxeVxY.js → fthry_index.BiD1hwWJ.js} +2 -2
  82. package/dist/{fthry_index.DOjlUYkm.js → fthry_index.BinMPHgd.js} +4 -4
  83. package/dist/{fthry_index.B4EDummK.js → fthry_index.Bld79EnE.js} +45 -24
  84. package/dist/{fthry_index.ChOAwH6x.js → fthry_index.CLGE8ifD.js} +1 -1
  85. package/dist/{fthry_index.Ce27MVPP.js → fthry_index.COI9YjFv.js} +1 -1
  86. package/dist/{fthry_index.BqTUi_Q0.js → fthry_index.CQw2M05Y.js} +5 -5
  87. package/dist/{fthry_index.Dqj_saSN.js → fthry_index.CgJlMrsk.js} +6 -6
  88. package/dist/{fthry_index.DvoInlCw.js → fthry_index.CgSUyMim.js} +6 -6
  89. package/dist/{fthry_index.Dn4bBrhO.js → fthry_index.CqGYs5Mi.js} +4 -4
  90. package/dist/{fthry_index.DXFx8jc3.js → fthry_index.CvltzL4O.js} +1 -1
  91. package/dist/{fthry_index.Bwz5Ecqk.js → fthry_index.DMdkld9_.js} +1 -1
  92. package/dist/{fthry_index.8J0n6fo_.js → fthry_index.DNP9c-BT.js} +5 -5
  93. package/dist/{fthry_index.DVy4VMGE.js → fthry_index.D__PxRdx.js} +3 -3
  94. package/dist/{fthry_index.BJik8QU7.js → fthry_index.UG-E2-Vs.js} +8 -8
  95. package/dist/{fthry_index.ng3HbTfG.js → fthry_index.ms8e5MIP.js} +4 -4
  96. package/dist/{fthry_index.CPmQWVXT.js → fthry_index.phxAhrYC.js} +2 -2
  97. package/dist/{fthry_index.Cq9YHNtT.js → fthry_index.qgF0l9dl.js} +10336 -176
  98. package/dist/{fthry_index.BHawuQGK.js → fthry_index.vKFviB3j.js} +5 -5
  99. package/dist/{fthry_index.CEEVzv1V.js → fthry_index.zzKQrz3J.js} +1 -1
  100. package/dist/{fthry_input.D5hOzIRu.js → fthry_input.CwNkor10.js} +1 -1
  101. package/dist/{fthry_script.DZA3j6-m.js → fthry_script.iTHhqQuR.js} +1 -1
  102. package/dist/{fthry_styles.CQ-iyN1m.js → fthry_styles.Br-2XElU.js} +1 -1
  103. package/dist/{fthry_useElementSize.eHwWEvsN.js → fthry_useElementSize.DfXZCHzG.js} +1 -1
  104. package/dist/{fthry_useSalesforceSync.BqNJbf5T.js → fthry_useSalesforceSync.DajywmuM.js} +1 -1
  105. package/dist/{fthry_webfontloader.DhBpZ3Q7.js → fthry_webfontloader.D1wDzLxW.js} +1 -1
  106. package/dist/index.d.ts +3 -1
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +1 -1
  109. package/dist/utils/featheryClient/integrationClient.d.ts +1 -1
  110. package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
  111. package/dist/utils/internalState.d.ts +3 -2
  112. package/dist/utils/internalState.d.ts.map +1 -1
  113. package/package.json +2 -2
  114. package/umd/SignatureField.91e03c3324a30624271f.js +1 -0
  115. package/umd/index.js +1 -1
  116. package/cjs/Form/components/Assistant/MarkdownText.d.ts.map +0 -1
  117. package/cjs/Form/components/Assistant/ToolStatus.d.ts.map +0 -1
  118. package/cjs/Form/components/Assistant/colors.d.ts.map +0 -1
  119. package/cjs/Form/components/Assistant/icons.d.ts.map +0 -1
  120. package/cjs/Form/components/Assistant/index.d.ts +0 -8
  121. package/cjs/Form/components/Assistant/index.d.ts.map +0 -1
  122. package/cjs/fthry_index.CNrlfi4E.js +0 -10154
  123. package/dist/Form/components/Assistant/MarkdownText.d.ts.map +0 -1
  124. package/dist/Form/components/Assistant/ToolStatus.d.ts.map +0 -1
  125. package/dist/Form/components/Assistant/colors.d.ts.map +0 -1
  126. package/dist/Form/components/Assistant/icons.d.ts.map +0 -1
  127. package/dist/Form/components/Assistant/index.d.ts +0 -8
  128. package/dist/Form/components/Assistant/index.d.ts.map +0 -1
  129. package/dist/fthry_index.d-PaNNOg.js +0 -10152
  130. package/umd/790.4e933b431624db11eeec.js +0 -1
  131. package/umd/AssistantChat.ffb5ce7ab5b0350a9159.js +0 -1
  132. package/umd/SignatureField.56c69ad7ee1f7e0b5003.js +0 -1
  133. /package/cjs/{Form/components/Assistant → assistant}/MarkdownText.d.ts +0 -0
  134. /package/cjs/{Form/components/Assistant → assistant}/ToolStatus.d.ts +0 -0
  135. /package/cjs/{Form/components/Assistant → assistant}/colors.d.ts +0 -0
  136. /package/cjs/{Form/components/Assistant → assistant}/icons.d.ts +0 -0
  137. /package/dist/{Form/components/Assistant → assistant}/MarkdownText.d.ts +0 -0
  138. /package/dist/{Form/components/Assistant → assistant}/ToolStatus.d.ts +0 -0
  139. /package/dist/{Form/components/Assistant → assistant}/colors.d.ts +0 -0
  140. /package/dist/{Form/components/Assistant → assistant}/icons.d.ts +0 -0
@@ -0,0 +1,13 @@
1
+ export interface Transport {
2
+ url: string;
3
+ headers: Record<string, string> | (() => Record<string, string>);
4
+ body: Record<string, unknown>;
5
+ }
6
+ export interface AssistantChatProps {
7
+ transport: Transport;
8
+ bottom?: number;
9
+ color?: string;
10
+ }
11
+ declare const AssistantChat: ({ transport, bottom, color }: AssistantChatProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export default AssistantChat;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assistant/index.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,aAAa,iCAIhB,kBAAkB,qDA+VpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -5,6 +5,7 @@ declare type SignatureModalProps = SignatureCanvasProps & {
5
5
  setShow: (val: boolean) => void;
6
6
  returnFile?: boolean;
7
7
  signMethods: '' | 'draw' | 'type';
8
+ isInitials?: boolean;
8
9
  translation: SignatureTranslations;
9
10
  onEnd: (file: File) => void;
10
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureModal.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/SignatureField/components/SignatureModal.tsx"],"names":[],"mappings":"AAIA,OAAwB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAIvD,aAAK,mBAAmB,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,WAAW,EAAE,qBAAqB,CAAC;IACnC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2DA8ajD;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SignatureModal.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/SignatureField/components/SignatureModal.tsx"],"names":[],"mappings":"AAIA,OAAwB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKvD,aAAK,mBAAmB,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,qBAAqB,CAAC;IACnC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2DAmcjD;AAED,eAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- declare function SignatureField({ element, fieldLabel, responsiveStyles, defaultValue, editMode, repeatIndex, elementProps, disabled, onEnd, onClear, ReactPortal, // This is allowing the ability to pass a portal for the modal
1
+ declare function SignatureField({ element, responsiveStyles, defaultValue, editMode, repeatIndex, elementProps, disabled, onEnd, onClear, ReactPortal, // This is allowing the ability to pass a portal for the modal
2
2
  children }: any): import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default SignatureField;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/SignatureField/index.tsx"],"names":[],"mappings":"AAOA,iBAAS,cAAc,CAAC,EACtB,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,YAAmB,EACnB,QAAQ,EACR,WAAW,EACX,YAAiB,EACjB,QAAgB,EAChB,KAAgB,EAChB,OAAkB,EAClB,WAAkB,EAAE,8DAA8D;AAClF,QAAQ,EACT,EAAE,GAAG,oDA8GL;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/SignatureField/index.tsx"],"names":[],"mappings":"AAOA,iBAAS,cAAc,CAAC,EACtB,OAAO,EACP,gBAAgB,EAChB,YAAmB,EACnB,QAAQ,EACR,WAAW,EACX,YAAiB,EACjB,QAAgB,EAChB,KAAgB,EAChB,OAAkB,EAClB,WAAkB,EAAE,8DAA8D;AAClF,QAAQ,EACT,EAAE,GAAG,oDAiHL;AAED,eAAe,cAAc,CAAC"}
@@ -13,6 +13,16 @@ export declare const defaultTranslations: {
13
13
  readonly cancel: "Cancel";
14
14
  readonly back: "Back";
15
15
  readonly clear: "Clear";
16
+ readonly initials_label: "Initial here";
17
+ readonly initials_title: "Add your initials";
18
+ readonly initials_type_option: "Type your initials";
19
+ readonly initials_type_placeholder: "Your initials";
20
+ readonly initials_type_example: "A.B.";
21
+ readonly initials_type_loading: "Generating initials";
22
+ readonly initials_draw_option: "Draw your initials";
23
+ readonly initials_draw_subtitle: "Draw your initials here using your mouse or trackpad";
24
+ readonly initials_draw_instructions: "Draw your initials in the box below";
25
+ readonly initials_confirm: "Initial";
16
26
  };
17
27
  export declare type SignatureTranslations = typeof defaultTranslations;
18
28
  //# sourceMappingURL=translation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/SignatureField/translation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;CAetB,CAAC;AAEX,oBAAY,qBAAqB,GAAG,OAAO,mBAAmB,CAAC"}
1
+ {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/SignatureField/translation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC;AAEX,oBAAY,qBAAqB,GAAG,OAAO,mBAAmB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z as __rest, j as jsx, _ as __assign } from './fthry_index.Cq9YHNtT.js';
1
+ import { y as __rest, j as jsx, _ as __assign } from './fthry_index.qgF0l9dl.js';
2
2
 
3
3
  // Simple input used for the 'other' option in checkbox and radio groups
4
4
  function FormControl(_a) {
@@ -1,6 +1,6 @@
1
- import { j as jsx, _ as __assign, b as __read, ax as replaceTextVariables, y as isMobile, a as jsxs, F as Fragment, t as FORM_Z_INDEX } from './fthry_index.Cq9YHNtT.js';
1
+ import { j as jsx, _ as __assign, b as __read, av as replaceTextVariables, x as isMobile, a as jsxs, F as Fragment, q as FORM_Z_INDEX } from './fthry_index.qgF0l9dl.js';
2
2
  import { useState, useRef } from 'react';
3
- import { O as Overlay, T as Tooltip } from './fthry_Overlay.BzHdQCnz.js';
3
+ import { O as Overlay, T as Tooltip } from './fthry_Overlay.CcqCmYFD.js';
4
4
 
5
5
  function HelpIcon(_a) {
6
6
  var _b = _a.cssStyles, cssStyles = _b === void 0 ? {} : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
@@ -1,4 +1,4 @@
1
- import { z as __rest, j as jsx, _ as __assign, t as FORM_Z_INDEX, b as __read, f as featheryDoc, v as featheryWindow, F as Fragment } from './fthry_index.Cq9YHNtT.js';
1
+ import { y as __rest, j as jsx, _ as __assign, q as FORM_Z_INDEX, b as __read, f as featheryDoc, t as featheryWindow, F as Fragment } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useState, useCallback, useLayoutEffect, useEffect } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
 
@@ -1,12 +1,12 @@
1
- import { z as __rest, f as featheryDoc, a as jsxs, _ as __assign, af as getStripe, j as jsx, b as __read, u as useBorder, ag as filterKeys, ah as ERROR_COLOR } from './fthry_index.Cq9YHNtT.js';
1
+ import { y as __rest, f as featheryDoc, a as jsxs, _ as __assign, ad as getStripe, j as jsx, b as __read, u as useBorder, ae as filterKeys, af as ERROR_COLOR } from './fthry_index.qgF0l9dl.js';
2
2
  import React__default, { memo, useEffect, useState, useRef } from 'react';
3
- import { P as PropTypes } from './fthry_index.Bwz5Ecqk.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
3
+ import { P as PropTypes } from './fthry_index.DMdkld9_.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.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.BzHdQCnz.js';
9
+ import './fthry_Overlay.CcqCmYFD.js';
10
10
 
11
11
  function ownKeys(object, enumerableOnly) {
12
12
  var keys = Object.keys(object);
@@ -1,4 +1,4 @@
1
- import { _ as __assign, j as jsx } from './fthry_index.Cq9YHNtT.js';
1
+ import { _ as __assign, j as jsx } from './fthry_index.qgF0l9dl.js';
2
2
 
3
3
  function Placeholder(_a) {
4
4
  var _b;
@@ -1,4 +1,4 @@
1
- import { z as __rest, j as jsx, _ as __assign } from './fthry_index.Cq9YHNtT.js';
1
+ import { y as __rest, j as jsx, _ as __assign } from './fthry_index.qgF0l9dl.js';
2
2
 
3
3
  function ShowEyeIcon$1(_a) {
4
4
  var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, props = __rest(_a, ["width", "height"]);
@@ -1,4 +1,4 @@
1
- import { a as jsxs, _ as __assign, j as jsx, b as __read, a9 as isEmptyArray, aa as toList, ab as useThumbnailData, e as __spreadArray, p as imgMaxSizeStyles, l as __awaiter, m as __generator, ac as downloadFile, ad as CloseIcon, k as iosScrollOnFocus, t as FORM_Z_INDEX, ae as justRemove } from './fthry_index.Cq9YHNtT.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, b as __read, a7 as isEmptyArray, a8 as toList, a9 as useThumbnailData, e as __spreadArray, o as imgMaxSizeStyles, k as __awaiter, l as __generator, aa as downloadFile, ab as CloseIcon, i as iosScrollOnFocus, q as FORM_Z_INDEX, ac as justRemove } from './fthry_index.qgF0l9dl.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 { _ 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.Cq9YHNtT.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.qgF0l9dl.js';
2
2
  import { useState, useRef, useEffect, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import 'react/jsx-runtime';
@@ -1,14 +1,14 @@
1
- import { a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.Cq9YHNtT.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.CccKs2L_.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.CEEVzv1V.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.BqNJbf5T.js';
3
+ import { F as FormControl } from './fthry_FormControl.CNTM-tar.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.zzKQrz3J.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.DajywmuM.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.BzHdQCnz.js';
11
+ import './fthry_Overlay.CcqCmYFD.js';
12
12
 
13
13
  var applyCheckboxGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('checkboxGroup');
@@ -1,13 +1,13 @@
1
- import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles } from './fthry_index.Cq9YHNtT.js';
1
+ import { u as useBorder, b as __read, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles } from './fthry_index.qgF0l9dl.js';
2
2
  import { memo, useState, useRef } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.DjYnUAby.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
5
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.BcfT98wq.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DmwTTXDB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
5
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.CxnQ2lsv.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.BzHdQCnz.js';
10
+ import './fthry_Overlay.CcqCmYFD.js';
11
11
 
12
12
  function PasswordField(_a) {
13
13
  var _b;
@@ -1,4 +1,4 @@
1
- import { j as jsx, _ as __assign, a as jsxs, b as __read, l as __awaiter, m as __generator, v as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.Cq9YHNtT.js';
1
+ import { j as jsx, _ as __assign, a as jsxs, b as __read, k as __awaiter, l as __generator, t as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useState, useEffect, memo, useMemo } from 'react';
3
3
  import '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.Cq9YHNtT.js';
1
+ import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, al as loadQRScanner, am as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, an as qrPromise } from './fthry_index.qgF0l9dl.js';
2
2
  import React__default, { useEffect, useCallback } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.CQ-iyN1m.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.Br-2XElU.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1,12 +1,12 @@
1
- import { j as jsx, _ as __assign, u as useBorder, b as __read, C as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, w as css, x as __makeTemplateObject, G as Global, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.Cq9YHNtT.js';
1
+ import { j as jsx, _ as __assign, u as useBorder, b as __read, A as countryData, c as fieldValues, a as jsxs, h as hoverStylesGuard, v as css, w as __makeTemplateObject, G as Global, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.qgF0l9dl.js';
2
2
  import { useState, useRef, useEffect } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.BqNJbf5T.js';
3
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
4
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.DajywmuM.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.BzHdQCnz.js';
9
+ import './fthry_Overlay.CcqCmYFD.js';
10
10
 
11
11
  var ae = [
12
12
  { name: 'Abu Dhabi', code: 'AZ' },
@@ -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.Cq9YHNtT.js';
1
+ import { f as featheryDoc, ao as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, k as __awaiter, l as __generator, ap as toBase64, n as debounce, aq as MODAL_Z_INDEX, ab as CloseIcon, ar as dataURLToFile, q as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.qgF0l9dl.js';
2
2
  import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
3
- import { P as PropTypes } from './fthry_index.Bwz5Ecqk.js';
3
+ import { P as PropTypes } from './fthry_index.DMdkld9_.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';
@@ -1143,20 +1143,22 @@ var SignatureCanvas = forwardRef(function (props, ref) {
1143
1143
  });
1144
1144
 
1145
1145
  var SIGNER_NAME_KEY = 'feathery-signer-name';
1146
+ var SIGNER_INITIALS_KEY = 'feathery-signer-initials';
1146
1147
  function SignatureModal(props) {
1147
1148
  var _a, _b;
1148
- var _c = props.show, show = _c === void 0 ? false : _c, _d = props.setShow, setShow = _d === void 0 ? function () { } : _d, fieldKey = props.fieldKey, repeatIndex = props.repeatIndex, defaultValue = props.defaultValue, responsiveStyles = props.responsiveStyles, _e = props.onClear, onClear = _e === void 0 ? function () { } : _e, _f = props.onEnd, onEnd = _f === void 0 ? function () { } : _f, _g = props.signMethods, signMethods = _g === void 0 ? '' : _g, t = props.translation;
1149
+ var _c = props.show, show = _c === void 0 ? false : _c, _d = props.setShow, setShow = _d === void 0 ? function () { } : _d, fieldKey = props.fieldKey, repeatIndex = props.repeatIndex, defaultValue = props.defaultValue, responsiveStyles = props.responsiveStyles, _e = props.onClear, onClear = _e === void 0 ? function () { } : _e, _f = props.onEnd, onEnd = _f === void 0 ? function () { } : _f, _g = props.signMethods, signMethods = _g === void 0 ? '' : _g, _h = props.isInitials, isInitials = _h === void 0 ? false : _h, t = props.translation;
1149
1150
  var typeOnly = signMethods === 'type';
1150
1151
  var drawOnly = signMethods === 'draw';
1151
- var _h = __read(useState(drawOnly), 2), drawSignature = _h[0], setDrawSignature = _h[1];
1152
- var _j = __read(useState(''), 2), fullName = _j[0], setFullName = _j[1];
1153
- var _k = __read(useState(false), 2), isLoading = _k[0], setLoading = _k[1];
1154
- var _l = __read(useState(), 2), signatureFile = _l[0], setSignatureFile = _l[1];
1155
- var _m = __read(useState(''), 2), signatureImgData = _m[0], setSignatureImgData = _m[1];
1152
+ var _j = __read(useState(drawOnly), 2), drawSignature = _j[0], setDrawSignature = _j[1];
1153
+ var _k = __read(useState(''), 2), fullName = _k[0], setFullName = _k[1];
1154
+ var _l = __read(useState(false), 2), isLoading = _l[0], setLoading = _l[1];
1155
+ var _m = __read(useState(), 2), signatureFile = _m[0], setSignatureFile = _m[1];
1156
+ var _o = __read(useState(''), 2), signatureImgData = _o[0], setSignatureImgData = _o[1];
1156
1157
  var fullNameRef = useRef(fullName);
1157
1158
  var signatureCanvasRef = useRef(null);
1159
+ var storageKey = isInitials ? SIGNER_INITIALS_KEY : SIGNER_NAME_KEY;
1158
1160
  var getSignerNameFromSessionStorage = function () {
1159
- var signerName = sessionStorage.getItem(SIGNER_NAME_KEY);
1161
+ var signerName = sessionStorage.getItem(storageKey);
1160
1162
  return signerName || '';
1161
1163
  };
1162
1164
  useEffect(function () {
@@ -1235,7 +1237,7 @@ function SignatureModal(props) {
1235
1237
  var handleSubmit = function () {
1236
1238
  if (signatureFile) {
1237
1239
  onEnd(signatureFile);
1238
- sessionStorage.setItem(SIGNER_NAME_KEY, fullName);
1240
+ sessionStorage.setItem(storageKey, fullName);
1239
1241
  setShow(false);
1240
1242
  resetState();
1241
1243
  }
@@ -1273,7 +1275,7 @@ function SignatureModal(props) {
1273
1275
  display: 'flex',
1274
1276
  padding: '20px',
1275
1277
  borderBottom: '1px solid #e9e9e9'
1276
- } }, { children: [jsx("h3", __assign({ css: { padding: 0, margin: 0, flex: '1' } }, { children: t.title })), jsx(CloseIcon, { onClick: function () { return handleCancel(); }, css: { '&:hover': { cursor: 'pointer' } } })] })), jsxs("div", __assign({ css: {
1278
+ } }, { children: [jsx("h3", __assign({ css: { padding: 0, margin: 0, flex: '1' } }, { children: isInitials ? t.initials_title : t.title })), jsx(CloseIcon, { onClick: function () { return handleCancel(); }, css: { '&:hover': { cursor: 'pointer' } } })] })), jsxs("div", __assign({ css: {
1277
1279
  position: 'relative',
1278
1280
  padding: '20px 20px 30px 20px',
1279
1281
  '& h3': {
@@ -1286,10 +1288,12 @@ function SignatureModal(props) {
1286
1288
  gap: '15px',
1287
1289
  flexDirection: 'column',
1288
1290
  paddingBottom: '30px'
1289
- } }, { children: [jsx("h3", { children: t.type_option }), jsx("input", { defaultValue: getSignerNameFromSessionStorage(), onChange: function (e) {
1291
+ } }, { children: [jsx("h3", { children: isInitials ? t.initials_type_option : t.type_option }), jsx("input", { defaultValue: getSignerNameFromSessionStorage(), onChange: function (e) {
1290
1292
  var val = e.target.value.trim();
1291
1293
  setFullName(val);
1292
- }, placeholder: t.type_placeholder, css: {
1294
+ }, placeholder: isInitials
1295
+ ? t.initials_type_placeholder
1296
+ : t.type_placeholder, css: {
1293
1297
  padding: '8px 10px',
1294
1298
  borderRadius: '4px',
1295
1299
  border: '1px solid #e9e9e9',
@@ -1320,7 +1324,7 @@ function SignatureModal(props) {
1320
1324
  fontFamily: 'sans-serif',
1321
1325
  fontSize: '.9rem',
1322
1326
  borderRadius: '4px'
1323
- } }, { children: t.type_loading }))), !signatureImgData ? (t.type_example) : (jsx("img", { src: signatureImgData, alt: 'Signature', css: { maxHeight: '100%', maxWidth: '100%' } }))] }))] })), !typeOnly && (jsxs(Fragment, { children: [jsx("div", __assign({ css: {
1327
+ } }, { children: isInitials ? t.initials_type_loading : t.type_loading }))), !signatureImgData ? (isInitials ? (t.initials_type_example) : (t.type_example)) : (jsx("img", { src: signatureImgData, alt: 'Signature', css: { maxHeight: '100%', maxWidth: '100%' } }))] }))] })), !typeOnly && (jsxs(Fragment, { children: [jsx("div", __assign({ css: {
1324
1328
  height: '1px',
1325
1329
  display: 'flex',
1326
1330
  alignItems: 'center',
@@ -1349,14 +1353,18 @@ function SignatureModal(props) {
1349
1353
  border: '1px solid #5e5e5e',
1350
1354
  cursor: 'pointer'
1351
1355
  }
1352
- } }, { children: [jsx("h3", { children: t.draw_option }), jsx("p", { children: t.draw_subtitle })] })) }))] }))] })), drawSignature && (jsxs("div", __assign({ css: {
1356
+ } }, { children: [jsx("h3", { children: isInitials ? t.initials_draw_option : t.draw_option }), jsx("p", { children: isInitials
1357
+ ? t.initials_draw_subtitle
1358
+ : t.draw_subtitle })] })) }))] }))] })), drawSignature && (jsxs("div", __assign({ css: {
1353
1359
  display: 'flex',
1354
1360
  flexDirection: 'column',
1355
1361
  gap: '15px'
1356
1362
  } }, { children: [jsx("p", __assign({ css: {
1357
1363
  margin: 0,
1358
1364
  padding: 0
1359
- } }, { children: t.draw_instructions })), jsx("div", __assign({ css: { position: 'relative', width: '100%', height: '200px' } }, { children: jsx(SignatureCanvas, { ref: signatureCanvasRef, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: generateDrawnSignature, showClear: false, translation: t }) }))] })))] })), jsxs("div", __assign({ css: {
1365
+ } }, { children: isInitials
1366
+ ? t.initials_draw_instructions
1367
+ : t.draw_instructions })), jsx("div", __assign({ css: { position: 'relative', width: '100%', height: '200px' } }, { children: jsx(SignatureCanvas, { ref: signatureCanvasRef, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: generateDrawnSignature, showClear: false, translation: t }) }))] })))] })), jsxs("div", __assign({ css: {
1360
1368
  position: 'relative',
1361
1369
  display: 'flex',
1362
1370
  padding: '20px 20px',
@@ -1398,7 +1406,7 @@ function SignatureModal(props) {
1398
1406
  cursor: 'not-allowed'
1399
1407
  }
1400
1408
  }
1401
- } }, { children: t.confirm }))] })] }))] }))] })));
1409
+ } }, { children: isInitials ? t.initials_confirm : t.confirm }))] })] }))] }))] })));
1402
1410
  }
1403
1411
 
1404
1412
  var defaultTranslations = {
@@ -1415,35 +1423,48 @@ var defaultTranslations = {
1415
1423
  confirm: 'Sign',
1416
1424
  cancel: 'Cancel',
1417
1425
  back: 'Back',
1418
- clear: 'Clear'
1426
+ clear: 'Clear',
1427
+ initials_label: 'Initial here',
1428
+ initials_title: 'Add your initials',
1429
+ initials_type_option: 'Type your initials',
1430
+ initials_type_placeholder: 'Your initials',
1431
+ initials_type_example: 'A.B.',
1432
+ initials_type_loading: 'Generating initials',
1433
+ initials_draw_option: 'Draw your initials',
1434
+ initials_draw_subtitle: 'Draw your initials here using your mouse or trackpad',
1435
+ initials_draw_instructions: 'Draw your initials in the box below',
1436
+ initials_confirm: 'Initial'
1419
1437
  };
1420
1438
 
1421
1439
  function SignatureField(_a) {
1422
- var _b, _c, _d, _e;
1423
- var element = _a.element, fieldLabel = _a.fieldLabel, responsiveStyles = _a.responsiveStyles, _f = _a.defaultValue, defaultValue = _f === void 0 ? null : _f, editMode = _a.editMode, repeatIndex = _a.repeatIndex, _g = _a.elementProps, elementProps = _g === void 0 ? {} : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.onEnd, onEnd = _j === void 0 ? function () { } : _j, _k = _a.onClear, onClear = _k === void 0 ? function () { } : _k, _l = _a.ReactPortal, ReactPortal = _l === void 0 ? null : _l, // This is allowing the ability to pass a portal for the modal
1440
+ var _b, _c, _d, _e, _f;
1441
+ var element = _a.element, responsiveStyles = _a.responsiveStyles, _g = _a.defaultValue, defaultValue = _g === void 0 ? null : _g, editMode = _a.editMode, repeatIndex = _a.repeatIndex, _h = _a.elementProps, elementProps = _h === void 0 ? {} : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, _k = _a.onEnd, onEnd = _k === void 0 ? function () { } : _k, _l = _a.onClear, onClear = _l === void 0 ? function () { } : _l, _m = _a.ReactPortal, ReactPortal = _m === void 0 ? null : _m, // This is allowing the ability to pass a portal for the modal
1424
1442
  children = _a.children;
1425
- var _m = __read(useState(false), 2), showSignatureModal = _m[0], setShowSignatureModal = _m[1];
1443
+ var _o = __read(useState(false), 2), showSignatureModal = _o[0], setShowSignatureModal = _o[1];
1426
1444
  var Portal = ReactPortal !== null && ReactPortal !== void 0 ? ReactPortal : (function (_a) {
1427
1445
  var children = _a.children;
1428
1446
  return jsx(Fragment, { children: children });
1429
1447
  });
1430
1448
  var servar = (_b = element.servar) !== null && _b !== void 0 ? _b : {};
1431
1449
  var fieldKey = (_c = servar.key) !== null && _c !== void 0 ? _c : element.key;
1450
+ var isInitials = ((_d = servar.metadata) === null || _d === void 0 ? void 0 : _d.sign_type) === 'initials';
1432
1451
  var t = __assign(__assign({}, defaultTranslations), element.properties.translate);
1433
1452
  useEffect(function () {
1434
1453
  if (!global.webfontloaderPromise)
1435
1454
  global.webfontloaderPromise = import(
1436
- /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.DhBpZ3Q7.js').then(function (n) { return n.w; });
1455
+ /* webpackChunkName: "webfontloader" */ './fthry_webfontloader.D1wDzLxW.js').then(function (n) { return n.w; });
1437
1456
  global.webfontloaderPromise.then(function (WebFont) {
1438
1457
  WebFont.load({ google: { families: ['La Belle Aurore'] } });
1439
1458
  });
1440
1459
  }, []);
1441
- return (jsxs(Fragment, { children: [jsx(Portal, { children: jsx(SignatureModal, { show: showSignatureModal, setShow: setShowSignatureModal, defaultValue: defaultValue, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: onEnd, signMethods: (_e = (_d = servar.metadata) === null || _d === void 0 ? void 0 : _d.sign_methods) !== null && _e !== void 0 ? _e : '', translation: t }) }), jsxs("div", __assign({ css: __assign(__assign({ maxWidth: '100%', width: '100%', height: '100%' }, responsiveStyles.getTarget('fc')), { position: 'relative', pointerEvents: editMode || disabled ? 'none' : 'auto' }) }, elementProps, { children: [children, fieldLabel, jsxs("div", __assign({ css: __assign({ position: 'relative' }, responsiveStyles.getTarget('sub-fc')) }, { children: [jsxs(Suspense, __assign({ fallback: jsx("div", { css: __assign(__assign({}, responsiveStyles.getTarget('field', true)), { width: '100%', height: '100%', boxSizing: 'border-box', paddingLeft: '5px' }) }) }, { children: [jsx("div", __assign({ onClick: function () {
1460
+ return (jsxs(Fragment, { children: [jsx(Portal, { children: jsx(SignatureModal, { show: showSignatureModal, setShow: setShowSignatureModal, defaultValue: defaultValue, fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, onClear: onClear, onEnd: onEnd, signMethods: (_f = (_e = servar.metadata) === null || _e === void 0 ? void 0 : _e.sign_methods) !== null && _f !== void 0 ? _f : '', isInitials: isInitials, translation: t }) }), jsxs("div", __assign({ css: __assign(__assign({ maxWidth: '100%', width: '100%', height: '100%' }, responsiveStyles.getTarget('fc')), { position: 'relative', pointerEvents: editMode || disabled ? 'none' : 'auto' }) }, elementProps, { children: [children, jsxs("div", __assign({ css: __assign({ position: 'relative' }, responsiveStyles.getTarget('sub-fc')) }, { children: [jsxs(Suspense, __assign({ fallback: jsx("div", { css: __assign(__assign({}, responsiveStyles.getTarget('field', true)), { width: '100%', height: '100%', boxSizing: 'border-box', paddingLeft: '5px' }) }) }, { children: [jsx("div", __assign({ onClick: function () {
1442
1461
  if (!disabled)
1443
1462
  setShowSignatureModal(true);
1444
1463
  }, css: __assign(__assign({ position: 'absolute', display: 'flex', top: 0, left: 0, width: '100%', height: '100%', zIndex: FORM_Z_INDEX, alignItems: 'center', justifyContent: 'center' }, (disabled ? { backgroundColor: 'rgb(229, 229, 229)' } : {})), { '&:hover': {
1445
1464
  cursor: 'pointer'
1446
- } }) }, { children: !defaultValue && !disabled && t.label })), jsx(SignatureCanvas, { fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, defaultValue: defaultValue, disabled: disabled, showClear: false, translation: t })] })), jsx(ErrorInput, { id: servar.key, "aria-label": element.properties.aria_label })] }))] }))] }));
1465
+ } }) }, { children: !defaultValue &&
1466
+ !disabled &&
1467
+ (servar.name || (isInitials ? t.initials_label : t.label)) })), jsx(SignatureCanvas, { fieldKey: fieldKey, repeatIndex: repeatIndex, responsiveStyles: responsiveStyles, defaultValue: defaultValue, disabled: disabled, showClear: false, translation: t })] })), jsx(ErrorInput, { id: servar.key, "aria-label": element.properties.aria_label })] }))] }))] }));
1447
1468
  }
1448
1469
 
1449
1470
  export { SignatureField as default };
@@ -1,4 +1,4 @@
1
- import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.Cq9YHNtT.js';
1
+ import { j as jsx, _ as __assign, b as __read, a as jsxs, E as ErrorInput } from './fthry_index.qgF0l9dl.js';
2
2
  import { useState } 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.Cq9YHNtT.js';
1
+ import { b as __read, a as jsxs$1, _ as __assign, j as jsx$1, q as FORM_Z_INDEX } from './fthry_index.qgF0l9dl.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,10 +1,10 @@
1
- import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.Cq9YHNtT.js';
1
+ import { B as stringify, C as rulesheet, H as COMMENT, I as middleware, R as RULESET, J as combine, K as match, L as serialize, M as copy, N as replace, W as WEBKIT, O as MOZ, P as MS, Q as KEYFRAMES, S as DECLARATION, T as dealloc, U as alloc, V as hash, X as charat, Y as strlen, Z as indexof, $ as next, a0 as token, a1 as from, a2 as peek, a3 as delimit, a4 as slice, a5 as position, a6 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, y as __rest, b as __read, q as FORM_Z_INDEX, t as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.qgF0l9dl.js';
2
2
  import * as React from 'react';
3
3
  import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
5
- import { P as Placeholder$2 } from './fthry_Placeholder.DjYnUAby.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.BqNJbf5T.js';
7
- import { T as Tooltip, O as Overlay } from './fthry_Overlay.BzHdQCnz.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
5
+ import { P as Placeholder$2 } from './fthry_Placeholder.DmwTTXDB.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.DajywmuM.js';
7
+ import { T as Tooltip, O as Overlay } from './fthry_Overlay.CcqCmYFD.js';
8
8
  import { createPortal } from 'react-dom';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-dom/client';
@@ -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.Cq9YHNtT.js';
1
+ import { b as __read, a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useState, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.CccKs2L_.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.CEEVzv1V.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.BqNJbf5T.js';
3
+ import { F as FormControl } from './fthry_FormControl.CNTM-tar.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.zzKQrz3J.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.DajywmuM.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.BzHdQCnz.js';
11
+ import './fthry_Overlay.CcqCmYFD.js';
12
12
 
13
13
  var applyRadioGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('radioGroup');
@@ -1,16 +1,16 @@
1
- import { j as jsx, G as Global, w as css, x as __makeTemplateObject, _ as __assign, b as __read, y as isMobile, v as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, z as __rest, B as formatDateString } from './fthry_index.Cq9YHNtT.js';
1
+ import { j as jsx, G as Global, v as css, w as __makeTemplateObject, _ as __assign, b as __read, x as isMobile, t as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, y as __rest, z as formatDateString } from './fthry_index.qgF0l9dl.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
4
- import { P as Placeholder } from './fthry_Placeholder.DjYnUAby.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
4
+ import { P as Placeholder } from './fthry_Placeholder.DmwTTXDB.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
6
6
  import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
7
7
  import * as ReactDOM from 'react-dom';
8
8
  import ReactDOM__default from 'react-dom';
9
- import { I as IMask, a as IMaskInput } from './fthry_input.D5hOzIRu.js';
9
+ import { I as IMask, a as IMaskInput } from './fthry_input.CwNkor10.js';
10
10
  import 'react-dom/client';
11
11
  import 'jszip';
12
- import './fthry_Overlay.BzHdQCnz.js';
13
- import './fthry_index.Bwz5Ecqk.js';
12
+ import './fthry_Overlay.CcqCmYFD.js';
13
+ import './fthry_index.DMdkld9_.js';
14
14
 
15
15
  var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
16
16
  var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
@@ -1,12 +1,12 @@
1
- import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, p as imgMaxSizeStyles, q as noTextSelectStyles, E as ErrorInput } from './fthry_index.Cq9YHNtT.js';
1
+ import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, o as imgMaxSizeStyles, p as noTextSelectStyles, E as ErrorInput } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useMemo } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.BqNJbf5T.js';
3
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
4
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.DajywmuM.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.BzHdQCnz.js';
9
+ import './fthry_Overlay.CcqCmYFD.js';
10
10
 
11
11
  function ButtonGroupField(_a) {
12
12
  var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
@@ -1,4 +1,4 @@
1
- import { v as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, am as isNum } from './fthry_index.Cq9YHNtT.js';
1
+ import { t as featheryWindow, a as jsxs, _ as __assign, j as jsx, b as __read, u as useBorder, h as hoverStylesGuard, ak as isNum } from './fthry_index.qgF0l9dl.js';
2
2
  import { useRef, useCallback, useEffect, useState } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './fthry_index.Cq9YHNtT.js';
1
+ import { g as getDefaultExportFromCjs } from './fthry_index.qgF0l9dl.js';
2
2
 
3
3
  var propTypes = {exports: {}};
4
4
 
@@ -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.Cq9YHNtT.js';
1
+ import { y as __rest, b as __read, A as countryData, ag as phoneLib, ah as authState, ai as firebaseSMSCountries, a as jsxs, j as jsx, _ as __assign, F as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, aj as phoneLibPromise, h as hoverStylesGuard, ak as isNum, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.qgF0l9dl.js';
2
2
  import { forwardRef, useRef, useState, useEffect, useMemo, memo } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.DjYnUAby.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
5
- import { O as Overlay } from './fthry_Overlay.BzHdQCnz.js';
6
- import { u as useElementSize } from './fthry_useElementSize.eHwWEvsN.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DmwTTXDB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
5
+ import { O as Overlay } from './fthry_Overlay.CcqCmYFD.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.DfXZCHzG.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
@@ -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.Cq9YHNtT.js';
1
+ import { b as __read, j as jsx, F as Fragment, x as isMobile, a as jsxs, _ as __assign, q as FORM_Z_INDEX, i as iosScrollOnFocus } from './fthry_index.qgF0l9dl.js';
2
2
  import { useState, useRef, useMemo } from 'react';
3
- import { O as Overlay, T as Tooltip } from './fthry_Overlay.BzHdQCnz.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.CEEVzv1V.js';
3
+ import { O as Overlay, T as Tooltip } from './fthry_Overlay.CcqCmYFD.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.zzKQrz3J.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom/client';
7
7
  import 'jszip';
@@ -1,16 +1,16 @@
1
- import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.Cq9YHNtT.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, at as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles, au as emailPatternStr } from './fthry_index.qgF0l9dl.js';
2
2
  import { memo, useRef, useState } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.DjYnUAby.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.WV-ZsT1J.js';
5
- import { O as Overlay } from './fthry_Overlay.BzHdQCnz.js';
6
- import { u as useElementSize } from './fthry_useElementSize.eHwWEvsN.js';
7
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.BcfT98wq.js';
8
- import { a as IMaskInput } from './fthry_input.D5hOzIRu.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.DmwTTXDB.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DKW9C1ff.js';
5
+ import { O as Overlay } from './fthry_Overlay.CcqCmYFD.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.DfXZCHzG.js';
7
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.CxnQ2lsv.js';
8
+ import { a as IMaskInput } from './fthry_input.CwNkor10.js';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-dom/client';
11
11
  import 'jszip';
12
12
  import 'react-dom';
13
- import './fthry_index.Bwz5Ecqk.js';
13
+ import './fthry_index.DMdkld9_.js';
14
14
 
15
15
  function TextAutocomplete(_a) {
16
16
  var _b = _a.allOptions, allOptions = _b === void 0 ? [] : _b, showOptions = _a.showOptions, _c = _a.onSelect, onSelect = _c === void 0 ? function () { } : _c, _d = _a.onHide, onHide = _d === void 0 ? function () { } : _d, _e = _a.onInputFocus, onInputFocus = _e === void 0 ? function () { } : _e, _f = _a.value, value = _f === void 0 ? '' : _f, containerRef = _a.containerRef, responsiveStyles = _a.responsiveStyles, listItemRef = _a.listItemRef, children = _a.children;