ui-kit-ck-consultant 0.5.182 → 0.5.185
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.css +15 -7
- package/dist/index.js +36 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +36 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -3679,7 +3679,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3679
3679
|
var _proto = Cookie.prototype;
|
3680
3680
|
|
3681
3681
|
_proto.componentDidMount = function componentDidMount() {
|
3682
|
-
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !==
|
3682
|
+
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3683
3683
|
this.setState({
|
3684
3684
|
show: true
|
3685
3685
|
});
|
@@ -3692,7 +3692,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3692
3692
|
|
3693
3693
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3694
3694
|
if (prevProps.force !== this.props.force || prevProps.name !== this.props.name) {
|
3695
|
-
if (this.cookies.get(this.props.name + "-cookies") !==
|
3695
|
+
if (this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3696
3696
|
this.setState({
|
3697
3697
|
show: true
|
3698
3698
|
});
|
@@ -3708,7 +3708,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3708
3708
|
var _this2 = this;
|
3709
3709
|
|
3710
3710
|
return /*#__PURE__*/React.createElement(Modal, {
|
3711
|
-
title: this.props.title ||
|
3711
|
+
title: this.props.title || 'Données personnelles & utilisation des cookies',
|
3712
3712
|
show: this.state.show,
|
3713
3713
|
onClose: this.props.onClose,
|
3714
3714
|
disableClose: true,
|
@@ -3716,8 +3716,8 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3716
3716
|
}, this.props.message ? this.props.message : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("p", null, "Nous utilisons des cookies afin d\u2019am\xE9liorer votre exp\xE9rience sur le site. Ces cookies servent \xE0 personnaliser le contenu du site, en mesurer la fr\xE9quentation et les performances."), /*#__PURE__*/React.createElement("p", null, "En cliquant sur le bouton \"Accepter\" vous acceptez tous les cookies. Vous pouvez aussi en savoir plus \xE0 tout moment via le lien \"RGPD & Cookies\" accessible dans le pied de page.")), this.props.infos ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("a", {
|
3717
3717
|
href: "/",
|
3718
3718
|
style: {
|
3719
|
-
textAlign:
|
3720
|
-
margin:
|
3719
|
+
textAlign: 'left',
|
3720
|
+
margin: '16px 0'
|
3721
3721
|
},
|
3722
3722
|
onClick: function onClick(event) {
|
3723
3723
|
event.preventDefault();
|
@@ -3728,52 +3728,68 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3728
3728
|
});
|
3729
3729
|
});
|
3730
3730
|
}
|
3731
|
-
}, "En savoir plus
|
3731
|
+
}, "En savoir plus", ' ', /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
3732
3732
|
icon: this.state.showInfo ? faCaretUp : faCaretDown
|
3733
3733
|
})), this.state.showInfo ? /*#__PURE__*/React.createElement("div", {
|
3734
3734
|
style: {
|
3735
|
-
margin:
|
3735
|
+
margin: '16px 0'
|
3736
3736
|
}
|
3737
|
-
}, this.props.infos) : null) : null, /*#__PURE__*/React.createElement(Row, {
|
3737
|
+
}, this.props.infos) : null) : null, /*#__PURE__*/React.createElement("b", null, "Nos cookies ont pour seul et unique but de faire fonctionner le service"), /*#__PURE__*/React.createElement(Row, {
|
3738
3738
|
style: {
|
3739
|
-
margin:
|
3739
|
+
margin: '16px 0'
|
3740
3740
|
}
|
3741
3741
|
}, /*#__PURE__*/React.createElement(Col, {
|
3742
3742
|
xs: 12,
|
3743
|
-
md: 6,
|
3743
|
+
md: this.props.isReject ? 6 : 12,
|
3744
3744
|
style: {
|
3745
|
-
margin:
|
3745
|
+
margin: '10px 0'
|
3746
3746
|
}
|
3747
3747
|
}, /*#__PURE__*/React.createElement(Button, {
|
3748
|
-
text: "Accepter",
|
3748
|
+
text: "Accepter les cookies n\xE9cessaires au fonctionnement du service",
|
3749
3749
|
onClick: function onClick() {
|
3750
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3751
|
-
|
3752
|
-
if (_this2.props.onAccept) _this2.props.onAccept();
|
3750
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '1', _this2.props.options);
|
3753
3751
|
|
3754
3752
|
_this2.setState({
|
3755
3753
|
show: false
|
3754
|
+
}, function () {
|
3755
|
+
if (_this2.props.onAccept) _this2.props.onAccept();
|
3756
3756
|
});
|
3757
3757
|
}
|
3758
|
-
})), /*#__PURE__*/React.createElement(Col, {
|
3758
|
+
})), this.props.isReject ? /*#__PURE__*/React.createElement(Col, {
|
3759
3759
|
xs: 12,
|
3760
3760
|
md: 6,
|
3761
3761
|
style: {
|
3762
|
-
margin:
|
3762
|
+
margin: '10px 0'
|
3763
3763
|
}
|
3764
3764
|
}, /*#__PURE__*/React.createElement(Button, {
|
3765
3765
|
text: "Refuser",
|
3766
3766
|
outline: true,
|
3767
3767
|
onClick: function onClick() {
|
3768
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3768
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '0', _this2.props.options);
|
3769
3769
|
|
3770
|
-
|
3770
|
+
_this2.setState({
|
3771
|
+
show: false
|
3772
|
+
}, function () {
|
3773
|
+
if (_this2.props.onReject) _this2.props.onReject();
|
3774
|
+
});
|
3775
|
+
}
|
3776
|
+
})) : null, /*#__PURE__*/React.createElement("a", {
|
3777
|
+
style: {
|
3778
|
+
color: 'gray',
|
3779
|
+
marginTop: '10px',
|
3780
|
+
marginLeft: 'auto',
|
3781
|
+
textDecoration: 'none'
|
3782
|
+
},
|
3783
|
+
onClick: function onClick() {
|
3784
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '2', _this2.props.options);
|
3771
3785
|
|
3772
3786
|
_this2.setState({
|
3773
3787
|
show: false
|
3788
|
+
}, function () {
|
3789
|
+
if (_this2.props.onContinue) _this2.props.onContinue();
|
3774
3790
|
});
|
3775
3791
|
}
|
3776
|
-
})))
|
3792
|
+
}, "Continuer sans accepter")));
|
3777
3793
|
};
|
3778
3794
|
|
3779
3795
|
return Cookie;
|