@feathery/react 2.38.0 → 2.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/cjs/Form/grid/Element/index.d.ts.map +1 -1
  2. package/cjs/Form/grid/StyledContainer/index.d.ts +2 -1
  3. package/cjs/Form/grid/StyledContainer/index.d.ts.map +1 -1
  4. package/cjs/Form/index.d.ts.map +1 -1
  5. package/cjs/elements/basic/ImageElement.d.ts.map +1 -1
  6. package/cjs/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +1 -1
  7. package/cjs/elements/basic/ProgressBarElement/components/SegmentBar.d.ts.map +1 -1
  8. package/cjs/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +1 -1
  9. package/cjs/elements/basic/ProgressBarElement/components/SmoothBar.d.ts.map +1 -1
  10. package/cjs/elements/basic/ProgressBarElement/components/StepperBar.d.ts +16 -0
  11. package/cjs/elements/basic/ProgressBarElement/components/StepperBar.d.ts.map +1 -0
  12. package/cjs/elements/basic/ProgressBarElement/index.d.ts +1 -1
  13. package/cjs/elements/basic/ProgressBarElement/index.d.ts.map +1 -1
  14. package/cjs/elements/fields/index.d.ts +28 -23
  15. package/cjs/elements/fields/index.d.ts.map +1 -1
  16. package/cjs/elements/index.d.ts +66 -22
  17. package/cjs/elements/index.d.ts.map +1 -1
  18. package/cjs/{fthry_AssistantChat.DMRqYl7c.js → fthry_AssistantChat.DQ0U08nB.js} +4 -4
  19. package/cjs/{fthry_FormControl.Cl-dGLcM.js → fthry_FormControl.CGLQxWcB.js} +1 -1
  20. package/cjs/{fthry_InlineTooltip.B8DIhcwN.js → fthry_InlineTooltip.Di8A8FHv.js} +2 -2
  21. package/cjs/{fthry_Overlay.cDGh2blq.js → fthry_Overlay.Da9Aifek.js} +1 -1
  22. package/cjs/{fthry_PaymentMethodField.DBG_F2IV.js → fthry_PaymentMethodField.BCfRfF5k.js} +4 -4
  23. package/cjs/{fthry_Placeholder.D3e5FkES.js → fthry_Placeholder.DEc4QJJ4.js} +1 -1
  24. package/cjs/{fthry_ShowEyeIcon.Da2SnAC6.js → fthry_ShowEyeIcon.DUuKQNq7.js} +1 -1
  25. package/cjs/{fthry_highlighted-body-TPN3WLV5.BHwDjUKJ.js → fthry_highlighted-body-TPN3WLV5.sapB9BQx.js} +3 -3
  26. package/cjs/{fthry_index.CcDlE6Qp.js → fthry_index.-lo4kt_U.js} +1 -1
  27. package/cjs/{fthry_index.Bfi9gaRQ.js → fthry_index.0uHTYf8v.js} +4 -4
  28. package/cjs/{fthry_index.Cl5vVnOu.js → fthry_index.2hec0Cyq.js} +1 -1
  29. package/cjs/{fthry_index._rTrmGwo.js → fthry_index.BL8FLs1p.js} +379 -119
  30. package/cjs/{fthry_index.HtL5MFY2.js → fthry_index.BO0ubvlf.js} +1 -1
  31. package/cjs/{fthry_index.DVHeeCAd.js → fthry_index.BTKHmnww.js} +1 -1
  32. package/cjs/{fthry_index.DEnbUjkR.js → fthry_index.Bqr-JETA.js} +4 -4
  33. package/cjs/{fthry_index.8WMLSq-m.js → fthry_index.BvEoZLvr.js} +5 -5
  34. package/cjs/{fthry_index.DKbXGnnP.js → fthry_index.Bxvep-HH.js} +6 -6
  35. package/cjs/{fthry_index.Bq69xc_i.js → fthry_index.C4fLOWzK.js} +5 -5
  36. package/cjs/{fthry_index.z4phbmML.js → fthry_index.C9MjO1_2.js} +6 -6
  37. package/cjs/{fthry_index.71p3lEGO.js → fthry_index.CBXhgNiq.js} +5 -5
  38. package/cjs/{fthry_index.CUUU_mSN.js → fthry_index.CIczM5LF.js} +1 -1
  39. package/cjs/{fthry_index.DX0u8QrD.js → fthry_index.Cc253N4g.js} +2 -2
  40. package/cjs/{fthry_index.DD6R-HZB.js → fthry_index.D92_iqxj.js} +1 -1
  41. package/cjs/{fthry_index.C1bGkjXK.js → fthry_index.DRJnbdgq.js} +8 -8
  42. package/cjs/{fthry_index.DaWvIjDB.js → fthry_index.DpAKJ8nY.js} +2 -2
  43. package/cjs/{fthry_index.CE4Pt2Be.js → fthry_index.EDEcZRri.js} +5 -5
  44. package/cjs/{fthry_index.DGQK0BX6.js → fthry_index.KsIR58CL.js} +3 -3
  45. package/cjs/{fthry_index.Da2RxuWz.js → fthry_index.SCbU_F4C.js} +3 -3
  46. package/cjs/{fthry_index.DVl7lCQ4.js → fthry_index.ZWEzxCxs.js} +1 -1
  47. package/cjs/{fthry_index.CELRWX9K.js → fthry_index.bd_dascE.js} +1 -1
  48. package/cjs/{fthry_index.VY9IsOXx.js → fthry_index.hZwAxt4e.js} +6 -6
  49. package/cjs/{fthry_index.BHmognVe.js → fthry_index.iOhM0yii.js} +5 -5
  50. package/cjs/{fthry_index.B8RLVADy.js → fthry_index.nVNuvtTk.js} +1 -1
  51. package/cjs/{fthry_input.CNUxn07s.js → fthry_input.Cem2OoEV.js} +1 -1
  52. package/cjs/{fthry_mermaid-O7DHMXV3.C-jL0nU0.js → fthry_mermaid-O7DHMXV3.DtDL6zuT.js} +3 -3
  53. package/cjs/{fthry_script.CngcPx_9.js → fthry_script.CcpqD6sz.js} +1 -1
  54. package/cjs/{fthry_styles.BVmu9I22.js → fthry_styles.C570g4Qk.js} +1 -1
  55. package/cjs/{fthry_useElementSize.BgBAI35V.js → fthry_useElementSize.BTm7mSxv.js} +1 -1
  56. package/cjs/{fthry_useSalesforceSync.C1MgCEkl.js → fthry_useSalesforceSync.Bb_ko1ft.js} +1 -1
  57. package/cjs/{fthry_webfontloader.BgZRGUoe.js → fthry_webfontloader.DQj-dIFN.js} +1 -1
  58. package/cjs/index.d.ts +66 -22
  59. package/cjs/index.d.ts.map +1 -1
  60. package/cjs/index.js +1 -1
  61. package/dist/Form/grid/Element/index.d.ts.map +1 -1
  62. package/dist/Form/grid/StyledContainer/index.d.ts +2 -1
  63. package/dist/Form/grid/StyledContainer/index.d.ts.map +1 -1
  64. package/dist/Form/index.d.ts.map +1 -1
  65. package/dist/elements/basic/ImageElement.d.ts.map +1 -1
  66. package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +1 -1
  67. package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts.map +1 -1
  68. package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +1 -1
  69. package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts.map +1 -1
  70. package/dist/elements/basic/ProgressBarElement/components/StepperBar.d.ts +16 -0
  71. package/dist/elements/basic/ProgressBarElement/components/StepperBar.d.ts.map +1 -0
  72. package/dist/elements/basic/ProgressBarElement/index.d.ts +1 -1
  73. package/dist/elements/basic/ProgressBarElement/index.d.ts.map +1 -1
  74. package/dist/elements/fields/index.d.ts +28 -23
  75. package/dist/elements/fields/index.d.ts.map +1 -1
  76. package/dist/elements/index.d.ts +66 -22
  77. package/dist/elements/index.d.ts.map +1 -1
  78. package/dist/{fthry_AssistantChat.BpIazy4D.js → fthry_AssistantChat.D_blXDVn.js} +4 -4
  79. package/dist/{fthry_FormControl.VJETpF2_.js → fthry_FormControl.BAlGkOxw.js} +1 -1
  80. package/dist/{fthry_InlineTooltip.HYGB8l2S.js → fthry_InlineTooltip.CFWVGXML.js} +2 -2
  81. package/dist/{fthry_Overlay.DndK3JOJ.js → fthry_Overlay.BwPgEKz0.js} +1 -1
  82. package/dist/{fthry_PaymentMethodField.iCQc8h5O.js → fthry_PaymentMethodField.DU5n1W6P.js} +4 -4
  83. package/dist/{fthry_Placeholder.BRzhfZ1W.js → fthry_Placeholder.DXkvTQTB.js} +1 -1
  84. package/dist/{fthry_ShowEyeIcon.Cccxpke2.js → fthry_ShowEyeIcon.D_7XU7MB.js} +1 -1
  85. package/dist/{fthry_highlighted-body-TPN3WLV5._HIiKJRn.js → fthry_highlighted-body-TPN3WLV5.unZcvE33.js} +3 -3
  86. package/dist/{fthry_index.B_AxehyW.js → fthry_index.2IgipsEM.js} +6 -6
  87. package/dist/{fthry_index.P0AejkY4.js → fthry_index.B-nybZYJ.js} +5 -5
  88. package/dist/{fthry_index.Ca770hPU.js → fthry_index.B9DIVIQU.js} +1 -1
  89. package/dist/{fthry_index.BOItLjiR.js → fthry_index.BM2ld3tG.js} +8 -8
  90. package/dist/{fthry_index.BZZHsN5a.js → fthry_index.BTgeVAmS.js} +4 -4
  91. package/dist/{fthry_index.BQlKGMSZ.js → fthry_index.Bbc3lP0x.js} +6 -6
  92. package/dist/{fthry_index.DL46TGQr.js → fthry_index.BfNP3Kp1.js} +2 -2
  93. package/dist/{fthry_index.CQfKbwaC.js → fthry_index.BsBSZ5eS.js} +1 -1
  94. package/dist/{fthry_index.CBlXw7TW.js → fthry_index.Bv0Rd4n8.js} +379 -119
  95. package/dist/{fthry_index.CaQYjI5I.js → fthry_index.Bydv6C9o.js} +5 -5
  96. package/dist/{fthry_index.BZuK2sQ5.js → fthry_index.C2RescJg.js} +1 -1
  97. package/dist/{fthry_index.mxecJ9_a.js → fthry_index.C7DKIdK3.js} +6 -6
  98. package/dist/{fthry_index.BH5ZPwTL.js → fthry_index.CXEINKN6.js} +2 -2
  99. package/dist/{fthry_index.DOOj6cJp.js → fthry_index.CXcuEd6j.js} +1 -1
  100. package/dist/{fthry_index.08-lgbei.js → fthry_index.CZ9WEIQj.js} +5 -5
  101. package/dist/{fthry_index.JhHnGxYn.js → fthry_index.CsVcvrP3.js} +1 -1
  102. package/dist/{fthry_index.DHPFNhgl.js → fthry_index.CswL31zQ.js} +1 -1
  103. package/dist/{fthry_index.DwVO_QsO.js → fthry_index.D94NLNhy.js} +1 -1
  104. package/dist/{fthry_index.B020qTL1.js → fthry_index.DGbZqMXK.js} +5 -5
  105. package/dist/{fthry_index.-9Pe_RZJ.js → fthry_index.DKKxZ5bF.js} +1 -1
  106. package/dist/{fthry_index.DPAdqFeT.js → fthry_index.DVeINBpy.js} +3 -3
  107. package/dist/{fthry_index.CQOONMqP.js → fthry_index.DdyjeQle.js} +1 -1
  108. package/dist/{fthry_index.B2UzR5GS.js → fthry_index.DxbE60cC.js} +3 -3
  109. package/dist/{fthry_index.D7Lb5Krw.js → fthry_index.YWqg41F5.js} +5 -5
  110. package/dist/{fthry_index.DIIoaRob.js → fthry_index.mqd6gAHS.js} +4 -4
  111. package/dist/{fthry_input.DVAV1a0p.js → fthry_input.D1vjPw4v.js} +1 -1
  112. package/dist/{fthry_mermaid-O7DHMXV3.BdzSXu8K.js → fthry_mermaid-O7DHMXV3.Dby-9naO.js} +3 -3
  113. package/dist/{fthry_script.4UR41bnG.js → fthry_script.CdqUz_xN.js} +1 -1
  114. package/dist/{fthry_styles.BfM6iy4Q.js → fthry_styles.BwcJywy5.js} +1 -1
  115. package/dist/{fthry_useElementSize.BVjOicba.js → fthry_useElementSize.Bsa4K6S7.js} +1 -1
  116. package/dist/{fthry_useSalesforceSync.CXqC544h.js → fthry_useSalesforceSync.C6H1QGFx.js} +1 -1
  117. package/dist/{fthry_webfontloader.n8GaR_jB.js → fthry_webfontloader.CUla19Cs.js} +1 -1
  118. package/dist/index.d.ts +66 -22
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +1 -1
  121. package/package.json +2 -2
  122. package/umd/{AddressField.2d777eda22a67a0ed3a3.js → AddressField.c4188872f2a931394aa1.js} +1 -1
  123. package/umd/{DropdownMultiField.c8c926000cbed5ee771a.js → DropdownMultiField.72a44c0280217eeb5652.js} +1 -1
  124. package/umd/{PhoneField.6b9ad2d0d9387ef78a1f.js → PhoneField.8183bed71fa92767aa3a.js} +1 -1
  125. package/umd/{TextField.f5cc4a03e69d5872027b.js → TextField.28c59425e129e78a4551.js} +1 -1
  126. package/umd/index.js +1 -1
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[599],{9069:(e,n,t)=>{t.d(n,{Z:()=>l});var o=t(5944),r=function(){return r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r.apply(this,arguments)};function l(e){var n,t,l,a=e.value,i=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,p=e.inputFocused,d=void 0!==p&&p,f=e.repeatIndex,v=void 0===f?null:f,h=i.properties,y=null!==(l=(null!==(t=h.repeat_placeholder)&&void 0!==t?t:[])[null!=v?v:0])&&void 0!==l?l:h.placeholder||"",g=r(r({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,o.tZ)("span",r({css:r(r(r(r({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?g:{}),(n={},n["".concat(s,":focus ~ &")]=g,n))},{children:y}))}},8168:(e,n,t)=>{t.r(n),t.d(n,{default:()=>q});var o=t(5944),r=t(7294),l=t(6867),a=t(1587),i=t(1275),u=t(9069),c=t(5406),s=t(7600),p=t(7449),d=t(8776),f=t(2988),v=function(){return v=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},v.apply(this,arguments)},h=function(e){var n=e.children,t=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["children"]),l=s.c.Option,a=(0,r.useRef)(null),i=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),u=i[0],c=i[1],h=t.selectProps.containerRef;return t.data.isMoreIndicator?(0,o.tZ)("div",v({css:{padding:"8px 12px",color:"#999",fontStyle:"italic",fontSize:"0.9em",textAlign:"left",cursor:"default",userSelect:"none"}},{children:t.data.label})):(0,o.BX)("div",v({ref:a,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},{children:[(0,o.tZ)(l,v({},t,{children:n})),t.data.tooltip&&a.current&&(0,o.tZ)(p.Z,v({targetRef:a,containerRef:h,show:u,placement:"right"},{children:(0,o.tZ)(d.u,v({id:"tooltip-".concat(t.data.value),css:{zIndex:f.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:t.data.tooltip}))}))]}))},y=s.c.MultiValueRemove,g=function(e){var n=e.selectProps;if(!n.collapseSelected)return(0,o.tZ)(y,v({},e));var t=v(v({},e.innerProps),{onMouseDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,t)},onPointerDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),"touch"===t.pointerType&&t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onPointerDown)||void 0===l||l.call(r,t)},"data-feathery-multi-value-remove":"true"});return(0,o.tZ)(y,v({},e,{innerProps:t}))},m=function(e){var n=s.c.Control,t=e.selectProps.onControlPress,r=function(e,n){return!!(null==t?void 0:t(e,{isTouch:n}))&&(e.preventDefault(),e.stopPropagation(),!0)};return(0,o.tZ)(n,v({},e,{innerProps:v(v({},e.innerProps),{onPointerDown:function(n){var t,o;r(n,"touch"===n.pointerType)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onPointerDown)||void 0===o||o.call(t,n)},onMouseDown:function(n){var t,o;r(n,!1)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onMouseDown)||void 0===o||o.call(t,n)},onTouchStart:function(n){var t,o;r(n,!0)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onTouchStart)||void 0===o||o.call(t,n)}})}))},b=function(e){var n=e.collapsedCount,t=e.onPress;return n>0?(0,o.BX)("span",v({"aria-hidden":"true",className:"rs-collapsed-chip","data-feathery-collapsed-indicator":"true",onPointerDown:function(e){t&&("touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),t(e))},onMouseDown:function(e){t&&(e.preventDefault(),e.stopPropagation(),t(e))},onTouchStart:function(e){t&&(e.stopPropagation(),t(e))},onClick:function(e){t&&(e.stopPropagation(),t(e))}},{children:["+",n]})):null},C=function(e){var n=e.selectProps,t=s.c.MultiValueContainer;if(!n.collapseSelected)return(0,o.tZ)(t,v({},e));var r=(Array.isArray(n.value)?n.value:[]).findIndex((function(n){return n.value===e.data.value})),l=Math.max(n.visibleCount-1,0),a=n.collapsedCount>0&&!n.isMeasuring&&n.visibleCount>0&&r>=0&&r===l,i=(0,o.tZ)(t,v({},e,{children:e.children}));return a?(0,o.BX)(o.HY,{children:[i,(0,o.tZ)(b,{collapsedCount:n.collapsedCount,onPress:n.onCollapsedChipPress})]}):i},w=function(e){var n,t=e.selectProps,r=s.c.MultiValue,l=t.visibleCount,a=t.collapseSelected&&!t.isMeasuring&&e.index>=l,i=t.collapseSelected&&t.isMeasuring&&e.index>=l,u=e.innerProps&&"style"in e.innerProps?e.innerProps.style:void 0,c=null===(n=e.innerProps)||void 0===n?void 0:n.onPointerDown,p=v(v({},e.innerProps),{"data-feathery-multi-value":"true"}),d=t.collapseSelected;return p.onPointerDown=function(e){var n;if(d)return"touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),void(null===(n=t.onCollapsedChipPress)||void 0===n||n.call(t,e));e.stopPropagation(),null==c||c(e)},p.onMouseDown=function(n){var o,r,l;if(d)return n.preventDefault(),n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,n)},p.onTouchStart=function(n){var o,r,l;if(d)return n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onTouchStart)||void 0===l||l.call(r,n)},i?p.style=v(v({},u),{opacity:0,pointerEvents:"none",position:"absolute",left:0,top:0}):a?p.style=v(v({},u),{display:"none"}):u&&(p.style=u),(0,o.tZ)(r,v({},e,{selectProps:t,innerProps:p}))},S=t(3157),x=t(696),M=function(){return M=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},M.apply(this,arguments)},P=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(S.ZP,M({ref:n},e))}));P.displayName="DropdownSelect";var O=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(x.Z,M({ref:n},e))}));O.displayName="DropdownCreatableSelect";var k=function(){return k=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},k.apply(this,arguments)},R=t(9479),D=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},L=function(e){return e&&parseFloat(e)||0};var T=new Map,V=!1,E=function(){V=!1,T.forEach((function(e){var n="option"===e.type?"option entry":"selected value",t=1===e.count?"":" entries",o=e.contexts.length?" at ".concat(e.contexts.join(", ")):"";console.warn("[Feathery] ".concat(e.entityLabel,' "').concat(e.field,'" skipped ').concat(e.count," invalid ").concat(n).concat(t," (").concat(e.reason,")").concat(o,"."),e.sample)})),T.clear()},I=function(e){return null==e?null:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):null},_=function(e){var n=e.state,t=e.type,o=e.field,r=e.reason,l=e.context,a=e.payload,i=e.entityLabel,u=void 0===i?"Field":i,c="".concat(t,"|").concat(o,"|").concat(r,"|").concat(l);if(!n.has(c)){n.add(c);var s="".concat(t,"|").concat(o,"|").concat(r),p=T.get(s);p||(p={type:t,field:o,reason:r,entityLabel:u,count:0,contexts:[],sample:a},T.set(s,p)),p.count+=1,p.contexts.length<5&&p.contexts.push(l),void 0===p.sample&&(p.sample=a),V||(V=!0,"function"!=typeof queueMicrotask?Promise.resolve().then(E):queueMicrotask(E))}},A=function(e,n){var t=n.warningState,o=n.fieldKey,r=n.contextPrefix,l=n.labelOverrides,a=n.tooltipOverrides,i=n.labelMap,u=n.tooltipMap,c=n.entityLabel;return(Array.isArray(e)?e.filter((function(e){return null!=e})):[]).reduce((function(e,n,s){var p,d=function(e){var n=e.warningState,t=e.option,o=e.fieldKey,r=e.context,l=e.entityLabel,a="string"==typeof t||"number"==typeof t||"boolean"==typeof t?{value:t}:t;if(!a||"object"!=typeof a)return _({state:n,type:"option",field:o,reason:"invalid shape",context:r,payload:t,entityLabel:l}),null;var i=a,u=I(i.value);if(null===u)return _({state:n,type:"option",field:o,reason:"missing value",context:r,payload:t,entityLabel:l}),null;var c,s=u,p=i.label;"string"==typeof p?s=p:"number"!=typeof p&&"boolean"!=typeof p||(s=String(p));var d=i.tooltip;return"string"==typeof d?c=d:"number"!=typeof d&&"boolean"!=typeof d||(c=String(d)),{value:u,label:s,tooltip:c}}({warningState:t,option:n,fieldKey:o,context:"".concat(r,"[").concat(s,"]"),entityLabel:c});if(!d)return e;var f=d.label,v=null!==(p=d.tooltip)&&void 0!==p?p:"";if("string"==typeof n||"number"==typeof n||"boolean"==typeof n){var h=null==l?void 0:l[s],y=null==a?void 0:a[s];"string"==typeof h&&h.length?f=h:h&&(f=String(h)),"string"==typeof y&&y.length?v=y:y&&(v=String(y))}return i[d.value]=f,u[d.value]=v,e.push({value:d.value,label:f,tooltip:v}),e}),[])},Z=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},B=function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))},K=function(){return!0},W=function(){return W=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},W.apply(this,arguments)},j=function(){return j=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},j.apply(this,arguments)},F=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a};function q(e){var n,t=e.element,s=e.responsiveStyles,p=e.fieldLabel,d=e.inlineError,f=e.required,v=void 0!==f&&f,y=e.disabled,b=void 0!==y&&y,S=e.fieldVal,x=void 0===S?[]:S,M=e.repeatIndex,T=void 0===M?null:M,V=e.editMode,E=e.onChange,q=void 0===E?function(){}:E,N=e.elementProps,H=void 0===N?{}:N,z=e.rightToLeft,X=e.children,G=(0,l.Z)({element:t,error:d,breakpoint:s.getMobileBreakpoint()}),Y=G.borderStyles,J=G.customBorder,Q=(0,r.useRef)(null),U=F((0,r.useState)(!1),2),$=U[0],ee=U[1],ne=t.servar,te=ne.key,oe=(0,c.Z)(ne.metadata.salesforce_sync,V),re=oe.dynamicOptions,le=oe.loadingDynamicOptions,ae=oe.shouldSalesforceSync,ie=t.properties||{},ue=ie.translate||{},ce=ue.no_options?function(){return ue.no_options}:void 0,se=F((0,r.useState)(""),2),pe=se[0],de=se[1],fe=function(e){var n=e.fieldVal,t=e.fieldKey,o=e.servar,l=e.dynamicOptions,a=e.shouldSalesforceSync,i=e.repeatIndex,u=e.entityLabel,c=(0,r.useMemo)((function(){return new Set}),[t]),s=(0,r.useMemo)((function(){return Array.isArray(n)?n.reduce((function(e,n,o){var r=I(n);return null===r?(_({state:c,type:"value",field:t,reason:"unsupported value type",context:"fieldVal[".concat(o,"]"),payload:n,entityLabel:u}),e):(e.push(r),e)}),[]):(_({state:c,type:"value",field:t,reason:"expected array for multi-select value",context:"fieldVal",payload:n,entityLabel:u}),[])}),[t,n,c,u]),p=(0,r.useCallback)((function(e){var n=Array.isArray(e)?function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}(e),!1):[];return s.length?(s.forEach((function(e){if("string"!=typeof n[0]){var t=n;t.some((function(n){return I(null==n?void 0:n.value)===e}))||t.push({value:e,label:e})}else{var o=n;o.includes(e)||o.push(e)}})),n):n}),[s]),d=o.metadata.option_labels||[],f=o.metadata.option_tooltips||[],v=(0,r.useMemo)((function(){var e;if(a)return{source:p(l),contextPrefix:"dynamicOptions"};var n=null!==i?null===(e=o.metadata.repeat_options)||void 0===e?void 0:e[i]:void 0;return void 0!==n?{source:p(n),contextPrefix:"repeat_options"}:{source:p(o.metadata.options),contextPrefix:"options",labelOverrides:d,tooltipOverrides:f}}),[a,l,i,o.metadata.repeat_options,o.metadata.options,d,f,p]),h=(0,r.useMemo)((function(){var e={},n={};return{options:A(v.source,{warningState:c,fieldKey:t,contextPrefix:v.contextPrefix,labelOverrides:v.labelOverrides,tooltipOverrides:v.tooltipOverrides,labelMap:e,tooltipMap:n,entityLabel:u}),labelMap:e,tooltipMap:n}}),[t,u,v,c]),y=h.options,g=h.labelMap,m=h.tooltipMap,b=s.length?s.map((function(e){var n;return{label:null!==(n=g[e])&&void 0!==n?n:e,value:e,tooltip:m[e]}})):[];return{options:y,selectVal:b,labelMap:g,tooltipMap:m}}({fieldVal:x,fieldKey:te,servar:ne,dynamicOptions:re,shouldSalesforceSync:ae,repeatIndex:T,entityLabel:"Dropdown field"}),ve=fe.options,he=fe.selectVal,ye=function(e){var n=e.options,t=e.inputValue,o=e.selectedValues;return(0,r.useMemo)((function(){var e,r;if(n.length<=250)return{windowedOptions:n,filterOption:void 0,hiddenCount:0};var l,a=t.toLowerCase().trim(),i=new Set(o.map((function(e){return e.value})));if(l=a?n.filter((function(e){return e.label.toLowerCase().includes(a)})):n,l.length<=250)return{windowedOptions:l,filterOption:K,hiddenCount:0};var u=[],c=[];try{for(var s=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],o=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),p=s.next();!p.done;p=s.next()){var d=p.value;i.has(d.value)?u.push(d):c.push(d)}}catch(n){e={error:n}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}var f=Math.max(0,250-u.length),v=c.slice(0,f),h=B(B([],Z(u),!1),Z(v),!1),y=l.length-h.length;return y>0&&h.push({value:"__more_results_indicator__",label:"".concat(y," more result").concat(1===y?"":"s"," — refine your search"),isMoreIndicator:!0}),{windowedOptions:h,filterOption:K,hiddenCount:y}}),[n,t,o])}({options:ve,inputValue:pe,selectedValues:he}),ge=ye.windowedOptions,me=ye.filterOption,be=(0,r.useCallback)((function(e){de(e)}),[]),Ce=function(e){var n=e.containerRef,t=e.disabled,o=e.values,l=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),a=l[0],i=l[1],u=(0,r.useRef)(null),c=!a,s=function(e,n,t){var o=n.length,l=D((0,r.useState)(o),2),a=l[0],i=l[1],u=D((0,r.useState)(!1),2),c=u[0],s=u[1],p=D((0,r.useState)(0),2),d=p[0],f=p[1],v=(0,r.useRef)(!1),h=(0,r.useRef)(!1),y=(0,r.useRef)(!1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),b=(0,r.useRef)(null),C=(0,r.useRef)(o),w=(0,r.useRef)(null),S=(0,r.useRef)(null),x=(0,r.useRef)(!1);(0,r.useEffect)((function(){return function(){var e;null===(e=w.current)||void 0===e||e.remove(),w.current=null}}),[]);var M=(0,r.useCallback)((function(){t&&(v.current?h.current=!0:(v.current=!0,h.current=!1,y.current||s(!0),y.current=!0,f((function(e){return e+1}))))}),[e,t,o]);(0,r.useEffect)((function(){var e=S.current;if(S.current=n,t)if(e){var o=e.length!==n.length||e.some((function(e,t){var o;return e.value!==(null===(o=n[t])||void 0===o?void 0:o.value)}));o&&M()}else M()}),[t,M,n]),(0,r.useEffect)((function(){if(t){var n=e.current;if(n){var o=new ResizeObserver((function(e){var n=e[e.length-1];if(n){var t=n.contentRect.width;if(!v.current)return x.current?(x.current=!1,void(b.current=t)):null===b.current?(b.current=t,void M()):void(Math.abs(t-b.current)>20&&(b.current=t,M()))}}));return o.observe(n),function(){return o.disconnect()}}}}),[e,t,M]),(0,r.useLayoutEffect)((function(){if(v.current)return g.current=(0,R.Kv)().requestAnimationFrame((function(){v.current=!1,y.current=!1;var r,l=e.current,a=Math.min(C.current,o),u=null;if(t&&l){var c=function(e){var n,t,o=null!==(n=e.ownerDocument)&&void 0!==n?n:(0,R.Kv)().document,r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return null;var l=e.cloneNode(!0);l.setAttribute("data-feathery-collapse-measure","true"),l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.left="-10000px",l.style.top="0",l.style.width="".concat(r.width,"px"),l.style.maxWidth="".concat(r.width,"px"),l.style.height="auto",l.style.maxHeight="none",l.style.whiteSpace="normal",l.style.overflow="visible",o.body.appendChild(l);var a=Array.from(l.querySelectorAll('[data-feathery-multi-value="true"]'));a.forEach((function(e){e.style.removeProperty("display"),e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top")}));var i=null===(t=a[0])||void 0===t?void 0:t.parentElement;return i&&(i.style.flexWrap="wrap",i.style.whiteSpace="normal",i.style.display="flex"),l.querySelectorAll('[data-feathery-collapsed-indicator="true"]').forEach((function(e){return e.remove()})),{node:l,cleanup:function(){l.remove()}}}(l);c&&(u=c.node,r=c.cleanup)}if(t&&u){var p=Array.from(u.querySelectorAll('[data-feathery-multi-value="true"]'));if(p.length){var d=p[0].offsetTop;a=p.length;for(var f=0;f<p.length;f+=1)if(p[f].offsetTop-d>20){a=f;break}var g=p[0].parentElement;if(g&&o>a){var S=function(e){var n,t=w.current;if(!t){var o=null===(n=e.ownerDocument)||void 0===n?void 0:n.createElement("span");if(!o)return null;o.setAttribute("aria-hidden","true"),o.setAttribute("data-feathery-collapsed-indicator","true"),o.className="rs-collapsed-chip",o.style.visibility="hidden",o.style.position="absolute",o.style.pointerEvents="none",o.style.whiteSpace="nowrap",o.style.top="0",o.style.left="0",w.current=o,t=o}return e.contains(t)||e.appendChild(t),t}(g);if(S){for(var P=g.getBoundingClientRect(),O=(0,R.Kv)().getComputedStyle(g),k=L(O.columnGap)||L(O.gap),D=L(O.paddingLeft),T=L(O.paddingRight),V=Math.max(P.width-D-T,0),E=function(){S.textContent="+".concat(Math.max(o-a,0));var e=S.getBoundingClientRect(),n=(0,R.Kv)().getComputedStyle(S);return e.width+L(n.marginLeft)+L(n.marginRight)},I=o+1,_=0,A=0;a>0&&_<I;){A=E();var Z=p[a-1];if(!Z)break;var B=Z.getBoundingClientRect(),K=(0,R.Kv)().getComputedStyle(Z);if(B.right-P.left-D+(k>0?k:L(K.marginRight))+A<=V+20)break;a-=1,_+=1}_>=I&&(a=Math.max(Math.min(a,o-1),0))}}}}null==r||r();var W=a||(t&&n.length?1:0);i((function(e){return e===W?e:W})),s(!1),x.current=!0,null!==m.current&&(0,R.Kv)().cancelAnimationFrame(m.current),m.current=(0,R.Kv)().requestAnimationFrame((function(){m.current=null,e.current&&(b.current=e.current.getBoundingClientRect().width)})),t&&(C.current=a),h.current&&(h.current=!1,M())})),function(){null!==g.current&&((0,R.Kv)().cancelAnimationFrame(g.current),g.current=null),null!==m.current&&((0,R.Kv)().cancelAnimationFrame(m.current),m.current=null)}}),[t,d,M,o]),(0,r.useEffect)((function(){if(!t)return s(!1),v.current=!1,h.current=!1,y.current=!1,b.current=null,void(x.current=!1);i((function(e){var n=Math.min(C.current,o)||(o>0?1:0);return e===n?e:n}))}),[t,o]),(0,r.useEffect)((function(){C.current=Math.min(C.current,o)}),[o]);var P=t?Math.max(o-a,0):0;return{visibleCount:t?a:o,collapsedCount:P,isMeasuring:!!t&&c}}(n,o,c),p=s.collapsedCount,d=s.isMeasuring,f=s.visibleCount,v=(0,r.useCallback)((function(e){var n,t;i(!1);var o=u.current||null;(null==e?void 0:e.skipBlur)||null===(n=null==o?void 0:o.blur)||void 0===n||n.call(o),null===(t=null==o?void 0:o.closeMenu)||void 0===t||t.call(o)}),[]),h=(0,r.useCallback)((function(e){var n;if(!t&&!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))){var o=u.current||null;null===(n=null==o?void 0:o.focus)||void 0===n||n.call(o)}}),[t]),y=(0,r.useCallback)((function(e){h(e.target)}),[h]),g=(0,r.useCallback)((function(e){h(e.target)}),[h]),m=(0,r.useCallback)((function(){i(!0)}),[]),b=(0,r.useCallback)((function(){i(!1)}),[]);return(0,r.useEffect)((function(){var e=function(e){var t=n.current;t&&(t.contains(e.target)||v())},t=(0,R.me)();return t.addEventListener("pointerdown",e,!0),function(){t.removeEventListener("pointerdown",e,!0)}}),[v,n]),(0,r.useMemo)((function(){return{collapseSelected:c,collapsedCount:p,menu:{isOpen:a,open:m,close:b,forceClose:v},pointer:{onMouseDown:y,onTouchStart:g,reset:function(){}},measurement:{isMeasuring:d,visibleCount:f},selectRef:u}}),[c,p,v,b,m,y,g,a,d,f,u])}({containerRef:Q,disabled:b,values:he}),we=Ce.collapseSelected,Se=Ce.collapsedCount,xe=Ce.menu,Me=Ce.pointer,Pe=Ce.measurement,Oe=Ce.selectRef,ke=xe.open,Re=xe.close,De=xe.forceClose,Le=Me.onMouseDown,Te=Me.onTouchStart,Ve=Pe.isMeasuring,Ee=Pe.visibleCount,Ie=F((0,r.useState)(!1),2),_e=Ie[0],Ae=Ie[1],Ze=(0,r.useMemo)((function(){return{Control:m,Option:h,MultiValue:w,MultiValueContainer:C,MultiValueRemove:g}}),[]),Be=!!ne.max_length&&he.length>=ne.max_length||le,Ke=ne.metadata.creatable_options;if(Ke&&ue.create_option_label){var We=ue.create_option_label;n=We.includes("{value}")?function(e){return We.replace(/\{value\}/g,e)}:function(e){return"".concat(We,' "').concat(e,'"')}}var je=(0,r.useCallback)((function(e){var n=e.trim();if(!n)return!1;var t=n.toLowerCase(),o=ge.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));if(o)return!1;var r=he.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));return!r}),[ge,he]),Fe=(0,r.useCallback)((function(e){return je(e)}),[je]),qe=function(e){var n=e.selectRef,t=e.containerRef,o=e.disabled,l=e.isMenuOpen,a=e.setIsMenuOpen,i=e.openCollapseMenu,u=e.closeCollapseMenu,c=e.forceCloseCollapseMenu,s=e.focusOnMouseDown,p=e.focusOnTouchStart,d=e.selectVal,f=e.options,v=e.isCreatableInputValid,h=e.create,y=e.disableAllOptions,g=e.onChange,m=(0,r.useRef)(0),b=(0,r.useCallback)((function(){m.current=performance.now()+250}),[]),C=(0,r.useCallback)((function(){return n.current}),[n]),w=(0,r.useCallback)((function(){var e,n,t=C();t&&(b(),a(!0),i(),null===(e=t.focus)||void 0===e||e.call(t),null===(n=t.openMenu)||void 0===n||n.call(t,"first"))}),[b,i,a,C]),S=(0,r.useCallback)((function(e){a(!1),u(),c(e)}),[u,c,a]),x=(0,r.useCallback)((function(){a(!0),i(),C()}),[i,a,C]),M=(0,r.useCallback)((function(){performance.now()<m.current||(a(!1),u())}),[u,a]),P=(0,r.useCallback)((function(e){return!l&&(!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))&&(w(),!0))}),[l,w]),O=(0,r.useCallback)((function(e){if(P(e.target))return e.preventDefault(),void e.stopPropagation();s(e)}),[s,P]),k=(0,r.useCallback)((function(e){P(e.target)?e.stopPropagation():p(e)}),[p,P]),D=(0,r.useCallback)((function(e,n){var t=n.isTouch;return!!P(e.currentTarget)&&(!t&&"preventDefault"in e&&e.preventDefault(),e.stopPropagation(),!0)}),[P]),L=(0,r.useCallback)((function(e){P(e.currentTarget)&&e.stopPropagation()}),[P]),T=(0,r.useCallback)((function(e,t){var o,r;"remove-value"!==t.action&&"pop-value"!==t.action||b();var a="remove-value"===t.action||"pop-value"===t.action||"select-option"===t.action||"create-option"===t.action;a&&l||S(a?{skipBlur:!0}:void 0),g(e,t),null===(r=null===(o=n.current)||void 0===o?void 0:o.focus)||void 0===r||r.call(o)}),[S,b,l,g,n]),V=(0,r.useCallback)((function(){var e,t,o,r=n.current,a=null==r?void 0:r.state,i=null==a?void 0:a.focusedOption,u=null!=i?i:null,c=null==u?void 0:u.value,s=Boolean(c),p=Boolean(h&&(null==u?void 0:u.__isNew__)),y=(t=null==a?void 0:a.inputValue,o=null!==(e=null==r?void 0:r.inputRef)&&void 0!==e?e:null,"string"==typeof t?t:"string"==typeof(null==o?void 0:o.value)?o.value:"").trim(),g=y.length>0,m=y.toLowerCase(),b=g&&f.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),C=g&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),w=h&&g&&(v?v(y):!b&&!C),S=null==c?void 0:c.toLowerCase(),x=Boolean(S&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===S})));return l?w?"allow":p?"block":s?x?"block":"allow":"block":"block-open"}),[h,y,l,v,f,d,n]),E=(0,r.useCallback)((function(e){var t,o=V();if("allow"===o)return o;if(e.defaultPrevented||e.preventDefault(),e.isPropagationStopped()||e.stopPropagation(),"block-open"===o){var r=n.current;null===(t=null==r?void 0:r.openMenu)||void 0===t||t.call(r,"first")}return o}),[V,n]),I=(0,r.useCallback)((function(e){"Enter"!==e.key||o||E(e)}),[o,E]),_=(0,r.useCallback)((function(e){o||("Escape"!==e.key?"Enter"===e.key&&E(e):m.current=0)}),[o,E]);return(0,r.useEffect)((function(){if(l){var e=(0,R.me)(),n=function(e){var n=t.current;n&&(n.contains(e.target)||S())};return e.addEventListener("pointerdown",n,!0),function(){e.removeEventListener("pointerdown",n,!0)}}}),[S,t,l]),{handleWrapperMouseDown:O,handleWrapperTouchStart:k,handleKeyDownCapture:_,handleChange:T,handleSelectKeyDown:I,handleMenuOpen:x,handleMenuClose:M,handleControlPress:D,handleCollapsedChipPress:L,extendCloseSuppression:b}}({selectRef:Oe,containerRef:Q,disabled:b,isMenuOpen:_e,setIsMenuOpen:Ae,openCollapseMenu:ke,closeCollapseMenu:Re,forceCloseCollapseMenu:De,focusOnMouseDown:Le,focusOnTouchStart:Te,selectVal:he,options:ge,isCreatableInputValid:Ke?je:void 0,create:Ke,disableAllOptions:Be,onChange:q}),Ne=qe.handleWrapperMouseDown,He=qe.handleWrapperTouchStart,ze=qe.handleKeyDownCapture,Xe=qe.handleChange,Ge=qe.handleSelectKeyDown,Ye=qe.handleMenuOpen,Je=qe.handleMenuClose,Qe=qe.handleControlPress,Ue=qe.handleCollapsedChipPress,$e=qe.extendCloseSuppression,en=ie.tooltipText?30:10,nn=Ke?O:P;s.applyFontStyles("field");var tn=we&&!Ve&&!$,on=(0,r.useMemo)((function(){return function(e){var n=e.chevronPosition,t=e.fontColor,o=e.menuZIndex,r=e.responsiveStyles,l=e.rightToLeft,a={control:function(e){return k(k(k({},e),r.getTarget("field")),{width:"100%",height:"100%",minHeight:"inherit",border:"none",boxShadow:"none",backgroundColor:"transparent",backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M0 0.776454L0.970744 0L5 4.2094L9.02926 0L10 0.776454L5 6L0 0.776454Z' fill='%23".concat(t,"'/></svg>\")"),backgroundRepeat:"no-repeat",backgroundPosition:"".concat(l?"left":"right"," ").concat(n,"px center"),position:"relative"})},container:function(e){return k(k({},e),{height:"100%",minHeight:"inherit"})},valueContainer:function(e,n){var t,o,r,l,a=n.selectProps,i=!a.collapseSelected||!!a.inputValue,u=i?{paddingTop:void 0!==e.paddingTop?e.paddingTop:"8px",paddingBottom:void 0!==e.paddingBottom?e.paddingBottom:"8px"}:{};return k(k(k(k({},e),u),{paddingInlineEnd:28,display:"flex",minWidth:0,flexWrap:i?"wrap":"nowrap",alignItems:i?"flex-start":"center",alignContent:i?"flex-start":"center"}),a.collapseSelected?{"& .rs-collapsed-chip":{display:"inline-flex",alignItems:"center",padding:"3px 8px",margin:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2,backgroundColor:null!==(o=e.backgroundColor)&&void 0!==o?o:"rgba(221, 221, 221, 0.8)",color:null!==(r=e.color)&&void 0!==r?r:"#333",fontSize:null!==(l=e.fontSize)&&void 0!==l?l:"0.85em"}}:{})},multiValueLabel:function(e,n){return n.selectProps.collapseSelected?k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,wordBreak:"break-word",maxWidth:"100%"}):k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3})},indicatorSeparator:function(){return{display:"none"}},indicatorsContainer:function(){return{display:"none"}},menu:function(e){return k(k({},e),{zIndex:o,textAlign:"start"})},menuList:function(e){return k(k({},e),{display:"grid",overflowX:"auto",overflowY:"auto"})},option:function(e){return k(k({},e),{whiteSpace:"nowrap"})},multiValue:function(e,n){var t;return n.selectProps.collapseSelected?k(k({},e),{maxWidth:"100%",minWidth:0,overflow:"hidden",marginInline:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2}):e},input:function(e,n){var t=n.selectProps;return t.collapseSelected&&t.inputHidden?k(k({},e),{opacity:0,maxWidth:"1px",width:"1px",minWidth:"1px",flexBasis:0,flexGrow:0,flexShrink:0,margin:0,padding:0,pointerEvents:"none",position:"absolute",top:0,right:0,overflow:"hidden","> input":{width:"1px",minWidth:"1px",opacity:0,pointerEvents:"none"}}):e}};return a}({chevronPosition:en,fontColor:t.styles.font_color,menuZIndex:i.m,responsiveStyles:s,rightToLeft:z})}),[en,t.styles.font_color,s,z]),rn=function(e){var n=e.selectRef,t=e.containerRef,o=e.servar,l=e.selectVal,a=e.options,i=e.required,u=e.disabled,c=e.isMenuOpen,s=e.loadingDynamicOptions,p=e.selectStyles,d=e.selectComponentsOverride,f=e.collapseSelected,v=e.visibleCount,h=e.collapsedCount,y=e.isMeasuring,g=e.shouldHideInput,m=e.handleChange,b=e.setFocused,C=e.handleSelectKeyDown,w=e.handleMenuOpen,S=e.handleMenuClose,x=e.handleCollapsedChipPress,M=e.handleControlPress,P=e.extendCloseSuppression,O=e.noOptionsMessage,k=e.create,R=e.formatCreateLabel,D=e.isValidNewOption,L=e.onInputChange,T=e.filterOption,V=e.ariaLabel;return(0,r.useMemo)((function(){return W(W(W({ref:n,inputId:o.key,isMulti:!0,value:l,options:a,required:i,isDisabled:u,menuIsOpen:c,styles:p,components:d,placeholder:"",openMenuOnClick:!f,closeMenuOnSelect:!1,tabSelectsValue:!1,blurInputOnSelect:!1,filterOption:T,onChange:m,onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onKeyDown:C,onMenuOpen:w,onMenuClose:S,onInputChange:L,isOptionDisabled:function(e){return e.isMoreIndicator||o.max_length&&l.length>=o.max_length||s},noOptionsMessage:k?function(){return null}:O},f?{containerRef:t,visibleCount:v,collapsedCount:h,isMeasuring:y,collapseSelected:!0,inputHidden:g,onCollapsedChipPress:x,onControlPress:M,onMultiValueRemovePointer:P}:{containerRef:t,visibleCount:a.length,collapsedCount:0,isMeasuring:!1,collapseSelected:!1}),k&&W(W({},R?{formatCreateLabel:R}:{}),D?{isValidNewOption:D}:{})),{"aria-label":V})}),[n,o.key,o.max_length,l,a,i,u,c,p,d,f,t,v,h,y,g,m,b,C,w,S,x,M,P,s,O,k,R,D,L,V,T])}({selectRef:Oe,containerRef:Q,servar:ne,selectVal:he,options:ge,required:v,disabled:b,isMenuOpen:_e,loadingDynamicOptions:le,selectStyles:on,selectComponentsOverride:Ze,collapseSelected:we,visibleCount:Ee,collapsedCount:Se,isMeasuring:Ve,shouldHideInput:tn,handleChange:Xe,setFocused:ee,handleSelectKeyDown:Ge,handleMenuOpen:Ye,handleMenuClose:Je,handleCollapsedChipPress:Ue,handleControlPress:Qe,extendCloseSuppression:$e,noOptionsMessage:ce,create:Ke,formatCreateLabel:n,isValidNewOption:Ke?Fe:void 0,onInputChange:be,filterOption:me,ariaLabel:t.properties.aria_label});return(0,o.BX)("div",j({ref:Q,css:j({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:V?"none":"auto"},s.getTarget("fc"))},H,{children:[X,p,(0,o.BX)("div",j({css:j(j(j({position:"relative",width:"100%",whiteSpace:"nowrap"},s.getTarget("sub-fc")),b?s.getTarget("disabled"):{}),{"&:hover":b?{}:j(j({},s.getTarget("hover")),Y.hover),"&&":$?j(j({},s.getTarget("active")),Y.active):{}}),onMouseDown:Ne,onTouchStart:He,onKeyDownCapture:ze},{children:[J,(0,o.tZ)(nn,j({},rn,{inputValue:pe})),(0,o.tZ)(u.Z,{value:he.length||$,element:t,responsiveStyles:s,repeatIndex:T}),(0,o.tZ)(a.Z,{containerRef:Q,id:t.id,text:t.properties.tooltipText,responsiveStyles:s,repeat:t.repeat})]}))]}))}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[599],{9069:(e,n,t)=>{t.d(n,{Z:()=>l});var o=t(5944),r=function(){return r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r.apply(this,arguments)};function l(e){var n,t,l,a=e.value,i=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,p=e.inputFocused,d=void 0!==p&&p,f=e.repeatIndex,v=void 0===f?null:f,h=i.properties,y=null!==(l=(null!==(t=h.repeat_placeholder)&&void 0!==t?t:[])[null!=v?v:0])&&void 0!==l?l:h.placeholder||"",g=r(r({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,o.tZ)("span",r({css:r(r(r(r({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?g:{}),(n={},n["".concat(s,":focus ~ &")]=g,n))},{children:y}))}},8168:(e,n,t)=>{t.r(n),t.d(n,{default:()=>q});var o=t(5944),r=t(7294),l=t(6867),a=t(1587),i=t(1275),u=t(9069),c=t(5406),s=t(7600),p=t(7449),d=t(8776),f=t(2988),v=function(){return v=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},v.apply(this,arguments)},h=function(e){var n=e.children,t=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["children"]),l=s.c.Option,a=(0,r.useRef)(null),i=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),u=i[0],c=i[1],h=t.selectProps.containerRef;return t.data.isMoreIndicator?(0,o.tZ)("div",v({css:{padding:"8px 12px",color:"#999",fontStyle:"italic",fontSize:"0.9em",textAlign:"left",cursor:"default",userSelect:"none"}},{children:t.data.label})):(0,o.BX)("div",v({ref:a,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},{children:[(0,o.tZ)(l,v({},t,{children:n})),t.data.tooltip&&a.current&&(0,o.tZ)(p.Z,v({targetRef:a,containerRef:h,show:u,placement:"right"},{children:(0,o.tZ)(d.u,v({id:"tooltip-".concat(t.data.value),css:{zIndex:f.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:t.data.tooltip}))}))]}))},y=s.c.MultiValueRemove,g=function(e){var n=e.selectProps;if(!n.collapseSelected)return(0,o.tZ)(y,v({},e));var t=v(v({},e.innerProps),{onMouseDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,t)},onPointerDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),"touch"===t.pointerType&&t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onPointerDown)||void 0===l||l.call(r,t)},"data-feathery-multi-value-remove":"true"});return(0,o.tZ)(y,v({},e,{innerProps:t}))},m=function(e){var n=s.c.Control,t=e.selectProps.onControlPress,r=function(e,n){return!!(null==t?void 0:t(e,{isTouch:n}))&&(e.preventDefault(),e.stopPropagation(),!0)};return(0,o.tZ)(n,v({},e,{innerProps:v(v({},e.innerProps),{onPointerDown:function(n){var t,o;r(n,"touch"===n.pointerType)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onPointerDown)||void 0===o||o.call(t,n)},onMouseDown:function(n){var t,o;r(n,!1)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onMouseDown)||void 0===o||o.call(t,n)},onTouchStart:function(n){var t,o;r(n,!0)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onTouchStart)||void 0===o||o.call(t,n)}})}))},b=function(e){var n=e.collapsedCount,t=e.onPress;return n>0?(0,o.BX)("span",v({"aria-hidden":"true",className:"rs-collapsed-chip","data-feathery-collapsed-indicator":"true",onPointerDown:function(e){t&&("touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),t(e))},onMouseDown:function(e){t&&(e.preventDefault(),e.stopPropagation(),t(e))},onTouchStart:function(e){t&&(e.stopPropagation(),t(e))},onClick:function(e){t&&(e.stopPropagation(),t(e))}},{children:["+",n]})):null},C=function(e){var n=e.selectProps,t=s.c.MultiValueContainer;if(!n.collapseSelected)return(0,o.tZ)(t,v({},e));var r=(Array.isArray(n.value)?n.value:[]).findIndex((function(n){return n.value===e.data.value})),l=Math.max(n.visibleCount-1,0),a=n.collapsedCount>0&&!n.isMeasuring&&n.visibleCount>0&&r>=0&&r===l,i=(0,o.tZ)(t,v({},e,{children:e.children}));return a?(0,o.BX)(o.HY,{children:[i,(0,o.tZ)(b,{collapsedCount:n.collapsedCount,onPress:n.onCollapsedChipPress})]}):i},w=function(e){var n,t=e.selectProps,r=s.c.MultiValue,l=t.visibleCount,a=t.collapseSelected&&!t.isMeasuring&&e.index>=l,i=t.collapseSelected&&t.isMeasuring&&e.index>=l,u=e.innerProps&&"style"in e.innerProps?e.innerProps.style:void 0,c=null===(n=e.innerProps)||void 0===n?void 0:n.onPointerDown,p=v(v({},e.innerProps),{"data-feathery-multi-value":"true"}),d=t.collapseSelected;return p.onPointerDown=function(e){var n;if(d)return"touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),void(null===(n=t.onCollapsedChipPress)||void 0===n||n.call(t,e));e.stopPropagation(),null==c||c(e)},p.onMouseDown=function(n){var o,r,l;if(d)return n.preventDefault(),n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,n)},p.onTouchStart=function(n){var o,r,l;if(d)return n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onTouchStart)||void 0===l||l.call(r,n)},i?p.style=v(v({},u),{opacity:0,pointerEvents:"none",position:"absolute",left:0,top:0}):a?p.style=v(v({},u),{display:"none"}):u&&(p.style=u),(0,o.tZ)(r,v({},e,{selectProps:t,innerProps:p}))},S=t(3157),x=t(696),M=function(){return M=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},M.apply(this,arguments)},P=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(S.ZP,M({ref:n},e))}));P.displayName="DropdownSelect";var O=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(x.Z,M({ref:n},e))}));O.displayName="DropdownCreatableSelect";var k=function(){return k=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},k.apply(this,arguments)},R=t(9479),D=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},L=function(e){return e&&parseFloat(e)||0};var T=new Map,V=!1,E=function(){V=!1,T.forEach((function(e){var n="option"===e.type?"option entry":"selected value",t=1===e.count?"":" entries",o=e.contexts.length?" at ".concat(e.contexts.join(", ")):"";console.warn("[Feathery] ".concat(e.entityLabel,' "').concat(e.field,'" skipped ').concat(e.count," invalid ").concat(n).concat(t," (").concat(e.reason,")").concat(o,"."),e.sample)})),T.clear()},I=function(e){return null==e?null:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):null},_=function(e){var n=e.state,t=e.type,o=e.field,r=e.reason,l=e.context,a=e.payload,i=e.entityLabel,u=void 0===i?"Field":i,c="".concat(t,"|").concat(o,"|").concat(r,"|").concat(l);if(!n.has(c)){n.add(c);var s="".concat(t,"|").concat(o,"|").concat(r),p=T.get(s);p||(p={type:t,field:o,reason:r,entityLabel:u,count:0,contexts:[],sample:a},T.set(s,p)),p.count+=1,p.contexts.length<5&&p.contexts.push(l),void 0===p.sample&&(p.sample=a),V||(V=!0,"function"!=typeof queueMicrotask?Promise.resolve().then(E):queueMicrotask(E))}},A=function(e,n){var t=n.warningState,o=n.fieldKey,r=n.contextPrefix,l=n.labelOverrides,a=n.tooltipOverrides,i=n.labelMap,u=n.tooltipMap,c=n.entityLabel;return(Array.isArray(e)?e.filter((function(e){return null!=e})):[]).reduce((function(e,n,s){var p,d=function(e){var n=e.warningState,t=e.option,o=e.fieldKey,r=e.context,l=e.entityLabel,a="string"==typeof t||"number"==typeof t||"boolean"==typeof t?{value:t}:t;if(!a||"object"!=typeof a)return _({state:n,type:"option",field:o,reason:"invalid shape",context:r,payload:t,entityLabel:l}),null;var i=a,u=I(i.value);if(null===u)return _({state:n,type:"option",field:o,reason:"missing value",context:r,payload:t,entityLabel:l}),null;var c,s=u,p=i.label;"string"==typeof p?s=p:"number"!=typeof p&&"boolean"!=typeof p||(s=String(p));var d=i.tooltip;return"string"==typeof d?c=d:"number"!=typeof d&&"boolean"!=typeof d||(c=String(d)),{value:u,label:s,tooltip:c}}({warningState:t,option:n,fieldKey:o,context:"".concat(r,"[").concat(s,"]"),entityLabel:c});if(!d)return e;var f=d.label,v=null!==(p=d.tooltip)&&void 0!==p?p:"";if("string"==typeof n||"number"==typeof n||"boolean"==typeof n){var h=null==l?void 0:l[s],y=null==a?void 0:a[s];"string"==typeof h&&h.length?f=h:h&&(f=String(h)),"string"==typeof y&&y.length?v=y:y&&(v=String(y))}return i[d.value]=f,u[d.value]=v,e.push({value:d.value,label:f,tooltip:v}),e}),[])},Z=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},B=function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))},K=function(){return!0},W=function(){return W=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},W.apply(this,arguments)},j=function(){return j=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},j.apply(this,arguments)},F=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a};function q(e){var n,t=e.element,s=e.responsiveStyles,p=e.fieldLabel,d=e.inlineError,f=e.required,v=void 0!==f&&f,y=e.disabled,b=void 0!==y&&y,S=e.fieldVal,x=void 0===S?[]:S,M=e.repeatIndex,T=void 0===M?null:M,V=e.editMode,E=e.onChange,q=void 0===E?function(){}:E,N=e.elementProps,H=void 0===N?{}:N,z=e.rightToLeft,X=e.children,G=(0,l.Z)({element:t,error:d,breakpoint:s.getMobileBreakpoint()}),Y=G.borderStyles,J=G.customBorder,Q=(0,r.useRef)(null),U=F((0,r.useState)(!1),2),$=U[0],ee=U[1],ne=t.servar,te=ne.key,oe=(0,c.Z)(ne.metadata.salesforce_sync,V),re=oe.dynamicOptions,le=oe.loadingDynamicOptions,ae=oe.shouldSalesforceSync,ie=t.properties||{},ue=ie.translate||{},ce=ue.no_options?function(){return ue.no_options}:void 0,se=F((0,r.useState)(""),2),pe=se[0],de=se[1],fe=function(e){var n=e.fieldVal,t=e.fieldKey,o=e.servar,l=e.dynamicOptions,a=e.shouldSalesforceSync,i=e.repeatIndex,u=e.entityLabel,c=(0,r.useMemo)((function(){return new Set}),[t]),s=(0,r.useMemo)((function(){return Array.isArray(n)?n.reduce((function(e,n,o){var r=I(n);return null===r?(_({state:c,type:"value",field:t,reason:"unsupported value type",context:"fieldVal[".concat(o,"]"),payload:n,entityLabel:u}),e):(e.push(r),e)}),[]):(_({state:c,type:"value",field:t,reason:"expected array for multi-select value",context:"fieldVal",payload:n,entityLabel:u}),[])}),[t,n,c,u]),p=(0,r.useCallback)((function(e){var n=Array.isArray(e)?function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}(e),!1):[];return s.length?(s.forEach((function(e){if("string"!=typeof n[0]){var t=n;t.some((function(n){return I(null==n?void 0:n.value)===e}))||t.push({value:e,label:e})}else{var o=n;o.includes(e)||o.push(e)}})),n):n}),[s]),d=o.metadata.option_labels||[],f=o.metadata.option_tooltips||[],v=(0,r.useMemo)((function(){var e;if(a)return{source:p(l),contextPrefix:"dynamicOptions"};var n=null!==i?null===(e=o.metadata.repeat_options)||void 0===e?void 0:e[i]:void 0;return void 0!==n?{source:p(n),contextPrefix:"repeat_options"}:{source:p(o.metadata.options),contextPrefix:"options",labelOverrides:d,tooltipOverrides:f}}),[a,l,i,o.metadata.repeat_options,o.metadata.options,d,f,p]),h=(0,r.useMemo)((function(){var e={},n={};return{options:A(v.source,{warningState:c,fieldKey:t,contextPrefix:v.contextPrefix,labelOverrides:v.labelOverrides,tooltipOverrides:v.tooltipOverrides,labelMap:e,tooltipMap:n,entityLabel:u}),labelMap:e,tooltipMap:n}}),[t,u,v,c]),y=h.options,g=h.labelMap,m=h.tooltipMap,b=s.length?s.map((function(e){var n;return{label:null!==(n=g[e])&&void 0!==n?n:e,value:e,tooltip:m[e]}})):[];return{options:y,selectVal:b,labelMap:g,tooltipMap:m}}({fieldVal:x,fieldKey:te,servar:ne,dynamicOptions:re,shouldSalesforceSync:ae,repeatIndex:T,entityLabel:"Dropdown field"}),ve=fe.options,he=fe.selectVal,ye=function(e){var n=e.options,t=e.inputValue,o=e.selectedValues;return(0,r.useMemo)((function(){var e,r;if(n.length<=250)return{windowedOptions:n,filterOption:void 0,hiddenCount:0};var l,a=t.toLowerCase().trim(),i=new Set(o.map((function(e){return e.value})));if(l=a?n.filter((function(e){return e.label.toLowerCase().includes(a)})):n,l.length<=250)return{windowedOptions:l,filterOption:K,hiddenCount:0};var u=[],c=[];try{for(var s=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],o=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),p=s.next();!p.done;p=s.next()){var d=p.value;i.has(d.value)?u.push(d):c.push(d)}}catch(n){e={error:n}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}var f=Math.max(0,250-u.length),v=c.slice(0,f),h=B(B([],Z(u),!1),Z(v),!1),y=l.length-h.length;return y>0&&h.push({value:"__more_results_indicator__",label:"".concat(y," more result").concat(1===y?"":"s"," — refine your search"),isMoreIndicator:!0}),{windowedOptions:h,filterOption:K,hiddenCount:y}}),[n,t,o])}({options:ve,inputValue:pe,selectedValues:he}),ge=ye.windowedOptions,me=ye.filterOption,be=(0,r.useCallback)((function(e){de(e)}),[]),Ce=function(e){var n=e.containerRef,t=e.disabled,o=e.values,l=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),a=l[0],i=l[1],u=(0,r.useRef)(null),c=!a,s=function(e,n,t){var o=n.length,l=D((0,r.useState)(o),2),a=l[0],i=l[1],u=D((0,r.useState)(!1),2),c=u[0],s=u[1],p=D((0,r.useState)(0),2),d=p[0],f=p[1],v=(0,r.useRef)(!1),h=(0,r.useRef)(!1),y=(0,r.useRef)(!1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),b=(0,r.useRef)(null),C=(0,r.useRef)(o),w=(0,r.useRef)(null),S=(0,r.useRef)(null),x=(0,r.useRef)(!1);(0,r.useEffect)((function(){return function(){var e;null===(e=w.current)||void 0===e||e.remove(),w.current=null}}),[]);var M=(0,r.useCallback)((function(){t&&(v.current?h.current=!0:(v.current=!0,h.current=!1,y.current||s(!0),y.current=!0,f((function(e){return e+1}))))}),[e,t,o]);(0,r.useEffect)((function(){var e=S.current;if(S.current=n,t)if(e){var o=e.length!==n.length||e.some((function(e,t){var o;return e.value!==(null===(o=n[t])||void 0===o?void 0:o.value)}));o&&M()}else M()}),[t,M,n]),(0,r.useEffect)((function(){if(t){var n=e.current;if(n){var o=new ResizeObserver((function(e){var n=e[e.length-1];if(n){var t=n.contentRect.width;if(!v.current)return x.current?(x.current=!1,void(b.current=t)):null===b.current?(b.current=t,void M()):void(Math.abs(t-b.current)>20&&(b.current=t,M()))}}));return o.observe(n),function(){return o.disconnect()}}}}),[e,t,M]),(0,r.useLayoutEffect)((function(){if(v.current)return g.current=(0,R.Kv)().requestAnimationFrame((function(){v.current=!1,y.current=!1;var r,l=e.current,a=Math.min(C.current,o),u=null;if(t&&l){var c=function(e){var n,t,o=null!==(n=e.ownerDocument)&&void 0!==n?n:(0,R.Kv)().document,r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return null;var l=e.cloneNode(!0);l.setAttribute("data-feathery-collapse-measure","true"),l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.left="-10000px",l.style.top="0",l.style.width="".concat(r.width,"px"),l.style.maxWidth="".concat(r.width,"px"),l.style.height="auto",l.style.maxHeight="none",l.style.whiteSpace="normal",l.style.overflow="visible",o.body.appendChild(l);var a=Array.from(l.querySelectorAll('[data-feathery-multi-value="true"]'));a.forEach((function(e){e.style.removeProperty("display"),e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top")}));var i=null===(t=a[0])||void 0===t?void 0:t.parentElement;return i&&(i.style.flexWrap="wrap",i.style.whiteSpace="normal",i.style.display="flex"),l.querySelectorAll('[data-feathery-collapsed-indicator="true"]').forEach((function(e){return e.remove()})),{node:l,cleanup:function(){l.remove()}}}(l);c&&(u=c.node,r=c.cleanup)}if(t&&u){var p=Array.from(u.querySelectorAll('[data-feathery-multi-value="true"]'));if(p.length){var d=p[0].offsetTop;a=p.length;for(var f=0;f<p.length;f+=1)if(p[f].offsetTop-d>20){a=f;break}var g=p[0].parentElement;if(g&&o>a){var S=function(e){var n,t=w.current;if(!t){var o=null===(n=e.ownerDocument)||void 0===n?void 0:n.createElement("span");if(!o)return null;o.setAttribute("aria-hidden","true"),o.setAttribute("data-feathery-collapsed-indicator","true"),o.className="rs-collapsed-chip",o.style.visibility="hidden",o.style.position="absolute",o.style.pointerEvents="none",o.style.whiteSpace="nowrap",o.style.top="0",o.style.left="0",w.current=o,t=o}return e.contains(t)||e.appendChild(t),t}(g);if(S){for(var P=g.getBoundingClientRect(),O=(0,R.Kv)().getComputedStyle(g),k=L(O.columnGap)||L(O.gap),D=L(O.paddingLeft),T=L(O.paddingRight),V=Math.max(P.width-D-T,0),E=function(){S.textContent="+".concat(Math.max(o-a,0));var e=S.getBoundingClientRect(),n=(0,R.Kv)().getComputedStyle(S);return e.width+L(n.marginLeft)+L(n.marginRight)},I=o+1,_=0,A=0;a>0&&_<I;){A=E();var Z=p[a-1];if(!Z)break;var B=Z.getBoundingClientRect(),K=(0,R.Kv)().getComputedStyle(Z);if(B.right-P.left-D+(k>0?k:L(K.marginRight))+A<=V+20)break;a-=1,_+=1}_>=I&&(a=Math.max(Math.min(a,o-1),0))}}}}null==r||r();var W=a||(t&&n.length?1:0);i((function(e){return e===W?e:W})),s(!1),x.current=!0,null!==m.current&&(0,R.Kv)().cancelAnimationFrame(m.current),m.current=(0,R.Kv)().requestAnimationFrame((function(){m.current=null,e.current&&(b.current=e.current.getBoundingClientRect().width)})),t&&(C.current=a),h.current&&(h.current=!1,M())})),function(){null!==g.current&&((0,R.Kv)().cancelAnimationFrame(g.current),g.current=null),null!==m.current&&((0,R.Kv)().cancelAnimationFrame(m.current),m.current=null)}}),[t,d,M,o]),(0,r.useEffect)((function(){if(!t)return s(!1),v.current=!1,h.current=!1,y.current=!1,b.current=null,void(x.current=!1);i((function(e){var n=Math.min(C.current,o)||(o>0?1:0);return e===n?e:n}))}),[t,o]),(0,r.useEffect)((function(){C.current=Math.min(C.current,o)}),[o]);var P=t?Math.max(o-a,0):0;return{visibleCount:t?a:o,collapsedCount:P,isMeasuring:!!t&&c}}(n,o,c),p=s.collapsedCount,d=s.isMeasuring,f=s.visibleCount,v=(0,r.useCallback)((function(e){var n,t;i(!1);var o=u.current||null;(null==e?void 0:e.skipBlur)||null===(n=null==o?void 0:o.blur)||void 0===n||n.call(o),null===(t=null==o?void 0:o.closeMenu)||void 0===t||t.call(o)}),[]),h=(0,r.useCallback)((function(e){var n;if(!t&&!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))){var o=u.current||null;null===(n=null==o?void 0:o.focus)||void 0===n||n.call(o)}}),[t]),y=(0,r.useCallback)((function(e){h(e.target)}),[h]),g=(0,r.useCallback)((function(e){h(e.target)}),[h]),m=(0,r.useCallback)((function(){i(!0)}),[]),b=(0,r.useCallback)((function(){i(!1)}),[]);return(0,r.useEffect)((function(){var e=function(e){var t=n.current;t&&(t.contains(e.target)||v())},t=(0,R.me)();return t.addEventListener("pointerdown",e,!0),function(){t.removeEventListener("pointerdown",e,!0)}}),[v,n]),(0,r.useMemo)((function(){return{collapseSelected:c,collapsedCount:p,menu:{isOpen:a,open:m,close:b,forceClose:v},pointer:{onMouseDown:y,onTouchStart:g,reset:function(){}},measurement:{isMeasuring:d,visibleCount:f},selectRef:u}}),[c,p,v,b,m,y,g,a,d,f,u])}({containerRef:Q,disabled:b,values:he}),we=Ce.collapseSelected,Se=Ce.collapsedCount,xe=Ce.menu,Me=Ce.pointer,Pe=Ce.measurement,Oe=Ce.selectRef,ke=xe.open,Re=xe.close,De=xe.forceClose,Le=Me.onMouseDown,Te=Me.onTouchStart,Ve=Pe.isMeasuring,Ee=Pe.visibleCount,Ie=F((0,r.useState)(!1),2),_e=Ie[0],Ae=Ie[1],Ze=(0,r.useMemo)((function(){return{Control:m,Option:h,MultiValue:w,MultiValueContainer:C,MultiValueRemove:g}}),[]),Be=!!ne.max_length&&he.length>=ne.max_length||le,Ke=ne.metadata.creatable_options;if(Ke&&ue.create_option_label){var We=ue.create_option_label;n=We.includes("{value}")?function(e){return We.replace(/\{value\}/g,e)}:function(e){return"".concat(We,' "').concat(e,'"')}}var je=(0,r.useCallback)((function(e){var n=e.trim();if(!n)return!1;var t=n.toLowerCase(),o=ge.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));if(o)return!1;var r=he.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));return!r}),[ge,he]),Fe=(0,r.useCallback)((function(e){return je(e)}),[je]),qe=function(e){var n=e.selectRef,t=e.containerRef,o=e.disabled,l=e.isMenuOpen,a=e.setIsMenuOpen,i=e.openCollapseMenu,u=e.closeCollapseMenu,c=e.forceCloseCollapseMenu,s=e.focusOnMouseDown,p=e.focusOnTouchStart,d=e.selectVal,f=e.options,v=e.isCreatableInputValid,h=e.create,y=e.disableAllOptions,g=e.onChange,m=(0,r.useRef)(0),b=(0,r.useCallback)((function(){m.current=performance.now()+250}),[]),C=(0,r.useCallback)((function(){return n.current}),[n]),w=(0,r.useCallback)((function(){var e,n,t=C();t&&(b(),a(!0),i(),null===(e=t.focus)||void 0===e||e.call(t),null===(n=t.openMenu)||void 0===n||n.call(t,"first"))}),[b,i,a,C]),S=(0,r.useCallback)((function(e){a(!1),u(),c(e)}),[u,c,a]),x=(0,r.useCallback)((function(){a(!0),i(),C()}),[i,a,C]),M=(0,r.useCallback)((function(){performance.now()<m.current||(a(!1),u())}),[u,a]),P=(0,r.useCallback)((function(e){return!l&&(!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))&&(w(),!0))}),[l,w]),O=(0,r.useCallback)((function(e){if(P(e.target))return e.preventDefault(),void e.stopPropagation();s(e)}),[s,P]),k=(0,r.useCallback)((function(e){P(e.target)?e.stopPropagation():p(e)}),[p,P]),D=(0,r.useCallback)((function(e,n){var t=n.isTouch;return!!P(e.currentTarget)&&(!t&&"preventDefault"in e&&e.preventDefault(),e.stopPropagation(),!0)}),[P]),L=(0,r.useCallback)((function(e){P(e.currentTarget)&&e.stopPropagation()}),[P]),T=(0,r.useCallback)((function(e,t){var o,r;"remove-value"!==t.action&&"pop-value"!==t.action||b();var a="remove-value"===t.action||"pop-value"===t.action||"select-option"===t.action||"create-option"===t.action;a&&l||S(a?{skipBlur:!0}:void 0),g(e,t),null===(r=null===(o=n.current)||void 0===o?void 0:o.focus)||void 0===r||r.call(o)}),[S,b,l,g,n]),V=(0,r.useCallback)((function(){var e,t,o,r=n.current,a=null==r?void 0:r.state,i=null==a?void 0:a.focusedOption,u=null!=i?i:null,c=null==u?void 0:u.value,s=Boolean(c),p=Boolean(h&&(null==u?void 0:u.__isNew__)),y=(t=null==a?void 0:a.inputValue,o=null!==(e=null==r?void 0:r.inputRef)&&void 0!==e?e:null,"string"==typeof t?t:"string"==typeof(null==o?void 0:o.value)?o.value:"").trim(),g=y.length>0,m=y.toLowerCase(),b=g&&f.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),C=g&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),w=h&&g&&(v?v(y):!b&&!C),S=null==c?void 0:c.toLowerCase(),x=Boolean(S&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===S})));return l?w?"allow":p?"block":s?x?"block":"allow":"block":"block-open"}),[h,y,l,v,f,d,n]),E=(0,r.useCallback)((function(e){var t,o=V();if("allow"===o)return o;if(e.defaultPrevented||e.preventDefault(),e.isPropagationStopped()||e.stopPropagation(),"block-open"===o){var r=n.current;null===(t=null==r?void 0:r.openMenu)||void 0===t||t.call(r,"first")}return o}),[V,n]),I=(0,r.useCallback)((function(e){"Enter"!==e.key||o||E(e)}),[o,E]),_=(0,r.useCallback)((function(e){o||("Escape"!==e.key?"Enter"===e.key&&E(e):m.current=0)}),[o,E]);return(0,r.useEffect)((function(){if(l){var e=(0,R.me)(),n=function(e){var n=t.current;n&&(n.contains(e.target)||S())};return e.addEventListener("pointerdown",n,!0),function(){e.removeEventListener("pointerdown",n,!0)}}}),[S,t,l]),{handleWrapperMouseDown:O,handleWrapperTouchStart:k,handleKeyDownCapture:_,handleChange:T,handleSelectKeyDown:I,handleMenuOpen:x,handleMenuClose:M,handleControlPress:D,handleCollapsedChipPress:L,extendCloseSuppression:b}}({selectRef:Oe,containerRef:Q,disabled:b,isMenuOpen:_e,setIsMenuOpen:Ae,openCollapseMenu:ke,closeCollapseMenu:Re,forceCloseCollapseMenu:De,focusOnMouseDown:Le,focusOnTouchStart:Te,selectVal:he,options:ge,isCreatableInputValid:Ke?je:void 0,create:Ke,disableAllOptions:Be,onChange:q}),Ne=qe.handleWrapperMouseDown,He=qe.handleWrapperTouchStart,ze=qe.handleKeyDownCapture,Xe=qe.handleChange,Ge=qe.handleSelectKeyDown,Ye=qe.handleMenuOpen,Je=qe.handleMenuClose,Qe=qe.handleControlPress,Ue=qe.handleCollapsedChipPress,$e=qe.extendCloseSuppression,en=ie.tooltipText?30:10,nn=Ke?O:P;s.applyFontStyles("field");var tn=we&&!Ve&&!$,on=(0,r.useMemo)((function(){return function(e){var n=e.chevronPosition,t=e.fontColor,o=e.menuZIndex,r=e.responsiveStyles,l=e.rightToLeft,a={control:function(e){return k(k(k({},e),r.getTarget("field")),{width:"100%",height:"100%",minHeight:"inherit",border:"none",boxShadow:"none",backgroundColor:"transparent",backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M0 0.776454L0.970744 0L5 4.2094L9.02926 0L10 0.776454L5 6L0 0.776454Z' fill='%23".concat(t,"'/></svg>\")"),backgroundRepeat:"no-repeat",backgroundPosition:"".concat(l?"left":"right"," ").concat(n,"px center"),position:"relative"})},container:function(e){return k(k({},e),{height:"100%",minHeight:"inherit"})},valueContainer:function(e,n){var t,o,r,l,a=n.selectProps,i=!a.collapseSelected||!!a.inputValue,u=i?{paddingTop:void 0!==e.paddingTop?e.paddingTop:"8px",paddingBottom:void 0!==e.paddingBottom?e.paddingBottom:"8px"}:{};return k(k(k(k({},e),u),{paddingInlineEnd:28,display:"flex",minWidth:0,flexWrap:i?"wrap":"nowrap",alignItems:i?"flex-start":"center",alignContent:i?"flex-start":"center"}),a.collapseSelected?{"& .rs-collapsed-chip":{display:"inline-flex",alignItems:"center",padding:"3px 8px",margin:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2,backgroundColor:null!==(o=e.backgroundColor)&&void 0!==o?o:"rgba(221, 221, 221, 0.8)",color:null!==(r=e.color)&&void 0!==r?r:"#333",fontSize:null!==(l=e.fontSize)&&void 0!==l?l:"0.85em"}}:{})},multiValueLabel:function(e,n){return n.selectProps.collapseSelected?k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,wordBreak:"break-word",maxWidth:"100%"}):k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3})},indicatorSeparator:function(){return{display:"none"}},indicatorsContainer:function(){return{display:"none"}},menu:function(e){return k(k({},e),{zIndex:o,textAlign:"start"})},menuList:function(e){return k(k({},e),{display:"grid",overflowX:"auto",overflowY:"auto"})},option:function(e){return k(k({},e),{whiteSpace:"nowrap"})},multiValue:function(e,n){var t;return n.selectProps.collapseSelected?k(k({},e),{maxWidth:"100%",minWidth:0,overflow:"hidden",marginInline:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2}):e},input:function(e,n){var t=n.selectProps;return t.collapseSelected&&t.inputHidden?k(k({},e),{opacity:0,maxWidth:"1px",width:"1px",minWidth:"1px",flexBasis:0,flexGrow:0,flexShrink:0,margin:0,padding:0,pointerEvents:"none",position:"absolute",top:0,right:0,overflow:"hidden","> input":{width:"1px",minWidth:"1px",opacity:0,pointerEvents:"none"}}):e}};return a}({chevronPosition:en,fontColor:t.styles.font_color,menuZIndex:i.m6,responsiveStyles:s,rightToLeft:z})}),[en,t.styles.font_color,s,z]),rn=function(e){var n=e.selectRef,t=e.containerRef,o=e.servar,l=e.selectVal,a=e.options,i=e.required,u=e.disabled,c=e.isMenuOpen,s=e.loadingDynamicOptions,p=e.selectStyles,d=e.selectComponentsOverride,f=e.collapseSelected,v=e.visibleCount,h=e.collapsedCount,y=e.isMeasuring,g=e.shouldHideInput,m=e.handleChange,b=e.setFocused,C=e.handleSelectKeyDown,w=e.handleMenuOpen,S=e.handleMenuClose,x=e.handleCollapsedChipPress,M=e.handleControlPress,P=e.extendCloseSuppression,O=e.noOptionsMessage,k=e.create,R=e.formatCreateLabel,D=e.isValidNewOption,L=e.onInputChange,T=e.filterOption,V=e.ariaLabel;return(0,r.useMemo)((function(){return W(W(W({ref:n,inputId:o.key,isMulti:!0,value:l,options:a,required:i,isDisabled:u,menuIsOpen:c,styles:p,components:d,placeholder:"",openMenuOnClick:!f,closeMenuOnSelect:!1,tabSelectsValue:!1,blurInputOnSelect:!1,filterOption:T,onChange:m,onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onKeyDown:C,onMenuOpen:w,onMenuClose:S,onInputChange:L,isOptionDisabled:function(e){return e.isMoreIndicator||o.max_length&&l.length>=o.max_length||s},noOptionsMessage:k?function(){return null}:O},f?{containerRef:t,visibleCount:v,collapsedCount:h,isMeasuring:y,collapseSelected:!0,inputHidden:g,onCollapsedChipPress:x,onControlPress:M,onMultiValueRemovePointer:P}:{containerRef:t,visibleCount:a.length,collapsedCount:0,isMeasuring:!1,collapseSelected:!1}),k&&W(W({},R?{formatCreateLabel:R}:{}),D?{isValidNewOption:D}:{})),{"aria-label":V})}),[n,o.key,o.max_length,l,a,i,u,c,p,d,f,t,v,h,y,g,m,b,C,w,S,x,M,P,s,O,k,R,D,L,V,T])}({selectRef:Oe,containerRef:Q,servar:ne,selectVal:he,options:ge,required:v,disabled:b,isMenuOpen:_e,loadingDynamicOptions:le,selectStyles:on,selectComponentsOverride:Ze,collapseSelected:we,visibleCount:Ee,collapsedCount:Se,isMeasuring:Ve,shouldHideInput:tn,handleChange:Xe,setFocused:ee,handleSelectKeyDown:Ge,handleMenuOpen:Ye,handleMenuClose:Je,handleCollapsedChipPress:Ue,handleControlPress:Qe,extendCloseSuppression:$e,noOptionsMessage:ce,create:Ke,formatCreateLabel:n,isValidNewOption:Ke?Fe:void 0,onInputChange:be,filterOption:me,ariaLabel:t.properties.aria_label});return(0,o.BX)("div",j({ref:Q,css:j({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:V?"none":"auto"},s.getTarget("fc"))},H,{children:[X,p,(0,o.BX)("div",j({css:j(j(j({position:"relative",width:"100%",whiteSpace:"nowrap"},s.getTarget("sub-fc")),b?s.getTarget("disabled"):{}),{"&:hover":b?{}:j(j({},s.getTarget("hover")),Y.hover),"&&":$?j(j({},s.getTarget("active")),Y.active):{}}),onMouseDown:Ne,onTouchStart:He,onKeyDownCapture:ze},{children:[J,(0,o.tZ)(nn,j({},rn,{inputValue:pe})),(0,o.tZ)(u.Z,{value:he.length||$,element:t,responsiveStyles:s,repeatIndex:T}),(0,o.tZ)(a.Z,{containerRef:Q,id:t.id,text:t.properties.tooltipText,responsiveStyles:s,repeat:t.repeat})]}))]}))}}}]);
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[213],{1587:(e,a,r)=>{r.d(a,{Z:()=>f});var i=r(5944),c=r(7294),t=r(8776),n=r(5096),o=r(2988),u=r(4665),l=r(7449),s=r(9479),A=function(){return A=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},A.apply(this,arguments)};function f(e){var a=e.id,r=e.text,f=e.responsiveStyles,d=e.absolute,m=void 0===d||d,p=e.containerRef,h=e.repeat,g=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(!1),2),v=g[0],S=g[1],y=(0,c.useRef)(null);if(!(r=(0,u.xf)(r,h)))return null;var C=(0,s.tq)();return(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",A({ref:y,onMouseEnter:C?void 0:function(){return S(!0)},onMouseLeave:C?void 0:function(){return S(!1)},onFocus:function(){return S(!0)},onBlur:function(){return S(!1)},onClick:function(){return S((function(e){return!e}))},css:m?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:o.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,i.tZ)(n.by,{cssStyles:f.getTarget("tooltipIcon")})})),(0,i.tZ)(l.Z,A({show:v,targetRef:y,containerRef:p,placement:"left",onHide:function(){return S(!1)},offset:8},{children:(0,i.tZ)(t.u,A({id:"tooltip-".concat(a),css:{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"}}},{children:r}))}))]})}},7449:(e,a,r)=>{r.d(a,{Z:()=>u});var i=r(5944),c=r(7294),t=r(3935),n=r(9479),o=function(){return o=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},o.apply(this,arguments)};const u=function(e){var a=e.show,r=e.targetRef,u=e.children,A=e.onHide,f=e.placement,d=void 0===f?"bottom-start":f,m=e.offset,p=void 0===m?0:m,h=e.zIndex,g=void 0===h?1e3:h,v=e.containerRef,S=(0,c.useRef)(null),y=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(null),2),C=y[0],M=y[1],E=(0,c.useCallback)((function(){return(null==v?void 0:v.current)||(0,n.me)().body}),[v]),b=(0,c.useCallback)((function(){var e;if(a&&r.current&&S.current){var i=(0,n.Kv)(),c=E();if(c){var t=r.current.getBoundingClientRect(),o=S.current.getBoundingClientRect(),u=c.getBoundingClientRect(),A=s(d,t,o,p),f=A.top,m=A.left,h=f+o.height,g=m+o.width,v=f>=0&&h<=i.innerHeight,y=m>=0&&g<=i.innerWidth;if(!v||!y){var C=l(d,!v,!y);C!==d&&(f=(e=s(C,t,o,p)).top,m=e.left)}var b=c===(0,n.me)().body,R=b?f+i.scrollY:f-u.top,U=b?m+i.scrollX:m-u.left;M((function(e){return e&&e.top===R&&e.left===U?e:{top:R,left:U}}))}}}),[a,d,p,E,r]),R=(0,c.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){b(),e=!1})))}}),[b])();if((0,c.useLayoutEffect)((function(){a&&b()}),[a,b]),(0,c.useEffect)((function(){if(a){var e=(0,n.Kv)(),i=E();if(i){e.addEventListener("resize",R),e.addEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.addEventListener("scroll",R);var c=new ResizeObserver((function(){return R()}));return r.current&&c.observe(r.current),i!==(0,n.me)().body&&c.observe(i),function(){e.removeEventListener("resize",R),e.removeEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.removeEventListener("scroll",R),c.disconnect()}}}}),[a,R,E,r]),(0,c.useEffect)((function(){if(a){var e=function(e){"Escape"===e.key&&(M(null),null==A||A())},i=function(e){var a=e.target;S.current&&!S.current.contains(a)&&r.current&&!r.current.contains(a)&&(M(null),null==A||A())},c=(0,n.me)();return c.addEventListener("mousedown",i),c.addEventListener("keydown",e),function(){c.removeEventListener("mousedown",i),c.removeEventListener("keydown",e)}}}),[a,A,r]),!a)return null;var U=E();return U?(0,t.createPortal)((0,i.tZ)("div",o({ref:S,style:o(o({position:"absolute"},C||{top:-9999,left:-9999}),{zIndex:g})},{children:u})),U):(0,i.tZ)(i.HY,{children:u})};var l=function(e,a,r){if(a){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,a,r,i){switch(void 0===i&&(i=0),e){case"top":return{top:a.top-r.height-i,left:a.left+(a.width-r.width)/2};case"top-start":return{top:a.top-r.height-i,left:a.left};case"top-end":return{top:a.top-r.height-i,left:a.right-r.width};case"left":return{top:a.top+(a.height-r.height)/2,left:a.left-r.width-i};case"left-start":return{top:a.top,left:a.left-r.width-i};case"left-end":return{top:a.bottom-r.height,left:a.left-r.width-i};case"bottom":default:return{top:a.bottom+i,left:a.left+(a.width-r.width)/2};case"bottom-start":return{top:a.bottom+i,left:a.left};case"bottom-end":return{top:a.bottom+i,left:a.right-r.width};case"right":return{top:a.top+(a.height-r.height)/2,left:a.right+i};case"right-start":return{top:a.top,left:a.right+i};case"right-end":return{top:a.bottom-r.height,left:a.right+i}}}},9069:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(5944),c=function(){return c=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},c.apply(this,arguments)};function t(e){var a,r,t,n=e.value,o=e.element,u=e.responsiveStyles,l=e.type,s=void 0===l?"input":l,A=e.inputFocused,f=void 0!==A&&A,d=e.repeatIndex,m=void 0===d?null:d,p=o.properties,h=null!==(t=(null!==(r=p.repeat_placeholder)&&void 0!==r?r:[])[null!=m?m:0])&&void 0!==t?t:p.placeholder||"",g=c(c({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,i.tZ)("span",c({css:c(c(c(c({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),n?u.getTarget("placeholderFocus"):{}),f?g:{}),(a={},a["".concat(s,":focus ~ &")]=g,a))},{children:h}))}},8776:(e,a,r)=>{r.d(a,{u:()=>n});var i=r(5944),c=r(2988),t=function(){return t=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},t.apply(this,arguments)},n=function(e){var a=e.children,r=e.css,n=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["children","css"]);return(0,i.tZ)("div",t({css:t({zIndex:c.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)},n,{children:(0,i.tZ)("div",t({className:"tooltip-inner"},{children:a}))}))}},6067:(e,a,r)=>{r.r(a),r.d(a,{default:()=>P});var i=r(5944),c=r(7294);function t(e,a,r){return e.clearRect(0,0,100,100),e.fillStyle=r,e.fillText(a,0,0),e.getImageData(0,0,1,1).data.join(",")}function n(e){const a=function(){const e=document.createElement("canvas");e.width=e.height=1;const a=e.getContext("2d",{willReadFrequently:!0});return a.textBaseline="top",a.font='100px "Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',a.scale(.01,.01),a}(),r=t(a,e,"#fff"),i=t(a,e,"#000");return i===r&&!i.startsWith("0,0,0,")}const o={"Africa/Abidjan":{c:["CI","BF","GH","GM","GN","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{c:["GH"]},"Africa/Addis_Ababa":{c:["ET"]},"Africa/Algiers":{c:["DZ"]},"Africa/Asmara":{c:["ER"]},"Africa/Asmera":{c:["ER"]},"Africa/Bamako":{c:["ML"]},"Africa/Bangui":{c:["CF"]},"Africa/Banjul":{c:["GM"]},"Africa/Bissau":{c:["GW"]},"Africa/Blantyre":{c:["MW"]},"Africa/Brazzaville":{c:["CG"]},"Africa/Bujumbura":{c:["BI"]},"Africa/Cairo":{c:["EG"]},"Africa/Casablanca":{c:["MA"]},"Africa/Ceuta":{c:["ES"]},"Africa/Conakry":{c:["GN"]},"Africa/Dakar":{c:["SN"]},"Africa/Dar_es_Salaam":{c:["TZ"]},"Africa/Djibouti":{c:["DJ"]},"Africa/Douala":{c:["CM"]},"Africa/El_Aaiun":{c:["EH"]},"Africa/Freetown":{c:["SL"]},"Africa/Gaborone":{c:["BW"]},"Africa/Harare":{c:["ZW"]},"Africa/Johannesburg":{c:["ZA","LS","SZ"]},"Africa/Juba":{c:["SS"]},"Africa/Kampala":{c:["UG"]},"Africa/Khartoum":{c:["SD"]},"Africa/Kigali":{c:["RW"]},"Africa/Kinshasa":{c:["CD"]},"Africa/Lagos":{c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{c:["GA"]},"Africa/Lome":{c:["TG"]},"Africa/Luanda":{c:["AO"]},"Africa/Lubumbashi":{c:["CD"]},"Africa/Lusaka":{c:["ZM"]},"Africa/Malabo":{c:["GQ"]},"Africa/Maputo":{c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{c:["LS"]},"Africa/Mbabane":{c:["SZ"]},"Africa/Mogadishu":{c:["SO"]},"Africa/Monrovia":{c:["LR"]},"Africa/Nairobi":{c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{c:["TD"]},"Africa/Niamey":{c:["NE"]},"Africa/Nouakchott":{c:["MR"]},"Africa/Ouagadougou":{c:["BF"]},"Africa/Porto-Novo":{c:["BJ"]},"Africa/Sao_Tome":{c:["ST"]},"Africa/Timbuktu":{c:["ML"]},"Africa/Tripoli":{c:["LY"]},"Africa/Tunis":{c:["TN"]},"Africa/Windhoek":{c:["NA"]},"America/Adak":{c:["US"]},"America/Anchorage":{c:["US"]},"America/Anguilla":{c:["AI"]},"America/Antigua":{c:["AG"]},"America/Araguaina":{c:["BR"]},"America/Argentina/Buenos_Aires":{c:["AR"]},"America/Argentina/Catamarca":{c:["AR"]},"America/Argentina/Cordoba":{c:["AR"]},"America/Argentina/Jujuy":{c:["AR"]},"America/Argentina/La_Rioja":{c:["AR"]},"America/Argentina/Mendoza":{c:["AR"]},"America/Argentina/Rio_Gallegos":{c:["AR"]},"America/Argentina/Salta":{c:["AR"]},"America/Argentina/San_Juan":{c:["AR"]},"America/Argentina/San_Luis":{c:["AR"]},"America/Argentina/Tucuman":{c:["AR"]},"America/Argentina/Ushuaia":{c:["AR"]},"America/Aruba":{c:["AW"]},"America/Asuncion":{c:["PY"]},"America/Atikokan":{c:["CA"]},"America/Bahia":{c:["BR"]},"America/Bahia_Banderas":{c:["MX"]},"America/Barbados":{c:["BB"]},"America/Belem":{c:["BR"]},"America/Belize":{c:["BZ"]},"America/Blanc-Sablon":{c:["CA"]},"America/Boa_Vista":{c:["BR"]},"America/Bogota":{c:["CO"]},"America/Boise":{c:["US"]},"America/Cambridge_Bay":{c:["CA"]},"America/Campo_Grande":{c:["BR"]},"America/Cancun":{c:["MX"]},"America/Caracas":{c:["VE"]},"America/Cayenne":{c:["GF"]},"America/Cayman":{c:["KY"]},"America/Chicago":{c:["US"]},"America/Chihuahua":{c:["MX"]},"America/Coral_Harbour":{c:["CA"]},"America/Costa_Rica":{c:["CR"]},"America/Creston":{c:["CA"]},"America/Cuiaba":{c:["BR"]},"America/Curacao":{c:["CW"]},"America/Danmarkshavn":{c:["GL"]},"America/Dawson":{c:["CA"]},"America/Dawson_Creek":{c:["CA"]},"America/Denver":{c:["US"]},"America/Detroit":{c:["US"]},"America/Dominica":{c:["DM"]},"America/Edmonton":{c:["CA"]},"America/Eirunepe":{c:["BR"]},"America/El_Salvador":{c:["SV"]},"America/Fort_Nelson":{c:["CA"]},"America/Fortaleza":{c:["BR"]},"America/Glace_Bay":{c:["CA"]},"America/Goose_Bay":{c:["CA"]},"America/Grand_Turk":{c:["TC"]},"America/Grenada":{c:["GD"]},"America/Guadeloupe":{c:["GP"]},"America/Guatemala":{c:["GT"]},"America/Guayaquil":{c:["EC"]},"America/Guyana":{c:["GY"]},"America/Halifax":{c:["CA"]},"America/Havana":{c:["CU"]},"America/Hermosillo":{c:["MX"]},"America/Indiana/Indianapolis":{c:["US"]},"America/Indiana/Knox":{c:["US"]},"America/Indiana/Marengo":{c:["US"]},"America/Indiana/Petersburg":{c:["US"]},"America/Indiana/Tell_City":{c:["US"]},"America/Indiana/Vevay":{c:["US"]},"America/Indiana/Vincennes":{c:["US"]},"America/Indiana/Winamac":{c:["US"]},"America/Inuvik":{c:["CA"]},"America/Iqaluit":{c:["CA"]},"America/Jamaica":{c:["JM"]},"America/Juneau":{c:["US"]},"America/Kentucky/Louisville":{c:["US"]},"America/Kentucky/Monticello":{c:["US"]},"America/Kralendijk":{c:["BQ"]},"America/La_Paz":{c:["BO"]},"America/Lima":{c:["PE"]},"America/Los_Angeles":{c:["US"]},"America/Lower_Princes":{c:["SX"]},"America/Maceio":{c:["BR"]},"America/Managua":{c:["NI"]},"America/Manaus":{c:["BR"]},"America/Marigot":{c:["MF"]},"America/Martinique":{c:["MQ"]},"America/Matamoros":{c:["MX"]},"America/Mazatlan":{c:["MX"]},"America/Menominee":{c:["US"]},"America/Merida":{c:["MX"]},"America/Metlakatla":{c:["US"]},"America/Mexico_City":{c:["MX"]},"America/Miquelon":{c:["PM"]},"America/Moncton":{c:["CA"]},"America/Monterrey":{c:["MX"]},"America/Montevideo":{c:["UY"]},"America/Montreal":{c:["CA"]},"America/Montserrat":{c:["MS"]},"America/Nassau":{c:["BS"]},"America/New_York":{c:["US"]},"America/Nipigon":{c:["CA"]},"America/Nome":{c:["US"]},"America/Noronha":{c:["BR"]},"America/North_Dakota/Beulah":{c:["US"]},"America/North_Dakota/Center":{c:["US"]},"America/North_Dakota/New_Salem":{c:["US"]},"America/Nuuk":{c:["GL"]},"America/Ojinaga":{c:["MX"]},"America/Panama":{c:["PA","CA","KY"]},"America/Pangnirtung":{c:["CA"]},"America/Paramaribo":{c:["SR"]},"America/Phoenix":{c:["US","CA"]},"America/Port-au-Prince":{c:["HT"]},"America/Port_of_Spain":{c:["TT"]},"America/Porto_Velho":{c:["BR"]},"America/Puerto_Rico":{c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{c:["CL"]},"America/Rainy_River":{c:["CA"]},"America/Rankin_Inlet":{c:["CA"]},"America/Recife":{c:["BR"]},"America/Regina":{c:["CA"]},"America/Resolute":{c:["CA"]},"America/Rio_Branco":{c:["BR"]},"America/Santarem":{c:["BR"]},"America/Santiago":{c:["CL"]},"America/Santo_Domingo":{c:["DO"]},"America/Sao_Paulo":{c:["BR"]},"America/Scoresbysund":{c:["GL"]},"America/Sitka":{c:["US"]},"America/St_Barthelemy":{c:["BL"]},"America/St_Johns":{c:["CA"]},"America/St_Kitts":{c:["KN"]},"America/St_Lucia":{c:["LC"]},"America/St_Thomas":{c:["VI"]},"America/St_Vincent":{c:["VC"]},"America/Swift_Current":{c:["CA"]},"America/Tegucigalpa":{c:["HN"]},"America/Thule":{c:["GL"]},"America/Thunder_Bay":{c:["CA"]},"America/Tijuana":{c:["MX"]},"America/Toronto":{c:["CA","BS"]},"America/Tortola":{c:["VG"]},"America/Vancouver":{c:["CA"]},"America/Virgin":{c:["VI"]},"America/Whitehorse":{c:["CA"]},"America/Winnipeg":{c:["CA"]},"America/Yakutat":{c:["US"]},"America/Yellowknife":{c:["CA"]},"Antarctica/Casey":{c:["AQ"]},"Antarctica/Davis":{c:["AQ"]},"Antarctica/DumontDUrville":{c:["AQ"]},"Antarctica/Macquarie":{c:["AU"]},"Antarctica/Mawson":{c:["AQ"]},"Antarctica/McMurdo":{c:["AQ"]},"Antarctica/Palmer":{c:["AQ"]},"Antarctica/Rothera":{c:["AQ"]},"Antarctica/South_Pole":{c:["AQ"]},"Antarctica/Syowa":{c:["AQ"]},"Antarctica/Troll":{c:["AQ"]},"Antarctica/Vostok":{c:["AQ"]},"Arctic/Longyearbyen":{c:["SJ"]},"Asia/Aden":{c:["YE"]},"Asia/Almaty":{c:["KZ"]},"Asia/Amman":{c:["JO"]},"Asia/Anadyr":{c:["RU"]},"Asia/Aqtau":{c:["KZ"]},"Asia/Aqtobe":{c:["KZ"]},"Asia/Ashgabat":{c:["TM"]},"Asia/Atyrau":{c:["KZ"]},"Asia/Baghdad":{c:["IQ"]},"Asia/Bahrain":{c:["BH"]},"Asia/Baku":{c:["AZ"]},"Asia/Bangkok":{c:["TH","KH","LA","VN"]},"Asia/Barnaul":{c:["RU"]},"Asia/Beirut":{c:["LB"]},"Asia/Bishkek":{c:["KG"]},"Asia/Brunei":{c:["BN"]},"Asia/Calcutta":{c:["IN"]},"Asia/Chita":{c:["RU"]},"Asia/Choibalsan":{c:["MN"]},"Asia/Colombo":{c:["LK"]},"Asia/Damascus":{c:["SY"]},"Asia/Dhaka":{c:["BD"]},"Asia/Dili":{c:["TL"]},"Asia/Dubai":{c:["AE","OM"]},"Asia/Dushanbe":{c:["TJ"]},"Asia/Famagusta":{c:["CY"]},"Asia/Gaza":{c:["PS"]},"Asia/Hebron":{c:["PS"]},"Asia/Ho_Chi_Minh":{c:["VN"]},"Asia/Hong_Kong":{c:["HK"]},"Asia/Hovd":{c:["MN"]},"Asia/Irkutsk":{c:["RU"]},"Asia/Jakarta":{c:["ID"]},"Asia/Jayapura":{c:["ID"]},"Asia/Jerusalem":{c:["IL"]},"Asia/Kabul":{c:["AF"]},"Asia/Kamchatka":{c:["RU"]},"Asia/Karachi":{c:["PK"]},"Asia/Kathmandu":{c:["NP"]},"Asia/Khandyga":{c:["RU"]},"Asia/Kolkata":{c:["IN"]},"Asia/Krasnoyarsk":{c:["RU"]},"Asia/Kuala_Lumpur":{c:["MY"]},"Asia/Kuching":{c:["MY"]},"Asia/Kuwait":{c:["KW"]},"Asia/Macau":{c:["MO"]},"Asia/Magadan":{c:["RU"]},"Asia/Makassar":{c:["ID"]},"Asia/Manila":{c:["PH"]},"Asia/Muscat":{c:["OM"]},"Asia/Nicosia":{c:["CY"]},"Asia/Novokuznetsk":{c:["RU"]},"Asia/Novosibirsk":{c:["RU"]},"Asia/Omsk":{c:["RU"]},"Asia/Oral":{c:["KZ"]},"Asia/Phnom_Penh":{c:["KH"]},"Asia/Pontianak":{c:["ID"]},"Asia/Pyongyang":{c:["KP"]},"Asia/Qatar":{c:["QA","BH"]},"Asia/Qostanay":{c:["KZ"]},"Asia/Qyzylorda":{c:["KZ"]},"Asia/Riyadh":{c:["SA","AQ","KW","YE"]},"Asia/Sakhalin":{c:["RU"]},"Asia/Samarkand":{c:["UZ"]},"Asia/Seoul":{c:["KR"]},"Asia/Shanghai":{c:["CN"]},"Asia/Singapore":{c:["SG","MY"]},"Asia/Srednekolymsk":{c:["RU"]},"Asia/Taipei":{c:["TW"]},"Asia/Tashkent":{c:["UZ"]},"Asia/Tbilisi":{c:["GE"]},"Asia/Tehran":{c:["IR"]},"Asia/Thimphu":{c:["BT"]},"Asia/Tokyo":{c:["JP"]},"Asia/Tomsk":{c:["RU"]},"Asia/Ulaanbaatar":{c:["MN"]},"Asia/Urumqi":{c:["CN"]},"Asia/Ust-Nera":{c:["RU"]},"Asia/Vientiane":{c:["LA"]},"Asia/Vladivostok":{c:["RU"]},"Asia/Yakutsk":{c:["RU"]},"Asia/Yangon":{c:["MM"]},"Asia/Yekaterinburg":{c:["RU"]},"Asia/Yerevan":{c:["AM"]},"Atlantic/Azores":{c:["PT"]},"Atlantic/Bermuda":{c:["BM"]},"Atlantic/Canary":{c:["ES"]},"Atlantic/Cape_Verde":{c:["CV"]},"Atlantic/Faroe":{c:["FO"]},"Atlantic/Jan_Mayen":{c:["SJ"]},"Atlantic/Madeira":{c:["PT"]},"Atlantic/Reykjavik":{c:["IS"]},"Atlantic/South_Georgia":{c:["GS"]},"Atlantic/St_Helena":{c:["SH"]},"Atlantic/Stanley":{c:["FK"]},"Australia/Adelaide":{c:["AU"]},"Australia/Brisbane":{c:["AU"]},"Australia/Broken_Hill":{c:["AU"]},"Australia/Darwin":{c:["AU"]},"Australia/Eucla":{c:["AU"]},"Australia/Hobart":{c:["AU"]},"Australia/Lindeman":{c:["AU"]},"Australia/Lord_Howe":{c:["AU"]},"Australia/Melbourne":{c:["AU"]},"Australia/Perth":{c:["AU"]},"Australia/Sydney":{c:["AU"]},"Canada/Eastern":{c:["CA"]},"Europe/Amsterdam":{c:["NL"]},"Europe/Andorra":{c:["AD"]},"Europe/Astrakhan":{c:["RU"]},"Europe/Athens":{c:["GR"]},"Europe/Belfast":{c:["GB"]},"Europe/Belgrade":{c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{c:["DE"]},"Europe/Bratislava":{c:["SK"]},"Europe/Brussels":{c:["BE"]},"Europe/Bucharest":{c:["RO"]},"Europe/Budapest":{c:["HU"]},"Europe/Busingen":{c:["DE"]},"Europe/Chisinau":{c:["MD"]},"Europe/Copenhagen":{c:["DK"]},"Europe/Dublin":{c:["IE"]},"Europe/Gibraltar":{c:["GI"]},"Europe/Guernsey":{c:["GG"]},"Europe/Helsinki":{c:["FI","AX"]},"Europe/Isle_of_Man":{c:["IM"]},"Europe/Istanbul":{c:["TR"]},"Europe/Jersey":{c:["JE"]},"Europe/Kaliningrad":{c:["RU"]},"Europe/Kiev":{c:["UA"]},"Europe/Kirov":{c:["RU"]},"Europe/Lisbon":{c:["PT"]},"Europe/Ljubljana":{c:["SI"]},"Europe/London":{c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{c:["LU"]},"Europe/Madrid":{c:["ES"]},"Europe/Malta":{c:["MT"]},"Europe/Mariehamn":{c:["AX"]},"Europe/Minsk":{c:["BY"]},"Europe/Monaco":{c:["MC"]},"Europe/Moscow":{c:["RU"]},"Europe/Oslo":{c:["NO","SJ","BV"]},"Europe/Paris":{c:["FR"]},"Europe/Podgorica":{c:["ME"]},"Europe/Prague":{c:["CZ","SK"]},"Europe/Riga":{c:["LV"]},"Europe/Rome":{c:["IT","SM","VA"]},"Europe/Samara":{c:["RU"]},"Europe/San_Marino":{c:["SM"]},"Europe/Sarajevo":{c:["BA"]},"Europe/Saratov":{c:["RU"]},"Europe/Simferopol":{c:["RU","UA"]},"Europe/Skopje":{c:["MK"]},"Europe/Sofia":{c:["BG"]},"Europe/Stockholm":{c:["SE"]},"Europe/Tallinn":{c:["EE"]},"Europe/Tirane":{c:["AL"]},"Europe/Ulyanovsk":{c:["RU"]},"Europe/Uzhgorod":{c:["UA"]},"Europe/Vaduz":{c:["LI"]},"Europe/Vatican":{c:["VA"]},"Europe/Vienna":{c:["AT"]},"Europe/Vilnius":{c:["LT"]},"Europe/Volgograd":{c:["RU"]},"Europe/Warsaw":{c:["PL"]},"Europe/Zagreb":{c:["HR"]},"Europe/Zaporozhye":{c:["UA"]},"Europe/Zurich":{c:["CH","DE","LI"]},GB:{c:["GB"]},"GB-Eire":{c:["GB"]},"Indian/Antananarivo":{c:["MG"]},"Indian/Chagos":{c:["IO"]},"Indian/Christmas":{c:["CX"]},"Indian/Cocos":{c:["CC"]},"Indian/Comoro":{c:["KM"]},"Indian/Kerguelen":{c:["TF","HM"]},"Indian/Mahe":{c:["SC"]},"Indian/Maldives":{c:["MV"]},"Indian/Mauritius":{c:["MU"]},"Indian/Mayotte":{c:["YT"]},"Indian/Reunion":{c:["RE","TF"]},NZ:{c:["NZ"]},"Pacific/Apia":{c:["WS"]},"Pacific/Auckland":{c:["NZ","AQ"]},"Pacific/Bougainville":{c:["PG"]},"Pacific/Chatham":{c:["NZ"]},"Pacific/Chuuk":{c:["FM"]},"Pacific/Easter":{c:["CL"]},"Pacific/Efate":{c:["VU"]},"Pacific/Fakaofo":{c:["TK"]},"Pacific/Fiji":{c:["FJ"]},"Pacific/Funafuti":{c:["TV"]},"Pacific/Galapagos":{c:["EC"]},"Pacific/Gambier":{c:["PF"]},"Pacific/Guadalcanal":{c:["SB"]},"Pacific/Guam":{c:["GU","MP"]},"Pacific/Honolulu":{c:["US","UM"]},"Pacific/Johnston":{c:["UM"]},"Pacific/Kanton":{c:["KI"]},"Pacific/Kiritimati":{c:["KI"]},"Pacific/Kosrae":{c:["FM"]},"Pacific/Kwajalein":{c:["MH"]},"Pacific/Majuro":{c:["MH"]},"Pacific/Marquesas":{c:["PF"]},"Pacific/Midway":{c:["UM"]},"Pacific/Nauru":{c:["NR"]},"Pacific/Niue":{c:["NU"]},"Pacific/Norfolk":{c:["NF"]},"Pacific/Noumea":{c:["NC"]},"Pacific/Pago_Pago":{c:["AS","UM"]},"Pacific/Palau":{c:["PW"]},"Pacific/Pitcairn":{c:["PN"]},"Pacific/Pohnpei":{c:["FM"]},"Pacific/Port_Moresby":{c:["PG","AQ"]},"Pacific/Rarotonga":{c:["CK"]},"Pacific/Saipan":{c:["MP"]},"Pacific/Samoa":{c:["WS"]},"Pacific/Tahiti":{c:["PF"]},"Pacific/Tarawa":{c:["KI"]},"Pacific/Tongatapu":{c:["TO"]},"Pacific/Wake":{c:["UM"]},"Pacific/Wallis":{c:["WF"]},Singapore:{c:["SG"]},"US/Alaska":{c:["US"]},"US/Aleutian":{c:["US"]},"US/Arizona":{c:["US"]},"US/Central":{c:["US"]},"US/East-Indiana":{c:["US"]},"US/Eastern":{c:["US"]},"US/Hawaii":{c:["US"]},"US/Indiana-Starke":{c:["US"]},"US/Michigan":{c:["US"]},"US/Mountain":{c:["US"]},"US/Pacific":{c:["US"]},"US/Samoa":{c:["WS"]}};var u=r(9069),l=r(1587),s=r(1211),A=r(5198);const f={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"};var d=r(426),m=r(9234),p=r(5200),h=r(1275),g=function(){return g=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},g.apply(this,arguments)};const v=(0,c.forwardRef)((function(e,a){var r=e.show,t=e.itemOnClick,n=e.responsiveStyles,o=e.dropdownWidth,u=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["show","itemOnClick","responsiveStyles","dropdownWidth"]),l=(0,c.useRef)({}),s=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(""),2),f=s[0],d=s[1],v=(0,c.useRef)(null);(0,c.useEffect)((function(){r?v.current&&setTimeout((function(){var e;null===(e=v.current)||void 0===e||e.focus()}),50):d("")}),[r]);var S=(0,c.useMemo)((function(){var e=A.ZP.filter((function(e){var a,r=e.countryCode,i=e.countryName,c=e.phoneCode;return!(!(null===(a=m.BZ)||void 0===a?void 0:a.isSupportedCountry(r))||p.fD.client&&!A.lC.has(r))&&(!f||r.toLowerCase().includes(f)||i.toLowerCase().includes(f)||"+".concat(c).includes(f))}));return(0,i.BX)(i.HY,{children:[(0,i.tZ)("input",{ref:v,placeholder:"Search",css:{width:"100%",height:"30px",outline:"none",border:"none",borderBottom:"1px solid grey",padding:"5px 10px",fontSize:"14px"},onKeyDown:function(a){var r=function(){a.preventDefault(),a.stopPropagation()};if("ArrowDown"===a.key){r();var i=e[0];i&&l.current[i.countryCode].focus()}else"Enter"===a.key&&r()},onChange:function(e){return d(e.target.value.toLowerCase())},tabIndex:0}),e.map((function(e){var a=e.flag,r=e.countryCode,c=e.countryName,n=e.phoneCode;return(0,i.BX)("li",g({ref:function(e){l.current[r]=e},css:{padding:"2px 10px",display:"flex",alignItems:"center",transition:"0.1s ease all",fontSize:"14px","&:hover":{backgroundColor:"#e6e6e644"},"&:focus-visible":{outline:"none",backgroundColor:"#e6e6e644"}},tabIndex:0,onKeyDown:function(e){var a,i,c=function(){e.preventDefault(),e.stopPropagation()};"Enter"===e.key?(c(),t(r,n)):["ArrowDown","ArrowRight"].includes(e.key)?(c(),null===(a=l.current[r].nextSibling)||void 0===a||a.focus()):["ArrowUp","ArrowLeft"].includes(e.key)&&(c(),null===(i=l.current[r].previousSibling)||void 0===i||i.focus())},onClick:function(){return t(r,n)}},{children:[(0,i.tZ)("span",g({css:{fontSize:"24px",marginRight:"7px",lineHeight:"33px",fontFamily:'"Twemoji Country Flags", sans-serif'}},{children:a})),c,(0,i.BX)("span",g({css:{marginLeft:"7px",color:"grey"}},{children:["+",n]}))]}),r)}))]})}),[f]),y=void 0!==o?"".concat(o,"px"):"100%";return(0,i.tZ)("ul",g({css:g({zIndex:h.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",maxHeight:"210px",overflowY:"scroll",overflowX:"hidden",boxSizing:"border-box",width:y},n.getTarget("dropdown")),ref:a},u,{children:S}))}));var S=r(6867),y=r(9479),C={IN:12,SG:10},M=r(7449),E=r(5398),b=function(){return b=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},b.apply(this,arguments)},R=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n},U="US",B=A.ZP.reduce((function(e,a){var r=a.flag,i=a.countryCode,c=a.phoneCode;return e[i]={flag:r,phoneCode:c},e}),{});const P=(0,c.memo)((function(e){var a=e.element,r=e.responsiveStyles,t=e.fieldLabel,A=e.fullNumber,p=e.elementProps,h=void 0===p?{}:p,g=e.required,P=void 0!==g&&g,T=e.disabled,w=void 0!==T&&T,G=e.repeatIndex,k=void 0===G?null:G,I=e.autoComplete,L=e.editMode,N=e.onComplete,K=void 0===N?function(){}:N,O=e.setRef,D=void 0===O?function(){}:O,Z=e.inlineError,_=e.rightToLeft,x=e.onEnter,F=e.children,H=(0,c.useRef)(null),j=(0,c.useRef)(null),W=(0,c.useRef)(null),V=(0,c.useRef)(null),Y=(0,c.useRef)(null),J=R((0,c.useState)(null),2),z=J[0],X=J[1],Q=R((0,c.useState)(0),2),q=Q[0],$=Q[1],ee=R((0,c.useState)(!1),2),ae=ee[0],re=ee[1],ie=R((0,c.useState)(""),2),ce=ie[0],te=ie[1],ne=a.servar,oe=(0,c.useMemo)((function(){if("auto"===ne.metadata.default_country){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(!e)return U;var a=o[e];if(!a)return U;var r=a.c[0];return r in B?r:U}return ne.metadata.default_country||U}),[ne.metadata.default_country]),ue=R((0,c.useState)(oe),2),le=ue[0],se=ue[1];(0,c.useEffect)((function(){return se(oe)}),[oe]),(0,c.useEffect)((function(){try{!function(e="Twemoji Country Flags",a="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&n("😊")&&!n("🇨🇭")){const r=document.createElement("style");r.textContent=`@font-face {\n font-family: "${e}";\n unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,\n U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;\n src: url('${a}') format('woff2');\n font-display: swap;\n }`,document.head.appendChild(r)}}()}catch(e){}}),[]);var Ae=B[le].phoneCode,fe=R((0,c.useState)(""),2),de=fe[0],me=fe[1],pe=R((0,c.useState)(a.properties.placeholder),2),he=pe[0],ge=pe[1],ve=R((0,c.useState)(!1),2),Se=ve[0],ye=ve[1],Ce=(0,E.Z)(W).width,Me=(0,S.Z)({element:a,error:Z,breakpoint:r.getMobileBreakpoint()}),Ee=Me.borderStyles,be=Me.customBorder,Re=function(e){return e.length+(e.length>3?2:1)},Ue=function(e){X(e),$((function(e){return e+1}))},Be=function(e){Ue(Re(e))};(0,c.useEffect)((function(){var e=Y.current;e&&null!==z&&e.setSelectionRange(z,z)}),[q]),(0,c.useEffect)((function(){A===ce||L||m.hV.then((function(e){var a,r;if(e){var i=new e.AsYouType;i.input("+".concat(A));var c=null!==(a=i.getNumber())&&void 0!==a?a:"";te(A),me(A),c&&se(null!==(r=c.country)&&void 0!==r?r:le)}}))}),[A]);var Pe=(0,c.useMemo)((function(){if(""===de)return"";var e=m.BZ;if(!e)return"+".concat(de);var a=new e.AsYouType(le),r=e.parseDigits(de,le);return a.input("+".concat(r))}),[le,de]);(0,c.useEffect)((function(){var e,r=null!==(e=a.properties.placeholder)&&void 0!==e?e:"";if(L||r)ge(r);else{var i=f[le];m.hV.then((function(e){e&&ge(e.parsePhoneNumber(i,le).formatInternational())}))}}),[le,a]);var Te=function(e){(A||e)&&e!==A&&(te(e),K(e))},we=!ne.metadata.disable_other_countries,Ge=we?{cursor:"pointer","&:hover":(0,y.wL)({backgroundColor:"#e6e6e633"})}:{};return(0,i.BX)("div",b({ref:j,css:b({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:L?"none":"auto"},r.getTarget("fc"))},h,{children:[F,t,(0,i.BX)("div",b({ref:W,css:b(b(b({display:"flex",position:"relative"},r.getTarget("sub-fc")),w?r.getTarget("disabled"):{}),{"&:hover":(0,y.wL)(w?{}:b(b({},r.getTarget("hover")),Ee.hover)),"&&":Se?b(b({},r.getTarget("active")),Ee.active):{}})},{children:[be,(0,i.tZ)("div",b({"data-testid":"country-trigger",css:b(b({transition:"0.2s ease all",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 6px",position:"relative",cursor:"default",fontFamily:'"Twemoji Country Flags", sans-serif'},r.getTarget("fieldToggle")),Ge),ref:H,onClick:function(){we&&!w&&re(!ae)}},{children:B[le].flag})),(0,i.tZ)(M.Z,b({show:ae,onHide:function(){return re(!1)},targetRef:H,containerRef:j,placement:"bottom-start",offset:0},{children:(0,i.tZ)(v,{itemOnClick:function(e,a){se(e),me(a),Be(a),re(!1),Te(a),Y.current.focus()},responsiveStyles:r,dropdownWidth:Ce,ref:function(e){V.current=e},show:ae})}),"overlay-".concat(le)),(0,i.BX)("div",b({css:{position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"}},{children:[(0,i.tZ)("input",{id:ne.key,name:ne.key,css:b(b(b(b({backgroundColor:"transparent",height:"100%",width:"100%",border:"none",margin:0},_?{textAlign:"right"}:{}),s.ET),r.getTarget("field")),Se||Pe||!he?{}:{color:"transparent !important"}),required:P,disabled:w,placeholder:"","aria-label":a.properties.aria_label,value:Pe,ref:function(e){Y.current=e,D(e)},type:"tel",autoComplete:"on"===I?"tel":"new-password",dir:"ltr",onFocus:function(e){(0,y.ms)(e),me((function(e){return""===e?(Be(Ae),Ae):e})),ye(!0)},onClick:function(e){!function(e){var a;if(e){var r=Re(Ae),i=null!==(a=e.selectionStart)&&void 0!==a?a:r;if(i>=r)X(i);else{var c=de.length>Ae.length?e.value.length:r;e.setSelectionRange(c,c),X(c)}}}(e.currentTarget)},onBlur:function(){var e=de;Ae.startsWith(de)&&(X(null),me(e="")),Te(e),ye(!1)},onKeyDown:function(e){"Enter"===e.key?(Te(de),x(e)):"+"===e.key&&re(!0)},onChange:function(e){var a,r=e.target.selectionStart,i=e.target.value;if(i){var c=m.BZ;if(!c)return;if((i.match(/\+/g)||[]).length>1){var t=i.lastIndexOf("+");i=i.slice(t)}if((i=i.replace(/\s/g,"")).includes("+")||(i=c.validatePhoneNumberLength(i,le)&&i.startsWith(Ae)?"+".concat(i):"+".concat(Ae).concat(i)),!i.startsWith("+".concat(Ae)))return;if(i.startsWith("+11"))return;var n=c.parseDigits(i,le);if("TOO_LONG"===c.validatePhoneNumberLength(n,le)||(a=le)in C&&n.length>C[a])return;var o=new c.AsYouType(le).input("+".concat(n)),u=c.parseDigits(Pe.slice(0,null!=z?z:0)).length;me(n);var l=c.parseDigits(o,le).length-c.parseDigits(Pe,le).length;if(r&&l>0)for(;r<=o.length&&!(0,d.e9)(o[r])||c.parseDigits(o.slice(0,r)).length<=u;)r++}else me(Ae),r=Re(Ae);Ue(null!=r?r:0)}}),he&&(0,i.tZ)(u.Z,{value:Pe,element:{properties:{placeholder:he}},responsiveStyles:r,repeatIndex:k}),(0,i.tZ)(l.Z,{containerRef:j,id:a.id,text:a.properties.tooltipText,responsiveStyles:r,repeat:a.repeat})]}))]}))]}))}))},5398:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(7294),c=r(9479);function t(e){var a=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,i.useState)({width:void 0,height:void 0}),2),r=a[0],t=a[1];return(0,i.useLayoutEffect)((function(){var a=function(){var a=e.current;if(a){var r=a.getBoundingClientRect(),i=r.width,c=r.height;t({width:i>0?i:void 0,height:c>0?c:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var i=(0,c.Kv)();return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener?(i.addEventListener("resize",a),a(),function(){return i.removeEventListener("resize",a)}):void a()}var n=new ResizeObserver((function(){return a()}));try{n.observe(r,{box:"border-box"})}catch(e){n.observe(r)}return a(),function(){return n.disconnect()}}}),[e]),r}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[213],{1587:(e,a,r)=>{r.d(a,{Z:()=>f});var i=r(5944),c=r(7294),t=r(8776),n=r(5096),o=r(2988),u=r(4665),l=r(7449),s=r(9479),A=function(){return A=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},A.apply(this,arguments)};function f(e){var a=e.id,r=e.text,f=e.responsiveStyles,d=e.absolute,m=void 0===d||d,p=e.containerRef,h=e.repeat,g=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(!1),2),v=g[0],S=g[1],y=(0,c.useRef)(null);if(!(r=(0,u.xf)(r,h)))return null;var C=(0,s.tq)();return(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",A({ref:y,onMouseEnter:C?void 0:function(){return S(!0)},onMouseLeave:C?void 0:function(){return S(!1)},onFocus:function(){return S(!0)},onBlur:function(){return S(!1)},onClick:function(){return S((function(e){return!e}))},css:m?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:o.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,i.tZ)(n.by,{cssStyles:f.getTarget("tooltipIcon")})})),(0,i.tZ)(l.Z,A({show:v,targetRef:y,containerRef:p,placement:"left",onHide:function(){return S(!1)},offset:8},{children:(0,i.tZ)(t.u,A({id:"tooltip-".concat(a),css:{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"}}},{children:r}))}))]})}},7449:(e,a,r)=>{r.d(a,{Z:()=>u});var i=r(5944),c=r(7294),t=r(3935),n=r(9479),o=function(){return o=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},o.apply(this,arguments)};const u=function(e){var a=e.show,r=e.targetRef,u=e.children,A=e.onHide,f=e.placement,d=void 0===f?"bottom-start":f,m=e.offset,p=void 0===m?0:m,h=e.zIndex,g=void 0===h?1e3:h,v=e.containerRef,S=(0,c.useRef)(null),y=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(null),2),C=y[0],M=y[1],E=(0,c.useCallback)((function(){return(null==v?void 0:v.current)||(0,n.me)().body}),[v]),b=(0,c.useCallback)((function(){var e;if(a&&r.current&&S.current){var i=(0,n.Kv)(),c=E();if(c){var t=r.current.getBoundingClientRect(),o=S.current.getBoundingClientRect(),u=c.getBoundingClientRect(),A=s(d,t,o,p),f=A.top,m=A.left,h=f+o.height,g=m+o.width,v=f>=0&&h<=i.innerHeight,y=m>=0&&g<=i.innerWidth;if(!v||!y){var C=l(d,!v,!y);C!==d&&(f=(e=s(C,t,o,p)).top,m=e.left)}var b=c===(0,n.me)().body,R=b?f+i.scrollY:f-u.top,U=b?m+i.scrollX:m-u.left;M((function(e){return e&&e.top===R&&e.left===U?e:{top:R,left:U}}))}}}),[a,d,p,E,r]),R=(0,c.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){b(),e=!1})))}}),[b])();if((0,c.useLayoutEffect)((function(){a&&b()}),[a,b]),(0,c.useEffect)((function(){if(a){var e=(0,n.Kv)(),i=E();if(i){e.addEventListener("resize",R),e.addEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.addEventListener("scroll",R);var c=new ResizeObserver((function(){return R()}));return r.current&&c.observe(r.current),i!==(0,n.me)().body&&c.observe(i),function(){e.removeEventListener("resize",R),e.removeEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.removeEventListener("scroll",R),c.disconnect()}}}}),[a,R,E,r]),(0,c.useEffect)((function(){if(a){var e=function(e){"Escape"===e.key&&(M(null),null==A||A())},i=function(e){var a=e.target;S.current&&!S.current.contains(a)&&r.current&&!r.current.contains(a)&&(M(null),null==A||A())},c=(0,n.me)();return c.addEventListener("mousedown",i),c.addEventListener("keydown",e),function(){c.removeEventListener("mousedown",i),c.removeEventListener("keydown",e)}}}),[a,A,r]),!a)return null;var U=E();return U?(0,t.createPortal)((0,i.tZ)("div",o({ref:S,style:o(o({position:"absolute"},C||{top:-9999,left:-9999}),{zIndex:g})},{children:u})),U):(0,i.tZ)(i.HY,{children:u})};var l=function(e,a,r){if(a){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,a,r,i){switch(void 0===i&&(i=0),e){case"top":return{top:a.top-r.height-i,left:a.left+(a.width-r.width)/2};case"top-start":return{top:a.top-r.height-i,left:a.left};case"top-end":return{top:a.top-r.height-i,left:a.right-r.width};case"left":return{top:a.top+(a.height-r.height)/2,left:a.left-r.width-i};case"left-start":return{top:a.top,left:a.left-r.width-i};case"left-end":return{top:a.bottom-r.height,left:a.left-r.width-i};case"bottom":default:return{top:a.bottom+i,left:a.left+(a.width-r.width)/2};case"bottom-start":return{top:a.bottom+i,left:a.left};case"bottom-end":return{top:a.bottom+i,left:a.right-r.width};case"right":return{top:a.top+(a.height-r.height)/2,left:a.right+i};case"right-start":return{top:a.top,left:a.right+i};case"right-end":return{top:a.bottom-r.height,left:a.right+i}}}},9069:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(5944),c=function(){return c=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},c.apply(this,arguments)};function t(e){var a,r,t,n=e.value,o=e.element,u=e.responsiveStyles,l=e.type,s=void 0===l?"input":l,A=e.inputFocused,f=void 0!==A&&A,d=e.repeatIndex,m=void 0===d?null:d,p=o.properties,h=null!==(t=(null!==(r=p.repeat_placeholder)&&void 0!==r?r:[])[null!=m?m:0])&&void 0!==t?t:p.placeholder||"",g=c(c({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,i.tZ)("span",c({css:c(c(c(c({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),n?u.getTarget("placeholderFocus"):{}),f?g:{}),(a={},a["".concat(s,":focus ~ &")]=g,a))},{children:h}))}},8776:(e,a,r)=>{r.d(a,{u:()=>n});var i=r(5944),c=r(2988),t=function(){return t=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},t.apply(this,arguments)},n=function(e){var a=e.children,r=e.css,n=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["children","css"]);return(0,i.tZ)("div",t({css:t({zIndex:c.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)},n,{children:(0,i.tZ)("div",t({className:"tooltip-inner"},{children:a}))}))}},6067:(e,a,r)=>{r.r(a),r.d(a,{default:()=>P});var i=r(5944),c=r(7294);function t(e,a,r){return e.clearRect(0,0,100,100),e.fillStyle=r,e.fillText(a,0,0),e.getImageData(0,0,1,1).data.join(",")}function n(e){const a=function(){const e=document.createElement("canvas");e.width=e.height=1;const a=e.getContext("2d",{willReadFrequently:!0});return a.textBaseline="top",a.font='100px "Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',a.scale(.01,.01),a}(),r=t(a,e,"#fff"),i=t(a,e,"#000");return i===r&&!i.startsWith("0,0,0,")}const o={"Africa/Abidjan":{c:["CI","BF","GH","GM","GN","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{c:["GH"]},"Africa/Addis_Ababa":{c:["ET"]},"Africa/Algiers":{c:["DZ"]},"Africa/Asmara":{c:["ER"]},"Africa/Asmera":{c:["ER"]},"Africa/Bamako":{c:["ML"]},"Africa/Bangui":{c:["CF"]},"Africa/Banjul":{c:["GM"]},"Africa/Bissau":{c:["GW"]},"Africa/Blantyre":{c:["MW"]},"Africa/Brazzaville":{c:["CG"]},"Africa/Bujumbura":{c:["BI"]},"Africa/Cairo":{c:["EG"]},"Africa/Casablanca":{c:["MA"]},"Africa/Ceuta":{c:["ES"]},"Africa/Conakry":{c:["GN"]},"Africa/Dakar":{c:["SN"]},"Africa/Dar_es_Salaam":{c:["TZ"]},"Africa/Djibouti":{c:["DJ"]},"Africa/Douala":{c:["CM"]},"Africa/El_Aaiun":{c:["EH"]},"Africa/Freetown":{c:["SL"]},"Africa/Gaborone":{c:["BW"]},"Africa/Harare":{c:["ZW"]},"Africa/Johannesburg":{c:["ZA","LS","SZ"]},"Africa/Juba":{c:["SS"]},"Africa/Kampala":{c:["UG"]},"Africa/Khartoum":{c:["SD"]},"Africa/Kigali":{c:["RW"]},"Africa/Kinshasa":{c:["CD"]},"Africa/Lagos":{c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{c:["GA"]},"Africa/Lome":{c:["TG"]},"Africa/Luanda":{c:["AO"]},"Africa/Lubumbashi":{c:["CD"]},"Africa/Lusaka":{c:["ZM"]},"Africa/Malabo":{c:["GQ"]},"Africa/Maputo":{c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{c:["LS"]},"Africa/Mbabane":{c:["SZ"]},"Africa/Mogadishu":{c:["SO"]},"Africa/Monrovia":{c:["LR"]},"Africa/Nairobi":{c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{c:["TD"]},"Africa/Niamey":{c:["NE"]},"Africa/Nouakchott":{c:["MR"]},"Africa/Ouagadougou":{c:["BF"]},"Africa/Porto-Novo":{c:["BJ"]},"Africa/Sao_Tome":{c:["ST"]},"Africa/Timbuktu":{c:["ML"]},"Africa/Tripoli":{c:["LY"]},"Africa/Tunis":{c:["TN"]},"Africa/Windhoek":{c:["NA"]},"America/Adak":{c:["US"]},"America/Anchorage":{c:["US"]},"America/Anguilla":{c:["AI"]},"America/Antigua":{c:["AG"]},"America/Araguaina":{c:["BR"]},"America/Argentina/Buenos_Aires":{c:["AR"]},"America/Argentina/Catamarca":{c:["AR"]},"America/Argentina/Cordoba":{c:["AR"]},"America/Argentina/Jujuy":{c:["AR"]},"America/Argentina/La_Rioja":{c:["AR"]},"America/Argentina/Mendoza":{c:["AR"]},"America/Argentina/Rio_Gallegos":{c:["AR"]},"America/Argentina/Salta":{c:["AR"]},"America/Argentina/San_Juan":{c:["AR"]},"America/Argentina/San_Luis":{c:["AR"]},"America/Argentina/Tucuman":{c:["AR"]},"America/Argentina/Ushuaia":{c:["AR"]},"America/Aruba":{c:["AW"]},"America/Asuncion":{c:["PY"]},"America/Atikokan":{c:["CA"]},"America/Bahia":{c:["BR"]},"America/Bahia_Banderas":{c:["MX"]},"America/Barbados":{c:["BB"]},"America/Belem":{c:["BR"]},"America/Belize":{c:["BZ"]},"America/Blanc-Sablon":{c:["CA"]},"America/Boa_Vista":{c:["BR"]},"America/Bogota":{c:["CO"]},"America/Boise":{c:["US"]},"America/Cambridge_Bay":{c:["CA"]},"America/Campo_Grande":{c:["BR"]},"America/Cancun":{c:["MX"]},"America/Caracas":{c:["VE"]},"America/Cayenne":{c:["GF"]},"America/Cayman":{c:["KY"]},"America/Chicago":{c:["US"]},"America/Chihuahua":{c:["MX"]},"America/Coral_Harbour":{c:["CA"]},"America/Costa_Rica":{c:["CR"]},"America/Creston":{c:["CA"]},"America/Cuiaba":{c:["BR"]},"America/Curacao":{c:["CW"]},"America/Danmarkshavn":{c:["GL"]},"America/Dawson":{c:["CA"]},"America/Dawson_Creek":{c:["CA"]},"America/Denver":{c:["US"]},"America/Detroit":{c:["US"]},"America/Dominica":{c:["DM"]},"America/Edmonton":{c:["CA"]},"America/Eirunepe":{c:["BR"]},"America/El_Salvador":{c:["SV"]},"America/Fort_Nelson":{c:["CA"]},"America/Fortaleza":{c:["BR"]},"America/Glace_Bay":{c:["CA"]},"America/Goose_Bay":{c:["CA"]},"America/Grand_Turk":{c:["TC"]},"America/Grenada":{c:["GD"]},"America/Guadeloupe":{c:["GP"]},"America/Guatemala":{c:["GT"]},"America/Guayaquil":{c:["EC"]},"America/Guyana":{c:["GY"]},"America/Halifax":{c:["CA"]},"America/Havana":{c:["CU"]},"America/Hermosillo":{c:["MX"]},"America/Indiana/Indianapolis":{c:["US"]},"America/Indiana/Knox":{c:["US"]},"America/Indiana/Marengo":{c:["US"]},"America/Indiana/Petersburg":{c:["US"]},"America/Indiana/Tell_City":{c:["US"]},"America/Indiana/Vevay":{c:["US"]},"America/Indiana/Vincennes":{c:["US"]},"America/Indiana/Winamac":{c:["US"]},"America/Inuvik":{c:["CA"]},"America/Iqaluit":{c:["CA"]},"America/Jamaica":{c:["JM"]},"America/Juneau":{c:["US"]},"America/Kentucky/Louisville":{c:["US"]},"America/Kentucky/Monticello":{c:["US"]},"America/Kralendijk":{c:["BQ"]},"America/La_Paz":{c:["BO"]},"America/Lima":{c:["PE"]},"America/Los_Angeles":{c:["US"]},"America/Lower_Princes":{c:["SX"]},"America/Maceio":{c:["BR"]},"America/Managua":{c:["NI"]},"America/Manaus":{c:["BR"]},"America/Marigot":{c:["MF"]},"America/Martinique":{c:["MQ"]},"America/Matamoros":{c:["MX"]},"America/Mazatlan":{c:["MX"]},"America/Menominee":{c:["US"]},"America/Merida":{c:["MX"]},"America/Metlakatla":{c:["US"]},"America/Mexico_City":{c:["MX"]},"America/Miquelon":{c:["PM"]},"America/Moncton":{c:["CA"]},"America/Monterrey":{c:["MX"]},"America/Montevideo":{c:["UY"]},"America/Montreal":{c:["CA"]},"America/Montserrat":{c:["MS"]},"America/Nassau":{c:["BS"]},"America/New_York":{c:["US"]},"America/Nipigon":{c:["CA"]},"America/Nome":{c:["US"]},"America/Noronha":{c:["BR"]},"America/North_Dakota/Beulah":{c:["US"]},"America/North_Dakota/Center":{c:["US"]},"America/North_Dakota/New_Salem":{c:["US"]},"America/Nuuk":{c:["GL"]},"America/Ojinaga":{c:["MX"]},"America/Panama":{c:["PA","CA","KY"]},"America/Pangnirtung":{c:["CA"]},"America/Paramaribo":{c:["SR"]},"America/Phoenix":{c:["US","CA"]},"America/Port-au-Prince":{c:["HT"]},"America/Port_of_Spain":{c:["TT"]},"America/Porto_Velho":{c:["BR"]},"America/Puerto_Rico":{c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{c:["CL"]},"America/Rainy_River":{c:["CA"]},"America/Rankin_Inlet":{c:["CA"]},"America/Recife":{c:["BR"]},"America/Regina":{c:["CA"]},"America/Resolute":{c:["CA"]},"America/Rio_Branco":{c:["BR"]},"America/Santarem":{c:["BR"]},"America/Santiago":{c:["CL"]},"America/Santo_Domingo":{c:["DO"]},"America/Sao_Paulo":{c:["BR"]},"America/Scoresbysund":{c:["GL"]},"America/Sitka":{c:["US"]},"America/St_Barthelemy":{c:["BL"]},"America/St_Johns":{c:["CA"]},"America/St_Kitts":{c:["KN"]},"America/St_Lucia":{c:["LC"]},"America/St_Thomas":{c:["VI"]},"America/St_Vincent":{c:["VC"]},"America/Swift_Current":{c:["CA"]},"America/Tegucigalpa":{c:["HN"]},"America/Thule":{c:["GL"]},"America/Thunder_Bay":{c:["CA"]},"America/Tijuana":{c:["MX"]},"America/Toronto":{c:["CA","BS"]},"America/Tortola":{c:["VG"]},"America/Vancouver":{c:["CA"]},"America/Virgin":{c:["VI"]},"America/Whitehorse":{c:["CA"]},"America/Winnipeg":{c:["CA"]},"America/Yakutat":{c:["US"]},"America/Yellowknife":{c:["CA"]},"Antarctica/Casey":{c:["AQ"]},"Antarctica/Davis":{c:["AQ"]},"Antarctica/DumontDUrville":{c:["AQ"]},"Antarctica/Macquarie":{c:["AU"]},"Antarctica/Mawson":{c:["AQ"]},"Antarctica/McMurdo":{c:["AQ"]},"Antarctica/Palmer":{c:["AQ"]},"Antarctica/Rothera":{c:["AQ"]},"Antarctica/South_Pole":{c:["AQ"]},"Antarctica/Syowa":{c:["AQ"]},"Antarctica/Troll":{c:["AQ"]},"Antarctica/Vostok":{c:["AQ"]},"Arctic/Longyearbyen":{c:["SJ"]},"Asia/Aden":{c:["YE"]},"Asia/Almaty":{c:["KZ"]},"Asia/Amman":{c:["JO"]},"Asia/Anadyr":{c:["RU"]},"Asia/Aqtau":{c:["KZ"]},"Asia/Aqtobe":{c:["KZ"]},"Asia/Ashgabat":{c:["TM"]},"Asia/Atyrau":{c:["KZ"]},"Asia/Baghdad":{c:["IQ"]},"Asia/Bahrain":{c:["BH"]},"Asia/Baku":{c:["AZ"]},"Asia/Bangkok":{c:["TH","KH","LA","VN"]},"Asia/Barnaul":{c:["RU"]},"Asia/Beirut":{c:["LB"]},"Asia/Bishkek":{c:["KG"]},"Asia/Brunei":{c:["BN"]},"Asia/Calcutta":{c:["IN"]},"Asia/Chita":{c:["RU"]},"Asia/Choibalsan":{c:["MN"]},"Asia/Colombo":{c:["LK"]},"Asia/Damascus":{c:["SY"]},"Asia/Dhaka":{c:["BD"]},"Asia/Dili":{c:["TL"]},"Asia/Dubai":{c:["AE","OM"]},"Asia/Dushanbe":{c:["TJ"]},"Asia/Famagusta":{c:["CY"]},"Asia/Gaza":{c:["PS"]},"Asia/Hebron":{c:["PS"]},"Asia/Ho_Chi_Minh":{c:["VN"]},"Asia/Hong_Kong":{c:["HK"]},"Asia/Hovd":{c:["MN"]},"Asia/Irkutsk":{c:["RU"]},"Asia/Jakarta":{c:["ID"]},"Asia/Jayapura":{c:["ID"]},"Asia/Jerusalem":{c:["IL"]},"Asia/Kabul":{c:["AF"]},"Asia/Kamchatka":{c:["RU"]},"Asia/Karachi":{c:["PK"]},"Asia/Kathmandu":{c:["NP"]},"Asia/Khandyga":{c:["RU"]},"Asia/Kolkata":{c:["IN"]},"Asia/Krasnoyarsk":{c:["RU"]},"Asia/Kuala_Lumpur":{c:["MY"]},"Asia/Kuching":{c:["MY"]},"Asia/Kuwait":{c:["KW"]},"Asia/Macau":{c:["MO"]},"Asia/Magadan":{c:["RU"]},"Asia/Makassar":{c:["ID"]},"Asia/Manila":{c:["PH"]},"Asia/Muscat":{c:["OM"]},"Asia/Nicosia":{c:["CY"]},"Asia/Novokuznetsk":{c:["RU"]},"Asia/Novosibirsk":{c:["RU"]},"Asia/Omsk":{c:["RU"]},"Asia/Oral":{c:["KZ"]},"Asia/Phnom_Penh":{c:["KH"]},"Asia/Pontianak":{c:["ID"]},"Asia/Pyongyang":{c:["KP"]},"Asia/Qatar":{c:["QA","BH"]},"Asia/Qostanay":{c:["KZ"]},"Asia/Qyzylorda":{c:["KZ"]},"Asia/Riyadh":{c:["SA","AQ","KW","YE"]},"Asia/Sakhalin":{c:["RU"]},"Asia/Samarkand":{c:["UZ"]},"Asia/Seoul":{c:["KR"]},"Asia/Shanghai":{c:["CN"]},"Asia/Singapore":{c:["SG","MY"]},"Asia/Srednekolymsk":{c:["RU"]},"Asia/Taipei":{c:["TW"]},"Asia/Tashkent":{c:["UZ"]},"Asia/Tbilisi":{c:["GE"]},"Asia/Tehran":{c:["IR"]},"Asia/Thimphu":{c:["BT"]},"Asia/Tokyo":{c:["JP"]},"Asia/Tomsk":{c:["RU"]},"Asia/Ulaanbaatar":{c:["MN"]},"Asia/Urumqi":{c:["CN"]},"Asia/Ust-Nera":{c:["RU"]},"Asia/Vientiane":{c:["LA"]},"Asia/Vladivostok":{c:["RU"]},"Asia/Yakutsk":{c:["RU"]},"Asia/Yangon":{c:["MM"]},"Asia/Yekaterinburg":{c:["RU"]},"Asia/Yerevan":{c:["AM"]},"Atlantic/Azores":{c:["PT"]},"Atlantic/Bermuda":{c:["BM"]},"Atlantic/Canary":{c:["ES"]},"Atlantic/Cape_Verde":{c:["CV"]},"Atlantic/Faroe":{c:["FO"]},"Atlantic/Jan_Mayen":{c:["SJ"]},"Atlantic/Madeira":{c:["PT"]},"Atlantic/Reykjavik":{c:["IS"]},"Atlantic/South_Georgia":{c:["GS"]},"Atlantic/St_Helena":{c:["SH"]},"Atlantic/Stanley":{c:["FK"]},"Australia/Adelaide":{c:["AU"]},"Australia/Brisbane":{c:["AU"]},"Australia/Broken_Hill":{c:["AU"]},"Australia/Darwin":{c:["AU"]},"Australia/Eucla":{c:["AU"]},"Australia/Hobart":{c:["AU"]},"Australia/Lindeman":{c:["AU"]},"Australia/Lord_Howe":{c:["AU"]},"Australia/Melbourne":{c:["AU"]},"Australia/Perth":{c:["AU"]},"Australia/Sydney":{c:["AU"]},"Canada/Eastern":{c:["CA"]},"Europe/Amsterdam":{c:["NL"]},"Europe/Andorra":{c:["AD"]},"Europe/Astrakhan":{c:["RU"]},"Europe/Athens":{c:["GR"]},"Europe/Belfast":{c:["GB"]},"Europe/Belgrade":{c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{c:["DE"]},"Europe/Bratislava":{c:["SK"]},"Europe/Brussels":{c:["BE"]},"Europe/Bucharest":{c:["RO"]},"Europe/Budapest":{c:["HU"]},"Europe/Busingen":{c:["DE"]},"Europe/Chisinau":{c:["MD"]},"Europe/Copenhagen":{c:["DK"]},"Europe/Dublin":{c:["IE"]},"Europe/Gibraltar":{c:["GI"]},"Europe/Guernsey":{c:["GG"]},"Europe/Helsinki":{c:["FI","AX"]},"Europe/Isle_of_Man":{c:["IM"]},"Europe/Istanbul":{c:["TR"]},"Europe/Jersey":{c:["JE"]},"Europe/Kaliningrad":{c:["RU"]},"Europe/Kiev":{c:["UA"]},"Europe/Kirov":{c:["RU"]},"Europe/Lisbon":{c:["PT"]},"Europe/Ljubljana":{c:["SI"]},"Europe/London":{c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{c:["LU"]},"Europe/Madrid":{c:["ES"]},"Europe/Malta":{c:["MT"]},"Europe/Mariehamn":{c:["AX"]},"Europe/Minsk":{c:["BY"]},"Europe/Monaco":{c:["MC"]},"Europe/Moscow":{c:["RU"]},"Europe/Oslo":{c:["NO","SJ","BV"]},"Europe/Paris":{c:["FR"]},"Europe/Podgorica":{c:["ME"]},"Europe/Prague":{c:["CZ","SK"]},"Europe/Riga":{c:["LV"]},"Europe/Rome":{c:["IT","SM","VA"]},"Europe/Samara":{c:["RU"]},"Europe/San_Marino":{c:["SM"]},"Europe/Sarajevo":{c:["BA"]},"Europe/Saratov":{c:["RU"]},"Europe/Simferopol":{c:["RU","UA"]},"Europe/Skopje":{c:["MK"]},"Europe/Sofia":{c:["BG"]},"Europe/Stockholm":{c:["SE"]},"Europe/Tallinn":{c:["EE"]},"Europe/Tirane":{c:["AL"]},"Europe/Ulyanovsk":{c:["RU"]},"Europe/Uzhgorod":{c:["UA"]},"Europe/Vaduz":{c:["LI"]},"Europe/Vatican":{c:["VA"]},"Europe/Vienna":{c:["AT"]},"Europe/Vilnius":{c:["LT"]},"Europe/Volgograd":{c:["RU"]},"Europe/Warsaw":{c:["PL"]},"Europe/Zagreb":{c:["HR"]},"Europe/Zaporozhye":{c:["UA"]},"Europe/Zurich":{c:["CH","DE","LI"]},GB:{c:["GB"]},"GB-Eire":{c:["GB"]},"Indian/Antananarivo":{c:["MG"]},"Indian/Chagos":{c:["IO"]},"Indian/Christmas":{c:["CX"]},"Indian/Cocos":{c:["CC"]},"Indian/Comoro":{c:["KM"]},"Indian/Kerguelen":{c:["TF","HM"]},"Indian/Mahe":{c:["SC"]},"Indian/Maldives":{c:["MV"]},"Indian/Mauritius":{c:["MU"]},"Indian/Mayotte":{c:["YT"]},"Indian/Reunion":{c:["RE","TF"]},NZ:{c:["NZ"]},"Pacific/Apia":{c:["WS"]},"Pacific/Auckland":{c:["NZ","AQ"]},"Pacific/Bougainville":{c:["PG"]},"Pacific/Chatham":{c:["NZ"]},"Pacific/Chuuk":{c:["FM"]},"Pacific/Easter":{c:["CL"]},"Pacific/Efate":{c:["VU"]},"Pacific/Fakaofo":{c:["TK"]},"Pacific/Fiji":{c:["FJ"]},"Pacific/Funafuti":{c:["TV"]},"Pacific/Galapagos":{c:["EC"]},"Pacific/Gambier":{c:["PF"]},"Pacific/Guadalcanal":{c:["SB"]},"Pacific/Guam":{c:["GU","MP"]},"Pacific/Honolulu":{c:["US","UM"]},"Pacific/Johnston":{c:["UM"]},"Pacific/Kanton":{c:["KI"]},"Pacific/Kiritimati":{c:["KI"]},"Pacific/Kosrae":{c:["FM"]},"Pacific/Kwajalein":{c:["MH"]},"Pacific/Majuro":{c:["MH"]},"Pacific/Marquesas":{c:["PF"]},"Pacific/Midway":{c:["UM"]},"Pacific/Nauru":{c:["NR"]},"Pacific/Niue":{c:["NU"]},"Pacific/Norfolk":{c:["NF"]},"Pacific/Noumea":{c:["NC"]},"Pacific/Pago_Pago":{c:["AS","UM"]},"Pacific/Palau":{c:["PW"]},"Pacific/Pitcairn":{c:["PN"]},"Pacific/Pohnpei":{c:["FM"]},"Pacific/Port_Moresby":{c:["PG","AQ"]},"Pacific/Rarotonga":{c:["CK"]},"Pacific/Saipan":{c:["MP"]},"Pacific/Samoa":{c:["WS"]},"Pacific/Tahiti":{c:["PF"]},"Pacific/Tarawa":{c:["KI"]},"Pacific/Tongatapu":{c:["TO"]},"Pacific/Wake":{c:["UM"]},"Pacific/Wallis":{c:["WF"]},Singapore:{c:["SG"]},"US/Alaska":{c:["US"]},"US/Aleutian":{c:["US"]},"US/Arizona":{c:["US"]},"US/Central":{c:["US"]},"US/East-Indiana":{c:["US"]},"US/Eastern":{c:["US"]},"US/Hawaii":{c:["US"]},"US/Indiana-Starke":{c:["US"]},"US/Michigan":{c:["US"]},"US/Mountain":{c:["US"]},"US/Pacific":{c:["US"]},"US/Samoa":{c:["WS"]}};var u=r(9069),l=r(1587),s=r(1211),A=r(5198);const f={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"};var d=r(426),m=r(9234),p=r(5200),h=r(1275),g=function(){return g=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},g.apply(this,arguments)};const v=(0,c.forwardRef)((function(e,a){var r=e.show,t=e.itemOnClick,n=e.responsiveStyles,o=e.dropdownWidth,u=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["show","itemOnClick","responsiveStyles","dropdownWidth"]),l=(0,c.useRef)({}),s=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(""),2),f=s[0],d=s[1],v=(0,c.useRef)(null);(0,c.useEffect)((function(){r?v.current&&setTimeout((function(){var e;null===(e=v.current)||void 0===e||e.focus()}),50):d("")}),[r]);var S=(0,c.useMemo)((function(){var e=A.ZP.filter((function(e){var a,r=e.countryCode,i=e.countryName,c=e.phoneCode;return!(!(null===(a=m.BZ)||void 0===a?void 0:a.isSupportedCountry(r))||p.fD.client&&!A.lC.has(r))&&(!f||r.toLowerCase().includes(f)||i.toLowerCase().includes(f)||"+".concat(c).includes(f))}));return(0,i.BX)(i.HY,{children:[(0,i.tZ)("input",{ref:v,placeholder:"Search",css:{width:"100%",height:"30px",outline:"none",border:"none",borderBottom:"1px solid grey",padding:"5px 10px",fontSize:"14px"},onKeyDown:function(a){var r=function(){a.preventDefault(),a.stopPropagation()};if("ArrowDown"===a.key){r();var i=e[0];i&&l.current[i.countryCode].focus()}else"Enter"===a.key&&r()},onChange:function(e){return d(e.target.value.toLowerCase())},tabIndex:0}),e.map((function(e){var a=e.flag,r=e.countryCode,c=e.countryName,n=e.phoneCode;return(0,i.BX)("li",g({ref:function(e){l.current[r]=e},css:{padding:"2px 10px",display:"flex",alignItems:"center",transition:"0.1s ease all",fontSize:"14px","&:hover":{backgroundColor:"#e6e6e644"},"&:focus-visible":{outline:"none",backgroundColor:"#e6e6e644"}},tabIndex:0,onKeyDown:function(e){var a,i,c=function(){e.preventDefault(),e.stopPropagation()};"Enter"===e.key?(c(),t(r,n)):["ArrowDown","ArrowRight"].includes(e.key)?(c(),null===(a=l.current[r].nextSibling)||void 0===a||a.focus()):["ArrowUp","ArrowLeft"].includes(e.key)&&(c(),null===(i=l.current[r].previousSibling)||void 0===i||i.focus())},onClick:function(){return t(r,n)}},{children:[(0,i.tZ)("span",g({css:{fontSize:"24px",marginRight:"7px",lineHeight:"33px",fontFamily:'"Twemoji Country Flags", sans-serif'}},{children:a})),c,(0,i.BX)("span",g({css:{marginLeft:"7px",color:"grey"}},{children:["+",n]}))]}),r)}))]})}),[f]),y=void 0!==o?"".concat(o,"px"):"100%";return(0,i.tZ)("ul",g({css:g({zIndex:h.m6,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",maxHeight:"210px",overflowY:"scroll",overflowX:"hidden",boxSizing:"border-box",width:y},n.getTarget("dropdown")),ref:a},u,{children:S}))}));var S=r(6867),y=r(9479),C={IN:12,SG:10},M=r(7449),E=r(5398),b=function(){return b=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},b.apply(this,arguments)},R=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n},U="US",B=A.ZP.reduce((function(e,a){var r=a.flag,i=a.countryCode,c=a.phoneCode;return e[i]={flag:r,phoneCode:c},e}),{});const P=(0,c.memo)((function(e){var a=e.element,r=e.responsiveStyles,t=e.fieldLabel,A=e.fullNumber,p=e.elementProps,h=void 0===p?{}:p,g=e.required,P=void 0!==g&&g,T=e.disabled,w=void 0!==T&&T,G=e.repeatIndex,k=void 0===G?null:G,I=e.autoComplete,L=e.editMode,N=e.onComplete,K=void 0===N?function(){}:N,O=e.setRef,D=void 0===O?function(){}:O,Z=e.inlineError,_=e.rightToLeft,x=e.onEnter,F=e.children,H=(0,c.useRef)(null),j=(0,c.useRef)(null),W=(0,c.useRef)(null),V=(0,c.useRef)(null),Y=(0,c.useRef)(null),J=R((0,c.useState)(null),2),z=J[0],X=J[1],Q=R((0,c.useState)(0),2),q=Q[0],$=Q[1],ee=R((0,c.useState)(!1),2),ae=ee[0],re=ee[1],ie=R((0,c.useState)(""),2),ce=ie[0],te=ie[1],ne=a.servar,oe=(0,c.useMemo)((function(){if("auto"===ne.metadata.default_country){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(!e)return U;var a=o[e];if(!a)return U;var r=a.c[0];return r in B?r:U}return ne.metadata.default_country||U}),[ne.metadata.default_country]),ue=R((0,c.useState)(oe),2),le=ue[0],se=ue[1];(0,c.useEffect)((function(){return se(oe)}),[oe]),(0,c.useEffect)((function(){try{!function(e="Twemoji Country Flags",a="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&n("😊")&&!n("🇨🇭")){const r=document.createElement("style");r.textContent=`@font-face {\n font-family: "${e}";\n unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,\n U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;\n src: url('${a}') format('woff2');\n font-display: swap;\n }`,document.head.appendChild(r)}}()}catch(e){}}),[]);var Ae=B[le].phoneCode,fe=R((0,c.useState)(""),2),de=fe[0],me=fe[1],pe=R((0,c.useState)(a.properties.placeholder),2),he=pe[0],ge=pe[1],ve=R((0,c.useState)(!1),2),Se=ve[0],ye=ve[1],Ce=(0,E.Z)(W).width,Me=(0,S.Z)({element:a,error:Z,breakpoint:r.getMobileBreakpoint()}),Ee=Me.borderStyles,be=Me.customBorder,Re=function(e){return e.length+(e.length>3?2:1)},Ue=function(e){X(e),$((function(e){return e+1}))},Be=function(e){Ue(Re(e))};(0,c.useEffect)((function(){var e=Y.current;e&&null!==z&&e.setSelectionRange(z,z)}),[q]),(0,c.useEffect)((function(){A===ce||L||m.hV.then((function(e){var a,r;if(e){var i=new e.AsYouType;i.input("+".concat(A));var c=null!==(a=i.getNumber())&&void 0!==a?a:"";te(A),me(A),c&&se(null!==(r=c.country)&&void 0!==r?r:le)}}))}),[A]);var Pe=(0,c.useMemo)((function(){if(""===de)return"";var e=m.BZ;if(!e)return"+".concat(de);var a=new e.AsYouType(le),r=e.parseDigits(de,le);return a.input("+".concat(r))}),[le,de]);(0,c.useEffect)((function(){var e,r=null!==(e=a.properties.placeholder)&&void 0!==e?e:"";if(L||r)ge(r);else{var i=f[le];m.hV.then((function(e){e&&ge(e.parsePhoneNumber(i,le).formatInternational())}))}}),[le,a]);var Te=function(e){(A||e)&&e!==A&&(te(e),K(e))},we=!ne.metadata.disable_other_countries,Ge=we?{cursor:"pointer","&:hover":(0,y.wL)({backgroundColor:"#e6e6e633"})}:{};return(0,i.BX)("div",b({ref:j,css:b({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:L?"none":"auto"},r.getTarget("fc"))},h,{children:[F,t,(0,i.BX)("div",b({ref:W,css:b(b(b({display:"flex",position:"relative"},r.getTarget("sub-fc")),w?r.getTarget("disabled"):{}),{"&:hover":(0,y.wL)(w?{}:b(b({},r.getTarget("hover")),Ee.hover)),"&&":Se?b(b({},r.getTarget("active")),Ee.active):{}})},{children:[be,(0,i.tZ)("div",b({"data-testid":"country-trigger",css:b(b({transition:"0.2s ease all",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 6px",position:"relative",cursor:"default",fontFamily:'"Twemoji Country Flags", sans-serif'},r.getTarget("fieldToggle")),Ge),ref:H,onClick:function(){we&&!w&&re(!ae)}},{children:B[le].flag})),(0,i.tZ)(M.Z,b({show:ae,onHide:function(){return re(!1)},targetRef:H,containerRef:j,placement:"bottom-start",offset:0},{children:(0,i.tZ)(v,{itemOnClick:function(e,a){se(e),me(a),Be(a),re(!1),Te(a),Y.current.focus()},responsiveStyles:r,dropdownWidth:Ce,ref:function(e){V.current=e},show:ae})}),"overlay-".concat(le)),(0,i.BX)("div",b({css:{position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"}},{children:[(0,i.tZ)("input",{id:ne.key,name:ne.key,css:b(b(b(b({backgroundColor:"transparent",height:"100%",width:"100%",border:"none",margin:0},_?{textAlign:"right"}:{}),s.ET),r.getTarget("field")),Se||Pe||!he?{}:{color:"transparent !important"}),required:P,disabled:w,placeholder:"","aria-label":a.properties.aria_label,value:Pe,ref:function(e){Y.current=e,D(e)},type:"tel",autoComplete:"on"===I?"tel":"new-password",dir:"ltr",onFocus:function(e){(0,y.ms)(e),me((function(e){return""===e?(Be(Ae),Ae):e})),ye(!0)},onClick:function(e){!function(e){var a;if(e){var r=Re(Ae),i=null!==(a=e.selectionStart)&&void 0!==a?a:r;if(i>=r)X(i);else{var c=de.length>Ae.length?e.value.length:r;e.setSelectionRange(c,c),X(c)}}}(e.currentTarget)},onBlur:function(){var e=de;Ae.startsWith(de)&&(X(null),me(e="")),Te(e),ye(!1)},onKeyDown:function(e){"Enter"===e.key?(Te(de),x(e)):"+"===e.key&&re(!0)},onChange:function(e){var a,r=e.target.selectionStart,i=e.target.value;if(i){var c=m.BZ;if(!c)return;if((i.match(/\+/g)||[]).length>1){var t=i.lastIndexOf("+");i=i.slice(t)}if((i=i.replace(/\s/g,"")).includes("+")||(i=c.validatePhoneNumberLength(i,le)&&i.startsWith(Ae)?"+".concat(i):"+".concat(Ae).concat(i)),!i.startsWith("+".concat(Ae)))return;if(i.startsWith("+11"))return;var n=c.parseDigits(i,le);if("TOO_LONG"===c.validatePhoneNumberLength(n,le)||(a=le)in C&&n.length>C[a])return;var o=new c.AsYouType(le).input("+".concat(n)),u=c.parseDigits(Pe.slice(0,null!=z?z:0)).length;me(n);var l=c.parseDigits(o,le).length-c.parseDigits(Pe,le).length;if(r&&l>0)for(;r<=o.length&&!(0,d.e9)(o[r])||c.parseDigits(o.slice(0,r)).length<=u;)r++}else me(Ae),r=Re(Ae);Ue(null!=r?r:0)}}),he&&(0,i.tZ)(u.Z,{value:Pe,element:{properties:{placeholder:he}},responsiveStyles:r,repeatIndex:k}),(0,i.tZ)(l.Z,{containerRef:j,id:a.id,text:a.properties.tooltipText,responsiveStyles:r,repeat:a.repeat})]}))]}))]}))}))},5398:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(7294),c=r(9479);function t(e){var a=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,i.useState)({width:void 0,height:void 0}),2),r=a[0],t=a[1];return(0,i.useLayoutEffect)((function(){var a=function(){var a=e.current;if(a){var r=a.getBoundingClientRect(),i=r.width,c=r.height;t({width:i>0?i:void 0,height:c>0?c:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var i=(0,c.Kv)();return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener?(i.addEventListener("resize",a),a(),function(){return i.removeEventListener("resize",a)}):void a()}var n=new ResizeObserver((function(){return a()}));try{n.observe(r,{box:"border-box"})}catch(e){n.observe(r)}return a(),function(){return n.disconnect()}}}),[e]),r}}}]);
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[707],{1587:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),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}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,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}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,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}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},8500:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9234),c=r(6867),s=r(1275),d=r(7449),f=r(5398),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.m,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(426),g=r(2988),y=r(9479),b=r(5096),w=r(3466),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})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[707],{1587:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),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}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,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}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,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}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},8500:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9234),c=r(6867),s=r(1275),d=r(7449),f=r(5398),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(426),g=r(2988),y=r(9479),b=r(5096),w=r(3466),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})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);