@pelcro/react-pelcro-js 3.26.0-beta.27 → 3.26.0-beta.29
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 +1477 -534
- package/dist/index.esm.js +1468 -535
- package/dist/pelcro.css +39 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3324,9 +3324,23 @@ var select$6 = {
|
|
|
3324
3324
|
changePaymentMethod: "Change"
|
|
3325
3325
|
}
|
|
3326
3326
|
};
|
|
3327
|
+
var create$5 = {
|
|
3328
|
+
title: "Add a new payment method",
|
|
3329
|
+
subtitle: "Enter the fields below to add your credit card information"
|
|
3330
|
+
};
|
|
3327
3331
|
var paymentMethod_en = {
|
|
3328
3332
|
update: update$3,
|
|
3329
|
-
select: select$6
|
|
3333
|
+
select: select$6,
|
|
3334
|
+
"delete": {
|
|
3335
|
+
title: "Delete payment method",
|
|
3336
|
+
subtitle: "This payment method could be associated with active subscriptions or serve as the default payment method. Please choose from the available options below for replacement.",
|
|
3337
|
+
options: {
|
|
3338
|
+
select: "Select an existing payment method",
|
|
3339
|
+
add: "Add a new payment method"
|
|
3340
|
+
},
|
|
3341
|
+
paymentMethodReplaced: "Payment Method Successfully Deleted and Replaced"
|
|
3342
|
+
},
|
|
3343
|
+
create: create$5
|
|
3330
3344
|
};
|
|
3331
3345
|
|
|
3332
3346
|
var title$z = "Enter your email to subscribe to our newsletter";
|
|
@@ -3432,7 +3446,8 @@ var labels$15 = {
|
|
|
3432
3446
|
order: "Order",
|
|
3433
3447
|
amount: "Amount",
|
|
3434
3448
|
email: "Email",
|
|
3435
|
-
password: "Password"
|
|
3449
|
+
password: "Password",
|
|
3450
|
+
isDefault: "Set as default"
|
|
3436
3451
|
};
|
|
3437
3452
|
var checkoutForm_en = {
|
|
3438
3453
|
messages: messages$18,
|
|
@@ -3895,6 +3910,8 @@ var labels$Z = {
|
|
|
3895
3910
|
renewsOn: "Renews",
|
|
3896
3911
|
canceledOn: "Canceled on",
|
|
3897
3912
|
recipient: "Recipient",
|
|
3913
|
+
addPaymentSource: "Add payment method",
|
|
3914
|
+
setDefault: "Set as default",
|
|
3898
3915
|
addAddress: "Add address",
|
|
3899
3916
|
editAddress: "Edit address",
|
|
3900
3917
|
addSubscription: "New Subscription",
|
|
@@ -3956,6 +3973,13 @@ var messages$_ = {
|
|
|
3956
3973
|
loading: "Unsuspending your donation",
|
|
3957
3974
|
success: "Donation is successfully unsuspended",
|
|
3958
3975
|
error: "Error while unsuspending your donation"
|
|
3976
|
+
},
|
|
3977
|
+
paymentMethodDeletion: {
|
|
3978
|
+
isSureToDelete: "Are you sure you want to delete this payment method?",
|
|
3979
|
+
loading: "Deleting your payment method",
|
|
3980
|
+
success: "Payment method is successfully deleted",
|
|
3981
|
+
error: "Error while deleting your payment method",
|
|
3982
|
+
nonDeletable: "This payment method can't be deleted"
|
|
3959
3983
|
}
|
|
3960
3984
|
};
|
|
3961
3985
|
var dashboard_en = {
|
|
@@ -4252,9 +4276,23 @@ var select$4 = {
|
|
|
4252
4276
|
changePaymentMethod: "Modifier"
|
|
4253
4277
|
}
|
|
4254
4278
|
};
|
|
4279
|
+
var create$4 = {
|
|
4280
|
+
title: "Ajouter un nouveau mode de paiement",
|
|
4281
|
+
subtitle: "Saisissez les champs ci-dessous pour ajouter les informations relatives à votre carte de crédit"
|
|
4282
|
+
};
|
|
4255
4283
|
var paymentMethod_fr = {
|
|
4256
4284
|
update: update$2,
|
|
4257
|
-
select: select$4
|
|
4285
|
+
select: select$4,
|
|
4286
|
+
"delete": {
|
|
4287
|
+
title: "Supprimer un mode de paiement",
|
|
4288
|
+
subtitle: "Ce mode de paiement peut être associé à des abonnements actifs ou servir de mode de paiement par défaut. Veuillez choisir parmi les options disponibles ci-dessous pour le remplacement.",
|
|
4289
|
+
options: {
|
|
4290
|
+
select: "Sélectionner un mode de paiement existant",
|
|
4291
|
+
add: "Ajouter un nouveau mode de paiement"
|
|
4292
|
+
},
|
|
4293
|
+
paymentMethodReplaced: "Méthode de paiement supprimée et remplacée avec succès"
|
|
4294
|
+
},
|
|
4295
|
+
create: create$4
|
|
4258
4296
|
};
|
|
4259
4297
|
|
|
4260
4298
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
@@ -4357,6 +4395,7 @@ var labels$P = {
|
|
|
4357
4395
|
lastName: "Nom de famille",
|
|
4358
4396
|
phone: "Téléphoner",
|
|
4359
4397
|
freeItems: "Articles gratuits",
|
|
4398
|
+
isDefault: "Défini comme valeur par défaut",
|
|
4360
4399
|
order: "Commande",
|
|
4361
4400
|
amount: "Montant",
|
|
4362
4401
|
email: "Courriel",
|
|
@@ -5179,9 +5218,23 @@ var select$2 = {
|
|
|
5179
5218
|
changePaymentMethod: "변경"
|
|
5180
5219
|
}
|
|
5181
5220
|
};
|
|
5221
|
+
var create$3 = {
|
|
5222
|
+
title: "새 결제 방법 추가",
|
|
5223
|
+
subtitle: "신용카드 정보를 추가하려면 아래 입력란을 입력하세요."
|
|
5224
|
+
};
|
|
5182
5225
|
var paymentMethod_ko = {
|
|
5183
5226
|
update: update$1,
|
|
5184
|
-
select: select$2
|
|
5227
|
+
select: select$2,
|
|
5228
|
+
"delete": {
|
|
5229
|
+
title: "결제 방법 삭제",
|
|
5230
|
+
subtitle: "이 결제 방법은 활성 구독과 연결되거나 기본 결제 방법으로 사용될 수 있습니다. 아래에서 사용 가능한 옵션 중에서 선택하여 대체하세요.",
|
|
5231
|
+
options: {
|
|
5232
|
+
select: "기존 결제 방법 선택",
|
|
5233
|
+
add: "새 결제 방법 추가"
|
|
5234
|
+
},
|
|
5235
|
+
paymentMethodReplaced: "결제 방법 삭제 및 교체 성공"
|
|
5236
|
+
},
|
|
5237
|
+
create: create$3
|
|
5185
5238
|
};
|
|
5186
5239
|
|
|
5187
5240
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
@@ -5287,7 +5340,8 @@ var labels$x = {
|
|
|
5287
5340
|
order: "주문",
|
|
5288
5341
|
amount: "금액",
|
|
5289
5342
|
email: "이메일",
|
|
5290
|
-
password: "비밀번호"
|
|
5343
|
+
password: "비밀번호",
|
|
5344
|
+
isDefault: "기본값으로 설정"
|
|
5291
5345
|
};
|
|
5292
5346
|
var checkoutForm_ko = {
|
|
5293
5347
|
messages: messages$y,
|
|
@@ -6211,9 +6265,23 @@ var select = {
|
|
|
6211
6265
|
changePaymentMethod: "Cambiar"
|
|
6212
6266
|
}
|
|
6213
6267
|
};
|
|
6268
|
+
var create$2 = {
|
|
6269
|
+
title: "Añadir un nuevo método de pago",
|
|
6270
|
+
subtitle: "Introduzca los campos siguientes para añadir los datos de su tarjeta de crédito"
|
|
6271
|
+
};
|
|
6214
6272
|
var paymentMethod_es = {
|
|
6215
6273
|
update: update,
|
|
6216
|
-
select: select
|
|
6274
|
+
select: select,
|
|
6275
|
+
"delete": {
|
|
6276
|
+
title: "Eliminar método de pago",
|
|
6277
|
+
subtitle: "Este método de pago podría estar asociado a suscripciones activas o servir como método de pago predeterminado. Elija entre las opciones disponibles a continuación para sustituirlo.",
|
|
6278
|
+
options: {
|
|
6279
|
+
select: "Seleccione un método de pago existente",
|
|
6280
|
+
add: "Añadir un nuevo método de pago"
|
|
6281
|
+
},
|
|
6282
|
+
paymentMethodReplaced: "Método de pago eliminado y sustituido correctamente"
|
|
6283
|
+
},
|
|
6284
|
+
create: create$2
|
|
6217
6285
|
};
|
|
6218
6286
|
|
|
6219
6287
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
@@ -6319,7 +6387,8 @@ var labels$f = {
|
|
|
6319
6387
|
order: "Pida",
|
|
6320
6388
|
amount: "Importe",
|
|
6321
6389
|
email: "Correo",
|
|
6322
|
-
password: "Contraseña"
|
|
6390
|
+
password: "Contraseña",
|
|
6391
|
+
isDefault: "Fijar por defecto"
|
|
6323
6392
|
};
|
|
6324
6393
|
var checkoutForm_es = {
|
|
6325
6394
|
messages: messages$f,
|
|
@@ -8952,7 +9021,7 @@ class PelcroActions {
|
|
|
8952
9021
|
view,
|
|
8953
9022
|
cartItems,
|
|
8954
9023
|
...otherStateFields
|
|
8955
|
-
} = initialState$
|
|
9024
|
+
} = initialState$o;
|
|
8956
9025
|
this.set(otherStateFields);
|
|
8957
9026
|
});
|
|
8958
9027
|
_defineProperty$3(this, "switchView", view => {
|
|
@@ -9257,6 +9326,38 @@ class PelcroActions {
|
|
|
9257
9326
|
}
|
|
9258
9327
|
switchToAddressView();
|
|
9259
9328
|
});
|
|
9329
|
+
_defineProperty$3(this, "setPaymentMethodToEdit", id => {
|
|
9330
|
+
window.Pelcro.paymentMethods.getPaymentMethod({
|
|
9331
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
9332
|
+
payment_method_id: id
|
|
9333
|
+
}, (err, res) => {
|
|
9334
|
+
if (err) {
|
|
9335
|
+
return console.error("invalid payment method id");
|
|
9336
|
+
}
|
|
9337
|
+
if (res) {
|
|
9338
|
+
const paymentMethodToEdit = res.data;
|
|
9339
|
+
this.set({
|
|
9340
|
+
paymentMethodToEdit
|
|
9341
|
+
});
|
|
9342
|
+
}
|
|
9343
|
+
});
|
|
9344
|
+
});
|
|
9345
|
+
_defineProperty$3(this, "setPaymentMethodToDelete", id => {
|
|
9346
|
+
window.Pelcro.paymentMethods.getPaymentMethod({
|
|
9347
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
9348
|
+
payment_method_id: id
|
|
9349
|
+
}, (err, res) => {
|
|
9350
|
+
if (err) {
|
|
9351
|
+
return console.error("invalid payment method id");
|
|
9352
|
+
}
|
|
9353
|
+
if (res) {
|
|
9354
|
+
const paymentMethodToDelete = res.data;
|
|
9355
|
+
this.set({
|
|
9356
|
+
paymentMethodToDelete
|
|
9357
|
+
});
|
|
9358
|
+
}
|
|
9359
|
+
});
|
|
9360
|
+
});
|
|
9260
9361
|
this.set = storeSetter;
|
|
9261
9362
|
this.get = storeGetter;
|
|
9262
9363
|
}
|
|
@@ -9301,7 +9402,7 @@ class PelcroCallbacks {
|
|
|
9301
9402
|
}
|
|
9302
9403
|
}
|
|
9303
9404
|
|
|
9304
|
-
const initialState$
|
|
9405
|
+
const initialState$o = {
|
|
9305
9406
|
// View
|
|
9306
9407
|
view: null,
|
|
9307
9408
|
// Plans
|
|
@@ -9327,6 +9428,9 @@ const initialState$n = {
|
|
|
9327
9428
|
couponCode: null,
|
|
9328
9429
|
// memberships
|
|
9329
9430
|
selectedMembership: null,
|
|
9431
|
+
// paymentMethods
|
|
9432
|
+
paymentMethodToDelete: null,
|
|
9433
|
+
paymentMethodToEdit: null,
|
|
9330
9434
|
// User
|
|
9331
9435
|
isAuthenticated: () => window.Pelcro.user.isAuthenticated(),
|
|
9332
9436
|
selectedPaymentMethodId: null,
|
|
@@ -9339,7 +9443,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
9339
9443
|
return {
|
|
9340
9444
|
// Store setter
|
|
9341
9445
|
set,
|
|
9342
|
-
...initialState$
|
|
9446
|
+
...initialState$o,
|
|
9343
9447
|
// State actions
|
|
9344
9448
|
...actions,
|
|
9345
9449
|
// Callbacks
|
|
@@ -10293,8 +10397,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
10293
10397
|
|
|
10294
10398
|
let e={data:""},t=t=>"object"==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-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n=/\n+/g,o=(e,t)=>{let r="",l="",a="";for(let n in e){let c=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+c+";":l+="f"==n[1]?o(c,n):n+"{"+o(c,"k"==n[1]?"":t)+"}":"object"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=o.p?o.p(n,c):n+":"+c+";");}return r+(t&&a?t+"{"+a+"}":a)+l},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i$1=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n," ").trim();return o[0]})(e);c[d]=o(p?{["@keyframes "+d]:t}:t,r?"":"."+d);}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e;}return e+l+(null==n?"":n)},"");function u(e){let r=this||{},l=e.call?e(r.p):e;return i$1(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g;u.bind({g:1});let h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l;}function j(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=u.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}
|
|
10295
10399
|
|
|
10296
|
-
function _extends$
|
|
10297
|
-
_extends$
|
|
10400
|
+
function _extends$C() {
|
|
10401
|
+
_extends$C = Object.assign || function (target) {
|
|
10298
10402
|
for (var i = 1; i < arguments.length; i++) {
|
|
10299
10403
|
var source = arguments[i];
|
|
10300
10404
|
|
|
@@ -10308,7 +10412,7 @@ function _extends$B() {
|
|
|
10308
10412
|
return target;
|
|
10309
10413
|
};
|
|
10310
10414
|
|
|
10311
|
-
return _extends$
|
|
10415
|
+
return _extends$C.apply(this, arguments);
|
|
10312
10416
|
}
|
|
10313
10417
|
|
|
10314
10418
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -10398,7 +10502,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
10398
10502
|
var reducer = function reducer(state, action) {
|
|
10399
10503
|
switch (action.type) {
|
|
10400
10504
|
case ActionType.ADD_TOAST:
|
|
10401
|
-
return _extends$
|
|
10505
|
+
return _extends$C({}, state, {
|
|
10402
10506
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
10403
10507
|
});
|
|
10404
10508
|
|
|
@@ -10408,9 +10512,9 @@ var reducer = function reducer(state, action) {
|
|
|
10408
10512
|
clearFromRemoveQueue(action.toast.id);
|
|
10409
10513
|
}
|
|
10410
10514
|
|
|
10411
|
-
return _extends$
|
|
10515
|
+
return _extends$C({}, state, {
|
|
10412
10516
|
toasts: state.toasts.map(function (t) {
|
|
10413
|
-
return t.id === action.toast.id ? _extends$
|
|
10517
|
+
return t.id === action.toast.id ? _extends$C({}, t, action.toast) : t;
|
|
10414
10518
|
})
|
|
10415
10519
|
});
|
|
10416
10520
|
|
|
@@ -10437,9 +10541,9 @@ var reducer = function reducer(state, action) {
|
|
|
10437
10541
|
});
|
|
10438
10542
|
}
|
|
10439
10543
|
|
|
10440
|
-
return _extends$
|
|
10544
|
+
return _extends$C({}, state, {
|
|
10441
10545
|
toasts: state.toasts.map(function (t) {
|
|
10442
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
10546
|
+
return t.id === toastId || toastId === undefined ? _extends$C({}, t, {
|
|
10443
10547
|
visible: false
|
|
10444
10548
|
}) : t;
|
|
10445
10549
|
})
|
|
@@ -10447,28 +10551,28 @@ var reducer = function reducer(state, action) {
|
|
|
10447
10551
|
|
|
10448
10552
|
case ActionType.REMOVE_TOAST:
|
|
10449
10553
|
if (action.toastId === undefined) {
|
|
10450
|
-
return _extends$
|
|
10554
|
+
return _extends$C({}, state, {
|
|
10451
10555
|
toasts: []
|
|
10452
10556
|
});
|
|
10453
10557
|
}
|
|
10454
10558
|
|
|
10455
|
-
return _extends$
|
|
10559
|
+
return _extends$C({}, state, {
|
|
10456
10560
|
toasts: state.toasts.filter(function (t) {
|
|
10457
10561
|
return t.id !== action.toastId;
|
|
10458
10562
|
})
|
|
10459
10563
|
});
|
|
10460
10564
|
|
|
10461
10565
|
case ActionType.START_PAUSE:
|
|
10462
|
-
return _extends$
|
|
10566
|
+
return _extends$C({}, state, {
|
|
10463
10567
|
pausedAt: action.time
|
|
10464
10568
|
});
|
|
10465
10569
|
|
|
10466
10570
|
case ActionType.END_PAUSE:
|
|
10467
10571
|
var diff = action.time - (state.pausedAt || 0);
|
|
10468
|
-
return _extends$
|
|
10572
|
+
return _extends$C({}, state, {
|
|
10469
10573
|
pausedAt: undefined,
|
|
10470
10574
|
toasts: state.toasts.map(function (t) {
|
|
10471
|
-
return _extends$
|
|
10575
|
+
return _extends$C({}, t, {
|
|
10472
10576
|
pauseDuration: t.pauseDuration + diff
|
|
10473
10577
|
});
|
|
10474
10578
|
})
|
|
@@ -10515,12 +10619,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
10515
10619
|
var mergedToasts = state.toasts.map(function (t) {
|
|
10516
10620
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
10517
10621
|
|
|
10518
|
-
return _extends$
|
|
10622
|
+
return _extends$C({}, toastOptions, toastOptions[t.type], t, {
|
|
10519
10623
|
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],
|
|
10520
|
-
style: _extends$
|
|
10624
|
+
style: _extends$C({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
10521
10625
|
});
|
|
10522
10626
|
});
|
|
10523
|
-
return _extends$
|
|
10627
|
+
return _extends$C({}, state, {
|
|
10524
10628
|
toasts: mergedToasts
|
|
10525
10629
|
});
|
|
10526
10630
|
};
|
|
@@ -10530,7 +10634,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
10530
10634
|
type = 'blank';
|
|
10531
10635
|
}
|
|
10532
10636
|
|
|
10533
|
-
return _extends$
|
|
10637
|
+
return _extends$C({
|
|
10534
10638
|
createdAt: Date.now(),
|
|
10535
10639
|
visible: true,
|
|
10536
10640
|
type: type,
|
|
@@ -10580,14 +10684,14 @@ toast.remove = function (toastId) {
|
|
|
10580
10684
|
};
|
|
10581
10685
|
|
|
10582
10686
|
toast.promise = function (promise, msgs, opts) {
|
|
10583
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
10687
|
+
var id = toast.loading(msgs.loading, _extends$C({}, opts, opts == null ? void 0 : opts.loading));
|
|
10584
10688
|
promise.then(function (p) {
|
|
10585
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
10689
|
+
toast.success(resolveValue(msgs.success, p), _extends$C({
|
|
10586
10690
|
id: id
|
|
10587
10691
|
}, opts, opts == null ? void 0 : opts.success));
|
|
10588
10692
|
return p;
|
|
10589
10693
|
})["catch"](function (e) {
|
|
10590
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
10694
|
+
toast.error(resolveValue(msgs.error, e), _extends$C({
|
|
10591
10695
|
id: id
|
|
10592
10696
|
}, opts, opts == null ? void 0 : opts.error));
|
|
10593
10697
|
});
|
|
@@ -10926,7 +11030,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
10926
11030
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
10927
11031
|
return createElement(ToastBarBase, {
|
|
10928
11032
|
className: toast.className,
|
|
10929
|
-
style: _extends$
|
|
11033
|
+
style: _extends$C({}, animationStyle, style, toast.style)
|
|
10930
11034
|
}, typeof children === 'function' ? children({
|
|
10931
11035
|
icon: icon,
|
|
10932
11036
|
message: message
|
|
@@ -10956,7 +11060,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
10956
11060
|
} : position.includes('right') ? {
|
|
10957
11061
|
justifyContent: 'flex-end'
|
|
10958
11062
|
} : {};
|
|
10959
|
-
return _extends$
|
|
11063
|
+
return _extends$C({
|
|
10960
11064
|
left: 0,
|
|
10961
11065
|
right: 0,
|
|
10962
11066
|
display: 'flex',
|
|
@@ -10983,7 +11087,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
10983
11087
|
handlers = _useToaster.handlers;
|
|
10984
11088
|
|
|
10985
11089
|
return createElement("div", {
|
|
10986
|
-
style: _extends$
|
|
11090
|
+
style: _extends$C({
|
|
10987
11091
|
position: 'fixed',
|
|
10988
11092
|
zIndex: 9999,
|
|
10989
11093
|
top: DEFAULT_OFFSET,
|
|
@@ -11018,72 +11122,72 @@ var Toaster = function Toaster(_ref) {
|
|
|
11018
11122
|
}));
|
|
11019
11123
|
};
|
|
11020
11124
|
|
|
11021
|
-
var _path$
|
|
11022
|
-
function _extends$
|
|
11125
|
+
var _path$z;
|
|
11126
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : 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); }
|
|
11023
11127
|
function SvgCheckSolid(props) {
|
|
11024
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
11128
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
11025
11129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11026
11130
|
className: "h-5 w-5",
|
|
11027
11131
|
viewBox: "0 0 20 20",
|
|
11028
11132
|
fill: "currentColor"
|
|
11029
|
-
}, props), _path$
|
|
11133
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
11030
11134
|
fillRule: "evenodd",
|
|
11031
11135
|
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",
|
|
11032
11136
|
clipRule: "evenodd"
|
|
11033
11137
|
})));
|
|
11034
11138
|
}
|
|
11035
11139
|
|
|
11036
|
-
var _path$
|
|
11037
|
-
function _extends$
|
|
11140
|
+
var _path$y;
|
|
11141
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : 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); }
|
|
11038
11142
|
function SvgXIcon(props) {
|
|
11039
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
11143
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
11040
11144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11041
11145
|
viewBox: "0 0 20 20",
|
|
11042
11146
|
fill: "currentColor"
|
|
11043
|
-
}, props), _path$
|
|
11147
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
11044
11148
|
fill: "evenodd",
|
|
11045
11149
|
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",
|
|
11046
11150
|
clipRule: "evenodd"
|
|
11047
11151
|
})));
|
|
11048
11152
|
}
|
|
11049
11153
|
|
|
11050
|
-
var _path$
|
|
11051
|
-
function _extends$
|
|
11154
|
+
var _path$x;
|
|
11155
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : 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$z.apply(this, arguments); }
|
|
11052
11156
|
function SvgXIconSolid(props) {
|
|
11053
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
11157
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
11054
11158
|
className: "plc-w-4 plc-h-4",
|
|
11055
11159
|
fill: "currentColor",
|
|
11056
11160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11057
11161
|
viewBox: "0 0 100 100"
|
|
11058
|
-
}, props), _path$
|
|
11162
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
11059
11163
|
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"
|
|
11060
11164
|
})));
|
|
11061
11165
|
}
|
|
11062
11166
|
|
|
11063
|
-
var _path$
|
|
11064
|
-
function _extends$
|
|
11167
|
+
var _path$w;
|
|
11168
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : 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$y.apply(this, arguments); }
|
|
11065
11169
|
function SvgExclamation(props) {
|
|
11066
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
11170
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
11067
11171
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
11068
11172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11069
11173
|
viewBox: "0 0 20 20",
|
|
11070
11174
|
fill: "currentColor"
|
|
11071
|
-
}, props), _path$
|
|
11175
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
11072
11176
|
fillRule: "evenodd",
|
|
11073
11177
|
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",
|
|
11074
11178
|
clipRule: "evenodd"
|
|
11075
11179
|
})));
|
|
11076
11180
|
}
|
|
11077
11181
|
|
|
11078
|
-
var _path$
|
|
11079
|
-
function _extends$
|
|
11182
|
+
var _path$v, _path2$4;
|
|
11183
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : 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$x.apply(this, arguments); }
|
|
11080
11184
|
function SvgSpinner(props) {
|
|
11081
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
11185
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
11082
11186
|
className: "plc-animate-spin",
|
|
11083
11187
|
viewBox: "0 0 24 24",
|
|
11084
11188
|
fill: "currentColor",
|
|
11085
11189
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11086
|
-
}, props), _path$
|
|
11190
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
11087
11191
|
opacity: 0.2,
|
|
11088
11192
|
fill: "evenodd",
|
|
11089
11193
|
clipRule: "evenodd",
|
|
@@ -11774,6 +11878,17 @@ function getSiteCardProcessor() {
|
|
|
11774
11878
|
}
|
|
11775
11879
|
return "stripe";
|
|
11776
11880
|
}
|
|
11881
|
+
function getFourDigitYear(lastTwoDigits) {
|
|
11882
|
+
// Get the current year
|
|
11883
|
+
const currentYear = new Date().getFullYear();
|
|
11884
|
+
|
|
11885
|
+
// Extract the current century (first two digits)
|
|
11886
|
+
const currentCentury = Math.floor(currentYear / 100);
|
|
11887
|
+
|
|
11888
|
+
// Combine the century and the provided last two digits
|
|
11889
|
+
const fourDigitYear = currentCentury * 100 + lastTwoDigits;
|
|
11890
|
+
return fourDigitYear;
|
|
11891
|
+
}
|
|
11777
11892
|
|
|
11778
11893
|
/**
|
|
11779
11894
|
* @typedef {Object} OptionsType
|
|
@@ -12751,6 +12866,7 @@ const SET_CONFIRM_PASSWORD = "SET_CONFIRM_PASSWORD";
|
|
|
12751
12866
|
const CONFIRM_PASSWORD_USED = "CONFIRM_PASSWORD_USED";
|
|
12752
12867
|
const DISABLE_SUBMIT = "DISABLE_SUBMIT";
|
|
12753
12868
|
const LOADING = "LOADING";
|
|
12869
|
+
const SKELETON_LOADER = "SKELETON_LOADER";
|
|
12754
12870
|
const SUBMIT_PAYMENT = "SUBMIT_PAYMENT";
|
|
12755
12871
|
const SUBSCRIBE = "CREATE_SUBSCRIPTION";
|
|
12756
12872
|
const HANDLE_PAYPAL_SUBSCRIPTION = "HANDLE_PAYPAL_SUBSCRIPTION";
|
|
@@ -12818,6 +12934,9 @@ const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
|
12818
12934
|
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
12819
12935
|
const SET_CANCEL_SUBSCRIPTION_OPTION = "SET_CANCEL_SUBSCRIPTION_OPTION";
|
|
12820
12936
|
const HANDLE_CHECKBOX_CHANGE = "HANDLE_CHECKBOX_CHANGE";
|
|
12937
|
+
const SET_IS_DEFAULT_PAYMENT_METHOD = "SET_IS_DEFAULT_PAYMENT_METHOD";
|
|
12938
|
+
const SET_DELETE_PAYMENT_METHOD_OPTION = "SET_DELETE_PAYMENT_METHOD_OPTION";
|
|
12939
|
+
const SET_PAYMENT_METHODS = "SET_PAYMENT_METHODS";
|
|
12821
12940
|
const SET_SUBSCRIPTION_SUSPEND_DATE = "SET_SUBSCRIPTION_SUSPEND_DATE";
|
|
12822
12941
|
const SET_EMAILS = "SET_EMAILS";
|
|
12823
12942
|
const SET_EMAILS_ERROR = "SET_EMAILS_ERROR";
|
|
@@ -12829,7 +12948,7 @@ const UPDATE_MEMBERS = "UPDATE_MEMBERS";
|
|
|
12829
12948
|
const UPDATE_REMOVE_MEMBER_ID = "UPDATE_REMOVE_MEMBER_ID";
|
|
12830
12949
|
const UPDATE_CYBERSOURCE_SESSION_ID = "UPDATE_CYBERSOURCE_SESSION_ID";
|
|
12831
12950
|
|
|
12832
|
-
const initialState$
|
|
12951
|
+
const initialState$n = {
|
|
12833
12952
|
email: "",
|
|
12834
12953
|
username: "",
|
|
12835
12954
|
password: "",
|
|
@@ -12842,10 +12961,10 @@ const initialState$m = {
|
|
|
12842
12961
|
content: ""
|
|
12843
12962
|
}
|
|
12844
12963
|
};
|
|
12845
|
-
const store$
|
|
12964
|
+
const store$n = /*#__PURE__*/createContext(initialState$n);
|
|
12846
12965
|
const {
|
|
12847
|
-
Provider: Provider$
|
|
12848
|
-
} = store$
|
|
12966
|
+
Provider: Provider$n
|
|
12967
|
+
} = store$n;
|
|
12849
12968
|
const LoginContainer = _ref => {
|
|
12850
12969
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
12851
12970
|
let {
|
|
@@ -12982,7 +13101,7 @@ const LoginContainer = _ref => {
|
|
|
12982
13101
|
alert: action.payload
|
|
12983
13102
|
});
|
|
12984
13103
|
case RESET_LOGIN_FORM:
|
|
12985
|
-
return initialState$
|
|
13104
|
+
return initialState$n;
|
|
12986
13105
|
case DISABLE_LOGIN_BUTTON:
|
|
12987
13106
|
return lib_7({
|
|
12988
13107
|
...state,
|
|
@@ -12998,13 +13117,13 @@ const LoginContainer = _ref => {
|
|
|
12998
13117
|
default:
|
|
12999
13118
|
return state;
|
|
13000
13119
|
}
|
|
13001
|
-
}, initialState$
|
|
13120
|
+
}, initialState$n);
|
|
13002
13121
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13003
13122
|
style: {
|
|
13004
13123
|
...style
|
|
13005
13124
|
},
|
|
13006
13125
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
13007
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
13126
|
+
}, /*#__PURE__*/React__default.createElement(Provider$n, {
|
|
13008
13127
|
value: {
|
|
13009
13128
|
state,
|
|
13010
13129
|
dispatch
|
|
@@ -13012,12 +13131,12 @@ const LoginContainer = _ref => {
|
|
|
13012
13131
|
}, children.length ? children.map((child, i) => {
|
|
13013
13132
|
if (child) {
|
|
13014
13133
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
13015
|
-
store: store$
|
|
13134
|
+
store: store$n,
|
|
13016
13135
|
key: i
|
|
13017
13136
|
});
|
|
13018
13137
|
}
|
|
13019
13138
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
13020
|
-
store: store$
|
|
13139
|
+
store: store$n
|
|
13021
13140
|
})));
|
|
13022
13141
|
};
|
|
13023
13142
|
|
|
@@ -13326,7 +13445,7 @@ const LoginButton = _ref => {
|
|
|
13326
13445
|
buttonDisabled
|
|
13327
13446
|
},
|
|
13328
13447
|
dispatch
|
|
13329
|
-
} = useContext(store$
|
|
13448
|
+
} = useContext(store$n);
|
|
13330
13449
|
const {
|
|
13331
13450
|
t
|
|
13332
13451
|
} = useTranslation("login");
|
|
@@ -13346,14 +13465,14 @@ const LoginButton = _ref => {
|
|
|
13346
13465
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.login"));
|
|
13347
13466
|
};
|
|
13348
13467
|
|
|
13349
|
-
var _path$
|
|
13350
|
-
function _extends$
|
|
13468
|
+
var _path$u, _path2$3;
|
|
13469
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : 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); }
|
|
13351
13470
|
function SvgEmailVerify(props) {
|
|
13352
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13471
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
13353
13472
|
className: "plc-w-6 plc-h-6",
|
|
13354
13473
|
viewBox: "0 0 700 700",
|
|
13355
13474
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13356
|
-
}, props), _path$
|
|
13475
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
13357
13476
|
d: "M583.01 231.93a15.008 15.008 0 00-.887-3.875c-.562-1.254-1.129-2.508-1.695-3.762a14.686 14.686 0 00-1.898-1.789c-.438-.437-.653-1.027-1.153-1.414l-56.266-44.164v-52.484a15.555 15.555 0 00-15.554-15.555H434.56l-74.945-58.895a15.547 15.547 0 00-19.227 0l-74.945 58.895h-70.996a15.555 15.555 0 00-15.555 15.555v52.484l-56.266 44.16c-.496.39-.715.996-1.152 1.43v.004a13.37 13.37 0 00-1.898 1.773c-.22.426-.414.86-.59 1.305a14.158 14.158 0 00-1.106 2.457 15.009 15.009 0 00-.886 3.875c0 .48-.329.918-.329 1.398l.004 264.45a15.555 15.555 0 0015.555 15.555h435.55a15.555 15.555 0 0015.555-15.555v-264.45c0-.48-.278-.918-.325-1.398zm-41.176.809l-20.723 14.809v-31.11zm-191.83-150.73l34.223 26.883h-68.445zm-140 57.992h280v124.45c.07 1.593.383 3.168.934 4.664l-140.93 100.66-140.46-100.33c.214-.77.37-1.555.464-2.348zm-31.109 107.55l-20.719-14.81 20.719-16.27zm-31.113 234.67V263.56l193.18 137.99a15.562 15.562 0 0018.078 0l193.18-137.99v218.66z"
|
|
13358
13477
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
13359
13478
|
d: "M324.33 291.81a15.56 15.56 0 0020.582-.297l85.555-77.777a15.56 15.56 0 00-20.938-23.023l-75.398 68.539-44.023-37.723a15.54 15.54 0 00-11.46-4.106 15.553 15.553 0 00-8.758 27.718z"
|
|
@@ -13383,25 +13502,25 @@ const LoginRequestLoginToken = _ref => {
|
|
|
13383
13502
|
};
|
|
13384
13503
|
|
|
13385
13504
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
13386
|
-
store: store$
|
|
13505
|
+
store: store$n
|
|
13387
13506
|
}, props));
|
|
13388
13507
|
|
|
13389
13508
|
const LoginUsername = props => /*#__PURE__*/React__default.createElement(UserNameInput, Object.assign({
|
|
13390
|
-
store: store$
|
|
13509
|
+
store: store$n
|
|
13391
13510
|
}, props));
|
|
13392
13511
|
|
|
13393
13512
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
13394
|
-
store: store$
|
|
13513
|
+
store: store$n
|
|
13395
13514
|
}, props));
|
|
13396
13515
|
|
|
13397
|
-
var _path$
|
|
13398
|
-
function _extends$
|
|
13516
|
+
var _path$t;
|
|
13517
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : 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); }
|
|
13399
13518
|
function SvgCheck(props) {
|
|
13400
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13519
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
13401
13520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13402
13521
|
fill: "currentColor",
|
|
13403
13522
|
viewBox: "0 0 20 20"
|
|
13404
|
-
}, props), _path$
|
|
13523
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
13405
13524
|
fillRule: "evenodd",
|
|
13406
13525
|
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",
|
|
13407
13526
|
clipRule: "evenodd"
|
|
@@ -13467,7 +13586,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
13467
13586
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
13468
13587
|
facebookLoginRenderProps.FacebookLogin;
|
|
13469
13588
|
|
|
13470
|
-
const initialState$
|
|
13589
|
+
const initialState$m = {
|
|
13471
13590
|
email: "",
|
|
13472
13591
|
password: "",
|
|
13473
13592
|
firstName: "",
|
|
@@ -13488,10 +13607,10 @@ const initialState$l = {
|
|
|
13488
13607
|
content: ""
|
|
13489
13608
|
}
|
|
13490
13609
|
};
|
|
13491
|
-
const store$
|
|
13610
|
+
const store$m = /*#__PURE__*/createContext(initialState$m);
|
|
13492
13611
|
const {
|
|
13493
|
-
Provider: Provider$
|
|
13494
|
-
} = store$
|
|
13612
|
+
Provider: Provider$m
|
|
13613
|
+
} = store$m;
|
|
13495
13614
|
const RegisterContainer = _ref => {
|
|
13496
13615
|
let {
|
|
13497
13616
|
style,
|
|
@@ -13703,7 +13822,7 @@ const RegisterContainer = _ref => {
|
|
|
13703
13822
|
alert: action.payload
|
|
13704
13823
|
});
|
|
13705
13824
|
case RESET_LOGIN_FORM:
|
|
13706
|
-
return initialState$
|
|
13825
|
+
return initialState$m;
|
|
13707
13826
|
case DISABLE_REGISTRATION_BUTTON:
|
|
13708
13827
|
return lib_7({
|
|
13709
13828
|
...state,
|
|
@@ -13719,13 +13838,13 @@ const RegisterContainer = _ref => {
|
|
|
13719
13838
|
default:
|
|
13720
13839
|
return state;
|
|
13721
13840
|
}
|
|
13722
|
-
}, initialState$
|
|
13841
|
+
}, initialState$m);
|
|
13723
13842
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13724
13843
|
style: {
|
|
13725
13844
|
...style
|
|
13726
13845
|
},
|
|
13727
13846
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
13728
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
13847
|
+
}, /*#__PURE__*/React__default.createElement(Provider$m, {
|
|
13729
13848
|
value: {
|
|
13730
13849
|
state,
|
|
13731
13850
|
dispatch
|
|
@@ -13733,12 +13852,12 @@ const RegisterContainer = _ref => {
|
|
|
13733
13852
|
}, children.length ? children.map((child, i) => {
|
|
13734
13853
|
if (child) {
|
|
13735
13854
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
13736
|
-
store: store$
|
|
13855
|
+
store: store$m,
|
|
13737
13856
|
key: i
|
|
13738
13857
|
});
|
|
13739
13858
|
}
|
|
13740
13859
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
13741
|
-
store: store$
|
|
13860
|
+
store: store$m
|
|
13742
13861
|
})));
|
|
13743
13862
|
};
|
|
13744
13863
|
|
|
@@ -13752,13 +13871,13 @@ function hasSecurityTokenEnabled$1() {
|
|
|
13752
13871
|
return hasSecuritySdkLoaded;
|
|
13753
13872
|
}
|
|
13754
13873
|
|
|
13755
|
-
var _path$
|
|
13756
|
-
function _extends$
|
|
13874
|
+
var _path$s;
|
|
13875
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : 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); }
|
|
13757
13876
|
function SvgFacebookLogo(props) {
|
|
13758
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13877
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
13759
13878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13760
13879
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
13761
|
-
}, props), _path$
|
|
13880
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
13762
13881
|
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",
|
|
13763
13882
|
fill: "#3c5a9a"
|
|
13764
13883
|
})));
|
|
@@ -13775,10 +13894,10 @@ const FacebookLoginButton = _ref => {
|
|
|
13775
13894
|
const facebookLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id;
|
|
13776
13895
|
const {
|
|
13777
13896
|
dispatch: loginDispatch
|
|
13778
|
-
} = useContext(store$
|
|
13897
|
+
} = useContext(store$n);
|
|
13779
13898
|
const {
|
|
13780
13899
|
dispatch: registerDispatch
|
|
13781
|
-
} = useContext(store$
|
|
13900
|
+
} = useContext(store$m);
|
|
13782
13901
|
const onSuccess = facebookUser => {
|
|
13783
13902
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
13784
13903
|
type: HANDLE_SOCIAL_LOGIN,
|
|
@@ -13828,13 +13947,13 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
13828
13947
|
unwrapExports(googleLogin);
|
|
13829
13948
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
13830
13949
|
|
|
13831
|
-
var _path$
|
|
13832
|
-
function _extends$
|
|
13950
|
+
var _path$r, _path2$2, _path3$1, _path4;
|
|
13951
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : 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); }
|
|
13833
13952
|
function SvgGoogleLogo(props) {
|
|
13834
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13953
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
13835
13954
|
viewBox: "0 0 24 24",
|
|
13836
13955
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13837
|
-
}, props), _path$
|
|
13956
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
13838
13957
|
fill: "#4285F4",
|
|
13839
13958
|
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"
|
|
13840
13959
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -13938,10 +14057,10 @@ const GoogleLoginButton = _ref => {
|
|
|
13938
14057
|
const googleClientId = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
|
|
13939
14058
|
const {
|
|
13940
14059
|
dispatch: loginDispatch
|
|
13941
|
-
} = useContext(store$
|
|
14060
|
+
} = useContext(store$n);
|
|
13942
14061
|
const {
|
|
13943
14062
|
dispatch: registerDispatch
|
|
13944
|
-
} = useContext(store$
|
|
14063
|
+
} = useContext(store$m);
|
|
13945
14064
|
useEffect(() => {
|
|
13946
14065
|
gapi.load("client:auth2", () => {
|
|
13947
14066
|
gapi.auth2.init({
|
|
@@ -13992,13 +14111,13 @@ const GoogleLoginButton = _ref => {
|
|
|
13992
14111
|
}) : null;
|
|
13993
14112
|
};
|
|
13994
14113
|
|
|
13995
|
-
var _path$
|
|
13996
|
-
function _extends$
|
|
14114
|
+
var _path$q;
|
|
14115
|
+
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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); }
|
|
13997
14116
|
function SvgAuth0Logo(props) {
|
|
13998
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14117
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
13999
14118
|
viewBox: "0 0 256 285",
|
|
14000
14119
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14001
|
-
}, props), _path$
|
|
14120
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
14002
14121
|
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"
|
|
14003
14122
|
})));
|
|
14004
14123
|
}
|
|
@@ -14036,10 +14155,10 @@ const Auth0LoginButton = _ref => {
|
|
|
14036
14155
|
}, [auth0Enabled, auth0Loaded]);
|
|
14037
14156
|
const {
|
|
14038
14157
|
dispatch: loginDispatch
|
|
14039
|
-
} = useContext(store$
|
|
14158
|
+
} = useContext(store$n);
|
|
14040
14159
|
const {
|
|
14041
14160
|
dispatch: registerDispatch
|
|
14042
|
-
} = useContext(store$
|
|
14161
|
+
} = useContext(store$m);
|
|
14043
14162
|
function handleClick() {
|
|
14044
14163
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
14045
14164
|
if (!auth0Loaded) {
|
|
@@ -14182,13 +14301,13 @@ function LoginView(props) {
|
|
|
14182
14301
|
}))));
|
|
14183
14302
|
}
|
|
14184
14303
|
|
|
14185
|
-
var _path$
|
|
14186
|
-
function _extends$
|
|
14304
|
+
var _path$p, _path2$1, _path3;
|
|
14305
|
+
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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); }
|
|
14187
14306
|
function SvgPelcroAuthorship(props) {
|
|
14188
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14307
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
14189
14308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14190
14309
|
viewBox: "0 -80.652 497.072 179.991"
|
|
14191
|
-
}, props), _path$
|
|
14310
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
14192
14311
|
fill: "none",
|
|
14193
14312
|
stroke: "#4a4a4a",
|
|
14194
14313
|
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"
|
|
@@ -14360,11 +14479,11 @@ function LoginModal(_ref) {
|
|
|
14360
14479
|
LoginModal.viewId = "login";
|
|
14361
14480
|
|
|
14362
14481
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
14363
|
-
store: store$
|
|
14482
|
+
store: store$m
|
|
14364
14483
|
}, props));
|
|
14365
14484
|
|
|
14366
14485
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
14367
|
-
store: store$
|
|
14486
|
+
store: store$m
|
|
14368
14487
|
}, props));
|
|
14369
14488
|
|
|
14370
14489
|
const RegisterButton = _ref => {
|
|
@@ -14384,7 +14503,7 @@ const RegisterButton = _ref => {
|
|
|
14384
14503
|
buttonDisabled
|
|
14385
14504
|
},
|
|
14386
14505
|
dispatch
|
|
14387
|
-
} = useContext(store$
|
|
14506
|
+
} = useContext(store$m);
|
|
14388
14507
|
const {
|
|
14389
14508
|
t
|
|
14390
14509
|
} = useTranslation("register");
|
|
@@ -14482,7 +14601,7 @@ function FirstName(_ref) {
|
|
|
14482
14601
|
}
|
|
14483
14602
|
|
|
14484
14603
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
14485
|
-
store: store$
|
|
14604
|
+
store: store$m
|
|
14486
14605
|
}, props));
|
|
14487
14606
|
|
|
14488
14607
|
function LastName(_ref) {
|
|
@@ -14560,7 +14679,7 @@ function LastName(_ref) {
|
|
|
14560
14679
|
}
|
|
14561
14680
|
|
|
14562
14681
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
14563
|
-
store: store$
|
|
14682
|
+
store: store$m
|
|
14564
14683
|
}, props));
|
|
14565
14684
|
|
|
14566
14685
|
function Phone(_ref) {
|
|
@@ -14841,7 +14960,7 @@ function TextInput(_ref) {
|
|
|
14841
14960
|
|
|
14842
14961
|
const RegisterTextInput = props => {
|
|
14843
14962
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
14844
|
-
store: store$
|
|
14963
|
+
store: store$m
|
|
14845
14964
|
}));
|
|
14846
14965
|
};
|
|
14847
14966
|
|
|
@@ -18017,7 +18136,7 @@ class CybersourceGateway {
|
|
|
18017
18136
|
*/
|
|
18018
18137
|
|
|
18019
18138
|
/** @type {PaymentStateType} */
|
|
18020
|
-
const initialState$
|
|
18139
|
+
const initialState$l = {
|
|
18021
18140
|
disableSubmit: false,
|
|
18022
18141
|
isLoading: false,
|
|
18023
18142
|
disableCouponButton: false,
|
|
@@ -18044,15 +18163,16 @@ const initialState$k = {
|
|
|
18044
18163
|
year: "",
|
|
18045
18164
|
passwordError: null,
|
|
18046
18165
|
cyberSourceSessionId: null,
|
|
18166
|
+
isDefault: false,
|
|
18047
18167
|
alert: {
|
|
18048
18168
|
type: "error",
|
|
18049
18169
|
content: ""
|
|
18050
18170
|
}
|
|
18051
18171
|
};
|
|
18052
|
-
const store$
|
|
18172
|
+
const store$l = /*#__PURE__*/createContext(initialState$l);
|
|
18053
18173
|
const {
|
|
18054
|
-
Provider: Provider$
|
|
18055
|
-
} = store$
|
|
18174
|
+
Provider: Provider$l
|
|
18175
|
+
} = store$l;
|
|
18056
18176
|
const PaymentMethodContainerWithoutStripe = _ref => {
|
|
18057
18177
|
var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice, _window$Pelcro, _window$Pelcro$uiSett;
|
|
18058
18178
|
let {
|
|
@@ -18080,7 +18200,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18080
18200
|
selectedDonationAmount,
|
|
18081
18201
|
customDonationAmount,
|
|
18082
18202
|
isAuthenticated,
|
|
18083
|
-
switchView
|
|
18203
|
+
switchView,
|
|
18204
|
+
paymentMethodToEdit,
|
|
18205
|
+
paymentMethodToDelete
|
|
18084
18206
|
} = usePelcro();
|
|
18085
18207
|
const {
|
|
18086
18208
|
whenUserReady
|
|
@@ -18195,7 +18317,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18195
18317
|
purchase(new CybersourceGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
18196
18318
|
} else if (type === "invoicePayment") {
|
|
18197
18319
|
payInvoice(new CybersourceGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, dispatch);
|
|
18198
|
-
} else if (type === "updatePaymentSource") {
|
|
18320
|
+
} else if (type === "createPaymentSource" || type === "updatePaymentSource") {
|
|
18199
18321
|
createNewCybersourceCard();
|
|
18200
18322
|
}
|
|
18201
18323
|
function createNewCybersourceCard() {
|
|
@@ -18525,7 +18647,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18525
18647
|
purchase(new TapGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
18526
18648
|
} else if (type === "invoicePayment") {
|
|
18527
18649
|
payInvoice(new TapGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, dispatch);
|
|
18528
|
-
} else if (type === "updatePaymentSource") {
|
|
18650
|
+
} else if (type === "createPaymentSource" || type === "updatePaymentSource") {
|
|
18529
18651
|
createNewTapCard();
|
|
18530
18652
|
}
|
|
18531
18653
|
function createNewTapCard() {
|
|
@@ -18736,14 +18858,121 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18736
18858
|
purchase(new VantivGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
18737
18859
|
} else if (type === "invoicePayment") {
|
|
18738
18860
|
payInvoice(new VantivGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, dispatch);
|
|
18739
|
-
} else if (type === "
|
|
18861
|
+
} else if (type === "createPaymentSource") {
|
|
18740
18862
|
createNewVantivCard();
|
|
18863
|
+
} else if (type === "updatePaymentSource") {
|
|
18864
|
+
updateVantivCard();
|
|
18865
|
+
} else if (type === "deletePaymentSource") {
|
|
18866
|
+
replaceVantivCard();
|
|
18741
18867
|
}
|
|
18742
18868
|
function createNewVantivCard() {
|
|
18743
|
-
window.Pelcro.
|
|
18869
|
+
window.Pelcro.paymentMethods.create({
|
|
18870
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18871
|
+
token: paymentRequest,
|
|
18872
|
+
gateway: "vantiv"
|
|
18873
|
+
}, (err, res) => {
|
|
18874
|
+
dispatch({
|
|
18875
|
+
type: DISABLE_SUBMIT,
|
|
18876
|
+
payload: false
|
|
18877
|
+
});
|
|
18878
|
+
dispatch({
|
|
18879
|
+
type: LOADING,
|
|
18880
|
+
payload: false
|
|
18881
|
+
});
|
|
18882
|
+
if (err) {
|
|
18883
|
+
onFailure(err);
|
|
18884
|
+
return dispatch({
|
|
18885
|
+
type: SHOW_ALERT,
|
|
18886
|
+
payload: {
|
|
18887
|
+
type: "error",
|
|
18888
|
+
content: getErrorMessages(err)
|
|
18889
|
+
}
|
|
18890
|
+
});
|
|
18891
|
+
}
|
|
18892
|
+
dispatch({
|
|
18893
|
+
type: SHOW_ALERT,
|
|
18894
|
+
payload: {
|
|
18895
|
+
type: "success",
|
|
18896
|
+
content: t("messages.sourceUpdated")
|
|
18897
|
+
}
|
|
18898
|
+
});
|
|
18899
|
+
onSuccess(res);
|
|
18900
|
+
});
|
|
18901
|
+
}
|
|
18902
|
+
function replaceVantivCard() {
|
|
18903
|
+
const {
|
|
18904
|
+
id: paymentMethodId
|
|
18905
|
+
} = paymentMethodToDelete;
|
|
18906
|
+
window.Pelcro.paymentMethods.create({
|
|
18744
18907
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
18745
18908
|
token: paymentRequest,
|
|
18746
18909
|
gateway: "vantiv"
|
|
18910
|
+
}, (err, res) => {
|
|
18911
|
+
dispatch({
|
|
18912
|
+
type: DISABLE_SUBMIT,
|
|
18913
|
+
payload: false
|
|
18914
|
+
});
|
|
18915
|
+
dispatch({
|
|
18916
|
+
type: LOADING,
|
|
18917
|
+
payload: false
|
|
18918
|
+
});
|
|
18919
|
+
if (err) {
|
|
18920
|
+
onFailure(err);
|
|
18921
|
+
return dispatch({
|
|
18922
|
+
type: SHOW_ALERT,
|
|
18923
|
+
payload: {
|
|
18924
|
+
type: "error",
|
|
18925
|
+
content: getErrorMessages(err)
|
|
18926
|
+
}
|
|
18927
|
+
});
|
|
18928
|
+
}
|
|
18929
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
18930
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18931
|
+
payment_method_id: paymentMethodId
|
|
18932
|
+
}, (err, res) => {
|
|
18933
|
+
if (err) {
|
|
18934
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18935
|
+
return dispatch({
|
|
18936
|
+
type: SHOW_ALERT,
|
|
18937
|
+
payload: {
|
|
18938
|
+
type: "error",
|
|
18939
|
+
content: getErrorMessages(err)
|
|
18940
|
+
}
|
|
18941
|
+
});
|
|
18942
|
+
}
|
|
18943
|
+
onSuccess(res);
|
|
18944
|
+
});
|
|
18945
|
+
});
|
|
18946
|
+
}
|
|
18947
|
+
function updateVantivCard() {
|
|
18948
|
+
const {
|
|
18949
|
+
id: paymentMethodId
|
|
18950
|
+
} = paymentMethodToEdit;
|
|
18951
|
+
const {
|
|
18952
|
+
paypageRegistrationId,
|
|
18953
|
+
bin,
|
|
18954
|
+
type,
|
|
18955
|
+
firstSix,
|
|
18956
|
+
lastFour,
|
|
18957
|
+
expMonth,
|
|
18958
|
+
expYear
|
|
18959
|
+
} = paymentRequest;
|
|
18960
|
+
const {
|
|
18961
|
+
isDefault
|
|
18962
|
+
} = state;
|
|
18963
|
+
const fourDigitExpYear = getFourDigitYear(Number(expYear)).toString();
|
|
18964
|
+
window.Pelcro.paymentMethods.update({
|
|
18965
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18966
|
+
payment_method_id: paymentMethodId,
|
|
18967
|
+
gateway: "vantiv",
|
|
18968
|
+
paypageRegistrationId: paypageRegistrationId,
|
|
18969
|
+
bin: bin,
|
|
18970
|
+
type: type,
|
|
18971
|
+
firstSix: firstSix,
|
|
18972
|
+
lastFour: lastFour,
|
|
18973
|
+
exp_month: expMonth,
|
|
18974
|
+
exp_year: fourDigitExpYear,
|
|
18975
|
+
is_default: isDefault
|
|
18747
18976
|
}, (err, res) => {
|
|
18748
18977
|
dispatch({
|
|
18749
18978
|
type: DISABLE_SUBMIT,
|
|
@@ -19601,7 +19830,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19601
19830
|
}
|
|
19602
19831
|
});
|
|
19603
19832
|
};
|
|
19604
|
-
const
|
|
19833
|
+
const createPaymentSource = (state, dispatch) => {
|
|
19605
19834
|
return stripe.createSource({
|
|
19606
19835
|
type: "card"
|
|
19607
19836
|
}).then(_ref8 => {
|
|
@@ -19622,7 +19851,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19622
19851
|
}
|
|
19623
19852
|
});
|
|
19624
19853
|
}
|
|
19625
|
-
window.Pelcro.
|
|
19854
|
+
window.Pelcro.paymentMethods.create({
|
|
19626
19855
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
19627
19856
|
token: source.id
|
|
19628
19857
|
}, (err, res) => {
|
|
@@ -19655,13 +19884,127 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19655
19884
|
});
|
|
19656
19885
|
});
|
|
19657
19886
|
};
|
|
19658
|
-
const
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19887
|
+
const updatePaymentSource = (state, dispatch) => {
|
|
19888
|
+
const {
|
|
19889
|
+
isDefault,
|
|
19890
|
+
month,
|
|
19891
|
+
year
|
|
19892
|
+
} = state;
|
|
19893
|
+
const {
|
|
19894
|
+
id: paymentMethodId
|
|
19895
|
+
} = paymentMethodToEdit;
|
|
19896
|
+
window.Pelcro.paymentMethods.update({
|
|
19897
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19898
|
+
payment_method_id: paymentMethodId,
|
|
19899
|
+
gateway: "stripe",
|
|
19900
|
+
exp_month: month,
|
|
19901
|
+
exp_year: year,
|
|
19902
|
+
is_default: isDefault
|
|
19903
|
+
}, (err, res) => {
|
|
19904
|
+
dispatch({
|
|
19905
|
+
type: DISABLE_SUBMIT,
|
|
19906
|
+
payload: false
|
|
19907
|
+
});
|
|
19908
|
+
dispatch({
|
|
19909
|
+
type: LOADING,
|
|
19910
|
+
payload: false
|
|
19911
|
+
});
|
|
19912
|
+
if (err) {
|
|
19913
|
+
onFailure(err);
|
|
19914
|
+
return dispatch({
|
|
19915
|
+
type: SHOW_ALERT,
|
|
19916
|
+
payload: {
|
|
19917
|
+
type: "error",
|
|
19918
|
+
content: getErrorMessages(err)
|
|
19919
|
+
}
|
|
19920
|
+
});
|
|
19921
|
+
}
|
|
19922
|
+
dispatch({
|
|
19923
|
+
type: SHOW_ALERT,
|
|
19924
|
+
payload: {
|
|
19925
|
+
type: "success",
|
|
19926
|
+
content: t("messages.sourceUpdated")
|
|
19927
|
+
}
|
|
19928
|
+
});
|
|
19929
|
+
onSuccess(res);
|
|
19930
|
+
});
|
|
19931
|
+
};
|
|
19932
|
+
const replacePaymentSource = (state, dispatch) => {
|
|
19933
|
+
const {
|
|
19934
|
+
id: paymentMethodId
|
|
19935
|
+
} = paymentMethodToDelete;
|
|
19936
|
+
return stripe.createSource({
|
|
19937
|
+
type: "card"
|
|
19938
|
+
}).then(_ref9 => {
|
|
19939
|
+
var _source$card3;
|
|
19940
|
+
let {
|
|
19941
|
+
source,
|
|
19942
|
+
error
|
|
19943
|
+
} = _ref9;
|
|
19944
|
+
if (error) {
|
|
19945
|
+
return handlePaymentError(error);
|
|
19946
|
+
}
|
|
19947
|
+
|
|
19948
|
+
// We don't support source creation for 3D secure yet
|
|
19949
|
+
if ((source === null || source === void 0 ? void 0 : (_source$card3 = source.card) === null || _source$card3 === void 0 ? void 0 : _source$card3.three_d_secure) === "required") {
|
|
19950
|
+
return handlePaymentError({
|
|
19951
|
+
error: {
|
|
19952
|
+
message: t("messages.cardAuthNotSupported")
|
|
19953
|
+
}
|
|
19954
|
+
});
|
|
19955
|
+
}
|
|
19956
|
+
window.Pelcro.paymentMethods.create({
|
|
19957
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19958
|
+
token: source.id
|
|
19959
|
+
}, (err, res) => {
|
|
19960
|
+
if (err) {
|
|
19961
|
+
onFailure(err);
|
|
19962
|
+
return dispatch({
|
|
19963
|
+
type: SHOW_ALERT,
|
|
19964
|
+
payload: {
|
|
19965
|
+
type: "error",
|
|
19966
|
+
content: getErrorMessages(err)
|
|
19967
|
+
}
|
|
19968
|
+
});
|
|
19969
|
+
}
|
|
19970
|
+
if (res) {
|
|
19971
|
+
setTimeout(() => {
|
|
19972
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
19973
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19974
|
+
payment_method_id: paymentMethodId
|
|
19975
|
+
}, (err, res) => {
|
|
19976
|
+
dispatch({
|
|
19977
|
+
type: DISABLE_SUBMIT,
|
|
19978
|
+
payload: false
|
|
19979
|
+
});
|
|
19980
|
+
dispatch({
|
|
19981
|
+
type: LOADING,
|
|
19982
|
+
payload: false
|
|
19983
|
+
});
|
|
19984
|
+
if (err) {
|
|
19985
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
19986
|
+
return dispatch({
|
|
19987
|
+
type: SHOW_ALERT,
|
|
19988
|
+
payload: {
|
|
19989
|
+
type: "error",
|
|
19990
|
+
content: getErrorMessages(err)
|
|
19991
|
+
}
|
|
19992
|
+
});
|
|
19993
|
+
}
|
|
19994
|
+
onSuccess(res);
|
|
19995
|
+
});
|
|
19996
|
+
}, 1000);
|
|
19997
|
+
}
|
|
19998
|
+
});
|
|
19999
|
+
});
|
|
20000
|
+
};
|
|
20001
|
+
const updatePaymentRequest = state => {
|
|
20002
|
+
var _state$paymentRequest;
|
|
20003
|
+
state === null || state === void 0 ? void 0 : (_state$paymentRequest = state.paymentRequest) === null || _state$paymentRequest === void 0 ? void 0 : _state$paymentRequest.update({
|
|
20004
|
+
total: {
|
|
20005
|
+
label: plan.nickname || plan.description,
|
|
20006
|
+
amount: state.updatedPrice
|
|
20007
|
+
}
|
|
19665
20008
|
});
|
|
19666
20009
|
};
|
|
19667
20010
|
const sendRegisterRequest = (state, callback) => {
|
|
@@ -19734,12 +20077,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19734
20077
|
}
|
|
19735
20078
|
stripe.createSource({
|
|
19736
20079
|
type: "card"
|
|
19737
|
-
}).then(
|
|
19738
|
-
var
|
|
20080
|
+
}).then(_ref10 => {
|
|
20081
|
+
var _ref11, _ref12, _state$updatedPrice;
|
|
19739
20082
|
let {
|
|
19740
20083
|
source,
|
|
19741
20084
|
error
|
|
19742
|
-
} =
|
|
20085
|
+
} = _ref10;
|
|
19743
20086
|
if (error) {
|
|
19744
20087
|
return handlePaymentError(error);
|
|
19745
20088
|
}
|
|
@@ -19758,7 +20101,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19758
20101
|
return total + item.price * item.quantity;
|
|
19759
20102
|
}, 0);
|
|
19760
20103
|
};
|
|
19761
|
-
(
|
|
20104
|
+
(_ref11 = (_ref12 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref12 !== void 0 ? _ref12 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref11 !== void 0 ? _ref11 : getOrderItemsTotal();
|
|
19762
20105
|
return handlePayment(source);
|
|
19763
20106
|
}).catch(error => {
|
|
19764
20107
|
return handlePaymentError(error);
|
|
@@ -20002,9 +20345,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20002
20345
|
});
|
|
20003
20346
|
}
|
|
20004
20347
|
}
|
|
20348
|
+
if (type === "createPaymentSource") {
|
|
20349
|
+
return createPaymentSource(state, dispatch);
|
|
20350
|
+
}
|
|
20005
20351
|
if (type === "updatePaymentSource") {
|
|
20006
20352
|
return updatePaymentSource(state, dispatch);
|
|
20007
20353
|
}
|
|
20354
|
+
if (type === "deletePaymentSource") {
|
|
20355
|
+
return replacePaymentSource(state, dispatch);
|
|
20356
|
+
}
|
|
20008
20357
|
if (!isAuthenticated() && plan.type === "donation") {
|
|
20009
20358
|
return sendRegisterRequest(state, () => submitPayment(state));
|
|
20010
20359
|
} else {
|
|
@@ -20150,16 +20499,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20150
20499
|
...state,
|
|
20151
20500
|
cyberSourceSessionId: action.payload
|
|
20152
20501
|
});
|
|
20502
|
+
case HANDLE_CHECKBOX_CHANGE:
|
|
20503
|
+
return lib_7({
|
|
20504
|
+
...state,
|
|
20505
|
+
...action.payload
|
|
20506
|
+
});
|
|
20507
|
+
case SET_IS_DEFAULT_PAYMENT_METHOD:
|
|
20508
|
+
return lib_7({
|
|
20509
|
+
...state,
|
|
20510
|
+
...action.payload
|
|
20511
|
+
});
|
|
20153
20512
|
default:
|
|
20154
20513
|
return state;
|
|
20155
20514
|
}
|
|
20156
|
-
}, initialState$
|
|
20515
|
+
}, initialState$l);
|
|
20157
20516
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20158
20517
|
style: {
|
|
20159
20518
|
...style
|
|
20160
20519
|
},
|
|
20161
20520
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
20162
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20521
|
+
}, /*#__PURE__*/React__default.createElement(Provider$l, {
|
|
20163
20522
|
value: {
|
|
20164
20523
|
state,
|
|
20165
20524
|
dispatch
|
|
@@ -20167,12 +20526,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20167
20526
|
}, children.length ? children.map((child, i) => {
|
|
20168
20527
|
if (child) {
|
|
20169
20528
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
20170
|
-
store: store$
|
|
20529
|
+
store: store$l,
|
|
20171
20530
|
key: i
|
|
20172
20531
|
});
|
|
20173
20532
|
}
|
|
20174
20533
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20175
|
-
store: store$
|
|
20534
|
+
store: store$l
|
|
20176
20535
|
})));
|
|
20177
20536
|
};
|
|
20178
20537
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
@@ -20193,11 +20552,11 @@ const PaymentMethodContainer = props => {
|
|
|
20193
20552
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
20194
20553
|
locale: getPageOrDefaultLanguage()
|
|
20195
20554
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
20196
|
-
store: store$
|
|
20555
|
+
store: store$l
|
|
20197
20556
|
}, props))));
|
|
20198
20557
|
} else if (cardProcessor !== "stripe") {
|
|
20199
20558
|
return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
20200
|
-
store: store$
|
|
20559
|
+
store: store$l
|
|
20201
20560
|
}, props));
|
|
20202
20561
|
}
|
|
20203
20562
|
return null;
|
|
@@ -20357,7 +20716,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
20357
20716
|
currentPlan,
|
|
20358
20717
|
updatedPrice
|
|
20359
20718
|
}
|
|
20360
|
-
} = useContext(store$
|
|
20719
|
+
} = useContext(store$l);
|
|
20361
20720
|
const updatePaymentRequest = () => {
|
|
20362
20721
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
20363
20722
|
paymentRequest === null || paymentRequest === void 0 ? void 0 : paymentRequest.update({
|
|
@@ -20382,7 +20741,10 @@ const PelcroPaymentRequestButton = props => {
|
|
|
20382
20741
|
}
|
|
20383
20742
|
return null;
|
|
20384
20743
|
};
|
|
20385
|
-
const CheckoutForm =
|
|
20744
|
+
const CheckoutForm = _ref => {
|
|
20745
|
+
let {
|
|
20746
|
+
type
|
|
20747
|
+
} = _ref;
|
|
20386
20748
|
const {
|
|
20387
20749
|
selectedPaymentMethodId
|
|
20388
20750
|
} = usePelcro();
|
|
@@ -20409,16 +20771,31 @@ const CheckoutForm = () => {
|
|
|
20409
20771
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20410
20772
|
className: "plc-w-6/12 plc-pr-4"
|
|
20411
20773
|
}, /*#__PURE__*/React__default.createElement(MonthSelect, {
|
|
20412
|
-
store: store$
|
|
20774
|
+
store: store$l,
|
|
20413
20775
|
placeholder: "Exp Month *"
|
|
20414
20776
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
20415
20777
|
className: "plc-w-6/12"
|
|
20416
20778
|
}, /*#__PURE__*/React__default.createElement(YearSelect, {
|
|
20417
|
-
store: store$
|
|
20779
|
+
store: store$l,
|
|
20418
20780
|
placeholder: "Exp Year *"
|
|
20419
20781
|
}))));
|
|
20420
20782
|
}
|
|
20421
20783
|
if (cardProcessor === "stripe") {
|
|
20784
|
+
if (type === "updatePaymentSource") {
|
|
20785
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
20786
|
+
className: "plc-flex plc-items-end plc-justify-between plc-my-2"
|
|
20787
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20788
|
+
className: "plc-w-6/12 plc-pr-4"
|
|
20789
|
+
}, /*#__PURE__*/React__default.createElement(MonthSelect, {
|
|
20790
|
+
store: store$l,
|
|
20791
|
+
placeholder: "Exp Month *"
|
|
20792
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
20793
|
+
className: "plc-w-6/12"
|
|
20794
|
+
}, /*#__PURE__*/React__default.createElement(YearSelect, {
|
|
20795
|
+
store: store$l,
|
|
20796
|
+
placeholder: "Exp Year *"
|
|
20797
|
+
})));
|
|
20798
|
+
}
|
|
20422
20799
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
|
|
20423
20800
|
autoFocus: true
|
|
20424
20801
|
}), /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -20448,7 +20825,7 @@ const DiscountedPrice = props => {
|
|
|
20448
20825
|
taxAmount,
|
|
20449
20826
|
percentOff
|
|
20450
20827
|
}
|
|
20451
|
-
} = useContext(store$
|
|
20828
|
+
} = useContext(store$l);
|
|
20452
20829
|
const {
|
|
20453
20830
|
order,
|
|
20454
20831
|
plan
|
|
@@ -20509,7 +20886,7 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20509
20886
|
month,
|
|
20510
20887
|
year
|
|
20511
20888
|
}
|
|
20512
|
-
} = useContext(store$
|
|
20889
|
+
} = useContext(store$l);
|
|
20513
20890
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
20514
20891
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
20515
20892
|
const priceFormatted = (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -20543,15 +20920,15 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20543
20920
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
20544
20921
|
};
|
|
20545
20922
|
|
|
20546
|
-
var _path$
|
|
20547
|
-
function _extends$
|
|
20923
|
+
var _path$o;
|
|
20924
|
+
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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); }
|
|
20548
20925
|
function SvgArrowLeft(props) {
|
|
20549
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20926
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
20550
20927
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20551
20928
|
fill: "none",
|
|
20552
20929
|
viewBox: "0 0 24 24",
|
|
20553
20930
|
stroke: "currentColor"
|
|
20554
|
-
}, props), _path$
|
|
20931
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
20555
20932
|
strokeLinecap: "round",
|
|
20556
20933
|
strokeLinejoin: "round",
|
|
20557
20934
|
strokeWidth: 2,
|
|
@@ -20571,7 +20948,7 @@ const ApplyCouponButton = _ref => {
|
|
|
20571
20948
|
disableCouponButton
|
|
20572
20949
|
},
|
|
20573
20950
|
dispatch
|
|
20574
|
-
} = useContext(store$
|
|
20951
|
+
} = useContext(store$l);
|
|
20575
20952
|
const {
|
|
20576
20953
|
t
|
|
20577
20954
|
} = useTranslation("checkoutForm");
|
|
@@ -20603,7 +20980,7 @@ const CouponCodeField = props => {
|
|
|
20603
20980
|
couponCode,
|
|
20604
20981
|
couponError
|
|
20605
20982
|
}
|
|
20606
|
-
} = useContext(store$
|
|
20983
|
+
} = useContext(store$l);
|
|
20607
20984
|
const onCouponCodeChange = e => {
|
|
20608
20985
|
dispatch({
|
|
20609
20986
|
type: UPDATE_COUPON_CODE,
|
|
@@ -20629,15 +21006,15 @@ const CouponCodeField = props => {
|
|
|
20629
21006
|
}, props));
|
|
20630
21007
|
};
|
|
20631
21008
|
|
|
20632
|
-
var _path$
|
|
20633
|
-
function _extends$
|
|
21009
|
+
var _path$n;
|
|
21010
|
+
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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); }
|
|
20634
21011
|
function SvgTicket(props) {
|
|
20635
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21012
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
20636
21013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20637
21014
|
fill: "none",
|
|
20638
21015
|
viewBox: "0 0 24 24",
|
|
20639
21016
|
stroke: "currentColor"
|
|
20640
|
-
}, props), _path$
|
|
21017
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
20641
21018
|
strokeLinecap: "round",
|
|
20642
21019
|
strokeLinejoin: "round",
|
|
20643
21020
|
strokeWidth: 2,
|
|
@@ -20655,7 +21032,7 @@ const CouponCode = _ref => {
|
|
|
20655
21032
|
state: {
|
|
20656
21033
|
enableCouponField
|
|
20657
21034
|
}
|
|
20658
|
-
} = useContext(store$
|
|
21035
|
+
} = useContext(store$l);
|
|
20659
21036
|
const {
|
|
20660
21037
|
t
|
|
20661
21038
|
} = useTranslation("checkoutForm");
|
|
@@ -20879,7 +21256,7 @@ const PaypalSubscribeButton = props => {
|
|
|
20879
21256
|
const {
|
|
20880
21257
|
dispatch,
|
|
20881
21258
|
state
|
|
20882
|
-
} = useContext(store$
|
|
21259
|
+
} = useContext(store$l);
|
|
20883
21260
|
const {
|
|
20884
21261
|
product,
|
|
20885
21262
|
plan,
|
|
@@ -20995,14 +21372,14 @@ const BankAuthenticationSuccess = () => {
|
|
|
20995
21372
|
}));
|
|
20996
21373
|
};
|
|
20997
21374
|
|
|
20998
|
-
var _path$
|
|
20999
|
-
function _extends$
|
|
21375
|
+
var _path$m;
|
|
21376
|
+
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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); }
|
|
21000
21377
|
function SvgLock(props) {
|
|
21001
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21378
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
21002
21379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21003
21380
|
viewBox: "0 0 20 20",
|
|
21004
21381
|
fill: "currentColor"
|
|
21005
|
-
}, props), _path$
|
|
21382
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
21006
21383
|
fillRule: "evenodd",
|
|
21007
21384
|
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",
|
|
21008
21385
|
clipRule: "evenodd"
|
|
@@ -21018,7 +21395,7 @@ const SelectedPaymentMethod = () => {
|
|
|
21018
21395
|
state: {
|
|
21019
21396
|
isLoading
|
|
21020
21397
|
}
|
|
21021
|
-
} = useContext(store$
|
|
21398
|
+
} = useContext(store$l);
|
|
21022
21399
|
const {
|
|
21023
21400
|
switchView,
|
|
21024
21401
|
selectedPaymentMethodId
|
|
@@ -21059,7 +21436,7 @@ const TaxAmount = () => {
|
|
|
21059
21436
|
state: {
|
|
21060
21437
|
taxAmount
|
|
21061
21438
|
}
|
|
21062
|
-
} = useContext(store$
|
|
21439
|
+
} = useContext(store$l);
|
|
21063
21440
|
const {
|
|
21064
21441
|
plan
|
|
21065
21442
|
} = usePelcro();
|
|
@@ -21077,15 +21454,15 @@ const TaxAmount = () => {
|
|
|
21077
21454
|
};
|
|
21078
21455
|
|
|
21079
21456
|
const IncludeFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
21080
|
-
store: store$
|
|
21457
|
+
store: store$l
|
|
21081
21458
|
}, props));
|
|
21082
21459
|
|
|
21083
21460
|
const IncludeLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
21084
|
-
store: store$
|
|
21461
|
+
store: store$l
|
|
21085
21462
|
}, props));
|
|
21086
21463
|
|
|
21087
21464
|
const IncludePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
21088
|
-
store: store$
|
|
21465
|
+
store: store$l
|
|
21089
21466
|
}, props));
|
|
21090
21467
|
|
|
21091
21468
|
const SubscriptionCreateFreePlanButton = _ref => {
|
|
@@ -21099,7 +21476,7 @@ const SubscriptionCreateFreePlanButton = _ref => {
|
|
|
21099
21476
|
disableSubmit
|
|
21100
21477
|
},
|
|
21101
21478
|
dispatch
|
|
21102
|
-
} = useContext(store$
|
|
21479
|
+
} = useContext(store$l);
|
|
21103
21480
|
const {
|
|
21104
21481
|
t
|
|
21105
21482
|
} = useTranslation("common");
|
|
@@ -21135,7 +21512,7 @@ const OrderCreateFreeButton = _ref => {
|
|
|
21135
21512
|
disableSubmit
|
|
21136
21513
|
},
|
|
21137
21514
|
dispatch
|
|
21138
|
-
} = useContext(store$
|
|
21515
|
+
} = useContext(store$l);
|
|
21139
21516
|
const {
|
|
21140
21517
|
t
|
|
21141
21518
|
} = useTranslation("checkoutForm");
|
|
@@ -21161,7 +21538,7 @@ const OrderCreateFreeButton = _ref => {
|
|
|
21161
21538
|
};
|
|
21162
21539
|
|
|
21163
21540
|
const DonationEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
21164
|
-
store: store$
|
|
21541
|
+
store: store$l
|
|
21165
21542
|
}, props));
|
|
21166
21543
|
|
|
21167
21544
|
/**
|
|
@@ -21178,7 +21555,7 @@ const ApplePayButton = _ref => {
|
|
|
21178
21555
|
const {
|
|
21179
21556
|
dispatch,
|
|
21180
21557
|
state
|
|
21181
|
-
} = useContext(store$
|
|
21558
|
+
} = useContext(store$l);
|
|
21182
21559
|
const {
|
|
21183
21560
|
plan,
|
|
21184
21561
|
invoice,
|
|
@@ -21491,6 +21868,43 @@ const ApplePayButton = _ref => {
|
|
|
21491
21868
|
});
|
|
21492
21869
|
};
|
|
21493
21870
|
|
|
21871
|
+
function PaymentMethodUpdateSetDefault(props) {
|
|
21872
|
+
const {
|
|
21873
|
+
dispatch,
|
|
21874
|
+
state: {
|
|
21875
|
+
isDefault
|
|
21876
|
+
}
|
|
21877
|
+
} = useContext(store$l);
|
|
21878
|
+
const {
|
|
21879
|
+
paymentMethodToEdit
|
|
21880
|
+
} = usePelcro();
|
|
21881
|
+
useEffect(() => {
|
|
21882
|
+
if (paymentMethodToEdit !== null && paymentMethodToEdit !== void 0 && paymentMethodToEdit.is_default) {
|
|
21883
|
+
dispatch({
|
|
21884
|
+
type: SET_IS_DEFAULT_PAYMENT_METHOD,
|
|
21885
|
+
payload: {
|
|
21886
|
+
isDefault: true
|
|
21887
|
+
}
|
|
21888
|
+
});
|
|
21889
|
+
}
|
|
21890
|
+
}, [paymentMethodToEdit]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
21891
|
+
|
|
21892
|
+
const handleCheckboxChange = e => {
|
|
21893
|
+
dispatch({
|
|
21894
|
+
type: HANDLE_CHECKBOX_CHANGE,
|
|
21895
|
+
payload: {
|
|
21896
|
+
isDefault: e.target.checked
|
|
21897
|
+
}
|
|
21898
|
+
});
|
|
21899
|
+
};
|
|
21900
|
+
return /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
21901
|
+
onChange: e => handleCheckboxChange(e),
|
|
21902
|
+
id: props.id,
|
|
21903
|
+
checked: isDefault,
|
|
21904
|
+
disabled: paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : paymentMethodToEdit.is_default
|
|
21905
|
+
}, props.label);
|
|
21906
|
+
}
|
|
21907
|
+
|
|
21494
21908
|
/**
|
|
21495
21909
|
*
|
|
21496
21910
|
*/
|
|
@@ -21576,9 +21990,14 @@ function PaymentMethodView(_ref) {
|
|
|
21576
21990
|
label: t("labels.email"),
|
|
21577
21991
|
required: true,
|
|
21578
21992
|
autoFocus: true
|
|
21579
|
-
})), /*#__PURE__*/React__default.createElement(CheckoutForm,
|
|
21993
|
+
})), /*#__PURE__*/React__default.createElement(CheckoutForm, {
|
|
21994
|
+
type: type
|
|
21995
|
+
}), showCoupon && /*#__PURE__*/React__default.createElement("div", {
|
|
21580
21996
|
className: "plc-mb-2"
|
|
21581
|
-
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement(
|
|
21997
|
+
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), type === "updatePaymentSource" && /*#__PURE__*/React__default.createElement(PaymentMethodUpdateSetDefault, {
|
|
21998
|
+
id: "pelcro-input-is-default",
|
|
21999
|
+
label: t("labels.isDefault")
|
|
22000
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
21582
22001
|
className: "plc-grid plc-mt-4 plc-gap-y-2"
|
|
21583
22002
|
}, /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !supportsVantiv && !supportsCybersource && !supportsTap ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PelcroPaymentRequestButton, null), /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : showExternalPaymentMethods && supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : null, showApplePayButton && supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ApplePayButton, null)) : null)))));
|
|
21584
22003
|
}
|
|
@@ -21698,14 +22117,14 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21698
22117
|
}
|
|
21699
22118
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
21700
22119
|
|
|
21701
|
-
const initialState$
|
|
22120
|
+
const initialState$k = {
|
|
21702
22121
|
cancelationReason: "",
|
|
21703
22122
|
cancelationOption: ""
|
|
21704
22123
|
};
|
|
21705
|
-
const store$
|
|
22124
|
+
const store$k = /*#__PURE__*/createContext(initialState$k);
|
|
21706
22125
|
const {
|
|
21707
|
-
Provider: Provider$
|
|
21708
|
-
} = store$
|
|
22126
|
+
Provider: Provider$k
|
|
22127
|
+
} = store$k;
|
|
21709
22128
|
const SubscriptionCancelContainer = _ref => {
|
|
21710
22129
|
let {
|
|
21711
22130
|
style,
|
|
@@ -21730,35 +22149,35 @@ const SubscriptionCancelContainer = _ref => {
|
|
|
21730
22149
|
default:
|
|
21731
22150
|
return state;
|
|
21732
22151
|
}
|
|
21733
|
-
}, initialState$
|
|
22152
|
+
}, initialState$k);
|
|
21734
22153
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
21735
22154
|
style: {
|
|
21736
22155
|
...style
|
|
21737
22156
|
},
|
|
21738
22157
|
className: `pelcro-container pelcro-subscription-cancel-container ${className}`
|
|
21739
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
22158
|
+
}, /*#__PURE__*/React__default.createElement(Provider$k, {
|
|
21740
22159
|
value: {
|
|
21741
22160
|
state,
|
|
21742
22161
|
dispatch
|
|
21743
22162
|
}
|
|
21744
22163
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
21745
|
-
store: store$
|
|
22164
|
+
store: store$k,
|
|
21746
22165
|
key: i
|
|
21747
22166
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
21748
|
-
store: store$
|
|
22167
|
+
store: store$k
|
|
21749
22168
|
})));
|
|
21750
22169
|
};
|
|
21751
22170
|
|
|
21752
|
-
var _path$
|
|
21753
|
-
function _extends$
|
|
22171
|
+
var _path$l;
|
|
22172
|
+
function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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); }
|
|
21754
22173
|
function SvgInfoCircle(props) {
|
|
21755
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22174
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
21756
22175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21757
22176
|
className: "plc-w-5 plc-h-5",
|
|
21758
22177
|
fill: "none",
|
|
21759
22178
|
viewBox: "0 0 24 24",
|
|
21760
22179
|
stroke: "currentColor"
|
|
21761
|
-
}, props), _path$
|
|
22180
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
21762
22181
|
strokeLinecap: "round",
|
|
21763
22182
|
strokeLinejoin: "round",
|
|
21764
22183
|
strokeWidth: 2,
|
|
@@ -21827,7 +22246,7 @@ const SubscriptionCancelReason = props => {
|
|
|
21827
22246
|
} = useTranslation("subscriptionCancel");
|
|
21828
22247
|
const {
|
|
21829
22248
|
dispatch
|
|
21830
|
-
} = useContext(store$
|
|
22249
|
+
} = useContext(store$k);
|
|
21831
22250
|
const handleOnTextAreaBlur = e => {
|
|
21832
22251
|
dispatch({
|
|
21833
22252
|
type: SET_CANCEL_SUBSCRIPTION_REASON,
|
|
@@ -21841,9 +22260,9 @@ const SubscriptionCancelReason = props => {
|
|
|
21841
22260
|
};
|
|
21842
22261
|
|
|
21843
22262
|
var _switch;
|
|
21844
|
-
function _extends$
|
|
22263
|
+
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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); }
|
|
21845
22264
|
function SvgSubscription(props) {
|
|
21846
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22265
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
21847
22266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21848
22267
|
viewBox: "0 0 100 125",
|
|
21849
22268
|
fill: "currentColor"
|
|
@@ -21872,7 +22291,7 @@ const SubscriptionCancelButton = _ref => {
|
|
|
21872
22291
|
cancelationReason,
|
|
21873
22292
|
cancelationOption
|
|
21874
22293
|
}
|
|
21875
|
-
} = useContext(store$
|
|
22294
|
+
} = useContext(store$k);
|
|
21876
22295
|
const {
|
|
21877
22296
|
t
|
|
21878
22297
|
} = useTranslation("subscriptionCancel");
|
|
@@ -21951,7 +22370,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
21951
22370
|
cancelationOption
|
|
21952
22371
|
},
|
|
21953
22372
|
dispatch
|
|
21954
|
-
} = useContext(store$
|
|
22373
|
+
} = useContext(store$k);
|
|
21955
22374
|
const {
|
|
21956
22375
|
t
|
|
21957
22376
|
} = useTranslation("subscriptionCancel");
|
|
@@ -22067,14 +22486,14 @@ const SubscriptionCancelModal = _ref => {
|
|
|
22067
22486
|
};
|
|
22068
22487
|
SubscriptionCancelModal.viewId = "subscription-cancel";
|
|
22069
22488
|
|
|
22070
|
-
const initialState$
|
|
22489
|
+
const initialState$j = {
|
|
22071
22490
|
suspendDate: null,
|
|
22072
22491
|
buttonDisabled: false
|
|
22073
22492
|
};
|
|
22074
|
-
const store$
|
|
22493
|
+
const store$j = /*#__PURE__*/createContext(initialState$j);
|
|
22075
22494
|
const {
|
|
22076
|
-
Provider: Provider$
|
|
22077
|
-
} = store$
|
|
22495
|
+
Provider: Provider$j
|
|
22496
|
+
} = store$j;
|
|
22078
22497
|
const SubscriptionSuspendContainer = _ref => {
|
|
22079
22498
|
let {
|
|
22080
22499
|
style,
|
|
@@ -22100,22 +22519,22 @@ const SubscriptionSuspendContainer = _ref => {
|
|
|
22100
22519
|
default:
|
|
22101
22520
|
return state;
|
|
22102
22521
|
}
|
|
22103
|
-
}, initialState$
|
|
22522
|
+
}, initialState$j);
|
|
22104
22523
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
22105
22524
|
style: {
|
|
22106
22525
|
...style
|
|
22107
22526
|
},
|
|
22108
22527
|
className: `pelcro-container pelcro-subscription-suspend-container ${className}`
|
|
22109
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
22528
|
+
}, /*#__PURE__*/React__default.createElement(Provider$j, {
|
|
22110
22529
|
value: {
|
|
22111
22530
|
state,
|
|
22112
22531
|
dispatch
|
|
22113
22532
|
}
|
|
22114
22533
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
22115
|
-
store: store$
|
|
22534
|
+
store: store$j,
|
|
22116
22535
|
key: i
|
|
22117
22536
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
22118
|
-
store: store$
|
|
22537
|
+
store: store$j
|
|
22119
22538
|
})));
|
|
22120
22539
|
};
|
|
22121
22540
|
|
|
@@ -22164,7 +22583,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
22164
22583
|
const {
|
|
22165
22584
|
dispatch,
|
|
22166
22585
|
state
|
|
22167
|
-
} = useContext(store$
|
|
22586
|
+
} = useContext(store$j);
|
|
22168
22587
|
const handleInputChange = value => {
|
|
22169
22588
|
if (value) {
|
|
22170
22589
|
dispatch({
|
|
@@ -22206,7 +22625,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
22206
22625
|
buttonDisabled
|
|
22207
22626
|
},
|
|
22208
22627
|
dispatch
|
|
22209
|
-
} = useContext(store$
|
|
22628
|
+
} = useContext(store$j);
|
|
22210
22629
|
const {
|
|
22211
22630
|
t
|
|
22212
22631
|
} = useTranslation("subscriptionSuspend");
|
|
@@ -22307,10 +22726,10 @@ function SubscriptionSuspendModal(_ref) {
|
|
|
22307
22726
|
}
|
|
22308
22727
|
SubscriptionSuspendModal.viewId = "subscription-suspend";
|
|
22309
22728
|
|
|
22310
|
-
var _path$
|
|
22311
|
-
function _extends$
|
|
22729
|
+
var _path$k;
|
|
22730
|
+
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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); }
|
|
22312
22731
|
function SvgGift(props) {
|
|
22313
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22732
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
22314
22733
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22315
22734
|
fill: "none",
|
|
22316
22735
|
stroke: "currentColor",
|
|
@@ -22319,7 +22738,7 @@ function SvgGift(props) {
|
|
|
22319
22738
|
strokeWidth: 2,
|
|
22320
22739
|
viewBox: "0 0 24 24",
|
|
22321
22740
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22322
|
-
}, props), _path$
|
|
22741
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
22323
22742
|
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"
|
|
22324
22743
|
})));
|
|
22325
22744
|
}
|
|
@@ -22625,7 +23044,7 @@ class DefaultNewsLetter extends Component {
|
|
|
22625
23044
|
}
|
|
22626
23045
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
22627
23046
|
|
|
22628
|
-
const initialState$
|
|
23047
|
+
const initialState$i = {
|
|
22629
23048
|
didSubToNewslettersBefore: false,
|
|
22630
23049
|
newsletters: [],
|
|
22631
23050
|
isListLoading: true,
|
|
@@ -22635,10 +23054,10 @@ const initialState$h = {
|
|
|
22635
23054
|
content: ""
|
|
22636
23055
|
}
|
|
22637
23056
|
};
|
|
22638
|
-
const store$
|
|
23057
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
22639
23058
|
const {
|
|
22640
|
-
Provider: Provider$
|
|
22641
|
-
} = store$
|
|
23059
|
+
Provider: Provider$i
|
|
23060
|
+
} = store$i;
|
|
22642
23061
|
const NewsletterUpdateContainer = _ref => {
|
|
22643
23062
|
let {
|
|
22644
23063
|
style,
|
|
@@ -22745,7 +23164,7 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
22745
23164
|
default:
|
|
22746
23165
|
return state;
|
|
22747
23166
|
}
|
|
22748
|
-
}, initialState$
|
|
23167
|
+
}, initialState$i);
|
|
22749
23168
|
useEffect(() => {
|
|
22750
23169
|
const getUserNewsletters = () => {
|
|
22751
23170
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -22787,7 +23206,7 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
22787
23206
|
...style
|
|
22788
23207
|
},
|
|
22789
23208
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
22790
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23209
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
22791
23210
|
value: {
|
|
22792
23211
|
state,
|
|
22793
23212
|
dispatch
|
|
@@ -22795,12 +23214,12 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
22795
23214
|
}, children.length ? children.map((child, i) => {
|
|
22796
23215
|
if (child) {
|
|
22797
23216
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
22798
|
-
store: store$
|
|
23217
|
+
store: store$i,
|
|
22799
23218
|
key: i
|
|
22800
23219
|
});
|
|
22801
23220
|
}
|
|
22802
23221
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
22803
|
-
store: store$
|
|
23222
|
+
store: store$i
|
|
22804
23223
|
})));
|
|
22805
23224
|
};
|
|
22806
23225
|
|
|
@@ -22816,7 +23235,7 @@ const NewsletterUpdateButton = _ref => {
|
|
|
22816
23235
|
isSubmitting,
|
|
22817
23236
|
isListLoading
|
|
22818
23237
|
}
|
|
22819
|
-
} = useContext(store$
|
|
23238
|
+
} = useContext(store$i);
|
|
22820
23239
|
const {
|
|
22821
23240
|
t
|
|
22822
23241
|
} = useTranslation("newsletter");
|
|
@@ -22845,7 +23264,7 @@ const NewsletterUpdateList = () => {
|
|
|
22845
23264
|
newsletters,
|
|
22846
23265
|
isListLoading
|
|
22847
23266
|
}
|
|
22848
|
-
} = useContext(store$
|
|
23267
|
+
} = useContext(store$i);
|
|
22849
23268
|
if (isListLoading) {
|
|
22850
23269
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
22851
23270
|
width: 60,
|
|
@@ -23042,7 +23461,7 @@ function SubscriptionCreateModal(_ref) {
|
|
|
23042
23461
|
}
|
|
23043
23462
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
23044
23463
|
|
|
23045
|
-
const initialState$
|
|
23464
|
+
const initialState$h = {
|
|
23046
23465
|
emails: "",
|
|
23047
23466
|
emailsError: null,
|
|
23048
23467
|
buttonDisabled: false,
|
|
@@ -23054,10 +23473,10 @@ const initialState$g = {
|
|
|
23054
23473
|
content: ""
|
|
23055
23474
|
}
|
|
23056
23475
|
};
|
|
23057
|
-
const store$
|
|
23476
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
23058
23477
|
const {
|
|
23059
|
-
Provider: Provider$
|
|
23060
|
-
} = store$
|
|
23478
|
+
Provider: Provider$h
|
|
23479
|
+
} = store$h;
|
|
23061
23480
|
const SubscriptionManageMembersContainer = _ref => {
|
|
23062
23481
|
let {
|
|
23063
23482
|
style,
|
|
@@ -23221,7 +23640,7 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
23221
23640
|
default:
|
|
23222
23641
|
return state;
|
|
23223
23642
|
}
|
|
23224
|
-
}, initialState$
|
|
23643
|
+
}, initialState$h);
|
|
23225
23644
|
useEffect(() => {
|
|
23226
23645
|
dispatch({
|
|
23227
23646
|
type: HANDLE_LIST_MEMBERS
|
|
@@ -23232,7 +23651,7 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
23232
23651
|
...style
|
|
23233
23652
|
},
|
|
23234
23653
|
className: `pelcro-container pelcro-manage-members-container ${className}`
|
|
23235
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23654
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
23236
23655
|
value: {
|
|
23237
23656
|
state,
|
|
23238
23657
|
dispatch
|
|
@@ -23240,12 +23659,12 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
23240
23659
|
}, children.length ? children.map((child, i) => {
|
|
23241
23660
|
if (child) {
|
|
23242
23661
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
23243
|
-
store: store$
|
|
23662
|
+
store: store$h,
|
|
23244
23663
|
key: i
|
|
23245
23664
|
});
|
|
23246
23665
|
}
|
|
23247
23666
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23248
|
-
store: store$
|
|
23667
|
+
store: store$h
|
|
23249
23668
|
})));
|
|
23250
23669
|
};
|
|
23251
23670
|
|
|
@@ -23262,7 +23681,7 @@ const SubscriptionManageMembersButton = _ref => {
|
|
|
23262
23681
|
buttonDisabled
|
|
23263
23682
|
},
|
|
23264
23683
|
dispatch
|
|
23265
|
-
} = useContext(store$
|
|
23684
|
+
} = useContext(store$h);
|
|
23266
23685
|
const {
|
|
23267
23686
|
t
|
|
23268
23687
|
} = useTranslation("subscriptionManageMembers");
|
|
@@ -23292,7 +23711,7 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
23292
23711
|
emails: stateEmails,
|
|
23293
23712
|
emailsError
|
|
23294
23713
|
}
|
|
23295
|
-
} = useContext(store$
|
|
23714
|
+
} = useContext(store$h);
|
|
23296
23715
|
const [emails, setEmails] = useState(stateEmails);
|
|
23297
23716
|
const [finishedTyping, setFinishedTyping] = useState(false);
|
|
23298
23717
|
const handleInputChange = useCallback(value => {
|
|
@@ -23322,15 +23741,15 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
23322
23741
|
}, props));
|
|
23323
23742
|
}
|
|
23324
23743
|
|
|
23325
|
-
var _path$
|
|
23326
|
-
function _extends$
|
|
23744
|
+
var _path$j;
|
|
23745
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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); }
|
|
23327
23746
|
function SvgCheckMark(props) {
|
|
23328
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23747
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
23329
23748
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23330
23749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23331
23750
|
viewBox: "0 0 20 20",
|
|
23332
23751
|
fill: "currentColor"
|
|
23333
|
-
}, props), _path$
|
|
23752
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
23334
23753
|
fillRule: "evenodd",
|
|
23335
23754
|
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",
|
|
23336
23755
|
clipRule: "evenodd"
|
|
@@ -23348,7 +23767,7 @@ function SubscriptionManageMembersList(props) {
|
|
|
23348
23767
|
removeMemberId,
|
|
23349
23768
|
loading
|
|
23350
23769
|
}
|
|
23351
|
-
} = useContext(store$
|
|
23770
|
+
} = useContext(store$h);
|
|
23352
23771
|
const getMemberStatus = useCallback(sub => {
|
|
23353
23772
|
if (sub.status === "pending") {
|
|
23354
23773
|
return {
|
|
@@ -23511,7 +23930,7 @@ function SubscriptionManageMembersModal(_ref) {
|
|
|
23511
23930
|
SubscriptionManageMembersModal.viewId = "manage-members";
|
|
23512
23931
|
|
|
23513
23932
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5, _window$Pelcro$user$r6, _window$Pelcro$user$r7;
|
|
23514
|
-
const initialState$
|
|
23933
|
+
const initialState$g = {
|
|
23515
23934
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
23516
23935
|
emailError: null,
|
|
23517
23936
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
@@ -23531,10 +23950,10 @@ const initialState$f = {
|
|
|
23531
23950
|
content: ""
|
|
23532
23951
|
}
|
|
23533
23952
|
};
|
|
23534
|
-
const store$
|
|
23953
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
23535
23954
|
const {
|
|
23536
|
-
Provider: Provider$
|
|
23537
|
-
} = store$
|
|
23955
|
+
Provider: Provider$g
|
|
23956
|
+
} = store$g;
|
|
23538
23957
|
const UserUpdateContainer = _ref => {
|
|
23539
23958
|
let {
|
|
23540
23959
|
style,
|
|
@@ -23730,13 +24149,13 @@ const UserUpdateContainer = _ref => {
|
|
|
23730
24149
|
default:
|
|
23731
24150
|
return state;
|
|
23732
24151
|
}
|
|
23733
|
-
}, initialState$
|
|
24152
|
+
}, initialState$g);
|
|
23734
24153
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23735
24154
|
style: {
|
|
23736
24155
|
...style
|
|
23737
24156
|
},
|
|
23738
24157
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
23739
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
24158
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
23740
24159
|
value: {
|
|
23741
24160
|
state,
|
|
23742
24161
|
dispatch
|
|
@@ -23744,24 +24163,24 @@ const UserUpdateContainer = _ref => {
|
|
|
23744
24163
|
}, children.length ? children.map((child, i) => {
|
|
23745
24164
|
if (child) {
|
|
23746
24165
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
23747
|
-
store: store$
|
|
24166
|
+
store: store$g,
|
|
23748
24167
|
key: i
|
|
23749
24168
|
});
|
|
23750
24169
|
}
|
|
23751
24170
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23752
|
-
store: store$
|
|
24171
|
+
store: store$g
|
|
23753
24172
|
})));
|
|
23754
24173
|
};
|
|
23755
24174
|
|
|
23756
|
-
var _path$
|
|
23757
|
-
function _extends$
|
|
24175
|
+
var _path$i;
|
|
24176
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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); }
|
|
23758
24177
|
function SvgEdit(props) {
|
|
23759
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24178
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
23760
24179
|
className: "plc-w-6 plc-h-6",
|
|
23761
24180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23762
24181
|
viewBox: "0 0 20 20",
|
|
23763
24182
|
fill: "currentColor"
|
|
23764
|
-
}, props), _path$
|
|
24183
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
23765
24184
|
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"
|
|
23766
24185
|
})));
|
|
23767
24186
|
}
|
|
@@ -23773,7 +24192,7 @@ const UserUpdateEmail = props => {
|
|
|
23773
24192
|
email,
|
|
23774
24193
|
emailError
|
|
23775
24194
|
}
|
|
23776
|
-
} = useContext(store$
|
|
24195
|
+
} = useContext(store$g);
|
|
23777
24196
|
const [enableEmailEdit, setEnableEmailEdit] = useState(false);
|
|
23778
24197
|
const {
|
|
23779
24198
|
t
|
|
@@ -23797,7 +24216,7 @@ const UserUpdateEmail = props => {
|
|
|
23797
24216
|
className: "plc-flex plc-items-start plc-relative"
|
|
23798
24217
|
}, /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
23799
24218
|
disabled: !enableEmailEdit,
|
|
23800
|
-
store: store$
|
|
24219
|
+
store: store$g,
|
|
23801
24220
|
label: t("labels.email"),
|
|
23802
24221
|
enableEmailEdit: enableEmailEdit
|
|
23803
24222
|
}, props)), /*#__PURE__*/React__default.createElement(Button, {
|
|
@@ -23831,7 +24250,7 @@ const UserUpdateButton = _ref => {
|
|
|
23831
24250
|
phoneError
|
|
23832
24251
|
},
|
|
23833
24252
|
dispatch
|
|
23834
|
-
} = useContext(store$
|
|
24253
|
+
} = useContext(store$g);
|
|
23835
24254
|
const supportsTap = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.tap_gateway_settings);
|
|
23836
24255
|
const {
|
|
23837
24256
|
t
|
|
@@ -23927,19 +24346,19 @@ function UpdateUserNameInput(_ref) {
|
|
|
23927
24346
|
}
|
|
23928
24347
|
|
|
23929
24348
|
const UserUpdateUsername = props => /*#__PURE__*/React__default.createElement(UpdateUserNameInput, Object.assign({
|
|
23930
|
-
store: store$
|
|
24349
|
+
store: store$g
|
|
23931
24350
|
}, props));
|
|
23932
24351
|
|
|
23933
24352
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
23934
|
-
store: store$
|
|
24353
|
+
store: store$g
|
|
23935
24354
|
}, props));
|
|
23936
24355
|
|
|
23937
24356
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
23938
|
-
store: store$
|
|
24357
|
+
store: store$g
|
|
23939
24358
|
}, props));
|
|
23940
24359
|
|
|
23941
24360
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
23942
|
-
store: store$
|
|
24361
|
+
store: store$g
|
|
23943
24362
|
}, props));
|
|
23944
24363
|
|
|
23945
24364
|
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";
|
|
@@ -24026,7 +24445,7 @@ function Tin(_ref) {
|
|
|
24026
24445
|
}
|
|
24027
24446
|
|
|
24028
24447
|
const UserUpdateTin = props => /*#__PURE__*/React__default.createElement(Tin, Object.assign({
|
|
24029
|
-
store: store$
|
|
24448
|
+
store: store$g
|
|
24030
24449
|
}, props));
|
|
24031
24450
|
|
|
24032
24451
|
function DisplayName(_ref) {
|
|
@@ -24055,7 +24474,7 @@ function DisplayName(_ref) {
|
|
|
24055
24474
|
}
|
|
24056
24475
|
|
|
24057
24476
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
24058
|
-
store: store$
|
|
24477
|
+
store: store$g
|
|
24059
24478
|
}, props));
|
|
24060
24479
|
|
|
24061
24480
|
const UserUpdateView = props => {
|
|
@@ -24149,11 +24568,11 @@ UserUpdateModal.viewId = "user-edit";
|
|
|
24149
24568
|
|
|
24150
24569
|
const UserUpdateTextInput = props => {
|
|
24151
24570
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
24152
|
-
store: store$
|
|
24571
|
+
store: store$g
|
|
24153
24572
|
}));
|
|
24154
24573
|
};
|
|
24155
24574
|
|
|
24156
|
-
const initialState$
|
|
24575
|
+
const initialState$f = {
|
|
24157
24576
|
isSubmitting: false,
|
|
24158
24577
|
firstName: "",
|
|
24159
24578
|
firstNameError: "",
|
|
@@ -24179,10 +24598,10 @@ const initialState$e = {
|
|
|
24179
24598
|
content: ""
|
|
24180
24599
|
}
|
|
24181
24600
|
};
|
|
24182
|
-
const store$
|
|
24601
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
24183
24602
|
const {
|
|
24184
|
-
Provider: Provider$
|
|
24185
|
-
} = store$
|
|
24603
|
+
Provider: Provider$f
|
|
24604
|
+
} = store$f;
|
|
24186
24605
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
24187
24606
|
const AddressCreateContainer = _ref => {
|
|
24188
24607
|
var _props$giftCode, _ref2, _props$subscriptionId;
|
|
@@ -24416,7 +24835,7 @@ const AddressCreateContainer = _ref => {
|
|
|
24416
24835
|
default:
|
|
24417
24836
|
return state;
|
|
24418
24837
|
}
|
|
24419
|
-
}, initialState$
|
|
24838
|
+
}, initialState$f);
|
|
24420
24839
|
useEffect(() => {
|
|
24421
24840
|
const getStates = () => {
|
|
24422
24841
|
dispatch({
|
|
@@ -24448,16 +24867,16 @@ const AddressCreateContainer = _ref => {
|
|
|
24448
24867
|
...style
|
|
24449
24868
|
},
|
|
24450
24869
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
24451
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
24870
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
24452
24871
|
value: {
|
|
24453
24872
|
state,
|
|
24454
24873
|
dispatch
|
|
24455
24874
|
}
|
|
24456
24875
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24457
|
-
store: store$
|
|
24876
|
+
store: store$f,
|
|
24458
24877
|
key: i
|
|
24459
24878
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24460
|
-
store: store$
|
|
24879
|
+
store: store$f
|
|
24461
24880
|
})));
|
|
24462
24881
|
};
|
|
24463
24882
|
|
|
@@ -24468,7 +24887,7 @@ function AddressCreateFirstName(props) {
|
|
|
24468
24887
|
firstName,
|
|
24469
24888
|
firstNameError
|
|
24470
24889
|
}
|
|
24471
|
-
} = useContext(store$
|
|
24890
|
+
} = useContext(store$f);
|
|
24472
24891
|
const handleInputChange = value => {
|
|
24473
24892
|
dispatch({
|
|
24474
24893
|
type: SET_TEXT_FIELD,
|
|
@@ -24502,7 +24921,7 @@ function AddressCreateLastName(props) {
|
|
|
24502
24921
|
lastName,
|
|
24503
24922
|
lastNameError
|
|
24504
24923
|
}
|
|
24505
|
-
} = useContext(store$
|
|
24924
|
+
} = useContext(store$f);
|
|
24506
24925
|
const handleInputChange = value => {
|
|
24507
24926
|
dispatch({
|
|
24508
24927
|
type: SET_TEXT_FIELD,
|
|
@@ -24534,7 +24953,7 @@ function AddressCreateLine1(props) {
|
|
|
24534
24953
|
line1,
|
|
24535
24954
|
line1Error
|
|
24536
24955
|
}
|
|
24537
|
-
} = useContext(store$
|
|
24956
|
+
} = useContext(store$f);
|
|
24538
24957
|
const handleBlur = () => {
|
|
24539
24958
|
return dispatch({
|
|
24540
24959
|
type: VALIDATE_FIELD,
|
|
@@ -24573,7 +24992,7 @@ function AddressCreateCity(props) {
|
|
|
24573
24992
|
city,
|
|
24574
24993
|
cityError
|
|
24575
24994
|
}
|
|
24576
|
-
} = useContext(store$
|
|
24995
|
+
} = useContext(store$f);
|
|
24577
24996
|
const handleInputChange = value => {
|
|
24578
24997
|
dispatch({
|
|
24579
24998
|
type: SET_TEXT_FIELD,
|
|
@@ -24605,7 +25024,7 @@ function AddressCreatePostalCode(props) {
|
|
|
24605
25024
|
postalCode,
|
|
24606
25025
|
postalCodeError
|
|
24607
25026
|
}
|
|
24608
|
-
} = useContext(store$
|
|
25027
|
+
} = useContext(store$f);
|
|
24609
25028
|
const handleInputChange = value => {
|
|
24610
25029
|
dispatch({
|
|
24611
25030
|
type: SET_TEXT_FIELD,
|
|
@@ -24641,7 +25060,7 @@ const AddressCreateSubmit = _ref => {
|
|
|
24641
25060
|
state: {
|
|
24642
25061
|
isSubmitting
|
|
24643
25062
|
}
|
|
24644
|
-
} = useContext(store$
|
|
25063
|
+
} = useContext(store$f);
|
|
24645
25064
|
const {
|
|
24646
25065
|
t
|
|
24647
25066
|
} = useTranslation("address");
|
|
@@ -24721,7 +25140,7 @@ function CountrySelect(_ref) {
|
|
|
24721
25140
|
}
|
|
24722
25141
|
|
|
24723
25142
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
24724
|
-
store: store$
|
|
25143
|
+
store: store$f
|
|
24725
25144
|
}, props));
|
|
24726
25145
|
|
|
24727
25146
|
function StateSelect(_ref) {
|
|
@@ -24803,14 +25222,14 @@ function StateSelect(_ref) {
|
|
|
24803
25222
|
}
|
|
24804
25223
|
|
|
24805
25224
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
24806
|
-
store: store$
|
|
25225
|
+
store: store$f
|
|
24807
25226
|
}, props));
|
|
24808
25227
|
|
|
24809
25228
|
const AddressCreateSetDefault = props => {
|
|
24810
25229
|
const {
|
|
24811
25230
|
dispatch,
|
|
24812
25231
|
state
|
|
24813
|
-
} = useContext(store$
|
|
25232
|
+
} = useContext(store$f);
|
|
24814
25233
|
const handleCheckboxChange = e => {
|
|
24815
25234
|
dispatch({
|
|
24816
25235
|
type: HANDLE_CHECKBOX_CHANGE,
|
|
@@ -24935,18 +25354,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
24935
25354
|
|
|
24936
25355
|
const AddressCreateTextInput = props => {
|
|
24937
25356
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
24938
|
-
store: store$
|
|
25357
|
+
store: store$f
|
|
24939
25358
|
}));
|
|
24940
25359
|
};
|
|
24941
25360
|
|
|
24942
25361
|
const AddressCreateLine2 = props => {
|
|
24943
25362
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
24944
25363
|
fieldName: "line2",
|
|
24945
|
-
store: store$
|
|
25364
|
+
store: store$f
|
|
24946
25365
|
}, props));
|
|
24947
25366
|
};
|
|
24948
25367
|
|
|
24949
|
-
const initialState$
|
|
25368
|
+
const initialState$e = {
|
|
24950
25369
|
isSubmitting: false,
|
|
24951
25370
|
firstName: "",
|
|
24952
25371
|
firstNameError: "",
|
|
@@ -24972,10 +25391,10 @@ const initialState$d = {
|
|
|
24972
25391
|
content: ""
|
|
24973
25392
|
}
|
|
24974
25393
|
};
|
|
24975
|
-
const store$
|
|
25394
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
24976
25395
|
const {
|
|
24977
|
-
Provider: Provider$
|
|
24978
|
-
} = store$
|
|
25396
|
+
Provider: Provider$e
|
|
25397
|
+
} = store$e;
|
|
24979
25398
|
const AddressUpdateContainer = _ref => {
|
|
24980
25399
|
var _props$addressId, _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
24981
25400
|
let {
|
|
@@ -25024,7 +25443,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
25024
25443
|
const thisAddress = addresses[address];
|
|
25025
25444
|
if (+thisAddress.id === +addressId) {
|
|
25026
25445
|
const newState = {
|
|
25027
|
-
...initialState$
|
|
25446
|
+
...initialState$e,
|
|
25028
25447
|
firstName: thisAddress.first_name,
|
|
25029
25448
|
lastName: thisAddress.last_name,
|
|
25030
25449
|
line1: thisAddress.line1,
|
|
@@ -25175,7 +25594,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
25175
25594
|
default:
|
|
25176
25595
|
return state;
|
|
25177
25596
|
}
|
|
25178
|
-
}, initialState$
|
|
25597
|
+
}, initialState$e);
|
|
25179
25598
|
useEffect(() => {
|
|
25180
25599
|
const getStates = () => {
|
|
25181
25600
|
dispatch({
|
|
@@ -25207,21 +25626,21 @@ const AddressUpdateContainer = _ref => {
|
|
|
25207
25626
|
...style
|
|
25208
25627
|
},
|
|
25209
25628
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
25210
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25629
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
25211
25630
|
value: {
|
|
25212
25631
|
state,
|
|
25213
25632
|
dispatch
|
|
25214
25633
|
}
|
|
25215
25634
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25216
|
-
store: store$
|
|
25635
|
+
store: store$e,
|
|
25217
25636
|
key: i
|
|
25218
25637
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25219
|
-
store: store$
|
|
25638
|
+
store: store$e
|
|
25220
25639
|
})));
|
|
25221
25640
|
};
|
|
25222
25641
|
|
|
25223
25642
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
25224
|
-
store: store$
|
|
25643
|
+
store: store$e
|
|
25225
25644
|
}, props));
|
|
25226
25645
|
|
|
25227
25646
|
function AddressUpdateFirstName(props) {
|
|
@@ -25231,7 +25650,7 @@ function AddressUpdateFirstName(props) {
|
|
|
25231
25650
|
firstName,
|
|
25232
25651
|
firstNameError
|
|
25233
25652
|
}
|
|
25234
|
-
} = useContext(store$
|
|
25653
|
+
} = useContext(store$e);
|
|
25235
25654
|
const handleBlur = () => {
|
|
25236
25655
|
return dispatch({
|
|
25237
25656
|
type: VALIDATE_FIELD,
|
|
@@ -25270,7 +25689,7 @@ function AddressUpdateLastName(props) {
|
|
|
25270
25689
|
lastName,
|
|
25271
25690
|
lastNameError
|
|
25272
25691
|
}
|
|
25273
|
-
} = useContext(store$
|
|
25692
|
+
} = useContext(store$e);
|
|
25274
25693
|
const handleBlur = () => {
|
|
25275
25694
|
return dispatch({
|
|
25276
25695
|
type: VALIDATE_FIELD,
|
|
@@ -25309,7 +25728,7 @@ function AddressUpdateLine1(props) {
|
|
|
25309
25728
|
line1,
|
|
25310
25729
|
line1Error
|
|
25311
25730
|
}
|
|
25312
|
-
} = useContext(store$
|
|
25731
|
+
} = useContext(store$e);
|
|
25313
25732
|
const handleBlur = () => {
|
|
25314
25733
|
return dispatch({
|
|
25315
25734
|
type: VALIDATE_FIELD,
|
|
@@ -25345,7 +25764,7 @@ const AddressUpdateLine2 = props => {
|
|
|
25345
25764
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
25346
25765
|
fieldName: "line2"
|
|
25347
25766
|
}, props, {
|
|
25348
|
-
store: store$
|
|
25767
|
+
store: store$e
|
|
25349
25768
|
}));
|
|
25350
25769
|
};
|
|
25351
25770
|
|
|
@@ -25356,7 +25775,7 @@ function AddressUpdateCity(props) {
|
|
|
25356
25775
|
city,
|
|
25357
25776
|
cityError
|
|
25358
25777
|
}
|
|
25359
|
-
} = useContext(store$
|
|
25778
|
+
} = useContext(store$e);
|
|
25360
25779
|
const handleBlur = () => {
|
|
25361
25780
|
return dispatch({
|
|
25362
25781
|
type: VALIDATE_FIELD,
|
|
@@ -25395,7 +25814,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
25395
25814
|
postalCode,
|
|
25396
25815
|
postalCodeError
|
|
25397
25816
|
}
|
|
25398
|
-
} = useContext(store$
|
|
25817
|
+
} = useContext(store$e);
|
|
25399
25818
|
const handleBlur = () => {
|
|
25400
25819
|
return dispatch({
|
|
25401
25820
|
type: VALIDATE_FIELD,
|
|
@@ -25438,7 +25857,7 @@ const AddressUpdateSubmit = _ref => {
|
|
|
25438
25857
|
state: {
|
|
25439
25858
|
isSubmitting
|
|
25440
25859
|
}
|
|
25441
|
-
} = useContext(store$
|
|
25860
|
+
} = useContext(store$e);
|
|
25442
25861
|
const {
|
|
25443
25862
|
t
|
|
25444
25863
|
} = useTranslation("address");
|
|
@@ -25454,7 +25873,7 @@ const AddressUpdateSubmit = _ref => {
|
|
|
25454
25873
|
};
|
|
25455
25874
|
|
|
25456
25875
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
25457
|
-
store: store$
|
|
25876
|
+
store: store$e
|
|
25458
25877
|
}, props));
|
|
25459
25878
|
|
|
25460
25879
|
function AddressUpdateSetDefault(props) {
|
|
@@ -25463,7 +25882,7 @@ function AddressUpdateSetDefault(props) {
|
|
|
25463
25882
|
state: {
|
|
25464
25883
|
isDefault
|
|
25465
25884
|
}
|
|
25466
|
-
} = useContext(store$
|
|
25885
|
+
} = useContext(store$e);
|
|
25467
25886
|
const handleCheckboxChange = e => {
|
|
25468
25887
|
dispatch({
|
|
25469
25888
|
type: HANDLE_CHECKBOX_CHANGE,
|
|
@@ -25565,7 +25984,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
25565
25984
|
|
|
25566
25985
|
const AddressUpdateTextInput = props => {
|
|
25567
25986
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
25568
|
-
store: store$
|
|
25987
|
+
store: store$e
|
|
25569
25988
|
}));
|
|
25570
25989
|
};
|
|
25571
25990
|
|
|
@@ -25655,7 +26074,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
25655
26074
|
};
|
|
25656
26075
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
25657
26076
|
|
|
25658
|
-
const initialState$
|
|
26077
|
+
const initialState$d = {
|
|
25659
26078
|
email: "",
|
|
25660
26079
|
password: "",
|
|
25661
26080
|
passwordError: null,
|
|
@@ -25668,10 +26087,10 @@ const initialState$c = {
|
|
|
25668
26087
|
content: ""
|
|
25669
26088
|
}
|
|
25670
26089
|
};
|
|
25671
|
-
const store$
|
|
26090
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
25672
26091
|
const {
|
|
25673
|
-
Provider: Provider$
|
|
25674
|
-
} = store$
|
|
26092
|
+
Provider: Provider$d
|
|
26093
|
+
} = store$d;
|
|
25675
26094
|
const PasswordResetContainer = _ref => {
|
|
25676
26095
|
let {
|
|
25677
26096
|
style,
|
|
@@ -25726,7 +26145,7 @@ const PasswordResetContainer = _ref => {
|
|
|
25726
26145
|
type: SET_EMAIL,
|
|
25727
26146
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
25728
26147
|
});
|
|
25729
|
-
initialState$
|
|
26148
|
+
initialState$d.email = window.Pelcro.helpers.getURLParameter("email");
|
|
25730
26149
|
dispatch({
|
|
25731
26150
|
type: SET_TOKEN,
|
|
25732
26151
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -25786,27 +26205,27 @@ const PasswordResetContainer = _ref => {
|
|
|
25786
26205
|
default:
|
|
25787
26206
|
return state;
|
|
25788
26207
|
}
|
|
25789
|
-
}, initialState$
|
|
26208
|
+
}, initialState$d);
|
|
25790
26209
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25791
26210
|
style: {
|
|
25792
26211
|
...style
|
|
25793
26212
|
},
|
|
25794
26213
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
25795
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26214
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
25796
26215
|
value: {
|
|
25797
26216
|
state,
|
|
25798
26217
|
dispatch
|
|
25799
26218
|
}
|
|
25800
26219
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25801
|
-
store: store$
|
|
26220
|
+
store: store$d,
|
|
25802
26221
|
key: i
|
|
25803
26222
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25804
|
-
store: store$
|
|
26223
|
+
store: store$d
|
|
25805
26224
|
})));
|
|
25806
26225
|
};
|
|
25807
26226
|
|
|
25808
26227
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
25809
|
-
store: store$
|
|
26228
|
+
store: store$d
|
|
25810
26229
|
}, props));
|
|
25811
26230
|
|
|
25812
26231
|
const PasswordResetButton = _ref => {
|
|
@@ -25820,7 +26239,7 @@ const PasswordResetButton = _ref => {
|
|
|
25820
26239
|
buttonDisabled
|
|
25821
26240
|
},
|
|
25822
26241
|
dispatch
|
|
25823
|
-
} = useContext(store$
|
|
26242
|
+
} = useContext(store$d);
|
|
25824
26243
|
const {
|
|
25825
26244
|
t
|
|
25826
26245
|
} = useTranslation("passwordReset");
|
|
@@ -25837,14 +26256,14 @@ const PasswordResetButton = _ref => {
|
|
|
25837
26256
|
};
|
|
25838
26257
|
|
|
25839
26258
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
25840
|
-
store: store$
|
|
26259
|
+
store: store$d
|
|
25841
26260
|
}, props, {
|
|
25842
26261
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
25843
26262
|
disabled: true
|
|
25844
26263
|
}));
|
|
25845
26264
|
|
|
25846
26265
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
25847
|
-
store: store$
|
|
26266
|
+
store: store$d
|
|
25848
26267
|
}, props));
|
|
25849
26268
|
|
|
25850
26269
|
const PasswordResetView = props => {
|
|
@@ -25897,7 +26316,7 @@ const PasswordResetModal = _ref => {
|
|
|
25897
26316
|
};
|
|
25898
26317
|
PasswordResetModal.viewId = "password-reset";
|
|
25899
26318
|
|
|
25900
|
-
const initialState$
|
|
26319
|
+
const initialState$c = {
|
|
25901
26320
|
email: "",
|
|
25902
26321
|
emailError: null,
|
|
25903
26322
|
buttonDisabled: false,
|
|
@@ -25906,10 +26325,10 @@ const initialState$b = {
|
|
|
25906
26325
|
content: ""
|
|
25907
26326
|
}
|
|
25908
26327
|
};
|
|
25909
|
-
const store$
|
|
26328
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
25910
26329
|
const {
|
|
25911
|
-
Provider: Provider$
|
|
25912
|
-
} = store$
|
|
26330
|
+
Provider: Provider$c
|
|
26331
|
+
} = store$c;
|
|
25913
26332
|
const PasswordForgotContainer = _ref => {
|
|
25914
26333
|
let {
|
|
25915
26334
|
style,
|
|
@@ -25985,22 +26404,22 @@ const PasswordForgotContainer = _ref => {
|
|
|
25985
26404
|
default:
|
|
25986
26405
|
return state;
|
|
25987
26406
|
}
|
|
25988
|
-
}, initialState$
|
|
26407
|
+
}, initialState$c);
|
|
25989
26408
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25990
26409
|
style: {
|
|
25991
26410
|
...style
|
|
25992
26411
|
},
|
|
25993
26412
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
25994
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26413
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
25995
26414
|
value: {
|
|
25996
26415
|
state,
|
|
25997
26416
|
dispatch
|
|
25998
26417
|
}
|
|
25999
26418
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26000
|
-
store: store$
|
|
26419
|
+
store: store$c,
|
|
26001
26420
|
key: i
|
|
26002
26421
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26003
|
-
store: store$
|
|
26422
|
+
store: store$c
|
|
26004
26423
|
})));
|
|
26005
26424
|
};
|
|
26006
26425
|
|
|
@@ -26017,7 +26436,7 @@ const PasswordForgotButton = _ref => {
|
|
|
26017
26436
|
emailError
|
|
26018
26437
|
},
|
|
26019
26438
|
dispatch
|
|
26020
|
-
} = useContext(store$
|
|
26439
|
+
} = useContext(store$c);
|
|
26021
26440
|
const {
|
|
26022
26441
|
t
|
|
26023
26442
|
} = useTranslation("passwordForgot");
|
|
@@ -26038,7 +26457,7 @@ const PasswordForgotButton = _ref => {
|
|
|
26038
26457
|
};
|
|
26039
26458
|
|
|
26040
26459
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
26041
|
-
store: store$
|
|
26460
|
+
store: store$c
|
|
26042
26461
|
}, props));
|
|
26043
26462
|
|
|
26044
26463
|
const PasswordForgotView = props => {
|
|
@@ -26089,7 +26508,7 @@ const PasswordForgotModal = _ref => {
|
|
|
26089
26508
|
};
|
|
26090
26509
|
PasswordForgotModal.viewId = "password-forgot";
|
|
26091
26510
|
|
|
26092
|
-
const initialState$
|
|
26511
|
+
const initialState$b = {
|
|
26093
26512
|
email: "",
|
|
26094
26513
|
emailError: null,
|
|
26095
26514
|
buttonDisabled: false,
|
|
@@ -26098,10 +26517,10 @@ const initialState$a = {
|
|
|
26098
26517
|
content: ""
|
|
26099
26518
|
}
|
|
26100
26519
|
};
|
|
26101
|
-
const store$
|
|
26520
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
26102
26521
|
const {
|
|
26103
|
-
Provider: Provider$
|
|
26104
|
-
} = store$
|
|
26522
|
+
Provider: Provider$b
|
|
26523
|
+
} = store$b;
|
|
26105
26524
|
const PasswordlessRequestContainer = _ref => {
|
|
26106
26525
|
let {
|
|
26107
26526
|
style,
|
|
@@ -26177,22 +26596,22 @@ const PasswordlessRequestContainer = _ref => {
|
|
|
26177
26596
|
default:
|
|
26178
26597
|
return state;
|
|
26179
26598
|
}
|
|
26180
|
-
}, initialState$
|
|
26599
|
+
}, initialState$b);
|
|
26181
26600
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26182
26601
|
style: {
|
|
26183
26602
|
...style
|
|
26184
26603
|
},
|
|
26185
26604
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
26186
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26605
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
26187
26606
|
value: {
|
|
26188
26607
|
state,
|
|
26189
26608
|
dispatch
|
|
26190
26609
|
}
|
|
26191
26610
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26192
|
-
store: store$
|
|
26611
|
+
store: store$b,
|
|
26193
26612
|
key: i
|
|
26194
26613
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26195
|
-
store: store$
|
|
26614
|
+
store: store$b
|
|
26196
26615
|
})));
|
|
26197
26616
|
};
|
|
26198
26617
|
|
|
@@ -26209,7 +26628,7 @@ const PasswordlessRequestViewButton = _ref => {
|
|
|
26209
26628
|
emailError
|
|
26210
26629
|
},
|
|
26211
26630
|
dispatch
|
|
26212
|
-
} = useContext(store$
|
|
26631
|
+
} = useContext(store$b);
|
|
26213
26632
|
const {
|
|
26214
26633
|
t
|
|
26215
26634
|
} = useTranslation("passwordlessRequest");
|
|
@@ -26230,7 +26649,7 @@ const PasswordlessRequestViewButton = _ref => {
|
|
|
26230
26649
|
};
|
|
26231
26650
|
|
|
26232
26651
|
const PasswordlessRequestEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
26233
|
-
store: store$
|
|
26652
|
+
store: store$b
|
|
26234
26653
|
}, props));
|
|
26235
26654
|
|
|
26236
26655
|
const PasswordlessRequestView = props => {
|
|
@@ -26272,7 +26691,7 @@ const PasswordlessRequestModal = _ref => {
|
|
|
26272
26691
|
};
|
|
26273
26692
|
PasswordlessRequestModal.viewId = "passwordless-request";
|
|
26274
26693
|
|
|
26275
|
-
const initialState$
|
|
26694
|
+
const initialState$a = {
|
|
26276
26695
|
currentPassword: "",
|
|
26277
26696
|
newPassword: "",
|
|
26278
26697
|
confirmNewPassword: "",
|
|
@@ -26286,10 +26705,10 @@ const initialState$9 = {
|
|
|
26286
26705
|
content: ""
|
|
26287
26706
|
}
|
|
26288
26707
|
};
|
|
26289
|
-
const store$
|
|
26708
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
26290
26709
|
const {
|
|
26291
|
-
Provider: Provider$
|
|
26292
|
-
} = store$
|
|
26710
|
+
Provider: Provider$a
|
|
26711
|
+
} = store$a;
|
|
26293
26712
|
const PasswordChangeContainer = _ref => {
|
|
26294
26713
|
let {
|
|
26295
26714
|
style,
|
|
@@ -26440,22 +26859,22 @@ const PasswordChangeContainer = _ref => {
|
|
|
26440
26859
|
default:
|
|
26441
26860
|
return state;
|
|
26442
26861
|
}
|
|
26443
|
-
}, initialState$
|
|
26862
|
+
}, initialState$a);
|
|
26444
26863
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26445
26864
|
style: {
|
|
26446
26865
|
...style
|
|
26447
26866
|
},
|
|
26448
26867
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
26449
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26868
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
26450
26869
|
value: {
|
|
26451
26870
|
state,
|
|
26452
26871
|
dispatch
|
|
26453
26872
|
}
|
|
26454
26873
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26455
|
-
store: store$
|
|
26874
|
+
store: store$a,
|
|
26456
26875
|
key: i
|
|
26457
26876
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26458
|
-
store: store$
|
|
26877
|
+
store: store$a
|
|
26459
26878
|
})));
|
|
26460
26879
|
};
|
|
26461
26880
|
|
|
@@ -26466,7 +26885,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
26466
26885
|
currentPassword,
|
|
26467
26886
|
currentPasswordError
|
|
26468
26887
|
}
|
|
26469
|
-
} = useContext(store$
|
|
26888
|
+
} = useContext(store$a);
|
|
26470
26889
|
const handleBlur = useCallback(() => {
|
|
26471
26890
|
return dispatch({
|
|
26472
26891
|
type: VALIDATE_PASSWORD
|
|
@@ -26500,7 +26919,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
26500
26919
|
newPassword,
|
|
26501
26920
|
newPasswordError
|
|
26502
26921
|
}
|
|
26503
|
-
} = useContext(store$
|
|
26922
|
+
} = useContext(store$a);
|
|
26504
26923
|
const handleBlur = useCallback(() => {
|
|
26505
26924
|
return dispatch({
|
|
26506
26925
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -26534,7 +26953,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
26534
26953
|
confirmNewPassword,
|
|
26535
26954
|
confirmNewPasswordError
|
|
26536
26955
|
}
|
|
26537
|
-
} = useContext(store$
|
|
26956
|
+
} = useContext(store$a);
|
|
26538
26957
|
const handleBlur = useCallback(() => {
|
|
26539
26958
|
return dispatch({
|
|
26540
26959
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -26576,7 +26995,7 @@ const PasswordChangeButton = _ref => {
|
|
|
26576
26995
|
confirmNewPasswordError
|
|
26577
26996
|
},
|
|
26578
26997
|
dispatch
|
|
26579
|
-
} = useContext(store$
|
|
26998
|
+
} = useContext(store$a);
|
|
26580
26999
|
const {
|
|
26581
27000
|
t
|
|
26582
27001
|
} = useTranslation("passwordChange");
|
|
@@ -26643,17 +27062,17 @@ const PasswordChangeModal = _ref => {
|
|
|
26643
27062
|
};
|
|
26644
27063
|
PasswordChangeModal.viewId = "password-change";
|
|
26645
27064
|
|
|
26646
|
-
const initialState$
|
|
27065
|
+
const initialState$9 = {
|
|
26647
27066
|
buttonDisabled: false,
|
|
26648
27067
|
alert: {
|
|
26649
27068
|
type: "error",
|
|
26650
27069
|
content: ""
|
|
26651
27070
|
}
|
|
26652
27071
|
};
|
|
26653
|
-
const store$
|
|
27072
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
26654
27073
|
const {
|
|
26655
|
-
Provider: Provider$
|
|
26656
|
-
} = store$
|
|
27074
|
+
Provider: Provider$9
|
|
27075
|
+
} = store$9;
|
|
26657
27076
|
const CartContainer = _ref => {
|
|
26658
27077
|
let {
|
|
26659
27078
|
style,
|
|
@@ -26739,22 +27158,22 @@ const CartContainer = _ref => {
|
|
|
26739
27158
|
default:
|
|
26740
27159
|
return state;
|
|
26741
27160
|
}
|
|
26742
|
-
}, initialState$
|
|
27161
|
+
}, initialState$9);
|
|
26743
27162
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26744
27163
|
style: {
|
|
26745
27164
|
...style
|
|
26746
27165
|
},
|
|
26747
27166
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
26748
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
27167
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
26749
27168
|
value: {
|
|
26750
27169
|
state,
|
|
26751
27170
|
dispatch
|
|
26752
27171
|
}
|
|
26753
27172
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26754
|
-
store: store$
|
|
27173
|
+
store: store$9,
|
|
26755
27174
|
key: i
|
|
26756
27175
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26757
|
-
store: store$
|
|
27176
|
+
store: store$9
|
|
26758
27177
|
})));
|
|
26759
27178
|
};
|
|
26760
27179
|
|
|
@@ -26796,7 +27215,7 @@ const CartSubmit = _ref => {
|
|
|
26796
27215
|
buttonDisabled
|
|
26797
27216
|
},
|
|
26798
27217
|
dispatch
|
|
26799
|
-
} = useContext(store$
|
|
27218
|
+
} = useContext(store$9);
|
|
26800
27219
|
const {
|
|
26801
27220
|
t
|
|
26802
27221
|
} = useTranslation("cart");
|
|
@@ -26831,7 +27250,7 @@ const CartTotalPrice = () => {
|
|
|
26831
27250
|
state: {
|
|
26832
27251
|
alert
|
|
26833
27252
|
}
|
|
26834
|
-
} = useContext(store$
|
|
27253
|
+
} = useContext(store$9);
|
|
26835
27254
|
const {
|
|
26836
27255
|
cartItems
|
|
26837
27256
|
} = usePelcro();
|
|
@@ -27145,7 +27564,7 @@ const OrderConfirmModal = props => {
|
|
|
27145
27564
|
};
|
|
27146
27565
|
OrderConfirmModal.viewId = "order-confirm";
|
|
27147
27566
|
|
|
27148
|
-
const initialState$
|
|
27567
|
+
const initialState$8 = {
|
|
27149
27568
|
email: "",
|
|
27150
27569
|
firstName: "",
|
|
27151
27570
|
lastName: "",
|
|
@@ -27157,10 +27576,10 @@ const initialState$7 = {
|
|
|
27157
27576
|
content: ""
|
|
27158
27577
|
}
|
|
27159
27578
|
};
|
|
27160
|
-
const store$
|
|
27579
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
27161
27580
|
const {
|
|
27162
|
-
Provider: Provider$
|
|
27163
|
-
} = store$
|
|
27581
|
+
Provider: Provider$8
|
|
27582
|
+
} = store$8;
|
|
27164
27583
|
const GiftCreateContainer = _ref => {
|
|
27165
27584
|
let {
|
|
27166
27585
|
style,
|
|
@@ -27258,22 +27677,22 @@ const GiftCreateContainer = _ref => {
|
|
|
27258
27677
|
default:
|
|
27259
27678
|
return state;
|
|
27260
27679
|
}
|
|
27261
|
-
}, initialState$
|
|
27680
|
+
}, initialState$8);
|
|
27262
27681
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27263
27682
|
style: {
|
|
27264
27683
|
...style
|
|
27265
27684
|
},
|
|
27266
27685
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
27267
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
27686
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
27268
27687
|
value: {
|
|
27269
27688
|
state,
|
|
27270
27689
|
dispatch
|
|
27271
27690
|
}
|
|
27272
27691
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
27273
|
-
store: store$
|
|
27692
|
+
store: store$8,
|
|
27274
27693
|
key: i
|
|
27275
27694
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
27276
|
-
store: store$
|
|
27695
|
+
store: store$8
|
|
27277
27696
|
})));
|
|
27278
27697
|
};
|
|
27279
27698
|
|
|
@@ -27288,7 +27707,7 @@ const GiftCreateSubmitButton = _ref => {
|
|
|
27288
27707
|
state: {
|
|
27289
27708
|
disableSubmit
|
|
27290
27709
|
}
|
|
27291
|
-
} = useContext(store$
|
|
27710
|
+
} = useContext(store$8);
|
|
27292
27711
|
const {
|
|
27293
27712
|
t
|
|
27294
27713
|
} = useTranslation("register");
|
|
@@ -27305,17 +27724,17 @@ const GiftCreateSubmitButton = _ref => {
|
|
|
27305
27724
|
|
|
27306
27725
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
27307
27726
|
initWithUserEmail: false,
|
|
27308
|
-
store: store$
|
|
27727
|
+
store: store$8
|
|
27309
27728
|
}, props));
|
|
27310
27729
|
|
|
27311
27730
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
27312
27731
|
initWithUserFirstName: false,
|
|
27313
|
-
store: store$
|
|
27732
|
+
store: store$8
|
|
27314
27733
|
}, props));
|
|
27315
27734
|
|
|
27316
27735
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
27317
27736
|
initWithUserLastName: false,
|
|
27318
|
-
store: store$
|
|
27737
|
+
store: store$8
|
|
27319
27738
|
}, props));
|
|
27320
27739
|
|
|
27321
27740
|
const nowDate = new Date();
|
|
@@ -27329,7 +27748,7 @@ const GiftCreateStartDate = props => {
|
|
|
27329
27748
|
const {
|
|
27330
27749
|
dispatch,
|
|
27331
27750
|
state
|
|
27332
|
-
} = useContext(store$
|
|
27751
|
+
} = useContext(store$8);
|
|
27333
27752
|
const handleInputChange = value => {
|
|
27334
27753
|
dispatch({
|
|
27335
27754
|
type: SET_START_DATE,
|
|
@@ -27359,7 +27778,7 @@ function GiftCreateMessage(props) {
|
|
|
27359
27778
|
const {
|
|
27360
27779
|
dispatch,
|
|
27361
27780
|
state
|
|
27362
|
-
} = useContext(store$
|
|
27781
|
+
} = useContext(store$8);
|
|
27363
27782
|
const MAX_CHARS_COUNT = 200;
|
|
27364
27783
|
const remainingCharsCount = (_ref = MAX_CHARS_COUNT - ((_state$giftMessage = state.giftMessage) === null || _state$giftMessage === void 0 ? void 0 : _state$giftMessage.length)) !== null && _ref !== void 0 ? _ref : 0;
|
|
27365
27784
|
const handleInputChange = value => {
|
|
@@ -27477,7 +27896,7 @@ const GiftCreateModal = _ref => {
|
|
|
27477
27896
|
};
|
|
27478
27897
|
GiftCreateModal.viewId = "gift-create";
|
|
27479
27898
|
|
|
27480
|
-
const initialState$
|
|
27899
|
+
const initialState$7 = {
|
|
27481
27900
|
isSubmitting: false,
|
|
27482
27901
|
giftCode: "",
|
|
27483
27902
|
buttonDisabled: true,
|
|
@@ -27486,10 +27905,10 @@ const initialState$6 = {
|
|
|
27486
27905
|
content: ""
|
|
27487
27906
|
}
|
|
27488
27907
|
};
|
|
27489
|
-
const store$
|
|
27908
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
27490
27909
|
const {
|
|
27491
|
-
Provider: Provider$
|
|
27492
|
-
} = store$
|
|
27910
|
+
Provider: Provider$7
|
|
27911
|
+
} = store$7;
|
|
27493
27912
|
const GiftRedeemContainer = _ref => {
|
|
27494
27913
|
var _ref2, _props$subscriptionId;
|
|
27495
27914
|
let {
|
|
@@ -27599,22 +28018,22 @@ const GiftRedeemContainer = _ref => {
|
|
|
27599
28018
|
default:
|
|
27600
28019
|
return state;
|
|
27601
28020
|
}
|
|
27602
|
-
}, initialState$
|
|
28021
|
+
}, initialState$7);
|
|
27603
28022
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27604
28023
|
style: {
|
|
27605
28024
|
...style
|
|
27606
28025
|
},
|
|
27607
28026
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
27608
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
28027
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
27609
28028
|
value: {
|
|
27610
28029
|
state,
|
|
27611
28030
|
dispatch
|
|
27612
28031
|
}
|
|
27613
28032
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
27614
|
-
store: store$
|
|
28033
|
+
store: store$7,
|
|
27615
28034
|
key: i
|
|
27616
28035
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
27617
|
-
store: store$
|
|
28036
|
+
store: store$7
|
|
27618
28037
|
})));
|
|
27619
28038
|
};
|
|
27620
28039
|
|
|
@@ -27648,7 +28067,7 @@ function GiftCode(_ref) {
|
|
|
27648
28067
|
}
|
|
27649
28068
|
|
|
27650
28069
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
27651
|
-
store: store$
|
|
28070
|
+
store: store$7
|
|
27652
28071
|
}, props));
|
|
27653
28072
|
|
|
27654
28073
|
const GiftRedeemSubmitButton = _ref => {
|
|
@@ -27663,7 +28082,7 @@ const GiftRedeemSubmitButton = _ref => {
|
|
|
27663
28082
|
disableSubmit,
|
|
27664
28083
|
isSubmitting
|
|
27665
28084
|
}
|
|
27666
|
-
} = useContext(store$
|
|
28085
|
+
} = useContext(store$7);
|
|
27667
28086
|
const {
|
|
27668
28087
|
t
|
|
27669
28088
|
} = useTranslation("register");
|
|
@@ -27748,7 +28167,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
27748
28167
|
const addressesWithoutDefault = addresses.filter(address => !address.is_default);
|
|
27749
28168
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
27750
28169
|
};
|
|
27751
|
-
const initialState$
|
|
28170
|
+
const initialState$6 = {
|
|
27752
28171
|
addresses: [],
|
|
27753
28172
|
selectedAddressId: null,
|
|
27754
28173
|
isSubmitting: false,
|
|
@@ -27757,10 +28176,10 @@ const initialState$5 = {
|
|
|
27757
28176
|
content: ""
|
|
27758
28177
|
}
|
|
27759
28178
|
};
|
|
27760
|
-
const store$
|
|
28179
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
27761
28180
|
const {
|
|
27762
|
-
Provider: Provider$
|
|
27763
|
-
} = store$
|
|
28181
|
+
Provider: Provider$6
|
|
28182
|
+
} = store$6;
|
|
27764
28183
|
const AddressSelectContainer = _ref => {
|
|
27765
28184
|
var _props$giftCode, _ref2, _props$subscriptionId;
|
|
27766
28185
|
let {
|
|
@@ -27887,7 +28306,7 @@ const AddressSelectContainer = _ref => {
|
|
|
27887
28306
|
default:
|
|
27888
28307
|
return state;
|
|
27889
28308
|
}
|
|
27890
|
-
}, initialState$
|
|
28309
|
+
}, initialState$6);
|
|
27891
28310
|
useEffect(() => {
|
|
27892
28311
|
var _window$Pelcro$user$r;
|
|
27893
28312
|
dispatch({
|
|
@@ -27900,16 +28319,16 @@ const AddressSelectContainer = _ref => {
|
|
|
27900
28319
|
...style
|
|
27901
28320
|
},
|
|
27902
28321
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
27903
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
28322
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
27904
28323
|
value: {
|
|
27905
28324
|
state,
|
|
27906
28325
|
dispatch
|
|
27907
28326
|
}
|
|
27908
28327
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
27909
|
-
store: store$
|
|
28328
|
+
store: store$6,
|
|
27910
28329
|
key: i
|
|
27911
28330
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
27912
|
-
store: store$
|
|
28331
|
+
store: store$6
|
|
27913
28332
|
})));
|
|
27914
28333
|
};
|
|
27915
28334
|
|
|
@@ -27920,7 +28339,7 @@ const AddressSelectList = () => {
|
|
|
27920
28339
|
addresses,
|
|
27921
28340
|
selectedAddressId
|
|
27922
28341
|
}
|
|
27923
|
-
} = useContext(store$
|
|
28342
|
+
} = useContext(store$6);
|
|
27924
28343
|
const handleAddressSelect = event => {
|
|
27925
28344
|
dispatch({
|
|
27926
28345
|
type: SELECT_ADDRESS,
|
|
@@ -27963,7 +28382,7 @@ const AddressSelectSubmit = _ref => {
|
|
|
27963
28382
|
selectedAddressId,
|
|
27964
28383
|
isSubmitting
|
|
27965
28384
|
}
|
|
27966
|
-
} = useContext(store$
|
|
28385
|
+
} = useContext(store$6);
|
|
27967
28386
|
const {
|
|
27968
28387
|
t
|
|
27969
28388
|
} = useTranslation("address");
|
|
@@ -28059,7 +28478,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
28059
28478
|
}
|
|
28060
28479
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
28061
28480
|
};
|
|
28062
|
-
const initialState$
|
|
28481
|
+
const initialState$5 = {
|
|
28063
28482
|
paymentMethods: [],
|
|
28064
28483
|
selectedPaymentMethodId: null,
|
|
28065
28484
|
isSubmitting: false,
|
|
@@ -28068,10 +28487,10 @@ const initialState$4 = {
|
|
|
28068
28487
|
content: ""
|
|
28069
28488
|
}
|
|
28070
28489
|
};
|
|
28071
|
-
const store$
|
|
28490
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
28072
28491
|
const {
|
|
28073
|
-
Provider: Provider$
|
|
28074
|
-
} = store$
|
|
28492
|
+
Provider: Provider$5
|
|
28493
|
+
} = store$5;
|
|
28075
28494
|
const PaymentMethodSelectContainer = _ref => {
|
|
28076
28495
|
let {
|
|
28077
28496
|
style,
|
|
@@ -28124,7 +28543,7 @@ const PaymentMethodSelectContainer = _ref => {
|
|
|
28124
28543
|
default:
|
|
28125
28544
|
return state;
|
|
28126
28545
|
}
|
|
28127
|
-
}, initialState$
|
|
28546
|
+
}, initialState$5);
|
|
28128
28547
|
useEffect(() => {
|
|
28129
28548
|
var _window$Pelcro$user$r3;
|
|
28130
28549
|
dispatch({
|
|
@@ -28137,16 +28556,16 @@ const PaymentMethodSelectContainer = _ref => {
|
|
|
28137
28556
|
...style
|
|
28138
28557
|
},
|
|
28139
28558
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
28140
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
28559
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
28141
28560
|
value: {
|
|
28142
28561
|
state,
|
|
28143
28562
|
dispatch
|
|
28144
28563
|
}
|
|
28145
28564
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
28146
|
-
store: store$
|
|
28565
|
+
store: store$5,
|
|
28147
28566
|
key: i
|
|
28148
28567
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
28149
|
-
store: store$
|
|
28568
|
+
store: store$5
|
|
28150
28569
|
})));
|
|
28151
28570
|
};
|
|
28152
28571
|
|
|
@@ -28160,7 +28579,7 @@ const PaymentMethodSelectList = () => {
|
|
|
28160
28579
|
paymentMethods,
|
|
28161
28580
|
selectedPaymentMethodId
|
|
28162
28581
|
}
|
|
28163
|
-
} = useContext(store$
|
|
28582
|
+
} = useContext(store$5);
|
|
28164
28583
|
const handlePaymentMethodSelect = event => {
|
|
28165
28584
|
dispatch({
|
|
28166
28585
|
type: SELECT_PAYMENT_METHOD,
|
|
@@ -28208,7 +28627,7 @@ const PaymentMethodSelectSubmit = _ref => {
|
|
|
28208
28627
|
selectedPaymentMethodId,
|
|
28209
28628
|
isSubmitting
|
|
28210
28629
|
}
|
|
28211
|
-
} = useContext(store$
|
|
28630
|
+
} = useContext(store$5);
|
|
28212
28631
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28213
28632
|
onClick: () => {
|
|
28214
28633
|
dispatch({
|
|
@@ -28246,50 +28665,469 @@ const PaymentMethodSelectView = props => {
|
|
|
28246
28665
|
}))));
|
|
28247
28666
|
};
|
|
28248
28667
|
|
|
28249
|
-
const PaymentMethodSelectModal = _ref => {
|
|
28250
|
-
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
28251
|
-
let {
|
|
28252
|
-
onDisplay,
|
|
28253
|
-
onClose,
|
|
28254
|
-
...otherProps
|
|
28255
|
-
} = _ref;
|
|
28256
|
-
const {
|
|
28257
|
-
switchToCheckoutForm,
|
|
28258
|
-
set,
|
|
28259
|
-
plan,
|
|
28260
|
-
order
|
|
28261
|
-
} = usePelcro();
|
|
28262
|
-
const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
|
|
28263
|
-
useEffect(() => {
|
|
28264
|
-
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
|
|
28265
|
-
switchToCheckoutForm();
|
|
28668
|
+
const PaymentMethodSelectModal = _ref => {
|
|
28669
|
+
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
28670
|
+
let {
|
|
28671
|
+
onDisplay,
|
|
28672
|
+
onClose,
|
|
28673
|
+
...otherProps
|
|
28674
|
+
} = _ref;
|
|
28675
|
+
const {
|
|
28676
|
+
switchToCheckoutForm,
|
|
28677
|
+
set,
|
|
28678
|
+
plan,
|
|
28679
|
+
order
|
|
28680
|
+
} = usePelcro();
|
|
28681
|
+
const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
|
|
28682
|
+
useEffect(() => {
|
|
28683
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
|
|
28684
|
+
switchToCheckoutForm();
|
|
28685
|
+
}
|
|
28686
|
+
}, []);
|
|
28687
|
+
const onSuccess = selectedPaymentMethodId => {
|
|
28688
|
+
var _otherProps$onSuccess;
|
|
28689
|
+
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, selectedPaymentMethodId);
|
|
28690
|
+
switchToCheckoutForm();
|
|
28691
|
+
};
|
|
28692
|
+
const onAddNewPaymentMethod = () => {
|
|
28693
|
+
set({
|
|
28694
|
+
selectedPaymentMethodId: null
|
|
28695
|
+
});
|
|
28696
|
+
switchToCheckoutForm();
|
|
28697
|
+
};
|
|
28698
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
28699
|
+
onDisplay: onDisplay,
|
|
28700
|
+
onClose: onClose,
|
|
28701
|
+
id: "pelcro-payment-method-select-modal"
|
|
28702
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodSelectView, Object.assign({
|
|
28703
|
+
onAddNewPaymentMethod: onAddNewPaymentMethod
|
|
28704
|
+
}, otherProps, {
|
|
28705
|
+
onSuccess: onSuccess
|
|
28706
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
28707
|
+
};
|
|
28708
|
+
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
28709
|
+
|
|
28710
|
+
const initialState$4 = {
|
|
28711
|
+
paymentMethods: [],
|
|
28712
|
+
selectedPaymentMethodId: null,
|
|
28713
|
+
isSubmitting: false,
|
|
28714
|
+
deleteOption: "",
|
|
28715
|
+
disableSubmit: false,
|
|
28716
|
+
isLoading: false,
|
|
28717
|
+
skeletonLoader: true,
|
|
28718
|
+
alert: {
|
|
28719
|
+
type: "error",
|
|
28720
|
+
content: ""
|
|
28721
|
+
}
|
|
28722
|
+
};
|
|
28723
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
28724
|
+
const {
|
|
28725
|
+
Provider: Provider$4
|
|
28726
|
+
} = store$4;
|
|
28727
|
+
const PaymentMethodDeleteContainer = _ref => {
|
|
28728
|
+
let {
|
|
28729
|
+
style,
|
|
28730
|
+
className = "",
|
|
28731
|
+
onSuccess = () => {},
|
|
28732
|
+
onFailure = () => {},
|
|
28733
|
+
children
|
|
28734
|
+
} = _ref;
|
|
28735
|
+
const {
|
|
28736
|
+
paymentMethodToDelete
|
|
28737
|
+
} = usePelcro();
|
|
28738
|
+
useEffect(() => {
|
|
28739
|
+
window.Pelcro.paymentMethods.list({
|
|
28740
|
+
auth_token: window.Pelcro.user.read().auth_token
|
|
28741
|
+
}, (err, res) => {
|
|
28742
|
+
if (err) {
|
|
28743
|
+
return console.error(err);
|
|
28744
|
+
}
|
|
28745
|
+
if (res) {
|
|
28746
|
+
dispatch({
|
|
28747
|
+
type: SET_PAYMENT_METHODS,
|
|
28748
|
+
payload: res.data
|
|
28749
|
+
});
|
|
28750
|
+
dispatch({
|
|
28751
|
+
type: SKELETON_LOADER,
|
|
28752
|
+
payload: false
|
|
28753
|
+
});
|
|
28754
|
+
if (res.data.length !== 1) {
|
|
28755
|
+
dispatch({
|
|
28756
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
28757
|
+
payload: "select"
|
|
28758
|
+
});
|
|
28759
|
+
} else {
|
|
28760
|
+
dispatch({
|
|
28761
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
28762
|
+
payload: "add"
|
|
28763
|
+
});
|
|
28764
|
+
}
|
|
28765
|
+
}
|
|
28766
|
+
});
|
|
28767
|
+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
28768
|
+
|
|
28769
|
+
const setDefaultPaymentMethod = () => {
|
|
28770
|
+
const {
|
|
28771
|
+
selectedPaymentMethodId: paymentMethodId
|
|
28772
|
+
} = state;
|
|
28773
|
+
window.Pelcro.paymentMethods.setDefaultPaymentMethod({
|
|
28774
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
28775
|
+
payment_method_id: paymentMethodId
|
|
28776
|
+
}, (err, res) => {
|
|
28777
|
+
if (err) {
|
|
28778
|
+
onFailure(err);
|
|
28779
|
+
return dispatch({
|
|
28780
|
+
type: SHOW_ALERT,
|
|
28781
|
+
payload: {
|
|
28782
|
+
type: "error",
|
|
28783
|
+
content: getErrorMessages(err)
|
|
28784
|
+
}
|
|
28785
|
+
});
|
|
28786
|
+
}
|
|
28787
|
+
setTimeout(() => {
|
|
28788
|
+
deletePaymentMethod();
|
|
28789
|
+
}, 1000);
|
|
28790
|
+
});
|
|
28791
|
+
};
|
|
28792
|
+
const deletePaymentMethod = () => {
|
|
28793
|
+
const {
|
|
28794
|
+
id: paymentMethodId
|
|
28795
|
+
} = paymentMethodToDelete;
|
|
28796
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
28797
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
28798
|
+
payment_method_id: paymentMethodId
|
|
28799
|
+
}, (err, res) => {
|
|
28800
|
+
if (err) {
|
|
28801
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
28802
|
+
return dispatch({
|
|
28803
|
+
type: SHOW_ALERT,
|
|
28804
|
+
payload: {
|
|
28805
|
+
type: "error",
|
|
28806
|
+
content: getErrorMessages(err)
|
|
28807
|
+
}
|
|
28808
|
+
});
|
|
28809
|
+
}
|
|
28810
|
+
dispatch({
|
|
28811
|
+
type: DISABLE_SUBMIT,
|
|
28812
|
+
payload: false
|
|
28813
|
+
});
|
|
28814
|
+
dispatch({
|
|
28815
|
+
type: LOADING,
|
|
28816
|
+
payload: false
|
|
28817
|
+
});
|
|
28818
|
+
onSuccess(res);
|
|
28819
|
+
});
|
|
28820
|
+
};
|
|
28821
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
28822
|
+
switch (action.type) {
|
|
28823
|
+
case SELECT_PAYMENT_METHOD:
|
|
28824
|
+
return lib_7({
|
|
28825
|
+
...state,
|
|
28826
|
+
selectedPaymentMethodId: action.payload
|
|
28827
|
+
});
|
|
28828
|
+
case HANDLE_SUBMIT:
|
|
28829
|
+
return lib_5({
|
|
28830
|
+
...state,
|
|
28831
|
+
disableSubmit: true,
|
|
28832
|
+
isLoading: true
|
|
28833
|
+
}, (state, dispatch) => setDefaultPaymentMethod());
|
|
28834
|
+
case SET_DELETE_PAYMENT_METHOD_OPTION:
|
|
28835
|
+
return lib_7({
|
|
28836
|
+
...state,
|
|
28837
|
+
deleteOption: action.payload
|
|
28838
|
+
});
|
|
28839
|
+
case SET_PAYMENT_METHODS:
|
|
28840
|
+
return lib_7({
|
|
28841
|
+
...state,
|
|
28842
|
+
paymentMethods: action.payload
|
|
28843
|
+
});
|
|
28844
|
+
case SHOW_ALERT:
|
|
28845
|
+
return lib_7({
|
|
28846
|
+
...state,
|
|
28847
|
+
alert: action.payload
|
|
28848
|
+
});
|
|
28849
|
+
case DISABLE_SUBMIT:
|
|
28850
|
+
return lib_7({
|
|
28851
|
+
...state,
|
|
28852
|
+
disableSubmit: action.payload
|
|
28853
|
+
});
|
|
28854
|
+
case LOADING:
|
|
28855
|
+
return lib_7({
|
|
28856
|
+
...state,
|
|
28857
|
+
isLoading: action.payload
|
|
28858
|
+
});
|
|
28859
|
+
case SKELETON_LOADER:
|
|
28860
|
+
return lib_7({
|
|
28861
|
+
...state,
|
|
28862
|
+
skeletonLoader: action.payload
|
|
28863
|
+
});
|
|
28864
|
+
default:
|
|
28865
|
+
return state;
|
|
28866
|
+
}
|
|
28867
|
+
}, initialState$4);
|
|
28868
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28869
|
+
style: {
|
|
28870
|
+
...style
|
|
28871
|
+
},
|
|
28872
|
+
className: `pelcro-container pelcro-payment-method-delete-container ${className}`
|
|
28873
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
28874
|
+
value: {
|
|
28875
|
+
state,
|
|
28876
|
+
dispatch
|
|
28877
|
+
}
|
|
28878
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
28879
|
+
store: store$4,
|
|
28880
|
+
key: i
|
|
28881
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
28882
|
+
store: store$4
|
|
28883
|
+
})));
|
|
28884
|
+
};
|
|
28885
|
+
|
|
28886
|
+
const PaymentMethodDeleteSubmit = _ref => {
|
|
28887
|
+
let {
|
|
28888
|
+
name,
|
|
28889
|
+
onClick,
|
|
28890
|
+
...otherProps
|
|
28891
|
+
} = _ref;
|
|
28892
|
+
const {
|
|
28893
|
+
t
|
|
28894
|
+
} = useTranslation("paymentMethod");
|
|
28895
|
+
const {
|
|
28896
|
+
dispatch,
|
|
28897
|
+
state: {
|
|
28898
|
+
isLoading,
|
|
28899
|
+
isDisabled
|
|
28900
|
+
}
|
|
28901
|
+
} = useContext(store$4);
|
|
28902
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28903
|
+
onClick: () => {
|
|
28904
|
+
dispatch({
|
|
28905
|
+
type: HANDLE_SUBMIT
|
|
28906
|
+
});
|
|
28907
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
28908
|
+
},
|
|
28909
|
+
disabled: isDisabled,
|
|
28910
|
+
isLoading: isLoading,
|
|
28911
|
+
className: "plc-w-full"
|
|
28912
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("select.buttons.selectPaymentMethod"));
|
|
28913
|
+
};
|
|
28914
|
+
|
|
28915
|
+
const PaymentMethodDeleteList = props => {
|
|
28916
|
+
const {
|
|
28917
|
+
t
|
|
28918
|
+
} = useTranslation("paymentMethod");
|
|
28919
|
+
const {
|
|
28920
|
+
dispatch,
|
|
28921
|
+
state: {
|
|
28922
|
+
deleteOption,
|
|
28923
|
+
selectedPaymentMethodId,
|
|
28924
|
+
paymentMethods,
|
|
28925
|
+
skeletonLoader
|
|
28926
|
+
}
|
|
28927
|
+
} = useContext(store$4);
|
|
28928
|
+
const {
|
|
28929
|
+
paymentMethodToDelete
|
|
28930
|
+
} = usePelcro();
|
|
28931
|
+
const handlePaymentMethodSelect = event => {
|
|
28932
|
+
dispatch({
|
|
28933
|
+
type: SELECT_PAYMENT_METHOD,
|
|
28934
|
+
payload: event.target.value
|
|
28935
|
+
});
|
|
28936
|
+
};
|
|
28937
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, skeletonLoader ? /*#__PURE__*/React__default.createElement("div", {
|
|
28938
|
+
className: "plc-w-full plc-h-40 plc-bg-gray-300 plc-rounded-md plc-animate-pulse"
|
|
28939
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paymentMethods && deleteOption === "select" && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
28940
|
+
className: "plc-px-3 plc-py-2 plc-space-y-4 plc-overflow-y-scroll no-scrollbar plc-max-h-80 pelcro-payment-method-select-wrapper plc-mb-4"
|
|
28941
|
+
}, paymentMethods.filter(paymentMethod => (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) !== (paymentMethodToDelete === null || paymentMethodToDelete === void 0 ? void 0 : paymentMethodToDelete.id)).map(paymentMethod => {
|
|
28942
|
+
var _paymentMethod$proper, _paymentMethod$proper2, _paymentMethod$proper3, _paymentMethod$proper4;
|
|
28943
|
+
const isSelected = selectedPaymentMethodId === String(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
28944
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28945
|
+
key: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
|
|
28946
|
+
className: `plc-p-2 plc-pl-4 plc-shadow-md plc-text-gray-900 plc-rounded pelcro-payment-method-wrapper`
|
|
28947
|
+
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
28948
|
+
className: "plc-flex plc-items-center pelcro-select-payment-method-radio",
|
|
28949
|
+
labelClassName: "plc-flex plc-items-center plc-space-x-2 plc-cursor-pointer plc-w-full",
|
|
28950
|
+
id: `pelcro-payment-method-select-${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id}`,
|
|
28951
|
+
name: "paymentMethod",
|
|
28952
|
+
checked: isSelected,
|
|
28953
|
+
value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
|
|
28954
|
+
onChange: handlePaymentMethodSelect
|
|
28955
|
+
}, getPaymentCardIcon$1((_paymentMethod$proper = paymentMethod.properties) === null || _paymentMethod$proper === void 0 ? void 0 : _paymentMethod$proper.brand), /*#__PURE__*/React__default.createElement("div", {
|
|
28956
|
+
className: "plc-flex plc-flex-col plc-text-lg pelcro-payment-method-details"
|
|
28957
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
28958
|
+
className: "plc-font-semibold"
|
|
28959
|
+
}, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022", " ", (_paymentMethod$proper2 = paymentMethod.properties) === null || _paymentMethod$proper2 === void 0 ? void 0 : _paymentMethod$proper2.last4), /*#__PURE__*/React__default.createElement("p", {
|
|
28960
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
28961
|
+
}, t("select.expires"), " ", (_paymentMethod$proper3 = paymentMethod.properties) === null || _paymentMethod$proper3 === void 0 ? void 0 : _paymentMethod$proper3.exp_month, "/", (_paymentMethod$proper4 = paymentMethod.properties) === null || _paymentMethod$proper4 === void 0 ? void 0 : _paymentMethod$proper4.exp_year))));
|
|
28962
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
28963
|
+
className: "plc-px-3"
|
|
28964
|
+
}, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteSubmit, null))), deleteOption === "add" && /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
28965
|
+
type: "deletePaymentSource",
|
|
28966
|
+
showCoupon: false,
|
|
28967
|
+
showExternalPaymentMethods: false,
|
|
28968
|
+
showApplePayButton: false,
|
|
28969
|
+
onDisplay: props.onDisplay,
|
|
28970
|
+
onFailure: props.onFailure,
|
|
28971
|
+
onSuccess: props.onSuccess,
|
|
28972
|
+
setAsDefault: true
|
|
28973
|
+
})));
|
|
28974
|
+
};
|
|
28975
|
+
|
|
28976
|
+
const PaymentMethodDeleteOptions = _ref => {
|
|
28977
|
+
const {
|
|
28978
|
+
state: {
|
|
28979
|
+
deleteOption,
|
|
28980
|
+
paymentMethods,
|
|
28981
|
+
skeletonLoader
|
|
28982
|
+
},
|
|
28983
|
+
dispatch
|
|
28984
|
+
} = useContext(store$4);
|
|
28985
|
+
const {
|
|
28986
|
+
t
|
|
28987
|
+
} = useTranslation("paymentMethod");
|
|
28988
|
+
const handleOptionSelect = event => {
|
|
28989
|
+
dispatch({
|
|
28990
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
28991
|
+
payload: event.target.value
|
|
28992
|
+
});
|
|
28993
|
+
};
|
|
28994
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28995
|
+
className: "plc-text-left plc-mr-auto plc-mb-6"
|
|
28996
|
+
}, skeletonLoader ? /*#__PURE__*/React__default.createElement("div", {
|
|
28997
|
+
className: "plc-flex plc-flex-col plc-space-y-3"
|
|
28998
|
+
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
28999
|
+
className: "plc-animate-puls"
|
|
29000
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29001
|
+
className: "plc-w-36 plc-bg-gray-300 plc-h-4 plc-rounded-md plc-animate-pulse"
|
|
29002
|
+
})), /*#__PURE__*/React__default.createElement(Radio, {
|
|
29003
|
+
className: "plc-animate-pulse"
|
|
29004
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29005
|
+
className: "plc-w-36 plc-bg-gray-300 plc-h-4 plc-rounded-md plc-animate-pulse"
|
|
29006
|
+
}))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paymentMethods && paymentMethods.length !== 1 && /*#__PURE__*/React__default.createElement(Radio, {
|
|
29007
|
+
onChange: handleOptionSelect,
|
|
29008
|
+
checked: deleteOption === "select",
|
|
29009
|
+
value: "select"
|
|
29010
|
+
}, t("delete.options.select")), /*#__PURE__*/React__default.createElement(Radio, {
|
|
29011
|
+
onChange: handleOptionSelect,
|
|
29012
|
+
checked: deleteOption === "add",
|
|
29013
|
+
value: "add"
|
|
29014
|
+
}, t("delete.options.add"))));
|
|
29015
|
+
};
|
|
29016
|
+
|
|
29017
|
+
function PaymentMethodDeleteView(props) {
|
|
29018
|
+
const [t] = useTranslation("paymentMethod");
|
|
29019
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
29020
|
+
id: "pelcro-payment-method-delete-view"
|
|
29021
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29022
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
29023
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29024
|
+
className: "plc-text-2xl plc-font-semibold plc-mb-2"
|
|
29025
|
+
}, t("delete.title")), /*#__PURE__*/React__default.createElement("p", {
|
|
29026
|
+
className: ""
|
|
29027
|
+
}, t("delete.subtitle"))), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, {
|
|
29028
|
+
className: "plc-mb-2"
|
|
29029
|
+
}), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteOptions, null), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteList, {
|
|
29030
|
+
onSuccess: props.onSuccess
|
|
29031
|
+
})));
|
|
29032
|
+
}
|
|
29033
|
+
|
|
29034
|
+
const PaymentMethodDeleteModal = props => {
|
|
29035
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29036
|
+
const {
|
|
29037
|
+
t
|
|
29038
|
+
} = useTranslation("paymentMethod");
|
|
29039
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
29040
|
+
const {
|
|
29041
|
+
resetView
|
|
29042
|
+
} = usePelcro();
|
|
29043
|
+
const onSuccess = res => {
|
|
29044
|
+
var _props$onSuccess;
|
|
29045
|
+
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
29046
|
+
if (enableReactGA4) {
|
|
29047
|
+
ReactGA4.event("Delete payment card", {
|
|
29048
|
+
nonInteraction: true
|
|
29049
|
+
});
|
|
29050
|
+
} else {
|
|
29051
|
+
var _ReactGA$event;
|
|
29052
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29053
|
+
category: "ACTIONS",
|
|
29054
|
+
action: "Delete payment card",
|
|
29055
|
+
nonInteraction: true
|
|
29056
|
+
});
|
|
29057
|
+
}
|
|
29058
|
+
notify.success(t("delete.paymentMethodReplaced"));
|
|
29059
|
+
resetView();
|
|
29060
|
+
};
|
|
29061
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
29062
|
+
id: "pelcro-payment-method-delete-modal",
|
|
29063
|
+
onDisplay: props.onDisplay,
|
|
29064
|
+
onClose: props.onClose
|
|
29065
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteView, Object.assign({}, props, {
|
|
29066
|
+
onSuccess: onSuccess
|
|
29067
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
29068
|
+
};
|
|
29069
|
+
PaymentMethodDeleteModal.viewId = "payment-method-delete";
|
|
29070
|
+
|
|
29071
|
+
const PaymentMethodCreateContainer = props => {
|
|
29072
|
+
return /*#__PURE__*/React__default.createElement(PaymentMethodContainer, Object.assign({
|
|
29073
|
+
type: "createPaymentSource",
|
|
29074
|
+
className: "pelcro-payment-create-container"
|
|
29075
|
+
}, props));
|
|
29076
|
+
};
|
|
29077
|
+
|
|
29078
|
+
/**
|
|
29079
|
+
*
|
|
29080
|
+
*/
|
|
29081
|
+
function PaymentMethodCreateView(props) {
|
|
29082
|
+
const [t] = useTranslation("paymentMethod");
|
|
29083
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
29084
|
+
id: "pelcro-payment-method-create-view"
|
|
29085
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29086
|
+
className: "plc-mb-2 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
29087
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29088
|
+
className: "plc-text-2xl plc-font-semibold "
|
|
29089
|
+
}, t("create.title")), /*#__PURE__*/React__default.createElement("p", null, t("create.subtitle"))), /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
29090
|
+
type: "createPaymentSource",
|
|
29091
|
+
showCoupon: false,
|
|
29092
|
+
showExternalPaymentMethods: false,
|
|
29093
|
+
showApplePayButton: false,
|
|
29094
|
+
onDisplay: props.onDisplay,
|
|
29095
|
+
onFailure: props.onFailure,
|
|
29096
|
+
onSuccess: props.onSuccess
|
|
29097
|
+
}));
|
|
29098
|
+
}
|
|
29099
|
+
|
|
29100
|
+
const PaymentMethodCreateModal = props => {
|
|
29101
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29102
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
29103
|
+
const onSuccess = res => {
|
|
29104
|
+
var _props$onSuccess;
|
|
29105
|
+
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
29106
|
+
if (enableReactGA4) {
|
|
29107
|
+
ReactGA4.event("Created payment card", {
|
|
29108
|
+
nonInteraction: true
|
|
29109
|
+
});
|
|
29110
|
+
} else {
|
|
29111
|
+
var _ReactGA$event;
|
|
29112
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29113
|
+
category: "ACTIONS",
|
|
29114
|
+
action: "Created payment card",
|
|
29115
|
+
nonInteraction: true
|
|
29116
|
+
});
|
|
28266
29117
|
}
|
|
28267
|
-
}, []);
|
|
28268
|
-
const onSuccess = selectedPaymentMethodId => {
|
|
28269
|
-
var _otherProps$onSuccess;
|
|
28270
|
-
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, selectedPaymentMethodId);
|
|
28271
|
-
switchToCheckoutForm();
|
|
28272
|
-
};
|
|
28273
|
-
const onAddNewPaymentMethod = () => {
|
|
28274
|
-
set({
|
|
28275
|
-
selectedPaymentMethodId: null
|
|
28276
|
-
});
|
|
28277
|
-
switchToCheckoutForm();
|
|
28278
29118
|
};
|
|
28279
29119
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
28280
|
-
|
|
28281
|
-
|
|
28282
|
-
|
|
28283
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(
|
|
28284
|
-
onAddNewPaymentMethod: onAddNewPaymentMethod
|
|
28285
|
-
}, otherProps, {
|
|
29120
|
+
id: "pelcro-payment-method-create-modal",
|
|
29121
|
+
onDisplay: props.onDisplay,
|
|
29122
|
+
onClose: props.onClose
|
|
29123
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodCreateView, Object.assign({}, props, {
|
|
28286
29124
|
onSuccess: onSuccess
|
|
28287
29125
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
28288
29126
|
};
|
|
28289
|
-
|
|
29127
|
+
PaymentMethodCreateModal.viewId = "payment-method-create";
|
|
28290
29128
|
|
|
28291
|
-
function _extends$
|
|
28292
|
-
_extends$
|
|
29129
|
+
function _extends$i() {
|
|
29130
|
+
_extends$i = Object.assign || function (target) {
|
|
28293
29131
|
for (var i = 1; i < arguments.length; i++) {
|
|
28294
29132
|
var source = arguments[i];
|
|
28295
29133
|
|
|
@@ -28303,7 +29141,7 @@ function _extends$h() {
|
|
|
28303
29141
|
return target;
|
|
28304
29142
|
};
|
|
28305
29143
|
|
|
28306
|
-
return _extends$
|
|
29144
|
+
return _extends$i.apply(this, arguments);
|
|
28307
29145
|
}
|
|
28308
29146
|
|
|
28309
29147
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -28487,7 +29325,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
28487
29325
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
28488
29326
|
return null;
|
|
28489
29327
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
28490
|
-
return _render(_extends$
|
|
29328
|
+
return _render(_extends$i({}, _rest, {
|
|
28491
29329
|
hidden: true,
|
|
28492
29330
|
style: {
|
|
28493
29331
|
display: 'none'
|
|
@@ -29015,7 +29853,7 @@ function TransitionChild(props) {
|
|
|
29015
29853
|
var passthroughProps = rest;
|
|
29016
29854
|
return React__default.createElement(NestingContext.Provider, {
|
|
29017
29855
|
value: nesting
|
|
29018
|
-
}, render(_extends$
|
|
29856
|
+
}, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
29019
29857
|
}
|
|
29020
29858
|
|
|
29021
29859
|
function Transition(props) {
|
|
@@ -29059,7 +29897,7 @@ function Transition(props) {
|
|
|
29059
29897
|
value: nestingBag
|
|
29060
29898
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
29061
29899
|
value: transitionBag
|
|
29062
|
-
}, render(_extends$
|
|
29900
|
+
}, render(_extends$i({}, sharedProps, {
|
|
29063
29901
|
as: Fragment,
|
|
29064
29902
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
29065
29903
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -29186,12 +30024,12 @@ var ActionTypes;
|
|
|
29186
30024
|
})(ActionTypes || (ActionTypes = {}));
|
|
29187
30025
|
|
|
29188
30026
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
29189
|
-
return _extends$
|
|
30027
|
+
return _extends$i({}, state, {
|
|
29190
30028
|
activeItemIndex: null,
|
|
29191
30029
|
menuState: MenuStates.Closed
|
|
29192
30030
|
});
|
|
29193
30031
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
29194
|
-
return _extends$
|
|
30032
|
+
return _extends$i({}, state, {
|
|
29195
30033
|
menuState: MenuStates.Open
|
|
29196
30034
|
});
|
|
29197
30035
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -29210,7 +30048,7 @@ var ActionTypes;
|
|
|
29210
30048
|
}
|
|
29211
30049
|
});
|
|
29212
30050
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
29213
|
-
return _extends$
|
|
30051
|
+
return _extends$i({}, state, {
|
|
29214
30052
|
searchQuery: '',
|
|
29215
30053
|
activeItemIndex: activeItemIndex
|
|
29216
30054
|
});
|
|
@@ -29221,19 +30059,19 @@ var ActionTypes;
|
|
|
29221
30059
|
|
|
29222
30060
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
29223
30061
|
});
|
|
29224
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
30062
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
|
|
29225
30063
|
searchQuery: searchQuery
|
|
29226
30064
|
});
|
|
29227
|
-
return _extends$
|
|
30065
|
+
return _extends$i({}, state, {
|
|
29228
30066
|
searchQuery: searchQuery,
|
|
29229
30067
|
activeItemIndex: match
|
|
29230
30068
|
});
|
|
29231
30069
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
29232
|
-
return _extends$
|
|
30070
|
+
return _extends$i({}, state, {
|
|
29233
30071
|
searchQuery: ''
|
|
29234
30072
|
});
|
|
29235
30073
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
29236
|
-
return _extends$
|
|
30074
|
+
return _extends$i({}, state, {
|
|
29237
30075
|
items: [].concat(state.items, [{
|
|
29238
30076
|
id: action.id,
|
|
29239
30077
|
dataRef: action.dataRef
|
|
@@ -29246,7 +30084,7 @@ var ActionTypes;
|
|
|
29246
30084
|
return a.id === action.id;
|
|
29247
30085
|
});
|
|
29248
30086
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
29249
|
-
return _extends$
|
|
30087
|
+
return _extends$i({}, state, {
|
|
29250
30088
|
items: nextItems,
|
|
29251
30089
|
activeItemIndex: function () {
|
|
29252
30090
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -29285,19 +30123,19 @@ var ActionTypes$1;
|
|
|
29285
30123
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
29286
30124
|
if (state.disabled) return state;
|
|
29287
30125
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
29288
|
-
return _extends$
|
|
30126
|
+
return _extends$i({}, state, {
|
|
29289
30127
|
activeOptionIndex: null,
|
|
29290
30128
|
listboxState: ListboxStates.Closed
|
|
29291
30129
|
});
|
|
29292
30130
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
29293
30131
|
if (state.disabled) return state;
|
|
29294
30132
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
29295
|
-
return _extends$
|
|
30133
|
+
return _extends$i({}, state, {
|
|
29296
30134
|
listboxState: ListboxStates.Open
|
|
29297
30135
|
});
|
|
29298
30136
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
29299
30137
|
if (state.disabled === action.disabled) return state;
|
|
29300
|
-
return _extends$
|
|
30138
|
+
return _extends$i({}, state, {
|
|
29301
30139
|
disabled: action.disabled
|
|
29302
30140
|
});
|
|
29303
30141
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -29318,7 +30156,7 @@ var ActionTypes$1;
|
|
|
29318
30156
|
}
|
|
29319
30157
|
});
|
|
29320
30158
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
29321
|
-
return _extends$
|
|
30159
|
+
return _extends$i({}, state, {
|
|
29322
30160
|
searchQuery: '',
|
|
29323
30161
|
activeOptionIndex: activeOptionIndex
|
|
29324
30162
|
});
|
|
@@ -29331,10 +30169,10 @@ var ActionTypes$1;
|
|
|
29331
30169
|
|
|
29332
30170
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
29333
30171
|
});
|
|
29334
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
30172
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
|
|
29335
30173
|
searchQuery: searchQuery
|
|
29336
30174
|
});
|
|
29337
|
-
return _extends$
|
|
30175
|
+
return _extends$i({}, state, {
|
|
29338
30176
|
searchQuery: searchQuery,
|
|
29339
30177
|
activeOptionIndex: match
|
|
29340
30178
|
});
|
|
@@ -29342,11 +30180,11 @@ var ActionTypes$1;
|
|
|
29342
30180
|
if (state.disabled) return state;
|
|
29343
30181
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
29344
30182
|
if (state.searchQuery === '') return state;
|
|
29345
|
-
return _extends$
|
|
30183
|
+
return _extends$i({}, state, {
|
|
29346
30184
|
searchQuery: ''
|
|
29347
30185
|
});
|
|
29348
30186
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
29349
|
-
return _extends$
|
|
30187
|
+
return _extends$i({}, state, {
|
|
29350
30188
|
options: [].concat(state.options, [{
|
|
29351
30189
|
id: action.id,
|
|
29352
30190
|
dataRef: action.dataRef
|
|
@@ -29359,7 +30197,7 @@ var ActionTypes$1;
|
|
|
29359
30197
|
return a.id === action.id;
|
|
29360
30198
|
});
|
|
29361
30199
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
29362
|
-
return _extends$
|
|
30200
|
+
return _extends$i({}, state, {
|
|
29363
30201
|
options: nextOptions,
|
|
29364
30202
|
activeOptionIndex: function () {
|
|
29365
30203
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -29378,6 +30216,7 @@ var GroupContext = /*#__PURE__*/createContext(null);
|
|
|
29378
30216
|
GroupContext.displayName = 'GroupContext';
|
|
29379
30217
|
|
|
29380
30218
|
const getPaymentCardIcon = name => {
|
|
30219
|
+
var _icons$name$toLowerCa;
|
|
29381
30220
|
const icons = {
|
|
29382
30221
|
visa: /*#__PURE__*/React__default.createElement("svg", {
|
|
29383
30222
|
className: "plc-w-12",
|
|
@@ -29404,7 +30243,7 @@ const getPaymentCardIcon = name => {
|
|
|
29404
30243
|
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 8.5625 19.90625 L 4.84375 28.40625 L 7.0625 28.40625 L 7.875 26.5 L 12.0625 26.5 L 12.875 28.40625 L 17.09375 28.40625 L 17.09375 22.09375 L 19.90625 28.40625 L 21.8125 28.40625 L 24.65625 22.1875 L 24.65625 28.40625 L 26.75 28.40625 L 26.75 19.90625 L 23.40625 19.90625 L 20.84375 25.625 L 18.28125 19.90625 L 15 19.90625 L 15 28.09375 L 11.34375 19.90625 Z M 29.5 19.90625 L 29.5 28.4375 L 37.5 28.4375 L 40 25.59375 L 42.46875 28.4375 L 45.125 28.4375 L 41.375 24.0625 L 45.125 19.90625 L 42.46875 19.90625 L 40.0625 22.5625 L 37.75 19.90625 Z M 9.90625 21.6875 L 11.21875 24.6875 L 8.65625 24.6875 Z M 31.5625 21.71875 L 36.65625 21.75 L 38.6875 24.0625 L 36.40625 26.625 L 31.5625 26.625 L 31.5625 24.9375 L 36.1875 24.9375 L 36.1875 23.3125 L 31.5625 23.3125 Z"
|
|
29405
30244
|
}))
|
|
29406
30245
|
};
|
|
29407
|
-
return name
|
|
30246
|
+
return (_icons$name$toLowerCa = icons[name.toLowerCase()]) !== null && _icons$name$toLowerCa !== void 0 ? _icons$name$toLowerCa : /*#__PURE__*/React__default.createElement("svg", {
|
|
29408
30247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29409
30248
|
className: "plc-w-12",
|
|
29410
30249
|
fill: "none",
|
|
@@ -29418,16 +30257,16 @@ const getPaymentCardIcon = name => {
|
|
|
29418
30257
|
}));
|
|
29419
30258
|
};
|
|
29420
30259
|
|
|
29421
|
-
var _path$
|
|
29422
|
-
function _extends$
|
|
30260
|
+
var _path$h;
|
|
30261
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : 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); }
|
|
29423
30262
|
function SvgChevronRight(props) {
|
|
29424
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30263
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
29425
30264
|
className: "plc-w-6 plc-h-6",
|
|
29426
30265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29427
30266
|
fill: "none",
|
|
29428
30267
|
viewBox: "0 0 24 24",
|
|
29429
30268
|
stroke: "currentColor"
|
|
29430
|
-
}, props), _path$
|
|
30269
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
29431
30270
|
strokeLinecap: "round",
|
|
29432
30271
|
strokeLinejoin: "round",
|
|
29433
30272
|
strokeWidth: 2,
|
|
@@ -29656,16 +30495,16 @@ const SavedItems = _ref3 => {
|
|
|
29656
30495
|
});
|
|
29657
30496
|
};
|
|
29658
30497
|
|
|
29659
|
-
var _path$
|
|
29660
|
-
function _extends$
|
|
30498
|
+
var _path$g;
|
|
30499
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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$g.apply(this, arguments); }
|
|
29661
30500
|
function SvgRefresh(props) {
|
|
29662
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30501
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
29663
30502
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
29664
30503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29665
30504
|
fill: "none",
|
|
29666
30505
|
viewBox: "0 0 24 24",
|
|
29667
30506
|
stroke: "currentColor"
|
|
29668
|
-
}, props), _path$
|
|
30507
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
29669
30508
|
strokeLinecap: "round",
|
|
29670
30509
|
strokeLinejoin: "round",
|
|
29671
30510
|
strokeWidth: 2,
|
|
@@ -29673,31 +30512,31 @@ function SvgRefresh(props) {
|
|
|
29673
30512
|
})));
|
|
29674
30513
|
}
|
|
29675
30514
|
|
|
29676
|
-
var _path$
|
|
29677
|
-
function _extends$
|
|
30515
|
+
var _path$f;
|
|
30516
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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); }
|
|
29678
30517
|
function SvgCalendar(props) {
|
|
29679
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30518
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
29680
30519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29681
30520
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
29682
30521
|
viewBox: "0 0 20 20",
|
|
29683
30522
|
fill: "currentColor"
|
|
29684
|
-
}, props), _path$
|
|
30523
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
29685
30524
|
fillRule: "evenodd",
|
|
29686
30525
|
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",
|
|
29687
30526
|
clipRule: "evenodd"
|
|
29688
30527
|
})));
|
|
29689
30528
|
}
|
|
29690
30529
|
|
|
29691
|
-
var _path$
|
|
29692
|
-
function _extends$
|
|
30530
|
+
var _path$e;
|
|
30531
|
+
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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); }
|
|
29693
30532
|
function SvgPlus(props) {
|
|
29694
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30533
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
29695
30534
|
className: "plc-w-5 plc-h-5",
|
|
29696
30535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29697
30536
|
fill: "none",
|
|
29698
30537
|
viewBox: "0 0 24 24",
|
|
29699
30538
|
stroke: "currentColor"
|
|
29700
|
-
}, props), _path$
|
|
30539
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
29701
30540
|
strokeLinecap: "round",
|
|
29702
30541
|
strokeLinejoin: "round",
|
|
29703
30542
|
strokeWidth: 2,
|
|
@@ -30060,16 +30899,16 @@ Accordion.item = function AccordionItem(_ref2) {
|
|
|
30060
30899
|
}, content)) : null;
|
|
30061
30900
|
};
|
|
30062
30901
|
|
|
30063
|
-
var _path$
|
|
30064
|
-
function _extends$
|
|
30902
|
+
var _path$d;
|
|
30903
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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); }
|
|
30065
30904
|
function SvgExit(props) {
|
|
30066
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30905
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
30067
30906
|
className: "plc-w-6 plc-h-6",
|
|
30068
30907
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30069
30908
|
fill: "none",
|
|
30070
30909
|
viewBox: "0 0 24 24",
|
|
30071
30910
|
stroke: "currentColor"
|
|
30072
|
-
}, props), _path$
|
|
30911
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
30073
30912
|
strokeLinecap: "round",
|
|
30074
30913
|
strokeLinejoin: "round",
|
|
30075
30914
|
strokeWidth: 2,
|
|
@@ -30077,15 +30916,15 @@ function SvgExit(props) {
|
|
|
30077
30916
|
})));
|
|
30078
30917
|
}
|
|
30079
30918
|
|
|
30080
|
-
var _path$
|
|
30081
|
-
function _extends$
|
|
30919
|
+
var _path$c;
|
|
30920
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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); }
|
|
30082
30921
|
function SvgUser(props) {
|
|
30083
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30922
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
30084
30923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30085
30924
|
fill: "none",
|
|
30086
30925
|
viewBox: "0 0 24 24",
|
|
30087
30926
|
stroke: "currentColor"
|
|
30088
|
-
}, props), _path$
|
|
30927
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
30089
30928
|
strokeLinecap: "round",
|
|
30090
30929
|
strokeLinejoin: "round",
|
|
30091
30930
|
strokeWidth: 2,
|
|
@@ -30093,16 +30932,16 @@ function SvgUser(props) {
|
|
|
30093
30932
|
})));
|
|
30094
30933
|
}
|
|
30095
30934
|
|
|
30096
|
-
var _path$
|
|
30097
|
-
function _extends$
|
|
30935
|
+
var _path$b;
|
|
30936
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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); }
|
|
30098
30937
|
function SvgNewsletter(props) {
|
|
30099
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30938
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
30100
30939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30101
30940
|
className: "plc-h-5 plc-w-5",
|
|
30102
30941
|
fill: "none",
|
|
30103
30942
|
viewBox: "0 0 24 24",
|
|
30104
30943
|
stroke: "currentColor"
|
|
30105
|
-
}, props), _path$
|
|
30944
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
30106
30945
|
strokeLinecap: "round",
|
|
30107
30946
|
strokeLinejoin: "round",
|
|
30108
30947
|
strokeWidth: 2,
|
|
@@ -30110,16 +30949,16 @@ function SvgNewsletter(props) {
|
|
|
30110
30949
|
})));
|
|
30111
30950
|
}
|
|
30112
30951
|
|
|
30113
|
-
var _path$
|
|
30114
|
-
function _extends$
|
|
30952
|
+
var _path$a;
|
|
30953
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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); }
|
|
30115
30954
|
function SvgDocument(props) {
|
|
30116
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30955
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
30117
30956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30118
30957
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
30119
30958
|
fill: "none",
|
|
30120
30959
|
viewBox: "0 0 24 24",
|
|
30121
30960
|
stroke: "currentColor"
|
|
30122
|
-
}, props), _path$
|
|
30961
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
30123
30962
|
strokeLinecap: "round",
|
|
30124
30963
|
strokeLinejoin: "round",
|
|
30125
30964
|
strokeWidth: 2,
|
|
@@ -30127,16 +30966,16 @@ function SvgDocument(props) {
|
|
|
30127
30966
|
})));
|
|
30128
30967
|
}
|
|
30129
30968
|
|
|
30130
|
-
var _path$
|
|
30131
|
-
function _extends$
|
|
30969
|
+
var _path$9;
|
|
30970
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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); }
|
|
30132
30971
|
function SvgPaymentCard(props) {
|
|
30133
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30972
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
30134
30973
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
30135
30974
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30136
30975
|
fill: "none",
|
|
30137
30976
|
viewBox: "0 0 24 24",
|
|
30138
30977
|
stroke: "currentColor"
|
|
30139
|
-
}, props), _path$
|
|
30978
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
30140
30979
|
strokeLinecap: "round",
|
|
30141
30980
|
strokeLinejoin: "round",
|
|
30142
30981
|
strokeWidth: 2,
|
|
@@ -30144,16 +30983,16 @@ function SvgPaymentCard(props) {
|
|
|
30144
30983
|
})));
|
|
30145
30984
|
}
|
|
30146
30985
|
|
|
30147
|
-
var _path$
|
|
30148
|
-
function _extends$
|
|
30986
|
+
var _path$8, _path2;
|
|
30987
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : 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); }
|
|
30149
30988
|
function SvgLocationPin(props) {
|
|
30150
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30989
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
30151
30990
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
30152
30991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30153
30992
|
fill: "none",
|
|
30154
30993
|
viewBox: "0 0 24 24",
|
|
30155
30994
|
stroke: "currentColor"
|
|
30156
|
-
}, props), _path$
|
|
30995
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
30157
30996
|
strokeLinecap: "round",
|
|
30158
30997
|
strokeLinejoin: "round",
|
|
30159
30998
|
strokeWidth: 2,
|
|
@@ -30166,16 +31005,16 @@ function SvgLocationPin(props) {
|
|
|
30166
31005
|
})));
|
|
30167
31006
|
}
|
|
30168
31007
|
|
|
30169
|
-
var _path$
|
|
30170
|
-
function _extends$
|
|
31008
|
+
var _path$7;
|
|
31009
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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); }
|
|
30171
31010
|
function SvgShopping(props) {
|
|
30172
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31011
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
30173
31012
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
30174
31013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30175
31014
|
fill: "none",
|
|
30176
31015
|
viewBox: "0 0 24 24",
|
|
30177
31016
|
stroke: "currentColor"
|
|
30178
|
-
}, props), _path$
|
|
31017
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
30179
31018
|
strokeLinecap: "round",
|
|
30180
31019
|
strokeLinejoin: "round",
|
|
30181
31020
|
strokeWidth: 2,
|
|
@@ -30183,16 +31022,16 @@ function SvgShopping(props) {
|
|
|
30183
31022
|
})));
|
|
30184
31023
|
}
|
|
30185
31024
|
|
|
30186
|
-
var _path$
|
|
30187
|
-
function _extends$
|
|
31025
|
+
var _path$6;
|
|
31026
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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); }
|
|
30188
31027
|
function SvgBookmark(props) {
|
|
30189
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31028
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
30190
31029
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
30191
31030
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30192
31031
|
fill: "none",
|
|
30193
31032
|
viewBox: "0 0 24 24",
|
|
30194
31033
|
stroke: "currentColor"
|
|
30195
|
-
}, props), _path$
|
|
31034
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
30196
31035
|
strokeLinecap: "round",
|
|
30197
31036
|
strokeLinejoin: "round",
|
|
30198
31037
|
strokeWidth: 2,
|
|
@@ -30200,63 +31039,76 @@ function SvgBookmark(props) {
|
|
|
30200
31039
|
})));
|
|
30201
31040
|
}
|
|
30202
31041
|
|
|
30203
|
-
var _path$
|
|
30204
|
-
function _extends$
|
|
31042
|
+
var _path$5;
|
|
31043
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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); }
|
|
30205
31044
|
function SvgKey(props) {
|
|
30206
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31045
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
30207
31046
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30208
31047
|
viewBox: "0 0 20 20",
|
|
30209
31048
|
fill: "currentColor"
|
|
30210
|
-
}, props), _path$
|
|
31049
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
30211
31050
|
fillRule: "evenodd",
|
|
30212
31051
|
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",
|
|
30213
31052
|
clipRule: "evenodd"
|
|
30214
31053
|
})));
|
|
30215
31054
|
}
|
|
30216
31055
|
|
|
30217
|
-
var _path$
|
|
30218
|
-
function _extends$
|
|
31056
|
+
var _path$4;
|
|
31057
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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); }
|
|
30219
31058
|
function SvgDonate(props) {
|
|
30220
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31059
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
30221
31060
|
width: 24,
|
|
30222
31061
|
height: 24,
|
|
30223
31062
|
fill: "currentColor",
|
|
30224
31063
|
xmlns: "http://www.w3.org/2000/svg"
|
|
30225
|
-
}, props), _path$
|
|
31064
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
30226
31065
|
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"
|
|
30227
31066
|
})));
|
|
30228
31067
|
}
|
|
30229
31068
|
|
|
30230
|
-
var _path$
|
|
30231
|
-
function _extends$
|
|
31069
|
+
var _path$3;
|
|
31070
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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); }
|
|
30232
31071
|
function SvgMemberships(props) {
|
|
30233
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31072
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
30234
31073
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30235
31074
|
fill: "none",
|
|
30236
31075
|
strokeWidth: 1.5,
|
|
30237
31076
|
stroke: "currentColor",
|
|
30238
31077
|
width: 24,
|
|
30239
31078
|
height: 24
|
|
30240
|
-
}, props), _path$
|
|
31079
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
30241
31080
|
strokeLinecap: "round",
|
|
30242
31081
|
strokeLinejoin: "round",
|
|
30243
31082
|
d: "M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"
|
|
30244
31083
|
})));
|
|
30245
31084
|
}
|
|
30246
31085
|
|
|
30247
|
-
var _path$
|
|
30248
|
-
function _extends$
|
|
31086
|
+
var _path$2;
|
|
31087
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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); }
|
|
30249
31088
|
function SvgQrcode(props) {
|
|
30250
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
31089
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
30251
31090
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30252
31091
|
width: 682.667,
|
|
30253
31092
|
height: 682.667,
|
|
30254
31093
|
viewBox: "0 0 512 512"
|
|
30255
|
-
}, props), _path$
|
|
31094
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
30256
31095
|
d: "M93.5 62.4c-15.7 3.9-28 16.6-31.4 32.4-.7 3.3-1.1 17.2-1.1 36.4 0 29.1.1 31.4 2 35.3 5.3 11 21.2 11.1 26.4.1 1.4-2.9 1.6-7.9 1.6-34.6 0-34.4.1-35.3 6.3-39 3-1.9 5.2-2 34.5-2 26.9 0 31.9-.2 34.8-1.6 11-5.2 10.9-21.1-.1-26.4-3.9-1.9-6.1-2-36.1-1.9-21.8 0-33.5.5-36.9 1.3zM345.4 63c-10.9 5.4-10.9 21.2 0 26.4 2.9 1.4 7.9 1.6 34.8 1.6 29.3 0 31.5.1 34.5 2 6.2 3.7 6.3 4.6 6.3 39 0 26.7.2 31.7 1.6 34.6 5.2 11 21.1 10.9 26.4-.1 1.9-3.9 2-6.2 2-35.3 0-19.2-.4-33.1-1.1-36.4-3.5-16.2-16.5-29.2-32.7-32.7-3.3-.7-17.2-1.1-36.5-1.1-29.3 0-31.5.1-35.3 2zM146 128.9c-6.9 2.1-12.1 6.5-15.6 13.1-1.8 3.2-1.9 6.3-1.9 38.5 0 34.2 0 35.1 2.2 39.1 2.8 5.3 9.1 10.7 14.2 12.2 2.5.8 14.4 1.2 35.8 1.2 36.3 0 38.3-.3 45.2-7.2 6.8-6.9 7.1-8.9 7.1-45.1 0-22.2-.4-33.2-1.2-36.1-1.8-6-10-13.9-16-15.4-5.3-1.3-65.5-1.6-69.8-.3zm57 51.6V203h-45v-45h45v22.5zM297 128.9c-8 2.5-14.9 9.2-16.9 16.4-.9 2.9-1.1 14.3-.9 37.7.3 37.2.2 36.2 7.4 43.3 6.6 6.4 8.8 6.7 45 6.7 35.6 0 38-.3 44.2-6.3 1.9-1.8 4.3-5 5.5-7.2 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-2.5-4.7-6.4-8.5-11.3-11.1-3.2-1.7-6.4-1.9-37-2.1-18.4-.1-34.6.2-36 .6zm57 51.6V203h-45v-45h45v22.5zM144.1 280.3c-4.8 1.8-10.8 7.2-13.4 12-2.2 4.1-2.2 4.9-2.2 39.2 0 34 .1 35.1 2.2 39 2.5 4.7 6.4 8.5 11.3 11.1 3.2 1.7 6.6 1.9 35.5 2.2 38.9.4 40.7.2 48-7.2 3.2-3.2 5.5-6.6 6.3-9.2.8-2.9 1.2-13.9 1.2-36.1 0-35.8-.4-38.3-6.6-44.7-7-7.2-6-7.1-44.4-7.3-25.4-.1-35.4.1-37.9 1zm58.9 51.2V354h-45v-45h45v22.5zM294.8 280.4c-6.8 2.4-12.9 8.9-14.8 15.7-1.5 5-1.3 66.2.2 71 1.5 5.1 6.9 11.4 12.2 14.2 4 2.2 4.9 2.2 39.1 2.2 32.2 0 35.3-.1 38.5-1.9 4.9-2.6 8.8-6.4 11.3-11.1 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-3-5.6-8-10.1-13.2-12-5.9-2-67.5-2.2-73.3-.1zm59.2 51.1V354h-45v-45h45v22.5zM68.7 339.2c-2.2 1.3-4.5 3.8-5.7 6.3-1.9 3.9-2 6.2-2 35.3 0 19.2.4 33.1 1.1 36.4 3.4 16.1 16.6 29.3 32.7 32.7 3.3.7 17.2 1.1 36.4 1.1 29.1 0 31.4-.1 35.3-2 11-5.3 11.1-21.2.1-26.4-2.9-1.4-7.9-1.6-34.6-1.6-34.4 0-35.3-.1-39-6.3-1.9-3-2-5.2-2-34.5 0-26.9-.2-31.9-1.6-34.8-3.6-7.5-13.5-10.5-20.7-6.2zM429.2 338.7c-1.8.9-4.3 3-5.5 4.7-2.1 3-2.2 4-2.7 36.1-.5 35.8-.6 36.1-6.3 39.5-3 1.9-5.3 2-34.5 2-34.5 0-36.1.2-40.2 6-5.4 7.5-2.8 18 5.5 22 3.9 1.9 6.2 2 35.3 2 19.2 0 33.1-.4 36.4-1.1 16.2-3.5 29.2-16.5 32.7-32.7.7-3.3 1.1-17.2 1.1-36.4 0-29.1-.1-31.4-2-35.3-3.6-7.4-12.5-10.4-19.8-6.8z"
|
|
30257
31096
|
})));
|
|
30258
31097
|
}
|
|
30259
31098
|
|
|
31099
|
+
var _path$1;
|
|
31100
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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); }
|
|
31101
|
+
function SvgTrashCan(props) {
|
|
31102
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
31103
|
+
className: "plc-w-6 plc-h-6",
|
|
31104
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31105
|
+
viewBox: "0 0 448 512",
|
|
31106
|
+
fill: "currentColor"
|
|
31107
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
31108
|
+
d: "M135.2 17.7C140.6 6.8 151.7 0 163.8 0h120.4c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64s14.3-32 32-32h96l7.2-14.3zM32 128h384v320c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"
|
|
31109
|
+
})));
|
|
31110
|
+
}
|
|
31111
|
+
|
|
30260
31112
|
const DonationsMenu = _ref => {
|
|
30261
31113
|
let {
|
|
30262
31114
|
onClose,
|
|
@@ -30578,7 +31430,9 @@ function DashboardWithHook(props) {
|
|
|
30578
31430
|
switchView,
|
|
30579
31431
|
resetView,
|
|
30580
31432
|
logout,
|
|
30581
|
-
set
|
|
31433
|
+
set,
|
|
31434
|
+
setPaymentMethodToEdit,
|
|
31435
|
+
setPaymentMethodToDelete
|
|
30582
31436
|
} = usePelcro();
|
|
30583
31437
|
return /*#__PURE__*/React__default.createElement(DashboardWithTrans, {
|
|
30584
31438
|
setAddress: addressIdToEdit => set({
|
|
@@ -30601,7 +31455,9 @@ function DashboardWithHook(props) {
|
|
|
30601
31455
|
product,
|
|
30602
31456
|
plan,
|
|
30603
31457
|
isGift
|
|
30604
|
-
})
|
|
31458
|
+
}),
|
|
31459
|
+
setPaymentMethodToEdit: setPaymentMethodToEdit,
|
|
31460
|
+
setPaymentMethodToDelete: setPaymentMethodToDelete
|
|
30605
31461
|
});
|
|
30606
31462
|
}
|
|
30607
31463
|
DashboardWithHook.viewId = "dashboard";
|
|
@@ -30628,6 +31484,18 @@ class Dashboard extends Component {
|
|
|
30628
31484
|
nonInteraction: true
|
|
30629
31485
|
});
|
|
30630
31486
|
}
|
|
31487
|
+
window.Pelcro.paymentMethods.list({
|
|
31488
|
+
auth_token: window.Pelcro.user.read().auth_token
|
|
31489
|
+
}, (err, res) => {
|
|
31490
|
+
if (err) {
|
|
31491
|
+
return console.error(err);
|
|
31492
|
+
}
|
|
31493
|
+
if (res) {
|
|
31494
|
+
this.setState({
|
|
31495
|
+
sources: res.data
|
|
31496
|
+
});
|
|
31497
|
+
}
|
|
31498
|
+
});
|
|
30631
31499
|
const {
|
|
30632
31500
|
addresses
|
|
30633
31501
|
} = window.Pelcro.user.read();
|
|
@@ -30697,10 +31565,46 @@ class Dashboard extends Component {
|
|
|
30697
31565
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
30698
31566
|
});
|
|
30699
31567
|
});
|
|
31568
|
+
_defineProperty$3(this, "deletePaymentMethod", (paymentMethodId, onSuccess, onFailure) => {
|
|
31569
|
+
// disable the Login button to prevent repeated clicks
|
|
31570
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
31571
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
31572
|
+
payment_method_id: paymentMethodId
|
|
31573
|
+
}, (err, res) => {
|
|
31574
|
+
if (err) {
|
|
31575
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
31576
|
+
}
|
|
31577
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
31578
|
+
});
|
|
31579
|
+
});
|
|
31580
|
+
_defineProperty$3(this, "onDeletePaymentMethodClick", source => {
|
|
31581
|
+
const isDeletable = source === null || source === void 0 ? void 0 : source.deletable;
|
|
31582
|
+
if (isDeletable) {
|
|
31583
|
+
this.props.onClose();
|
|
31584
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
31585
|
+
this.deletePaymentMethod(source.id, onSuccess, onFailure);
|
|
31586
|
+
}, {
|
|
31587
|
+
confirmMessage: this.locale("messages.paymentMethodDeletion.isSureToDelete"),
|
|
31588
|
+
loadingMessage: this.locale("messages.paymentMethodDeletion.loading"),
|
|
31589
|
+
successMessage: this.locale("messages.paymentMethodDeletion.success"),
|
|
31590
|
+
errorMessage: this.locale("messages.paymentMethodDeletion.error")
|
|
31591
|
+
}, {
|
|
31592
|
+
closeButtonLabel: this.locale("labels.subCancellation.goBack")
|
|
31593
|
+
});
|
|
31594
|
+
} else {
|
|
31595
|
+
this.props.setPaymentMethodToDelete(source.id);
|
|
31596
|
+
return this.props.setView("payment-method-delete");
|
|
31597
|
+
}
|
|
31598
|
+
});
|
|
30700
31599
|
_defineProperty$3(this, "displayRedeem", () => {
|
|
30701
31600
|
return this.props.setView("gift-redeem");
|
|
30702
31601
|
});
|
|
30703
31602
|
_defineProperty$3(this, "displaySourceCreate", () => {
|
|
31603
|
+
return this.props.setView("payment-method-create");
|
|
31604
|
+
});
|
|
31605
|
+
_defineProperty$3(this, "displaySourceEdit", e => {
|
|
31606
|
+
const source = e.currentTarget.dataset.key;
|
|
31607
|
+
this.props.setPaymentMethodToEdit(source);
|
|
30704
31608
|
return this.props.setView("payment-method-update");
|
|
30705
31609
|
});
|
|
30706
31610
|
_defineProperty$3(this, "displayUserEdit", () => {
|
|
@@ -30962,6 +31866,52 @@ class Dashboard extends Component {
|
|
|
30962
31866
|
onClick: this.displayAddressCreate
|
|
30963
31867
|
}, this.locale("labels.addAddress"))))));
|
|
30964
31868
|
});
|
|
31869
|
+
_defineProperty$3(this, "renderSources", () => {
|
|
31870
|
+
const sources = this.state.sources && this.state.sources.sort((a, b) => a.is_default === b.is_default ? 0 : a.is_default ? -1 : 1).map((source, index) => {
|
|
31871
|
+
var _source$properties, _source$properties2;
|
|
31872
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
31873
|
+
key: "dashboard-source-" + source.id,
|
|
31874
|
+
className: "plc-flex plc-flex-row plc-pr-6"
|
|
31875
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
31876
|
+
className: "plc-flex plc-flex-grow plc-items-center plc-justify-between plc-max-w-xs plc-p-4 plc-mb-2 plc-text-white plc-bg-gray-800 plc-rounded-md plc-h-14"
|
|
31877
|
+
}, /*#__PURE__*/React__default.createElement("span", null, getPaymentCardIcon(source === null || source === void 0 ? void 0 : (_source$properties = source.properties) === null || _source$properties === void 0 ? void 0 : _source$properties.brand)), /*#__PURE__*/React__default.createElement("span", {
|
|
31878
|
+
className: "plc-ml-1 plc-text-lg plc-tracking-widest plc-flex-grow plc-text-center"
|
|
31879
|
+
}, "\u2022\u2022\u2022\u2022 ", source === null || source === void 0 ? void 0 : (_source$properties2 = source.properties) === null || _source$properties2 === void 0 ? void 0 : _source$properties2.last4), /*#__PURE__*/React__default.createElement(Button, {
|
|
31880
|
+
id: "pelcro-button-update-source-" + index,
|
|
31881
|
+
variant: "icon",
|
|
31882
|
+
className: "plc-text-white",
|
|
31883
|
+
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
31884
|
+
"data-key": source.id,
|
|
31885
|
+
onClick: this.displaySourceEdit,
|
|
31886
|
+
disabled: this.state.disableSubmit
|
|
31887
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
31888
|
+
id: "pelcro-button-delete-source-" + index,
|
|
31889
|
+
variant: "icon",
|
|
31890
|
+
className: "plc-text-white",
|
|
31891
|
+
icon: /*#__PURE__*/React__default.createElement(SvgTrashCan, null),
|
|
31892
|
+
onClick: () => {
|
|
31893
|
+
this.onDeletePaymentMethodClick(source);
|
|
31894
|
+
},
|
|
31895
|
+
disabled: this.state.disableSubmit
|
|
31896
|
+
})), /*#__PURE__*/React__default.createElement("span", {
|
|
31897
|
+
className: "plc-flex-grow"
|
|
31898
|
+
}), source.is_default && /*#__PURE__*/React__default.createElement("span", {
|
|
31899
|
+
className: "plc-rounded-full plc-bg-gray-800 plc-text-white plc-inline-flex plc-h-7 plc-my-auto plc-items-start plc-py-1 plc-px-4 plc-text-sm plc-ml-2"
|
|
31900
|
+
}, this.locale("labels.default")));
|
|
31901
|
+
});
|
|
31902
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
31903
|
+
className: "plc-pr-2"
|
|
31904
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
31905
|
+
className: "plc-overflow-y-scroll plc-max-h-52"
|
|
31906
|
+
}, sources), /*#__PURE__*/React__default.createElement(Button, {
|
|
31907
|
+
variant: "ghost",
|
|
31908
|
+
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
31909
|
+
className: "plc-w-4 plc-mr-1"
|
|
31910
|
+
}),
|
|
31911
|
+
className: "plc-w-full plc-h-8 plc-font-semibold plc-tracking-wider plc-text-gray-900 plc-uppercase hover:plc-bg-gray-100 plc-my-1 plc-ml-1",
|
|
31912
|
+
onClick: this.displaySourceCreate
|
|
31913
|
+
}, this.locale("labels.addPaymentSource")));
|
|
31914
|
+
});
|
|
30965
31915
|
_defineProperty$3(this, "closeDashboard", () => {
|
|
30966
31916
|
this.setState({
|
|
30967
31917
|
isOpen: false
|
|
@@ -30972,7 +31922,8 @@ class Dashboard extends Component {
|
|
|
30972
31922
|
subscriptions: window.Pelcro.subscription.list(),
|
|
30973
31923
|
giftRecipients: (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.gift_recipients) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [],
|
|
30974
31924
|
disableSubmit: false,
|
|
30975
|
-
addresses: []
|
|
31925
|
+
addresses: [],
|
|
31926
|
+
sources: []
|
|
30976
31927
|
};
|
|
30977
31928
|
this.site = window.Pelcro.site.read();
|
|
30978
31929
|
this.locale = this.props.t;
|
|
@@ -30981,7 +31932,7 @@ class Dashboard extends Component {
|
|
|
30981
31932
|
this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
30982
31933
|
}
|
|
30983
31934
|
render() {
|
|
30984
|
-
var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet
|
|
31935
|
+
var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet;
|
|
30985
31936
|
const {
|
|
30986
31937
|
isOpen
|
|
30987
31938
|
} = this.state;
|
|
@@ -31084,25 +32035,7 @@ class Dashboard extends Component {
|
|
|
31084
32035
|
name: SUB_MENUS.PAYMENT_CARDS,
|
|
31085
32036
|
icon: /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
|
|
31086
32037
|
title: this.locale("labels.paymentSource"),
|
|
31087
|
-
content:
|
|
31088
|
-
className: "plc-flex plc-items-center plc-justify-between plc-max-w-xs plc-p-4 plc-mb-2 plc-text-white plc-bg-gray-800 plc-rounded-md plc-h-14"
|
|
31089
|
-
}, this.user.source ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, getPaymentCardIcon((_this$user$source = this.user.source) === null || _this$user$source === void 0 ? void 0 : (_this$user$source$pro = _this$user$source.properties) === null || _this$user$source$pro === void 0 ? void 0 : _this$user$source$pro.brand), /*#__PURE__*/React__default.createElement("span", {
|
|
31090
|
-
className: "plc-ml-1 plc-text-lg plc-tracking-widest"
|
|
31091
|
-
}, "\u2022\u2022\u2022\u2022 ", (_this$user$source2 = this.user.source) === null || _this$user$source2 === void 0 ? void 0 : (_this$user$source2$pr = _this$user$source2.properties) === null || _this$user$source2$pr === void 0 ? void 0 : _this$user$source2$pr.last4), /*#__PURE__*/React__default.createElement(Button, {
|
|
31092
|
-
variant: "icon",
|
|
31093
|
-
className: "plc-text-white",
|
|
31094
|
-
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
31095
|
-
onClick: this.displaySourceCreate,
|
|
31096
|
-
disabled: this.state.disableSubmit
|
|
31097
|
-
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, this.locale("messages.noCard")), /*#__PURE__*/React__default.createElement(Button, {
|
|
31098
|
-
variant: "icon",
|
|
31099
|
-
className: "plc-text-white",
|
|
31100
|
-
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
31101
|
-
className: "plc-w-6 plc-h-6"
|
|
31102
|
-
}),
|
|
31103
|
-
onClick: this.displaySourceCreate,
|
|
31104
|
-
disabled: this.state.disableSubmit
|
|
31105
|
-
})))
|
|
32038
|
+
content: this.renderSources()
|
|
31106
32039
|
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
31107
32040
|
name: SUB_MENUS.ADDRESSES,
|
|
31108
32041
|
icon: /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
|
|
@@ -35020,4 +35953,4 @@ const QrCodeModal = _ref => {
|
|
|
35020
35953
|
};
|
|
35021
35954
|
QrCodeModal.viewId = "qrcode";
|
|
35022
35955
|
|
|
35023
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|
|
35956
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodCreateContainer, PaymentMethodCreateModal, PaymentMethodCreateView, PaymentMethodDeleteContainer, PaymentMethodDeleteList, PaymentMethodDeleteModal, PaymentMethodDeleteOptions, PaymentMethodDeleteSubmit, PaymentMethodDeleteView, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateSetDefault, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|