@feathery/react 2.42.0 → 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.
Files changed (196) hide show
  1. package/cjs/{fthry_AssistantChat.BOyDRP1t.js → fthry_AssistantChat.Dc6irzAk.js} +4 -4
  2. package/cjs/{fthry_FormControl.ChDphBiw.js → fthry_FormControl.D_eydQlT.js} +1 -1
  3. package/cjs/{fthry_InlineTooltip.Ddh8_6aY.js → fthry_InlineTooltip.Km0nxBV3.js} +2 -2
  4. package/cjs/{fthry_Overlay.Bd1qiy6-.js → fthry_Overlay.ChABiy0m.js} +1 -1
  5. package/cjs/{fthry_PaymentMethodField.DmbR79FW.js → fthry_PaymentMethodField.BMABompY.js} +4 -4
  6. package/cjs/{fthry_Placeholder.BZUp2I1J.js → fthry_Placeholder.CnNGDD_K.js} +1 -1
  7. package/cjs/{fthry_ShowEyeIcon.D9DLoHqI.js → fthry_ShowEyeIcon.Cozhh36m.js} +1 -1
  8. package/cjs/fthry_auto-track.CzyR3umO.js +114 -0
  9. package/cjs/{fthry_highlighted-body-TPN3WLV5.W8KTEXCF.js → fthry_highlighted-body-TPN3WLV5.D8LjPUtI.js} +3 -3
  10. package/cjs/{fthry_index.pqZR4gSb.js → fthry_index.5oiWIOUK.js} +1 -1
  11. package/cjs/fthry_index.8ZkixEuX.js +477 -0
  12. package/cjs/{fthry_index.C_KCwy5K.js → fthry_index.B-QAg85r.js} +6 -6
  13. package/cjs/{fthry_index.BJAzpvPO.js → fthry_index.B4qsX_2B.js} +4 -4
  14. package/cjs/fthry_index.B5TkPpn3.js +73 -0
  15. package/cjs/fthry_index.B76xVeoK.js +6893 -0
  16. package/cjs/fthry_index.B79ksg_6.js +68 -0
  17. package/cjs/{fthry_index.DjWcky2z.js → fthry_index.B7Slrn_2.js} +1 -1
  18. package/cjs/{fthry_index.C3bArUa4.js → fthry_index.BNFRKqrl.js} +5 -5
  19. package/cjs/{fthry_index.CW5rWtuZ.js → fthry_index.BPu5GDF3.js} +5 -5
  20. package/cjs/{fthry_index.DJzIqovs.js → fthry_index.BVLMhJHP.js} +1 -1
  21. package/cjs/{fthry_index.aU4Q-Vhi.js → fthry_index.BYJ0Cjz1.js} +1 -1
  22. package/cjs/{fthry_index.B4iCcGUt.js → fthry_index.CMRH7foG.js} +6 -6
  23. package/cjs/{fthry_index.DQ3tM-b4.js → fthry_index.Cj3i1JIs.js} +1 -1
  24. package/cjs/{fthry_index.Bcl3u2bt.js → fthry_index.Cj8NIIWS.js} +6 -6
  25. package/cjs/{fthry_index.pmG3XerW.js → fthry_index.Crv5Oqdb.js} +6 -6
  26. package/cjs/{fthry_index.VXMfU8Ig.js → fthry_index.CsV6zv_0.js} +5 -5
  27. package/cjs/{fthry_index.JJYyApby.js → fthry_index.D6PlFvY8.js} +5 -5
  28. package/cjs/{fthry_index.DNNK_WNB.js → fthry_index.D7jBFEkz.js} +1 -1
  29. package/cjs/fthry_index.DMmTH04s.js +34 -0
  30. package/cjs/{fthry_index.DcZhokGw.js → fthry_index.DcnmaMvN.js} +2 -2
  31. package/cjs/fthry_index.DfOk3_Vc.js +72 -0
  32. package/cjs/{fthry_index.Cts348D4.js → fthry_index.Dn7k0XbZ.js} +91 -111
  33. package/cjs/{fthry_index.BEwwo45U.js → fthry_index.DoliEMOD.js} +3 -3
  34. package/cjs/{fthry_index.BcSPIfHw.js → fthry_index.H4GgWRQ-.js} +1 -1
  35. package/cjs/fthry_index.KDrRVPx5.js +575 -0
  36. package/cjs/{fthry_index.DMa8KL_d.js → fthry_index.KMyCBmte.js} +1 -1
  37. package/cjs/{fthry_index.Wf6EoIZb.js → fthry_index.WbKUUcdS.js} +1 -1
  38. package/cjs/{fthry_index.B8IGhOnl.js → fthry_index._pqB5lCu.js} +8 -8
  39. package/cjs/{fthry_index.DzpicfAn.js → fthry_index.ecHJPvgK.js} +3 -3
  40. package/cjs/fthry_index.umd.lxnwBuEl.js +41 -0
  41. package/cjs/{fthry_index.LPXprTDf.js → fthry_index.wTd_xpVX.js} +4 -4
  42. package/cjs/{fthry_index.l6iPtqf7.js → fthry_index.x_Q9efXs.js} +2 -2
  43. package/cjs/{fthry_input.C3lHXfth.js → fthry_input.DJaKnXqS.js} +1 -1
  44. package/cjs/fthry_is-plan-event-enabled.nMt_kVye.js +19 -0
  45. package/cjs/{fthry_mermaid-O7DHMXV3.BODsiYW_.js → fthry_mermaid-O7DHMXV3.CyaPsnki.js} +3 -3
  46. package/cjs/{fthry_script.C70Bm3qk.js → fthry_script.DrFnB8ud.js} +1 -1
  47. package/cjs/{fthry_styles.BLUeHaH3.js → fthry_styles.qeOM9hPF.js} +1 -1
  48. package/cjs/{fthry_useElementSize.B4RuT8C5.js → fthry_useElementSize.K1QGuhUj.js} +1 -1
  49. package/cjs/{fthry_useSalesforceSync.CNNAgWe2.js → fthry_useSalesforceSync.DQd2UZn6.js} +1 -1
  50. package/cjs/{fthry_webfontloader.CJNW-DFS.js → fthry_webfontloader.D6aR0hiT.js} +1 -1
  51. package/cjs/index.js +1 -1
  52. package/cjs/integrations/segment.d.ts +1 -1
  53. package/cjs/integrations/segment.d.ts.map +1 -1
  54. package/dist/{fthry_AssistantChat.HxV8LV1W.js → fthry_AssistantChat.D2SjzX88.js} +4 -4
  55. package/dist/{fthry_FormControl.CnYezAfl.js → fthry_FormControl.AWZ2hRhb.js} +1 -1
  56. package/dist/{fthry_InlineTooltip.bROBNZ_Z.js → fthry_InlineTooltip.DAaWNMEQ.js} +2 -2
  57. package/dist/{fthry_Overlay.c1qlB9ct.js → fthry_Overlay.C500WG6U.js} +1 -1
  58. package/dist/{fthry_PaymentMethodField.t7Dvi81Y.js → fthry_PaymentMethodField.Bl2Ce36L.js} +4 -4
  59. package/dist/{fthry_Placeholder.BH2h6ybj.js → fthry_Placeholder.DXrZi2ze.js} +1 -1
  60. package/dist/{fthry_ShowEyeIcon.BRmzNxYQ.js → fthry_ShowEyeIcon.D3iEMZA7.js} +1 -1
  61. package/dist/fthry_auto-track.C9HCW4qJ.js +111 -0
  62. package/dist/{fthry_highlighted-body-TPN3WLV5.VbtSFmzn.js → fthry_highlighted-body-TPN3WLV5.j0rrY2PD.js} +3 -3
  63. package/dist/fthry_index.-lEiRiJ3.js +66 -0
  64. package/dist/{fthry_index.fobb7KRG.js → fthry_index.0DlQOa4l.js} +1 -1
  65. package/dist/{fthry_index.BU1tBfl4.js → fthry_index.4rXsgo8n.js} +6 -6
  66. package/dist/{fthry_index.Cni5qhKo.js → fthry_index.BALrl_Ek.js} +4 -4
  67. package/dist/{fthry_index.CTKKbjOj.js → fthry_index.BDtWG5y-.js} +5 -5
  68. package/dist/fthry_index.BHbPxMcy.js +71 -0
  69. package/dist/fthry_index.BjZmdaIR.js +474 -0
  70. package/dist/{fthry_index.D9AlZz3i.js → fthry_index.BlrVY1vE.js} +6 -6
  71. package/dist/{fthry_index._5bwnWsa.js → fthry_index.BoXwpo3p.js} +91 -112
  72. package/dist/{fthry_index.BabA9Mw-.js → fthry_index.C-Af9t8c.js} +5 -5
  73. package/dist/{fthry_index.D703JOs7.js → fthry_index.C8xVXq31.js} +3 -3
  74. package/dist/{fthry_index.BCEtAYB2.js → fthry_index.C9P7Vo6r.js} +1 -1
  75. package/dist/{fthry_index.BwtbJAEO.js → fthry_index.CB6eTYmX.js} +5 -5
  76. package/dist/{fthry_index.DO15Hx14.js → fthry_index.CS604ePK.js} +2 -2
  77. package/dist/{fthry_index.D3YVIQwB.js → fthry_index.Cd0JKkOc.js} +8 -8
  78. package/dist/fthry_index.Cn4kA2tn.js +6871 -0
  79. package/dist/fthry_index.Co2zkJCZ.js +70 -0
  80. package/dist/{fthry_index.DjOqKkBq.js → fthry_index.D2-zTdBQ.js} +1 -1
  81. package/dist/{fthry_index.C3ADr7W7.js → fthry_index.D3O1Qvm3.js} +3 -3
  82. package/dist/{fthry_index.DkcH8BMq.js → fthry_index.D5dmTp6g.js} +1 -1
  83. package/dist/{fthry_index.DDOGQlw5.js → fthry_index.D8_hWgYx.js} +1 -1
  84. package/dist/{fthry_index.CrDUdmXr.js → fthry_index.DA5HHbVe.js} +1 -1
  85. package/dist/fthry_index.DAdR6bYe.js +32 -0
  86. package/dist/{fthry_index.CNnWO_IQ.js → fthry_index.DFZRIGNF.js} +2 -2
  87. package/dist/{fthry_index.C3UMQKv8.js → fthry_index.DOGU2-kQ.js} +5 -5
  88. package/dist/{fthry_index.DXdUdmGQ.js → fthry_index.DZviU_0h.js} +1 -1
  89. package/dist/{fthry_index.DObbQIll.js → fthry_index.DtHlcCDX.js} +1 -1
  90. package/dist/{fthry_index.IiZ-zUFp.js → fthry_index.DzDuGB1B.js} +6 -6
  91. package/dist/{fthry_index.vtPqJ0XE.js → fthry_index.IaraEDTR.js} +1 -1
  92. package/dist/fthry_index.JD44HVFL.js +573 -0
  93. package/dist/{fthry_index.CI2e6tdr.js → fthry_index.OgRdIE07.js} +5 -5
  94. package/dist/fthry_index.umd.BhHG1ThX.js +39 -0
  95. package/dist/{fthry_index.BXQYUbtj.js → fthry_index.x_DcI6GR.js} +4 -4
  96. package/dist/{fthry_input.DNaXMuMS.js → fthry_input.Y2HVhQeo.js} +1 -1
  97. package/dist/fthry_is-plan-event-enabled.mXX0dwl-.js +17 -0
  98. package/dist/{fthry_mermaid-O7DHMXV3.WhXC51ol.js → fthry_mermaid-O7DHMXV3._Ng2DeVi.js} +3 -3
  99. package/dist/{fthry_script.Bqz_se84.js → fthry_script.4cQVioC4.js} +1 -1
  100. package/dist/{fthry_styles.DMI6ijBl.js → fthry_styles.DX0NUnVP.js} +1 -1
  101. package/dist/{fthry_useElementSize.BcPjULOb.js → fthry_useElementSize.BCbe9jZd.js} +1 -1
  102. package/dist/{fthry_useSalesforceSync.lJhIijY2.js → fthry_useSalesforceSync.DJFGoBIG.js} +1 -1
  103. package/dist/{fthry_webfontloader.B0wgjWSB.js → fthry_webfontloader.4kqCCEG_.js} +1 -1
  104. package/dist/index.js +1 -1
  105. package/dist/integrations/segment.d.ts +1 -1
  106. package/dist/integrations/segment.d.ts.map +1 -1
  107. package/package.json +2 -1
  108. package/umd/277.1a33ea06f86326613fcb.js +1 -0
  109. package/umd/301.b40f38397dcde848ba46.js +1 -0
  110. package/umd/435.a94343a900f83a1ba8eb.js +1 -0
  111. package/umd/466.c82e14e5b06ae17649ff.js +1 -0
  112. package/umd/509.d49410af0cc948b08d73.js +2 -0
  113. package/umd/529.e7a0a831bf80398fda0f.js +1 -0
  114. package/umd/542.5168cf86fc7255c8b7fd.js +1 -0
  115. package/umd/598.9bc05f78267c055211d9.js +2 -0
  116. package/umd/602.ddda17ac6b2cabb3d639.js +1 -0
  117. package/umd/664.4a3ec465094a3d59c184.js +1 -0
  118. package/umd/834.b4ef33227c4c872368d6.js +1 -0
  119. package/umd/94.391827577c1c62f73f29.js +2 -0
  120. package/umd/AddressField.648b3da916171008dc9f.js +1 -0
  121. package/umd/AssistantChat.879f86967feffba1cc6f.js +1 -0
  122. package/umd/ButtonGroupField.d39ac976a6dee9ef593a.js +1 -0
  123. package/umd/CheckboxField.3323fdfd4a7377580d46.js +1 -0
  124. package/umd/CheckboxGroupField.e495eb152c4faa000d4b.js +1 -0
  125. package/umd/ColorPickerField.7e0f3c3a7dc1bcaf5e30.js +1 -0
  126. package/umd/CustomField.895d9a1d34e8e7b8b8d0.js +1 -0
  127. package/umd/DateSelectorField.e702b3e6b0a5b498c824.js +1 -0
  128. package/umd/DropdownField.d1a234d236d9989bbf20.js +1 -0
  129. package/umd/DropdownMultiField.5b4e24025035f1678c83.js +1 -0
  130. package/umd/FileUploadField.f0d66cf87244c0e565a1.js +1 -0
  131. package/umd/MatrixField.bcd6f58ea1896f386988.js +1 -0
  132. package/umd/PasswordField.593d7b7d3d954634fa30.js +1 -0
  133. package/umd/PaymentMethodField.8e4fd6353793eaaa2b5b.js +1 -0
  134. package/umd/PhoneField.861b99c7e81b4b9c8648.js +1 -0
  135. package/umd/PinInputField.ddc30797191dfbed7fe3.js +1 -0
  136. package/umd/QRScanner.94381603047f5db6b5c0.js +1 -0
  137. package/umd/RadioButtonGroupField.7a333a6f7e578a181a98.js +1 -0
  138. package/umd/RatingField.204cb92c30aeb4b8952a.js +1 -0
  139. package/umd/SignatureField.9cc9b3783cf8149ba767.js +1 -0
  140. package/umd/SliderField.d746a57527031d551f58.js +1 -0
  141. package/umd/TableElement.fef6a362cfa150f0f38e.js +1 -0
  142. package/umd/TextArea.04335be4f0f0d6c0cc1a.js +1 -0
  143. package/umd/TextField.749931ebb258bf38e007.js +1 -0
  144. package/umd/ajs-destination.19322d501875cd260554.js +1 -0
  145. package/umd/auto-track.e6503d851d1d8c634ff0.js +1 -0
  146. package/umd/index.js +1 -1
  147. package/umd/legacyVideos.5ab9e462d737eca6f817.js +1 -0
  148. package/umd/libphonenumber.721378defae8d84deae2.js +1 -0
  149. package/umd/queryString.74978b49d70f9556e22a.js +1 -0
  150. package/umd/remoteMiddleware.fb68e7490b3379937c68.js +1 -0
  151. package/umd/schemaFilter.45d31876c08e74664f1d.js +1 -0
  152. package/umd/segment.76c3946188b5c80e77d6.js +2 -0
  153. package/umd/segment.76c3946188b5c80e77d6.js.LICENSE.txt +1 -0
  154. package/umd/tsub-middleware.4d4d00320fa7aa6a97cc.js +2 -0
  155. package/umd/tsub-middleware.4d4d00320fa7aa6a97cc.js.LICENSE.txt +1 -0
  156. package/umd/webfontloader.419636e0eb0cfb39b078.js +1 -0
  157. package/umd/277.87e6ca5c1cf2a7477992.js +0 -1
  158. package/umd/301.a96bba9d529bf7fd379e.js +0 -1
  159. package/umd/435.faa037e36038c2c766da.js +0 -1
  160. package/umd/466.e3456c8b3407ad04ba56.js +0 -1
  161. package/umd/509.bca2ff43c66b1dba064f.js +0 -2
  162. package/umd/529.63afee65c745ca950f81.js +0 -1
  163. package/umd/542.f1dbbbb062e82a2995e9.js +0 -1
  164. package/umd/598.ca92da6595afad37b511.js +0 -2
  165. package/umd/602.1fde434923c6596acd40.js +0 -1
  166. package/umd/664.42541009d1fcb121cc49.js +0 -1
  167. package/umd/94.e8ad20ab98c664d13197.js +0 -2
  168. package/umd/AddressField.c4188872f2a931394aa1.js +0 -1
  169. package/umd/AssistantChat.7af8f8f25348f5379aeb.js +0 -1
  170. package/umd/ButtonGroupField.33cf9c939c8e82cc6c83.js +0 -1
  171. package/umd/CheckboxField.782999cad642da04434d.js +0 -1
  172. package/umd/CheckboxGroupField.18ab392a2890a239fd0b.js +0 -1
  173. package/umd/ColorPickerField.f6740bb7c4c20a520db5.js +0 -1
  174. package/umd/CustomField.a5b2965922f2d170b9b5.js +0 -1
  175. package/umd/DateSelectorField.568bb30a220837a36660.js +0 -1
  176. package/umd/DropdownField.9f0f8a425ddf09771ad8.js +0 -1
  177. package/umd/DropdownMultiField.72a44c0280217eeb5652.js +0 -1
  178. package/umd/FileUploadField.7a5028fb6035d09b3e81.js +0 -1
  179. package/umd/MatrixField.2b65107453ddf2322137.js +0 -1
  180. package/umd/PasswordField.7585ef588333cb4181f7.js +0 -1
  181. package/umd/PaymentMethodField.d08bcfa1efb56084572d.js +0 -1
  182. package/umd/PhoneField.b9293ead8e5a2a3b7c37.js +0 -1
  183. package/umd/PinInputField.b1aee0ef9d3c9f9a1933.js +0 -1
  184. package/umd/QRScanner.3c22391de30dba001f13.js +0 -1
  185. package/umd/RadioButtonGroupField.20268d1b4649053bf1db.js +0 -1
  186. package/umd/RatingField.eeeb0ac499c308c120ba.js +0 -1
  187. package/umd/SignatureField.0e7d60fa2fafcb6be554.js +0 -1
  188. package/umd/SliderField.a5ab58e4b89fa67d6ac6.js +0 -1
  189. package/umd/TableElement.1076e69a66923cfe6434.js +0 -1
  190. package/umd/TextArea.7cca0d69e618846660c5.js +0 -1
  191. package/umd/TextField.28c59425e129e78a4551.js +0 -1
  192. package/umd/libphonenumber.4ab4d30edb4e455b2fc4.js +0 -1
  193. package/umd/webfontloader.b44bdf00049b175713ae.js +0 -1
  194. /package/umd/{509.bca2ff43c66b1dba064f.js.LICENSE.txt → 509.d49410af0cc948b08d73.js.LICENSE.txt} +0 -0
  195. /package/umd/{598.ca92da6595afad37b511.js.LICENSE.txt → 598.9bc05f78267c055211d9.js.LICENSE.txt} +0 -0
  196. /package/umd/{94.e8ad20ab98c664d13197.js.LICENSE.txt → 94.391827577c1c62f73f29.js.LICENSE.txt} +0 -0
