@embedreach/components 0.1.43 → 0.1.45
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 +541 -768
- package/dist/index.umd.js +546 -58647
- package/dist/styles.css +2 -7918
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx,
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import React__default, { createContext as createContext$1, Component, useReducer, useMemo, useEffect,
|
|
3
|
+
import React__default, { createContext as createContext$1, Component, useReducer, useMemo, useEffect, useRef, createElement as createElement$1, forwardRef, useId as useId$2, useContext as useContext$1, useInsertionEffect, useCallback, Children, isValidElement, useLayoutEffect, useState, Fragment as Fragment$1, cloneElement } from "react";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import ReactDOM__default, { flushSync } from "react-dom";
|
|
6
6
|
var Subscribable = class {
|
|
@@ -2601,7 +2601,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
2601
2601
|
let source;
|
|
2602
2602
|
let fetcher;
|
|
2603
2603
|
let options;
|
|
2604
|
-
if (arguments.length === 1) {
|
|
2604
|
+
if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
|
|
2605
2605
|
source = true;
|
|
2606
2606
|
fetcher = pSource;
|
|
2607
2607
|
options = {};
|
|
@@ -2651,7 +2651,19 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
2651
2651
|
const c2 = SuspenseContext, v2 = value(), err = error2();
|
|
2652
2652
|
if (err !== void 0 && !pr)
|
|
2653
2653
|
throw err;
|
|
2654
|
-
if (Listener && !Listener.user && c2)
|
|
2654
|
+
if (Listener && !Listener.user && c2) {
|
|
2655
|
+
createComputed(() => {
|
|
2656
|
+
track();
|
|
2657
|
+
if (pr) {
|
|
2658
|
+
if (c2.resolved)
|
|
2659
|
+
;
|
|
2660
|
+
else if (!contexts.has(c2)) {
|
|
2661
|
+
c2.increment();
|
|
2662
|
+
contexts.add(c2);
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
}
|
|
2655
2667
|
return v2;
|
|
2656
2668
|
}
|
|
2657
2669
|
function load(refetching = true) {
|
|
@@ -4486,7 +4498,7 @@ var isPlainObject = (payload) => {
|
|
|
4486
4498
|
};
|
|
4487
4499
|
var isEmptyObject = (payload) => isPlainObject(payload) && Object.keys(payload).length === 0;
|
|
4488
4500
|
var isArray = (payload) => Array.isArray(payload);
|
|
4489
|
-
var isString$
|
|
4501
|
+
var isString$1 = (payload) => typeof payload === "string";
|
|
4490
4502
|
var isNumber$1 = (payload) => typeof payload === "number" && !isNaN(payload);
|
|
4491
4503
|
var isBoolean = (payload) => typeof payload === "boolean";
|
|
4492
4504
|
var isRegExp = (payload) => payload instanceof RegExp;
|
|
@@ -4496,7 +4508,7 @@ var isSymbol$1 = (payload) => getType(payload) === "Symbol";
|
|
|
4496
4508
|
var isDate$3 = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
|
|
4497
4509
|
var isError = (payload) => payload instanceof Error;
|
|
4498
4510
|
var isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
|
|
4499
|
-
var isPrimitive = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber$1(payload) || isString$
|
|
4511
|
+
var isPrimitive = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber$1(payload) || isString$1(payload) || isSymbol$1(payload);
|
|
4500
4512
|
var isBigint = (payload) => typeof payload === "bigint";
|
|
4501
4513
|
var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
4502
4514
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
@@ -6084,6 +6096,9 @@ const { commonBasicLogger: ye$1 } = ne;
|
|
|
6084
6096
|
function we$1(e4) {
|
|
6085
6097
|
return "string" == typeof e4 && "kind" !== e4 && e4.match(/^(\w|\.|-)+$/);
|
|
6086
6098
|
}
|
|
6099
|
+
function be$1(e4) {
|
|
6100
|
+
return e4.includes("%") || e4.includes(":") ? e4.replace(/%/g, "%25").replace(/:/g, "%3A") : e4;
|
|
6101
|
+
}
|
|
6087
6102
|
var ke = { checkContext: function(e4, t3) {
|
|
6088
6103
|
if (e4) {
|
|
6089
6104
|
if (t3 && (void 0 === e4.kind || null === e4.kind)) return void 0 !== e4.key && null !== e4.key;
|
|
@@ -6122,6 +6137,12 @@ var ke = { checkContext: function(e4, t3) {
|
|
|
6122
6137
|
return n2;
|
|
6123
6138
|
}, getContextKinds: function(e4) {
|
|
6124
6139
|
return e4 ? null === e4.kind || void 0 === e4.kind ? ["user"] : "multi" !== e4.kind ? [e4.kind] : Object.keys(e4).filter((e5) => "kind" !== e5) : [];
|
|
6140
|
+
}, getCanonicalKey: function(e4) {
|
|
6141
|
+
if (e4) {
|
|
6142
|
+
if ((void 0 === e4.kind || null === e4.kind || "user" === e4.kind) && e4.key) return e4.key;
|
|
6143
|
+
if ("multi" !== e4.kind && e4.key) return `${e4.kind}:${be$1(e4.key)}`;
|
|
6144
|
+
if ("multi" === e4.kind) return Object.keys(e4).sort().filter((e5) => "kind" !== e5).map((t3) => `${t3}:${be$1(e4[t3].key)}`).join(":");
|
|
6145
|
+
}
|
|
6125
6146
|
} };
|
|
6126
6147
|
const { getContextKinds: Ee$1 } = ke;
|
|
6127
6148
|
var De$1 = function() {
|
|
@@ -6597,7 +6618,7 @@ var dt = function(e4, t3) {
|
|
|
6597
6618
|
}, 1e3 * e4);
|
|
6598
6619
|
});
|
|
6599
6620
|
};
|
|
6600
|
-
const { commonBasicLogger: ft } = ne, { checkContext: gt } = ke, { InspectorTypes: pt, InspectorManager: mt } = ut, ht = "change", yt = "internal-change";
|
|
6621
|
+
const { commonBasicLogger: ft } = ne, { checkContext: gt, getContextKeys: vt } = ke, { InspectorTypes: pt, InspectorManager: mt } = ut, ht = "change", yt = "internal-change";
|
|
6601
6622
|
var wt = { initialize: function(e4, t3, n2, r2, o2) {
|
|
6602
6623
|
const i3 = function() {
|
|
6603
6624
|
if (n2 && n2.logger) return n2.logger;
|
|
@@ -6809,14 +6830,14 @@ var wt = { initialize: function(e4, t3, n2, r2, o2) {
|
|
|
6809
6830
|
}, enqueueEvent: F2, getFlagsInternal: function() {
|
|
6810
6831
|
return P2;
|
|
6811
6832
|
}, getEnvironmentId: () => f2, internalChangeEventName: yt };
|
|
6812
|
-
}, errors: s3 }, bt = wt.initialize, kt = wt.errors;
|
|
6833
|
+
}, commonBasicLogger: ft, errors: s3, messages: ie, utils: S$1, getContextKeys: vt }, bt = wt.initialize, kt = wt.errors;
|
|
6813
6834
|
function Dt(e4, t3, n2) {
|
|
6814
6835
|
return (t3 = function(e5) {
|
|
6815
6836
|
var t4 = function(e6, t5) {
|
|
6816
6837
|
if ("object" != typeof e6 || !e6) return e6;
|
|
6817
6838
|
var n3 = e6[Symbol.toPrimitive];
|
|
6818
6839
|
if (void 0 !== n3) {
|
|
6819
|
-
var r2 = n3.call(e6, t5);
|
|
6840
|
+
var r2 = n3.call(e6, t5 || "default");
|
|
6820
6841
|
if ("object" != typeof r2) return r2;
|
|
6821
6842
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6822
6843
|
}
|
|
@@ -7018,6 +7039,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
7018
7039
|
function getDefaultExportFromCjs(x3) {
|
|
7019
7040
|
return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3;
|
|
7020
7041
|
}
|
|
7042
|
+
var INFINITY = 1 / 0;
|
|
7021
7043
|
var symbolTag = "[object Symbol]";
|
|
7022
7044
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
7023
7045
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
@@ -7297,12 +7319,12 @@ function baseToString(value) {
|
|
|
7297
7319
|
return symbolToString ? symbolToString.call(value) : "";
|
|
7298
7320
|
}
|
|
7299
7321
|
var result = value + "";
|
|
7300
|
-
return result == "0" && 1 / value == -
|
|
7322
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
7301
7323
|
}
|
|
7302
7324
|
function castSlice(array, start, end) {
|
|
7303
7325
|
var length = array.length;
|
|
7304
7326
|
end = end === void 0 ? length : end;
|
|
7305
|
-
return
|
|
7327
|
+
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
7306
7328
|
}
|
|
7307
7329
|
function createCaseFirst(methodName) {
|
|
7308
7330
|
return function(string) {
|
|
@@ -7971,7 +7993,7 @@ const authListeners = [
|
|
|
7971
7993
|
}
|
|
7972
7994
|
}
|
|
7973
7995
|
];
|
|
7974
|
-
const { Provider: Provider$3 } = createDataContext(
|
|
7996
|
+
const { Context: Context$1, Provider: Provider$3 } = createDataContext(
|
|
7975
7997
|
authReducer,
|
|
7976
7998
|
{
|
|
7977
7999
|
handleReauth
|
|
@@ -7984,362 +8006,6 @@ const { Provider: Provider$3 } = createDataContext(
|
|
|
7984
8006
|
},
|
|
7985
8007
|
authListeners
|
|
7986
8008
|
);
|
|
7987
|
-
const warn = (...args) => {
|
|
7988
|
-
if (console?.warn) {
|
|
7989
|
-
if (isString$1(args[0])) args[0] = `react-i18next:: ${args[0]}`;
|
|
7990
|
-
console.warn(...args);
|
|
7991
|
-
}
|
|
7992
|
-
};
|
|
7993
|
-
const alreadyWarned$1 = {};
|
|
7994
|
-
const warnOnce$1 = (...args) => {
|
|
7995
|
-
if (isString$1(args[0]) && alreadyWarned$1[args[0]]) return;
|
|
7996
|
-
if (isString$1(args[0])) alreadyWarned$1[args[0]] = /* @__PURE__ */ new Date();
|
|
7997
|
-
warn(...args);
|
|
7998
|
-
};
|
|
7999
|
-
const loadedClb = (i18n, cb) => () => {
|
|
8000
|
-
if (i18n.isInitialized) {
|
|
8001
|
-
cb();
|
|
8002
|
-
} else {
|
|
8003
|
-
const initialized = () => {
|
|
8004
|
-
setTimeout(() => {
|
|
8005
|
-
i18n.off("initialized", initialized);
|
|
8006
|
-
}, 0);
|
|
8007
|
-
cb();
|
|
8008
|
-
};
|
|
8009
|
-
i18n.on("initialized", initialized);
|
|
8010
|
-
}
|
|
8011
|
-
};
|
|
8012
|
-
const loadNamespaces = (i18n, ns, cb) => {
|
|
8013
|
-
i18n.loadNamespaces(ns, loadedClb(i18n, cb));
|
|
8014
|
-
};
|
|
8015
|
-
const loadLanguages = (i18n, lng, ns, cb) => {
|
|
8016
|
-
if (isString$1(ns)) ns = [ns];
|
|
8017
|
-
if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);
|
|
8018
|
-
ns.forEach((n2) => {
|
|
8019
|
-
if (i18n.options.ns.indexOf(n2) < 0) i18n.options.ns.push(n2);
|
|
8020
|
-
});
|
|
8021
|
-
i18n.loadLanguages(lng, loadedClb(i18n, cb));
|
|
8022
|
-
};
|
|
8023
|
-
const hasLoadedNamespace = (ns, i18n, options = {}) => {
|
|
8024
|
-
if (!i18n.languages || !i18n.languages.length) {
|
|
8025
|
-
warnOnce$1("i18n.languages were undefined or empty", i18n.languages);
|
|
8026
|
-
return true;
|
|
8027
|
-
}
|
|
8028
|
-
return i18n.hasLoadedNamespace(ns, {
|
|
8029
|
-
lng: options.lng,
|
|
8030
|
-
precheck: (i18nInstance2, loadNotPending) => {
|
|
8031
|
-
if (options.bindI18n?.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns)) return false;
|
|
8032
|
-
}
|
|
8033
|
-
});
|
|
8034
|
-
};
|
|
8035
|
-
const isString$1 = (obj) => typeof obj === "string";
|
|
8036
|
-
const isObject = (obj) => typeof obj === "object" && obj !== null;
|
|
8037
|
-
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
8038
|
-
const htmlEntities = {
|
|
8039
|
-
"&": "&",
|
|
8040
|
-
"&": "&",
|
|
8041
|
-
"<": "<",
|
|
8042
|
-
"<": "<",
|
|
8043
|
-
">": ">",
|
|
8044
|
-
">": ">",
|
|
8045
|
-
"'": "'",
|
|
8046
|
-
"'": "'",
|
|
8047
|
-
""": '"',
|
|
8048
|
-
""": '"',
|
|
8049
|
-
" ": " ",
|
|
8050
|
-
" ": " ",
|
|
8051
|
-
"©": "©",
|
|
8052
|
-
"©": "©",
|
|
8053
|
-
"®": "®",
|
|
8054
|
-
"®": "®",
|
|
8055
|
-
"…": "…",
|
|
8056
|
-
"…": "…",
|
|
8057
|
-
"/": "/",
|
|
8058
|
-
"/": "/"
|
|
8059
|
-
};
|
|
8060
|
-
const unescapeHtmlEntity = (m4) => htmlEntities[m4];
|
|
8061
|
-
const unescape$1 = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
8062
|
-
let defaultOptions$2 = {
|
|
8063
|
-
bindI18n: "languageChanged",
|
|
8064
|
-
bindI18nStore: "",
|
|
8065
|
-
transEmptyNodeValue: "",
|
|
8066
|
-
transSupportBasicHtmlNodes: true,
|
|
8067
|
-
transWrapTextNodes: "",
|
|
8068
|
-
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
8069
|
-
useSuspense: true,
|
|
8070
|
-
unescape: unescape$1
|
|
8071
|
-
};
|
|
8072
|
-
const setDefaults = (options = {}) => {
|
|
8073
|
-
defaultOptions$2 = {
|
|
8074
|
-
...defaultOptions$2,
|
|
8075
|
-
...options
|
|
8076
|
-
};
|
|
8077
|
-
};
|
|
8078
|
-
const getDefaults$1 = () => defaultOptions$2;
|
|
8079
|
-
let i18nInstance;
|
|
8080
|
-
const setI18n = (instance2) => {
|
|
8081
|
-
i18nInstance = instance2;
|
|
8082
|
-
};
|
|
8083
|
-
const getI18n = () => i18nInstance;
|
|
8084
|
-
const initReactI18next = {
|
|
8085
|
-
type: "3rdParty",
|
|
8086
|
-
init(instance2) {
|
|
8087
|
-
setDefaults(instance2.options.react);
|
|
8088
|
-
setI18n(instance2);
|
|
8089
|
-
}
|
|
8090
|
-
};
|
|
8091
|
-
const I18nContext = createContext$1();
|
|
8092
|
-
class ReportNamespaces {
|
|
8093
|
-
constructor() {
|
|
8094
|
-
this.usedNamespaces = {};
|
|
8095
|
-
}
|
|
8096
|
-
addUsedNamespaces(namespaces) {
|
|
8097
|
-
namespaces.forEach((ns) => {
|
|
8098
|
-
if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
|
|
8099
|
-
});
|
|
8100
|
-
}
|
|
8101
|
-
getUsedNamespaces() {
|
|
8102
|
-
return Object.keys(this.usedNamespaces);
|
|
8103
|
-
}
|
|
8104
|
-
}
|
|
8105
|
-
const usePrevious$1 = (value, ignore) => {
|
|
8106
|
-
const ref = useRef();
|
|
8107
|
-
useEffect(() => {
|
|
8108
|
-
ref.current = value;
|
|
8109
|
-
}, [value, ignore]);
|
|
8110
|
-
return ref.current;
|
|
8111
|
-
};
|
|
8112
|
-
const alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
8113
|
-
const useMemoizedT = (i18n, language, namespace, keyPrefix) => useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
8114
|
-
const useTranslation = (ns, props = {}) => {
|
|
8115
|
-
const {
|
|
8116
|
-
i18n: i18nFromProps
|
|
8117
|
-
} = props;
|
|
8118
|
-
const {
|
|
8119
|
-
i18n: i18nFromContext,
|
|
8120
|
-
defaultNS: defaultNSFromContext
|
|
8121
|
-
} = useContext$1(I18nContext) || {};
|
|
8122
|
-
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
8123
|
-
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
8124
|
-
if (!i18n) {
|
|
8125
|
-
warnOnce$1("You will need to pass in an i18next instance by using initReactI18next");
|
|
8126
|
-
const notReadyT = (k3, optsOrDefaultValue) => {
|
|
8127
|
-
if (isString$1(optsOrDefaultValue)) return optsOrDefaultValue;
|
|
8128
|
-
if (isObject(optsOrDefaultValue) && isString$1(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
|
8129
|
-
return Array.isArray(k3) ? k3[k3.length - 1] : k3;
|
|
8130
|
-
};
|
|
8131
|
-
const retNotReady = [notReadyT, {}, false];
|
|
8132
|
-
retNotReady.t = notReadyT;
|
|
8133
|
-
retNotReady.i18n = {};
|
|
8134
|
-
retNotReady.ready = false;
|
|
8135
|
-
return retNotReady;
|
|
8136
|
-
}
|
|
8137
|
-
if (i18n.options.react?.wait) warnOnce$1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
8138
|
-
const i18nOptions = {
|
|
8139
|
-
...getDefaults$1(),
|
|
8140
|
-
...i18n.options.react,
|
|
8141
|
-
...props
|
|
8142
|
-
};
|
|
8143
|
-
const {
|
|
8144
|
-
useSuspense,
|
|
8145
|
-
keyPrefix
|
|
8146
|
-
} = i18nOptions;
|
|
8147
|
-
let namespaces = defaultNSFromContext || i18n.options?.defaultNS;
|
|
8148
|
-
namespaces = isString$1(namespaces) ? [namespaces] : namespaces || ["translation"];
|
|
8149
|
-
i18n.reportNamespaces.addUsedNamespaces?.(namespaces);
|
|
8150
|
-
const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n, i18nOptions));
|
|
8151
|
-
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
8152
|
-
const getT = () => memoGetT;
|
|
8153
|
-
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
8154
|
-
const [t3, setT] = useState(getT);
|
|
8155
|
-
let joinedNS = namespaces.join();
|
|
8156
|
-
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
8157
|
-
const previousJoinedNS = usePrevious$1(joinedNS);
|
|
8158
|
-
const isMounted = useRef(true);
|
|
8159
|
-
useEffect(() => {
|
|
8160
|
-
const {
|
|
8161
|
-
bindI18n,
|
|
8162
|
-
bindI18nStore
|
|
8163
|
-
} = i18nOptions;
|
|
8164
|
-
isMounted.current = true;
|
|
8165
|
-
if (!ready && !useSuspense) {
|
|
8166
|
-
if (props.lng) {
|
|
8167
|
-
loadLanguages(i18n, props.lng, namespaces, () => {
|
|
8168
|
-
if (isMounted.current) setT(getNewT);
|
|
8169
|
-
});
|
|
8170
|
-
} else {
|
|
8171
|
-
loadNamespaces(i18n, namespaces, () => {
|
|
8172
|
-
if (isMounted.current) setT(getNewT);
|
|
8173
|
-
});
|
|
8174
|
-
}
|
|
8175
|
-
}
|
|
8176
|
-
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
8177
|
-
setT(getNewT);
|
|
8178
|
-
}
|
|
8179
|
-
const boundReset = () => {
|
|
8180
|
-
if (isMounted.current) setT(getNewT);
|
|
8181
|
-
};
|
|
8182
|
-
if (bindI18n) i18n?.on(bindI18n, boundReset);
|
|
8183
|
-
if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);
|
|
8184
|
-
return () => {
|
|
8185
|
-
isMounted.current = false;
|
|
8186
|
-
if (i18n) bindI18n?.split(" ").forEach((e4) => i18n.off(e4, boundReset));
|
|
8187
|
-
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e4) => i18n.store.off(e4, boundReset));
|
|
8188
|
-
};
|
|
8189
|
-
}, [i18n, joinedNS]);
|
|
8190
|
-
useEffect(() => {
|
|
8191
|
-
if (isMounted.current && ready) {
|
|
8192
|
-
setT(getT);
|
|
8193
|
-
}
|
|
8194
|
-
}, [i18n, keyPrefix, ready]);
|
|
8195
|
-
const ret = [t3, i18n, ready];
|
|
8196
|
-
ret.t = t3;
|
|
8197
|
-
ret.i18n = i18n;
|
|
8198
|
-
ret.ready = ready;
|
|
8199
|
-
if (ready) return ret;
|
|
8200
|
-
if (!ready && !useSuspense) return ret;
|
|
8201
|
-
throw new Promise((resolve) => {
|
|
8202
|
-
if (props.lng) {
|
|
8203
|
-
loadLanguages(i18n, props.lng, namespaces, () => resolve());
|
|
8204
|
-
} else {
|
|
8205
|
-
loadNamespaces(i18n, namespaces, () => resolve());
|
|
8206
|
-
}
|
|
8207
|
-
});
|
|
8208
|
-
};
|
|
8209
|
-
function I18nextProvider({
|
|
8210
|
-
i18n,
|
|
8211
|
-
defaultNS,
|
|
8212
|
-
children: children2
|
|
8213
|
-
}) {
|
|
8214
|
-
const value = useMemo(() => ({
|
|
8215
|
-
i18n,
|
|
8216
|
-
defaultNS
|
|
8217
|
-
}), [i18n, defaultNS]);
|
|
8218
|
-
return createElement$1(I18nContext.Provider, {
|
|
8219
|
-
value
|
|
8220
|
-
}, children2);
|
|
8221
|
-
}
|
|
8222
|
-
const H3 = ({ children: children2 }) => {
|
|
8223
|
-
return /* @__PURE__ */ jsx("h3", { className: "scroll-m-20 text-2xl font-semibold tracking-tight", children: children2 });
|
|
8224
|
-
};
|
|
8225
|
-
const SpinLoader = ({
|
|
8226
|
-
size: size2 = 35,
|
|
8227
|
-
color: color2 = "black",
|
|
8228
|
-
speed = 0.9,
|
|
8229
|
-
strokeWidth = 3.5,
|
|
8230
|
-
text,
|
|
8231
|
-
textSpeed = 2e3,
|
|
8232
|
-
// Default 2 seconds per text
|
|
8233
|
-
textColor = "black"
|
|
8234
|
-
}) => {
|
|
8235
|
-
const [currentTextIndex, setCurrentTextIndex] = useState(0);
|
|
8236
|
-
const textArray = Array.isArray(text) ? text : text ? [text] : [];
|
|
8237
|
-
useEffect(() => {
|
|
8238
|
-
if (textArray.length <= 1) return;
|
|
8239
|
-
if (currentTextIndex >= textArray.length - 1) return;
|
|
8240
|
-
const interval = setInterval(() => {
|
|
8241
|
-
setCurrentTextIndex(
|
|
8242
|
-
(current) => current < textArray.length - 1 ? current + 1 : current
|
|
8243
|
-
);
|
|
8244
|
-
}, textSpeed);
|
|
8245
|
-
return () => clearInterval(interval);
|
|
8246
|
-
}, [textArray.length, textSpeed, currentTextIndex]);
|
|
8247
|
-
return /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-center items-center h-full", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
8248
|
-
/* @__PURE__ */ jsxs(
|
|
8249
|
-
"div",
|
|
8250
|
-
{
|
|
8251
|
-
className: "loader-container",
|
|
8252
|
-
style: {
|
|
8253
|
-
"--uib-size": `${size2}px`,
|
|
8254
|
-
"--uib-color": color2,
|
|
8255
|
-
"--uib-speed": `${speed}s`,
|
|
8256
|
-
"--uib-stroke": `${strokeWidth}px`
|
|
8257
|
-
},
|
|
8258
|
-
children: [
|
|
8259
|
-
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
8260
|
-
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
8261
|
-
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
8262
|
-
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
8263
|
-
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
8264
|
-
/* @__PURE__ */ jsx("div", { className: "line" })
|
|
8265
|
-
]
|
|
8266
|
-
}
|
|
8267
|
-
),
|
|
8268
|
-
textArray.length > 0 && /* @__PURE__ */ jsx(
|
|
8269
|
-
"div",
|
|
8270
|
-
{
|
|
8271
|
-
className: `text-center text-sm text-muted-foreground animate-fade-in ${textColor ? `text-${textColor}` : ""}`,
|
|
8272
|
-
children: /* @__PURE__ */ jsx(H3, { children: textArray[currentTextIndex] })
|
|
8273
|
-
},
|
|
8274
|
-
currentTextIndex
|
|
8275
|
-
),
|
|
8276
|
-
/* @__PURE__ */ jsx("style", { children: `
|
|
8277
|
-
.loader-container {
|
|
8278
|
-
position: relative;
|
|
8279
|
-
display: flex;
|
|
8280
|
-
align-items: center;
|
|
8281
|
-
justify-content: center;
|
|
8282
|
-
height: var(--uib-size);
|
|
8283
|
-
width: var(--uib-size);
|
|
8284
|
-
}
|
|
8285
|
-
.line {
|
|
8286
|
-
position: absolute;
|
|
8287
|
-
top: calc(50% - var(--uib-stroke) / 2);
|
|
8288
|
-
left: 0;
|
|
8289
|
-
height: var(--uib-stroke);
|
|
8290
|
-
width: 100%;
|
|
8291
|
-
border-radius: calc(var(--uib-stroke) / 2);
|
|
8292
|
-
background-color: var(--uib-color);
|
|
8293
|
-
animation: rotate var(--uib-speed) ease-in-out infinite;
|
|
8294
|
-
transition: background-color 0.3s ease;
|
|
8295
|
-
}
|
|
8296
|
-
.line:nth-child(1) {
|
|
8297
|
-
animation-delay: calc(var(--uib-speed) * -0.375);
|
|
8298
|
-
}
|
|
8299
|
-
.line:nth-child(2) {
|
|
8300
|
-
animation-delay: calc(var(--uib-speed) * -0.375);
|
|
8301
|
-
opacity: 0.8;
|
|
8302
|
-
}
|
|
8303
|
-
.line:nth-child(3) {
|
|
8304
|
-
animation-delay: calc(var(--uib-speed) * -0.3);
|
|
8305
|
-
opacity: 0.6;
|
|
8306
|
-
}
|
|
8307
|
-
.line:nth-child(4) {
|
|
8308
|
-
animation-delay: calc(var(--uib-speed) * -0.225);
|
|
8309
|
-
opacity: 0.4;
|
|
8310
|
-
}
|
|
8311
|
-
.line:nth-child(5) {
|
|
8312
|
-
animation-delay: calc(var(--uib-speed) * -0.15);
|
|
8313
|
-
opacity: 0.2;
|
|
8314
|
-
}
|
|
8315
|
-
.line:nth-child(6) {
|
|
8316
|
-
animation-delay: calc(var(--uib-speed) * -0.075);
|
|
8317
|
-
opacity: 0.1;
|
|
8318
|
-
}
|
|
8319
|
-
@keyframes rotate {
|
|
8320
|
-
0% {
|
|
8321
|
-
transform: rotate(0deg);
|
|
8322
|
-
}
|
|
8323
|
-
100% {
|
|
8324
|
-
transform: rotate(180deg);
|
|
8325
|
-
}
|
|
8326
|
-
}
|
|
8327
|
-
.animate-fade-in {
|
|
8328
|
-
animation: fadeIn 0.5s ease-in-out;
|
|
8329
|
-
}
|
|
8330
|
-
@keyframes fadeIn {
|
|
8331
|
-
from {
|
|
8332
|
-
opacity: 0;
|
|
8333
|
-
transform: translateY(5px);
|
|
8334
|
-
}
|
|
8335
|
-
to {
|
|
8336
|
-
opacity: 1;
|
|
8337
|
-
transform: translateY(0);
|
|
8338
|
-
}
|
|
8339
|
-
}
|
|
8340
|
-
` })
|
|
8341
|
-
] }) });
|
|
8342
|
-
};
|
|
8343
8009
|
const normalizeColor = (color2) => {
|
|
8344
8010
|
const div = document.createElement("div");
|
|
8345
8011
|
div.style.color = color2;
|
|
@@ -8476,19 +8142,9 @@ const applyThemeStyles = (styles2) => {
|
|
|
8476
8142
|
styleElement.textContent = cssText;
|
|
8477
8143
|
document.head.appendChild(styleElement);
|
|
8478
8144
|
};
|
|
8479
|
-
const mergeThemeStyles = (themeConfig, overrides) => {
|
|
8480
|
-
return {
|
|
8481
|
-
...DEFAULT_THEME_STYLES,
|
|
8482
|
-
...themeConfig?.styles || {},
|
|
8483
|
-
...{}
|
|
8484
|
-
};
|
|
8485
|
-
};
|
|
8486
8145
|
const themeReducer = (state, action) => {
|
|
8487
8146
|
switch (action.type) {
|
|
8488
8147
|
case "set_theme":
|
|
8489
|
-
if (action.payload && !state.theme) {
|
|
8490
|
-
applyThemeStyles(action.payload.styles);
|
|
8491
|
-
}
|
|
8492
8148
|
return {
|
|
8493
8149
|
...state,
|
|
8494
8150
|
loading: false,
|
|
@@ -8513,7 +8169,7 @@ const themeReducer = (state, action) => {
|
|
|
8513
8169
|
const setTheme = (dispatch2) => (theme2) => dispatch2({ type: "set_theme", payload: theme2 });
|
|
8514
8170
|
const setLoading = (dispatch2) => (loading2) => dispatch2({ type: "set_loading", payload: loading2 });
|
|
8515
8171
|
const setError = (dispatch2) => (error2) => dispatch2({ type: "set_error", payload: error2 });
|
|
8516
|
-
const { Context, Provider:
|
|
8172
|
+
const { Context, Provider: BaseProvider } = createDataContext(
|
|
8517
8173
|
themeReducer,
|
|
8518
8174
|
{
|
|
8519
8175
|
setTheme,
|
|
@@ -8526,52 +8182,84 @@ const { Context, Provider: Provider$2 } = createDataContext(
|
|
|
8526
8182
|
error: null
|
|
8527
8183
|
}
|
|
8528
8184
|
);
|
|
8529
|
-
const
|
|
8530
|
-
const
|
|
8531
|
-
if (context === void 0) {
|
|
8532
|
-
throw new Error("useThemeContext must be used within a ThemeProvider");
|
|
8533
|
-
}
|
|
8534
|
-
const applyTheme = (themeConfig) => {
|
|
8535
|
-
if (!themeConfig) return;
|
|
8536
|
-
const mergedStyles = mergeThemeStyles(themeConfig);
|
|
8537
|
-
const finalTheme = {
|
|
8538
|
-
styles: mergedStyles
|
|
8539
|
-
};
|
|
8540
|
-
context.setTheme(finalTheme);
|
|
8541
|
-
};
|
|
8542
|
-
return {
|
|
8543
|
-
...context.state,
|
|
8544
|
-
setTheme: context.setTheme,
|
|
8545
|
-
setLoading: context.setLoading,
|
|
8546
|
-
setError: context.setError,
|
|
8547
|
-
// Add the helper function
|
|
8548
|
-
applyTheme
|
|
8549
|
-
};
|
|
8550
|
-
};
|
|
8551
|
-
const InnerThemeProvider = ({
|
|
8552
|
-
children: children2,
|
|
8553
|
-
theme: theme2
|
|
8554
|
-
}) => {
|
|
8555
|
-
const { t: t3 } = useTranslation();
|
|
8556
|
-
const { loading: themeLoading, applyTheme } = useThemeContext();
|
|
8185
|
+
const ThemeInitializer = ({ initialTheme, children: children2 }) => {
|
|
8186
|
+
const { setTheme: setTheme2, setLoading: setLoading2 } = React__default.useContext(Context);
|
|
8557
8187
|
const themeApplied = useRef(false);
|
|
8558
8188
|
useEffect(() => {
|
|
8559
|
-
if (!themeApplied.current
|
|
8560
|
-
|
|
8189
|
+
if (initialTheme && !themeApplied.current) {
|
|
8190
|
+
applyThemeStyles(initialTheme.styles);
|
|
8191
|
+
setTheme2(initialTheme);
|
|
8561
8192
|
themeApplied.current = true;
|
|
8193
|
+
} else {
|
|
8194
|
+
setLoading2(false);
|
|
8562
8195
|
}
|
|
8563
|
-
}, [
|
|
8564
|
-
if (themeLoading && theme2) {
|
|
8565
|
-
return /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-center items-center h-screen", children: /* @__PURE__ */ jsx(SpinLoader, { text: [t3("loading")] }) });
|
|
8566
|
-
}
|
|
8196
|
+
}, [initialTheme, setTheme2, setLoading2]);
|
|
8567
8197
|
return /* @__PURE__ */ jsx(Fragment, { children: children2 });
|
|
8568
8198
|
};
|
|
8569
|
-
const
|
|
8570
|
-
children: children2
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8199
|
+
const Provider$2 = ({ initialTheme, children: children2 }) => {
|
|
8200
|
+
return /* @__PURE__ */ jsx(BaseProvider, { children: /* @__PURE__ */ jsx(ThemeInitializer, { initialTheme, children: children2 }) });
|
|
8201
|
+
};
|
|
8202
|
+
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
8203
|
+
const htmlEntities = {
|
|
8204
|
+
"&": "&",
|
|
8205
|
+
"&": "&",
|
|
8206
|
+
"<": "<",
|
|
8207
|
+
"<": "<",
|
|
8208
|
+
">": ">",
|
|
8209
|
+
">": ">",
|
|
8210
|
+
"'": "'",
|
|
8211
|
+
"'": "'",
|
|
8212
|
+
""": '"',
|
|
8213
|
+
""": '"',
|
|
8214
|
+
" ": " ",
|
|
8215
|
+
" ": " ",
|
|
8216
|
+
"©": "©",
|
|
8217
|
+
"©": "©",
|
|
8218
|
+
"®": "®",
|
|
8219
|
+
"®": "®",
|
|
8220
|
+
"…": "…",
|
|
8221
|
+
"…": "…",
|
|
8222
|
+
"/": "/",
|
|
8223
|
+
"/": "/"
|
|
8224
|
+
};
|
|
8225
|
+
const unescapeHtmlEntity = (m4) => htmlEntities[m4];
|
|
8226
|
+
const unescape$1 = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
8227
|
+
let defaultOptions$2 = {
|
|
8228
|
+
bindI18n: "languageChanged",
|
|
8229
|
+
bindI18nStore: "",
|
|
8230
|
+
transEmptyNodeValue: "",
|
|
8231
|
+
transSupportBasicHtmlNodes: true,
|
|
8232
|
+
transWrapTextNodes: "",
|
|
8233
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
8234
|
+
useSuspense: true,
|
|
8235
|
+
unescape: unescape$1
|
|
8574
8236
|
};
|
|
8237
|
+
const setDefaults = (options = {}) => {
|
|
8238
|
+
defaultOptions$2 = {
|
|
8239
|
+
...defaultOptions$2,
|
|
8240
|
+
...options
|
|
8241
|
+
};
|
|
8242
|
+
};
|
|
8243
|
+
const initReactI18next = {
|
|
8244
|
+
type: "3rdParty",
|
|
8245
|
+
init(instance2) {
|
|
8246
|
+
setDefaults(instance2.options.react);
|
|
8247
|
+
}
|
|
8248
|
+
};
|
|
8249
|
+
const I18nContext = createContext$1();
|
|
8250
|
+
function I18nextProvider({
|
|
8251
|
+
i18n,
|
|
8252
|
+
defaultNS,
|
|
8253
|
+
children: children2
|
|
8254
|
+
}) {
|
|
8255
|
+
const value = useMemo(() => ({
|
|
8256
|
+
i18n,
|
|
8257
|
+
defaultNS
|
|
8258
|
+
}), [i18n, defaultNS]);
|
|
8259
|
+
return createElement$1(I18nContext.Provider, {
|
|
8260
|
+
value
|
|
8261
|
+
}, children2);
|
|
8262
|
+
}
|
|
8575
8263
|
const isString = (obj) => typeof obj === "string";
|
|
8576
8264
|
const defer = () => {
|
|
8577
8265
|
let res;
|
|
@@ -12409,7 +12097,7 @@ function createCollection(name) {
|
|
|
12409
12097
|
createCollectionScope2
|
|
12410
12098
|
];
|
|
12411
12099
|
}
|
|
12412
|
-
var NODES$
|
|
12100
|
+
var NODES$2 = [
|
|
12413
12101
|
"a",
|
|
12414
12102
|
"button",
|
|
12415
12103
|
"div",
|
|
@@ -12427,7 +12115,7 @@ var NODES$3 = [
|
|
|
12427
12115
|
"svg",
|
|
12428
12116
|
"ul"
|
|
12429
12117
|
];
|
|
12430
|
-
var Primitive$
|
|
12118
|
+
var Primitive$2 = NODES$2.reduce((primitive, node) => {
|
|
12431
12119
|
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
12432
12120
|
const { asChild, ...primitiveProps } = props;
|
|
12433
12121
|
const Comp = asChild ? Slot$3 : node;
|
|
@@ -12549,7 +12237,7 @@ var DismissableLayer$3 = React.forwardRef(
|
|
|
12549
12237
|
return () => document.removeEventListener(CONTEXT_UPDATE$3, handleUpdate);
|
|
12550
12238
|
}, []);
|
|
12551
12239
|
return /* @__PURE__ */ jsx(
|
|
12552
|
-
Primitive$
|
|
12240
|
+
Primitive$2.div,
|
|
12553
12241
|
{
|
|
12554
12242
|
...layerProps,
|
|
12555
12243
|
ref: composedRefs,
|
|
@@ -12582,7 +12270,7 @@ var DismissableLayerBranch$3 = React.forwardRef((props, forwardedRef) => {
|
|
|
12582
12270
|
};
|
|
12583
12271
|
}
|
|
12584
12272
|
}, [context.branches]);
|
|
12585
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
12273
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...props, ref: composedRefs });
|
|
12586
12274
|
});
|
|
12587
12275
|
DismissableLayerBranch$3.displayName = BRANCH_NAME$3;
|
|
12588
12276
|
function usePointerDownOutside$3(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -12672,7 +12360,7 @@ var Portal$6 = React.forwardRef((props, forwardedRef) => {
|
|
|
12672
12360
|
const [mounted, setMounted] = React.useState(false);
|
|
12673
12361
|
useLayoutEffect2(() => setMounted(true), []);
|
|
12674
12362
|
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
12675
|
-
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$
|
|
12363
|
+
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$2.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
12676
12364
|
});
|
|
12677
12365
|
Portal$6.displayName = PORTAL_NAME$7;
|
|
12678
12366
|
function useStateMachine(initialState, machine) {
|
|
@@ -12837,11 +12525,11 @@ function useUncontrolledState({
|
|
|
12837
12525
|
}, [value, prevValueRef, handleChange]);
|
|
12838
12526
|
return uncontrolledState;
|
|
12839
12527
|
}
|
|
12840
|
-
var NAME$
|
|
12841
|
-
var VisuallyHidden
|
|
12528
|
+
var NAME$3 = "VisuallyHidden";
|
|
12529
|
+
var VisuallyHidden = React.forwardRef(
|
|
12842
12530
|
(props, forwardedRef) => {
|
|
12843
12531
|
return /* @__PURE__ */ jsx(
|
|
12844
|
-
Primitive$
|
|
12532
|
+
Primitive$2.span,
|
|
12845
12533
|
{
|
|
12846
12534
|
...props,
|
|
12847
12535
|
ref: forwardedRef,
|
|
@@ -12863,8 +12551,8 @@ var VisuallyHidden$1 = React.forwardRef(
|
|
|
12863
12551
|
);
|
|
12864
12552
|
}
|
|
12865
12553
|
);
|
|
12866
|
-
VisuallyHidden
|
|
12867
|
-
var Root$6 = VisuallyHidden
|
|
12554
|
+
VisuallyHidden.displayName = NAME$3;
|
|
12555
|
+
var Root$6 = VisuallyHidden;
|
|
12868
12556
|
var PROVIDER_NAME$1 = "ToastProvider";
|
|
12869
12557
|
var [Collection$3, useCollection$3, createCollectionScope$3] = createCollection("Toast");
|
|
12870
12558
|
var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope$3]);
|
|
@@ -13039,7 +12727,7 @@ var ToastViewport$1 = React.forwardRef(
|
|
|
13039
12727
|
}
|
|
13040
12728
|
}
|
|
13041
12729
|
),
|
|
13042
|
-
/* @__PURE__ */ jsx(Collection$3.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(Primitive$
|
|
12730
|
+
/* @__PURE__ */ jsx(Collection$3.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(Primitive$2.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
|
|
13043
12731
|
hasToasts && /* @__PURE__ */ jsx(
|
|
13044
12732
|
FocusProxy,
|
|
13045
12733
|
{
|
|
@@ -13064,7 +12752,7 @@ var FocusProxy = React.forwardRef(
|
|
|
13064
12752
|
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
13065
12753
|
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
13066
12754
|
return /* @__PURE__ */ jsx(
|
|
13067
|
-
VisuallyHidden
|
|
12755
|
+
VisuallyHidden,
|
|
13068
12756
|
{
|
|
13069
12757
|
"aria-hidden": true,
|
|
13070
12758
|
tabIndex: 0,
|
|
@@ -13231,7 +12919,7 @@ var ToastImpl = React.forwardRef(
|
|
|
13231
12919
|
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
13232
12920
|
}),
|
|
13233
12921
|
children: /* @__PURE__ */ jsx(
|
|
13234
|
-
Primitive$
|
|
12922
|
+
Primitive$2.li,
|
|
13235
12923
|
{
|
|
13236
12924
|
role: "status",
|
|
13237
12925
|
"aria-live": "off",
|
|
@@ -13330,7 +13018,7 @@ var ToastAnnounce = (props) => {
|
|
|
13330
13018
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
13331
13019
|
return () => window.clearTimeout(timer);
|
|
13332
13020
|
}, []);
|
|
13333
|
-
return isAnnounced ? null : /* @__PURE__ */ jsx(Portal$6, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden
|
|
13021
|
+
return isAnnounced ? null : /* @__PURE__ */ jsx(Portal$6, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13334
13022
|
context.label,
|
|
13335
13023
|
" ",
|
|
13336
13024
|
children2
|
|
@@ -13340,7 +13028,7 @@ var TITLE_NAME$1 = "ToastTitle";
|
|
|
13340
13028
|
var ToastTitle$1 = React.forwardRef(
|
|
13341
13029
|
(props, forwardedRef) => {
|
|
13342
13030
|
const { __scopeToast, ...titleProps } = props;
|
|
13343
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
13031
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...titleProps, ref: forwardedRef });
|
|
13344
13032
|
}
|
|
13345
13033
|
);
|
|
13346
13034
|
ToastTitle$1.displayName = TITLE_NAME$1;
|
|
@@ -13348,7 +13036,7 @@ var DESCRIPTION_NAME$1 = "ToastDescription";
|
|
|
13348
13036
|
var ToastDescription$1 = React.forwardRef(
|
|
13349
13037
|
(props, forwardedRef) => {
|
|
13350
13038
|
const { __scopeToast, ...descriptionProps } = props;
|
|
13351
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
13039
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...descriptionProps, ref: forwardedRef });
|
|
13352
13040
|
}
|
|
13353
13041
|
);
|
|
13354
13042
|
ToastDescription$1.displayName = DESCRIPTION_NAME$1;
|
|
@@ -13372,7 +13060,7 @@ var ToastClose$1 = React.forwardRef(
|
|
|
13372
13060
|
const { __scopeToast, ...closeProps } = props;
|
|
13373
13061
|
const interactiveContext = useToastInteractiveContext(CLOSE_NAME$2, __scopeToast);
|
|
13374
13062
|
return /* @__PURE__ */ jsx(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
13375
|
-
Primitive$
|
|
13063
|
+
Primitive$2.button,
|
|
13376
13064
|
{
|
|
13377
13065
|
type: "button",
|
|
13378
13066
|
...closeProps,
|
|
@@ -13386,7 +13074,7 @@ ToastClose$1.displayName = CLOSE_NAME$2;
|
|
|
13386
13074
|
var ToastAnnounceExclude = React.forwardRef((props, forwardedRef) => {
|
|
13387
13075
|
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
13388
13076
|
return /* @__PURE__ */ jsx(
|
|
13389
|
-
Primitive$
|
|
13077
|
+
Primitive$2.div,
|
|
13390
13078
|
{
|
|
13391
13079
|
"data-radix-toast-announce-exclude": "",
|
|
13392
13080
|
"data-radix-toast-announce-alt": altText || void 0,
|
|
@@ -16589,7 +16277,7 @@ const ReachProvider = ({
|
|
|
16589
16277
|
useCamelCaseFlagKeys: false,
|
|
16590
16278
|
sendEventsOnFlagRead: true
|
|
16591
16279
|
},
|
|
16592
|
-
children: /* @__PURE__ */ jsx(I18nProvider, { initialLanguage: language, children: /* @__PURE__ */ jsx(
|
|
16280
|
+
children: /* @__PURE__ */ jsx(I18nProvider, { initialLanguage: language, children: /* @__PURE__ */ jsx(Provider$2, { initialTheme: theme2, children: /* @__PURE__ */ jsxs(Provider$3, { children: [
|
|
16593
16281
|
children2,
|
|
16594
16282
|
/* @__PURE__ */ jsx(Toaster, {})
|
|
16595
16283
|
] }) }) })
|
|
@@ -16842,6 +16530,7 @@ const progress = /* @__NO_SIDE_EFFECTS__ */ (from, to, value) => {
|
|
|
16842
16530
|
const secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e3;
|
|
16843
16531
|
const millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;
|
|
16844
16532
|
const MotionGlobalConfig = {
|
|
16533
|
+
skipAnimations: false,
|
|
16845
16534
|
useManualTiming: false
|
|
16846
16535
|
};
|
|
16847
16536
|
const stepsOrder = [
|
|
@@ -16859,7 +16548,8 @@ const stepsOrder = [
|
|
|
16859
16548
|
// Compute
|
|
16860
16549
|
];
|
|
16861
16550
|
const statsBuffer = {
|
|
16862
|
-
value: null
|
|
16551
|
+
value: null,
|
|
16552
|
+
addProjectionMetrics: null
|
|
16863
16553
|
};
|
|
16864
16554
|
function createRenderStep(runNextFrame, stepName) {
|
|
16865
16555
|
let thisFrame = /* @__PURE__ */ new Set();
|
|
@@ -17188,7 +16878,7 @@ function useMotionRef(visualState, visualElement, externalRef) {
|
|
|
17188
16878
|
const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
|
|
17189
16879
|
const optimizedAppearDataId = "framerAppearId";
|
|
17190
16880
|
const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
|
|
17191
|
-
const { schedule: microtask } = createRenderBatcher(queueMicrotask, false);
|
|
16881
|
+
const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
|
|
17192
16882
|
const SwitchLayoutGroupContext = createContext$1({});
|
|
17193
16883
|
function useVisualElement(Component2, visualState, props, createVisualElement, ProjectionNodeConstructor) {
|
|
17194
16884
|
var _a, _b;
|
|
@@ -19583,7 +19273,7 @@ function findSpring({ duration = springDefaults.duration, bounce = springDefault
|
|
|
19583
19273
|
envelope = (undampedFreq2) => {
|
|
19584
19274
|
const a4 = Math.exp(-undampedFreq2 * duration);
|
|
19585
19275
|
const b3 = (undampedFreq2 - velocity) * duration + 1;
|
|
19586
|
-
return -
|
|
19276
|
+
return -safeMin + a4 * b3;
|
|
19587
19277
|
};
|
|
19588
19278
|
derivative = (undampedFreq2) => {
|
|
19589
19279
|
const a4 = Math.exp(-undampedFreq2 * duration);
|
|
@@ -23960,6 +23650,127 @@ const BlurDiv = ({ children: children2, className: className2 }) => {
|
|
|
23960
23650
|
}
|
|
23961
23651
|
);
|
|
23962
23652
|
};
|
|
23653
|
+
const H3 = ({ children: children2 }) => {
|
|
23654
|
+
return /* @__PURE__ */ jsx("h3", { className: "scroll-m-20 text-2xl font-semibold tracking-tight", children: children2 });
|
|
23655
|
+
};
|
|
23656
|
+
const SpinLoader = ({
|
|
23657
|
+
size: size2 = 35,
|
|
23658
|
+
color: color2 = "black",
|
|
23659
|
+
speed = 0.9,
|
|
23660
|
+
strokeWidth = 3.5,
|
|
23661
|
+
text,
|
|
23662
|
+
textSpeed = 2e3,
|
|
23663
|
+
// Default 2 seconds per text
|
|
23664
|
+
textColor = "black"
|
|
23665
|
+
}) => {
|
|
23666
|
+
const [currentTextIndex, setCurrentTextIndex] = useState(0);
|
|
23667
|
+
const textArray = Array.isArray(text) ? text : text ? [text] : [];
|
|
23668
|
+
useEffect(() => {
|
|
23669
|
+
if (textArray.length <= 1) return;
|
|
23670
|
+
if (currentTextIndex >= textArray.length - 1) return;
|
|
23671
|
+
const interval = setInterval(() => {
|
|
23672
|
+
setCurrentTextIndex(
|
|
23673
|
+
(current) => current < textArray.length - 1 ? current + 1 : current
|
|
23674
|
+
);
|
|
23675
|
+
}, textSpeed);
|
|
23676
|
+
return () => clearInterval(interval);
|
|
23677
|
+
}, [textArray.length, textSpeed, currentTextIndex]);
|
|
23678
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-center items-center h-full", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
23679
|
+
/* @__PURE__ */ jsxs(
|
|
23680
|
+
"div",
|
|
23681
|
+
{
|
|
23682
|
+
className: "loader-container",
|
|
23683
|
+
style: {
|
|
23684
|
+
"--uib-size": `${size2}px`,
|
|
23685
|
+
"--uib-color": color2,
|
|
23686
|
+
"--uib-speed": `${speed}s`,
|
|
23687
|
+
"--uib-stroke": `${strokeWidth}px`
|
|
23688
|
+
},
|
|
23689
|
+
children: [
|
|
23690
|
+
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
23691
|
+
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
23692
|
+
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
23693
|
+
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
23694
|
+
/* @__PURE__ */ jsx("div", { className: "line" }),
|
|
23695
|
+
/* @__PURE__ */ jsx("div", { className: "line" })
|
|
23696
|
+
]
|
|
23697
|
+
}
|
|
23698
|
+
),
|
|
23699
|
+
textArray.length > 0 && /* @__PURE__ */ jsx(
|
|
23700
|
+
"div",
|
|
23701
|
+
{
|
|
23702
|
+
className: `text-center text-sm text-muted-foreground animate-fade-in ${textColor ? `text-${textColor}` : ""}`,
|
|
23703
|
+
children: /* @__PURE__ */ jsx(H3, { children: textArray[currentTextIndex] })
|
|
23704
|
+
},
|
|
23705
|
+
currentTextIndex
|
|
23706
|
+
),
|
|
23707
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
23708
|
+
.loader-container {
|
|
23709
|
+
position: relative;
|
|
23710
|
+
display: flex;
|
|
23711
|
+
align-items: center;
|
|
23712
|
+
justify-content: center;
|
|
23713
|
+
height: var(--uib-size);
|
|
23714
|
+
width: var(--uib-size);
|
|
23715
|
+
}
|
|
23716
|
+
.line {
|
|
23717
|
+
position: absolute;
|
|
23718
|
+
top: calc(50% - var(--uib-stroke) / 2);
|
|
23719
|
+
left: 0;
|
|
23720
|
+
height: var(--uib-stroke);
|
|
23721
|
+
width: 100%;
|
|
23722
|
+
border-radius: calc(var(--uib-stroke) / 2);
|
|
23723
|
+
background-color: var(--uib-color);
|
|
23724
|
+
animation: rotate var(--uib-speed) ease-in-out infinite;
|
|
23725
|
+
transition: background-color 0.3s ease;
|
|
23726
|
+
}
|
|
23727
|
+
.line:nth-child(1) {
|
|
23728
|
+
animation-delay: calc(var(--uib-speed) * -0.375);
|
|
23729
|
+
}
|
|
23730
|
+
.line:nth-child(2) {
|
|
23731
|
+
animation-delay: calc(var(--uib-speed) * -0.375);
|
|
23732
|
+
opacity: 0.8;
|
|
23733
|
+
}
|
|
23734
|
+
.line:nth-child(3) {
|
|
23735
|
+
animation-delay: calc(var(--uib-speed) * -0.3);
|
|
23736
|
+
opacity: 0.6;
|
|
23737
|
+
}
|
|
23738
|
+
.line:nth-child(4) {
|
|
23739
|
+
animation-delay: calc(var(--uib-speed) * -0.225);
|
|
23740
|
+
opacity: 0.4;
|
|
23741
|
+
}
|
|
23742
|
+
.line:nth-child(5) {
|
|
23743
|
+
animation-delay: calc(var(--uib-speed) * -0.15);
|
|
23744
|
+
opacity: 0.2;
|
|
23745
|
+
}
|
|
23746
|
+
.line:nth-child(6) {
|
|
23747
|
+
animation-delay: calc(var(--uib-speed) * -0.075);
|
|
23748
|
+
opacity: 0.1;
|
|
23749
|
+
}
|
|
23750
|
+
@keyframes rotate {
|
|
23751
|
+
0% {
|
|
23752
|
+
transform: rotate(0deg);
|
|
23753
|
+
}
|
|
23754
|
+
100% {
|
|
23755
|
+
transform: rotate(180deg);
|
|
23756
|
+
}
|
|
23757
|
+
}
|
|
23758
|
+
.animate-fade-in {
|
|
23759
|
+
animation: fadeIn 0.5s ease-in-out;
|
|
23760
|
+
}
|
|
23761
|
+
@keyframes fadeIn {
|
|
23762
|
+
from {
|
|
23763
|
+
opacity: 0;
|
|
23764
|
+
transform: translateY(5px);
|
|
23765
|
+
}
|
|
23766
|
+
to {
|
|
23767
|
+
opacity: 1;
|
|
23768
|
+
transform: translateY(0);
|
|
23769
|
+
}
|
|
23770
|
+
}
|
|
23771
|
+
` })
|
|
23772
|
+
] }) });
|
|
23773
|
+
};
|
|
23963
23774
|
const BUSINESS_SEGMENT_PATH = "/segments";
|
|
23964
23775
|
const BUSINESS_AUTOMATION_PATH = "/automations";
|
|
23965
23776
|
const CHANNEL_SENDER_PATH = "/channel/senders";
|
|
@@ -24103,7 +23914,6 @@ var AutomationStatus = /* @__PURE__ */ ((AutomationStatus2) => {
|
|
|
24103
23914
|
AutomationStatus2["DRAFT"] = "draft";
|
|
24104
23915
|
AutomationStatus2["ACTIVE"] = "active";
|
|
24105
23916
|
AutomationStatus2["RUNNING"] = "running";
|
|
24106
|
-
AutomationStatus2["SCHEDULED"] = "scheduled";
|
|
24107
23917
|
AutomationStatus2["COMPLETED"] = "completed";
|
|
24108
23918
|
AutomationStatus2["FAILED"] = "failed";
|
|
24109
23919
|
AutomationStatus2["DEACTIVATED"] = "deactivated";
|
|
@@ -24280,6 +24090,11 @@ const Button$1 = React.forwardRef(
|
|
|
24280
24090
|
}
|
|
24281
24091
|
);
|
|
24282
24092
|
Button$1.displayName = "Button";
|
|
24093
|
+
var CreateAutomationModalStep = /* @__PURE__ */ ((CreateAutomationModalStep2) => {
|
|
24094
|
+
CreateAutomationModalStep2["ChooseAutomationType"] = "choose-automation-type";
|
|
24095
|
+
CreateAutomationModalStep2["SetAutomationName"] = "set-automation-name";
|
|
24096
|
+
return CreateAutomationModalStep2;
|
|
24097
|
+
})(CreateAutomationModalStep || {});
|
|
24283
24098
|
const ActionButtons$1 = ({
|
|
24284
24099
|
onClose,
|
|
24285
24100
|
currentStep,
|
|
@@ -24292,34 +24107,36 @@ const ActionButtons$1 = ({
|
|
|
24292
24107
|
Button$1,
|
|
24293
24108
|
{
|
|
24294
24109
|
variant: "secondary",
|
|
24295
|
-
className:
|
|
24110
|
+
className: "px-4 py-2",
|
|
24296
24111
|
onClick: () => {
|
|
24297
|
-
if (currentStep ===
|
|
24112
|
+
if (currentStep === CreateAutomationModalStep.ChooseAutomationType) {
|
|
24298
24113
|
onClose?.(false);
|
|
24299
24114
|
} else {
|
|
24300
24115
|
switch (currentStep) {
|
|
24301
|
-
case
|
|
24302
|
-
setCurrentStep(
|
|
24116
|
+
case CreateAutomationModalStep.SetAutomationName:
|
|
24117
|
+
setCurrentStep(
|
|
24118
|
+
CreateAutomationModalStep.ChooseAutomationType
|
|
24119
|
+
);
|
|
24303
24120
|
break;
|
|
24304
24121
|
default:
|
|
24305
24122
|
throw new Error("Invalid step");
|
|
24306
24123
|
}
|
|
24307
24124
|
}
|
|
24308
24125
|
},
|
|
24309
|
-
children: currentStep ===
|
|
24126
|
+
children: currentStep === CreateAutomationModalStep.ChooseAutomationType ? "Cancel" : "Back"
|
|
24310
24127
|
}
|
|
24311
24128
|
),
|
|
24312
24129
|
/* @__PURE__ */ jsx(
|
|
24313
24130
|
Button$1,
|
|
24314
24131
|
{
|
|
24315
|
-
className:
|
|
24132
|
+
className: "px-4 py-2",
|
|
24316
24133
|
onClick: () => {
|
|
24317
|
-
if (!isDisabled && currentStep ===
|
|
24134
|
+
if (!isDisabled && currentStep === CreateAutomationModalStep.SetAutomationName) {
|
|
24318
24135
|
createAutomation2();
|
|
24319
24136
|
}
|
|
24320
24137
|
},
|
|
24321
24138
|
disabled: isDisabled,
|
|
24322
|
-
children: currentStep ===
|
|
24139
|
+
children: currentStep === CreateAutomationModalStep.SetAutomationName ? "Create" : "Next"
|
|
24323
24140
|
}
|
|
24324
24141
|
)
|
|
24325
24142
|
] }) });
|
|
@@ -24343,6 +24160,8 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
|
|
|
24343
24160
|
const styles$5 = {
|
|
24344
24161
|
title: "text-3xl mb-8",
|
|
24345
24162
|
grid: "grid grid-cols-2 gap-6",
|
|
24163
|
+
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",
|
|
24164
|
+
cardDisabled: "opacity-60 cursor-not-allowed hover:border-gray-200",
|
|
24346
24165
|
container: "relative p-6 rounded-lg"
|
|
24347
24166
|
};
|
|
24348
24167
|
const ChooseAutomationType = ({ onNext, iconDefinitions }) => {
|
|
@@ -24409,7 +24228,8 @@ function UnreachableCaseStatement(x3, enumObj) {
|
|
|
24409
24228
|
const styles$4 = {
|
|
24410
24229
|
iconWrapper: "mb-4 flex items-center justify-center",
|
|
24411
24230
|
cardTitle: "text-lg font-medium mb-2",
|
|
24412
|
-
cardDescription: "text-sm text-gray-600"
|
|
24231
|
+
cardDescription: "text-sm text-gray-600",
|
|
24232
|
+
comingSoonBadge: "absolute top-3 right-3 bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full"
|
|
24413
24233
|
};
|
|
24414
24234
|
const OneTimeBroadcast = ({ iconDefinitions }) => {
|
|
24415
24235
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -24465,7 +24285,7 @@ const CreateAutomationModal = ({
|
|
|
24465
24285
|
const [startedCreating, setStartedCreating] = useState(false);
|
|
24466
24286
|
const mergedIconDefinitions = mergeIconDefinitions(iconDefinitions);
|
|
24467
24287
|
const [currentStep, setCurrentStep] = useState(
|
|
24468
|
-
|
|
24288
|
+
CreateAutomationModalStep.ChooseAutomationType
|
|
24469
24289
|
);
|
|
24470
24290
|
const [automationState, setAutomationState] = useState({
|
|
24471
24291
|
name: void 0,
|
|
@@ -24527,17 +24347,17 @@ const CreateAutomationModal = ({
|
|
|
24527
24347
|
}
|
|
24528
24348
|
return /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
|
|
24529
24349
|
/* @__PURE__ */ jsxs(AnimatePresence, { mode: "wait", children: [
|
|
24530
|
-
currentStep ===
|
|
24350
|
+
currentStep === CreateAutomationModalStep.ChooseAutomationType && /* @__PURE__ */ jsx(BlurDiv, { children: /* @__PURE__ */ jsx(
|
|
24531
24351
|
ChooseAutomationType,
|
|
24532
24352
|
{
|
|
24533
24353
|
onNext: (selectedType) => {
|
|
24534
24354
|
setAutomationState({ ...automationState, type: selectedType });
|
|
24535
|
-
setCurrentStep(
|
|
24355
|
+
setCurrentStep(CreateAutomationModalStep.SetAutomationName);
|
|
24536
24356
|
},
|
|
24537
24357
|
iconDefinitions: mergedIconDefinitions
|
|
24538
24358
|
}
|
|
24539
24359
|
) }, "choose-automation-type"),
|
|
24540
|
-
currentStep ===
|
|
24360
|
+
currentStep === CreateAutomationModalStep.SetAutomationName && automationState.type && /* @__PURE__ */ jsx(BlurDiv, { children: /* @__PURE__ */ jsx(
|
|
24541
24361
|
SetAutomationName,
|
|
24542
24362
|
{
|
|
24543
24363
|
iconDefinitions: mergedIconDefinitions,
|
|
@@ -25975,7 +25795,9 @@ async function loadRouteModule(route, routeModulesCache) {
|
|
|
25975
25795
|
);
|
|
25976
25796
|
console.error(error2);
|
|
25977
25797
|
if (window.__reactRouterContext && window.__reactRouterContext.isSpaMode && // @ts-expect-error
|
|
25978
|
-
void 0)
|
|
25798
|
+
void 0) {
|
|
25799
|
+
throw error2;
|
|
25800
|
+
}
|
|
25979
25801
|
window.location.reload();
|
|
25980
25802
|
return new Promise(() => {
|
|
25981
25803
|
});
|
|
@@ -26793,7 +26615,7 @@ function useId$1(deterministicId) {
|
|
|
26793
26615
|
useLayoutEffect2(() => {
|
|
26794
26616
|
setId((reactId) => reactId ?? String(count$1++));
|
|
26795
26617
|
}, [deterministicId]);
|
|
26796
|
-
return
|
|
26618
|
+
return id2 ? `radix-${id2}` : "";
|
|
26797
26619
|
}
|
|
26798
26620
|
var Slot$1 = React.forwardRef((props, forwardedRef) => {
|
|
26799
26621
|
const { children: children2, ...slotProps } = props;
|
|
@@ -26869,7 +26691,7 @@ function getElementRef$1(element) {
|
|
|
26869
26691
|
}
|
|
26870
26692
|
return element.props.ref || element.ref;
|
|
26871
26693
|
}
|
|
26872
|
-
var NODES$
|
|
26694
|
+
var NODES$1 = [
|
|
26873
26695
|
"a",
|
|
26874
26696
|
"button",
|
|
26875
26697
|
"div",
|
|
@@ -26887,7 +26709,7 @@ var NODES$2 = [
|
|
|
26887
26709
|
"svg",
|
|
26888
26710
|
"ul"
|
|
26889
26711
|
];
|
|
26890
|
-
var Primitive$
|
|
26712
|
+
var Primitive$1 = NODES$1.reduce((primitive, node) => {
|
|
26891
26713
|
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
26892
26714
|
const { asChild, ...primitiveProps } = props;
|
|
26893
26715
|
const Comp = asChild ? Slot$1 : node;
|
|
@@ -26990,7 +26812,7 @@ var DismissableLayer$2 = React.forwardRef(
|
|
|
26990
26812
|
return () => document.removeEventListener(CONTEXT_UPDATE$2, handleUpdate);
|
|
26991
26813
|
}, []);
|
|
26992
26814
|
return /* @__PURE__ */ jsx(
|
|
26993
|
-
Primitive$
|
|
26815
|
+
Primitive$1.div,
|
|
26994
26816
|
{
|
|
26995
26817
|
...layerProps,
|
|
26996
26818
|
ref: composedRefs,
|
|
@@ -27023,7 +26845,7 @@ var DismissableLayerBranch$2 = React.forwardRef((props, forwardedRef) => {
|
|
|
27023
26845
|
};
|
|
27024
26846
|
}
|
|
27025
26847
|
}, [context.branches]);
|
|
27026
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
26848
|
+
return /* @__PURE__ */ jsx(Primitive$1.div, { ...props, ref: composedRefs });
|
|
27027
26849
|
});
|
|
27028
26850
|
DismissableLayerBranch$2.displayName = BRANCH_NAME$2;
|
|
27029
26851
|
function usePointerDownOutside$2(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -27220,7 +27042,7 @@ var FocusScope$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
27220
27042
|
},
|
|
27221
27043
|
[loop, trapped, focusScope.paused]
|
|
27222
27044
|
);
|
|
27223
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
27045
|
+
return /* @__PURE__ */ jsx(Primitive$1.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
27224
27046
|
});
|
|
27225
27047
|
FocusScope$1.displayName = FOCUS_SCOPE_NAME$1;
|
|
27226
27048
|
function focusFirst$3(candidates, { select = false } = {}) {
|
|
@@ -27308,7 +27130,7 @@ var Portal$5 = React.forwardRef((props, forwardedRef) => {
|
|
|
27308
27130
|
const [mounted, setMounted] = React.useState(false);
|
|
27309
27131
|
useLayoutEffect2(() => setMounted(true), []);
|
|
27310
27132
|
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
27311
|
-
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$
|
|
27133
|
+
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$1.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
27312
27134
|
});
|
|
27313
27135
|
Portal$5.displayName = PORTAL_NAME$6;
|
|
27314
27136
|
var count = 0;
|
|
@@ -27815,9 +27637,9 @@ var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll)
|
|
|
27815
27637
|
!targetInLock && target !== document.body || // self content
|
|
27816
27638
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
27817
27639
|
);
|
|
27818
|
-
if (isDeltaPositive && (Math.abs(availableScroll) < 1 ||
|
|
27640
|
+
if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll)) {
|
|
27819
27641
|
shouldCancelScroll = true;
|
|
27820
|
-
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 ||
|
|
27642
|
+
} else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) {
|
|
27821
27643
|
shouldCancelScroll = true;
|
|
27822
27644
|
}
|
|
27823
27645
|
return shouldCancelScroll;
|
|
@@ -27899,7 +27721,7 @@ function RemoveScrollSideCar$1(props) {
|
|
|
27899
27721
|
return true;
|
|
27900
27722
|
}
|
|
27901
27723
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
27902
|
-
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
27724
|
+
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
27903
27725
|
}, []);
|
|
27904
27726
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
27905
27727
|
var event = _event;
|
|
@@ -28153,7 +27975,7 @@ var DialogTrigger = React.forwardRef(
|
|
|
28153
27975
|
const context = useDialogContext(TRIGGER_NAME$5, __scopeDialog);
|
|
28154
27976
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
28155
27977
|
return /* @__PURE__ */ jsx(
|
|
28156
|
-
Primitive$
|
|
27978
|
+
Primitive$1.button,
|
|
28157
27979
|
{
|
|
28158
27980
|
type: "button",
|
|
28159
27981
|
"aria-haspopup": "dialog",
|
|
@@ -28196,7 +28018,7 @@ var DialogOverlayImpl = React.forwardRef(
|
|
|
28196
28018
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
28197
28019
|
// ie. when `Overlay` and `Content` are siblings
|
|
28198
28020
|
/* @__PURE__ */ jsx(ReactRemoveScroll$1, { as: Slot$1, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
|
|
28199
|
-
Primitive$
|
|
28021
|
+
Primitive$1.div,
|
|
28200
28022
|
{
|
|
28201
28023
|
"data-state": getState$1(context.open),
|
|
28202
28024
|
...overlayProps,
|
|
@@ -28334,7 +28156,7 @@ var DialogTitle$1 = React.forwardRef(
|
|
|
28334
28156
|
(props, forwardedRef) => {
|
|
28335
28157
|
const { __scopeDialog, ...titleProps } = props;
|
|
28336
28158
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
28337
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28159
|
+
return /* @__PURE__ */ jsx(Primitive$1.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
28338
28160
|
}
|
|
28339
28161
|
);
|
|
28340
28162
|
DialogTitle$1.displayName = TITLE_NAME;
|
|
@@ -28343,7 +28165,7 @@ var DialogDescription$1 = React.forwardRef(
|
|
|
28343
28165
|
(props, forwardedRef) => {
|
|
28344
28166
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
28345
28167
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
28346
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28168
|
+
return /* @__PURE__ */ jsx(Primitive$1.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
28347
28169
|
}
|
|
28348
28170
|
);
|
|
28349
28171
|
DialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
@@ -28353,7 +28175,7 @@ var DialogClose = React.forwardRef(
|
|
|
28353
28175
|
const { __scopeDialog, ...closeProps } = props;
|
|
28354
28176
|
const context = useDialogContext(CLOSE_NAME$1, __scopeDialog);
|
|
28355
28177
|
return /* @__PURE__ */ jsx(
|
|
28356
|
-
Primitive$
|
|
28178
|
+
Primitive$1.button,
|
|
28357
28179
|
{
|
|
28358
28180
|
type: "button",
|
|
28359
28181
|
...closeProps,
|
|
@@ -28408,63 +28230,6 @@ var Content$2 = DialogContent$1;
|
|
|
28408
28230
|
var Title = DialogTitle$1;
|
|
28409
28231
|
var Description = DialogDescription$1;
|
|
28410
28232
|
var Close = DialogClose;
|
|
28411
|
-
var NODES$1 = [
|
|
28412
|
-
"a",
|
|
28413
|
-
"button",
|
|
28414
|
-
"div",
|
|
28415
|
-
"form",
|
|
28416
|
-
"h2",
|
|
28417
|
-
"h3",
|
|
28418
|
-
"img",
|
|
28419
|
-
"input",
|
|
28420
|
-
"label",
|
|
28421
|
-
"li",
|
|
28422
|
-
"nav",
|
|
28423
|
-
"ol",
|
|
28424
|
-
"p",
|
|
28425
|
-
"span",
|
|
28426
|
-
"svg",
|
|
28427
|
-
"ul"
|
|
28428
|
-
];
|
|
28429
|
-
var Primitive$1 = NODES$1.reduce((primitive, node) => {
|
|
28430
|
-
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
28431
|
-
const { asChild, ...primitiveProps } = props;
|
|
28432
|
-
const Comp = asChild ? Slot$2 : node;
|
|
28433
|
-
if (typeof window !== "undefined") {
|
|
28434
|
-
window[Symbol.for("radix-ui")] = true;
|
|
28435
|
-
}
|
|
28436
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
28437
|
-
});
|
|
28438
|
-
Node2.displayName = `Primitive.${node}`;
|
|
28439
|
-
return { ...primitive, [node]: Node2 };
|
|
28440
|
-
}, {});
|
|
28441
|
-
var NAME$3 = "VisuallyHidden";
|
|
28442
|
-
var VisuallyHidden = React.forwardRef(
|
|
28443
|
-
(props, forwardedRef) => {
|
|
28444
|
-
return /* @__PURE__ */ jsx(
|
|
28445
|
-
Primitive$1.span,
|
|
28446
|
-
{
|
|
28447
|
-
...props,
|
|
28448
|
-
ref: forwardedRef,
|
|
28449
|
-
style: {
|
|
28450
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
28451
|
-
position: "absolute",
|
|
28452
|
-
border: 0,
|
|
28453
|
-
width: 1,
|
|
28454
|
-
height: 1,
|
|
28455
|
-
padding: 0,
|
|
28456
|
-
margin: -1,
|
|
28457
|
-
overflow: "hidden",
|
|
28458
|
-
clip: "rect(0, 0, 0, 0)",
|
|
28459
|
-
whiteSpace: "nowrap",
|
|
28460
|
-
wordWrap: "normal",
|
|
28461
|
-
...props.style
|
|
28462
|
-
}
|
|
28463
|
-
}
|
|
28464
|
-
);
|
|
28465
|
-
}
|
|
28466
|
-
);
|
|
28467
|
-
VisuallyHidden.displayName = NAME$3;
|
|
28468
28233
|
function cn(...inputs) {
|
|
28469
28234
|
return twMerge(clsx(inputs));
|
|
28470
28235
|
}
|
|
@@ -28475,7 +28240,7 @@ const DialogOverlay = React.forwardRef(({ className: className2, ...props }, ref
|
|
|
28475
28240
|
{
|
|
28476
28241
|
ref,
|
|
28477
28242
|
className: cn(
|
|
28478
|
-
"fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
28243
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
28479
28244
|
className2
|
|
28480
28245
|
),
|
|
28481
28246
|
...props
|
|
@@ -28626,7 +28391,7 @@ var DismissableLayer$1 = React.forwardRef(
|
|
|
28626
28391
|
return () => document.removeEventListener(CONTEXT_UPDATE$1, handleUpdate);
|
|
28627
28392
|
}, []);
|
|
28628
28393
|
return /* @__PURE__ */ jsx(
|
|
28629
|
-
Primitive$
|
|
28394
|
+
Primitive$2.div,
|
|
28630
28395
|
{
|
|
28631
28396
|
...layerProps,
|
|
28632
28397
|
ref: composedRefs,
|
|
@@ -28659,7 +28424,7 @@ var DismissableLayerBranch$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
28659
28424
|
};
|
|
28660
28425
|
}
|
|
28661
28426
|
}, [context.branches]);
|
|
28662
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28427
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...props, ref: composedRefs });
|
|
28663
28428
|
});
|
|
28664
28429
|
DismissableLayerBranch$1.displayName = BRANCH_NAME$1;
|
|
28665
28430
|
function usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -30581,7 +30346,7 @@ var NAME$2 = "Arrow";
|
|
|
30581
30346
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
30582
30347
|
const { children: children2, width = 10, height = 5, ...arrowProps } = props;
|
|
30583
30348
|
return /* @__PURE__ */ jsx(
|
|
30584
|
-
Primitive$
|
|
30349
|
+
Primitive$2.svg,
|
|
30585
30350
|
{
|
|
30586
30351
|
...arrowProps,
|
|
30587
30352
|
ref: forwardedRef,
|
|
@@ -30648,7 +30413,7 @@ var PopperAnchor = React.forwardRef(
|
|
|
30648
30413
|
React.useEffect(() => {
|
|
30649
30414
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
30650
30415
|
});
|
|
30651
|
-
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$
|
|
30416
|
+
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$2.div, { ...anchorProps, ref: composedRefs });
|
|
30652
30417
|
}
|
|
30653
30418
|
);
|
|
30654
30419
|
PopperAnchor.displayName = ANCHOR_NAME$2;
|
|
@@ -30775,7 +30540,7 @@ var PopperContent = React.forwardRef(
|
|
|
30775
30540
|
arrowY,
|
|
30776
30541
|
shouldHideArrow: cannotCenterArrow,
|
|
30777
30542
|
children: /* @__PURE__ */ jsx(
|
|
30778
|
-
Primitive$
|
|
30543
|
+
Primitive$2.div,
|
|
30779
30544
|
{
|
|
30780
30545
|
"data-side": placedSide,
|
|
30781
30546
|
"data-align": placedAlign,
|
|
@@ -31051,7 +30816,7 @@ var TooltipTrigger$1 = React.forwardRef(
|
|
|
31051
30816
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
31052
30817
|
}, [handlePointerUp]);
|
|
31053
30818
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
31054
|
-
Primitive$
|
|
30819
|
+
Primitive$2.button,
|
|
31055
30820
|
{
|
|
31056
30821
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
31057
30822
|
"data-state": context.stateAttribute,
|
|
@@ -32326,6 +32091,8 @@ const lightFormatters = {
|
|
|
32326
32091
|
}
|
|
32327
32092
|
};
|
|
32328
32093
|
const dayPeriodEnum$1 = {
|
|
32094
|
+
am: "am",
|
|
32095
|
+
pm: "pm",
|
|
32329
32096
|
midnight: "midnight",
|
|
32330
32097
|
noon: "noon",
|
|
32331
32098
|
morning: "morning",
|
|
@@ -33124,6 +32891,7 @@ const secondary$1 = "reach-styles-module__secondary___VQ4iH";
|
|
|
33124
32891
|
const destructive$1 = "reach-styles-module__destructive___RLaRD";
|
|
33125
32892
|
const outline$1 = "reach-styles-module__outline___L2VtW";
|
|
33126
32893
|
const google = "reach-styles-module__google___HcEij";
|
|
32894
|
+
const dark = "reach-styles-module__dark___729i-";
|
|
33127
32895
|
const date = "reach-styles-module__date___-6BC4";
|
|
33128
32896
|
const sizeDefault = "reach-styles-module__sizeDefault___iGTp4";
|
|
33129
32897
|
const sizeSm = "reach-styles-module__sizeSm___6T2oK";
|
|
@@ -33137,6 +32905,7 @@ const styles$2 = {
|
|
|
33137
32905
|
destructive: destructive$1,
|
|
33138
32906
|
outline: outline$1,
|
|
33139
32907
|
google,
|
|
32908
|
+
dark,
|
|
33140
32909
|
date,
|
|
33141
32910
|
sizeDefault,
|
|
33142
32911
|
sizeSm,
|
|
@@ -33372,10 +33141,6 @@ const AllAutomationList = ({
|
|
|
33372
33141
|
const statusConfig = {
|
|
33373
33142
|
draft: { className: "bg-gray-100 text-gray-700", label: "Draft" },
|
|
33374
33143
|
active: { className: "bg-green-100 text-green-700", label: "Active" },
|
|
33375
|
-
scheduled: {
|
|
33376
|
-
className: "bg-yellow-100 text-yellow-700",
|
|
33377
|
-
label: "Paused"
|
|
33378
|
-
},
|
|
33379
33144
|
completed: { className: "bg-blue-100 text-blue-700", label: "Completed" },
|
|
33380
33145
|
failed: { className: "bg-red-100 text-red-700", label: "Error" },
|
|
33381
33146
|
running: { className: "bg-purple-100 text-purple-700", label: "Running" },
|
|
@@ -33900,7 +33665,7 @@ const ActionButtons = ({ onClose, setClickedCreate, isDisabled, createButtonText
|
|
|
33900
33665
|
/* @__PURE__ */ jsx(
|
|
33901
33666
|
Button$1,
|
|
33902
33667
|
{
|
|
33903
|
-
className:
|
|
33668
|
+
className: "px-4 py-2",
|
|
33904
33669
|
onClick: () => onClose?.(false),
|
|
33905
33670
|
variant: "destructive",
|
|
33906
33671
|
children: "Cancel"
|
|
@@ -33909,7 +33674,7 @@ const ActionButtons = ({ onClose, setClickedCreate, isDisabled, createButtonText
|
|
|
33909
33674
|
/* @__PURE__ */ jsx(
|
|
33910
33675
|
Button$1,
|
|
33911
33676
|
{
|
|
33912
|
-
className:
|
|
33677
|
+
className: "px-4 py-2",
|
|
33913
33678
|
onClick: () => {
|
|
33914
33679
|
setClickedCreate(true);
|
|
33915
33680
|
},
|
|
@@ -33961,33 +33726,9 @@ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
|
33961
33726
|
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
33962
33727
|
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
33963
33728
|
}
|
|
33964
|
-
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
33965
|
-
const Context2 = /* @__PURE__ */ createContext$1(defaultContext);
|
|
33966
|
-
function Provider2(props) {
|
|
33967
|
-
const { children: children2, ...context } = props;
|
|
33968
|
-
const value = useMemo(
|
|
33969
|
-
() => context,
|
|
33970
|
-
Object.values(context)
|
|
33971
|
-
);
|
|
33972
|
-
return /* @__PURE__ */ createElement$1(Context2.Provider, {
|
|
33973
|
-
value
|
|
33974
|
-
}, children2);
|
|
33975
|
-
}
|
|
33976
|
-
function useContext2(consumerName) {
|
|
33977
|
-
const context = useContext$1(Context2);
|
|
33978
|
-
if (context) return context;
|
|
33979
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
33980
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
33981
|
-
}
|
|
33982
|
-
Provider2.displayName = rootComponentName + "Provider";
|
|
33983
|
-
return [
|
|
33984
|
-
Provider2,
|
|
33985
|
-
useContext2
|
|
33986
|
-
];
|
|
33987
|
-
}
|
|
33988
33729
|
function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
33989
33730
|
let defaultContexts = [];
|
|
33990
|
-
function $c512c27ab02ef895$export$
|
|
33731
|
+
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
33991
33732
|
const BaseContext = /* @__PURE__ */ createContext$1(defaultContext);
|
|
33992
33733
|
const index2 = defaultContexts.length;
|
|
33993
33734
|
defaultContexts = [
|
|
@@ -34040,7 +33781,7 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
34040
33781
|
};
|
|
34041
33782
|
createScope.scopeName = scopeName;
|
|
34042
33783
|
return [
|
|
34043
|
-
$c512c27ab02ef895$export$
|
|
33784
|
+
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
34044
33785
|
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
34045
33786
|
];
|
|
34046
33787
|
}
|
|
@@ -34083,7 +33824,7 @@ let $1746a345f3d73bb7$var$count = 0;
|
|
|
34083
33824
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
34084
33825
|
const [id2, setId] = React.useState($1746a345f3d73bb7$var$useReactId());
|
|
34085
33826
|
$9f79659886946c16$export$e5c5a5f917a5871c$1(() => {
|
|
34086
|
-
setId(
|
|
33827
|
+
if (!deterministicId) setId(
|
|
34087
33828
|
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
34088
33829
|
);
|
|
34089
33830
|
}, [
|
|
@@ -34978,9 +34719,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
34978
34719
|
!targetInLock && target !== document.body || // self content
|
|
34979
34720
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
34980
34721
|
);
|
|
34981
|
-
if (isDeltaPositive && (availableScroll === 0 ||
|
|
34722
|
+
if (isDeltaPositive && (availableScroll === 0 || !noOverscroll)) {
|
|
34982
34723
|
shouldCancelScroll = true;
|
|
34983
|
-
} else if (!isDeltaPositive && (availableScrollTop === 0 ||
|
|
34724
|
+
} else if (!isDeltaPositive && (availableScrollTop === 0 || !noOverscroll)) {
|
|
34984
34725
|
shouldCancelScroll = true;
|
|
34985
34726
|
}
|
|
34986
34727
|
return shouldCancelScroll;
|
|
@@ -35064,7 +34805,7 @@ function RemoveScrollSideCar(props) {
|
|
|
35064
34805
|
return true;
|
|
35065
34806
|
}
|
|
35066
34807
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
35067
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
34808
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
35068
34809
|
}, []);
|
|
35069
34810
|
var shouldPrevent = React.useCallback(function(_event) {
|
|
35070
34811
|
var event = _event;
|
|
@@ -35377,12 +35118,6 @@ const $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /* @__PURE__ */ forwardRef((pr
|
|
|
35377
35118
|
function $5d3850c4d0b4e6c7$var$getState(open) {
|
|
35378
35119
|
return open ? "open" : "closed";
|
|
35379
35120
|
}
|
|
35380
|
-
const $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = "DialogTitleWarning";
|
|
35381
|
-
$c512c27ab02ef895$export$fd42f52fd3ae1109($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {
|
|
35382
|
-
contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,
|
|
35383
|
-
titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,
|
|
35384
|
-
docsSlug: "dialog"
|
|
35385
|
-
});
|
|
35386
35121
|
const $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;
|
|
35387
35122
|
const $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;
|
|
35388
35123
|
const $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;
|
|
@@ -35874,7 +35609,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
35874
35609
|
},
|
|
35875
35610
|
[loop, trapped, focusScope.paused]
|
|
35876
35611
|
);
|
|
35877
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
35612
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
35878
35613
|
});
|
|
35879
35614
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
35880
35615
|
function focusFirst$2(candidates, { select = false } = {}) {
|
|
@@ -36020,7 +35755,7 @@ var PopoverTrigger$1 = React.forwardRef(
|
|
|
36020
35755
|
const popperScope = usePopperScope$2(__scopePopover);
|
|
36021
35756
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
36022
35757
|
const trigger = /* @__PURE__ */ jsx(
|
|
36023
|
-
Primitive$
|
|
35758
|
+
Primitive$2.button,
|
|
36024
35759
|
{
|
|
36025
35760
|
type: "button",
|
|
36026
35761
|
"aria-haspopup": "dialog",
|
|
@@ -36205,7 +35940,7 @@ var PopoverClose = React.forwardRef(
|
|
|
36205
35940
|
const { __scopePopover, ...closeProps } = props;
|
|
36206
35941
|
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
36207
35942
|
return /* @__PURE__ */ jsx(
|
|
36208
|
-
Primitive$
|
|
35943
|
+
Primitive$2.button,
|
|
36209
35944
|
{
|
|
36210
35945
|
type: "button",
|
|
36211
35946
|
...closeProps,
|
|
@@ -36241,7 +35976,7 @@ const PopoverContent = React__default.forwardRef(({ className: className2, align
|
|
|
36241
35976
|
align,
|
|
36242
35977
|
sideOffset,
|
|
36243
35978
|
className: cn$1(
|
|
36244
|
-
"z-
|
|
35979
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
36245
35980
|
className2
|
|
36246
35981
|
),
|
|
36247
35982
|
...props
|
|
@@ -36841,7 +36576,7 @@ var SelectTrigger$1 = React.forwardRef(
|
|
|
36841
36576
|
}
|
|
36842
36577
|
};
|
|
36843
36578
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
36844
|
-
Primitive$
|
|
36579
|
+
Primitive$2.button,
|
|
36845
36580
|
{
|
|
36846
36581
|
type: "button",
|
|
36847
36582
|
role: "combobox",
|
|
@@ -36900,7 +36635,7 @@ var SelectValue$1 = React.forwardRef(
|
|
|
36900
36635
|
onValueNodeHasChildrenChange(hasChildren);
|
|
36901
36636
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
36902
36637
|
return /* @__PURE__ */ jsx(
|
|
36903
|
-
Primitive$
|
|
36638
|
+
Primitive$2.span,
|
|
36904
36639
|
{
|
|
36905
36640
|
...valueProps,
|
|
36906
36641
|
ref: composedRefs,
|
|
@@ -36915,7 +36650,7 @@ var ICON_NAME = "SelectIcon";
|
|
|
36915
36650
|
var SelectIcon = React.forwardRef(
|
|
36916
36651
|
(props, forwardedRef) => {
|
|
36917
36652
|
const { __scopeSelect, children: children2, ...iconProps } = props;
|
|
36918
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
36653
|
+
return /* @__PURE__ */ jsx(Primitive$2.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children2 || "▼" });
|
|
36919
36654
|
}
|
|
36920
36655
|
);
|
|
36921
36656
|
SelectIcon.displayName = ICON_NAME;
|
|
@@ -37323,7 +37058,7 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {
|
|
|
37323
37058
|
zIndex: contentZIndex
|
|
37324
37059
|
},
|
|
37325
37060
|
children: /* @__PURE__ */ jsx(
|
|
37326
|
-
Primitive$
|
|
37061
|
+
Primitive$2.div,
|
|
37327
37062
|
{
|
|
37328
37063
|
...popperProps,
|
|
37329
37064
|
ref: composedRefs,
|
|
@@ -37397,7 +37132,7 @@ var SelectViewport = React.forwardRef(
|
|
|
37397
37132
|
}
|
|
37398
37133
|
),
|
|
37399
37134
|
/* @__PURE__ */ jsx(Collection$2.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
37400
|
-
Primitive$
|
|
37135
|
+
Primitive$2.div,
|
|
37401
37136
|
{
|
|
37402
37137
|
"data-radix-select-viewport": "",
|
|
37403
37138
|
role: "presentation",
|
|
@@ -37452,7 +37187,7 @@ var SelectGroup = React.forwardRef(
|
|
|
37452
37187
|
(props, forwardedRef) => {
|
|
37453
37188
|
const { __scopeSelect, ...groupProps } = props;
|
|
37454
37189
|
const groupId = useId$1();
|
|
37455
|
-
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive$
|
|
37190
|
+
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive$2.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
37456
37191
|
}
|
|
37457
37192
|
);
|
|
37458
37193
|
SelectGroup.displayName = GROUP_NAME$3;
|
|
@@ -37461,7 +37196,7 @@ var SelectLabel$1 = React.forwardRef(
|
|
|
37461
37196
|
(props, forwardedRef) => {
|
|
37462
37197
|
const { __scopeSelect, ...labelProps } = props;
|
|
37463
37198
|
const groupContext = useSelectGroupContext(LABEL_NAME$2, __scopeSelect);
|
|
37464
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37199
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
37465
37200
|
}
|
|
37466
37201
|
);
|
|
37467
37202
|
SelectLabel$1.displayName = LABEL_NAME$2;
|
|
@@ -37517,7 +37252,7 @@ var SelectItem$1 = React.forwardRef(
|
|
|
37517
37252
|
disabled,
|
|
37518
37253
|
textValue,
|
|
37519
37254
|
children: /* @__PURE__ */ jsx(
|
|
37520
|
-
Primitive$
|
|
37255
|
+
Primitive$2.div,
|
|
37521
37256
|
{
|
|
37522
37257
|
role: "option",
|
|
37523
37258
|
"aria-labelledby": textId,
|
|
@@ -37594,7 +37329,7 @@ var SelectItemText = React.forwardRef(
|
|
|
37594
37329
|
return () => onNativeOptionRemove(nativeOption);
|
|
37595
37330
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
37596
37331
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37597
|
-
/* @__PURE__ */ jsx(Primitive$
|
|
37332
|
+
/* @__PURE__ */ jsx(Primitive$2.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
|
37598
37333
|
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null
|
|
37599
37334
|
] });
|
|
37600
37335
|
}
|
|
@@ -37605,7 +37340,7 @@ var SelectItemIndicator = React.forwardRef(
|
|
|
37605
37340
|
(props, forwardedRef) => {
|
|
37606
37341
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
37607
37342
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
|
|
37608
|
-
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$
|
|
37343
|
+
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$2.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
37609
37344
|
}
|
|
37610
37345
|
);
|
|
37611
37346
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
|
|
@@ -37695,7 +37430,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
37695
37430
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
37696
37431
|
}, [getItems]);
|
|
37697
37432
|
return /* @__PURE__ */ jsx(
|
|
37698
|
-
Primitive$
|
|
37433
|
+
Primitive$2.div,
|
|
37699
37434
|
{
|
|
37700
37435
|
"aria-hidden": true,
|
|
37701
37436
|
...scrollIndicatorProps,
|
|
@@ -37722,7 +37457,7 @@ var SEPARATOR_NAME$2 = "SelectSeparator";
|
|
|
37722
37457
|
var SelectSeparator$1 = React.forwardRef(
|
|
37723
37458
|
(props, forwardedRef) => {
|
|
37724
37459
|
const { __scopeSelect, ...separatorProps } = props;
|
|
37725
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37460
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
37726
37461
|
}
|
|
37727
37462
|
);
|
|
37728
37463
|
SelectSeparator$1.displayName = SEPARATOR_NAME$2;
|
|
@@ -37760,7 +37495,7 @@ var BubbleSelect = React.forwardRef(
|
|
|
37760
37495
|
select.dispatchEvent(event);
|
|
37761
37496
|
}
|
|
37762
37497
|
}, [prevValue, value]);
|
|
37763
|
-
return /* @__PURE__ */ jsx(VisuallyHidden
|
|
37498
|
+
return /* @__PURE__ */ jsx(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
|
|
37764
37499
|
}
|
|
37765
37500
|
);
|
|
37766
37501
|
BubbleSelect.displayName = "BubbleSelect";
|
|
@@ -38476,7 +38211,7 @@ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
38476
38211
|
[]
|
|
38477
38212
|
),
|
|
38478
38213
|
children: /* @__PURE__ */ jsx(
|
|
38479
|
-
Primitive$
|
|
38214
|
+
Primitive$2.div,
|
|
38480
38215
|
{
|
|
38481
38216
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
38482
38217
|
"data-orientation": orientation,
|
|
@@ -38540,7 +38275,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
38540
38275
|
focusable,
|
|
38541
38276
|
active,
|
|
38542
38277
|
children: /* @__PURE__ */ jsx(
|
|
38543
|
-
Primitive$
|
|
38278
|
+
Primitive$2.span,
|
|
38544
38279
|
{
|
|
38545
38280
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
38546
38281
|
"data-orientation": context.orientation,
|
|
@@ -38647,7 +38382,7 @@ var Tabs$1 = React.forwardRef(
|
|
|
38647
38382
|
dir: direction,
|
|
38648
38383
|
activationMode,
|
|
38649
38384
|
children: /* @__PURE__ */ jsx(
|
|
38650
|
-
Primitive$
|
|
38385
|
+
Primitive$2.div,
|
|
38651
38386
|
{
|
|
38652
38387
|
dir: direction,
|
|
38653
38388
|
"data-orientation": orientation,
|
|
@@ -38675,7 +38410,7 @@ var TabsList$1 = React.forwardRef(
|
|
|
38675
38410
|
dir: context.dir,
|
|
38676
38411
|
loop,
|
|
38677
38412
|
children: /* @__PURE__ */ jsx(
|
|
38678
|
-
Primitive$
|
|
38413
|
+
Primitive$2.div,
|
|
38679
38414
|
{
|
|
38680
38415
|
role: "tablist",
|
|
38681
38416
|
"aria-orientation": context.orientation,
|
|
@@ -38705,7 +38440,7 @@ var TabsTrigger$1 = React.forwardRef(
|
|
|
38705
38440
|
focusable: !disabled,
|
|
38706
38441
|
active: isSelected,
|
|
38707
38442
|
children: /* @__PURE__ */ jsx(
|
|
38708
|
-
Primitive$
|
|
38443
|
+
Primitive$2.button,
|
|
38709
38444
|
{
|
|
38710
38445
|
type: "button",
|
|
38711
38446
|
role: "tab",
|
|
@@ -38754,7 +38489,7 @@ var TabsContent$1 = React.forwardRef(
|
|
|
38754
38489
|
return () => cancelAnimationFrame(rAF);
|
|
38755
38490
|
}, []);
|
|
38756
38491
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
|
|
38757
|
-
Primitive$
|
|
38492
|
+
Primitive$2.div,
|
|
38758
38493
|
{
|
|
38759
38494
|
"data-state": isSelected ? "active" : "inactive",
|
|
38760
38495
|
"data-orientation": context.orientation,
|
|
@@ -39444,7 +39179,7 @@ var DismissableLayer = React.forwardRef(
|
|
|
39444
39179
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
39445
39180
|
}, []);
|
|
39446
39181
|
return /* @__PURE__ */ jsx(
|
|
39447
|
-
Primitive$
|
|
39182
|
+
Primitive$2.div,
|
|
39448
39183
|
{
|
|
39449
39184
|
...layerProps,
|
|
39450
39185
|
ref: composedRefs,
|
|
@@ -39477,7 +39212,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
|
|
|
39477
39212
|
};
|
|
39478
39213
|
}
|
|
39479
39214
|
}, [context.branches]);
|
|
39480
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
39215
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...props, ref: composedRefs });
|
|
39481
39216
|
});
|
|
39482
39217
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
39483
39218
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -39882,7 +39617,7 @@ var GROUP_NAME$1 = "MenuGroup";
|
|
|
39882
39617
|
var MenuGroup = React.forwardRef(
|
|
39883
39618
|
(props, forwardedRef) => {
|
|
39884
39619
|
const { __scopeMenu, ...groupProps } = props;
|
|
39885
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
39620
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
39886
39621
|
}
|
|
39887
39622
|
);
|
|
39888
39623
|
MenuGroup.displayName = GROUP_NAME$1;
|
|
@@ -39890,7 +39625,7 @@ var LABEL_NAME$1 = "MenuLabel";
|
|
|
39890
39625
|
var MenuLabel = React.forwardRef(
|
|
39891
39626
|
(props, forwardedRef) => {
|
|
39892
39627
|
const { __scopeMenu, ...labelProps } = props;
|
|
39893
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
39628
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...labelProps, ref: forwardedRef });
|
|
39894
39629
|
}
|
|
39895
39630
|
);
|
|
39896
39631
|
MenuLabel.displayName = LABEL_NAME$1;
|
|
@@ -39966,7 +39701,7 @@ var MenuItemImpl = React.forwardRef(
|
|
|
39966
39701
|
disabled,
|
|
39967
39702
|
textValue: textValue ?? textContent,
|
|
39968
39703
|
children: /* @__PURE__ */ jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
|
|
39969
|
-
Primitive$
|
|
39704
|
+
Primitive$2.div,
|
|
39970
39705
|
{
|
|
39971
39706
|
role: "menuitem",
|
|
39972
39707
|
"data-highlighted": isFocused ? "" : void 0,
|
|
@@ -40074,7 +39809,7 @@ var MenuItemIndicator = React.forwardRef(
|
|
|
40074
39809
|
{
|
|
40075
39810
|
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
40076
39811
|
children: /* @__PURE__ */ jsx(
|
|
40077
|
-
Primitive$
|
|
39812
|
+
Primitive$2.span,
|
|
40078
39813
|
{
|
|
40079
39814
|
...itemIndicatorProps,
|
|
40080
39815
|
ref: forwardedRef,
|
|
@@ -40091,7 +39826,7 @@ var MenuSeparator = React.forwardRef(
|
|
|
40091
39826
|
(props, forwardedRef) => {
|
|
40092
39827
|
const { __scopeMenu, ...separatorProps } = props;
|
|
40093
39828
|
return /* @__PURE__ */ jsx(
|
|
40094
|
-
Primitive$
|
|
39829
|
+
Primitive$2.div,
|
|
40095
39830
|
{
|
|
40096
39831
|
role: "separator",
|
|
40097
39832
|
"aria-orientation": "horizontal",
|
|
@@ -40377,7 +40112,7 @@ var DropdownMenuTrigger$1 = React.forwardRef(
|
|
|
40377
40112
|
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
|
40378
40113
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
40379
40114
|
return /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
40380
|
-
Primitive$
|
|
40115
|
+
Primitive$2.button,
|
|
40381
40116
|
{
|
|
40382
40117
|
type: "button",
|
|
40383
40118
|
id: context.triggerId,
|
|
@@ -40853,7 +40588,7 @@ var ChannelAccountTypeEnum = /* @__PURE__ */ ((ChannelAccountTypeEnum2) => {
|
|
|
40853
40588
|
var NAME = "Label";
|
|
40854
40589
|
var Label$1 = React.forwardRef((props, forwardedRef) => {
|
|
40855
40590
|
return /* @__PURE__ */ jsx(
|
|
40856
|
-
Primitive$
|
|
40591
|
+
Primitive$2.label,
|
|
40857
40592
|
{
|
|
40858
40593
|
...props,
|
|
40859
40594
|
ref: forwardedRef,
|
|
@@ -41480,41 +41215,53 @@ const EmailPreview = ({ automation }) => {
|
|
|
41480
41215
|
}
|
|
41481
41216
|
}).filter((d4) => d4 !== null);
|
|
41482
41217
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
41483
|
-
/* @__PURE__ */ jsx(Dialog, { open: showHelpDialog, onOpenChange: setShowHelpDialog, children: /* @__PURE__ */
|
|
41484
|
-
|
|
41485
|
-
|
|
41486
|
-
/* @__PURE__ */
|
|
41487
|
-
|
|
41218
|
+
/* @__PURE__ */ jsx(Dialog, { open: showHelpDialog, onOpenChange: setShowHelpDialog, children: /* @__PURE__ */ jsxs(DialogContent, { className: "min-w-[50vw] min-h-[50vh]", children: [
|
|
41219
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
41220
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Email Preview Help" }),
|
|
41221
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Learn more about the email preview and how to use it to create your email." })
|
|
41222
|
+
] }),
|
|
41223
|
+
/* @__PURE__ */ jsx(EmailPreviewHelpDialog, {})
|
|
41224
|
+
] }) }),
|
|
41225
|
+
/* @__PURE__ */ jsx(Dialog, { open: showStripoEditor, onOpenChange: setShowStripoEditor, children: /* @__PURE__ */ jsxs(DialogContent, { className: "min-w-[100vw] min-h-[100vh]", hideCloseButton: true, children: [
|
|
41226
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
41227
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Email Editor" }),
|
|
41228
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Learn more about the email editor and how to use it to create your email." })
|
|
41229
|
+
] }),
|
|
41230
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full h-full", children: [
|
|
41231
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center p-1 border-b", children: [
|
|
41232
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
41233
|
+
/* @__PURE__ */ jsx("h2", { className: "text-lg font-medium", children: "Email Editor" }),
|
|
41234
|
+
/* @__PURE__ */ jsx(
|
|
41235
|
+
InfoTooltip,
|
|
41236
|
+
{
|
|
41237
|
+
title: "Click to learn more about email template ",
|
|
41238
|
+
onClick: () => setShowHelpDialog(true)
|
|
41239
|
+
}
|
|
41240
|
+
)
|
|
41241
|
+
] }),
|
|
41488
41242
|
/* @__PURE__ */ jsx(
|
|
41489
|
-
|
|
41243
|
+
"button",
|
|
41490
41244
|
{
|
|
41491
|
-
|
|
41492
|
-
|
|
41245
|
+
onClick: () => setSaveClicked(true),
|
|
41246
|
+
className: "text-sm bg-black text-white px-3 py-1 rounded",
|
|
41247
|
+
children: "Save"
|
|
41493
41248
|
}
|
|
41494
41249
|
)
|
|
41495
41250
|
] }),
|
|
41496
|
-
/* @__PURE__ */ jsx(
|
|
41497
|
-
|
|
41251
|
+
/* @__PURE__ */ jsx("div", { className: " w-full", children: /* @__PURE__ */ jsx(
|
|
41252
|
+
StripoWrapper,
|
|
41498
41253
|
{
|
|
41499
|
-
|
|
41500
|
-
|
|
41501
|
-
|
|
41254
|
+
showStripoEditor,
|
|
41255
|
+
automation,
|
|
41256
|
+
setShowStripoEditor,
|
|
41257
|
+
saveClicked,
|
|
41258
|
+
setSaveClicked,
|
|
41259
|
+
stripoDialogDimensions,
|
|
41260
|
+
setCommunicationGroupId
|
|
41502
41261
|
}
|
|
41503
|
-
)
|
|
41504
|
-
] })
|
|
41505
|
-
|
|
41506
|
-
StripoWrapper,
|
|
41507
|
-
{
|
|
41508
|
-
automation,
|
|
41509
|
-
setShowStripoEditor,
|
|
41510
|
-
saveClicked,
|
|
41511
|
-
setSaveClicked,
|
|
41512
|
-
stripoDialogDimensions,
|
|
41513
|
-
setCommunicationGroupId,
|
|
41514
|
-
showStripoEditor
|
|
41515
|
-
}
|
|
41516
|
-
) })
|
|
41517
|
-
] }) }) }),
|
|
41262
|
+
) })
|
|
41263
|
+
] })
|
|
41264
|
+
] }) }),
|
|
41518
41265
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-6", children: [
|
|
41519
41266
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
41520
41267
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -41640,7 +41387,7 @@ const EmailPreview = ({ automation }) => {
|
|
|
41640
41387
|
] });
|
|
41641
41388
|
};
|
|
41642
41389
|
const getMe = async () => {
|
|
41643
|
-
const response = await baseRequest("/me");
|
|
41390
|
+
const response = await baseRequest("/businesses/me");
|
|
41644
41391
|
return response.data;
|
|
41645
41392
|
};
|
|
41646
41393
|
const useMe = () => {
|
|
@@ -41780,69 +41527,75 @@ ${message2 ?? ""}`);
|
|
|
41780
41527
|
(sender) => sender.channel_sender_metadata.from
|
|
41781
41528
|
);
|
|
41782
41529
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
41783
|
-
/* @__PURE__ */ jsx(Dialog, { open: showSmsEditor, onOpenChange: setShowSmsEditor, children: /* @__PURE__ */
|
|
41784
|
-
/* @__PURE__ */
|
|
41785
|
-
|
|
41786
|
-
{
|
|
41787
|
-
|
|
41788
|
-
|
|
41789
|
-
|
|
41790
|
-
|
|
41791
|
-
onChange: (e4) => {
|
|
41792
|
-
const newValue = e4.target.value;
|
|
41793
|
-
setMessage(
|
|
41794
|
-
newValue.slice(0, 1600 - (companyName?.length || 0))
|
|
41795
|
-
);
|
|
41796
|
-
},
|
|
41797
|
-
maxLength: 1600 - (companyName?.length || 0)
|
|
41798
|
-
}
|
|
41799
|
-
),
|
|
41800
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-end gap-2", children: [
|
|
41801
|
-
/* @__PURE__ */ jsxs(
|
|
41802
|
-
Select,
|
|
41530
|
+
/* @__PURE__ */ jsx(Dialog, { open: showSmsEditor, onOpenChange: setShowSmsEditor, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
41531
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
41532
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "SMS Editor" }),
|
|
41533
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Learn more about the SMS editor and how to use it to create your SMS." })
|
|
41534
|
+
] }),
|
|
41535
|
+
/* @__PURE__ */ jsxs("div", { className: "", children: [
|
|
41536
|
+
/* @__PURE__ */ jsx(
|
|
41537
|
+
Textarea,
|
|
41803
41538
|
{
|
|
41804
|
-
|
|
41805
|
-
|
|
41806
|
-
|
|
41807
|
-
|
|
41808
|
-
|
|
41809
|
-
const
|
|
41810
|
-
|
|
41811
|
-
|
|
41812
|
-
|
|
41813
|
-
setTimeout(() => {
|
|
41814
|
-
const newCursorPosition = selectionStart + value.length;
|
|
41815
|
-
input?.focus();
|
|
41816
|
-
input?.setSelectionRange(
|
|
41817
|
-
newCursorPosition,
|
|
41818
|
-
newCursorPosition
|
|
41819
|
-
);
|
|
41820
|
-
}, 0);
|
|
41539
|
+
ref: inputRef,
|
|
41540
|
+
className: "min-h-[300px]",
|
|
41541
|
+
placeholder: "Text message content...",
|
|
41542
|
+
value: message2 ?? "",
|
|
41543
|
+
onChange: (e4) => {
|
|
41544
|
+
const newValue = e4.target.value;
|
|
41545
|
+
setMessage(
|
|
41546
|
+
newValue.slice(0, 1600 - (companyName?.length || 0))
|
|
41547
|
+
);
|
|
41821
41548
|
},
|
|
41549
|
+
maxLength: 1600 - (companyName?.length || 0)
|
|
41550
|
+
}
|
|
41551
|
+
),
|
|
41552
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-end gap-2", children: [
|
|
41553
|
+
/* @__PURE__ */ jsxs(
|
|
41554
|
+
Select,
|
|
41555
|
+
{
|
|
41556
|
+
value: mergeFieldValue,
|
|
41557
|
+
onValueChange: (value) => {
|
|
41558
|
+
const input = inputRef.current;
|
|
41559
|
+
const currentMessage = message2 || "";
|
|
41560
|
+
const selectionStart = input?.selectionStart ?? currentMessage.length;
|
|
41561
|
+
const selectionEnd = input?.selectionEnd ?? currentMessage.length;
|
|
41562
|
+
const newMessage = currentMessage.slice(0, selectionStart) + value + currentMessage.slice(selectionEnd);
|
|
41563
|
+
setMessage(newMessage);
|
|
41564
|
+
setMergeFieldValue("");
|
|
41565
|
+
setTimeout(() => {
|
|
41566
|
+
const newCursorPosition = selectionStart + value.length;
|
|
41567
|
+
input?.focus();
|
|
41568
|
+
input?.setSelectionRange(
|
|
41569
|
+
newCursorPosition,
|
|
41570
|
+
newCursorPosition
|
|
41571
|
+
);
|
|
41572
|
+
}, 0);
|
|
41573
|
+
},
|
|
41574
|
+
children: [
|
|
41575
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-[50px]", children: /* @__PURE__ */ jsx(iconDefinitions.MergeField, { className: "w-4 h-4" }) }),
|
|
41576
|
+
/* @__PURE__ */ jsx(SelectContent, { children: getMergeFields2?.mergeFields?.map(
|
|
41577
|
+
(field) => field.entries.map((entry) => /* @__PURE__ */ jsx(SelectItem, { value: entry.value, children: entry.label }, entry.value))
|
|
41578
|
+
).flat() })
|
|
41579
|
+
]
|
|
41580
|
+
}
|
|
41581
|
+
),
|
|
41582
|
+
/* @__PURE__ */ jsx(InfoTooltip, { title: "Dynamic content is a way to insert dynamic content into your messages such as the customer's name, email, or other details." })
|
|
41583
|
+
] }),
|
|
41584
|
+
/* @__PURE__ */ jsxs(
|
|
41585
|
+
"div",
|
|
41586
|
+
{
|
|
41587
|
+
className: `flex justify-end mt-2 text-sm transition-colors duration-300 ${message2 && message2.length > 1400 ? message2.length >= 1600 ? "text-red-500" : "text-amber-500" : "text-gray-500"}`,
|
|
41822
41588
|
children: [
|
|
41823
|
-
|
|
41824
|
-
|
|
41825
|
-
|
|
41826
|
-
|
|
41589
|
+
message2 ? message2.length : 0,
|
|
41590
|
+
"/",
|
|
41591
|
+
1600 - (companyName?.length || 0),
|
|
41592
|
+
" ",
|
|
41593
|
+
"characters"
|
|
41827
41594
|
]
|
|
41828
41595
|
}
|
|
41829
|
-
)
|
|
41830
|
-
|
|
41831
|
-
|
|
41832
|
-
/* @__PURE__ */ jsxs(
|
|
41833
|
-
"div",
|
|
41834
|
-
{
|
|
41835
|
-
className: `flex justify-end mt-2 text-sm transition-colors duration-300 ${message2 && message2.length > 1400 ? message2.length >= 1600 ? "text-red-500" : "text-amber-500" : "text-gray-500"}`,
|
|
41836
|
-
children: [
|
|
41837
|
-
message2 ? message2.length : 0,
|
|
41838
|
-
"/",
|
|
41839
|
-
1600 - (companyName?.length || 0),
|
|
41840
|
-
" ",
|
|
41841
|
-
"characters"
|
|
41842
|
-
]
|
|
41843
|
-
}
|
|
41844
|
-
)
|
|
41845
|
-
] }) }) }),
|
|
41596
|
+
)
|
|
41597
|
+
] })
|
|
41598
|
+
] }) }),
|
|
41846
41599
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-6", children: [
|
|
41847
41600
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
41848
41601
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -41925,7 +41678,7 @@ const SelectEmailOrSMS = ({
|
|
|
41925
41678
|
return;
|
|
41926
41679
|
}
|
|
41927
41680
|
setSelectedChannels([...selectedChannels, "email"]);
|
|
41928
|
-
setExpandedChannels([...expandedChannels, "email"]);
|
|
41681
|
+
setExpandedChannels([...expandedChannels || [], "email"]);
|
|
41929
41682
|
};
|
|
41930
41683
|
const toggleSMS = () => {
|
|
41931
41684
|
if (selectedChannels.includes("sms")) {
|
|
@@ -41941,7 +41694,7 @@ const SelectEmailOrSMS = ({
|
|
|
41941
41694
|
return;
|
|
41942
41695
|
}
|
|
41943
41696
|
setSelectedChannels([...selectedChannels, "sms"]);
|
|
41944
|
-
setExpandedChannels([...expandedChannels, "sms"]);
|
|
41697
|
+
setExpandedChannels([...expandedChannels || [], "sms"]);
|
|
41945
41698
|
};
|
|
41946
41699
|
const buttonStyle = "flex items-center gap-2 px-3 py-1.5 rounded-md transition-all duration-200";
|
|
41947
41700
|
return /* @__PURE__ */ jsxs("div", { className: "", children: [
|
|
@@ -42066,7 +41819,7 @@ const EditCampaignContent = ({ automation, iconDefinitions }) => {
|
|
|
42066
41819
|
motion.div,
|
|
42067
41820
|
{
|
|
42068
41821
|
animate: {
|
|
42069
|
-
rotate: expandedChannels
|
|
41822
|
+
rotate: expandedChannels?.includes("email") ? 0 : -90
|
|
42070
41823
|
},
|
|
42071
41824
|
transition: { duration: 0.2 },
|
|
42072
41825
|
children: /* @__PURE__ */ jsx(iconDefinitions.DropdownMenuTrigger, { className: "w-5 h-5" })
|
|
@@ -42076,7 +41829,7 @@ const EditCampaignContent = ({ automation, iconDefinitions }) => {
|
|
|
42076
41829
|
]
|
|
42077
41830
|
}
|
|
42078
41831
|
),
|
|
42079
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: expandedChannels
|
|
41832
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: expandedChannels?.includes("email") && /* @__PURE__ */ jsx(
|
|
42080
41833
|
motion.div,
|
|
42081
41834
|
{
|
|
42082
41835
|
initial: { opacity: 0, height: 0 },
|
|
@@ -42097,7 +41850,9 @@ const EditCampaignContent = ({ automation, iconDefinitions }) => {
|
|
|
42097
41850
|
/* @__PURE__ */ jsx(
|
|
42098
41851
|
motion.div,
|
|
42099
41852
|
{
|
|
42100
|
-
animate: {
|
|
41853
|
+
animate: {
|
|
41854
|
+
rotate: expandedChannels?.includes("sms") ? 0 : -90
|
|
41855
|
+
},
|
|
42101
41856
|
transition: { duration: 0.2 },
|
|
42102
41857
|
children: /* @__PURE__ */ jsx(iconDefinitions.DropdownMenuTrigger, { className: "w-5 h-5" })
|
|
42103
41858
|
}
|
|
@@ -42106,7 +41861,7 @@ const EditCampaignContent = ({ automation, iconDefinitions }) => {
|
|
|
42106
41861
|
]
|
|
42107
41862
|
}
|
|
42108
41863
|
),
|
|
42109
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: expandedChannels
|
|
41864
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: expandedChannels?.includes("sms") && /* @__PURE__ */ jsx(
|
|
42110
41865
|
motion.div,
|
|
42111
41866
|
{
|
|
42112
41867
|
initial: { opacity: 0, height: 0 },
|
|
@@ -42728,6 +42483,8 @@ var formatters$2 = {
|
|
|
42728
42483
|
}
|
|
42729
42484
|
};
|
|
42730
42485
|
var dayPeriodEnum = {
|
|
42486
|
+
am: "am",
|
|
42487
|
+
pm: "pm",
|
|
42731
42488
|
midnight: "midnight",
|
|
42732
42489
|
noon: "noon",
|
|
42733
42490
|
morning: "morning",
|
|
@@ -46216,7 +45973,7 @@ const SelectSegments = ({
|
|
|
46216
45973
|
children: /* @__PURE__ */ jsx(iconDefinitions.DropdownMenuTrigger, { className: "w-5 h-5" })
|
|
46217
45974
|
}
|
|
46218
45975
|
),
|
|
46219
|
-
/* @__PURE__ */ jsx("span", {
|
|
45976
|
+
/* @__PURE__ */ jsx("span", { children: "Don't send to" })
|
|
46220
45977
|
]
|
|
46221
45978
|
}
|
|
46222
45979
|
),
|
|
@@ -46682,8 +46439,6 @@ const StatusBadge = ({
|
|
|
46682
46439
|
return /* @__PURE__ */ jsx(Badge, { variant: "default", className: "bg-green-600 hover:bg-green-700", children: "Active" });
|
|
46683
46440
|
case AutomationStatus.RUNNING:
|
|
46684
46441
|
return /* @__PURE__ */ jsx(Badge, { variant: "default", className: "bg-blue-500 hover:bg-blue-600", children: "Running" });
|
|
46685
|
-
case AutomationStatus.SCHEDULED:
|
|
46686
|
-
return /* @__PURE__ */ jsx(Badge, { variant: "default", className: "bg-purple-500 hover:bg-purple-600", children: "Scheduled" });
|
|
46687
46442
|
case AutomationStatus.COMPLETED:
|
|
46688
46443
|
return /* @__PURE__ */ jsx(Badge, { variant: "default", className: "bg-gray-500 hover:bg-gray-600", children: "Completed" });
|
|
46689
46444
|
case AutomationStatus.FAILED:
|
|
@@ -46886,15 +46641,21 @@ const ViewAutomationHeader = ({
|
|
|
46886
46641
|
{
|
|
46887
46642
|
open: openEditAutomationPopup,
|
|
46888
46643
|
onOpenChange: setOpenEditAutomationPopup,
|
|
46889
|
-
children: /* @__PURE__ */
|
|
46890
|
-
|
|
46891
|
-
|
|
46892
|
-
|
|
46893
|
-
|
|
46894
|
-
|
|
46895
|
-
|
|
46896
|
-
|
|
46897
|
-
|
|
46644
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-screen min-h-screen max-h-screen overflow-hidden rounded-none sm:rounded-none", children: [
|
|
46645
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
46646
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Edit Automation" }),
|
|
46647
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Edit the automation to change the content, schedule, and other details." })
|
|
46648
|
+
] }),
|
|
46649
|
+
/* @__PURE__ */ jsx(
|
|
46650
|
+
EditAutomationPopup,
|
|
46651
|
+
{
|
|
46652
|
+
automationId: automation.id,
|
|
46653
|
+
iconDefinitions,
|
|
46654
|
+
setOpenEditAutomationPopup,
|
|
46655
|
+
logoUrl
|
|
46656
|
+
}
|
|
46657
|
+
)
|
|
46658
|
+
] })
|
|
46898
46659
|
}
|
|
46899
46660
|
),
|
|
46900
46661
|
/* @__PURE__ */ jsx(
|
|
@@ -46902,15 +46663,21 @@ const ViewAutomationHeader = ({
|
|
|
46902
46663
|
{
|
|
46903
46664
|
open: openSendPreviewSmsPopup,
|
|
46904
46665
|
onOpenChange: setOpenSendPreviewSmsPopup,
|
|
46905
|
-
children: /* @__PURE__ */
|
|
46906
|
-
|
|
46907
|
-
|
|
46908
|
-
automation
|
|
46909
|
-
|
|
46910
|
-
|
|
46911
|
-
|
|
46912
|
-
|
|
46913
|
-
|
|
46666
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { className: "", children: [
|
|
46667
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
46668
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Send Preview SMS" }),
|
|
46669
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Send a preview SMS to the automation." })
|
|
46670
|
+
] }),
|
|
46671
|
+
/* @__PURE__ */ jsx(
|
|
46672
|
+
SendPreviewPopup,
|
|
46673
|
+
{
|
|
46674
|
+
automation,
|
|
46675
|
+
type: "sms",
|
|
46676
|
+
setOpenSendPreviewPopup: setOpenSendPreviewSmsPopup,
|
|
46677
|
+
iconDefinitions
|
|
46678
|
+
}
|
|
46679
|
+
)
|
|
46680
|
+
] })
|
|
46914
46681
|
}
|
|
46915
46682
|
),
|
|
46916
46683
|
/* @__PURE__ */ jsx(
|
|
@@ -46918,15 +46685,21 @@ const ViewAutomationHeader = ({
|
|
|
46918
46685
|
{
|
|
46919
46686
|
open: openSendPreviewEmailPopup,
|
|
46920
46687
|
onOpenChange: setOpenSendPreviewEmailPopup,
|
|
46921
|
-
children: /* @__PURE__ */
|
|
46922
|
-
|
|
46923
|
-
|
|
46924
|
-
automation
|
|
46925
|
-
|
|
46926
|
-
|
|
46927
|
-
|
|
46928
|
-
|
|
46929
|
-
|
|
46688
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { className: "", children: [
|
|
46689
|
+
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
46690
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Send Preview Email" }),
|
|
46691
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Send a preview email to the automation." })
|
|
46692
|
+
] }),
|
|
46693
|
+
/* @__PURE__ */ jsx(
|
|
46694
|
+
SendPreviewPopup,
|
|
46695
|
+
{
|
|
46696
|
+
automation,
|
|
46697
|
+
type: "email",
|
|
46698
|
+
setOpenSendPreviewPopup: setOpenSendPreviewEmailPopup,
|
|
46699
|
+
iconDefinitions
|
|
46700
|
+
}
|
|
46701
|
+
)
|
|
46702
|
+
] })
|
|
46930
46703
|
}
|
|
46931
46704
|
),
|
|
46932
46705
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border-b border-gray-200", children: [
|
|
@@ -47079,57 +46852,57 @@ Object.values(
|
|
|
47079
46852
|
);
|
|
47080
46853
|
export {
|
|
47081
46854
|
$TRACK as $,
|
|
47082
|
-
|
|
47083
|
-
|
|
47084
|
-
|
|
47085
|
-
|
|
47086
|
-
|
|
46855
|
+
displayValue as A,
|
|
46856
|
+
batch as B,
|
|
46857
|
+
clearDelegatedEvents as C,
|
|
46858
|
+
Dynamic as D,
|
|
46859
|
+
untrack as E,
|
|
47087
46860
|
For as F,
|
|
47088
|
-
|
|
47089
|
-
|
|
47090
|
-
|
|
47091
|
-
|
|
47092
|
-
|
|
47093
|
-
|
|
47094
|
-
|
|
47095
|
-
|
|
47096
|
-
|
|
46861
|
+
createComputed as G,
|
|
46862
|
+
serialize$1 as H,
|
|
46863
|
+
Index as I,
|
|
46864
|
+
updateNestedDataByPath as J,
|
|
46865
|
+
convertRemToPixels as K,
|
|
46866
|
+
getSidedProp as L,
|
|
46867
|
+
getQueryStatusLabel as M,
|
|
46868
|
+
createRoot as N,
|
|
46869
|
+
addEventListener as O,
|
|
47097
46870
|
Portal$7 as P,
|
|
47098
|
-
|
|
47099
|
-
|
|
46871
|
+
stringify as Q,
|
|
46872
|
+
Match as R,
|
|
47100
46873
|
Show as S,
|
|
47101
|
-
|
|
47102
|
-
|
|
47103
|
-
|
|
46874
|
+
Switch as T,
|
|
46875
|
+
deleteNestedDataByPath as U,
|
|
46876
|
+
useTransition as V,
|
|
47104
46877
|
ReachProvider as W,
|
|
47105
46878
|
CreateAutomationModal as X,
|
|
47106
46879
|
Engage as Y,
|
|
47107
46880
|
SegmentBuilder as Z,
|
|
47108
46881
|
ViewAutomationModal as _,
|
|
47109
46882
|
createComponent as a,
|
|
47110
|
-
|
|
46883
|
+
createSignal as b,
|
|
47111
46884
|
createMemo as c,
|
|
47112
|
-
|
|
46885
|
+
delegateEvents as d,
|
|
47113
46886
|
createEffect as e,
|
|
47114
|
-
|
|
46887
|
+
mergeProps$4 as f,
|
|
47115
46888
|
getPreferredColorScheme as g,
|
|
47116
|
-
|
|
47117
|
-
|
|
47118
|
-
|
|
47119
|
-
|
|
47120
|
-
|
|
46889
|
+
splitProps as h,
|
|
46890
|
+
createContext as i,
|
|
46891
|
+
createRenderEffect as j,
|
|
46892
|
+
setAttribute as k,
|
|
46893
|
+
createUniqueId as l,
|
|
47121
46894
|
mutationSortFns as m,
|
|
47122
|
-
|
|
47123
|
-
|
|
47124
|
-
|
|
47125
|
-
|
|
47126
|
-
|
|
46895
|
+
onCleanup as n,
|
|
46896
|
+
on as o,
|
|
46897
|
+
onMount as p,
|
|
46898
|
+
use as q,
|
|
46899
|
+
insert as r,
|
|
47127
46900
|
sortFns as s,
|
|
47128
46901
|
template as t,
|
|
47129
46902
|
useContext as u,
|
|
47130
|
-
|
|
47131
|
-
|
|
47132
|
-
|
|
47133
|
-
|
|
47134
|
-
|
|
46903
|
+
className as v,
|
|
46904
|
+
getQueryStatusColor as w,
|
|
46905
|
+
getMutationStatusColor as x,
|
|
46906
|
+
spread as y,
|
|
46907
|
+
getQueryStatusColorByLabel as z
|
|
47135
46908
|
};
|