infinity-forge 1.9.9 → 2.0.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.
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Content = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var ui_1 = require("../../../../../../../../../ui");
|
|
40
|
-
var card_1 = require("./card");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
39
|
+
var ui_1 = require("../../../../../../../../../ui/index.js");
|
|
40
|
+
var card_1 = require("./card/index.js");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
42
|
function Content() {
|
|
43
43
|
var messages = [
|
|
44
44
|
{
|
|
@@ -23,7 +23,22 @@ function useDynamicSection(_a) {
|
|
|
23
23
|
var locale = router.locale;
|
|
24
24
|
var refSectionID = (0, ui_1.generateRef)(refSection, router, isGlobal);
|
|
25
25
|
var sections = (0, context_1.useDynamicSectionContext)().sections;
|
|
26
|
-
var
|
|
26
|
+
var languages = (0, ui_1.useI18n)().languages;
|
|
27
|
+
var findSection = (sections === null || sections === void 0 ? void 0 : sections.find(function (section) { return section.ref === refSectionID; })) || {
|
|
28
|
+
enabled: false,
|
|
29
|
+
images: [{ url: '/images/default-image.webp' }],
|
|
30
|
+
linkUrl: 'Not configured',
|
|
31
|
+
videoUrl: 'not-configured',
|
|
32
|
+
i18n: languages.reduce(function (reducer, language) {
|
|
33
|
+
var _a;
|
|
34
|
+
return (__assign(__assign({}, reducer), (_a = {}, _a[language.symbol] = {
|
|
35
|
+
title: 'Not configured',
|
|
36
|
+
subtitle: 'Not configured',
|
|
37
|
+
description: 'Not configured',
|
|
38
|
+
linkText: 'Not configured',
|
|
39
|
+
}, _a)));
|
|
40
|
+
}, {}),
|
|
41
|
+
};
|
|
27
42
|
function Section(_a) {
|
|
28
43
|
var children = _a.children;
|
|
29
44
|
if (!findSection.enabled) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAA2C;AAG3C,sCAAqD;AACrD,+CAAqD;AAIrD,SAAgB,iBAAiB,CAAC,EAMjC;QALC,UAAU,gBAAA,EACV,QAAQ,cAAA;IAKR,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IAE5B,IAAM,YAAY,GAAG,IAAA,gBAAW,EAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAEtD,IAAA,QAAQ,GAAK,IAAA,kCAAwB,GAAE,SAA/B,CAA+B;IAEvC,IAAA,SAAS,GAAK,IAAA,YAAO,GAAE,UAAd,CAAc;IAE/B,IAAM,WAAW,GACf,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,KAAK,YAAY,EAA5B,CAA4B,CAAC,KAAK;QAC5D,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,4BAA4B,EAAE,CAAC;QAC/C,OAAO,EAAE,gBAAgB;QACzB,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,SAAS,CAAC,MAAM,CACpB,UAAC,OAAO,EAAE,QAAQ;;YAAK,OAAA,uBAClB,OAAO,gBACT,QAAQ,CAAC,MAAM,IAAG;gBACjB,KAAK,EAAE,gBAAgB;gBACvB,QA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