@treely/strapi-slices 7.15.1 → 7.16.0
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/README.md +2 -0
- package/dist/__mocks__/next/navigation.d.ts +7 -0
- package/dist/slices/Redirect/Redirect.d.ts +7 -0
- package/dist/slices/Redirect/index.d.ts +2 -0
- package/dist/strapi-slices.cjs.development.js +247 -287
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +247 -287
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SliceRenderer/SliceRenderer.tsx +5 -0
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +39 -33
- package/src/slices/Redirect/Rediect.test.tsx +33 -0
- package/src/slices/Redirect/Redirect.tsx +17 -0
- package/src/slices/Redirect/index.ts +3 -0
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ var formik = require('formik');
|
|
|
25
25
|
var useEmblaCarousel = require('embla-carousel-react');
|
|
26
26
|
var AutoScroll = require('embla-carousel-auto-scroll');
|
|
27
27
|
var useSWRInfinite = require('swr/infinite');
|
|
28
|
+
var navigation = require('next/navigation');
|
|
28
29
|
|
|
29
30
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
31
|
|
|
@@ -41,6 +42,9 @@ var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
|
41
42
|
var AutoScroll__default = /*#__PURE__*/_interopDefault(AutoScroll);
|
|
42
43
|
var useSWRInfinite__default = /*#__PURE__*/_interopDefault(useSWRInfinite);
|
|
43
44
|
|
|
45
|
+
function _OverloadYield(e, d) {
|
|
46
|
+
this.v = e, this.k = d;
|
|
47
|
+
}
|
|
44
48
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
45
49
|
try {
|
|
46
50
|
var i = n[a](c),
|
|
@@ -84,309 +88,249 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
84
88
|
}
|
|
85
89
|
return t;
|
|
86
90
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
function _regenerator() {
|
|
92
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
93
|
+
var e,
|
|
94
|
+
t,
|
|
95
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
96
|
+
n = r.iterator || "@@iterator",
|
|
97
|
+
o = r.toStringTag || "@@toStringTag";
|
|
98
|
+
function i(r, n, o, i) {
|
|
99
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
100
|
+
u = Object.create(c.prototype);
|
|
101
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
102
|
+
var i,
|
|
103
|
+
c,
|
|
104
|
+
u,
|
|
105
|
+
f = 0,
|
|
106
|
+
p = o || [],
|
|
107
|
+
y = !1,
|
|
108
|
+
G = {
|
|
109
|
+
p: 0,
|
|
110
|
+
n: 0,
|
|
111
|
+
v: e,
|
|
112
|
+
a: d,
|
|
113
|
+
f: d.bind(e, 4),
|
|
114
|
+
d: function (t, r) {
|
|
115
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
function d(r, n) {
|
|
119
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
120
|
+
var o,
|
|
121
|
+
i = p[t],
|
|
122
|
+
d = G.p,
|
|
123
|
+
l = i[2];
|
|
124
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
125
|
+
}
|
|
126
|
+
if (o || r > 1) return a;
|
|
127
|
+
throw y = !0, n;
|
|
128
|
+
}
|
|
129
|
+
return function (o, p, l) {
|
|
130
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
131
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
132
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
133
|
+
try {
|
|
134
|
+
if (f = 2, i) {
|
|
135
|
+
if (c || (o = "next"), t = i[o]) {
|
|
136
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
137
|
+
if (!t.done) return t;
|
|
138
|
+
u = t.value, c < 2 && (c = 0);
|
|
139
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
140
|
+
i = e;
|
|
141
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
142
|
+
} catch (t) {
|
|
143
|
+
i = e, c = 1, u = t;
|
|
144
|
+
} finally {
|
|
145
|
+
f = 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
value: t,
|
|
150
|
+
done: y
|
|
151
|
+
};
|
|
135
152
|
};
|
|
136
|
-
}
|
|
153
|
+
}(r, o, i), !0), u;
|
|
137
154
|
}
|
|
138
|
-
|
|
139
|
-
var h = "suspendedStart",
|
|
140
|
-
l = "suspendedYield",
|
|
141
|
-
f = "executing",
|
|
142
|
-
s = "completed",
|
|
143
|
-
y = {};
|
|
155
|
+
var a = {};
|
|
144
156
|
function Generator() {}
|
|
145
157
|
function GeneratorFunction() {}
|
|
146
158
|
function GeneratorFunctionPrototype() {}
|
|
147
|
-
|
|
148
|
-
|
|
159
|
+
t = Object.getPrototypeOf;
|
|
160
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
161
|
+
return this;
|
|
162
|
+
}), t),
|
|
163
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
164
|
+
function f(e) {
|
|
165
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
166
|
+
}
|
|
167
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
149
168
|
return this;
|
|
169
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
170
|
+
return "[object Generator]";
|
|
171
|
+
}), (_regenerator = function () {
|
|
172
|
+
return {
|
|
173
|
+
w: i,
|
|
174
|
+
m: f
|
|
175
|
+
};
|
|
176
|
+
})();
|
|
177
|
+
}
|
|
178
|
+
function _regeneratorAsync(n, e, r, t, o) {
|
|
179
|
+
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
180
|
+
return a.next().then(function (n) {
|
|
181
|
+
return n.done ? n.value : a.next();
|
|
150
182
|
});
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
183
|
+
}
|
|
184
|
+
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
185
|
+
return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
|
|
186
|
+
}
|
|
187
|
+
function _regeneratorAsyncIterator(t, e) {
|
|
188
|
+
function n(r, o, i, f) {
|
|
189
|
+
try {
|
|
190
|
+
var c = t[r](o),
|
|
191
|
+
u = c.value;
|
|
192
|
+
return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
|
|
193
|
+
n("next", t, i, f);
|
|
194
|
+
}, function (t) {
|
|
195
|
+
n("throw", t, i, f);
|
|
196
|
+
}) : e.resolve(u).then(function (t) {
|
|
197
|
+
c.value = t, i(c);
|
|
198
|
+
}, function (t) {
|
|
199
|
+
return n("throw", t, i, f);
|
|
159
200
|
});
|
|
160
|
-
})
|
|
201
|
+
} catch (t) {
|
|
202
|
+
f(t);
|
|
203
|
+
}
|
|
161
204
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, function (t) {
|
|
171
|
-
invoke("throw", t, i, a);
|
|
172
|
-
}) : e.resolve(h).then(function (t) {
|
|
173
|
-
u.value = t, i(u);
|
|
174
|
-
}, function (t) {
|
|
175
|
-
return invoke("throw", t, i, a);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
a(c.arg);
|
|
205
|
+
var r;
|
|
206
|
+
this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
|
|
207
|
+
return this;
|
|
208
|
+
})), _regeneratorDefine(this, "_invoke", function (t, o, i) {
|
|
209
|
+
function f() {
|
|
210
|
+
return new e(function (e, r) {
|
|
211
|
+
n(t, i, e, r);
|
|
212
|
+
});
|
|
179
213
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
});
|
|
214
|
+
return r = r ? r.then(f, f) : f();
|
|
215
|
+
}, !0);
|
|
216
|
+
}
|
|
217
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
218
|
+
var i = Object.defineProperty;
|
|
219
|
+
try {
|
|
220
|
+
i({}, "", {});
|
|
221
|
+
} catch (e) {
|
|
222
|
+
i = 0;
|
|
191
223
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
224
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
225
|
+
function o(r, n) {
|
|
226
|
+
_regeneratorDefine(e, r, function (e) {
|
|
227
|
+
return this._invoke(r, n, e);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
r ? i ? i(e, r, {
|
|
231
|
+
value: n,
|
|
232
|
+
enumerable: !t,
|
|
233
|
+
configurable: !t,
|
|
234
|
+
writable: !t
|
|
235
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
236
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
237
|
+
}
|
|
238
|
+
function _regeneratorKeys(e) {
|
|
239
|
+
var n = Object(e),
|
|
240
|
+
r = [];
|
|
241
|
+
for (var t in n) r.unshift(t);
|
|
242
|
+
return function e() {
|
|
243
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
|
|
244
|
+
return e.done = !0, e;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function _regeneratorValues(e) {
|
|
248
|
+
if (null != e) {
|
|
249
|
+
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
250
|
+
r = 0;
|
|
251
|
+
if (t) return t.call(e);
|
|
252
|
+
if ("function" == typeof e.next) return e;
|
|
253
|
+
if (!isNaN(e.length)) return {
|
|
254
|
+
next: function () {
|
|
255
|
+
return e && r >= e.length && (e = void 0), {
|
|
256
|
+
value: e && e[r++],
|
|
257
|
+
done: !e
|
|
201
258
|
};
|
|
202
259
|
}
|
|
203
|
-
for (n.method = i, n.arg = a;;) {
|
|
204
|
-
var c = n.delegate;
|
|
205
|
-
if (c) {
|
|
206
|
-
var u = maybeInvokeDelegate(c, n);
|
|
207
|
-
if (u) {
|
|
208
|
-
if (u === y) continue;
|
|
209
|
-
return u;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
213
|
-
if (o === h) throw o = s, n.arg;
|
|
214
|
-
n.dispatchException(n.arg);
|
|
215
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
216
|
-
o = f;
|
|
217
|
-
var p = tryCatch(e, r, n);
|
|
218
|
-
if ("normal" === p.type) {
|
|
219
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
220
|
-
return {
|
|
221
|
-
value: p.arg,
|
|
222
|
-
done: n.done
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
226
|
-
}
|
|
227
260
|
};
|
|
228
261
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
243
|
-
}
|
|
244
|
-
function resetTryEntry(t) {
|
|
245
|
-
var e = t.completion || {};
|
|
246
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
247
|
-
}
|
|
248
|
-
function Context(t) {
|
|
249
|
-
this.tryEntries = [{
|
|
250
|
-
tryLoc: "root"
|
|
251
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
262
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
263
|
+
}
|
|
264
|
+
function _taggedTemplateLiteralLoose(e, t) {
|
|
265
|
+
return t || (t = e.slice(0)), e.raw = t, e;
|
|
266
|
+
}
|
|
267
|
+
function _regeneratorRuntime() {
|
|
268
|
+
|
|
269
|
+
var r = _regenerator(),
|
|
270
|
+
e = r.m(_regeneratorRuntime),
|
|
271
|
+
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
272
|
+
function n(r) {
|
|
273
|
+
var e = "function" == typeof r && r.constructor;
|
|
274
|
+
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
|
|
252
275
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
276
|
+
var o = {
|
|
277
|
+
throw: 1,
|
|
278
|
+
return: 2,
|
|
279
|
+
break: 3,
|
|
280
|
+
continue: 3
|
|
281
|
+
};
|
|
282
|
+
function a(r) {
|
|
283
|
+
var e, t;
|
|
284
|
+
return function (n) {
|
|
285
|
+
e || (e = {
|
|
286
|
+
stop: function () {
|
|
287
|
+
return t(n.a, 2);
|
|
288
|
+
},
|
|
289
|
+
catch: function () {
|
|
290
|
+
return n.v;
|
|
291
|
+
},
|
|
292
|
+
abrupt: function (r, e) {
|
|
293
|
+
return t(n.a, o[r], e);
|
|
294
|
+
},
|
|
295
|
+
delegateYield: function (r, o, a) {
|
|
296
|
+
return e.resultName = o, t(n.d, _regeneratorValues(r), a);
|
|
297
|
+
},
|
|
298
|
+
finish: function (r) {
|
|
299
|
+
return t(n.f, r);
|
|
300
|
+
}
|
|
301
|
+
}, t = function (r, t, o) {
|
|
302
|
+
n.p = e.prev, n.n = e.next;
|
|
303
|
+
try {
|
|
304
|
+
return r(t, o);
|
|
305
|
+
} finally {
|
|
306
|
+
e.next = n.n;
|
|
307
|
+
}
|
|
308
|
+
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
|
|
309
|
+
try {
|
|
310
|
+
return r.call(this, e);
|
|
311
|
+
} finally {
|
|
312
|
+
n.p = e.prev, n.n = e.next;
|
|
265
313
|
}
|
|
266
|
-
}
|
|
267
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
314
|
+
};
|
|
268
315
|
}
|
|
269
|
-
return
|
|
270
|
-
value: GeneratorFunctionPrototype,
|
|
271
|
-
configurable: !0
|
|
272
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
273
|
-
value: GeneratorFunction,
|
|
274
|
-
configurable: !0
|
|
275
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
276
|
-
var e = "function" == typeof t && t.constructor;
|
|
277
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
278
|
-
}, e.mark = function (t) {
|
|
279
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
280
|
-
}, e.awrap = function (t) {
|
|
316
|
+
return (_regeneratorRuntime = function () {
|
|
281
317
|
return {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}), e.keys = function (t) {
|
|
297
|
-
var e = Object(t),
|
|
298
|
-
r = [];
|
|
299
|
-
for (var n in e) r.push(n);
|
|
300
|
-
return r.reverse(), function next() {
|
|
301
|
-
for (; r.length;) {
|
|
302
|
-
var t = r.pop();
|
|
303
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
304
|
-
}
|
|
305
|
-
return next.done = !0, next;
|
|
318
|
+
wrap: function (e, t, n, o) {
|
|
319
|
+
return r.w(a(e), t, n, o && o.reverse());
|
|
320
|
+
},
|
|
321
|
+
isGeneratorFunction: n,
|
|
322
|
+
mark: r.m,
|
|
323
|
+
awrap: function (r, e) {
|
|
324
|
+
return new _OverloadYield(r, e);
|
|
325
|
+
},
|
|
326
|
+
AsyncIterator: _regeneratorAsyncIterator,
|
|
327
|
+
async: function (r, e, t, o, u) {
|
|
328
|
+
return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
|
|
329
|
+
},
|
|
330
|
+
keys: _regeneratorKeys,
|
|
331
|
+
values: _regeneratorValues
|
|
306
332
|
};
|
|
307
|
-
}
|
|
308
|
-
constructor: Context,
|
|
309
|
-
reset: function (e) {
|
|
310
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
311
|
-
},
|
|
312
|
-
stop: function () {
|
|
313
|
-
this.done = !0;
|
|
314
|
-
var t = this.tryEntries[0].completion;
|
|
315
|
-
if ("throw" === t.type) throw t.arg;
|
|
316
|
-
return this.rval;
|
|
317
|
-
},
|
|
318
|
-
dispatchException: function (e) {
|
|
319
|
-
if (this.done) throw e;
|
|
320
|
-
var r = this;
|
|
321
|
-
function handle(n, o) {
|
|
322
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
323
|
-
}
|
|
324
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
325
|
-
var i = this.tryEntries[o],
|
|
326
|
-
a = i.completion;
|
|
327
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
328
|
-
if (i.tryLoc <= this.prev) {
|
|
329
|
-
var c = n.call(i, "catchLoc"),
|
|
330
|
-
u = n.call(i, "finallyLoc");
|
|
331
|
-
if (c && u) {
|
|
332
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
333
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
334
|
-
} else if (c) {
|
|
335
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
336
|
-
} else {
|
|
337
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
338
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
abrupt: function (t, e) {
|
|
344
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
345
|
-
var o = this.tryEntries[r];
|
|
346
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
347
|
-
var i = o;
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
352
|
-
var a = i ? i.completion : {};
|
|
353
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
354
|
-
},
|
|
355
|
-
complete: function (t, e) {
|
|
356
|
-
if ("throw" === t.type) throw t.arg;
|
|
357
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
358
|
-
},
|
|
359
|
-
finish: function (t) {
|
|
360
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
361
|
-
var r = this.tryEntries[e];
|
|
362
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
catch: function (t) {
|
|
366
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
367
|
-
var r = this.tryEntries[e];
|
|
368
|
-
if (r.tryLoc === t) {
|
|
369
|
-
var n = r.completion;
|
|
370
|
-
if ("throw" === n.type) {
|
|
371
|
-
var o = n.arg;
|
|
372
|
-
resetTryEntry(r);
|
|
373
|
-
}
|
|
374
|
-
return o;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
throw Error("illegal catch attempt");
|
|
378
|
-
},
|
|
379
|
-
delegateYield: function (e, r, n) {
|
|
380
|
-
return this.delegate = {
|
|
381
|
-
iterator: values(e),
|
|
382
|
-
resultName: r,
|
|
383
|
-
nextLoc: n
|
|
384
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
385
|
-
}
|
|
386
|
-
}, e;
|
|
387
|
-
}
|
|
388
|
-
function _taggedTemplateLiteralLoose(e, t) {
|
|
389
|
-
return t || (t = e.slice(0)), e.raw = t, e;
|
|
333
|
+
})();
|
|
390
334
|
}
|
|
391
335
|
|
|
392
336
|
var STRAPI_URI = process.env.NEXT_PUBLIC_STRAPI_URI || 'http://127.0.0.1:1337';
|
|
@@ -5616,7 +5560,7 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
5616
5560
|
columns: [1, null, null, 2],
|
|
5617
5561
|
spacingX: "10",
|
|
5618
5562
|
spacingY: "8"
|
|
5619
|
-
}, project.averageSellableAmountPerYear
|
|
5563
|
+
}, project.averageSellableAmountPerYear > 0 ? React__default.default.createElement(boemly.Tooltip, {
|
|
5620
5564
|
label: formatMessage({
|
|
5621
5565
|
id: 'features.projectInfo.properties.projectVolume.toolTip'
|
|
5622
5566
|
})
|
|
@@ -5632,17 +5576,19 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
5632
5576
|
})
|
|
5633
5577
|
}),
|
|
5634
5578
|
caption: subtitles.averageSellableAmountPerYearSubtitle
|
|
5635
|
-
})))
|
|
5579
|
+
}))) : React__default.default.createElement(boemly.Box, null, React__default.default.createElement(CreditsAvailableBadge, {
|
|
5580
|
+
status: project.creditAvailability
|
|
5581
|
+
})), project.riskBuffer && React__default.default.createElement(boemly.Box, null, React__default.default.createElement(boemly.LabelTextPair, {
|
|
5636
5582
|
label: formatMessage({
|
|
5637
5583
|
id: 'features.projectInfo.properties.riskBuffer'
|
|
5638
5584
|
}),
|
|
5639
5585
|
text: formatNumber(project.riskBuffer / 100, FORMAT_AS_PERCENT_CONFIG),
|
|
5640
5586
|
caption: subtitles.riskBufferSubtitle
|
|
5641
|
-
}))), React__default.default.createElement(boemly.Box, {
|
|
5587
|
+
}))), project.averageSellableAmountPerYear > 0 ? React__default.default.createElement(boemly.Box, {
|
|
5642
5588
|
mt: "2"
|
|
5643
5589
|
}, React__default.default.createElement(CreditsAvailableBadge, {
|
|
5644
5590
|
status: project.creditAvailability
|
|
5645
|
-
})));
|
|
5591
|
+
})) : React__default.default.createElement(React__default.default.Fragment, null));
|
|
5646
5592
|
};
|
|
5647
5593
|
|
|
5648
5594
|
var DocumentsDownloadList = function DocumentsDownloadList(_ref) {
|
|
@@ -7225,6 +7171,15 @@ var Events = function Events(_ref) {
|
|
|
7225
7171
|
}))))));
|
|
7226
7172
|
};
|
|
7227
7173
|
|
|
7174
|
+
var Redirect = function Redirect(_ref) {
|
|
7175
|
+
var slice = _ref.slice;
|
|
7176
|
+
React.useEffect(function () {
|
|
7177
|
+
// When using `replace`, the current browser history entry will be replaced
|
|
7178
|
+
navigation.redirect(slice.url, navigation.RedirectType.replace);
|
|
7179
|
+
}, [slice.url]);
|
|
7180
|
+
return React__default.default.createElement(React__default.default.Fragment, null);
|
|
7181
|
+
};
|
|
7182
|
+
|
|
7228
7183
|
var SliceRenderer = function SliceRenderer(_ref) {
|
|
7229
7184
|
var slices = _ref.slices,
|
|
7230
7185
|
blogPosts = _ref.blogPosts,
|
|
@@ -7445,6 +7400,11 @@ var SliceRenderer = function SliceRenderer(_ref) {
|
|
|
7445
7400
|
key: slice.__component + "-" + slice.id,
|
|
7446
7401
|
slice: slice
|
|
7447
7402
|
});
|
|
7403
|
+
case 'sections.redirect':
|
|
7404
|
+
return React__default.default.createElement(Redirect, {
|
|
7405
|
+
key: slice.__component + "-" + slice.id,
|
|
7406
|
+
slice: slice
|
|
7407
|
+
});
|
|
7448
7408
|
default:
|
|
7449
7409
|
if (CustomSlice) {
|
|
7450
7410
|
return React__default.default.createElement(CustomSlice, {
|