@feathery/react 2.48.1 → 2.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Form/grid/Container/index.d.ts.map +1 -1
- package/cjs/Form/grid/StyledContainer/utils.d.ts.map +1 -1
- package/cjs/elements/basic/ButtonElement.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/EditableCell.d.ts +5 -2
- package/cjs/elements/basic/TableElement/EditableCell.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/index.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/styles.d.ts +0 -23
- package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/types.d.ts +4 -0
- package/cjs/elements/basic/TableElement/types.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/useTableMutations.d.ts +0 -1
- package/cjs/elements/basic/TableElement/useTableMutations.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/utils.d.ts +14 -0
- package/cjs/elements/basic/TableElement/utils.d.ts.map +1 -1
- package/cjs/elements/components/HoverTooltip.d.ts +24 -0
- package/cjs/elements/components/HoverTooltip.d.ts.map +1 -0
- package/cjs/elements/components/InlineTooltip.d.ts.map +1 -1
- package/cjs/elements/components/Overlay.d.ts +1 -1
- package/cjs/elements/components/Overlay.d.ts.map +1 -1
- package/cjs/elements/components/QuikFormViewer.d.ts.map +1 -1
- package/cjs/elements/components/TextHoverTooltip.d.ts.map +1 -1
- package/cjs/elements/components/Tooltip.d.ts +2 -1
- package/cjs/elements/components/Tooltip.d.ts.map +1 -1
- package/cjs/{fthry_AssistantChat.BjyKdtNo.js → fthry_AssistantChat.BT32wDG3.js} +4 -4
- package/cjs/{fthry_FormControl.Bjj4gcfs.js → fthry_FormControl.D4ekieUI.js} +1 -1
- package/cjs/{fthry_InlineTooltip.D5tgdB4g.js → fthry_InlineTooltip.D5NfxKVo.js} +2 -16
- package/cjs/{fthry_PaymentMethodField.Cx5IV_Aw.js → fthry_PaymentMethodField.vpxb_M9_.js} +3 -4
- package/cjs/{fthry_Placeholder.BeZ9F1hP.js → fthry_Placeholder.hq6Cgqjd.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.DO1SzK0H.js → fthry_ShowEyeIcon.C-wsnI6q.js} +1 -1
- package/cjs/{fthry_TabsElement.C1KUbyBb.js → fthry_TabsElement.BHVCgyd9.js} +1 -1
- package/cjs/{fthry_auto-track.CJBR_dw-.js → fthry_auto-track.g9k-T7sJ.js} +2 -2
- package/cjs/{fthry_highlighted-body-TPN3WLV5.BdAGVyam.js → fthry_highlighted-body-TPN3WLV5.CaePR3vZ.js} +3 -3
- package/cjs/{fthry_index.C0KW8hya.js → fthry_index.B5pgafIl.js} +2 -2
- package/cjs/{fthry_index.BpZi8dM4.js → fthry_index.BDV7qf2C.js} +5 -6
- package/cjs/{fthry_index.BhoKqCQO.js → fthry_index.BLKRQSHw.js} +2 -2
- package/cjs/{fthry_index.BWAq_scB.js → fthry_index.BcQE05aQ.js} +2 -2
- package/cjs/{fthry_index.C78x3b5O.js → fthry_index.BdAvU9aA.js} +5 -6
- package/cjs/{fthry_index.6SblfScs.js → fthry_index.BdOfkVzz.js} +2 -2
- package/cjs/{fthry_index.CjM_QMbB.js → fthry_index.BfD3esIa.js} +2 -2
- package/cjs/{fthry_index.BvriCG1q.js → fthry_index.BiCUy3Q2.js} +1 -1
- package/cjs/{fthry_index.CwpWkape.js → fthry_index.BldM4IKR.js} +343 -52
- package/cjs/{fthry_index.DRA1vbTd.js → fthry_index.ByQJ8Db5.js} +10 -10
- package/cjs/{fthry_index.97eysi95.js → fthry_index.C6YeHjI_.js} +5 -6
- package/cjs/{fthry_index.CqC7Lj7F.js → fthry_index.CNXv_44w.js} +5 -6
- package/cjs/{fthry_index.BOexWQ2G.js → fthry_index.COg3w9c8.js} +1 -1
- package/cjs/{fthry_index.CU2qYyyW.js → fthry_index.CSq9ML1V.js} +2 -2
- package/cjs/{fthry_index.B1e00tAu.js → fthry_index.CW8fXwgP.js} +6 -7
- package/cjs/{fthry_index.CeWHxiu2.js → fthry_index.CX5Tx1di.js} +3 -4
- package/cjs/{fthry_index.CGzU2RS3.js → fthry_index.Cb-o7T3I.js} +1 -1
- package/cjs/{fthry_index.DghgxDID.js → fthry_index.ClbpUjqu.js} +8 -9
- package/cjs/{fthry_index.DyPl9RTy.js → fthry_index.Cn-052XC.js} +1 -1
- package/cjs/{fthry_index.Bkg_JW4Z.js → fthry_index.D3svtoqj.js} +4 -5
- package/cjs/{fthry_index.BbZu0dS9.js → fthry_index.D42pyZzz.js} +3 -4
- package/cjs/{fthry_index.WdgJ-r5S.js → fthry_index.DAY5VW01.js} +5 -6
- package/cjs/{fthry_index.SMUP75Ic.js → fthry_index.DgVU5DPg.js} +3 -3
- package/cjs/{fthry_index.O5z58cdJ.js → fthry_index.DjKuHZML.js} +4 -5
- package/cjs/{fthry_index.duLdHjUv.js → fthry_index.DpQfBE8n.js} +151 -141
- package/cjs/{fthry_index.B3VA122M.js → fthry_index.DqCigvUs.js} +1 -1
- package/cjs/{fthry_index.foJzYyYX.js → fthry_index.QAttsABq.js} +1 -1
- package/cjs/{fthry_index.CeKZIDEV.js → fthry_index.QRzfI0b4.js} +3 -18
- package/cjs/{fthry_index.ycfNh9WZ.js → fthry_index.m_XKSVM8.js} +1 -1
- package/cjs/{fthry_index.Dhp1zjHK.js → fthry_index.s2Ah9v4O.js} +1 -1
- package/cjs/{fthry_index.CRXRQpkJ.js → fthry_index.u0sKUa7-.js} +1 -1
- package/cjs/{fthry_index.umd.B7oz9tEv.js → fthry_index.umd.Cl6yVNEY.js} +1 -1
- package/cjs/{fthry_input.BFEJqFg2.js → fthry_input.CzTMRvUa.js} +1 -1
- package/cjs/{fthry_mermaid-O7DHMXV3.-sm2XLZv.js → fthry_mermaid-O7DHMXV3.1Tp00mbG.js} +3 -3
- package/cjs/{fthry_script.CrJCYCaD.js → fthry_script.B2r1qN9_.js} +1 -1
- package/cjs/{fthry_styles.CBI9OfcR.js → fthry_styles.BcMEcBUF.js} +1 -1
- package/cjs/{fthry_useElementSize.Dq3fkD_k.js → fthry_useElementSize.91AcUxkY.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.DkO47B4_.js → fthry_useSalesforceSync.BQORLqHu.js} +1 -1
- package/cjs/{fthry_webfontloader.BbP2ET0j.js → fthry_webfontloader.DbJc3-T2.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/thumbnail-renderer.js +1 -1
- package/cjs/types/Form.d.ts +3 -0
- package/cjs/types/Form.d.ts.map +1 -1
- package/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/Form/grid/Container/index.d.ts.map +1 -1
- package/dist/Form/grid/StyledContainer/utils.d.ts.map +1 -1
- package/dist/elements/basic/ButtonElement.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/EditableCell.d.ts +5 -2
- package/dist/elements/basic/TableElement/EditableCell.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/index.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/styles.d.ts +0 -23
- package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/tests/EditableCell.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/EditableCell.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/tests/TableElement.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/TableElement.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/tests/tabNavigation.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/tabNavigation.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/types.d.ts +4 -0
- package/dist/elements/basic/TableElement/types.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/useTableMutations.d.ts +0 -1
- package/dist/elements/basic/TableElement/useTableMutations.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/utils.d.ts +14 -0
- package/dist/elements/basic/TableElement/utils.d.ts.map +1 -1
- package/dist/elements/components/HoverTooltip.d.ts +24 -0
- package/dist/elements/components/HoverTooltip.d.ts.map +1 -0
- package/dist/elements/components/InlineTooltip.d.ts.map +1 -1
- package/dist/elements/components/Overlay.d.ts +1 -1
- package/dist/elements/components/Overlay.d.ts.map +1 -1
- package/dist/elements/components/QuikFormViewer.d.ts.map +1 -1
- package/dist/elements/components/TextHoverTooltip.d.ts.map +1 -1
- package/dist/elements/components/Tooltip.d.ts +2 -1
- package/dist/elements/components/Tooltip.d.ts.map +1 -1
- package/dist/{fthry_AssistantChat.h6NTcnjr.js → fthry_AssistantChat.BxCe9PjE.js} +4 -4
- package/dist/{fthry_FormControl.DQP6LlCL.js → fthry_FormControl.BpMXWUv6.js} +1 -1
- package/dist/{fthry_InlineTooltip.DUtqoLti.js → fthry_InlineTooltip.Brp4oi0p.js} +2 -16
- package/dist/{fthry_PaymentMethodField.DoX9prJ2.js → fthry_PaymentMethodField.0oIU1B6N.js} +3 -4
- package/dist/{fthry_Placeholder.DIKXUrCe.js → fthry_Placeholder.CEPxPTLL.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.BsDiRWJb.js → fthry_ShowEyeIcon.BWU3OOxh.js} +1 -1
- package/dist/{fthry_TabsElement.JCYNaBSd.js → fthry_TabsElement.DFuHUYUv.js} +1 -1
- package/dist/{fthry_auto-track.CZcLqilZ.js → fthry_auto-track.CizHo0k5.js} +2 -2
- package/dist/{fthry_highlighted-body-TPN3WLV5.DwNcoR0j.js → fthry_highlighted-body-TPN3WLV5.DDCKzqBt.js} +3 -3
- package/dist/{fthry_index.BD5OtLZc.js → fthry_index.-GpsDCwK.js} +3 -4
- package/dist/{fthry_index.mEvi-eyb.js → fthry_index.6wMTFMTj.js} +152 -142
- package/dist/{fthry_index.BKjEGHR_.js → fthry_index.BDSy9TBV.js} +4 -5
- package/dist/{fthry_index.BXqHrLYx.js → fthry_index.BeEYTrUw.js} +2 -2
- package/dist/{fthry_index.D48zqV-m.js → fthry_index.Bmr2qAQ9.js} +1 -1
- package/dist/{fthry_index.INdwJAsd.js → fthry_index.Bn_DZ8s-.js} +2 -2
- package/dist/{fthry_index.k3Hq7wKG.js → fthry_index.Bs0b7fF8.js} +1 -1
- package/dist/{fthry_index.C9bj3Amt.js → fthry_index.ByfmNWHm.js} +2 -2
- package/dist/{fthry_index.BFPFVaWv.js → fthry_index.C-3BwV3D.js} +1 -1
- package/dist/{fthry_index.dmme1I7g.js → fthry_index.CEFYX7Cb.js} +1 -1
- package/dist/{fthry_index.D9kooW59.js → fthry_index.CKyEKNhB.js} +3 -4
- package/dist/{fthry_index.BkzGvVg2.js → fthry_index.CV6KaQP2.js} +3 -18
- package/dist/{fthry_index.KFRNwcZ_.js → fthry_index.CXvBwACd.js} +1 -1
- package/dist/{fthry_index.CHb07pX6.js → fthry_index.CgeOgf6v.js} +7 -8
- package/dist/{fthry_index.C2QdbMzv.js → fthry_index.Cl0vinm2.js} +2 -2
- package/dist/{fthry_index.BgCJlRTN.js → fthry_index.DD4JAsd0.js} +3 -3
- package/dist/{fthry_index.DHIhJeBb.js → fthry_index.DF33pFg0.js} +2 -2
- package/dist/{fthry_index.CPrLJ4J-.js → fthry_index.DZYRCGrF.js} +5 -6
- package/dist/{fthry_index.CuFf_oA3.js → fthry_index.DjeCrTPA.js} +1 -1
- package/dist/{fthry_index.Bl_YFFMi.js → fthry_index.DkB3n_gE.js} +4 -5
- package/dist/{fthry_index.Bfo0vjcQ.js → fthry_index.DtEJ8UnC.js} +4 -5
- package/dist/{fthry_index.DW4ZEycb.js → fthry_index.DuFXqlIh.js} +4 -5
- package/dist/{fthry_index.CCyrVDsN.js → fthry_index.Gk4XHc2v.js} +4 -5
- package/dist/{fthry_index.DNmwwxoZ.js → fthry_index.HfY_xMXi.js} +10 -10
- package/dist/{fthry_index.DZPtLmTA.js → fthry_index.Tz4wWr5G.js} +5 -6
- package/dist/{fthry_index.B21PnTei.js → fthry_index.UaQC1EFo.js} +341 -53
- package/dist/{fthry_index.B4uTV15J.js → fthry_index.UqBNOqYF.js} +1 -1
- package/dist/{fthry_index.C75qxU8Z.js → fthry_index.X-5RnKbv.js} +1 -1
- package/dist/{fthry_index.By9XI2Se.js → fthry_index.caHStIvy.js} +1 -1
- package/dist/{fthry_index.Br_wsbaD.js → fthry_index.l3GNavsZ.js} +5 -6
- package/dist/{fthry_index.umd.CNiEdJLO.js → fthry_index.umd.zD2ytPrK.js} +1 -1
- package/dist/{fthry_index.B03qg4WP.js → fthry_index.wOe1Wv1J.js} +2 -2
- package/dist/{fthry_input.C13Hy41e.js → fthry_input.vNAUHsdE.js} +1 -1
- package/dist/fthry_mermaid-O7DHMXV3.C6znNgyC.js +8 -0
- package/dist/{fthry_script.DG-h2qqu.js → fthry_script.ClnRFan9.js} +1 -1
- package/dist/{fthry_styles.BbfFntw_.js → fthry_styles.NzBPYPQ9.js} +1 -1
- package/dist/{fthry_useElementSize.Bvu4QN6c.js → fthry_useElementSize.CGVQMCbV.js} +1 -1
- package/dist/{fthry_useSalesforceSync.DxPyrYOH.js → fthry_useSalesforceSync.DDPGKOl4.js} +1 -1
- package/dist/{fthry_webfontloader.BZH4UrSE.js → fthry_webfontloader.BY0qufCl.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/thumbnail-renderer.js +1 -1
- package/dist/types/Form.d.ts +3 -0
- package/dist/types/Form.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/AddressField.4a4788a40afba5fc22d2.js +1 -0
- package/umd/ButtonGroupField.fcf087a9664e14da7fc5.js +1 -0
- package/umd/CheckboxGroupField.7b055043cbd1ef8b3787.js +1 -0
- package/umd/DateSelectorField.b87988253da02a40c6f7.js +1 -0
- package/umd/DropdownField.459ba798e2ff6a8518c2.js +1 -0
- package/umd/DropdownMultiField.ad59b04c5e3c1ad1a6e8.js +1 -0
- package/umd/MatrixField.6541a0f9570b2c56e336.js +1 -0
- package/umd/PasswordField.fb8f587107389274112e.js +1 -0
- package/umd/PaymentMethodField.f6820da8252bb2eed6b1.js +1 -0
- package/umd/PhoneField.a161db93d8f815ced395.js +1 -0
- package/umd/RadioButtonGroupField.9a43334b87129e33afd2.js +1 -0
- package/umd/TableElement.f51ba6d3b0a6c7835187.js +1 -0
- package/umd/TextArea.8341b3d302383a53175d.js +1 -0
- package/umd/TextField.fa9f11c4b1fab1747ae1.js +1 -0
- package/umd/index.js +1 -1
- package/cjs/fthry_Overlay.DLteVVAy.js +0 -231
- package/dist/fthry_Overlay.DjQfEgir.js +0 -228
- package/dist/fthry_mermaid-O7DHMXV3.rQggAcUJ.js +0 -8
- package/umd/277.1a33ea06f86326613fcb.js +0 -1
- package/umd/664.4a3ec465094a3d59c184.js +0 -1
- package/umd/AddressField.648b3da916171008dc9f.js +0 -1
- package/umd/ButtonGroupField.d39ac976a6dee9ef593a.js +0 -1
- package/umd/CheckboxGroupField.e495eb152c4faa000d4b.js +0 -1
- package/umd/DateSelectorField.e702b3e6b0a5b498c824.js +0 -1
- package/umd/DropdownField.d1a234d236d9989bbf20.js +0 -1
- package/umd/DropdownMultiField.5b4e24025035f1678c83.js +0 -1
- package/umd/MatrixField.bcd6f58ea1896f386988.js +0 -1
- package/umd/PasswordField.593d7b7d3d954634fa30.js +0 -1
- package/umd/PaymentMethodField.8e4fd6353793eaaa2b5b.js +0 -1
- package/umd/PhoneField.861b99c7e81b4b9c8648.js +0 -1
- package/umd/RadioButtonGroupField.7a333a6f7e578a181a98.js +0 -1
- package/umd/TableElement.8c0bec8400517f135fe6.js +0 -1
- package/umd/TextArea.04335be4f0f0d6c0cc1a.js +0 -1
- package/umd/TextField.749931ebb258bf38e007.js +0 -1
|
@@ -23035,8 +23035,15 @@ var resizeFitContainer = function (div) {
|
|
|
23035
23035
|
var containerMarginLeft = getStylePxValue(containerStyles.marginLeft);
|
|
23036
23036
|
var containerMarginRight = getStylePxValue(containerStyles.marginRight);
|
|
23037
23037
|
var totalMargin = containerMarginLeft + containerMarginRight;
|
|
23038
|
-
|
|
23039
|
-
|
|
23038
|
+
var totalPadding = 0;
|
|
23039
|
+
if (containerStyles.boxSizing === 'border-box') {
|
|
23040
|
+
totalPadding =
|
|
23041
|
+
getStylePxValue(containerStyles.paddingLeft) +
|
|
23042
|
+
getStylePxValue(containerStyles.paddingRight) +
|
|
23043
|
+
getStylePxValue(containerStyles.borderLeftWidth) +
|
|
23044
|
+
getStylePxValue(containerStyles.borderRightWidth);
|
|
23045
|
+
}
|
|
23046
|
+
div.style.maxWidth = "".concat(childrenWidth + totalPadding, "px");
|
|
23040
23047
|
div.style.width = "calc(100% - ".concat(totalMargin, "px)");
|
|
23041
23048
|
};
|
|
23042
23049
|
var whichTransitionEvent = function () {
|
|
@@ -23587,21 +23594,277 @@ var StyledContainer = React.forwardRef(function (_a, ref) {
|
|
|
23587
23594
|
return (jsxs(Fragment, { children: [isFixed && (jsx$1("div", exports.__assign({ className: classNames('styled-container', type, className) }, props, { css: exports.__assign(exports.__assign({}, styles), { position: 'fixed', zIndex: FORM_Z_INDEX + 1 }), ref: fixedContainerRef, "data-feathery-id": node.key, "data-element": elementType }, { children: jsx$1("div", exports.__assign({ className: 'inner-container', css: innerStyles }, { children: children })) }), "".concat(node.id, "-fixed"))), jsx$1("div", exports.__assign({ ref: ref, css: isFixed ? exports.__assign(exports.__assign({}, styles), { visibility: 'hidden' }) : styles, className: classNames('styled-container', type, className) }, props, { "data-id": node.id, "data-feathery-id": node.key, "data-element": elementType }, { children: jsx$1("div", exports.__assign({ className: 'inner-container', css: innerStyles }, { children: isFixed ? null : children })) }), node.id)] }));
|
|
23588
23595
|
});
|
|
23589
23596
|
|
|
23597
|
+
var Tooltip = function (_a) {
|
|
23598
|
+
var children = _a.children, css = _a.css, _b = _a.maxWidth, maxWidth = _b === void 0 ? '200px' : _b, props = __rest$1(_a, ["children", "css", "maxWidth"]);
|
|
23599
|
+
return (jsx$1("div", exports.__assign({ css: exports.__assign({ zIndex: FORM_Z_INDEX + 1, padding: '.4rem 0', transition: 'opacity .10s linear', '.tooltip-inner': {
|
|
23600
|
+
maxWidth: maxWidth,
|
|
23601
|
+
padding: '.25rem .5rem',
|
|
23602
|
+
color: '#fff',
|
|
23603
|
+
textAlign: 'center',
|
|
23604
|
+
backgroundColor: '#000',
|
|
23605
|
+
borderRadius: '.25rem',
|
|
23606
|
+
fontSize: 'smaller',
|
|
23607
|
+
// break long unbroken words so they wrap instead of overflowing
|
|
23608
|
+
overflowWrap: 'anywhere'
|
|
23609
|
+
} }, css) }, props, { children: jsx$1("div", exports.__assign({ className: 'tooltip-inner' }, { children: children })) })));
|
|
23610
|
+
};
|
|
23611
|
+
|
|
23612
|
+
var Overlay = function (_a) {
|
|
23613
|
+
var show = _a.show, targetRef = _a.targetRef, children = _a.children, onHide = _a.onHide, _b = _a.placement, placement = _b === void 0 ? 'bottom-start' : _b, _c = _a.offset, offset = _c === void 0 ? 0 : _c, _d = _a.zIndex, zIndex = _d === void 0 ? 1000 : _d, containerRef = _a.containerRef;
|
|
23614
|
+
var ref = React.useRef(null);
|
|
23615
|
+
var _e = __read(React.useState(null), 2), position = _e[0], setPosition = _e[1];
|
|
23616
|
+
var getContainer = React.useCallback(function () {
|
|
23617
|
+
return (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || featheryDoc().body;
|
|
23618
|
+
}, [containerRef]);
|
|
23619
|
+
var recalcPosition = React.useCallback(function () {
|
|
23620
|
+
var _a;
|
|
23621
|
+
if (!show || !targetRef.current || !ref.current)
|
|
23622
|
+
return;
|
|
23623
|
+
var window = featheryWindow();
|
|
23624
|
+
var container = getContainer();
|
|
23625
|
+
if (!container)
|
|
23626
|
+
return;
|
|
23627
|
+
var targetRect = targetRef.current.getBoundingClientRect();
|
|
23628
|
+
var overlayRect = ref.current.getBoundingClientRect();
|
|
23629
|
+
var containerRect = container.getBoundingClientRect();
|
|
23630
|
+
var _b = calcPosition(placement, targetRect, overlayRect, offset), top = _b.top, left = _b.left;
|
|
23631
|
+
// Flip if it doesn’t fit
|
|
23632
|
+
var overlayBottom = top + overlayRect.height;
|
|
23633
|
+
var overlayRight = left + overlayRect.width;
|
|
23634
|
+
var fitsVertically = top >= 0 && overlayBottom <= window.innerHeight;
|
|
23635
|
+
var fitsHorizontally = left >= 0 && overlayRight <= window.innerWidth;
|
|
23636
|
+
if (!fitsVertically || !fitsHorizontally) {
|
|
23637
|
+
var flipped = getFlippedPlacement(placement, !fitsVertically, !fitsHorizontally);
|
|
23638
|
+
if (flipped !== placement) {
|
|
23639
|
+
(_a = calcPosition(flipped, targetRect, overlayRect, offset), top = _a.top, left = _a.left);
|
|
23640
|
+
}
|
|
23641
|
+
}
|
|
23642
|
+
var isBodyContainer = container === featheryDoc().body;
|
|
23643
|
+
var finalTop = isBodyContainer
|
|
23644
|
+
? top + window.scrollY
|
|
23645
|
+
: top - containerRect.top;
|
|
23646
|
+
var finalLeft = isBodyContainer
|
|
23647
|
+
? left + window.scrollX
|
|
23648
|
+
: left - containerRect.left;
|
|
23649
|
+
setPosition(function (prev) {
|
|
23650
|
+
if (!prev || prev.top !== finalTop || prev.left !== finalLeft) {
|
|
23651
|
+
return { top: finalTop, left: finalLeft };
|
|
23652
|
+
}
|
|
23653
|
+
return prev;
|
|
23654
|
+
});
|
|
23655
|
+
}, [show, placement, offset, getContainer, targetRef]);
|
|
23656
|
+
var throttledRecalc = React.useCallback(function () {
|
|
23657
|
+
var ticking = false;
|
|
23658
|
+
return function () {
|
|
23659
|
+
if (!ticking) {
|
|
23660
|
+
ticking = true;
|
|
23661
|
+
requestAnimationFrame(function () {
|
|
23662
|
+
recalcPosition();
|
|
23663
|
+
ticking = false;
|
|
23664
|
+
});
|
|
23665
|
+
}
|
|
23666
|
+
};
|
|
23667
|
+
}, [recalcPosition])();
|
|
23668
|
+
React.useLayoutEffect(function () {
|
|
23669
|
+
if (show)
|
|
23670
|
+
recalcPosition();
|
|
23671
|
+
}, [show, recalcPosition]);
|
|
23672
|
+
React.useEffect(function () {
|
|
23673
|
+
if (!show)
|
|
23674
|
+
return;
|
|
23675
|
+
var window = featheryWindow();
|
|
23676
|
+
var container = getContainer();
|
|
23677
|
+
if (!container)
|
|
23678
|
+
return;
|
|
23679
|
+
window.addEventListener('resize', throttledRecalc);
|
|
23680
|
+
window.addEventListener('scroll', throttledRecalc, true);
|
|
23681
|
+
if (container !== featheryDoc().body) {
|
|
23682
|
+
container.addEventListener('scroll', throttledRecalc);
|
|
23683
|
+
}
|
|
23684
|
+
var resizeObserver = new ResizeObserver(function () { return throttledRecalc(); });
|
|
23685
|
+
if (targetRef.current)
|
|
23686
|
+
resizeObserver.observe(targetRef.current);
|
|
23687
|
+
if (container !== featheryDoc().body)
|
|
23688
|
+
resizeObserver.observe(container);
|
|
23689
|
+
return function () {
|
|
23690
|
+
window.removeEventListener('resize', throttledRecalc);
|
|
23691
|
+
window.removeEventListener('scroll', throttledRecalc, true);
|
|
23692
|
+
if (container !== featheryDoc().body) {
|
|
23693
|
+
container.removeEventListener('scroll', throttledRecalc);
|
|
23694
|
+
}
|
|
23695
|
+
resizeObserver.disconnect();
|
|
23696
|
+
};
|
|
23697
|
+
}, [show, throttledRecalc, getContainer, targetRef]);
|
|
23698
|
+
React.useEffect(function () {
|
|
23699
|
+
if (!show)
|
|
23700
|
+
return;
|
|
23701
|
+
var handleKeyDown = function (event) {
|
|
23702
|
+
if (event.key === 'Escape') {
|
|
23703
|
+
setPosition(null);
|
|
23704
|
+
onHide === null || onHide === void 0 ? void 0 : onHide();
|
|
23705
|
+
}
|
|
23706
|
+
};
|
|
23707
|
+
var handleClickOutside = function (event) {
|
|
23708
|
+
var target = event.target;
|
|
23709
|
+
if (ref.current &&
|
|
23710
|
+
!ref.current.contains(target) &&
|
|
23711
|
+
targetRef.current &&
|
|
23712
|
+
!targetRef.current.contains(target)) {
|
|
23713
|
+
setPosition(null);
|
|
23714
|
+
onHide === null || onHide === void 0 ? void 0 : onHide();
|
|
23715
|
+
}
|
|
23716
|
+
};
|
|
23717
|
+
var doc = featheryDoc();
|
|
23718
|
+
doc.addEventListener('mousedown', handleClickOutside);
|
|
23719
|
+
doc.addEventListener('keydown', handleKeyDown);
|
|
23720
|
+
return function () {
|
|
23721
|
+
doc.removeEventListener('mousedown', handleClickOutside);
|
|
23722
|
+
doc.removeEventListener('keydown', handleKeyDown);
|
|
23723
|
+
};
|
|
23724
|
+
}, [show, onHide, targetRef]);
|
|
23725
|
+
if (!show)
|
|
23726
|
+
return null;
|
|
23727
|
+
var container = getContainer();
|
|
23728
|
+
if (!container)
|
|
23729
|
+
return jsx$1(Fragment, { children: children });
|
|
23730
|
+
return ReactDOM.createPortal(jsx$1("div", exports.__assign({ ref: ref, style: exports.__assign(exports.__assign({ position: 'absolute' }, (position || { top: -9999, left: -9999 })), { zIndex: zIndex }) }, { children: children })), container);
|
|
23731
|
+
};
|
|
23732
|
+
var getFlippedPlacement = function (original, needsVerticalFlip, needsHorizontalFlip) {
|
|
23733
|
+
if (needsVerticalFlip) {
|
|
23734
|
+
if (original.includes('top')) {
|
|
23735
|
+
return original.replace('top', 'bottom');
|
|
23736
|
+
}
|
|
23737
|
+
if (original.includes('bottom')) {
|
|
23738
|
+
return original.replace('bottom', 'top');
|
|
23739
|
+
}
|
|
23740
|
+
}
|
|
23741
|
+
if (needsHorizontalFlip) {
|
|
23742
|
+
if (original.includes('left')) {
|
|
23743
|
+
return original.replace('left', 'right');
|
|
23744
|
+
}
|
|
23745
|
+
if (original.includes('right')) {
|
|
23746
|
+
return original.replace('right', 'left');
|
|
23747
|
+
}
|
|
23748
|
+
}
|
|
23749
|
+
return original;
|
|
23750
|
+
};
|
|
23751
|
+
var calcPosition = function (pl, targetRect, overlayRect, offset) {
|
|
23752
|
+
if (offset === void 0) { offset = 0; }
|
|
23753
|
+
switch (pl) {
|
|
23754
|
+
case 'top':
|
|
23755
|
+
return {
|
|
23756
|
+
top: targetRect.top - overlayRect.height - offset,
|
|
23757
|
+
left: targetRect.left + (targetRect.width - overlayRect.width) / 2
|
|
23758
|
+
};
|
|
23759
|
+
case 'top-start':
|
|
23760
|
+
return {
|
|
23761
|
+
top: targetRect.top - overlayRect.height - offset,
|
|
23762
|
+
left: targetRect.left
|
|
23763
|
+
};
|
|
23764
|
+
case 'top-end':
|
|
23765
|
+
return {
|
|
23766
|
+
top: targetRect.top - overlayRect.height - offset,
|
|
23767
|
+
left: targetRect.right - overlayRect.width
|
|
23768
|
+
};
|
|
23769
|
+
case 'left':
|
|
23770
|
+
return {
|
|
23771
|
+
top: targetRect.top + (targetRect.height - overlayRect.height) / 2,
|
|
23772
|
+
left: targetRect.left - overlayRect.width - offset
|
|
23773
|
+
};
|
|
23774
|
+
case 'left-start':
|
|
23775
|
+
return {
|
|
23776
|
+
top: targetRect.top,
|
|
23777
|
+
left: targetRect.left - overlayRect.width - offset
|
|
23778
|
+
};
|
|
23779
|
+
case 'left-end':
|
|
23780
|
+
return {
|
|
23781
|
+
top: targetRect.bottom - overlayRect.height,
|
|
23782
|
+
left: targetRect.left - overlayRect.width - offset
|
|
23783
|
+
};
|
|
23784
|
+
case 'bottom':
|
|
23785
|
+
return {
|
|
23786
|
+
top: targetRect.bottom + offset,
|
|
23787
|
+
left: targetRect.left + (targetRect.width - overlayRect.width) / 2
|
|
23788
|
+
};
|
|
23789
|
+
case 'bottom-start':
|
|
23790
|
+
return {
|
|
23791
|
+
top: targetRect.bottom + offset,
|
|
23792
|
+
left: targetRect.left
|
|
23793
|
+
};
|
|
23794
|
+
case 'bottom-end':
|
|
23795
|
+
return {
|
|
23796
|
+
top: targetRect.bottom + offset,
|
|
23797
|
+
left: targetRect.right - overlayRect.width
|
|
23798
|
+
};
|
|
23799
|
+
case 'right':
|
|
23800
|
+
return {
|
|
23801
|
+
top: targetRect.top + (targetRect.height - overlayRect.height) / 2,
|
|
23802
|
+
left: targetRect.right + offset
|
|
23803
|
+
};
|
|
23804
|
+
case 'right-start':
|
|
23805
|
+
return {
|
|
23806
|
+
top: targetRect.top,
|
|
23807
|
+
left: targetRect.right + offset
|
|
23808
|
+
};
|
|
23809
|
+
case 'right-end':
|
|
23810
|
+
return {
|
|
23811
|
+
top: targetRect.bottom - overlayRect.height,
|
|
23812
|
+
left: targetRect.right + offset
|
|
23813
|
+
};
|
|
23814
|
+
default:
|
|
23815
|
+
return {
|
|
23816
|
+
top: targetRect.bottom + offset,
|
|
23817
|
+
left: targetRect.left + (targetRect.width - overlayRect.width) / 2
|
|
23818
|
+
};
|
|
23819
|
+
}
|
|
23820
|
+
};
|
|
23821
|
+
|
|
23822
|
+
/**
|
|
23823
|
+
* Shared overlay-anchored tooltip used by InlineTooltip (field help icon),
|
|
23824
|
+
* TextHoverTooltip (hoverable text), and container hover tooltips. Renders the
|
|
23825
|
+
* styled Tooltip inside an Overlay anchored to the provided trigger ref. The
|
|
23826
|
+
* caller owns the show state and the trigger element + its event handlers.
|
|
23827
|
+
*/
|
|
23828
|
+
function HoverTooltip(_a) {
|
|
23829
|
+
var show = _a.show, triggerRef = _a.triggerRef, text = _a.text, id = _a.id, onHide = _a.onHide, containerRef = _a.containerRef, _b = _a.placement, placement = _b === void 0 ? 'top' : _b, _c = _a.offset, offset = _c === void 0 ? 4 : _c, css = _a.css, maxWidth = _a.maxWidth;
|
|
23830
|
+
if (!text)
|
|
23831
|
+
return null;
|
|
23832
|
+
return (jsx$1(Overlay, exports.__assign({ show: show, targetRef: triggerRef, containerRef: containerRef, placement: placement, onHide: onHide, offset: offset }, { children: jsx$1(Tooltip, exports.__assign({ id: "tooltip-".concat(id), css: css, maxWidth: maxWidth }, { children: text })) })));
|
|
23833
|
+
}
|
|
23834
|
+
|
|
23590
23835
|
/**
|
|
23591
23836
|
* Container
|
|
23592
23837
|
* This component adds additional logic to the StyledContainer that is unique
|
|
23593
23838
|
* to rendering containers on hosted forms (not the editor).
|
|
23594
23839
|
*/
|
|
23595
23840
|
var Container = function (_a) {
|
|
23596
|
-
var _b, _c;
|
|
23597
|
-
var node = _a.node,
|
|
23841
|
+
var _b, _c, _d;
|
|
23842
|
+
var node = _a.node, _e = _a.runElementActions, runElementActions = _e === void 0 ? function () { } : _e, selected = _a.selected, viewport = _a.viewport, form = _a.form, children = _a.children;
|
|
23598
23843
|
var ref = React.useRef(null);
|
|
23844
|
+
var _f = __read(React.useState(false), 2), showTooltip = _f[0], setShowTooltip = _f[1];
|
|
23599
23845
|
var additionalCss = {};
|
|
23600
23846
|
var handleClick;
|
|
23847
|
+
// Container-level hover tooltips apply only to actual containers. Field
|
|
23848
|
+
// elements share the same `tooltipText` property but render their own
|
|
23849
|
+
// icon-based InlineTooltip, so they must be excluded here.
|
|
23850
|
+
var tooltipText = !node.isElement && ((_b = node.properties) === null || _b === void 0 ? void 0 : _b.tooltipText)
|
|
23851
|
+
? replaceTextVariables(node.properties.tooltipText, node.repeat)
|
|
23852
|
+
: '';
|
|
23853
|
+
var isMobile$1 = isMobile();
|
|
23854
|
+
var tooltipHoverProps = tooltipText
|
|
23855
|
+
? {
|
|
23856
|
+
// mouse hover is the primary trigger; disabled on mobile where a tap is
|
|
23857
|
+
// ambiguous (containers commonly carry click actions)
|
|
23858
|
+
onMouseEnter: isMobile$1 ? undefined : function () { return setShowTooltip(true); },
|
|
23859
|
+
onMouseLeave: isMobile$1 ? undefined : function () { return setShowTooltip(false); },
|
|
23860
|
+
onFocus: function () { return setShowTooltip(true); },
|
|
23861
|
+
onBlur: function () { return setShowTooltip(false); }
|
|
23862
|
+
}
|
|
23863
|
+
: {};
|
|
23601
23864
|
if (!node.isElement) {
|
|
23602
|
-
var properties = (
|
|
23603
|
-
var actions_1 = (
|
|
23604
|
-
var
|
|
23865
|
+
var properties = (_c = node.properties) !== null && _c !== void 0 ? _c : {};
|
|
23866
|
+
var actions_1 = (_d = properties.actions) !== null && _d !== void 0 ? _d : [];
|
|
23867
|
+
var _g = __read(getCellStyle(node, undefined, form.formSettings.mobileBreakpoint), 3), _h = _g[1], cellHoverStyle = _h === void 0 ? {} : _h, _j = _g[2], cellActiveStyle = _j === void 0 ? {} : _j;
|
|
23605
23868
|
var selectableStyles = actions_1.length > 0
|
|
23606
23869
|
? exports.__assign(exports.__assign({ cursor: 'pointer', transition: '0.2s ease opacity, color, background-color, border-width, border-color, outline, box-shadow' }, (selected ? cellActiveStyle : {})), { '&:hover': cellHoverStyle }) : {};
|
|
23607
23870
|
handleClick = function (e) {
|
|
@@ -23622,7 +23885,7 @@ var Container = function (_a) {
|
|
|
23622
23885
|
};
|
|
23623
23886
|
Object.assign(additionalCss, selectableStyles);
|
|
23624
23887
|
}
|
|
23625
|
-
return (jsx$1(StyledContainer, exports.__assign({ ref: ref, node: node, css: additionalCss, onClick: handleClick, viewport: viewport, breakpoint: form.formSettings.mobileBreakpoint }, { children: children })));
|
|
23888
|
+
return (jsxs(Fragment, { children: [jsx$1(StyledContainer, exports.__assign({ ref: ref, node: node, css: additionalCss, onClick: handleClick, viewport: viewport, breakpoint: form.formSettings.mobileBreakpoint }, tooltipHoverProps, { children: children })), tooltipText && (jsx$1(HoverTooltip, { show: showTooltip, triggerRef: ref, text: tooltipText, id: node.id, onHide: function () { return setShowTooltip(false); }, maxWidth: '320px' }))] }));
|
|
23626
23889
|
};
|
|
23627
23890
|
|
|
23628
23891
|
function transformCalendlyParams(config) {
|
|
@@ -24258,7 +24521,24 @@ function QuikFormViewer(_a) {
|
|
|
24258
24521
|
};
|
|
24259
24522
|
}, [setShow]);
|
|
24260
24523
|
if (!htmlContent)
|
|
24261
|
-
return jsx$1("div", {
|
|
24524
|
+
return (jsx$1("div", exports.__assign({ css: {
|
|
24525
|
+
display: 'flex',
|
|
24526
|
+
alignItems: 'center',
|
|
24527
|
+
justifyContent: 'center',
|
|
24528
|
+
width: '100%',
|
|
24529
|
+
height: '100%',
|
|
24530
|
+
minHeight: 200
|
|
24531
|
+
} }, { children: jsxs("div", exports.__assign({ css: {
|
|
24532
|
+
display: 'flex',
|
|
24533
|
+
flexDirection: 'column',
|
|
24534
|
+
alignItems: 'center',
|
|
24535
|
+
gap: 16
|
|
24536
|
+
} }, { children: [jsx$1("div", exports.__assign({ css: { fontSize: 28 } }, { children: jsx$1(FeatherySpinner, {}) })), jsx$1("span", exports.__assign({ css: {
|
|
24537
|
+
fontFamily: "'Helvetica Neue', helvetica, arial, sans-serif",
|
|
24538
|
+
fontSize: 16,
|
|
24539
|
+
fontWeight: 400,
|
|
24540
|
+
color: '#414859'
|
|
24541
|
+
} }, { children: "Generating your paperwork. Please wait..." }))] })) })));
|
|
24262
24542
|
return (jsx$1("div", exports.__assign({ css: inline
|
|
24263
24543
|
? { width: '100%', height: '100%', overflow: 'auto' }
|
|
24264
24544
|
: {
|
|
@@ -41088,7 +41368,7 @@ function useTrackUserInteraction(formRef, activeStep, stepKey, formName) {
|
|
|
41088
41368
|
}, [activeStep, stepKey, formName]);
|
|
41089
41369
|
}
|
|
41090
41370
|
|
|
41091
|
-
var LazyAssistantChat = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "AssistantChat" */ './fthry_AssistantChat.
|
|
41371
|
+
var LazyAssistantChat = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "AssistantChat" */ './fthry_AssistantChat.BT32wDG3.js'); }).then(function (n) { return n.AssistantChat; }); });
|
|
41092
41372
|
var AssistantChat = function (props) { return (jsx$1(React.Suspense, exports.__assign({ fallback: null }, { children: jsx$1(LazyAssistantChat, exports.__assign({}, props)) }))); };
|
|
41093
41373
|
|
|
41094
41374
|
var AssistantClient = /** @class */ (function () {
|
|
@@ -45129,7 +45409,7 @@ function loadSegment(segmentConfig, queue) {
|
|
|
45129
45409
|
case 0:
|
|
45130
45410
|
_a.trys.push([0, 2, , 3]);
|
|
45131
45411
|
return [4 /*yield*/, Promise.resolve().then(function () { return require(
|
|
45132
|
-
/* webpackChunkName: "segment" */ './fthry_index.
|
|
45412
|
+
/* webpackChunkName: "segment" */ './fthry_index.ByQJ8Db5.js'); }).then(function (n) { return n.index; })];
|
|
45133
45413
|
case 1:
|
|
45134
45414
|
(AnalyticsBrowserClass = (_a.sent()).AnalyticsBrowser);
|
|
45135
45415
|
return [3 /*break*/, 3];
|
|
@@ -47153,7 +47433,7 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
47153
47433
|
*/
|
|
47154
47434
|
FeatheryClient.prototype._debouncedSubmitCustom = function (override) {
|
|
47155
47435
|
return __awaiter$2(this, void 0, void 0, function () {
|
|
47156
|
-
var customKeyValues, userId, url, jsonKeyVals, formData, options, uniqueId, req;
|
|
47436
|
+
var customKeyValues, userId, url, jsonKeyVals, formData, options, uniqueId, req, removeInFlight;
|
|
47157
47437
|
var _this = this;
|
|
47158
47438
|
return __generator(this, function (_a) {
|
|
47159
47439
|
switch (_a.label) {
|
|
@@ -47166,6 +47446,13 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
47166
47446
|
if (!isInteractionDetected()) {
|
|
47167
47447
|
return [2 /*return*/];
|
|
47168
47448
|
}
|
|
47449
|
+
// If the previous flush hasn't finished yet, skip this cycle. The pending
|
|
47450
|
+
// updates stay queued and a new debounced cycle is scheduled so they get
|
|
47451
|
+
// submitted once the in-flight request completes.
|
|
47452
|
+
if (Object.keys(this.customSubmitInFlight).length) {
|
|
47453
|
+
this.debouncedSubmitCustom(override);
|
|
47454
|
+
return [2 /*return*/];
|
|
47455
|
+
}
|
|
47169
47456
|
customKeyValues = exports.__assign({}, this.pendingCustomFieldUpdates);
|
|
47170
47457
|
this.pendingCustomFieldUpdates = {}; // Clear pending updates after copying them
|
|
47171
47458
|
userId = initInfo().userId;
|
|
@@ -47228,7 +47515,8 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
47228
47515
|
this._removeCustomFieldListener();
|
|
47229
47516
|
uniqueId = v4$1();
|
|
47230
47517
|
req = this.offlineRequestHandler.runOrSaveRequest(function () { return _this._fetch(url, options, true, true); }, url, options, 'submit');
|
|
47231
|
-
|
|
47518
|
+
removeInFlight = function () { return delete _this.customSubmitInFlight[uniqueId]; };
|
|
47519
|
+
this.customSubmitInFlight[uniqueId] = req.then(removeInFlight, removeInFlight);
|
|
47232
47520
|
return [4 /*yield*/, req];
|
|
47233
47521
|
case 2: return [2 /*return*/, _a.sent()];
|
|
47234
47522
|
}
|
|
@@ -47251,10 +47539,20 @@ var FeatheryClient = /** @class */ (function (_super) {
|
|
|
47251
47539
|
return [4 /*yield*/, this.debouncedSubmitCustom.flush()];
|
|
47252
47540
|
case 1:
|
|
47253
47541
|
ret = _a.sent();
|
|
47254
|
-
|
|
47542
|
+
_a.label = 2;
|
|
47255
47543
|
case 2:
|
|
47544
|
+
if (!Object.keys(this.customSubmitInFlight).length) return [3 /*break*/, 5];
|
|
47545
|
+
return [4 /*yield*/, Promise.all(Object.values(this.customSubmitInFlight))];
|
|
47546
|
+
case 3:
|
|
47256
47547
|
_a.sent();
|
|
47257
|
-
|
|
47548
|
+
if (!Object.keys(this.pendingCustomFieldUpdates).length)
|
|
47549
|
+
return [3 /*break*/, 5];
|
|
47550
|
+
this.debouncedSubmitCustom(override);
|
|
47551
|
+
return [4 /*yield*/, this.debouncedSubmitCustom.flush()];
|
|
47552
|
+
case 4:
|
|
47553
|
+
ret = _a.sent();
|
|
47554
|
+
return [3 /*break*/, 2];
|
|
47555
|
+
case 5: return [2 /*return*/, ret];
|
|
47258
47556
|
}
|
|
47259
47557
|
});
|
|
47260
47558
|
});
|
|
@@ -47764,9 +48062,9 @@ function init(sdkKey, options) {
|
|
|
47764
48062
|
if (runningInClient()) {
|
|
47765
48063
|
// Dynamically load libraries that must be client side
|
|
47766
48064
|
global.scriptjsLoadPromise = Promise.resolve().then(function () { return require(
|
|
47767
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
48065
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.B2r1qN9_.js'); }).then(function (n) { return n.script; });
|
|
47768
48066
|
global.webfontloaderPromise = Promise.resolve().then(function () { return require(
|
|
47769
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
48067
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.DbJc3-T2.js'); }).then(function (n) { return n.webfontloader; });
|
|
47770
48068
|
// Client-side tracking logic
|
|
47771
48069
|
if (initState.userTracking === 'cookie') {
|
|
47772
48070
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -47953,7 +48251,7 @@ function loadCompletedSteps(client) {
|
|
|
47953
48251
|
});
|
|
47954
48252
|
}
|
|
47955
48253
|
function logFeatheryBadge() {
|
|
47956
|
-
console.log('%c Feathery %c v' + "2.
|
|
48254
|
+
console.log('%c Feathery %c v' + "2.50.0" + ' ', // replaced with real version during build
|
|
47957
48255
|
'background: #e2626e; color: white; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;', 'background: #fce7e9; color: #c5495a; padding: 2px 6px; border-radius: 0 3px 3px 0;');
|
|
47958
48256
|
}
|
|
47959
48257
|
|
|
@@ -49549,64 +49847,64 @@ function resolveLabelStyle(style, opts) {
|
|
|
49549
49847
|
|
|
49550
49848
|
var fieldLoaders = {
|
|
49551
49849
|
AddressLine1: function () {
|
|
49552
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
49850
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "AddressField" */ './fthry_index.CNXv_44w.js'); });
|
|
49553
49851
|
},
|
|
49554
49852
|
ButtonGroupField: function () {
|
|
49555
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
49853
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.D42pyZzz.js'); });
|
|
49556
49854
|
},
|
|
49557
49855
|
CheckboxField: function () {
|
|
49558
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
49856
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxField" */ './fthry_index.Cb-o7T3I.js'); });
|
|
49559
49857
|
},
|
|
49560
49858
|
CheckboxGroupField: function () {
|
|
49561
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
49859
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.BdAvU9aA.js'); });
|
|
49562
49860
|
},
|
|
49563
49861
|
ColorPickerField: function () {
|
|
49564
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
49862
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "ColorPickerField" */ './fthry_index.QAttsABq.js'); });
|
|
49565
49863
|
},
|
|
49566
49864
|
CustomField: function () {
|
|
49567
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
49865
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "CustomField" */ './fthry_index.m_XKSVM8.js'); });
|
|
49568
49866
|
},
|
|
49569
49867
|
DateSelectorField: function () {
|
|
49570
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
49868
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DateSelectorField" */ './fthry_index.DAY5VW01.js'); });
|
|
49571
49869
|
},
|
|
49572
49870
|
DropdownField: function () {
|
|
49573
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
49871
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownField" */ './fthry_index.D3svtoqj.js'); });
|
|
49574
49872
|
},
|
|
49575
49873
|
DropdownMultiField: function () {
|
|
49576
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
49874
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.BDV7qf2C.js'); });
|
|
49577
49875
|
},
|
|
49578
49876
|
FileUploadField: function () {
|
|
49579
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
49877
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "FileUploadField" */ './fthry_index.COg3w9c8.js'); });
|
|
49580
49878
|
},
|
|
49581
49879
|
MatrixField: function () {
|
|
49582
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
49880
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "MatrixField" */ './fthry_index.QRzfI0b4.js'); });
|
|
49583
49881
|
},
|
|
49584
49882
|
PasswordField: function () {
|
|
49585
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
49883
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PasswordField" */ './fthry_index.DjKuHZML.js'); });
|
|
49586
49884
|
},
|
|
49587
49885
|
PaymentMethodField: function () {
|
|
49588
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
49886
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.vpxb_M9_.js'); });
|
|
49589
49887
|
},
|
|
49590
|
-
PhoneField: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
49888
|
+
PhoneField: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "PhoneField" */ './fthry_index.CW8fXwgP.js'); }); },
|
|
49591
49889
|
PinInputField: function () {
|
|
49592
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
49890
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "PinInputField" */ './fthry_index.u0sKUa7-.js'); });
|
|
49593
49891
|
},
|
|
49594
|
-
QRScanner: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
49892
|
+
QRScanner: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "QRScanner" */ './fthry_index.BLKRQSHw.js'); }); },
|
|
49595
49893
|
RadioButtonGroupField: function () {
|
|
49596
49894
|
return Promise.resolve().then(function () { return require(
|
|
49597
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
49895
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.C6YeHjI_.js'); });
|
|
49598
49896
|
},
|
|
49599
49897
|
RatingField: function () {
|
|
49600
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
49898
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "RatingField" */ './fthry_index.DqCigvUs.js'); });
|
|
49601
49899
|
},
|
|
49602
49900
|
SignatureField: function () {
|
|
49603
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
49901
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "SignatureField" */ './fthry_index.DgVU5DPg.js'); });
|
|
49604
49902
|
},
|
|
49605
49903
|
SliderField: function () {
|
|
49606
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
49904
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "SliderField" */ './fthry_index.CSq9ML1V.js'); });
|
|
49607
49905
|
},
|
|
49608
|
-
TextField: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
49609
|
-
TextArea: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
49906
|
+
TextField: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextField" */ './fthry_index.ClbpUjqu.js'); }); },
|
|
49907
|
+
TextArea: function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TextArea" */ './fthry_index.CX5Tx1di.js'); }); }
|
|
49610
49908
|
};
|
|
49611
49909
|
var getPositionKey = function (element) { var _a; return ((_a = element.position) === null || _a === void 0 ? void 0 : _a.join(',')) || 'root'; };
|
|
49612
49910
|
// Share the resolved component between preload and render. A separate
|
|
@@ -50365,16 +50663,6 @@ function applyButtonStyles(element, responsiveStyles) {
|
|
|
50365
50663
|
return {};
|
|
50366
50664
|
});
|
|
50367
50665
|
responsiveStyles.applyTextAlign('buttonLabel');
|
|
50368
|
-
// Fit-width buttons shrink to their text and padding, so prevent the
|
|
50369
|
-
// text from wrapping
|
|
50370
|
-
responsiveStyles.apply('buttonLabel', 'width_unit', function (unit) {
|
|
50371
|
-
if (!isFit(unit))
|
|
50372
|
-
return {};
|
|
50373
|
-
return {
|
|
50374
|
-
whiteSpace: 'nowrap',
|
|
50375
|
-
'span, a': { whiteSpace: 'pre' }
|
|
50376
|
-
};
|
|
50377
|
-
});
|
|
50378
50666
|
responsiveStyles.apply('button', [
|
|
50379
50667
|
'uploader_padding_top',
|
|
50380
50668
|
'uploader_padding_right',
|
|
@@ -50868,8 +51156,8 @@ function ElementSkeleton(_a) {
|
|
|
50868
51156
|
}
|
|
50869
51157
|
var templateObject_1;
|
|
50870
51158
|
|
|
50871
|
-
var TableElement = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TableElement" */ './fthry_index.
|
|
50872
|
-
var TabsElement = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TabsElement" */ './fthry_TabsElement.
|
|
51159
|
+
var TableElement = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TableElement" */ './fthry_index.DpQfBE8n.js'); }); });
|
|
51160
|
+
var TabsElement = React.lazy(function () { return Promise.resolve().then(function () { return require(/* webpackChunkName: "TabsElement" */ './fthry_TabsElement.BHVCgyd9.js'); }); });
|
|
50873
51161
|
var Basic = {
|
|
50874
51162
|
ImageElement: ImageElement,
|
|
50875
51163
|
VideoElement: VideoElement,
|
|
@@ -50915,15 +51203,18 @@ exports.FeatheryClient = FeatheryClient;
|
|
|
50915
51203
|
exports.Fragment = Fragment;
|
|
50916
51204
|
exports.Global = Global;
|
|
50917
51205
|
exports.Grid = Grid;
|
|
51206
|
+
exports.HoverTooltip = HoverTooltip;
|
|
50918
51207
|
exports.JSForm = JSForm;
|
|
50919
51208
|
exports.KEYFRAMES = KEYFRAMES;
|
|
50920
51209
|
exports.LoginForm = LoginForm;
|
|
50921
51210
|
exports.MODAL_Z_INDEX = MODAL_Z_INDEX;
|
|
50922
51211
|
exports.MOZ = MOZ;
|
|
50923
51212
|
exports.MS = MS;
|
|
51213
|
+
exports.Overlay = Overlay;
|
|
50924
51214
|
exports.RULESET = RULESET;
|
|
50925
51215
|
exports.ReactForm = ReactForm;
|
|
50926
51216
|
exports.StyledContainer = StyledContainer;
|
|
51217
|
+
exports.Tooltip = Tooltip;
|
|
50927
51218
|
exports.WEBKIT = WEBKIT;
|
|
50928
51219
|
exports.__awaiter = __awaiter$2;
|
|
50929
51220
|
exports.__extends = __extends;
|