@pelcro/react-pelcro-js 2.6.0-beta.9 → 2.7.0-beta.1
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.cjs.js +258 -105
- package/dist/index.esm.js +258 -106
- package/dist/pelcro.css +4 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3628,12 +3628,14 @@ var cancel$1 = "Cancel your subscription online at anytime.";
|
|
|
3628
3628
|
var giftSent$1 = "Subscription gift has been sent to";
|
|
3629
3629
|
var successfully$1 = "successfully";
|
|
3630
3630
|
var entitlement$1 = "Some of the content on this page is available with one or more of our plans. <1>Subscribe</1> now to get full page access.";
|
|
3631
|
+
var recaptcha$1 = "This site is protected by reCAPTCHA and the Google <1>Privacy Policy</1> and <3>Terms of Service</3> apply.";
|
|
3631
3632
|
var messages_en = {
|
|
3632
3633
|
youAreSafe: youAreSafe$1,
|
|
3633
3634
|
cancel: cancel$1,
|
|
3634
3635
|
giftSent: giftSent$1,
|
|
3635
3636
|
successfully: successfully$1,
|
|
3636
|
-
entitlement: entitlement$1
|
|
3637
|
+
entitlement: entitlement$1,
|
|
3638
|
+
recaptcha: recaptcha$1
|
|
3637
3639
|
};
|
|
3638
3640
|
|
|
3639
3641
|
var youAreSafe = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -3641,12 +3643,14 @@ var cancel = "Annuler votre abonnement en ligne à tout moment.";
|
|
|
3641
3643
|
var giftSent = "Le cadeau d’abonnement a été envoyé à";
|
|
3642
3644
|
var successfully = "avec succès.";
|
|
3643
3645
|
var entitlement = "Une partie du contenu de cette page est disponible sous un ou plusieurs de nos plans. <1>Abonnez-vous</1> à l'un de nos plans disponibles pour accéder à plus de contenu";
|
|
3646
|
+
var recaptcha = "Ce site est protégé par reCAPTCHA - les <1>règles de confidentialité</1> Google ainsi que les <3>conditions d'utilisation</3> s'appliquent.";
|
|
3644
3647
|
var messages_fr = {
|
|
3645
3648
|
youAreSafe: youAreSafe,
|
|
3646
3649
|
cancel: cancel,
|
|
3647
3650
|
giftSent: giftSent,
|
|
3648
3651
|
successfully: successfully,
|
|
3649
|
-
entitlement: entitlement
|
|
3652
|
+
entitlement: entitlement,
|
|
3653
|
+
recaptcha: recaptcha
|
|
3650
3654
|
};
|
|
3651
3655
|
|
|
3652
3656
|
var labels$f = {
|
|
@@ -6895,8 +6899,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
6895
6899
|
|
|
6896
6900
|
let e={data:""},t=t=>"undefined"!=typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/g,a=/\/\*[^]*?\*\/|\s\s+|\n/g,n=(e,t)=>{let r,l="",a="",o="";for(let c in e){let s=e[c];"object"==typeof s?(r=t?t.replace(/([^,])+/g,e=>c.replace(/([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):c,a+="@"==c[0]?"f"==c[1]?n(s,c):c+"{"+n(s,"k"==c[1]?"":t)+"}":n(s,r)):"@"==c[0]&&"i"==c[1]?l=c+" "+s+";":(c=c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=n.p?n.p(c,s):c+":"+s+";");}return o[0]?(r=t?t+"{"+o+"}":o,l+r+a):l+a},o={},c=e=>{let t="";for(let r in e)t+=r+("object"==typeof e[r]?c(e[r]):e[r]);return t},s=(e,t,r,s,i)=>{let p="object"==typeof e?c(e):e,u=o[p]||(o[p]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(p));if(!o[u]){let t="object"==typeof e?e:(e=>{let t,r=[{}];for(;t=l.exec(e.replace(a,""));)t[4]&&r.shift(),t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):t[4]||(r[0][t[1]]=t[2]);return r[0]})(e);o[u]=n(i?{["@keyframes "+u]:t}:t,r?"":"."+u);}return ((e,t,r)=>{-1==t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(o[u],t,s),u},i=(e,t,r)=>e.reduce((e,l,a)=>{let o=t[a];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":n(e,""):e;}return e+l+(null==o?"":o)},"");function p(e){let r=this||{},l=e.call?e(r.p):e;return s(l.unshift?l.raw?i(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>t?Object.assign(e,t.call?t(r.p):t):e,{}):l,t(r.target),r.g,r.o,r.k)}let u,f,d;p.bind({g:1});let b=p.bind({k:1});function h(e,t,r,l){n.p=t,u=e,f=r,d=l;}function y(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=p.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=c.as||e;return d&&i[0]&&d(c),u(i,c)}return t?t(a):a}}
|
|
6897
6901
|
|
|
6898
|
-
function _extends$
|
|
6899
|
-
_extends$
|
|
6902
|
+
function _extends$w() {
|
|
6903
|
+
_extends$w = Object.assign || function (target) {
|
|
6900
6904
|
for (var i = 1; i < arguments.length; i++) {
|
|
6901
6905
|
var source = arguments[i];
|
|
6902
6906
|
|
|
@@ -6910,7 +6914,7 @@ function _extends$v() {
|
|
|
6910
6914
|
return target;
|
|
6911
6915
|
};
|
|
6912
6916
|
|
|
6913
|
-
return _extends$
|
|
6917
|
+
return _extends$w.apply(this, arguments);
|
|
6914
6918
|
}
|
|
6915
6919
|
|
|
6916
6920
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7000,7 +7004,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7000
7004
|
var reducer = function reducer(state, action) {
|
|
7001
7005
|
switch (action.type) {
|
|
7002
7006
|
case ActionType.ADD_TOAST:
|
|
7003
|
-
return _extends$
|
|
7007
|
+
return _extends$w({}, state, {
|
|
7004
7008
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7005
7009
|
});
|
|
7006
7010
|
|
|
@@ -7010,9 +7014,9 @@ var reducer = function reducer(state, action) {
|
|
|
7010
7014
|
clearFromRemoveQueue(action.toast.id);
|
|
7011
7015
|
}
|
|
7012
7016
|
|
|
7013
|
-
return _extends$
|
|
7017
|
+
return _extends$w({}, state, {
|
|
7014
7018
|
toasts: state.toasts.map(function (t) {
|
|
7015
|
-
return t.id === action.toast.id ? _extends$
|
|
7019
|
+
return t.id === action.toast.id ? _extends$w({}, t, action.toast) : t;
|
|
7016
7020
|
})
|
|
7017
7021
|
});
|
|
7018
7022
|
|
|
@@ -7039,9 +7043,9 @@ var reducer = function reducer(state, action) {
|
|
|
7039
7043
|
});
|
|
7040
7044
|
}
|
|
7041
7045
|
|
|
7042
|
-
return _extends$
|
|
7046
|
+
return _extends$w({}, state, {
|
|
7043
7047
|
toasts: state.toasts.map(function (t) {
|
|
7044
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7048
|
+
return t.id === toastId || toastId === undefined ? _extends$w({}, t, {
|
|
7045
7049
|
visible: false
|
|
7046
7050
|
}) : t;
|
|
7047
7051
|
})
|
|
@@ -7049,28 +7053,28 @@ var reducer = function reducer(state, action) {
|
|
|
7049
7053
|
|
|
7050
7054
|
case ActionType.REMOVE_TOAST:
|
|
7051
7055
|
if (action.toastId === undefined) {
|
|
7052
|
-
return _extends$
|
|
7056
|
+
return _extends$w({}, state, {
|
|
7053
7057
|
toasts: []
|
|
7054
7058
|
});
|
|
7055
7059
|
}
|
|
7056
7060
|
|
|
7057
|
-
return _extends$
|
|
7061
|
+
return _extends$w({}, state, {
|
|
7058
7062
|
toasts: state.toasts.filter(function (t) {
|
|
7059
7063
|
return t.id !== action.toastId;
|
|
7060
7064
|
})
|
|
7061
7065
|
});
|
|
7062
7066
|
|
|
7063
7067
|
case ActionType.START_PAUSE:
|
|
7064
|
-
return _extends$
|
|
7068
|
+
return _extends$w({}, state, {
|
|
7065
7069
|
pausedAt: action.time
|
|
7066
7070
|
});
|
|
7067
7071
|
|
|
7068
7072
|
case ActionType.END_PAUSE:
|
|
7069
7073
|
var diff = action.time - (state.pausedAt || 0);
|
|
7070
|
-
return _extends$
|
|
7074
|
+
return _extends$w({}, state, {
|
|
7071
7075
|
pausedAt: undefined,
|
|
7072
7076
|
toasts: state.toasts.map(function (t) {
|
|
7073
|
-
return _extends$
|
|
7077
|
+
return _extends$w({}, t, {
|
|
7074
7078
|
pauseDuration: t.pauseDuration + diff
|
|
7075
7079
|
});
|
|
7076
7080
|
})
|
|
@@ -7117,12 +7121,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7117
7121
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7118
7122
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7119
7123
|
|
|
7120
|
-
return _extends$
|
|
7124
|
+
return _extends$w({}, toastOptions, toastOptions[t.type], t, {
|
|
7121
7125
|
duration: t.duration || ((_toastOptions$t$type = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type.duration) || ((_toastOptions = toastOptions) == null ? void 0 : _toastOptions.duration) || defaultTimeouts[t.type],
|
|
7122
|
-
style: _extends$
|
|
7126
|
+
style: _extends$w({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7123
7127
|
});
|
|
7124
7128
|
});
|
|
7125
|
-
return _extends$
|
|
7129
|
+
return _extends$w({}, state, {
|
|
7126
7130
|
toasts: mergedToasts
|
|
7127
7131
|
});
|
|
7128
7132
|
};
|
|
@@ -7132,7 +7136,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7132
7136
|
type = 'blank';
|
|
7133
7137
|
}
|
|
7134
7138
|
|
|
7135
|
-
return _extends$
|
|
7139
|
+
return _extends$w({
|
|
7136
7140
|
createdAt: Date.now(),
|
|
7137
7141
|
visible: true,
|
|
7138
7142
|
type: type,
|
|
@@ -7182,14 +7186,14 @@ toast.remove = function (toastId) {
|
|
|
7182
7186
|
};
|
|
7183
7187
|
|
|
7184
7188
|
toast.promise = function (promise, msgs, opts) {
|
|
7185
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7189
|
+
var id = toast.loading(msgs.loading, _extends$w({}, opts, opts == null ? void 0 : opts.loading));
|
|
7186
7190
|
promise.then(function (p) {
|
|
7187
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7191
|
+
toast.success(resolveValue(msgs.success, p), _extends$w({
|
|
7188
7192
|
id: id
|
|
7189
7193
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7190
7194
|
return p;
|
|
7191
7195
|
})["catch"](function (e) {
|
|
7192
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7196
|
+
toast.error(resolveValue(msgs.error, e), _extends$w({
|
|
7193
7197
|
id: id
|
|
7194
7198
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7195
7199
|
});
|
|
@@ -7528,7 +7532,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7528
7532
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7529
7533
|
return createElement(ToastBarBase, {
|
|
7530
7534
|
className: toast.className,
|
|
7531
|
-
style: _extends$
|
|
7535
|
+
style: _extends$w({}, animationStyle, style, toast.style)
|
|
7532
7536
|
}, typeof children === 'function' ? children({
|
|
7533
7537
|
icon: icon,
|
|
7534
7538
|
message: message
|
|
@@ -7558,7 +7562,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7558
7562
|
} : position.includes('right') ? {
|
|
7559
7563
|
justifyContent: 'flex-end'
|
|
7560
7564
|
} : {};
|
|
7561
|
-
return _extends$
|
|
7565
|
+
return _extends$w({
|
|
7562
7566
|
left: 0,
|
|
7563
7567
|
right: 0,
|
|
7564
7568
|
display: 'flex',
|
|
@@ -7585,7 +7589,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7585
7589
|
handlers = _useToaster.handlers;
|
|
7586
7590
|
|
|
7587
7591
|
return createElement("div", {
|
|
7588
|
-
style: _extends$
|
|
7592
|
+
style: _extends$w({
|
|
7589
7593
|
position: 'fixed',
|
|
7590
7594
|
zIndex: 9999,
|
|
7591
7595
|
top: DEFAULT_OFFSET,
|
|
@@ -7620,82 +7624,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7620
7624
|
}));
|
|
7621
7625
|
};
|
|
7622
7626
|
|
|
7623
|
-
var _path$
|
|
7627
|
+
var _path$t;
|
|
7624
7628
|
|
|
7625
|
-
function _extends$
|
|
7629
|
+
function _extends$v() { _extends$v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
7626
7630
|
|
|
7627
7631
|
function SvgCheckSolid(props) {
|
|
7628
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7632
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7629
7633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7630
7634
|
className: "h-5 w-5",
|
|
7631
7635
|
viewBox: "0 0 20 20",
|
|
7632
7636
|
fill: "currentColor"
|
|
7633
|
-
}, props), _path$
|
|
7637
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7634
7638
|
fillRule: "evenodd",
|
|
7635
7639
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
7636
7640
|
clipRule: "evenodd"
|
|
7637
7641
|
})));
|
|
7638
7642
|
}
|
|
7639
7643
|
|
|
7640
|
-
var _path$
|
|
7644
|
+
var _path$s;
|
|
7641
7645
|
|
|
7642
|
-
function _extends$
|
|
7646
|
+
function _extends$u() { _extends$u = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
7643
7647
|
|
|
7644
7648
|
function SvgXIcon(props) {
|
|
7645
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7649
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
7646
7650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7647
7651
|
viewBox: "0 0 20 20",
|
|
7648
7652
|
fill: "currentColor"
|
|
7649
|
-
}, props), _path$
|
|
7653
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
7650
7654
|
fill: "evenodd",
|
|
7651
7655
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
7652
7656
|
clipRule: "evenodd"
|
|
7653
7657
|
})));
|
|
7654
7658
|
}
|
|
7655
7659
|
|
|
7656
|
-
var _path$
|
|
7660
|
+
var _path$r;
|
|
7657
7661
|
|
|
7658
|
-
function _extends$
|
|
7662
|
+
function _extends$t() { _extends$t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
7659
7663
|
|
|
7660
7664
|
function SvgXIconSolid(props) {
|
|
7661
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7665
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
7662
7666
|
className: "plc-w-4 plc-h-4",
|
|
7663
7667
|
fill: "currentColor",
|
|
7664
7668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7665
7669
|
viewBox: "0 0 100 100"
|
|
7666
|
-
}, props), _path$
|
|
7670
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
7667
7671
|
d: "M94.842 48.408c0 24.852-20.148 44.999-45.002 44.999-24.851 0-44.997-20.146-44.997-44.999 0-24.854 20.146-45 44.997-45 24.853 0 45.002 20.146 45.002 45zM71.073 64.841L54.73 48.497l16.344-16.344-4.979-4.979-16.343 16.345-16.343-16.344-4.799 4.799 16.344 16.344L28.61 64.661l4.979 4.978 16.344-16.344 16.343 16.344 4.797-4.798z"
|
|
7668
7672
|
})));
|
|
7669
7673
|
}
|
|
7670
7674
|
|
|
7671
|
-
var _path$
|
|
7675
|
+
var _path$q;
|
|
7672
7676
|
|
|
7673
|
-
function _extends$
|
|
7677
|
+
function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
7674
7678
|
|
|
7675
7679
|
function SvgExclamation(props) {
|
|
7676
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7680
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
7677
7681
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7678
7682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7679
7683
|
viewBox: "0 0 20 20",
|
|
7680
7684
|
fill: "currentColor"
|
|
7681
|
-
}, props), _path$
|
|
7685
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
7682
7686
|
fillRule: "evenodd",
|
|
7683
7687
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
7684
7688
|
clipRule: "evenodd"
|
|
7685
7689
|
})));
|
|
7686
7690
|
}
|
|
7687
7691
|
|
|
7688
|
-
var _path$
|
|
7692
|
+
var _path$p, _path2$3;
|
|
7689
7693
|
|
|
7690
|
-
function _extends$
|
|
7694
|
+
function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
7691
7695
|
|
|
7692
7696
|
function SvgSpinner(props) {
|
|
7693
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7697
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
7694
7698
|
className: "plc-animate-spin",
|
|
7695
7699
|
viewBox: "0 0 24 24",
|
|
7696
7700
|
fill: "currentColor",
|
|
7697
7701
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7698
|
-
}, props), _path$
|
|
7702
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
7699
7703
|
opacity: 0.2,
|
|
7700
7704
|
fill: "evenodd",
|
|
7701
7705
|
clipRule: "evenodd",
|
|
@@ -8447,6 +8451,7 @@ const optionsController = options => {
|
|
|
8447
8451
|
|
|
8448
8452
|
const optionsMethodsDict = {
|
|
8449
8453
|
loadPaymentSDKs: loadPaymentSDKs,
|
|
8454
|
+
loadAuth0SDK: loadAuth0SDK,
|
|
8450
8455
|
enableURLTriggers: initViewFromURL,
|
|
8451
8456
|
enableTheme: applyPelcroTheme,
|
|
8452
8457
|
enablePaywalls: initPaywalls,
|
|
@@ -8512,6 +8517,13 @@ const loadPaymentSDKs = () => {
|
|
|
8512
8517
|
window.Pelcro.helpers.loadSDK("https://js.braintreegateway.com/web/3.69.0/js/paypal-checkout.min.js", "braintree-paypal-sdk");
|
|
8513
8518
|
}
|
|
8514
8519
|
};
|
|
8520
|
+
const loadAuth0SDK = () => {
|
|
8521
|
+
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
8522
|
+
|
|
8523
|
+
if (auth0Enabled) {
|
|
8524
|
+
window.Pelcro.helpers.loadSDK("https://cdn.auth0.com/js/auth0/9.18/auth0.min.js", "auth0-sdk");
|
|
8525
|
+
}
|
|
8526
|
+
};
|
|
8515
8527
|
const initSecuritySdk = () => {
|
|
8516
8528
|
const {
|
|
8517
8529
|
whenSiteReady
|
|
@@ -8808,6 +8820,7 @@ const initCartFromUrl = () => {
|
|
|
8808
8820
|
|
|
8809
8821
|
const defaultOptions = {
|
|
8810
8822
|
loadPaymentSDKs: true,
|
|
8823
|
+
loadAuth0SDK: true,
|
|
8811
8824
|
enableURLTriggers: true,
|
|
8812
8825
|
enableTheme: true,
|
|
8813
8826
|
enablePaywalls: true,
|
|
@@ -9633,16 +9646,16 @@ const LoginPassword = props => /*#__PURE__*/React__default.createElement(Passwor
|
|
|
9633
9646
|
store: store$f
|
|
9634
9647
|
}, props));
|
|
9635
9648
|
|
|
9636
|
-
var _path$
|
|
9649
|
+
var _path$o;
|
|
9637
9650
|
|
|
9638
|
-
function _extends$
|
|
9651
|
+
function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
9639
9652
|
|
|
9640
9653
|
function SvgCheck(props) {
|
|
9641
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9654
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
9642
9655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9643
9656
|
fill: "currentColor",
|
|
9644
9657
|
viewBox: "0 0 20 20"
|
|
9645
|
-
}, props), _path$
|
|
9658
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
9646
9659
|
fillRule: "evenodd",
|
|
9647
9660
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
9648
9661
|
clipRule: "evenodd"
|
|
@@ -9753,7 +9766,7 @@ const RegisterContainer = ({
|
|
|
9753
9766
|
selectFields
|
|
9754
9767
|
} = filteredData;
|
|
9755
9768
|
|
|
9756
|
-
if (!hasSecurityTokenEnabled()) {
|
|
9769
|
+
if (!hasSecurityTokenEnabled$1()) {
|
|
9757
9770
|
sendRegisterRequest();
|
|
9758
9771
|
return;
|
|
9759
9772
|
}
|
|
@@ -9954,20 +9967,20 @@ const RegisterContainer = ({
|
|
|
9954
9967
|
* @return {boolean}
|
|
9955
9968
|
*/
|
|
9956
9969
|
|
|
9957
|
-
function hasSecurityTokenEnabled() {
|
|
9970
|
+
function hasSecurityTokenEnabled$1() {
|
|
9958
9971
|
const hasSecuritySdkLoaded = Boolean(window.grecaptcha);
|
|
9959
9972
|
return hasSecuritySdkLoaded;
|
|
9960
9973
|
}
|
|
9961
9974
|
|
|
9962
|
-
var _path$
|
|
9975
|
+
var _path$n;
|
|
9963
9976
|
|
|
9964
|
-
function _extends$
|
|
9977
|
+
function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
9965
9978
|
|
|
9966
9979
|
function SvgFacebookLogo(props) {
|
|
9967
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9980
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
9968
9981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9969
9982
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
9970
|
-
}, props), _path$
|
|
9983
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
9971
9984
|
d: "M158.232 219.912v-94.461h31.707l4.747-36.813h-36.454V65.134c0-10.658 2.96-17.922 18.245-17.922l19.494-.009V14.278c-3.373-.447-14.944-1.449-28.406-1.449-28.106 0-47.348 17.155-47.348 48.661v27.149H88.428v36.813h31.788v94.461l38.016-.001z",
|
|
9972
9985
|
fill: "#3c5a9a"
|
|
9973
9986
|
})));
|
|
@@ -10040,15 +10053,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10040
10053
|
unwrapExports(googleLogin);
|
|
10041
10054
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10042
10055
|
|
|
10043
|
-
var _path$
|
|
10056
|
+
var _path$m, _path2$2, _path3$1, _path4;
|
|
10044
10057
|
|
|
10045
|
-
function _extends$
|
|
10058
|
+
function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
10046
10059
|
|
|
10047
10060
|
function SvgGoogleLogo(props) {
|
|
10048
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10061
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
10049
10062
|
viewBox: "0 0 24 24",
|
|
10050
10063
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10051
|
-
}, props), _path$
|
|
10064
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
10052
10065
|
fill: "#4285F4",
|
|
10053
10066
|
d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"
|
|
10054
10067
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10125,17 +10138,123 @@ const GoogleLoginButton = ({
|
|
|
10125
10138
|
}) : null;
|
|
10126
10139
|
};
|
|
10127
10140
|
|
|
10141
|
+
var _path$l;
|
|
10142
|
+
|
|
10143
|
+
function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
|
|
10144
|
+
|
|
10145
|
+
function SvgAuth0Logo(props) {
|
|
10146
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
10147
|
+
viewBox: "0 0 256 285",
|
|
10148
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10149
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
10150
|
+
d: "M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077 28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0zM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51-74.77-53.078zm46.208 142.588l74.77 52.97 74.77-52.97-74.77-53.847-74.77 53.847z"
|
|
10151
|
+
})));
|
|
10152
|
+
}
|
|
10153
|
+
|
|
10154
|
+
const Auth0LoginButton = ({
|
|
10155
|
+
label = "Auth0",
|
|
10156
|
+
className = "",
|
|
10157
|
+
labelClassName = "",
|
|
10158
|
+
iconClassName = ""
|
|
10159
|
+
}) => {
|
|
10160
|
+
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
10161
|
+
const auth0InstanceRef = React__default.useRef(null);
|
|
10162
|
+
React__default.useEffect(() => {
|
|
10163
|
+
if (auth0Enabled) {
|
|
10164
|
+
auth0InstanceRef.current = new window.auth0.WebAuth({
|
|
10165
|
+
domain: window.Pelcro.site.read().auth0_base_url,
|
|
10166
|
+
clientID: window.Pelcro.site.read().auth0_client_id
|
|
10167
|
+
});
|
|
10168
|
+
}
|
|
10169
|
+
}, []);
|
|
10170
|
+
const {
|
|
10171
|
+
dispatch: loginDispatch
|
|
10172
|
+
} = useContext(store$f);
|
|
10173
|
+
const {
|
|
10174
|
+
dispatch: registerDispatch
|
|
10175
|
+
} = useContext(store$e);
|
|
10176
|
+
|
|
10177
|
+
function handleClick() {
|
|
10178
|
+
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
10179
|
+
|
|
10180
|
+
(_auth0InstanceRef$cur = auth0InstanceRef.current) === null || _auth0InstanceRef$cur === void 0 ? void 0 : (_auth0InstanceRef$cur2 = _auth0InstanceRef$cur.popup) === null || _auth0InstanceRef$cur2 === void 0 ? void 0 : (_auth0InstanceRef$cur3 = _auth0InstanceRef$cur2.authorize) === null || _auth0InstanceRef$cur3 === void 0 ? void 0 : _auth0InstanceRef$cur3.call(_auth0InstanceRef$cur2, {
|
|
10181
|
+
responseType: "token id_token",
|
|
10182
|
+
owp: true // close popup when finished
|
|
10183
|
+
|
|
10184
|
+
}, function (error, authResult) {
|
|
10185
|
+
if (error) {
|
|
10186
|
+
return onFailure(error);
|
|
10187
|
+
}
|
|
10188
|
+
|
|
10189
|
+
onSuccess(authResult);
|
|
10190
|
+
});
|
|
10191
|
+
}
|
|
10192
|
+
|
|
10193
|
+
const onSuccess = authResult => {
|
|
10194
|
+
var _auth0InstanceRef$cur4, _auth0InstanceRef$cur5, _auth0InstanceRef$cur6;
|
|
10195
|
+
|
|
10196
|
+
const {
|
|
10197
|
+
accessToken
|
|
10198
|
+
} = authResult;
|
|
10199
|
+
(_auth0InstanceRef$cur4 = auth0InstanceRef.current) === null || _auth0InstanceRef$cur4 === void 0 ? void 0 : (_auth0InstanceRef$cur5 = _auth0InstanceRef$cur4.client) === null || _auth0InstanceRef$cur5 === void 0 ? void 0 : (_auth0InstanceRef$cur6 = _auth0InstanceRef$cur5.userInfo) === null || _auth0InstanceRef$cur6 === void 0 ? void 0 : _auth0InstanceRef$cur6.call(_auth0InstanceRef$cur5, accessToken, (error, user) => {
|
|
10200
|
+
if (error) {
|
|
10201
|
+
return onFailure(error);
|
|
10202
|
+
}
|
|
10203
|
+
|
|
10204
|
+
const {
|
|
10205
|
+
email,
|
|
10206
|
+
nickname
|
|
10207
|
+
} = user;
|
|
10208
|
+
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
10209
|
+
type: HANDLE_SOCIAL_LOGIN,
|
|
10210
|
+
payload: {
|
|
10211
|
+
idpName: "auth0",
|
|
10212
|
+
idpToken: accessToken,
|
|
10213
|
+
firstName: nickname,
|
|
10214
|
+
email
|
|
10215
|
+
}
|
|
10216
|
+
});
|
|
10217
|
+
registerDispatch === null || registerDispatch === void 0 ? void 0 : registerDispatch({
|
|
10218
|
+
type: HANDLE_SOCIAL_LOGIN,
|
|
10219
|
+
payload: {
|
|
10220
|
+
idpName: "auth0",
|
|
10221
|
+
idpToken: accessToken,
|
|
10222
|
+
firstName: nickname,
|
|
10223
|
+
email
|
|
10224
|
+
}
|
|
10225
|
+
});
|
|
10226
|
+
});
|
|
10227
|
+
};
|
|
10228
|
+
|
|
10229
|
+
const onFailure = error => {
|
|
10230
|
+
console.error(error);
|
|
10231
|
+
};
|
|
10232
|
+
|
|
10233
|
+
if (auth0Enabled) {
|
|
10234
|
+
return /*#__PURE__*/React__default.createElement("button", {
|
|
10235
|
+
onClick: handleClick,
|
|
10236
|
+
className: `plc-flex plc-items-center plc-justify-center plc-w-full plc-p-3 plc-space-x-3 plc-text-gray-700 plc-border plc-border-gray-200 plc-rounded-3xl hover:plc-bg-gray-200 pelcro-auth0-login ${className}`
|
|
10237
|
+
}, /*#__PURE__*/React__default.createElement(SvgAuth0Logo, {
|
|
10238
|
+
className: `plc-w-6 plc-h-auto pelcro-auth0-login-icon" ${iconClassName}`
|
|
10239
|
+
}), /*#__PURE__*/React__default.createElement("p", {
|
|
10240
|
+
className: `pelcro-auth0-login-label ${labelClassName}`
|
|
10241
|
+
}, label));
|
|
10242
|
+
}
|
|
10243
|
+
|
|
10244
|
+
return null;
|
|
10245
|
+
};
|
|
10246
|
+
|
|
10128
10247
|
/**
|
|
10129
10248
|
*
|
|
10130
10249
|
*/
|
|
10131
10250
|
|
|
10132
10251
|
function LoginView(props) {
|
|
10133
|
-
var _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
10252
|
+
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3;
|
|
10134
10253
|
|
|
10135
10254
|
const {
|
|
10136
10255
|
t
|
|
10137
10256
|
} = useTranslation("login");
|
|
10138
|
-
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id);
|
|
10257
|
+
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
|
|
10139
10258
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10140
10259
|
id: "pelcro-login-view"
|
|
10141
10260
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10179,7 +10298,7 @@ function LoginView(props) {
|
|
|
10179
10298
|
className: "plc-w-full plc-border-gray-300"
|
|
10180
10299
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10181
10300
|
className: "plc-flex plc-justify-center plc-px-5 plc-mt-1 plc-space-x-3"
|
|
10182
|
-
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null))))));
|
|
10301
|
+
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10183
10302
|
}
|
|
10184
10303
|
|
|
10185
10304
|
var _path$k, _path2$1, _path3;
|
|
@@ -10538,7 +10657,7 @@ const RegisterLastName = props => /*#__PURE__*/React__default.createElement(Last
|
|
|
10538
10657
|
*/
|
|
10539
10658
|
|
|
10540
10659
|
function RegisterView(props) {
|
|
10541
|
-
var _product$paywall$regi, _product$paywall, _product$paywall$regi2, _product$paywall2, _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro, _window$Pelcro$uiSett;
|
|
10660
|
+
var _product$paywall$regi, _product$paywall, _product$paywall$regi2, _product$paywall2, _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3, _window$Pelcro, _window$Pelcro$uiSett;
|
|
10542
10661
|
|
|
10543
10662
|
const {
|
|
10544
10663
|
t
|
|
@@ -10548,7 +10667,7 @@ function RegisterView(props) {
|
|
|
10548
10667
|
} = usePelcro();
|
|
10549
10668
|
const title = (_product$paywall$regi = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.register_title) !== null && _product$paywall$regi !== void 0 ? _product$paywall$regi : t("title");
|
|
10550
10669
|
const subtitle = (_product$paywall$regi2 = product === null || product === void 0 ? void 0 : (_product$paywall2 = product.paywall) === null || _product$paywall2 === void 0 ? void 0 : _product$paywall2.register_subtitle) !== null && _product$paywall$regi2 !== void 0 ? _product$paywall$regi2 : t("subtitle");
|
|
10551
|
-
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id);
|
|
10670
|
+
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
|
|
10552
10671
|
const showNameFields = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableNameFieldsInRegister;
|
|
10553
10672
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10554
10673
|
id: "pelcro-register-view"
|
|
@@ -10584,7 +10703,17 @@ function RegisterView(props) {
|
|
|
10584
10703
|
className: "plc-w-full plc-mt-2",
|
|
10585
10704
|
id: "pelcro-submit",
|
|
10586
10705
|
name: t("messages.createAccount")
|
|
10587
|
-
}),
|
|
10706
|
+
}), hasSecurityTokenEnabled() && /*#__PURE__*/React__default.createElement("p", {
|
|
10707
|
+
className: "plc-text-sm plc-text-gray-500 plc-mt-1"
|
|
10708
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
10709
|
+
i18nKey: "messages:recaptcha"
|
|
10710
|
+
}, "This site is protected by reCAPTCHA and the Google", /*#__PURE__*/React__default.createElement(Link, {
|
|
10711
|
+
href: "https://policies.google.com/privacy",
|
|
10712
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10713
|
+
}, "Privacy Policy"), "and", /*#__PURE__*/React__default.createElement(Link, {
|
|
10714
|
+
href: "https://policies.google.com/terms",
|
|
10715
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10716
|
+
}, "Terms of Service"), "apply.")), socialLoginEnabled && /*#__PURE__*/React__default.createElement("div", {
|
|
10588
10717
|
className: "plc-mt-5"
|
|
10589
10718
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10590
10719
|
className: "plc-flex plc-items-center plc-justify-between "
|
|
@@ -10596,7 +10725,17 @@ function RegisterView(props) {
|
|
|
10596
10725
|
className: "plc-w-full plc-border-gray-300"
|
|
10597
10726
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10598
10727
|
className: "plc-flex plc-justify-center plc-px-5 plc-mt-1 plc-space-x-3"
|
|
10599
|
-
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null))))));
|
|
10728
|
+
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10729
|
+
}
|
|
10730
|
+
/**
|
|
10731
|
+
* Checks if the current site has security token enabled
|
|
10732
|
+
* @return {boolean}
|
|
10733
|
+
*/
|
|
10734
|
+
|
|
10735
|
+
function hasSecurityTokenEnabled() {
|
|
10736
|
+
var _window$Pelcro$site, _window$Pelcro$site$r4;
|
|
10737
|
+
|
|
10738
|
+
return Boolean((_window$Pelcro$site = window.Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : (_window$Pelcro$site$r4 = _window$Pelcro$site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.security_key);
|
|
10600
10739
|
}
|
|
10601
10740
|
|
|
10602
10741
|
function TextInput({
|
|
@@ -13661,7 +13800,7 @@ const CheckoutForm = () => {
|
|
|
13661
13800
|
className: "plc-h-4 plc-w-auto plc-mt-2",
|
|
13662
13801
|
src: "https://js.pelcro.com/ui/plugin/main/images/credit_cards.png"
|
|
13663
13802
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13664
|
-
className: "plc-flex plc-justify-between plc-my-2"
|
|
13803
|
+
className: "plc-flex plc-justify-between plc-my-2 plc-items-end"
|
|
13665
13804
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13666
13805
|
className: "plc-w-6/12 plc-pr-4"
|
|
13667
13806
|
}, /*#__PURE__*/React__default.createElement(PelcroCardExpiry, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -15420,13 +15559,11 @@ function Phone({
|
|
|
15420
15559
|
const {
|
|
15421
15560
|
dispatch,
|
|
15422
15561
|
state: {
|
|
15423
|
-
phone
|
|
15562
|
+
phone
|
|
15424
15563
|
}
|
|
15425
15564
|
} = useContext(store);
|
|
15426
|
-
const [value, setValue] = useState(stateValue);
|
|
15427
15565
|
|
|
15428
15566
|
const handleInputChange = value => {
|
|
15429
|
-
setValue(value);
|
|
15430
15567
|
dispatch({
|
|
15431
15568
|
type: SET_PHONE,
|
|
15432
15569
|
payload: value
|
|
@@ -15435,7 +15572,7 @@ function Phone({
|
|
|
15435
15572
|
|
|
15436
15573
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
15437
15574
|
type: "tel",
|
|
15438
|
-
value:
|
|
15575
|
+
value: phone,
|
|
15439
15576
|
onChange: e => handleInputChange(e.target.value)
|
|
15440
15577
|
}, otherProps));
|
|
15441
15578
|
}
|
|
@@ -20978,6 +21115,23 @@ function SvgPlus(props) {
|
|
|
20978
21115
|
})));
|
|
20979
21116
|
}
|
|
20980
21117
|
|
|
21118
|
+
var _path$9;
|
|
21119
|
+
|
|
21120
|
+
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
21121
|
+
|
|
21122
|
+
function SvgCheckMark(props) {
|
|
21123
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
21124
|
+
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21125
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21126
|
+
viewBox: "0 0 20 20",
|
|
21127
|
+
fill: "currentColor"
|
|
21128
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
21129
|
+
fillRule: "evenodd",
|
|
21130
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
21131
|
+
clipRule: "evenodd"
|
|
21132
|
+
})));
|
|
21133
|
+
}
|
|
21134
|
+
|
|
20981
21135
|
const SubscriptionsMenu = props => {
|
|
20982
21136
|
const {
|
|
20983
21137
|
t
|
|
@@ -21068,28 +21222,36 @@ const SubscriptionsItems = ({
|
|
|
21068
21222
|
setView("plan-select");
|
|
21069
21223
|
};
|
|
21070
21224
|
|
|
21071
|
-
const
|
|
21225
|
+
const getPhases = () => {
|
|
21072
21226
|
if (!sub.schedule) return [];
|
|
21073
21227
|
const currentPhaseStartDate = sub.schedule.current_phase.start_date;
|
|
21074
|
-
|
|
21228
|
+
const currentPhase = sub.schedule.phases.find(phase => {
|
|
21229
|
+
return phase.start_date === currentPhaseStartDate;
|
|
21230
|
+
});
|
|
21231
|
+
const futurePhases = sub.schedule.phases.filter(phase => {
|
|
21075
21232
|
return phase.start_date > currentPhaseStartDate;
|
|
21076
21233
|
});
|
|
21234
|
+
return [currentPhase, ...futurePhases];
|
|
21077
21235
|
};
|
|
21078
21236
|
|
|
21079
|
-
const
|
|
21237
|
+
const hasPhases = getPhases().length > 0;
|
|
21080
21238
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
21081
21239
|
key: sub.id
|
|
21082
21240
|
}, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
21083
|
-
onClick: () =>
|
|
21241
|
+
onClick: () => {
|
|
21242
|
+
if (hasPhases) toggleActiveMenu(sub.id);
|
|
21243
|
+
},
|
|
21084
21244
|
key: sub.id,
|
|
21085
21245
|
className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header ${isActive ? "plc-bg-gray-100" : "hover:plc-bg-gray-50"}`
|
|
21086
21246
|
}, /*#__PURE__*/React__default.createElement("td", {
|
|
21087
|
-
className: "plc-truncate
|
|
21247
|
+
className: "plc-truncate"
|
|
21088
21248
|
}, sub.plan.nickname && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
21089
21249
|
className: "plc-font-semibold plc-text-gray-500"
|
|
21090
21250
|
}, sub.plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
21091
21251
|
className: "plc-text-xs plc-text-gray-400"
|
|
21092
|
-
}, getFormattedPriceByLocal(sub.plan.amount, sub.plan.currency, getPageOrDefaultLanguage())))), /*#__PURE__*/React__default.createElement("td",
|
|
21252
|
+
}, getFormattedPriceByLocal(sub.plan.amount, sub.plan.currency, getPageOrDefaultLanguage())))), /*#__PURE__*/React__default.createElement("td", {
|
|
21253
|
+
className: "plc-py-2"
|
|
21254
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21093
21255
|
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getSubscriptionStatus(sub).bgColor} plc-uppercase ${getSubscriptionStatus(sub).textColor} plc-rounded-lg`
|
|
21094
21256
|
}, getSubscriptionStatus(sub).icon, getSubscriptionStatus(sub).title), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
21095
21257
|
className: "plc-text-xs plc-text-gray-500"
|
|
@@ -21118,31 +21280,38 @@ const SubscriptionsItems = ({
|
|
|
21118
21280
|
onClick: onRenewClick,
|
|
21119
21281
|
disabled: disableSubmit,
|
|
21120
21282
|
"data-key": sub.id
|
|
21121
|
-
}, t("labels.renew"))), /*#__PURE__*/React__default.createElement("td", null,
|
|
21283
|
+
}, t("labels.renew"))), /*#__PURE__*/React__default.createElement("td", null, hasPhases && /*#__PURE__*/React__default.createElement("div", {
|
|
21122
21284
|
className: `plc-flex plc-items-center plc-justify-center plc-transition-transform plc-ease-out plc-transform plc-rounded-full plc-w-7 plc-h-7 ${isActive ? "plc-flex plc-place-items-center plc-w-7 plc-h-7 plc-p-1 plc-bg-primary-400 plc-rounded-full" : "accordion-chevron"}`
|
|
21123
21285
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21124
21286
|
className: `plc-transition plc-ease-out ${isActive && "plc-text-white plc-transform plc-rotate-90"}`
|
|
21125
|
-
}, /*#__PURE__*/React__default.createElement(SvgChevronRight, null)))))), /*#__PURE__*/React__default.createElement("tbody", null, isActive && /*#__PURE__*/React__default.createElement(React__default.Fragment, null,
|
|
21287
|
+
}, /*#__PURE__*/React__default.createElement(SvgChevronRight, null)))))), /*#__PURE__*/React__default.createElement("tbody", null, isActive && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, getPhases().map((phase, i) => {
|
|
21126
21288
|
var _phase$plans;
|
|
21127
21289
|
|
|
21128
21290
|
const plan = (_phase$plans = phase.plans) === null || _phase$plans === void 0 ? void 0 : _phase$plans[0].plan;
|
|
21291
|
+
const isCurrentPhase = i === 0;
|
|
21129
21292
|
const startDate = new Date(Number(`${phase.start_date}000`));
|
|
21293
|
+
const endDate = new Date(Number(`${phase.end_date}000`));
|
|
21130
21294
|
const formattedStartDate = new Intl.DateTimeFormat("en-CA").format(startDate);
|
|
21295
|
+
const formattedEndDate = new Intl.DateTimeFormat("en-CA").format(endDate);
|
|
21131
21296
|
const startDateString = `${t("labels.startsOn")} ${formattedStartDate}`;
|
|
21297
|
+
const endDateString = `${t("labels.expiresOn")} ${formattedEndDate}`;
|
|
21132
21298
|
return /*#__PURE__*/React__default.createElement("tr", {
|
|
21133
21299
|
key: `${phase.start_date}-${phase.end_date}`,
|
|
21134
21300
|
className: "pelcro-sub-phase-row plc-w-full plc-align-middle"
|
|
21135
21301
|
}, /*#__PURE__*/React__default.createElement("td", {
|
|
21136
|
-
className: "plc-truncate
|
|
21302
|
+
className: "plc-truncate"
|
|
21137
21303
|
}, plan.nickname && /*#__PURE__*/React__default.createElement("span", {
|
|
21138
21304
|
className: "plc-font-semibold plc-text-gray-500"
|
|
21139
|
-
}, plan.nickname)), /*#__PURE__*/React__default.createElement("td",
|
|
21140
|
-
className: "plc-
|
|
21141
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21305
|
+
}, plan.nickname)), /*#__PURE__*/React__default.createElement("td", {
|
|
21306
|
+
className: "plc-py-2"
|
|
21307
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21308
|
+
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold plc-uppercase plc-rounded-lg ${isCurrentPhase ? "plc-text-green-700 plc-bg-green-100" : "plc-text-blue-700 plc-bg-blue-100"}
|
|
21309
|
+
`
|
|
21310
|
+
}, isCurrentPhase ? /*#__PURE__*/React__default.createElement(SvgCheckMark, null) : /*#__PURE__*/React__default.createElement(SvgCalendar, null), isCurrentPhase ? t("labels.status.active") : t("labels.status.scheduled")), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
21142
21311
|
className: "plc-text-xs plc-text-gray-500"
|
|
21143
21312
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21144
21313
|
className: "plc-inline-block plc-mt-1 plc-underline"
|
|
21145
|
-
}, startDateString))));
|
|
21314
|
+
}, isCurrentPhase ? endDateString : startDateString))));
|
|
21146
21315
|
}), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
21147
21316
|
colSpan: "4"
|
|
21148
21317
|
}, /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -21233,18 +21402,18 @@ Accordion.item = function AccordionItem({
|
|
|
21233
21402
|
}, content)) : null;
|
|
21234
21403
|
};
|
|
21235
21404
|
|
|
21236
|
-
var _path$
|
|
21405
|
+
var _path$8;
|
|
21237
21406
|
|
|
21238
|
-
function _extends$
|
|
21407
|
+
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
21239
21408
|
|
|
21240
21409
|
function SvgExit(props) {
|
|
21241
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21410
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
21242
21411
|
className: "plc-w-6 plc-h-6",
|
|
21243
21412
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21244
21413
|
fill: "none",
|
|
21245
21414
|
viewBox: "0 0 24 24",
|
|
21246
21415
|
stroke: "currentColor"
|
|
21247
|
-
}, props), _path$
|
|
21416
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
21248
21417
|
strokeLinecap: "round",
|
|
21249
21418
|
strokeLinejoin: "round",
|
|
21250
21419
|
strokeWidth: 2,
|
|
@@ -21252,23 +21421,6 @@ function SvgExit(props) {
|
|
|
21252
21421
|
})));
|
|
21253
21422
|
}
|
|
21254
21423
|
|
|
21255
|
-
var _path$8;
|
|
21256
|
-
|
|
21257
|
-
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
21258
|
-
|
|
21259
|
-
function SvgCheckMark(props) {
|
|
21260
|
-
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
21261
|
-
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21262
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21263
|
-
viewBox: "0 0 20 20",
|
|
21264
|
-
fill: "currentColor"
|
|
21265
|
-
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
21266
|
-
fillRule: "evenodd",
|
|
21267
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
21268
|
-
clipRule: "evenodd"
|
|
21269
|
-
})));
|
|
21270
|
-
}
|
|
21271
|
-
|
|
21272
21424
|
var _path$7;
|
|
21273
21425
|
|
|
21274
21426
|
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
@@ -23822,4 +23974,4 @@ function ProfilePicChangeModal({
|
|
|
23822
23974
|
}
|
|
23823
23975
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
23824
23976
|
|
|
23825
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, notify, unauthenticatedButtons, usePelcro };
|
|
23977
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, notify, unauthenticatedButtons, usePelcro };
|