@sonordev/site-kit 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-manifest.json +1 -1
- package/dist/AnalyticsProvider-A3STXJ65.js +29 -0
- package/dist/{AnalyticsProvider-WK2Z6AIN.js.map → AnalyticsProvider-A3STXJ65.js.map} +1 -1
- package/dist/AnalyticsProvider-LEXGFM2K.mjs +8 -0
- package/dist/{AnalyticsProvider-CD635CHQ.mjs.map → AnalyticsProvider-LEXGFM2K.mjs.map} +1 -1
- package/dist/ChatWidget-4QR2ZDRE.mjs +8 -0
- package/dist/{ChatWidget-UAAWDBNS.mjs.map → ChatWidget-4QR2ZDRE.mjs.map} +1 -1
- package/dist/ChatWidget-U3K2VHVN.js +17 -0
- package/dist/{ChatWidget-AIOOZY6H.js.map → ChatWidget-U3K2VHVN.js.map} +1 -1
- package/dist/EngageWidget-2FMKYJJT.mjs +7 -0
- package/dist/{EngageWidget-EZ5T6H3K.mjs.map → EngageWidget-2FMKYJJT.mjs.map} +1 -1
- package/dist/EngageWidget-TOGMQ2G6.js +16 -0
- package/dist/{EngageWidget-RWVWW56C.js.map → EngageWidget-TOGMQ2G6.js.map} +1 -1
- package/dist/{SignalCore-4B4RNYLV.mjs → SignalCore-5QJG3IJB.mjs} +4 -4
- package/dist/{SignalCore-4B4RNYLV.mjs.map → SignalCore-5QJG3IJB.mjs.map} +1 -1
- package/dist/{SignalCore-AECW2JFP.js → SignalCore-JB3VHHTG.js} +8 -8
- package/dist/{SignalCore-AECW2JFP.js.map → SignalCore-JB3VHHTG.js.map} +1 -1
- package/dist/SitemapSync-BJWSTERT.js +15 -0
- package/dist/{SitemapSync-AICU4SSV.js.map → SitemapSync-BJWSTERT.js.map} +1 -1
- package/dist/SitemapSync-T6PIDW64.mjs +6 -0
- package/dist/{SitemapSync-CIZCAZXK.mjs.map → SitemapSync-T6PIDW64.mjs.map} +1 -1
- package/dist/analytics/index.js +11 -11
- package/dist/analytics/index.mjs +4 -4
- package/dist/brand.css +13 -3
- package/dist/{chunk-GCDVKOSM.js → chunk-52VXHSVT.js} +3 -3
- package/dist/{chunk-GCDVKOSM.js.map → chunk-52VXHSVT.js.map} +1 -1
- package/dist/{chunk-I2GTT2DG.js → chunk-5RX4CUR2.js} +19 -21
- package/dist/chunk-5RX4CUR2.js.map +1 -0
- package/dist/{chunk-OTY7EWET.mjs → chunk-5ZNKNNJ4.mjs} +4 -4
- package/dist/{chunk-OTY7EWET.mjs.map → chunk-5ZNKNNJ4.mjs.map} +1 -1
- package/dist/{chunk-RFIWVH3D.mjs → chunk-7OK6BI3A.mjs} +3 -3
- package/dist/{chunk-RFIWVH3D.mjs.map → chunk-7OK6BI3A.mjs.map} +1 -1
- package/dist/{chunk-N2HR2E4Z.mjs → chunk-7R7SGJG3.mjs} +15 -21
- package/dist/chunk-7R7SGJG3.mjs.map +1 -0
- package/dist/{chunk-FMZOZQBV.mjs → chunk-AMBTOIYM.mjs} +19 -21
- package/dist/chunk-AMBTOIYM.mjs.map +1 -0
- package/dist/{chunk-5OWZUNNE.js → chunk-B5YNHSRA.js} +7 -7
- package/dist/{chunk-5OWZUNNE.js.map → chunk-B5YNHSRA.js.map} +1 -1
- package/dist/{chunk-S3YQGTBF.js → chunk-BNBCSHTK.js} +12 -12
- package/dist/{chunk-S3YQGTBF.js.map → chunk-BNBCSHTK.js.map} +1 -1
- package/dist/{chunk-45QHDA7Q.mjs → chunk-BUCF5FUY.mjs} +3 -3
- package/dist/{chunk-45QHDA7Q.mjs.map → chunk-BUCF5FUY.mjs.map} +1 -1
- package/dist/{chunk-TE3W5REY.js → chunk-DCZUMCEC.js} +14 -14
- package/dist/{chunk-TE3W5REY.js.map → chunk-DCZUMCEC.js.map} +1 -1
- package/dist/{chunk-6HPNFWSC.mjs → chunk-DYCEEU67.mjs} +3 -3
- package/dist/{chunk-6HPNFWSC.mjs.map → chunk-DYCEEU67.mjs.map} +1 -1
- package/dist/{chunk-NDHFU4HV.mjs → chunk-E4TWVVSW.mjs} +4 -4
- package/dist/{chunk-NDHFU4HV.mjs.map → chunk-E4TWVVSW.mjs.map} +1 -1
- package/dist/{chunk-NAVDN4AE.js → chunk-E7M5MDGC.js} +29 -40
- package/dist/chunk-E7M5MDGC.js.map +1 -0
- package/dist/{chunk-2WYEJOGA.mjs → chunk-GMO6POZ2.mjs} +3 -3
- package/dist/{chunk-2WYEJOGA.mjs.map → chunk-GMO6POZ2.mjs.map} +1 -1
- package/dist/{chunk-EAASMIWX.js → chunk-GMSPDTEV.js} +15 -9
- package/dist/chunk-GMSPDTEV.js.map +1 -0
- package/dist/{chunk-T2DEEKVQ.mjs → chunk-IR5UC236.mjs} +3 -3
- package/dist/{chunk-T2DEEKVQ.mjs.map → chunk-IR5UC236.mjs.map} +1 -1
- package/dist/{chunk-HAZN43I6.js → chunk-LF3ID6WN.js} +20 -26
- package/dist/chunk-LF3ID6WN.js.map +1 -0
- package/dist/{chunk-57QV6NIY.mjs → chunk-MKZHVSKL.mjs} +3 -3
- package/dist/{chunk-57QV6NIY.mjs.map → chunk-MKZHVSKL.mjs.map} +1 -1
- package/dist/{chunk-SLWTG2LJ.js → chunk-MX6DK246.js} +13 -13
- package/dist/{chunk-SLWTG2LJ.js.map → chunk-MX6DK246.js.map} +1 -1
- package/dist/{chunk-R5A64DCX.js → chunk-MYAXI33P.js} +8 -8
- package/dist/{chunk-R5A64DCX.js.map → chunk-MYAXI33P.js.map} +1 -1
- package/dist/{chunk-4NTMIU6V.js → chunk-NDROQRDB.js} +6 -6
- package/dist/{chunk-4NTMIU6V.js.map → chunk-NDROQRDB.js.map} +1 -1
- package/dist/{chunk-4FBV5BJW.js → chunk-NJIHMZPC.js} +5 -5
- package/dist/{chunk-4FBV5BJW.js.map → chunk-NJIHMZPC.js.map} +1 -1
- package/dist/{chunk-DSRPKUQI.mjs → chunk-NQ2P7AB3.mjs} +28 -39
- package/dist/chunk-NQ2P7AB3.mjs.map +1 -0
- package/dist/chunk-QLM7RNQI.mjs +6 -0
- package/dist/{chunk-SN2O72UF.mjs.map → chunk-QLM7RNQI.mjs.map} +1 -1
- package/dist/{chunk-LZSCCJ4O.mjs → chunk-SBT4J733.mjs} +11 -5
- package/dist/chunk-SBT4J733.mjs.map +1 -0
- package/dist/{chunk-UT2CF4FC.js → chunk-SGPIGHMN.js} +4 -4
- package/dist/{chunk-UT2CF4FC.js.map → chunk-SGPIGHMN.js.map} +1 -1
- package/dist/{chunk-GN62H6EG.mjs → chunk-VTHCUHMK.mjs} +8 -8
- package/dist/{chunk-GN62H6EG.mjs.map → chunk-VTHCUHMK.mjs.map} +1 -1
- package/dist/chunk-WAAFJPNR.js +8 -0
- package/dist/{chunk-WRZQS7O4.js.map → chunk-WAAFJPNR.js.map} +1 -1
- package/dist/{chunk-EIWRPGOK.mjs → chunk-XHEXIYKY.mjs} +4 -4
- package/dist/{chunk-EIWRPGOK.mjs.map → chunk-XHEXIYKY.mjs.map} +1 -1
- package/dist/{chunk-TVCCZ7NR.js → chunk-XM67L4HL.js} +14 -14
- package/dist/{chunk-TVCCZ7NR.js.map → chunk-XM67L4HL.js.map} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/commerce/index.js +50 -50
- package/dist/commerce/index.mjs +5 -5
- package/dist/engage/index.js +8 -8
- package/dist/engage/index.mjs +5 -5
- package/dist/fleet/index.js +7 -7
- package/dist/fleet/index.mjs +3 -3
- package/dist/forms/index.js +18 -18
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +10 -10
- package/dist/forms/index.mjs.map +1 -1
- package/dist/forms/styles.css +4 -2
- package/dist/images/index.js +10 -10
- package/dist/images/index.mjs +3 -3
- package/dist/index.js +67 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -15
- package/dist/index.mjs.map +1 -1
- package/dist/layout/client.js +6 -6
- package/dist/layout/client.mjs +5 -5
- package/dist/layout/index.js +7 -7
- package/dist/layout/index.mjs +5 -5
- package/dist/maps/index.d.mts +4 -2
- package/dist/maps/index.d.ts +4 -2
- package/dist/maps/index.js +4 -4
- package/dist/maps/index.js.map +1 -1
- package/dist/maps/index.mjs +2 -2
- package/dist/maps/index.mjs.map +1 -1
- package/dist/seo/client.js +4 -4
- package/dist/seo/client.mjs +3 -3
- package/dist/seo/index.js +4 -4
- package/dist/seo/index.mjs +3 -3
- package/dist/signal/index.js +11 -11
- package/dist/signal/index.mjs +2 -2
- package/dist/sync/index.js +15 -13
- package/dist/sync/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/AnalyticsProvider-CD635CHQ.mjs +0 -8
- package/dist/AnalyticsProvider-WK2Z6AIN.js +0 -29
- package/dist/ChatWidget-AIOOZY6H.js +0 -17
- package/dist/ChatWidget-UAAWDBNS.mjs +0 -8
- package/dist/EngageWidget-EZ5T6H3K.mjs +0 -7
- package/dist/EngageWidget-RWVWW56C.js +0 -16
- package/dist/SitemapSync-AICU4SSV.js +0 -15
- package/dist/SitemapSync-CIZCAZXK.mjs +0 -6
- package/dist/chunk-DSRPKUQI.mjs.map +0 -1
- package/dist/chunk-EAASMIWX.js.map +0 -1
- package/dist/chunk-FMZOZQBV.mjs.map +0 -1
- package/dist/chunk-HAZN43I6.js.map +0 -1
- package/dist/chunk-I2GTT2DG.js.map +0 -1
- package/dist/chunk-LZSCCJ4O.mjs.map +0 -1
- package/dist/chunk-N2HR2E4Z.mjs.map +0 -1
- package/dist/chunk-NAVDN4AE.js.map +0 -1
- package/dist/chunk-SN2O72UF.mjs +0 -6
- package/dist/chunk-WRZQS7O4.js +0 -8
package/dist/engage/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var chunkE7M5MDGC_js = require('../chunk-E7M5MDGC.js');
|
|
5
|
+
var chunkNDROQRDB_js = require('../chunk-NDROQRDB.js');
|
|
6
|
+
require('../chunk-LF3ID6WN.js');
|
|
7
7
|
require('../chunk-V6NVBFEP.js');
|
|
8
8
|
require('../chunk-3BNFUMLL.js');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-GMSPDTEV.js');
|
|
10
|
+
require('../chunk-WAAFJPNR.js');
|
|
11
11
|
require('../chunk-ZSMWDLMK.js');
|
|
12
12
|
|
|
13
13
|
// src/engage/echo-config.ts
|
|
@@ -39,15 +39,15 @@ function getEchoWidgetProps(config = SONOR_PUBLIC_ECHO_DEFAULTS) {
|
|
|
39
39
|
|
|
40
40
|
Object.defineProperty(exports, "ChatWidget", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkE7M5MDGC_js.ChatWidget; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "DesignRenderer", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkNDROQRDB_js.DesignRenderer; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "EngageWidget", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkNDROQRDB_js.EngageWidget; }
|
|
51
51
|
});
|
|
52
52
|
exports.SONOR_PUBLIC_ECHO_DEFAULTS = SONOR_PUBLIC_ECHO_DEFAULTS;
|
|
53
53
|
exports.getEchoWidgetProps = getEchoWidgetProps;
|
package/dist/engage/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ChatWidget } from '../chunk-
|
|
3
|
-
export { DesignRenderer, EngageWidget } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { ChatWidget } from '../chunk-NQ2P7AB3.mjs';
|
|
3
|
+
export { DesignRenderer, EngageWidget } from '../chunk-5ZNKNNJ4.mjs';
|
|
4
|
+
import '../chunk-7R7SGJG3.mjs';
|
|
5
5
|
import '../chunk-X3S6KXAP.mjs';
|
|
6
6
|
import '../chunk-EE6SFAZP.mjs';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-SBT4J733.mjs';
|
|
8
|
+
import '../chunk-QLM7RNQI.mjs';
|
|
9
9
|
import '../chunk-4XPGGLVP.mjs';
|
|
10
10
|
|
|
11
11
|
// src/engage/echo-config.ts
|
package/dist/fleet/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkB5YNHSRA_js = require('../chunk-B5YNHSRA.js');
|
|
5
5
|
require('../chunk-HGNSJXWT.js');
|
|
6
6
|
var chunkQ2NBD54V_js = require('../chunk-Q2NBD54V.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-GMSPDTEV.js');
|
|
8
|
+
require('../chunk-WAAFJPNR.js');
|
|
9
9
|
require('../chunk-ZSMWDLMK.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "FLEET_HEARTBEAT_PATH", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkB5YNHSRA_js.FLEET_HEARTBEAT_PATH; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "FleetHeartbeat", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkB5YNHSRA_js.FleetHeartbeat; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "detectNextVersion", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkB5YNHSRA_js.detectNextVersion; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "sendFleetHeartbeat", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkB5YNHSRA_js.sendFleetHeartbeat; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "FLEET_CONTRACT_VERSION", {
|
|
30
30
|
enumerable: true,
|
package/dist/fleet/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-
|
|
2
|
+
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-E4TWVVSW.mjs';
|
|
3
3
|
import '../chunk-ZVBLXXNJ.mjs';
|
|
4
4
|
export { FLEET_CONTRACT_VERSION, FLEET_MODULES, FLEET_MODULES_MAX, FLEET_SITE_MAX_LENGTH, FLEET_VERSION_MAX_LENGTH, FLEET_VERSION_PATTERN, buildFleetHeartbeatPayload, isFleetModule, normalizeFleetModules, normalizeFleetSite, sanitizeFleetVersion } from '../chunk-ZPLN537Q.mjs';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-SBT4J733.mjs';
|
|
6
|
+
import '../chunk-QLM7RNQI.mjs';
|
|
7
7
|
import '../chunk-4XPGGLVP.mjs';
|
|
8
8
|
//# sourceMappingURL=index.mjs.map
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
package/dist/forms/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkLF3ID6WN_js = require('../chunk-LF3ID6WN.js');
|
|
5
5
|
var chunkV6NVBFEP_js = require('../chunk-V6NVBFEP.js');
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
6
|
+
var chunkGMSPDTEV_js = require('../chunk-GMSPDTEV.js');
|
|
7
|
+
require('../chunk-WAAFJPNR.js');
|
|
8
8
|
require('../chunk-ZSMWDLMK.js');
|
|
9
9
|
var React2 = require('react');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -42,7 +42,7 @@ async function apiRequest(method, path, body) {
|
|
|
42
42
|
const token = await getAuthToken();
|
|
43
43
|
headers["Authorization"] = `Bearer ${token}`;
|
|
44
44
|
}
|
|
45
|
-
const response = await
|
|
45
|
+
const response = await chunkGMSPDTEV_js.sonorFetch(`${baseUrl}${path}`, {
|
|
46
46
|
method,
|
|
47
47
|
headers,
|
|
48
48
|
body: body ? JSON.stringify(body) : void 0
|
|
@@ -610,7 +610,7 @@ function FormField({ field: field2, value, error, onChange, classPrefix = "sk-fo
|
|
|
610
610
|
width: "100%",
|
|
611
611
|
padding: "var(--sk-input-padding, 10px 12px)",
|
|
612
612
|
fontSize: "var(--sk-font-size, 16px)",
|
|
613
|
-
border: error ? "1px solid var(--sk-input-border-error, #
|
|
613
|
+
border: error ? "1px solid var(--sk-input-border-error, #dc2626)" : "1px solid var(--sk-input-border, #d1d5db)",
|
|
614
614
|
borderRadius: "var(--sk-input-radius, 6px)",
|
|
615
615
|
backgroundColor: "var(--sk-input-bg, #ffffff)",
|
|
616
616
|
outline: "none",
|
|
@@ -623,7 +623,7 @@ function FormField({ field: field2, value, error, onChange, classPrefix = "sk-fo
|
|
|
623
623
|
color: "var(--sk-label-color, inherit)"
|
|
624
624
|
};
|
|
625
625
|
const errorStyle = {
|
|
626
|
-
color: "var(--sk-error, #
|
|
626
|
+
color: "var(--sk-error, #dc2626)",
|
|
627
627
|
fontSize: 14,
|
|
628
628
|
marginTop: 4
|
|
629
629
|
};
|
|
@@ -646,7 +646,7 @@ function FormField({ field: field2, value, error, onChange, classPrefix = "sk-fo
|
|
|
646
646
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${classPrefix}__field ${classPrefix}__field--${field2.field_type}`, children: [
|
|
647
647
|
/* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: inputId, className: `${classPrefix}__label`, style: { ...labelStyle, ...hideLabel ? { position: "absolute", width: 1, height: 1, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0,0,0,0)", whiteSpace: "nowrap", border: 0 } : {} }, children: [
|
|
648
648
|
field2.label,
|
|
649
|
-
field2.is_required && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-error, #
|
|
649
|
+
field2.is_required && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-error, #dc2626)" }, children: " *" })
|
|
650
650
|
] }),
|
|
651
651
|
["text", "email", "phone", "tel", "number"].includes(field2.field_type) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
652
652
|
"input",
|
|
@@ -884,7 +884,7 @@ function FileUploadField({
|
|
|
884
884
|
fileName,
|
|
885
885
|
"\u2026"
|
|
886
886
|
] }),
|
|
887
|
-
status === "error" && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", style: { color: "var(--sk-error, #
|
|
887
|
+
status === "error" && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", style: { color: "var(--sk-error, #dc2626)", fontSize: 14, marginTop: 4 }, children: "Upload failed. Please choose the file again." })
|
|
888
888
|
] });
|
|
889
889
|
}
|
|
890
890
|
async function uploadFormFile(file) {
|
|
@@ -895,7 +895,7 @@ async function uploadFormFile(file) {
|
|
|
895
895
|
}
|
|
896
896
|
const body = new FormData();
|
|
897
897
|
body.append("file", file);
|
|
898
|
-
const response = await
|
|
898
|
+
const response = await chunkGMSPDTEV_js.sonorFetch(
|
|
899
899
|
`${apiUrl}/api/public/forms/upload`,
|
|
900
900
|
{
|
|
901
901
|
method: "POST",
|
|
@@ -930,7 +930,7 @@ function FormClient({
|
|
|
930
930
|
const honeypotFieldName = config2.honeypot_field || chunkV6NVBFEP_js.DEFAULT_HONEYPOT_FIELD;
|
|
931
931
|
const formLoadedAt = React2.useRef(Date.now());
|
|
932
932
|
const isSubmittingRef = React2.useRef(false);
|
|
933
|
-
const { trackStepChange, trackComplete } =
|
|
933
|
+
const { trackStepChange, trackComplete } = chunkLF3ID6WN_js.useFormTracking({
|
|
934
934
|
formId: config2.id,
|
|
935
935
|
totalSteps: config2.total_steps
|
|
936
936
|
});
|
|
@@ -1089,7 +1089,7 @@ function FormClient({
|
|
|
1089
1089
|
setIsSubmitting(true);
|
|
1090
1090
|
setSubmitError(null);
|
|
1091
1091
|
try {
|
|
1092
|
-
const data = await
|
|
1092
|
+
const data = await chunkLF3ID6WN_js.submitForm({
|
|
1093
1093
|
config: config2,
|
|
1094
1094
|
values: buildVisibleValues(),
|
|
1095
1095
|
honeypotValue: config2.honeypot_enabled ? honeypotValue : "",
|
|
@@ -1131,7 +1131,7 @@ function FormClient({
|
|
|
1131
1131
|
};
|
|
1132
1132
|
if (isComplete) {
|
|
1133
1133
|
const raw = config2.success_message;
|
|
1134
|
-
const message = typeof raw === "string" && raw.trim().length > 0 ? raw.trim() :
|
|
1134
|
+
const message = typeof raw === "string" && raw.trim().length > 0 ? raw.trim() : chunkLF3ID6WN_js.DEFAULT_FORM_SUCCESS_MESSAGE;
|
|
1135
1135
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
@@ -1212,7 +1212,7 @@ function FormClient({
|
|
|
1212
1212
|
{
|
|
1213
1213
|
className: "sk-form__submit-error",
|
|
1214
1214
|
role: "alert",
|
|
1215
|
-
style: { color: "var(--sk-error, #
|
|
1215
|
+
style: { color: "var(--sk-error, #dc2626)", fontSize: 14, marginTop: 12 },
|
|
1216
1216
|
children: submitError
|
|
1217
1217
|
}
|
|
1218
1218
|
),
|
|
@@ -1255,7 +1255,7 @@ function ManagedForm({
|
|
|
1255
1255
|
form,
|
|
1256
1256
|
isLoading,
|
|
1257
1257
|
fetchError
|
|
1258
|
-
} =
|
|
1258
|
+
} = chunkLF3ID6WN_js.useForm(formId, {
|
|
1259
1259
|
projectId,
|
|
1260
1260
|
onSuccess,
|
|
1261
1261
|
onError
|
|
@@ -1264,7 +1264,7 @@ function ManagedForm({
|
|
|
1264
1264
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "#6b7280" }, children: "Loading form..." }) });
|
|
1265
1265
|
}
|
|
1266
1266
|
if (fetchError || !form) {
|
|
1267
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "#
|
|
1267
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-error, #dc2626)" }, children: fetchError?.message || "Form not found or inactive." }) });
|
|
1268
1268
|
}
|
|
1269
1269
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1270
1270
|
FormClient,
|
|
@@ -1280,15 +1280,15 @@ function ManagedForm({
|
|
|
1280
1280
|
|
|
1281
1281
|
Object.defineProperty(exports, "DEFAULT_FORM_SUCCESS_MESSAGE", {
|
|
1282
1282
|
enumerable: true,
|
|
1283
|
-
get: function () { return
|
|
1283
|
+
get: function () { return chunkLF3ID6WN_js.DEFAULT_FORM_SUCCESS_MESSAGE; }
|
|
1284
1284
|
});
|
|
1285
1285
|
Object.defineProperty(exports, "useForm", {
|
|
1286
1286
|
enumerable: true,
|
|
1287
|
-
get: function () { return
|
|
1287
|
+
get: function () { return chunkLF3ID6WN_js.useForm; }
|
|
1288
1288
|
});
|
|
1289
1289
|
Object.defineProperty(exports, "useFormTracking", {
|
|
1290
1290
|
enumerable: true,
|
|
1291
|
-
get: function () { return
|
|
1291
|
+
get: function () { return chunkLF3ID6WN_js.useFormTracking; }
|
|
1292
1292
|
});
|
|
1293
1293
|
exports.DatePicker = DatePicker;
|
|
1294
1294
|
exports.FormClient = FormClient;
|