ghost 5.72.0 → 5.72.2
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/components/tryghost-adapter-cache-memory-ttl-5.72.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.72.0.tgz → tryghost-adapter-cache-redis-5.72.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.72.0.tgz → tryghost-adapter-manager-5.72.2.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.72.2.tgz +0 -0
- package/components/{tryghost-api-framework-5.72.0.tgz → tryghost-api-framework-5.72.2.tgz} +0 -0
- package/components/tryghost-api-version-compatibility-service-5.72.2.tgz +0 -0
- package/components/tryghost-audience-feedback-5.72.2.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.72.2.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.72.0.tgz → tryghost-bootstrap-socket-5.72.2.tgz} +0 -0
- package/components/tryghost-collections-5.72.2.tgz +0 -0
- package/components/tryghost-constants-5.72.2.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.72.0.tgz → tryghost-custom-theme-settings-service-5.72.2.tgz} +0 -0
- package/components/{tryghost-data-generator-5.72.0.tgz → tryghost-data-generator-5.72.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.72.2.tgz +0 -0
- package/components/{tryghost-donations-5.72.0.tgz → tryghost-donations-5.72.2.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.72.2.tgz +0 -0
- package/components/{tryghost-email-analytics-provider-mailgun-5.72.0.tgz → tryghost-email-analytics-provider-mailgun-5.72.2.tgz} +0 -0
- package/components/tryghost-email-analytics-service-5.72.2.tgz +0 -0
- package/components/tryghost-email-content-generator-5.72.2.tgz +0 -0
- package/components/{tryghost-email-events-5.72.0.tgz → tryghost-email-events-5.72.2.tgz} +0 -0
- package/components/tryghost-email-service-5.72.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.72.2.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.72.2.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.72.0.tgz → tryghost-express-dynamic-redirects-5.72.2.tgz} +0 -0
- package/components/{tryghost-external-media-inliner-5.72.0.tgz → tryghost-external-media-inliner-5.72.2.tgz} +0 -0
- package/components/tryghost-extract-api-key-5.72.2.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.72.2.tgz +0 -0
- package/components/tryghost-i18n-5.72.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.72.2.tgz +0 -0
- package/components/{tryghost-importer-revue-5.72.0.tgz → tryghost-importer-revue-5.72.2.tgz} +0 -0
- package/components/{tryghost-in-memory-repository-5.72.0.tgz → tryghost-in-memory-repository-5.72.2.tgz} +0 -0
- package/components/{tryghost-job-manager-5.72.0.tgz → tryghost-job-manager-5.72.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.72.2.tgz +0 -0
- package/components/tryghost-link-replacer-5.72.2.tgz +0 -0
- package/components/{tryghost-link-tracking-5.72.0.tgz → tryghost-link-tracking-5.72.2.tgz} +0 -0
- package/components/tryghost-magic-link-5.72.2.tgz +0 -0
- package/components/tryghost-mail-events-5.72.2.tgz +0 -0
- package/components/{tryghost-mailgun-client-5.72.0.tgz → tryghost-mailgun-client-5.72.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.72.0.tgz → tryghost-member-attribution-5.72.2.tgz} +0 -0
- package/components/{tryghost-member-events-5.72.0.tgz → tryghost-member-events-5.72.2.tgz} +0 -0
- package/components/{tryghost-members-api-5.72.0.tgz → tryghost-members-api-5.72.2.tgz} +0 -0
- package/components/tryghost-members-csv-5.72.2.tgz +0 -0
- package/components/{tryghost-members-events-service-5.72.0.tgz → tryghost-members-events-service-5.72.2.tgz} +0 -0
- package/components/{tryghost-members-importer-5.72.0.tgz → tryghost-members-importer-5.72.2.tgz} +0 -0
- package/components/{tryghost-members-offers-5.72.0.tgz → tryghost-members-offers-5.72.2.tgz} +0 -0
- package/components/tryghost-members-payments-5.72.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.72.2.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.72.0.tgz → tryghost-members-stripe-service-5.72.2.tgz} +0 -0
- package/components/tryghost-mentions-email-report-5.72.2.tgz +0 -0
- package/components/{tryghost-milestones-5.72.0.tgz → tryghost-milestones-5.72.2.tgz} +0 -0
- package/components/{tryghost-minifier-5.72.0.tgz → tryghost-minifier-5.72.2.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.72.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.72.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.72.2.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.72.0.tgz → tryghost-mw-error-handler-5.72.2.tgz} +0 -0
- package/components/tryghost-mw-session-from-token-5.72.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.72.2.tgz +0 -0
- package/components/{tryghost-mw-version-match-5.72.0.tgz → tryghost-mw-version-match-5.72.2.tgz} +0 -0
- package/components/tryghost-mw-vhost-5.72.2.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.72.2.tgz +0 -0
- package/components/{tryghost-oembed-service-5.72.0.tgz → tryghost-oembed-service-5.72.2.tgz} +0 -0
- package/components/{tryghost-package-json-5.72.0.tgz → tryghost-package-json-5.72.2.tgz} +0 -0
- package/components/tryghost-post-events-5.72.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.72.2.tgz +0 -0
- package/components/{tryghost-posts-service-5.72.0.tgz → tryghost-posts-service-5.72.2.tgz} +0 -0
- package/components/tryghost-recommendations-5.72.2.tgz +0 -0
- package/components/tryghost-referrers-5.72.2.tgz +0 -0
- package/components/{tryghost-security-5.72.0.tgz → tryghost-security-5.72.2.tgz} +0 -0
- package/components/tryghost-session-service-5.72.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.72.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.72.2.tgz +0 -0
- package/components/{tryghost-staff-service-5.72.0.tgz → tryghost-staff-service-5.72.2.tgz} +0 -0
- package/components/{tryghost-stats-service-5.72.0.tgz → tryghost-stats-service-5.72.2.tgz} +0 -0
- package/components/{tryghost-tiers-5.72.0.tgz → tryghost-tiers-5.72.2.tgz} +0 -0
- package/components/{tryghost-update-check-service-5.72.0.tgz → tryghost-update-check-service-5.72.2.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.72.2.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.72.2.tgz +0 -0
- package/components/{tryghost-webmentions-5.72.0.tgz → tryghost-webmentions-5.72.2.tgz} +0 -0
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-75959772.mjs → CodeEditorView-4989db6d.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-fde81055.mjs → index-3bbe0fa2.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-af8eadff.mjs → index-81eb7730.mjs} +463 -463
- package/core/built/admin/assets/admin-x-settings/{modals-bebf54a5.mjs → modals-02dc5819.mjs} +11 -9
- package/core/built/admin/assets/{chunk.143.19c0d2badc1bbc90b651.js → chunk.143.fe8a153094842ac9ad06.js} +5 -5
- package/core/built/admin/assets/{chunk.178.fef47d5b9bd185402ddb.js → chunk.178.6b99c6882508ea34aba0.js} +4 -4
- package/core/built/admin/index.html +2 -2
- package/package.json +146 -146
- package/components/tryghost-adapter-cache-memory-ttl-5.72.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.72.0.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.72.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.72.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.72.0.tgz +0 -0
- package/components/tryghost-collections-5.72.0.tgz +0 -0
- package/components/tryghost-constants-5.72.0.tgz +0 -0
- package/components/tryghost-domain-events-5.72.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.72.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.72.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.72.0.tgz +0 -0
- package/components/tryghost-email-service-5.72.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.72.0.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.72.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.72.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.72.0.tgz +0 -0
- package/components/tryghost-i18n-5.72.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.72.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.72.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.72.0.tgz +0 -0
- package/components/tryghost-magic-link-5.72.0.tgz +0 -0
- package/components/tryghost-mail-events-5.72.0.tgz +0 -0
- package/components/tryghost-members-csv-5.72.0.tgz +0 -0
- package/components/tryghost-members-payments-5.72.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.72.0.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.72.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.72.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.72.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.72.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.72.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.72.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.72.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.72.0.tgz +0 -0
- package/components/tryghost-post-events-5.72.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.72.0.tgz +0 -0
- package/components/tryghost-recommendations-5.72.0.tgz +0 -0
- package/components/tryghost-referrers-5.72.0.tgz +0 -0
- package/components/tryghost-session-service-5.72.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.72.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.72.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.72.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.72.0.tgz +0 -0
|
@@ -946,8 +946,8 @@ function vs(t, e, n = 1 / 0, r = 1 / 0, i = Ng()) {
|
|
|
946
946
|
d[m] = "[MaxProperties ~]";
|
|
947
947
|
break;
|
|
948
948
|
}
|
|
949
|
-
const
|
|
950
|
-
d[m] = vs(m,
|
|
949
|
+
const A = p[m];
|
|
950
|
+
d[m] = vs(m, A, c - 1, r, i), g++;
|
|
951
951
|
}
|
|
952
952
|
return o(e), d;
|
|
953
953
|
}
|
|
@@ -3272,8 +3272,8 @@ var fp = (t, e) => {
|
|
|
3272
3272
|
let r = H(() => {
|
|
3273
3273
|
n && Ut({ type: 6, time: Date.now() });
|
|
3274
3274
|
}, [n]), i = H((s, o) => {
|
|
3275
|
-
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition: u } = o || {}, d = e.filter((m) => (m.position || u) === (s.position || u) && m.height), g = d.findIndex((m) => m.id === s.id), p = d.filter((m,
|
|
3276
|
-
return d.filter((m) => m.visible).slice(...a ? [p + 1] : [0, p]).reduce((m,
|
|
3275
|
+
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition: u } = o || {}, d = e.filter((m) => (m.position || u) === (s.position || u) && m.height), g = d.findIndex((m) => m.id === s.id), p = d.filter((m, A) => A < g && m.visible).length;
|
|
3276
|
+
return d.filter((m) => m.visible).slice(...a ? [p + 1] : [0, p]).reduce((m, A) => m + (A.height || 0) + c, 0);
|
|
3277
3277
|
}, [e]);
|
|
3278
3278
|
return { toasts: e, handlers: { updateHeight: fp, startPause: gp, endPause: r, calculateOffset: i } };
|
|
3279
3279
|
}, pp = ct`
|
|
@@ -4237,8 +4237,8 @@ function hr(t) {
|
|
|
4237
4237
|
}
|
|
4238
4238
|
function tu(t) {
|
|
4239
4239
|
let e = !1, n = 0, r = !1, i, s, o;
|
|
4240
|
-
const a = new Promise((v,
|
|
4241
|
-
s = v, o =
|
|
4240
|
+
const a = new Promise((v, h) => {
|
|
4241
|
+
s = v, o = h;
|
|
4242
4242
|
}), c = (v) => {
|
|
4243
4243
|
r || (m(new eu(v)), t.abort == null || t.abort());
|
|
4244
4244
|
}, u = () => {
|
|
@@ -4249,10 +4249,10 @@ function tu(t) {
|
|
|
4249
4249
|
r || (r = !0, t.onSuccess == null || t.onSuccess(v), i == null || i(), s(v));
|
|
4250
4250
|
}, m = (v) => {
|
|
4251
4251
|
r || (r = !0, t.onError == null || t.onError(v), i == null || i(), o(v));
|
|
4252
|
-
},
|
|
4253
|
-
i = (
|
|
4252
|
+
}, A = () => new Promise((v) => {
|
|
4253
|
+
i = (h) => {
|
|
4254
4254
|
const y = r || !g();
|
|
4255
|
-
return y && v(
|
|
4255
|
+
return y && v(h), y;
|
|
4256
4256
|
}, t.onPause == null || t.onPause();
|
|
4257
4257
|
}).then(() => {
|
|
4258
4258
|
i = void 0, r || t.onContinue == null || t.onContinue();
|
|
@@ -4262,27 +4262,27 @@ function tu(t) {
|
|
|
4262
4262
|
let v;
|
|
4263
4263
|
try {
|
|
4264
4264
|
v = t.fn();
|
|
4265
|
-
} catch (
|
|
4266
|
-
v = Promise.reject(
|
|
4265
|
+
} catch (h) {
|
|
4266
|
+
v = Promise.reject(h);
|
|
4267
4267
|
}
|
|
4268
|
-
Promise.resolve(v).then(p).catch((
|
|
4268
|
+
Promise.resolve(v).then(p).catch((h) => {
|
|
4269
4269
|
var y, I;
|
|
4270
4270
|
if (r)
|
|
4271
4271
|
return;
|
|
4272
|
-
const M = (y = t.retry) != null ? y : 3, N = (I = t.retryDelay) != null ? I : s2, x = typeof N == "function" ? N(n,
|
|
4272
|
+
const M = (y = t.retry) != null ? y : 3, N = (I = t.retryDelay) != null ? I : s2, x = typeof N == "function" ? N(n, h) : N, w = M === !0 || typeof M == "number" && n < M || typeof M == "function" && M(n, h);
|
|
4273
4273
|
if (e || !w) {
|
|
4274
|
-
m(
|
|
4274
|
+
m(h);
|
|
4275
4275
|
return;
|
|
4276
4276
|
}
|
|
4277
|
-
n++, t.onFail == null || t.onFail(n,
|
|
4277
|
+
n++, t.onFail == null || t.onFail(n, h), $c(x).then(() => {
|
|
4278
4278
|
if (g())
|
|
4279
|
-
return
|
|
4279
|
+
return A();
|
|
4280
4280
|
}).then(() => {
|
|
4281
|
-
e ? m(
|
|
4281
|
+
e ? m(h) : b();
|
|
4282
4282
|
});
|
|
4283
4283
|
});
|
|
4284
4284
|
};
|
|
4285
|
-
return pi(t.networkMode) ? b() :
|
|
4285
|
+
return pi(t.networkMode) ? b() : A().then(b), {
|
|
4286
4286
|
promise: a,
|
|
4287
4287
|
cancel: c,
|
|
4288
4288
|
continue: () => (i == null ? void 0 : i()) ? a : Promise.resolve(),
|
|
@@ -4461,7 +4461,7 @@ class o2 extends nu {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
}
|
|
4463
4463
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
4464
|
-
const m = this.observers.find((
|
|
4464
|
+
const m = this.observers.find((A) => A.options.queryFn);
|
|
4465
4465
|
m && this.setOptions(m.options);
|
|
4466
4466
|
}
|
|
4467
4467
|
const o = n2(), a = {
|
|
@@ -4497,8 +4497,8 @@ class o2 extends nu {
|
|
|
4497
4497
|
type: "error",
|
|
4498
4498
|
error: m
|
|
4499
4499
|
}), !hr(m)) {
|
|
4500
|
-
var
|
|
4501
|
-
(
|
|
4500
|
+
var A, b, v, h;
|
|
4501
|
+
(A = (b = this.cache.config).onError) == null || A.call(b, m, this), (v = (h = this.cache.config).onSettled) == null || v.call(h, this.state.data, m, this);
|
|
4502
4502
|
}
|
|
4503
4503
|
this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
4504
4504
|
};
|
|
@@ -4506,19 +4506,19 @@ class o2 extends nu {
|
|
|
4506
4506
|
fn: d.fetchFn,
|
|
4507
4507
|
abort: o == null ? void 0 : o.abort.bind(o),
|
|
4508
4508
|
onSuccess: (m) => {
|
|
4509
|
-
var
|
|
4509
|
+
var A, b, v, h;
|
|
4510
4510
|
if (typeof m > "u") {
|
|
4511
4511
|
p(new Error(this.queryHash + " data is undefined"));
|
|
4512
4512
|
return;
|
|
4513
4513
|
}
|
|
4514
|
-
this.setData(m), (
|
|
4514
|
+
this.setData(m), (A = (b = this.cache.config).onSuccess) == null || A.call(b, m, this), (v = (h = this.cache.config).onSettled) == null || v.call(h, m, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
4515
4515
|
},
|
|
4516
4516
|
onError: p,
|
|
4517
|
-
onFail: (m,
|
|
4517
|
+
onFail: (m, A) => {
|
|
4518
4518
|
this.dispatch({
|
|
4519
4519
|
type: "failed",
|
|
4520
4520
|
failureCount: m,
|
|
4521
|
-
error:
|
|
4521
|
+
error: A
|
|
4522
4522
|
});
|
|
4523
4523
|
},
|
|
4524
4524
|
onPause: () => {
|
|
@@ -4784,12 +4784,12 @@ class u2 extends nu {
|
|
|
4784
4784
|
try {
|
|
4785
4785
|
var r, i, s, o, a, c, u, d;
|
|
4786
4786
|
if (!n) {
|
|
4787
|
-
var g, p, m,
|
|
4787
|
+
var g, p, m, A;
|
|
4788
4788
|
this.dispatch({
|
|
4789
4789
|
type: "loading",
|
|
4790
4790
|
variables: this.options.variables
|
|
4791
4791
|
}), await ((g = (p = this.mutationCache.config).onMutate) == null ? void 0 : g.call(p, this.state.variables, this));
|
|
4792
|
-
const j = await ((m = (
|
|
4792
|
+
const j = await ((m = (A = this.options).onMutate) == null ? void 0 : m.call(A, this.state.variables));
|
|
4793
4793
|
j !== this.state.context && this.dispatch({
|
|
4794
4794
|
type: "loading",
|
|
4795
4795
|
context: j,
|
|
@@ -4803,8 +4803,8 @@ class u2 extends nu {
|
|
|
4803
4803
|
}), w;
|
|
4804
4804
|
} catch (w) {
|
|
4805
4805
|
try {
|
|
4806
|
-
var b, v,
|
|
4807
|
-
throw await ((b = (v = this.mutationCache.config).onError) == null ? void 0 : b.call(v, w, this.state.variables, this.state.context, this)), await ((
|
|
4806
|
+
var b, v, h, y, I, M, N, x;
|
|
4807
|
+
throw await ((b = (v = this.mutationCache.config).onError) == null ? void 0 : b.call(v, w, this.state.variables, this.state.context, this)), await ((h = (y = this.options).onError) == null ? void 0 : h.call(y, w, this.state.variables, this.state.context)), await ((I = (M = this.mutationCache.config).onSettled) == null ? void 0 : I.call(M, void 0, w, this.state.variables, this.state.context, this)), await ((N = (x = this.options).onSettled) == null ? void 0 : N.call(x, void 0, w, this.state.variables, this.state.context)), w;
|
|
4808
4808
|
} finally {
|
|
4809
4809
|
this.dispatch({
|
|
4810
4810
|
type: "error",
|
|
@@ -4962,7 +4962,7 @@ function Es() {
|
|
|
4962
4962
|
t.fetchFn = () => {
|
|
4963
4963
|
var e, n, r, i, s, o;
|
|
4964
4964
|
const a = (e = t.fetchOptions) == null || (n = e.meta) == null ? void 0 : n.refetchPage, c = (r = t.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, u = c == null ? void 0 : c.pageParam, d = (c == null ? void 0 : c.direction) === "forward", g = (c == null ? void 0 : c.direction) === "backward", p = ((s = t.state.data) == null ? void 0 : s.pages) || [], m = ((o = t.state.data) == null ? void 0 : o.pageParams) || [];
|
|
4965
|
-
let
|
|
4965
|
+
let A = m, b = !1;
|
|
4966
4966
|
const v = (x) => {
|
|
4967
4967
|
Object.defineProperty(x, "signal", {
|
|
4968
4968
|
enumerable: !0,
|
|
@@ -4979,7 +4979,7 @@ function Es() {
|
|
|
4979
4979
|
return t.signal;
|
|
4980
4980
|
}
|
|
4981
4981
|
});
|
|
4982
|
-
},
|
|
4982
|
+
}, h = t.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + t.options.queryHash + "'")), y = (x, w, j, D) => (A = D ? [w, ...A] : [...A, w], D ? [j, ...x] : [...x, j]), I = (x, w, j, D) => {
|
|
4983
4983
|
if (b)
|
|
4984
4984
|
return Promise.reject("Cancelled");
|
|
4985
4985
|
if (typeof j > "u" && !w && x.length)
|
|
@@ -4990,7 +4990,7 @@ function Es() {
|
|
|
4990
4990
|
meta: t.options.meta
|
|
4991
4991
|
};
|
|
4992
4992
|
v(k);
|
|
4993
|
-
const B =
|
|
4993
|
+
const B = h(k);
|
|
4994
4994
|
return Promise.resolve(B).then((Z) => y(x, j, Z, D));
|
|
4995
4995
|
};
|
|
4996
4996
|
let M;
|
|
@@ -5003,7 +5003,7 @@ function Es() {
|
|
|
5003
5003
|
const x = typeof u < "u", w = x ? u : iu(t.options, p);
|
|
5004
5004
|
M = I(p, x, w, !0);
|
|
5005
5005
|
} else {
|
|
5006
|
-
|
|
5006
|
+
A = [];
|
|
5007
5007
|
const x = typeof t.options.getNextPageParam > "u";
|
|
5008
5008
|
M = (a && p[0] ? a(p[0], 0, p) : !0) ? I([], x, m[0]) : Promise.resolve(y([], m[0], p[0]));
|
|
5009
5009
|
for (let j = 1; j < p.length; j++)
|
|
@@ -5017,7 +5017,7 @@ function Es() {
|
|
|
5017
5017
|
}
|
|
5018
5018
|
return M.then((x) => ({
|
|
5019
5019
|
pages: x,
|
|
5020
|
-
pageParams:
|
|
5020
|
+
pageParams: A
|
|
5021
5021
|
}));
|
|
5022
5022
|
};
|
|
5023
5023
|
}
|
|
@@ -5356,16 +5356,16 @@ class su extends fn {
|
|
|
5356
5356
|
let {
|
|
5357
5357
|
dataUpdatedAt: p,
|
|
5358
5358
|
error: m,
|
|
5359
|
-
errorUpdatedAt:
|
|
5359
|
+
errorUpdatedAt: A,
|
|
5360
5360
|
fetchStatus: b,
|
|
5361
5361
|
status: v
|
|
5362
|
-
} = g,
|
|
5362
|
+
} = g, h = !1, y = !1, I;
|
|
5363
5363
|
if (n._optimisticResults) {
|
|
5364
5364
|
const j = this.hasListeners(), D = !j && fl(e, n), k = j && gl(e, r, n, i);
|
|
5365
5365
|
(D || k) && (b = pi(e.options.networkMode) ? "fetching" : "paused", p || (v = "loading")), n._optimisticResults === "isRestoring" && (b = "idle");
|
|
5366
5366
|
}
|
|
5367
5367
|
if (n.keepPreviousData && !g.dataUpdatedAt && d != null && d.isSuccess && v !== "error")
|
|
5368
|
-
I = d.data, p = d.dataUpdatedAt, v = d.status,
|
|
5368
|
+
I = d.data, p = d.dataUpdatedAt, v = d.status, h = !0;
|
|
5369
5369
|
else if (n.select && typeof g.data < "u")
|
|
5370
5370
|
if (s && g.data === (o == null ? void 0 : o.data) && n.select === this.selectFn)
|
|
5371
5371
|
I = this.selectResult;
|
|
@@ -5389,7 +5389,7 @@ class su extends fn {
|
|
|
5389
5389
|
}
|
|
5390
5390
|
typeof j < "u" && (v = "success", I = ks(s == null ? void 0 : s.data, j, n), y = !0);
|
|
5391
5391
|
}
|
|
5392
|
-
this.selectError && (m = this.selectError, I = this.selectResult,
|
|
5392
|
+
this.selectError && (m = this.selectError, I = this.selectResult, A = Date.now(), v = "error");
|
|
5393
5393
|
const M = b === "fetching", N = v === "loading", x = v === "error";
|
|
5394
5394
|
return {
|
|
5395
5395
|
status: v,
|
|
@@ -5401,7 +5401,7 @@ class su extends fn {
|
|
|
5401
5401
|
data: I,
|
|
5402
5402
|
dataUpdatedAt: p,
|
|
5403
5403
|
error: m,
|
|
5404
|
-
errorUpdatedAt:
|
|
5404
|
+
errorUpdatedAt: A,
|
|
5405
5405
|
failureCount: g.fetchFailureCount,
|
|
5406
5406
|
failureReason: g.fetchFailureReason,
|
|
5407
5407
|
errorUpdateCount: g.errorUpdateCount,
|
|
@@ -5412,7 +5412,7 @@ class su extends fn {
|
|
|
5412
5412
|
isLoadingError: x && g.dataUpdatedAt === 0,
|
|
5413
5413
|
isPaused: b === "paused",
|
|
5414
5414
|
isPlaceholderData: y,
|
|
5415
|
-
isPreviousData:
|
|
5415
|
+
isPreviousData: h,
|
|
5416
5416
|
isRefetchError: x && g.dataUpdatedAt !== 0,
|
|
5417
5417
|
isStale: oo(e, n),
|
|
5418
5418
|
refetch: this.refetch,
|
|
@@ -5553,7 +5553,7 @@ class A2 extends su {
|
|
|
5553
5553
|
} = e, d = super.createResult(e, n), {
|
|
5554
5554
|
isFetching: g,
|
|
5555
5555
|
isRefetching: p
|
|
5556
|
-
} = d, m = g && ((r = u.fetchMeta) == null || (i = r.fetchMore) == null ? void 0 : i.direction) === "forward",
|
|
5556
|
+
} = d, m = g && ((r = u.fetchMeta) == null || (i = r.fetchMore) == null ? void 0 : i.direction) === "forward", A = g && ((s = u.fetchMeta) == null || (o = s.fetchMore) == null ? void 0 : o.direction) === "backward";
|
|
5557
5557
|
return {
|
|
5558
5558
|
...d,
|
|
5559
5559
|
fetchNextPage: this.fetchNextPage,
|
|
@@ -5561,8 +5561,8 @@ class A2 extends su {
|
|
|
5561
5561
|
hasNextPage: f2(n, (a = u.data) == null ? void 0 : a.pages),
|
|
5562
5562
|
hasPreviousPage: g2(n, (c = u.data) == null ? void 0 : c.pages),
|
|
5563
5563
|
isFetchingNextPage: m,
|
|
5564
|
-
isFetchingPreviousPage:
|
|
5565
|
-
isRefetching: p && !m && !
|
|
5564
|
+
isFetchingPreviousPage: A,
|
|
5565
|
+
isRefetching: p && !m && !A
|
|
5566
5566
|
};
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
@@ -5865,14 +5865,14 @@ const Y2 = (t) => {
|
|
|
5865
5865
|
const s = (r == null ? void 0 : r.headers) || {}, o = new AbortController(), { timeout: a } = r;
|
|
5866
5866
|
a && setTimeout(() => o.abort(), a);
|
|
5867
5867
|
let c = 0, u = r.retry === !0 || r.retry === void 0, d = 0;
|
|
5868
|
-
const g = Date.now(), p = 15e3, m = [500, 1e3],
|
|
5868
|
+
const g = Date.now(), p = 15e3, m = [500, 1e3], A = [js, Uc, TypeError], b = (v, h) => {
|
|
5869
5869
|
const y = {
|
|
5870
5870
|
errorName: v == null ? void 0 : v.name,
|
|
5871
5871
|
attempts: c,
|
|
5872
5872
|
totalSeconds: d / 1e3,
|
|
5873
5873
|
endpoint: n.toString()
|
|
5874
5874
|
};
|
|
5875
|
-
return n.toString().includes("/ghost/api/") && (y.server =
|
|
5875
|
+
return n.toString().includes("/ghost/api/") && (y.server = h == null ? void 0 : h.headers.get("server")), y;
|
|
5876
5876
|
};
|
|
5877
5877
|
for (; c === 0 || u; )
|
|
5878
5878
|
try {
|
|
@@ -5889,7 +5889,7 @@ const Y2 = (t) => {
|
|
|
5889
5889
|
});
|
|
5890
5890
|
return c !== 0 && e && Ms("Request took multiple attempts", { extra: b() }), qm(v);
|
|
5891
5891
|
} catch (v) {
|
|
5892
|
-
if (d = Date.now() - g, u &&
|
|
5892
|
+
if (d = Date.now() - g, u && A.some((y) => v instanceof y) && d <= p) {
|
|
5893
5893
|
await new Promise((y) => {
|
|
5894
5894
|
setTimeout(y, m[c] || m[m.length - 1]);
|
|
5895
5895
|
}), c += 1;
|
|
@@ -5897,8 +5897,8 @@ const Y2 = (t) => {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
if (c !== 0 && e && Ms("Request failed after multiple attempts", { extra: b() }), v && typeof v == "object" && "name" in v && v.name === "AbortError")
|
|
5899
5899
|
throw new Fm();
|
|
5900
|
-
let
|
|
5901
|
-
throw v instanceof Ye || (
|
|
5900
|
+
let h = v;
|
|
5901
|
+
throw v instanceof Ye || (h = new js({ cause: v })), h;
|
|
5902
5902
|
}
|
|
5903
5903
|
};
|
|
5904
5904
|
}, { apiRoot: X2 } = Er(), rn = (t, e = {}) => {
|
|
@@ -6244,7 +6244,7 @@ const bu = Qe(void 0), cb = ({ children: t }) => {
|
|
|
6244
6244
|
className: g = "",
|
|
6245
6245
|
tag: p = "button",
|
|
6246
6246
|
loading: m = !1,
|
|
6247
|
-
loadingIndicatorColor:
|
|
6247
|
+
loadingIndicatorColor: A,
|
|
6248
6248
|
onClick: b,
|
|
6249
6249
|
...v
|
|
6250
6250
|
}) => {
|
|
@@ -6260,43 +6260,43 @@ const bu = Qe(void 0), cb = ({ children: t }) => {
|
|
|
6260
6260
|
g = S(
|
|
6261
6261
|
a ? "text-black hover:text-grey-800 dark:text-white" : `bg-black text-white dark:bg-white dark:text-black ${!u && "hover:bg-grey-900"}`,
|
|
6262
6262
|
g
|
|
6263
|
-
),
|
|
6263
|
+
), A = "light";
|
|
6264
6264
|
break;
|
|
6265
6265
|
case "grey":
|
|
6266
6266
|
g = S(
|
|
6267
6267
|
a ? "text-black hover:text-grey-800 dark:text-white" : `bg-grey-100 text-black dark:bg-grey-900 dark:text-white ${!u && "hover:!bg-grey-300 dark:hover:!bg-grey-800"}`,
|
|
6268
6268
|
g
|
|
6269
|
-
),
|
|
6269
|
+
), A = "dark";
|
|
6270
6270
|
break;
|
|
6271
6271
|
case "green":
|
|
6272
6272
|
g = S(
|
|
6273
6273
|
a ? " text-green hover:text-green-400" : ` bg-green text-white ${!u && "hover:bg-green-400"}`,
|
|
6274
6274
|
g
|
|
6275
|
-
),
|
|
6275
|
+
), A = "light";
|
|
6276
6276
|
break;
|
|
6277
6277
|
case "red":
|
|
6278
6278
|
g = S(
|
|
6279
6279
|
a ? "text-red hover:text-red-400" : `bg-red text-white ${!u && "hover:bg-red-400"}`,
|
|
6280
6280
|
g
|
|
6281
|
-
),
|
|
6281
|
+
), A = "light";
|
|
6282
6282
|
break;
|
|
6283
6283
|
case "white":
|
|
6284
6284
|
g = S(
|
|
6285
6285
|
a ? "text-white hover:text-white dark:text-black dark:hover:text-grey-800" : "bg-white text-black dark:bg-black dark:text-white",
|
|
6286
6286
|
g
|
|
6287
|
-
),
|
|
6287
|
+
), A = "dark";
|
|
6288
6288
|
break;
|
|
6289
6289
|
case "outline":
|
|
6290
6290
|
g = S(
|
|
6291
6291
|
a ? "text-black hover:text-grey-800 dark:text-white" : `border border-grey-300 bg-transparent text-black dark:border-grey-800 dark:text-white ${!u && "hover:!border-black dark:hover:!border-white"}`,
|
|
6292
6292
|
g
|
|
6293
|
-
),
|
|
6293
|
+
), A = "dark";
|
|
6294
6294
|
break;
|
|
6295
6295
|
default:
|
|
6296
6296
|
g = S(
|
|
6297
6297
|
a ? " text-black hover:text-grey-800 dark:text-white" : ` text-black dark:text-white dark:hover:bg-grey-900 ${!u && "hover:bg-grey-200"}`,
|
|
6298
6298
|
g
|
|
6299
|
-
),
|
|
6299
|
+
), A = "dark";
|
|
6300
6300
|
break;
|
|
6301
6301
|
}
|
|
6302
6302
|
g = S(
|
|
@@ -6305,14 +6305,14 @@ const bu = Qe(void 0), cb = ({ children: t }) => {
|
|
|
6305
6305
|
g
|
|
6306
6306
|
);
|
|
6307
6307
|
}
|
|
6308
|
-
const
|
|
6308
|
+
const h = e && r && !n ? "mr-1.5" : "";
|
|
6309
6309
|
let y = "";
|
|
6310
6310
|
y += e && n ? "sr-only" : "", y += m ? "invisible" : "";
|
|
6311
6311
|
const I = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6312
|
-
r && /* @__PURE__ */ l.jsx(me, { className:
|
|
6312
|
+
r && /* @__PURE__ */ l.jsx(me, { className: h, colorClass: i, name: r, size: t === "sm" ? "sm" : "md" }),
|
|
6313
6313
|
/* @__PURE__ */ l.jsx("span", { className: y, children: e }),
|
|
6314
6314
|
m && /* @__PURE__ */ l.jsxs("div", { className: "absolute flex", children: [
|
|
6315
|
-
/* @__PURE__ */ l.jsx(yu, { color:
|
|
6315
|
+
/* @__PURE__ */ l.jsx(yu, { color: A, size: t }),
|
|
6316
6316
|
/* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
6317
6317
|
] })
|
|
6318
6318
|
] });
|
|
@@ -6402,7 +6402,7 @@ const bu = Qe(void 0), cb = ({ children: t }) => {
|
|
|
6402
6402
|
"sticky z-[299] mb-[-24px] flex items-center justify-between",
|
|
6403
6403
|
"h-[96px]",
|
|
6404
6404
|
e
|
|
6405
|
-
), g = "0", p = `${r}px`, m = "sticky mx-2 block h-[24px] rounded-full shadow-[0_0_0_1px_rgba(0,0,0,.025),0_-8px_16px_-3px_rgba(0,0,0,.08)]",
|
|
6405
|
+
), g = "0", p = `${r}px`, m = "sticky mx-2 block h-[24px] rounded-full shadow-[0_0_0_1px_rgba(0,0,0,.025),0_-8px_16px_-3px_rgba(0,0,0,.08)]", A = t ? `calc(${t} + ${r - 24}px)` : `${r - 24}px`;
|
|
6406
6406
|
return /* @__PURE__ */ l.jsxs(
|
|
6407
6407
|
"div",
|
|
6408
6408
|
{
|
|
@@ -6437,7 +6437,7 @@ const bu = Qe(void 0), cb = ({ children: t }) => {
|
|
|
6437
6437
|
{
|
|
6438
6438
|
className: m,
|
|
6439
6439
|
style: {
|
|
6440
|
-
bottom:
|
|
6440
|
+
bottom: A
|
|
6441
6441
|
}
|
|
6442
6442
|
}
|
|
6443
6443
|
)
|
|
@@ -6580,21 +6580,21 @@ function xt(t, e) {
|
|
|
6580
6580
|
O(function() {
|
|
6581
6581
|
s && !qe[o] && bi(o, t, e);
|
|
6582
6582
|
}, [s, o, t, e]);
|
|
6583
|
-
var a = n[o], c = H(function(
|
|
6584
|
-
return po(o,
|
|
6583
|
+
var a = n[o], c = H(function(A) {
|
|
6584
|
+
return po(o, A);
|
|
6585
6585
|
}, [o]), u = H(function() {
|
|
6586
6586
|
return ho(o);
|
|
6587
6587
|
}, [o]), d = H(function() {
|
|
6588
6588
|
return Cu(o);
|
|
6589
|
-
}, [o]), g = H(function(
|
|
6589
|
+
}, [o]), g = H(function(A) {
|
|
6590
6590
|
var b;
|
|
6591
|
-
(b = lt[o]) === null || b === void 0 || b.resolve(
|
|
6592
|
-
}, [o]), p = H(function(
|
|
6591
|
+
(b = lt[o]) === null || b === void 0 || b.resolve(A), delete lt[o];
|
|
6592
|
+
}, [o]), p = H(function(A) {
|
|
6593
6593
|
var b;
|
|
6594
|
-
(b = lt[o]) === null || b === void 0 || b.reject(
|
|
6595
|
-
}, [o]), m = H(function(
|
|
6594
|
+
(b = lt[o]) === null || b === void 0 || b.reject(A), delete lt[o];
|
|
6595
|
+
}, [o]), m = H(function(A) {
|
|
6596
6596
|
var b;
|
|
6597
|
-
(b = Kt[o]) === null || b === void 0 || b.resolve(
|
|
6597
|
+
(b = Kt[o]) === null || b === void 0 || b.resolve(A), delete Kt[o];
|
|
6598
6598
|
}, [o]);
|
|
6599
6599
|
return ie(function() {
|
|
6600
6600
|
return {
|
|
@@ -6775,10 +6775,10 @@ const Eu = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", Ao = ({
|
|
|
6775
6775
|
padding: g = !0,
|
|
6776
6776
|
onOk: p,
|
|
6777
6777
|
okColor: m = "black",
|
|
6778
|
-
onCancel:
|
|
6778
|
+
onCancel: A,
|
|
6779
6779
|
topRightContent: b,
|
|
6780
6780
|
hideXOnMobile: v = !1,
|
|
6781
|
-
afterClose:
|
|
6781
|
+
afterClose: h,
|
|
6782
6782
|
children: y,
|
|
6783
6783
|
backDrop: I = !0,
|
|
6784
6784
|
backDropClick: M = !0,
|
|
@@ -6796,15 +6796,15 @@ const Eu = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", Ao = ({
|
|
|
6796
6796
|
}, [j, Z]), O(() => {
|
|
6797
6797
|
const re = (Ce) => {
|
|
6798
6798
|
Ce.key === "Escape" && (document.activeElement && document.activeElement instanceof HTMLElement && document.activeElement.blur(), setTimeout(() => {
|
|
6799
|
-
|
|
6800
|
-
R.remove(),
|
|
6799
|
+
A ? A() : Lr(j, () => {
|
|
6800
|
+
R.remove(), h == null || h();
|
|
6801
6801
|
});
|
|
6802
6802
|
}));
|
|
6803
6803
|
};
|
|
6804
6804
|
return document.addEventListener("keydown", re), () => {
|
|
6805
6805
|
document.removeEventListener("keydown", re);
|
|
6806
6806
|
};
|
|
6807
|
-
}, [R, j,
|
|
6807
|
+
}, [R, j, h, A]), O(() => {
|
|
6808
6808
|
const re = setTimeout(() => {
|
|
6809
6809
|
G(!0);
|
|
6810
6810
|
}, 250);
|
|
@@ -6823,14 +6823,14 @@ const Eu = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", Ao = ({
|
|
|
6823
6823
|
let ee = [], De, ue;
|
|
6824
6824
|
const ze = () => {
|
|
6825
6825
|
Lr(j, () => {
|
|
6826
|
-
R.remove(),
|
|
6826
|
+
R.remove(), h == null || h();
|
|
6827
6827
|
});
|
|
6828
6828
|
};
|
|
6829
6829
|
a || (o && ee.push({
|
|
6830
6830
|
key: "cancel-modal",
|
|
6831
6831
|
label: o,
|
|
6832
6832
|
color: "outline",
|
|
6833
|
-
onClick:
|
|
6833
|
+
onClick: A || (() => {
|
|
6834
6834
|
ze();
|
|
6835
6835
|
}),
|
|
6836
6836
|
disabled: d
|
|
@@ -7045,7 +7045,7 @@ const kb = () => {
|
|
|
7045
7045
|
window.location.hash = "/dashboard";
|
|
7046
7046
|
};
|
|
7047
7047
|
return /* @__PURE__ */ l.jsx(U, { "data-testid": "exit-settings", label: "← Done", link: !0, onClick: () => Lr(t, e) });
|
|
7048
|
-
}, Eb = Y.lazy(() => import("./CodeEditorView-
|
|
7048
|
+
}, Eb = Y.lazy(() => import("./CodeEditorView-4989db6d.mjs")), Ts = Bt(function(e, n) {
|
|
7049
7049
|
return /* @__PURE__ */ l.jsx(nc, { fallback: null, children: /* @__PURE__ */ l.jsx(Eb, { ...e, ref: n }) });
|
|
7050
7050
|
}), Lb = ({ hint: t, value: e, onChange: n, afterClose: r }) => {
|
|
7051
7051
|
const i = xt(), s = ie(() => import("./index-b8cc4f2e.mjs").then((a) => a.html()), []), o = () => {
|
|
@@ -7108,7 +7108,7 @@ const kb = () => {
|
|
|
7108
7108
|
return !u || !d ? 0 : u.getBoundingClientRect().top - d.getBoundingClientRect().top;
|
|
7109
7109
|
}), o;
|
|
7110
7110
|
}, Ob = ({ children: t }) => {
|
|
7111
|
-
const [e, n] = C(null), r = oe({}), i = oe(null), [s, o] = C([]), [a, c] = C(null), [u, d] = C(!1), [g, p] = C(!1), [, m] = C(!1),
|
|
7111
|
+
const [e, n] = C(null), r = oe({}), i = oe(null), [s, o] = C([]), [a, c] = C(null), [u, d] = C(!1), [g, p] = C(!1), [, m] = C(!1), A = H((N) => {
|
|
7112
7112
|
n(N), d(!0);
|
|
7113
7113
|
}, []), b = oe({}), v = H(() => {
|
|
7114
7114
|
const N = new IntersectionObserver((x) => {
|
|
@@ -7120,7 +7120,7 @@ const kb = () => {
|
|
|
7120
7120
|
rootMargin: `-${Tu - 50}px 0px -40% 0px`
|
|
7121
7121
|
});
|
|
7122
7122
|
return Object.values(r.current).forEach((x) => N.observe(x)), N;
|
|
7123
|
-
}, []),
|
|
7123
|
+
}, []), h = H((N, x) => {
|
|
7124
7124
|
var w, j;
|
|
7125
7125
|
r.current[N] !== x && (r.current[N] && ((w = i.current) == null || w.unobserve(r.current[N])), r.current[N] = x, (j = i.current) == null || j.observe(x), !g && N === e && (Hi(x, !1), p(!0)));
|
|
7126
7126
|
}, [i, e, g]), y = H((N, x) => {
|
|
@@ -7133,10 +7133,10 @@ const kb = () => {
|
|
|
7133
7133
|
}, [u, e, v]), O(() => {
|
|
7134
7134
|
u && M && b.current[M] && m((N) => (Tb(b.current[M], N), !0));
|
|
7135
7135
|
}, [u, M]), /* @__PURE__ */ l.jsx(Pu.Provider, { value: {
|
|
7136
|
-
updateSection:
|
|
7136
|
+
updateSection: h,
|
|
7137
7137
|
updateNav: y,
|
|
7138
7138
|
currentSection: M,
|
|
7139
|
-
updateNavigatedSection:
|
|
7139
|
+
updateNavigatedSection: A,
|
|
7140
7140
|
scrollToSection: I
|
|
7141
7141
|
}, children: t });
|
|
7142
7142
|
}, Bb = (t) => {
|
|
@@ -7211,7 +7211,7 @@ const Ub = (t) => {
|
|
|
7211
7211
|
changingModal: c && c !== o,
|
|
7212
7212
|
modal: a && c ? (
|
|
7213
7213
|
// we should consider adding '&& modalName !== currentModalName' here, but this breaks tests
|
|
7214
|
-
import("./modals-
|
|
7214
|
+
import("./modals-02dc5819.mjs").then(({ default: u }) => {
|
|
7215
7215
|
Ue.show(u[c], { pathName: i, params: Ui(i, a), searchParams: s });
|
|
7216
7216
|
})
|
|
7217
7217
|
) : void 0
|
|
@@ -7226,7 +7226,7 @@ const Ub = (t) => {
|
|
|
7226
7226
|
const [n, r] = C(void 0), [i, s] = C(!1), { updateNavigatedSection: o, scrollToSection: a } = yi();
|
|
7227
7227
|
O(() => {
|
|
7228
7228
|
setTimeout(() => {
|
|
7229
|
-
import("./modals-
|
|
7229
|
+
import("./modals-02dc5819.mjs");
|
|
7230
7230
|
}, 1e3);
|
|
7231
7231
|
}, []);
|
|
7232
7232
|
const c = H((u) => {
|
|
@@ -7276,10 +7276,10 @@ const Ub = (t) => {
|
|
|
7276
7276
|
hideEditButton: g,
|
|
7277
7277
|
alwaysShowSaveButton: p = !0,
|
|
7278
7278
|
border: m = !0,
|
|
7279
|
-
highlightOnModalClose:
|
|
7279
|
+
highlightOnModalClose: A = !0,
|
|
7280
7280
|
styles: b,
|
|
7281
7281
|
onEditingChange: v,
|
|
7282
|
-
onSave:
|
|
7282
|
+
onSave: h,
|
|
7283
7283
|
onCancel: y,
|
|
7284
7284
|
enableCMDS: I = !0
|
|
7285
7285
|
}) => {
|
|
@@ -7288,7 +7288,7 @@ const Ub = (t) => {
|
|
|
7288
7288
|
}, k = () => {
|
|
7289
7289
|
y == null || y(), v == null || v(!1);
|
|
7290
7290
|
}, B = () => {
|
|
7291
|
-
|
|
7291
|
+
h == null || h();
|
|
7292
7292
|
};
|
|
7293
7293
|
o === "unsaved" ? b += " border-green" : s ? b += " border-grey-700 dark:border-grey-600" : b += " border-grey-300 dark:border-grey-800 hover:border-grey-500";
|
|
7294
7294
|
let R = [];
|
|
@@ -7349,7 +7349,7 @@ const Ub = (t) => {
|
|
|
7349
7349
|
"relative flex-col gap-6 rounded-lg transition-all",
|
|
7350
7350
|
m && "border p-5 md:p-7",
|
|
7351
7351
|
M(i) ? "flex" : "hidden",
|
|
7352
|
-
x &&
|
|
7352
|
+
x && A && "before:pointer-events-none before:absolute before:inset-[1px] before:animate-setting-highlight-fade-out before:rounded before:shadow-[0_0_0_3px_rgba(48,207,67,0.45)]",
|
|
7353
7353
|
!s && "is-not-editing group/setting-group",
|
|
7354
7354
|
b
|
|
7355
7355
|
);
|
|
@@ -7411,7 +7411,7 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7411
7411
|
s == null || s(), d((y) => y === "saved" ? "" : y);
|
|
7412
7412
|
}, n);
|
|
7413
7413
|
}, [u, n]);
|
|
7414
|
-
const m = (y) => Object.values(y).filter(Boolean).length === 0,
|
|
7414
|
+
const m = (y) => Object.values(y).filter(Boolean).length === 0, A = H(
|
|
7415
7415
|
() => {
|
|
7416
7416
|
if (!o)
|
|
7417
7417
|
return !0;
|
|
@@ -7420,7 +7420,7 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7420
7420
|
},
|
|
7421
7421
|
[a, o]
|
|
7422
7422
|
), b = H(async (y = {}) => {
|
|
7423
|
-
if (!
|
|
7423
|
+
if (!A())
|
|
7424
7424
|
return !1;
|
|
7425
7425
|
if (u !== "unsaved" && !y.force && !y.fakeWhenUnchanged)
|
|
7426
7426
|
return !0;
|
|
@@ -7435,9 +7435,9 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7435
7435
|
} catch (M) {
|
|
7436
7436
|
throw await (i == null ? void 0 : i(M)), d("unsaved"), M;
|
|
7437
7437
|
}
|
|
7438
|
-
}, [a, u, e, r, i,
|
|
7438
|
+
}, [a, u, e, r, i, A]), v = H((y) => {
|
|
7439
7439
|
c(y), d("unsaved");
|
|
7440
|
-
}, []),
|
|
7440
|
+
}, []), h = {
|
|
7441
7441
|
disabled: u === "saving",
|
|
7442
7442
|
color: u === "saved" ? "green" : "black",
|
|
7443
7443
|
label: u === "saved" ? "Saved" : u === "saving" ? "Saving..." : void 0
|
|
@@ -7451,17 +7451,17 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7451
7451
|
reset() {
|
|
7452
7452
|
c(t), d("");
|
|
7453
7453
|
},
|
|
7454
|
-
validate:
|
|
7454
|
+
validate: A,
|
|
7455
7455
|
isValid: m(g),
|
|
7456
7456
|
clearError: (y) => {
|
|
7457
7457
|
p((I) => ({ ...I, [y]: "" }));
|
|
7458
7458
|
},
|
|
7459
7459
|
errors: g,
|
|
7460
7460
|
setErrors: p,
|
|
7461
|
-
okProps:
|
|
7461
|
+
okProps: h
|
|
7462
7462
|
};
|
|
7463
7463
|
}, Te = ({ savingDelay: t, onValidate: e } = {}) => {
|
|
7464
|
-
const n = oe(null), { siteData: r, settings: i } = je(), { mutateAsync: s } = Ai(), o = Ze(), [a, c] = C(!1), { formState: u, saveState: d, handleSave: g, updateForm: p, setFormState: m, reset:
|
|
7464
|
+
const n = oe(null), { siteData: r, settings: i } = je(), { mutateAsync: s } = Ai(), o = Ze(), [a, c] = C(!1), { formState: u, saveState: d, handleSave: g, updateForm: p, setFormState: m, reset: A, validate: b, errors: v, clearError: h, okProps: y } = Ou({
|
|
7465
7465
|
initialState: i || [],
|
|
7466
7466
|
savingDelay: t,
|
|
7467
7467
|
onSave: async () => {
|
|
@@ -7499,7 +7499,7 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7499
7499
|
}), j;
|
|
7500
7500
|
},
|
|
7501
7501
|
handleCancel: () => {
|
|
7502
|
-
|
|
7502
|
+
A(), c(!1);
|
|
7503
7503
|
},
|
|
7504
7504
|
updateSetting: (j, D) => {
|
|
7505
7505
|
p((k) => k.some((B) => B.key === j) ? k.map((B) => B.key === j ? { ...B, value: D, dirty: !0 } : B) : [...k, { key: j, value: D, dirty: !0 }]);
|
|
@@ -7509,7 +7509,7 @@ const Ou = ({ initialState: t, savingDelay: e, savedDelay: n = 2e3, onSave: r, o
|
|
|
7509
7509
|
},
|
|
7510
7510
|
validate: b,
|
|
7511
7511
|
errors: v,
|
|
7512
|
-
clearError:
|
|
7512
|
+
clearError: h,
|
|
7513
7513
|
okProps: y
|
|
7514
7514
|
};
|
|
7515
7515
|
}, Bu = ({ color: t = "grey", children: e, className: n }) => {
|
|
@@ -7562,17 +7562,17 @@ const ne = (t, e) => function(r) {
|
|
|
7562
7562
|
handleCancel: s,
|
|
7563
7563
|
updateSetting: o,
|
|
7564
7564
|
handleEditingChange: a
|
|
7565
|
-
} = Te(), [c, u] = le(e, ["codeinjection_head", "codeinjection_foot"]), [d, g] = C("header"), p = oe(null), m = oe(null),
|
|
7566
|
-
extensions: [
|
|
7565
|
+
} = Te(), [c, u] = le(e, ["codeinjection_head", "codeinjection_foot"]), [d, g] = C("header"), p = oe(null), m = oe(null), A = ie(() => import("./index-b8cc4f2e.mjs").then((y) => y.html()), []), b = {
|
|
7566
|
+
extensions: [A],
|
|
7567
7567
|
hint: "Code here will be injected into the {{ghost_head}} tag on every page of the site",
|
|
7568
7568
|
value: c || "",
|
|
7569
7569
|
onChange: (y) => o("codeinjection_head", y)
|
|
7570
7570
|
}, v = {
|
|
7571
|
-
extensions: [
|
|
7571
|
+
extensions: [A],
|
|
7572
7572
|
hint: "Code here will be injected into the {{ghost_foot}} tag on every page of the site",
|
|
7573
7573
|
value: u || "",
|
|
7574
7574
|
onChange: (y) => o("codeinjection_foot", y)
|
|
7575
|
-
},
|
|
7575
|
+
}, h = [
|
|
7576
7576
|
{
|
|
7577
7577
|
id: "header",
|
|
7578
7578
|
title: "Site header",
|
|
@@ -7598,7 +7598,7 @@ const ne = (t, e) => function(r) {
|
|
|
7598
7598
|
onEditingChange: a,
|
|
7599
7599
|
onSave: i,
|
|
7600
7600
|
children: n && /* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
|
|
7601
|
-
/* @__PURE__ */ l.jsx(Zt, { selectedTab: d, tabs:
|
|
7601
|
+
/* @__PURE__ */ l.jsx(Zt, { selectedTab: d, tabs: h, onTabChange: g }),
|
|
7602
7602
|
/* @__PURE__ */ l.jsx(
|
|
7603
7603
|
U,
|
|
7604
7604
|
{
|
|
@@ -7712,13 +7712,13 @@ const ne = (t, e) => function(r) {
|
|
|
7712
7712
|
}) => {
|
|
7713
7713
|
const m = (b) => {
|
|
7714
7714
|
g == null || g(b);
|
|
7715
|
-
},
|
|
7715
|
+
}, A = S(
|
|
7716
7716
|
"group/list-item flex items-center justify-between",
|
|
7717
7717
|
u && "hover:bg-gradient-to-r hover:from-white hover:to-grey-50 dark:hover:from-black dark:hover:to-grey-950",
|
|
7718
7718
|
c ? "border-b border-grey-100 last-of-type:border-b-transparent hover:border-grey-200 dark:border-grey-900 dark:hover:border-grey-800" : "border-y border-transparent hover:border-grey-200 first-of-type:hover:border-t-transparent dark:hover:border-grey-800",
|
|
7719
7719
|
o
|
|
7720
7720
|
);
|
|
7721
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
7721
|
+
return /* @__PURE__ */ l.jsxs("div", { className: A, "data-testid": a, children: [
|
|
7722
7722
|
p || /* @__PURE__ */ l.jsxs("div", { className: `flex grow items-center gap-3 ${g && "cursor-pointer"}`, onClick: m, children: [
|
|
7723
7723
|
s && s,
|
|
7724
7724
|
/* @__PURE__ */ l.jsxs("div", { className: "flex grow flex-col py-3 pr-6", id: t, children: [
|
|
@@ -7740,30 +7740,30 @@ function vo() {
|
|
|
7740
7740
|
let v = (() => m != null && m.js ? m == null ? void 0 : m.js : d || null)();
|
|
7741
7741
|
if (v) {
|
|
7742
7742
|
if (v.startsWith("/")) {
|
|
7743
|
-
const { adminRoot:
|
|
7744
|
-
v = window.location.origin +
|
|
7743
|
+
const { adminRoot: h } = Er();
|
|
7744
|
+
v = window.location.origin + h.replace(/\/$/, "") + v;
|
|
7745
7745
|
}
|
|
7746
7746
|
if (window.pintura) {
|
|
7747
7747
|
i(!0);
|
|
7748
7748
|
return;
|
|
7749
7749
|
}
|
|
7750
7750
|
try {
|
|
7751
|
-
const
|
|
7752
|
-
import(`${
|
|
7751
|
+
const h = new URL(v);
|
|
7752
|
+
import(`${h.protocol}//${h.host}${h.pathname}`).then(() => {
|
|
7753
7753
|
i(!0);
|
|
7754
7754
|
}).catch((M) => {
|
|
7755
7755
|
Et(M);
|
|
7756
7756
|
});
|
|
7757
|
-
} catch (
|
|
7758
|
-
Et(
|
|
7757
|
+
} catch (h) {
|
|
7758
|
+
Et(h);
|
|
7759
7759
|
}
|
|
7760
7760
|
}
|
|
7761
7761
|
}, [d, m == null ? void 0 : m.js]), O(() => {
|
|
7762
7762
|
let v = (() => m != null && m.css ? m == null ? void 0 : m.css : g || null)();
|
|
7763
7763
|
if (v) {
|
|
7764
7764
|
if (v.startsWith("/")) {
|
|
7765
|
-
const { adminRoot:
|
|
7766
|
-
v = window.location.origin +
|
|
7765
|
+
const { adminRoot: h } = Er();
|
|
7766
|
+
v = window.location.origin + h.replace(/\/$/, "") + v;
|
|
7767
7767
|
}
|
|
7768
7768
|
try {
|
|
7769
7769
|
if (document.querySelector(`link[href="${v}"]`))
|
|
@@ -7774,17 +7774,17 @@ function vo() {
|
|
|
7774
7774
|
o(!0);
|
|
7775
7775
|
}, document.head.appendChild(y);
|
|
7776
7776
|
}
|
|
7777
|
-
} catch (
|
|
7778
|
-
Et(
|
|
7777
|
+
} catch (h) {
|
|
7778
|
+
Et(h);
|
|
7779
7779
|
}
|
|
7780
7780
|
}
|
|
7781
7781
|
}, [g, m == null ? void 0 : m.css]);
|
|
7782
|
-
const
|
|
7782
|
+
const A = H(
|
|
7783
7783
|
({ image: b, handleSave: v }) => {
|
|
7784
7784
|
if (b && p) {
|
|
7785
|
-
const
|
|
7786
|
-
|
|
7787
|
-
const y =
|
|
7785
|
+
const h = new URL(b);
|
|
7786
|
+
h.searchParams.has("v") || h.searchParams.set("v", Date.now().toString());
|
|
7787
|
+
const y = h.href, I = window.pintura.openDefaultEditor({
|
|
7788
7788
|
src: y,
|
|
7789
7789
|
enableTransparencyGrid: !0,
|
|
7790
7790
|
util: "crop",
|
|
@@ -7846,20 +7846,20 @@ function vo() {
|
|
|
7846
7846
|
[p]
|
|
7847
7847
|
);
|
|
7848
7848
|
return O(() => {
|
|
7849
|
-
const b = (
|
|
7850
|
-
|
|
7849
|
+
const b = (h) => {
|
|
7850
|
+
h.key === "Escape" && h.stopPropagation();
|
|
7851
7851
|
};
|
|
7852
7852
|
if (!a)
|
|
7853
7853
|
return;
|
|
7854
|
-
const v = (
|
|
7855
|
-
|
|
7854
|
+
const v = (h) => {
|
|
7855
|
+
h.target instanceof Element && h.target.closest('.PinturaModal button[title="Close"]') && (u.current = !0);
|
|
7856
7856
|
};
|
|
7857
7857
|
return window.addEventListener("click", v, { capture: !0 }), window.addEventListener("keydown", b, { capture: !0 }), () => {
|
|
7858
7858
|
window.removeEventListener("click", v, { capture: !0 }), window.removeEventListener("keydown", b, { capture: !0 });
|
|
7859
7859
|
};
|
|
7860
7860
|
}, [a]), {
|
|
7861
7861
|
isEnabled: p,
|
|
7862
|
-
openEditor:
|
|
7862
|
+
openEditor: A
|
|
7863
7863
|
};
|
|
7864
7864
|
}
|
|
7865
7865
|
const Yb = (t) => /* @__PURE__ */ f("svg", { width: 256, height: 256, viewBox: "0 0 256 256", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f("title", null, "amp"), /* @__PURE__ */ f("path", { d: "m171.887 116.28-53.696 89.36h-9.728l9.617-58.227-30.2.047a4.854 4.854 0 0 1-4.855-4.855c0-1.152 1.07-3.102 1.07-3.102l53.52-89.254 9.9.043-9.86 58.317 30.413-.043a4.854 4.854 0 0 1 4.855 4.855c0 1.088-.427 2.044-1.033 2.854l.004.004-.007.001zM128 0C57.306 0 0 57.3 0 128s57.306 128 128 128 128-57.306 128-128S198.7 0 128 0z", fill: "#0379C4", fillRule: "evenodd" })), Xb = (t) => /* @__PURE__ */ f("svg", { width: 100, height: 100, viewBox: "0 0 100 100", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f("g", { clipPath: "url(#clip0_2155_3527)" }, /* @__PURE__ */ f("path", { d: "M87.4883 44.5547C86.4414 41.9023 84.8242 39.6016 82.6914 37.7148C80.5703 35.8594 77.8789 34.4141 74.6758 33.4062C71.5273 32.4141 67.7891 31.9141 63.5586 31.9141H56.1328V41.293H63.5586C68.418 41.293 72.0469 42.3711 74.3711 44.4805C76.6875 46.5977 77.8125 49.4844 77.8125 53.3203C77.8125 55.1523 77.5078 56.8555 76.9023 58.3711C76.3047 59.8633 75.4141 61.1562 74.2539 62.2305C73.082 63.3008 71.5859 64.1602 69.832 64.7734C68.0352 65.3984 65.9297 65.707 63.5586 65.707H56.1328V75.125H63.5586C67.5898 75.125 71.2227 74.5898 74.3555 73.5391C77.5273 72.4805 80.2266 70.9688 82.3984 69.0469C84.5547 67.1211 86.2344 64.7891 87.3711 62.1094C88.4883 59.4492 89.0586 56.4961 89.0586 53.3203C89.0586 50.1172 88.5273 47.1758 87.4883 44.5547Z", fill: "#444448" }), /* @__PURE__ */ f("path", { d: "M50.2656 91.5742V31.9141H41.5273L26.3594 44.6211L29.7227 49.2422C30.0234 49.707 30.4648 50.1055 31.0547 50.4258C31.9805 50.9258 33.1328 51.0547 34.3125 50.6562C34.7617 50.4922 35.2148 50.2344 35.6289 49.8984L39.1406 47.1914C39.1367 47.7227 39.1289 48.2617 39.1289 48.8008V91.5742H30.5938V100.02H58.5V91.5742H50.2656Z", fill: "#55ABE3" }), /* @__PURE__ */ f("path", { d: "M39.7969 56.1875V56.2031L39.9414 56.1758V56.1641C39.8945 56.168 39.8398 56.1797 39.7969 56.1875Z", fill: "#444448" }), /* @__PURE__ */ f("path", { d: "M13.9416 73.4297C15.1018 73.7305 16.3323 74.0195 17.6838 74.2695C21.8791 75.043 24.2502 75.1133 31.762 75.1133V65.4609C31.762 65.4609 -3.89429 68.3984 5.62524 49.3594C5.62524 49.3594 -0.0427259 53.125 0.000243083 59.1367C0.504149 67.4141 8.51977 71.9023 13.9416 73.4297Z", fill: "#444448" }), /* @__PURE__ */ f("path", { d: "M44.1222 16.2383C17.4504 32.2187 4.88397 50.1406 10.2863 56.2305C12.3605 58.5664 17.298 59.3242 24.0597 58.5156C12.4777 56.5 19.3801 45.4883 19.3801 45.4883L19.3957 45.5117C24.2238 36.1992 38.5324 23.0898 60.9152 10.9648C69.1769 6.48437 77.2512 2.85938 84.8527 0C74.1496 1.70703 59.4933 7.03125 44.1222 16.2383Z", fill: "#55ABE3" })), /* @__PURE__ */ f("defs", null, /* @__PURE__ */ f("clipPath", { id: "clip0_2155_3527" }, /* @__PURE__ */ f("rect", { width: 100, height: 100, fill: "white" })))), Jn = "IntegrationsResponseType", Kw = Jn, qb = st({
|
|
@@ -7936,8 +7936,8 @@ const Yb = (t) => /* @__PURE__ */ f("svg", { width: 256, height: 256, viewBox: "
|
|
|
7936
7936
|
);
|
|
7937
7937
|
}, ny = () => {
|
|
7938
7938
|
var g, p, m;
|
|
7939
|
-
const { config: t } = je(), { updateRoute: e } = X(), n = (
|
|
7940
|
-
e(
|
|
7939
|
+
const { config: t } = je(), { updateRoute: e } = X(), n = (A) => {
|
|
7940
|
+
e(A);
|
|
7941
7941
|
}, r = (m = (p = (g = t.hostSettings) == null ? void 0 : g.limits) == null ? void 0 : p.customIntegrations) == null ? void 0 : m.disabled, i = vo(), { settings: s } = je(), [o, a, c, u, d] = le(s, ["amp", "unsplash", "pintura", "firstpromoter", "slack_url", "slack_username"]);
|
|
7942
7942
|
return /* @__PURE__ */ l.jsxs(Wt, { titleSeparator: !1, children: [
|
|
7943
7943
|
/* @__PURE__ */ l.jsx(
|
|
@@ -8093,21 +8093,21 @@ const Yb = (t) => /* @__PURE__ */ f("svg", { width: 256, height: 256, viewBox: "
|
|
|
8093
8093
|
onChange: g
|
|
8094
8094
|
}) => {
|
|
8095
8095
|
const p = Rt();
|
|
8096
|
-
let m = "",
|
|
8096
|
+
let m = "", A = "";
|
|
8097
8097
|
switch (t) {
|
|
8098
8098
|
case "sm":
|
|
8099
|
-
m = " h-3 w-5 after:h-2 after:w-2 checked:after:ml-[1.0rem]",
|
|
8099
|
+
m = " h-3 w-5 after:h-2 after:w-2 checked:after:ml-[1.0rem]", A = "mt-[-5.5px]";
|
|
8100
8100
|
break;
|
|
8101
8101
|
case "lg":
|
|
8102
|
-
m = " h-5 w-8 after:h-4 after:w-4 checked:after:ml-[1.4rem]",
|
|
8102
|
+
m = " h-5 w-8 after:h-4 after:w-4 checked:after:ml-[1.4rem]", A = "mt-[-1px]";
|
|
8103
8103
|
break;
|
|
8104
8104
|
default:
|
|
8105
|
-
m = " min-w-[28px] h-4 w-7 after:h-3 after:w-3 checked:after:ml-[1.4rem]",
|
|
8105
|
+
m = " min-w-[28px] h-4 w-7 after:h-3 after:w-3 checked:after:ml-[1.4rem]", A = "mt-[-3px]";
|
|
8106
8106
|
break;
|
|
8107
8107
|
}
|
|
8108
|
-
|
|
8108
|
+
A = S(
|
|
8109
8109
|
i,
|
|
8110
|
-
|
|
8110
|
+
A
|
|
8111
8111
|
), r === "heading" && (e = "rtl");
|
|
8112
8112
|
let b;
|
|
8113
8113
|
switch (s) {
|
|
@@ -8143,7 +8143,7 @@ const Yb = (t) => /* @__PURE__ */ f("svg", { width: 256, height: 256, viewBox: "
|
|
|
8143
8143
|
onChange: g
|
|
8144
8144
|
}
|
|
8145
8145
|
),
|
|
8146
|
-
n && /* @__PURE__ */ l.jsxs("label", { className: `flex grow flex-col hover:cursor-pointer ${e === "rtl" && "order-1"} ${
|
|
8146
|
+
n && /* @__PURE__ */ l.jsxs("label", { className: `flex grow flex-col hover:cursor-pointer ${e === "rtl" && "order-1"} ${A}`, htmlFor: p, children: [
|
|
8147
8147
|
r === "heading" ? /* @__PURE__ */ l.jsx("span", { className: `${ju} mt-1`, children: n }) : /* @__PURE__ */ l.jsx("span", { children: n }),
|
|
8148
8148
|
o && /* @__PURE__ */ l.jsx("span", { className: `text-xs ${c ? "text-red" : "text-grey-700 dark:text-grey-600"}`, children: o })
|
|
8149
8149
|
] })
|
|
@@ -8256,21 +8256,21 @@ const Yb = (t) => /* @__PURE__ */ f("svg", { width: 256, height: 256, viewBox: "
|
|
|
8256
8256
|
title: t.title
|
|
8257
8257
|
}
|
|
8258
8258
|
)) }), Pr = ({ id: t, onUpload: e, children: n, style: r, unstyled: i = !1, inputRef: s, className: o, dragIndicatorClassName: a, ...c }) => {
|
|
8259
|
-
const [u, d] = C(Date.now()), [g, p] = C(!1), m = (
|
|
8259
|
+
const [u, d] = C(Date.now()), [g, p] = C(!1), m = (h) => {
|
|
8260
8260
|
var I;
|
|
8261
|
-
const y = (I =
|
|
8261
|
+
const y = (I = h.target.files) == null ? void 0 : I[0];
|
|
8262
8262
|
y && (e == null || e(y)), d(Date.now());
|
|
8263
|
-
},
|
|
8263
|
+
}, A = (h) => {
|
|
8264
8264
|
var I;
|
|
8265
|
-
v(
|
|
8266
|
-
const y = (I =
|
|
8265
|
+
v(h);
|
|
8266
|
+
const y = (I = h.dataTransfer.files) == null ? void 0 : I[0];
|
|
8267
8267
|
y && (e == null || e(y)), d(Date.now());
|
|
8268
|
-
}, b = (
|
|
8269
|
-
|
|
8270
|
-
}, v = (
|
|
8271
|
-
|
|
8268
|
+
}, b = (h) => {
|
|
8269
|
+
h.preventDefault(), p(!0);
|
|
8270
|
+
}, v = (h) => {
|
|
8271
|
+
h.preventDefault(), p(!1);
|
|
8272
8272
|
};
|
|
8273
|
-
return /* @__PURE__ */ l.jsxs("label", { className: S("relative", o), htmlFor: t, style: r, onDragEnter: b, onDragLeave: v, onDragOver: b, onDrop:
|
|
8273
|
+
return /* @__PURE__ */ l.jsxs("label", { className: S("relative", o), htmlFor: t, style: r, onDragEnter: b, onDragLeave: v, onDragOver: b, onDrop: A, ...c, children: [
|
|
8274
8274
|
g && /* @__PURE__ */ l.jsx("div", { className: S("absolute inset-1 rounded border-2 border-dashed border-grey-400/25", a) }),
|
|
8275
8275
|
/* @__PURE__ */ l.jsx("input", { ref: s || null, id: t, type: "file", hidden: !0, onChange: m }, u),
|
|
8276
8276
|
typeof n == "string" ? /* @__PURE__ */ l.jsx("div", { className: i ? "" : "inline-flex h-[34px] cursor-pointer items-center justify-center rounded px-4 text-sm font-semibold hover:bg-grey-100 dark:text-white dark:hover:bg-grey-900", children: n }) : n
|
|
@@ -8882,11 +8882,11 @@ function qy(t) {
|
|
|
8882
8882
|
return Vu(Mr("", null, null, null, [""], t = Qu(t), 0, [0], t));
|
|
8883
8883
|
}
|
|
8884
8884
|
function Mr(t, e, n, r, i, s, o, a, c) {
|
|
8885
|
-
for (var u = 0, d = 0, g = o, p = 0, m = 0,
|
|
8886
|
-
switch (
|
|
8885
|
+
for (var u = 0, d = 0, g = o, p = 0, m = 0, A = 0, b = 1, v = 1, h = 1, y = 0, I = "", M = i, N = s, x = r, w = I; v; )
|
|
8886
|
+
switch (A = y, y = Fe()) {
|
|
8887
8887
|
case 40:
|
|
8888
|
-
if (
|
|
8889
|
-
Bs(w += J(Ir(y), "&", "&\f"), "&\f") != -1 && (
|
|
8888
|
+
if (A != 108 && Ee(w, g - 1) == 58) {
|
|
8889
|
+
Bs(w += J(Ir(y), "&", "&\f"), "&\f") != -1 && (h = -1);
|
|
8890
8890
|
break;
|
|
8891
8891
|
}
|
|
8892
8892
|
case 34:
|
|
@@ -8898,7 +8898,7 @@ function Mr(t, e, n, r, i, s, o, a, c) {
|
|
|
8898
8898
|
case 10:
|
|
8899
8899
|
case 13:
|
|
8900
8900
|
case 32:
|
|
8901
|
-
w += Vy(
|
|
8901
|
+
w += Vy(A);
|
|
8902
8902
|
break;
|
|
8903
8903
|
case 92:
|
|
8904
8904
|
w += Jy(yr() - 1, 7);
|
|
@@ -8914,7 +8914,7 @@ function Mr(t, e, n, r, i, s, o, a, c) {
|
|
|
8914
8914
|
}
|
|
8915
8915
|
break;
|
|
8916
8916
|
case 123 * b:
|
|
8917
|
-
a[u++] = $e(w) *
|
|
8917
|
+
a[u++] = $e(w) * h;
|
|
8918
8918
|
case 125 * b:
|
|
8919
8919
|
case 59:
|
|
8920
8920
|
case 0:
|
|
@@ -8923,7 +8923,7 @@ function Mr(t, e, n, r, i, s, o, a, c) {
|
|
|
8923
8923
|
case 125:
|
|
8924
8924
|
v = 0;
|
|
8925
8925
|
case 59 + d:
|
|
8926
|
-
|
|
8926
|
+
h == -1 && (w = J(w, /\f/g, "")), m > 0 && $e(w) - g && lr(m > 32 ? Il(w + ";", r, n, g - 1) : Il(J(w, " ", "") + ";", r, n, g - 2), c);
|
|
8927
8927
|
break;
|
|
8928
8928
|
case 59:
|
|
8929
8929
|
w += ";";
|
|
@@ -8943,10 +8943,10 @@ function Mr(t, e, n, r, i, s, o, a, c) {
|
|
|
8943
8943
|
Mr(w, x, x, x, [""], N, 0, a, N);
|
|
8944
8944
|
}
|
|
8945
8945
|
}
|
|
8946
|
-
u = d = m = 0, b =
|
|
8946
|
+
u = d = m = 0, b = h = 1, I = w = "", g = o;
|
|
8947
8947
|
break;
|
|
8948
8948
|
case 58:
|
|
8949
|
-
g = 1 + $e(w), m =
|
|
8949
|
+
g = 1 + $e(w), m = A;
|
|
8950
8950
|
default:
|
|
8951
8951
|
if (b < 1) {
|
|
8952
8952
|
if (y == 123)
|
|
@@ -8956,24 +8956,24 @@ function Mr(t, e, n, r, i, s, o, a, c) {
|
|
|
8956
8956
|
}
|
|
8957
8957
|
switch (w += Mi(y), y * b) {
|
|
8958
8958
|
case 38:
|
|
8959
|
-
|
|
8959
|
+
h = d > 0 ? 1 : (w += "\f", -1);
|
|
8960
8960
|
break;
|
|
8961
8961
|
case 44:
|
|
8962
|
-
a[u++] = ($e(w) - 1) *
|
|
8962
|
+
a[u++] = ($e(w) - 1) * h, h = 1;
|
|
8963
8963
|
break;
|
|
8964
8964
|
case 64:
|
|
8965
8965
|
it() === 45 && (w += Ir(Fe())), p = it(), d = g = $e(I = w += Xy(yr())), y++;
|
|
8966
8966
|
break;
|
|
8967
8967
|
case 45:
|
|
8968
|
-
|
|
8968
|
+
A === 45 && $e(w) == 2 && (b = 0);
|
|
8969
8969
|
}
|
|
8970
8970
|
}
|
|
8971
8971
|
return s;
|
|
8972
8972
|
}
|
|
8973
8973
|
function yl(t, e, n, r, i, s, o, a, c, u, d) {
|
|
8974
|
-
for (var g = i - 1, p = i === 0 ? s : [""], m = Io(p),
|
|
8975
|
-
for (var
|
|
8976
|
-
(I = Gu(b > 0 ? p[
|
|
8974
|
+
for (var g = i - 1, p = i === 0 ? s : [""], m = Io(p), A = 0, b = 0, v = 0; A < r; ++A)
|
|
8975
|
+
for (var h = 0, y = Pn(t, g + 1, g = Hy(b = o[A])), I = t; h < m; ++h)
|
|
8976
|
+
(I = Gu(b > 0 ? p[h] + " " + y : J(y, /&\f/g, p[h]))) && (c[v++] = I);
|
|
8977
8977
|
return ji(t, e, n, i === 0 ? bo : a, c, u, d);
|
|
8978
8978
|
}
|
|
8979
8979
|
function Ky(t, e, n) {
|
|
@@ -9231,8 +9231,8 @@ var o5 = function(e, n, r, i) {
|
|
|
9231
9231
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
9232
9232
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
9233
9233
|
function(b) {
|
|
9234
|
-
for (var v = b.getAttribute("data-emotion").split(" "),
|
|
9235
|
-
s[v[
|
|
9234
|
+
for (var v = b.getAttribute("data-emotion").split(" "), h = 1; h < v.length; h++)
|
|
9235
|
+
s[v[h]] = !0;
|
|
9236
9236
|
a.push(b);
|
|
9237
9237
|
}
|
|
9238
9238
|
);
|
|
@@ -9243,11 +9243,11 @@ var o5 = function(e, n, r, i) {
|
|
|
9243
9243
|
})], p = $y(u.concat(i, g)), m = function(v) {
|
|
9244
9244
|
return _t(qy(v), p);
|
|
9245
9245
|
};
|
|
9246
|
-
c = function(v,
|
|
9247
|
-
d = y, m(v ? v + "{" +
|
|
9246
|
+
c = function(v, h, y, I) {
|
|
9247
|
+
d = y, m(v ? v + "{" + h.styles + "}" : h.styles), I && (A.inserted[h.name] = !0);
|
|
9248
9248
|
};
|
|
9249
9249
|
}
|
|
9250
|
-
var
|
|
9250
|
+
var A = {
|
|
9251
9251
|
key: n,
|
|
9252
9252
|
sheet: new Oy({
|
|
9253
9253
|
key: n,
|
|
@@ -9262,7 +9262,7 @@ var o5 = function(e, n, r, i) {
|
|
|
9262
9262
|
registered: {},
|
|
9263
9263
|
insert: c
|
|
9264
9264
|
};
|
|
9265
|
-
return
|
|
9265
|
+
return A.sheet.hydrate(a), A;
|
|
9266
9266
|
}, u5 = !0;
|
|
9267
9267
|
function d5(t, e, n) {
|
|
9268
9268
|
var r = "";
|
|
@@ -9726,10 +9726,10 @@ function Sl(t, e, n, r) {
|
|
|
9726
9726
|
let c = (i.left + a.x) / o.x, u = (i.top + a.y) / o.y, d = i.width / o.x, g = i.height / o.y;
|
|
9727
9727
|
if (s) {
|
|
9728
9728
|
const p = Ke(s), m = r && Us(r) ? Ke(r) : r;
|
|
9729
|
-
let
|
|
9730
|
-
for (;
|
|
9731
|
-
const b = Wi(
|
|
9732
|
-
c *= b.x, u *= b.y, d *= b.x, g *= b.y, c += y, u += I,
|
|
9729
|
+
let A = p.frameElement;
|
|
9730
|
+
for (; A && r && m !== p; ) {
|
|
9731
|
+
const b = Wi(A), v = A.getBoundingClientRect(), h = wo(A), y = v.left + (A.clientLeft + parseFloat(h.paddingLeft)) * b.x, I = v.top + (A.clientTop + parseFloat(h.paddingTop)) * b.y;
|
|
9732
|
+
c *= b.x, u *= b.y, d *= b.x, g *= b.y, c += y, u += I, A = Ke(A).frameElement;
|
|
9733
9733
|
}
|
|
9734
9734
|
}
|
|
9735
9735
|
return z5({
|
|
@@ -9755,8 +9755,8 @@ function G5(t, e) {
|
|
|
9755
9755
|
} = t.getBoundingClientRect();
|
|
9756
9756
|
if (a || e(), !g || !p)
|
|
9757
9757
|
return;
|
|
9758
|
-
const m = cr(d),
|
|
9759
|
-
rootMargin: -m + "px " + -
|
|
9758
|
+
const m = cr(d), A = cr(i.clientWidth - (u + g)), b = cr(i.clientHeight - (d + p)), v = cr(u), y = {
|
|
9759
|
+
rootMargin: -m + "px " + -A + "px " + -b + "px " + -v + "px",
|
|
9760
9760
|
threshold: T5(0, P5(1, c)) || 1
|
|
9761
9761
|
};
|
|
9762
9762
|
let I = !0;
|
|
@@ -9793,29 +9793,29 @@ function F5(t, e, n, r) {
|
|
|
9793
9793
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
9794
9794
|
animationFrame: c = !1
|
|
9795
9795
|
} = r, u = No(t), d = i || s ? [...u ? Zs(u) : [], ...Zs(e)] : [];
|
|
9796
|
-
d.forEach((
|
|
9797
|
-
i &&
|
|
9796
|
+
d.forEach((h) => {
|
|
9797
|
+
i && h.addEventListener("scroll", n, {
|
|
9798
9798
|
passive: !0
|
|
9799
|
-
}), s &&
|
|
9799
|
+
}), s && h.addEventListener("resize", n);
|
|
9800
9800
|
});
|
|
9801
9801
|
const g = u && a ? G5(u, n) : null;
|
|
9802
9802
|
let p = -1, m = null;
|
|
9803
|
-
o && (m = new ResizeObserver((
|
|
9804
|
-
let [y] =
|
|
9803
|
+
o && (m = new ResizeObserver((h) => {
|
|
9804
|
+
let [y] = h;
|
|
9805
9805
|
y && y.target === u && m && (m.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
9806
9806
|
m && m.observe(e);
|
|
9807
9807
|
})), n();
|
|
9808
9808
|
}), u && !c && m.observe(u), m.observe(e));
|
|
9809
|
-
let
|
|
9809
|
+
let A, b = c ? Sl(t) : null;
|
|
9810
9810
|
c && v();
|
|
9811
9811
|
function v() {
|
|
9812
|
-
const
|
|
9813
|
-
b && (
|
|
9812
|
+
const h = Sl(t);
|
|
9813
|
+
b && (h.x !== b.x || h.y !== b.y || h.width !== b.width || h.height !== b.height) && n(), b = h, A = requestAnimationFrame(v);
|
|
9814
9814
|
}
|
|
9815
9815
|
return n(), () => {
|
|
9816
|
-
d.forEach((
|
|
9817
|
-
i &&
|
|
9818
|
-
}), g && g(), m && m.disconnect(), m = null, c && cancelAnimationFrame(
|
|
9816
|
+
d.forEach((h) => {
|
|
9817
|
+
i && h.removeEventListener("scroll", n), s && h.removeEventListener("resize", n);
|
|
9818
|
+
}), g && g(), m && m.disconnect(), m = null, c && cancelAnimationFrame(A);
|
|
9819
9819
|
};
|
|
9820
9820
|
}
|
|
9821
9821
|
var Ws = sc, Q5 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Rr = function() {
|
|
@@ -9958,16 +9958,16 @@ function oI(t) {
|
|
|
9958
9958
|
};
|
|
9959
9959
|
if (!n || !n.offsetParent)
|
|
9960
9960
|
return u;
|
|
9961
|
-
var d = c.getBoundingClientRect(), g = d.height, p = n.getBoundingClientRect(), m = p.bottom,
|
|
9961
|
+
var d = c.getBoundingClientRect(), g = d.height, p = n.getBoundingClientRect(), m = p.bottom, A = p.height, b = p.top, v = n.offsetParent.getBoundingClientRect(), h = v.top, y = o ? window.innerHeight : X5(c), I = id(c), M = parseInt(getComputedStyle(n).marginBottom, 10), N = parseInt(getComputedStyle(n).marginTop, 10), x = h - N, w = y - b, j = x + I, D = g - I - b, k = m - y + I + M, B = I + b - N, R = 160;
|
|
9962
9962
|
switch (i) {
|
|
9963
9963
|
case "auto":
|
|
9964
9964
|
case "bottom":
|
|
9965
|
-
if (w >=
|
|
9965
|
+
if (w >= A)
|
|
9966
9966
|
return {
|
|
9967
9967
|
placement: "bottom",
|
|
9968
9968
|
maxHeight: e
|
|
9969
9969
|
};
|
|
9970
|
-
if (D >=
|
|
9970
|
+
if (D >= A && !o)
|
|
9971
9971
|
return s && ur(c, k, R), {
|
|
9972
9972
|
placement: "bottom",
|
|
9973
9973
|
maxHeight: e
|
|
@@ -9994,12 +9994,12 @@ function oI(t) {
|
|
|
9994
9994
|
};
|
|
9995
9995
|
break;
|
|
9996
9996
|
case "top":
|
|
9997
|
-
if (x >=
|
|
9997
|
+
if (x >= A)
|
|
9998
9998
|
return {
|
|
9999
9999
|
placement: "top",
|
|
10000
10000
|
maxHeight: e
|
|
10001
10001
|
};
|
|
10002
|
-
if (j >=
|
|
10002
|
+
if (j >= A && !o)
|
|
10003
10003
|
return s && ur(c, B, R), {
|
|
10004
10004
|
placement: "top",
|
|
10005
10005
|
maxHeight: e
|
|
@@ -10041,7 +10041,7 @@ var ad = function(e) {
|
|
|
10041
10041
|
marginTop: a.menuGutter
|
|
10042
10042
|
});
|
|
10043
10043
|
}, od = /* @__PURE__ */ Qe(null), uI = function(e) {
|
|
10044
|
-
var n = e.children, r = e.minMenuHeight, i = e.maxMenuHeight, s = e.menuPlacement, o = e.menuPosition, a = e.menuShouldScrollIntoView, c = e.theme, u = xe(od) || {}, d = u.setPortalPlacement, g = oe(null), p = C(i), m = be(p, 2),
|
|
10044
|
+
var n = e.children, r = e.minMenuHeight, i = e.maxMenuHeight, s = e.menuPlacement, o = e.menuPosition, a = e.menuShouldScrollIntoView, c = e.theme, u = xe(od) || {}, d = u.setPortalPlacement, g = oe(null), p = C(i), m = be(p, 2), A = m[0], b = m[1], v = C(null), h = be(v, 2), y = h[0], I = h[1], M = c.spacing.controlHeight;
|
|
10045
10045
|
return Ws(function() {
|
|
10046
10046
|
var N = g.current;
|
|
10047
10047
|
if (N) {
|
|
@@ -10060,7 +10060,7 @@ var ad = function(e) {
|
|
|
10060
10060
|
ref: g,
|
|
10061
10061
|
placerProps: L(L({}, e), {}, {
|
|
10062
10062
|
placement: y || ad(s),
|
|
10063
|
-
maxHeight:
|
|
10063
|
+
maxHeight: A
|
|
10064
10064
|
})
|
|
10065
10065
|
});
|
|
10066
10066
|
}, dI = function(e) {
|
|
@@ -10126,19 +10126,19 @@ var ad = function(e) {
|
|
|
10126
10126
|
zIndex: 1
|
|
10127
10127
|
};
|
|
10128
10128
|
}, yI = function(e) {
|
|
10129
|
-
var n = e.appendTo, r = e.children, i = e.controlElement, s = e.innerProps, o = e.menuPlacement, a = e.menuPosition, c = oe(null), u = oe(null), d = C(ad(o)), g = be(d, 2), p = g[0], m = g[1],
|
|
10129
|
+
var n = e.appendTo, r = e.children, i = e.controlElement, s = e.innerProps, o = e.menuPlacement, a = e.menuPosition, c = oe(null), u = oe(null), d = C(ad(o)), g = be(d, 2), p = g[0], m = g[1], A = ie(function() {
|
|
10130
10130
|
return {
|
|
10131
10131
|
setPortalPlacement: m
|
|
10132
10132
|
};
|
|
10133
|
-
}, []), b = C(null), v = be(b, 2),
|
|
10133
|
+
}, []), b = C(null), v = be(b, 2), h = v[0], y = v[1], I = H(function() {
|
|
10134
10134
|
if (i) {
|
|
10135
10135
|
var w = _5(i), j = a === "fixed" ? 0 : window.pageYOffset, D = w[p] + j;
|
|
10136
|
-
(D !== (
|
|
10136
|
+
(D !== (h == null ? void 0 : h.offset) || w.left !== (h == null ? void 0 : h.rect.left) || w.width !== (h == null ? void 0 : h.rect.width)) && y({
|
|
10137
10137
|
offset: D,
|
|
10138
10138
|
rect: w
|
|
10139
10139
|
});
|
|
10140
10140
|
}
|
|
10141
|
-
}, [i, a, p,
|
|
10141
|
+
}, [i, a, p, h == null ? void 0 : h.offset, h == null ? void 0 : h.rect.left, h == null ? void 0 : h.rect.width]);
|
|
10142
10142
|
Ws(function() {
|
|
10143
10143
|
I();
|
|
10144
10144
|
}, [I]);
|
|
@@ -10153,19 +10153,19 @@ var ad = function(e) {
|
|
|
10153
10153
|
var N = H(function(w) {
|
|
10154
10154
|
c.current = w, M();
|
|
10155
10155
|
}, [M]);
|
|
10156
|
-
if (!n && a !== "fixed" || !
|
|
10156
|
+
if (!n && a !== "fixed" || !h)
|
|
10157
10157
|
return null;
|
|
10158
10158
|
var x = z("div", T({
|
|
10159
10159
|
ref: N
|
|
10160
10160
|
}, ge(L(L({}, e), {}, {
|
|
10161
|
-
offset:
|
|
10161
|
+
offset: h.offset,
|
|
10162
10162
|
position: a,
|
|
10163
|
-
rect:
|
|
10163
|
+
rect: h.rect
|
|
10164
10164
|
}), "menuPortal", {
|
|
10165
10165
|
"menu-portal": !0
|
|
10166
10166
|
}), s), r);
|
|
10167
10167
|
return z(od.Provider, {
|
|
10168
|
-
value:
|
|
10168
|
+
value: A
|
|
10169
10169
|
}, n ? /* @__PURE__ */ b2(x, n) : x);
|
|
10170
10170
|
}, II = function(e) {
|
|
10171
10171
|
var n = e.isDisabled, r = e.isRtl;
|
|
@@ -10700,8 +10700,8 @@ var IM = {
|
|
|
10700
10700
|
}
|
|
10701
10701
|
},
|
|
10702
10702
|
onFocus: function(e) {
|
|
10703
|
-
var n = e.context, r = e.focused, i = e.options, s = e.label, o = s === void 0 ? "" : s, a = e.selectValue, c = e.isDisabled, u = e.isSelected, d = function(
|
|
10704
|
-
return
|
|
10703
|
+
var n = e.context, r = e.focused, i = e.options, s = e.label, o = s === void 0 ? "" : s, a = e.selectValue, c = e.isDisabled, u = e.isSelected, d = function(A, b) {
|
|
10704
|
+
return A && A.length ? "".concat(A.indexOf(b) + 1, " of ").concat(A.length) : "";
|
|
10705
10705
|
};
|
|
10706
10706
|
if (n === "value" && a)
|
|
10707
10707
|
return "value ".concat(o, " focused, ").concat(d(a, r), ".");
|
|
@@ -10716,7 +10716,7 @@ var IM = {
|
|
|
10716
10716
|
return "".concat(r).concat(n ? " for search term " + n : "", ".");
|
|
10717
10717
|
}
|
|
10718
10718
|
}, jM = function(e) {
|
|
10719
|
-
var n = e.ariaSelection, r = e.focusedOption, i = e.focusedValue, s = e.focusableOptions, o = e.isFocused, a = e.selectValue, c = e.selectProps, u = e.id, d = c.ariaLiveMessages, g = c.getOptionLabel, p = c.inputValue, m = c.isMulti,
|
|
10719
|
+
var n = e.ariaSelection, r = e.focusedOption, i = e.focusedValue, s = e.focusableOptions, o = e.isFocused, a = e.selectValue, c = e.selectProps, u = e.id, d = c.ariaLiveMessages, g = c.getOptionLabel, p = c.inputValue, m = c.isMulti, A = c.isOptionDisabled, b = c.isSearchable, v = c.menuIsOpen, h = c.options, y = c.screenReaderStatus, I = c.tabSelectsValue, M = c["aria-label"], N = c["aria-live"], x = ie(function() {
|
|
10720
10720
|
return L(L({}, xM), d || {});
|
|
10721
10721
|
}, [d]), w = ie(function() {
|
|
10722
10722
|
var W = "";
|
|
@@ -10726,20 +10726,20 @@ var IM = {
|
|
|
10726
10726
|
}, te = De || G || q(ze), Q = te ? g(te) : "", F = ee || ue || void 0, Be = F ? F.map(g) : [], pe = L({
|
|
10727
10727
|
// multiSelected items are usually items that have already been selected
|
|
10728
10728
|
// or set by the user as a default value so we assume they are not disabled
|
|
10729
|
-
isDisabled: te &&
|
|
10729
|
+
isDisabled: te && A(te, a),
|
|
10730
10730
|
label: Q,
|
|
10731
10731
|
labels: Be
|
|
10732
10732
|
}, n);
|
|
10733
10733
|
W = x.onChange(pe);
|
|
10734
10734
|
}
|
|
10735
10735
|
return W;
|
|
10736
|
-
}, [n, x,
|
|
10736
|
+
}, [n, x, A, a, g]), j = ie(function() {
|
|
10737
10737
|
var W = "", G = r || i, ee = !!(r && a && a.includes(r));
|
|
10738
10738
|
if (G && x.onFocus) {
|
|
10739
10739
|
var De = {
|
|
10740
10740
|
focused: G,
|
|
10741
10741
|
label: g(G),
|
|
10742
|
-
isDisabled:
|
|
10742
|
+
isDisabled: A(G, a),
|
|
10743
10743
|
isSelected: ee,
|
|
10744
10744
|
options: s,
|
|
10745
10745
|
context: G === r ? "menu" : "value",
|
|
@@ -10748,9 +10748,9 @@ var IM = {
|
|
|
10748
10748
|
W = x.onFocus(De);
|
|
10749
10749
|
}
|
|
10750
10750
|
return W;
|
|
10751
|
-
}, [r, i, g,
|
|
10751
|
+
}, [r, i, g, A, x, s, a]), D = ie(function() {
|
|
10752
10752
|
var W = "";
|
|
10753
|
-
if (v &&
|
|
10753
|
+
if (v && h.length && x.onFilter) {
|
|
10754
10754
|
var G = y({
|
|
10755
10755
|
count: s.length
|
|
10756
10756
|
});
|
|
@@ -10760,21 +10760,21 @@ var IM = {
|
|
|
10760
10760
|
});
|
|
10761
10761
|
}
|
|
10762
10762
|
return W;
|
|
10763
|
-
}, [s, p, v, x,
|
|
10763
|
+
}, [s, p, v, x, h, y]), k = ie(function() {
|
|
10764
10764
|
var W = "";
|
|
10765
10765
|
if (x.guidance) {
|
|
10766
10766
|
var G = i ? "value" : v ? "menu" : "input";
|
|
10767
10767
|
W = x.guidance({
|
|
10768
10768
|
"aria-label": M,
|
|
10769
10769
|
context: G,
|
|
10770
|
-
isDisabled: r &&
|
|
10770
|
+
isDisabled: r && A(r, a),
|
|
10771
10771
|
isMulti: m,
|
|
10772
10772
|
isSearchable: b,
|
|
10773
10773
|
tabSelectsValue: I
|
|
10774
10774
|
});
|
|
10775
10775
|
}
|
|
10776
10776
|
return W;
|
|
10777
|
-
}, [M, r, i, m,
|
|
10777
|
+
}, [M, r, i, m, A, b, v, x, a, I]), B = "".concat(j, " ").concat(D, " ").concat(k), R = z(en, null, z("span", {
|
|
10778
10778
|
id: "aria-selection"
|
|
10779
10779
|
}, w), z("span", {
|
|
10780
10780
|
id: "aria-context"
|
|
@@ -11098,24 +11098,24 @@ var LM = function(e) {
|
|
|
11098
11098
|
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
11099
11099
|
};
|
|
11100
11100
|
function PM(t) {
|
|
11101
|
-
var e = t.isEnabled, n = t.onBottomArrive, r = t.onBottomLeave, i = t.onTopArrive, s = t.onTopLeave, o = oe(!1), a = oe(!1), c = oe(0), u = oe(null), d = H(function(v,
|
|
11101
|
+
var e = t.isEnabled, n = t.onBottomArrive, r = t.onBottomLeave, i = t.onTopArrive, s = t.onTopLeave, o = oe(!1), a = oe(!1), c = oe(0), u = oe(null), d = H(function(v, h) {
|
|
11102
11102
|
if (u.current !== null) {
|
|
11103
|
-
var y = u.current, I = y.scrollTop, M = y.scrollHeight, N = y.clientHeight, x = u.current, w =
|
|
11104
|
-
j >
|
|
11103
|
+
var y = u.current, I = y.scrollTop, M = y.scrollHeight, N = y.clientHeight, x = u.current, w = h > 0, j = M - N - I, D = !1;
|
|
11104
|
+
j > h && o.current && (r && r(v), o.current = !1), w && a.current && (s && s(v), a.current = !1), w && h > j ? (n && !o.current && n(v), x.scrollTop = M, D = !0, o.current = !0) : !w && -h > I && (i && !a.current && i(v), x.scrollTop = 0, D = !0, a.current = !0), D && LM(v);
|
|
11105
11105
|
}
|
|
11106
11106
|
}, [n, r, i, s]), g = H(function(v) {
|
|
11107
11107
|
d(v, v.deltaY);
|
|
11108
11108
|
}, [d]), p = H(function(v) {
|
|
11109
11109
|
c.current = v.changedTouches[0].clientY;
|
|
11110
11110
|
}, []), m = H(function(v) {
|
|
11111
|
-
var
|
|
11112
|
-
d(v,
|
|
11113
|
-
}, [d]),
|
|
11111
|
+
var h = c.current - v.changedTouches[0].clientY;
|
|
11112
|
+
d(v, h);
|
|
11113
|
+
}, [d]), A = H(function(v) {
|
|
11114
11114
|
if (v) {
|
|
11115
|
-
var
|
|
11115
|
+
var h = tI ? {
|
|
11116
11116
|
passive: !1
|
|
11117
11117
|
} : !1;
|
|
11118
|
-
v.addEventListener("wheel", g,
|
|
11118
|
+
v.addEventListener("wheel", g, h), v.addEventListener("touchstart", p, h), v.addEventListener("touchmove", m, h);
|
|
11119
11119
|
}
|
|
11120
11120
|
}, [m, p, g]), b = H(function(v) {
|
|
11121
11121
|
v && (v.removeEventListener("wheel", g, !1), v.removeEventListener("touchstart", p, !1), v.removeEventListener("touchmove", m, !1));
|
|
@@ -11123,11 +11123,11 @@ function PM(t) {
|
|
|
11123
11123
|
return O(function() {
|
|
11124
11124
|
if (e) {
|
|
11125
11125
|
var v = u.current;
|
|
11126
|
-
return
|
|
11126
|
+
return A(v), function() {
|
|
11127
11127
|
b(v);
|
|
11128
11128
|
};
|
|
11129
11129
|
}
|
|
11130
|
-
}, [e,
|
|
11130
|
+
}, [e, A, b]), function(v) {
|
|
11131
11131
|
u.current = v;
|
|
11132
11132
|
};
|
|
11133
11133
|
}
|
|
@@ -11159,14 +11159,14 @@ function TM(t) {
|
|
|
11159
11159
|
var e = t.isEnabled, n = t.accountForScrollbars, r = n === void 0 ? !0 : n, i = oe({}), s = oe(null), o = H(function(c) {
|
|
11160
11160
|
if (Ul) {
|
|
11161
11161
|
var u = document.body, d = u && u.style;
|
|
11162
|
-
if (r && Tl.forEach(function(
|
|
11163
|
-
var b = d && d[
|
|
11164
|
-
i.current[
|
|
11162
|
+
if (r && Tl.forEach(function(A) {
|
|
11163
|
+
var b = d && d[A];
|
|
11164
|
+
i.current[A] = b;
|
|
11165
11165
|
}), r && xn < 1) {
|
|
11166
11166
|
var g = parseInt(i.current.paddingRight, 10) || 0, p = document.body ? document.body.clientWidth : 0, m = window.innerWidth - p + g || 0;
|
|
11167
|
-
Object.keys(zl).forEach(function(
|
|
11168
|
-
var b = zl[
|
|
11169
|
-
d && (d[
|
|
11167
|
+
Object.keys(zl).forEach(function(A) {
|
|
11168
|
+
var b = zl[A];
|
|
11169
|
+
d && (d[A] = b);
|
|
11170
11170
|
}), d && (d.paddingRight = "".concat(m, "px"));
|
|
11171
11171
|
}
|
|
11172
11172
|
u && Hl() && (u.addEventListener("touchmove", Ol, Jt), c && (c.addEventListener("touchstart", Rl, Jt), c.addEventListener("touchmove", Bl, Jt))), xn += 1;
|
|
@@ -11465,13 +11465,13 @@ var wd = function(e) {
|
|
|
11465
11465
|
option: u
|
|
11466
11466
|
});
|
|
11467
11467
|
}, i.selectOption = function(a) {
|
|
11468
|
-
var c = i.props, u = c.blurInputOnSelect, d = c.isMulti, g = c.name, p = i.state.selectValue, m = d && i.isOptionSelected(a, p),
|
|
11468
|
+
var c = i.props, u = c.blurInputOnSelect, d = c.isMulti, g = c.name, p = i.state.selectValue, m = d && i.isOptionSelected(a, p), A = i.isOptionDisabled(a, p);
|
|
11469
11469
|
if (m) {
|
|
11470
11470
|
var b = i.getOptionValue(a);
|
|
11471
11471
|
i.setValue(p.filter(function(v) {
|
|
11472
11472
|
return i.getOptionValue(v) !== b;
|
|
11473
11473
|
}), "deselect-option", a);
|
|
11474
|
-
} else if (!
|
|
11474
|
+
} else if (!A)
|
|
11475
11475
|
d ? i.setValue([].concat(Cn(p), [a]), "select-option", a) : i.setValue(a, "select-option");
|
|
11476
11476
|
else {
|
|
11477
11477
|
i.ariaOnChange(a, {
|
|
@@ -11616,8 +11616,8 @@ var wd = function(e) {
|
|
|
11616
11616
|
}, i.onValueInputFocus = function(a) {
|
|
11617
11617
|
a.preventDefault(), a.stopPropagation(), i.focus();
|
|
11618
11618
|
}, i.onKeyDown = function(a) {
|
|
11619
|
-
var c = i.props, u = c.isMulti, d = c.backspaceRemovesValue, g = c.escapeClearsValue, p = c.inputValue, m = c.isClearable,
|
|
11620
|
-
if (!
|
|
11619
|
+
var c = i.props, u = c.isMulti, d = c.backspaceRemovesValue, g = c.escapeClearsValue, p = c.inputValue, m = c.isClearable, A = c.isDisabled, b = c.menuIsOpen, v = c.onKeyDown, h = c.tabSelectsValue, y = c.openMenuOnFocus, I = i.state, M = I.focusedOption, N = I.focusedValue, x = I.selectValue;
|
|
11620
|
+
if (!A && !(typeof v == "function" && (v(a), a.defaultPrevented))) {
|
|
11621
11621
|
switch (i.blockOptionHover = !0, a.key) {
|
|
11622
11622
|
case "ArrowLeft":
|
|
11623
11623
|
if (!u || p)
|
|
@@ -11642,7 +11642,7 @@ var wd = function(e) {
|
|
|
11642
11642
|
}
|
|
11643
11643
|
break;
|
|
11644
11644
|
case "Tab":
|
|
11645
|
-
if (i.isComposing || a.shiftKey || !b || !
|
|
11645
|
+
if (i.isComposing || a.shiftKey || !b || !h || !M || // don't capture the event if the menu opens on focus and the focused
|
|
11646
11646
|
// option is already selected; it breaks the flow of navigation
|
|
11647
11647
|
y && i.isOptionSelected(M, x))
|
|
11648
11648
|
return;
|
|
@@ -11839,7 +11839,7 @@ var wd = function(e) {
|
|
|
11839
11839
|
}, {
|
|
11840
11840
|
key: "getCommonProps",
|
|
11841
11841
|
value: function() {
|
|
11842
|
-
var i = this.clearValue, s = this.cx, o = this.getStyles, a = this.getClassNames, c = this.getValue, u = this.selectOption, d = this.setValue, g = this.props, p = g.isMulti, m = g.isRtl,
|
|
11842
|
+
var i = this.clearValue, s = this.cx, o = this.getStyles, a = this.getClassNames, c = this.getValue, u = this.selectOption, d = this.setValue, g = this.props, p = g.isMulti, m = g.isRtl, A = g.options, b = this.hasValue();
|
|
11843
11843
|
return {
|
|
11844
11844
|
clearValue: i,
|
|
11845
11845
|
cx: s,
|
|
@@ -11849,7 +11849,7 @@ var wd = function(e) {
|
|
|
11849
11849
|
hasValue: b,
|
|
11850
11850
|
isMulti: p,
|
|
11851
11851
|
isRtl: m,
|
|
11852
|
-
options:
|
|
11852
|
+
options: A,
|
|
11853
11853
|
selectOption: u,
|
|
11854
11854
|
selectProps: g,
|
|
11855
11855
|
setValue: d,
|
|
@@ -11946,7 +11946,7 @@ var wd = function(e) {
|
|
|
11946
11946
|
// Renderers
|
|
11947
11947
|
// ==============================
|
|
11948
11948
|
function() {
|
|
11949
|
-
var i = this.props, s = i.isDisabled, o = i.isSearchable, a = i.inputId, c = i.inputValue, u = i.tabIndex, d = i.form, g = i.menuIsOpen, p = i.required, m = this.getComponents(),
|
|
11949
|
+
var i = this.props, s = i.isDisabled, o = i.isSearchable, a = i.inputId, c = i.inputValue, u = i.tabIndex, d = i.form, g = i.menuIsOpen, p = i.required, m = this.getComponents(), A = m.Input, b = this.state, v = b.inputIsHidden, h = b.ariaSelection, y = this.commonProps, I = a || this.getElementId("input"), M = L(L(L({
|
|
11950
11950
|
"aria-autocomplete": "list",
|
|
11951
11951
|
"aria-expanded": g,
|
|
11952
11952
|
"aria-haspopup": !0,
|
|
@@ -11961,12 +11961,12 @@ var wd = function(e) {
|
|
|
11961
11961
|
"aria-owns": this.getElementId("listbox")
|
|
11962
11962
|
}), !o && {
|
|
11963
11963
|
"aria-readonly": !0
|
|
11964
|
-
}), this.hasValue() ? (
|
|
11964
|
+
}), this.hasValue() ? (h == null ? void 0 : h.action) === "initial-input-focus" && {
|
|
11965
11965
|
"aria-describedby": this.getElementId("live-region")
|
|
11966
11966
|
} : {
|
|
11967
11967
|
"aria-describedby": this.getElementId("placeholder")
|
|
11968
11968
|
});
|
|
11969
|
-
return o ? /* @__PURE__ */ f(
|
|
11969
|
+
return o ? /* @__PURE__ */ f(A, T({}, y, {
|
|
11970
11970
|
autoCapitalize: "none",
|
|
11971
11971
|
autoComplete: "off",
|
|
11972
11972
|
autoCorrect: "off",
|
|
@@ -11999,9 +11999,9 @@ var wd = function(e) {
|
|
|
11999
11999
|
}, {
|
|
12000
12000
|
key: "renderPlaceholderOrValue",
|
|
12001
12001
|
value: function() {
|
|
12002
|
-
var i = this, s = this.getComponents(), o = s.MultiValue, a = s.MultiValueContainer, c = s.MultiValueLabel, u = s.MultiValueRemove, d = s.SingleValue, g = s.Placeholder, p = this.commonProps, m = this.props,
|
|
12003
|
-
if (!this.hasValue() || !
|
|
12004
|
-
return
|
|
12002
|
+
var i = this, s = this.getComponents(), o = s.MultiValue, a = s.MultiValueContainer, c = s.MultiValueLabel, u = s.MultiValueRemove, d = s.SingleValue, g = s.Placeholder, p = this.commonProps, m = this.props, A = m.controlShouldRenderValue, b = m.isDisabled, v = m.isMulti, h = m.inputValue, y = m.placeholder, I = this.state, M = I.selectValue, N = I.focusedValue, x = I.isFocused;
|
|
12003
|
+
if (!this.hasValue() || !A)
|
|
12004
|
+
return h ? null : /* @__PURE__ */ f(g, T({}, p, {
|
|
12005
12005
|
key: "placeholder",
|
|
12006
12006
|
isDisabled: b,
|
|
12007
12007
|
isFocused: x,
|
|
@@ -12036,7 +12036,7 @@ var wd = function(e) {
|
|
|
12036
12036
|
data: j
|
|
12037
12037
|
}), i.formatOptionLabel(j, "value"));
|
|
12038
12038
|
});
|
|
12039
|
-
if (
|
|
12039
|
+
if (h)
|
|
12040
12040
|
return null;
|
|
12041
12041
|
var w = M[0];
|
|
12042
12042
|
return /* @__PURE__ */ f(d, T({}, p, {
|
|
@@ -12107,7 +12107,7 @@ var wd = function(e) {
|
|
|
12107
12107
|
}, {
|
|
12108
12108
|
key: "renderMenu",
|
|
12109
12109
|
value: function() {
|
|
12110
|
-
var i = this, s = this.getComponents(), o = s.Group, a = s.GroupHeading, c = s.Menu, u = s.MenuList, d = s.MenuPortal, g = s.LoadingMessage, p = s.NoOptionsMessage, m = s.Option,
|
|
12110
|
+
var i = this, s = this.getComponents(), o = s.Group, a = s.GroupHeading, c = s.Menu, u = s.MenuList, d = s.MenuPortal, g = s.LoadingMessage, p = s.NoOptionsMessage, m = s.Option, A = this.commonProps, b = this.state.focusedOption, v = this.props, h = v.captureMenuScroll, y = v.inputValue, I = v.isLoading, M = v.loadingMessage, N = v.minMenuHeight, x = v.maxMenuHeight, w = v.menuIsOpen, j = v.menuPlacement, D = v.menuPosition, k = v.menuPortalTarget, B = v.menuShouldBlockScroll, R = v.menuShouldScrollIntoView, Z = v.noOptionsMessage, W = v.onMenuScrollToTop, G = v.onMenuScrollToBottom;
|
|
12111
12111
|
if (!w)
|
|
12112
12112
|
return null;
|
|
12113
12113
|
var ee = function(F, Be) {
|
|
@@ -12122,7 +12122,7 @@ var wd = function(e) {
|
|
|
12122
12122
|
onMouseOver: jt,
|
|
12123
12123
|
tabIndex: -1
|
|
12124
12124
|
};
|
|
12125
|
-
return /* @__PURE__ */ f(m, T({},
|
|
12125
|
+
return /* @__PURE__ */ f(m, T({}, A, {
|
|
12126
12126
|
innerProps: wt,
|
|
12127
12127
|
data: de,
|
|
12128
12128
|
isDisabled: re,
|
|
@@ -12139,7 +12139,7 @@ var wd = function(e) {
|
|
|
12139
12139
|
De = this.getCategorizedOptions().map(function(Q) {
|
|
12140
12140
|
if (Q.type === "group") {
|
|
12141
12141
|
var F = Q.data, Be = Q.options, pe = Q.index, de = "".concat(i.getElementId("group"), "-").concat(pe), re = "".concat(de, "-heading");
|
|
12142
|
-
return /* @__PURE__ */ f(o, T({},
|
|
12142
|
+
return /* @__PURE__ */ f(o, T({}, A, {
|
|
12143
12143
|
key: de,
|
|
12144
12144
|
data: F,
|
|
12145
12145
|
options: Be,
|
|
@@ -12161,14 +12161,14 @@ var wd = function(e) {
|
|
|
12161
12161
|
});
|
|
12162
12162
|
if (ue === null)
|
|
12163
12163
|
return null;
|
|
12164
|
-
De = /* @__PURE__ */ f(g,
|
|
12164
|
+
De = /* @__PURE__ */ f(g, A, ue);
|
|
12165
12165
|
} else {
|
|
12166
12166
|
var ze = Z({
|
|
12167
12167
|
inputValue: y
|
|
12168
12168
|
});
|
|
12169
12169
|
if (ze === null)
|
|
12170
12170
|
return null;
|
|
12171
|
-
De = /* @__PURE__ */ f(p,
|
|
12171
|
+
De = /* @__PURE__ */ f(p, A, ze);
|
|
12172
12172
|
}
|
|
12173
12173
|
var q = {
|
|
12174
12174
|
minMenuHeight: N,
|
|
@@ -12176,9 +12176,9 @@ var wd = function(e) {
|
|
|
12176
12176
|
menuPlacement: j,
|
|
12177
12177
|
menuPosition: D,
|
|
12178
12178
|
menuShouldScrollIntoView: R
|
|
12179
|
-
}, te = /* @__PURE__ */ f(uI, T({},
|
|
12179
|
+
}, te = /* @__PURE__ */ f(uI, T({}, A, q), function(Q) {
|
|
12180
12180
|
var F = Q.ref, Be = Q.placerProps, pe = Be.placement, de = Be.maxHeight;
|
|
12181
|
-
return /* @__PURE__ */ f(c, T({},
|
|
12181
|
+
return /* @__PURE__ */ f(c, T({}, A, q, {
|
|
12182
12182
|
innerRef: F,
|
|
12183
12183
|
innerProps: {
|
|
12184
12184
|
onMouseDown: i.onMenuMouseDown,
|
|
@@ -12188,12 +12188,12 @@ var wd = function(e) {
|
|
|
12188
12188
|
isLoading: I,
|
|
12189
12189
|
placement: pe
|
|
12190
12190
|
}), /* @__PURE__ */ f(BM, {
|
|
12191
|
-
captureEnabled:
|
|
12191
|
+
captureEnabled: h,
|
|
12192
12192
|
onTopArrive: W,
|
|
12193
12193
|
onBottomArrive: G,
|
|
12194
12194
|
lockEnabled: B
|
|
12195
12195
|
}, function(re) {
|
|
12196
|
-
return /* @__PURE__ */ f(u, T({},
|
|
12196
|
+
return /* @__PURE__ */ f(u, T({}, A, {
|
|
12197
12197
|
innerRef: function(ut) {
|
|
12198
12198
|
i.getMenuListRef(ut), re(ut);
|
|
12199
12199
|
},
|
|
@@ -12203,7 +12203,7 @@ var wd = function(e) {
|
|
|
12203
12203
|
}), De);
|
|
12204
12204
|
}));
|
|
12205
12205
|
});
|
|
12206
|
-
return k || D === "fixed" ? /* @__PURE__ */ f(d, T({},
|
|
12206
|
+
return k || D === "fixed" ? /* @__PURE__ */ f(d, T({}, A, {
|
|
12207
12207
|
appendTo: k,
|
|
12208
12208
|
controlElement: this.controlRef,
|
|
12209
12209
|
menuPlacement: j,
|
|
@@ -12246,11 +12246,11 @@ var wd = function(e) {
|
|
|
12246
12246
|
return /* @__PURE__ */ f("div", null, m);
|
|
12247
12247
|
}
|
|
12248
12248
|
else {
|
|
12249
|
-
var
|
|
12249
|
+
var A = g[0] ? this.getOptionValue(g[0]) : "";
|
|
12250
12250
|
return /* @__PURE__ */ f("input", {
|
|
12251
12251
|
name: u,
|
|
12252
12252
|
type: "hidden",
|
|
12253
|
-
value:
|
|
12253
|
+
value: A
|
|
12254
12254
|
});
|
|
12255
12255
|
}
|
|
12256
12256
|
}
|
|
@@ -12271,7 +12271,7 @@ var wd = function(e) {
|
|
|
12271
12271
|
}, {
|
|
12272
12272
|
key: "render",
|
|
12273
12273
|
value: function() {
|
|
12274
|
-
var i = this.getComponents(), s = i.Control, o = i.IndicatorsContainer, a = i.SelectContainer, c = i.ValueContainer, u = this.props, d = u.className, g = u.id, p = u.isDisabled, m = u.menuIsOpen,
|
|
12274
|
+
var i = this.getComponents(), s = i.Control, o = i.IndicatorsContainer, a = i.SelectContainer, c = i.ValueContainer, u = this.props, d = u.className, g = u.id, p = u.isDisabled, m = u.menuIsOpen, A = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
12275
12275
|
return /* @__PURE__ */ f(a, T({}, b, {
|
|
12276
12276
|
className: d,
|
|
12277
12277
|
innerProps: {
|
|
@@ -12279,7 +12279,7 @@ var wd = function(e) {
|
|
|
12279
12279
|
onKeyDown: this.onKeyDown
|
|
12280
12280
|
},
|
|
12281
12281
|
isDisabled: p,
|
|
12282
|
-
isFocused:
|
|
12282
|
+
isFocused: A
|
|
12283
12283
|
}), this.renderLiveRegion(), /* @__PURE__ */ f(s, T({}, b, {
|
|
12284
12284
|
innerRef: this.getControlRef,
|
|
12285
12285
|
innerProps: {
|
|
@@ -12287,7 +12287,7 @@ var wd = function(e) {
|
|
|
12287
12287
|
onTouchEnd: this.onControlTouchEnd
|
|
12288
12288
|
},
|
|
12289
12289
|
isDisabled: p,
|
|
12290
|
-
isFocused:
|
|
12290
|
+
isFocused: A,
|
|
12291
12291
|
menuIsOpen: m
|
|
12292
12292
|
}), /* @__PURE__ */ f(c, T({}, b, {
|
|
12293
12293
|
isDisabled: p
|
|
@@ -12298,11 +12298,11 @@ var wd = function(e) {
|
|
|
12298
12298
|
}], [{
|
|
12299
12299
|
key: "getDerivedStateFromProps",
|
|
12300
12300
|
value: function(i, s) {
|
|
12301
|
-
var o = s.prevProps, a = s.clearFocusValueOnUpdate, c = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, d = s.isFocused, g = s.prevWasFocused, p = i.options, m = i.value,
|
|
12302
|
-
if (o && (m !== o.value || p !== o.options ||
|
|
12303
|
-
var I =
|
|
12301
|
+
var o = s.prevProps, a = s.clearFocusValueOnUpdate, c = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, d = s.isFocused, g = s.prevWasFocused, p = i.options, m = i.value, A = i.menuIsOpen, b = i.inputValue, v = i.isMulti, h = Hr(m), y = {};
|
|
12302
|
+
if (o && (m !== o.value || p !== o.options || A !== o.menuIsOpen || b !== o.inputValue)) {
|
|
12303
|
+
var I = A ? qM(i, h) : [], M = a ? KM(s, h) : null, N = _M(s, I);
|
|
12304
12304
|
y = {
|
|
12305
|
-
selectValue:
|
|
12305
|
+
selectValue: h,
|
|
12306
12306
|
focusedOption: N,
|
|
12307
12307
|
focusedValue: M,
|
|
12308
12308
|
clearFocusValueOnUpdate: !1
|
|
@@ -12313,8 +12313,8 @@ var wd = function(e) {
|
|
|
12313
12313
|
inputIsHiddenAfterUpdate: void 0
|
|
12314
12314
|
} : {}, w = u, j = d && g;
|
|
12315
12315
|
return d && !j && (w = {
|
|
12316
|
-
value: Nn(v,
|
|
12317
|
-
options:
|
|
12316
|
+
value: Nn(v, h, h[0] || null),
|
|
12317
|
+
options: h,
|
|
12318
12318
|
action: "initial-input-focus"
|
|
12319
12319
|
}, j = !g), (u == null ? void 0 : u.action) === "initial-input-focus" && (w = null), L(L(L({}, y), x), {}, {
|
|
12320
12320
|
prevProps: i,
|
|
@@ -12329,10 +12329,10 @@ var ex = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
12329
12329
|
function Nd(t) {
|
|
12330
12330
|
var e = t.defaultOptions, n = e === void 0 ? !1 : e, r = t.cacheOptions, i = r === void 0 ? !1 : r, s = t.loadOptions;
|
|
12331
12331
|
t.options;
|
|
12332
|
-
var o = t.isLoading, a = o === void 0 ? !1 : o, c = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, g = _e(t, ex), p = g.inputValue, m = oe(void 0),
|
|
12332
|
+
var o = t.isLoading, a = o === void 0 ? !1 : o, c = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, g = _e(t, ex), p = g.inputValue, m = oe(void 0), A = oe(!1), b = C(Array.isArray(n) ? n : void 0), v = be(b, 2), h = v[0], y = v[1], I = C(typeof p < "u" ? p : ""), M = be(I, 2), N = M[0], x = M[1], w = C(n === !0), j = be(w, 2), D = j[0], k = j[1], B = C(void 0), R = be(B, 2), Z = R[0], W = R[1], G = C([]), ee = be(G, 2), De = ee[0], ue = ee[1], ze = C(!1), q = be(ze, 2), te = q[0], Q = q[1], F = C({}), Be = be(F, 2), pe = Be[0], de = Be[1], re = C(void 0), Ce = be(re, 2), ut = Ce[0], bn = Ce[1], Qt = C(void 0), jt = be(Qt, 2), yn = jt[0], Vt = jt[1];
|
|
12333
12333
|
i !== yn && (de({}), Vt(i)), n !== ut && (y(Array.isArray(n) ? n : void 0), bn(n)), O(function() {
|
|
12334
|
-
return
|
|
12335
|
-
|
|
12334
|
+
return A.current = !0, function() {
|
|
12335
|
+
A.current = !1;
|
|
12336
12336
|
};
|
|
12337
12337
|
}, []);
|
|
12338
12338
|
var wt = H(function(Nt, dt) {
|
|
@@ -12345,7 +12345,7 @@ function Nd(t) {
|
|
|
12345
12345
|
}, [s]);
|
|
12346
12346
|
O(function() {
|
|
12347
12347
|
n === !0 && wt(N, function(Nt) {
|
|
12348
|
-
|
|
12348
|
+
A.current && (y(Nt || []), k(!!m.current));
|
|
12349
12349
|
});
|
|
12350
12350
|
}, []);
|
|
12351
12351
|
var ki = H(function(Nt, dt) {
|
|
@@ -12359,10 +12359,10 @@ function Nd(t) {
|
|
|
12359
12359
|
else {
|
|
12360
12360
|
var Li = m.current = {};
|
|
12361
12361
|
x(Re), k(!0), Q(!Z), wt(Re, function(In) {
|
|
12362
|
-
|
|
12362
|
+
A && Li === m.current && (m.current = void 0, k(!1), W(Re), ue(In || []), Q(!1), de(In ? L(L({}, pe), {}, Xt({}, Re, In)) : pe));
|
|
12363
12363
|
});
|
|
12364
12364
|
}
|
|
12365
|
-
}, [i, wt, Z, pe, c]), Ei = te ? [] : N && Z ? De :
|
|
12365
|
+
}, [i, wt, Z, pe, c]), Ei = te ? [] : N && Z ? De : h || [];
|
|
12366
12366
|
return L(L({}, g), {}, {
|
|
12367
12367
|
options: Ei,
|
|
12368
12368
|
isLoading: D || a,
|
|
@@ -12372,7 +12372,7 @@ function Nd(t) {
|
|
|
12372
12372
|
}
|
|
12373
12373
|
var tx = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
12374
12374
|
function Ni(t) {
|
|
12375
|
-
var e = t.defaultInputValue, n = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, i = r === void 0 ? !1 : r, s = t.defaultValue, o = s === void 0 ? null : s, a = t.inputValue, c = t.menuIsOpen, u = t.onChange, d = t.onInputChange, g = t.onMenuClose, p = t.onMenuOpen, m = t.value,
|
|
12375
|
+
var e = t.defaultInputValue, n = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, i = r === void 0 ? !1 : r, s = t.defaultValue, o = s === void 0 ? null : s, a = t.inputValue, c = t.menuIsOpen, u = t.onChange, d = t.onInputChange, g = t.onMenuClose, p = t.onMenuOpen, m = t.value, A = _e(t, tx), b = C(a !== void 0 ? a : n), v = be(b, 2), h = v[0], y = v[1], I = C(c !== void 0 ? c : i), M = be(I, 2), N = M[0], x = M[1], w = C(m !== void 0 ? m : o), j = be(w, 2), D = j[0], k = j[1], B = H(function(ue, ze) {
|
|
12376
12376
|
typeof u == "function" && u(ue, ze), k(ue);
|
|
12377
12377
|
}, [u]), R = H(function(ue, ze) {
|
|
12378
12378
|
var q;
|
|
@@ -12381,8 +12381,8 @@ function Ni(t) {
|
|
|
12381
12381
|
typeof p == "function" && p(), x(!0);
|
|
12382
12382
|
}, [p]), W = H(function() {
|
|
12383
12383
|
typeof g == "function" && g(), x(!1);
|
|
12384
|
-
}, [g]), G = a !== void 0 ? a :
|
|
12385
|
-
return L(L({},
|
|
12384
|
+
}, [g]), G = a !== void 0 ? a : h, ee = c !== void 0 ? c : N, De = m !== void 0 ? m : D;
|
|
12385
|
+
return L(L({}, A), {}, {
|
|
12386
12386
|
inputValue: G,
|
|
12387
12387
|
menuIsOpen: ee,
|
|
12388
12388
|
onChange: B,
|
|
@@ -12415,16 +12415,16 @@ var nx = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
12415
12415
|
}
|
|
12416
12416
|
};
|
|
12417
12417
|
function Sd(t) {
|
|
12418
|
-
var e = t.allowCreateWhileLoading, n = e === void 0 ? !1 : e, r = t.createOptionPosition, i = r === void 0 ? "last" : r, s = t.formatCreateLabel, o = s === void 0 ? Yi.formatCreateLabel : s, a = t.isValidNewOption, c = a === void 0 ? Yi.isValidNewOption : a, u = t.getNewOptionData, d = u === void 0 ? Yi.getNewOptionData : u, g = t.onCreateOption, p = t.options, m = p === void 0 ? [] : p,
|
|
12418
|
+
var e = t.allowCreateWhileLoading, n = e === void 0 ? !1 : e, r = t.createOptionPosition, i = r === void 0 ? "last" : r, s = t.formatCreateLabel, o = s === void 0 ? Yi.formatCreateLabel : s, a = t.isValidNewOption, c = a === void 0 ? Yi.isValidNewOption : a, u = t.getNewOptionData, d = u === void 0 ? Yi.getNewOptionData : u, g = t.onCreateOption, p = t.options, m = p === void 0 ? [] : p, A = t.onChange, b = _e(t, nx), v = b.getOptionValue, h = v === void 0 ? Ad : v, y = b.getOptionLabel, I = y === void 0 ? hd : y, M = b.inputValue, N = b.isLoading, x = b.isMulti, w = b.value, j = b.name, D = ie(function() {
|
|
12419
12419
|
return c(M, Hr(w), m, {
|
|
12420
|
-
getOptionValue:
|
|
12420
|
+
getOptionValue: h,
|
|
12421
12421
|
getOptionLabel: I
|
|
12422
12422
|
}) ? d(M, o(M)) : void 0;
|
|
12423
|
-
}, [o, d, I,
|
|
12423
|
+
}, [o, d, I, h, M, c, m, w]), k = ie(function() {
|
|
12424
12424
|
return (n || !N) && D ? i === "first" ? [D].concat(Cn(m)) : [].concat(Cn(m), [D]) : m;
|
|
12425
12425
|
}, [n, i, N, D, m]), B = H(function(R, Z) {
|
|
12426
12426
|
if (Z.action !== "select-option")
|
|
12427
|
-
return
|
|
12427
|
+
return A(R, Z);
|
|
12428
12428
|
var W = Array.isArray(R) ? R : [R];
|
|
12429
12429
|
if (W[W.length - 1] === D) {
|
|
12430
12430
|
if (g)
|
|
@@ -12435,12 +12435,12 @@ function Sd(t) {
|
|
|
12435
12435
|
name: j,
|
|
12436
12436
|
option: G
|
|
12437
12437
|
};
|
|
12438
|
-
|
|
12438
|
+
A(Nn(x, [].concat(Cn(Hr(w)), [G]), G), ee);
|
|
12439
12439
|
}
|
|
12440
12440
|
return;
|
|
12441
12441
|
}
|
|
12442
|
-
|
|
12443
|
-
}, [d, M, x, j, D, g,
|
|
12442
|
+
A(R, Z);
|
|
12443
|
+
}, [d, M, x, j, D, g, A, w]);
|
|
12444
12444
|
return L(L({}, b), {}, {
|
|
12445
12445
|
options: k,
|
|
12446
12446
|
onChange: B
|
|
@@ -12495,11 +12495,11 @@ const cx = (t) => {
|
|
|
12495
12495
|
loadOptions: g,
|
|
12496
12496
|
values: p,
|
|
12497
12497
|
onChange: m,
|
|
12498
|
-
canCreate:
|
|
12498
|
+
canCreate: A = !1,
|
|
12499
12499
|
testId: b,
|
|
12500
12500
|
...v
|
|
12501
12501
|
}) => {
|
|
12502
|
-
const
|
|
12502
|
+
const h = Rt(), y = S(
|
|
12503
12503
|
"w-full cursor-pointer appearance-none rounded-md border border-transparent transition-all dark:text-white",
|
|
12504
12504
|
s === "sm" ? "min-h-[36px] py-1 text-sm" : "min-h-[40px] py-2",
|
|
12505
12505
|
o === "dropdown" ? "cursor-pointer" : "cursor-text",
|
|
@@ -12533,7 +12533,7 @@ const cx = (t) => {
|
|
|
12533
12533
|
},
|
|
12534
12534
|
closeMenuOnSelect: !1,
|
|
12535
12535
|
components: { DropdownIndicator: N, Option: dx },
|
|
12536
|
-
inputId:
|
|
12536
|
+
inputId: h,
|
|
12537
12537
|
isClearable: !1,
|
|
12538
12538
|
placeholder: r || "",
|
|
12539
12539
|
value: p,
|
|
@@ -12543,8 +12543,8 @@ const cx = (t) => {
|
|
|
12543
12543
|
...v
|
|
12544
12544
|
};
|
|
12545
12545
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
|
|
12546
|
-
t && /* @__PURE__ */ l.jsx(we, { htmlFor:
|
|
12547
|
-
/* @__PURE__ */ l.jsx("div", { "data-testid": b, children: c ?
|
|
12546
|
+
t && /* @__PURE__ */ l.jsx(we, { htmlFor: h, grey: !0, useLabelTag: !0, children: t }),
|
|
12547
|
+
/* @__PURE__ */ l.jsx("div", { "data-testid": b, children: c ? A ? /* @__PURE__ */ l.jsx(ix, { ...x, defaultOptions: d, loadOptions: g }) : /* @__PURE__ */ l.jsx(Dd, { ...x, defaultOptions: d, loadOptions: g }) : A ? /* @__PURE__ */ l.jsx(ox, { ...x, options: u }) : /* @__PURE__ */ l.jsx(Cd, { ...x, options: u }) }),
|
|
12548
12548
|
a && /* @__PURE__ */ l.jsx(It, { color: n ? "red" : "", children: a })
|
|
12549
12549
|
] });
|
|
12550
12550
|
}, fx = ({ clearBg: t, ...e }) => /* @__PURE__ */ l.jsx(hn.DropdownIndicator, { ...e, children: /* @__PURE__ */ l.jsx("div", { className: `absolute top-[11px] block h-2 w-2 rotate-45 border-[1px] border-l-0 border-t-0 border-grey-900 content-[''] dark:border-grey-400 ${t ? "right-2" : "right-[14px]"} ` }) }), gx = (t) => /* @__PURE__ */ l.jsx(hn.ClearIndicator, { ...t, children: /* @__PURE__ */ l.jsx(me, { className: "mr-2", name: "close", size: "xs" }) }), mx = ({ children: t, ...e }) => /* @__PURE__ */ l.jsxs(hn.Option, { ...e, children: [
|
|
@@ -12565,10 +12565,10 @@ const cx = (t) => {
|
|
|
12565
12565
|
fullWidth: g = !0,
|
|
12566
12566
|
isSearchable: p = !1,
|
|
12567
12567
|
containerClassName: m,
|
|
12568
|
-
controlClasses:
|
|
12568
|
+
controlClasses: A,
|
|
12569
12569
|
unstyled: b,
|
|
12570
12570
|
disabled: v = !1,
|
|
12571
|
-
testId:
|
|
12571
|
+
testId: h,
|
|
12572
12572
|
...y
|
|
12573
12573
|
}) => {
|
|
12574
12574
|
const I = Rt(), { setFocusState: M } = Rn(), N = () => {
|
|
@@ -12587,24 +12587,24 @@ const cx = (t) => {
|
|
|
12587
12587
|
);
|
|
12588
12588
|
const j = {
|
|
12589
12589
|
control: S(
|
|
12590
|
-
|
|
12590
|
+
A == null ? void 0 : A.control,
|
|
12591
12591
|
"h-9 min-h-[36px] w-full cursor-pointer appearance-none rounded-md border outline-none dark:text-white",
|
|
12592
12592
|
r === "xs" ? "py-0 pr-2 text-xs" : "py-1 pr-4",
|
|
12593
12593
|
d ? "" : "bg-grey-150 px-3 dark:bg-grey-900",
|
|
12594
12594
|
c ? "border-red" : `border-transparent ${!d && "hover:bg-grey-100 dark:hover:bg-grey-925"}`,
|
|
12595
12595
|
e && !d && "mt-1.5"
|
|
12596
12596
|
),
|
|
12597
|
-
valueContainer: S("mr-1.5 gap-1",
|
|
12598
|
-
placeHolder: S("text-grey-700 dark:text-grey-800",
|
|
12597
|
+
valueContainer: S("mr-1.5 gap-1", A == null ? void 0 : A.valueContainer),
|
|
12598
|
+
placeHolder: S("text-grey-700 dark:text-grey-800", A == null ? void 0 : A.placeHolder),
|
|
12599
12599
|
menu: S(
|
|
12600
12600
|
"z-[300] rounded-b bg-white shadow dark:border dark:border-grey-900 dark:bg-black",
|
|
12601
12601
|
r === "xs" && "text-xs",
|
|
12602
|
-
|
|
12602
|
+
A == null ? void 0 : A.menu
|
|
12603
12603
|
),
|
|
12604
|
-
option: S("px-3 py-[6px] hover:cursor-pointer hover:bg-grey-100 dark:text-white dark:hover:bg-grey-900",
|
|
12605
|
-
noOptionsMessage: S("nowrap p-3 text-grey-600",
|
|
12606
|
-
groupHeading: S("px-3 py-[6px] text-2xs font-semibold uppercase tracking-wide text-grey-700",
|
|
12607
|
-
clearIndicator: S("",
|
|
12604
|
+
option: S("px-3 py-[6px] hover:cursor-pointer hover:bg-grey-100 dark:text-white dark:hover:bg-grey-900", A == null ? void 0 : A.option),
|
|
12605
|
+
noOptionsMessage: S("nowrap p-3 text-grey-600", A == null ? void 0 : A.noOptionsMessage),
|
|
12606
|
+
groupHeading: S("px-3 py-[6px] text-2xs font-semibold uppercase tracking-wide text-grey-700", A == null ? void 0 : A.groupHeading),
|
|
12607
|
+
clearIndicator: S("", A == null ? void 0 : A.clearIndicator)
|
|
12608
12608
|
}, D = ie(() => function(Z) {
|
|
12609
12609
|
return /* @__PURE__ */ l.jsx(fx, { ...Z, clearBg: d });
|
|
12610
12610
|
}, [d]), k = {
|
|
@@ -12632,7 +12632,7 @@ const cx = (t) => {
|
|
|
12632
12632
|
onBlur: x
|
|
12633
12633
|
}, B = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
12634
12634
|
e && /* @__PURE__ */ l.jsx(we, { className: n ? "sr-only" : "", grey: !!(o || !i), htmlFor: I, useLabelTag: !0, children: e }),
|
|
12635
|
-
/* @__PURE__ */ l.jsx("div", { className: w, "data-testid":
|
|
12635
|
+
/* @__PURE__ */ l.jsx("div", { className: w, "data-testid": h, children: t ? /* @__PURE__ */ l.jsx(Dd, { ...k, ...y }) : /* @__PURE__ */ l.jsx(Cd, { ...k, ...y }) }),
|
|
12636
12636
|
u && /* @__PURE__ */ l.jsx(It, { color: c ? "red" : "", children: u })
|
|
12637
12637
|
] });
|
|
12638
12638
|
return b ? B : e || u ? /* @__PURE__ */ l.jsx("div", { children: B }) : B;
|
|
@@ -12698,17 +12698,17 @@ const vx = [{
|
|
|
12698
12698
|
color: "pink"
|
|
12699
12699
|
}], bx = (t, e) => {
|
|
12700
12700
|
const n = Xi({ path: "/tiers/", filterKey: "name", responseKey: "tiers" }), r = Xi({ path: "/labels/", filterKey: "name", responseKey: "labels" }), i = Xi({ path: "/offers/", filterKey: "name", responseKey: "offers" }), [s, o] = C(null), a = (p) => ({ value: p.id, label: p.name, color: "black" }), c = (p) => ({ value: `label:${p.slug}`, label: p.name, color: "grey" }), u = (p) => ({ value: `offer_redemptions:${p.id}`, label: p.name, color: "black" }), d = async (p, m) => {
|
|
12701
|
-
const [
|
|
12701
|
+
const [A, b, v] = await Promise.all([n.loadData(p), r.loadData(p), i.loadData(p)]), h = [
|
|
12702
12702
|
{
|
|
12703
12703
|
options: vx.filter(({ label: y }) => y.toLowerCase().includes(p.toLowerCase()))
|
|
12704
12704
|
},
|
|
12705
12705
|
{
|
|
12706
12706
|
label: "Active Tiers",
|
|
12707
|
-
options:
|
|
12707
|
+
options: A.filter(({ active: y, type: I }) => y && I !== "free").map(a) || []
|
|
12708
12708
|
},
|
|
12709
12709
|
{
|
|
12710
12710
|
label: "Archived Tiers",
|
|
12711
|
-
options:
|
|
12711
|
+
options: A.filter(({ active: y }) => !y).map(a) || []
|
|
12712
12712
|
},
|
|
12713
12713
|
{
|
|
12714
12714
|
label: "Labels",
|
|
@@ -12719,17 +12719,17 @@ const vx = [{
|
|
|
12719
12719
|
options: v.map(u) || []
|
|
12720
12720
|
}
|
|
12721
12721
|
];
|
|
12722
|
-
s === null && g(), m(
|
|
12722
|
+
s === null && g(), m(h.filter((y) => y.options.length > 0));
|
|
12723
12723
|
}, g = async () => {
|
|
12724
|
-
const p = (e == null ? void 0 : e.split(",")) || [], m = [],
|
|
12725
|
-
for (const
|
|
12726
|
-
|
|
12724
|
+
const p = (e == null ? void 0 : e.split(",")) || [], m = [], A = [], b = [];
|
|
12725
|
+
for (const h of p)
|
|
12726
|
+
h.startsWith("label:") ? A.push(h.replace("label:", "")) : h.startsWith("offer_redemptions:") ? b.push(h.replace("offer_redemptions:", "")) : J2(h) && m.push(h);
|
|
12727
12727
|
const v = await Promise.all([
|
|
12728
|
-
n.loadInitialValues(m).then((
|
|
12729
|
-
r.loadInitialValues(
|
|
12730
|
-
i.loadInitialValues(b).then((
|
|
12731
|
-
]).then((
|
|
12732
|
-
o(p.map((
|
|
12728
|
+
n.loadInitialValues(m).then((h) => h.map(a)),
|
|
12729
|
+
r.loadInitialValues(A).then((h) => h.map(c)),
|
|
12730
|
+
i.loadInitialValues(b).then((h) => h.map(u))
|
|
12731
|
+
]).then((h) => h.flat());
|
|
12732
|
+
o(p.map((h) => v.find((y) => y.value === h)));
|
|
12733
12733
|
};
|
|
12734
12734
|
return O(() => {
|
|
12735
12735
|
t === "segment" && d("", () => {
|
|
@@ -12781,15 +12781,15 @@ const Ix = ({ keywords: t }) => {
|
|
|
12781
12781
|
]), [d, g] = C(yx({
|
|
12782
12782
|
defaultEmailRecipients: c,
|
|
12783
12783
|
defaultEmailRecipientsFilter: u
|
|
12784
|
-
})), { loadOptions: p, selectedSegments: m, setSelectedSegments:
|
|
12784
|
+
})), { loadOptions: p, selectedSegments: m, setSelectedSegments: A } = bx(d, u), b = (I) => {
|
|
12785
12785
|
["visibility", "disabled"].includes(I) ? (o("editor_default_email_recipients", I), o("editor_default_email_recipients_filter", null)) : o("editor_default_email_recipients", "filter"), I === "all-members" && o("editor_default_email_recipients_filter", "status:free,status:-free"), I === "paid-only" && o("editor_default_email_recipients_filter", "status:-free"), I === "none" && o("editor_default_email_recipients_filter", null), g(I);
|
|
12786
12786
|
}, v = (I) => {
|
|
12787
|
-
if (
|
|
12787
|
+
if (A(I), I.length) {
|
|
12788
12788
|
const M = I == null ? void 0 : I.map(({ value: N }) => N).join(",");
|
|
12789
12789
|
o("editor_default_email_recipients_filter", M);
|
|
12790
12790
|
} else
|
|
12791
12791
|
o("editor_default_email_recipients_filter", null), g("none");
|
|
12792
|
-
},
|
|
12792
|
+
}, h = /* @__PURE__ */ l.jsx(
|
|
12793
12793
|
ce,
|
|
12794
12794
|
{
|
|
12795
12795
|
values: [
|
|
@@ -12840,7 +12840,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
12840
12840
|
onCancel: s,
|
|
12841
12841
|
onEditingChange: a,
|
|
12842
12842
|
onSave: i,
|
|
12843
|
-
children: n ? y :
|
|
12843
|
+
children: n ? y : h
|
|
12844
12844
|
}
|
|
12845
12845
|
);
|
|
12846
12846
|
}, Mx = ne(Ix, "Default recipients"), xx = ({ keywords: t }) => {
|
|
@@ -12922,10 +12922,10 @@ const Ix = ({ keywords: t }) => {
|
|
|
12922
12922
|
onBlur: g,
|
|
12923
12923
|
clearBg: p = !1,
|
|
12924
12924
|
className: m = "",
|
|
12925
|
-
maxLength:
|
|
12925
|
+
maxLength: A,
|
|
12926
12926
|
containerClassName: b = "",
|
|
12927
12927
|
hintClassName: v = "",
|
|
12928
|
-
unstyled:
|
|
12928
|
+
unstyled: h = !1,
|
|
12929
12929
|
disabled: y,
|
|
12930
12930
|
...I
|
|
12931
12931
|
}) => {
|
|
@@ -12936,16 +12936,16 @@ const Ix = ({ keywords: t }) => {
|
|
|
12936
12936
|
}, j = S(
|
|
12937
12937
|
"relative order-2 flex w-full items-center",
|
|
12938
12938
|
n && !r && "mt-1.5"
|
|
12939
|
-
), D = S(
|
|
12939
|
+
), D = !h && S(
|
|
12940
12940
|
"absolute inset-0 rounded-md border text-grey-300 transition-all peer-hover:bg-grey-100 peer-focus:border-green peer-focus:bg-white peer-focus:shadow-[0_0_0_1px_rgba(48,207,67,1)] dark:peer-hover:bg-grey-925 dark:peer-focus:bg-grey-925",
|
|
12941
12941
|
s ? "border-red bg-white dark:bg-grey-925" : "border-transparent bg-grey-150 dark:bg-grey-900",
|
|
12942
12942
|
y && "bg-grey-100 dark:bg-grey-925"
|
|
12943
|
-
), k = !
|
|
12943
|
+
), k = !h && S(
|
|
12944
12944
|
"peer z-[1] order-2 h-8 w-full bg-transparent px-3 py-1 text-sm placeholder:text-grey-500 dark:placeholder:text-grey-700 md:h-9 md:py-2 md:text-md",
|
|
12945
12945
|
y ? "cursor-not-allowed text-grey-700 opacity-60 dark:text-grey-700" : "dark:text-white",
|
|
12946
12946
|
a ? "w-0 grow rounded-l-md" : "rounded-md",
|
|
12947
12947
|
m
|
|
12948
|
-
), B = !
|
|
12948
|
+
), B = !h && S(
|
|
12949
12949
|
"z-[1] order-3 rounded-r-lg",
|
|
12950
12950
|
a ? typeof a == "string" ? "flex h-8 items-center py-1 pr-3 text-right text-sm text-grey-500 md:h-9 md:text-base" : "h-9 pr-1" : "pr-2"
|
|
12951
12951
|
);
|
|
@@ -12957,7 +12957,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
12957
12957
|
className: k || m,
|
|
12958
12958
|
disabled: y,
|
|
12959
12959
|
id: M,
|
|
12960
|
-
maxLength:
|
|
12960
|
+
maxLength: A,
|
|
12961
12961
|
placeholder: o,
|
|
12962
12962
|
type: t,
|
|
12963
12963
|
value: i,
|
|
@@ -12969,7 +12969,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
12969
12969
|
);
|
|
12970
12970
|
return R = /* @__PURE__ */ l.jsxs("div", { className: j, children: [
|
|
12971
12971
|
Z,
|
|
12972
|
-
!p && /* @__PURE__ */ l.jsx("div", { className: D }),
|
|
12972
|
+
!h && !p && /* @__PURE__ */ l.jsx("div", { className: D || "" }),
|
|
12973
12973
|
a && /* @__PURE__ */ l.jsx("span", { className: B || "", children: a })
|
|
12974
12974
|
] }), v = S(
|
|
12975
12975
|
"order-3",
|
|
@@ -12998,7 +12998,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
12998
12998
|
"mailgun_base_url",
|
|
12999
12999
|
"mailgun_domain",
|
|
13000
13000
|
"mailgun_api_key"
|
|
13001
|
-
]),
|
|
13001
|
+
]), A = g && p ? [
|
|
13002
13002
|
{
|
|
13003
13003
|
key: "status",
|
|
13004
13004
|
value: /* @__PURE__ */ l.jsx(wx, { icon: "check-circle", iconColorClass: "text-green", children: "Mailgun is set up" })
|
|
@@ -13013,12 +13013,12 @@ const Ix = ({ keywords: t }) => {
|
|
|
13013
13013
|
ce,
|
|
13014
13014
|
{
|
|
13015
13015
|
columns: 1,
|
|
13016
|
-
values:
|
|
13016
|
+
values: A
|
|
13017
13017
|
}
|
|
13018
13018
|
), v = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
13019
13019
|
"Find your Mailgun API keys ",
|
|
13020
13020
|
/* @__PURE__ */ l.jsx(On, { href: "https://app.mailgun.com/settings/api_security", rel: "noopener noreferrer", target: "_blank", children: "here" })
|
|
13021
|
-
] }),
|
|
13021
|
+
] }), h = /* @__PURE__ */ l.jsx(ce, { children: /* @__PURE__ */ l.jsxs("div", { className: "grid grid-cols-[120px_auto] gap-x-3 gap-y-6", children: [
|
|
13022
13022
|
/* @__PURE__ */ l.jsx(
|
|
13023
13023
|
Lt,
|
|
13024
13024
|
{
|
|
@@ -13078,7 +13078,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13078
13078
|
}
|
|
13079
13079
|
i();
|
|
13080
13080
|
},
|
|
13081
|
-
children: n ?
|
|
13081
|
+
children: n ? h : b
|
|
13082
13082
|
}
|
|
13083
13083
|
);
|
|
13084
13084
|
}, Sx = ne(Nx, "Mailgun"), Dx = ({ page: t, limit: e, total: n, prevPage: r, nextPage: i }) => {
|
|
@@ -13126,12 +13126,12 @@ const Ix = ({ keywords: t }) => {
|
|
|
13126
13126
|
"w-full overflow-x-auto",
|
|
13127
13127
|
s ? "mb-0 mt-14" : "my-0",
|
|
13128
13128
|
o
|
|
13129
|
-
), g = Y.useRef(null), p = Y.useRef(0), [m,
|
|
13129
|
+
), g = Y.useRef(null), p = Y.useRef(0), [m, A] = Y.useState(void 0), b = a && a.pages && a.pages > 1;
|
|
13130
13130
|
Y.useEffect(() => {
|
|
13131
13131
|
if (g.current) {
|
|
13132
13132
|
const y = new ResizeObserver((I) => {
|
|
13133
13133
|
const M = I[0].target.clientHeight;
|
|
13134
|
-
|
|
13134
|
+
A(M), M > p.current && (p.current = M);
|
|
13135
13135
|
});
|
|
13136
13136
|
return y.observe(g.current), () => {
|
|
13137
13137
|
y.disconnect();
|
|
@@ -13142,7 +13142,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13142
13142
|
height: "auto"
|
|
13143
13143
|
} : {
|
|
13144
13144
|
height: p.current
|
|
13145
|
-
}, [m]),
|
|
13145
|
+
}, [m]), h = Y.useMemo(() => m === void 0 ? {
|
|
13146
13146
|
height: 0
|
|
13147
13147
|
} : {
|
|
13148
13148
|
height: p.current - m
|
|
@@ -13152,7 +13152,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13152
13152
|
/* @__PURE__ */ l.jsxs("table", { className: d, children: [
|
|
13153
13153
|
t && /* @__PURE__ */ l.jsx("thead", { className: "border-b border-grey-200 dark:border-grey-600", children: /* @__PURE__ */ l.jsx(Si, { bgOnHover: !1, separator: !1, children: t }) }),
|
|
13154
13154
|
!u && /* @__PURE__ */ l.jsx("tbody", { ref: g, children: e }),
|
|
13155
|
-
b && /* @__PURE__ */ l.jsx("div", { style:
|
|
13155
|
+
b && /* @__PURE__ */ l.jsx("div", { style: h })
|
|
13156
13156
|
] }),
|
|
13157
13157
|
u && /* @__PURE__ */ l.jsx(yu, { delay: 200, size: "lg", style: v }),
|
|
13158
13158
|
(r || a || c) && /* @__PURE__ */ l.jsxs("div", { className: "-mt-px", children: [
|
|
@@ -13288,7 +13288,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13288
13288
|
prompt: v,
|
|
13289
13289
|
okLabel: "Close",
|
|
13290
13290
|
cancelLabel: "",
|
|
13291
|
-
onOk: (
|
|
13291
|
+
onOk: (h) => h == null ? void 0 : h.remove()
|
|
13292
13292
|
}), g(b, { withToast: !1 });
|
|
13293
13293
|
}
|
|
13294
13294
|
})();
|
|
@@ -13299,12 +13299,12 @@ const Ix = ({ keywords: t }) => {
|
|
|
13299
13299
|
{
|
|
13300
13300
|
id: "active-newsletters",
|
|
13301
13301
|
title: "Active",
|
|
13302
|
-
contents: /* @__PURE__ */ l.jsx(Fl, { newsletters: (s == null ? void 0 : s.filter((
|
|
13302
|
+
contents: /* @__PURE__ */ l.jsx(Fl, { newsletters: (s == null ? void 0 : s.filter((A) => A.status === "active")) || [] })
|
|
13303
13303
|
},
|
|
13304
13304
|
{
|
|
13305
13305
|
id: "archived-newsletters",
|
|
13306
13306
|
title: "Archived",
|
|
13307
|
-
contents: /* @__PURE__ */ l.jsx(Fl, { newsletters: (s == null ? void 0 : s.filter((
|
|
13307
|
+
contents: /* @__PURE__ */ l.jsx(Fl, { newsletters: (s == null ? void 0 : s.filter((A) => A.status !== "active")) || [] })
|
|
13308
13308
|
}
|
|
13309
13309
|
];
|
|
13310
13310
|
return /* @__PURE__ */ l.jsxs(
|
|
@@ -13358,10 +13358,10 @@ const Ix = ({ keywords: t }) => {
|
|
|
13358
13358
|
deleteButtonContent: g,
|
|
13359
13359
|
deleteButtonUnstyled: p = !1,
|
|
13360
13360
|
imageBWCheckedBg: m = !1,
|
|
13361
|
-
unstyled:
|
|
13361
|
+
unstyled: A = !1,
|
|
13362
13362
|
onUpload: b,
|
|
13363
13363
|
onDelete: v,
|
|
13364
|
-
onImageClick:
|
|
13364
|
+
onImageClick: h,
|
|
13365
13365
|
pintura: y,
|
|
13366
13366
|
editButtonClassName: I,
|
|
13367
13367
|
editButtonContent: M,
|
|
@@ -13373,7 +13373,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13373
13373
|
unsplashEnabled: k,
|
|
13374
13374
|
openUnsplash: B
|
|
13375
13375
|
}) => {
|
|
13376
|
-
if (
|
|
13376
|
+
if (A || (o = S(
|
|
13377
13377
|
"group relative flex justify-center",
|
|
13378
13378
|
o
|
|
13379
13379
|
), a = S(
|
|
@@ -13397,13 +13397,13 @@ const Ix = ({ keywords: t }) => {
|
|
|
13397
13397
|
w
|
|
13398
13398
|
))), g = g || /* @__PURE__ */ l.jsx(me, { colorClass: "text-white", name: "trash", size: "sm" }), M = M || /* @__PURE__ */ l.jsx(me, { colorClass: "text-white", name: "pen", size: "sm" }), D = D || /* @__PURE__ */ l.jsx(me, { colorClass: "text-black", name: "unsplash-logo", size: "sm" }), i) {
|
|
13399
13399
|
let R = /* @__PURE__ */ l.jsxs("div", { className: o, style: {
|
|
13400
|
-
width:
|
|
13401
|
-
height:
|
|
13400
|
+
width: A ? "" : n,
|
|
13401
|
+
height: A ? "" : r
|
|
13402
13402
|
}, children: [
|
|
13403
13403
|
/* @__PURE__ */ l.jsx("img", { alt: "", className: a, id: t, src: i, style: {
|
|
13404
|
-
width:
|
|
13405
|
-
height:
|
|
13406
|
-
}, onClick:
|
|
13404
|
+
width: A ? "" : n || "100%",
|
|
13405
|
+
height: A ? "" : r || "auto"
|
|
13406
|
+
}, onClick: h }),
|
|
13407
13407
|
/* @__PURE__ */ l.jsxs("div", { className: x, children: [
|
|
13408
13408
|
(y == null ? void 0 : y.isEnabled) && (y == null ? void 0 : y.openEditor) && /* @__PURE__ */ l.jsx("button", { className: I, type: "button", onClick: y.openEditor, children: M }),
|
|
13409
13409
|
/* @__PURE__ */ l.jsx("button", { className: d, type: "button", onClick: v, children: g })
|
|
@@ -13427,9 +13427,9 @@ const Ix = ({ keywords: t }) => {
|
|
|
13427
13427
|
return /* @__PURE__ */ l.jsxs("div", { className: `${x} ${k ? "relative" : ""}`, children: [
|
|
13428
13428
|
k && /* @__PURE__ */ l.jsx("button", { className: w, type: "button", onClick: B, children: D }),
|
|
13429
13429
|
/* @__PURE__ */ l.jsx(Pr, { className: c, id: t, style: {
|
|
13430
|
-
width:
|
|
13431
|
-
height:
|
|
13432
|
-
}, unstyled:
|
|
13430
|
+
width: A ? "" : n,
|
|
13431
|
+
height: A ? "" : r
|
|
13432
|
+
}, unstyled: A, onUpload: b, ...u, children: /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx("span", { className: "text-center", children: e }) }) })
|
|
13433
13433
|
] });
|
|
13434
13434
|
}, Hx = (t) => /* @__PURE__ */ f("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f("title", null, "social-facebook"), /* @__PURE__ */ f("path", { d: "M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z", fill: "#1977F3" }), /* @__PURE__ */ f("path", { d: "m27.785 25.785.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z", fill: "#fff" })), Ld = ae({
|
|
13435
13435
|
method: "POST",
|
|
@@ -13451,10 +13451,10 @@ const Ix = ({ keywords: t }) => {
|
|
|
13451
13451
|
} = Te(), { mutateAsync: u } = Ld(), d = Ze(), g = vo(), [
|
|
13452
13452
|
p,
|
|
13453
13453
|
m,
|
|
13454
|
-
|
|
13454
|
+
A,
|
|
13455
13455
|
b,
|
|
13456
13456
|
v
|
|
13457
|
-
] = le(e, ["og_title", "og_description", "og_image", "title", "description"]),
|
|
13457
|
+
] = le(e, ["og_title", "og_description", "og_image", "title", "description"]), h = (w) => {
|
|
13458
13458
|
a("og_title", w.target.value);
|
|
13459
13459
|
}, y = (w) => {
|
|
13460
13460
|
a("og_description", w.target.value);
|
|
@@ -13485,11 +13485,11 @@ const Ix = ({ keywords: t }) => {
|
|
|
13485
13485
|
fileUploadClassName: "flex cursor-pointer items-center justify-center rounded rounded-b-none border border-grey-100 border-b-0 bg-grey-75 p-3 text-sm font-semibold text-grey-800 hover:text-black dark:border-grey-900",
|
|
13486
13486
|
height: "300px",
|
|
13487
13487
|
id: "facebook-image",
|
|
13488
|
-
imageURL:
|
|
13488
|
+
imageURL: A,
|
|
13489
13489
|
pintura: {
|
|
13490
13490
|
isEnabled: g.isEnabled,
|
|
13491
13491
|
openEditor: async () => g.openEditor({
|
|
13492
|
-
image:
|
|
13492
|
+
image: A || "",
|
|
13493
13493
|
handleSave: async (w) => {
|
|
13494
13494
|
const j = Wr(await u({ file: w }));
|
|
13495
13495
|
a("og_image", j);
|
|
@@ -13509,7 +13509,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13509
13509
|
placeholder: b,
|
|
13510
13510
|
title: "Facebook title",
|
|
13511
13511
|
value: p,
|
|
13512
|
-
onChange:
|
|
13512
|
+
onChange: h
|
|
13513
13513
|
}
|
|
13514
13514
|
),
|
|
13515
13515
|
/* @__PURE__ */ l.jsx(
|
|
@@ -13559,11 +13559,11 @@ const Ix = ({ keywords: t }) => {
|
|
|
13559
13559
|
onValidate: () => d && !g ? {
|
|
13560
13560
|
password: "Password must be supplied"
|
|
13561
13561
|
} : {}
|
|
13562
|
-
}), [d, g] = le(e, ["is_private", "password"]), p = (
|
|
13563
|
-
o("is_private",
|
|
13564
|
-
}, m = (
|
|
13565
|
-
o("password",
|
|
13566
|
-
},
|
|
13562
|
+
}), [d, g] = le(e, ["is_private", "password"]), p = (h) => {
|
|
13563
|
+
o("is_private", h.target.checked);
|
|
13564
|
+
}, m = (h) => {
|
|
13565
|
+
o("password", h.target.value);
|
|
13566
|
+
}, A = /* @__PURE__ */ l.jsx(
|
|
13567
13567
|
ce,
|
|
13568
13568
|
{
|
|
13569
13569
|
values: [
|
|
@@ -13620,7 +13620,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13620
13620
|
onCancel: s,
|
|
13621
13621
|
onEditingChange: a,
|
|
13622
13622
|
onSave: i,
|
|
13623
|
-
children: n ? v :
|
|
13623
|
+
children: n ? v : A
|
|
13624
13624
|
}
|
|
13625
13625
|
);
|
|
13626
13626
|
}, Gx = ne(Wx, "Make site private"), Fx = (t) => /* @__PURE__ */ f("svg", { fill: "none", viewBox: "0 0 92 31", ...t }, /* @__PURE__ */ f("title", null, "google"), /* @__PURE__ */ f("path", { d: "M39.15 15.898c0 4.303-3.378 7.473-7.525 7.473s-7.526-3.17-7.526-7.473c0-4.334 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.958-4.529-4.231-4.529-2.273 0-4.231 1.84-4.231 4.529 0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.231-1.87 4.231-4.528z", fill: "#EA4335" }), /* @__PURE__ */ f("path", { d: "M55.386 15.898c0 4.303-3.379 7.473-7.526 7.473-4.146 0-7.526-3.17-7.526-7.473 0-4.33 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.959-4.529-4.232-4.529s-4.231 1.84-4.231 4.529c0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.232-1.87 4.232-4.528z", fill: "#FBBC05" }), /* @__PURE__ */ f("path", { d: "M70.945 8.875v13.418c0 5.52-3.267 7.774-7.13 7.774-3.636 0-5.825-2.423-6.65-4.404l2.868-1.19c.511 1.217 1.763 2.652 3.779 2.652 2.472 0 4.004-1.52 4.004-4.38V21.67h-.115c-.737.906-2.158 1.698-3.95 1.698-3.751 0-7.188-3.255-7.188-7.443 0-4.22 3.437-7.501 7.188-7.501 1.789 0 3.21.792 3.95 1.671h.115V8.88h3.129v-.004zm-2.895 7.05c0-2.632-1.763-4.556-4.005-4.556-2.273 0-4.177 1.924-4.177 4.556 0 2.604 1.904 4.501 4.177 4.501 2.242 0 4.005-1.897 4.005-4.501z", fill: "#4285F4" }), /* @__PURE__ */ f("path", { d: "M76.103 1.01v21.903H72.89V1.011h3.213z", fill: "#34A853" }), /* @__PURE__ */ f("path", { d: "M88.624 18.357l2.558 1.699c-.826 1.216-2.815 3.312-6.251 3.312-4.262 0-7.445-3.282-7.445-7.474 0-4.444 3.21-7.473 7.076-7.473 3.893 0 5.798 3.086 6.42 4.754l.341.85-10.028 4.137c.768 1.5 1.962 2.264 3.636 2.264 1.678 0 2.841-.822 3.693-2.069zm-7.87-2.688l6.703-2.774c-.368-.933-1.478-1.583-2.783-1.583-1.674 0-4.005 1.472-3.92 4.357z", fill: "#EA4335" }), /* @__PURE__ */ f("path", { d: "M11.936 13.953v-3.17h10.726c.105.552.159 1.206.159 1.914 0 2.378-.653 5.32-2.757 7.416-2.046 2.123-4.66 3.255-8.124 3.255-6.42 0-11.818-5.21-11.818-11.605C.122 5.368 5.52.158 11.94.158c3.551 0 6.081 1.389 7.982 3.198l-2.246 2.237c-1.363-1.273-3.21-2.264-5.74-2.264-4.688 0-8.354 3.764-8.354 8.434s3.666 8.434 8.354 8.434c3.041 0 4.773-1.216 5.882-2.322.9-.896 1.492-2.176 1.725-3.925l-7.607.003z", fill: "#4285F4" })), Qx = ({
|
|
@@ -13661,10 +13661,10 @@ const Ix = ({ keywords: t }) => {
|
|
|
13661
13661
|
handleCancel: a,
|
|
13662
13662
|
updateSetting: c,
|
|
13663
13663
|
handleEditingChange: u
|
|
13664
|
-
} = Te(), [d, g, p, m] = le(e, ["meta_title", "meta_description", "title", "description"]),
|
|
13665
|
-
c("meta_title",
|
|
13666
|
-
}, b = (
|
|
13667
|
-
c("meta_description",
|
|
13664
|
+
} = Te(), [d, g, p, m] = le(e, ["meta_title", "meta_description", "title", "description"]), A = (h) => {
|
|
13665
|
+
c("meta_title", h.target.value);
|
|
13666
|
+
}, b = (h) => {
|
|
13667
|
+
c("meta_description", h.target.value);
|
|
13668
13668
|
}, v = /* @__PURE__ */ l.jsxs(ce, { children: [
|
|
13669
13669
|
/* @__PURE__ */ l.jsx(
|
|
13670
13670
|
Ne,
|
|
@@ -13674,7 +13674,7 @@ const Ix = ({ keywords: t }) => {
|
|
|
13674
13674
|
placeholder: p,
|
|
13675
13675
|
title: "Meta title",
|
|
13676
13676
|
value: d,
|
|
13677
|
-
onChange:
|
|
13677
|
+
onChange: A
|
|
13678
13678
|
}
|
|
13679
13679
|
),
|
|
13680
13680
|
/* @__PURE__ */ l.jsx(
|
|
@@ -13725,8 +13725,8 @@ const Ix = ({ keywords: t }) => {
|
|
|
13725
13725
|
updateSetting: o,
|
|
13726
13726
|
focusRef: a,
|
|
13727
13727
|
handleEditingChange: c
|
|
13728
|
-
} = Te(), [u] = le(e, ["locale"]), d = (
|
|
13729
|
-
o("locale",
|
|
13728
|
+
} = Te(), [u] = le(e, ["locale"]), d = (A) => {
|
|
13729
|
+
o("locale", A.target.value);
|
|
13730
13730
|
}, g = /* @__PURE__ */ l.jsx(ce, { values: [
|
|
13731
13731
|
{
|
|
13732
13732
|
heading: "Site language",
|
|
@@ -13951,8 +13951,8 @@ var Td = na.exports, ra = { exports: {} };
|
|
|
13951
13951
|
if (!g.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(p) || /[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(p))
|
|
13952
13952
|
return !1;
|
|
13953
13953
|
}
|
|
13954
|
-
for (var m,
|
|
13955
|
-
if (m = g[
|
|
13954
|
+
for (var m, A = 0; A < g.length; A++)
|
|
13955
|
+
if (m = g[A], d.allow_underscores && (m = m.replace(/_/g, "")), !/^[a-z\u00a1-\uffff0-9-]+$/i.test(m) || /[\uff01-\uff5e]/.test(m) || m[0] === "-" || m[m.length - 1] === "-")
|
|
13956
13956
|
return !1;
|
|
13957
13957
|
return !0;
|
|
13958
13958
|
}
|
|
@@ -13962,7 +13962,7 @@ var Eo = ra.exports;
|
|
|
13962
13962
|
(function(t, e) {
|
|
13963
13963
|
Object.defineProperty(e, "__esModule", {
|
|
13964
13964
|
value: !0
|
|
13965
|
-
}), e.default =
|
|
13965
|
+
}), e.default = h;
|
|
13966
13966
|
var n = P, r = d(n), i = Kn, s = d(i), o = Td, a = d(o), c = Eo, u = d(c);
|
|
13967
13967
|
function d(y) {
|
|
13968
13968
|
return y && y.__esModule ? y : { default: y };
|
|
@@ -13972,8 +13972,8 @@ var Eo = ra.exports;
|
|
|
13972
13972
|
require_display_name: !1,
|
|
13973
13973
|
allow_utf8_local_part: !0,
|
|
13974
13974
|
require_tld: !0
|
|
13975
|
-
}, p = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i, m = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,
|
|
13976
|
-
function
|
|
13975
|
+
}, p = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i, m = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i, A = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, b = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, v = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
|
|
13976
|
+
function h(y, I) {
|
|
13977
13977
|
if ((0, r.default)(y), I = (0, s.default)(I, g), I.require_display_name || I.allow_display_name) {
|
|
13978
13978
|
var M = y.match(p);
|
|
13979
13979
|
if (M)
|
|
@@ -13985,7 +13985,7 @@ var Eo = ra.exports;
|
|
|
13985
13985
|
if ((j === "gmail.com" || j === "googlemail.com") && (w = w.replace(/\./g, "").toLowerCase()), !(0, a.default)(w, { max: 64 }) || !(0, a.default)(x, { max: 254 }) || !(0, u.default)(x, { require_tld: I.require_tld }))
|
|
13986
13986
|
return !1;
|
|
13987
13987
|
if (w[0] === '"')
|
|
13988
|
-
return w = w.slice(1, w.length - 1), I.allow_utf8_local_part ? v.test(w) :
|
|
13988
|
+
return w = w.slice(1, w.length - 1), I.allow_utf8_local_part ? v.test(w) : A.test(w);
|
|
13989
13989
|
for (var D = I.allow_utf8_local_part ? b : m, k = w.split("."), B = 0; B < k.length; B++)
|
|
13990
13990
|
if (!D.test(k[B]))
|
|
13991
13991
|
return !1;
|
|
@@ -14009,13 +14009,13 @@ var zd = ea.exports, ia = { exports: {} }, sa = { exports: {} };
|
|
|
14009
14009
|
if (u === "4") {
|
|
14010
14010
|
if (!s.test(c))
|
|
14011
14011
|
return !1;
|
|
14012
|
-
var d = c.split(".").sort(function(v,
|
|
14013
|
-
return v -
|
|
14012
|
+
var d = c.split(".").sort(function(v, h) {
|
|
14013
|
+
return v - h;
|
|
14014
14014
|
});
|
|
14015
14015
|
return d[3] <= 255;
|
|
14016
14016
|
} else if (u === "6") {
|
|
14017
|
-
var g = c.split(":"), p = !1, m = a(g[g.length - 1], 4),
|
|
14018
|
-
if (g.length >
|
|
14017
|
+
var g = c.split(":"), p = !1, m = a(g[g.length - 1], 4), A = m ? 7 : 8;
|
|
14018
|
+
if (g.length > A)
|
|
14019
14019
|
return !1;
|
|
14020
14020
|
if (c === "::")
|
|
14021
14021
|
return !0;
|
|
@@ -14029,7 +14029,7 @@ var zd = ea.exports, ia = { exports: {} }, sa = { exports: {} };
|
|
|
14029
14029
|
if (!o.test(g[b]))
|
|
14030
14030
|
return !1;
|
|
14031
14031
|
}
|
|
14032
|
-
return p ? g.length >= 1 : g.length ===
|
|
14032
|
+
return p ? g.length >= 1 : g.length === A;
|
|
14033
14033
|
}
|
|
14034
14034
|
} else
|
|
14035
14035
|
return a(c, 4) || a(c, 6);
|
|
@@ -14059,34 +14059,34 @@ var Od = sa.exports;
|
|
|
14059
14059
|
function m(v) {
|
|
14060
14060
|
return Object.prototype.toString.call(v) === "[object RegExp]";
|
|
14061
14061
|
}
|
|
14062
|
-
function
|
|
14063
|
-
for (var y = 0; y <
|
|
14064
|
-
var I =
|
|
14062
|
+
function A(v, h) {
|
|
14063
|
+
for (var y = 0; y < h.length; y++) {
|
|
14064
|
+
var I = h[y];
|
|
14065
14065
|
if (v === I || m(I) && I.test(v))
|
|
14066
14066
|
return !0;
|
|
14067
14067
|
}
|
|
14068
14068
|
return !1;
|
|
14069
14069
|
}
|
|
14070
|
-
function b(v,
|
|
14070
|
+
function b(v, h) {
|
|
14071
14071
|
if ((0, r.default)(v), !v || v.length >= 2083 || /[\s<>]/.test(v) || v.indexOf("mailto:") === 0)
|
|
14072
14072
|
return !1;
|
|
14073
|
-
|
|
14073
|
+
h = (0, u.default)(h, g);
|
|
14074
14074
|
var y = void 0, I = void 0, M = void 0, N = void 0, x = void 0, w = void 0, j = void 0, D = void 0;
|
|
14075
14075
|
if (j = v.split("#"), v = j.shift(), j = v.split("?"), v = j.shift(), j = v.split("://"), j.length > 1) {
|
|
14076
|
-
if (y = j.shift(),
|
|
14076
|
+
if (y = j.shift(), h.require_valid_protocol && h.protocols.indexOf(y) === -1)
|
|
14077
14077
|
return !1;
|
|
14078
14078
|
} else {
|
|
14079
|
-
if (
|
|
14079
|
+
if (h.require_protocol)
|
|
14080
14080
|
return !1;
|
|
14081
|
-
|
|
14081
|
+
h.allow_protocol_relative_urls && v.substr(0, 2) === "//" && (j[0] = v.substr(2));
|
|
14082
14082
|
}
|
|
14083
|
-
if (v = j.join("://"), j = v.split("/"), v = j.shift(), v === "" && !
|
|
14083
|
+
if (v = j.join("://"), j = v.split("/"), v = j.shift(), v === "" && !h.require_host)
|
|
14084
14084
|
return !0;
|
|
14085
14085
|
if (j = v.split("@"), j.length > 1 && (I = j.shift(), I.indexOf(":") >= 0 && I.split(":").length > 2))
|
|
14086
14086
|
return !1;
|
|
14087
14087
|
N = j.join("@"), w = null, D = null;
|
|
14088
14088
|
var k = N.match(p);
|
|
14089
|
-
return k ? (M = "", D = k[1], w = k[2] || null) : (j = N.split(":"), M = j.shift(), j.length && (w = j.join(":"))), !(w !== null && (x = parseInt(w, 10), !/^[0-9]+$/.test(w) || x <= 0 || x > 65535) || !(0, a.default)(M) && !(0, s.default)(M,
|
|
14089
|
+
return k ? (M = "", D = k[1], w = k[2] || null) : (j = N.split(":"), M = j.shift(), j.length && (w = j.join(":"))), !(w !== null && (x = parseInt(w, 10), !/^[0-9]+$/.test(w) || x <= 0 || x > 65535) || !(0, a.default)(M) && !(0, s.default)(M, h) && (!D || !(0, a.default)(D, 6)) && M !== "localhost" || (M = M || D, h.host_whitelist && !A(M, h.host_whitelist)) || h.host_blacklist && A(M, h.host_blacklist));
|
|
14090
14090
|
}
|
|
14091
14091
|
t.exports = e.default;
|
|
14092
14092
|
})(ia, ia.exports);
|
|
@@ -14340,8 +14340,8 @@ var M4 = ha.exports, Aa = { exports: {} };
|
|
|
14340
14340
|
var s = /^(?:[-+]?(?:0|[1-9][0-9]*))$/, o = /^[-+]?[0-9]+$/;
|
|
14341
14341
|
function a(c, u) {
|
|
14342
14342
|
(0, r.default)(c), u = u || {};
|
|
14343
|
-
var d = u.hasOwnProperty("allow_leading_zeroes") && !u.allow_leading_zeroes ? s : o, g = !u.hasOwnProperty("min") || c >= u.min, p = !u.hasOwnProperty("max") || c <= u.max, m = !u.hasOwnProperty("lt") || c < u.lt,
|
|
14344
|
-
return d.test(c) && g && p && m &&
|
|
14343
|
+
var d = u.hasOwnProperty("allow_leading_zeroes") && !u.allow_leading_zeroes ? s : o, g = !u.hasOwnProperty("min") || c >= u.min, p = !u.hasOwnProperty("max") || c <= u.max, m = !u.hasOwnProperty("lt") || c < u.lt, A = !u.hasOwnProperty("gt") || c > u.gt;
|
|
14344
|
+
return d.test(c) && g && p && m && A;
|
|
14345
14345
|
}
|
|
14346
14346
|
t.exports = e.default;
|
|
14347
14347
|
})(Aa, Aa.exports);
|
|
@@ -14651,8 +14651,8 @@ var R4 = Pa.exports, Ta = { exports: {} };
|
|
|
14651
14651
|
function o(a) {
|
|
14652
14652
|
if ((0, r.default)(a), !s.test(a))
|
|
14653
14653
|
return !1;
|
|
14654
|
-
for (var c = a.replace(/[A-Z]/g, function(
|
|
14655
|
-
return parseInt(
|
|
14654
|
+
for (var c = a.replace(/[A-Z]/g, function(A) {
|
|
14655
|
+
return parseInt(A, 36);
|
|
14656
14656
|
}), u = 0, d = void 0, g = void 0, p = !0, m = c.length - 2; m >= 0; m--)
|
|
14657
14657
|
d = c.substring(m, m + 1), g = parseInt(d, 10), p ? (g *= 2, g >= 10 ? u += g + 1 : u += g) : u += g, p = !p;
|
|
14658
14658
|
return parseInt(a.substr(a.length - 1), 10) === (1e4 - u) % 10;
|
|
@@ -14709,19 +14709,19 @@ var U4 = za.exports, Oa = { exports: {} };
|
|
|
14709
14709
|
var u = s;
|
|
14710
14710
|
if (u = c.require_hyphen ? u.replace("?", "") : u, u = c.case_sensitive ? new RegExp(u) : new RegExp(u, "i"), !u.test(a))
|
|
14711
14711
|
return !1;
|
|
14712
|
-
var d = a.replace("-", ""), g = 8, p = 0, m = !0,
|
|
14712
|
+
var d = a.replace("-", ""), g = 8, p = 0, m = !0, A = !1, b = void 0;
|
|
14713
14713
|
try {
|
|
14714
|
-
for (var v = d[Symbol.iterator](),
|
|
14715
|
-
var y =
|
|
14714
|
+
for (var v = d[Symbol.iterator](), h; !(m = (h = v.next()).done); m = !0) {
|
|
14715
|
+
var y = h.value, I = y.toUpperCase() === "X" ? 10 : +y;
|
|
14716
14716
|
p += I * g, --g;
|
|
14717
14717
|
}
|
|
14718
14718
|
} catch (M) {
|
|
14719
|
-
|
|
14719
|
+
A = !0, b = M;
|
|
14720
14720
|
} finally {
|
|
14721
14721
|
try {
|
|
14722
14722
|
!m && v.return && v.return();
|
|
14723
14723
|
} finally {
|
|
14724
|
-
if (
|
|
14724
|
+
if (A)
|
|
14725
14725
|
throw b;
|
|
14726
14726
|
}
|
|
14727
14727
|
}
|
|
@@ -14804,7 +14804,7 @@ var W4 = Ba.exports, Ra = { exports: {} };
|
|
|
14804
14804
|
return d && d.__esModule ? d : { default: d };
|
|
14805
14805
|
}
|
|
14806
14806
|
function a(d) {
|
|
14807
|
-
var g = "(\\" + d.symbol.replace(/\./g, "\\.") + ")" + (d.require_symbol ? "" : "?"), p = "-?", m = "[1-9]\\d*",
|
|
14807
|
+
var g = "(\\" + d.symbol.replace(/\./g, "\\.") + ")" + (d.require_symbol ? "" : "?"), p = "-?", m = "[1-9]\\d*", A = "[1-9]\\d{0,2}(\\" + d.thousands_separator + "\\d{3})*", b = ["0", m, A], v = "(" + b.join("|") + ")?", h = "(\\" + d.decimal_separator + "\\d{2})?", y = v + h;
|
|
14808
14808
|
return d.allow_negatives && !d.parens_for_negatives && (d.negative_sign_after_digits ? y += p : d.negative_sign_before_digits && (y = p + y)), d.allow_negative_sign_placeholder ? y = "( (?!\\-))?" + y : d.allow_space_after_symbol ? y = " ?" + y : d.allow_space_after_digits && (y += "( (?!$))?"), d.symbol_after_digits ? y += g : y = g + y, d.allow_negatives && (d.parens_for_negatives ? y = "(\\(" + y + "\\)|" + y + ")" : d.negative_sign_before_digits || d.negative_sign_after_digits || (y = p + y)), new RegExp("^(?!-? )(?=.*\\d)" + y + "$");
|
|
14809
14809
|
}
|
|
14810
14810
|
var c = {
|
|
@@ -15053,30 +15053,30 @@ var tj = Xa.exports, qa = { exports: {} };
|
|
|
15053
15053
|
function g(p, m) {
|
|
15054
15054
|
if (m = (0, s.default)(m, a), !(0, r.default)(p))
|
|
15055
15055
|
return !1;
|
|
15056
|
-
var
|
|
15057
|
-
if (
|
|
15058
|
-
if (m.gmail_remove_subaddress && (
|
|
15056
|
+
var A = p.split("@"), b = A.pop(), v = A.join("@"), h = [v, b];
|
|
15057
|
+
if (h[1] = h[1].toLowerCase(), h[1] === "gmail.com" || h[1] === "googlemail.com") {
|
|
15058
|
+
if (m.gmail_remove_subaddress && (h[0] = h[0].split("+")[0]), m.gmail_remove_dots && (h[0] = h[0].replace(/\./g, "")), !h[0].length)
|
|
15059
15059
|
return !1;
|
|
15060
|
-
(m.all_lowercase || m.gmail_lowercase) && (
|
|
15061
|
-
} else if (~c.indexOf(
|
|
15062
|
-
if (m.icloud_remove_subaddress && (
|
|
15060
|
+
(m.all_lowercase || m.gmail_lowercase) && (h[0] = h[0].toLowerCase()), h[1] = m.gmail_convert_googlemaildotcom ? "gmail.com" : h[1];
|
|
15061
|
+
} else if (~c.indexOf(h[1])) {
|
|
15062
|
+
if (m.icloud_remove_subaddress && (h[0] = h[0].split("+")[0]), !h[0].length)
|
|
15063
15063
|
return !1;
|
|
15064
|
-
(m.all_lowercase || m.icloud_lowercase) && (
|
|
15065
|
-
} else if (~u.indexOf(
|
|
15066
|
-
if (m.outlookdotcom_remove_subaddress && (
|
|
15064
|
+
(m.all_lowercase || m.icloud_lowercase) && (h[0] = h[0].toLowerCase());
|
|
15065
|
+
} else if (~u.indexOf(h[1])) {
|
|
15066
|
+
if (m.outlookdotcom_remove_subaddress && (h[0] = h[0].split("+")[0]), !h[0].length)
|
|
15067
15067
|
return !1;
|
|
15068
|
-
(m.all_lowercase || m.outlookdotcom_lowercase) && (
|
|
15069
|
-
} else if (~d.indexOf(
|
|
15068
|
+
(m.all_lowercase || m.outlookdotcom_lowercase) && (h[0] = h[0].toLowerCase());
|
|
15069
|
+
} else if (~d.indexOf(h[1])) {
|
|
15070
15070
|
if (m.yahoo_remove_subaddress) {
|
|
15071
|
-
var y =
|
|
15072
|
-
|
|
15071
|
+
var y = h[0].split("-");
|
|
15072
|
+
h[0] = y.length > 1 ? y.slice(0, -1).join("-") : y[0];
|
|
15073
15073
|
}
|
|
15074
|
-
if (!
|
|
15074
|
+
if (!h[0].length)
|
|
15075
15075
|
return !1;
|
|
15076
|
-
(m.all_lowercase || m.yahoo_lowercase) && (
|
|
15076
|
+
(m.all_lowercase || m.yahoo_lowercase) && (h[0] = h[0].toLowerCase());
|
|
15077
15077
|
} else
|
|
15078
|
-
m.all_lowercase && (
|
|
15079
|
-
return
|
|
15078
|
+
m.all_lowercase && (h[0] = h[0].toLowerCase());
|
|
15079
|
+
return h.join("@");
|
|
15080
15080
|
}
|
|
15081
15081
|
t.exports = e.default;
|
|
15082
15082
|
})(qa, qa.exports);
|
|
@@ -15085,7 +15085,7 @@ var nj = qa.exports;
|
|
|
15085
15085
|
Object.defineProperty(e, "__esModule", {
|
|
15086
15086
|
value: !0
|
|
15087
15087
|
});
|
|
15088
|
-
var n = Co, r = E(n), i = Pd, s = E(i), o = qx, a = E(o), c = Kx, u = E(c), d = _x, g = E(d), p = $x, m = E(p),
|
|
15088
|
+
var n = Co, r = E(n), i = Pd, s = E(i), o = qx, a = E(o), c = Kx, u = E(c), d = _x, g = E(d), p = $x, m = E(p), A = e4, b = E(A), v = zd, h = E(v), y = t4, I = E(y), M = n4, N = E(M), x = Od, w = E(x), j = Eo, D = E(j), k = r4, B = E(k), R = i4, Z = E(R), W = s4, G = E(W), ee = a4, De = E(ee), ue = o4, ze = E(ue), q = l4, te = E(q), Q = c4, F = E(Q), Be = An, pe = E(Be), de = vn, re = E(de), Ce = y4, ut = E(Ce), bn = I4, Qt = E(bn), jt = M4, yn = E(jt), Vt = x4, wt = E(Vt), ki = j4, Ei = E(ki), Nt = w4, dt = E(Nt), Re = Bd, Li = E(Re), In = N4, Yd = E(In), Xd = S4, qd = E(Xd), Kd = D4, _d = E(Kd), $d = C4, e0 = E($d), t0 = k4, n0 = E(t0), r0 = E4, i0 = E(r0), s0 = L4, a0 = E(s0), o0 = Td, l0 = E(o0), c0 = P4, u0 = E(c0), d0 = T4, f0 = E(d0), g0 = z4, m0 = E(g0), p0 = O4, h0 = E(p0), A0 = B4, v0 = E(A0), b0 = R4, y0 = E(b0), I0 = H4, M0 = E(I0), x0 = U4, j0 = E(x0), w0 = Z4, N0 = E(w0), S0 = W4, D0 = E(S0), C0 = G4, k0 = E(C0), E0 = _n, L0 = E(E0), P0 = Y4, T0 = E(P0), z0 = X4, O0 = E(z0), B0 = Rd, R0 = E(B0), H0 = Hd, U0 = E(H0), Z0 = q4, W0 = E(Z0), G0 = K4, F0 = E(G0), Q0 = _4, V0 = E(Q0), J0 = $4, Y0 = E(J0), X0 = ej, q0 = E(X0), K0 = Ud, _0 = E(K0), $0 = tj, ef = E($0), tf = nj, nf = E(tf), rf = ko, sf = E(rf);
|
|
15089
15089
|
function E(er) {
|
|
15090
15090
|
return er && er.__esModule ? er : { default: er };
|
|
15091
15091
|
}
|
|
@@ -15098,7 +15098,7 @@ var nj = qa.exports;
|
|
|
15098
15098
|
equals: g.default,
|
|
15099
15099
|
contains: m.default,
|
|
15100
15100
|
matches: b.default,
|
|
15101
|
-
isEmail:
|
|
15101
|
+
isEmail: h.default,
|
|
15102
15102
|
isURL: I.default,
|
|
15103
15103
|
isMACAddress: N.default,
|
|
15104
15104
|
isIP: w.default,
|
|
@@ -15199,7 +15199,7 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15199
15199
|
updateSetting: o,
|
|
15200
15200
|
focusRef: a,
|
|
15201
15201
|
handleEditingChange: c
|
|
15202
|
-
} = Te(), [u, d] = C({}), [g, p] = le(e, ["facebook", "twitter"]), [m,
|
|
15202
|
+
} = Te(), [u, d] = C({}), [g, p] = le(e, ["facebook", "twitter"]), [m, A] = C(g ? ij(g) : ""), [b, v] = C(p ? sj(p) : ""), h = /* @__PURE__ */ l.jsx(
|
|
15203
15203
|
ce,
|
|
15204
15204
|
{
|
|
15205
15205
|
values: [
|
|
@@ -15230,12 +15230,12 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15230
15230
|
onBlur: (I) => {
|
|
15231
15231
|
try {
|
|
15232
15232
|
const M = Jl(I.target.value);
|
|
15233
|
-
o("facebook", aj(M)),
|
|
15233
|
+
o("facebook", aj(M)), A(M);
|
|
15234
15234
|
} catch (M) {
|
|
15235
15235
|
M instanceof Error && d({ ...u, facebook: M.message });
|
|
15236
15236
|
}
|
|
15237
15237
|
},
|
|
15238
|
-
onChange: (I) =>
|
|
15238
|
+
onChange: (I) => A(I.target.value),
|
|
15239
15239
|
onKeyDown: () => {
|
|
15240
15240
|
u.facebook && d({ ...u, facebook: "" });
|
|
15241
15241
|
}
|
|
@@ -15290,7 +15290,7 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15290
15290
|
}
|
|
15291
15291
|
d(I), Object.keys(I).length === 0 && i();
|
|
15292
15292
|
},
|
|
15293
|
-
children: n ? y :
|
|
15293
|
+
children: n ? y : h
|
|
15294
15294
|
}
|
|
15295
15295
|
);
|
|
15296
15296
|
}, cj = ne(lj, "Social accounts"), uj = [
|
|
@@ -15580,11 +15580,11 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15580
15580
|
handleCancel: s,
|
|
15581
15581
|
updateSetting: o,
|
|
15582
15582
|
handleEditingChange: a
|
|
15583
|
-
} = Te(), [c] = le(e, ["timezone"]), u = uj.map((
|
|
15584
|
-
value:
|
|
15585
|
-
label:
|
|
15586
|
-
})), d = u.find((
|
|
15587
|
-
o("timezone",
|
|
15583
|
+
} = Te(), [c] = le(e, ["timezone"]), u = uj.map((A) => ({
|
|
15584
|
+
value: A.name,
|
|
15585
|
+
label: A.label
|
|
15586
|
+
})), d = u.find((A) => A.value === c), g = (A) => {
|
|
15587
|
+
o("timezone", A || null);
|
|
15588
15588
|
}, p = /* @__PURE__ */ l.jsx(ce, { values: [
|
|
15589
15589
|
{
|
|
15590
15590
|
key: "site-timezone",
|
|
@@ -15598,11 +15598,11 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15598
15598
|
{
|
|
15599
15599
|
hint: /* @__PURE__ */ l.jsx(Xl, { timezone: c }),
|
|
15600
15600
|
options: u,
|
|
15601
|
-
selectedOption: u.find((
|
|
15601
|
+
selectedOption: u.find((A) => A.value === c),
|
|
15602
15602
|
testId: "timezone-select",
|
|
15603
15603
|
title: "Site timezone",
|
|
15604
15604
|
isSearchable: !0,
|
|
15605
|
-
onSelect: (
|
|
15605
|
+
onSelect: (A) => g(A == null ? void 0 : A.value)
|
|
15606
15606
|
}
|
|
15607
15607
|
) });
|
|
15608
15608
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -15652,7 +15652,7 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15652
15652
|
}
|
|
15653
15653
|
]
|
|
15654
15654
|
}
|
|
15655
|
-
),
|
|
15655
|
+
), A = /* @__PURE__ */ l.jsxs(ce, { children: [
|
|
15656
15656
|
/* @__PURE__ */ l.jsx(
|
|
15657
15657
|
Ne,
|
|
15658
15658
|
{
|
|
@@ -15688,7 +15688,7 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15688
15688
|
onCancel: o,
|
|
15689
15689
|
onEditingChange: c,
|
|
15690
15690
|
onSave: s,
|
|
15691
|
-
children: n ?
|
|
15691
|
+
children: n ? A : m
|
|
15692
15692
|
}
|
|
15693
15693
|
);
|
|
15694
15694
|
}, mj = ne(gj, "Title & description"), pj = (t) => /* @__PURE__ */ f("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...t }, /* @__PURE__ */ f("g", null, /* @__PURE__ */ f("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" }))), hj = ({ keywords: t }) => {
|
|
@@ -15704,10 +15704,10 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15704
15704
|
} = Te(), u = Ze(), { mutateAsync: d } = Ld(), g = vo(), [
|
|
15705
15705
|
p,
|
|
15706
15706
|
m,
|
|
15707
|
-
|
|
15707
|
+
A,
|
|
15708
15708
|
b,
|
|
15709
15709
|
v
|
|
15710
|
-
] = le(e, ["twitter_title", "twitter_description", "twitter_image", "title", "description"]),
|
|
15710
|
+
] = le(e, ["twitter_title", "twitter_description", "twitter_image", "title", "description"]), h = (w) => {
|
|
15711
15711
|
a("twitter_title", w.target.value);
|
|
15712
15712
|
}, y = (w) => {
|
|
15713
15713
|
a("twitter_description", w.target.value);
|
|
@@ -15736,11 +15736,11 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15736
15736
|
fileUploadClassName: "flex cursor-pointer items-center justify-center rounded rounded-b-none border border-grey-100 border-b-0 bg-grey-75 p-3 text-sm font-semibold text-grey-800 hover:text-black dark:border-grey-900",
|
|
15737
15737
|
height: "300px",
|
|
15738
15738
|
id: "twitter-image",
|
|
15739
|
-
imageURL:
|
|
15739
|
+
imageURL: A,
|
|
15740
15740
|
pintura: {
|
|
15741
15741
|
isEnabled: g.isEnabled,
|
|
15742
15742
|
openEditor: async () => g.openEditor({
|
|
15743
|
-
image:
|
|
15743
|
+
image: A || "",
|
|
15744
15744
|
handleSave: async (w) => {
|
|
15745
15745
|
const j = Wr(await d({ file: w }));
|
|
15746
15746
|
a("twitter_image", j);
|
|
@@ -15760,7 +15760,7 @@ const ij = (t) => `https://www.facebook.com/${t}`, sj = (t) => `https://twitter.
|
|
|
15760
15760
|
placeholder: b,
|
|
15761
15761
|
title: "X title",
|
|
15762
15762
|
value: p,
|
|
15763
|
-
onChange:
|
|
15763
|
+
onChange: h
|
|
15764
15764
|
}
|
|
15765
15765
|
),
|
|
15766
15766
|
/* @__PURE__ */ l.jsx(
|
|
@@ -15863,11 +15863,11 @@ function xj(t) {
|
|
|
15863
15863
|
return Sn(t, "Owner")[0];
|
|
15864
15864
|
}
|
|
15865
15865
|
const jj = () => {
|
|
15866
|
-
const { currentUser: t } = je(), { data: { users: e, meta: n, isEnd: r } = { users: [] }, isLoading: i, fetchNextPage: s } = ab(), { data: { invites: o } = { invites: [] }, isLoading: a } = vj(), { data: { roles: c } = {}, isLoading: u } = Mj(), d = ie(() => xj(e), [e]), g = ie(() => Sn(e, "Administrator"), [e]), p = ie(() => Sn(e, "Editor"), [e]), m = ie(() => Sn(e, "Author"), [e]),
|
|
15867
|
-
let
|
|
15866
|
+
const { currentUser: t } = je(), { data: { users: e, meta: n, isEnd: r } = { users: [] }, isLoading: i, fetchNextPage: s } = ab(), { data: { invites: o } = { invites: [] }, isLoading: a } = vj(), { data: { roles: c } = {}, isLoading: u } = Mj(), d = ie(() => xj(e), [e]), g = ie(() => Sn(e, "Administrator"), [e]), p = ie(() => Sn(e, "Editor"), [e]), m = ie(() => Sn(e, "Author"), [e]), A = ie(() => Sn(e, "Contributor"), [e]), b = ie(() => o.map((v) => {
|
|
15867
|
+
let h = c == null ? void 0 : c.find((y) => v.role_id === y.id);
|
|
15868
15868
|
return {
|
|
15869
15869
|
...v,
|
|
15870
|
-
role:
|
|
15870
|
+
role: h == null ? void 0 : h.name
|
|
15871
15871
|
};
|
|
15872
15872
|
}), [o, c]);
|
|
15873
15873
|
return {
|
|
@@ -15877,7 +15877,7 @@ const jj = () => {
|
|
|
15877
15877
|
adminUsers: g,
|
|
15878
15878
|
editorUsers: p,
|
|
15879
15879
|
authorUsers: m,
|
|
15880
|
-
contributorUsers:
|
|
15880
|
+
contributorUsers: A,
|
|
15881
15881
|
currentUser: t,
|
|
15882
15882
|
invites: b,
|
|
15883
15883
|
isLoading: i || a || u,
|
|
@@ -16012,9 +16012,9 @@ const jj = () => {
|
|
|
16012
16012
|
fetchNextPage: g
|
|
16013
16013
|
} = jj(), { updateRoute: p } = X(), m = () => {
|
|
16014
16014
|
p("staff/invite");
|
|
16015
|
-
},
|
|
16015
|
+
}, A = /* @__PURE__ */ l.jsx(U, { color: "green", label: "Invite people", link: !0, linkWithPadding: !0, onClick: () => {
|
|
16016
16016
|
m();
|
|
16017
|
-
} }), [b, v] = C("users-admins"),
|
|
16017
|
+
} }), [b, v] = C("users-admins"), h = [
|
|
16018
16018
|
{
|
|
16019
16019
|
id: "users-admins",
|
|
16020
16020
|
title: "Administrators",
|
|
@@ -16044,7 +16044,7 @@ const jj = () => {
|
|
|
16044
16044
|
return /* @__PURE__ */ l.jsxs(
|
|
16045
16045
|
$,
|
|
16046
16046
|
{
|
|
16047
|
-
customButtons:
|
|
16047
|
+
customButtons: A,
|
|
16048
16048
|
highlightOnModalClose: e,
|
|
16049
16049
|
keywords: t,
|
|
16050
16050
|
navid: "staff",
|
|
@@ -16052,7 +16052,7 @@ const jj = () => {
|
|
|
16052
16052
|
title: "Staff",
|
|
16053
16053
|
children: [
|
|
16054
16054
|
/* @__PURE__ */ l.jsx(wj, { user: i }),
|
|
16055
|
-
/* @__PURE__ */ l.jsx(Zt, { selectedTab: b, tabs:
|
|
16055
|
+
/* @__PURE__ */ l.jsx(Zt, { selectedTab: b, tabs: h, onTabChange: v }),
|
|
16056
16056
|
d && /* @__PURE__ */ l.jsx(
|
|
16057
16057
|
U,
|
|
16058
16058
|
{
|
|
@@ -16194,7 +16194,7 @@ const ns = [
|
|
|
16194
16194
|
"default_content_visibility",
|
|
16195
16195
|
"default_content_visibility_tiers",
|
|
16196
16196
|
"comments_enabled"
|
|
16197
|
-
]), p = Ar(ns, c), m = Ar(rs, u),
|
|
16197
|
+
]), p = Ar(ns, c), m = Ar(rs, u), A = Ar(is, g), { data: { tiers: b } = {} } = Gd(), v = [
|
|
16198
16198
|
{
|
|
16199
16199
|
label: "Active Tiers",
|
|
16200
16200
|
options: (b == null ? void 0 : b.filter(({ active: x }) => x).map((x) => ({ value: x.id, label: x.name }))) || []
|
|
@@ -16203,7 +16203,7 @@ const ns = [
|
|
|
16203
16203
|
label: "Archived Tiers",
|
|
16204
16204
|
options: (b == null ? void 0 : b.filter(({ active: x }) => !x).map((x) => ({ value: x.id, label: x.name }))) || []
|
|
16205
16205
|
}
|
|
16206
|
-
],
|
|
16206
|
+
], h = JSON.parse(d || "[]"), y = v.flatMap((x) => x.options).filter((x) => h.includes(x.value)), I = (x) => {
|
|
16207
16207
|
const w = x.map((j) => j.value);
|
|
16208
16208
|
o("default_content_visibility_tiers", JSON.stringify(w));
|
|
16209
16209
|
}, M = /* @__PURE__ */ l.jsx(
|
|
@@ -16223,7 +16223,7 @@ const ns = [
|
|
|
16223
16223
|
{
|
|
16224
16224
|
heading: "Commenting",
|
|
16225
16225
|
key: "commenting",
|
|
16226
|
-
value:
|
|
16226
|
+
value: A
|
|
16227
16227
|
}
|
|
16228
16228
|
]
|
|
16229
16229
|
}
|
|
@@ -16316,17 +16316,17 @@ const ns = [
|
|
|
16316
16316
|
"email_track_clicks",
|
|
16317
16317
|
"members_track_sources",
|
|
16318
16318
|
"outbound_link_tagging"
|
|
16319
|
-
]), p = (v,
|
|
16320
|
-
o(v,
|
|
16319
|
+
]), p = (v, h) => {
|
|
16320
|
+
o(v, h.target.checked), a(!0);
|
|
16321
16321
|
}, { refetch: m } = Tj({
|
|
16322
16322
|
searchParams: {
|
|
16323
16323
|
limit: "1000"
|
|
16324
16324
|
},
|
|
16325
16325
|
enabled: !1
|
|
16326
|
-
}),
|
|
16326
|
+
}), A = async () => {
|
|
16327
16327
|
const { data: v } = await m();
|
|
16328
16328
|
if (v) {
|
|
16329
|
-
const
|
|
16329
|
+
const h = new Blob([v], { type: "text/csv" }), y = window.URL.createObjectURL(h), I = document.createElement("a");
|
|
16330
16330
|
I.setAttribute("hidden", ""), I.setAttribute("href", y), I.setAttribute("download", `post-analytics.${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.csv`), document.body.appendChild(I), I.click(), document.body.removeChild(I);
|
|
16331
16331
|
}
|
|
16332
16332
|
}, b = /* @__PURE__ */ l.jsxs(ce, { columns: 2, children: [
|
|
@@ -16388,7 +16388,7 @@ const ns = [
|
|
|
16388
16388
|
children: [
|
|
16389
16389
|
b,
|
|
16390
16390
|
/* @__PURE__ */ l.jsxs("div", { className: "items-center-mt-1 flex justify-between", children: [
|
|
16391
|
-
/* @__PURE__ */ l.jsx(U, { color: "green", label: "Export", link: !0, linkWithPadding: !0, onClick:
|
|
16391
|
+
/* @__PURE__ */ l.jsx(U, { color: "green", label: "Export", link: !0, linkWithPadding: !0, onClick: A }),
|
|
16392
16392
|
/* @__PURE__ */ l.jsx("a", { className: "text-sm text-green", href: "https://ghost.org/help/post-analytics/", rel: "noopener noreferrer", target: "_blank", children: "Learn about analytics" })
|
|
16393
16393
|
] })
|
|
16394
16394
|
]
|
|
@@ -16536,9 +16536,9 @@ const ns = [
|
|
|
16536
16536
|
onChange: g,
|
|
16537
16537
|
onFocus: p,
|
|
16538
16538
|
onBlur: m,
|
|
16539
|
-
...
|
|
16539
|
+
...A
|
|
16540
16540
|
}) => {
|
|
16541
|
-
const b = Rt(), { setFocusState: v } = Rn(),
|
|
16541
|
+
const b = Rt(), { setFocusState: v } = Rn(), h = (M) => {
|
|
16542
16542
|
v(!0), p == null || p(M);
|
|
16543
16543
|
}, y = (M) => {
|
|
16544
16544
|
v(!1), m == null || m(M);
|
|
@@ -16580,8 +16580,8 @@ const ns = [
|
|
|
16580
16580
|
value: n,
|
|
16581
16581
|
onBlur: y,
|
|
16582
16582
|
onChange: g,
|
|
16583
|
-
onFocus:
|
|
16584
|
-
...
|
|
16583
|
+
onFocus: h,
|
|
16584
|
+
...A
|
|
16585
16585
|
}
|
|
16586
16586
|
),
|
|
16587
16587
|
e && /* @__PURE__ */ l.jsx(we, { className: "order-1 dark:!text-grey-300", grey: !1, htmlFor: b, useLabelTag: !0, children: e }),
|
|
@@ -16810,7 +16810,7 @@ const ns = [
|
|
|
16810
16810
|
}), v;
|
|
16811
16811
|
}
|
|
16812
16812
|
});
|
|
16813
|
-
let
|
|
16813
|
+
let A = {
|
|
16814
16814
|
label: "Delete",
|
|
16815
16815
|
link: !0,
|
|
16816
16816
|
color: "red",
|
|
@@ -16850,7 +16850,7 @@ const ns = [
|
|
|
16850
16850
|
backDropClick: !1,
|
|
16851
16851
|
buttonsDisabled: m.disabled,
|
|
16852
16852
|
cancelLabel: "Cancel",
|
|
16853
|
-
leftButtonProps:
|
|
16853
|
+
leftButtonProps: A,
|
|
16854
16854
|
okColor: m.color,
|
|
16855
16855
|
okLabel: m.label || "Save & close",
|
|
16856
16856
|
size: "sm",
|
|
@@ -16987,10 +16987,10 @@ const ns = [
|
|
|
16987
16987
|
};
|
|
16988
16988
|
},
|
|
16989
16989
|
keepPreviousData: !0
|
|
16990
|
-
}), { data: { stats:
|
|
16990
|
+
}), { data: { stats: A } = {}, isLoading: b } = sw({}), v = {
|
|
16991
16991
|
hasMore: !!p,
|
|
16992
16992
|
loadMore: m
|
|
16993
|
-
}, [
|
|
16993
|
+
}, [h, y] = C("your-recommendations"), I = [
|
|
16994
16994
|
{
|
|
16995
16995
|
id: "your-recommendations",
|
|
16996
16996
|
title: "Your recommendations",
|
|
@@ -17001,7 +17001,7 @@ const ns = [
|
|
|
17001
17001
|
id: "recommending-you",
|
|
17002
17002
|
title: "Recommending you",
|
|
17003
17003
|
counter: (D = d == null ? void 0 : d.pagination) == null ? void 0 : D.total,
|
|
17004
|
-
contents: /* @__PURE__ */ l.jsx(Fj, { incomingRecommendations: u ?? [], isLoading: g || b, showMore: v, stats:
|
|
17004
|
+
contents: /* @__PURE__ */ l.jsx(Fj, { incomingRecommendations: u ?? [], isLoading: g || b, showMore: v, stats: A ?? [] })
|
|
17005
17005
|
}
|
|
17006
17006
|
], M = /* @__PURE__ */ l.jsx(l.Fragment, { children: "Recommend any publication that your audience will find valuable, and find out when others are recommending you." }), { updateRoute: N } = X(), x = () => {
|
|
17007
17007
|
N("recommendations/add");
|
|
@@ -17024,7 +17024,7 @@ const ns = [
|
|
|
17024
17024
|
/* @__PURE__ */ l.jsx("div", { className: "flex justify-center rounded border border-green px-4 py-2 md:hidden", children: /* @__PURE__ */ l.jsx(U, { color: "green", label: "Add recommendation", link: !0, onClick: () => {
|
|
17025
17025
|
x();
|
|
17026
17026
|
} }) }),
|
|
17027
|
-
/* @__PURE__ */ l.jsx(Zt, { selectedTab:
|
|
17027
|
+
/* @__PURE__ */ l.jsx(Zt, { selectedTab: h, tabs: I, onTabChange: y })
|
|
17028
17028
|
]
|
|
17029
17029
|
}
|
|
17030
17030
|
);
|
|
@@ -17256,7 +17256,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17256
17256
|
t,
|
|
17257
17257
|
"% discount"
|
|
17258
17258
|
] }) : null, l3 = ({ tier: t, isFreeTier: e }) => {
|
|
17259
|
-
const [n, r] = C(!1), { localSettings: i } = Te(), s = le(i, ["title"]), o = (t == null ? void 0 : t.name) || "", a = (t == null ? void 0 : t.description) || "", c = parseFloat((t == null ? void 0 : t.trial_days) || "0"), u = (t == null ? void 0 : t.currency) || "USD", d = u ? Ci(u) : "$", g = (t == null ? void 0 : t.benefits) || [], p = Bn((t == null ? void 0 : t.monthly_price) || 0), m = Bn((t == null ? void 0 : t.yearly_price) || 0),
|
|
17259
|
+
const [n, r] = C(!1), { localSettings: i } = Te(), s = le(i, ["title"]), o = (t == null ? void 0 : t.name) || "", a = (t == null ? void 0 : t.description) || "", c = parseFloat((t == null ? void 0 : t.trial_days) || "0"), u = (t == null ? void 0 : t.currency) || "USD", d = u ? Ci(u) : "$", g = (t == null ? void 0 : t.benefits) || [], p = Bn((t == null ? void 0 : t.monthly_price) || 0), m = Bn((t == null ? void 0 : t.yearly_price) || 0), A = t != null && t.monthly_price && (t != null && t.yearly_price) ? Math.ceil((p * 12 - m) / (p * 12) * 100) : 0;
|
|
17260
17260
|
return /* @__PURE__ */ l.jsxs("div", { "data-testid": "tier-preview", children: [
|
|
17261
17261
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-baseline justify-between", children: [
|
|
17262
17262
|
/* @__PURE__ */ l.jsx(we, { className: "pb-2", level: 6, grey: !0, children: e ? "Free membership preview" : "Tier preview" }),
|
|
@@ -17279,7 +17279,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17279
17279
|
] }),
|
|
17280
17280
|
/* @__PURE__ */ l.jsx(Vd, { trialDays: c })
|
|
17281
17281
|
] }),
|
|
17282
|
-
n &&
|
|
17282
|
+
n && A > 0 && /* @__PURE__ */ l.jsx(gw, { discount: A })
|
|
17283
17283
|
] }),
|
|
17284
17284
|
/* @__PURE__ */ l.jsx("div", { className: "flex-column flex w-full flex-1", children: /* @__PURE__ */ l.jsxs("div", { className: "flex-1", children: [
|
|
17285
17285
|
/* @__PURE__ */ l.jsx("div", { className: `mt-4 w-full text-[1.55rem] font-semibold leading-snug text-grey-900 ${!a && "opacity-30"}`, children: a || (e ? `Free preview of ${s}` : "Full access to premium content") }),
|
|
@@ -17332,7 +17332,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17332
17332
|
] })), pw = ({ keywords: t }) => {
|
|
17333
17333
|
const [e, n] = C("active-tiers"), { settings: r, config: i } = je(), { data: { tiers: s, meta: o, isEnd: a } = {}, fetchNextPage: c } = Gd(), u = kj(s || []), d = Ej(s || []), { updateRoute: g } = X(), p = () => {
|
|
17334
17334
|
g("stripe-connect");
|
|
17335
|
-
}, m = (v) => [...v].sort((
|
|
17335
|
+
}, m = (v) => [...v].sort((h, y) => (h.monthly_price ?? 0) - (y.monthly_price ?? 0)), A = [
|
|
17336
17336
|
{
|
|
17337
17337
|
id: "active-tiers",
|
|
17338
17338
|
title: "Active",
|
|
@@ -17345,7 +17345,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17345
17345
|
}
|
|
17346
17346
|
];
|
|
17347
17347
|
let b;
|
|
17348
|
-
return vr(r, i) ? b = /* @__PURE__ */ l.jsx(Zt, { selectedTab: e, tabs:
|
|
17348
|
+
return vr(r, i) ? b = /* @__PURE__ */ l.jsx(Zt, { selectedTab: e, tabs: A, onTabChange: n }) : b = /* @__PURE__ */ l.jsx(as, { tab: "free-tier", tiers: u.filter((v) => v.type === "free") }), /* @__PURE__ */ l.jsxs(
|
|
17349
17349
|
$,
|
|
17350
17350
|
{
|
|
17351
17351
|
customButtons: vr(r, i) ? /* @__PURE__ */ l.jsx($l, { className: "hidden tablet:!visible tablet:!block", onClick: p }) : /* @__PURE__ */ l.jsx(ql, { className: "hidden tablet:!visible tablet:!block", onClick: p }),
|
|
@@ -17409,17 +17409,17 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17409
17409
|
onValidate: () => ({
|
|
17410
17410
|
donationsSuggestedAmount: dw(b, m, { maxAmount: vw })
|
|
17411
17411
|
})
|
|
17412
|
-
}), [m = "USD",
|
|
17412
|
+
}), [m = "USD", A = "0"] = le(
|
|
17413
17413
|
e,
|
|
17414
17414
|
["donations_currency", "donations_suggested_amount"]
|
|
17415
|
-
), b = parseInt(
|
|
17415
|
+
), b = parseInt(A), v = b / 100, h = `${n == null ? void 0 : n.url.replace(/\/$/, "")}/#/portal/support`;
|
|
17416
17416
|
O(() => {
|
|
17417
17417
|
g();
|
|
17418
17418
|
}, [m]);
|
|
17419
17419
|
const [y, I] = C(!1), M = () => {
|
|
17420
|
-
navigator.clipboard.writeText(
|
|
17420
|
+
navigator.clipboard.writeText(h), I(!0), setTimeout(() => I(!1), 2e3);
|
|
17421
17421
|
}, N = () => {
|
|
17422
|
-
Lr(s === "unsaved", () => window.open(
|
|
17422
|
+
Lr(s === "unsaved", () => window.open(h, "_blank"));
|
|
17423
17423
|
}, x = /* @__PURE__ */ l.jsx(
|
|
17424
17424
|
ce,
|
|
17425
17425
|
{
|
|
@@ -17439,7 +17439,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17439
17439
|
/* @__PURE__ */ l.jsx("button", { className: "text-xs tracking-wide text-green", type: "button", onClick: N, children: "Preview" })
|
|
17440
17440
|
] }),
|
|
17441
17441
|
/* @__PURE__ */ l.jsxs("div", { className: "w-100 group relative -m-1 mt-0 overflow-hidden rounded p-1 hover:bg-grey-50 dark:hover:bg-grey-900", children: [
|
|
17442
|
-
|
|
17442
|
+
h,
|
|
17443
17443
|
/* @__PURE__ */ l.jsx("div", { className: "invisible absolute right-0 top-[50%] flex translate-y-[-50%] gap-1 bg-white pl-1 group-hover:visible dark:bg-black", children: /* @__PURE__ */ l.jsx(U, { color: "outline", label: y ? "Copied" : "Copy", size: "sm", onClick: M }) })
|
|
17444
17444
|
] })
|
|
17445
17445
|
] })
|
|
@@ -17468,7 +17468,7 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17468
17468
|
}
|
|
17469
17469
|
),
|
|
17470
17470
|
title: "Suggested amount",
|
|
17471
|
-
valueInCents: parseInt(
|
|
17471
|
+
valueInCents: parseInt(A),
|
|
17472
17472
|
onBlur: g,
|
|
17473
17473
|
onChange: (j) => r("donations_suggested_amount", j.toString()),
|
|
17474
17474
|
onKeyDown: () => p("donationsSuggestedAmount")
|
|
@@ -17598,20 +17598,20 @@ const Vd = ({ size: t = "md", trialDays: e }) => {
|
|
|
17598
17598
|
}, Ew = () => {
|
|
17599
17599
|
const { filter: t, setFilter: e } = dn(), { updateRoute: n } = X(), r = oe(null), { isAnyTextFieldFocused: i } = Rn(), s = $t("adminXOffers");
|
|
17600
17600
|
O(() => {
|
|
17601
|
-
const
|
|
17601
|
+
const A = (b) => {
|
|
17602
17602
|
b.key === "/" && !i && (b == null || b.preventDefault(), r.current && r.current.focus());
|
|
17603
17603
|
};
|
|
17604
|
-
return window.addEventListener("keydown",
|
|
17605
|
-
window.removeEventListener("keydown",
|
|
17604
|
+
return window.addEventListener("keydown", A), () => {
|
|
17605
|
+
window.removeEventListener("keydown", A);
|
|
17606
17606
|
};
|
|
17607
17607
|
}), O(() => {
|
|
17608
17608
|
r.current && r.current.focus();
|
|
17609
17609
|
}, []);
|
|
17610
|
-
const { settings: o, config: a } = je(), [c] = le(o, ["editor_default_email_recipients"]), u = (
|
|
17611
|
-
|
|
17612
|
-
}, d = $t("tipsAndDonations"), g = $t("recommendations"), p = (
|
|
17610
|
+
const { settings: o, config: a } = je(), [c] = le(o, ["editor_default_email_recipients"]), u = (A) => {
|
|
17611
|
+
A && (e(""), n(A.currentTarget.id));
|
|
17612
|
+
}, d = $t("tipsAndDonations"), g = $t("recommendations"), p = (A) => {
|
|
17613
17613
|
var b;
|
|
17614
|
-
e(
|
|
17614
|
+
e(A.target.value), A.target.value && ((b = document.getElementById("admin-x-root")) == null || b.scrollTo({ top: 0, left: 0 }));
|
|
17615
17615
|
}, m = S(
|
|
17616
17616
|
"no-scrollbar hidden pt-10 tablet:!visible tablet:!block tablet:h-[calc(100vh-8vmin-36px)] tablet:overflow-y-auto"
|
|
17617
17617
|
);
|
|
@@ -17894,4 +17894,4 @@ export {
|
|
|
17894
17894
|
Lr as y,
|
|
17895
17895
|
Zt as z
|
|
17896
17896
|
};
|
|
17897
|
-
//# sourceMappingURL=index-
|
|
17897
|
+
//# sourceMappingURL=index-81eb7730.mjs.map
|