@pelcro/react-pelcro-js 2.7.0-beta.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +337 -206
- package/dist/index.esm.js +337 -206
- 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
|
}
|
|
@@ -10307,15 +10321,15 @@ function LoginView(props) {
|
|
|
10307
10321
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10308
10322
|
}
|
|
10309
10323
|
|
|
10310
|
-
var _path$
|
|
10324
|
+
var _path$l, _path2$1, _path3;
|
|
10311
10325
|
|
|
10312
|
-
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); }
|
|
10313
10327
|
|
|
10314
10328
|
function SvgPelcroAuthorship(props) {
|
|
10315
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10329
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
10316
10330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10317
10331
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10318
|
-
}, props), _path$
|
|
10332
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
10319
10333
|
fill: "none",
|
|
10320
10334
|
stroke: "#4a4a4a",
|
|
10321
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"
|
|
@@ -11031,42 +11045,80 @@ class SelectModal extends Component {
|
|
|
11031
11045
|
return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
|
|
11032
11046
|
});
|
|
11033
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
|
+
|
|
11034
11081
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11035
11082
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11036
11083
|
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
return productsToShow.map((product, i) => {
|
|
11040
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
11041
|
-
key: product.id,
|
|
11042
|
-
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"
|
|
11043
|
-
}, product.image && /*#__PURE__*/React__default.createElement("img", {
|
|
11044
|
-
alt: `image of ${product.name}`,
|
|
11045
|
-
src: product.image,
|
|
11046
|
-
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
11047
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11048
|
-
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
11049
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11050
|
-
className: "plc-w-full pelcro-select-product-header"
|
|
11051
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
11052
|
-
className: "plc-font-bold pelcro-select-product-title"
|
|
11053
|
-
}, product.name), /*#__PURE__*/React__default.createElement("p", {
|
|
11054
|
-
className: "plc-text-xs pelcro-select-product-description"
|
|
11055
|
-
}, product.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
11056
|
-
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
11057
|
-
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
11058
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
11059
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
11060
|
-
onClick: productButtonCallback,
|
|
11061
|
-
"data-key": product.id,
|
|
11062
|
-
id: "pelcro-select-product-back-button",
|
|
11063
|
-
className: "plc-ml-auto plc-text-xs"
|
|
11064
|
-
}, i === 0 && {
|
|
11065
|
-
autoFocus: true
|
|
11066
|
-
}), productButtonLabel))));
|
|
11084
|
+
return productsToShow.map((product, index) => {
|
|
11085
|
+
return this.renderOneProduct(product, index);
|
|
11067
11086
|
});
|
|
11068
11087
|
});
|
|
11069
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
|
+
|
|
11070
11122
|
_defineProperty$3(this, "renderPlans", () => {
|
|
11071
11123
|
return this.state.planList.map(plan => {
|
|
11072
11124
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
@@ -11193,7 +11245,7 @@ class SelectModal extends Component {
|
|
|
11193
11245
|
}
|
|
11194
11246
|
|
|
11195
11247
|
render() {
|
|
11196
|
-
var _window$Pelcro$
|
|
11248
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
11197
11249
|
|
|
11198
11250
|
const {
|
|
11199
11251
|
disableGifting
|
|
@@ -11227,9 +11279,9 @@ class SelectModal extends Component {
|
|
|
11227
11279
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11228
11280
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11229
11281
|
className: "plc-text-2xl plc-font-semibold"
|
|
11230
|
-
}, 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", {
|
|
11231
11283
|
className: "pelcro-select-products-wrapper"
|
|
11232
|
-
}, 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", {
|
|
11233
11285
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
11234
11286
|
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default.createElement("div", {
|
|
11235
11287
|
className: "plc-flex plc-justify-center plc-mt-2"
|
|
@@ -13884,17 +13936,17 @@ const SubmitPaymentMethod = ({
|
|
|
13884
13936
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
13885
13937
|
};
|
|
13886
13938
|
|
|
13887
|
-
var _path$
|
|
13939
|
+
var _path$k;
|
|
13888
13940
|
|
|
13889
|
-
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); }
|
|
13890
13942
|
|
|
13891
13943
|
function SvgArrowLeft(props) {
|
|
13892
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13944
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
13893
13945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13894
13946
|
fill: "none",
|
|
13895
13947
|
viewBox: "0 0 24 24",
|
|
13896
13948
|
stroke: "currentColor"
|
|
13897
|
-
}, props), _path$
|
|
13949
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
13898
13950
|
strokeLinecap: "round",
|
|
13899
13951
|
strokeLinejoin: "round",
|
|
13900
13952
|
strokeWidth: 2,
|
|
@@ -13976,17 +14028,17 @@ const CouponCodeField = props => {
|
|
|
13976
14028
|
}, props));
|
|
13977
14029
|
};
|
|
13978
14030
|
|
|
13979
|
-
var _path$
|
|
14031
|
+
var _path$j;
|
|
13980
14032
|
|
|
13981
|
-
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); }
|
|
13982
14034
|
|
|
13983
14035
|
function SvgTicket(props) {
|
|
13984
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14036
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
13985
14037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13986
14038
|
fill: "none",
|
|
13987
14039
|
viewBox: "0 0 24 24",
|
|
13988
14040
|
stroke: "currentColor"
|
|
13989
|
-
}, props), _path$
|
|
14041
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
13990
14042
|
strokeLinecap: "round",
|
|
13991
14043
|
strokeLinejoin: "round",
|
|
13992
14044
|
strokeWidth: 2,
|
|
@@ -14345,16 +14397,16 @@ const BankRedirection = () => {
|
|
|
14345
14397
|
}));
|
|
14346
14398
|
};
|
|
14347
14399
|
|
|
14348
|
-
var _path$
|
|
14400
|
+
var _path$i;
|
|
14349
14401
|
|
|
14350
|
-
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); }
|
|
14351
14403
|
|
|
14352
14404
|
function SvgLock(props) {
|
|
14353
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14405
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
14354
14406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14355
14407
|
viewBox: "0 0 20 20",
|
|
14356
14408
|
fill: "currentColor"
|
|
14357
|
-
}, props), _path$
|
|
14409
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
14358
14410
|
fillRule: "evenodd",
|
|
14359
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",
|
|
14360
14412
|
clipRule: "evenodd"
|
|
@@ -14576,12 +14628,12 @@ function SubscriptionRenewModal({
|
|
|
14576
14628
|
}
|
|
14577
14629
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
14578
14630
|
|
|
14579
|
-
var _path$
|
|
14631
|
+
var _path$h;
|
|
14580
14632
|
|
|
14581
|
-
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); }
|
|
14582
14634
|
|
|
14583
14635
|
function SvgGift(props) {
|
|
14584
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14636
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
14585
14637
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
14586
14638
|
fill: "none",
|
|
14587
14639
|
stroke: "currentColor",
|
|
@@ -14590,7 +14642,7 @@ function SvgGift(props) {
|
|
|
14590
14642
|
strokeWidth: 2,
|
|
14591
14643
|
viewBox: "0 0 24 24",
|
|
14592
14644
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14593
|
-
}, props), _path$
|
|
14645
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
14594
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"
|
|
14595
14647
|
})));
|
|
14596
14648
|
}
|
|
@@ -15589,17 +15641,17 @@ const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone
|
|
|
15589
15641
|
|
|
15590
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";
|
|
15591
15643
|
|
|
15592
|
-
var _path$
|
|
15644
|
+
var _path$g;
|
|
15593
15645
|
|
|
15594
|
-
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); }
|
|
15595
15647
|
|
|
15596
15648
|
function SvgEdit(props) {
|
|
15597
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15649
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
15598
15650
|
className: "plc-w-6 plc-h-6",
|
|
15599
15651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15600
15652
|
viewBox: "0 0 20 20",
|
|
15601
15653
|
fill: "currentColor"
|
|
15602
|
-
}, props), _path$
|
|
15654
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
15603
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"
|
|
15604
15656
|
})));
|
|
15605
15657
|
}
|
|
@@ -18709,18 +18761,18 @@ const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(La
|
|
|
18709
18761
|
store: store$4
|
|
18710
18762
|
}, props));
|
|
18711
18763
|
|
|
18712
|
-
var _path$
|
|
18764
|
+
var _path$f;
|
|
18713
18765
|
|
|
18714
|
-
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); }
|
|
18715
18767
|
|
|
18716
18768
|
function SvgInfoCircle(props) {
|
|
18717
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18769
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
18718
18770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18719
18771
|
className: "plc-w-5 plc-h-5",
|
|
18720
18772
|
fill: "none",
|
|
18721
18773
|
viewBox: "0 0 24 24",
|
|
18722
18774
|
stroke: "currentColor"
|
|
18723
|
-
}, props), _path$
|
|
18775
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
18724
18776
|
strokeLinecap: "round",
|
|
18725
18777
|
strokeLinejoin: "round",
|
|
18726
18778
|
strokeWidth: 2,
|
|
@@ -18878,7 +18930,7 @@ function GiftCreateMessage(props) {
|
|
|
18878
18930
|
return /*#__PURE__*/React__default.createElement(TextArea, Object.assign({
|
|
18879
18931
|
onChange: e => handleInputChange(e.target.value),
|
|
18880
18932
|
value: state.giftMessage,
|
|
18881
|
-
maxLength: "
|
|
18933
|
+
maxLength: "200",
|
|
18882
18934
|
rows: 3,
|
|
18883
18935
|
tooltipText: t("gift.messages.giftMessageInfo")
|
|
18884
18936
|
}, props));
|
|
@@ -19707,8 +19759,8 @@ const PaymentMethodSelectModal = ({
|
|
|
19707
19759
|
};
|
|
19708
19760
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
19709
19761
|
|
|
19710
|
-
function _extends$
|
|
19711
|
-
_extends$
|
|
19762
|
+
function _extends$g() {
|
|
19763
|
+
_extends$g = Object.assign || function (target) {
|
|
19712
19764
|
for (var i = 1; i < arguments.length; i++) {
|
|
19713
19765
|
var source = arguments[i];
|
|
19714
19766
|
|
|
@@ -19722,7 +19774,7 @@ function _extends$f() {
|
|
|
19722
19774
|
return target;
|
|
19723
19775
|
};
|
|
19724
19776
|
|
|
19725
|
-
return _extends$
|
|
19777
|
+
return _extends$g.apply(this, arguments);
|
|
19726
19778
|
}
|
|
19727
19779
|
|
|
19728
19780
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -19906,7 +19958,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
19906
19958
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
19907
19959
|
return null;
|
|
19908
19960
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
19909
|
-
return _render(_extends$
|
|
19961
|
+
return _render(_extends$g({}, _rest, {
|
|
19910
19962
|
hidden: true,
|
|
19911
19963
|
style: {
|
|
19912
19964
|
display: 'none'
|
|
@@ -20434,7 +20486,7 @@ function TransitionChild(props) {
|
|
|
20434
20486
|
var passthroughProps = rest;
|
|
20435
20487
|
return React__default.createElement(NestingContext.Provider, {
|
|
20436
20488
|
value: nesting
|
|
20437
|
-
}, render(_extends$
|
|
20489
|
+
}, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
20438
20490
|
}
|
|
20439
20491
|
|
|
20440
20492
|
function Transition(props) {
|
|
@@ -20478,7 +20530,7 @@ function Transition(props) {
|
|
|
20478
20530
|
value: nestingBag
|
|
20479
20531
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
20480
20532
|
value: transitionBag
|
|
20481
|
-
}, render(_extends$
|
|
20533
|
+
}, render(_extends$g({}, sharedProps, {
|
|
20482
20534
|
as: Fragment,
|
|
20483
20535
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
20484
20536
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -20605,12 +20657,12 @@ var ActionTypes;
|
|
|
20605
20657
|
})(ActionTypes || (ActionTypes = {}));
|
|
20606
20658
|
|
|
20607
20659
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
20608
|
-
return _extends$
|
|
20660
|
+
return _extends$g({}, state, {
|
|
20609
20661
|
activeItemIndex: null,
|
|
20610
20662
|
menuState: MenuStates.Closed
|
|
20611
20663
|
});
|
|
20612
20664
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
20613
|
-
return _extends$
|
|
20665
|
+
return _extends$g({}, state, {
|
|
20614
20666
|
menuState: MenuStates.Open
|
|
20615
20667
|
});
|
|
20616
20668
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -20629,7 +20681,7 @@ var ActionTypes;
|
|
|
20629
20681
|
}
|
|
20630
20682
|
});
|
|
20631
20683
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
20632
|
-
return _extends$
|
|
20684
|
+
return _extends$g({}, state, {
|
|
20633
20685
|
searchQuery: '',
|
|
20634
20686
|
activeItemIndex: activeItemIndex
|
|
20635
20687
|
});
|
|
@@ -20640,19 +20692,19 @@ var ActionTypes;
|
|
|
20640
20692
|
|
|
20641
20693
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
20642
20694
|
});
|
|
20643
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
20695
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
|
|
20644
20696
|
searchQuery: searchQuery
|
|
20645
20697
|
});
|
|
20646
|
-
return _extends$
|
|
20698
|
+
return _extends$g({}, state, {
|
|
20647
20699
|
searchQuery: searchQuery,
|
|
20648
20700
|
activeItemIndex: match
|
|
20649
20701
|
});
|
|
20650
20702
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
20651
|
-
return _extends$
|
|
20703
|
+
return _extends$g({}, state, {
|
|
20652
20704
|
searchQuery: ''
|
|
20653
20705
|
});
|
|
20654
20706
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
20655
|
-
return _extends$
|
|
20707
|
+
return _extends$g({}, state, {
|
|
20656
20708
|
items: [].concat(state.items, [{
|
|
20657
20709
|
id: action.id,
|
|
20658
20710
|
dataRef: action.dataRef
|
|
@@ -20665,7 +20717,7 @@ var ActionTypes;
|
|
|
20665
20717
|
return a.id === action.id;
|
|
20666
20718
|
});
|
|
20667
20719
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
20668
|
-
return _extends$
|
|
20720
|
+
return _extends$g({}, state, {
|
|
20669
20721
|
items: nextItems,
|
|
20670
20722
|
activeItemIndex: function () {
|
|
20671
20723
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -20704,19 +20756,19 @@ var ActionTypes$1;
|
|
|
20704
20756
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
20705
20757
|
if (state.disabled) return state;
|
|
20706
20758
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20707
|
-
return _extends$
|
|
20759
|
+
return _extends$g({}, state, {
|
|
20708
20760
|
activeOptionIndex: null,
|
|
20709
20761
|
listboxState: ListboxStates.Closed
|
|
20710
20762
|
});
|
|
20711
20763
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
20712
20764
|
if (state.disabled) return state;
|
|
20713
20765
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
20714
|
-
return _extends$
|
|
20766
|
+
return _extends$g({}, state, {
|
|
20715
20767
|
listboxState: ListboxStates.Open
|
|
20716
20768
|
});
|
|
20717
20769
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
20718
20770
|
if (state.disabled === action.disabled) return state;
|
|
20719
|
-
return _extends$
|
|
20771
|
+
return _extends$g({}, state, {
|
|
20720
20772
|
disabled: action.disabled
|
|
20721
20773
|
});
|
|
20722
20774
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -20737,7 +20789,7 @@ var ActionTypes$1;
|
|
|
20737
20789
|
}
|
|
20738
20790
|
});
|
|
20739
20791
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
20740
|
-
return _extends$
|
|
20792
|
+
return _extends$g({}, state, {
|
|
20741
20793
|
searchQuery: '',
|
|
20742
20794
|
activeOptionIndex: activeOptionIndex
|
|
20743
20795
|
});
|
|
@@ -20750,10 +20802,10 @@ var ActionTypes$1;
|
|
|
20750
20802
|
|
|
20751
20803
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
20752
20804
|
});
|
|
20753
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
20805
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
|
|
20754
20806
|
searchQuery: searchQuery
|
|
20755
20807
|
});
|
|
20756
|
-
return _extends$
|
|
20808
|
+
return _extends$g({}, state, {
|
|
20757
20809
|
searchQuery: searchQuery,
|
|
20758
20810
|
activeOptionIndex: match
|
|
20759
20811
|
});
|
|
@@ -20761,11 +20813,11 @@ var ActionTypes$1;
|
|
|
20761
20813
|
if (state.disabled) return state;
|
|
20762
20814
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20763
20815
|
if (state.searchQuery === '') return state;
|
|
20764
|
-
return _extends$
|
|
20816
|
+
return _extends$g({}, state, {
|
|
20765
20817
|
searchQuery: ''
|
|
20766
20818
|
});
|
|
20767
20819
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
20768
|
-
return _extends$
|
|
20820
|
+
return _extends$g({}, state, {
|
|
20769
20821
|
options: [].concat(state.options, [{
|
|
20770
20822
|
id: action.id,
|
|
20771
20823
|
dataRef: action.dataRef
|
|
@@ -20778,7 +20830,7 @@ var ActionTypes$1;
|
|
|
20778
20830
|
return a.id === action.id;
|
|
20779
20831
|
});
|
|
20780
20832
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
20781
|
-
return _extends$
|
|
20833
|
+
return _extends$g({}, state, {
|
|
20782
20834
|
options: nextOptions,
|
|
20783
20835
|
activeOptionIndex: function () {
|
|
20784
20836
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -20839,18 +20891,18 @@ const getPaymentCardIcon = name => {
|
|
|
20839
20891
|
}));
|
|
20840
20892
|
};
|
|
20841
20893
|
|
|
20842
|
-
var _path$
|
|
20894
|
+
var _path$e;
|
|
20843
20895
|
|
|
20844
|
-
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); }
|
|
20845
20897
|
|
|
20846
20898
|
function SvgChevronRight(props) {
|
|
20847
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20899
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
20848
20900
|
className: "plc-w-6 plc-h-6",
|
|
20849
20901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20850
20902
|
fill: "none",
|
|
20851
20903
|
viewBox: "0 0 24 24",
|
|
20852
20904
|
stroke: "currentColor"
|
|
20853
|
-
}, props), _path$
|
|
20905
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
20854
20906
|
strokeLinecap: "round",
|
|
20855
20907
|
strokeLinejoin: "round",
|
|
20856
20908
|
strokeWidth: 2,
|
|
@@ -21066,18 +21118,18 @@ const SavedItems = ({
|
|
|
21066
21118
|
});
|
|
21067
21119
|
};
|
|
21068
21120
|
|
|
21069
|
-
var _path$
|
|
21121
|
+
var _path$d;
|
|
21070
21122
|
|
|
21071
|
-
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); }
|
|
21072
21124
|
|
|
21073
21125
|
function SvgRefresh(props) {
|
|
21074
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21126
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21075
21127
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21076
21128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21077
21129
|
fill: "none",
|
|
21078
21130
|
viewBox: "0 0 24 24",
|
|
21079
21131
|
stroke: "currentColor"
|
|
21080
|
-
}, props), _path$
|
|
21132
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21081
21133
|
strokeLinecap: "round",
|
|
21082
21134
|
strokeLinejoin: "round",
|
|
21083
21135
|
strokeWidth: 2,
|
|
@@ -21085,35 +21137,35 @@ function SvgRefresh(props) {
|
|
|
21085
21137
|
})));
|
|
21086
21138
|
}
|
|
21087
21139
|
|
|
21088
|
-
var _path$
|
|
21140
|
+
var _path$c;
|
|
21089
21141
|
|
|
21090
|
-
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); }
|
|
21091
21143
|
|
|
21092
21144
|
function SvgCalendar(props) {
|
|
21093
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21145
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
21094
21146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21095
21147
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21096
21148
|
viewBox: "0 0 20 20",
|
|
21097
21149
|
fill: "currentColor"
|
|
21098
|
-
}, props), _path$
|
|
21150
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
21099
21151
|
fillRule: "evenodd",
|
|
21100
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",
|
|
21101
21153
|
clipRule: "evenodd"
|
|
21102
21154
|
})));
|
|
21103
21155
|
}
|
|
21104
21156
|
|
|
21105
|
-
var _path$
|
|
21157
|
+
var _path$b;
|
|
21106
21158
|
|
|
21107
|
-
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); }
|
|
21108
21160
|
|
|
21109
21161
|
function SvgPlus(props) {
|
|
21110
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21162
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
21111
21163
|
className: "plc-w-5 plc-h-5",
|
|
21112
21164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21113
21165
|
fill: "none",
|
|
21114
21166
|
viewBox: "0 0 24 24",
|
|
21115
21167
|
stroke: "currentColor"
|
|
21116
|
-
}, props), _path$
|
|
21168
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
21117
21169
|
strokeLinecap: "round",
|
|
21118
21170
|
strokeLinejoin: "round",
|
|
21119
21171
|
strokeWidth: 2,
|
|
@@ -21121,17 +21173,17 @@ function SvgPlus(props) {
|
|
|
21121
21173
|
})));
|
|
21122
21174
|
}
|
|
21123
21175
|
|
|
21124
|
-
var _path$
|
|
21176
|
+
var _path$a;
|
|
21125
21177
|
|
|
21126
|
-
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); }
|
|
21127
21179
|
|
|
21128
21180
|
function SvgCheckMark(props) {
|
|
21129
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21181
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
21130
21182
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21131
21183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21132
21184
|
viewBox: "0 0 20 20",
|
|
21133
21185
|
fill: "currentColor"
|
|
21134
|
-
}, props), _path$
|
|
21186
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
21135
21187
|
fillRule: "evenodd",
|
|
21136
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",
|
|
21137
21189
|
clipRule: "evenodd"
|
|
@@ -21193,9 +21245,9 @@ const SubscriptionsItems = ({
|
|
|
21193
21245
|
const {
|
|
21194
21246
|
t
|
|
21195
21247
|
} = useTranslation("dashboard");
|
|
21196
|
-
const subs =
|
|
21197
|
-
if (
|
|
21198
|
-
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 => {
|
|
21199
21251
|
const isActive = activeMenu === sub.id; // Cancel button click handlers
|
|
21200
21252
|
|
|
21201
21253
|
const onCancelClick = () => {
|
|
@@ -21326,6 +21378,12 @@ const SubscriptionsItems = ({
|
|
|
21326
21378
|
});
|
|
21327
21379
|
};
|
|
21328
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
|
+
|
|
21329
21387
|
/**
|
|
21330
21388
|
* @typedef {Object} AccordionPropsType
|
|
21331
21389
|
* @property {string} initialActiveMenu the initial active menu
|
|
@@ -21408,18 +21466,18 @@ Accordion.item = function AccordionItem({
|
|
|
21408
21466
|
}, content)) : null;
|
|
21409
21467
|
};
|
|
21410
21468
|
|
|
21411
|
-
var _path$
|
|
21469
|
+
var _path$9;
|
|
21412
21470
|
|
|
21413
|
-
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); }
|
|
21414
21472
|
|
|
21415
21473
|
function SvgExit(props) {
|
|
21416
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21474
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
21417
21475
|
className: "plc-w-6 plc-h-6",
|
|
21418
21476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21419
21477
|
fill: "none",
|
|
21420
21478
|
viewBox: "0 0 24 24",
|
|
21421
21479
|
stroke: "currentColor"
|
|
21422
|
-
}, props), _path$
|
|
21480
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
21423
21481
|
strokeLinecap: "round",
|
|
21424
21482
|
strokeLinejoin: "round",
|
|
21425
21483
|
strokeWidth: 2,
|
|
@@ -21427,17 +21485,17 @@ function SvgExit(props) {
|
|
|
21427
21485
|
})));
|
|
21428
21486
|
}
|
|
21429
21487
|
|
|
21430
|
-
var _path$
|
|
21488
|
+
var _path$8;
|
|
21431
21489
|
|
|
21432
|
-
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); }
|
|
21433
21491
|
|
|
21434
21492
|
function SvgUser(props) {
|
|
21435
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21493
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
21436
21494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21437
21495
|
fill: "none",
|
|
21438
21496
|
viewBox: "0 0 24 24",
|
|
21439
21497
|
stroke: "currentColor"
|
|
21440
|
-
}, props), _path$
|
|
21498
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
21441
21499
|
strokeLinecap: "round",
|
|
21442
21500
|
strokeLinejoin: "round",
|
|
21443
21501
|
strokeWidth: 2,
|
|
@@ -21445,18 +21503,18 @@ function SvgUser(props) {
|
|
|
21445
21503
|
})));
|
|
21446
21504
|
}
|
|
21447
21505
|
|
|
21448
|
-
var _path$
|
|
21506
|
+
var _path$7;
|
|
21449
21507
|
|
|
21450
|
-
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); }
|
|
21451
21509
|
|
|
21452
21510
|
function SvgNewsletter(props) {
|
|
21453
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21511
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
21454
21512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21455
21513
|
className: "plc-h-5 plc-w-5",
|
|
21456
21514
|
fill: "none",
|
|
21457
21515
|
viewBox: "0 0 24 24",
|
|
21458
21516
|
stroke: "currentColor"
|
|
21459
|
-
}, props), _path$
|
|
21517
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
21460
21518
|
strokeLinecap: "round",
|
|
21461
21519
|
strokeLinejoin: "round",
|
|
21462
21520
|
strokeWidth: 2,
|
|
@@ -21464,18 +21522,18 @@ function SvgNewsletter(props) {
|
|
|
21464
21522
|
})));
|
|
21465
21523
|
}
|
|
21466
21524
|
|
|
21467
|
-
var _path$
|
|
21525
|
+
var _path$6;
|
|
21468
21526
|
|
|
21469
|
-
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); }
|
|
21470
21528
|
|
|
21471
21529
|
function SvgPaymentCard(props) {
|
|
21472
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21530
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
21473
21531
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21474
21532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21475
21533
|
fill: "none",
|
|
21476
21534
|
viewBox: "0 0 24 24",
|
|
21477
21535
|
stroke: "currentColor"
|
|
21478
|
-
}, props), _path$
|
|
21536
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
21479
21537
|
strokeLinecap: "round",
|
|
21480
21538
|
strokeLinejoin: "round",
|
|
21481
21539
|
strokeWidth: 2,
|
|
@@ -21483,18 +21541,18 @@ function SvgPaymentCard(props) {
|
|
|
21483
21541
|
})));
|
|
21484
21542
|
}
|
|
21485
21543
|
|
|
21486
|
-
var _path$
|
|
21544
|
+
var _path$5, _path2;
|
|
21487
21545
|
|
|
21488
|
-
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); }
|
|
21489
21547
|
|
|
21490
21548
|
function SvgLocationPin(props) {
|
|
21491
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21549
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
21492
21550
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21493
21551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21494
21552
|
fill: "none",
|
|
21495
21553
|
viewBox: "0 0 24 24",
|
|
21496
21554
|
stroke: "currentColor"
|
|
21497
|
-
}, props), _path$
|
|
21555
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
21498
21556
|
strokeLinecap: "round",
|
|
21499
21557
|
strokeLinejoin: "round",
|
|
21500
21558
|
strokeWidth: 2,
|
|
@@ -21509,10 +21567,10 @@ function SvgLocationPin(props) {
|
|
|
21509
21567
|
|
|
21510
21568
|
var _switch;
|
|
21511
21569
|
|
|
21512
|
-
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); }
|
|
21513
21571
|
|
|
21514
21572
|
function SvgSubscription(props) {
|
|
21515
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21573
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
21516
21574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21517
21575
|
viewBox: "0 0 100 125",
|
|
21518
21576
|
fill: "currentColor"
|
|
@@ -21527,18 +21585,18 @@ function SvgSubscription(props) {
|
|
|
21527
21585
|
}))))));
|
|
21528
21586
|
}
|
|
21529
21587
|
|
|
21530
|
-
var _path$
|
|
21588
|
+
var _path$4;
|
|
21531
21589
|
|
|
21532
|
-
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); }
|
|
21533
21591
|
|
|
21534
21592
|
function SvgShopping(props) {
|
|
21535
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21593
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
21536
21594
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21537
21595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21538
21596
|
fill: "none",
|
|
21539
21597
|
viewBox: "0 0 24 24",
|
|
21540
21598
|
stroke: "currentColor"
|
|
21541
|
-
}, props), _path$
|
|
21599
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
21542
21600
|
strokeLinecap: "round",
|
|
21543
21601
|
strokeLinejoin: "round",
|
|
21544
21602
|
strokeWidth: 2,
|
|
@@ -21546,18 +21604,18 @@ function SvgShopping(props) {
|
|
|
21546
21604
|
})));
|
|
21547
21605
|
}
|
|
21548
21606
|
|
|
21549
|
-
var _path$
|
|
21607
|
+
var _path$3;
|
|
21550
21608
|
|
|
21551
|
-
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); }
|
|
21552
21610
|
|
|
21553
21611
|
function SvgBookmark(props) {
|
|
21554
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21612
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
21555
21613
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21556
21614
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21557
21615
|
fill: "none",
|
|
21558
21616
|
viewBox: "0 0 24 24",
|
|
21559
21617
|
stroke: "currentColor"
|
|
21560
|
-
}, props), _path$
|
|
21618
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
21561
21619
|
strokeLinecap: "round",
|
|
21562
21620
|
strokeLinejoin: "round",
|
|
21563
21621
|
strokeWidth: 2,
|
|
@@ -21565,25 +21623,83 @@ function SvgBookmark(props) {
|
|
|
21565
21623
|
})));
|
|
21566
21624
|
}
|
|
21567
21625
|
|
|
21568
|
-
var _path$
|
|
21626
|
+
var _path$2;
|
|
21569
21627
|
|
|
21570
|
-
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); }
|
|
21571
21629
|
|
|
21572
21630
|
function SvgKey(props) {
|
|
21573
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21631
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
21574
21632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21575
21633
|
viewBox: "0 0 20 20",
|
|
21576
21634
|
fill: "currentColor"
|
|
21577
|
-
}, props), _path$
|
|
21635
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
21578
21636
|
fillRule: "evenodd",
|
|
21579
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",
|
|
21580
21638
|
clipRule: "evenodd"
|
|
21581
21639
|
})));
|
|
21582
21640
|
}
|
|
21583
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
|
+
|
|
21584
21699
|
const SUB_MENUS = {
|
|
21585
21700
|
PROFILE: "profile",
|
|
21586
21701
|
SUBSCRIPTIONS: "subscriptions",
|
|
21702
|
+
DONATIONS: "donations",
|
|
21587
21703
|
PAYMENT_CARDS: "payment-cards",
|
|
21588
21704
|
ADDRESSES: "addresses",
|
|
21589
21705
|
GIFTS: "gifts",
|
|
@@ -22111,6 +22227,14 @@ class Dashboard extends Component {
|
|
|
22111
22227
|
displayProductSelect: this.displayProductSelect,
|
|
22112
22228
|
displayRedeem: this.displayRedeem
|
|
22113
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)
|
|
22114
22238
|
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
22115
22239
|
name: SUB_MENUS.GIFTS,
|
|
22116
22240
|
icon: /*#__PURE__*/React__default.createElement(SvgGift, null),
|
|
@@ -22137,6 +22261,13 @@ class Dashboard extends Component {
|
|
|
22137
22261
|
|
|
22138
22262
|
}
|
|
22139
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
|
+
|
|
22140
22271
|
const DashboardWithTrans = withTranslation("dashboard")(Dashboard);
|
|
22141
22272
|
|
|
22142
22273
|
// The button in the lower right that shows the dashboard.
|