@feathery/react 2.41.1 → 2.43.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/{fthry_AssistantChat.AuMTE5ni.js → fthry_AssistantChat.Dc6irzAk.js} +4 -4
- package/cjs/{fthry_FormControl.D82S9LtT.js → fthry_FormControl.D_eydQlT.js} +1 -1
- package/cjs/{fthry_InlineTooltip.kdzoP2rc.js → fthry_InlineTooltip.Km0nxBV3.js} +2 -2
- package/cjs/{fthry_Overlay.CbC1FjTZ.js → fthry_Overlay.ChABiy0m.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.BxzrLkB0.js → fthry_PaymentMethodField.BMABompY.js} +4 -4
- package/cjs/{fthry_Placeholder.Di6onpMl.js → fthry_Placeholder.CnNGDD_K.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.B5w5N8jm.js → fthry_ShowEyeIcon.Cozhh36m.js} +1 -1
- package/cjs/fthry_auto-track.CzyR3umO.js +114 -0
- package/cjs/{fthry_highlighted-body-TPN3WLV5.CB6IWsjv.js → fthry_highlighted-body-TPN3WLV5.D8LjPUtI.js} +3 -3
- package/cjs/{fthry_index.DH8lgbPx.js → fthry_index.5oiWIOUK.js} +1 -1
- package/cjs/fthry_index.8ZkixEuX.js +477 -0
- package/cjs/{fthry_index.Bz-JA0yl.js → fthry_index.B-QAg85r.js} +6 -6
- package/cjs/{fthry_index.BvqRq5KX.js → fthry_index.B4qsX_2B.js} +4 -4
- package/cjs/fthry_index.B5TkPpn3.js +73 -0
- package/cjs/fthry_index.B76xVeoK.js +6893 -0
- package/cjs/fthry_index.B79ksg_6.js +68 -0
- package/cjs/{fthry_index.BM9fkWLL.js → fthry_index.B7Slrn_2.js} +1 -1
- package/cjs/{fthry_index.BgbTmgMy.js → fthry_index.BNFRKqrl.js} +5 -5
- package/cjs/{fthry_index.COz6kiMq.js → fthry_index.BPu5GDF3.js} +5 -5
- package/cjs/{fthry_index.D1jW5KD5.js → fthry_index.BVLMhJHP.js} +1 -1
- package/cjs/{fthry_index.BvLzo0YW.js → fthry_index.BYJ0Cjz1.js} +1 -1
- package/cjs/{fthry_index.DIK6ws4x.js → fthry_index.CMRH7foG.js} +6 -6
- package/cjs/{fthry_index.J2MkUMO_.js → fthry_index.Cj3i1JIs.js} +1 -1
- package/cjs/{fthry_index.YiQCJ_8p.js → fthry_index.Cj8NIIWS.js} +6 -6
- package/cjs/{fthry_index.BoWkmyhH.js → fthry_index.Crv5Oqdb.js} +6 -6
- package/cjs/{fthry_index.BZUdAFdY.js → fthry_index.CsV6zv_0.js} +5 -5
- package/cjs/{fthry_index.uAmtxDHN.js → fthry_index.D6PlFvY8.js} +5 -5
- package/cjs/{fthry_index.9lXPMg87.js → fthry_index.D7jBFEkz.js} +1 -1
- package/cjs/fthry_index.DMmTH04s.js +34 -0
- package/cjs/{fthry_index.COVcTBk0.js → fthry_index.DcnmaMvN.js} +2 -2
- package/cjs/fthry_index.DfOk3_Vc.js +72 -0
- package/cjs/{fthry_index.Dx6_vLXH.js → fthry_index.Dn7k0XbZ.js} +101 -112
- package/cjs/{fthry_index.CfCS_H4E.js → fthry_index.DoliEMOD.js} +3 -3
- package/cjs/{fthry_index.DyfArFz1.js → fthry_index.H4GgWRQ-.js} +1 -1
- package/cjs/fthry_index.KDrRVPx5.js +575 -0
- package/cjs/{fthry_index.C7-q3RPG.js → fthry_index.KMyCBmte.js} +1 -1
- package/cjs/{fthry_index.BvupjK8i.js → fthry_index.WbKUUcdS.js} +1 -1
- package/cjs/{fthry_index.DLYQKv1h.js → fthry_index._pqB5lCu.js} +8 -8
- package/cjs/{fthry_index.wT0xFcFi.js → fthry_index.ecHJPvgK.js} +3 -3
- package/cjs/fthry_index.umd.lxnwBuEl.js +41 -0
- package/cjs/{fthry_index.DKEljSgi.js → fthry_index.wTd_xpVX.js} +4 -4
- package/cjs/{fthry_index.D2MsWDhX.js → fthry_index.x_Q9efXs.js} +2 -2
- package/cjs/{fthry_input.Dqe4AZPw.js → fthry_input.DJaKnXqS.js} +1 -1
- package/cjs/fthry_is-plan-event-enabled.nMt_kVye.js +19 -0
- package/cjs/{fthry_mermaid-O7DHMXV3.Hr0ROL9a.js → fthry_mermaid-O7DHMXV3.CyaPsnki.js} +3 -3
- package/cjs/{fthry_script.5FcM2fg9.js → fthry_script.DrFnB8ud.js} +1 -1
- package/cjs/{fthry_styles.CxfiChN9.js → fthry_styles.qeOM9hPF.js} +1 -1
- package/cjs/{fthry_useElementSize.DjNvJMZW.js → fthry_useElementSize.K1QGuhUj.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.D_GLzNtJ.js → fthry_useSalesforceSync.DQd2UZn6.js} +1 -1
- package/cjs/{fthry_webfontloader.rkfqw_Az.js → fthry_webfontloader.D6aR0hiT.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/integrations/segment.d.ts +1 -1
- package/cjs/integrations/segment.d.ts.map +1 -1
- package/cjs/utils/featheryClient/integrationClient.d.ts +1 -1
- package/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/cjs/utils/fieldHelperFunctions.d.ts +1 -1
- package/cjs/utils/fieldHelperFunctions.d.ts.map +1 -1
- package/cjs/utils/internalState.d.ts +16 -1
- package/cjs/utils/internalState.d.ts.map +1 -1
- package/dist/{fthry_AssistantChat.9iZnqQQt.js → fthry_AssistantChat.D2SjzX88.js} +4 -4
- package/dist/{fthry_FormControl.aWX059qS.js → fthry_FormControl.AWZ2hRhb.js} +1 -1
- package/dist/{fthry_InlineTooltip.159qVlX7.js → fthry_InlineTooltip.DAaWNMEQ.js} +2 -2
- package/dist/{fthry_Overlay.Di0mol1Z.js → fthry_Overlay.C500WG6U.js} +1 -1
- package/dist/{fthry_PaymentMethodField.C_6Pu8x2.js → fthry_PaymentMethodField.Bl2Ce36L.js} +4 -4
- package/dist/{fthry_Placeholder.Dsx8_ezr.js → fthry_Placeholder.DXrZi2ze.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.nRVpMPPa.js → fthry_ShowEyeIcon.D3iEMZA7.js} +1 -1
- package/dist/fthry_auto-track.C9HCW4qJ.js +111 -0
- package/dist/{fthry_highlighted-body-TPN3WLV5.x-GmTT4p.js → fthry_highlighted-body-TPN3WLV5.j0rrY2PD.js} +3 -3
- package/dist/fthry_index.-lEiRiJ3.js +66 -0
- package/dist/{fthry_index.BfOeedPy.js → fthry_index.0DlQOa4l.js} +1 -1
- package/dist/{fthry_index.BZ22DoJF.js → fthry_index.4rXsgo8n.js} +6 -6
- package/dist/{fthry_index.DieTiO1R.js → fthry_index.BALrl_Ek.js} +4 -4
- package/dist/{fthry_index.DfusnmMH.js → fthry_index.BDtWG5y-.js} +5 -5
- package/dist/fthry_index.BHbPxMcy.js +71 -0
- package/dist/fthry_index.BjZmdaIR.js +474 -0
- package/dist/{fthry_index.BKKIUHxP.js → fthry_index.BlrVY1vE.js} +6 -6
- package/dist/{fthry_index.BD4Gxt6n.js → fthry_index.BoXwpo3p.js} +101 -113
- package/dist/{fthry_index.CPLtkSYO.js → fthry_index.C-Af9t8c.js} +5 -5
- package/dist/{fthry_index.Se5JLYs9.js → fthry_index.C8xVXq31.js} +3 -3
- package/dist/{fthry_index.D5rdhFrZ.js → fthry_index.C9P7Vo6r.js} +1 -1
- package/dist/{fthry_index.Drx2ZVkE.js → fthry_index.CB6eTYmX.js} +5 -5
- package/dist/{fthry_index.CUWsRf0D.js → fthry_index.CS604ePK.js} +2 -2
- package/dist/{fthry_index.Pp6zhlf_.js → fthry_index.Cd0JKkOc.js} +8 -8
- package/dist/fthry_index.Cn4kA2tn.js +6871 -0
- package/dist/fthry_index.Co2zkJCZ.js +70 -0
- package/dist/{fthry_index.CBIXVWL-.js → fthry_index.D2-zTdBQ.js} +1 -1
- package/dist/{fthry_index.BOH7m5kT.js → fthry_index.D3O1Qvm3.js} +3 -3
- package/dist/{fthry_index.CyDzbx5S.js → fthry_index.D5dmTp6g.js} +1 -1
- package/dist/{fthry_index.CBiQrmKH.js → fthry_index.D8_hWgYx.js} +1 -1
- package/dist/{fthry_index.D0eO_jrF.js → fthry_index.DA5HHbVe.js} +1 -1
- package/dist/fthry_index.DAdR6bYe.js +32 -0
- package/dist/{fthry_index.BAs20rGv.js → fthry_index.DFZRIGNF.js} +2 -2
- package/dist/{fthry_index.CPAAIiq3.js → fthry_index.DOGU2-kQ.js} +5 -5
- package/dist/{fthry_index.Fq2JKey_.js → fthry_index.DZviU_0h.js} +1 -1
- package/dist/{fthry_index.CYYRO1p6.js → fthry_index.DtHlcCDX.js} +1 -1
- package/dist/{fthry_index.Dm5kGSKR.js → fthry_index.DzDuGB1B.js} +6 -6
- package/dist/{fthry_index.D8wf4Och.js → fthry_index.IaraEDTR.js} +1 -1
- package/dist/fthry_index.JD44HVFL.js +573 -0
- package/dist/{fthry_index.BROaFD02.js → fthry_index.OgRdIE07.js} +5 -5
- package/dist/fthry_index.umd.BhHG1ThX.js +39 -0
- package/dist/{fthry_index.C9wizXBA.js → fthry_index.x_DcI6GR.js} +4 -4
- package/dist/{fthry_input.p12lRSx4.js → fthry_input.Y2HVhQeo.js} +1 -1
- package/dist/fthry_is-plan-event-enabled.mXX0dwl-.js +17 -0
- package/dist/{fthry_mermaid-O7DHMXV3.CWWC47_a.js → fthry_mermaid-O7DHMXV3._Ng2DeVi.js} +3 -3
- package/dist/{fthry_script.GZmaXrTw.js → fthry_script.4cQVioC4.js} +1 -1
- package/dist/{fthry_styles.p1MsrWgL.js → fthry_styles.DX0NUnVP.js} +1 -1
- package/dist/{fthry_useElementSize.cLenWN5F.js → fthry_useElementSize.BCbe9jZd.js} +1 -1
- package/dist/{fthry_useSalesforceSync.0EbTmWOM.js → fthry_useSalesforceSync.DJFGoBIG.js} +1 -1
- package/dist/{fthry_webfontloader.DvZgpMoe.js → fthry_webfontloader.4kqCCEG_.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/segment.d.ts +1 -1
- package/dist/integrations/segment.d.ts.map +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/utils/fieldHelperFunctions.d.ts +1 -1
- package/dist/utils/fieldHelperFunctions.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +16 -1
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +2 -1
- package/umd/277.1a33ea06f86326613fcb.js +1 -0
- package/umd/301.b40f38397dcde848ba46.js +1 -0
- package/umd/435.a94343a900f83a1ba8eb.js +1 -0
- package/umd/466.c82e14e5b06ae17649ff.js +1 -0
- package/umd/509.d49410af0cc948b08d73.js +2 -0
- package/umd/529.e7a0a831bf80398fda0f.js +1 -0
- package/umd/542.5168cf86fc7255c8b7fd.js +1 -0
- package/umd/598.9bc05f78267c055211d9.js +2 -0
- package/umd/602.ddda17ac6b2cabb3d639.js +1 -0
- package/umd/664.4a3ec465094a3d59c184.js +1 -0
- package/umd/834.b4ef33227c4c872368d6.js +1 -0
- package/umd/94.391827577c1c62f73f29.js +2 -0
- package/umd/AddressField.648b3da916171008dc9f.js +1 -0
- package/umd/AssistantChat.879f86967feffba1cc6f.js +1 -0
- package/umd/ButtonGroupField.d39ac976a6dee9ef593a.js +1 -0
- package/umd/CheckboxField.3323fdfd4a7377580d46.js +1 -0
- package/umd/CheckboxGroupField.e495eb152c4faa000d4b.js +1 -0
- package/umd/ColorPickerField.7e0f3c3a7dc1bcaf5e30.js +1 -0
- package/umd/CustomField.895d9a1d34e8e7b8b8d0.js +1 -0
- package/umd/DateSelectorField.e702b3e6b0a5b498c824.js +1 -0
- package/umd/DropdownField.d1a234d236d9989bbf20.js +1 -0
- package/umd/DropdownMultiField.5b4e24025035f1678c83.js +1 -0
- package/umd/FileUploadField.f0d66cf87244c0e565a1.js +1 -0
- package/umd/MatrixField.bcd6f58ea1896f386988.js +1 -0
- package/umd/PasswordField.593d7b7d3d954634fa30.js +1 -0
- package/umd/PaymentMethodField.8e4fd6353793eaaa2b5b.js +1 -0
- package/umd/PhoneField.861b99c7e81b4b9c8648.js +1 -0
- package/umd/PinInputField.ddc30797191dfbed7fe3.js +1 -0
- package/umd/QRScanner.94381603047f5db6b5c0.js +1 -0
- package/umd/RadioButtonGroupField.7a333a6f7e578a181a98.js +1 -0
- package/umd/RatingField.204cb92c30aeb4b8952a.js +1 -0
- package/umd/SignatureField.9cc9b3783cf8149ba767.js +1 -0
- package/umd/SliderField.d746a57527031d551f58.js +1 -0
- package/umd/TableElement.fef6a362cfa150f0f38e.js +1 -0
- package/umd/TextArea.04335be4f0f0d6c0cc1a.js +1 -0
- package/umd/TextField.749931ebb258bf38e007.js +1 -0
- package/umd/ajs-destination.19322d501875cd260554.js +1 -0
- package/umd/auto-track.e6503d851d1d8c634ff0.js +1 -0
- package/umd/index.js +1 -1
- package/umd/legacyVideos.5ab9e462d737eca6f817.js +1 -0
- package/umd/libphonenumber.721378defae8d84deae2.js +1 -0
- package/umd/queryString.74978b49d70f9556e22a.js +1 -0
- package/umd/remoteMiddleware.fb68e7490b3379937c68.js +1 -0
- package/umd/schemaFilter.45d31876c08e74664f1d.js +1 -0
- package/umd/segment.76c3946188b5c80e77d6.js +2 -0
- package/umd/segment.76c3946188b5c80e77d6.js.LICENSE.txt +1 -0
- package/umd/tsub-middleware.4d4d00320fa7aa6a97cc.js +2 -0
- package/umd/tsub-middleware.4d4d00320fa7aa6a97cc.js.LICENSE.txt +1 -0
- package/umd/webfontloader.419636e0eb0cfb39b078.js +1 -0
- package/umd/277.87e6ca5c1cf2a7477992.js +0 -1
- package/umd/301.a96bba9d529bf7fd379e.js +0 -1
- package/umd/435.faa037e36038c2c766da.js +0 -1
- package/umd/466.e3456c8b3407ad04ba56.js +0 -1
- package/umd/509.bca2ff43c66b1dba064f.js +0 -2
- package/umd/529.63afee65c745ca950f81.js +0 -1
- package/umd/542.f1dbbbb062e82a2995e9.js +0 -1
- package/umd/598.ca92da6595afad37b511.js +0 -2
- package/umd/602.1fde434923c6596acd40.js +0 -1
- package/umd/664.42541009d1fcb121cc49.js +0 -1
- package/umd/94.e8ad20ab98c664d13197.js +0 -2
- package/umd/AddressField.c4188872f2a931394aa1.js +0 -1
- package/umd/AssistantChat.7af8f8f25348f5379aeb.js +0 -1
- package/umd/ButtonGroupField.33cf9c939c8e82cc6c83.js +0 -1
- package/umd/CheckboxField.782999cad642da04434d.js +0 -1
- package/umd/CheckboxGroupField.18ab392a2890a239fd0b.js +0 -1
- package/umd/ColorPickerField.f6740bb7c4c20a520db5.js +0 -1
- package/umd/CustomField.a5b2965922f2d170b9b5.js +0 -1
- package/umd/DateSelectorField.568bb30a220837a36660.js +0 -1
- package/umd/DropdownField.9f0f8a425ddf09771ad8.js +0 -1
- package/umd/DropdownMultiField.72a44c0280217eeb5652.js +0 -1
- package/umd/FileUploadField.7a5028fb6035d09b3e81.js +0 -1
- package/umd/MatrixField.2b65107453ddf2322137.js +0 -1
- package/umd/PasswordField.7585ef588333cb4181f7.js +0 -1
- package/umd/PaymentMethodField.d08bcfa1efb56084572d.js +0 -1
- package/umd/PhoneField.b9293ead8e5a2a3b7c37.js +0 -1
- package/umd/PinInputField.b1aee0ef9d3c9f9a1933.js +0 -1
- package/umd/QRScanner.3c22391de30dba001f13.js +0 -1
- package/umd/RadioButtonGroupField.20268d1b4649053bf1db.js +0 -1
- package/umd/RatingField.eeeb0ac499c308c120ba.js +0 -1
- package/umd/SignatureField.0e7d60fa2fafcb6be554.js +0 -1
- package/umd/SliderField.a5ab58e4b89fa67d6ac6.js +0 -1
- package/umd/TableElement.1076e69a66923cfe6434.js +0 -1
- package/umd/TextArea.7cca0d69e618846660c5.js +0 -1
- package/umd/TextField.28c59425e129e78a4551.js +0 -1
- package/umd/libphonenumber.4ab4d30edb4e455b2fc4.js +0 -1
- package/umd/webfontloader.b44bdf00049b175713ae.js +0 -1
- /package/umd/{509.bca2ff43c66b1dba064f.js.LICENSE.txt → 509.d49410af0cc948b08d73.js.LICENSE.txt} +0 -0
- /package/umd/{598.ca92da6595afad37b511.js.LICENSE.txt → 598.9bc05f78267c055211d9.js.LICENSE.txt} +0 -0
- /package/umd/{94.e8ad20ab98c664d13197.js.LICENSE.txt → 94.391827577c1c62f73f29.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as __rest, a as jsx, _ as __assign } from './fthry_index.
|
|
1
|
+
import { k as __rest, a as jsx, _ as __assign } from './fthry_index.BoXwpo3p.js';
|
|
2
2
|
|
|
3
3
|
function ShowEyeIcon$1(_a) {
|
|
4
4
|
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, props = __rest(_a, ["width", "height"]);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { p as pTimeout } from './fthry_index.Cn4kA2tn.js';
|
|
2
|
+
import './fthry_index.BoXwpo3p.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'react-dom/client';
|
|
6
|
+
import 'jszip';
|
|
7
|
+
import 'react-dom';
|
|
8
|
+
|
|
9
|
+
// Check if a user is opening the link in a new tab
|
|
10
|
+
function userNewTab(event) {
|
|
11
|
+
var typedEvent = event;
|
|
12
|
+
if (typedEvent.ctrlKey ||
|
|
13
|
+
typedEvent.shiftKey ||
|
|
14
|
+
typedEvent.metaKey ||
|
|
15
|
+
(typedEvent.button && typedEvent.button == 1)) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
// Check if the link opens in new tab
|
|
21
|
+
function linkNewTab(element, href) {
|
|
22
|
+
if (element.target === '_blank' && href) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
function link(links, event, properties, options) {
|
|
28
|
+
var _this = this;
|
|
29
|
+
var elements = [];
|
|
30
|
+
// always arrays, handles jquery
|
|
31
|
+
if (!links) {
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
if (links instanceof Element) {
|
|
35
|
+
elements = [links];
|
|
36
|
+
}
|
|
37
|
+
else if ('toArray' in links) {
|
|
38
|
+
elements = links.toArray();
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
elements = links;
|
|
42
|
+
}
|
|
43
|
+
elements.forEach(function (el) {
|
|
44
|
+
el.addEventListener('click', function (elementEvent) {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
var ev = event instanceof Function ? event(el) : event;
|
|
47
|
+
var props = properties instanceof Function ? properties(el) : properties;
|
|
48
|
+
var href = el.getAttribute('href') ||
|
|
49
|
+
el.getAttributeNS('http://www.w3.org/1999/xlink', 'href') ||
|
|
50
|
+
el.getAttribute('xlink:href') ||
|
|
51
|
+
((_a = el.getElementsByTagName('a')[0]) === null || _a === void 0 ? void 0 : _a.getAttribute('href'));
|
|
52
|
+
var trackEvent = pTimeout(_this.track(ev, props, options !== null && options !== void 0 ? options : {}), (_b = _this.settings.timeout) !== null && _b !== void 0 ? _b : 500);
|
|
53
|
+
if (!linkNewTab(el, href) &&
|
|
54
|
+
!userNewTab(elementEvent)) {
|
|
55
|
+
if (href) {
|
|
56
|
+
elementEvent.preventDefault
|
|
57
|
+
? elementEvent.preventDefault()
|
|
58
|
+
: (elementEvent.returnValue = false);
|
|
59
|
+
trackEvent
|
|
60
|
+
.catch(console.error)
|
|
61
|
+
.then(function () {
|
|
62
|
+
window.location.href = href;
|
|
63
|
+
})
|
|
64
|
+
.catch(console.error);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, false);
|
|
68
|
+
});
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
function form(forms, event, properties, options) {
|
|
72
|
+
var _this = this;
|
|
73
|
+
// always arrays, handles jquery
|
|
74
|
+
if (!forms)
|
|
75
|
+
return this;
|
|
76
|
+
if (forms instanceof HTMLFormElement)
|
|
77
|
+
forms = [forms];
|
|
78
|
+
var elements = forms;
|
|
79
|
+
elements.forEach(function (el) {
|
|
80
|
+
if (!(el instanceof Element))
|
|
81
|
+
throw new TypeError('Must pass HTMLElement to trackForm/trackSubmit.');
|
|
82
|
+
var handler = function (elementEvent) {
|
|
83
|
+
var _a;
|
|
84
|
+
elementEvent.preventDefault
|
|
85
|
+
? elementEvent.preventDefault()
|
|
86
|
+
: (elementEvent.returnValue = false);
|
|
87
|
+
var ev = event instanceof Function ? event(el) : event;
|
|
88
|
+
var props = properties instanceof Function ? properties(el) : properties;
|
|
89
|
+
var trackEvent = pTimeout(_this.track(ev, props, options !== null && options !== void 0 ? options : {}), (_a = _this.settings.timeout) !== null && _a !== void 0 ? _a : 500);
|
|
90
|
+
trackEvent
|
|
91
|
+
.catch(console.error)
|
|
92
|
+
.then(function () {
|
|
93
|
+
el.submit();
|
|
94
|
+
})
|
|
95
|
+
.catch(console.error);
|
|
96
|
+
};
|
|
97
|
+
// Support the events happening through jQuery or Zepto instead of through
|
|
98
|
+
// the normal DOM API, because `el.submit` doesn't bubble up events...
|
|
99
|
+
var $ = window.jQuery || window.Zepto;
|
|
100
|
+
if ($) {
|
|
101
|
+
$(el).submit(handler);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
105
|
+
el.addEventListener('submit', handler, false);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { form, link };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as R$1, M as Mi, B as Bt } from './fthry_AssistantChat.
|
|
1
|
+
import { R as R$1, M as Mi, B as Bt } from './fthry_AssistantChat.D2SjzX88.js';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import './fthry_index.
|
|
4
|
+
import './fthry_index.BoXwpo3p.js';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
7
7
|
import 'react-dom';
|
|
8
8
|
import './fthry_clsx.ChV9xqsO.js';
|
|
9
|
-
import './fthry_index.
|
|
9
|
+
import './fthry_index.D5dmTp6g.js';
|
|
10
10
|
|
|
11
11
|
var R=({code:s,language:t,raw:e,className:h,startLine:d,...m})=>{let{shikiTheme:l}=useContext(R$1),o=Mi(),[p,i]=useState(e);return useEffect(()=>{if(!o){i(e);return}let r=o.highlight({code:s,language:t,themes:l},c=>{i(c);});r&&i(r);},[s,t,l,o,e]),jsx(Bt,{className:h,language:t,result:p,startLine:d,...m})};
|
|
12
12
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { a as gracefulDecodeURIComponent, b as isPlainObject } from './fthry_index.Cn4kA2tn.js';
|
|
2
|
+
import './fthry_index.BoXwpo3p.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'react-dom/client';
|
|
6
|
+
import 'jszip';
|
|
7
|
+
import 'react-dom';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns an object containing only the properties prefixed by the input
|
|
11
|
+
* string.
|
|
12
|
+
* Ex: prefix('ajs_traits_', { ajs_traits_address: '123 St' })
|
|
13
|
+
* will return { address: '123 St' }
|
|
14
|
+
**/
|
|
15
|
+
function pickPrefix(prefix, object) {
|
|
16
|
+
return Object.keys(object).reduce(function (acc, key) {
|
|
17
|
+
if (key.startsWith(prefix)) {
|
|
18
|
+
var field = key.substr(prefix.length);
|
|
19
|
+
acc[field] = object[key];
|
|
20
|
+
}
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function queryString(analytics, query) {
|
|
26
|
+
var a = document.createElement('a');
|
|
27
|
+
a.href = query;
|
|
28
|
+
var parsed = a.search.slice(1);
|
|
29
|
+
var params = parsed.split('&').reduce(function (acc, str) {
|
|
30
|
+
var _a = str.split('='), k = _a[0], v = _a[1];
|
|
31
|
+
acc[k] = gracefulDecodeURIComponent(v);
|
|
32
|
+
return acc;
|
|
33
|
+
}, {});
|
|
34
|
+
var calls = [];
|
|
35
|
+
var ajs_uid = params.ajs_uid, ajs_event = params.ajs_event, ajs_aid = params.ajs_aid;
|
|
36
|
+
var _a = isPlainObject(analytics.options.useQueryString)
|
|
37
|
+
? analytics.options.useQueryString
|
|
38
|
+
: {}, _b = _a.aid, aidPattern = _b === void 0 ? /.+/ : _b, _c = _a.uid, uidPattern = _c === void 0 ? /.+/ : _c;
|
|
39
|
+
if (ajs_aid) {
|
|
40
|
+
var anonId = Array.isArray(params.ajs_aid)
|
|
41
|
+
? params.ajs_aid[0]
|
|
42
|
+
: params.ajs_aid;
|
|
43
|
+
if (aidPattern.test(anonId)) {
|
|
44
|
+
analytics.setAnonymousId(anonId);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (ajs_uid) {
|
|
48
|
+
var uid = Array.isArray(params.ajs_uid)
|
|
49
|
+
? params.ajs_uid[0]
|
|
50
|
+
: params.ajs_uid;
|
|
51
|
+
if (uidPattern.test(uid)) {
|
|
52
|
+
var traits = pickPrefix('ajs_trait_', params);
|
|
53
|
+
calls.push(analytics.identify(uid, traits));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (ajs_event) {
|
|
57
|
+
var event_1 = Array.isArray(params.ajs_event)
|
|
58
|
+
? params.ajs_event[0]
|
|
59
|
+
: params.ajs_event;
|
|
60
|
+
var props = pickPrefix('ajs_prop_', params);
|
|
61
|
+
calls.push(analytics.track(event_1, props));
|
|
62
|
+
}
|
|
63
|
+
return Promise.all(calls);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { queryString };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as featheryWindow, j as jsxs, _ as __assign, a as jsx, c as __read, u as useBorder, h as hoverStylesGuard, P as isNum } from './fthry_index.
|
|
1
|
+
import { p as featheryWindow, j as jsxs, _ as __assign, a as jsx, c as __read, u as useBorder, h as hoverStylesGuard, P as isNum } from './fthry_index.BoXwpo3p.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as jsxs, _ as __assign, a as jsx, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { j as jsxs, _ as __assign, a as jsx, b as iosScrollOnFocus, r as resetStyles } from './fthry_index.BoXwpo3p.js';
|
|
2
2
|
import { useRef, useMemo, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.AWZ2hRhb.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.D2-zTdBQ.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.DAaWNMEQ.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DJFGoBIG.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.C500WG6U.js';
|
|
12
12
|
|
|
13
13
|
var applyCheckboxGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('checkboxGroup');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as useBorder, j as jsxs, _ as __assign, a as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { u as useBorder, j as jsxs, _ as __assign, a as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.BoXwpo3p.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.DAaWNMEQ.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DJFGoBIG.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.C500WG6U.js';
|
|
10
10
|
|
|
11
11
|
function ButtonGroupField(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, o as FeatheryClient, H as debounce } from './fthry_index.
|
|
1
|
+
import { c as __read, u as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, a as jsx, b as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, o as FeatheryClient, H as debounce } from './fthry_index.BoXwpo3p.js';
|
|
2
2
|
import { useRef, useEffect, memo, useState, useCallback } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.DXrZi2ze.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.DAaWNMEQ.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.C500WG6U.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.BCbe9jZd.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { l as __awaiter, m as __generator } from './fthry_index.BoXwpo3p.js';
|
|
2
|
+
import { i as isServer, g as getNextIntegrationsURL, l as loadScript } from './fthry_index.Cn4kA2tn.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'react-dom/client';
|
|
6
|
+
import 'jszip';
|
|
7
|
+
import 'react-dom';
|
|
8
|
+
|
|
9
|
+
function remoteMiddlewares(ctx, settings, obfuscate) {
|
|
10
|
+
var _a;
|
|
11
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12
|
+
var path, remoteMiddleware, names, scripts, middleware;
|
|
13
|
+
var _this = this;
|
|
14
|
+
return __generator(this, function (_b) {
|
|
15
|
+
switch (_b.label) {
|
|
16
|
+
case 0:
|
|
17
|
+
if (isServer()) {
|
|
18
|
+
return [2 /*return*/, []];
|
|
19
|
+
}
|
|
20
|
+
path = getNextIntegrationsURL();
|
|
21
|
+
remoteMiddleware = (_a = settings.enabledMiddleware) !== null && _a !== void 0 ? _a : {};
|
|
22
|
+
names = Object.entries(remoteMiddleware)
|
|
23
|
+
.filter(function (_a) {
|
|
24
|
+
_a[0]; var enabled = _a[1];
|
|
25
|
+
return enabled;
|
|
26
|
+
})
|
|
27
|
+
.map(function (_a) {
|
|
28
|
+
var name = _a[0];
|
|
29
|
+
return name;
|
|
30
|
+
});
|
|
31
|
+
scripts = names.map(function (name) { return __awaiter(_this, void 0, void 0, function () {
|
|
32
|
+
var nonNamespaced, bundleName, fullPath, error_1;
|
|
33
|
+
return __generator(this, function (_a) {
|
|
34
|
+
switch (_a.label) {
|
|
35
|
+
case 0:
|
|
36
|
+
nonNamespaced = name.replace('@segment/', '');
|
|
37
|
+
bundleName = nonNamespaced;
|
|
38
|
+
if (obfuscate) {
|
|
39
|
+
bundleName = btoa(nonNamespaced).replace(/=/g, '');
|
|
40
|
+
}
|
|
41
|
+
fullPath = "".concat(path, "/middleware/").concat(bundleName, "/latest/").concat(bundleName, ".js.gz");
|
|
42
|
+
_a.label = 1;
|
|
43
|
+
case 1:
|
|
44
|
+
_a.trys.push([1, 3, , 4]);
|
|
45
|
+
return [4 /*yield*/, loadScript(fullPath)
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
];
|
|
48
|
+
case 2:
|
|
49
|
+
_a.sent();
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
return [2 /*return*/, window["".concat(nonNamespaced, "Middleware")]];
|
|
52
|
+
case 3:
|
|
53
|
+
error_1 = _a.sent();
|
|
54
|
+
ctx.log('error', error_1);
|
|
55
|
+
ctx.stats.increment('failed_remote_middleware');
|
|
56
|
+
return [3 /*break*/, 4];
|
|
57
|
+
case 4: return [2 /*return*/];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}); });
|
|
61
|
+
return [4 /*yield*/, Promise.all(scripts)];
|
|
62
|
+
case 1:
|
|
63
|
+
middleware = _b.sent();
|
|
64
|
+
middleware = middleware.filter(Boolean);
|
|
65
|
+
return [2 /*return*/, middleware];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { remoteMiddlewares };
|