@pelcro/react-pelcro-js 2.7.0-beta.3 → 2.7.0-beta.7
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 +339 -209
- package/dist/index.esm.js +339 -209
- package/dist/pelcro.css +13 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3764,7 +3764,7 @@ var gift$1 = {
|
|
|
3764
3764
|
lastName: "Last name",
|
|
3765
3765
|
email: "Email",
|
|
3766
3766
|
startDate: "Gift date",
|
|
3767
|
-
giftMessage: "Gift message (
|
|
3767
|
+
giftMessage: "Gift message (200 characters max)",
|
|
3768
3768
|
required: "required",
|
|
3769
3769
|
firstNamePlaceholder: "First name",
|
|
3770
3770
|
lastNamePlaceholder: "Last name",
|
|
@@ -3860,7 +3860,7 @@ var gift = {
|
|
|
3860
3860
|
lastName: "Nom de famille",
|
|
3861
3861
|
email: "Adresse courriel",
|
|
3862
3862
|
startDate: "Date de début",
|
|
3863
|
-
giftMessage: "Message du cadeau (
|
|
3863
|
+
giftMessage: "Message du cadeau (200 caractères max)",
|
|
3864
3864
|
required: "Champs obligatoires",
|
|
3865
3865
|
firstNamePlaceholder: "Prénom",
|
|
3866
3866
|
lastNamePlaceholder: "Nom de famille",
|
|
@@ -4346,6 +4346,7 @@ var labels$3 = {
|
|
|
4346
4346
|
account: "Account",
|
|
4347
4347
|
purchases: "Purchases",
|
|
4348
4348
|
subscriptions: "Subscriptions",
|
|
4349
|
+
donations: "Donations",
|
|
4349
4350
|
updatePaymentSource: "Update",
|
|
4350
4351
|
profile: "Profile",
|
|
4351
4352
|
updateProfile: "Edit profile",
|
|
@@ -4361,6 +4362,7 @@ var labels$3 = {
|
|
|
4361
4362
|
actions: "Actions",
|
|
4362
4363
|
expiresOn: "Ends",
|
|
4363
4364
|
startsOn: "Starts",
|
|
4365
|
+
startDate: "Start date",
|
|
4364
4366
|
renewsOn: "Renews",
|
|
4365
4367
|
canceledOn: "Canceled on",
|
|
4366
4368
|
recipient: "Recipient",
|
|
@@ -4425,6 +4427,7 @@ var labels$2 = {
|
|
|
4425
4427
|
account: "Compte",
|
|
4426
4428
|
purchases: "Achats",
|
|
4427
4429
|
subscriptions: "Abonnements",
|
|
4430
|
+
donations: "Des dons",
|
|
4428
4431
|
updatePaymentSource: "Mettre à jour la source de paiement",
|
|
4429
4432
|
profile: "Profil",
|
|
4430
4433
|
updateProfile: "Mettre à jour le profil",
|
|
@@ -4440,6 +4443,7 @@ var labels$2 = {
|
|
|
4440
4443
|
actions: "Actes",
|
|
4441
4444
|
expiresOn: "Expire le",
|
|
4442
4445
|
startsOn: "Débute le",
|
|
4446
|
+
startDate: "Date de début",
|
|
4443
4447
|
renewsOn: "Renouvelle le",
|
|
4444
4448
|
canceledOn: "Annulé le",
|
|
4445
4449
|
recipient: "Destinataire",
|
|
@@ -4496,7 +4500,11 @@ var labels$1 = {
|
|
|
4496
4500
|
},
|
|
4497
4501
|
selectProduct: "Select a product",
|
|
4498
4502
|
selectPlan: "Select a plan",
|
|
4499
|
-
startingAt: "Starting at"
|
|
4503
|
+
startingAt: "Starting at",
|
|
4504
|
+
restrictiveArticles: {
|
|
4505
|
+
subscribeTo: "Subscribe to one of the following options to get access to this page",
|
|
4506
|
+
or: "Or take a look at some of our other options below"
|
|
4507
|
+
}
|
|
4500
4508
|
};
|
|
4501
4509
|
var buttons$1 = {
|
|
4502
4510
|
next: "Next",
|
|
@@ -4525,7 +4533,11 @@ var labels = {
|
|
|
4525
4533
|
},
|
|
4526
4534
|
selectProduct: "Sélectionnez un produit",
|
|
4527
4535
|
selectPlan: "Sélectionnez un plan",
|
|
4528
|
-
starningAt: "À partir de"
|
|
4536
|
+
starningAt: "À partir de",
|
|
4537
|
+
restrictiveArticles: {
|
|
4538
|
+
subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
|
|
4539
|
+
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
4540
|
+
}
|
|
4529
4541
|
};
|
|
4530
4542
|
var buttons = {
|
|
4531
4543
|
next: "Prochain",
|
|
@@ -6901,8 +6913,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
6901
6913
|
|
|
6902
6914
|
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}}
|
|
6903
6915
|
|
|
6904
|
-
function _extends$
|
|
6905
|
-
_extends$
|
|
6916
|
+
function _extends$x() {
|
|
6917
|
+
_extends$x = Object.assign || function (target) {
|
|
6906
6918
|
for (var i = 1; i < arguments.length; i++) {
|
|
6907
6919
|
var source = arguments[i];
|
|
6908
6920
|
|
|
@@ -6916,7 +6928,7 @@ function _extends$w() {
|
|
|
6916
6928
|
return target;
|
|
6917
6929
|
};
|
|
6918
6930
|
|
|
6919
|
-
return _extends$
|
|
6931
|
+
return _extends$x.apply(this, arguments);
|
|
6920
6932
|
}
|
|
6921
6933
|
|
|
6922
6934
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7006,7 +7018,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7006
7018
|
var reducer = function reducer(state, action) {
|
|
7007
7019
|
switch (action.type) {
|
|
7008
7020
|
case ActionType.ADD_TOAST:
|
|
7009
|
-
return _extends$
|
|
7021
|
+
return _extends$x({}, state, {
|
|
7010
7022
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7011
7023
|
});
|
|
7012
7024
|
|
|
@@ -7016,9 +7028,9 @@ var reducer = function reducer(state, action) {
|
|
|
7016
7028
|
clearFromRemoveQueue(action.toast.id);
|
|
7017
7029
|
}
|
|
7018
7030
|
|
|
7019
|
-
return _extends$
|
|
7031
|
+
return _extends$x({}, state, {
|
|
7020
7032
|
toasts: state.toasts.map(function (t) {
|
|
7021
|
-
return t.id === action.toast.id ? _extends$
|
|
7033
|
+
return t.id === action.toast.id ? _extends$x({}, t, action.toast) : t;
|
|
7022
7034
|
})
|
|
7023
7035
|
});
|
|
7024
7036
|
|
|
@@ -7045,9 +7057,9 @@ var reducer = function reducer(state, action) {
|
|
|
7045
7057
|
});
|
|
7046
7058
|
}
|
|
7047
7059
|
|
|
7048
|
-
return _extends$
|
|
7060
|
+
return _extends$x({}, state, {
|
|
7049
7061
|
toasts: state.toasts.map(function (t) {
|
|
7050
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7062
|
+
return t.id === toastId || toastId === undefined ? _extends$x({}, t, {
|
|
7051
7063
|
visible: false
|
|
7052
7064
|
}) : t;
|
|
7053
7065
|
})
|
|
@@ -7055,28 +7067,28 @@ var reducer = function reducer(state, action) {
|
|
|
7055
7067
|
|
|
7056
7068
|
case ActionType.REMOVE_TOAST:
|
|
7057
7069
|
if (action.toastId === undefined) {
|
|
7058
|
-
return _extends$
|
|
7070
|
+
return _extends$x({}, state, {
|
|
7059
7071
|
toasts: []
|
|
7060
7072
|
});
|
|
7061
7073
|
}
|
|
7062
7074
|
|
|
7063
|
-
return _extends$
|
|
7075
|
+
return _extends$x({}, state, {
|
|
7064
7076
|
toasts: state.toasts.filter(function (t) {
|
|
7065
7077
|
return t.id !== action.toastId;
|
|
7066
7078
|
})
|
|
7067
7079
|
});
|
|
7068
7080
|
|
|
7069
7081
|
case ActionType.START_PAUSE:
|
|
7070
|
-
return _extends$
|
|
7082
|
+
return _extends$x({}, state, {
|
|
7071
7083
|
pausedAt: action.time
|
|
7072
7084
|
});
|
|
7073
7085
|
|
|
7074
7086
|
case ActionType.END_PAUSE:
|
|
7075
7087
|
var diff = action.time - (state.pausedAt || 0);
|
|
7076
|
-
return _extends$
|
|
7088
|
+
return _extends$x({}, state, {
|
|
7077
7089
|
pausedAt: undefined,
|
|
7078
7090
|
toasts: state.toasts.map(function (t) {
|
|
7079
|
-
return _extends$
|
|
7091
|
+
return _extends$x({}, t, {
|
|
7080
7092
|
pauseDuration: t.pauseDuration + diff
|
|
7081
7093
|
});
|
|
7082
7094
|
})
|
|
@@ -7123,12 +7135,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7123
7135
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7124
7136
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7125
7137
|
|
|
7126
|
-
return _extends$
|
|
7138
|
+
return _extends$x({}, toastOptions, toastOptions[t.type], t, {
|
|
7127
7139
|
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],
|
|
7128
|
-
style: _extends$
|
|
7140
|
+
style: _extends$x({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7129
7141
|
});
|
|
7130
7142
|
});
|
|
7131
|
-
return _extends$
|
|
7143
|
+
return _extends$x({}, state, {
|
|
7132
7144
|
toasts: mergedToasts
|
|
7133
7145
|
});
|
|
7134
7146
|
};
|
|
@@ -7138,7 +7150,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7138
7150
|
type = 'blank';
|
|
7139
7151
|
}
|
|
7140
7152
|
|
|
7141
|
-
return _extends$
|
|
7153
|
+
return _extends$x({
|
|
7142
7154
|
createdAt: Date.now(),
|
|
7143
7155
|
visible: true,
|
|
7144
7156
|
type: type,
|
|
@@ -7188,14 +7200,14 @@ toast.remove = function (toastId) {
|
|
|
7188
7200
|
};
|
|
7189
7201
|
|
|
7190
7202
|
toast.promise = function (promise, msgs, opts) {
|
|
7191
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7203
|
+
var id = toast.loading(msgs.loading, _extends$x({}, opts, opts == null ? void 0 : opts.loading));
|
|
7192
7204
|
promise.then(function (p) {
|
|
7193
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7205
|
+
toast.success(resolveValue(msgs.success, p), _extends$x({
|
|
7194
7206
|
id: id
|
|
7195
7207
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7196
7208
|
return p;
|
|
7197
7209
|
})["catch"](function (e) {
|
|
7198
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7210
|
+
toast.error(resolveValue(msgs.error, e), _extends$x({
|
|
7199
7211
|
id: id
|
|
7200
7212
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7201
7213
|
});
|
|
@@ -7534,7 +7546,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7534
7546
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7535
7547
|
return createElement(ToastBarBase, {
|
|
7536
7548
|
className: toast.className,
|
|
7537
|
-
style: _extends$
|
|
7549
|
+
style: _extends$x({}, animationStyle, style, toast.style)
|
|
7538
7550
|
}, typeof children === 'function' ? children({
|
|
7539
7551
|
icon: icon,
|
|
7540
7552
|
message: message
|
|
@@ -7564,7 +7576,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7564
7576
|
} : position.includes('right') ? {
|
|
7565
7577
|
justifyContent: 'flex-end'
|
|
7566
7578
|
} : {};
|
|
7567
|
-
return _extends$
|
|
7579
|
+
return _extends$x({
|
|
7568
7580
|
left: 0,
|
|
7569
7581
|
right: 0,
|
|
7570
7582
|
display: 'flex',
|
|
@@ -7591,7 +7603,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7591
7603
|
handlers = _useToaster.handlers;
|
|
7592
7604
|
|
|
7593
7605
|
return createElement("div", {
|
|
7594
|
-
style: _extends$
|
|
7606
|
+
style: _extends$x({
|
|
7595
7607
|
position: 'fixed',
|
|
7596
7608
|
zIndex: 9999,
|
|
7597
7609
|
top: DEFAULT_OFFSET,
|
|
@@ -7626,82 +7638,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7626
7638
|
}));
|
|
7627
7639
|
};
|
|
7628
7640
|
|
|
7629
|
-
var _path$
|
|
7641
|
+
var _path$u;
|
|
7630
7642
|
|
|
7631
|
-
function _extends$
|
|
7643
|
+
function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
|
|
7632
7644
|
|
|
7633
7645
|
function SvgCheckSolid(props) {
|
|
7634
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7646
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7635
7647
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7636
7648
|
className: "h-5 w-5",
|
|
7637
7649
|
viewBox: "0 0 20 20",
|
|
7638
7650
|
fill: "currentColor"
|
|
7639
|
-
}, props), _path$
|
|
7651
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7640
7652
|
fillRule: "evenodd",
|
|
7641
7653
|
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",
|
|
7642
7654
|
clipRule: "evenodd"
|
|
7643
7655
|
})));
|
|
7644
7656
|
}
|
|
7645
7657
|
|
|
7646
|
-
var _path$
|
|
7658
|
+
var _path$t;
|
|
7647
7659
|
|
|
7648
|
-
function _extends$
|
|
7660
|
+
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); }
|
|
7649
7661
|
|
|
7650
7662
|
function SvgXIcon(props) {
|
|
7651
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7663
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7652
7664
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7653
7665
|
viewBox: "0 0 20 20",
|
|
7654
7666
|
fill: "currentColor"
|
|
7655
|
-
}, props), _path$
|
|
7667
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7656
7668
|
fill: "evenodd",
|
|
7657
7669
|
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",
|
|
7658
7670
|
clipRule: "evenodd"
|
|
7659
7671
|
})));
|
|
7660
7672
|
}
|
|
7661
7673
|
|
|
7662
|
-
var _path$
|
|
7674
|
+
var _path$s;
|
|
7663
7675
|
|
|
7664
|
-
function _extends$
|
|
7676
|
+
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); }
|
|
7665
7677
|
|
|
7666
7678
|
function SvgXIconSolid(props) {
|
|
7667
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7679
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
7668
7680
|
className: "plc-w-4 plc-h-4",
|
|
7669
7681
|
fill: "currentColor",
|
|
7670
7682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7671
7683
|
viewBox: "0 0 100 100"
|
|
7672
|
-
}, props), _path$
|
|
7684
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
7673
7685
|
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"
|
|
7674
7686
|
})));
|
|
7675
7687
|
}
|
|
7676
7688
|
|
|
7677
|
-
var _path$
|
|
7689
|
+
var _path$r;
|
|
7678
7690
|
|
|
7679
|
-
function _extends$
|
|
7691
|
+
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); }
|
|
7680
7692
|
|
|
7681
7693
|
function SvgExclamation(props) {
|
|
7682
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7694
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
7683
7695
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7684
7696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7685
7697
|
viewBox: "0 0 20 20",
|
|
7686
7698
|
fill: "currentColor"
|
|
7687
|
-
}, props), _path$
|
|
7699
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
7688
7700
|
fillRule: "evenodd",
|
|
7689
7701
|
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",
|
|
7690
7702
|
clipRule: "evenodd"
|
|
7691
7703
|
})));
|
|
7692
7704
|
}
|
|
7693
7705
|
|
|
7694
|
-
var _path$
|
|
7706
|
+
var _path$q, _path2$3;
|
|
7695
7707
|
|
|
7696
|
-
function _extends$
|
|
7708
|
+
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); }
|
|
7697
7709
|
|
|
7698
7710
|
function SvgSpinner(props) {
|
|
7699
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7711
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
7700
7712
|
className: "plc-animate-spin",
|
|
7701
7713
|
viewBox: "0 0 24 24",
|
|
7702
7714
|
fill: "currentColor",
|
|
7703
7715
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7704
|
-
}, props), _path$
|
|
7716
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
7705
7717
|
opacity: 0.2,
|
|
7706
7718
|
fill: "evenodd",
|
|
7707
7719
|
clipRule: "evenodd",
|
|
@@ -9648,16 +9660,16 @@ const LoginPassword = props => /*#__PURE__*/React__default.createElement(Passwor
|
|
|
9648
9660
|
store: store$f
|
|
9649
9661
|
}, props));
|
|
9650
9662
|
|
|
9651
|
-
var _path$
|
|
9663
|
+
var _path$p;
|
|
9652
9664
|
|
|
9653
|
-
function _extends$
|
|
9665
|
+
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); }
|
|
9654
9666
|
|
|
9655
9667
|
function SvgCheck(props) {
|
|
9656
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9668
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
9657
9669
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9658
9670
|
fill: "currentColor",
|
|
9659
9671
|
viewBox: "0 0 20 20"
|
|
9660
|
-
}, props), _path$
|
|
9672
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
9661
9673
|
fillRule: "evenodd",
|
|
9662
9674
|
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",
|
|
9663
9675
|
clipRule: "evenodd"
|
|
@@ -9970,19 +9982,21 @@ const RegisterContainer = ({
|
|
|
9970
9982
|
*/
|
|
9971
9983
|
|
|
9972
9984
|
function hasSecurityTokenEnabled$1() {
|
|
9973
|
-
|
|
9985
|
+
var _window$Pelcro$site$r2;
|
|
9986
|
+
|
|
9987
|
+
const hasSecuritySdkLoaded = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.security_key);
|
|
9974
9988
|
return hasSecuritySdkLoaded;
|
|
9975
9989
|
}
|
|
9976
9990
|
|
|
9977
|
-
var _path$
|
|
9991
|
+
var _path$o;
|
|
9978
9992
|
|
|
9979
|
-
function _extends$
|
|
9993
|
+
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); }
|
|
9980
9994
|
|
|
9981
9995
|
function SvgFacebookLogo(props) {
|
|
9982
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9996
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
9983
9997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9984
9998
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
9985
|
-
}, props), _path$
|
|
9999
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
9986
10000
|
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",
|
|
9987
10001
|
fill: "#3c5a9a"
|
|
9988
10002
|
})));
|
|
@@ -10055,15 +10069,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10055
10069
|
unwrapExports(googleLogin);
|
|
10056
10070
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10057
10071
|
|
|
10058
|
-
var _path$
|
|
10072
|
+
var _path$n, _path2$2, _path3$1, _path4;
|
|
10059
10073
|
|
|
10060
|
-
function _extends$
|
|
10074
|
+
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); }
|
|
10061
10075
|
|
|
10062
10076
|
function SvgGoogleLogo(props) {
|
|
10063
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10077
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
10064
10078
|
viewBox: "0 0 24 24",
|
|
10065
10079
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10066
|
-
}, props), _path$
|
|
10080
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
10067
10081
|
fill: "#4285F4",
|
|
10068
10082
|
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"
|
|
10069
10083
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10140,15 +10154,15 @@ const GoogleLoginButton = ({
|
|
|
10140
10154
|
}) : null;
|
|
10141
10155
|
};
|
|
10142
10156
|
|
|
10143
|
-
var _path$
|
|
10157
|
+
var _path$m;
|
|
10144
10158
|
|
|
10145
|
-
function _extends$
|
|
10159
|
+
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); }
|
|
10146
10160
|
|
|
10147
10161
|
function SvgAuth0Logo(props) {
|
|
10148
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10162
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
10149
10163
|
viewBox: "0 0 256 285",
|
|
10150
10164
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10151
|
-
}, props), _path$
|
|
10165
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
10152
10166
|
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"
|
|
10153
10167
|
})));
|
|
10154
10168
|
}
|
|
@@ -10159,12 +10173,11 @@ const Auth0LoginButton = ({
|
|
|
10159
10173
|
labelClassName = "",
|
|
10160
10174
|
iconClassName = ""
|
|
10161
10175
|
}) => {
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
if (auth0Enabled && !window.auth0) {
|
|
10176
|
+
if (!window.auth0 && window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url) {
|
|
10165
10177
|
console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
|
|
10166
10178
|
}
|
|
10167
10179
|
|
|
10180
|
+
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url && window.auth0);
|
|
10168
10181
|
const auth0InstanceRef = React__default.useRef(null);
|
|
10169
10182
|
React__default.useEffect(() => {
|
|
10170
10183
|
if (auth0Enabled) {
|
|
@@ -10308,15 +10321,15 @@ function LoginView(props) {
|
|
|
10308
10321
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10309
10322
|
}
|
|
10310
10323
|
|
|
10311
|
-
var _path$
|
|
10324
|
+
var _path$l, _path2$1, _path3;
|
|
10312
10325
|
|
|
10313
|
-
function _extends$
|
|
10326
|
+
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); }
|
|
10314
10327
|
|
|
10315
10328
|
function SvgPelcroAuthorship(props) {
|
|
10316
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10329
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
10317
10330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10318
10331
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10319
|
-
}, props), _path$
|
|
10332
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
10320
10333
|
fill: "none",
|
|
10321
10334
|
stroke: "#4a4a4a",
|
|
10322
10335
|
d: "M487.89 42.299c0 13.158-10.671 23.829-23.829 23.829H37.074c-13.162 0-23.832-10.671-23.832-23.829v-63.552c0-13.158 10.67-23.831 23.832-23.831H464.06c13.158 0 23.829 10.672 23.829 23.831l.001 63.552z"
|
|
@@ -11032,42 +11045,80 @@ class SelectModal extends Component {
|
|
|
11032
11045
|
return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
|
|
11033
11046
|
});
|
|
11034
11047
|
|
|
11048
|
+
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
11049
|
+
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
11050
|
+
const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
|
|
11051
|
+
const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
|
|
11052
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
11053
|
+
key: product.id,
|
|
11054
|
+
className: `plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper ${options !== null && options !== void 0 && options.emphasize ? "plc-border-2" : "plc-border"}`
|
|
11055
|
+
}, product.image && /*#__PURE__*/React__default.createElement("img", {
|
|
11056
|
+
alt: `image of ${product.name}`,
|
|
11057
|
+
src: product.image,
|
|
11058
|
+
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
11059
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11060
|
+
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
11061
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11062
|
+
className: "plc-w-full pelcro-select-product-header"
|
|
11063
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
11064
|
+
className: "plc-font-bold pelcro-select-product-title"
|
|
11065
|
+
}, product.name), /*#__PURE__*/React__default.createElement("p", {
|
|
11066
|
+
className: "plc-text-xs pelcro-select-product-description"
|
|
11067
|
+
}, product.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
11068
|
+
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
11069
|
+
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
11070
|
+
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
11071
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
11072
|
+
onClick: productButtonCallback,
|
|
11073
|
+
"data-key": product.id,
|
|
11074
|
+
id: "pelcro-select-product-back-button",
|
|
11075
|
+
className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
11076
|
+
}, index === 0 && {
|
|
11077
|
+
autoFocus: true
|
|
11078
|
+
}), productButtonLabel))));
|
|
11079
|
+
});
|
|
11080
|
+
|
|
11035
11081
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11036
11082
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11037
11083
|
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
return productsToShow.map((product, i) => {
|
|
11041
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
11042
|
-
key: product.id,
|
|
11043
|
-
className: "plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper"
|
|
11044
|
-
}, product.image && /*#__PURE__*/React__default.createElement("img", {
|
|
11045
|
-
alt: `image of ${product.name}`,
|
|
11046
|
-
src: product.image,
|
|
11047
|
-
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
11048
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11049
|
-
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
11050
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11051
|
-
className: "plc-w-full pelcro-select-product-header"
|
|
11052
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
11053
|
-
className: "plc-font-bold pelcro-select-product-title"
|
|
11054
|
-
}, product.name), /*#__PURE__*/React__default.createElement("p", {
|
|
11055
|
-
className: "plc-text-xs pelcro-select-product-description"
|
|
11056
|
-
}, product.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
11057
|
-
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
11058
|
-
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
11059
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
11060
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
11061
|
-
onClick: productButtonCallback,
|
|
11062
|
-
"data-key": product.id,
|
|
11063
|
-
id: "pelcro-select-product-back-button",
|
|
11064
|
-
className: "plc-ml-auto plc-text-xs"
|
|
11065
|
-
}, i === 0 && {
|
|
11066
|
-
autoFocus: true
|
|
11067
|
-
}), productButtonLabel))));
|
|
11084
|
+
return productsToShow.map((product, index) => {
|
|
11085
|
+
return this.renderOneProduct(product, index);
|
|
11068
11086
|
});
|
|
11069
11087
|
});
|
|
11070
11088
|
|
|
11089
|
+
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
11090
|
+
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
11091
|
+
|
|
11092
|
+
if (isPlanMode) {
|
|
11093
|
+
return this.renderOneProduct(this.state.product);
|
|
11094
|
+
}
|
|
11095
|
+
|
|
11096
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11097
|
+
|
|
11098
|
+
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11099
|
+
return this.renderProducts();
|
|
11100
|
+
}
|
|
11101
|
+
|
|
11102
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", {
|
|
11103
|
+
className: "plc-text-sm plc-font-semibold"
|
|
11104
|
+
}, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
|
|
11105
|
+
emphasize: true
|
|
11106
|
+
})), (allProductsMinusMatched === null || allProductsMinusMatched === void 0 ? void 0 : allProductsMinusMatched.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("hr", {
|
|
11107
|
+
className: "plc-my-4"
|
|
11108
|
+
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
11109
|
+
className: "plc-text-sm plc-font-semibold"
|
|
11110
|
+
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11111
|
+
|
|
11112
|
+
function productsWithMatchedTaggedFirst() {
|
|
11113
|
+
var _window$Pelcro$produc;
|
|
11114
|
+
|
|
11115
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11116
|
+
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11117
|
+
const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.find(matchedProduct => matchedProduct.id !== product.id));
|
|
11118
|
+
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
11119
|
+
}
|
|
11120
|
+
});
|
|
11121
|
+
|
|
11071
11122
|
_defineProperty$3(this, "renderPlans", () => {
|
|
11072
11123
|
return this.state.planList.map(plan => {
|
|
11073
11124
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
@@ -11194,7 +11245,7 @@ class SelectModal extends Component {
|
|
|
11194
11245
|
}
|
|
11195
11246
|
|
|
11196
11247
|
render() {
|
|
11197
|
-
var _window$Pelcro$
|
|
11248
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
11198
11249
|
|
|
11199
11250
|
const {
|
|
11200
11251
|
disableGifting
|
|
@@ -11228,9 +11279,9 @@ class SelectModal extends Component {
|
|
|
11228
11279
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11229
11280
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11230
11281
|
className: "plc-text-2xl plc-font-semibold"
|
|
11231
|
-
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$
|
|
11282
|
+
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
|
|
11232
11283
|
className: "pelcro-select-products-wrapper"
|
|
11233
|
-
}, this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11284
|
+
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11234
11285
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
11235
11286
|
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default.createElement("div", {
|
|
11236
11287
|
className: "plc-flex plc-justify-center plc-mt-2"
|
|
@@ -13885,17 +13936,17 @@ const SubmitPaymentMethod = ({
|
|
|
13885
13936
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
13886
13937
|
};
|
|
13887
13938
|
|
|
13888
|
-
var _path$
|
|
13939
|
+
var _path$k;
|
|
13889
13940
|
|
|
13890
|
-
function _extends$
|
|
13941
|
+
function _extends$m() { _extends$m = 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$m.apply(this, arguments); }
|
|
13891
13942
|
|
|
13892
13943
|
function SvgArrowLeft(props) {
|
|
13893
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13944
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
13894
13945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13895
13946
|
fill: "none",
|
|
13896
13947
|
viewBox: "0 0 24 24",
|
|
13897
13948
|
stroke: "currentColor"
|
|
13898
|
-
}, props), _path$
|
|
13949
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
13899
13950
|
strokeLinecap: "round",
|
|
13900
13951
|
strokeLinejoin: "round",
|
|
13901
13952
|
strokeWidth: 2,
|
|
@@ -13977,17 +14028,17 @@ const CouponCodeField = props => {
|
|
|
13977
14028
|
}, props));
|
|
13978
14029
|
};
|
|
13979
14030
|
|
|
13980
|
-
var _path$
|
|
14031
|
+
var _path$j;
|
|
13981
14032
|
|
|
13982
|
-
function _extends$
|
|
14033
|
+
function _extends$l() { _extends$l = 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$l.apply(this, arguments); }
|
|
13983
14034
|
|
|
13984
14035
|
function SvgTicket(props) {
|
|
13985
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14036
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
13986
14037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13987
14038
|
fill: "none",
|
|
13988
14039
|
viewBox: "0 0 24 24",
|
|
13989
14040
|
stroke: "currentColor"
|
|
13990
|
-
}, props), _path$
|
|
14041
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
13991
14042
|
strokeLinecap: "round",
|
|
13992
14043
|
strokeLinejoin: "round",
|
|
13993
14044
|
strokeWidth: 2,
|
|
@@ -14346,16 +14397,16 @@ const BankRedirection = () => {
|
|
|
14346
14397
|
}));
|
|
14347
14398
|
};
|
|
14348
14399
|
|
|
14349
|
-
var _path$
|
|
14400
|
+
var _path$i;
|
|
14350
14401
|
|
|
14351
|
-
function _extends$
|
|
14402
|
+
function _extends$k() { _extends$k = 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$k.apply(this, arguments); }
|
|
14352
14403
|
|
|
14353
14404
|
function SvgLock(props) {
|
|
14354
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14405
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
14355
14406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14356
14407
|
viewBox: "0 0 20 20",
|
|
14357
14408
|
fill: "currentColor"
|
|
14358
|
-
}, props), _path$
|
|
14409
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
14359
14410
|
fillRule: "evenodd",
|
|
14360
14411
|
d: "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",
|
|
14361
14412
|
clipRule: "evenodd"
|
|
@@ -14577,12 +14628,12 @@ function SubscriptionRenewModal({
|
|
|
14577
14628
|
}
|
|
14578
14629
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
14579
14630
|
|
|
14580
|
-
var _path$
|
|
14631
|
+
var _path$h;
|
|
14581
14632
|
|
|
14582
|
-
function _extends$
|
|
14633
|
+
function _extends$j() { _extends$j = 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$j.apply(this, arguments); }
|
|
14583
14634
|
|
|
14584
14635
|
function SvgGift(props) {
|
|
14585
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14636
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
14586
14637
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
14587
14638
|
fill: "none",
|
|
14588
14639
|
stroke: "currentColor",
|
|
@@ -14591,7 +14642,7 @@ function SvgGift(props) {
|
|
|
14591
14642
|
strokeWidth: 2,
|
|
14592
14643
|
viewBox: "0 0 24 24",
|
|
14593
14644
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14594
|
-
}, props), _path$
|
|
14645
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
14595
14646
|
d: "M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z"
|
|
14596
14647
|
})));
|
|
14597
14648
|
}
|
|
@@ -15590,17 +15641,17 @@ const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone
|
|
|
15590
15641
|
|
|
15591
15642
|
var userSolidIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22plc-h-5%20plc-w-5%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22white%22%3E%20%20%3Cpath%20transform%3D%22translate%280%2C2%29%22%20fill-rule%3D%22evenodd%22%20d%3D%22M10%209a3%203%200%20100-6%203%203%200%20000%206zm-7%209a7%207%200%201114%200H3z%22%20clip-rule%3D%22evenodd%22%20%2F%3E%3C%2Fsvg%3E";
|
|
15592
15643
|
|
|
15593
|
-
var _path$
|
|
15644
|
+
var _path$g;
|
|
15594
15645
|
|
|
15595
|
-
function _extends$
|
|
15646
|
+
function _extends$i() { _extends$i = 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$i.apply(this, arguments); }
|
|
15596
15647
|
|
|
15597
15648
|
function SvgEdit(props) {
|
|
15598
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15649
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
15599
15650
|
className: "plc-w-6 plc-h-6",
|
|
15600
15651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15601
15652
|
viewBox: "0 0 20 20",
|
|
15602
15653
|
fill: "currentColor"
|
|
15603
|
-
}, props), _path$
|
|
15654
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
15604
15655
|
d: "M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zm-2.207 2.207L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"
|
|
15605
15656
|
})));
|
|
15606
15657
|
}
|
|
@@ -18710,18 +18761,18 @@ const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(La
|
|
|
18710
18761
|
store: store$4
|
|
18711
18762
|
}, props));
|
|
18712
18763
|
|
|
18713
|
-
var _path$
|
|
18764
|
+
var _path$f;
|
|
18714
18765
|
|
|
18715
|
-
function _extends$
|
|
18766
|
+
function _extends$h() { _extends$h = 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$h.apply(this, arguments); }
|
|
18716
18767
|
|
|
18717
18768
|
function SvgInfoCircle(props) {
|
|
18718
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18769
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
18719
18770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18720
18771
|
className: "plc-w-5 plc-h-5",
|
|
18721
18772
|
fill: "none",
|
|
18722
18773
|
viewBox: "0 0 24 24",
|
|
18723
18774
|
stroke: "currentColor"
|
|
18724
|
-
}, props), _path$
|
|
18775
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
18725
18776
|
strokeLinecap: "round",
|
|
18726
18777
|
strokeLinejoin: "round",
|
|
18727
18778
|
strokeWidth: 2,
|
|
@@ -18879,7 +18930,7 @@ function GiftCreateMessage(props) {
|
|
|
18879
18930
|
return /*#__PURE__*/React__default.createElement(TextArea, Object.assign({
|
|
18880
18931
|
onChange: e => handleInputChange(e.target.value),
|
|
18881
18932
|
value: state.giftMessage,
|
|
18882
|
-
maxLength: "
|
|
18933
|
+
maxLength: "200",
|
|
18883
18934
|
rows: 3,
|
|
18884
18935
|
tooltipText: t("gift.messages.giftMessageInfo")
|
|
18885
18936
|
}, props));
|
|
@@ -19708,8 +19759,8 @@ const PaymentMethodSelectModal = ({
|
|
|
19708
19759
|
};
|
|
19709
19760
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
19710
19761
|
|
|
19711
|
-
function _extends$
|
|
19712
|
-
_extends$
|
|
19762
|
+
function _extends$g() {
|
|
19763
|
+
_extends$g = Object.assign || function (target) {
|
|
19713
19764
|
for (var i = 1; i < arguments.length; i++) {
|
|
19714
19765
|
var source = arguments[i];
|
|
19715
19766
|
|
|
@@ -19723,7 +19774,7 @@ function _extends$f() {
|
|
|
19723
19774
|
return target;
|
|
19724
19775
|
};
|
|
19725
19776
|
|
|
19726
|
-
return _extends$
|
|
19777
|
+
return _extends$g.apply(this, arguments);
|
|
19727
19778
|
}
|
|
19728
19779
|
|
|
19729
19780
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -19907,7 +19958,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
19907
19958
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
19908
19959
|
return null;
|
|
19909
19960
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
19910
|
-
return _render(_extends$
|
|
19961
|
+
return _render(_extends$g({}, _rest, {
|
|
19911
19962
|
hidden: true,
|
|
19912
19963
|
style: {
|
|
19913
19964
|
display: 'none'
|
|
@@ -20435,7 +20486,7 @@ function TransitionChild(props) {
|
|
|
20435
20486
|
var passthroughProps = rest;
|
|
20436
20487
|
return React__default.createElement(NestingContext.Provider, {
|
|
20437
20488
|
value: nesting
|
|
20438
|
-
}, render(_extends$
|
|
20489
|
+
}, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
20439
20490
|
}
|
|
20440
20491
|
|
|
20441
20492
|
function Transition(props) {
|
|
@@ -20479,7 +20530,7 @@ function Transition(props) {
|
|
|
20479
20530
|
value: nestingBag
|
|
20480
20531
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
20481
20532
|
value: transitionBag
|
|
20482
|
-
}, render(_extends$
|
|
20533
|
+
}, render(_extends$g({}, sharedProps, {
|
|
20483
20534
|
as: Fragment,
|
|
20484
20535
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
20485
20536
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -20606,12 +20657,12 @@ var ActionTypes;
|
|
|
20606
20657
|
})(ActionTypes || (ActionTypes = {}));
|
|
20607
20658
|
|
|
20608
20659
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
20609
|
-
return _extends$
|
|
20660
|
+
return _extends$g({}, state, {
|
|
20610
20661
|
activeItemIndex: null,
|
|
20611
20662
|
menuState: MenuStates.Closed
|
|
20612
20663
|
});
|
|
20613
20664
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
20614
|
-
return _extends$
|
|
20665
|
+
return _extends$g({}, state, {
|
|
20615
20666
|
menuState: MenuStates.Open
|
|
20616
20667
|
});
|
|
20617
20668
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -20630,7 +20681,7 @@ var ActionTypes;
|
|
|
20630
20681
|
}
|
|
20631
20682
|
});
|
|
20632
20683
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
20633
|
-
return _extends$
|
|
20684
|
+
return _extends$g({}, state, {
|
|
20634
20685
|
searchQuery: '',
|
|
20635
20686
|
activeItemIndex: activeItemIndex
|
|
20636
20687
|
});
|
|
@@ -20641,19 +20692,19 @@ var ActionTypes;
|
|
|
20641
20692
|
|
|
20642
20693
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
20643
20694
|
});
|
|
20644
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
20695
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
|
|
20645
20696
|
searchQuery: searchQuery
|
|
20646
20697
|
});
|
|
20647
|
-
return _extends$
|
|
20698
|
+
return _extends$g({}, state, {
|
|
20648
20699
|
searchQuery: searchQuery,
|
|
20649
20700
|
activeItemIndex: match
|
|
20650
20701
|
});
|
|
20651
20702
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
20652
|
-
return _extends$
|
|
20703
|
+
return _extends$g({}, state, {
|
|
20653
20704
|
searchQuery: ''
|
|
20654
20705
|
});
|
|
20655
20706
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
20656
|
-
return _extends$
|
|
20707
|
+
return _extends$g({}, state, {
|
|
20657
20708
|
items: [].concat(state.items, [{
|
|
20658
20709
|
id: action.id,
|
|
20659
20710
|
dataRef: action.dataRef
|
|
@@ -20666,7 +20717,7 @@ var ActionTypes;
|
|
|
20666
20717
|
return a.id === action.id;
|
|
20667
20718
|
});
|
|
20668
20719
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
20669
|
-
return _extends$
|
|
20720
|
+
return _extends$g({}, state, {
|
|
20670
20721
|
items: nextItems,
|
|
20671
20722
|
activeItemIndex: function () {
|
|
20672
20723
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -20705,19 +20756,19 @@ var ActionTypes$1;
|
|
|
20705
20756
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
20706
20757
|
if (state.disabled) return state;
|
|
20707
20758
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20708
|
-
return _extends$
|
|
20759
|
+
return _extends$g({}, state, {
|
|
20709
20760
|
activeOptionIndex: null,
|
|
20710
20761
|
listboxState: ListboxStates.Closed
|
|
20711
20762
|
});
|
|
20712
20763
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
20713
20764
|
if (state.disabled) return state;
|
|
20714
20765
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
20715
|
-
return _extends$
|
|
20766
|
+
return _extends$g({}, state, {
|
|
20716
20767
|
listboxState: ListboxStates.Open
|
|
20717
20768
|
});
|
|
20718
20769
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
20719
20770
|
if (state.disabled === action.disabled) return state;
|
|
20720
|
-
return _extends$
|
|
20771
|
+
return _extends$g({}, state, {
|
|
20721
20772
|
disabled: action.disabled
|
|
20722
20773
|
});
|
|
20723
20774
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -20738,7 +20789,7 @@ var ActionTypes$1;
|
|
|
20738
20789
|
}
|
|
20739
20790
|
});
|
|
20740
20791
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
20741
|
-
return _extends$
|
|
20792
|
+
return _extends$g({}, state, {
|
|
20742
20793
|
searchQuery: '',
|
|
20743
20794
|
activeOptionIndex: activeOptionIndex
|
|
20744
20795
|
});
|
|
@@ -20751,10 +20802,10 @@ var ActionTypes$1;
|
|
|
20751
20802
|
|
|
20752
20803
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
20753
20804
|
});
|
|
20754
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
20805
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
|
|
20755
20806
|
searchQuery: searchQuery
|
|
20756
20807
|
});
|
|
20757
|
-
return _extends$
|
|
20808
|
+
return _extends$g({}, state, {
|
|
20758
20809
|
searchQuery: searchQuery,
|
|
20759
20810
|
activeOptionIndex: match
|
|
20760
20811
|
});
|
|
@@ -20762,11 +20813,11 @@ var ActionTypes$1;
|
|
|
20762
20813
|
if (state.disabled) return state;
|
|
20763
20814
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20764
20815
|
if (state.searchQuery === '') return state;
|
|
20765
|
-
return _extends$
|
|
20816
|
+
return _extends$g({}, state, {
|
|
20766
20817
|
searchQuery: ''
|
|
20767
20818
|
});
|
|
20768
20819
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
20769
|
-
return _extends$
|
|
20820
|
+
return _extends$g({}, state, {
|
|
20770
20821
|
options: [].concat(state.options, [{
|
|
20771
20822
|
id: action.id,
|
|
20772
20823
|
dataRef: action.dataRef
|
|
@@ -20779,7 +20830,7 @@ var ActionTypes$1;
|
|
|
20779
20830
|
return a.id === action.id;
|
|
20780
20831
|
});
|
|
20781
20832
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
20782
|
-
return _extends$
|
|
20833
|
+
return _extends$g({}, state, {
|
|
20783
20834
|
options: nextOptions,
|
|
20784
20835
|
activeOptionIndex: function () {
|
|
20785
20836
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -20840,18 +20891,18 @@ const getPaymentCardIcon = name => {
|
|
|
20840
20891
|
}));
|
|
20841
20892
|
};
|
|
20842
20893
|
|
|
20843
|
-
var _path$
|
|
20894
|
+
var _path$e;
|
|
20844
20895
|
|
|
20845
|
-
function _extends$
|
|
20896
|
+
function _extends$f() { _extends$f = 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$f.apply(this, arguments); }
|
|
20846
20897
|
|
|
20847
20898
|
function SvgChevronRight(props) {
|
|
20848
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20899
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
20849
20900
|
className: "plc-w-6 plc-h-6",
|
|
20850
20901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20851
20902
|
fill: "none",
|
|
20852
20903
|
viewBox: "0 0 24 24",
|
|
20853
20904
|
stroke: "currentColor"
|
|
20854
|
-
}, props), _path$
|
|
20905
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
20855
20906
|
strokeLinecap: "round",
|
|
20856
20907
|
strokeLinejoin: "round",
|
|
20857
20908
|
strokeWidth: 2,
|
|
@@ -21067,18 +21118,18 @@ const SavedItems = ({
|
|
|
21067
21118
|
});
|
|
21068
21119
|
};
|
|
21069
21120
|
|
|
21070
|
-
var _path$
|
|
21121
|
+
var _path$d;
|
|
21071
21122
|
|
|
21072
|
-
function _extends$
|
|
21123
|
+
function _extends$e() { _extends$e = 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$e.apply(this, arguments); }
|
|
21073
21124
|
|
|
21074
21125
|
function SvgRefresh(props) {
|
|
21075
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21126
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21076
21127
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21077
21128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21078
21129
|
fill: "none",
|
|
21079
21130
|
viewBox: "0 0 24 24",
|
|
21080
21131
|
stroke: "currentColor"
|
|
21081
|
-
}, props), _path$
|
|
21132
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21082
21133
|
strokeLinecap: "round",
|
|
21083
21134
|
strokeLinejoin: "round",
|
|
21084
21135
|
strokeWidth: 2,
|
|
@@ -21086,35 +21137,35 @@ function SvgRefresh(props) {
|
|
|
21086
21137
|
})));
|
|
21087
21138
|
}
|
|
21088
21139
|
|
|
21089
|
-
var _path$
|
|
21140
|
+
var _path$c;
|
|
21090
21141
|
|
|
21091
|
-
function _extends$
|
|
21142
|
+
function _extends$d() { _extends$d = 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$d.apply(this, arguments); }
|
|
21092
21143
|
|
|
21093
21144
|
function SvgCalendar(props) {
|
|
21094
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21145
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
21095
21146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21096
21147
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21097
21148
|
viewBox: "0 0 20 20",
|
|
21098
21149
|
fill: "currentColor"
|
|
21099
|
-
}, props), _path$
|
|
21150
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
21100
21151
|
fillRule: "evenodd",
|
|
21101
21152
|
d: "M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",
|
|
21102
21153
|
clipRule: "evenodd"
|
|
21103
21154
|
})));
|
|
21104
21155
|
}
|
|
21105
21156
|
|
|
21106
|
-
var _path$
|
|
21157
|
+
var _path$b;
|
|
21107
21158
|
|
|
21108
|
-
function _extends$
|
|
21159
|
+
function _extends$c() { _extends$c = 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$c.apply(this, arguments); }
|
|
21109
21160
|
|
|
21110
21161
|
function SvgPlus(props) {
|
|
21111
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21162
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
21112
21163
|
className: "plc-w-5 plc-h-5",
|
|
21113
21164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21114
21165
|
fill: "none",
|
|
21115
21166
|
viewBox: "0 0 24 24",
|
|
21116
21167
|
stroke: "currentColor"
|
|
21117
|
-
}, props), _path$
|
|
21168
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
21118
21169
|
strokeLinecap: "round",
|
|
21119
21170
|
strokeLinejoin: "round",
|
|
21120
21171
|
strokeWidth: 2,
|
|
@@ -21122,17 +21173,17 @@ function SvgPlus(props) {
|
|
|
21122
21173
|
})));
|
|
21123
21174
|
}
|
|
21124
21175
|
|
|
21125
|
-
var _path$
|
|
21176
|
+
var _path$a;
|
|
21126
21177
|
|
|
21127
|
-
function _extends$
|
|
21178
|
+
function _extends$b() { _extends$b = 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$b.apply(this, arguments); }
|
|
21128
21179
|
|
|
21129
21180
|
function SvgCheckMark(props) {
|
|
21130
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21181
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
21131
21182
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21132
21183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21133
21184
|
viewBox: "0 0 20 20",
|
|
21134
21185
|
fill: "currentColor"
|
|
21135
|
-
}, props), _path$
|
|
21186
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
21136
21187
|
fillRule: "evenodd",
|
|
21137
21188
|
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",
|
|
21138
21189
|
clipRule: "evenodd"
|
|
@@ -21194,9 +21245,9 @@ const SubscriptionsItems = ({
|
|
|
21194
21245
|
const {
|
|
21195
21246
|
t
|
|
21196
21247
|
} = useTranslation("dashboard");
|
|
21197
|
-
const subs =
|
|
21198
|
-
if (
|
|
21199
|
-
return
|
|
21248
|
+
const subs = getNonDonationSubs();
|
|
21249
|
+
if (subs.length === 0) return null;
|
|
21250
|
+
return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
21200
21251
|
const isActive = activeMenu === sub.id; // Cancel button click handlers
|
|
21201
21252
|
|
|
21202
21253
|
const onCancelClick = () => {
|
|
@@ -21327,6 +21378,12 @@ const SubscriptionsItems = ({
|
|
|
21327
21378
|
});
|
|
21328
21379
|
};
|
|
21329
21380
|
|
|
21381
|
+
function getNonDonationSubs() {
|
|
21382
|
+
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
21383
|
+
|
|
21384
|
+
return (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => !sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
21385
|
+
}
|
|
21386
|
+
|
|
21330
21387
|
/**
|
|
21331
21388
|
* @typedef {Object} AccordionPropsType
|
|
21332
21389
|
* @property {string} initialActiveMenu the initial active menu
|
|
@@ -21409,18 +21466,18 @@ Accordion.item = function AccordionItem({
|
|
|
21409
21466
|
}, content)) : null;
|
|
21410
21467
|
};
|
|
21411
21468
|
|
|
21412
|
-
var _path$
|
|
21469
|
+
var _path$9;
|
|
21413
21470
|
|
|
21414
|
-
function _extends$
|
|
21471
|
+
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); }
|
|
21415
21472
|
|
|
21416
21473
|
function SvgExit(props) {
|
|
21417
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21474
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
21418
21475
|
className: "plc-w-6 plc-h-6",
|
|
21419
21476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21420
21477
|
fill: "none",
|
|
21421
21478
|
viewBox: "0 0 24 24",
|
|
21422
21479
|
stroke: "currentColor"
|
|
21423
|
-
}, props), _path$
|
|
21480
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
21424
21481
|
strokeLinecap: "round",
|
|
21425
21482
|
strokeLinejoin: "round",
|
|
21426
21483
|
strokeWidth: 2,
|
|
@@ -21428,17 +21485,17 @@ function SvgExit(props) {
|
|
|
21428
21485
|
})));
|
|
21429
21486
|
}
|
|
21430
21487
|
|
|
21431
|
-
var _path$
|
|
21488
|
+
var _path$8;
|
|
21432
21489
|
|
|
21433
|
-
function _extends$
|
|
21490
|
+
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); }
|
|
21434
21491
|
|
|
21435
21492
|
function SvgUser(props) {
|
|
21436
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21493
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
21437
21494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21438
21495
|
fill: "none",
|
|
21439
21496
|
viewBox: "0 0 24 24",
|
|
21440
21497
|
stroke: "currentColor"
|
|
21441
|
-
}, props), _path$
|
|
21498
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
21442
21499
|
strokeLinecap: "round",
|
|
21443
21500
|
strokeLinejoin: "round",
|
|
21444
21501
|
strokeWidth: 2,
|
|
@@ -21446,18 +21503,18 @@ function SvgUser(props) {
|
|
|
21446
21503
|
})));
|
|
21447
21504
|
}
|
|
21448
21505
|
|
|
21449
|
-
var _path$
|
|
21506
|
+
var _path$7;
|
|
21450
21507
|
|
|
21451
|
-
function _extends$
|
|
21508
|
+
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); }
|
|
21452
21509
|
|
|
21453
21510
|
function SvgNewsletter(props) {
|
|
21454
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21511
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
21455
21512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21456
21513
|
className: "plc-h-5 plc-w-5",
|
|
21457
21514
|
fill: "none",
|
|
21458
21515
|
viewBox: "0 0 24 24",
|
|
21459
21516
|
stroke: "currentColor"
|
|
21460
|
-
}, props), _path$
|
|
21517
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
21461
21518
|
strokeLinecap: "round",
|
|
21462
21519
|
strokeLinejoin: "round",
|
|
21463
21520
|
strokeWidth: 2,
|
|
@@ -21465,18 +21522,18 @@ function SvgNewsletter(props) {
|
|
|
21465
21522
|
})));
|
|
21466
21523
|
}
|
|
21467
21524
|
|
|
21468
|
-
var _path$
|
|
21525
|
+
var _path$6;
|
|
21469
21526
|
|
|
21470
|
-
function _extends$
|
|
21527
|
+
function _extends$7() { _extends$7 = 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$7.apply(this, arguments); }
|
|
21471
21528
|
|
|
21472
21529
|
function SvgPaymentCard(props) {
|
|
21473
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21530
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
21474
21531
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21475
21532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21476
21533
|
fill: "none",
|
|
21477
21534
|
viewBox: "0 0 24 24",
|
|
21478
21535
|
stroke: "currentColor"
|
|
21479
|
-
}, props), _path$
|
|
21536
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
21480
21537
|
strokeLinecap: "round",
|
|
21481
21538
|
strokeLinejoin: "round",
|
|
21482
21539
|
strokeWidth: 2,
|
|
@@ -21484,18 +21541,18 @@ function SvgPaymentCard(props) {
|
|
|
21484
21541
|
})));
|
|
21485
21542
|
}
|
|
21486
21543
|
|
|
21487
|
-
var _path$
|
|
21544
|
+
var _path$5, _path2;
|
|
21488
21545
|
|
|
21489
|
-
function _extends$
|
|
21546
|
+
function _extends$6() { _extends$6 = 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$6.apply(this, arguments); }
|
|
21490
21547
|
|
|
21491
21548
|
function SvgLocationPin(props) {
|
|
21492
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21549
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
21493
21550
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21494
21551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21495
21552
|
fill: "none",
|
|
21496
21553
|
viewBox: "0 0 24 24",
|
|
21497
21554
|
stroke: "currentColor"
|
|
21498
|
-
}, props), _path$
|
|
21555
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
21499
21556
|
strokeLinecap: "round",
|
|
21500
21557
|
strokeLinejoin: "round",
|
|
21501
21558
|
strokeWidth: 2,
|
|
@@ -21510,10 +21567,10 @@ function SvgLocationPin(props) {
|
|
|
21510
21567
|
|
|
21511
21568
|
var _switch;
|
|
21512
21569
|
|
|
21513
|
-
function _extends$
|
|
21570
|
+
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
21514
21571
|
|
|
21515
21572
|
function SvgSubscription(props) {
|
|
21516
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21573
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
21517
21574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21518
21575
|
viewBox: "0 0 100 125",
|
|
21519
21576
|
fill: "currentColor"
|
|
@@ -21528,18 +21585,18 @@ function SvgSubscription(props) {
|
|
|
21528
21585
|
}))))));
|
|
21529
21586
|
}
|
|
21530
21587
|
|
|
21531
|
-
var _path$
|
|
21588
|
+
var _path$4;
|
|
21532
21589
|
|
|
21533
|
-
function _extends$
|
|
21590
|
+
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
21534
21591
|
|
|
21535
21592
|
function SvgShopping(props) {
|
|
21536
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21593
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
21537
21594
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21538
21595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21539
21596
|
fill: "none",
|
|
21540
21597
|
viewBox: "0 0 24 24",
|
|
21541
21598
|
stroke: "currentColor"
|
|
21542
|
-
}, props), _path$
|
|
21599
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
21543
21600
|
strokeLinecap: "round",
|
|
21544
21601
|
strokeLinejoin: "round",
|
|
21545
21602
|
strokeWidth: 2,
|
|
@@ -21547,18 +21604,18 @@ function SvgShopping(props) {
|
|
|
21547
21604
|
})));
|
|
21548
21605
|
}
|
|
21549
21606
|
|
|
21550
|
-
var _path$
|
|
21607
|
+
var _path$3;
|
|
21551
21608
|
|
|
21552
|
-
function _extends$
|
|
21609
|
+
function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
|
|
21553
21610
|
|
|
21554
21611
|
function SvgBookmark(props) {
|
|
21555
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21612
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
21556
21613
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21557
21614
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21558
21615
|
fill: "none",
|
|
21559
21616
|
viewBox: "0 0 24 24",
|
|
21560
21617
|
stroke: "currentColor"
|
|
21561
|
-
}, props), _path$
|
|
21618
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
21562
21619
|
strokeLinecap: "round",
|
|
21563
21620
|
strokeLinejoin: "round",
|
|
21564
21621
|
strokeWidth: 2,
|
|
@@ -21566,25 +21623,83 @@ function SvgBookmark(props) {
|
|
|
21566
21623
|
})));
|
|
21567
21624
|
}
|
|
21568
21625
|
|
|
21569
|
-
var _path$
|
|
21626
|
+
var _path$2;
|
|
21570
21627
|
|
|
21571
|
-
function _extends$
|
|
21628
|
+
function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
|
|
21572
21629
|
|
|
21573
21630
|
function SvgKey(props) {
|
|
21574
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21631
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
21575
21632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21576
21633
|
viewBox: "0 0 20 20",
|
|
21577
21634
|
fill: "currentColor"
|
|
21578
|
-
}, props), _path$
|
|
21635
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
21579
21636
|
fillRule: "evenodd",
|
|
21580
21637
|
d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
|
|
21581
21638
|
clipRule: "evenodd"
|
|
21582
21639
|
})));
|
|
21583
21640
|
}
|
|
21584
21641
|
|
|
21642
|
+
var _path$1;
|
|
21643
|
+
|
|
21644
|
+
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
21645
|
+
|
|
21646
|
+
function SvgDonate(props) {
|
|
21647
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
21648
|
+
width: 24,
|
|
21649
|
+
height: 24,
|
|
21650
|
+
fill: "currentColor",
|
|
21651
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21652
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
21653
|
+
d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
|
|
21654
|
+
})));
|
|
21655
|
+
}
|
|
21656
|
+
|
|
21657
|
+
const DonationsMenu = () => {
|
|
21658
|
+
const {
|
|
21659
|
+
t
|
|
21660
|
+
} = useTranslation("dashboard");
|
|
21661
|
+
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
21662
|
+
return /*#__PURE__*/React__default.createElement("tr", {
|
|
21663
|
+
key: sub.id,
|
|
21664
|
+
className: "plc-w-full plc-align-top pelcro-donation-row"
|
|
21665
|
+
}, /*#__PURE__*/React__default.createElement("td", {
|
|
21666
|
+
className: "plc-truncate"
|
|
21667
|
+
}, sub.plan.nickname && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
21668
|
+
className: "plc-font-semibold plc-text-gray-500 pelcro-donation-plan"
|
|
21669
|
+
}, sub.plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
21670
|
+
className: "plc-text-xs plc-text-gray-400 pelcro-donation-price"
|
|
21671
|
+
}, getFormattedPriceByLocal(sub.plan.amount * sub.quantity, sub.plan.currency, getPageOrDefaultLanguage())))), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement("div", {
|
|
21672
|
+
className: "plc-mb-4 plc-text-gray-500 pelcro-donation-date"
|
|
21673
|
+
}, sub.status && /*#__PURE__*/React__default.createElement("span", null, formatStartDate(sub.start)))));
|
|
21674
|
+
});
|
|
21675
|
+
return /*#__PURE__*/React__default.createElement("table", {
|
|
21676
|
+
className: "plc-w-full plc-table-fixed pelcro-donations-table"
|
|
21677
|
+
}, /*#__PURE__*/React__default.createElement("thead", {
|
|
21678
|
+
className: "plc-text-xs plc-font-semibold plc-tracking-wider plc-text-gray-400 plc-uppercase "
|
|
21679
|
+
}, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
21680
|
+
className: "plc-w-6/12 "
|
|
21681
|
+
}, t("labels.plan")), /*#__PURE__*/React__default.createElement("th", {
|
|
21682
|
+
className: "plc-w-6/12 "
|
|
21683
|
+
}, t("labels.startDate")))), /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
21684
|
+
className: "plc-h-4"
|
|
21685
|
+
}), subscriptions));
|
|
21686
|
+
};
|
|
21687
|
+
|
|
21688
|
+
function getDonationSubs() {
|
|
21689
|
+
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
21690
|
+
|
|
21691
|
+
return (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
21692
|
+
}
|
|
21693
|
+
|
|
21694
|
+
function formatStartDate(date) {
|
|
21695
|
+
const startDate = new Date(date);
|
|
21696
|
+
return new Intl.DateTimeFormat("en-CA").format(startDate);
|
|
21697
|
+
}
|
|
21698
|
+
|
|
21585
21699
|
const SUB_MENUS = {
|
|
21586
21700
|
PROFILE: "profile",
|
|
21587
21701
|
SUBSCRIPTIONS: "subscriptions",
|
|
21702
|
+
DONATIONS: "donations",
|
|
21588
21703
|
PAYMENT_CARDS: "payment-cards",
|
|
21589
21704
|
ADDRESSES: "addresses",
|
|
21590
21705
|
GIFTS: "gifts",
|
|
@@ -22112,6 +22227,14 @@ class Dashboard extends Component {
|
|
|
22112
22227
|
displayProductSelect: this.displayProductSelect,
|
|
22113
22228
|
displayRedeem: this.displayRedeem
|
|
22114
22229
|
})
|
|
22230
|
+
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
22231
|
+
show: hasDonationSubs(),
|
|
22232
|
+
name: SUB_MENUS.DONATIONS,
|
|
22233
|
+
icon: /*#__PURE__*/React__default.createElement(SvgDonate, {
|
|
22234
|
+
className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
|
|
22235
|
+
}),
|
|
22236
|
+
title: this.locale("labels.donations"),
|
|
22237
|
+
content: /*#__PURE__*/React__default.createElement(DonationsMenu, null)
|
|
22115
22238
|
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
22116
22239
|
name: SUB_MENUS.GIFTS,
|
|
22117
22240
|
icon: /*#__PURE__*/React__default.createElement(SvgGift, null),
|
|
@@ -22138,6 +22261,13 @@ class Dashboard extends Component {
|
|
|
22138
22261
|
|
|
22139
22262
|
}
|
|
22140
22263
|
|
|
22264
|
+
function hasDonationSubs() {
|
|
22265
|
+
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
22266
|
+
|
|
22267
|
+
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
22268
|
+
return donations.length > 0;
|
|
22269
|
+
}
|
|
22270
|
+
|
|
22141
22271
|
const DashboardWithTrans = withTranslation("dashboard")(Dashboard);
|
|
22142
22272
|
|
|
22143
22273
|
// The button in the lower right that shows the dashboard.
|