@experium/findy-form 1.3.18 → 1.3.20
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.
|
@@ -182,17 +182,17 @@ var PersonalDataAgreementComponent = /*#__PURE__*/function (_Component) {
|
|
|
182
182
|
var link = (0, _ramda.path)(['data', 'translations', 'link', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['link'], opdSettings), ['translations', 'link', language], opdSettings);
|
|
183
183
|
var opdText = (0, _ramda.path)(['data', 'translations', 'text', pdaLanguage], opdSettings) || (0, _ramda.pathOr)(opd, ['translations', 'text', language], opdSettings);
|
|
184
184
|
var opdType = (0, _ramda.pathOr)('modal', ['linkType'], opdSettings);
|
|
185
|
-
var opdTypeAdditional = (0, _ramda.pathOr)('
|
|
185
|
+
var opdTypeAdditional = (0, _ramda.pathOr)('', ['linkTypeAdditional'], opdSettings);
|
|
186
186
|
var linkTextAdditional = (0, _ramda.path)(['data', 'translations', 'labelAdditionalLink', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLink'), ['labelAdditionalLink'], opdSettings), ['translations', 'labelAdditionalLink', language], opdSettings);
|
|
187
187
|
var linkAdditional = (0, _ramda.path)(['data', 'translations', 'linkAdditional', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['linkAdditional'], opdSettings), ['translations', 'linkAdditional', language], opdSettings);
|
|
188
188
|
var opdTextAdditional = (0, _ramda.path)(['data', 'translations', 'textAdditional', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.path)(['textAdditional'], opdSettings), ['translations', 'textAdditional', language], opdSettings);
|
|
189
189
|
return /*#__PURE__*/_react["default"].createElement("span", null, renderOpdLabel ? renderOpdLabel(modalLinkProps) : label !== 'opdLabelCustom' ? label : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, (0, _ramda.path)(['data', 'translations', 'labelStart', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLabel'), ['labelStart'], opdSettings), ['translations', 'labelStart', language], opdSettings), ' ', opdType === 'modal' ? /*#__PURE__*/_react["default"].createElement("span", modalLinkProps, linkText) : /*#__PURE__*/_react["default"].createElement("a", {
|
|
190
190
|
href: "//".concat(link),
|
|
191
191
|
target: "_blank"
|
|
192
|
-
}, linkText),
|
|
192
|
+
}, linkText), (0, _ramda.path)(['data', 'translations', 'labelEnd', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(opdTypeAdditional ? '' : '.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings), opdTypeAdditional ? /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, (0, _ramda.path)(['data', 'translations', 'labelAdditionalStart', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)(t('opdLabel'), ['labelAdditionalStart'], opdSettings), ['translations', 'labelAdditionalStart', language], opdSettings), ' ', opdTypeAdditional === 'modal' ? /*#__PURE__*/_react["default"].createElement("span", modalLinkAdditionalProps, linkTextAdditional) : /*#__PURE__*/_react["default"].createElement("a", {
|
|
193
193
|
href: "//".concat(linkAdditional),
|
|
194
194
|
target: "_blank"
|
|
195
|
-
}, linkTextAdditional),
|
|
195
|
+
}, linkTextAdditional), (0, _ramda.path)(['data', 'translations', 'labelAdditionalEnd', pdaLanguage], opdSettings) || (0, _ramda.pathOr)((0, _ramda.pathOr)('.', ['labelAdditionalEnd'], opdSettings), ['translations', 'labelAdditionalEnd', language], opdSettings)) : null), /*#__PURE__*/_react["default"].createElement(_reactResponsiveModal["default"], {
|
|
196
196
|
open: _this.state.opened,
|
|
197
197
|
onClose: _this.close,
|
|
198
198
|
classNames: {
|
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
85
85
|
const opdText = path(['data', 'translations', 'text', pdaLanguage], opdSettings) || pathOr(opd, ['translations', 'text', language], opdSettings);
|
|
86
86
|
const opdType = pathOr('modal', ['linkType'], opdSettings);
|
|
87
87
|
|
|
88
|
-
const opdTypeAdditional = pathOr('
|
|
88
|
+
const opdTypeAdditional = pathOr('', ['linkTypeAdditional'], opdSettings);
|
|
89
89
|
const linkTextAdditional = path(['data', 'translations', 'labelAdditionalLink', pdaLanguage], opdSettings) || pathOr(pathOr(t('opdLink'), ['labelAdditionalLink'], opdSettings), ['translations', 'labelAdditionalLink', language], opdSettings);
|
|
90
90
|
const linkAdditional = path(['data', 'translations', 'linkAdditional', pdaLanguage], opdSettings) || pathOr(path(['linkAdditional'], opdSettings), ['translations', 'linkAdditional', language], opdSettings);
|
|
91
91
|
const opdTextAdditional = path(['data', 'translations', 'textAdditional', pdaLanguage], opdSettings) || pathOr(path(['textAdditional'], opdSettings), ['translations', 'textAdditional', language], opdSettings);
|
|
@@ -101,9 +101,7 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
101
101
|
{ opdType === 'modal' ?
|
|
102
102
|
<span {...modalLinkProps}>{ linkText }</span> :
|
|
103
103
|
<a href={`//${link}`} target='_blank'>{ linkText }</a>
|
|
104
|
-
}
|
|
105
|
-
{ ' ' }
|
|
106
|
-
{ path(['data', 'translations', 'labelEnd', pdaLanguage], opdSettings)
|
|
104
|
+
}{ path(['data', 'translations', 'labelEnd', pdaLanguage], opdSettings)
|
|
107
105
|
|| pathOr(pathOr(opdTypeAdditional ? '' : '.', ['labelEnd'], opdSettings), ['translations', 'labelEnd', language], opdSettings) }
|
|
108
106
|
{ opdTypeAdditional ? (
|
|
109
107
|
<Fragment>
|
|
@@ -112,9 +110,7 @@ class PersonalDataAgreementComponent extends Component {
|
|
|
112
110
|
{ opdTypeAdditional === 'modal' ?
|
|
113
111
|
<span {...modalLinkAdditionalProps}>{ linkTextAdditional }</span> :
|
|
114
112
|
<a href={`//${linkAdditional}`} target='_blank'>{ linkTextAdditional }</a>
|
|
115
|
-
}
|
|
116
|
-
{ ' ' }
|
|
117
|
-
{ path(['data', 'translations', 'labelAdditionalEnd', pdaLanguage], opdSettings)
|
|
113
|
+
}{ path(['data', 'translations', 'labelAdditionalEnd', pdaLanguage], opdSettings)
|
|
118
114
|
|| pathOr(pathOr('.', ['labelAdditionalEnd'], opdSettings), ['translations', 'labelAdditionalEnd', language], opdSettings) }
|
|
119
115
|
|
|
120
116
|
</Fragment>
|