@@ -0,0 +1,474 @@
1
+ import { l as __awaiter, m as __generator, L as __spreadArray, _ as __assign } from './fthry_index.BoXwpo3p.js';
2
+ import { l as loadScript, g as getNextIntegrationsURL, u as unloadScript, i as isServer, m as mergedOptions, b as isPlainObject, r as recordIntegrationMetric, c as isOffline, C as ContextCancelation, d as applyDestinationMiddleware, e as distExports, f as createDeferred, P as PriorityQueue, h as PersistedPriorityQueue, j as pWhile, k as attempt, n as Context, o as isOnline } from './fthry_index.Cn4kA2tn.js';
3
+ import { i as isPlanEventEnabled } from './fthry_is-plan-event-enabled.mXX0dwl-.js';
4
+ import 'react/jsx-runtime';
5
+ import 'react';
6
+ import 'react-dom/client';
7
+ import 'jszip';
8
+ import 'react-dom';
9
+
10
+ function normalizeName(name) {
11
+ return name.toLowerCase().replace('.', '').replace(/\s+/g, '-');
12
+ }
13
+ function obfuscatePathName(pathName, obfuscate) {
14
+ if (obfuscate === void 0) { obfuscate = false; }
15
+ return obfuscate ? btoa(pathName).replace(/=/g, '') : undefined;
16
+ }
17
+ function resolveIntegrationNameFromSource(integrationSource) {
18
+ return ('Integration' in integrationSource
19
+ ? integrationSource.Integration
20
+ : integrationSource).prototype.name;
21
+ }
22
+ function recordLoadMetrics(fullPath, ctx, name) {
23
+ var _a, _b;
24
+ try {
25
+ var metric = ((_b = (_a = window === null || window === void 0 ? void 0 : window.performance) === null || _a === void 0 ? void 0 : _a.getEntriesByName(fullPath, 'resource')) !== null && _b !== void 0 ? _b : [])[0];
26
+ // we assume everything that took under 100ms is cached
27
+ metric &&
28
+ ctx.stats.gauge('legacy_destination_time', Math.round(metric.duration), __spreadArray([
29
+ name
30
+ ], (metric.duration < 100 ? ['cached'] : []), true));
31
+ }
32
+ catch (_) {
33
+ // not available
34
+ }
35
+ }
36
+ function buildIntegration(integrationSource, integrationSettings, analyticsInstance) {
37
+ var integrationCtr;
38
+ // GA and Appcues use a different interface to instantiating integrations
39
+ if ('Integration' in integrationSource) {
40
+ var analyticsStub = {
41
+ user: function () { return analyticsInstance.user(); },
42
+ addIntegration: function () { },
43
+ };
44
+ integrationSource(analyticsStub);
45
+ integrationCtr = integrationSource.Integration;
46
+ }
47
+ else {
48
+ integrationCtr = integrationSource;
49
+ }
50
+ var integration = new integrationCtr(integrationSettings);
51
+ integration.analytics = analyticsInstance;
52
+ return integration;
53
+ }
54
+ function loadIntegration(ctx, name, version, obfuscate) {
55
+ return __awaiter(this, void 0, void 0, function () {
56
+ var pathName, obfuscatedPathName, path, fullPath, err_1, deps;
57
+ return __generator(this, function (_a) {
58
+ switch (_a.label) {
59
+ case 0:
60
+ pathName = normalizeName(name);
61
+ obfuscatedPathName = obfuscatePathName(pathName, obfuscate);
62
+ path = getNextIntegrationsURL();
63
+ fullPath = "".concat(path, "/integrations/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, "/").concat(version, "/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, ".dynamic.js.gz");
64
+ _a.label = 1;
65
+ case 1:
66
+ _a.trys.push([1, 3, , 4]);
67
+ return [4 /*yield*/, loadScript(fullPath)];
68
+ case 2:
69
+ _a.sent();
70
+ recordLoadMetrics(fullPath, ctx, name);
71
+ return [3 /*break*/, 4];
72
+ case 3:
73
+ err_1 = _a.sent();
74
+ ctx.stats.gauge('legacy_destination_time', -1, ["plugin:".concat(name), "failed"]);
75
+ throw err_1;
76
+ case 4:
77
+ deps = window["".concat(pathName, "Deps")];
78
+ return [4 /*yield*/, Promise.all(deps.map(function (dep) { return loadScript(path + dep + '.gz'); }))
79
+ // @ts-ignore
80
+ ];
81
+ case 5:
82
+ _a.sent();
83
+ // @ts-ignore
84
+ window["".concat(pathName, "Loader")]();
85
+ return [2 /*return*/, window[
86
+ // @ts-ignore
87
+ "".concat(pathName, "Integration")]];
88
+ }
89
+ });
90
+ });
91
+ }
92
+ function unloadIntegration(name, version, obfuscate) {
93
+ return __awaiter(this, void 0, void 0, function () {
94
+ var path, pathName, obfuscatedPathName, fullPath;
95
+ return __generator(this, function (_a) {
96
+ path = getNextIntegrationsURL();
97
+ pathName = normalizeName(name);
98
+ obfuscatedPathName = obfuscatePathName(name, obfuscate);
99
+ fullPath = "".concat(path, "/integrations/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, "/").concat(version, "/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, ".dynamic.js.gz");
100
+ return [2 /*return*/, unloadScript(fullPath)];
101
+ });
102
+ });
103
+ }
104
+ function resolveVersion(integrationConfig) {
105
+ var _a, _b, _c, _d;
106
+ return ((_d = (_b = (_a = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _a === void 0 ? void 0 : _a.override) !== null && _b !== void 0 ? _b : (_c = integrationConfig === null || integrationConfig === void 0 ? void 0 : integrationConfig.versionSettings) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : 'latest');
107
+ }
108
+
109
+ var isInstallableIntegration = function (name, integrationSettings) {
110
+ var _a;
111
+ var type = integrationSettings.type, bundlingStatus = integrationSettings.bundlingStatus, versionSettings = integrationSettings.versionSettings;
112
+ // We use `!== 'unbundled'` (versus `=== 'bundled'`) to be inclusive of
113
+ // destinations without a defined value for `bundlingStatus`
114
+ var deviceMode = bundlingStatus !== 'unbundled' &&
115
+ (type === 'browser' || ((_a = versionSettings === null || versionSettings === void 0 ? void 0 : versionSettings.componentTypes) === null || _a === void 0 ? void 0 : _a.includes('browser')));
116
+ // checking for iterable is a quick fix we need in place to prevent
117
+ // errors showing Iterable as a failed destiantion. Ideally, we should
118
+ // fix the Iterable metadata instead, but that's a longer process.
119
+ return !name.startsWith('Segment') && name !== 'Iterable' && deviceMode;
120
+ };
121
+ var isDisabledIntegration = function (integrationName, integrations) {
122
+ var allDisableAndNotDefined = integrations.All === false && integrations[integrationName] === undefined;
123
+ return integrations[integrationName] === false || allDisableAndNotDefined;
124
+ };
125
+
126
+ function flushQueue(xt, queue) {
127
+ return __awaiter(this, void 0, void 0, function () {
128
+ var failedQueue;
129
+ var _this = this;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ failedQueue = [];
134
+ if (isOffline()) {
135
+ return [2 /*return*/, queue];
136
+ }
137
+ return [4 /*yield*/, pWhile(function () { return queue.length > 0 && isOnline(); }, function () { return __awaiter(_this, void 0, void 0, function () {
138
+ var ctx, result, success;
139
+ return __generator(this, function (_a) {
140
+ switch (_a.label) {
141
+ case 0:
142
+ ctx = queue.pop();
143
+ if (!ctx) {
144
+ return [2 /*return*/];
145
+ }
146
+ return [4 /*yield*/, attempt(ctx, xt)];
147
+ case 1:
148
+ result = _a.sent();
149
+ success = result instanceof Context;
150
+ if (!success) {
151
+ failedQueue.push(ctx);
152
+ }
153
+ return [2 /*return*/];
154
+ }
155
+ });
156
+ }); })
157
+ // re-add failed tasks
158
+ ];
159
+ case 1:
160
+ _a.sent();
161
+ // re-add failed tasks
162
+ failedQueue.map(function (failed) { return queue.pushWithBackoff(failed); });
163
+ return [2 /*return*/, queue];
164
+ }
165
+ });
166
+ });
167
+ }
168
+ var LegacyDestination = /** @class */ (function () {
169
+ function LegacyDestination(name, version, writeKey, settings, options, integrationSource) {
170
+ if (settings === void 0) { settings = {}; }
171
+ var _this = this;
172
+ this.options = {};
173
+ this.type = 'destination';
174
+ this.middleware = [];
175
+ this.initializePromise = createDeferred();
176
+ this.flushing = false;
177
+ this.name = name;
178
+ this.version = version;
179
+ this.settings = __assign({}, settings);
180
+ this.disableAutoISOConversion = options.disableAutoISOConversion || false;
181
+ this.integrationSource = integrationSource;
182
+ // AJS-Renderer sets an extraneous `type` setting that clobbers
183
+ // existing type defaults. We need to remove it if it's present
184
+ if (this.settings['type'] && this.settings['type'] === 'browser') {
185
+ delete this.settings['type'];
186
+ }
187
+ this.initializePromise.promise.then(function (isInitialized) { return (_this._initialized = isInitialized); }, function () { });
188
+ this.options = options;
189
+ this.buffer = options.disableClientPersistence
190
+ ? new PriorityQueue(4, [])
191
+ : new PersistedPriorityQueue(4, "".concat(writeKey, ":dest-").concat(name));
192
+ this.scheduleFlush();
193
+ }
194
+ LegacyDestination.prototype.isLoaded = function () {
195
+ return !!this._ready;
196
+ };
197
+ LegacyDestination.prototype.ready = function () {
198
+ var _this = this;
199
+ return this.initializePromise.promise.then(function () { var _a; return (_a = _this.onReady) !== null && _a !== void 0 ? _a : Promise.resolve(); });
200
+ };
201
+ LegacyDestination.prototype.load = function (ctx, analyticsInstance) {
202
+ var _a;
203
+ return __awaiter(this, void 0, void 0, function () {
204
+ var integrationSource, _b, error_1;
205
+ var _this = this;
206
+ return __generator(this, function (_c) {
207
+ switch (_c.label) {
208
+ case 0:
209
+ if (this._ready || this.onReady !== undefined) {
210
+ return [2 /*return*/];
211
+ }
212
+ _c.label = 1;
213
+ case 1:
214
+ _c.trys.push([1, 5, , 6]);
215
+ if (!((_a = this.integrationSource) !== null && _a !== void 0)) return [3 /*break*/, 2];
216
+ _b = _a;
217
+ return [3 /*break*/, 4];
218
+ case 2: return [4 /*yield*/, loadIntegration(ctx, this.name, this.version, this.options.obfuscate)];
219
+ case 3:
220
+ _b = (_c.sent());
221
+ _c.label = 4;
222
+ case 4:
223
+ integrationSource = _b;
224
+ this.integration = buildIntegration(integrationSource, this.settings, analyticsInstance);
225
+ return [3 /*break*/, 6];
226
+ case 5:
227
+ error_1 = _c.sent();
228
+ recordIntegrationMetric(ctx, {
229
+ integrationName: this.name,
230
+ methodName: 'load',
231
+ type: 'classic',
232
+ didError: true,
233
+ });
234
+ throw error_1;
235
+ case 6:
236
+ this.onReady = new Promise(function (resolve) {
237
+ var onReadyFn = function () {
238
+ _this._ready = true;
239
+ resolve(true);
240
+ };
241
+ _this.integration.once('ready', onReadyFn);
242
+ });
243
+ this.integration.on('initialize', function () {
244
+ _this.initializePromise.resolve(true);
245
+ });
246
+ try {
247
+ recordIntegrationMetric(ctx, {
248
+ integrationName: this.name,
249
+ methodName: 'initialize',
250
+ type: 'classic',
251
+ });
252
+ this.integration.initialize();
253
+ }
254
+ catch (error) {
255
+ recordIntegrationMetric(ctx, {
256
+ integrationName: this.name,
257
+ methodName: 'initialize',
258
+ type: 'classic',
259
+ didError: true,
260
+ });
261
+ this.initializePromise.resolve(false);
262
+ throw error;
263
+ }
264
+ return [2 /*return*/];
265
+ }
266
+ });
267
+ });
268
+ };
269
+ LegacyDestination.prototype.unload = function (_ctx, _analyticsInstance) {
270
+ return unloadIntegration(this.name, this.version, this.options.obfuscate);
271
+ };
272
+ LegacyDestination.prototype.addMiddleware = function () {
273
+ var _a;
274
+ var fn = [];
275
+ for (var _i = 0; _i < arguments.length; _i++) {
276
+ fn[_i] = arguments[_i];
277
+ }
278
+ this.middleware = (_a = this.middleware).concat.apply(_a, fn);
279
+ };
280
+ LegacyDestination.prototype.shouldBuffer = function (ctx) {
281
+ return (
282
+ // page events can't be buffered because of destinations that automatically add page views
283
+ ctx.event.type !== 'page' &&
284
+ (isOffline() || this._ready !== true || this._initialized !== true));
285
+ };
286
+ LegacyDestination.prototype.send = function (ctx, clz, eventType) {
287
+ var _a, _b;
288
+ return __awaiter(this, void 0, void 0, function () {
289
+ var plan, ev, planEvent, afterMiddleware, event, err_1;
290
+ return __generator(this, function (_c) {
291
+ switch (_c.label) {
292
+ case 0:
293
+ if (this.shouldBuffer(ctx)) {
294
+ this.buffer.push(ctx);
295
+ this.scheduleFlush();
296
+ return [2 /*return*/, ctx];
297
+ }
298
+ plan = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.plan) === null || _b === void 0 ? void 0 : _b.track;
299
+ ev = ctx.event.event;
300
+ if (plan && ev && this.name !== 'Segment.io') {
301
+ planEvent = plan[ev];
302
+ if (!isPlanEventEnabled(plan, planEvent)) {
303
+ ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), { All: false, 'Segment.io': true }));
304
+ ctx.cancel(new ContextCancelation({
305
+ retry: false,
306
+ reason: "Event ".concat(ev, " disabled for integration ").concat(this.name, " in tracking plan"),
307
+ type: 'Dropped by plan',
308
+ }));
309
+ }
310
+ else {
311
+ ctx.updateEvent('integrations', __assign(__assign({}, ctx.event.integrations), planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations));
312
+ }
313
+ if ((planEvent === null || planEvent === void 0 ? void 0 : planEvent.enabled) && (planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations[this.name]) === false) {
314
+ ctx.cancel(new ContextCancelation({
315
+ retry: false,
316
+ reason: "Event ".concat(ev, " disabled for integration ").concat(this.name, " in tracking plan"),
317
+ type: 'Dropped by plan',
318
+ }));
319
+ }
320
+ }
321
+ return [4 /*yield*/, applyDestinationMiddleware(this.name, ctx.event, this.middleware)];
322
+ case 1:
323
+ afterMiddleware = _c.sent();
324
+ if (afterMiddleware === null) {
325
+ return [2 /*return*/, ctx];
326
+ }
327
+ event = new clz(afterMiddleware, {
328
+ traverse: !this.disableAutoISOConversion,
329
+ });
330
+ recordIntegrationMetric(ctx, {
331
+ integrationName: this.name,
332
+ methodName: eventType,
333
+ type: 'classic',
334
+ });
335
+ _c.label = 2;
336
+ case 2:
337
+ _c.trys.push([2, 5, , 6]);
338
+ if (!this.integration) return [3 /*break*/, 4];
339
+ return [4 /*yield*/, this.integration.invoke.call(this.integration, eventType, event)];
340
+ case 3:
341
+ _c.sent();
342
+ _c.label = 4;
343
+ case 4: return [3 /*break*/, 6];
344
+ case 5:
345
+ err_1 = _c.sent();
346
+ recordIntegrationMetric(ctx, {
347
+ integrationName: this.name,
348
+ methodName: eventType,
349
+ type: 'classic',
350
+ didError: true,
351
+ });
352
+ throw err_1;
353
+ case 6: return [2 /*return*/, ctx];
354
+ }
355
+ });
356
+ });
357
+ };
358
+ LegacyDestination.prototype.track = function (ctx) {
359
+ return __awaiter(this, void 0, void 0, function () {
360
+ return __generator(this, function (_a) {
361
+ return [2 /*return*/, this.send(ctx, distExports.Track, 'track')];
362
+ });
363
+ });
364
+ };
365
+ LegacyDestination.prototype.page = function (ctx) {
366
+ var _a;
367
+ return __awaiter(this, void 0, void 0, function () {
368
+ return __generator(this, function (_b) {
369
+ switch (_b.label) {
370
+ case 0:
371
+ if (((_a = this.integration) === null || _a === void 0 ? void 0 : _a._assumesPageview) && !this._initialized) {
372
+ this.integration.initialize();
373
+ }
374
+ return [4 /*yield*/, this.initializePromise.promise];
375
+ case 1:
376
+ _b.sent();
377
+ return [2 /*return*/, this.send(ctx, distExports.Page, 'page')];
378
+ }
379
+ });
380
+ });
381
+ };
382
+ LegacyDestination.prototype.identify = function (ctx) {
383
+ return __awaiter(this, void 0, void 0, function () {
384
+ return __generator(this, function (_a) {
385
+ return [2 /*return*/, this.send(ctx, distExports.Identify, 'identify')];
386
+ });
387
+ });
388
+ };
389
+ LegacyDestination.prototype.alias = function (ctx) {
390
+ return __awaiter(this, void 0, void 0, function () {
391
+ return __generator(this, function (_a) {
392
+ return [2 /*return*/, this.send(ctx, distExports.Alias, 'alias')];
393
+ });
394
+ });
395
+ };
396
+ LegacyDestination.prototype.group = function (ctx) {
397
+ return __awaiter(this, void 0, void 0, function () {
398
+ return __generator(this, function (_a) {
399
+ return [2 /*return*/, this.send(ctx, distExports.Group, 'group')];
400
+ });
401
+ });
402
+ };
403
+ LegacyDestination.prototype.scheduleFlush = function () {
404
+ var _this = this;
405
+ if (this.flushing) {
406
+ return;
407
+ }
408
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
409
+ setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
410
+ var _a;
411
+ return __generator(this, function (_b) {
412
+ switch (_b.label) {
413
+ case 0:
414
+ if (isOffline() || this._ready !== true || this._initialized !== true) {
415
+ this.scheduleFlush();
416
+ return [2 /*return*/];
417
+ }
418
+ this.flushing = true;
419
+ _a = this;
420
+ return [4 /*yield*/, flushQueue(this, this.buffer)];
421
+ case 1:
422
+ _a.buffer = _b.sent();
423
+ this.flushing = false;
424
+ if (this.buffer.todo > 0) {
425
+ this.scheduleFlush();
426
+ }
427
+ return [2 /*return*/];
428
+ }
429
+ });
430
+ }); }, Math.random() * 5000);
431
+ };
432
+ return LegacyDestination;
433
+ }());
434
+ function ajsDestinations(writeKey, settings, integrations, options, routingMiddleware, legacyIntegrationSources) {
435
+ var _a, _b;
436
+ if (integrations === void 0) { integrations = {}; }
437
+ if (options === void 0) { options = {}; }
438
+ if (isServer()) {
439
+ return [];
440
+ }
441
+ if (settings.plan) {
442
+ options = options !== null && options !== void 0 ? options : {};
443
+ options.plan = settings.plan;
444
+ }
445
+ var routingRules = (_b = (_a = settings.middlewareSettings) === null || _a === void 0 ? void 0 : _a.routingRules) !== null && _b !== void 0 ? _b : [];
446
+ var remoteIntegrationsConfig = settings.integrations;
447
+ var localIntegrationsConfig = options.integrations;
448
+ // merged remote CDN settings with user provided options
449
+ var integrationOptions = mergedOptions(settings, options !== null && options !== void 0 ? options : {});
450
+ var adhocIntegrationSources = legacyIntegrationSources === null || legacyIntegrationSources === void 0 ? void 0 : legacyIntegrationSources.reduce(function (acc, integrationSource) {
451
+ var _a;
452
+ return (__assign(__assign({}, acc), (_a = {}, _a[resolveIntegrationNameFromSource(integrationSource)] = integrationSource, _a)));
453
+ }, {});
454
+ var installableIntegrations = new Set(__spreadArray(__spreadArray([], Object.keys(remoteIntegrationsConfig).filter(function (name) {
455
+ return isInstallableIntegration(name, remoteIntegrationsConfig[name]);
456
+ }), true), Object.keys(adhocIntegrationSources || {}).filter(function (name) {
457
+ return isPlainObject(remoteIntegrationsConfig[name]) ||
458
+ isPlainObject(localIntegrationsConfig === null || localIntegrationsConfig === void 0 ? void 0 : localIntegrationsConfig[name]);
459
+ }), true));
460
+ return Array.from(installableIntegrations)
461
+ .filter(function (name) { return !isDisabledIntegration(name, integrations); })
462
+ .map(function (name) {
463
+ var integrationSettings = remoteIntegrationsConfig[name];
464
+ var version = resolveVersion(integrationSettings);
465
+ var destination = new LegacyDestination(name, version, writeKey, integrationOptions[name], options, adhocIntegrationSources === null || adhocIntegrationSources === void 0 ? void 0 : adhocIntegrationSources[name]);
466
+ var routing = routingRules.filter(function (rule) { return rule.destinationName === name; });
467
+ if (routing.length > 0 && routingMiddleware) {
468
+ destination.addMiddleware(routingMiddleware);
469
+ }
470
+ return destination;
471
+ });
472
+ }
473
+
474
+ export { LegacyDestination, ajsDestinations };
@@ -1,17 +1,17 @@
1
- import { a as jsx, G as Global, e as css, g as __makeTemplateObject, _ as __assign, c as __read, s as isMobile, p as featheryWindow, t as featheryDoc, u as useBorder, j as jsxs$1, h as hoverStylesGuard, r as resetStyles, k as __rest, au as formatDateString } from './fthry_index._5bwnWsa.js';
1
+ import { a as jsx, G as Global, e as css, g as __makeTemplateObject, _ as __assign, c as __read, s as isMobile, p as featheryWindow, t as featheryDoc, u as useBorder, j as jsxs$1, h as hoverStylesGuard, r as resetStyles, k as __rest, av as formatDateString } from './fthry_index.BoXwpo3p.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
4
- import { P as Placeholder } from './fthry_Placeholder.BH2h6ybj.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.bROBNZ_Z.js';
4
+ import { P as Placeholder } from './fthry_Placeholder.DXrZi2ze.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.DAaWNMEQ.js';
6
6
  import { c as clsx } from './fthry_clsx.ChV9xqsO.js';
7
7
  import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
8
8
  import * as ReactDOM from 'react-dom';
9
9
  import ReactDOM__default from 'react-dom';
10
- import { a as IMask, I as IMaskInput } from './fthry_input.DNaXMuMS.js';
10
+ import { a as IMask, I as IMaskInput } from './fthry_input.Y2HVhQeo.js';
11
11
  import 'react-dom/client';
12
12
  import 'jszip';
13
- import './fthry_Overlay.c1qlB9ct.js';
14
- import './fthry_index.CrDUdmXr.js';
13
+ import './fthry_Overlay.C500WG6U.js';
14
+ import './fthry_index.DA5HHbVe.js';
15
15
 
16
16
  var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
17
17
  var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';