@prismicio/editor-fields 0.4.77-alpha.bump-types-internal.1 → 0.4.77-alpha.bump-types-internal.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/dist/index.cjs.js +23 -23
- package/dist/index.es.js +830 -834
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -4684,8 +4684,8 @@ function oa(t) {
|
|
|
4684
4684
|
return "Path is required.";
|
|
4685
4685
|
if (A.startsWith("document"))
|
|
4686
4686
|
return Object.values(qe).includes(A) ? i.includes(A) ? void 0 : `\`${A}\` paths are not allowed by this filter.` : "Invalid `document.*` path.";
|
|
4687
|
-
const [v, y, w, ...
|
|
4688
|
-
return v === "my" && y &&
|
|
4687
|
+
const [v, y, w, ...C] = A.split(".");
|
|
4688
|
+
return v === "my" && y && C.length === 0 ? w === "uid" ? i.includes(qe.myDocUid) ? A.includes("[document-type]") ? "`[document-type]` is a placeholder and should be replaced with a valid document type (e.g. `my.blog_post.uid`)." : u.length && !u.includes(y) ? `\`${y}\` is not a valid document type on this repository.` : void 0 : `\`${qe.myDocUid}\` paths are not allowed by this filter.` : i.includes(qe.myDocField) ? y === "[document-type]" ? "`[document-type]` is a placeholder and should be replaced with a valid document type (e.g. `my.blog_post.title`)." : u.length && !u.includes(y) ? `\`${y}\` is not a valid document type on this repository.` : w === "[field]" ? "`[field]` is a placeholder and should be replaced with a valid field API ID." : w ? void 0 : "Field API ID is missing." : `\`${qe.myDocField}\` paths are not allowed by this filter.` : "Invalid path format. Valid paths must start with `document.` or `my.`.";
|
|
4689
4689
|
}
|
|
4690
4690
|
const u = Object.keys(((m = wb()) == null ? void 0 : m.types) ?? {}), d = i.filter(
|
|
4691
4691
|
(A) => ![qe.myDocUid, qe.myDocField].includes(A)
|
|
@@ -4785,7 +4785,7 @@ function zae(t) {
|
|
|
4785
4785
|
] });
|
|
4786
4786
|
}
|
|
4787
4787
|
function Qae(t) {
|
|
4788
|
-
var o, a, s, l, c, u, d, f, h, m, A, v, y, w,
|
|
4788
|
+
var o, a, s, l, c, u, d, f, h, m, A, v, y, w, C, g, b, S;
|
|
4789
4789
|
const { type: e, args: n, setArgs: r } = t;
|
|
4790
4790
|
function i(T, I) {
|
|
4791
4791
|
const R = [...n];
|
|
@@ -4990,7 +4990,7 @@ function Qae(t) {
|
|
|
4990
4990
|
zn,
|
|
4991
4991
|
{
|
|
4992
4992
|
type: "number",
|
|
4993
|
-
value: ((
|
|
4993
|
+
value: ((C = n[1]) == null ? void 0 : C.toString()) || "",
|
|
4994
4994
|
onValueChange: (T) => i(1, parseFloat(T)),
|
|
4995
4995
|
label: "Lower limit",
|
|
4996
4996
|
description: "The lower limit of the range.",
|
|
@@ -5042,7 +5042,7 @@ function Qae(t) {
|
|
|
5042
5042
|
/* @__PURE__ */ p(
|
|
5043
5043
|
oa,
|
|
5044
5044
|
{
|
|
5045
|
-
path: ((
|
|
5045
|
+
path: ((S = n[0]) == null ? void 0 : S.toString()) || "",
|
|
5046
5046
|
setPath: (T) => i(0, T),
|
|
5047
5047
|
description: "A path to a field or document metadata property.",
|
|
5048
5048
|
allowedPaths: [
|
|
@@ -5789,14 +5789,14 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5789
5789
|
var e = function(b) {
|
|
5790
5790
|
return function() {
|
|
5791
5791
|
return {
|
|
5792
|
-
meet: function(
|
|
5792
|
+
meet: function(S, T) {
|
|
5793
5793
|
return function(I) {
|
|
5794
|
-
return b.meet(
|
|
5794
|
+
return b.meet(S(I), T(I));
|
|
5795
5795
|
};
|
|
5796
5796
|
},
|
|
5797
|
-
join: function(
|
|
5797
|
+
join: function(S, T) {
|
|
5798
5798
|
return function(I) {
|
|
5799
|
-
return b.join(
|
|
5799
|
+
return b.join(S(I), T(I));
|
|
5800
5800
|
};
|
|
5801
5801
|
},
|
|
5802
5802
|
zero: function() {
|
|
@@ -5805,14 +5805,14 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5805
5805
|
one: function() {
|
|
5806
5806
|
return b.one;
|
|
5807
5807
|
},
|
|
5808
|
-
implies: function(
|
|
5808
|
+
implies: function(S, T) {
|
|
5809
5809
|
return function(I) {
|
|
5810
|
-
return b.implies(
|
|
5810
|
+
return b.implies(S(I), T(I));
|
|
5811
5811
|
};
|
|
5812
5812
|
},
|
|
5813
|
-
not: function(
|
|
5813
|
+
not: function(S) {
|
|
5814
5814
|
return function(T) {
|
|
5815
|
-
return b.not(
|
|
5815
|
+
return b.not(S(T));
|
|
5816
5816
|
};
|
|
5817
5817
|
}
|
|
5818
5818
|
};
|
|
@@ -5822,9 +5822,9 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5822
5822
|
var n = function(b) {
|
|
5823
5823
|
return function() {
|
|
5824
5824
|
return {
|
|
5825
|
-
concat: function(
|
|
5825
|
+
concat: function(S, T) {
|
|
5826
5826
|
return function(I) {
|
|
5827
|
-
return b.concat(
|
|
5827
|
+
return b.concat(S(I), T(I));
|
|
5828
5828
|
};
|
|
5829
5829
|
}
|
|
5830
5830
|
};
|
|
@@ -5832,10 +5832,10 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5832
5832
|
};
|
|
5833
5833
|
t.getSemigroup = n;
|
|
5834
5834
|
var r = function(b) {
|
|
5835
|
-
var
|
|
5835
|
+
var S = (0, t.getSemigroup)(b);
|
|
5836
5836
|
return function() {
|
|
5837
5837
|
return {
|
|
5838
|
-
concat:
|
|
5838
|
+
concat: S().concat,
|
|
5839
5839
|
empty: function() {
|
|
5840
5840
|
return b.empty;
|
|
5841
5841
|
}
|
|
@@ -5845,17 +5845,17 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5845
5845
|
t.getMonoid = r;
|
|
5846
5846
|
var i = function(b) {
|
|
5847
5847
|
return {
|
|
5848
|
-
add: function(
|
|
5848
|
+
add: function(S, T) {
|
|
5849
5849
|
return function(I) {
|
|
5850
|
-
return b.add(
|
|
5850
|
+
return b.add(S(I), T(I));
|
|
5851
5851
|
};
|
|
5852
5852
|
},
|
|
5853
5853
|
zero: function() {
|
|
5854
5854
|
return b.zero;
|
|
5855
5855
|
},
|
|
5856
|
-
mul: function(
|
|
5856
|
+
mul: function(S, T) {
|
|
5857
5857
|
return function(I) {
|
|
5858
|
-
return b.mul(
|
|
5858
|
+
return b.mul(S(I), T(I));
|
|
5859
5859
|
};
|
|
5860
5860
|
},
|
|
5861
5861
|
one: function() {
|
|
@@ -5865,12 +5865,12 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5865
5865
|
};
|
|
5866
5866
|
t.getSemiring = i;
|
|
5867
5867
|
var o = function(b) {
|
|
5868
|
-
var
|
|
5868
|
+
var S = (0, t.getSemiring)(b);
|
|
5869
5869
|
return {
|
|
5870
|
-
add:
|
|
5871
|
-
mul:
|
|
5872
|
-
one:
|
|
5873
|
-
zero:
|
|
5870
|
+
add: S.add,
|
|
5871
|
+
mul: S.mul,
|
|
5872
|
+
one: S.one,
|
|
5873
|
+
zero: S.zero,
|
|
5874
5874
|
sub: function(T, I) {
|
|
5875
5875
|
return function(R) {
|
|
5876
5876
|
return b.sub(T(R), I(R));
|
|
@@ -5880,8 +5880,8 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5880
5880
|
};
|
|
5881
5881
|
t.getRing = o;
|
|
5882
5882
|
var a = function(b) {
|
|
5883
|
-
return function(
|
|
5884
|
-
return
|
|
5883
|
+
return function(S) {
|
|
5884
|
+
return S(b);
|
|
5885
5885
|
};
|
|
5886
5886
|
};
|
|
5887
5887
|
t.apply = a;
|
|
@@ -5896,53 +5896,53 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5896
5896
|
}
|
|
5897
5897
|
t.constant = l, t.constTrue = l(!0), t.constFalse = l(!1), t.constNull = l(null), t.constUndefined = l(void 0), t.constVoid = t.constUndefined;
|
|
5898
5898
|
function c(b) {
|
|
5899
|
-
return function(
|
|
5900
|
-
return b(T,
|
|
5899
|
+
return function(S, T) {
|
|
5900
|
+
return b(T, S);
|
|
5901
5901
|
};
|
|
5902
5902
|
}
|
|
5903
5903
|
t.flip = c;
|
|
5904
|
-
function u(b,
|
|
5904
|
+
function u(b, S, T, I, R, $, O, N, q) {
|
|
5905
5905
|
switch (arguments.length) {
|
|
5906
5906
|
case 1:
|
|
5907
5907
|
return b;
|
|
5908
5908
|
case 2:
|
|
5909
5909
|
return function() {
|
|
5910
|
-
return
|
|
5910
|
+
return S(b.apply(this, arguments));
|
|
5911
5911
|
};
|
|
5912
5912
|
case 3:
|
|
5913
5913
|
return function() {
|
|
5914
|
-
return T(
|
|
5914
|
+
return T(S(b.apply(this, arguments)));
|
|
5915
5915
|
};
|
|
5916
5916
|
case 4:
|
|
5917
5917
|
return function() {
|
|
5918
|
-
return I(T(
|
|
5918
|
+
return I(T(S(b.apply(this, arguments))));
|
|
5919
5919
|
};
|
|
5920
5920
|
case 5:
|
|
5921
5921
|
return function() {
|
|
5922
|
-
return R(I(T(
|
|
5922
|
+
return R(I(T(S(b.apply(this, arguments)))));
|
|
5923
5923
|
};
|
|
5924
5924
|
case 6:
|
|
5925
5925
|
return function() {
|
|
5926
|
-
return $(R(I(T(
|
|
5926
|
+
return $(R(I(T(S(b.apply(this, arguments))))));
|
|
5927
5927
|
};
|
|
5928
5928
|
case 7:
|
|
5929
5929
|
return function() {
|
|
5930
|
-
return O($(R(I(T(
|
|
5930
|
+
return O($(R(I(T(S(b.apply(this, arguments)))))));
|
|
5931
5931
|
};
|
|
5932
5932
|
case 8:
|
|
5933
5933
|
return function() {
|
|
5934
|
-
return N(O($(R(I(T(
|
|
5934
|
+
return N(O($(R(I(T(S(b.apply(this, arguments))))))));
|
|
5935
5935
|
};
|
|
5936
5936
|
case 9:
|
|
5937
5937
|
return function() {
|
|
5938
|
-
return q(N(O($(R(I(T(
|
|
5938
|
+
return q(N(O($(R(I(T(S(b.apply(this, arguments)))))))));
|
|
5939
5939
|
};
|
|
5940
5940
|
}
|
|
5941
5941
|
}
|
|
5942
5942
|
t.flow = u;
|
|
5943
5943
|
function d() {
|
|
5944
|
-
for (var b = [],
|
|
5945
|
-
b[
|
|
5944
|
+
for (var b = [], S = 0; S < arguments.length; S++)
|
|
5945
|
+
b[S] = arguments[S];
|
|
5946
5946
|
return b;
|
|
5947
5947
|
}
|
|
5948
5948
|
t.tuple = d;
|
|
@@ -5959,39 +5959,39 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
5959
5959
|
}
|
|
5960
5960
|
t.absurd = m;
|
|
5961
5961
|
function A(b) {
|
|
5962
|
-
return function(
|
|
5963
|
-
return b.apply(void 0,
|
|
5962
|
+
return function(S) {
|
|
5963
|
+
return b.apply(void 0, S);
|
|
5964
5964
|
};
|
|
5965
5965
|
}
|
|
5966
5966
|
t.tupled = A;
|
|
5967
5967
|
function v(b) {
|
|
5968
5968
|
return function() {
|
|
5969
|
-
for (var
|
|
5970
|
-
|
|
5971
|
-
return b(
|
|
5969
|
+
for (var S = [], T = 0; T < arguments.length; T++)
|
|
5970
|
+
S[T] = arguments[T];
|
|
5971
|
+
return b(S);
|
|
5972
5972
|
};
|
|
5973
5973
|
}
|
|
5974
5974
|
t.untupled = v;
|
|
5975
|
-
function y(b,
|
|
5975
|
+
function y(b, S, T, I, R, $, O, N, q) {
|
|
5976
5976
|
switch (arguments.length) {
|
|
5977
5977
|
case 1:
|
|
5978
5978
|
return b;
|
|
5979
5979
|
case 2:
|
|
5980
|
-
return
|
|
5980
|
+
return S(b);
|
|
5981
5981
|
case 3:
|
|
5982
|
-
return T(
|
|
5982
|
+
return T(S(b));
|
|
5983
5983
|
case 4:
|
|
5984
|
-
return I(T(
|
|
5984
|
+
return I(T(S(b)));
|
|
5985
5985
|
case 5:
|
|
5986
|
-
return R(I(T(
|
|
5986
|
+
return R(I(T(S(b))));
|
|
5987
5987
|
case 6:
|
|
5988
|
-
return $(R(I(T(
|
|
5988
|
+
return $(R(I(T(S(b)))));
|
|
5989
5989
|
case 7:
|
|
5990
|
-
return O($(R(I(T(
|
|
5990
|
+
return O($(R(I(T(S(b))))));
|
|
5991
5991
|
case 8:
|
|
5992
|
-
return N(O($(R(I(T(
|
|
5992
|
+
return N(O($(R(I(T(S(b)))))));
|
|
5993
5993
|
case 9:
|
|
5994
|
-
return q(N(O($(R(I(T(
|
|
5994
|
+
return q(N(O($(R(I(T(S(b))))))));
|
|
5995
5995
|
default: {
|
|
5996
5996
|
for (var H = arguments[0], Q = 1; Q < arguments.length; Q++)
|
|
5997
5997
|
H = arguments[Q](H);
|
|
@@ -6000,20 +6000,20 @@ var KK = {}, Tn = {}, Nf = {}, Qn = {}, rt = {};
|
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
6002
6002
|
t.pipe = y, t.hole = m;
|
|
6003
|
-
var w = function(b,
|
|
6004
|
-
return
|
|
6003
|
+
var w = function(b, S) {
|
|
6004
|
+
return S;
|
|
6005
6005
|
};
|
|
6006
6006
|
t.SK = w;
|
|
6007
|
-
function
|
|
6008
|
-
return function(
|
|
6009
|
-
return !b(
|
|
6007
|
+
function C(b) {
|
|
6008
|
+
return function(S) {
|
|
6009
|
+
return !b(S);
|
|
6010
6010
|
};
|
|
6011
6011
|
}
|
|
6012
|
-
t.not =
|
|
6012
|
+
t.not = C;
|
|
6013
6013
|
var g = function() {
|
|
6014
6014
|
return {
|
|
6015
|
-
concat: function(b,
|
|
6016
|
-
return u(b,
|
|
6015
|
+
concat: function(b, S) {
|
|
6016
|
+
return u(b, S);
|
|
6017
6017
|
},
|
|
6018
6018
|
empty: s
|
|
6019
6019
|
};
|
|
@@ -6630,7 +6630,7 @@ Ol.filterE = Ile;
|
|
|
6630
6630
|
var ue = (0, t.foldMap)(P);
|
|
6631
6631
|
return (0, c.pipe)(D, ue(W));
|
|
6632
6632
|
};
|
|
6633
|
-
},
|
|
6633
|
+
}, C = function(P, D, W) {
|
|
6634
6634
|
return (0, c.pipe)(P, (0, t.reduceRight)(D, W));
|
|
6635
6635
|
}, g = function(P) {
|
|
6636
6636
|
var D = (0, t.traverse)(P);
|
|
@@ -6639,7 +6639,7 @@ Ol.filterE = Ile;
|
|
|
6639
6639
|
};
|
|
6640
6640
|
}, b = function(P, D, W) {
|
|
6641
6641
|
return (0, c.pipe)(P, (0, t.bimap)(D, W));
|
|
6642
|
-
},
|
|
6642
|
+
}, S = function(P, D) {
|
|
6643
6643
|
return (0, c.pipe)(P, (0, t.mapLeft)(D));
|
|
6644
6644
|
}, T = function(P, D) {
|
|
6645
6645
|
return (0, c.pipe)(P, (0, t.alt)(D));
|
|
@@ -6734,7 +6734,7 @@ Ol.filterE = Ile;
|
|
|
6734
6734
|
sequence: t.sequence,
|
|
6735
6735
|
reduce: y,
|
|
6736
6736
|
foldMap: w,
|
|
6737
|
-
reduceRight:
|
|
6737
|
+
reduceRight: C,
|
|
6738
6738
|
wither: (0, h.witherDefault)(t.Traversable, W),
|
|
6739
6739
|
wilt: (0, h.wiltDefault)(t.Traversable, W)
|
|
6740
6740
|
};
|
|
@@ -6833,7 +6833,7 @@ Ol.filterE = Ile;
|
|
|
6833
6833
|
URI: t.URI,
|
|
6834
6834
|
reduce: y,
|
|
6835
6835
|
foldMap: w,
|
|
6836
|
-
reduceRight:
|
|
6836
|
+
reduceRight: C
|
|
6837
6837
|
};
|
|
6838
6838
|
var ge = function(P) {
|
|
6839
6839
|
return function(D) {
|
|
@@ -6853,7 +6853,7 @@ Ol.filterE = Ile;
|
|
|
6853
6853
|
map: m,
|
|
6854
6854
|
reduce: y,
|
|
6855
6855
|
foldMap: w,
|
|
6856
|
-
reduceRight:
|
|
6856
|
+
reduceRight: C,
|
|
6857
6857
|
traverse: g,
|
|
6858
6858
|
sequence: t.sequence
|
|
6859
6859
|
};
|
|
@@ -6871,7 +6871,7 @@ Ol.filterE = Ile;
|
|
|
6871
6871
|
t.mapLeft = xt, t.Bifunctor = {
|
|
6872
6872
|
URI: t.URI,
|
|
6873
6873
|
bimap: b,
|
|
6874
|
-
mapLeft:
|
|
6874
|
+
mapLeft: S
|
|
6875
6875
|
};
|
|
6876
6876
|
var Ie = function(P) {
|
|
6877
6877
|
return function(D) {
|
|
@@ -7041,11 +7041,11 @@ Ol.filterE = Ile;
|
|
|
7041
7041
|
chain: v,
|
|
7042
7042
|
reduce: y,
|
|
7043
7043
|
foldMap: w,
|
|
7044
|
-
reduceRight:
|
|
7044
|
+
reduceRight: C,
|
|
7045
7045
|
traverse: g,
|
|
7046
7046
|
sequence: t.sequence,
|
|
7047
7047
|
bimap: b,
|
|
7048
|
-
mapLeft:
|
|
7048
|
+
mapLeft: S,
|
|
7049
7049
|
alt: T,
|
|
7050
7050
|
extend: I,
|
|
7051
7051
|
chainRec: R,
|
|
@@ -7068,10 +7068,10 @@ Ol.filterE = Ile;
|
|
|
7068
7068
|
of: t.of,
|
|
7069
7069
|
chain: v,
|
|
7070
7070
|
bimap: b,
|
|
7071
|
-
mapLeft:
|
|
7071
|
+
mapLeft: S,
|
|
7072
7072
|
reduce: y,
|
|
7073
7073
|
foldMap: w,
|
|
7074
|
-
reduceRight:
|
|
7074
|
+
reduceRight: C,
|
|
7075
7075
|
extend: I,
|
|
7076
7076
|
traverse: g,
|
|
7077
7077
|
sequence: t.sequence,
|
|
@@ -17351,12 +17351,12 @@ function ySe(t) {
|
|
|
17351
17351
|
return M(V, F);
|
|
17352
17352
|
};
|
|
17353
17353
|
};
|
|
17354
|
-
},
|
|
17354
|
+
}, C = function(L, M) {
|
|
17355
17355
|
return function(F) {
|
|
17356
17356
|
return t.reduceRightWithIndex(F, L, M);
|
|
17357
17357
|
};
|
|
17358
17358
|
};
|
|
17359
|
-
e.reduceWithIndex = y, e.foldMapWithIndex = w, e.reduceRightWithIndex =
|
|
17359
|
+
e.reduceWithIndex = y, e.foldMapWithIndex = w, e.reduceRightWithIndex = C;
|
|
17360
17360
|
}
|
|
17361
17361
|
if (fSe(t)) {
|
|
17362
17362
|
var g = function(L) {
|
|
@@ -17371,7 +17371,7 @@ function ySe(t) {
|
|
|
17371
17371
|
return function(M) {
|
|
17372
17372
|
return t.filter(M, L);
|
|
17373
17373
|
};
|
|
17374
|
-
},
|
|
17374
|
+
}, S = function(L) {
|
|
17375
17375
|
return function(M) {
|
|
17376
17376
|
return t.filterMap(M, L);
|
|
17377
17377
|
};
|
|
@@ -17384,7 +17384,7 @@ function ySe(t) {
|
|
|
17384
17384
|
return t.partitionMap(M, L);
|
|
17385
17385
|
};
|
|
17386
17386
|
};
|
|
17387
|
-
e.filter = b, e.filterMap =
|
|
17387
|
+
e.filter = b, e.filterMap = S, e.partition = T, e.partitionMap = I;
|
|
17388
17388
|
}
|
|
17389
17389
|
if (mSe(t)) {
|
|
17390
17390
|
var R = function(L) {
|
|
@@ -25770,12 +25770,12 @@ function _Pe(t) {
|
|
|
25770
25770
|
return M(V, F);
|
|
25771
25771
|
};
|
|
25772
25772
|
};
|
|
25773
|
-
},
|
|
25773
|
+
}, C = function(L, M) {
|
|
25774
25774
|
return function(F) {
|
|
25775
25775
|
return t.reduceRightWithIndex(F, L, M);
|
|
25776
25776
|
};
|
|
25777
25777
|
};
|
|
25778
|
-
e.reduceWithIndex = y, e.foldMapWithIndex = w, e.reduceRightWithIndex =
|
|
25778
|
+
e.reduceWithIndex = y, e.foldMapWithIndex = w, e.reduceRightWithIndex = C;
|
|
25779
25779
|
}
|
|
25780
25780
|
if (vPe(t)) {
|
|
25781
25781
|
var g = function(L) {
|
|
@@ -25790,7 +25790,7 @@ function _Pe(t) {
|
|
|
25790
25790
|
return function(M) {
|
|
25791
25791
|
return t.filter(M, L);
|
|
25792
25792
|
};
|
|
25793
|
-
},
|
|
25793
|
+
}, S = function(L) {
|
|
25794
25794
|
return function(M) {
|
|
25795
25795
|
return t.filterMap(M, L);
|
|
25796
25796
|
};
|
|
@@ -25803,7 +25803,7 @@ function _Pe(t) {
|
|
|
25803
25803
|
return t.partitionMap(M, L);
|
|
25804
25804
|
};
|
|
25805
25805
|
};
|
|
25806
|
-
e.filter = b, e.filterMap =
|
|
25806
|
+
e.filter = b, e.filterMap = S, e.partition = T, e.partitionMap = I;
|
|
25807
25807
|
}
|
|
25808
25808
|
if (CPe(t)) {
|
|
25809
25809
|
var R = function(L) {
|
|
@@ -25979,46 +25979,46 @@ var hD = {};
|
|
|
25979
25979
|
(function(t) {
|
|
25980
25980
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.Link = t.LinkConfig = t.LinkFieldType = t.CustomTypes = void 0;
|
|
25981
25981
|
const e = Z, n = Tn, r = (0, e.__importStar)(re), i = Ip, o = wt(), a = (g) => {
|
|
25982
|
-
if (g instanceof Array && g.reduce((
|
|
25982
|
+
if (g instanceof Array && g.reduce((S, T) => S && typeof T == "string", !0))
|
|
25983
25983
|
return r.success(g);
|
|
25984
25984
|
}, s = (g) => {
|
|
25985
25985
|
if (typeof g == "string")
|
|
25986
25986
|
return r.success([g]);
|
|
25987
|
-
}, l = new r.Type("MasksArrayString", (g) => g instanceof Array, (g, b) => n.either.chain(r.union([r.array(r.string), r.string]).validate(g, b), (
|
|
25987
|
+
}, l = new r.Type("MasksArrayString", (g) => g instanceof Array, (g, b) => n.either.chain(r.union([r.array(r.string), r.string]).validate(g, b), (S) => a(S) || s(S) || r.failure(g, b)), (g) => g), c = new r.Type("CustomTypeLevel2FieldGroupFields", (g) => Array.isArray(g) && g.every((b) => typeof b == "string"), (g, b) => n.either.chain(r.array(r.string).validate(g, b), (S) => new Set(S).size === S.length ? r.success(S) : r.failure(g, b, "Fields have duplicates.")), (g) => g), u = r.union([
|
|
25988
25988
|
r.strict({
|
|
25989
25989
|
id: r.string,
|
|
25990
25990
|
fields: c
|
|
25991
25991
|
}),
|
|
25992
25992
|
r.string
|
|
25993
|
-
]), d = new r.Type("CustomTypeLevel2Fields", (g) => Array.isArray(g) && g.every((b) => u.is(b)), (g, b) => n.either.chain(r.array(u).validate(g, b), (
|
|
25993
|
+
]), d = new r.Type("CustomTypeLevel2Fields", (g) => Array.isArray(g) && g.every((b) => u.is(b)), (g, b) => n.either.chain(r.array(u).validate(g, b), (S) => new Set(S.map((I) => typeof I == "string" ? I : I.id)).size === S.length ? r.success(S) : r.failure(g, b, "Fields have duplicates.")), (g) => g), f = r.union([
|
|
25994
25994
|
r.string,
|
|
25995
25995
|
r.strict({
|
|
25996
25996
|
id: r.string,
|
|
25997
25997
|
fields: d
|
|
25998
25998
|
})
|
|
25999
|
-
]), h = new r.Type("CustomTypesLevel2", (g) => Array.isArray(g) && g.every((b) => f.is(b)), (g, b) => n.either.chain(r.array(f).validate(g, b), (
|
|
25999
|
+
]), h = new r.Type("CustomTypesLevel2", (g) => Array.isArray(g) && g.every((b) => f.is(b)), (g, b) => n.either.chain(r.array(f).validate(g, b), (S) => new Set(S.map((I) => typeof I == "string" ? I : I.id)).size === S.length ? r.success(S) : r.failure(g, b, "Custom types have duplicates.")), (g) => g), m = r.strict({
|
|
26000
26000
|
id: r.string,
|
|
26001
26001
|
customtypes: h
|
|
26002
26002
|
}), A = r.union([
|
|
26003
26003
|
m,
|
|
26004
26004
|
r.string
|
|
26005
|
-
]), v = new r.Type("CustomTypeLevel1FieldGroupFields", (g) => Array.isArray(g) && g.every((b) => A.is(b)), (g, b) => n.either.chain(r.array(A).validate(g, b), (
|
|
26005
|
+
]), v = new r.Type("CustomTypeLevel1FieldGroupFields", (g) => Array.isArray(g) && g.every((b) => A.is(b)), (g, b) => n.either.chain(r.array(A).validate(g, b), (S) => new Set(S.map((I) => typeof I == "string" ? I : I.id)).size === S.length ? r.success(S) : r.failure(g, b, "Fields have duplicates.")), (g) => g), y = r.union([
|
|
26006
26006
|
r.strict({
|
|
26007
26007
|
id: r.string,
|
|
26008
26008
|
fields: v
|
|
26009
26009
|
}),
|
|
26010
26010
|
m,
|
|
26011
26011
|
r.string
|
|
26012
|
-
]), w = new r.Type("CustomTypeLevel1Fields", (g) => Array.isArray(g) && g.every((b) => y.is(b)), (g, b) => n.either.chain(r.array(y).validate(g, b), (
|
|
26012
|
+
]), w = new r.Type("CustomTypeLevel1Fields", (g) => Array.isArray(g) && g.every((b) => y.is(b)), (g, b) => n.either.chain(r.array(y).validate(g, b), (S) => new Set(S.map((I) => typeof I == "string" ? I : I.id)).size === S.length ? r.success(S) : r.failure(g, b, "Fields have duplicates.")), (g) => g), C = r.union([
|
|
26013
26013
|
r.string,
|
|
26014
26014
|
r.strict({
|
|
26015
26015
|
id: r.string,
|
|
26016
26016
|
fields: w
|
|
26017
26017
|
})
|
|
26018
26018
|
]);
|
|
26019
|
-
t.CustomTypes = new r.Type("CustomTypes", (g) => Array.isArray(g) && g.every((b) =>
|
|
26019
|
+
t.CustomTypes = new r.Type("CustomTypes", (g) => Array.isArray(g) && g.every((b) => C.is(b)), (g, b) => n.either.chain(r.array(C).validate(g, b), (S) => {
|
|
26020
26020
|
const T = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
|
|
26021
|
-
for (const R of
|
|
26021
|
+
for (const R of S) {
|
|
26022
26022
|
let $ = !1;
|
|
26023
26023
|
if (typeof R == "string")
|
|
26024
26024
|
$ = I.has(R), T.add(R);
|
|
@@ -26029,7 +26029,7 @@ var hD = {};
|
|
|
26029
26029
|
if ($)
|
|
26030
26030
|
return r.failure(g, b, "Custom types have duplicates.");
|
|
26031
26031
|
}
|
|
26032
|
-
return r.success(
|
|
26032
|
+
return r.success(S);
|
|
26033
26033
|
}), (g) => g), t.LinkFieldType = "Link", t.LinkConfig = r.exact(r.partial({
|
|
26034
26034
|
label: o.StringOrNull,
|
|
26035
26035
|
useAsTitle: r.boolean,
|
|
@@ -26160,7 +26160,7 @@ var WS = {};
|
|
|
26160
26160
|
return o.success([]);
|
|
26161
26161
|
if (A[""])
|
|
26162
26162
|
return o.success(A[""].map((y) => y.name));
|
|
26163
|
-
const v = Object.entries(A).reduce((y, [, w]) => y.concat(w.map((
|
|
26163
|
+
const v = Object.entries(A).reduce((y, [, w]) => y.concat(w.map((C) => C.name)), []).filter(Boolean);
|
|
26164
26164
|
return o.success(v);
|
|
26165
26165
|
}
|
|
26166
26166
|
}, d = (m) => {
|
|
@@ -26332,57 +26332,50 @@ ol.NestableWidget = WPe.union([
|
|
|
26332
26332
|
t.NestedGroupConfig = a(o.NestableWidget), t.NestedGroup = s(o.NestableWidget), t.GroupConfig = a(n.union([o.NestableWidget, t.NestedGroup])), t.Group = s(n.union([o.NestableWidget, t.NestedGroup]));
|
|
26333
26333
|
function l(u) {
|
|
26334
26334
|
var d;
|
|
26335
|
-
const { path: f, group: h, onField: m } = u
|
|
26336
|
-
|
|
26337
|
-
return
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
...h.config
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
...A && { fields: A }
|
|
26349
|
-
}
|
|
26350
|
-
}
|
|
26351
|
-
};
|
|
26335
|
+
const { path: f, group: h, onField: m } = u;
|
|
26336
|
+
if (!(!((d = h.config) === null || d === void 0) && d.fields))
|
|
26337
|
+
return h;
|
|
26338
|
+
let A;
|
|
26339
|
+
for (const [v, y] of Object.entries(h.config.fields)) {
|
|
26340
|
+
const w = [...f, v], C = m({
|
|
26341
|
+
path: w,
|
|
26342
|
+
key: v,
|
|
26343
|
+
field: y
|
|
26344
|
+
});
|
|
26345
|
+
y !== C && (A || (A = { ...h.config.fields }), A[v] = C);
|
|
26346
|
+
}
|
|
26347
|
+
return A ? { ...h, config: { ...h.config, fields: A } } : h;
|
|
26352
26348
|
}
|
|
26353
26349
|
t.traverseNestedGroup = l;
|
|
26354
26350
|
function c(u) {
|
|
26355
26351
|
var d;
|
|
26356
|
-
const { path: f, group: h, onField: m } = u
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26352
|
+
const { path: f, group: h, onField: m } = u;
|
|
26353
|
+
if (!(!((d = h.config) === null || d === void 0) && d.fields))
|
|
26354
|
+
return h;
|
|
26355
|
+
let A;
|
|
26356
|
+
for (const [v, y] of Object.entries(h.config.fields)) {
|
|
26357
|
+
const w = [...f, v];
|
|
26358
|
+
let C;
|
|
26359
|
+
switch (y.type) {
|
|
26360
26360
|
case "Group":
|
|
26361
|
-
|
|
26362
|
-
path:
|
|
26363
|
-
group:
|
|
26361
|
+
C = l({
|
|
26362
|
+
path: w,
|
|
26363
|
+
group: y,
|
|
26364
26364
|
onField: m
|
|
26365
26365
|
});
|
|
26366
26366
|
break;
|
|
26367
26367
|
default:
|
|
26368
|
-
|
|
26368
|
+
C = y;
|
|
26369
26369
|
break;
|
|
26370
26370
|
}
|
|
26371
|
-
|
|
26372
|
-
path:
|
|
26373
|
-
key:
|
|
26374
|
-
field:
|
|
26375
|
-
})
|
|
26376
|
-
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
...h.config && {
|
|
26380
|
-
config: {
|
|
26381
|
-
...h.config,
|
|
26382
|
-
...A && { fields: A }
|
|
26383
|
-
}
|
|
26384
|
-
}
|
|
26385
|
-
};
|
|
26371
|
+
const g = m({
|
|
26372
|
+
path: w,
|
|
26373
|
+
key: v,
|
|
26374
|
+
field: C
|
|
26375
|
+
});
|
|
26376
|
+
C !== g && (A || (A = { ...h.config.fields }), A[v] = g);
|
|
26377
|
+
}
|
|
26378
|
+
return A ? { ...h, config: { ...h.config, fields: A } } : h;
|
|
26386
26379
|
}
|
|
26387
26380
|
t.traverseGroup = c;
|
|
26388
26381
|
})(Mc);
|
|
@@ -26428,22 +26421,23 @@ var YG = {}, KS = {};
|
|
|
26428
26421
|
}
|
|
26429
26422
|
t.isCompositeSlice = a;
|
|
26430
26423
|
function s(l) {
|
|
26431
|
-
|
|
26432
|
-
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
const
|
|
26436
|
-
|
|
26437
|
-
}
|
|
26438
|
-
|
|
26439
|
-
|
|
26440
|
-
...
|
|
26441
|
-
|
|
26442
|
-
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
}
|
|
26446
|
-
|
|
26424
|
+
var c, u;
|
|
26425
|
+
const { path: d, slice: f, onField: h } = l;
|
|
26426
|
+
let m;
|
|
26427
|
+
for (const [v, y] of Object.entries((c = f["non-repeat"]) !== null && c !== void 0 ? c : {})) {
|
|
26428
|
+
const w = [...d, "non-repeat", v], C = h({ path: w, key: v, field: y });
|
|
26429
|
+
y !== C && (m || (m = { ...f["non-repeat"] }), m[v] = C);
|
|
26430
|
+
}
|
|
26431
|
+
let A;
|
|
26432
|
+
for (const [v, y] of Object.entries((u = f.repeat) !== null && u !== void 0 ? u : {})) {
|
|
26433
|
+
const w = [...d, "repeat", v], C = h({ path: w, key: v, field: y });
|
|
26434
|
+
y !== C && (A || (A = { ...f.repeat }), A[v] = C);
|
|
26435
|
+
}
|
|
26436
|
+
return A || m ? {
|
|
26437
|
+
...f,
|
|
26438
|
+
...m && { "non-repeat": m },
|
|
26439
|
+
...A && { repeat: A }
|
|
26440
|
+
} : f;
|
|
26447
26441
|
}
|
|
26448
26442
|
t.traverseCompositeSlice = s;
|
|
26449
26443
|
})(KS);
|
|
@@ -26503,58 +26497,54 @@ Mu.isSlicePrimaryWidget = dUe;
|
|
|
26503
26497
|
}
|
|
26504
26498
|
t.isDynamicSharedSlice = f;
|
|
26505
26499
|
function h(A) {
|
|
26506
|
-
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
break;
|
|
26524
|
-
}
|
|
26525
|
-
return S[g] = w({
|
|
26526
|
-
path: C,
|
|
26527
|
-
key: g,
|
|
26528
|
-
field: T
|
|
26529
|
-
}), S;
|
|
26530
|
-
}, {})
|
|
26531
|
-
},
|
|
26532
|
-
...y.items && {
|
|
26533
|
-
items: Object.entries(y.items).reduce((S, [g, b]) => {
|
|
26534
|
-
const C = v.concat("items", g);
|
|
26535
|
-
return S[g] = w({
|
|
26536
|
-
path: C,
|
|
26537
|
-
key: g,
|
|
26538
|
-
field: b
|
|
26539
|
-
}), S;
|
|
26540
|
-
}, {})
|
|
26500
|
+
var v, y;
|
|
26501
|
+
const { path: w, variation: C, onField: g } = A;
|
|
26502
|
+
let b;
|
|
26503
|
+
for (const [T, I] of Object.entries((v = C.primary) !== null && v !== void 0 ? v : {})) {
|
|
26504
|
+
const R = [...w, "primary", T];
|
|
26505
|
+
let $;
|
|
26506
|
+
switch (I.type) {
|
|
26507
|
+
case "Group":
|
|
26508
|
+
$ = (0, o.traverseGroup)({
|
|
26509
|
+
path: R,
|
|
26510
|
+
group: I,
|
|
26511
|
+
onField: g
|
|
26512
|
+
});
|
|
26513
|
+
break;
|
|
26514
|
+
default:
|
|
26515
|
+
$ = I;
|
|
26516
|
+
break;
|
|
26541
26517
|
}
|
|
26542
|
-
|
|
26518
|
+
const O = g({ path: R, key: T, field: $ });
|
|
26519
|
+
$ !== O && (b || (b = { ...C.primary }), b[T] = O);
|
|
26520
|
+
}
|
|
26521
|
+
let S;
|
|
26522
|
+
for (const [T, I] of Object.entries((y = C.items) !== null && y !== void 0 ? y : {})) {
|
|
26523
|
+
const R = [...w, "items", T], $ = g({
|
|
26524
|
+
path: R,
|
|
26525
|
+
key: T,
|
|
26526
|
+
field: I
|
|
26527
|
+
});
|
|
26528
|
+
I !== $ && (S || (S = { ...C.items }), S[T] = $);
|
|
26529
|
+
}
|
|
26530
|
+
return b || S ? { ...C, ...b && { primary: b }, ...S && { items: S } } : C;
|
|
26543
26531
|
}
|
|
26544
26532
|
t.traverseVariation = h;
|
|
26545
26533
|
function m(A) {
|
|
26546
26534
|
const { path: v, slice: y, onField: w } = A;
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
|
|
26556
|
-
})
|
|
26557
|
-
|
|
26535
|
+
let C;
|
|
26536
|
+
for (let g = 0; g < y.variations.length; g++) {
|
|
26537
|
+
const b = y.variations[g];
|
|
26538
|
+
if (!b)
|
|
26539
|
+
continue;
|
|
26540
|
+
const S = [...v, b.id], T = h({
|
|
26541
|
+
path: S,
|
|
26542
|
+
variation: b,
|
|
26543
|
+
onField: w
|
|
26544
|
+
});
|
|
26545
|
+
T !== b && (C || (C = [...y.variations]), C[g] = T);
|
|
26546
|
+
}
|
|
26547
|
+
return C ? { ...y, variations: C } : y;
|
|
26558
26548
|
}
|
|
26559
26549
|
t.traverseSharedSlice = m;
|
|
26560
26550
|
})(Rv);
|
|
@@ -26592,12 +26582,12 @@ var SD = {};
|
|
|
26592
26582
|
t.slicesConfigReader = u, t.StaticSlicesConfig = u(l.SharedSlice), t.DynamicSlicesConfig = u(c.SharedSliceRef);
|
|
26593
26583
|
const d = {
|
|
26594
26584
|
toStatic(m, A) {
|
|
26595
|
-
const v = Object.entries(m.choices || {}).reduce((y, [w,
|
|
26596
|
-
if (
|
|
26585
|
+
const v = Object.entries(m.choices || {}).reduce((y, [w, C]) => {
|
|
26586
|
+
if (C.type === "SharedSlice") {
|
|
26597
26587
|
const g = A.get(w);
|
|
26598
26588
|
return g ? { ...y, [w]: g } : y;
|
|
26599
26589
|
} else
|
|
26600
|
-
return { ...y, [w]:
|
|
26590
|
+
return { ...y, [w]: C };
|
|
26601
26591
|
}, {});
|
|
26602
26592
|
return { ...m, choices: v };
|
|
26603
26593
|
}
|
|
@@ -26626,54 +26616,56 @@ var SD = {};
|
|
|
26626
26616
|
};
|
|
26627
26617
|
function h(m) {
|
|
26628
26618
|
var A;
|
|
26629
|
-
const { path: v, slices: y, onField: w } = m
|
|
26630
|
-
|
|
26631
|
-
|
|
26632
|
-
|
|
26619
|
+
const { path: v, slices: y, onField: w } = m;
|
|
26620
|
+
if (!(!((A = y.config) === null || A === void 0) && A.choices))
|
|
26621
|
+
return y;
|
|
26622
|
+
let C;
|
|
26623
|
+
for (const [g, b] of Object.entries(y.config.choices)) {
|
|
26624
|
+
const S = [...v, g];
|
|
26625
|
+
let T;
|
|
26626
|
+
switch (b.type) {
|
|
26633
26627
|
case "Slice":
|
|
26634
|
-
|
|
26635
|
-
path:
|
|
26636
|
-
slice:
|
|
26628
|
+
T = (0, a.traverseCompositeSlice)({
|
|
26629
|
+
path: S,
|
|
26630
|
+
slice: b,
|
|
26637
26631
|
onField: w
|
|
26638
26632
|
});
|
|
26639
26633
|
break;
|
|
26640
26634
|
case "SharedSlice":
|
|
26641
|
-
"variations" in
|
|
26642
|
-
path:
|
|
26643
|
-
slice:
|
|
26635
|
+
"variations" in b ? T = (0, l.traverseSharedSlice)({
|
|
26636
|
+
path: S,
|
|
26637
|
+
slice: b,
|
|
26644
26638
|
onField: w
|
|
26645
|
-
}) :
|
|
26639
|
+
}) : T = b;
|
|
26646
26640
|
break;
|
|
26647
26641
|
case "Group":
|
|
26648
|
-
|
|
26649
|
-
path:
|
|
26650
|
-
key:
|
|
26642
|
+
T = w({
|
|
26643
|
+
path: S,
|
|
26644
|
+
key: g,
|
|
26651
26645
|
field: (0, o.traverseNestedGroup)({
|
|
26652
|
-
path:
|
|
26653
|
-
group:
|
|
26646
|
+
path: S,
|
|
26647
|
+
group: b,
|
|
26654
26648
|
onField: w
|
|
26655
26649
|
})
|
|
26656
26650
|
});
|
|
26657
26651
|
break;
|
|
26658
26652
|
default:
|
|
26659
|
-
|
|
26660
|
-
path:
|
|
26661
|
-
key:
|
|
26662
|
-
field:
|
|
26653
|
+
T = w({
|
|
26654
|
+
path: S,
|
|
26655
|
+
key: g,
|
|
26656
|
+
field: b
|
|
26663
26657
|
});
|
|
26664
26658
|
break;
|
|
26665
26659
|
}
|
|
26666
|
-
|
|
26667
|
-
}
|
|
26668
|
-
return {
|
|
26660
|
+
T !== b && (C || (C = { ...y.config.choices }), C[g] = T);
|
|
26661
|
+
}
|
|
26662
|
+
return C ? {
|
|
26669
26663
|
...y,
|
|
26670
|
-
|
|
26671
|
-
config
|
|
26672
|
-
|
|
26673
|
-
...S && { choices: S }
|
|
26674
|
-
}
|
|
26664
|
+
config: {
|
|
26665
|
+
...y.config,
|
|
26666
|
+
choices: C
|
|
26675
26667
|
}
|
|
26676
|
-
};
|
|
26668
|
+
} : y;
|
|
26677
26669
|
}
|
|
26678
26670
|
t.traverseSlices = h;
|
|
26679
26671
|
})(SD);
|
|
@@ -26772,8 +26764,9 @@ Ii.Sections = {
|
|
|
26772
26764
|
};
|
|
26773
26765
|
function wUe(t) {
|
|
26774
26766
|
const { path: e, section: n, onField: r } = t;
|
|
26775
|
-
|
|
26776
|
-
|
|
26767
|
+
let i;
|
|
26768
|
+
for (const [o, a] of Object.entries(n)) {
|
|
26769
|
+
const s = [...e, o];
|
|
26777
26770
|
let l;
|
|
26778
26771
|
switch (a.type) {
|
|
26779
26772
|
case "Choice":
|
|
@@ -26803,8 +26796,9 @@ function wUe(t) {
|
|
|
26803
26796
|
});
|
|
26804
26797
|
break;
|
|
26805
26798
|
}
|
|
26806
|
-
|
|
26807
|
-
}
|
|
26799
|
+
l !== a && (i || (i = { ...n }), i[o] = l);
|
|
26800
|
+
}
|
|
26801
|
+
return i ?? n;
|
|
26808
26802
|
}
|
|
26809
26803
|
Ii.traverseSection = wUe;
|
|
26810
26804
|
(function(t) {
|
|
@@ -26851,15 +26845,15 @@ ${b.map((T) => ` - ${T}`).join(`
|
|
|
26851
26845
|
}
|
|
26852
26846
|
t.StaticCustomType = l(a.StaticSection), t.CustomType = l(a.DynamicSection);
|
|
26853
26847
|
function c(g) {
|
|
26854
|
-
return Object.entries(g.json).reduce((b, [,
|
|
26855
|
-
const T = Object.entries(
|
|
26848
|
+
return Object.entries(g.json).reduce((b, [, S]) => {
|
|
26849
|
+
const T = Object.entries(S);
|
|
26856
26850
|
return b.concat(T);
|
|
26857
26851
|
}, []);
|
|
26858
26852
|
}
|
|
26859
26853
|
t.flattenWidgets = c;
|
|
26860
26854
|
function u(g) {
|
|
26861
|
-
return Object.entries(g.json).reduce((b, [,
|
|
26862
|
-
const T = Object.entries(
|
|
26855
|
+
return Object.entries(g.json).reduce((b, [, S]) => {
|
|
26856
|
+
const T = Object.entries(S);
|
|
26863
26857
|
return b.concat(T);
|
|
26864
26858
|
}, []);
|
|
26865
26859
|
}
|
|
@@ -26872,39 +26866,39 @@ ${b.map((T) => ` - ${T}`).join(`
|
|
|
26872
26866
|
}
|
|
26873
26867
|
function f(g) {
|
|
26874
26868
|
const b = d(g);
|
|
26875
|
-
return function(
|
|
26876
|
-
return b.map(
|
|
26869
|
+
return function(S) {
|
|
26870
|
+
return b.map(S);
|
|
26877
26871
|
};
|
|
26878
26872
|
}
|
|
26879
26873
|
function h(g, b) {
|
|
26880
|
-
const
|
|
26874
|
+
const S = Object.entries(g.json).reduce((T, [I, R]) => ({
|
|
26881
26875
|
...T,
|
|
26882
26876
|
[I]: a.Sections.toStatic(R, b)
|
|
26883
26877
|
}), {});
|
|
26884
|
-
return { ...g, json:
|
|
26878
|
+
return { ...g, json: S };
|
|
26885
26879
|
}
|
|
26886
26880
|
t.toStatic = h;
|
|
26887
26881
|
function m(g, b) {
|
|
26888
|
-
const
|
|
26882
|
+
const S = f(g)((T) => {
|
|
26889
26883
|
if (!b.get(T))
|
|
26890
26884
|
return T;
|
|
26891
26885
|
}).filter(Boolean);
|
|
26892
|
-
return
|
|
26886
|
+
return S.length > 0 ? (0, n.left)(new s(S)) : (0, n.right)(g);
|
|
26893
26887
|
}
|
|
26894
26888
|
t.validateSlices = m;
|
|
26895
26889
|
function A(g, b) {
|
|
26896
|
-
const
|
|
26890
|
+
const S = Object.entries(g.json).reduce((T, [I, R]) => {
|
|
26897
26891
|
const $ = Object.entries(R).reduce((O, [N, q]) => {
|
|
26898
26892
|
const H = b(N, q);
|
|
26899
26893
|
return H ? { ...O, [N]: H } : O;
|
|
26900
26894
|
}, {});
|
|
26901
26895
|
return { ...T, [I]: $ };
|
|
26902
26896
|
}, {});
|
|
26903
|
-
return { ...g, json:
|
|
26897
|
+
return { ...g, json: S };
|
|
26904
26898
|
}
|
|
26905
26899
|
t.collectWidgets = A;
|
|
26906
26900
|
function v(g, b) {
|
|
26907
|
-
return A(g, (
|
|
26901
|
+
return A(g, (S, T) => {
|
|
26908
26902
|
if (T.type === "Slices") {
|
|
26909
26903
|
if (!T.config || !T.config.choices)
|
|
26910
26904
|
return T;
|
|
@@ -26916,34 +26910,36 @@ ${b.map((T) => ` - ${T}`).join(`
|
|
|
26916
26910
|
}
|
|
26917
26911
|
t.filterMissingSharedSlices = v;
|
|
26918
26912
|
function y(g) {
|
|
26919
|
-
return Object.values(g.json).reduce((b,
|
|
26913
|
+
return Object.values(g.json).reduce((b, S) => ({
|
|
26920
26914
|
...b,
|
|
26921
|
-
...
|
|
26915
|
+
...S
|
|
26922
26916
|
}), {});
|
|
26923
26917
|
}
|
|
26924
26918
|
t.flattenCustomTypeFields = y;
|
|
26925
26919
|
function w(g) {
|
|
26926
|
-
return Object.entries(g.fields).reduce((b, [,
|
|
26920
|
+
return Object.entries(g.fields).reduce((b, [, S]) => {
|
|
26927
26921
|
var T;
|
|
26928
|
-
return
|
|
26922
|
+
return S.type === "Slices" || S.type === "Choice" ? {
|
|
26929
26923
|
...b,
|
|
26930
|
-
...Object.entries(((T =
|
|
26924
|
+
...Object.entries(((T = S.config) === null || T === void 0 ? void 0 : T.choices) || {}).reduce((I, [R, $]) => $.type === "SharedSlice" ? { ...I, [R]: $ } : I, {})
|
|
26931
26925
|
} : b;
|
|
26932
26926
|
}, {});
|
|
26933
26927
|
}
|
|
26934
26928
|
t.collectSharedSlices = w;
|
|
26935
|
-
function
|
|
26936
|
-
const { customType: b, onField:
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26929
|
+
function C(g) {
|
|
26930
|
+
const { customType: b, onField: S } = g;
|
|
26931
|
+
let T;
|
|
26932
|
+
for (const [I, R] of Object.entries(b.json)) {
|
|
26933
|
+
const $ = (0, a.traverseSection)({
|
|
26940
26934
|
path: [I],
|
|
26941
26935
|
section: R,
|
|
26942
|
-
onField:
|
|
26943
|
-
})
|
|
26944
|
-
|
|
26936
|
+
onField: S
|
|
26937
|
+
});
|
|
26938
|
+
$ !== R && (T || (T = { ...b.json }), T[I] = $);
|
|
26939
|
+
}
|
|
26940
|
+
return T ? { ...b, json: T } : b;
|
|
26945
26941
|
}
|
|
26946
|
-
t.traverseCustomType =
|
|
26942
|
+
t.traverseCustomType = C;
|
|
26947
26943
|
})(KK);
|
|
26948
26944
|
var nJ = {}, qS = {};
|
|
26949
26945
|
(function(t) {
|
|
@@ -27533,8 +27529,8 @@ const qUe = (t) => {
|
|
|
27533
27529
|
const A = s.advanced ? {
|
|
27534
27530
|
ref: s.ref,
|
|
27535
27531
|
filters: i.filters.map(({ type: y, args: w }) => {
|
|
27536
|
-
const
|
|
27537
|
-
return
|
|
27532
|
+
const C = _o[y];
|
|
27533
|
+
return C(...w);
|
|
27538
27534
|
})
|
|
27539
27535
|
} : {}, v = await Ov[i.type].run(f, {
|
|
27540
27536
|
...i.options[i.type],
|
|
@@ -27854,7 +27850,7 @@ function zP(t, e, n, r) {
|
|
|
27854
27850
|
return sNe(function() {
|
|
27855
27851
|
if (!((d == null ? void 0 : d.enabled) === !1 || !eNe(h, d == null ? void 0 : d.scopes))) {
|
|
27856
27852
|
var A = function(g, b) {
|
|
27857
|
-
var
|
|
27853
|
+
var S;
|
|
27858
27854
|
if (b === void 0 && (b = !1), !(XUe(g) && !uJ(g, d == null ? void 0 : d.enableOnFormTags))) {
|
|
27859
27855
|
if (i.current !== null) {
|
|
27860
27856
|
var T = i.current.getRootNode();
|
|
@@ -27863,7 +27859,7 @@ function zP(t, e, n, r) {
|
|
|
27863
27859
|
return;
|
|
27864
27860
|
}
|
|
27865
27861
|
}
|
|
27866
|
-
(
|
|
27862
|
+
(S = g.target) != null && S.isContentEditable && !(d != null && d.enableOnContentEditable) || cT(s, d == null ? void 0 : d.splitKey).forEach(function(I) {
|
|
27867
27863
|
var R, $ = uT(I, d == null ? void 0 : d.combinationKey);
|
|
27868
27864
|
if (tNe(g, $, d == null ? void 0 : d.ignoreModifiers) || (R = $.keys) != null && R.includes("*")) {
|
|
27869
27865
|
if (d != null && d.ignoreEventWhen != null && d.ignoreEventWhen(g) || b && o.current)
|
|
@@ -27881,11 +27877,11 @@ function zP(t, e, n, r) {
|
|
|
27881
27877
|
}, y = function(g) {
|
|
27882
27878
|
g.key !== void 0 && (cJ(Sl(g.code)), o.current = !1, d != null && d.keyup && A(g, !0));
|
|
27883
27879
|
}, w = i.current || (a == null ? void 0 : a.document) || document;
|
|
27884
|
-
return w.addEventListener("keyup", y), w.addEventListener("keydown", v), m && cT(s, d == null ? void 0 : d.splitKey).forEach(function(
|
|
27885
|
-
return m.addHotkey(uT(
|
|
27880
|
+
return w.addEventListener("keyup", y), w.addEventListener("keydown", v), m && cT(s, d == null ? void 0 : d.splitKey).forEach(function(C) {
|
|
27881
|
+
return m.addHotkey(uT(C, d == null ? void 0 : d.combinationKey, d == null ? void 0 : d.description));
|
|
27886
27882
|
}), function() {
|
|
27887
|
-
w.removeEventListener("keyup", y), w.removeEventListener("keydown", v), m && cT(s, d == null ? void 0 : d.splitKey).forEach(function(
|
|
27888
|
-
return m.removeHotkey(uT(
|
|
27883
|
+
w.removeEventListener("keyup", y), w.removeEventListener("keydown", v), m && cT(s, d == null ? void 0 : d.splitKey).forEach(function(C) {
|
|
27884
|
+
return m.removeHotkey(uT(C, d == null ? void 0 : d.combinationKey, d == null ? void 0 : d.description));
|
|
27889
27885
|
});
|
|
27890
27886
|
};
|
|
27891
27887
|
}
|
|
@@ -28481,36 +28477,36 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28481
28477
|
}
|
|
28482
28478
|
}, yJ = ({ startEdit: t, handleDelete: e, handleAdd: n, enableClipboard: r, type: i, customButtons: o, nodeData: a, translate: s, keyboardControls: l, handleKeyboard: c }) => {
|
|
28483
28479
|
const { getStyles: u } = ja(), d = s("KEY_NEW", a), [f, h] = G(!1), [m, A] = G(d), { key: v, path: y, value: w } = a;
|
|
28484
|
-
return E("div", { className: "jer-edit-buttons", style: { opacity: f ? 1 : void 0 }, children: [r && p("div", { onClick: (
|
|
28480
|
+
return E("div", { className: "jer-edit-buttons", style: { opacity: f ? 1 : void 0 }, children: [r && p("div", { onClick: (C) => {
|
|
28485
28481
|
var g;
|
|
28486
|
-
|
|
28487
|
-
let b,
|
|
28482
|
+
C.stopPropagation();
|
|
28483
|
+
let b, S, T = "value", I = "", R = null;
|
|
28488
28484
|
if (r) {
|
|
28489
|
-
const $ = OD(
|
|
28485
|
+
const $ = OD(C);
|
|
28490
28486
|
if ($ && l.clipboardModifier.includes($) ? (b = WNe(y), I = b, T = "path") : (b = w, I = i ? JSON.stringify(w, null, 2) : String(b)), !navigator.clipboard)
|
|
28491
28487
|
return void (typeof r == "function" && r({ success: !1, value: b, stringValue: I, path: y, key: v, type: T, errorMessage: "Can't access clipboard API" }));
|
|
28492
|
-
(g = navigator.clipboard) === null || g === void 0 || g.writeText(I).then(() =>
|
|
28493
|
-
|
|
28488
|
+
(g = navigator.clipboard) === null || g === void 0 || g.writeText(I).then(() => S = !0).catch((O) => {
|
|
28489
|
+
S = !1, R = O.message;
|
|
28494
28490
|
}).finally(() => {
|
|
28495
|
-
typeof r == "function" && r({ success:
|
|
28491
|
+
typeof r == "function" && r({ success: S, errorMessage: R, value: b, stringValue: I, path: y, key: v, type: T });
|
|
28496
28492
|
});
|
|
28497
28493
|
}
|
|
28498
|
-
}, className: "jer-copy-pulse", children: p(iu, { name: "copy", nodeData: a }) }), t && p("div", { onClick: (
|
|
28499
|
-
|
|
28500
|
-
}, children: p(iu, { name: "edit", nodeData: a }) }), e && p("div", { onClick: (
|
|
28501
|
-
|
|
28502
|
-
}, children: p(iu, { name: "delete", nodeData: a }) }), n && p("div", { onClick: (
|
|
28503
|
-
|
|
28504
|
-
}, children: p(iu, { name: "add", nodeData: a }) }), o == null ? void 0 : o.map(({ Element:
|
|
28505
|
-
c(
|
|
28494
|
+
}, className: "jer-copy-pulse", children: p(iu, { name: "copy", nodeData: a }) }), t && p("div", { onClick: (C) => {
|
|
28495
|
+
C.stopPropagation(), t();
|
|
28496
|
+
}, children: p(iu, { name: "edit", nodeData: a }) }), e && p("div", { onClick: (C) => {
|
|
28497
|
+
C.stopPropagation(), e();
|
|
28498
|
+
}, children: p(iu, { name: "delete", nodeData: a }) }), n && p("div", { onClick: (C) => {
|
|
28499
|
+
C.stopPropagation(), i === "object" ? h(!0) : n("");
|
|
28500
|
+
}, children: p(iu, { name: "add", nodeData: a }) }), o == null ? void 0 : o.map(({ Element: C, onClick: g }, b) => p("div", { onClick: (S) => g && g(a, S), children: p(C, { nodeData: a }) }, b)), f && n && i === "object" && E(ce, { children: [p("input", { className: "jer-input-new-key", type: "text", name: "new-object-key", value: m, onChange: (C) => A(C.target.value), autoFocus: !0, onFocus: (C) => C.target.select(), onKeyDown: (C) => {
|
|
28501
|
+
c(C, { stringConfirm: () => {
|
|
28506
28502
|
n && (h(!1), n(m), A(d));
|
|
28507
28503
|
}, cancel: () => {
|
|
28508
28504
|
h(!1), A(d);
|
|
28509
28505
|
} });
|
|
28510
|
-
}, style: u("input", a) }), p(FD, { onOk: (
|
|
28511
|
-
m && (
|
|
28512
|
-
}, onCancel: (
|
|
28513
|
-
|
|
28506
|
+
}, style: u("input", a) }), p(FD, { onOk: (C) => {
|
|
28507
|
+
m && (C.stopPropagation(), h(!1), n(m));
|
|
28508
|
+
}, onCancel: (C) => {
|
|
28509
|
+
C.stopPropagation(), h(!1);
|
|
28514
28510
|
}, nodeData: a })] })] });
|
|
28515
28511
|
}, FD = ({ onOk: t, onCancel: e, nodeData: n }) => E("div", { className: "jer-confirm-buttons", children: [p("div", { onClick: t, children: p(iu, { name: "ok", nodeData: n }) }), p("div", { onClick: e, children: p(iu, { name: "cancel", nodeData: n }) })] }), WNe = (t) => t.reduce((e, n) => typeof n == "number" ? `${e}[${n}]` : e === "" ? n : `${e}.${n}`, ""), KNe = ["string", "number", "boolean", "null", "object", "array"], bJ = (t = [], e) => {
|
|
28516
28512
|
const n = t.filter(({ condition: m }) => m(e));
|
|
@@ -28529,15 +28525,15 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28529
28525
|
}(r, ["element", "wrapperElement", "customNodeProps", "wrapperProps", "hideKey", "showEditTools", "showOnEdit", "showOnView", "showCollectionWrapper"]);
|
|
28530
28526
|
return Object.assign({ CustomNode: i, CustomWrapper: o, customNodeProps: a, wrapperProps: s, hideKey: l, showEditTools: c, showOnEdit: u, showOnView: d, showCollectionWrapper: f }, h);
|
|
28531
28527
|
}, CJ = ({ props: t, collapsed: e }) => {
|
|
28532
|
-
const { data: n, nodeData: r, parentData: i, onEdit: o, onError: a, showErrorMessages: s, restrictEditFilter: l, restrictDeleteFilter: c, restrictAddFilter: u, restrictDragFilter: d, translate: f, errorMessageTimeout: h } = t, { currentlyEditingElement: m, setCurrentlyEditingElement: A } = Mv(), [v, y] = G(null), w = Object.assign(Object.assign({}, r), { collapsed: e }), { path:
|
|
28528
|
+
const { data: n, nodeData: r, parentData: i, onEdit: o, onError: a, showErrorMessages: s, restrictEditFilter: l, restrictDeleteFilter: c, restrictAddFilter: u, restrictDragFilter: d, translate: f, errorMessageTimeout: h } = t, { currentlyEditingElement: m, setCurrentlyEditingElement: A } = Mv(), [v, y] = G(null), w = Object.assign(Object.assign({}, r), { collapsed: e }), { path: C, key: g, size: b } = w, S = Wh(C), T = xe(() => !l(w), [w]), I = xe(() => !c(w), [w]), R = xe(() => !u(w), [w]), $ = xe(() => !d(w) && I && m === null, [w]), O = (j) => {
|
|
28533
28529
|
s && (y(j), setTimeout(() => y(null), h)), console.warn("Error", j);
|
|
28534
28530
|
}, N = xe(() => (j, J) => {
|
|
28535
|
-
O(j.message), a && a({ currentData: w.fullData, errorValue: J, currentValue: n, name: g, path:
|
|
28536
|
-
}, [a, s]), q = m ===
|
|
28537
|
-
return { pathString:
|
|
28531
|
+
O(j.message), a && a({ currentData: w.fullData, errorValue: J, currentValue: n, name: g, path: C, error: j });
|
|
28532
|
+
}, [a, s]), q = m === S, H = m === `key_${S}`, Q = typeof C.slice(-1)[0] == "number";
|
|
28533
|
+
return { pathString: S, nodeData: w, path: C, name: g, size: b, canEdit: T, canDelete: I, canAdd: R, canDrag: $, error: v, showError: O, onError: N, setError: y, handleEditKey: (j) => {
|
|
28538
28534
|
if (A(null), g === j || !i)
|
|
28539
28535
|
return;
|
|
28540
|
-
const J =
|
|
28536
|
+
const J = C.slice(0, -1);
|
|
28541
28537
|
if (Object.keys(i).includes(j))
|
|
28542
28538
|
return void N({ code: "KEY_EXISTS", message: f("ERROR_KEY_EXISTS", w) }, j);
|
|
28543
28539
|
const ne = Object.fromEntries(Object.entries(i).map(([L, M]) => L === g ? [j, M] : [L, M]));
|
|
@@ -28555,14 +28551,14 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28555
28551
|
}, onDrop: (w) => {
|
|
28556
28552
|
w.stopPropagation(), v(y), c({ path: null, pathString: null }), d(!1);
|
|
28557
28553
|
}, onDragEnter: (w) => {
|
|
28558
|
-
var
|
|
28559
|
-
w.stopPropagation(), f.startsWith((
|
|
28554
|
+
var C;
|
|
28555
|
+
w.stopPropagation(), f.startsWith((C = l.pathString) !== null && C !== void 0 ? C : "") || d(y);
|
|
28560
28556
|
}, onDragExit: (w) => {
|
|
28561
28557
|
w.stopPropagation(), d(!1);
|
|
28562
28558
|
} } : {}, [l, e]), A = xe(() => e && l.pathString !== null ? p("div", Object.assign({ className: "jer-drop-target-bottom", style: { height: "50%", position: "absolute", width: "100%", top: "50%", zIndex: n.length } }, m("below"))) : null, [l, e]), v = (y) => {
|
|
28563
|
-
var w,
|
|
28564
|
-
const g = (w = l.path) === null || w === void 0 ? void 0 : w.slice(-1)[0], b = (
|
|
28565
|
-
typeof g == "string" && T && !Array.isArray(T) && Object.keys(T).includes(g) && g in T && b !==
|
|
28559
|
+
var w, C;
|
|
28560
|
+
const g = (w = l.path) === null || w === void 0 ? void 0 : w.slice(-1)[0], b = (C = l.path) === null || C === void 0 ? void 0 : C.slice(0, -1).join("."), S = n.slice(0, -1).join(""), { parentData: T } = r;
|
|
28561
|
+
typeof g == "string" && T && !Array.isArray(T) && Object.keys(T).includes(g) && g in T && b !== S ? o({ code: "KEY_EXISTS", message: a("ERROR_KEY_EXISTS", r) }, g) : i(l.path, n, y).then((I) => {
|
|
28566
28562
|
I && o({ code: "UPDATE_ERROR", message: I }, r.value);
|
|
28567
28563
|
});
|
|
28568
28564
|
};
|
|
@@ -28574,7 +28570,7 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28574
28570
|
`).map((c) => Math.ceil(c.length / s)).reduce((c, u) => c + u, 0) * a;
|
|
28575
28571
|
return Math.min(l + 30, window.innerHeight - 50);
|
|
28576
28572
|
}, wJ = (t) => {
|
|
28577
|
-
const { data: e, parentData: n, onEdit: r, onDelete: i, onChange: o, onMove: a, enableClipboard: s, canDragOnto: l, restrictTypeSelection: c, searchFilter: u, searchText: d, showLabel: f, stringTruncate: h, showStringQuotes: m, indent: A, translate: v, customNodeDefinitions: y, handleKeyboard: w, keyboardControls:
|
|
28573
|
+
const { data: e, parentData: n, onEdit: r, onDelete: i, onChange: o, onMove: a, enableClipboard: s, canDragOnto: l, restrictTypeSelection: c, searchFilter: u, searchText: d, showLabel: f, stringTruncate: h, showStringQuotes: m, indent: A, translate: v, customNodeDefinitions: y, handleKeyboard: w, keyboardControls: C, sort: g } = t, { getStyles: b } = ja(), { setCurrentlyEditingElement: S, setCollapseState: T, previouslyEditedElement: I, setPreviouslyEditedElement: R, tabDirection: $, setTabDirection: O } = Mv(), [N, q] = G(typeof e == "function" ? kI : e), { pathString: H, nodeData: Q, path: j, name: J, canEdit: ne, canDelete: L, canDrag: M, error: F, onError: V, handleEditKey: me, derivedValues: ge } = CJ({ props: t }), { dragSourceProps: De, getDropTargetProps: Ge, BottomDropTarget: xt, DropTargetPadding: Ie } = SJ({ canDrag: M, canDragOnto: l, path: j, nodeData: Q, onMove: a, onError: V, translate: v }), je = bJ(y, Q), [Et, Cn] = G(sy(e, je)), un = Zi((x) => {
|
|
28578
28574
|
if (!o)
|
|
28579
28575
|
return void q(x);
|
|
28580
28576
|
const ie = o({ currentData: Q.fullData, newValue: x, currentValue: N, name: J, path: j });
|
|
@@ -28593,13 +28589,13 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28593
28589
|
}, [Q, c]), { isEditing: Bt } = ge, Jr = hJ("value", Q, u, d);
|
|
28594
28590
|
if (Bt && (!Jr || !ne)) {
|
|
28595
28591
|
const x = Tl(Q.fullData, j, $, g);
|
|
28596
|
-
|
|
28592
|
+
S(x || I);
|
|
28597
28593
|
}
|
|
28598
28594
|
if (!Jr)
|
|
28599
28595
|
return null;
|
|
28600
28596
|
const Zt = () => {
|
|
28601
28597
|
let x;
|
|
28602
|
-
switch (
|
|
28598
|
+
switch (S(null), Et) {
|
|
28603
28599
|
case "object":
|
|
28604
28600
|
x = { [v("DEFAULT_NEW_KEY", Q)]: N };
|
|
28605
28601
|
break;
|
|
@@ -28618,33 +28614,33 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28618
28614
|
ie && V({ code: "UPDATE_ERROR", message: ie }, x);
|
|
28619
28615
|
});
|
|
28620
28616
|
}, pn = () => {
|
|
28621
|
-
|
|
28622
|
-
}, { isEditingKey: Sn, canEditKey: Zr } = ge, Xr = !Bt && F, Le = Bt && fn.length > 0, Oe = Et !== "invalid" && !F && ct, P = f && Sn, D = f && !Sn && !Tt, W = { value: N, parentData: n, setValue: un, isEditing: Bt, setIsEditing: ne ? () =>
|
|
28617
|
+
S(null), q(e), Cn(sy(e, je));
|
|
28618
|
+
}, { isEditingKey: Sn, canEditKey: Zr } = ge, Xr = !Bt && F, Le = Bt && fn.length > 0, Oe = Et !== "invalid" && !F && ct, P = f && Sn, D = f && !Sn && !Tt, W = { value: N, parentData: n, setValue: un, isEditing: Bt, setIsEditing: ne ? () => S(j) : () => {
|
|
28623
28619
|
}, handleEdit: Zt, handleCancel: pn, path: j, stringTruncate: h, showStringQuotes: m, nodeData: Q, translate: v, handleKeyboard: w, keyboardCommon: { cancel: pn, tabForward: () => {
|
|
28624
28620
|
O("next"), R(H);
|
|
28625
28621
|
const x = Tl(Q.fullData, j, "next", g);
|
|
28626
|
-
x && (Zt(),
|
|
28622
|
+
x && (Zt(), S(x));
|
|
28627
28623
|
}, tabBack: () => {
|
|
28628
28624
|
O("prev"), R(H);
|
|
28629
28625
|
const x = Tl(Q.fullData, j, "prev", g);
|
|
28630
|
-
x && (Zt(),
|
|
28631
|
-
} } }, ue = _e && (Bt && bt || !Bt && dn) ? p(_e, Object.assign({}, t, { value: N, customNodeProps: st, setValue: un, handleEdit: Zt, handleCancel: pn, handleKeyPress: (x) => w(x, { stringConfirm: Zt, cancel: pn }), isEditing: Bt, setIsEditing: () =>
|
|
28632
|
-
return E("div", Object.assign({ className: "jer-component jer-value-component", style: { marginLeft: A / 2 + "em", position: "relative" }, draggable: M }, De, Ge("above"), { children: [xt, p(Ie, { position: "above", nodeData: Q }), E("div", { className: "jer-value-main-row", style: { flexWrap: J.length > 10 ? "wrap" : "nowrap" }, children: [D && p("span", { className: "jer-key-text", style: Object.assign(Object.assign({}, b("property", Q)), { minWidth: `${Math.min(String(J).length + 1, 5)}ch`, flexShrink: J.length > 10 ? 1 : 0 }), onDoubleClick: () => Zr &&
|
|
28633
|
-
me(x.target.value),
|
|
28626
|
+
x && (Zt(), S(x));
|
|
28627
|
+
} } }, ue = _e && (Bt && bt || !Bt && dn) ? p(_e, Object.assign({}, t, { value: N, customNodeProps: st, setValue: un, handleEdit: Zt, handleCancel: pn, handleKeyPress: (x) => w(x, { stringConfirm: Zt, cancel: pn }), isEditing: Bt, setIsEditing: () => S(j), getStyles: b })) : qNe(sy(e), W);
|
|
28628
|
+
return E("div", Object.assign({ className: "jer-component jer-value-component", style: { marginLeft: A / 2 + "em", position: "relative" }, draggable: M }, De, Ge("above"), { children: [xt, p(Ie, { position: "above", nodeData: Q }), E("div", { className: "jer-value-main-row", style: { flexWrap: J.length > 10 ? "wrap" : "nowrap" }, children: [D && p("span", { className: "jer-key-text", style: Object.assign(Object.assign({}, b("property", Q)), { minWidth: `${Math.min(String(J).length + 1, 5)}ch`, flexShrink: J.length > 10 ? 1 : 0 }), onDoubleClick: () => Zr && S(j, "key"), children: J === "" ? p("span", { className: j.length > 0 ? "jer-empty-string" : void 0 }) : `${J}:` }), P && p("input", { className: "jer-input-text jer-key-edit", type: "text", name: H, defaultValue: J, autoFocus: !0, onFocus: (x) => x.target.select(), onKeyDown: (x) => w(x, { stringConfirm: () => me(x.target.value), cancel: pn, tabForward: () => {
|
|
28629
|
+
me(x.target.value), S(j);
|
|
28634
28630
|
}, tabBack: () => {
|
|
28635
|
-
me(x.target.value),
|
|
28636
|
-
} }), style: { width: String(J).length / 1.5 + 0.5 + "em" } }), E("div", { className: "jer-value-and-buttons", children: [p("div", { className: "jer-input-component", children: ue }), Bt ? p(FD, { onOk: Zt, onCancel: pn, nodeData: Q }) : Oe && p(yJ, { startEdit: ne ? () =>
|
|
28631
|
+
me(x.target.value), S(Tl(Q.fullData, j, "prev", g));
|
|
28632
|
+
} }), style: { width: String(J).length / 1.5 + 0.5 + "em" } }), E("div", { className: "jer-value-and-buttons", children: [p("div", { className: "jer-input-component", children: ue }), Bt ? p(FD, { onOk: Zt, onCancel: pn, nodeData: Q }) : Oe && p(yJ, { startEdit: ne ? () => S(j, pn) : void 0, handleDelete: L ? () => {
|
|
28637
28633
|
i(N, j).then((x) => {
|
|
28638
28634
|
x && V({ code: "DELETE_ERROR", message: x }, N);
|
|
28639
28635
|
});
|
|
28640
|
-
} : void 0, enableClipboard: s, translate: v, customButtons: t.customButtons, nodeData: Q, handleKeyboard: w, keyboardControls:
|
|
28636
|
+
} : void 0, enableClipboard: s, translate: v, customButtons: t.customButtons, nodeData: Q, handleKeyboard: w, keyboardControls: C }), Le && E("div", { className: "jer-select", children: [p("select", { name: `${J}-type-select`, className: "jer-type-select", onChange: (x) => ((ie) => {
|
|
28641
28637
|
const pe = y.find((se) => se.name === ie);
|
|
28642
28638
|
if (pe)
|
|
28643
|
-
r(pe.defaultValue, j), Cn(ie),
|
|
28639
|
+
r(pe.defaultValue, j), Cn(ie), S(null), T({ path: j, collapsed: !1 });
|
|
28644
28640
|
else {
|
|
28645
28641
|
const se = VNe(N, ie, v("DEFAULT_NEW_KEY", Q), je != null && je.CustomNode ? v("DEFAULT_STRING", Q) : void 0);
|
|
28646
28642
|
un(se), r(se, j).then((Ce) => {
|
|
28647
|
-
Ce && (V({ code: "UPDATE_ERROR", message: Ce }, se),
|
|
28643
|
+
Ce && (V({ code: "UPDATE_ERROR", message: Ce }, se), S(null));
|
|
28648
28644
|
});
|
|
28649
28645
|
}
|
|
28650
28646
|
})(x.target.value), value: Et, children: fn.map((x) => p("option", { value: x, children: x }, x)) }), p("span", { className: "focus" })] }), Xr && p("span", { className: "jer-error-slug", style: b("error", Q), children: F })] })] }), p(Ie, { position: "below", nodeData: Q })] }));
|
|
@@ -28682,7 +28678,7 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28682
28678
|
return String(t);
|
|
28683
28679
|
}
|
|
28684
28680
|
}, TJ = (t) => {
|
|
28685
|
-
const { getStyles: e } = ja(), { collapseState: n, setCollapseState: r, doesPathMatch: i, currentlyEditingElement: o, setCurrentlyEditingElement: a, areChildrenBeingEdited: s } = Mv(), { mainContainerRef: l, data: c, nodeData: u, parentData: d, showCollectionCount: f, onEdit: h, onAdd: m, onDelete: A, canDragOnto: v, collapseFilter: y, collapseAnimationTime: w, onMove:
|
|
28681
|
+
const { getStyles: e } = ja(), { collapseState: n, setCollapseState: r, doesPathMatch: i, currentlyEditingElement: o, setCurrentlyEditingElement: a, areChildrenBeingEdited: s } = Mv(), { mainContainerRef: l, data: c, nodeData: u, parentData: d, showCollectionCount: f, onEdit: h, onAdd: m, onDelete: A, canDragOnto: v, collapseFilter: y, collapseAnimationTime: w, onMove: C, enableClipboard: g, searchFilter: b, searchText: S, indent: T, sort: I, showArrayIndices: R, defaultValue: $, translate: O, customNodeDefinitions: N, jsonParse: q, jsonStringify: H, TextEditor: Q, keyboardControls: j, handleKeyboard: J, insertAtTop: ne } = t, [L, M] = G(H(c)), F = y(u), { contentRef: V, isAnimating: me, maxHeight: ge, collapsed: De, animateCollapse: Ge } = ((ve, mt, ul, ia) => {
|
|
28686
28682
|
const [Jv, Zv] = G(ul ? 0 : void 0), [Nw, Pre] = G(ul), Bw = Ve(!1), Ww = Ve(null), sP = Ve(0), lP = Ve();
|
|
28687
28683
|
return { contentRef: Ww, isAnimating: Bw.current, animateCollapse: (Kw) => {
|
|
28688
28684
|
var jw, qw;
|
|
@@ -28703,7 +28699,7 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28703
28699
|
}, mt);
|
|
28704
28700
|
}
|
|
28705
28701
|
}, maxHeight: Jv, collapsed: Nw };
|
|
28706
|
-
})(c, w, F, l), { pathString: xt, nodeData: Ie, path: je, name: Et, size: Cn, canEdit: un, canDelete: _e, canAdd: st, canDrag: Tt, error: ct, setError: bt, onError: dn, handleEditKey: Bn, derivedValues: fn } = CJ({ props: t, collapsed: De }), { dragSourceProps: Bt, getDropTargetProps: Jr, BottomDropTarget: Zt, DropTargetPadding: pn } = SJ({ canDrag: Tt, canDragOnto: v, path: je, nodeData: Ie, onMove:
|
|
28702
|
+
})(c, w, F, l), { pathString: xt, nodeData: Ie, path: je, name: Et, size: Cn, canEdit: un, canDelete: _e, canAdd: st, canDrag: Tt, error: ct, setError: bt, onError: dn, handleEditKey: Bn, derivedValues: fn } = CJ({ props: t, collapsed: De }), { dragSourceProps: Bt, getDropTargetProps: Jr, BottomDropTarget: Zt, DropTargetPadding: pn } = SJ({ canDrag: Tt, canDragOnto: v, path: je, nodeData: Ie, onMove: C, onError: dn, translate: O }), Sn = Ve(!F);
|
|
28707
28703
|
Qe(() => {
|
|
28708
28704
|
M(H(c)), Kn && a(null);
|
|
28709
28705
|
}, [c]), Qe(() => {
|
|
@@ -28713,7 +28709,7 @@ const pJ = ({ className: t, name: e, value: n, setValue: r, handleKeyPress: i, s
|
|
|
28713
28709
|
n !== null && i(je) && (Sn.current = !0, Ge(n.collapsed));
|
|
28714
28710
|
}, [n]);
|
|
28715
28711
|
const Zr = Ve(null), Xr = xe(() => (ve, mt) => typeof $ != "function" ? $ : $(ve, mt), [$]), { CustomNode: Le, customNodeProps: Oe, CustomWrapper: P, wrapperProps: D = {}, hideKey: W, showEditTools: ue = !0, showOnEdit: x, showOnView: ie, showCollectionWrapper: pe = !0 } = xe(() => bJ(N, Ie), []), se = s(xt);
|
|
28716
|
-
if (se && De && Ge(!1), !(hJ("collection", Ie, b,
|
|
28712
|
+
if (se && De && Ge(!1), !(hJ("collection", Ie, b, S) || Ie.level === 0) && !se)
|
|
28717
28713
|
return null;
|
|
28718
28714
|
const Ce = Array.isArray(c) ? "array" : "object", ht = Ce === "array" ? { open: "[", close: "]" } : { open: "{", close: "}" }, Wn = (ve) => {
|
|
28719
28715
|
if (ve.key !== "Tab" || ve.getModifierState("Shift"))
|
|
@@ -28810,7 +28806,7 @@ var GP = [], Qh = [];
|
|
|
28810
28806
|
}
|
|
28811
28807
|
})(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-expand-transition-time:0.3s;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden,.jer-visible{transition:var(--jer-expand-transition-time)}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative;transition:var(--jer-expand-transition-time)}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:transform var(--jer-expand-transition-time)}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-accordion-icon,.jer-rotate-90{transition:transform var(--jer-expand-transition-time)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string:after{content:"<empty string>:";font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}', {});
|
|
28812
28808
|
const HNe = ({ data: t, setData: e, rootName: n = "root", onUpdate: r = () => {
|
|
28813
|
-
}, onEdit: i = r, onDelete: o = r, onAdd: a = r, onChange: s, onError: l, showErrorMessages: c = !0, enableClipboard: u = !0, indent: d = 2, collapse: f = !1, collapseAnimationTime: h = 300, showCollectionCount: m = !0, restrictEdit: A = !1, restrictDelete: v = !1, restrictAdd: y = !1, restrictTypeSelection: w = !1, restrictDrag:
|
|
28809
|
+
}, onEdit: i = r, onDelete: o = r, onAdd: a = r, onChange: s, onError: l, showErrorMessages: c = !0, enableClipboard: u = !0, indent: d = 2, collapse: f = !1, collapseAnimationTime: h = 300, showCollectionCount: m = !0, restrictEdit: A = !1, restrictDelete: v = !1, restrictAdd: y = !1, restrictTypeSelection: w = !1, restrictDrag: C = !0, searchFilter: g, searchText: b, searchDebounceTime: S = 350, keySort: T = !1, showArrayIndices: I = !0, showStringQuotes: R = !0, defaultValue: $ = null, minWidth: O = 250, maxWidth: N = "min(600px, 90vw)", rootFontSize: q, stringTruncate: H = 250, translations: Q = {}, className: j, id: J, customText: ne = {}, customNodeDefinitions: L = [], customButtons: M = [], jsonParse: F = JSON.parse, jsonStringify: V = (xt) => JSON.stringify(xt, null, 2), TextEditor: me, errorMessageTimeout: ge = 2500, keyboardControls: De = {}, insertAtTop: Ge = !1 }) => {
|
|
28814
28810
|
const { getStyles: xt } = ja(), { setCurrentlyEditingElement: Ie } = Mv(), je = Zi(Yh(f), [f]), Et = Zi(QNe(Q, ne), [Q, ne]), [Cn, un] = G(b), [_e, st] = (({ setData: Le, data: Oe }) => {
|
|
28815
28811
|
const [P, D] = G(Le ? void 0 : Oe), W = Zi((ue) => {
|
|
28816
28812
|
Le ? Le(ue) : D(ue);
|
|
@@ -28821,9 +28817,9 @@ const HNe = ({ data: t, setData: e, rootName: n = "root", onUpdate: r = () => {
|
|
|
28821
28817
|
})({ setData: e, data: t }), Tt = Ve(null);
|
|
28822
28818
|
Qe(() => {
|
|
28823
28819
|
Ie(null);
|
|
28824
|
-
const Le = setTimeout(() => un(b),
|
|
28820
|
+
const Le = setTimeout(() => un(b), S);
|
|
28825
28821
|
return () => clearTimeout(Le);
|
|
28826
|
-
}, [b,
|
|
28822
|
+
}, [b, S]);
|
|
28827
28823
|
const ct = { key: n, path: [], level: 0, index: 0, value: _e, size: typeof _e == "object" && _e !== null ? Object.keys(_e).length : 1, parentData: null, fullData: _e }, bt = (Le, Oe) => hf(void 0, void 0, void 0, function* () {
|
|
28828
28824
|
const P = yield Le(Oe);
|
|
28829
28825
|
if (P === !0 || P === void 0)
|
|
@@ -28832,7 +28828,7 @@ const HNe = ({ data: t, setData: e, rootName: n = "root", onUpdate: r = () => {
|
|
|
28832
28828
|
if (W === "error")
|
|
28833
28829
|
return st(Oe.currentData), ue === !1 ? Et("ERROR_UPDATE", ct) : String(ue);
|
|
28834
28830
|
st(ue);
|
|
28835
|
-
}), dn = xe(() => Yh(A), [A]), Bn = xe(() => Yh(v), [v]), fn = xe(() => Yh(y), [y]), Bt = xe(() => Yh(
|
|
28831
|
+
}), dn = xe(() => Yh(A), [A]), Bn = xe(() => Yh(v), [v]), fn = xe(() => Yh(y), [y]), Bt = xe(() => Yh(C), [C]), Jr = xe(() => GNe(g), [g]), Zt = xe(() => ((Le) => {
|
|
28836
28832
|
const Oe = Object.assign({}, YP);
|
|
28837
28833
|
for (const P of Object.keys(YP)) {
|
|
28838
28834
|
const D = P;
|
|
@@ -30193,7 +30189,7 @@ function sw() {
|
|
|
30193
30189
|
}),
|
|
30194
30190
|
y
|
|
30195
30191
|
]);
|
|
30196
|
-
const
|
|
30192
|
+
const C = i.intersection([
|
|
30197
30193
|
i.union([
|
|
30198
30194
|
y,
|
|
30199
30195
|
i.strict({
|
|
@@ -30204,15 +30200,15 @@ function sw() {
|
|
|
30204
30200
|
text: i.string,
|
|
30205
30201
|
variant: i.string
|
|
30206
30202
|
}))
|
|
30207
|
-
]), g = new i.Type("FileLink", (F) => (0, l.hasContentType)(F) && F.__TYPE__ === t.FileLinkType, (F) => (0, r.pipe)(
|
|
30203
|
+
]), g = new i.Type("FileLink", (F) => (0, l.hasContentType)(F) && F.__TYPE__ === t.FileLinkType, (F) => (0, r.pipe)(C.decode(F), n.either.map((V) => t.FileLinkContent.encode({
|
|
30208
30204
|
...V,
|
|
30209
30205
|
__TYPE__: t.FileLinkType
|
|
30210
|
-
}))), (F) =>
|
|
30206
|
+
}))), (F) => C.encode(F));
|
|
30211
30207
|
t.FileLinkContent = i.intersection([
|
|
30212
30208
|
i.strict({
|
|
30213
30209
|
__TYPE__: i.literal(t.FileLinkType)
|
|
30214
30210
|
}),
|
|
30215
|
-
|
|
30211
|
+
C
|
|
30216
30212
|
]), t.MediaLinkType = "MediaLink";
|
|
30217
30213
|
const b = i.intersection([
|
|
30218
30214
|
i.strict({
|
|
@@ -30222,7 +30218,7 @@ function sw() {
|
|
|
30222
30218
|
text: i.string,
|
|
30223
30219
|
variant: i.string
|
|
30224
30220
|
}))
|
|
30225
|
-
]),
|
|
30221
|
+
]), S = new i.Type("MediaLink", (F) => (0, l.hasContentType)(F) && F.__TYPE__ === t.MediaLinkType, (F) => (0, r.pipe)(b.decode(F), n.either.map((V) => t.MediaLinkContent.encode({
|
|
30226
30222
|
...V,
|
|
30227
30223
|
__TYPE__: t.MediaLinkType
|
|
30228
30224
|
}))), (F) => b.encode(F));
|
|
@@ -30331,7 +30327,7 @@ function sw() {
|
|
|
30331
30327
|
g,
|
|
30332
30328
|
$,
|
|
30333
30329
|
H,
|
|
30334
|
-
|
|
30330
|
+
S,
|
|
30335
30331
|
j
|
|
30336
30332
|
]));
|
|
30337
30333
|
const ne = (F) => new i.Type("LinkLegacy", t.isLinkContent, (V) => (0, r.pipe)(t.LinkLegacy.decode(V), n.either.map(({ key: me, ...ge }) => t.LinkContent.encode({
|
|
@@ -30401,11 +30397,11 @@ function NJ() {
|
|
|
30401
30397
|
const c = (f) => (0, a.hasContentType)(f) && f.__TYPE__ === l;
|
|
30402
30398
|
t.isRepeatableContent = c;
|
|
30403
30399
|
const u = (f, h) => new o.Type("RepeatableLegacy", t.isRepeatableContent, (m) => (0, i.pipe)(o.array(o.unknown).decode(m), n.either.map((v) => ({
|
|
30404
|
-
value: v.reduce((w,
|
|
30400
|
+
value: v.reduce((w, C) => {
|
|
30405
30401
|
let g;
|
|
30406
30402
|
switch (h) {
|
|
30407
30403
|
case "Link":
|
|
30408
|
-
g = (0, s.LinkContentLegacy)(f).decode(
|
|
30404
|
+
g = (0, s.LinkContentLegacy)(f).decode(C);
|
|
30409
30405
|
break;
|
|
30410
30406
|
}
|
|
30411
30407
|
return !g || (0, r.isLeft)(g) ? w : [...w, g.right];
|
|
@@ -30414,33 +30410,33 @@ function NJ() {
|
|
|
30414
30410
|
__TYPE__: "RepeatableContent"
|
|
30415
30411
|
}))), (m) => ({
|
|
30416
30412
|
content: o.array(s.LinkContent).encode(m.value).reduce((y, w) => {
|
|
30417
|
-
let
|
|
30413
|
+
let C;
|
|
30418
30414
|
switch (w.__TYPE__) {
|
|
30419
30415
|
case s.LinkContentType:
|
|
30420
|
-
|
|
30416
|
+
C = (0, s.LinkContentLegacy)(f).encode(w);
|
|
30421
30417
|
break;
|
|
30422
30418
|
}
|
|
30423
|
-
return
|
|
30419
|
+
return C ? [...y, C] : y;
|
|
30424
30420
|
}, []).map((y) => y.content),
|
|
30425
30421
|
types: { [f.keyOfType]: `Repeatable.${h}` }
|
|
30426
30422
|
}));
|
|
30427
30423
|
t.RepeatableLegacy = u;
|
|
30428
30424
|
function d({ path: f, key: h, apiId: m, model: A, content: v }) {
|
|
30429
30425
|
return (y) => {
|
|
30430
|
-
const w = v.value.reduce((
|
|
30431
|
-
const
|
|
30426
|
+
const w = v.value.reduce((C, g, b) => {
|
|
30427
|
+
const S = f.concat([
|
|
30432
30428
|
{ key: b.toString(), type: "Widget" }
|
|
30433
30429
|
]), T = (A == null ? void 0 : A.type) === "Link" && A.config ? {
|
|
30434
30430
|
...A,
|
|
30435
30431
|
config: { ...A.config, repeat: !1 }
|
|
30436
30432
|
} : A, I = y({
|
|
30437
|
-
path:
|
|
30433
|
+
path: S,
|
|
30438
30434
|
key: h,
|
|
30439
30435
|
apiId: m,
|
|
30440
30436
|
model: T,
|
|
30441
30437
|
content: g
|
|
30442
30438
|
});
|
|
30443
|
-
return !I || !(0, s.isLinkContent)(I) ?
|
|
30439
|
+
return !I || !(0, s.isLinkContent)(I) ? C : C.concat(I);
|
|
30444
30440
|
}, []);
|
|
30445
30441
|
return y({
|
|
30446
30442
|
path: f,
|
|
@@ -30518,10 +30514,10 @@ function IU() {
|
|
|
30518
30514
|
]));
|
|
30519
30515
|
t.ImageBlock = y(f.FilledLink);
|
|
30520
30516
|
const w = y(f.FilledLinkLegacy);
|
|
30521
|
-
function
|
|
30517
|
+
function C(R) {
|
|
30522
30518
|
return R.type === s.RichTextNodeType.image;
|
|
30523
30519
|
}
|
|
30524
|
-
t.checkImageBlock =
|
|
30520
|
+
t.checkImageBlock = C;
|
|
30525
30521
|
const g = o.exact(o.intersection([
|
|
30526
30522
|
o.type({
|
|
30527
30523
|
type: o.literal(s.RichTextNodeType.embed),
|
|
@@ -30552,10 +30548,10 @@ function IU() {
|
|
|
30552
30548
|
direction: l.StringOrNull
|
|
30553
30549
|
})
|
|
30554
30550
|
]));
|
|
30555
|
-
function
|
|
30551
|
+
function S(R) {
|
|
30556
30552
|
return R.type === s.RichTextNodeType.embed;
|
|
30557
30553
|
}
|
|
30558
|
-
t.checkEmbedBlock =
|
|
30554
|
+
t.checkEmbedBlock = S;
|
|
30559
30555
|
const T = (R) => o.exact(o.intersection([
|
|
30560
30556
|
o.type({
|
|
30561
30557
|
type: (0, c.refineType)(s.RichTextNodeTypeCodec, `string which isn't ${s.RichTextNodeType.image} ${s.RichTextNodeType.embed}`, ($) => $ !== s.RichTextNodeType.image && $ !== s.RichTextNodeType.embed),
|
|
@@ -30656,9 +30652,9 @@ function WJ() {
|
|
|
30656
30652
|
content: i.array(f)
|
|
30657
30653
|
}), m = (v) => new i.Type("TableLegacy", t.isTableContent, (y) => (0, r.pipe)(h.decode(y), n.either.map((w) => ({
|
|
30658
30654
|
__TYPE__: "TableContent",
|
|
30659
|
-
content: w.content.map((
|
|
30660
|
-
...
|
|
30661
|
-
content:
|
|
30655
|
+
content: w.content.map((C) => ({
|
|
30656
|
+
...C,
|
|
30657
|
+
content: C.content.map((g) => ({
|
|
30662
30658
|
...g,
|
|
30663
30659
|
content: {
|
|
30664
30660
|
__TYPE__: "StructuredTextContent",
|
|
@@ -30670,18 +30666,18 @@ function WJ() {
|
|
|
30670
30666
|
content: h.encode({
|
|
30671
30667
|
content: y.content.map((w) => ({
|
|
30672
30668
|
...w,
|
|
30673
|
-
content: w.content.map((
|
|
30674
|
-
...
|
|
30675
|
-
content:
|
|
30669
|
+
content: w.content.map((C) => ({
|
|
30670
|
+
...C,
|
|
30671
|
+
content: C.content.value
|
|
30676
30672
|
}))
|
|
30677
30673
|
}))
|
|
30678
30674
|
}),
|
|
30679
30675
|
types: { [v.keyOfType]: "Table" }
|
|
30680
30676
|
}));
|
|
30681
30677
|
t.TableLegacy = m;
|
|
30682
|
-
function A({ path: v, key: y, apiId: w, model:
|
|
30678
|
+
function A({ path: v, key: y, apiId: w, model: C, content: g }) {
|
|
30683
30679
|
return (b) => {
|
|
30684
|
-
const
|
|
30680
|
+
const S = g.content.map((T, I) => ({
|
|
30685
30681
|
...T,
|
|
30686
30682
|
content: T.content.map((R, $) => {
|
|
30687
30683
|
const O = v.concat([
|
|
@@ -30712,10 +30708,10 @@ function WJ() {
|
|
|
30712
30708
|
path: v,
|
|
30713
30709
|
key: y,
|
|
30714
30710
|
apiId: w,
|
|
30715
|
-
model:
|
|
30711
|
+
model: C,
|
|
30716
30712
|
content: {
|
|
30717
30713
|
__TYPE__: g.__TYPE__,
|
|
30718
|
-
content:
|
|
30714
|
+
content: S
|
|
30719
30715
|
}
|
|
30720
30716
|
});
|
|
30721
30717
|
};
|
|
@@ -30749,93 +30745,93 @@ function dWe() {
|
|
|
30749
30745
|
A.TableContent,
|
|
30750
30746
|
f.RepeatableContent
|
|
30751
30747
|
]);
|
|
30752
|
-
const v = (
|
|
30753
|
-
switch (
|
|
30748
|
+
const v = (C) => {
|
|
30749
|
+
switch (C.type) {
|
|
30754
30750
|
case "Boolean":
|
|
30755
|
-
return (0, i.BooleanContentDefaultValue)(
|
|
30751
|
+
return (0, i.BooleanContentDefaultValue)(C);
|
|
30756
30752
|
case "Select":
|
|
30757
|
-
return (0, a.SelectContentDefaultValue)(
|
|
30753
|
+
return (0, a.SelectContentDefaultValue)(C);
|
|
30758
30754
|
default:
|
|
30759
30755
|
return;
|
|
30760
30756
|
}
|
|
30761
30757
|
};
|
|
30762
30758
|
wo.NestableContentDefaultValue = v;
|
|
30763
|
-
const y = (
|
|
30759
|
+
const y = (C) => (0, a.isTextContent)(C) || (0, a.isColorContent)(C) || (0, a.isDateContent)(C) || (0, a.isTimestampContent)(C) || (0, a.isNumberContent)(C) || (0, a.isRangeContent)(C) || (0, a.isSelectContent)(C) || (0, l.isGeoPointContent)(C) || (0, h.isRichTextContent)(C) || (0, i.isBooleanContent)(C) || (0, o.isEmbedContent)(C) || (0, c.isImageContent)(C) || (0, u.isIntegrationFieldContent)(C) || (0, d.isLinkContent)(C) || (0, m.isSeparatorContent)(C) || (0, A.isTableContent)(C) || (0, r.isEmptyContent)(C) || (0, f.isRepeatableContent)(C);
|
|
30764
30760
|
wo.isNestableContent = y;
|
|
30765
|
-
const w = (
|
|
30761
|
+
const w = (C) => ({
|
|
30766
30762
|
decode(g) {
|
|
30767
|
-
if (!
|
|
30763
|
+
if (!C.fieldType)
|
|
30768
30764
|
return;
|
|
30769
|
-
const b = (0, r.EmptyLegacy)(
|
|
30765
|
+
const b = (0, r.EmptyLegacy)(C.fieldType).decode(g);
|
|
30770
30766
|
if ((0, e.isRight)(b))
|
|
30771
30767
|
return b;
|
|
30772
|
-
const
|
|
30773
|
-
switch (
|
|
30768
|
+
const S = (() => {
|
|
30769
|
+
switch (C.fieldType) {
|
|
30774
30770
|
case "Text":
|
|
30775
|
-
return (0, a.TextLegacy)(
|
|
30771
|
+
return (0, a.TextLegacy)(C);
|
|
30776
30772
|
case "Color":
|
|
30777
|
-
return (0, a.ColorLegacy)(
|
|
30773
|
+
return (0, a.ColorLegacy)(C);
|
|
30778
30774
|
case "Date":
|
|
30779
|
-
return (0, a.DateLegacy)(
|
|
30775
|
+
return (0, a.DateLegacy)(C);
|
|
30780
30776
|
case "Timestamp":
|
|
30781
|
-
return (0, a.TimestampLegacy)(
|
|
30777
|
+
return (0, a.TimestampLegacy)(C);
|
|
30782
30778
|
case "Number":
|
|
30783
|
-
return (0, a.NumberLegacy)(
|
|
30779
|
+
return (0, a.NumberLegacy)(C);
|
|
30784
30780
|
case "Range":
|
|
30785
|
-
return (0, a.RangeLegacy)(
|
|
30781
|
+
return (0, a.RangeLegacy)(C);
|
|
30786
30782
|
case "Select":
|
|
30787
|
-
return (0, a.SelectLegacy)(
|
|
30783
|
+
return (0, a.SelectLegacy)(C);
|
|
30788
30784
|
case "GeoPoint":
|
|
30789
|
-
return (0, l.GeoPointLegacy)(
|
|
30785
|
+
return (0, l.GeoPointLegacy)(C);
|
|
30790
30786
|
case "StructuredText":
|
|
30791
|
-
return (0, h.RichTextLegacy)(
|
|
30787
|
+
return (0, h.RichTextLegacy)(C);
|
|
30792
30788
|
case "Boolean":
|
|
30793
|
-
return (0, i.BooleanLegacy)(
|
|
30789
|
+
return (0, i.BooleanLegacy)(C);
|
|
30794
30790
|
case "Embed":
|
|
30795
|
-
return (0, o.EmbedLegacy)(
|
|
30791
|
+
return (0, o.EmbedLegacy)(C);
|
|
30796
30792
|
case "Image":
|
|
30797
|
-
return (0, c.ImageLegacy)(
|
|
30793
|
+
return (0, c.ImageLegacy)(C);
|
|
30798
30794
|
case "IntegrationFields":
|
|
30799
|
-
return (0, u.IntegrationFieldLegacy)(
|
|
30795
|
+
return (0, u.IntegrationFieldLegacy)(C);
|
|
30800
30796
|
case "Link":
|
|
30801
|
-
return (0, d.LinkContentLegacy)(
|
|
30797
|
+
return (0, d.LinkContentLegacy)(C);
|
|
30802
30798
|
case "Separator":
|
|
30803
|
-
return (0, m.SeparatorLegacy)(
|
|
30799
|
+
return (0, m.SeparatorLegacy)(C);
|
|
30804
30800
|
case "Table":
|
|
30805
|
-
return (0, A.TableLegacy)(
|
|
30801
|
+
return (0, A.TableLegacy)(C);
|
|
30806
30802
|
case "Repeatable.Link":
|
|
30807
|
-
return (0, f.RepeatableLegacy)(
|
|
30803
|
+
return (0, f.RepeatableLegacy)(C, "Link");
|
|
30808
30804
|
default:
|
|
30809
30805
|
return;
|
|
30810
30806
|
}
|
|
30811
30807
|
})();
|
|
30812
|
-
if (
|
|
30813
|
-
return
|
|
30808
|
+
if (S)
|
|
30809
|
+
return S.decode(g);
|
|
30814
30810
|
},
|
|
30815
30811
|
encode(g) {
|
|
30816
30812
|
switch (g.__TYPE__) {
|
|
30817
30813
|
case s.FieldContentType:
|
|
30818
|
-
return g.type === "Text" ? (0, a.TextLegacy)(
|
|
30814
|
+
return g.type === "Text" ? (0, a.TextLegacy)(C).encode(g) : g.type === "Color" ? (0, a.ColorLegacy)(C).encode(g) : g.type === "Range" ? (0, a.RangeLegacy)(C).encode(g) : g.type === "Date" ? (0, a.DateLegacy)(C).encode(g) : g.type === "Number" ? (0, a.NumberLegacy)(C).encode(g) : g.type === "Timestamp" ? (0, a.TimestampLegacy)(C).encode(g) : g.type === "Select" ? (0, a.SelectLegacy)(C).encode(g) : void 0;
|
|
30819
30815
|
case l.GeoPointContentType:
|
|
30820
|
-
return (0, l.GeoPointLegacy)(
|
|
30816
|
+
return (0, l.GeoPointLegacy)(C).encode(g);
|
|
30821
30817
|
case h.RichTextContentType:
|
|
30822
|
-
return (0, h.RichTextLegacy)(
|
|
30818
|
+
return (0, h.RichTextLegacy)(C).encode(g);
|
|
30823
30819
|
case o.EmbedContentType:
|
|
30824
|
-
return (0, o.EmbedLegacy)(
|
|
30820
|
+
return (0, o.EmbedLegacy)(C).encode(g);
|
|
30825
30821
|
case i.BooleanContentType:
|
|
30826
|
-
return (0, i.BooleanLegacy)(
|
|
30822
|
+
return (0, i.BooleanLegacy)(C).encode(g);
|
|
30827
30823
|
case c.ImageContentType:
|
|
30828
|
-
return (0, c.ImageLegacy)(
|
|
30824
|
+
return (0, c.ImageLegacy)(C).encode(g);
|
|
30829
30825
|
case u.IntegrationFieldContentType:
|
|
30830
|
-
return (0, u.IntegrationFieldLegacy)(
|
|
30826
|
+
return (0, u.IntegrationFieldLegacy)(C).encode(g);
|
|
30831
30827
|
case d.LinkContentType:
|
|
30832
|
-
return (0, d.LinkContentLegacy)(
|
|
30828
|
+
return (0, d.LinkContentLegacy)(C).encode(g);
|
|
30833
30829
|
case m.SeparatorContentType:
|
|
30834
|
-
return (0, m.SeparatorLegacy)(
|
|
30830
|
+
return (0, m.SeparatorLegacy)(C).encode(g);
|
|
30835
30831
|
case A.TableContentType:
|
|
30836
|
-
return (0, A.TableLegacy)(
|
|
30832
|
+
return (0, A.TableLegacy)(C).encode(g);
|
|
30837
30833
|
case "RepeatableContent":
|
|
30838
|
-
return (0, f.RepeatableLegacy)(
|
|
30834
|
+
return (0, f.RepeatableLegacy)(C, g.type).encode(g);
|
|
30839
30835
|
default:
|
|
30840
30836
|
return;
|
|
30841
30837
|
}
|
|
@@ -30938,14 +30934,14 @@ function sl() {
|
|
|
30938
30934
|
__TYPE__: t.GroupContentType,
|
|
30939
30935
|
value: []
|
|
30940
30936
|
};
|
|
30941
|
-
const f = o.record(o.string, o.unknown), h = (w) => new o.Type("GroupItemLegacy", (
|
|
30937
|
+
const f = o.record(o.string, o.unknown), h = (w) => new o.Type("GroupItemLegacy", (C) => (0, l.hasContentType)(C) && C.__TYPE__ === t.GroupItemContentType, (C) => (0, i.pipe)(f.decode(C), n.either.map((b) => ({
|
|
30942
30938
|
value: Object.entries(b).reduce((T, [I, R]) => {
|
|
30943
30939
|
const $ = (0, s.getFieldCtx)(I, w), O = $.fieldType === a.GroupFieldType ? (0, t.GroupLegacy)($).decode(R) : (0, c.NestableLegacy)($).decode(R);
|
|
30944
30940
|
return !O || (0, r.isLeft)(O) ? T : [...T, [I, O.right]];
|
|
30945
30941
|
}, []),
|
|
30946
30942
|
__TYPE__: t.GroupItemContentType
|
|
30947
|
-
}))), (
|
|
30948
|
-
const T = (0, s.getFieldCtx)(b, w), I = (0, t.isGroupContent)(
|
|
30943
|
+
}))), (C) => C.value.reduce((g, [b, S]) => {
|
|
30944
|
+
const T = (0, s.getFieldCtx)(b, w), I = (0, t.isGroupContent)(S) ? (0, t.GroupLegacy)(T).encode(S) : (0, c.NestableLegacy)(T).encode(S);
|
|
30949
30945
|
return I ? {
|
|
30950
30946
|
content: { ...g.content, [b]: I.content },
|
|
30951
30947
|
types: { ...g.types, ...I.types }
|
|
@@ -30953,55 +30949,55 @@ function sl() {
|
|
|
30953
30949
|
}, { content: {}, types: {} }));
|
|
30954
30950
|
t.GroupItemLegacy = h;
|
|
30955
30951
|
const m = (w) => {
|
|
30956
|
-
const
|
|
30957
|
-
return new o.Type("GroupLegacy", t.isGroupContent, (b) => (0, i.pipe)(
|
|
30958
|
-
value:
|
|
30952
|
+
const C = o.array(o.union([o.null, (0, t.GroupItemLegacy)(w)])), g = o.array((0, t.GroupItemLegacy)(w));
|
|
30953
|
+
return new o.Type("GroupLegacy", t.isGroupContent, (b) => (0, i.pipe)(C.decode(b), n.either.map((S) => ({
|
|
30954
|
+
value: S.map((T) => T === null ? { __TYPE__: t.GroupItemContentType, value: [] } : T),
|
|
30959
30955
|
__TYPE__: t.GroupContentType
|
|
30960
30956
|
}))), (b) => {
|
|
30961
|
-
const
|
|
30957
|
+
const S = g.encode(b.value);
|
|
30962
30958
|
return {
|
|
30963
|
-
content:
|
|
30964
|
-
types:
|
|
30959
|
+
content: S.map((T) => T.content),
|
|
30960
|
+
types: S.reduce((T, I) => ({ ...T, ...I.types }), { [w.keyOfType]: a.GroupFieldType })
|
|
30965
30961
|
};
|
|
30966
30962
|
});
|
|
30967
30963
|
};
|
|
30968
30964
|
t.GroupLegacy = m;
|
|
30969
|
-
function A(w,
|
|
30965
|
+
function A(w, C) {
|
|
30970
30966
|
var g;
|
|
30971
30967
|
const b = (g = w.config) === null || g === void 0 ? void 0 : g.fields;
|
|
30972
30968
|
return b ? {
|
|
30973
|
-
...
|
|
30974
|
-
value: (0, u.repeatableContentWithDefaultNestableContentValues)(b,
|
|
30975
|
-
} :
|
|
30969
|
+
...C,
|
|
30970
|
+
value: (0, u.repeatableContentWithDefaultNestableContentValues)(b, C.value)
|
|
30971
|
+
} : C;
|
|
30976
30972
|
}
|
|
30977
30973
|
t.groupContentWithDefaultValues = A;
|
|
30978
|
-
function v({ path: w, key:
|
|
30974
|
+
function v({ path: w, key: C, apiId: g, model: b, content: S }) {
|
|
30979
30975
|
return (T) => {
|
|
30980
30976
|
var I;
|
|
30981
30977
|
const R = y({
|
|
30982
30978
|
path: w,
|
|
30983
30979
|
model: (I = b == null ? void 0 : b.config) === null || I === void 0 ? void 0 : I.fields,
|
|
30984
|
-
content:
|
|
30980
|
+
content: S.value
|
|
30985
30981
|
})(T);
|
|
30986
30982
|
return T({
|
|
30987
30983
|
path: w,
|
|
30988
|
-
key:
|
|
30984
|
+
key: C,
|
|
30989
30985
|
apiId: g,
|
|
30990
30986
|
model: b,
|
|
30991
30987
|
content: {
|
|
30992
|
-
__TYPE__:
|
|
30988
|
+
__TYPE__: S.__TYPE__,
|
|
30993
30989
|
value: R
|
|
30994
30990
|
}
|
|
30995
30991
|
});
|
|
30996
30992
|
};
|
|
30997
30993
|
}
|
|
30998
30994
|
t.traverseGroupContent = v;
|
|
30999
|
-
function y({ path: w, model:
|
|
31000
|
-
return (b) => g.map((
|
|
30995
|
+
function y({ path: w, model: C, content: g }) {
|
|
30996
|
+
return (b) => g.map((S, T) => {
|
|
31001
30997
|
const I = w.concat([
|
|
31002
30998
|
{ key: T.toString(), type: "GroupItem" }
|
|
31003
|
-
]), R =
|
|
31004
|
-
const q =
|
|
30999
|
+
]), R = S.value.reduce(($, [O, N]) => {
|
|
31000
|
+
const q = C == null ? void 0 : C[O];
|
|
31005
31001
|
let H;
|
|
31006
31002
|
return (0, t.isGroupContent)(N) ? H = v({
|
|
31007
31003
|
path: I.concat([{ key: O, type: "Widget" }]),
|
|
@@ -31030,7 +31026,7 @@ function sl() {
|
|
|
31030
31026
|
}), !H || !((0, c.isNestableContent)(H) || (0, t.isGroupContent)(H)) ? $ : $.concat([[O, H]]);
|
|
31031
31027
|
}, []);
|
|
31032
31028
|
return {
|
|
31033
|
-
__TYPE__:
|
|
31029
|
+
__TYPE__: S.__TYPE__,
|
|
31034
31030
|
value: R
|
|
31035
31031
|
};
|
|
31036
31032
|
});
|
|
@@ -31065,7 +31061,7 @@ function w0() {
|
|
|
31065
31061
|
const h = o.exact(o.partial({
|
|
31066
31062
|
repeat: o.array(o.unknown),
|
|
31067
31063
|
"non-repeat": o.UnknownRecord
|
|
31068
|
-
})), m = (w) => new o.Type("CompositeSliceLegacy", t.isCompositeSliceContent, (
|
|
31064
|
+
})), m = (w) => new o.Type("CompositeSliceLegacy", t.isCompositeSliceContent, (C) => (0, i.pipe)(h.decode(C), n.either.map((g) => {
|
|
31069
31065
|
const b = (() => {
|
|
31070
31066
|
const T = (0, a.getFieldCtx)("repeat", w), I = (0, d.RepeatableWidgetsLegacy)(T).decode(g.repeat);
|
|
31071
31067
|
if (!(!I || (0, r.isLeft)(I)))
|
|
@@ -31082,26 +31078,26 @@ function w0() {
|
|
|
31082
31078
|
repeat: b,
|
|
31083
31079
|
__TYPE__: t.CompositeSliceContentType
|
|
31084
31080
|
};
|
|
31085
|
-
})), (
|
|
31086
|
-
const g = Object.entries(
|
|
31081
|
+
})), (C) => {
|
|
31082
|
+
const g = Object.entries(C.nonRepeat).reduce((S, [T, I]) => {
|
|
31087
31083
|
const R = (0, a.getFieldCtx)(T, w, ["non-repeat"]), $ = (0, c.NestableLegacy)(R).encode(I);
|
|
31088
31084
|
return $ ? {
|
|
31089
|
-
content: { ...
|
|
31090
|
-
types: { ...
|
|
31091
|
-
} :
|
|
31085
|
+
content: { ...S.content, [T]: $.content },
|
|
31086
|
+
types: { ...S.types, ...$.types }
|
|
31087
|
+
} : S;
|
|
31092
31088
|
}, { content: {}, types: {} }), b = (() => {
|
|
31093
|
-
const
|
|
31094
|
-
return (0, d.RepeatableWidgetsLegacy)(
|
|
31089
|
+
const S = (0, a.getFieldCtx)("repeat", w);
|
|
31090
|
+
return (0, d.RepeatableWidgetsLegacy)(S).encode(C.repeat);
|
|
31095
31091
|
})() || [];
|
|
31096
31092
|
return {
|
|
31097
31093
|
content: {
|
|
31098
31094
|
"non-repeat": g.content,
|
|
31099
|
-
repeat: b.map((
|
|
31095
|
+
repeat: b.map((S) => S.content)
|
|
31100
31096
|
},
|
|
31101
31097
|
types: {
|
|
31102
31098
|
[w.keyOfType]: "Slice",
|
|
31103
31099
|
...g.types,
|
|
31104
|
-
...b.reduce((
|
|
31100
|
+
...b.reduce((S, T) => ({ ...S, ...T.types }), {})
|
|
31105
31101
|
}
|
|
31106
31102
|
};
|
|
31107
31103
|
});
|
|
@@ -31110,19 +31106,19 @@ function w0() {
|
|
|
31110
31106
|
nonRepeat: o.record(o.string, c.NestableContent),
|
|
31111
31107
|
repeat: d.RepeatableWidgets
|
|
31112
31108
|
});
|
|
31113
|
-
function A(w,
|
|
31109
|
+
function A(w, C) {
|
|
31114
31110
|
var g, b;
|
|
31115
|
-
const
|
|
31111
|
+
const S = (0, u.withDefaultNestableContentValues)((g = w["non-repeat"]) !== null && g !== void 0 ? g : {}, C.nonRepeat), T = (0, u.repeatableContentWithDefaultNestableContentValues)((b = w.repeat) !== null && b !== void 0 ? b : {}, C.repeat);
|
|
31116
31112
|
return {
|
|
31117
|
-
...
|
|
31118
|
-
nonRepeat:
|
|
31113
|
+
...C,
|
|
31114
|
+
nonRepeat: S,
|
|
31119
31115
|
repeat: T
|
|
31120
31116
|
};
|
|
31121
31117
|
}
|
|
31122
31118
|
t.compositeSliceContentWithDefaultValues = A;
|
|
31123
|
-
function v({ path: w, sliceKey:
|
|
31119
|
+
function v({ path: w, sliceKey: C, sliceName: g, model: b, content: S }) {
|
|
31124
31120
|
return (T, I) => {
|
|
31125
|
-
const R = Object.entries(
|
|
31121
|
+
const R = Object.entries(S.widget.nonRepeat).reduce((O, [N, q]) => {
|
|
31126
31122
|
const H = (() => {
|
|
31127
31123
|
var j, J, ne;
|
|
31128
31124
|
return (b == null ? void 0 : b.type) === "SharedSlice" ? (J = (j = b == null ? void 0 : b.fields) === null || j === void 0 ? void 0 : j.primary) === null || J === void 0 ? void 0 : J[N] : (ne = b == null ? void 0 : b["non-repeat"]) === null || ne === void 0 ? void 0 : ne[N];
|
|
@@ -31139,19 +31135,19 @@ function w0() {
|
|
|
31139
31135
|
return Q ? (0, c.isNestableContent)(Q) ? {
|
|
31140
31136
|
...O,
|
|
31141
31137
|
[N]: Q
|
|
31142
|
-
} : (console.warn(`Warn: Non nestable content with key [${N}] detected in a composite slice [${g}] with key [${
|
|
31138
|
+
} : (console.warn(`Warn: Non nestable content with key [${N}] detected in a composite slice [${g}] with key [${C}]`), O) : O;
|
|
31143
31139
|
}, {}), $ = (0, l.traverseGroupItemsContent)({
|
|
31144
31140
|
path: w.concat([{ key: "repeat", type: "items" }]),
|
|
31145
31141
|
model: (b == null ? void 0 : b.type) === "SharedSlice" ? b == null ? void 0 : b.fields.items : b == null ? void 0 : b.repeat,
|
|
31146
|
-
content:
|
|
31142
|
+
content: S.widget.repeat
|
|
31147
31143
|
})(T);
|
|
31148
31144
|
return I({
|
|
31149
|
-
key:
|
|
31145
|
+
key: C,
|
|
31150
31146
|
apiId: g,
|
|
31151
31147
|
path: w,
|
|
31152
31148
|
model: b,
|
|
31153
31149
|
content: {
|
|
31154
|
-
...
|
|
31150
|
+
...S,
|
|
31155
31151
|
widget: {
|
|
31156
31152
|
__TYPE__: "CompositeSliceContent",
|
|
31157
31153
|
repeat: $,
|
|
@@ -31162,24 +31158,24 @@ function w0() {
|
|
|
31162
31158
|
};
|
|
31163
31159
|
}
|
|
31164
31160
|
t.traverseCompositeSliceContent = v;
|
|
31165
|
-
function y(w,
|
|
31166
|
-
const [, g] =
|
|
31161
|
+
function y(w, C) {
|
|
31162
|
+
const [, g] = C.key.split("$");
|
|
31167
31163
|
return {
|
|
31168
31164
|
key: `${w.sliceName}$${g}`,
|
|
31169
31165
|
name: w.sliceName,
|
|
31170
|
-
maybeLabel:
|
|
31166
|
+
maybeLabel: C.maybeLabel,
|
|
31171
31167
|
widget: {
|
|
31172
31168
|
__TYPE__: "SharedSliceContent",
|
|
31173
31169
|
variation: w.variationId,
|
|
31174
|
-
primary: Object.entries(
|
|
31170
|
+
primary: Object.entries(C.widget.nonRepeat).reduce((b, [S, T]) => {
|
|
31175
31171
|
var I;
|
|
31176
|
-
return !((I = w.fields.primary) === null || I === void 0) && I[
|
|
31172
|
+
return !((I = w.fields.primary) === null || I === void 0) && I[S] ? { ...b, [S]: T } : (console.warn(`The widget ${S} in the non-repeat zone of the composite slice [${w.sliceName}] with key [${C.key}] doesn't exist in the model.`), b);
|
|
31177
31173
|
}, {}),
|
|
31178
|
-
items:
|
|
31174
|
+
items: C.widget.repeat.map((b) => ({
|
|
31179
31175
|
__TYPE__: "GroupItemContent",
|
|
31180
|
-
value: b.value.reduce((
|
|
31176
|
+
value: b.value.reduce((S, [T, I]) => {
|
|
31181
31177
|
var R;
|
|
31182
|
-
return !((R = w.fields.items) === null || R === void 0) && R[T] ?
|
|
31178
|
+
return !((R = w.fields.items) === null || R === void 0) && R[T] ? S.concat([[T, I]]) : (console.warn(`The widget ${T} in the repeat zone of the composite slice [${w.sliceName}] with key [${C.key}] doesn't exist in the model.`), S);
|
|
31183
31179
|
}, [])
|
|
31184
31180
|
}), [])
|
|
31185
31181
|
}
|
|
@@ -31222,30 +31218,30 @@ function T0() {
|
|
|
31222
31218
|
variation: o.string,
|
|
31223
31219
|
items: (0, a.withFallback)(o.array(o.unknown), []),
|
|
31224
31220
|
primary: (0, a.withFallback)(o.UnknownRecord, {})
|
|
31225
|
-
})), y = (g) => new o.Type("SharedSliceLegacy", t.isSharedSliceContent, (b) => (0, i.pipe)(v.decode(b), n.either.map((
|
|
31221
|
+
})), y = (g) => new o.Type("SharedSliceLegacy", t.isSharedSliceContent, (b) => (0, i.pipe)(v.decode(b), n.either.map((S) => {
|
|
31226
31222
|
const T = (() => {
|
|
31227
31223
|
const R = (0, l.getFieldCtx)("items", g, [
|
|
31228
31224
|
"variations",
|
|
31229
|
-
|
|
31230
|
-
]), $ = (0, h.RepeatableWidgetsLegacy)(R).decode(
|
|
31225
|
+
S.variation
|
|
31226
|
+
]), $ = (0, h.RepeatableWidgetsLegacy)(R).decode(S.items);
|
|
31231
31227
|
if (!(!$ || (0, r.isLeft)($)))
|
|
31232
31228
|
return $.right;
|
|
31233
|
-
})() || [], I = Object.entries(
|
|
31229
|
+
})() || [], I = Object.entries(S.primary).reduce((R, [$, O]) => {
|
|
31234
31230
|
const N = (0, l.getFieldCtx)($, g, [
|
|
31235
31231
|
"variations",
|
|
31236
|
-
|
|
31232
|
+
S.variation,
|
|
31237
31233
|
"primary"
|
|
31238
31234
|
]), q = (0, m.SlicePrimaryLegacy)(N).decode(O);
|
|
31239
31235
|
return !q || (0, r.isLeft)(q) ? R : { ...R, [$]: q.right };
|
|
31240
31236
|
}, {});
|
|
31241
31237
|
return {
|
|
31242
|
-
variation:
|
|
31238
|
+
variation: S.variation,
|
|
31243
31239
|
primary: I,
|
|
31244
31240
|
items: T,
|
|
31245
31241
|
__TYPE__: t.SharedSliceContentType
|
|
31246
31242
|
};
|
|
31247
31243
|
})), (b) => {
|
|
31248
|
-
const
|
|
31244
|
+
const S = Object.entries(b.primary).reduce((I, [R, $]) => {
|
|
31249
31245
|
const O = (0, l.getFieldCtx)(R, g, [
|
|
31250
31246
|
"variations",
|
|
31251
31247
|
b.variation,
|
|
@@ -31264,13 +31260,13 @@ function T0() {
|
|
|
31264
31260
|
})() || [];
|
|
31265
31261
|
return {
|
|
31266
31262
|
content: {
|
|
31267
|
-
primary:
|
|
31263
|
+
primary: S.content,
|
|
31268
31264
|
items: T.map((I) => I.content),
|
|
31269
31265
|
variation: b.variation
|
|
31270
31266
|
},
|
|
31271
31267
|
types: {
|
|
31272
31268
|
[g.keyOfType]: "SharedSlice",
|
|
31273
|
-
...
|
|
31269
|
+
...S.types,
|
|
31274
31270
|
...T.reduce((I, R) => ({ ...I, ...R.types }), {})
|
|
31275
31271
|
}
|
|
31276
31272
|
};
|
|
@@ -31282,8 +31278,8 @@ function T0() {
|
|
|
31282
31278
|
items: h.RepeatableWidgets
|
|
31283
31279
|
});
|
|
31284
31280
|
function w(g, b) {
|
|
31285
|
-
var
|
|
31286
|
-
const I = g.variations.find((q) => q.id === b.variation), R = (
|
|
31281
|
+
var S, T;
|
|
31282
|
+
const I = g.variations.find((q) => q.id === b.variation), R = (S = I == null ? void 0 : I.primary) !== null && S !== void 0 ? S : {}, $ = (T = I == null ? void 0 : I.items) !== null && T !== void 0 ? T : {}, O = (0, f.withDefaultSlicePrimaryContentValues)(R, b.primary), N = (0, f.repeatableContentWithDefaultNestableContentValues)($, b.items);
|
|
31287
31283
|
return {
|
|
31288
31284
|
...b,
|
|
31289
31285
|
primary: O,
|
|
@@ -31291,7 +31287,7 @@ function T0() {
|
|
|
31291
31287
|
};
|
|
31292
31288
|
}
|
|
31293
31289
|
t.sharedSliceContentWithDefaultValues = w;
|
|
31294
|
-
function
|
|
31290
|
+
function C({ path: g, sliceKey: b, sliceName: S, model: T, content: I }) {
|
|
31295
31291
|
return (R, $) => {
|
|
31296
31292
|
const O = Object.entries(I.widget.primary).reduce((q, [H, Q]) => {
|
|
31297
31293
|
var j, J;
|
|
@@ -31332,7 +31328,7 @@ function T0() {
|
|
|
31332
31328
|
model: ne,
|
|
31333
31329
|
content: Q
|
|
31334
31330
|
}) : void 0)();
|
|
31335
|
-
return L ? ((0, m.isSlicePrimaryContent)(L) || console.warn(`Warn: Non nestable or group content with key [${H}] detected in a shared slice [${
|
|
31331
|
+
return L ? ((0, m.isSlicePrimaryContent)(L) || console.warn(`Warn: Non nestable or group content with key [${H}] detected in a shared slice [${S}] with key [${b}]`), {
|
|
31336
31332
|
...q,
|
|
31337
31333
|
[H]: L
|
|
31338
31334
|
}) : q;
|
|
@@ -31343,7 +31339,7 @@ function T0() {
|
|
|
31343
31339
|
})(R);
|
|
31344
31340
|
return $({
|
|
31345
31341
|
key: b,
|
|
31346
|
-
apiId:
|
|
31342
|
+
apiId: S,
|
|
31347
31343
|
path: g,
|
|
31348
31344
|
model: T,
|
|
31349
31345
|
content: {
|
|
@@ -31358,7 +31354,7 @@ function T0() {
|
|
|
31358
31354
|
});
|
|
31359
31355
|
};
|
|
31360
31356
|
}
|
|
31361
|
-
t.traverseSharedSliceContent =
|
|
31357
|
+
t.traverseSharedSliceContent = C;
|
|
31362
31358
|
}(jT)), jT;
|
|
31363
31359
|
}
|
|
31364
31360
|
var Ti = {}, UU;
|
|
@@ -31527,20 +31523,20 @@ function VJ() {
|
|
|
31527
31523
|
return (0, s.isGroupContent)(b.widget) || (0, l.isNestableContent)(b.widget);
|
|
31528
31524
|
}
|
|
31529
31525
|
jn.isSimpleSliceItemContent = v;
|
|
31530
|
-
function y(b,
|
|
31526
|
+
function y(b, S) {
|
|
31531
31527
|
var T;
|
|
31532
|
-
if (b.type === "SharedSlice" && (0, f.isSharedSliceContent)(
|
|
31533
|
-
return (0, u.sharedSliceContentWithDefaultValues)(b,
|
|
31534
|
-
if (b.type === "Slice" && (0, d.isCompositeSliceContent)(
|
|
31535
|
-
return (0, u.compositeSliceContentWithDefaultValues)(b,
|
|
31536
|
-
if (b.type === "Group" && (0, s.isGroupContent)(
|
|
31537
|
-
const I = (0, c.repeatableContentWithDefaultNestableContentValues)(b.config.fields,
|
|
31528
|
+
if (b.type === "SharedSlice" && (0, f.isSharedSliceContent)(S))
|
|
31529
|
+
return (0, u.sharedSliceContentWithDefaultValues)(b, S);
|
|
31530
|
+
if (b.type === "Slice" && (0, d.isCompositeSliceContent)(S))
|
|
31531
|
+
return (0, u.compositeSliceContentWithDefaultValues)(b, S);
|
|
31532
|
+
if (b.type === "Group" && (0, s.isGroupContent)(S) && (!((T = b.config) === null || T === void 0) && T.fields)) {
|
|
31533
|
+
const I = (0, c.repeatableContentWithDefaultNestableContentValues)(b.config.fields, S.value);
|
|
31538
31534
|
return {
|
|
31539
|
-
...
|
|
31535
|
+
...S,
|
|
31540
31536
|
value: I
|
|
31541
31537
|
};
|
|
31542
31538
|
}
|
|
31543
|
-
return
|
|
31539
|
+
return S;
|
|
31544
31540
|
}
|
|
31545
31541
|
jn.sliceItemContentWithDefaultValues = y;
|
|
31546
31542
|
const w = i.exact(i.intersection([
|
|
@@ -31551,28 +31547,28 @@ function VJ() {
|
|
|
31551
31547
|
i.partial({
|
|
31552
31548
|
label: (0, o.nullable)(i.string)
|
|
31553
31549
|
})
|
|
31554
|
-
])),
|
|
31550
|
+
])), C = (b) => new i.Type("SlicesItemLegacy", (S) => ((0, f.isSharedSliceContent)(S.widget), (0, d.isCompositeSliceContent)(S.widget), (0, h.isSimpleSliceContent)(S.widget)), (S, T) => (0, r.pipe)(w.decode(S), e.either.chain((I) => {
|
|
31555
31551
|
var R;
|
|
31556
31552
|
const $ = I.key.indexOf("$"), O = I.key.substring(0, $ > 0 ? $ : void 0), N = (0, a.getFieldCtx)(O, b), q = (0, u.SliceLegacy)(N).decode(I.value);
|
|
31557
|
-
return !q || (0, n.isLeft)(q) ? i.failure(
|
|
31553
|
+
return !q || (0, n.isLeft)(q) ? i.failure(S, T) : i.success({
|
|
31558
31554
|
key: I.key,
|
|
31559
31555
|
name: O,
|
|
31560
31556
|
maybeLabel: (R = I.label) !== null && R !== void 0 ? R : void 0,
|
|
31561
31557
|
widget: q.right
|
|
31562
31558
|
});
|
|
31563
|
-
})), (
|
|
31564
|
-
const T = (0, a.getFieldCtx)(
|
|
31559
|
+
})), (S) => {
|
|
31560
|
+
const T = (0, a.getFieldCtx)(S.name, b), I = (0, u.SliceLegacy)(T).encode(S.widget);
|
|
31565
31561
|
return {
|
|
31566
31562
|
content: {
|
|
31567
|
-
key:
|
|
31568
|
-
label:
|
|
31563
|
+
key: S.key,
|
|
31564
|
+
label: S.maybeLabel,
|
|
31569
31565
|
value: (I == null ? void 0 : I.content) || {}
|
|
31570
31566
|
},
|
|
31571
31567
|
types: (I == null ? void 0 : I.types) || {}
|
|
31572
31568
|
};
|
|
31573
31569
|
});
|
|
31574
|
-
jn.SlicesItemLegacy =
|
|
31575
|
-
const g = ({ model: b, content:
|
|
31570
|
+
jn.SlicesItemLegacy = C;
|
|
31571
|
+
const g = ({ model: b, content: S }) => A(S) && (b == null ? void 0 : b.type) === "SharedSlice" ? (0, d.migrateCompositeSlice)(b, S) : v(S) && (b == null ? void 0 : b.type) === "SharedSlice" ? (0, h.migrateSimpleSlice)(b, S) : S;
|
|
31576
31572
|
return jn.migrateSliceItem = g, jn;
|
|
31577
31573
|
}
|
|
31578
31574
|
var qT = {}, WU;
|
|
@@ -31585,14 +31581,14 @@ function fWe() {
|
|
|
31585
31581
|
t.isSlicesContent = f;
|
|
31586
31582
|
const h = (y) => {
|
|
31587
31583
|
const w = i.array((0, d.SlicesItemLegacy)(y));
|
|
31588
|
-
return new i.Type("SlicesLegacy", t.isSlicesContent, (
|
|
31584
|
+
return new i.Type("SlicesLegacy", t.isSlicesContent, (C) => (0, r.pipe)(w.decode(C), n.either.map((g) => ({
|
|
31589
31585
|
__TYPE__: t.SlicesContentType,
|
|
31590
31586
|
value: g
|
|
31591
|
-
}))), (
|
|
31592
|
-
const g = w.encode(
|
|
31587
|
+
}))), (C) => {
|
|
31588
|
+
const g = w.encode(C.value);
|
|
31593
31589
|
return {
|
|
31594
31590
|
content: g.map((b) => b.content),
|
|
31595
|
-
types: g.reduce((b,
|
|
31591
|
+
types: g.reduce((b, S) => ({ ...b, ...S.types }), { [y.keyOfType]: "Slices" })
|
|
31596
31592
|
};
|
|
31597
31593
|
});
|
|
31598
31594
|
};
|
|
@@ -31601,20 +31597,20 @@ function fWe() {
|
|
|
31601
31597
|
value: i.array(d.SliceItemContent)
|
|
31602
31598
|
});
|
|
31603
31599
|
function m(y, w) {
|
|
31604
|
-
var
|
|
31605
|
-
const g = (
|
|
31600
|
+
var C;
|
|
31601
|
+
const g = (C = y == null ? void 0 : y.config) === null || C === void 0 ? void 0 : C.choices;
|
|
31606
31602
|
if (g === void 0)
|
|
31607
31603
|
return w;
|
|
31608
|
-
const b = w.value.map((
|
|
31609
|
-
const T = g[
|
|
31604
|
+
const b = w.value.map((S) => {
|
|
31605
|
+
const T = g[S.name];
|
|
31610
31606
|
if (T) {
|
|
31611
|
-
const I = (0, d.sliceItemContentWithDefaultValues)(T,
|
|
31607
|
+
const I = (0, d.sliceItemContentWithDefaultValues)(T, S.widget);
|
|
31612
31608
|
return {
|
|
31613
|
-
...
|
|
31609
|
+
...S,
|
|
31614
31610
|
widget: I
|
|
31615
31611
|
};
|
|
31616
31612
|
}
|
|
31617
|
-
return
|
|
31613
|
+
return S;
|
|
31618
31614
|
});
|
|
31619
31615
|
return {
|
|
31620
31616
|
...w,
|
|
@@ -31622,14 +31618,14 @@ function fWe() {
|
|
|
31622
31618
|
};
|
|
31623
31619
|
}
|
|
31624
31620
|
t.slicesContentWithDefaultValues = m;
|
|
31625
|
-
function A(y, w,
|
|
31621
|
+
function A(y, w, C) {
|
|
31626
31622
|
var g, b;
|
|
31627
|
-
const
|
|
31628
|
-
if ((0, d.isSharedSliceItemContent)(
|
|
31629
|
-
const $ =
|
|
31623
|
+
const S = (b = (g = w == null ? void 0 : w.config) === null || g === void 0 ? void 0 : g.choices) === null || b === void 0 ? void 0 : b[C.name], T = () => {
|
|
31624
|
+
if ((0, d.isSharedSliceItemContent)(C) && S && (0, a.isStaticSharedSlice)(S)) {
|
|
31625
|
+
const $ = S.variations.find((O) => O.id === C.widget.variation);
|
|
31630
31626
|
return $ ? {
|
|
31631
31627
|
type: "SharedSlice",
|
|
31632
|
-
sliceName:
|
|
31628
|
+
sliceName: S.id,
|
|
31633
31629
|
variationId: $.id,
|
|
31634
31630
|
fields: {
|
|
31635
31631
|
primary: $.primary || {},
|
|
@@ -31639,7 +31635,7 @@ function fWe() {
|
|
|
31639
31635
|
}
|
|
31640
31636
|
}, I = () => {
|
|
31641
31637
|
var $;
|
|
31642
|
-
const O = o.ContentPath.append(o.ContentPath.serialize(y),
|
|
31638
|
+
const O = o.ContentPath.append(o.ContentPath.serialize(y), C.name), N = Object.values((($ = w == null ? void 0 : w.config) === null || $ === void 0 ? void 0 : $.choices) || {}).find((H) => {
|
|
31643
31639
|
var Q;
|
|
31644
31640
|
return (0, a.isStaticSharedSlice)(H) ? !!(!((Q = H.legacyPaths) === null || Q === void 0) && Q[O]) : !1;
|
|
31645
31641
|
});
|
|
@@ -31660,23 +31656,23 @@ function fWe() {
|
|
|
31660
31656
|
}
|
|
31661
31657
|
};
|
|
31662
31658
|
}, R = () => {
|
|
31663
|
-
if (
|
|
31664
|
-
if ((0, a.isCompositeSlice)(
|
|
31659
|
+
if (S) {
|
|
31660
|
+
if ((0, a.isCompositeSlice)(S))
|
|
31665
31661
|
return {
|
|
31666
31662
|
type: "Slice",
|
|
31667
|
-
"non-repeat":
|
|
31668
|
-
repeat:
|
|
31663
|
+
"non-repeat": S["non-repeat"] || {},
|
|
31664
|
+
repeat: S.repeat || {}
|
|
31669
31665
|
};
|
|
31670
|
-
if ((0, a.isLegacySlice)(
|
|
31671
|
-
return
|
|
31666
|
+
if ((0, a.isLegacySlice)(S))
|
|
31667
|
+
return S;
|
|
31672
31668
|
}
|
|
31673
31669
|
};
|
|
31674
31670
|
return T() || I() || R();
|
|
31675
31671
|
}
|
|
31676
|
-
function v({ path: y, key: w, model:
|
|
31677
|
-
return ({ transformWidget: b = ({ content: T }) => T, transformSlice:
|
|
31672
|
+
function v({ path: y, key: w, model: C, content: g }) {
|
|
31673
|
+
return ({ transformWidget: b = ({ content: T }) => T, transformSlice: S = ({ content: T }) => T }) => {
|
|
31678
31674
|
const T = g.value.reduce((I, R) => {
|
|
31679
|
-
const $ =
|
|
31675
|
+
const $ = C && A(y, C, R), O = (() => {
|
|
31680
31676
|
if ((0, d.isSharedSliceItemContent)(R))
|
|
31681
31677
|
return (0, c.traverseSharedSliceContent)({
|
|
31682
31678
|
path: y.concat({
|
|
@@ -31687,7 +31683,7 @@ function fWe() {
|
|
|
31687
31683
|
sliceName: R.name,
|
|
31688
31684
|
model: ($ == null ? void 0 : $.type) === "SharedSlice" ? $ : void 0,
|
|
31689
31685
|
content: R
|
|
31690
|
-
})(b,
|
|
31686
|
+
})(b, S);
|
|
31691
31687
|
if ((0, d.isCompositeSliceItemContent)(R))
|
|
31692
31688
|
return (0, l.traverseCompositeSliceContent)({
|
|
31693
31689
|
path: y.concat({
|
|
@@ -31698,7 +31694,7 @@ function fWe() {
|
|
|
31698
31694
|
sliceName: R.name,
|
|
31699
31695
|
model: ($ == null ? void 0 : $.type) === "Slice" || ($ == null ? void 0 : $.type) === "SharedSlice" ? $ : void 0,
|
|
31700
31696
|
content: R
|
|
31701
|
-
})(b,
|
|
31697
|
+
})(b, S);
|
|
31702
31698
|
if ((0, d.isSimpleSliceItemContent)(R))
|
|
31703
31699
|
return (0, u.traverseSimpleSliceContent)({
|
|
31704
31700
|
path: y.concat({
|
|
@@ -31709,7 +31705,7 @@ function fWe() {
|
|
|
31709
31705
|
sliceName: R.name,
|
|
31710
31706
|
model: $ && ($ == null ? void 0 : $.type) !== "Slice" ? $ : void 0,
|
|
31711
31707
|
content: R
|
|
31712
|
-
})(b,
|
|
31708
|
+
})(b, S);
|
|
31713
31709
|
})();
|
|
31714
31710
|
return O ? I.concat(O) : I;
|
|
31715
31711
|
}, []);
|
|
@@ -31717,7 +31713,7 @@ function fWe() {
|
|
|
31717
31713
|
path: y,
|
|
31718
31714
|
key: w,
|
|
31719
31715
|
apiId: w,
|
|
31720
|
-
model:
|
|
31716
|
+
model: C,
|
|
31721
31717
|
content: {
|
|
31722
31718
|
__TYPE__: g.__TYPE__,
|
|
31723
31719
|
value: T
|
|
@@ -32155,7 +32151,7 @@ function EWe(t) {
|
|
|
32155
32151
|
}, [l, i, h, m]);
|
|
32156
32152
|
const A = to((T) => {
|
|
32157
32153
|
const { id: I, isSingleSelection: R, metaKey: $, shiftKey: O, ids: N } = T;
|
|
32158
|
-
return O && N && N.length > 0 && o.current ? y(I, N, o.current) : R && !$ ? v(I) : d(I) ? g([I]) :
|
|
32154
|
+
return O && N && N.length > 0 && o.current ? y(I, N, o.current) : R && !$ ? v(I) : d(I) ? g([I]) : C([I]), o.current = I, d(I);
|
|
32159
32155
|
});
|
|
32160
32156
|
function v(T) {
|
|
32161
32157
|
d(T) && u === 1 ? c((I) => ({
|
|
@@ -32169,12 +32165,12 @@ function EWe(t) {
|
|
|
32169
32165
|
}
|
|
32170
32166
|
function y(T, I, R) {
|
|
32171
32167
|
const $ = RWe(I, R, T), O = d(T);
|
|
32172
|
-
return O ? g($) :
|
|
32168
|
+
return O ? g($) : C($), O;
|
|
32173
32169
|
}
|
|
32174
32170
|
const w = to(() => {
|
|
32175
32171
|
u > 0 ? m() : h();
|
|
32176
32172
|
});
|
|
32177
|
-
function
|
|
32173
|
+
function C(T) {
|
|
32178
32174
|
const { isAllSelected: I } = l;
|
|
32179
32175
|
if (I) {
|
|
32180
32176
|
c((R) => ({
|
|
@@ -32205,7 +32201,7 @@ function EWe(t) {
|
|
|
32205
32201
|
function b(T) {
|
|
32206
32202
|
a.current = T;
|
|
32207
32203
|
}
|
|
32208
|
-
const
|
|
32204
|
+
const S = xe(
|
|
32209
32205
|
() => ({
|
|
32210
32206
|
selectedCount: u,
|
|
32211
32207
|
state: l,
|
|
@@ -32229,7 +32225,7 @@ function EWe(t) {
|
|
|
32229
32225
|
A
|
|
32230
32226
|
]
|
|
32231
32227
|
);
|
|
32232
|
-
return /* @__PURE__ */ p(tZ.Provider, { value:
|
|
32228
|
+
return /* @__PURE__ */ p(tZ.Provider, { value: S, children: e });
|
|
32233
32229
|
}
|
|
32234
32230
|
function Jd(t) {
|
|
32235
32231
|
const e = Fn(tZ);
|
|
@@ -33011,7 +33007,7 @@ function yKe(t) {
|
|
|
33011
33007
|
const l = i[i.length - 1];
|
|
33012
33008
|
if (!l)
|
|
33013
33009
|
return;
|
|
33014
|
-
const { keyword: c, uploaderId: u, tags: d } = l, f = bZ(i, c, e, u, d), h = String(c.split(" ").length), m = String(l.total), A = f.findIndex((
|
|
33010
|
+
const { keyword: c, uploaderId: u, tags: d } = l, f = bZ(i, c, e, u, d), h = String(c.split(" ").length), m = String(l.total), A = f.findIndex((C) => C.id === s), v = String(A + 1), y = [s].join(","), w = (performance.now() - o.current).toFixed(0);
|
|
33015
33011
|
r.onAnalyticsEvent("Media Added To Page", {
|
|
33016
33012
|
assetType: e,
|
|
33017
33013
|
searchQuery: c,
|
|
@@ -33123,37 +33119,37 @@ function CKe(t) {
|
|
|
33123
33119
|
});
|
|
33124
33120
|
const v = _Ke(d, f, h, m), y = A.total !== v.length;
|
|
33125
33121
|
function w() {
|
|
33126
|
-
A.cursor !== void 0 && o((
|
|
33127
|
-
...
|
|
33128
|
-
page:
|
|
33122
|
+
A.cursor !== void 0 && o((S) => ({
|
|
33123
|
+
...S,
|
|
33124
|
+
page: S.page + 1,
|
|
33129
33125
|
cursor: A.cursor
|
|
33130
33126
|
}));
|
|
33131
33127
|
}
|
|
33132
|
-
function S
|
|
33128
|
+
function C(S) {
|
|
33133
33129
|
o((T) => ({
|
|
33134
33130
|
...T,
|
|
33135
33131
|
page: 0,
|
|
33136
33132
|
cursor: void 0
|
|
33137
33133
|
})), Fu((T, I) => {
|
|
33138
33134
|
if (I.page === 0)
|
|
33139
|
-
return [...
|
|
33135
|
+
return [...S, ...T];
|
|
33140
33136
|
});
|
|
33141
33137
|
}
|
|
33142
|
-
function g(
|
|
33138
|
+
function g(S) {
|
|
33143
33139
|
o((T) => ({
|
|
33144
33140
|
...T,
|
|
33145
|
-
...
|
|
33141
|
+
...S,
|
|
33146
33142
|
page: 0,
|
|
33147
33143
|
cursor: void 0
|
|
33148
33144
|
}));
|
|
33149
33145
|
}
|
|
33150
33146
|
function b() {
|
|
33151
|
-
o((
|
|
33152
|
-
...
|
|
33147
|
+
o((S) => ({
|
|
33148
|
+
...S,
|
|
33153
33149
|
...Mr,
|
|
33154
33150
|
assetType: (
|
|
33155
33151
|
// We reset the asset type filter only when it is not initially set to a specific type.
|
|
33156
|
-
e === "all" ? Mr.assetType :
|
|
33152
|
+
e === "all" ? Mr.assetType : S.assetType
|
|
33157
33153
|
),
|
|
33158
33154
|
page: 0,
|
|
33159
33155
|
cursor: void 0
|
|
@@ -33172,7 +33168,7 @@ function CKe(t) {
|
|
|
33172
33168
|
hasNextPage: y,
|
|
33173
33169
|
fetchNextPage: w,
|
|
33174
33170
|
updateMedia: SKe,
|
|
33175
|
-
unshiftMedia:
|
|
33171
|
+
unshiftMedia: C,
|
|
33176
33172
|
deleteMedia: wKe,
|
|
33177
33173
|
deleteSearchData: TKe,
|
|
33178
33174
|
revalidateFirstPage: CZ
|
|
@@ -33354,13 +33350,13 @@ function RKe(t) {
|
|
|
33354
33350
|
}, { revalidateData: A } = Kie({
|
|
33355
33351
|
fetcher: So,
|
|
33356
33352
|
requestParams: yA(m),
|
|
33357
|
-
validator: (w,
|
|
33358
|
-
var
|
|
33359
|
-
const g = ((
|
|
33353
|
+
validator: (w, C) => {
|
|
33354
|
+
var S, T;
|
|
33355
|
+
const g = ((S = w.items[0]) == null ? void 0 : S.id) ?? "", b = ((T = C.items[0]) == null ? void 0 : T.id) ?? "";
|
|
33360
33356
|
return (
|
|
33361
33357
|
// check if the first media id in the cache is matching the first id on the server
|
|
33362
33358
|
g !== b || // check if the total amount of items in the cache and on the server are equal
|
|
33363
|
-
w.total !== (
|
|
33359
|
+
w.total !== (C == null ? void 0 : C.total)
|
|
33364
33360
|
);
|
|
33365
33361
|
},
|
|
33366
33362
|
onCacheInvalidated: () => h(!0),
|
|
@@ -33477,10 +33473,10 @@ function $Ke(t) {
|
|
|
33477
33473
|
uploaderId: v,
|
|
33478
33474
|
tagIds: y,
|
|
33479
33475
|
setFilters: w,
|
|
33480
|
-
resetFilters:
|
|
33476
|
+
resetFilters: C,
|
|
33481
33477
|
media: g,
|
|
33482
33478
|
fetchNextPage: b,
|
|
33483
|
-
hasNextPage:
|
|
33479
|
+
hasNextPage: S,
|
|
33484
33480
|
updateMedia: T,
|
|
33485
33481
|
unshiftMedia: I,
|
|
33486
33482
|
deleteMedia: R,
|
|
@@ -33530,7 +33526,7 @@ function $Ke(t) {
|
|
|
33530
33526
|
}
|
|
33531
33527
|
const { isUploading: V, onFilesSelected: me, uploadingFiles: ge, onRetry: De } = kKe({
|
|
33532
33528
|
onBeforeUpload: (_e) => {
|
|
33533
|
-
|
|
33529
|
+
C();
|
|
33534
33530
|
const st = _e.filter((ct) => ct.status === "idle").map((ct) => ({
|
|
33535
33531
|
id: ct.id,
|
|
33536
33532
|
url: URL.createObjectURL(ct.file),
|
|
@@ -33582,7 +33578,7 @@ function $Ke(t) {
|
|
|
33582
33578
|
V || me(_e);
|
|
33583
33579
|
}
|
|
33584
33580
|
function Ie() {
|
|
33585
|
-
|
|
33581
|
+
S && s(b);
|
|
33586
33582
|
}
|
|
33587
33583
|
function je(_e, st) {
|
|
33588
33584
|
T([{ id: _e, response: st }]);
|
|
@@ -36234,23 +36230,23 @@ function Iet(t) {
|
|
|
36234
36230
|
function v() {
|
|
36235
36231
|
i();
|
|
36236
36232
|
}
|
|
36237
|
-
async function y(
|
|
36238
|
-
const g = await r(
|
|
36239
|
-
g.includes(
|
|
36233
|
+
async function y(C) {
|
|
36234
|
+
const g = await r(C.id);
|
|
36235
|
+
g.includes(C.id) && n.track({
|
|
36240
36236
|
event: "shared-onboarding:step-completed",
|
|
36241
|
-
stepId:
|
|
36242
|
-
stepTitle:
|
|
36237
|
+
stepId: C.id,
|
|
36238
|
+
stepTitle: C.title,
|
|
36243
36239
|
source: n.source
|
|
36244
36240
|
}), w(g).length === d.length && (n.track({
|
|
36245
36241
|
event: "shared-onboarding:completed",
|
|
36246
36242
|
source: n.source
|
|
36247
36243
|
}), A.start());
|
|
36248
36244
|
}
|
|
36249
|
-
function w(
|
|
36245
|
+
function w(C) {
|
|
36250
36246
|
const g = d.map(({ id: b }) => b);
|
|
36251
36247
|
return Array.from(
|
|
36252
36248
|
/* @__PURE__ */ new Set([
|
|
36253
|
-
...
|
|
36249
|
+
...C.filter(
|
|
36254
36250
|
(b) => g.includes(b)
|
|
36255
36251
|
),
|
|
36256
36252
|
...f
|
|
@@ -37414,10 +37410,10 @@ function n2(t) {
|
|
|
37414
37410
|
var b;
|
|
37415
37411
|
switch (s) {
|
|
37416
37412
|
case "unsplash": {
|
|
37417
|
-
const
|
|
37418
|
-
if (!
|
|
37413
|
+
const S = d[0];
|
|
37414
|
+
if (!S)
|
|
37419
37415
|
return;
|
|
37420
|
-
r(
|
|
37416
|
+
r(S), (b = o.onAnalyticsEvent) == null || b.call(o, "Unsplash Image Added");
|
|
37421
37417
|
break;
|
|
37422
37418
|
}
|
|
37423
37419
|
case "media": {
|
|
@@ -37431,7 +37427,7 @@ function n2(t) {
|
|
|
37431
37427
|
}
|
|
37432
37428
|
}
|
|
37433
37429
|
}
|
|
37434
|
-
function
|
|
37430
|
+
function C() {
|
|
37435
37431
|
if (h === 0)
|
|
37436
37432
|
return "Select a media item to add to the page";
|
|
37437
37433
|
if (h > 1)
|
|
@@ -37495,7 +37491,7 @@ function n2(t) {
|
|
|
37495
37491
|
{
|
|
37496
37492
|
onClick: w,
|
|
37497
37493
|
disabled: h !== 1,
|
|
37498
|
-
tooltipLabel:
|
|
37494
|
+
tooltipLabel: C(),
|
|
37499
37495
|
children: "Add to page"
|
|
37500
37496
|
}
|
|
37501
37497
|
)
|
|
@@ -37675,10 +37671,10 @@ function J5e(t) {
|
|
|
37675
37671
|
height: s
|
|
37676
37672
|
}, [d, f] = G(), h = (c == null ? void 0 : c.origin.url) ?? "", m = !(e != null && e.thumbnail.height && (e != null && e.thumbnail.width));
|
|
37677
37673
|
function A(g, b) {
|
|
37678
|
-
const
|
|
37679
|
-
isNaN(
|
|
37674
|
+
const S = parseInt(b);
|
|
37675
|
+
isNaN(S) || S <= 0 || !m || r({
|
|
37680
37676
|
...n,
|
|
37681
|
-
[g]:
|
|
37677
|
+
[g]: S
|
|
37682
37678
|
});
|
|
37683
37679
|
}
|
|
37684
37680
|
function v(g) {
|
|
@@ -37702,7 +37698,7 @@ function J5e(t) {
|
|
|
37702
37698
|
...fy
|
|
37703
37699
|
});
|
|
37704
37700
|
}
|
|
37705
|
-
function
|
|
37701
|
+
function C() {
|
|
37706
37702
|
c && (f(fy), r({
|
|
37707
37703
|
...n,
|
|
37708
37704
|
...fy,
|
|
@@ -37737,7 +37733,7 @@ function J5e(t) {
|
|
|
37737
37733
|
color: "grey",
|
|
37738
37734
|
size: "medium",
|
|
37739
37735
|
startIcon: "zoomOutMap",
|
|
37740
|
-
onClick:
|
|
37736
|
+
onClick: C
|
|
37741
37737
|
}
|
|
37742
37738
|
) }),
|
|
37743
37739
|
/* @__PURE__ */ p(KE, { orientation: "vertical" }),
|
|
@@ -38958,7 +38954,7 @@ function x6e(t) {
|
|
|
38958
38954
|
function w() {
|
|
38959
38955
|
return n ? fe.FilledDocumentLinkContent.is(n.value) ? n.value.id : fe.FilledExternalLinkContent.is(n.value) ? n.value.url : fe.FilledFileLinkContent.is(n.value) || fe.FilledImageLinkContent.is(n.value) ? n.value.name : "" : "";
|
|
38960
38956
|
}
|
|
38961
|
-
function
|
|
38957
|
+
function C(j) {
|
|
38962
38958
|
var L;
|
|
38963
38959
|
const { displayText: J, variant: ne } = j;
|
|
38964
38960
|
if (!J && !ne)
|
|
@@ -39012,7 +39008,7 @@ function x6e(t) {
|
|
|
39012
39008
|
}
|
|
39013
39009
|
function g(j, J) {
|
|
39014
39010
|
if (!j)
|
|
39015
|
-
return
|
|
39011
|
+
return C({ displayText: a, variant: c });
|
|
39016
39012
|
const { newTab: ne = !1 } = J ?? {}, L = ne ? "_blank" : void 0;
|
|
39017
39013
|
switch (u) {
|
|
39018
39014
|
case "ExternalLink":
|
|
@@ -39047,14 +39043,14 @@ function x6e(t) {
|
|
|
39047
39043
|
__TYPE__: n.__TYPE__,
|
|
39048
39044
|
key: n.key,
|
|
39049
39045
|
value: { ...n.value, text: j }
|
|
39050
|
-
}) :
|
|
39046
|
+
}) : C({ displayText: j });
|
|
39051
39047
|
}
|
|
39052
|
-
function
|
|
39048
|
+
function S(j) {
|
|
39053
39049
|
return n ? r({
|
|
39054
39050
|
__TYPE__: n.__TYPE__,
|
|
39055
39051
|
key: n.key,
|
|
39056
39052
|
value: { ...n.value, variant: j }
|
|
39057
|
-
}) :
|
|
39053
|
+
}) : C({
|
|
39058
39054
|
variant: j
|
|
39059
39055
|
});
|
|
39060
39056
|
}
|
|
@@ -39115,7 +39111,7 @@ function x6e(t) {
|
|
|
39115
39111
|
displayText: a ?? "",
|
|
39116
39112
|
variants: s,
|
|
39117
39113
|
variant: c,
|
|
39118
|
-
onVariantChange:
|
|
39114
|
+
onVariantChange: S
|
|
39119
39115
|
};
|
|
39120
39116
|
}
|
|
39121
39117
|
function lf(t) {
|
|
@@ -39272,10 +39268,10 @@ function r2(t) {
|
|
|
39272
39268
|
onValueChange: v,
|
|
39273
39269
|
selectType: y,
|
|
39274
39270
|
onTypeChange: w,
|
|
39275
|
-
isTypeSelectEnabled:
|
|
39271
|
+
isTypeSelectEnabled: C,
|
|
39276
39272
|
displayTextEnabled: g,
|
|
39277
39273
|
...b
|
|
39278
|
-
} = x6e({ content: e, field: n, onContentChange: i }),
|
|
39274
|
+
} = x6e({ content: e, field: n, onContentChange: i }), S = u === "DocumentLink" && d !== "", I = u === "ExternalLink" && ua(d), R = !!((J = n.config) != null && J.allowTargetBlank);
|
|
39279
39275
|
function $() {
|
|
39280
39276
|
switch (u) {
|
|
39281
39277
|
case "DocumentLink":
|
|
@@ -39297,7 +39293,7 @@ function r2(t) {
|
|
|
39297
39293
|
onBlur: () => s.set(!1),
|
|
39298
39294
|
onOpenLinkModal: $,
|
|
39299
39295
|
onUnlink: () => {
|
|
39300
|
-
|
|
39296
|
+
C ? w(void 0) : v("");
|
|
39301
39297
|
},
|
|
39302
39298
|
onSelectValueChange: (V) => {
|
|
39303
39299
|
w(V), c(V);
|
|
@@ -39306,7 +39302,7 @@ function r2(t) {
|
|
|
39306
39302
|
allowTargetBlank: R,
|
|
39307
39303
|
selectType: y,
|
|
39308
39304
|
onValueChange: v,
|
|
39309
|
-
isTypeSelectEnabled:
|
|
39305
|
+
isTypeSelectEnabled: C,
|
|
39310
39306
|
displayTextEnabled: g,
|
|
39311
39307
|
onKeyDown(V) {
|
|
39312
39308
|
g || (V.key === "Enter" || V.key === " ") && ($(), V.preventDefault());
|
|
@@ -39320,7 +39316,7 @@ function r2(t) {
|
|
|
39320
39316
|
if (V)
|
|
39321
39317
|
return;
|
|
39322
39318
|
const me = e && e.value.__TYPE__ !== "AnyLink";
|
|
39323
|
-
!V && !me &&
|
|
39319
|
+
!V && !me && C && w(void 0), c(void 0);
|
|
39324
39320
|
}
|
|
39325
39321
|
function H(V, me) {
|
|
39326
39322
|
v(V, me), c(void 0);
|
|
@@ -39345,7 +39341,7 @@ function r2(t) {
|
|
|
39345
39341
|
variant: B6e(o),
|
|
39346
39342
|
color: a,
|
|
39347
39343
|
children: [
|
|
39348
|
-
|
|
39344
|
+
S ? /* @__PURE__ */ p(
|
|
39349
39345
|
j6e,
|
|
39350
39346
|
{
|
|
39351
39347
|
documentId: d,
|
|
@@ -39358,7 +39354,7 @@ function r2(t) {
|
|
|
39358
39354
|
}
|
|
39359
39355
|
),
|
|
39360
39356
|
o !== "compact" && /* @__PURE__ */ p(di, { htmlFor: r, children: Gr(n) }),
|
|
39361
|
-
/* @__PURE__ */ p(fi, { children:
|
|
39357
|
+
/* @__PURE__ */ p(fi, { children: S && N ? /* @__PURE__ */ p(
|
|
39362
39358
|
V6e,
|
|
39363
39359
|
{
|
|
39364
39360
|
errorBoundaryRef: f,
|
|
@@ -39465,10 +39461,10 @@ function PI(t) {
|
|
|
39465
39461
|
appearance: v,
|
|
39466
39462
|
placeholder: y,
|
|
39467
39463
|
variants: w,
|
|
39468
|
-
variant:
|
|
39464
|
+
variant: C,
|
|
39469
39465
|
onVariantChange: g,
|
|
39470
39466
|
onDisplayTextChange: b,
|
|
39471
|
-
onValueChange:
|
|
39467
|
+
onValueChange: S
|
|
39472
39468
|
} = t;
|
|
39473
39469
|
return /* @__PURE__ */ p(U, { padding: { block: 4 }, width: "100%", children: /* @__PURE__ */ p(
|
|
39474
39470
|
Lc,
|
|
@@ -39485,7 +39481,7 @@ function PI(t) {
|
|
|
39485
39481
|
onFocus: h,
|
|
39486
39482
|
onClick: m,
|
|
39487
39483
|
onKeyDown: A,
|
|
39488
|
-
onValueChange: d ? b :
|
|
39484
|
+
onValueChange: d ? b : S,
|
|
39489
39485
|
endAdornment: /* @__PURE__ */ p(
|
|
39490
39486
|
lX,
|
|
39491
39487
|
{
|
|
@@ -39501,7 +39497,7 @@ function PI(t) {
|
|
|
39501
39497
|
showNewTabButton: u && a === "web",
|
|
39502
39498
|
displayTextEnabled: d,
|
|
39503
39499
|
variants: w,
|
|
39504
|
-
variant:
|
|
39500
|
+
variant: C,
|
|
39505
39501
|
onVariantChange: g
|
|
39506
39502
|
}
|
|
39507
39503
|
)
|
|
@@ -39527,7 +39523,7 @@ function K6e(t) {
|
|
|
39527
39523
|
displayText: A,
|
|
39528
39524
|
onVariantChange: v,
|
|
39529
39525
|
onDisplayTextChange: y
|
|
39530
|
-
} = t, w = D6e(n),
|
|
39526
|
+
} = t, w = D6e(n), C = pX(n);
|
|
39531
39527
|
return /* @__PURE__ */ p(
|
|
39532
39528
|
Lc,
|
|
39533
39529
|
{
|
|
@@ -39548,7 +39544,7 @@ function K6e(t) {
|
|
|
39548
39544
|
onKeyDown: d,
|
|
39549
39545
|
onValueChange: a ? y : void 0,
|
|
39550
39546
|
endAdornment: /* @__PURE__ */ E(U, { gap: 4, children: [
|
|
39551
|
-
|
|
39547
|
+
C && /* @__PURE__ */ p(tr, { title: "Broken Link", color: "tomato" }),
|
|
39552
39548
|
/* @__PURE__ */ p(
|
|
39553
39549
|
lX,
|
|
39554
39550
|
{
|
|
@@ -39933,7 +39929,7 @@ function o4e(t) {
|
|
|
39933
39929
|
return t == null ? void 0 : t.value;
|
|
39934
39930
|
}
|
|
39935
39931
|
function hX(t) {
|
|
39936
|
-
var
|
|
39932
|
+
var C, g;
|
|
39937
39933
|
const {
|
|
39938
39934
|
allContentViews: e,
|
|
39939
39935
|
content: n,
|
|
@@ -39950,7 +39946,7 @@ function hX(t) {
|
|
|
39950
39946
|
onCropperDialogClose: h,
|
|
39951
39947
|
onPageChange: m,
|
|
39952
39948
|
onMediaDialogOpenChange: A
|
|
39953
|
-
} = t, v = ((g = (
|
|
39949
|
+
} = t, v = ((g = (C = n == null ? void 0 : n.url) == null ? void 0 : C.split("?")[0]) == null ? void 0 : g.slice(-4)) === ".svg", y = n != null && n.url && !c ? "visible" : "hidden", w = !fe.isImageContent(n);
|
|
39954
39950
|
return /* @__PURE__ */ E(U, { display: "flex", gap: 12, padding: { inline: 12 }, children: [
|
|
39955
39951
|
/* @__PURE__ */ p(U, { children: /* @__PURE__ */ p(
|
|
39956
39952
|
fie,
|
|
@@ -40056,23 +40052,23 @@ function a4e(t) {
|
|
|
40056
40052
|
function f(w) {
|
|
40057
40053
|
if (!c)
|
|
40058
40054
|
return;
|
|
40059
|
-
const
|
|
40060
|
-
|
|
40055
|
+
const C = t3e(c.name, r, e, w);
|
|
40056
|
+
C !== e && s(() => n(C));
|
|
40061
40057
|
}
|
|
40062
40058
|
function h(w) {
|
|
40063
40059
|
s(() => o(w));
|
|
40064
40060
|
}
|
|
40065
40061
|
function m({
|
|
40066
40062
|
option: w,
|
|
40067
|
-
croppedImages:
|
|
40063
|
+
croppedImages: C
|
|
40068
40064
|
}) {
|
|
40069
40065
|
if (o(w), !e)
|
|
40070
40066
|
return;
|
|
40071
|
-
const g = Object.entries(
|
|
40072
|
-
(b, [
|
|
40067
|
+
const g = Object.entries(C).reduce(
|
|
40068
|
+
(b, [S, T]) => H5e({
|
|
40073
40069
|
field: r,
|
|
40074
40070
|
content: b,
|
|
40075
|
-
thumbnail:
|
|
40071
|
+
thumbnail: S,
|
|
40076
40072
|
croppedImage: T
|
|
40077
40073
|
}),
|
|
40078
40074
|
e
|
|
@@ -40118,20 +40114,20 @@ function s4e(t) {
|
|
|
40118
40114
|
field: n,
|
|
40119
40115
|
content: e,
|
|
40120
40116
|
onContentChange: i
|
|
40121
|
-
}), [w,
|
|
40117
|
+
}), [w, C] = G(!1), g = Gr(n), b = f.map((R, $) => {
|
|
40122
40118
|
const O = h == null ? void 0 : h[$];
|
|
40123
40119
|
return {
|
|
40124
40120
|
thumbnail: R,
|
|
40125
40121
|
contentView: O,
|
|
40126
40122
|
labels: FI(R, e, O)
|
|
40127
40123
|
};
|
|
40128
|
-
}),
|
|
40124
|
+
}), S = d && o ? FI(d, e, m).filter(ko) : [], T = d && e && o && h, I = y || l;
|
|
40129
40125
|
return /* @__PURE__ */ p(
|
|
40130
40126
|
ZZ,
|
|
40131
40127
|
{
|
|
40132
40128
|
isMediaDialogOpen: w,
|
|
40133
40129
|
onMediaSelected: u,
|
|
40134
|
-
onMediaDialogOpenChange:
|
|
40130
|
+
onMediaDialogOpenChange: C,
|
|
40135
40131
|
children: /* @__PURE__ */ p(Dt, { fallback: /* @__PURE__ */ p("div", { style: { height: 95 } }), children: T ? /* @__PURE__ */ p(
|
|
40136
40132
|
hX,
|
|
40137
40133
|
{
|
|
@@ -40139,7 +40135,7 @@ function s4e(t) {
|
|
|
40139
40135
|
content: e,
|
|
40140
40136
|
contentView: m,
|
|
40141
40137
|
fieldLabel: g,
|
|
40142
|
-
imageLabel:
|
|
40138
|
+
imageLabel: S,
|
|
40143
40139
|
initialImages: b,
|
|
40144
40140
|
isUpdating: I,
|
|
40145
40141
|
page: c,
|
|
@@ -40148,7 +40144,7 @@ function s4e(t) {
|
|
|
40148
40144
|
onClear: A,
|
|
40149
40145
|
onContentChange: i,
|
|
40150
40146
|
onCropperDialogClose: a,
|
|
40151
|
-
onMediaDialogOpenChange:
|
|
40147
|
+
onMediaDialogOpenChange: C,
|
|
40152
40148
|
onPageChange: s
|
|
40153
40149
|
}
|
|
40154
40150
|
) : /* @__PURE__ */ p(
|
|
@@ -40163,7 +40159,7 @@ function s4e(t) {
|
|
|
40163
40159
|
fieldLabel: g,
|
|
40164
40160
|
isUpdating: I,
|
|
40165
40161
|
readOnly: r,
|
|
40166
|
-
onMediaDialogOpenChange:
|
|
40162
|
+
onMediaDialogOpenChange: C
|
|
40167
40163
|
}
|
|
40168
40164
|
)
|
|
40169
40165
|
}
|
|
@@ -44515,8 +44511,8 @@ function bje(t, e, n, r) {
|
|
|
44515
44511
|
for (let A = 0; A < a.length; A++) {
|
|
44516
44512
|
let v = a[(A + l) % a.length], y = !0;
|
|
44517
44513
|
v < 0 && (y = !1, v = -v);
|
|
44518
|
-
let w = i.node(v - 1),
|
|
44519
|
-
if (w.canReplaceWith(
|
|
44514
|
+
let w = i.node(v - 1), C = i.index(v - 1);
|
|
44515
|
+
if (w.canReplaceWith(C, C, m.type, m.marks))
|
|
44520
44516
|
return t.replace(i.before(v), y ? o.after(v) : n, new K(VX(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
44521
44517
|
}
|
|
44522
44518
|
}
|
|
@@ -48471,8 +48467,8 @@ function j9e(t, e, n, r, i, o, a) {
|
|
|
48471
48467
|
let w = s[y + 1];
|
|
48472
48468
|
if (w < 0 || f > w + u - d)
|
|
48473
48469
|
continue;
|
|
48474
|
-
let
|
|
48475
|
-
h >=
|
|
48470
|
+
let C = s[y] + u - d;
|
|
48471
|
+
h >= C ? s[y + 1] = f <= C ? -2 : -1 : f >= u && v && (s[y] += v, s[y + 1] += v);
|
|
48476
48472
|
}
|
|
48477
48473
|
d += v;
|
|
48478
48474
|
}), u = n.maps[c].map(u, -1);
|
|
@@ -48871,8 +48867,8 @@ function t8e(t, e, n, r, i) {
|
|
|
48871
48867
|
return;
|
|
48872
48868
|
}
|
|
48873
48869
|
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof ke && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), ii && xl <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
48874
|
-
let A = c.doc.resolveNoCache(m.start - c.from), v = c.doc.resolveNoCache(m.endB - c.from), y = u.resolve(m.start), w = A.sameParent(v) && A.parent.inlineContent && y.end() >= m.endA,
|
|
48875
|
-
if ((ip && t.input.lastIOSEnter > Date.now() - 225 && (!w || i.some((R) => R.nodeName == "DIV" || R.nodeName == "P")) || !w && A.pos < c.doc.content.size && !A.sameParent(v) && (
|
|
48870
|
+
let A = c.doc.resolveNoCache(m.start - c.from), v = c.doc.resolveNoCache(m.endB - c.from), y = u.resolve(m.start), w = A.sameParent(v) && A.parent.inlineContent && y.end() >= m.endA, C;
|
|
48871
|
+
if ((ip && t.input.lastIOSEnter > Date.now() - 225 && (!w || i.some((R) => R.nodeName == "DIV" || R.nodeName == "P")) || !w && A.pos < c.doc.content.size && !A.sameParent(v) && (C = Me.findFrom(c.doc.resolve(A.pos + 1), 1, !0)) && C.head == v.pos) && t.someProp("handleKeyDown", (R) => R(t, Xc(13, "Enter")))) {
|
|
48876
48872
|
t.input.lastIOSEnter = 0;
|
|
48877
48873
|
return;
|
|
48878
48874
|
}
|
|
@@ -48885,27 +48881,27 @@ function t8e(t, e, n, r, i) {
|
|
|
48885
48881
|
return R(t, Xc(13, "Enter"));
|
|
48886
48882
|
});
|
|
48887
48883
|
}, 20));
|
|
48888
|
-
let g = m.start, b = m.endA,
|
|
48884
|
+
let g = m.start, b = m.endA, S, T, I;
|
|
48889
48885
|
if (w) {
|
|
48890
48886
|
if (A.pos == v.pos)
|
|
48891
|
-
ii && xl <= 11 && A.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => ds(t), 20)),
|
|
48887
|
+
ii && xl <= 11 && A.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => ds(t), 20)), S = t.state.tr.delete(g, b), T = u.resolve(m.start).marksAcross(u.resolve(m.endA));
|
|
48892
48888
|
else if (
|
|
48893
48889
|
// Adding or removing a mark
|
|
48894
48890
|
m.endA == m.endB && (I = n8e(A.parent.content.cut(A.parentOffset, v.parentOffset), y.parent.content.cut(y.parentOffset, m.endA - y.start())))
|
|
48895
48891
|
)
|
|
48896
|
-
|
|
48892
|
+
S = t.state.tr, I.type == "add" ? S.addMark(g, b, I.mark) : S.removeMark(g, b, I.mark);
|
|
48897
48893
|
else if (A.parent.child(A.index()).isText && A.index() == v.index() - (v.textOffset ? 0 : 1)) {
|
|
48898
48894
|
let R = A.parent.textBetween(A.parentOffset, v.parentOffset);
|
|
48899
48895
|
if (t.someProp("handleTextInput", ($) => $(t, g, b, R)))
|
|
48900
48896
|
return;
|
|
48901
|
-
|
|
48897
|
+
S = t.state.tr.insertText(R, g, b);
|
|
48902
48898
|
}
|
|
48903
48899
|
}
|
|
48904
|
-
if (
|
|
48905
|
-
let R = ZN(t,
|
|
48906
|
-
R && !(gr && t.composing && R.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (R.head == g || R.head ==
|
|
48900
|
+
if (S || (S = t.state.tr.replace(g, b, c.doc.slice(m.start - c.from, m.endB - c.from))), c.sel) {
|
|
48901
|
+
let R = ZN(t, S.doc, c.sel);
|
|
48902
|
+
R && !(gr && t.composing && R.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (R.head == g || R.head == S.mapping.map(b) - 1) || ii && R.empty && R.head == g) && S.setSelection(R);
|
|
48907
48903
|
}
|
|
48908
|
-
T &&
|
|
48904
|
+
T && S.ensureMarks(T), o && S.setMeta("composition", o), t.dispatch(S.scrollIntoView());
|
|
48909
48905
|
}
|
|
48910
48906
|
function ZN(t, e, n) {
|
|
48911
48907
|
return Math.max(n.anchor, n.head) > e.content.size ? null : f2(t, e.resolve(n.anchor), e.resolve(n.head));
|
|
@@ -51294,8 +51290,8 @@ function lte(t, e, n, r) {
|
|
|
51294
51290
|
if (h.canReplace(h.childCount, h.childCount, A.content)) {
|
|
51295
51291
|
if (n) {
|
|
51296
51292
|
let y = B.empty;
|
|
51297
|
-
for (let
|
|
51298
|
-
y = B.from(m[
|
|
51293
|
+
for (let C = m.length - 1; C >= 0; C--)
|
|
51294
|
+
y = B.from(m[C].copy(y));
|
|
51299
51295
|
let w = t.tr.step(new N0(e.pos - m.length, e.pos + o.nodeSize, e.pos + v, e.pos + o.nodeSize - v, new K(y, m.length, 0), 0, !0));
|
|
51300
51296
|
n(w.scrollIntoView());
|
|
51301
51297
|
}
|
|
@@ -51689,10 +51685,10 @@ function fte(t, e) {
|
|
|
51689
51685
|
storage: c.storage,
|
|
51690
51686
|
editor: e
|
|
51691
51687
|
}, f = t.reduce((y, w) => {
|
|
51692
|
-
const
|
|
51688
|
+
const C = de(w, "extendNodeSchema", d);
|
|
51693
51689
|
return {
|
|
51694
51690
|
...y,
|
|
51695
|
-
...
|
|
51691
|
+
...C ? C(c) : {}
|
|
51696
51692
|
};
|
|
51697
51693
|
}, {}), h = pB({
|
|
51698
51694
|
...f,
|
|
@@ -51824,7 +51820,7 @@ function gy(t) {
|
|
|
51824
51820
|
}), v = {
|
|
51825
51821
|
from: r - (h[0].length - o.length),
|
|
51826
51822
|
to: i
|
|
51827
|
-
}, { commands: y, chain: w, can:
|
|
51823
|
+
}, { commands: y, chain: w, can: C } = new vw({
|
|
51828
51824
|
editor: n,
|
|
51829
51825
|
state: A
|
|
51830
51826
|
});
|
|
@@ -51834,7 +51830,7 @@ function gy(t) {
|
|
|
51834
51830
|
match: h,
|
|
51835
51831
|
commands: y,
|
|
51836
51832
|
chain: w,
|
|
51837
|
-
can:
|
|
51833
|
+
can: C
|
|
51838
51834
|
}) === null || !m.steps.length || (m.setMeta(s, {
|
|
51839
51835
|
transform: m,
|
|
51840
51836
|
from: r,
|
|
@@ -51999,16 +51995,16 @@ function yqe(t) {
|
|
|
51999
51995
|
if (!h.isTextblock || h.type.spec.code)
|
|
52000
51996
|
return;
|
|
52001
51997
|
const A = Math.max(r, m), v = Math.min(i, m + h.content.size), y = h.textBetween(A - m, v - m, void 0, "");
|
|
52002
|
-
vqe(y, o.find, a).forEach((
|
|
52003
|
-
if (
|
|
51998
|
+
vqe(y, o.find, a).forEach((C) => {
|
|
51999
|
+
if (C.index === void 0)
|
|
52004
52000
|
return;
|
|
52005
|
-
const g = A +
|
|
52001
|
+
const g = A + C.index + 1, b = g + C[0].length, S = {
|
|
52006
52002
|
from: n.tr.mapping.map(g),
|
|
52007
52003
|
to: n.tr.mapping.map(b)
|
|
52008
52004
|
}, T = o.handler({
|
|
52009
52005
|
state: n,
|
|
52010
|
-
range:
|
|
52011
|
-
match:
|
|
52006
|
+
range: S,
|
|
52007
|
+
match: C,
|
|
52012
52008
|
commands: l,
|
|
52013
52009
|
chain: c,
|
|
52014
52010
|
can: u,
|
|
@@ -52098,21 +52094,21 @@ function Cqe(t) {
|
|
|
52098
52094
|
if (w) {
|
|
52099
52095
|
let { text: b } = y;
|
|
52100
52096
|
typeof b == "string" ? b = b : b = w2(B.from(b), h.schema);
|
|
52101
|
-
const { from:
|
|
52097
|
+
const { from: S } = y, T = S + b.length, I = bqe(b);
|
|
52102
52098
|
return l({
|
|
52103
52099
|
rule: u,
|
|
52104
52100
|
state: h,
|
|
52105
|
-
from:
|
|
52101
|
+
from: S,
|
|
52106
52102
|
to: { b: T },
|
|
52107
52103
|
pasteEvt: I
|
|
52108
52104
|
});
|
|
52109
52105
|
}
|
|
52110
|
-
const
|
|
52111
|
-
if (!(!Aqe(
|
|
52106
|
+
const C = f.doc.content.findDiffStart(h.doc.content), g = f.doc.content.findDiffEnd(h.doc.content);
|
|
52107
|
+
if (!(!Aqe(C) || !g || C === g.b))
|
|
52112
52108
|
return l({
|
|
52113
52109
|
rule: u,
|
|
52114
52110
|
state: h,
|
|
52115
|
-
from:
|
|
52111
|
+
from: C,
|
|
52116
52112
|
to: g,
|
|
52117
52113
|
pasteEvt: a
|
|
52118
52114
|
});
|
|
@@ -52870,8 +52866,8 @@ function uE(t, e, n = {}) {
|
|
|
52870
52866
|
t.doc.nodesBetween(h, m, (A, v) => {
|
|
52871
52867
|
if (!A.isText && !A.marks.length)
|
|
52872
52868
|
return;
|
|
52873
|
-
const y = Math.max(h, v), w = Math.min(m, v + A.nodeSize),
|
|
52874
|
-
a +=
|
|
52869
|
+
const y = Math.max(h, v), w = Math.min(m, v + A.nodeSize), C = w - y;
|
|
52870
|
+
a += C, s.push(...A.marks.map((g) => ({
|
|
52875
52871
|
mark: g,
|
|
52876
52872
|
from: y,
|
|
52877
52873
|
to: w
|
|
@@ -53069,15 +53065,15 @@ const O7e = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
53069
53065
|
const w = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
53070
53066
|
for (let I = l.depth - w; I >= l.depth - 3; I -= 1)
|
|
53071
53067
|
y = B.from(l.node(I).copy(y));
|
|
53072
|
-
const
|
|
53068
|
+
const C = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, g = {
|
|
53073
53069
|
...Vy(f, l.node().type.name, l.node().attrs),
|
|
53074
53070
|
...e
|
|
53075
53071
|
}, b = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(g)) || void 0;
|
|
53076
53072
|
y = y.append(B.from(s.createAndFill(null, b) || void 0));
|
|
53077
|
-
const
|
|
53078
|
-
n.replace(
|
|
53073
|
+
const S = l.before(l.depth - (w - 1));
|
|
53074
|
+
n.replace(S, l.after(-C), new K(y, 4 - w, 0));
|
|
53079
53075
|
let T = -1;
|
|
53080
|
-
n.doc.nodesBetween(
|
|
53076
|
+
n.doc.nodesBetween(S, n.doc.content.size, (I, R) => {
|
|
53081
53077
|
if (T > -1)
|
|
53082
53078
|
return !1;
|
|
53083
53079
|
I.isTextblock && I.content.size === 0 && (T = R + 1);
|
|
@@ -53100,10 +53096,10 @@ const O7e = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
53100
53096
|
if (!By(n.doc, l.pos, 2))
|
|
53101
53097
|
return !1;
|
|
53102
53098
|
if (i) {
|
|
53103
|
-
const { selection: y, storedMarks: w } = r, { splittableMarks:
|
|
53099
|
+
const { selection: y, storedMarks: w } = r, { splittableMarks: C } = o.extensionManager, g = w || y.$to.parentOffset && y.$from.marks();
|
|
53104
53100
|
if (n.split(l.pos, 2, v).scrollIntoView(), !g || !i)
|
|
53105
53101
|
return !0;
|
|
53106
|
-
const b = g.filter((
|
|
53102
|
+
const b = g.filter((S) => C.includes(S.type.name));
|
|
53107
53103
|
n.ensureMarks(b);
|
|
53108
53104
|
}
|
|
53109
53105
|
return !0;
|
|
@@ -53126,19 +53122,19 @@ const O7e = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
53126
53122
|
const i = t.doc.nodeAt(r);
|
|
53127
53123
|
return n.node.type === (i == null ? void 0 : i.type) && v2(t.doc, r) && t.join(r), !0;
|
|
53128
53124
|
}, F7e = (t, e, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: u }) => {
|
|
53129
|
-
const { extensions: d, splittableMarks: f } = i.extensionManager, h = vn(t, a.schema), m = vn(e, a.schema), { selection: A, storedMarks: v } = a, { $from: y, $to: w } = A,
|
|
53130
|
-
if (!
|
|
53125
|
+
const { extensions: d, splittableMarks: f } = i.extensionManager, h = vn(t, a.schema), m = vn(e, a.schema), { selection: A, storedMarks: v } = a, { $from: y, $to: w } = A, C = y.blockRange(w), g = v || A.$to.parentOffset && A.$from.marks();
|
|
53126
|
+
if (!C)
|
|
53131
53127
|
return !1;
|
|
53132
|
-
const b = tf((
|
|
53133
|
-
if (
|
|
53128
|
+
const b = tf((S) => gB(S.type.name, d))(A);
|
|
53129
|
+
if (C.depth >= 1 && b && C.depth - b.depth <= 1) {
|
|
53134
53130
|
if (b.node.type === h)
|
|
53135
53131
|
return c.liftListItem(m);
|
|
53136
53132
|
if (gB(b.node.type.name, d) && h.validContent(b.node.content) && s)
|
|
53137
53133
|
return l().command(() => (o.setNodeMarkup(b.pos, h), !0)).command(() => g_(o, h)).command(() => v_(o, h)).run();
|
|
53138
53134
|
}
|
|
53139
53135
|
return !n || !g || !s ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => g_(o, h)).command(() => v_(o, h)).run() : l().command(() => {
|
|
53140
|
-
const
|
|
53141
|
-
return o.ensureMarks(T),
|
|
53136
|
+
const S = u().wrapInList(h, r), T = g.filter((I) => f.includes(I.type.name));
|
|
53137
|
+
return o.ensureMarks(T), S ? !0 : c.clearNodes();
|
|
53142
53138
|
}).wrapInList(h, r).command(() => g_(o, h)).command(() => v_(o, h)).run();
|
|
53143
53139
|
}, x7e = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
53144
53140
|
const { extendEmptyMarkRange: o = !1 } = n, a = Uc(t, r.schema);
|
|
@@ -53203,8 +53199,8 @@ const O7e = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
53203
53199
|
...e
|
|
53204
53200
|
}), a && A.marks.length && A.marks.forEach((y) => {
|
|
53205
53201
|
if (a === y.type) {
|
|
53206
|
-
const w = Math.max(v, c),
|
|
53207
|
-
n.addMark(w,
|
|
53202
|
+
const w = Math.max(v, c), C = Math.min(v + A.nodeSize, u);
|
|
53203
|
+
n.addMark(w, C, a.create({
|
|
53208
53204
|
...y.attrs,
|
|
53209
53205
|
...e
|
|
53210
53206
|
}));
|
|
@@ -54121,8 +54117,8 @@ class eVe {
|
|
|
54121
54117
|
return;
|
|
54122
54118
|
let f = 0, h = 0;
|
|
54123
54119
|
if (this.dom !== d) {
|
|
54124
|
-
const y = this.dom.getBoundingClientRect(), w = d.getBoundingClientRect(),
|
|
54125
|
-
f = w.x - y.x +
|
|
54120
|
+
const y = this.dom.getBoundingClientRect(), w = d.getBoundingClientRect(), C = (i = e.offsetX) !== null && i !== void 0 ? i : (o = e.nativeEvent) === null || o === void 0 ? void 0 : o.offsetX, g = (a = e.offsetY) !== null && a !== void 0 ? a : (s = e.nativeEvent) === null || s === void 0 ? void 0 : s.offsetY;
|
|
54121
|
+
f = w.x - y.x + C, h = w.y - y.y + g;
|
|
54126
54122
|
}
|
|
54127
54123
|
(l = e.dataTransfer) === null || l === void 0 || l.setDragImage(this.dom, f, h);
|
|
54128
54124
|
const m = this.getPos();
|
|
@@ -54894,8 +54890,8 @@ var LVe = function(e, n) {
|
|
|
54894
54890
|
function DVe(t) {
|
|
54895
54891
|
var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, a = n.modifiersData.popperOffsets, s = fa(n.placement), l = O2(s), c = [ai, lo].indexOf(s) >= 0, u = c ? "height" : "width";
|
|
54896
54892
|
if (!(!o || !a)) {
|
|
54897
|
-
var d = LVe(i.padding, n), f = $2(o), h = l === "y" ? oi : ai, m = l === "y" ? so : lo, A = n.rects.reference[u] + n.rects.reference[l] - a[l] - n.rects.popper[u], v = a[l] - n.rects.reference[l], y = Vv(o), w = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0,
|
|
54898
|
-
n.modifiersData[r] = (e = {}, e[I] = T, e.centerOffset = T -
|
|
54893
|
+
var d = LVe(i.padding, n), f = $2(o), h = l === "y" ? oi : ai, m = l === "y" ? so : lo, A = n.rects.reference[u] + n.rects.reference[l] - a[l] - n.rects.popper[u], v = a[l] - n.rects.reference[l], y = Vv(o), w = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = A / 2 - v / 2, g = d[h], b = w - f[u] - d[m], S = w / 2 - f[u] / 2 + C, T = Fm(g, S, b), I = l;
|
|
54894
|
+
n.modifiersData[r] = (e = {}, e[I] = T, e.centerOffset = T - S, e);
|
|
54899
54895
|
}
|
|
54900
54896
|
}
|
|
54901
54897
|
function PVe(t) {
|
|
@@ -54936,22 +54932,22 @@ function _B(t) {
|
|
|
54936
54932
|
y: A
|
|
54937
54933
|
};
|
|
54938
54934
|
h = v.x, A = v.y;
|
|
54939
|
-
var y = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"),
|
|
54935
|
+
var y = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"), C = ai, g = oi, b = window;
|
|
54940
54936
|
if (c) {
|
|
54941
|
-
var
|
|
54942
|
-
if (
|
|
54937
|
+
var S = Vv(n), T = "clientHeight", I = "clientWidth";
|
|
54938
|
+
if (S === Di(n) && (S = Nc(n), ys(S).position !== "static" && s === "absolute" && (T = "scrollHeight", I = "scrollWidth")), S = S, i === oi || (i === ai || i === lo) && o === RA) {
|
|
54943
54939
|
g = so;
|
|
54944
|
-
var R = d &&
|
|
54940
|
+
var R = d && S === b && b.visualViewport ? b.visualViewport.height : (
|
|
54945
54941
|
// $FlowFixMe[prop-missing]
|
|
54946
|
-
|
|
54942
|
+
S[T]
|
|
54947
54943
|
);
|
|
54948
54944
|
A -= R - r.height, A *= l ? 1 : -1;
|
|
54949
54945
|
}
|
|
54950
54946
|
if (i === ai || (i === oi || i === so) && o === RA) {
|
|
54951
|
-
|
|
54952
|
-
var $ = d &&
|
|
54947
|
+
C = lo;
|
|
54948
|
+
var $ = d && S === b && b.visualViewport ? b.visualViewport.width : (
|
|
54953
54949
|
// $FlowFixMe[prop-missing]
|
|
54954
|
-
|
|
54950
|
+
S[I]
|
|
54955
54951
|
);
|
|
54956
54952
|
h -= $ - r.width, h *= l ? 1 : -1;
|
|
54957
54953
|
}
|
|
@@ -54967,9 +54963,9 @@ function _B(t) {
|
|
|
54967
54963
|
};
|
|
54968
54964
|
if (h = N.x, A = N.y, l) {
|
|
54969
54965
|
var q;
|
|
54970
|
-
return Object.assign({}, O, (q = {}, q[g] = w ? "0" : "", q[
|
|
54966
|
+
return Object.assign({}, O, (q = {}, q[g] = w ? "0" : "", q[C] = y ? "0" : "", q.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + A + "px)" : "translate3d(" + h + "px, " + A + "px, 0)", q));
|
|
54971
54967
|
}
|
|
54972
|
-
return Object.assign({}, O, (e = {}, e[g] = w ? A + "px" : "", e[
|
|
54968
|
+
return Object.assign({}, O, (e = {}, e[g] = w ? A + "px" : "", e[C] = y ? h + "px" : "", e.transform = "", e));
|
|
54973
54969
|
}
|
|
54974
54970
|
function WVe(t) {
|
|
54975
54971
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, a = o === void 0 ? !0 : o, s = n.roundOffsets, l = s === void 0 ? !0 : s, c = {
|
|
@@ -55169,12 +55165,12 @@ function Pte(t) {
|
|
|
55169
55165
|
}
|
|
55170
55166
|
function kA(t, e) {
|
|
55171
55167
|
e === void 0 && (e = {});
|
|
55172
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, a = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? vVe : s, c = n.rootBoundary, u = c === void 0 ? Rte : c, d = n.elementContext, f = d === void 0 ? Zh : d, h = n.altBoundary, m = h === void 0 ? !1 : h, A = n.padding, v = A === void 0 ? 0 : A, y = xte(typeof v != "number" ? v : Lte(v, qv)), w = f === Zh ? yVe : Zh,
|
|
55173
|
-
reference:
|
|
55174
|
-
element:
|
|
55168
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, a = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? vVe : s, c = n.rootBoundary, u = c === void 0 ? Rte : c, d = n.elementContext, f = d === void 0 ? Zh : d, h = n.altBoundary, m = h === void 0 ? !1 : h, A = n.padding, v = A === void 0 ? 0 : A, y = xte(typeof v != "number" ? v : Lte(v, qv)), w = f === Zh ? yVe : Zh, C = t.rects.popper, g = t.elements[m ? w : f], b = JVe(Wu(g) ? g : g.contextElement || Nc(t.elements.popper), l, u, a), S = lp(t.elements.reference), T = Pte({
|
|
55169
|
+
reference: S,
|
|
55170
|
+
element: C,
|
|
55175
55171
|
strategy: "absolute",
|
|
55176
55172
|
placement: i
|
|
55177
|
-
}), I = pE(Object.assign({},
|
|
55173
|
+
}), I = pE(Object.assign({}, C, T)), R = f === Zh ? I : S, $ = {
|
|
55178
55174
|
top: b.top - R.top + y.top,
|
|
55179
55175
|
bottom: R.bottom - b.bottom + y.bottom,
|
|
55180
55176
|
left: b.left - R.left + y.left,
|
|
@@ -55218,7 +55214,7 @@ function XVe(t) {
|
|
|
55218
55214
|
function eze(t) {
|
|
55219
55215
|
var e = t.state, n = t.options, r = t.name;
|
|
55220
55216
|
if (!e.modifiersData[r]._skip) {
|
|
55221
|
-
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, A = n.allowedAutoPlacements, v = e.options.placement, y = fa(v), w = y === v,
|
|
55217
|
+
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, A = n.allowedAutoPlacements, v = e.options.placement, y = fa(v), w = y === v, C = l || (w || !m ? [Qy(v)] : XVe(v)), g = [v].concat(C).reduce(function(ge, De) {
|
|
55222
55218
|
return ge.concat(fa(De) === R2 ? ZVe(e, {
|
|
55223
55219
|
placement: De,
|
|
55224
55220
|
boundary: u,
|
|
@@ -55227,7 +55223,7 @@ function eze(t) {
|
|
|
55227
55223
|
flipVariations: m,
|
|
55228
55224
|
allowedAutoPlacements: A
|
|
55229
55225
|
}) : De);
|
|
55230
|
-
}, []), b = e.rects.reference,
|
|
55226
|
+
}, []), b = e.rects.reference, S = e.rects.popper, T = /* @__PURE__ */ new Map(), I = !0, R = g[0], $ = 0; $ < g.length; $++) {
|
|
55231
55227
|
var O = g[$], N = fa(O), q = cp(O) === ap, H = [oi, so].indexOf(N) >= 0, Q = H ? "width" : "height", j = kA(e, {
|
|
55232
55228
|
placement: O,
|
|
55233
55229
|
boundary: u,
|
|
@@ -55235,7 +55231,7 @@ function eze(t) {
|
|
|
55235
55231
|
altBoundary: f,
|
|
55236
55232
|
padding: c
|
|
55237
55233
|
}), J = H ? q ? lo : ai : q ? so : oi;
|
|
55238
|
-
b[Q] >
|
|
55234
|
+
b[Q] > S[Q] && (J = Qy(J));
|
|
55239
55235
|
var ne = Qy(J), L = [];
|
|
55240
55236
|
if (o && L.push(j[N] <= 0), s && L.push(j[J] <= 0, j[ne] <= 0), L.every(function(ge) {
|
|
55241
55237
|
return ge;
|
|
@@ -55363,7 +55359,7 @@ function uze(t) {
|
|
|
55363
55359
|
rootBoundary: c,
|
|
55364
55360
|
padding: d,
|
|
55365
55361
|
altBoundary: u
|
|
55366
|
-
}), y = fa(e.placement), w = cp(e.placement),
|
|
55362
|
+
}), y = fa(e.placement), w = cp(e.placement), C = !w, g = O2(y), b = cze(g), S = e.modifiersData.popperOffsets, T = e.rects.reference, I = e.rects.popper, R = typeof A == "function" ? A(Object.assign({}, e.rects, {
|
|
55367
55363
|
placement: e.placement
|
|
55368
55364
|
})) : A, $ = typeof R == "number" ? {
|
|
55369
55365
|
mainAxis: R,
|
|
@@ -55375,17 +55371,17 @@ function uze(t) {
|
|
|
55375
55371
|
x: 0,
|
|
55376
55372
|
y: 0
|
|
55377
55373
|
};
|
|
55378
|
-
if (
|
|
55374
|
+
if (S) {
|
|
55379
55375
|
if (o) {
|
|
55380
|
-
var q, H = g === "y" ? oi : ai, Q = g === "y" ? so : lo, j = g === "y" ? "height" : "width", J =
|
|
55376
|
+
var q, H = g === "y" ? oi : ai, Q = g === "y" ? so : lo, j = g === "y" ? "height" : "width", J = S[g], ne = J + v[H], L = J - v[Q], M = h ? -I[j] / 2 : 0, F = w === ap ? T[j] : I[j], V = w === ap ? -I[j] : -T[j], me = e.elements.arrow, ge = h && me ? $2(me) : {
|
|
55381
55377
|
width: 0,
|
|
55382
55378
|
height: 0
|
|
55383
|
-
}, De = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fte(), Ge = De[H], xt = De[Q], Ie = Fm(0, T[j], ge[j]), je =
|
|
55384
|
-
|
|
55379
|
+
}, De = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fte(), Ge = De[H], xt = De[Q], Ie = Fm(0, T[j], ge[j]), je = C ? T[j] / 2 - M - Ie - Ge - $.mainAxis : F - Ie - Ge - $.mainAxis, Et = C ? -T[j] / 2 + M + Ie + xt + $.mainAxis : V + Ie + xt + $.mainAxis, Cn = e.elements.arrow && Vv(e.elements.arrow), un = Cn ? g === "y" ? Cn.clientTop || 0 : Cn.clientLeft || 0 : 0, _e = (q = O == null ? void 0 : O[g]) != null ? q : 0, st = J + je - _e - un, Tt = J + Et - _e, ct = Fm(h ? Q0(ne, st) : ne, J, h ? gu(L, Tt) : L);
|
|
55380
|
+
S[g] = ct, N[g] = ct - J;
|
|
55385
55381
|
}
|
|
55386
55382
|
if (s) {
|
|
55387
|
-
var bt, dn = g === "x" ? oi : ai, Bn = g === "x" ? so : lo, fn =
|
|
55388
|
-
|
|
55383
|
+
var bt, dn = g === "x" ? oi : ai, Bn = g === "x" ? so : lo, fn = S[b], Bt = b === "y" ? "height" : "width", Jr = fn + v[dn], Zt = fn - v[Bn], pn = [oi, ai].indexOf(y) !== -1, Sn = (bt = O == null ? void 0 : O[b]) != null ? bt : 0, Zr = pn ? Jr : fn - T[Bt] - I[Bt] - Sn + $.altAxis, Xr = pn ? fn + T[Bt] + I[Bt] - Sn - $.altAxis : Zt, Le = h && pn ? xVe(Zr, fn, Xr) : Fm(h ? Zr : Jr, fn, h ? Xr : Zt);
|
|
55384
|
+
S[b] = Le, N[b] = Le - fn;
|
|
55389
55385
|
}
|
|
55390
55386
|
e.modifiersData[r] = N;
|
|
55391
55387
|
}
|
|
@@ -55512,8 +55508,8 @@ function bze(t) {
|
|
|
55512
55508
|
reference: Wu(s) ? xm(s) : s.contextElement ? xm(s.contextElement) : [],
|
|
55513
55509
|
popper: xm(l)
|
|
55514
55510
|
};
|
|
55515
|
-
var
|
|
55516
|
-
return u.orderedModifiers =
|
|
55511
|
+
var C = gze(yze([].concat(r, u.options.modifiers)));
|
|
55512
|
+
return u.orderedModifiers = C.filter(function(g) {
|
|
55517
55513
|
return g.enabled;
|
|
55518
55514
|
}), m(), h.update();
|
|
55519
55515
|
},
|
|
@@ -55524,11 +55520,11 @@ function bze(t) {
|
|
|
55524
55520
|
// prefer the async Popper#update method
|
|
55525
55521
|
forceUpdate: function() {
|
|
55526
55522
|
if (!f) {
|
|
55527
|
-
var y = u.elements, w = y.reference,
|
|
55528
|
-
if (OB(w,
|
|
55523
|
+
var y = u.elements, w = y.reference, C = y.popper;
|
|
55524
|
+
if (OB(w, C)) {
|
|
55529
55525
|
u.rects = {
|
|
55530
|
-
reference: mze(w, Vv(
|
|
55531
|
-
popper: $2(
|
|
55526
|
+
reference: mze(w, Vv(C), u.options.strategy === "fixed"),
|
|
55527
|
+
popper: $2(C)
|
|
55532
55528
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function($) {
|
|
55533
55529
|
return u.modifiersData[$.name] = Object.assign({}, $.data);
|
|
55534
55530
|
});
|
|
@@ -55537,8 +55533,8 @@ function bze(t) {
|
|
|
55537
55533
|
u.reset = !1, g = -1;
|
|
55538
55534
|
continue;
|
|
55539
55535
|
}
|
|
55540
|
-
var b = u.orderedModifiers[g],
|
|
55541
|
-
typeof
|
|
55536
|
+
var b = u.orderedModifiers[g], S = b.fn, T = b.options, I = T === void 0 ? {} : T, R = b.name;
|
|
55537
|
+
typeof S == "function" && (u = S({
|
|
55542
55538
|
state: u,
|
|
55543
55539
|
options: I,
|
|
55544
55540
|
name: R,
|
|
@@ -55566,16 +55562,16 @@ function bze(t) {
|
|
|
55566
55562
|
});
|
|
55567
55563
|
function m() {
|
|
55568
55564
|
u.orderedModifiers.forEach(function(v) {
|
|
55569
|
-
var y = v.name, w = v.options,
|
|
55565
|
+
var y = v.name, w = v.options, C = w === void 0 ? {} : w, g = v.effect;
|
|
55570
55566
|
if (typeof g == "function") {
|
|
55571
55567
|
var b = g({
|
|
55572
55568
|
state: u,
|
|
55573
55569
|
name: y,
|
|
55574
55570
|
instance: h,
|
|
55575
|
-
options:
|
|
55576
|
-
}),
|
|
55571
|
+
options: C
|
|
55572
|
+
}), S = function() {
|
|
55577
55573
|
};
|
|
55578
|
-
d.push(b ||
|
|
55574
|
+
d.push(b || S);
|
|
55579
55575
|
}
|
|
55580
55576
|
});
|
|
55581
55577
|
}
|
|
@@ -55952,7 +55948,7 @@ function Hte(t) {
|
|
|
55952
55948
|
Hte.$$tippy = !0;
|
|
55953
55949
|
var Yze = 1, Sy = [], T_ = [];
|
|
55954
55950
|
function Gze(t, e) {
|
|
55955
|
-
var n = NB(t, Object.assign({}, $i, zte(xB(e)))), r, i, o, a = !1, s = !1, l = !1, c = !1, u, d, f, h = [], m = MB(st, n.interactiveDebounce), A, v = Yze++, y = null, w = Rze(n.plugins),
|
|
55951
|
+
var n = NB(t, Object.assign({}, $i, zte(xB(e)))), r, i, o, a = !1, s = !1, l = !1, c = !1, u, d, f, h = [], m = MB(st, n.interactiveDebounce), A, v = Yze++, y = null, w = Rze(n.plugins), C = {
|
|
55956
55952
|
// Is the instance currently enabled?
|
|
55957
55953
|
isEnabled: !0,
|
|
55958
55954
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -55970,7 +55966,7 @@ function Gze(t, e) {
|
|
|
55970
55966
|
popper: Lm(),
|
|
55971
55967
|
popperInstance: y,
|
|
55972
55968
|
props: n,
|
|
55973
|
-
state:
|
|
55969
|
+
state: C,
|
|
55974
55970
|
plugins: w,
|
|
55975
55971
|
// methods
|
|
55976
55972
|
clearDelayTimeouts: Zr,
|
|
@@ -55986,14 +55982,14 @@ function Gze(t, e) {
|
|
|
55986
55982
|
};
|
|
55987
55983
|
if (!n.render)
|
|
55988
55984
|
return process.env.NODE_ENV !== "production" && hE(!0, "render() function has not been supplied."), g;
|
|
55989
|
-
var b = n.render(g),
|
|
55990
|
-
|
|
55985
|
+
var b = n.render(g), S = b.popper, T = b.onUpdate;
|
|
55986
|
+
S.setAttribute("data-tippy-root", ""), S.id = "tippy-" + g.id, g.popper = S, t._tippy = g, S._tippy = g;
|
|
55991
55987
|
var I = w.map(function(x) {
|
|
55992
55988
|
return x.fn(g);
|
|
55993
55989
|
}), R = t.hasAttribute("aria-expanded");
|
|
55994
|
-
return Cn(), M(), J(), ne("onCreate", [g]), n.showOnCreate && Jr(),
|
|
55990
|
+
return Cn(), M(), J(), ne("onCreate", [g]), n.showOnCreate && Jr(), S.addEventListener("mouseenter", function() {
|
|
55995
55991
|
g.props.interactive && g.state.isVisible && g.clearDelayTimeouts();
|
|
55996
|
-
}),
|
|
55992
|
+
}), S.addEventListener("mouseleave", function() {
|
|
55997
55993
|
g.props.interactive && g.props.trigger.indexOf("mouseenter") >= 0 && H().addEventListener("mousemove", m);
|
|
55998
55994
|
}), g;
|
|
55999
55995
|
function $() {
|
|
@@ -56015,13 +56011,13 @@ function Gze(t, e) {
|
|
|
56015
56011
|
return x ? xze(x) : document;
|
|
56016
56012
|
}
|
|
56017
56013
|
function Q() {
|
|
56018
|
-
return AE(
|
|
56014
|
+
return AE(S);
|
|
56019
56015
|
}
|
|
56020
56016
|
function j(x) {
|
|
56021
56017
|
return g.state.isMounted && !g.state.isVisible || la.isTouch || u && u.type === "focus" ? 0 : C_(g.props.delay, x ? 0 : 1, $i.delay);
|
|
56022
56018
|
}
|
|
56023
56019
|
function J(x) {
|
|
56024
|
-
x === void 0 && (x = !1),
|
|
56020
|
+
x === void 0 && (x = !1), S.style.pointerEvents = g.props.interactive && !x ? "" : "none", S.style.zIndex = "" + g.props.zIndex;
|
|
56025
56021
|
}
|
|
56026
56022
|
function ne(x, ie, pe) {
|
|
56027
56023
|
if (pe === void 0 && (pe = !0), I.forEach(function(Ce) {
|
|
@@ -56034,7 +56030,7 @@ function Gze(t, e) {
|
|
|
56034
56030
|
function L() {
|
|
56035
56031
|
var x = g.props.aria;
|
|
56036
56032
|
if (x.content) {
|
|
56037
|
-
var ie = "aria-" + x.content, pe =
|
|
56033
|
+
var ie = "aria-" + x.content, pe = S.id, se = Sf(g.props.triggerTarget || t);
|
|
56038
56034
|
se.forEach(function(Ce) {
|
|
56039
56035
|
var ht = Ce.getAttribute(ie);
|
|
56040
56036
|
if (g.state.isVisible)
|
|
@@ -56062,7 +56058,7 @@ function Gze(t, e) {
|
|
|
56062
56058
|
function V(x) {
|
|
56063
56059
|
if (!(la.isTouch && (l || x.type === "mousedown"))) {
|
|
56064
56060
|
var ie = x.composedPath && x.composedPath()[0] || x.target;
|
|
56065
|
-
if (!(g.props.interactive && DB(
|
|
56061
|
+
if (!(g.props.interactive && DB(S, ie))) {
|
|
56066
56062
|
if (Sf(g.props.triggerTarget || t).some(function(pe) {
|
|
56067
56063
|
return DB(pe, ie);
|
|
56068
56064
|
})) {
|
|
@@ -56092,7 +56088,7 @@ function Gze(t, e) {
|
|
|
56092
56088
|
}
|
|
56093
56089
|
function xt(x, ie) {
|
|
56094
56090
|
je(x, function() {
|
|
56095
|
-
!g.state.isVisible &&
|
|
56091
|
+
!g.state.isVisible && S.parentNode && S.parentNode.contains(S) && ie();
|
|
56096
56092
|
});
|
|
56097
56093
|
}
|
|
56098
56094
|
function Ie(x, ie) {
|
|
@@ -56155,9 +56151,9 @@ function Gze(t, e) {
|
|
|
56155
56151
|
}
|
|
56156
56152
|
}
|
|
56157
56153
|
function st(x) {
|
|
56158
|
-
var ie = x.target, pe = q().contains(ie) ||
|
|
56154
|
+
var ie = x.target, pe = q().contains(ie) || S.contains(ie);
|
|
56159
56155
|
if (!(x.type === "mousemove" && pe)) {
|
|
56160
|
-
var se = Bt().concat(
|
|
56156
|
+
var se = Bt().concat(S).map(function(Ce) {
|
|
56161
56157
|
var ht, Wn = Ce._tippy, ra = (ht = Wn.popperInstance) == null ? void 0 : ht.state;
|
|
56162
56158
|
return ra ? {
|
|
56163
56159
|
popperRect: Ce.getBoundingClientRect(),
|
|
@@ -56179,14 +56175,14 @@ function Gze(t, e) {
|
|
|
56179
56175
|
}
|
|
56180
56176
|
}
|
|
56181
56177
|
function ct(x) {
|
|
56182
|
-
g.props.trigger.indexOf("focusin") < 0 && x.target !== q() || g.props.interactive && x.relatedTarget &&
|
|
56178
|
+
g.props.trigger.indexOf("focusin") < 0 && x.target !== q() || g.props.interactive && x.relatedTarget && S.contains(x.relatedTarget) || Zt(x);
|
|
56183
56179
|
}
|
|
56184
56180
|
function bt(x) {
|
|
56185
56181
|
return la.isTouch ? O() !== x.type.indexOf("touch") >= 0 : !1;
|
|
56186
56182
|
}
|
|
56187
56183
|
function dn() {
|
|
56188
56184
|
Bn();
|
|
56189
|
-
var x = g.props, ie = x.popperOptions, pe = x.placement, se = x.offset, Ce = x.getReferenceClientRect, ht = x.moveTransition, Wn = N() ? AE(
|
|
56185
|
+
var x = g.props, ie = x.popperOptions, pe = x.placement, se = x.offset, Ce = x.getReferenceClientRect, ht = x.moveTransition, Wn = N() ? AE(S).arrow : null, ra = Ce ? {
|
|
56190
56186
|
getBoundingClientRect: Ce,
|
|
56191
56187
|
contextElement: Ce.contextElement || q()
|
|
56192
56188
|
} : t, Wc = {
|
|
@@ -56235,7 +56231,7 @@ function Gze(t, e) {
|
|
|
56235
56231
|
element: Wn,
|
|
56236
56232
|
padding: 3
|
|
56237
56233
|
}
|
|
56238
|
-
}), Va.push.apply(Va, (ie == null ? void 0 : ie.modifiers) || []), g.popperInstance = Sze(ra,
|
|
56234
|
+
}), Va.push.apply(Va, (ie == null ? void 0 : ie.modifiers) || []), g.popperInstance = Sze(ra, S, Object.assign({}, ie, {
|
|
56239
56235
|
placement: pe,
|
|
56240
56236
|
onFirstUpdate: f,
|
|
56241
56237
|
modifiers: Va
|
|
@@ -56246,7 +56242,7 @@ function Gze(t, e) {
|
|
|
56246
56242
|
}
|
|
56247
56243
|
function fn() {
|
|
56248
56244
|
var x = g.props.appendTo, ie, pe = q();
|
|
56249
|
-
g.props.interactive && x === Wte || x === "parent" ? ie = pe.parentNode : ie = Kte(x, [pe]), ie.contains(
|
|
56245
|
+
g.props.interactive && x === Wte || x === "parent" ? ie = pe.parentNode : ie = Kte(x, [pe]), ie.contains(S) || ie.appendChild(S), g.state.isMounted = !0, dn(), process.env.NODE_ENV !== "production" && rs(g.props.interactive && x === $i.appendTo && pe.nextElementSibling !== S, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
56250
56246
|
|
|
56251
56247
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
56252
56248
|
|
|
@@ -56255,7 +56251,7 @@ function Gze(t, e) {
|
|
|
56255
56251
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
56256
56252
|
}
|
|
56257
56253
|
function Bt() {
|
|
56258
|
-
return H0(
|
|
56254
|
+
return H0(S.querySelectorAll("[data-tippy-root]"));
|
|
56259
56255
|
}
|
|
56260
56256
|
function Jr(x) {
|
|
56261
56257
|
g.clearDelayTimeouts(), x && ne("onTrigger", [g, x]), De();
|
|
@@ -56309,14 +56305,14 @@ function Gze(t, e) {
|
|
|
56309
56305
|
process.env.NODE_ENV !== "production" && rs(g.state.isDestroyed, df("show"));
|
|
56310
56306
|
var x = g.state.isVisible, ie = g.state.isDestroyed, pe = !g.state.isEnabled, se = la.isTouch && !g.props.touch, Ce = C_(g.props.duration, 0, $i.duration);
|
|
56311
56307
|
if (!(x || ie || pe || se) && !q().hasAttribute("disabled") && (ne("onShow", [g], !1), g.props.onShow(g) !== !1)) {
|
|
56312
|
-
if (g.state.isVisible = !0, N() && (
|
|
56308
|
+
if (g.state.isVisible = !0, N() && (S.style.visibility = "visible"), J(), De(), g.state.isMounted || (S.style.transition = "none"), N()) {
|
|
56313
56309
|
var ht = Q(), Wn = ht.box, ra = ht.content;
|
|
56314
56310
|
S_([Wn, ra], 0);
|
|
56315
56311
|
}
|
|
56316
56312
|
f = function() {
|
|
56317
56313
|
var Va;
|
|
56318
56314
|
if (!(!g.state.isVisible || c)) {
|
|
56319
|
-
if (c = !0,
|
|
56315
|
+
if (c = !0, S.offsetHeight, S.style.transition = g.props.moveTransition, N() && g.props.animation) {
|
|
56320
56316
|
var za = Q(), Kn = za.box, cl = za.content;
|
|
56321
56317
|
S_([Kn, cl], Ce), LB([Kn, cl], "visible");
|
|
56322
56318
|
}
|
|
@@ -56331,7 +56327,7 @@ function Gze(t, e) {
|
|
|
56331
56327
|
process.env.NODE_ENV !== "production" && rs(g.state.isDestroyed, df("hide"));
|
|
56332
56328
|
var x = !g.state.isVisible, ie = g.state.isDestroyed, pe = !g.state.isEnabled, se = C_(g.props.duration, 1, $i.duration);
|
|
56333
56329
|
if (!(x || ie || pe) && (ne("onHide", [g], !1), g.props.onHide(g) !== !1)) {
|
|
56334
|
-
if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, a = !1, N() && (
|
|
56330
|
+
if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, a = !1, N() && (S.style.visibility = "hidden"), F(), Ge(), J(!0), N()) {
|
|
56335
56331
|
var Ce = Q(), ht = Ce.box, Wn = Ce.content;
|
|
56336
56332
|
g.props.animation && (S_([ht, Wn], se), LB([ht, Wn], "hidden"));
|
|
56337
56333
|
}
|
|
@@ -56344,7 +56340,7 @@ function Gze(t, e) {
|
|
|
56344
56340
|
function W() {
|
|
56345
56341
|
process.env.NODE_ENV !== "production" && rs(g.state.isDestroyed, df("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Bn(), Bt().forEach(function(x) {
|
|
56346
56342
|
x._tippy.unmount();
|
|
56347
|
-
}),
|
|
56343
|
+
}), S.parentNode && S.parentNode.removeChild(S), T_ = T_.filter(function(x) {
|
|
56348
56344
|
return x !== g;
|
|
56349
56345
|
}), g.state.isMounted = !1, ne("onHidden", [g]));
|
|
56350
56346
|
}
|
|
@@ -56428,14 +56424,14 @@ class Jze {
|
|
|
56428
56424
|
if (A || !l && !c)
|
|
56429
56425
|
return;
|
|
56430
56426
|
this.createTooltip();
|
|
56431
|
-
const { ranges: w } = v,
|
|
56427
|
+
const { ranges: w } = v, C = Math.min(...w.map((S) => S.$from.pos)), g = Math.max(...w.map((S) => S.$to.pos));
|
|
56432
56428
|
if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
|
|
56433
56429
|
editor: this.editor,
|
|
56434
56430
|
element: this.element,
|
|
56435
56431
|
view: s,
|
|
56436
56432
|
state: m,
|
|
56437
56433
|
oldState: u,
|
|
56438
|
-
from:
|
|
56434
|
+
from: C,
|
|
56439
56435
|
to: g
|
|
56440
56436
|
}))) {
|
|
56441
56437
|
this.hide();
|
|
@@ -56444,14 +56440,14 @@ class Jze {
|
|
|
56444
56440
|
(f = this.tippy) === null || f === void 0 || f.setProps({
|
|
56445
56441
|
getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
|
|
56446
56442
|
if (S7e(m.selection)) {
|
|
56447
|
-
let
|
|
56448
|
-
if (
|
|
56449
|
-
const T =
|
|
56450
|
-
if (T && (
|
|
56451
|
-
return
|
|
56443
|
+
let S = s.nodeDOM(C);
|
|
56444
|
+
if (S) {
|
|
56445
|
+
const T = S.dataset.nodeViewWrapper ? S : S.querySelector("[data-node-view-wrapper]");
|
|
56446
|
+
if (T && (S = T.firstChild), S)
|
|
56447
|
+
return S.getBoundingClientRect();
|
|
56452
56448
|
}
|
|
56453
56449
|
}
|
|
56454
|
-
return w7e(s,
|
|
56450
|
+
return w7e(s, C, g);
|
|
56455
56451
|
})
|
|
56456
56452
|
}), this.show();
|
|
56457
56453
|
}, this.editor = e, this.element = n, this.view = r, this.updateDelay = o, a && (this.shouldShow = a), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
|
|
@@ -56583,45 +56579,45 @@ function eQe() {
|
|
|
56583
56579
|
return jB || (jB = 1, process.env.NODE_ENV !== "production" && function() {
|
|
56584
56580
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
56585
56581
|
var t = Qt, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56586
|
-
function n(
|
|
56582
|
+
function n(C) {
|
|
56587
56583
|
{
|
|
56588
|
-
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0),
|
|
56589
|
-
b[
|
|
56590
|
-
r("error",
|
|
56584
|
+
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0), S = 1; S < g; S++)
|
|
56585
|
+
b[S - 1] = arguments[S];
|
|
56586
|
+
r("error", C, b);
|
|
56591
56587
|
}
|
|
56592
56588
|
}
|
|
56593
|
-
function r(
|
|
56589
|
+
function r(C, g, b) {
|
|
56594
56590
|
{
|
|
56595
|
-
var
|
|
56591
|
+
var S = e.ReactDebugCurrentFrame, T = S.getStackAddendum();
|
|
56596
56592
|
T !== "" && (g += "%s", b = b.concat([T]));
|
|
56597
56593
|
var I = b.map(function(R) {
|
|
56598
56594
|
return String(R);
|
|
56599
56595
|
});
|
|
56600
|
-
I.unshift("Warning: " + g), Function.prototype.apply.call(console[
|
|
56596
|
+
I.unshift("Warning: " + g), Function.prototype.apply.call(console[C], console, I);
|
|
56601
56597
|
}
|
|
56602
56598
|
}
|
|
56603
|
-
function i(
|
|
56604
|
-
return
|
|
56599
|
+
function i(C, g) {
|
|
56600
|
+
return C === g && (C !== 0 || 1 / C === 1 / g) || C !== C && g !== g;
|
|
56605
56601
|
}
|
|
56606
56602
|
var o = typeof Object.is == "function" ? Object.is : i, a = t.useState, s = t.useEffect, l = t.useLayoutEffect, c = t.useDebugValue, u = !1, d = !1;
|
|
56607
|
-
function f(
|
|
56603
|
+
function f(C, g, b) {
|
|
56608
56604
|
u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
56609
|
-
var
|
|
56605
|
+
var S = g();
|
|
56610
56606
|
if (!d) {
|
|
56611
56607
|
var T = g();
|
|
56612
|
-
o(
|
|
56608
|
+
o(S, T) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
56613
56609
|
}
|
|
56614
56610
|
var I = a({
|
|
56615
56611
|
inst: {
|
|
56616
|
-
value:
|
|
56612
|
+
value: S,
|
|
56617
56613
|
getSnapshot: g
|
|
56618
56614
|
}
|
|
56619
56615
|
}), R = I[0].inst, $ = I[1];
|
|
56620
56616
|
return l(function() {
|
|
56621
|
-
R.value =
|
|
56617
|
+
R.value = S, R.getSnapshot = g, h(R) && $({
|
|
56622
56618
|
inst: R
|
|
56623
56619
|
});
|
|
56624
|
-
}, [
|
|
56620
|
+
}, [C, S, g]), s(function() {
|
|
56625
56621
|
h(R) && $({
|
|
56626
56622
|
inst: R
|
|
56627
56623
|
});
|
|
@@ -56630,19 +56626,19 @@ function eQe() {
|
|
|
56630
56626
|
inst: R
|
|
56631
56627
|
});
|
|
56632
56628
|
};
|
|
56633
|
-
return
|
|
56634
|
-
}, [
|
|
56629
|
+
return C(O);
|
|
56630
|
+
}, [C]), c(S), S;
|
|
56635
56631
|
}
|
|
56636
|
-
function h(
|
|
56637
|
-
var g =
|
|
56632
|
+
function h(C) {
|
|
56633
|
+
var g = C.getSnapshot, b = C.value;
|
|
56638
56634
|
try {
|
|
56639
|
-
var
|
|
56640
|
-
return !o(b,
|
|
56635
|
+
var S = g();
|
|
56636
|
+
return !o(b, S);
|
|
56641
56637
|
} catch {
|
|
56642
56638
|
return !0;
|
|
56643
56639
|
}
|
|
56644
56640
|
}
|
|
56645
|
-
function m(
|
|
56641
|
+
function m(C, g, b) {
|
|
56646
56642
|
return g();
|
|
56647
56643
|
}
|
|
56648
56644
|
var A = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", v = !A, y = v ? m : f, w = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : y;
|
|
@@ -56841,21 +56837,21 @@ function cQe() {
|
|
|
56841
56837
|
} else
|
|
56842
56838
|
A = m.current;
|
|
56843
56839
|
m = s(function() {
|
|
56844
|
-
function y(
|
|
56840
|
+
function y(S) {
|
|
56845
56841
|
if (!w) {
|
|
56846
|
-
if (w = !0,
|
|
56842
|
+
if (w = !0, C = S, S = f(S), h !== void 0 && A.hasValue) {
|
|
56847
56843
|
var T = A.value;
|
|
56848
|
-
if (h(T,
|
|
56844
|
+
if (h(T, S))
|
|
56849
56845
|
return g = T;
|
|
56850
56846
|
}
|
|
56851
|
-
return g =
|
|
56847
|
+
return g = S;
|
|
56852
56848
|
}
|
|
56853
|
-
if (T = g, r(
|
|
56849
|
+
if (T = g, r(C, S))
|
|
56854
56850
|
return T;
|
|
56855
|
-
var I = f(
|
|
56856
|
-
return h !== void 0 && h(T, I) ? T : (
|
|
56851
|
+
var I = f(S);
|
|
56852
|
+
return h !== void 0 && h(T, I) ? T : (C = S, g = I);
|
|
56857
56853
|
}
|
|
56858
|
-
var w = !1,
|
|
56854
|
+
var w = !1, C, g, b = d === void 0 ? null : d;
|
|
56859
56855
|
return [function() {
|
|
56860
56856
|
return y(u());
|
|
56861
56857
|
}, b === null ? void 0 : function() {
|
|
@@ -56894,9 +56890,9 @@ function uQe() {
|
|
|
56894
56890
|
value: null
|
|
56895
56891
|
}, A.current = v) : v = A.current;
|
|
56896
56892
|
var y = s(function() {
|
|
56897
|
-
var b = !1,
|
|
56893
|
+
var b = !1, S, T, I = function(N) {
|
|
56898
56894
|
if (!b) {
|
|
56899
|
-
b = !0,
|
|
56895
|
+
b = !0, S = N;
|
|
56900
56896
|
var q = h(N);
|
|
56901
56897
|
if (m !== void 0 && v.hasValue) {
|
|
56902
56898
|
var H = v.value;
|
|
@@ -56905,18 +56901,18 @@ function uQe() {
|
|
|
56905
56901
|
}
|
|
56906
56902
|
return T = q, q;
|
|
56907
56903
|
}
|
|
56908
|
-
var Q =
|
|
56904
|
+
var Q = S, j = T;
|
|
56909
56905
|
if (r(Q, N))
|
|
56910
56906
|
return j;
|
|
56911
56907
|
var J = h(N);
|
|
56912
|
-
return m !== void 0 && m(j, J) ? j : (
|
|
56908
|
+
return m !== void 0 && m(j, J) ? j : (S = N, T = J, J);
|
|
56913
56909
|
}, R = f === void 0 ? null : f, $ = function() {
|
|
56914
56910
|
return I(d());
|
|
56915
56911
|
}, O = R === null ? void 0 : function() {
|
|
56916
56912
|
return I(R());
|
|
56917
56913
|
};
|
|
56918
56914
|
return [$, O];
|
|
56919
|
-
}, [d, f, h, m]), w = y[0],
|
|
56915
|
+
}, [d, f, h, m]), w = y[0], C = y[1], g = i(u, w, C);
|
|
56920
56916
|
return a(function() {
|
|
56921
56917
|
v.hasValue = !0, v.value = g;
|
|
56922
56918
|
}, [g]), l(g), g;
|
|
@@ -58435,8 +58431,8 @@ const bHe = async (t, e, n) => {
|
|
|
58435
58431
|
const { placement: r = "bottom", strategy: i = "absolute", middleware: o = [], platform: a } = n, s = o.filter(Boolean), l = await (a.isRTL == null ? void 0 : a.isRTL(e));
|
|
58436
58432
|
let c = await a.getElementRects({ reference: t, floating: e, strategy: i }), { x: u, y: d } = XB(c, r, l), f = r, h = {}, m = 0;
|
|
58437
58433
|
for (let A = 0; A < s.length; A++) {
|
|
58438
|
-
const { name: v, fn: y } = s[A], { x: w, y:
|
|
58439
|
-
u = w ?? u, d =
|
|
58434
|
+
const { name: v, fn: y } = s[A], { x: w, y: C, data: g, reset: b } = await y({ x: u, y: d, initialPlacement: r, placement: f, strategy: i, middlewareData: h, rects: c, platform: a, elements: { reference: t, floating: e } });
|
|
58435
|
+
u = w ?? u, d = C ?? d, h = { ...h, [v]: { ...h[v], ...g } }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (c = b.rects === !0 ? await a.getElementRects({ reference: t, floating: e, strategy: i }) : b.rects), { x: u, y: d } = XB(c, f, l)), A = -1);
|
|
58440
58436
|
}
|
|
58441
58437
|
return { x: u, y: d, placement: f, strategy: i, middlewareData: h };
|
|
58442
58438
|
};
|
|
@@ -58451,8 +58447,8 @@ function SE(t) {
|
|
|
58451
58447
|
async function hne(t, e) {
|
|
58452
58448
|
var n;
|
|
58453
58449
|
e === void 0 && (e = {});
|
|
58454
|
-
const { x: r, y: i, platform: o, rects: a, elements: s, strategy: l } = t, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: h = 0 } = e, m = CHe(h), A = s[f ? d === "floating" ? "reference" : "floating" : d], v = SE(await o.getClippingRect({ element: (n = await (o.isElement == null ? void 0 : o.isElement(A))) == null || n ? A : A.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), boundary: c, rootBoundary: u, strategy: l })), y = d === "floating" ? { ...a.floating, x: r, y: i } : a.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
58455
|
-
return { top: (v.top - g.top + m.top) /
|
|
58450
|
+
const { x: r, y: i, platform: o, rects: a, elements: s, strategy: l } = t, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: h = 0 } = e, m = CHe(h), A = s[f ? d === "floating" ? "reference" : "floating" : d], v = SE(await o.getClippingRect({ element: (n = await (o.isElement == null ? void 0 : o.isElement(A))) == null || n ? A : A.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), boundary: c, rootBoundary: u, strategy: l })), y = d === "floating" ? { ...a.floating, x: r, y: i } : a.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), C = await (o.isElement == null ? void 0 : o.isElement(w)) && await (o.getScale == null ? void 0 : o.getScale(w)) || { x: 1, y: 1 }, g = SE(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: y, offsetParent: w, strategy: l }) : y);
|
|
58451
|
+
return { top: (v.top - g.top + m.top) / C.y, bottom: (g.bottom - v.bottom + m.bottom) / C.y, left: (v.left - g.left + m.left) / C.x, right: (g.right - v.right + m.right) / C.x };
|
|
58456
58452
|
}
|
|
58457
58453
|
const SHe = Math.min, wHe = Math.max;
|
|
58458
58454
|
function eW(t, e, n) {
|
|
@@ -58477,11 +58473,11 @@ function M_(t) {
|
|
|
58477
58473
|
const RHe = function(t) {
|
|
58478
58474
|
return t === void 0 && (t = {}), { name: "flip", options: t, async fn(e) {
|
|
58479
58475
|
var n;
|
|
58480
|
-
const { placement: r, middlewareData: i, rects: o, initialPlacement: a, platform: s, elements: l } = e, { mainAxis: c = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: h = "none", flipAlignment: m = !0, ...A } = t, v = Pl(r), y = Pl(a) === a, w = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)),
|
|
58476
|
+
const { placement: r, middlewareData: i, rects: o, initialPlacement: a, platform: s, elements: l } = e, { mainAxis: c = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: h = "none", flipAlignment: m = !0, ...A } = t, v = Pl(r), y = Pl(a) === a, w = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), C = d || (y || !m ? [X0(a)] : function(O) {
|
|
58481
58477
|
const N = X0(O);
|
|
58482
58478
|
return [M_(O), N, M_(N)];
|
|
58483
58479
|
}(a));
|
|
58484
|
-
d || h === "none" ||
|
|
58480
|
+
d || h === "none" || C.push(...function(O, N, q, H) {
|
|
58485
58481
|
const Q = Rw(O);
|
|
58486
58482
|
let j = function(J, ne, L) {
|
|
58487
58483
|
const M = ["left", "right"], F = ["right", "left"], V = ["top", "bottom"], me = ["bottom", "top"];
|
|
@@ -58498,13 +58494,13 @@ const RHe = function(t) {
|
|
|
58498
58494
|
}(Pl(O), q === "start", H);
|
|
58499
58495
|
return Q && (j = j.map((J) => J + "-" + Q), N && (j = j.concat(j.map(M_)))), j;
|
|
58500
58496
|
}(a, m, h, w));
|
|
58501
|
-
const g = [a, ...
|
|
58497
|
+
const g = [a, ...C], b = await hne(e, A), S = [];
|
|
58502
58498
|
let T = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
58503
|
-
if (c &&
|
|
58499
|
+
if (c && S.push(b[v]), u) {
|
|
58504
58500
|
const { main: O, cross: N } = IHe(r, o, w);
|
|
58505
|
-
|
|
58501
|
+
S.push(b[O], b[N]);
|
|
58506
58502
|
}
|
|
58507
|
-
if (T = [...T, { placement: r, overflows:
|
|
58503
|
+
if (T = [...T, { placement: r, overflows: S }], !S.every((O) => O <= 0)) {
|
|
58508
58504
|
var I, R;
|
|
58509
58505
|
const O = (((I = i.flip) == null ? void 0 : I.index) || 0) + 1, N = g[O];
|
|
58510
58506
|
if (N)
|
|
@@ -58530,8 +58526,8 @@ const RHe = function(t) {
|
|
|
58530
58526
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(e) {
|
|
58531
58527
|
const { x: n, y: r } = e, i = await async function(o, a) {
|
|
58532
58528
|
const { placement: s, platform: l, elements: c } = o, u = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), d = Pl(s), f = Rw(s), h = Hv(s) === "x", m = ["left", "top"].includes(d) ? -1 : 1, A = u && h ? -1 : 1, v = typeof a == "function" ? a(o) : a;
|
|
58533
|
-
let { mainAxis: y, crossAxis: w, alignmentAxis:
|
|
58534
|
-
return f && typeof
|
|
58529
|
+
let { mainAxis: y, crossAxis: w, alignmentAxis: C } = typeof v == "number" ? { mainAxis: v, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...v };
|
|
58530
|
+
return f && typeof C == "number" && (w = f === "end" ? -1 * C : C), h ? { x: w * A, y: y * m } : { x: y * m, y: w * A };
|
|
58535
58531
|
}(e, t);
|
|
58536
58532
|
return { x: n + i.x, y: r + i.y, data: i };
|
|
58537
58533
|
} };
|
|
@@ -58563,13 +58559,13 @@ const $He = function(t) {
|
|
|
58563
58559
|
let h = u[d], m = u[f];
|
|
58564
58560
|
const A = typeof s == "function" ? s(e) : s, v = typeof A == "number" ? { mainAxis: A, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...A };
|
|
58565
58561
|
if (l) {
|
|
58566
|
-
const
|
|
58562
|
+
const C = d === "y" ? "height" : "width", g = o.reference[d] - o.floating[C] + v.mainAxis, b = o.reference[d] + o.reference[C] - v.mainAxis;
|
|
58567
58563
|
h < g ? h = g : h > b && (h = b);
|
|
58568
58564
|
}
|
|
58569
58565
|
if (c) {
|
|
58570
58566
|
var y, w;
|
|
58571
|
-
const
|
|
58572
|
-
m < b ? m = b : m >
|
|
58567
|
+
const C = d === "y" ? "width" : "height", g = ["top", "left"].includes(Pl(i)), b = o.reference[f] - o.floating[C] + (g && ((y = a.offset) == null ? void 0 : y[f]) || 0) + (g ? 0 : v.crossAxis), S = o.reference[f] + o.reference[C] + (g ? 0 : ((w = a.offset) == null ? void 0 : w[f]) || 0) - (g ? v.crossAxis : 0);
|
|
58568
|
+
m < b ? m = b : m > S && (m = S);
|
|
58573
58569
|
}
|
|
58574
58570
|
return { [d]: h, [f]: m };
|
|
58575
58571
|
} };
|
|
@@ -58654,8 +58650,8 @@ function ju(t, e, n, r) {
|
|
|
58654
58650
|
const A = Fi(s), v = r && Oo(r) ? Fi(r) : r;
|
|
58655
58651
|
let y = A.frameElement;
|
|
58656
58652
|
for (; y && r && v !== A; ) {
|
|
58657
|
-
const w = Mf(y),
|
|
58658
|
-
|
|
58653
|
+
const w = Mf(y), C = y.getBoundingClientRect(), g = getComputedStyle(y);
|
|
58654
|
+
C.x += (y.clientLeft + parseFloat(g.paddingLeft)) * w.x, C.y += (y.clientTop + parseFloat(g.paddingTop)) * w.y, d *= w.x, f *= w.y, h *= w.x, m *= w.y, d += C.x, f += C.y, y = Fi(y).frameElement;
|
|
58659
58655
|
}
|
|
58660
58656
|
}
|
|
58661
58657
|
return { width: h, height: m, top: f, right: d + h, bottom: f + m, left: d, x: d, y: f };
|
|
@@ -58873,11 +58869,11 @@ function PHe(t) {
|
|
|
58873
58869
|
isPositioned: !1
|
|
58874
58870
|
}), [c, u] = Pe.useState(r);
|
|
58875
58871
|
tb(c, r) || u(r);
|
|
58876
|
-
const d = Pe.useRef(null), f = Pe.useRef(null), h = Pe.useRef(s), m = aW(o), A = aW(i), [v, y] = Pe.useState(null), [w,
|
|
58872
|
+
const d = Pe.useRef(null), f = Pe.useRef(null), h = Pe.useRef(s), m = aW(o), A = aW(i), [v, y] = Pe.useState(null), [w, C] = Pe.useState(null), g = Pe.useCallback(($) => {
|
|
58877
58873
|
d.current !== $ && (d.current = $, y($));
|
|
58878
58874
|
}, []), b = Pe.useCallback(($) => {
|
|
58879
|
-
f.current !== $ && (f.current = $,
|
|
58880
|
-
}, []),
|
|
58875
|
+
f.current !== $ && (f.current = $, C($));
|
|
58876
|
+
}, []), S = Pe.useCallback(() => {
|
|
58881
58877
|
if (!d.current || !f.current)
|
|
58882
58878
|
return;
|
|
58883
58879
|
const $ = {
|
|
@@ -58907,10 +58903,10 @@ function PHe(t) {
|
|
|
58907
58903
|
}), []), Yy(() => {
|
|
58908
58904
|
if (v && w) {
|
|
58909
58905
|
if (m.current)
|
|
58910
|
-
return m.current(v, w,
|
|
58911
|
-
|
|
58906
|
+
return m.current(v, w, S);
|
|
58907
|
+
S();
|
|
58912
58908
|
}
|
|
58913
|
-
}, [v, w,
|
|
58909
|
+
}, [v, w, S, m]);
|
|
58914
58910
|
const I = Pe.useMemo(() => ({
|
|
58915
58911
|
reference: d,
|
|
58916
58912
|
floating: f,
|
|
@@ -58922,12 +58918,12 @@ function PHe(t) {
|
|
|
58922
58918
|
}), [v, w]);
|
|
58923
58919
|
return Pe.useMemo(() => ({
|
|
58924
58920
|
...s,
|
|
58925
|
-
update:
|
|
58921
|
+
update: S,
|
|
58926
58922
|
refs: I,
|
|
58927
58923
|
elements: R,
|
|
58928
58924
|
reference: g,
|
|
58929
58925
|
floating: b
|
|
58930
|
-
}), [s,
|
|
58926
|
+
}), [s, S, I, R, g, b]);
|
|
58931
58927
|
}
|
|
58932
58928
|
var Rl = typeof document < "u" ? gp : Qe;
|
|
58933
58929
|
function UHe() {
|
|
@@ -59023,15 +59019,15 @@ function _ne(t) {
|
|
|
59023
59019
|
});
|
|
59024
59020
|
const {
|
|
59025
59021
|
reference: w
|
|
59026
|
-
} = m,
|
|
59022
|
+
} = m, C = Pe.useCallback((g) => {
|
|
59027
59023
|
(Gy(g) || g === null) && (y.refs.domReference.current = g, c(g)), w(g);
|
|
59028
59024
|
}, [w, y.refs]);
|
|
59029
59025
|
return Pe.useMemo(() => ({
|
|
59030
59026
|
...m,
|
|
59031
59027
|
context: y,
|
|
59032
59028
|
refs: v,
|
|
59033
|
-
reference:
|
|
59034
|
-
}), [m, v, y,
|
|
59029
|
+
reference: C
|
|
59030
|
+
}), [m, v, y, C]);
|
|
59035
59031
|
}
|
|
59036
59032
|
function x_(t, e, n) {
|
|
59037
59033
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -59180,8 +59176,8 @@ const HHe = function(t, e) {
|
|
|
59180
59176
|
}
|
|
59181
59177
|
}
|
|
59182
59178
|
function y(b) {
|
|
59183
|
-
const
|
|
59184
|
-
if (A.current = !1,
|
|
59179
|
+
const S = A.current;
|
|
59180
|
+
if (A.current = !1, S)
|
|
59185
59181
|
return;
|
|
59186
59182
|
const T = VHe(b);
|
|
59187
59183
|
if (Gy(T) && i.floating.current) {
|
|
@@ -59202,19 +59198,19 @@ const HHe = function(t, e) {
|
|
|
59202
59198
|
function w() {
|
|
59203
59199
|
r(!1);
|
|
59204
59200
|
}
|
|
59205
|
-
const
|
|
59206
|
-
l &&
|
|
59201
|
+
const C = K2(i.floating.current);
|
|
59202
|
+
l && C.addEventListener("keydown", v), c && C.addEventListener("pointerdown", y);
|
|
59207
59203
|
const g = (d ? [...Gy(i.reference.current) ? yu(i.reference.current) : [], ...Gy(i.floating.current) ? yu(i.floating.current) : []] : []).filter((b) => {
|
|
59208
|
-
var
|
|
59204
|
+
var S;
|
|
59209
59205
|
return (
|
|
59210
59206
|
// Ignore the visual viewport for scrolling dismissal (allow pinch-zoom)
|
|
59211
|
-
b !== ((
|
|
59207
|
+
b !== ((S = C.defaultView) == null ? void 0 : S.visualViewport)
|
|
59212
59208
|
);
|
|
59213
59209
|
});
|
|
59214
59210
|
return g.forEach((b) => b.addEventListener("scroll", w, {
|
|
59215
59211
|
passive: !0
|
|
59216
59212
|
})), () => {
|
|
59217
|
-
l &&
|
|
59213
|
+
l && C.removeEventListener("keydown", v), c && C.removeEventListener("pointerdown", y), g.forEach((b) => b.removeEventListener("scroll", w));
|
|
59218
59214
|
};
|
|
59219
59215
|
}, [l, c, o, h, a, n, r, d, s, f, i, m]), s ? {
|
|
59220
59216
|
reference: {
|
|
@@ -59305,7 +59301,7 @@ const JHe = function(t, e) {
|
|
|
59305
59301
|
focusItemOnHover: v = !0,
|
|
59306
59302
|
openOnArrowKeyDown: y = !0,
|
|
59307
59303
|
disabledIndices: w = void 0,
|
|
59308
|
-
orientation:
|
|
59304
|
+
orientation: C = "vertical",
|
|
59309
59305
|
cols: g = 1
|
|
59310
59306
|
} = e === void 0 ? {
|
|
59311
59307
|
listRef: {
|
|
@@ -59315,8 +59311,8 @@ const JHe = function(t, e) {
|
|
|
59315
59311
|
onNavigate: () => {
|
|
59316
59312
|
}
|
|
59317
59313
|
} : e;
|
|
59318
|
-
process.env.NODE_ENV !== "production" && (u && (d || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), m || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))),
|
|
59319
|
-
const b = wne(),
|
|
59314
|
+
process.env.NODE_ENV !== "production" && (u && (d || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), m || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), C === "vertical" && g > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
|
|
59315
|
+
const b = wne(), S = W2(), T = fW(n), I = _E(s), R = _E(fW(s)), $ = Pe.useRef(A), O = Pe.useRef(c ?? -1), N = Pe.useRef(null), q = zHe(w), H = Pe.useRef(!1), Q = Pe.useRef(-1), [j, J] = Pe.useState(), ne = Pe.useCallback((M, F) => {
|
|
59320
59316
|
Q.current = requestAnimationFrame(() => {
|
|
59321
59317
|
if (m) {
|
|
59322
59318
|
var V;
|
|
@@ -59336,22 +59332,22 @@ const JHe = function(t, e) {
|
|
|
59336
59332
|
if (a == null) {
|
|
59337
59333
|
if (c != null)
|
|
59338
59334
|
return;
|
|
59339
|
-
T && (O.current = -1, ne(o, O)), !T && $.current && (N.current != null || $.current === !0 && N.current == null) && (O.current = N.current == null || P_(N.current,
|
|
59335
|
+
T && (O.current = -1, ne(o, O)), !T && $.current && (N.current != null || $.current === !0 && N.current == null) && (O.current = N.current == null || P_(N.current, C, h) || f ? U_(o, q.current) : hW(o, q.current), I(O.current), ne(o, O));
|
|
59340
59336
|
} else
|
|
59341
59337
|
Xh(o, a) || (O.current = a, ne(o, O));
|
|
59342
|
-
}, [n, T, a, c, f, o, I, ne, l, u,
|
|
59338
|
+
}, [n, T, a, c, f, o, I, ne, l, u, C, h, m, q]), Rl(() => {
|
|
59343
59339
|
if (l && !n && T) {
|
|
59344
59340
|
var M, F;
|
|
59345
|
-
const V =
|
|
59341
|
+
const V = S == null || (M = S.nodesRef.current.find((me) => me.id === b)) == null || (F = M.context) == null ? void 0 : F.refs.floating.current;
|
|
59346
59342
|
V && !V.contains(dW(K2(V))) && V.focus({
|
|
59347
59343
|
preventScroll: !0
|
|
59348
59344
|
});
|
|
59349
59345
|
}
|
|
59350
|
-
}, [l, n, T,
|
|
59346
|
+
}, [l, n, T, S, b]), Rl(() => {
|
|
59351
59347
|
N.current = null;
|
|
59352
59348
|
});
|
|
59353
59349
|
function L(M) {
|
|
59354
|
-
if (H.current = !0, f && GHe(M.key,
|
|
59350
|
+
if (H.current = !0, f && GHe(M.key, C, h)) {
|
|
59355
59351
|
fl(M), r(!1), jHe(i.domReference.current) && i.domReference.current.focus();
|
|
59356
59352
|
return;
|
|
59357
59353
|
}
|
|
@@ -59380,7 +59376,7 @@ const JHe = function(t, e) {
|
|
|
59380
59376
|
startingIndex: ge % g - g,
|
|
59381
59377
|
amount: g,
|
|
59382
59378
|
disabledIndices: w
|
|
59383
|
-
}))), Xh(o, O.current) && (O.current = ge), I(O.current)),
|
|
59379
|
+
}))), Xh(o, O.current) && (O.current = ge), I(O.current)), C === "both") {
|
|
59384
59380
|
const De = Math.floor(ge / g);
|
|
59385
59381
|
M.key === Yv && (fl(M), ge % g !== g - 1 ? (O.current = mr(o, {
|
|
59386
59382
|
startingIndex: ge,
|
|
@@ -59412,12 +59408,12 @@ const JHe = function(t, e) {
|
|
|
59412
59408
|
return;
|
|
59413
59409
|
}
|
|
59414
59410
|
}
|
|
59415
|
-
if (pW(M.key,
|
|
59411
|
+
if (pW(M.key, C)) {
|
|
59416
59412
|
if (fl(M), n && !m && dW(M.currentTarget.ownerDocument) === M.currentTarget) {
|
|
59417
|
-
O.current = P_(M.key,
|
|
59413
|
+
O.current = P_(M.key, C, h) ? V : me, I(O.current);
|
|
59418
59414
|
return;
|
|
59419
59415
|
}
|
|
59420
|
-
P_(M.key,
|
|
59416
|
+
P_(M.key, C, h) ? d ? O.current = F >= me ? u && F !== o.current.length ? -1 : V : mr(o, {
|
|
59421
59417
|
startingIndex: F,
|
|
59422
59418
|
disabledIndices: w
|
|
59423
59419
|
}) : O.current = Math.min(me, mr(o, {
|
|
@@ -59443,14 +59439,14 @@ const JHe = function(t, e) {
|
|
|
59443
59439
|
if (H.current = !0, m && n)
|
|
59444
59440
|
return L(M);
|
|
59445
59441
|
if ((M.key.indexOf("Arrow") === 0 || M.key === "Enter" || M.key === " " || M.key === "") && (N.current = M.key), f) {
|
|
59446
|
-
YHe(M.key,
|
|
59442
|
+
YHe(M.key, C, h) && (fl(M), n ? (O.current = U_(o, w), I(O.current)) : r(!0));
|
|
59447
59443
|
return;
|
|
59448
59444
|
}
|
|
59449
|
-
pW(M.key,
|
|
59445
|
+
pW(M.key, C) && (c != null && (O.current = c), fl(M), !n && y ? r(!0) : L(M), n && I(O.current));
|
|
59450
59446
|
}
|
|
59451
59447
|
},
|
|
59452
59448
|
floating: {
|
|
59453
|
-
"aria-orientation":
|
|
59449
|
+
"aria-orientation": C === "both" ? void 0 : C,
|
|
59454
59450
|
...m && a != null && {
|
|
59455
59451
|
"aria-activedescendant": j
|
|
59456
59452
|
},
|
|
@@ -59510,11 +59506,11 @@ function ZHe(t) {
|
|
|
59510
59506
|
const y = v.input.slice(Math.max(0, v.index - 1), v.index), w = new RegExp(`^[${o == null ? void 0 : o.join("")}\0]?$`).test(y);
|
|
59511
59507
|
if (o !== null && !w)
|
|
59512
59508
|
return null;
|
|
59513
|
-
const
|
|
59514
|
-
let g =
|
|
59515
|
-
return l && u.test(m.slice(g - 1, g + 1)) && (v[0] += " ", g += 1),
|
|
59509
|
+
const C = A + v.index;
|
|
59510
|
+
let g = C + v[0].length;
|
|
59511
|
+
return l && u.test(m.slice(g - 1, g + 1)) && (v[0] += " ", g += 1), C < s.pos && g >= s.pos ? {
|
|
59516
59512
|
range: {
|
|
59517
|
-
from:
|
|
59513
|
+
from: C,
|
|
59518
59514
|
to: g
|
|
59519
59515
|
},
|
|
59520
59516
|
query: v[0].slice(n.length),
|
|
@@ -59529,8 +59525,8 @@ function eYe({ pluginKey: t = XHe, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
59529
59525
|
view() {
|
|
59530
59526
|
return {
|
|
59531
59527
|
update: async (y, w) => {
|
|
59532
|
-
var
|
|
59533
|
-
const $ = (
|
|
59528
|
+
var C, g, b, S, T, I, R;
|
|
59529
|
+
const $ = (C = this.key) === null || C === void 0 ? void 0 : C.getState(w), O = (g = this.key) === null || g === void 0 ? void 0 : g.getState(y.state), N = $.active && O.active && $.range.from !== O.range.from, q = !$.active && O.active, H = $.active && !O.active, Q = !q && !H && $.query !== O.query, j = q || N && Q, J = Q || N, ne = H || N && Q;
|
|
59534
59530
|
if (!j && !J && !ne)
|
|
59535
59531
|
return;
|
|
59536
59532
|
const L = ne && !j ? $ : O, M = y.dom.querySelector(`[data-decoration-id="${L.decorationId}"]`);
|
|
@@ -59553,7 +59549,7 @@ function eYe({ pluginKey: t = XHe, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
59553
59549
|
const { decorationId: V } = (F = this.key) === null || F === void 0 ? void 0 : F.getState(e.state), me = y.dom.querySelector(`[data-decoration-id="${V}"]`);
|
|
59554
59550
|
return (me == null ? void 0 : me.getBoundingClientRect()) || null;
|
|
59555
59551
|
} : null
|
|
59556
|
-
}, j && ((b = A == null ? void 0 : A.onBeforeStart) === null || b === void 0 || b.call(A, m)), J && ((
|
|
59552
|
+
}, j && ((b = A == null ? void 0 : A.onBeforeStart) === null || b === void 0 || b.call(A, m)), J && ((S = A == null ? void 0 : A.onBeforeUpdate) === null || S === void 0 || S.call(A, m)), (J || j) && (m.items = await u({
|
|
59557
59553
|
editor: e,
|
|
59558
59554
|
query: L.query
|
|
59559
59555
|
})), ne && ((T = A == null ? void 0 : A.onExit) === null || T === void 0 || T.call(A, m)), J && ((I = A == null ? void 0 : A.onUpdate) === null || I === void 0 || I.call(A, m)), j && ((R = A == null ? void 0 : A.onStart) === null || R === void 0 || R.call(A, m));
|
|
@@ -59579,10 +59575,10 @@ function eYe({ pluginKey: t = XHe, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
59579
59575
|
};
|
|
59580
59576
|
},
|
|
59581
59577
|
// Apply changes to the plugin state from a view transaction.
|
|
59582
|
-
apply(y, w,
|
|
59583
|
-
const { isEditable: b } = e, { composing:
|
|
59584
|
-
if ($.composing =
|
|
59585
|
-
(R < w.range.from || R > w.range.to) && !
|
|
59578
|
+
apply(y, w, C, g) {
|
|
59579
|
+
const { isEditable: b } = e, { composing: S } = e.view, { selection: T } = y, { empty: I, from: R } = T, $ = { ...w };
|
|
59580
|
+
if ($.composing = S, b && (I || e.view.composing)) {
|
|
59581
|
+
(R < w.range.from || R > w.range.to) && !S && !w.composing && ($.active = !1);
|
|
59586
59582
|
const O = h({
|
|
59587
59583
|
char: n,
|
|
59588
59584
|
allowSpaces: r,
|
|
@@ -59605,15 +59601,15 @@ function eYe({ pluginKey: t = XHe, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
59605
59601
|
props: {
|
|
59606
59602
|
// Call the keydown hook if suggestion is active.
|
|
59607
59603
|
handleKeyDown(y, w) {
|
|
59608
|
-
var
|
|
59604
|
+
var C;
|
|
59609
59605
|
const { active: g, range: b } = v.getState(y.state);
|
|
59610
|
-
return g && ((
|
|
59606
|
+
return g && ((C = A == null ? void 0 : A.onKeyDown) === null || C === void 0 ? void 0 : C.call(A, { view: y, event: w, range: b })) || !1;
|
|
59611
59607
|
},
|
|
59612
59608
|
// Setup decorator on the currently active suggestion.
|
|
59613
59609
|
decorations(y) {
|
|
59614
|
-
const { active: w, range:
|
|
59610
|
+
const { active: w, range: C, decorationId: g } = v.getState(y);
|
|
59615
59611
|
return w ? _t.create(y.doc, [
|
|
59616
|
-
wn.inline(
|
|
59612
|
+
wn.inline(C.from, C.to, {
|
|
59617
59613
|
nodeName: s,
|
|
59618
59614
|
class: l,
|
|
59619
59615
|
"data-decoration-id": g
|
|
@@ -59705,7 +59701,7 @@ const Ine = ["ArrowDown", "ArrowUp", "End", "Home"], Ene = ["Enter"], tYe = ["Es
|
|
|
59705
59701
|
co(a, () => {
|
|
59706
59702
|
A(0), v.current = [];
|
|
59707
59703
|
});
|
|
59708
|
-
const { getFloatingProps: y, getItemProps: w, getReferenceProps:
|
|
59704
|
+
const { getFloatingProps: y, getItemProps: w, getReferenceProps: C } = qHe(
|
|
59709
59705
|
[
|
|
59710
59706
|
HHe(c, { outsidePointerDown: !1 }),
|
|
59711
59707
|
JHe(c, {
|
|
@@ -59719,7 +59715,7 @@ const Ine = ["ArrowDown", "ArrowUp", "End", "Home"], Ene = ["Enter"], tYe = ["Es
|
|
|
59719
59715
|
}),
|
|
59720
59716
|
QHe(c, { role: "menu" })
|
|
59721
59717
|
]
|
|
59722
|
-
), b =
|
|
59718
|
+
), b = C().onKeyDown;
|
|
59723
59719
|
kie(
|
|
59724
59720
|
n,
|
|
59725
59721
|
() => ({
|
|
@@ -59736,7 +59732,7 @@ const Ine = ["ArrowDown", "ArrowUp", "End", "Home"], Ene = ["Enter"], tYe = ["Es
|
|
|
59736
59732
|
}),
|
|
59737
59733
|
[m, r, a, b, s]
|
|
59738
59734
|
);
|
|
59739
|
-
const
|
|
59735
|
+
const S = f !== null && h !== null;
|
|
59740
59736
|
return s ? /* @__PURE__ */ E(
|
|
59741
59737
|
U,
|
|
59742
59738
|
{
|
|
@@ -59751,7 +59747,7 @@ const Ine = ["ArrowDown", "ArrowUp", "End", "Home"], Ene = ["Enter"], tYe = ["Es
|
|
|
59751
59747
|
top: 0,
|
|
59752
59748
|
left: 0,
|
|
59753
59749
|
position: "fixed",
|
|
59754
|
-
transform:
|
|
59750
|
+
transform: S ? `translate3d(${Math.round(f)}px, ${Math.round(h)}px, 0)` : "translate3d(0, -200%, 0)",
|
|
59755
59751
|
overflow: "hidden",
|
|
59756
59752
|
children: [
|
|
59757
59753
|
a.map((T, I) => {
|
|
@@ -60446,7 +60442,7 @@ function SYe(t) {
|
|
|
60446
60442
|
const g = (b = i == null ? void 0 : i.current) == null ? void 0 : b.closest(`.${xne}`);
|
|
60447
60443
|
Zie(g) && g.style.removeProperty("min-height");
|
|
60448
60444
|
}, []);
|
|
60449
|
-
const
|
|
60445
|
+
const C = f || l;
|
|
60450
60446
|
return /* @__PURE__ */ p(Zte, { children: /* @__PURE__ */ p(
|
|
60451
60447
|
ZZ,
|
|
60452
60448
|
{
|
|
@@ -60464,7 +60460,7 @@ function SYe(t) {
|
|
|
60464
60460
|
fieldLabel: A,
|
|
60465
60461
|
imageLabel: y,
|
|
60466
60462
|
initialImages: [w],
|
|
60467
|
-
isUpdating:
|
|
60463
|
+
isUpdating: C,
|
|
60468
60464
|
readOnly: !1,
|
|
60469
60465
|
thumbnailName: o.name,
|
|
60470
60466
|
onClear: u,
|
|
@@ -60482,7 +60478,7 @@ function SYe(t) {
|
|
|
60482
60478
|
YZ,
|
|
60483
60479
|
{
|
|
60484
60480
|
fieldLabel: A,
|
|
60485
|
-
isUpdating:
|
|
60481
|
+
isUpdating: C,
|
|
60486
60482
|
readOnly: !1,
|
|
60487
60483
|
onMediaDialogOpenChange: m
|
|
60488
60484
|
}
|
|
@@ -61982,8 +61978,8 @@ function oGe(t, e, n, r) {
|
|
|
61982
61978
|
for (let A = 0; A < a.length; A++) {
|
|
61983
61979
|
let v = a[(A + l) % a.length], y = !0;
|
|
61984
61980
|
v < 0 && (y = !1, v = -v);
|
|
61985
|
-
let w = i.node(v - 1),
|
|
61986
|
-
if (w.canReplaceWith(
|
|
61981
|
+
let w = i.node(v - 1), C = i.index(v - 1);
|
|
61982
|
+
if (w.canReplaceWith(C, C, m.type, m.marks))
|
|
61987
61983
|
return t.replace(i.before(v), y ? o.after(v) : n, new K(Zne(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
61988
61984
|
}
|
|
61989
61985
|
}
|
|
@@ -62450,16 +62446,16 @@ function cGe(t) {
|
|
|
62450
62446
|
if (m == d.childCount)
|
|
62451
62447
|
break;
|
|
62452
62448
|
const A = d.child(m), { colspan: v, rowspan: y, colwidth: w } = A.attrs;
|
|
62453
|
-
for (let
|
|
62454
|
-
if (
|
|
62449
|
+
for (let C = 0; C < y; C++) {
|
|
62450
|
+
if (C + c >= n) {
|
|
62455
62451
|
(o || (o = [])).push({
|
|
62456
62452
|
type: "overlong_rowspan",
|
|
62457
62453
|
pos: u,
|
|
62458
|
-
n: y -
|
|
62454
|
+
n: y - C
|
|
62459
62455
|
});
|
|
62460
62456
|
break;
|
|
62461
62457
|
}
|
|
62462
|
-
const g = i +
|
|
62458
|
+
const g = i + C * e;
|
|
62463
62459
|
for (let b = 0; b < v; b++) {
|
|
62464
62460
|
r[g + b] == 0 ? r[g + b] = u : (o || (o = [])).push({
|
|
62465
62461
|
type: "collision",
|
|
@@ -62467,10 +62463,10 @@ function cGe(t) {
|
|
|
62467
62463
|
pos: u,
|
|
62468
62464
|
n: v - b
|
|
62469
62465
|
});
|
|
62470
|
-
const
|
|
62471
|
-
if (
|
|
62466
|
+
const S = w && w[b];
|
|
62467
|
+
if (S) {
|
|
62472
62468
|
const T = (g + b) % e * 2, I = a[T];
|
|
62473
|
-
I == null || I !=
|
|
62469
|
+
I == null || I != S && a[T + 1] == 1 ? (a[T] = S, a[T + 1] = 1) : I == S && a[T + 1]++;
|
|
62474
62470
|
}
|
|
62475
62471
|
}
|
|
62476
62472
|
}
|
|
@@ -64115,13 +64111,13 @@ function MW(t, e, n, r, i, o) {
|
|
|
64115
64111
|
const v = i === f ? o : m && m[A], y = v ? `${v}px` : "";
|
|
64116
64112
|
if (s += v || r, v || (l = !1), c) {
|
|
64117
64113
|
if (c.style.width !== y) {
|
|
64118
|
-
const [w,
|
|
64119
|
-
c.style.setProperty(w,
|
|
64114
|
+
const [w, C] = BE(r, v);
|
|
64115
|
+
c.style.setProperty(w, C);
|
|
64120
64116
|
}
|
|
64121
64117
|
c = c.nextSibling;
|
|
64122
64118
|
} else {
|
|
64123
|
-
const w = document.createElement("col"), [
|
|
64124
|
-
w.style.setProperty(
|
|
64119
|
+
const w = document.createElement("col"), [C, g] = BE(r, v);
|
|
64120
|
+
w.style.setProperty(C, g), e.appendChild(w);
|
|
64125
64121
|
}
|
|
64126
64122
|
}
|
|
64127
64123
|
}
|
|
@@ -66835,7 +66831,7 @@ function tP(t) {
|
|
|
66835
66831
|
return f.current.get(w) ?? "!bugged!";
|
|
66836
66832
|
}
|
|
66837
66833
|
function m(w) {
|
|
66838
|
-
const
|
|
66834
|
+
const C = sb(), [g] = qZe.repeatableContentWithDefaultNestableContentValues(l, [C]);
|
|
66839
66835
|
g && o(
|
|
66840
66836
|
gK(
|
|
66841
66837
|
u,
|
|
@@ -66845,21 +66841,21 @@ function tP(t) {
|
|
|
66845
66841
|
);
|
|
66846
66842
|
}
|
|
66847
66843
|
function A(w) {
|
|
66848
|
-
const { index:
|
|
66849
|
-
o(yK(u,
|
|
66844
|
+
const { index: C, offset: g } = w;
|
|
66845
|
+
o(yK(u, C, C + g));
|
|
66850
66846
|
}
|
|
66851
66847
|
function v(w) {
|
|
66852
66848
|
o(vK(u, w));
|
|
66853
66849
|
}
|
|
66854
|
-
function y(w,
|
|
66855
|
-
const
|
|
66850
|
+
function y(w, C, g, b) {
|
|
66851
|
+
const S = GZe(w, [
|
|
66856
66852
|
g,
|
|
66857
66853
|
b
|
|
66858
66854
|
]), T = YZe(u, [
|
|
66859
|
-
|
|
66860
|
-
|
|
66855
|
+
C,
|
|
66856
|
+
S
|
|
66861
66857
|
]);
|
|
66862
|
-
QZe(f.current, w,
|
|
66858
|
+
QZe(f.current, w, S), o(T);
|
|
66863
66859
|
}
|
|
66864
66860
|
return Object.keys(l).length === 0 ? null : /* @__PURE__ */ p(
|
|
66865
66861
|
Eie,
|
|
@@ -66876,25 +66872,25 @@ function tP(t) {
|
|
|
66876
66872
|
renderDragPreview: ({ index: w }) => /* @__PURE__ */ p(JZe, { title: n ?? "Repeatable zone", index: w }),
|
|
66877
66873
|
renderDropIndicator: ZZe
|
|
66878
66874
|
},
|
|
66879
|
-
children: (w,
|
|
66875
|
+
children: (w, C) => {
|
|
66880
66876
|
const g = new Map(w.value), b = h(w);
|
|
66881
66877
|
return /* @__PURE__ */ p(uK, { keepLoaded: !0, loadWhenSearching: !0, children: /* @__PURE__ */ p(
|
|
66882
66878
|
Rie,
|
|
66883
66879
|
{
|
|
66884
|
-
index:
|
|
66885
|
-
title: `${
|
|
66880
|
+
index: C,
|
|
66881
|
+
title: `${C + 1} • Item`,
|
|
66886
66882
|
onMove: A,
|
|
66887
66883
|
onDelete: v,
|
|
66888
|
-
children: c.map(([
|
|
66884
|
+
children: c.map(([S, T]) => /* @__PURE__ */ p(
|
|
66889
66885
|
Mre,
|
|
66890
66886
|
{
|
|
66891
|
-
id: `${e}[${b}].${
|
|
66892
|
-
content: g.get(
|
|
66887
|
+
id: `${e}[${b}].${S}`,
|
|
66888
|
+
content: g.get(S),
|
|
66893
66889
|
widget: T,
|
|
66894
|
-
onContentChange: (I) => y(w,
|
|
66890
|
+
onContentChange: (I) => y(w, C, S, I),
|
|
66895
66891
|
readOnly: a
|
|
66896
66892
|
},
|
|
66897
|
-
|
|
66893
|
+
S
|
|
66898
66894
|
))
|
|
66899
66895
|
}
|
|
66900
66896
|
) });
|
|
@@ -67389,7 +67385,7 @@ function fXe(t) {
|
|
|
67389
67385
|
} = d;
|
|
67390
67386
|
u(!0);
|
|
67391
67387
|
try {
|
|
67392
|
-
const
|
|
67388
|
+
const C = await $We(
|
|
67393
67389
|
w,
|
|
67394
67390
|
y,
|
|
67395
67391
|
v,
|
|
@@ -67401,11 +67397,11 @@ function fXe(t) {
|
|
|
67401
67397
|
t.onContentChange({
|
|
67402
67398
|
__TYPE__: "FieldContent",
|
|
67403
67399
|
type: "Text",
|
|
67404
|
-
value:
|
|
67400
|
+
value: C[n]
|
|
67405
67401
|
}), A({
|
|
67406
67402
|
documentId: r,
|
|
67407
67403
|
locale: a,
|
|
67408
|
-
suggestion:
|
|
67404
|
+
suggestion: C[n],
|
|
67409
67405
|
type: n
|
|
67410
67406
|
});
|
|
67411
67407
|
} catch {
|
|
@@ -67571,21 +67567,21 @@ function vXe(t) {
|
|
|
67571
67567
|
const w = {
|
|
67572
67568
|
id: `${e}.${v}`,
|
|
67573
67569
|
onContentChange: (g) => {
|
|
67574
|
-
const { [v]: b, ...
|
|
67570
|
+
const { [v]: b, ...S } = f.current;
|
|
67575
67571
|
o({
|
|
67576
|
-
...
|
|
67572
|
+
...S,
|
|
67577
67573
|
...g !== void 0 && {
|
|
67578
67574
|
[v]: g
|
|
67579
67575
|
}
|
|
67580
67576
|
});
|
|
67581
67577
|
},
|
|
67582
67578
|
readOnly: n
|
|
67583
|
-
},
|
|
67579
|
+
}, C = i[v];
|
|
67584
67580
|
return y.type === "UID" ? /* @__PURE__ */ em(
|
|
67585
67581
|
pXe,
|
|
67586
67582
|
{
|
|
67587
67583
|
...w,
|
|
67588
|
-
content: fe.isUIDContent(
|
|
67584
|
+
content: fe.isUIDContent(C) ? C : void 0,
|
|
67589
67585
|
key: v,
|
|
67590
67586
|
field: y
|
|
67591
67587
|
}
|
|
@@ -67593,7 +67589,7 @@ function vXe(t) {
|
|
|
67593
67589
|
eP,
|
|
67594
67590
|
{
|
|
67595
67591
|
...w,
|
|
67596
|
-
content: fe.isGroupContent(
|
|
67592
|
+
content: fe.isGroupContent(C) ? C : void 0,
|
|
67597
67593
|
group: y,
|
|
67598
67594
|
key: v
|
|
67599
67595
|
}
|
|
@@ -67601,7 +67597,7 @@ function vXe(t) {
|
|
|
67601
67597
|
fXe,
|
|
67602
67598
|
{
|
|
67603
67599
|
...w,
|
|
67604
|
-
content: fe.isTextContent(
|
|
67600
|
+
content: fe.isTextContent(C) ? C : void 0,
|
|
67605
67601
|
field: y,
|
|
67606
67602
|
key: v,
|
|
67607
67603
|
metadataFieldType: v,
|
|
@@ -67614,7 +67610,7 @@ function vXe(t) {
|
|
|
67614
67610
|
Dw,
|
|
67615
67611
|
{
|
|
67616
67612
|
...w,
|
|
67617
|
-
content: fe.isNestableContent(
|
|
67613
|
+
content: fe.isNestableContent(C) ? C : void 0,
|
|
67618
67614
|
key: v,
|
|
67619
67615
|
nestableWidget: y
|
|
67620
67616
|
}
|