@everymatrix/general-registration 1.69.3 → 1.70.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/dist/cjs/{checkbox-group-input_13.cjs.entry.js → checkbox-group-input_14.cjs.entry.js} +656 -58
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-4ad59840.js → index-b58aff1c.js} +6 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/general-registration/general-registration.js +81 -42
- package/dist/collection/utils/locale.utils.js +13 -0
- package/dist/esm/{checkbox-group-input_13.entry.js → checkbox-group-input_14.entry.js} +656 -59
- package/dist/esm/general-registration.js +3 -3
- package/dist/esm/{index-14f0c56e.js → index-6422f1dd.js} +6 -3
- package/dist/esm/loader.js +3 -3
- package/dist/general-registration/checkbox-group-input_14.entry.js +5614 -0
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{index-14f0c56e.js → index-6422f1dd.js} +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +17 -12
- package/dist/types/components/general-registration/general-registration.d.ts +19 -16
- package/dist/types/utils/locale.utils.d.ts +1 -12
- package/package.json +1 -1
- package/dist/general-registration/checkbox-group-input_13.entry.js +0 -5614
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b58aff1c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["checkbox-group-
|
|
22
|
+
return index.bootstrapLazy([["checkbox-group-input_14.cjs",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"btag":[513],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isFormValid":[32],"isConsentValid":[32],"isConsentReady":[32],"isLoading":[32],"isLoadingPOST":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32],"autofilled":[32],"isInitalInteraction":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"],[0,"resendCode","handleRequestTwofa"],[8,"message","messageHandler"]],{"registrationStep":["sendStep"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"forms":["setFormValidity"],"btag":["addBtag"]}],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"hidePasswordComplexity":[516,"hide-password-complexity"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"],"translationUrl":[513,"translation-url"],"emitOnClick":[516,"emit-on-click"],"twofaDestination":[513,"twofa-destination"],"twofaResendIntervalSeconds":[514,"twofa-resend-interval-seconds"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[16],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"showFields":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"]}],[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32],"showCheckboxes":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"selectedValues":["setValue"],"emitValue":["emitValueHandler"]}],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"dateFormat":[513,"date-format"],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"hidePasswordComplexity":[516,"hide-password-complexity"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32],"passwordComplexity":[32],"showPopup":[32],"value":[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"value":["valueChanged"],"emitValue":["emitValueHandler"]}],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[520,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"twofa-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"destination":[513],"resendIntervalSeconds":[514,"resend-interval-seconds"],"clientStyling":[513,"client-styling"],"limitStylingAppends":[32],"isValid":[32],"isResendButtonAvailable":[32],"showTooltip":[32],"errorMessage":[32],"code":[32],"resendIntervalSecondsLeft":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'general-registration';
|
|
24
|
-
const BUILD = /* general-registration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber:
|
|
24
|
+
const BUILD = /* general-registration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'checkbox-group-
|
|
74
|
+
case 'checkbox-group-input_14.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./checkbox-group-
|
|
77
|
+
'./checkbox-group-input_14.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -316,6 +316,9 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
316
316
|
if (propType & 4 /* Boolean */) {
|
|
317
317
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
318
318
|
}
|
|
319
|
+
if (propType & 2 /* Number */) {
|
|
320
|
+
return parseFloat(propValue);
|
|
321
|
+
}
|
|
319
322
|
if (propType & 1 /* String */) {
|
|
320
323
|
return String(propValue);
|
|
321
324
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b58aff1c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["checkbox-group-
|
|
11
|
+
return index.bootstrapLazy([["checkbox-group-input_14.cjs",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"dateFormat":[513,"date-format"],"buttonInsideForm":[516,"button-inside-form"],"btag":[513],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isFormValid":[32],"isConsentValid":[32],"isConsentReady":[32],"isLoading":[32],"isLoadingPOST":[32],"registrationStep":[32],"forms":[32],"limitStylingAppends":[32],"autofilled":[32],"isInitalInteraction":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"],[0,"resendCode","handleRequestTwofa"],[8,"message","messageHandler"]],{"registrationStep":["sendStep"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"forms":["setFormValidity"],"btag":["addBtag"]}],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"hidePasswordComplexity":[516,"hide-password-complexity"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"],"translationUrl":[513,"translation-url"],"emitOnClick":[516,"emit-on-click"],"twofaDestination":[513,"twofa-destination"],"twofaResendIntervalSeconds":[514,"twofa-resend-interval-seconds"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[16],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"showFields":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"]}],[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32],"showCheckboxes":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"selectedValues":["setValue"],"emitValue":["emitValueHandler"]}],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"dateFormat":[513,"date-format"],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"hidePasswordComplexity":[516,"hide-password-complexity"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32],"passwordComplexity":[32],"showPopup":[32],"value":[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"value":["valueChanged"],"emitValue":["emitValueHandler"]}],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[520,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"twofa-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"destination":[513],"resendIntervalSeconds":[514,"resend-interval-seconds"],"clientStyling":[513,"client-styling"],"limitStylingAppends":[32],"isValid":[32],"isResendButtonAvailable":[32],"showTooltip":[32],"errorMessage":[32],"code":[32],"resendIntervalSecondsLeft":[32]},[[4,"click","handleClickOutside"]],{"clientStyling":["handleStylingChange"],"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -10,10 +10,15 @@ export class GeneralRegistration {
|
|
|
10
10
|
this.listOfActions = [];
|
|
11
11
|
this.listOfInputs = [];
|
|
12
12
|
this.conditionalValidationMap = {};
|
|
13
|
+
this.lastStep = '';
|
|
13
14
|
this.emitValue = false;
|
|
15
|
+
this.form = null;
|
|
16
|
+
this.errorCode = '';
|
|
14
17
|
this.backButtonPressed = false;
|
|
15
18
|
this.registerErrors = false;
|
|
16
19
|
this.extraActions = [];
|
|
20
|
+
this.registerCredentialsEvent = null;
|
|
21
|
+
this.twofaDestination = '';
|
|
17
22
|
this.registrationStepsState = {
|
|
18
23
|
regId: null
|
|
19
24
|
};
|
|
@@ -60,13 +65,13 @@ export class GeneralRegistration {
|
|
|
60
65
|
this.buttonInsideForm = undefined;
|
|
61
66
|
this.btag = null;
|
|
62
67
|
this.emitOnClick = false;
|
|
63
|
-
this.errorMessage =
|
|
64
|
-
this.isFormValid =
|
|
68
|
+
this.errorMessage = '';
|
|
69
|
+
this.isFormValid = false;
|
|
65
70
|
this.isConsentValid = false;
|
|
66
71
|
this.isConsentReady = false;
|
|
67
72
|
this.isLoading = true;
|
|
68
|
-
this.isLoadingPOST =
|
|
69
|
-
this.registrationStep =
|
|
73
|
+
this.isLoadingPOST = false;
|
|
74
|
+
this.registrationStep = '';
|
|
70
75
|
this.forms = [];
|
|
71
76
|
this.limitStylingAppends = false;
|
|
72
77
|
this.autofilled = false;
|
|
@@ -113,6 +118,42 @@ export class GeneralRegistration {
|
|
|
113
118
|
this.stepsStateMachine({ event: 'set', type: 'values' });
|
|
114
119
|
this.handleConditionalValidation(event.detail.name, event.detail.value);
|
|
115
120
|
}
|
|
121
|
+
handleRequestTwofa() {
|
|
122
|
+
if (!this.twofaDestination)
|
|
123
|
+
return;
|
|
124
|
+
const url = new URL('api/v1/gm/legislation/twoFaCode/', this.endpoint);
|
|
125
|
+
const headers = new Headers({
|
|
126
|
+
'Content-Type': 'application/problem+json; charset=utf-8'
|
|
127
|
+
});
|
|
128
|
+
const body = JSON.stringify({
|
|
129
|
+
channel: 'Sms',
|
|
130
|
+
destination: this.twofaDestination
|
|
131
|
+
});
|
|
132
|
+
const options = { method: 'POST', headers, body };
|
|
133
|
+
fetch(url.href, options)
|
|
134
|
+
.then(res => {
|
|
135
|
+
if (res.ok)
|
|
136
|
+
return;
|
|
137
|
+
res.json().then(err => {
|
|
138
|
+
var _a;
|
|
139
|
+
const errorCode = (_a = err.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
|
|
140
|
+
this.errorMessage = translate(errorCode, this.language) || translate('requestTwofaError', this.language);
|
|
141
|
+
});
|
|
142
|
+
})
|
|
143
|
+
.catch((err) => console.log(err));
|
|
144
|
+
}
|
|
145
|
+
messageHandler(e) {
|
|
146
|
+
//Handle Consents Message
|
|
147
|
+
if (!e.data)
|
|
148
|
+
return;
|
|
149
|
+
switch (e.data.type) {
|
|
150
|
+
case 'isConsentsValid':
|
|
151
|
+
this.listOfInputValidity.find((input) => input.name === "Consents").isValid = e.data.isValid;
|
|
152
|
+
this.isConsentValid = e.data.isValid;
|
|
153
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
116
157
|
componentWillLoad() {
|
|
117
158
|
return this.getRegisterConfig()
|
|
118
159
|
.then((config) => {
|
|
@@ -124,6 +165,25 @@ export class GeneralRegistration {
|
|
|
124
165
|
console.error(err);
|
|
125
166
|
});
|
|
126
167
|
}
|
|
168
|
+
componentDidLoad() {
|
|
169
|
+
this.registrationWidgetLoaded.emit();
|
|
170
|
+
window.postMessage({ type: 'registrationWidgetLoaded' }, window.location.href);
|
|
171
|
+
if (!this.limitStylingAppends && this.host) {
|
|
172
|
+
if (window.emMessageBus != undefined) {
|
|
173
|
+
this.setStreamStyling(`${this.mbSource}.Style`);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
if (this.clientStyling)
|
|
177
|
+
this.setClientStyling();
|
|
178
|
+
if (this.clientStylingUrl)
|
|
179
|
+
this.setClientStylingURL();
|
|
180
|
+
this.limitStylingAppends = true;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
disconnectedCallback() {
|
|
185
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
186
|
+
}
|
|
127
187
|
/**
|
|
128
188
|
* This function produces the conditionalValidationMap object presented below
|
|
129
189
|
*
|
|
@@ -182,7 +242,8 @@ export class GeneralRegistration {
|
|
|
182
242
|
* if it is we update the validation of the affected fields.
|
|
183
243
|
*/
|
|
184
244
|
handleConditionalValidation(correlationField, correlationValue) {
|
|
185
|
-
if (!this.conditionalValidationMap[correlationField]
|
|
245
|
+
if (!this.conditionalValidationMap[correlationField] ||
|
|
246
|
+
!this.conditionalValidationMap[correlationField][correlationValue]) {
|
|
186
247
|
return;
|
|
187
248
|
}
|
|
188
249
|
for (const [field, validation] of Object.entries(this.conditionalValidationMap[correlationField][correlationValue])) {
|
|
@@ -191,37 +252,6 @@ export class GeneralRegistration {
|
|
|
191
252
|
this.validationChange.emit({ validation, field });
|
|
192
253
|
}
|
|
193
254
|
}
|
|
194
|
-
componentDidLoad() {
|
|
195
|
-
this.registrationWidgetLoaded.emit();
|
|
196
|
-
window.postMessage({ type: 'registrationWidgetLoaded' }, window.location.href);
|
|
197
|
-
if (!this.limitStylingAppends && this.host) {
|
|
198
|
-
if (window.emMessageBus != undefined) {
|
|
199
|
-
this.setStreamStyling(`${this.mbSource}.Style`);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
if (this.clientStyling)
|
|
203
|
-
this.setClientStyling();
|
|
204
|
-
if (this.clientStylingUrl)
|
|
205
|
-
this.setClientStylingURL();
|
|
206
|
-
this.limitStylingAppends = true;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
disconnectedCallback() {
|
|
211
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
212
|
-
}
|
|
213
|
-
messageHandler(e) {
|
|
214
|
-
//Handle Consents Message
|
|
215
|
-
if (!e.data)
|
|
216
|
-
return;
|
|
217
|
-
switch (e.data.type) {
|
|
218
|
-
case "isConsentsValid":
|
|
219
|
-
this.listOfInputValidity.find((input) => input.name === "Consents").isValid = e.data.isValid ? true : false;
|
|
220
|
-
this.isConsentValid = e.data.isValid ? true : false;
|
|
221
|
-
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
255
|
nextHandler(e) {
|
|
226
256
|
e.preventDefault();
|
|
227
257
|
// Trigger events in subwidgets.
|
|
@@ -333,7 +363,7 @@ export class GeneralRegistration {
|
|
|
333
363
|
}, window.location.href);
|
|
334
364
|
}
|
|
335
365
|
getRegisterConfig(registrationID) {
|
|
336
|
-
const url = new URL('
|
|
366
|
+
const url = new URL('v1/player/legislation/registration/config/', this.endpoint);
|
|
337
367
|
const headers = new Headers();
|
|
338
368
|
headers.append('Content-Type', 'application/json');
|
|
339
369
|
headers.append('Accept', 'application/json');
|
|
@@ -374,7 +404,7 @@ export class GeneralRegistration {
|
|
|
374
404
|
}
|
|
375
405
|
setRegisterStep() {
|
|
376
406
|
this.isLoadingPOST = true;
|
|
377
|
-
const url = new URL('
|
|
407
|
+
const url = new URL('v1/player/legislation/registration/step/', this.endpoint);
|
|
378
408
|
const registerStep = {
|
|
379
409
|
registrationId: this.registrationID,
|
|
380
410
|
registerUserDto: this.listOfInputValues
|
|
@@ -472,6 +502,10 @@ export class GeneralRegistration {
|
|
|
472
502
|
.then((data) => {
|
|
473
503
|
this.isLoadingPOST = false;
|
|
474
504
|
this.registrationID = data.registrationId;
|
|
505
|
+
if (this.listOfActions.find(action => action === '/request-2FA')) {
|
|
506
|
+
this.twofaDestination = Object.values(this.listOfInputValues.find(item => item.type === 'tel').value).join('');
|
|
507
|
+
this.handleRequestTwofa();
|
|
508
|
+
}
|
|
475
509
|
if (this.listOfActions.some(action => action == '/register')) {
|
|
476
510
|
if (this.listOfActions.some(action => action == '/generate-2FA-code/Generate2FACode')) {
|
|
477
511
|
this.extraActions.push('2fa');
|
|
@@ -518,7 +552,7 @@ export class GeneralRegistration {
|
|
|
518
552
|
setRegister() {
|
|
519
553
|
this.isLoading = true;
|
|
520
554
|
this.registerErrors = false;
|
|
521
|
-
const url = new URL(
|
|
555
|
+
const url = new URL('v1/player/legislation/register/', this.endpoint);
|
|
522
556
|
const headers = new Headers();
|
|
523
557
|
headers.append('Content-Type', 'application/json');
|
|
524
558
|
headers.append('Accept', 'application/json');
|
|
@@ -574,7 +608,6 @@ export class GeneralRegistration {
|
|
|
574
608
|
});
|
|
575
609
|
}
|
|
576
610
|
formatConfig(config) {
|
|
577
|
-
// Populate the list of inputs
|
|
578
611
|
this.listOfInputs = config.content.fields.flatMap((field) => {
|
|
579
612
|
// Special case for inputs that need to be duplicated.
|
|
580
613
|
const duplicateInputRule = field.validate.custom.find(customRule => customRule.rule === 'duplicate-input');
|
|
@@ -740,12 +773,12 @@ export class GeneralRegistration {
|
|
|
740
773
|
renderForm() {
|
|
741
774
|
return this.forms.map((form, index) => {
|
|
742
775
|
return h("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el, onClick: this.handleInitialClick }, form[this.registrationStep] && form[this.registrationStep].map((input) => {
|
|
743
|
-
var _a;
|
|
776
|
+
var _a, _b;
|
|
744
777
|
return h("div", { key: input.name, class: "input-wrapper" }, h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
|
|
745
778
|
? (input.inputType.toLowerCase() === 'checkboxgroup' || input.inputType.toLowerCase() === 'togglecheckbox')
|
|
746
779
|
? input.data.subFields
|
|
747
780
|
: input.data.values
|
|
748
|
-
: [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder,
|
|
781
|
+
: [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, "date-format": this.dateFormat, "twofa-destination": this.twofaDestination, "twofa-resend-interval-seconds": (_a = input.customInfo) === null || _a === void 0 ? void 0 : _a.twofaResendIntervalSeconds, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick, onClick: this.handleInitialClick }), ((_b = input.customInfo) === null || _b === void 0 ? void 0 : _b.description) && (h("div", { class: "input-description" }, input.customInfo.description)));
|
|
749
782
|
}), this.isConsentReady && this.renderConsents(), this.buttonInsideForm && this.renderButtons(), h("div", { class: 'registration__wrapper--flex' }, h("p", { class: 'registration__error-message', innerHTML: this.errorMessage })));
|
|
750
783
|
});
|
|
751
784
|
}
|
|
@@ -1054,6 +1087,12 @@ export class GeneralRegistration {
|
|
|
1054
1087
|
"target": undefined,
|
|
1055
1088
|
"capture": false,
|
|
1056
1089
|
"passive": false
|
|
1090
|
+
}, {
|
|
1091
|
+
"name": "resendCode",
|
|
1092
|
+
"method": "handleRequestTwofa",
|
|
1093
|
+
"target": undefined,
|
|
1094
|
+
"capture": false,
|
|
1095
|
+
"passive": false
|
|
1057
1096
|
}, {
|
|
1058
1097
|
"name": "message",
|
|
1059
1098
|
"method": "messageHandler",
|
|
@@ -53,6 +53,7 @@ export const TRANSLATIONS = {
|
|
|
53
53
|
"doneButton": 'Done',
|
|
54
54
|
"generalError": "Something went wrong... Please try again.",
|
|
55
55
|
"successMessage": "Register successful",
|
|
56
|
+
"requestTwofaError": "There was an error when sending the code",
|
|
56
57
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
57
58
|
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
58
59
|
"GmErr_BadRequest_PasswordContainsUsername": "The password cannot be the same as the username.",
|
|
@@ -136,6 +137,7 @@ export const TRANSLATIONS = {
|
|
|
136
137
|
"backButton": 'Vissza',
|
|
137
138
|
"doneButton": 'Kész',
|
|
138
139
|
"generalError": "Valami hiba történt... Próbáld újra.",
|
|
140
|
+
"requestTwofaError": "Hiba történt a kód elküldésekor",
|
|
139
141
|
"successMessage": "Sikeres regisztráció",
|
|
140
142
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
141
143
|
"GmErr_BadRequest_Duplicate_User": 'Egy ilyen információval rendelkező felhasználó már létezik.',
|
|
@@ -220,6 +222,7 @@ export const TRANSLATIONS = {
|
|
|
220
222
|
"backButton": 'Nazad',
|
|
221
223
|
"doneButton": 'Gotovo',
|
|
222
224
|
"generalError": "Korisnik s ovim podacima već postoji.",
|
|
225
|
+
"requestTwofaError": "Došlo je do pogreške prilikom slanja koda",
|
|
223
226
|
"successMessage": "Register successful",
|
|
224
227
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
225
228
|
"GmErr_BadRequest_Duplicate_User": 'Korisnik s ovim informacijama već postoji.',
|
|
@@ -304,6 +307,7 @@ export const TRANSLATIONS = {
|
|
|
304
307
|
"backButton": 'Voltar',
|
|
305
308
|
"doneButton": 'Terminar',
|
|
306
309
|
"generalError": 'Alguma coisa deu errado. Por favor tente outra vez',
|
|
310
|
+
"requestTwofaError": "Ocorreu um erro ao enviar o código",
|
|
307
311
|
"successMessage": 'Registro bem-sucedido',
|
|
308
312
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
309
313
|
"GmErr_BadRequest_Duplicate_User": 'Um usuário com essas informações já existe.',
|
|
@@ -388,6 +392,7 @@ export const TRANSLATIONS = {
|
|
|
388
392
|
"backButton": 'Atrás',
|
|
389
393
|
"doneButton": 'Terminar',
|
|
390
394
|
"generalError": 'Algo salió mal... Por favor intente de nuevo',
|
|
395
|
+
"requestTwofaError": "Se produjo un error al enviar el código",
|
|
391
396
|
"successMessage": 'Registro exitoso',
|
|
392
397
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
393
398
|
"GmErr_BadRequest_Duplicate_User": 'Ya existe un usuario con esta información.',
|
|
@@ -472,6 +477,7 @@ export const TRANSLATIONS = {
|
|
|
472
477
|
"backButton": 'Geri',
|
|
473
478
|
"doneButton": 'Tamam',
|
|
474
479
|
"generalError": "Bir şeyler ters gitti... Lütfen tekrar deneyin.",
|
|
480
|
+
"requestTwofaError": "Kod gönderilirken bir hata oluştu",
|
|
475
481
|
"successMessage": "Kayıt başarılı",
|
|
476
482
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
477
483
|
"GmErr_BadRequest_Duplicate_User": 'Bu bilgilerle bir kullanıcı zaten mevcut.',
|
|
@@ -556,6 +562,7 @@ export const TRANSLATIONS = {
|
|
|
556
562
|
"backButton": 'Back',
|
|
557
563
|
"doneButton": 'Done',
|
|
558
564
|
"generalError": "Something went wrong... Please try again.",
|
|
565
|
+
"requestTwofaError": "There was an error when sending the code",
|
|
559
566
|
"successMessage": "Register successful",
|
|
560
567
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
561
568
|
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
@@ -640,6 +647,7 @@ export const TRANSLATIONS = {
|
|
|
640
647
|
"backButton": "Înapoi",
|
|
641
648
|
"doneButton": "Finalizat",
|
|
642
649
|
"generalError": "Ceva a mers prost... Vă rugăm să încercați din nou.",
|
|
650
|
+
"requestTwofaError": "A apărut o eroare la trimiterea codului",
|
|
643
651
|
"successMessage": "Înregistrare reușită",
|
|
644
652
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
645
653
|
"GmErr_BadRequest_Duplicate_User": 'Un utilizator cu aceste informații există deja.',
|
|
@@ -722,6 +730,7 @@ export const TRANSLATIONS = {
|
|
|
722
730
|
"CountryRestricted": "Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",
|
|
723
731
|
"nextButton": "Suivant",
|
|
724
732
|
"backButton": "Retour",
|
|
733
|
+
"requestTwofaError": "Une erreur est survenue lors de l'envoi du code",
|
|
725
734
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
726
735
|
"GmErr_BadRequest_Duplicate_User": 'Un utilisateur avec ces informations existe déjà.',
|
|
727
736
|
"GmErr_BadRequest_PasswordContainsUsername": "Le mot de passe ne peut pas être le même que le nom d'utilisateur.",
|
|
@@ -805,6 +814,7 @@ export const TRANSLATIONS = {
|
|
|
805
814
|
"backButton": "Atrás",
|
|
806
815
|
"doneButton": "Hecho",
|
|
807
816
|
"generalError": "Algo salió mal... Por favor, inténtalo de nuevo.",
|
|
817
|
+
"requestTwofaError": "Se produjo un error al enviar el código",
|
|
808
818
|
"successMessage": "Registro exitoso",
|
|
809
819
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
810
820
|
"GmErr_BadRequest_Duplicate_User": 'Ya existe un usuario con esta información.',
|
|
@@ -889,6 +899,7 @@ export const TRANSLATIONS = {
|
|
|
889
899
|
"backButton": "Voltar",
|
|
890
900
|
"doneButton": "Concluído",
|
|
891
901
|
"generalError": "Algo deu errado... Por favor, tente novamente.",
|
|
902
|
+
"requestTwofaError": "Ocorreu um erro ao enviar o código",
|
|
892
903
|
"successMessage": "Registro bem-sucedido",
|
|
893
904
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
894
905
|
"GmErr_BadRequest_Duplicate_User": 'Um usuário com essas informações já existe.',
|
|
@@ -973,6 +984,7 @@ export const TRANSLATIONS = {
|
|
|
973
984
|
"backButton": "Zurück",
|
|
974
985
|
"doneButton": "Fertig",
|
|
975
986
|
"generalError": "Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",
|
|
987
|
+
"requestTwofaError": "Beim Senden des Codes ist ein Fehler aufgetreten",
|
|
976
988
|
"successMessage": "Registrierung erfolgreich",
|
|
977
989
|
//Prod old errors which will be deleted after prod is updated to new keys.
|
|
978
990
|
"GmErr_BadRequest_Duplicate_User": 'Ein Benutzer mit diesen Informationen existiert bereits.',
|
|
@@ -1013,6 +1025,7 @@ export const getTranslations = (url) => {
|
|
|
1013
1025
|
.then((res) => res.json())
|
|
1014
1026
|
.then((data) => {
|
|
1015
1027
|
Object.keys(data).forEach((item) => {
|
|
1028
|
+
TRANSLATIONS[item] = TRANSLATIONS[item] || {};
|
|
1016
1029
|
for (let key in data[item]) {
|
|
1017
1030
|
TRANSLATIONS[item][key] = data[item][key];
|
|
1018
1031
|
}
|