@feathery/react 2.49.0 → 2.50.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 (155) hide show
  1. package/cjs/Form/grid/Container/index.d.ts.map +1 -1
  2. package/cjs/elements/components/HoverTooltip.d.ts +24 -0
  3. package/cjs/elements/components/HoverTooltip.d.ts.map +1 -0
  4. package/cjs/elements/components/InlineTooltip.d.ts.map +1 -1
  5. package/cjs/elements/components/Overlay.d.ts +1 -1
  6. package/cjs/elements/components/Overlay.d.ts.map +1 -1
  7. package/cjs/elements/components/QuikFormViewer.d.ts.map +1 -1
  8. package/cjs/elements/components/TextHoverTooltip.d.ts.map +1 -1
  9. package/cjs/elements/components/Tooltip.d.ts +2 -1
  10. package/cjs/elements/components/Tooltip.d.ts.map +1 -1
  11. package/cjs/{fthry_AssistantChat.BuqbKhai.js → fthry_AssistantChat.BT32wDG3.js} +4 -4
  12. package/cjs/{fthry_FormControl.BuMQfeZ1.js → fthry_FormControl.D4ekieUI.js} +1 -1
  13. package/cjs/{fthry_InlineTooltip.D8PDRhj_.js → fthry_InlineTooltip.D5NfxKVo.js} +2 -16
  14. package/cjs/{fthry_PaymentMethodField.myalaaOZ.js → fthry_PaymentMethodField.vpxb_M9_.js} +3 -4
  15. package/cjs/{fthry_Placeholder.UOTZToMt.js → fthry_Placeholder.hq6Cgqjd.js} +1 -1
  16. package/cjs/{fthry_ShowEyeIcon.D8qDJDzZ.js → fthry_ShowEyeIcon.C-wsnI6q.js} +1 -1
  17. package/cjs/{fthry_TabsElement.BK0wFYNE.js → fthry_TabsElement.BHVCgyd9.js} +1 -1
  18. package/cjs/{fthry_auto-track.B5EtzK5A.js → fthry_auto-track.g9k-T7sJ.js} +2 -2
  19. package/cjs/{fthry_highlighted-body-TPN3WLV5.BEO11ycd.js → fthry_highlighted-body-TPN3WLV5.CaePR3vZ.js} +3 -3
  20. package/cjs/{fthry_index.BRo8czXJ.js → fthry_index.B5pgafIl.js} +2 -2
  21. package/cjs/{fthry_index.B_0S-igL.js → fthry_index.BDV7qf2C.js} +5 -6
  22. package/cjs/{fthry_index.C9AIy59J.js → fthry_index.BLKRQSHw.js} +2 -2
  23. package/cjs/{fthry_index.OwukJO9-.js → fthry_index.BcQE05aQ.js} +2 -2
  24. package/cjs/{fthry_index.B6qHn3Vr.js → fthry_index.BdAvU9aA.js} +5 -6
  25. package/cjs/{fthry_index.964D9mAK.js → fthry_index.BdOfkVzz.js} +2 -2
  26. package/cjs/{fthry_index.BFw_StvJ.js → fthry_index.BfD3esIa.js} +2 -2
  27. package/cjs/{fthry_index.e_GKEQRk.js → fthry_index.BiCUy3Q2.js} +1 -1
  28. package/cjs/{fthry_index.C-kN7c0o.js → fthry_index.BldM4IKR.js} +334 -40
  29. package/cjs/{fthry_index.DgGKGO1E.js → fthry_index.ByQJ8Db5.js} +10 -10
  30. package/cjs/{fthry_index.w9-CuoQH.js → fthry_index.C6YeHjI_.js} +5 -6
  31. package/cjs/{fthry_index.CoZzaKnE.js → fthry_index.CNXv_44w.js} +5 -6
  32. package/cjs/{fthry_index.BU9fFX-g.js → fthry_index.COg3w9c8.js} +1 -1
  33. package/cjs/{fthry_index.cpUxhiq-.js → fthry_index.CSq9ML1V.js} +2 -2
  34. package/cjs/{fthry_index.CP8jeStb.js → fthry_index.CW8fXwgP.js} +6 -7
  35. package/cjs/{fthry_index.CHLGQEBH.js → fthry_index.CX5Tx1di.js} +3 -4
  36. package/cjs/{fthry_index.DTMlYZBn.js → fthry_index.Cb-o7T3I.js} +1 -1
  37. package/cjs/{fthry_index.DKv8MgEz.js → fthry_index.ClbpUjqu.js} +8 -9
  38. package/cjs/{fthry_index.BvnQTPSY.js → fthry_index.Cn-052XC.js} +1 -1
  39. package/cjs/{fthry_index.BckiEDZJ.js → fthry_index.D3svtoqj.js} +4 -5
  40. package/cjs/{fthry_index.b8IraXmQ.js → fthry_index.D42pyZzz.js} +3 -4
  41. package/cjs/{fthry_index.DrrJo2Gf.js → fthry_index.DAY5VW01.js} +5 -6
  42. package/cjs/{fthry_index.BmILtMAD.js → fthry_index.DgVU5DPg.js} +3 -3
  43. package/cjs/{fthry_index.7ndzGWiJ.js → fthry_index.DjKuHZML.js} +4 -5
  44. package/cjs/{fthry_index.DHx_H1T3.js → fthry_index.DpQfBE8n.js} +1 -1
  45. package/cjs/{fthry_index.DPIewKZa.js → fthry_index.DqCigvUs.js} +1 -1
  46. package/cjs/{fthry_index.C2vpx_Q9.js → fthry_index.QAttsABq.js} +1 -1
  47. package/cjs/{fthry_index.C6ebZNtr.js → fthry_index.QRzfI0b4.js} +3 -18
  48. package/cjs/{fthry_index.D0My8MmY.js → fthry_index.m_XKSVM8.js} +1 -1
  49. package/cjs/{fthry_index.BcfL5ZZY.js → fthry_index.s2Ah9v4O.js} +1 -1
  50. package/cjs/{fthry_index.CrgFXYzE.js → fthry_index.u0sKUa7-.js} +1 -1
  51. package/cjs/{fthry_index.umd.YAgbegYu.js → fthry_index.umd.Cl6yVNEY.js} +1 -1
  52. package/cjs/{fthry_input.D3t8liSW.js → fthry_input.CzTMRvUa.js} +1 -1
  53. package/cjs/{fthry_mermaid-O7DHMXV3.C5wDh0Pr.js → fthry_mermaid-O7DHMXV3.1Tp00mbG.js} +3 -3
  54. package/cjs/{fthry_script.sEVfx6Kl.js → fthry_script.B2r1qN9_.js} +1 -1
  55. package/cjs/{fthry_styles.CFNJAwLy.js → fthry_styles.BcMEcBUF.js} +1 -1
  56. package/cjs/{fthry_useElementSize.yeWmUfpM.js → fthry_useElementSize.91AcUxkY.js} +1 -1
  57. package/cjs/{fthry_useSalesforceSync.C_sMWo9m.js → fthry_useSalesforceSync.BQORLqHu.js} +1 -1
  58. package/cjs/{fthry_webfontloader.DLiAwukX.js → fthry_webfontloader.DbJc3-T2.js} +1 -1
  59. package/cjs/index.js +1 -1
  60. package/cjs/thumbnail-renderer.js +1 -1
  61. package/cjs/utils/featheryClient/index.d.ts.map +1 -1
  62. package/dist/Form/grid/Container/index.d.ts.map +1 -1
  63. package/dist/elements/components/HoverTooltip.d.ts +24 -0
  64. package/dist/elements/components/HoverTooltip.d.ts.map +1 -0
  65. package/dist/elements/components/InlineTooltip.d.ts.map +1 -1
  66. package/dist/elements/components/Overlay.d.ts +1 -1
  67. package/dist/elements/components/Overlay.d.ts.map +1 -1
  68. package/dist/elements/components/QuikFormViewer.d.ts.map +1 -1
  69. package/dist/elements/components/TextHoverTooltip.d.ts.map +1 -1
  70. package/dist/elements/components/Tooltip.d.ts +2 -1
  71. package/dist/elements/components/Tooltip.d.ts.map +1 -1
  72. package/dist/{fthry_AssistantChat.BejpFcyu.js → fthry_AssistantChat.BxCe9PjE.js} +4 -4
  73. package/dist/{fthry_FormControl.C3pHyJdN.js → fthry_FormControl.BpMXWUv6.js} +1 -1
  74. package/dist/{fthry_InlineTooltip.mv-Gc2Xw.js → fthry_InlineTooltip.Brp4oi0p.js} +2 -16
  75. package/dist/{fthry_PaymentMethodField.D7ElRh4C.js → fthry_PaymentMethodField.0oIU1B6N.js} +3 -4
  76. package/dist/{fthry_Placeholder.CRBysDun.js → fthry_Placeholder.CEPxPTLL.js} +1 -1
  77. package/dist/{fthry_ShowEyeIcon.Ds0oud66.js → fthry_ShowEyeIcon.BWU3OOxh.js} +1 -1
  78. package/dist/{fthry_TabsElement.BCuhzX6e.js → fthry_TabsElement.DFuHUYUv.js} +1 -1
  79. package/dist/{fthry_auto-track.Dbu38K5j.js → fthry_auto-track.CizHo0k5.js} +2 -2
  80. package/dist/{fthry_highlighted-body-TPN3WLV5.Cuh_lSww.js → fthry_highlighted-body-TPN3WLV5.DDCKzqBt.js} +3 -3
  81. package/dist/{fthry_index.YJH2_M8x.js → fthry_index.-GpsDCwK.js} +3 -4
  82. package/dist/{fthry_index.xZSdf7ry.js → fthry_index.6wMTFMTj.js} +1 -1
  83. package/dist/{fthry_index.BnWgnMbc.js → fthry_index.BDSy9TBV.js} +4 -5
  84. package/dist/{fthry_index.B31t0UUz.js → fthry_index.BeEYTrUw.js} +2 -2
  85. package/dist/{fthry_index.C8wcBfv1.js → fthry_index.Bmr2qAQ9.js} +1 -1
  86. package/dist/{fthry_index.DeOBTZSR.js → fthry_index.Bn_DZ8s-.js} +2 -2
  87. package/dist/{fthry_index.CreqHrWa.js → fthry_index.Bs0b7fF8.js} +1 -1
  88. package/dist/{fthry_index._4LdTVJS.js → fthry_index.ByfmNWHm.js} +2 -2
  89. package/dist/{fthry_index.BEUoZUyK.js → fthry_index.C-3BwV3D.js} +1 -1
  90. package/dist/{fthry_index.B0NbPkQc.js → fthry_index.CEFYX7Cb.js} +1 -1
  91. package/dist/{fthry_index.Bb2rQlTP.js → fthry_index.CKyEKNhB.js} +3 -4
  92. package/dist/{fthry_index.Du_mis5t.js → fthry_index.CV6KaQP2.js} +3 -18
  93. package/dist/{fthry_index.0OEg6H3i.js → fthry_index.CXvBwACd.js} +1 -1
  94. package/dist/{fthry_index.YWCe9xut.js → fthry_index.CgeOgf6v.js} +7 -8
  95. package/dist/{fthry_index.Bx6S1qZa.js → fthry_index.Cl0vinm2.js} +2 -2
  96. package/dist/{fthry_index.NwQXVZvL.js → fthry_index.DD4JAsd0.js} +3 -3
  97. package/dist/{fthry_index.B-NWpaAl.js → fthry_index.DF33pFg0.js} +2 -2
  98. package/dist/{fthry_index.5jB_IKHJ.js → fthry_index.DZYRCGrF.js} +5 -6
  99. package/dist/{fthry_index.C2TazyZo.js → fthry_index.DjeCrTPA.js} +1 -1
  100. package/dist/{fthry_index.aL99gjHK.js → fthry_index.DkB3n_gE.js} +4 -5
  101. package/dist/{fthry_index.DJzR8T-r.js → fthry_index.DtEJ8UnC.js} +4 -5
  102. package/dist/{fthry_index.DEpC-Z5v.js → fthry_index.DuFXqlIh.js} +4 -5
  103. package/dist/{fthry_index.DJHFwZtE.js → fthry_index.Gk4XHc2v.js} +4 -5
  104. package/dist/{fthry_index.BgljRyhO.js → fthry_index.HfY_xMXi.js} +10 -10
  105. package/dist/{fthry_index.CWSqgxAa.js → fthry_index.Tz4wWr5G.js} +5 -6
  106. package/dist/{fthry_index.cdWJRcXS.js → fthry_index.UaQC1EFo.js} +332 -41
  107. package/dist/{fthry_index.CQaO0qYK.js → fthry_index.UqBNOqYF.js} +1 -1
  108. package/dist/{fthry_index.T_q8o1IJ.js → fthry_index.X-5RnKbv.js} +1 -1
  109. package/dist/{fthry_index.B8QhrENg.js → fthry_index.caHStIvy.js} +1 -1
  110. package/dist/{fthry_index.DS-rgCeg.js → fthry_index.l3GNavsZ.js} +5 -6
  111. package/dist/{fthry_index.umd.BYgeEgf8.js → fthry_index.umd.zD2ytPrK.js} +1 -1
  112. package/dist/{fthry_index.D4jtsTFt.js → fthry_index.wOe1Wv1J.js} +2 -2
  113. package/dist/{fthry_input.DbXz6y8m.js → fthry_input.vNAUHsdE.js} +1 -1
  114. package/dist/fthry_mermaid-O7DHMXV3.C6znNgyC.js +8 -0
  115. package/dist/{fthry_script.BORBdvL8.js → fthry_script.ClnRFan9.js} +1 -1
  116. package/dist/{fthry_styles.BfxKVFUw.js → fthry_styles.NzBPYPQ9.js} +1 -1
  117. package/dist/{fthry_useElementSize.BIz4pNfw.js → fthry_useElementSize.CGVQMCbV.js} +1 -1
  118. package/dist/{fthry_useSalesforceSync.wO8Y6yIk.js → fthry_useSalesforceSync.DDPGKOl4.js} +1 -1
  119. package/dist/{fthry_webfontloader.D4WGyNNh.js → fthry_webfontloader.BY0qufCl.js} +1 -1
  120. package/dist/index.js +2 -2
  121. package/dist/thumbnail-renderer.js +1 -1
  122. package/dist/utils/featheryClient/index.d.ts.map +1 -1
  123. package/package.json +1 -1
  124. package/umd/AddressField.4a4788a40afba5fc22d2.js +1 -0
  125. package/umd/ButtonGroupField.fcf087a9664e14da7fc5.js +1 -0
  126. package/umd/CheckboxGroupField.7b055043cbd1ef8b3787.js +1 -0
  127. package/umd/DateSelectorField.b87988253da02a40c6f7.js +1 -0
  128. package/umd/DropdownField.459ba798e2ff6a8518c2.js +1 -0
  129. package/umd/DropdownMultiField.ad59b04c5e3c1ad1a6e8.js +1 -0
  130. package/umd/MatrixField.6541a0f9570b2c56e336.js +1 -0
  131. package/umd/PasswordField.fb8f587107389274112e.js +1 -0
  132. package/umd/PaymentMethodField.f6820da8252bb2eed6b1.js +1 -0
  133. package/umd/PhoneField.a161db93d8f815ced395.js +1 -0
  134. package/umd/RadioButtonGroupField.9a43334b87129e33afd2.js +1 -0
  135. package/umd/TextArea.8341b3d302383a53175d.js +1 -0
  136. package/umd/TextField.fa9f11c4b1fab1747ae1.js +1 -0
  137. package/umd/index.js +1 -1
  138. package/cjs/fthry_Overlay.D-NnFWEe.js +0 -231
  139. package/dist/fthry_Overlay.CPbgvfMU.js +0 -228
  140. package/dist/fthry_mermaid-O7DHMXV3.BTTUMTMH.js +0 -8
  141. package/umd/277.1a33ea06f86326613fcb.js +0 -1
  142. package/umd/664.4a3ec465094a3d59c184.js +0 -1
  143. package/umd/AddressField.648b3da916171008dc9f.js +0 -1
  144. package/umd/ButtonGroupField.d39ac976a6dee9ef593a.js +0 -1
  145. package/umd/CheckboxGroupField.e495eb152c4faa000d4b.js +0 -1
  146. package/umd/DateSelectorField.e702b3e6b0a5b498c824.js +0 -1
  147. package/umd/DropdownField.d1a234d236d9989bbf20.js +0 -1
  148. package/umd/DropdownMultiField.5b4e24025035f1678c83.js +0 -1
  149. package/umd/MatrixField.bcd6f58ea1896f386988.js +0 -1
  150. package/umd/PasswordField.593d7b7d3d954634fa30.js +0 -1
  151. package/umd/PaymentMethodField.8e4fd6353793eaaa2b5b.js +0 -1
  152. package/umd/PhoneField.861b99c7e81b4b9c8648.js +0 -1
  153. package/umd/RadioButtonGroupField.7a333a6f7e578a181a98.js +0 -1
  154. package/umd/TextArea.04335be4f0f0d6c0cc1a.js +0 -1
  155. package/umd/TextField.749931ebb258bf38e007.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[798],{11587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(35944),o=r(67294),i=r(18776),l=r(65096),a=r(52988),c=r(54665),u=r(47449),s=r(39479),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,h=void 0===p||p,v=e.containerRef,g=e.repeat,m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.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 l}((0,o.useState)(!1),2),y=m[0],b=m[1],w=(0,o.useRef)(null);if(!(r=(0,c.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 b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:a.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(l.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(u.Z,f({show:y,targetRef:w,containerRef:v,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:a.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}))}))]})}},47449:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(35944),o=r(67294),i=r(73935),l=r(39479),a=function(){return a=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},a.apply(this,arguments)};const c=function(e){var t=e.show,r=e.targetRef,c=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,m=void 0===g?1e3:g,y=e.containerRef,b=(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),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.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 l}((0,o.useState)(null),2),x=w[0],O=w[1],S=(0,o.useCallback)((function(){return(null==y?void 0:y.current)||(0,l.me)().body}),[y]),E=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,l.Kv)(),o=S();if(o){var i=r.current.getBoundingClientRect(),a=b.current.getBoundingClientRect(),c=o.getBoundingClientRect(),f=s(p,i,a,v),d=f.top,h=f.left,g=d+a.height,m=h+a.width,y=d>=0&&g<=n.innerHeight,w=h>=0&&m<=n.innerWidth;if(!y||!w){var x=u(p,!y,!w);x!==p&&(d=(e=s(x,i,a,v)).top,h=e.left)}var E=o===(0,l.me)().body,Z=E?d+n.scrollY:d-c.top,k=E?h+n.scrollX:h-c.left;O((function(e){return e&&e.top===Z&&e.left===k?e:{top:Z,left:k}}))}}}),[t,p,v,S,r]),Z=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){E(),e=!1})))}}),[E])();if((0,o.useLayoutEffect)((function(){t&&E()}),[t,E]),(0,o.useEffect)((function(){if(t){var e=(0,l.Kv)(),n=S();if(n){e.addEventListener("resize",Z),e.addEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.addEventListener("scroll",Z);var o=new ResizeObserver((function(){return Z()}));return r.current&&o.observe(r.current),n!==(0,l.me)().body&&o.observe(n),function(){e.removeEventListener("resize",Z),e.removeEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.removeEventListener("scroll",Z),o.disconnect()}}}}),[t,Z,S,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(O(null),null==f||f())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(O(null),null==f||f())},o=(0,l.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 k=S();return k?(0,i.createPortal)((0,n.tZ)("div",a({ref:b,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:m})},{children:c})),k):(0,n.tZ)(n.HY,{children:c})};var u=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}}}},29069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(35944),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,l=e.value,a=e.element,c=e.responsiveStyles,u=e.type,s=void 0===u?"input":u,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,h=void 0===p?null:p,v=a.properties,g=null!==(i=(null!==(r=v.repeat_placeholder)&&void 0!==r?r:[])[null!=h?h:0])&&void 0!==i?i:v.placeholder||"",m=o(o({},c.getTarget("placeholderFocus")),c.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"},c.getTarget("placeholder")),l?c.getTarget("placeholderFocus"):{}),d?m:{}),(t={},t["".concat(s,":focus ~ &")]=m,t))},{children:g}))}},18776:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(35944),o=r(52988),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)},l=function(e){var t=e.children,r=e.css,l=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)},l,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},39594:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var n=r(35944),o=r(67294),i=r(29069),l=r(11587),a=r(1211),c=r(6867),u=r(39479),s=function(){return s=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},s.apply(this,arguments)};const f=(0,o.memo)((function(e){var t=e.element,r=e.responsiveStyles,f=e.fieldLabel,d=e.elementProps,p=void 0===d?{}:d,h=e.required,v=void 0!==h&&h,g=e.disabled,m=void 0!==g&&g,y=e.editMode,b=e.onChange,w=void 0===b?function(){}:b,x=e.setRef,O=void 0===x?function(){}:x,S=e.rawValue,E=void 0===S?"":S,Z=e.inlineError,k=e.repeatIndex,L=void 0===k?null:k,R=e.children,j=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.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 l}((0,o.useState)(!1),2),C=j[0],I=j[1],T=(0,o.useRef)(null),z=(0,c.Z)({element:t,error:Z,breakpoint:r.getMobileBreakpoint()}),B=z.borderStyles,P=z.customBorder,F=t.servar;return(0,n.BX)("div",s({ref:T,css:s({maxWidth:"100%",position:"relative",pointerEvents:y?"none":"auto",width:"100%",height:"100%"},r.getTarget("fc"))},p,{children:[R,f,(0,n.BX)("div",s({css:s(s(s({position:"relative",width:"100%",overflowX:"clip"},r.getTarget("sub-fc")),m?r.getTarget("disabled"):{}),{"&:hover":(0,u.wL)(m?{}:s(s({},r.getTarget("hover")),B.hover)),"&&":C?s(s({},r.getTarget("active")),B.active):{}})},{children:[P,(0,n.tZ)("textarea",{id:F.key,css:s(s(s(s({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent",resize:"none"},a.ET),{padding:"0.5rem 0.75rem"}),r.getTarget("field")),C||E||!t.properties.placeholder?{}:{color:"transparent !important"}),"aria-label":t.properties.aria_label,maxLength:F.max_length||4096,minLength:F.min_length,required:v,onChange:w,onFocus:function(){return I(!0)},onBlur:function(){return I(!1)},placeholder:"",disabled:m,value:E,rows:t.styles.num_rows,ref:O}),(0,n.tZ)(i.Z,{value:E,element:t,responsiveStyles:r,type:"textarea",repeatIndex:L}),(0,n.tZ)(l.Z,{containerRef:T,id:t.id,text:t.properties.tooltipText,responsiveStyles:r,repeat:t.repeat})]}))]}))}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[707],{11587:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(35944),o=r(67294),i=r(18776),a=r(65096),l=r(52988),u=r(54665),c=r(47449),s=r(39479),d=function(){return d=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},d.apply(this,arguments)};function f(e){var t=e.id,r=e.text,f=e.responsiveStyles,p=e.absolute,v=void 0===p||p,h=e.containerRef,m=e.repeat,g=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),y=g[0],b=g[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,m)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",d({ref:w,onMouseEnter:x?void 0:function(){return b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((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:f.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,d({show:y,targetRef:w,containerRef:h,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,d({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}))}))]})}},47449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(35944),o=r(67294),i=r(73935),a=r(39479),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,d=e.onHide,f=e.placement,p=void 0===f?"bottom-start":f,v=e.offset,h=void 0===v?0:v,m=e.zIndex,g=void 0===m?1e3:m,y=e.containerRef,b=(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],k=w[1],S=(0,o.useCallback)((function(){return(null==y?void 0:y.current)||(0,a.me)().body}),[y]),O=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,a.Kv)(),o=S();if(o){var i=r.current.getBoundingClientRect(),l=b.current.getBoundingClientRect(),u=o.getBoundingClientRect(),d=s(p,i,l,h),f=d.top,v=d.left,m=f+l.height,g=v+l.width,y=f>=0&&m<=n.innerHeight,w=v>=0&&g<=n.innerWidth;if(!y||!w){var x=c(p,!y,!w);x!==p&&(f=(e=s(x,i,l,h)).top,v=e.left)}var O=o===(0,a.me)().body,E=O?f+n.scrollY:f-u.top,R=O?v+n.scrollX:v-u.left;k((function(e){return e&&e.top===E&&e.left===R?e:{top:E,left:R}}))}}}),[t,p,h,S,r]),E=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){O(),e=!1})))}}),[O])();if((0,o.useLayoutEffect)((function(){t&&O()}),[t,O]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=S();if(n){e.addEventListener("resize",E),e.addEventListener("scroll",E,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",E);var o=new ResizeObserver((function(){return E()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",E),e.removeEventListener("scroll",E,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",E),o.disconnect()}}}}),[t,E,S,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(k(null),null==d||d())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(k(null),null==d||d())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,d,r]),!t)return null;var R=S();return R?(0,i.createPortal)((0,n.tZ)("div",l({ref:b,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:g})},{children:u})),R):(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}}}},29069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(35944),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,d=e.inputFocused,f=void 0!==d&&d,p=e.repeatIndex,v=void 0===p?null:p,h=l.properties,m=null!==(i=(null!==(r=h.repeat_placeholder)&&void 0!==r?r:[])[null!=v?v:0])&&void 0!==i?i:h.placeholder||"",g=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"):{}),f?g:{}),(t={},t["".concat(s,":focus ~ &")]=g,t))},{children:m}))}},18776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(35944),o=r(52988),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}))}))}},46529:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var n=r(35944),o=r(67294),i=r(29069),a=r(11587),l=r(1211),u=r(99234),c=r(6867),s=r(71275),d=r(47449),f=r(45398),p=function(){return p=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},p.apply(this,arguments)};const v=(0,o.memo)((function(e){var t=e.allOptions,r=void 0===t?[]:t,i=e.showOptions,a=e.onSelect,l=void 0===a?function(){}:a,u=e.onHide,c=void 0===u?function(){}:u,v=e.onInputFocus,h=void 0===v?function(){}:v,m=e.value,g=void 0===m?"":m,y=e.containerRef,b=e.responsiveStyles,w=e.listItemRef,x=e.children,k=r.filter((function(e){return e.toLowerCase().includes(g.toLowerCase())})),S=(0,o.useRef)(null),O=(0,f.Z)(S).width;return 0===r.length?x:(0,n.BX)("div",p({ref:S,css:{height:"100%",width:"100%"}},{children:[x,k.length>0&&i&&(0,n.tZ)(d.Z,p({targetRef:S,containerRef:y,show:!0,placement:"bottom-start",onHide:c},{children:(0,n.tZ)("ul",p({css:p({zIndex:s.m6,listStyleType:"none",padding:0,margin:0,maxHeight:"210px",overflowY:"scroll",overflowX:"auto",width:void 0!==O?"".concat(O,"px"):"100%",backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)"},b.getTarget("dropdown"))},{children:k.map((function(e,t){return(0,n.tZ)("li",p({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":{backgroundColor:"#e6e6e633"},"&:focus-visible":{outline:"none",backgroundColor:"#e6e6e644"}},tabIndex:0,ref:function(e){w.current[t]=e},onClick:function(){return l(e)},onKeyDown:function(r){var n,o,i=function(){r.preventDefault(),r.stopPropagation()};"Enter"===r.key?(i(),l(e)):["ArrowDown","ArrowRight"].includes(r.key)?(i(),null===(n=w.current[t].nextSibling)||void 0===n||n.focus()):["ArrowUp","ArrowLeft"].includes(r.key)&&(i(),0===t?h():null===(o=w.current[t].previousSibling)||void 0===o||o.focus())},onBlur:function(e){e.relatedTarget&&w.current.some((function(t){return t===e.relatedTarget}))||c()}},{children:e}),"".concat(e,"-").concat(t))}))}))}))]}))}));var h=r(7193),m=r(20426),g=r(52988),y=r(39479),b=r(65096),w=r(33466),x=function(){return x=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},x.apply(this,arguments)},k=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},S={text_area:16384,url:256,gmap_zip:10},O=function(e){var t;return null!==(t=S[e])&&void 0!==t?t:1024};function E(e){return(null!=e?e:"").replaceAll("0","\\0").replaceAll("a","\\a").replaceAll("b","\\b").replaceAll("*","\\*")}function R(e){var t=e.metadata,r=E(t.prefix),n=E(t.suffix),o="";if(t.mask)o=t.mask;else{var i=t.allowed_characters;"gmap_zip"!==e.type||i||(i="alphaspace");var a=function(e){switch(e){case"letters":return"a";case"alphanumeric":return"b";case"alphaspace":return"c";case"digits":return"0";default:return"*"}}(i),l=O(e.type)-r.length-n.length;e.max_length&&(l=Math.min(e.max_length,l)),o="[".concat(a.repeat(l),"]")}return"".concat(r).concat(o).concat(n)}function C(e,t,r){var n,o,i,a,l=null!==(n=e.max_length)&&void 0!==n?n:O(e.type);switch(e.type){case"integer_field":a={mask:"num",blocks:{num:{mask:Number,radix:".",thousandsSeparator:",",scale:2,max:null!==(o=e.max_length)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,min:Math.max(0,null!==(i=e.min_length)&&void 0!==i?i:0)}},value:t.toString()},"currency"===e.format&&(a.mask="$num");break;case"ssn":a={mask:e.metadata.last_four_digits?"∗∗∗ - ∗∗ - 0000":"000 - 00 - 0000",displayChar:r?void 0:"∗",placeholderChar:e.metadata.last_four_digits?" ":void 0,lazy:!e.metadata.last_four_digits};break;case"email":case"text_area":case"url":a={mask:new RegExp("^.{0,".concat(l,"}$")),maxLength:l};break;default:e.metadata.mask&&(l=void 0),a={mask:R(e),definitions:{b:/[a-zA-Z0-9]/,c:/[a-zA-Z0-9 ]/},maxLength:l}}return x({lazy:!1,unmask:!e.metadata.save_mask},a)}function L(e,t,r){var n,o={minLength:e.min_length},i=null!==(n=e.max_length)&&void 0!==n?n:O(e.type);t.length>0&&(o.autoComplete="off");var a=e.metadata;switch(e.type){case"integer_field":return{inputMode:"decimal"};case"email":return r&&!o.autoComplete&&(o.autoComplete="email"),x({type:"email",pattern:u.Z1,maxLength:i},o);case"gmap_zip":return r&&!o.autoComplete&&(o.autoComplete="postal-code"),x(x({},o),{maxLength:i,inputMode:"digits"===a.allowed_characters?"numeric":"text"});case"url":return r&&!o.autoComplete&&(o.autoComplete="url",o.maxLength=i),o;case"ssn":return x({inputMode:"numeric"},o);default:return o.maxLength=i,a.custom_autocomplete&&!o.autoComplete&&(o.autoComplete=a.custom_autocomplete),a.number_keypad||"digits"===a.allowed_characters?x({inputMode:"numeric"},o):o}}const Z=(0,o.memo)((function(e){var t,r,u=e.element,s=e.responsiveStyles,d=e.fieldLabel,f=e.elementProps,p=void 0===f?{}:f,S=e.required,O=void 0!==S&&S,E=e.disabled,R=void 0!==E&&E,Z=e.autoComplete,_=e.editMode,I=e.onAccept,T=void 0===I?function(){}:I,z=e.onEnter,A=void 0===z?function(){}:z,j=e.setRef,M=void 0===j?function(){}:j,B=e.inlineError,F=e.repeatIndex,P=void 0===F?null:F,H=e.children,X=k((0,o.useState)(!1),2),D=X[0],K=X[1],N=k((0,o.useState)(!1),2),q=N[0],W=N[1],Y=(0,c.Z)({element:u,error:B,breakpoint:s.getMobileBreakpoint()}),U=Y.borderStyles,$=Y.customBorder,G=Y.borderId,J=(0,o.useRef)(null),Q=(0,o.useRef)([]),V=(0,o.useRef)(null),ee=(0,h.OL)(u).value,te=(0,m.e7)(ee),re=u.servar,ne=(null!==(r=re.metadata.options)&&void 0!==r?r:[]).filter((function(e){return e})),oe=u.properties.tooltipText?30:8;return(0,n.BX)("div",x({ref:J,css:x({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:_?"none":"auto"},s.getTarget("fc"))},p,{children:[H,d,(0,n.BX)("div",x({css:x(x(x({position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"},s.getTarget("sub-fc")),R?s.getTarget("disabled"):{}),{"&:focus-within":x(x({},s.getTarget("active")),U.active),"&:hover":(0,y.wL)(R?{}:x(x({},s.getTarget("hover")),U.hover))})},{children:[(0,n.tZ)(v,x({allOptions:ne,value:te,showOptions:D,onSelect:function(e){var t,r,n;T(e,{}),K(!1),null===(n=null===(r=null===(t=V.current)||void 0===t?void 0:t.element)||void 0===r?void 0:r.focus)||void 0===n||n.call(r)},responsiveStyles:s,containerRef:J,listItemRef:Q,onHide:function(){return K(!1)},onInputFocus:function(){var e,t,r;return null===(r=null===(t=null===(e=V.current)||void 0===e?void 0:e.element)||void 0===t?void 0:t.focus)||void 0===r?void 0:r.call(t)}},{children:(0,n.tZ)(w.oc,x({id:re.key,name:re.key,ref:V,css:x(x(x({position:"relative",zIndex:g.rM,height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),s.getTarget("field")),(t={"&:focus":s.getTarget("field")["&:focus"]},t["&:focus ~ #".concat(G)]=Object.values(U.active)[0],t["&:not(:focus)"]=te||!u.properties.placeholder?{}:{color:"transparent !important"},t)),required:O,disabled:R,placeholder:"",value:te,"aria-label":u.properties.aria_label,onKeyDown:function(e){if("Enter"===e.key)A(e);else if(ne.length){if(!te&&["Backspace","Delete"].includes(e.key))return;if(["ArrowUp","ArrowLeft","ArrowRight"].includes(e.key))return;K("Escape"!==e.key),"ArrowDown"===e.key&&setTimeout((function(){var e;return null===(e=Q.current[0])||void 0===e?void 0:e.focus({preventScroll:!0})}),0)}},onBlur:function(e){e.relatedTarget&&Q.current.some((function(t){return t===e.relatedTarget}))||ne.length>0&&setTimeout((function(){return K(!1)}),200)},onFocus:y.ms,inputRef:M},L(re,ne,"on"===Z),C(re,te,q),{onAccept:T}))})),"ssn"===re.type&&te&&(0,n.tZ)("div",x({css:{position:"absolute",cursor:"pointer",insetInlineEnd:"".concat(oe,"px"),top:"calc(50% - 12px)",zIndex:g.rM},onClick:function(){return W((function(e){return!e}))},"aria-label":"Toggle SSN visibility"},{children:q?(0,n.tZ)(b.uL,{}):(0,n.tZ)(b.FX,{})})),$,(0,n.tZ)(i.Z,{value:te,element:u,responsiveStyles:s,repeatIndex:P}),(0,n.tZ)(a.Z,{containerRef:J,id:u.id,text:u.properties.tooltipText,responsiveStyles:s,repeat:u.repeat})]}))]}))}))},45398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(67294),o=r(39479);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}}}]);