@embedreach/components 0.1.94 → 0.1.95
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/dist/chunks/B4MFY5CR.js +101 -9
- package/dist/chunks/index.js +180 -89
- package/dist/index.umd.js +115 -115
- package/package.json +2 -2
package/dist/chunks/index.js
CHANGED
|
@@ -2894,7 +2894,7 @@ function createResource$1(pSource, pFetcher, pOptions) {
|
|
|
2894
2894
|
let source;
|
|
2895
2895
|
let fetcher;
|
|
2896
2896
|
let options;
|
|
2897
|
-
if (arguments.length === 1) {
|
|
2897
|
+
if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
|
|
2898
2898
|
source = true;
|
|
2899
2899
|
fetcher = pSource;
|
|
2900
2900
|
options = {};
|
|
@@ -2944,7 +2944,19 @@ function createResource$1(pSource, pFetcher, pOptions) {
|
|
|
2944
2944
|
const c2 = SuspenseContext, v2 = value(), err = error2();
|
|
2945
2945
|
if (err !== void 0 && !pr)
|
|
2946
2946
|
throw err;
|
|
2947
|
-
if (Listener && !Listener.user && c2)
|
|
2947
|
+
if (Listener && !Listener.user && c2) {
|
|
2948
|
+
createComputed(() => {
|
|
2949
|
+
track();
|
|
2950
|
+
if (pr) {
|
|
2951
|
+
if (c2.resolved)
|
|
2952
|
+
;
|
|
2953
|
+
else if (!contexts.has(c2)) {
|
|
2954
|
+
c2.increment();
|
|
2955
|
+
contexts.add(c2);
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2948
2960
|
return v2;
|
|
2949
2961
|
}
|
|
2950
2962
|
function load(refetching = true) {
|
|
@@ -6488,6 +6500,9 @@ const { commonBasicLogger: ye$1 } = ne;
|
|
|
6488
6500
|
function we$1(e4) {
|
|
6489
6501
|
return "string" == typeof e4 && "kind" !== e4 && e4.match(/^(\w|\.|-)+$/);
|
|
6490
6502
|
}
|
|
6503
|
+
function be$1(e4) {
|
|
6504
|
+
return e4.includes("%") || e4.includes(":") ? e4.replace(/%/g, "%25").replace(/:/g, "%3A") : e4;
|
|
6505
|
+
}
|
|
6491
6506
|
var ke$1 = { checkContext: function(e4, t3) {
|
|
6492
6507
|
if (e4) {
|
|
6493
6508
|
if (t3 && (void 0 === e4.kind || null === e4.kind)) return void 0 !== e4.key && null !== e4.key;
|
|
@@ -6526,6 +6541,12 @@ var ke$1 = { checkContext: function(e4, t3) {
|
|
|
6526
6541
|
return n2;
|
|
6527
6542
|
}, getContextKinds: function(e4) {
|
|
6528
6543
|
return e4 ? null === e4.kind || void 0 === e4.kind ? ["user"] : "multi" !== e4.kind ? [e4.kind] : Object.keys(e4).filter((e5) => "kind" !== e5) : [];
|
|
6544
|
+
}, getCanonicalKey: function(e4) {
|
|
6545
|
+
if (e4) {
|
|
6546
|
+
if ((void 0 === e4.kind || null === e4.kind || "user" === e4.kind) && e4.key) return e4.key;
|
|
6547
|
+
if ("multi" !== e4.kind && e4.key) return `${e4.kind}:${be$1(e4.key)}`;
|
|
6548
|
+
if ("multi" === e4.kind) return Object.keys(e4).sort().filter((e5) => "kind" !== e5).map((t3) => `${t3}:${be$1(e4[t3].key)}`).join(":");
|
|
6549
|
+
}
|
|
6529
6550
|
} };
|
|
6530
6551
|
const { getContextKinds: Ee$1 } = ke$1;
|
|
6531
6552
|
var De$1 = function() {
|
|
@@ -7001,7 +7022,7 @@ var dt = function(e4, t3) {
|
|
|
7001
7022
|
}, 1e3 * e4);
|
|
7002
7023
|
});
|
|
7003
7024
|
};
|
|
7004
|
-
const { commonBasicLogger: ft } = ne, { checkContext: gt } = ke$1, { InspectorTypes: pt, InspectorManager: mt } = ut, ht = "change", yt = "internal-change";
|
|
7025
|
+
const { commonBasicLogger: ft } = ne, { checkContext: gt, getContextKeys: vt } = ke$1, { InspectorTypes: pt, InspectorManager: mt } = ut, ht = "change", yt = "internal-change";
|
|
7005
7026
|
var wt = { initialize: function(e4, t3, n2, r2, o2) {
|
|
7006
7027
|
const i3 = function() {
|
|
7007
7028
|
if (n2 && n2.logger) return n2.logger;
|
|
@@ -7213,14 +7234,14 @@ var wt = { initialize: function(e4, t3, n2, r2, o2) {
|
|
|
7213
7234
|
}, enqueueEvent: F2, getFlagsInternal: function() {
|
|
7214
7235
|
return P2;
|
|
7215
7236
|
}, getEnvironmentId: () => f2, internalChangeEventName: yt };
|
|
7216
|
-
}, errors: s3 }, bt = wt.initialize, kt = wt.errors;
|
|
7237
|
+
}, commonBasicLogger: ft, errors: s3, messages: ie, utils: S$1, getContextKeys: vt }, bt = wt.initialize, kt = wt.errors;
|
|
7217
7238
|
function Dt(e4, t3, n2) {
|
|
7218
7239
|
return (t3 = function(e5) {
|
|
7219
7240
|
var t4 = function(e6, t5) {
|
|
7220
7241
|
if ("object" != typeof e6 || !e6) return e6;
|
|
7221
7242
|
var n3 = e6[Symbol.toPrimitive];
|
|
7222
7243
|
if (void 0 !== n3) {
|
|
7223
|
-
var r2 = n3.call(e6, t5);
|
|
7244
|
+
var r2 = n3.call(e6, t5 || "default");
|
|
7224
7245
|
if ("object" != typeof r2) return r2;
|
|
7225
7246
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7226
7247
|
}
|
|
@@ -7446,6 +7467,7 @@ function getAugmentedNamespace(n2) {
|
|
|
7446
7467
|
});
|
|
7447
7468
|
return a4;
|
|
7448
7469
|
}
|
|
7470
|
+
var INFINITY = 1 / 0;
|
|
7449
7471
|
var symbolTag = "[object Symbol]";
|
|
7450
7472
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
7451
7473
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
@@ -7725,12 +7747,12 @@ function baseToString(value) {
|
|
|
7725
7747
|
return symbolToString ? symbolToString.call(value) : "";
|
|
7726
7748
|
}
|
|
7727
7749
|
var result = value + "";
|
|
7728
|
-
return result == "0" && 1 / value == -
|
|
7750
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
7729
7751
|
}
|
|
7730
7752
|
function castSlice(array, start, end) {
|
|
7731
7753
|
var length = array.length;
|
|
7732
7754
|
end = end === void 0 ? length : end;
|
|
7733
|
-
return
|
|
7755
|
+
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
7734
7756
|
}
|
|
7735
7757
|
function createCaseFirst(methodName) {
|
|
7736
7758
|
return function(string) {
|
|
@@ -13049,7 +13071,7 @@ const authListeners = [
|
|
|
13049
13071
|
}
|
|
13050
13072
|
}
|
|
13051
13073
|
];
|
|
13052
|
-
const { Provider: Provider$3 } = createDataContext(
|
|
13074
|
+
const { Context: Context$2, Provider: Provider$3 } = createDataContext(
|
|
13053
13075
|
authReducer,
|
|
13054
13076
|
{
|
|
13055
13077
|
handleReauth
|
|
@@ -17220,6 +17242,16 @@ instance.use(Browser).use(initReactI18next).init({
|
|
|
17220
17242
|
}
|
|
17221
17243
|
});
|
|
17222
17244
|
const defaultTranslations = {
|
|
17245
|
+
engage: {
|
|
17246
|
+
user: "User",
|
|
17247
|
+
user_other: "Users",
|
|
17248
|
+
automation: "Automation",
|
|
17249
|
+
automation_other: "Automations",
|
|
17250
|
+
segment: "Segment",
|
|
17251
|
+
segment_other: "Segments",
|
|
17252
|
+
one_time: "One Time",
|
|
17253
|
+
trigger_based: "Trigger Based"
|
|
17254
|
+
},
|
|
17223
17255
|
common: {
|
|
17224
17256
|
ad_spend: "Ad Spend",
|
|
17225
17257
|
date: "Date",
|
|
@@ -32829,6 +32861,9 @@ function safeExecuteInTheMiddle$2(execute, onFinish, preventThrowingError) {
|
|
|
32829
32861
|
error2 = e4;
|
|
32830
32862
|
} finally {
|
|
32831
32863
|
onFinish(error2, result);
|
|
32864
|
+
if (error2 && !preventThrowingError) {
|
|
32865
|
+
throw error2;
|
|
32866
|
+
}
|
|
32832
32867
|
return result;
|
|
32833
32868
|
}
|
|
32834
32869
|
}
|
|
@@ -33042,7 +33077,7 @@ var DocumentLoadInstrumentation = (
|
|
|
33042
33077
|
return;
|
|
33043
33078
|
}
|
|
33044
33079
|
_this._diag.error("addCustomAttributesOnSpan", error2);
|
|
33045
|
-
});
|
|
33080
|
+
}, true);
|
|
33046
33081
|
}
|
|
33047
33082
|
};
|
|
33048
33083
|
DocumentLoadInstrumentation2.prototype._addCustomAttributesOnResourceSpan = function(span, resource, applyCustomAttributesOnSpan) {
|
|
@@ -33055,7 +33090,7 @@ var DocumentLoadInstrumentation = (
|
|
|
33055
33090
|
return;
|
|
33056
33091
|
}
|
|
33057
33092
|
_this._diag.error("addCustomAttributesOnResourceSpan", error2);
|
|
33058
|
-
});
|
|
33093
|
+
}, true);
|
|
33059
33094
|
}
|
|
33060
33095
|
};
|
|
33061
33096
|
DocumentLoadInstrumentation2.prototype.enable = function() {
|
|
@@ -33417,6 +33452,9 @@ function safeExecuteInTheMiddle$1(execute, onFinish, preventThrowingError) {
|
|
|
33417
33452
|
error2 = e4;
|
|
33418
33453
|
} finally {
|
|
33419
33454
|
onFinish(error2, result);
|
|
33455
|
+
if (error2 && !preventThrowingError) {
|
|
33456
|
+
throw error2;
|
|
33457
|
+
}
|
|
33420
33458
|
return result;
|
|
33421
33459
|
}
|
|
33422
33460
|
}
|
|
@@ -34140,7 +34178,7 @@ var FetchInstrumentation = (
|
|
|
34140
34178
|
return;
|
|
34141
34179
|
}
|
|
34142
34180
|
_this._diag.error("applyCustomAttributesOnSpan", error2);
|
|
34143
|
-
});
|
|
34181
|
+
}, true);
|
|
34144
34182
|
}
|
|
34145
34183
|
};
|
|
34146
34184
|
FetchInstrumentation2.prototype._prepareSpanData = function(spanUrl) {
|
|
@@ -34963,6 +35001,9 @@ function safeExecuteInTheMiddle(execute, onFinish, preventThrowingError) {
|
|
|
34963
35001
|
error2 = e4;
|
|
34964
35002
|
} finally {
|
|
34965
35003
|
onFinish(error2, result);
|
|
35004
|
+
if (error2 && !preventThrowingError) {
|
|
35005
|
+
throw error2;
|
|
35006
|
+
}
|
|
34966
35007
|
return result;
|
|
34967
35008
|
}
|
|
34968
35009
|
}
|
|
@@ -35338,7 +35379,7 @@ var XMLHttpRequestInstrumentation = (
|
|
|
35338
35379
|
return;
|
|
35339
35380
|
}
|
|
35340
35381
|
_this._diag.error("applyCustomAttributesOnSpan", error2);
|
|
35341
|
-
});
|
|
35382
|
+
}, true);
|
|
35342
35383
|
}
|
|
35343
35384
|
};
|
|
35344
35385
|
XMLHttpRequestInstrumentation2.prototype._addResourceObserver = function(xhr, spanUrl) {
|
|
@@ -36025,7 +36066,7 @@ var count$5 = 0;
|
|
|
36025
36066
|
function useId$3(deterministicId) {
|
|
36026
36067
|
const [id2, setId] = React.useState(useReactId$2());
|
|
36027
36068
|
useLayoutEffect2$2(() => {
|
|
36028
|
-
setId((reactId) => reactId ?? String(count$5++));
|
|
36069
|
+
if (!deterministicId) setId((reactId) => reactId ?? String(count$5++));
|
|
36029
36070
|
}, [deterministicId]);
|
|
36030
36071
|
return deterministicId || (id2 ? `radix-${id2}` : "");
|
|
36031
36072
|
}
|
|
@@ -37238,9 +37279,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
37238
37279
|
!targetInLock && target !== document.body || // self content
|
|
37239
37280
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
37240
37281
|
);
|
|
37241
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
37282
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll)) {
|
|
37242
37283
|
shouldCancelScroll = true;
|
|
37243
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
37284
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) {
|
|
37244
37285
|
shouldCancelScroll = true;
|
|
37245
37286
|
}
|
|
37246
37287
|
return shouldCancelScroll;
|
|
@@ -37322,7 +37363,7 @@ function RemoveScrollSideCar(props) {
|
|
|
37322
37363
|
return true;
|
|
37323
37364
|
}
|
|
37324
37365
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
37325
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
37366
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
37326
37367
|
}, []);
|
|
37327
37368
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
37328
37369
|
var event = _event;
|
|
@@ -38163,6 +38204,7 @@ const progress = /* @__NO_SIDE_EFFECTS__ */ (from, to, value) => {
|
|
|
38163
38204
|
const secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e3;
|
|
38164
38205
|
const millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;
|
|
38165
38206
|
const MotionGlobalConfig = {
|
|
38207
|
+
skipAnimations: false,
|
|
38166
38208
|
useManualTiming: false
|
|
38167
38209
|
};
|
|
38168
38210
|
const stepsOrder = [
|
|
@@ -38180,7 +38222,8 @@ const stepsOrder = [
|
|
|
38180
38222
|
// Compute
|
|
38181
38223
|
];
|
|
38182
38224
|
const statsBuffer = {
|
|
38183
|
-
value: null
|
|
38225
|
+
value: null,
|
|
38226
|
+
addProjectionMetrics: null
|
|
38184
38227
|
};
|
|
38185
38228
|
function createRenderStep(runNextFrame, stepName) {
|
|
38186
38229
|
let thisFrame = /* @__PURE__ */ new Set();
|
|
@@ -38509,7 +38552,7 @@ function useMotionRef(visualState, visualElement, externalRef) {
|
|
|
38509
38552
|
const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
|
|
38510
38553
|
const optimizedAppearDataId = "framerAppearId";
|
|
38511
38554
|
const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
|
|
38512
|
-
const { schedule: microtask } = createRenderBatcher(queueMicrotask, false);
|
|
38555
|
+
const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
|
|
38513
38556
|
const SwitchLayoutGroupContext = createContext$1({});
|
|
38514
38557
|
function useVisualElement(Component2, visualState, props, createVisualElement, ProjectionNodeConstructor) {
|
|
38515
38558
|
var _a2, _b;
|
|
@@ -40904,7 +40947,7 @@ function findSpring({ duration = springDefaults.duration, bounce = springDefault
|
|
|
40904
40947
|
envelope = (undampedFreq2) => {
|
|
40905
40948
|
const a4 = Math.exp(-undampedFreq2 * duration);
|
|
40906
40949
|
const b3 = (undampedFreq2 - velocity) * duration + 1;
|
|
40907
|
-
return -
|
|
40950
|
+
return -safeMin + a4 * b3;
|
|
40908
40951
|
};
|
|
40909
40952
|
derivative = (undampedFreq2) => {
|
|
40910
40953
|
const a4 = Math.exp(-undampedFreq2 * duration);
|
|
@@ -45927,6 +45970,8 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
|
|
|
45927
45970
|
const styles$3 = {
|
|
45928
45971
|
title: "text-3xl mb-8",
|
|
45929
45972
|
grid: "grid grid-cols-2 gap-6",
|
|
45973
|
+
card: "relative p-6 rounded-lg border border-gray-200 cursor-pointer flex flex-col items-center text-center hover:border-indigo-500 transition-colors",
|
|
45974
|
+
cardDisabled: "opacity-60 cursor-not-allowed hover:border-gray-200",
|
|
45930
45975
|
container: "relative p-6 rounded-lg",
|
|
45931
45976
|
iconWrapper: "mb-4 flex items-center justify-center",
|
|
45932
45977
|
cardTitle: "text-lg font-medium mb-2",
|
|
@@ -47722,7 +47767,9 @@ async function loadRouteModule(route, routeModulesCache) {
|
|
|
47722
47767
|
);
|
|
47723
47768
|
console.error(error2);
|
|
47724
47769
|
if (window.__reactRouterContext && window.__reactRouterContext.isSpaMode && // @ts-expect-error
|
|
47725
|
-
void 0)
|
|
47770
|
+
void 0) {
|
|
47771
|
+
throw error2;
|
|
47772
|
+
}
|
|
47726
47773
|
window.location.reload();
|
|
47727
47774
|
return new Promise(() => {
|
|
47728
47775
|
});
|
|
@@ -53230,8 +53277,7 @@ const BrandSettingsModal = () => {
|
|
|
53230
53277
|
if (file) {
|
|
53231
53278
|
const reader = new FileReader();
|
|
53232
53279
|
reader.onloadend = async () => {
|
|
53233
|
-
const base64String = reader.result;
|
|
53234
|
-
setLogoUrl(base64String);
|
|
53280
|
+
const base64String = reader.result.split(",")[1];
|
|
53235
53281
|
updateBrandSettings({
|
|
53236
53282
|
logoBase64: base64String
|
|
53237
53283
|
});
|
|
@@ -54232,6 +54278,8 @@ const lightFormatters = {
|
|
|
54232
54278
|
}
|
|
54233
54279
|
};
|
|
54234
54280
|
const dayPeriodEnum$1 = {
|
|
54281
|
+
am: "am",
|
|
54282
|
+
pm: "pm",
|
|
54235
54283
|
midnight: "midnight",
|
|
54236
54284
|
noon: "noon",
|
|
54237
54285
|
morning: "morning",
|
|
@@ -55201,6 +55249,7 @@ const secondary$1 = "reach-styles-module__secondary___VQ4iH";
|
|
|
55201
55249
|
const destructive$1 = "reach-styles-module__destructive___RLaRD";
|
|
55202
55250
|
const outline$1 = "reach-styles-module__outline___L2VtW";
|
|
55203
55251
|
const google = "reach-styles-module__google___HcEij";
|
|
55252
|
+
const dark = "reach-styles-module__dark___729i-";
|
|
55204
55253
|
const date = "reach-styles-module__date___-6BC4";
|
|
55205
55254
|
const sizeDefault = "reach-styles-module__sizeDefault___iGTp4";
|
|
55206
55255
|
const sizeSm = "reach-styles-module__sizeSm___6T2oK";
|
|
@@ -55214,6 +55263,7 @@ const styles$2 = {
|
|
|
55214
55263
|
destructive: destructive$1,
|
|
55215
55264
|
outline: outline$1,
|
|
55216
55265
|
google,
|
|
55266
|
+
dark,
|
|
55217
55267
|
date,
|
|
55218
55268
|
sizeDefault,
|
|
55219
55269
|
sizeSm,
|
|
@@ -57657,6 +57707,8 @@ var formatters$2 = {
|
|
|
57657
57707
|
}
|
|
57658
57708
|
};
|
|
57659
57709
|
var dayPeriodEnum = {
|
|
57710
|
+
am: "am",
|
|
57711
|
+
pm: "pm",
|
|
57660
57712
|
midnight: "midnight",
|
|
57661
57713
|
noon: "noon",
|
|
57662
57714
|
morning: "morning",
|
|
@@ -61751,7 +61803,7 @@ function useId(deterministicId) {
|
|
|
61751
61803
|
useLayoutEffect2(() => {
|
|
61752
61804
|
setId((reactId) => reactId ?? String(count++));
|
|
61753
61805
|
}, [deterministicId]);
|
|
61754
|
-
return
|
|
61806
|
+
return id2 ? `radix-${id2}` : "";
|
|
61755
61807
|
}
|
|
61756
61808
|
var NAME$1 = "Arrow";
|
|
61757
61809
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
@@ -64776,7 +64828,8 @@ const initialState = {
|
|
|
64776
64828
|
isFetchingAutomation: false,
|
|
64777
64829
|
isUpdatingAutomation: false,
|
|
64778
64830
|
isFetchingCommunication: false,
|
|
64779
|
-
isUpdatingCommunication: false
|
|
64831
|
+
isUpdatingCommunication: false,
|
|
64832
|
+
openEditPopup: false
|
|
64780
64833
|
};
|
|
64781
64834
|
const automationReducer = (state, action) => {
|
|
64782
64835
|
switch (action.type) {
|
|
@@ -64835,6 +64888,11 @@ const automationReducer = (state, action) => {
|
|
|
64835
64888
|
...state,
|
|
64836
64889
|
recipientStats: action.payload
|
|
64837
64890
|
};
|
|
64891
|
+
case "SET_EDIT_POPUP":
|
|
64892
|
+
return {
|
|
64893
|
+
...state,
|
|
64894
|
+
openEditPopup: action.payload
|
|
64895
|
+
};
|
|
64838
64896
|
default:
|
|
64839
64897
|
return state;
|
|
64840
64898
|
}
|
|
@@ -64848,6 +64906,9 @@ const setCommunicationGroup = (dispatch2) => (group) => {
|
|
|
64848
64906
|
const setRecipientStats = (dispatch2) => (stats) => {
|
|
64849
64907
|
dispatch2({ type: "UPDATE_RECIPIENT_STATS", payload: stats });
|
|
64850
64908
|
};
|
|
64909
|
+
const setEditPopup = (dispatch2) => (isOpen) => {
|
|
64910
|
+
dispatch2({ type: "SET_EDIT_POPUP", payload: isOpen });
|
|
64911
|
+
};
|
|
64851
64912
|
const automationListeners = [
|
|
64852
64913
|
{
|
|
64853
64914
|
eventName: EVENT_AUTOMATION_UPDATE_START,
|
|
@@ -64879,7 +64940,8 @@ const { Context, Provider } = createDataContext(
|
|
|
64879
64940
|
{
|
|
64880
64941
|
setAutomation,
|
|
64881
64942
|
setCommunicationGroup,
|
|
64882
|
-
setRecipientStats
|
|
64943
|
+
setRecipientStats,
|
|
64944
|
+
setEditPopup
|
|
64883
64945
|
},
|
|
64884
64946
|
initialState,
|
|
64885
64947
|
automationListeners
|
|
@@ -65395,6 +65457,7 @@ const AutomationContent = ({
|
|
|
65395
65457
|
const [emailData, setEmailData] = useState(null);
|
|
65396
65458
|
const [smsData, setSmsData] = useState(null);
|
|
65397
65459
|
const [loading2, setLoading2] = useState(false);
|
|
65460
|
+
const { setEditPopup: setEditPopup2 } = useContext$1(Context);
|
|
65398
65461
|
const communicationGroup = useCommunicationGroup();
|
|
65399
65462
|
useEffect(() => {
|
|
65400
65463
|
if (!communicationGroup || !channelSenders) {
|
|
@@ -65457,8 +65520,19 @@ const AutomationContent = ({
|
|
|
65457
65520
|
)
|
|
65458
65521
|
}
|
|
65459
65522
|
) }),
|
|
65460
|
-
/* @__PURE__ */
|
|
65461
|
-
|
|
65523
|
+
/* @__PURE__ */ jsxs("h3", { className: "text-xl font-semibold text-gray-800 mb-2", children: [
|
|
65524
|
+
t("engage:automation"),
|
|
65525
|
+
" Content Missing"
|
|
65526
|
+
] }),
|
|
65527
|
+
/* @__PURE__ */ jsxs("p", { className: "text-gray-500 max-w-md pb-4", children: [
|
|
65528
|
+
"Complete your ",
|
|
65529
|
+
t("engage:automation"),
|
|
65530
|
+
" setup to preview the content here!"
|
|
65531
|
+
] }),
|
|
65532
|
+
/* @__PURE__ */ jsxs(Button$1, { onClick: () => setEditPopup2(true), children: [
|
|
65533
|
+
"Edit ",
|
|
65534
|
+
t("engage:automation")
|
|
65535
|
+
] })
|
|
65462
65536
|
] }) : /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
65463
65537
|
/* @__PURE__ */ jsx(
|
|
65464
65538
|
PreviewPanel,
|
|
@@ -67166,6 +67240,17 @@ const minusIconInactive = "reach-styles-module__minusIconInactive___JtvVB";
|
|
|
67166
67240
|
const label = "reach-styles-module__label___tiCMA";
|
|
67167
67241
|
const labelActive = "reach-styles-module__labelActive___EXydD";
|
|
67168
67242
|
const labelInactive = "reach-styles-module__labelInactive___g-J3r";
|
|
67243
|
+
const navigationContainer = "reach-styles-module__navigationContainer___1T1JL";
|
|
67244
|
+
const navigationButton = "reach-styles-module__navigationButton___9LW7I";
|
|
67245
|
+
const sidebarContainer = "reach-styles-module__sidebarContainer___Yqwnv";
|
|
67246
|
+
const sidebarNav = "reach-styles-module__sidebarNav___vGCaT";
|
|
67247
|
+
const stepItem = "reach-styles-module__stepItem___c497m";
|
|
67248
|
+
const stepItemActive = "reach-styles-module__stepItemActive___zQkts";
|
|
67249
|
+
const stepItemCompleted = "reach-styles-module__stepItemCompleted___TiD-u";
|
|
67250
|
+
const stepItemUpcoming = "reach-styles-module__stepItemUpcoming___Qu-vA";
|
|
67251
|
+
const contentContainer = "reach-styles-module__contentContainer___g6SCE";
|
|
67252
|
+
const contentArea = "reach-styles-module__contentArea___gczmB";
|
|
67253
|
+
const poweredByReachContainer = "reach-styles-module__poweredByReachContainer___GCwod";
|
|
67169
67254
|
const styles$1 = {
|
|
67170
67255
|
stepIndicatorContainer,
|
|
67171
67256
|
iconContainer,
|
|
@@ -67175,7 +67260,18 @@ const styles$1 = {
|
|
|
67175
67260
|
minusIconInactive,
|
|
67176
67261
|
label,
|
|
67177
67262
|
labelActive,
|
|
67178
|
-
labelInactive
|
|
67263
|
+
labelInactive,
|
|
67264
|
+
navigationContainer,
|
|
67265
|
+
navigationButton,
|
|
67266
|
+
sidebarContainer,
|
|
67267
|
+
sidebarNav,
|
|
67268
|
+
stepItem,
|
|
67269
|
+
stepItemActive,
|
|
67270
|
+
stepItemCompleted,
|
|
67271
|
+
stepItemUpcoming,
|
|
67272
|
+
contentContainer,
|
|
67273
|
+
contentArea,
|
|
67274
|
+
poweredByReachContainer
|
|
67179
67275
|
};
|
|
67180
67276
|
const StepIndicator = ({
|
|
67181
67277
|
label: label2,
|
|
@@ -68421,7 +68517,12 @@ const SMSPreview = ({ iconDefinitions, mergeFieldsResponse, smsChannelSenders })
|
|
|
68421
68517
|
}
|
|
68422
68518
|
if (!fromNumber) {
|
|
68423
68519
|
const smsChannelSenders2 = channelSenders.results.filter(
|
|
68424
|
-
(sender) =>
|
|
68520
|
+
(sender) => (
|
|
68521
|
+
/**
|
|
68522
|
+
* Either a from number or a message service sid
|
|
68523
|
+
*/
|
|
68524
|
+
sender.channelSenderMetadata.from || sender.channelSenderMetadata.messageServiceSid
|
|
68525
|
+
)
|
|
68425
68526
|
);
|
|
68426
68527
|
if (smsChannelSenders2?.[0]) {
|
|
68427
68528
|
setFromNumber(smsChannelSenders2[0].id);
|
|
@@ -70091,7 +70192,6 @@ const BackNextButtonGroup = ({
|
|
|
70091
70192
|
};
|
|
70092
70193
|
const EditAutomation = ({
|
|
70093
70194
|
iconDefinitions,
|
|
70094
|
-
setOpenEditAutomationPopup,
|
|
70095
70195
|
logoUrl,
|
|
70096
70196
|
getExtraMergeFields,
|
|
70097
70197
|
onBeforeSchedule
|
|
@@ -70101,6 +70201,7 @@ const EditAutomation = ({
|
|
|
70101
70201
|
const communicationGroup = useCommunicationGroup();
|
|
70102
70202
|
const estimatedMatchesStats = useValidationStats();
|
|
70103
70203
|
const { validateStep } = useValidateStep();
|
|
70204
|
+
const { setEditPopup: setEditPopup2 } = useContext$1(Context);
|
|
70104
70205
|
const [currentStep, setCurrentStep] = useState(
|
|
70105
70206
|
void 0
|
|
70106
70207
|
);
|
|
@@ -70127,7 +70228,7 @@ const EditAutomation = ({
|
|
|
70127
70228
|
updateAutomation2({
|
|
70128
70229
|
status: AutomationStatus.DRAFT
|
|
70129
70230
|
});
|
|
70130
|
-
|
|
70231
|
+
setEditPopup2(false);
|
|
70131
70232
|
toast2({
|
|
70132
70233
|
title: "Automation saved as draft",
|
|
70133
70234
|
description: "You can continue editing it later"
|
|
@@ -70151,7 +70252,7 @@ const EditAutomation = ({
|
|
|
70151
70252
|
updateAutomation2({
|
|
70152
70253
|
status: AutomationStatus.ACTIVE
|
|
70153
70254
|
});
|
|
70154
|
-
|
|
70255
|
+
setEditPopup2(false);
|
|
70155
70256
|
toast2({
|
|
70156
70257
|
title: "Automation scheduled!"
|
|
70157
70258
|
});
|
|
@@ -70171,7 +70272,7 @@ const EditAutomation = ({
|
|
|
70171
70272
|
}
|
|
70172
70273
|
} else {
|
|
70173
70274
|
updateAutomation2({ status: AutomationStatus.ACTIVE });
|
|
70174
|
-
|
|
70275
|
+
setEditPopup2(false);
|
|
70175
70276
|
toast2({
|
|
70176
70277
|
title: "Automation scheduled!"
|
|
70177
70278
|
});
|
|
@@ -70216,15 +70317,7 @@ const EditAutomation = ({
|
|
|
70216
70317
|
}
|
|
70217
70318
|
};
|
|
70218
70319
|
const renderHeader = () => /* @__PURE__ */ jsxs("header", { className: "w-full flex items-center gap-4 h-16 px-6", children: [
|
|
70219
|
-
/* @__PURE__ */ jsx(
|
|
70220
|
-
Button$1,
|
|
70221
|
-
{
|
|
70222
|
-
onClick: () => setOpenEditAutomationPopup(false),
|
|
70223
|
-
size: "icon",
|
|
70224
|
-
variant: "ghost",
|
|
70225
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-4 h-4" })
|
|
70226
|
-
}
|
|
70227
|
-
),
|
|
70320
|
+
/* @__PURE__ */ jsx(Button$1, { onClick: () => setEditPopup2(false), size: "icon", variant: "ghost", children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-4 h-4" }) }),
|
|
70228
70321
|
logoUrl && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx("img", { src: logoUrl, alt: "Logo", className: "w-6 h-6" }) }),
|
|
70229
70322
|
/* @__PURE__ */ jsx("h1", { className: "text-xl font-bold leading-none", children: automation2.name }),
|
|
70230
70323
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
@@ -70312,7 +70405,6 @@ const EditAutomationDialog = ({
|
|
|
70312
70405
|
open,
|
|
70313
70406
|
onOpenChange,
|
|
70314
70407
|
iconDefinitions,
|
|
70315
|
-
setOpenEditAutomationPopup,
|
|
70316
70408
|
logoUrl,
|
|
70317
70409
|
getExtraMergeFields,
|
|
70318
70410
|
onBeforeSchedule
|
|
@@ -70331,7 +70423,6 @@ const EditAutomationDialog = ({
|
|
|
70331
70423
|
EditAutomation,
|
|
70332
70424
|
{
|
|
70333
70425
|
iconDefinitions,
|
|
70334
|
-
setOpenEditAutomationPopup,
|
|
70335
70426
|
logoUrl,
|
|
70336
70427
|
getExtraMergeFields,
|
|
70337
70428
|
onBeforeSchedule
|
|
@@ -70553,7 +70644,8 @@ const ViewAutomationHeaderContainer = ({
|
|
|
70553
70644
|
showBackButton = false
|
|
70554
70645
|
}) => {
|
|
70555
70646
|
const mergedIconDefinitions = mergeIconDefinitions(iconDefinitions);
|
|
70556
|
-
const
|
|
70647
|
+
const { setEditPopup: setEditPopup2, state } = useContext$1(Context);
|
|
70648
|
+
const openEditPopup = state.openEditPopup;
|
|
70557
70649
|
const [openSendPreviewSmsPopup, setOpenSendPreviewSmsPopup] = useState(false);
|
|
70558
70650
|
const [openSendPreviewEmailPopup, setOpenSendPreviewEmailPopup] = useState(false);
|
|
70559
70651
|
const [
|
|
@@ -70571,16 +70663,16 @@ const ViewAutomationHeaderContainer = ({
|
|
|
70571
70663
|
const { toast: toast2 } = useToast();
|
|
70572
70664
|
useEffect(() => {
|
|
70573
70665
|
if (autoOpenEditPopup) {
|
|
70574
|
-
|
|
70666
|
+
setEditPopup2(true);
|
|
70575
70667
|
}
|
|
70576
|
-
}, [autoOpenEditPopup]);
|
|
70668
|
+
}, [autoOpenEditPopup, setEditPopup2]);
|
|
70577
70669
|
const handleEditDialogChange = (newValue) => {
|
|
70578
|
-
if (
|
|
70670
|
+
if (openEditPopup === true && newValue === false) {
|
|
70579
70671
|
setTimeout(() => {
|
|
70580
70672
|
invalidateAutomation();
|
|
70581
70673
|
}, 0);
|
|
70582
70674
|
}
|
|
70583
|
-
|
|
70675
|
+
setEditPopup2(newValue);
|
|
70584
70676
|
};
|
|
70585
70677
|
const handleCancelAutomation = () => {
|
|
70586
70678
|
updateAutomation2({
|
|
@@ -70646,7 +70738,7 @@ const ViewAutomationHeaderContainer = ({
|
|
|
70646
70738
|
/* @__PURE__ */ jsx(mergedIconDefinitions.DropdownMenuTrigger, { className: "ml-2 h-4 w-4" })
|
|
70647
70739
|
] }) }),
|
|
70648
70740
|
/* @__PURE__ */ jsxs(DropdownMenuContent, { children: [
|
|
70649
|
-
automation2.status === AutomationStatus.DRAFT && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () =>
|
|
70741
|
+
automation2.status === AutomationStatus.DRAFT && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () => setEditPopup2(true), children: "Edit" }),
|
|
70650
70742
|
automation2.status === AutomationStatus.ACTIVE && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: convertToDraft, children: "Convert to Draft" }),
|
|
70651
70743
|
automation2.status !== AutomationStatus.COMPLETED && automation2.status !== AutomationStatus.FAILED && automation2.status !== AutomationStatus.DEACTIVATED && // We can't cancel managed automations
|
|
70652
70744
|
automation2.automationType !== BusinessAutomationTypeEnum.MANAGED && /* @__PURE__ */ jsx(
|
|
@@ -70699,10 +70791,9 @@ const ViewAutomationHeaderContainer = ({
|
|
|
70699
70791
|
/* @__PURE__ */ jsx(
|
|
70700
70792
|
EditAutomationDialog,
|
|
70701
70793
|
{
|
|
70702
|
-
open:
|
|
70794
|
+
open: openEditPopup,
|
|
70703
70795
|
onOpenChange: handleEditDialogChange,
|
|
70704
70796
|
iconDefinitions: mergedIconDefinitions,
|
|
70705
|
-
setOpenEditAutomationPopup,
|
|
70706
70797
|
logoUrl,
|
|
70707
70798
|
getExtraMergeFields,
|
|
70708
70799
|
onBeforeSchedule
|
|
@@ -70831,28 +70922,28 @@ Object.values(
|
|
|
70831
70922
|
);
|
|
70832
70923
|
export {
|
|
70833
70924
|
$TRACK as $,
|
|
70834
|
-
|
|
70835
|
-
|
|
70836
|
-
|
|
70837
|
-
|
|
70838
|
-
|
|
70925
|
+
displayValue as A,
|
|
70926
|
+
batch as B,
|
|
70927
|
+
clearDelegatedEvents as C,
|
|
70928
|
+
Dynamic as D,
|
|
70929
|
+
untrack as E,
|
|
70839
70930
|
For as F,
|
|
70840
|
-
|
|
70841
|
-
|
|
70842
|
-
|
|
70843
|
-
|
|
70844
|
-
|
|
70845
|
-
|
|
70846
|
-
|
|
70847
|
-
|
|
70848
|
-
|
|
70931
|
+
createComputed as G,
|
|
70932
|
+
serialize$1 as H,
|
|
70933
|
+
Index as I,
|
|
70934
|
+
updateNestedDataByPath as J,
|
|
70935
|
+
convertRemToPixels as K,
|
|
70936
|
+
getSidedProp as L,
|
|
70937
|
+
getQueryStatusLabel as M,
|
|
70938
|
+
createRoot as N,
|
|
70939
|
+
addEventListener$1 as O,
|
|
70849
70940
|
Portal$9 as P,
|
|
70850
|
-
|
|
70851
|
-
|
|
70941
|
+
stringify as Q,
|
|
70942
|
+
Match as R,
|
|
70852
70943
|
Show as S,
|
|
70853
|
-
|
|
70854
|
-
|
|
70855
|
-
|
|
70944
|
+
Switch$2 as T,
|
|
70945
|
+
deleteNestedDataByPath as U,
|
|
70946
|
+
useTransition as V,
|
|
70856
70947
|
AutomationTriggerType as W,
|
|
70857
70948
|
ReachProvider as X,
|
|
70858
70949
|
CreateAutomationDialog as Y,
|
|
@@ -70861,29 +70952,29 @@ export {
|
|
|
70861
70952
|
createComponent as a,
|
|
70862
70953
|
SegmentBuilderDialog as a0,
|
|
70863
70954
|
ViewAutomation as a1,
|
|
70864
|
-
|
|
70955
|
+
createSignal as b,
|
|
70865
70956
|
createMemo as c,
|
|
70866
|
-
|
|
70957
|
+
delegateEvents as d,
|
|
70867
70958
|
createEffect as e,
|
|
70868
|
-
|
|
70959
|
+
mergeProps$8 as f,
|
|
70869
70960
|
getPreferredColorScheme as g,
|
|
70870
|
-
|
|
70871
|
-
|
|
70872
|
-
|
|
70873
|
-
|
|
70874
|
-
|
|
70961
|
+
splitProps as h,
|
|
70962
|
+
createContext as i,
|
|
70963
|
+
createRenderEffect as j,
|
|
70964
|
+
setAttribute as k,
|
|
70965
|
+
createUniqueId as l,
|
|
70875
70966
|
mutationSortFns as m,
|
|
70876
|
-
|
|
70877
|
-
|
|
70878
|
-
|
|
70879
|
-
|
|
70880
|
-
|
|
70967
|
+
onCleanup as n,
|
|
70968
|
+
on as o,
|
|
70969
|
+
onMount as p,
|
|
70970
|
+
use as q,
|
|
70971
|
+
insert as r,
|
|
70881
70972
|
sortFns as s,
|
|
70882
70973
|
template as t,
|
|
70883
70974
|
useContext as u,
|
|
70884
|
-
|
|
70885
|
-
|
|
70886
|
-
|
|
70887
|
-
|
|
70888
|
-
|
|
70975
|
+
className as v,
|
|
70976
|
+
getQueryStatusColor as w,
|
|
70977
|
+
getMutationStatusColor as x,
|
|
70978
|
+
spread as y,
|
|
70979
|
+
getQueryStatusColorByLabel as z
|
|
70889
70980
|
};
|