@pelcro/react-pelcro-js 3.31.0 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1532 -564
- package/dist/index.esm.js +1523 -565
- 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";
|
|
@@ -3428,7 +3442,8 @@ var labels$11 = {
|
|
|
3428
3442
|
firstName: "First name",
|
|
3429
3443
|
lastName: "Last name",
|
|
3430
3444
|
phone: "Phone",
|
|
3431
|
-
freeItems: "Free Items"
|
|
3445
|
+
freeItems: "Free Items",
|
|
3446
|
+
isDefault: "Set as default"
|
|
3432
3447
|
};
|
|
3433
3448
|
var checkoutForm_en = {
|
|
3434
3449
|
messages: messages$14,
|
|
@@ -3814,6 +3829,7 @@ var messages$X = {
|
|
|
3814
3829
|
cancel: "Cancel your subscription online at anytime.",
|
|
3815
3830
|
giftSent: "Subscription gift has been sent to",
|
|
3816
3831
|
successfully: "successfully",
|
|
3832
|
+
sourceCreated: "Payment information has been added",
|
|
3817
3833
|
sourceUpdated: "Your payment information has been updated",
|
|
3818
3834
|
cardAuthFailed: "We are unable to authenticate your payment method. Please choose a different payment method and try again.",
|
|
3819
3835
|
cardAuthNotSupported: "Updating your payment method to one that requires authentication is currently not possible. Please use a different payment method or contact customer service.",
|
|
@@ -3891,6 +3907,8 @@ var labels$V = {
|
|
|
3891
3907
|
renewsOn: "Renews",
|
|
3892
3908
|
canceledOn: "Canceled on",
|
|
3893
3909
|
recipient: "Recipient",
|
|
3910
|
+
addPaymentSource: "Add payment method",
|
|
3911
|
+
setDefault: "Set as default",
|
|
3894
3912
|
addAddress: "Add address",
|
|
3895
3913
|
editAddress: "Edit address",
|
|
3896
3914
|
addSubscription: "New Subscription",
|
|
@@ -3933,6 +3951,13 @@ var messages$W = {
|
|
|
3933
3951
|
loading: "Unsuspending your subscription",
|
|
3934
3952
|
success: "Subscription is successfully unsuspended",
|
|
3935
3953
|
error: "Error while unsuspending your subscription"
|
|
3954
|
+
},
|
|
3955
|
+
paymentMethodDeletion: {
|
|
3956
|
+
isSureToDelete: "Are you sure you want to delete this payment method?",
|
|
3957
|
+
loading: "Deleting your payment method",
|
|
3958
|
+
success: "Payment method is successfully deleted",
|
|
3959
|
+
error: "Error while deleting your payment method",
|
|
3960
|
+
nonDeletable: "This payment method can't be deleted"
|
|
3936
3961
|
}
|
|
3937
3962
|
};
|
|
3938
3963
|
var dashboard_en = {
|
|
@@ -4195,9 +4220,23 @@ var select$4 = {
|
|
|
4195
4220
|
changePaymentMethod: "Modifier"
|
|
4196
4221
|
}
|
|
4197
4222
|
};
|
|
4223
|
+
var create$4 = {
|
|
4224
|
+
title: "Ajouter un nouveau mode de paiement",
|
|
4225
|
+
subtitle: "Saisissez les champs ci-dessous pour ajouter les informations relatives à votre carte de crédit"
|
|
4226
|
+
};
|
|
4198
4227
|
var paymentMethod_fr = {
|
|
4199
4228
|
update: update$2,
|
|
4200
|
-
select: select$4
|
|
4229
|
+
select: select$4,
|
|
4230
|
+
"delete": {
|
|
4231
|
+
title: "Supprimer un mode de paiement",
|
|
4232
|
+
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.",
|
|
4233
|
+
options: {
|
|
4234
|
+
select: "Sélectionner un mode de paiement existant",
|
|
4235
|
+
add: "Ajouter un nouveau mode de paiement"
|
|
4236
|
+
},
|
|
4237
|
+
paymentMethodReplaced: "Méthode de paiement supprimée et remplacée avec succès"
|
|
4238
|
+
},
|
|
4239
|
+
create: create$4
|
|
4201
4240
|
};
|
|
4202
4241
|
|
|
4203
4242
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
@@ -4299,7 +4338,8 @@ var labels$M = {
|
|
|
4299
4338
|
firstName: "Prénom",
|
|
4300
4339
|
lastName: "Nom de famille",
|
|
4301
4340
|
phone: "Téléphoner",
|
|
4302
|
-
freeItems: "Articles gratuits"
|
|
4341
|
+
freeItems: "Articles gratuits",
|
|
4342
|
+
isDefault: "Défini comme valeur par défaut"
|
|
4303
4343
|
};
|
|
4304
4344
|
var checkoutForm_fr = {
|
|
4305
4345
|
messages: messages$O,
|
|
@@ -4686,6 +4726,7 @@ var messages$F = {
|
|
|
4686
4726
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4687
4727
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
4688
4728
|
successfully: "avec succès.",
|
|
4729
|
+
sourceCreated: "Les informations de paiement ont été ajoutées",
|
|
4689
4730
|
sourceUpdated: "Vos informations de paiement ont été mises à jour",
|
|
4690
4731
|
cardAuthFailed: "Nous ne parvenons pas à authentifier votre mode de paiement. Veuillez choisir un autre mode de paiement et essayer à nouveau.",
|
|
4691
4732
|
cardAuthNotSupported: "Votre carte ne peut être mise à jour puisqu'elle nécessite une authentification. Veuillez utiliser un autre mode de paiement ou contacter le service client.",
|
|
@@ -5066,9 +5107,23 @@ var select$2 = {
|
|
|
5066
5107
|
changePaymentMethod: "변경"
|
|
5067
5108
|
}
|
|
5068
5109
|
};
|
|
5110
|
+
var create$3 = {
|
|
5111
|
+
title: "새 결제 방법 추가",
|
|
5112
|
+
subtitle: "신용카드 정보를 추가하려면 아래 입력란을 입력하세요."
|
|
5113
|
+
};
|
|
5069
5114
|
var paymentMethod_ko = {
|
|
5070
5115
|
update: update$1,
|
|
5071
|
-
select: select$2
|
|
5116
|
+
select: select$2,
|
|
5117
|
+
"delete": {
|
|
5118
|
+
title: "결제 방법 삭제",
|
|
5119
|
+
subtitle: "이 결제 방법은 활성 구독과 연결되거나 기본 결제 방법으로 사용될 수 있습니다. 아래에서 사용 가능한 옵션 중에서 선택하여 대체하세요.",
|
|
5120
|
+
options: {
|
|
5121
|
+
select: "기존 결제 방법 선택",
|
|
5122
|
+
add: "새 결제 방법 추가"
|
|
5123
|
+
},
|
|
5124
|
+
paymentMethodReplaced: "결제 방법 삭제 및 교체 성공"
|
|
5125
|
+
},
|
|
5126
|
+
create: create$3
|
|
5072
5127
|
};
|
|
5073
5128
|
|
|
5074
5129
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
@@ -5170,7 +5225,8 @@ var labels$v = {
|
|
|
5170
5225
|
firstName: "이름",
|
|
5171
5226
|
lastName: "성",
|
|
5172
5227
|
phone: "핸드폰",
|
|
5173
|
-
freeItems: "무료 아이템"
|
|
5228
|
+
freeItems: "무료 아이템",
|
|
5229
|
+
isDefault: "기본값으로 설정"
|
|
5174
5230
|
};
|
|
5175
5231
|
var checkoutForm_ko = {
|
|
5176
5232
|
messages: messages$w,
|
|
@@ -5556,6 +5612,7 @@ var messages$n = {
|
|
|
5556
5612
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5557
5613
|
giftSent: "유료 멤버십 선물이 ",
|
|
5558
5614
|
successfully: "님께 성공적으로 전송되었습니다.",
|
|
5615
|
+
sourceCreated: "결제 정보가 추가되었습니다.",
|
|
5559
5616
|
sourceUpdated: "귀하의 결제 정보가 업데이트되었습니다.",
|
|
5560
5617
|
cardAuthFailed: "해당 결제 수단은 인증할 수 없습니다. 다른 결제 수단을 선택하여 다시 시도해보시기 바랍니다.",
|
|
5561
5618
|
cardAuthNotSupported: "인증이 요구되는 결제 수단으로의 업데이트는 현재 지원되지 않습니다. 다른 결제 수단을 이용하거나 고객센터로 문의하시기 바랍니다.",
|
|
@@ -6041,9 +6098,23 @@ var select = {
|
|
|
6041
6098
|
changePaymentMethod: "Cambiar"
|
|
6042
6099
|
}
|
|
6043
6100
|
};
|
|
6101
|
+
var create$2 = {
|
|
6102
|
+
title: "Añadir un nuevo método de pago",
|
|
6103
|
+
subtitle: "Introduzca los campos siguientes para añadir los datos de su tarjeta de crédito"
|
|
6104
|
+
};
|
|
6044
6105
|
var paymentMethod_es = {
|
|
6045
6106
|
update: update,
|
|
6046
|
-
select: select
|
|
6107
|
+
select: select,
|
|
6108
|
+
"delete": {
|
|
6109
|
+
title: "Eliminar método de pago",
|
|
6110
|
+
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.",
|
|
6111
|
+
options: {
|
|
6112
|
+
select: "Seleccione un método de pago existente",
|
|
6113
|
+
add: "Añadir un nuevo método de pago"
|
|
6114
|
+
},
|
|
6115
|
+
paymentMethodReplaced: "Método de pago eliminado y sustituido correctamente"
|
|
6116
|
+
},
|
|
6117
|
+
create: create$2
|
|
6047
6118
|
};
|
|
6048
6119
|
|
|
6049
6120
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
@@ -6145,7 +6216,8 @@ var labels$e = {
|
|
|
6145
6216
|
firstName: "Nombre",
|
|
6146
6217
|
lastName: "Apellido",
|
|
6147
6218
|
phone: "Teléfono",
|
|
6148
|
-
freeItems: "Artículos gratis"
|
|
6219
|
+
freeItems: "Artículos gratis",
|
|
6220
|
+
isDefault: "Fijar por defecto"
|
|
6149
6221
|
};
|
|
6150
6222
|
var checkoutForm_es = {
|
|
6151
6223
|
messages: messages$e,
|
|
@@ -6528,6 +6600,7 @@ var messages$5 = {
|
|
|
6528
6600
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6529
6601
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
6530
6602
|
successfully: "exitosamente",
|
|
6603
|
+
sourceCreated: "Se ha añadido la información de pago",
|
|
6531
6604
|
sourceUpdated: "Tu información de pago se ha actualizado",
|
|
6532
6605
|
cardAuthFailed: "No pudimos autenticar tu método de pago. Por favor, elige un método de pago diferente e intenta de nuevo.",
|
|
6533
6606
|
cardAuthNotSupported: "Actualmente no es posible actualizar tu método de pago a uno que requiere autenticación. Por favor, utiliza un método de pago diferente o contacta a atención al cliente.",
|
|
@@ -8726,7 +8799,7 @@ class PelcroActions {
|
|
|
8726
8799
|
view,
|
|
8727
8800
|
cartItems,
|
|
8728
8801
|
...otherStateFields
|
|
8729
|
-
} = initialState$
|
|
8802
|
+
} = initialState$o;
|
|
8730
8803
|
this.set(otherStateFields);
|
|
8731
8804
|
});
|
|
8732
8805
|
_defineProperty$3(this, "switchView", view => {
|
|
@@ -9031,6 +9104,38 @@ class PelcroActions {
|
|
|
9031
9104
|
}
|
|
9032
9105
|
switchToAddressView();
|
|
9033
9106
|
});
|
|
9107
|
+
_defineProperty$3(this, "setPaymentMethodToEdit", id => {
|
|
9108
|
+
window.Pelcro.paymentMethods.getPaymentMethod({
|
|
9109
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
9110
|
+
payment_method_id: id
|
|
9111
|
+
}, (err, res) => {
|
|
9112
|
+
if (err) {
|
|
9113
|
+
return console.error("invalid payment method id");
|
|
9114
|
+
}
|
|
9115
|
+
if (res) {
|
|
9116
|
+
const paymentMethodToEdit = res.data;
|
|
9117
|
+
this.set({
|
|
9118
|
+
paymentMethodToEdit
|
|
9119
|
+
});
|
|
9120
|
+
}
|
|
9121
|
+
});
|
|
9122
|
+
});
|
|
9123
|
+
_defineProperty$3(this, "setPaymentMethodToDelete", id => {
|
|
9124
|
+
window.Pelcro.paymentMethods.getPaymentMethod({
|
|
9125
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
9126
|
+
payment_method_id: id
|
|
9127
|
+
}, (err, res) => {
|
|
9128
|
+
if (err) {
|
|
9129
|
+
return console.error("invalid payment method id");
|
|
9130
|
+
}
|
|
9131
|
+
if (res) {
|
|
9132
|
+
const paymentMethodToDelete = res.data;
|
|
9133
|
+
this.set({
|
|
9134
|
+
paymentMethodToDelete
|
|
9135
|
+
});
|
|
9136
|
+
}
|
|
9137
|
+
});
|
|
9138
|
+
});
|
|
9034
9139
|
this.set = storeSetter;
|
|
9035
9140
|
this.get = storeGetter;
|
|
9036
9141
|
}
|
|
@@ -9075,7 +9180,7 @@ class PelcroCallbacks {
|
|
|
9075
9180
|
}
|
|
9076
9181
|
}
|
|
9077
9182
|
|
|
9078
|
-
const initialState$
|
|
9183
|
+
const initialState$o = {
|
|
9079
9184
|
// View
|
|
9080
9185
|
view: null,
|
|
9081
9186
|
// Plans
|
|
@@ -9098,6 +9203,9 @@ const initialState$n = {
|
|
|
9098
9203
|
couponCode: null,
|
|
9099
9204
|
// memberships
|
|
9100
9205
|
selectedMembership: null,
|
|
9206
|
+
// paymentMethods
|
|
9207
|
+
paymentMethodToDelete: null,
|
|
9208
|
+
paymentMethodToEdit: null,
|
|
9101
9209
|
// User
|
|
9102
9210
|
isAuthenticated: () => window.Pelcro.user.isAuthenticated(),
|
|
9103
9211
|
selectedPaymentMethodId: null,
|
|
@@ -9110,7 +9218,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
9110
9218
|
return {
|
|
9111
9219
|
// Store setter
|
|
9112
9220
|
set,
|
|
9113
|
-
...initialState$
|
|
9221
|
+
...initialState$o,
|
|
9114
9222
|
// State actions
|
|
9115
9223
|
...actions,
|
|
9116
9224
|
// Callbacks
|
|
@@ -9880,8 +9988,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
9880
9988
|
|
|
9881
9989
|
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}}
|
|
9882
9990
|
|
|
9883
|
-
function _extends$
|
|
9884
|
-
_extends$
|
|
9991
|
+
function _extends$C() {
|
|
9992
|
+
_extends$C = Object.assign || function (target) {
|
|
9885
9993
|
for (var i = 1; i < arguments.length; i++) {
|
|
9886
9994
|
var source = arguments[i];
|
|
9887
9995
|
|
|
@@ -9895,7 +10003,7 @@ function _extends$B() {
|
|
|
9895
10003
|
return target;
|
|
9896
10004
|
};
|
|
9897
10005
|
|
|
9898
|
-
return _extends$
|
|
10006
|
+
return _extends$C.apply(this, arguments);
|
|
9899
10007
|
}
|
|
9900
10008
|
|
|
9901
10009
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -9985,7 +10093,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
9985
10093
|
var reducer = function reducer(state, action) {
|
|
9986
10094
|
switch (action.type) {
|
|
9987
10095
|
case ActionType.ADD_TOAST:
|
|
9988
|
-
return _extends$
|
|
10096
|
+
return _extends$C({}, state, {
|
|
9989
10097
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
9990
10098
|
});
|
|
9991
10099
|
|
|
@@ -9995,9 +10103,9 @@ var reducer = function reducer(state, action) {
|
|
|
9995
10103
|
clearFromRemoveQueue(action.toast.id);
|
|
9996
10104
|
}
|
|
9997
10105
|
|
|
9998
|
-
return _extends$
|
|
10106
|
+
return _extends$C({}, state, {
|
|
9999
10107
|
toasts: state.toasts.map(function (t) {
|
|
10000
|
-
return t.id === action.toast.id ? _extends$
|
|
10108
|
+
return t.id === action.toast.id ? _extends$C({}, t, action.toast) : t;
|
|
10001
10109
|
})
|
|
10002
10110
|
});
|
|
10003
10111
|
|
|
@@ -10024,9 +10132,9 @@ var reducer = function reducer(state, action) {
|
|
|
10024
10132
|
});
|
|
10025
10133
|
}
|
|
10026
10134
|
|
|
10027
|
-
return _extends$
|
|
10135
|
+
return _extends$C({}, state, {
|
|
10028
10136
|
toasts: state.toasts.map(function (t) {
|
|
10029
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
10137
|
+
return t.id === toastId || toastId === undefined ? _extends$C({}, t, {
|
|
10030
10138
|
visible: false
|
|
10031
10139
|
}) : t;
|
|
10032
10140
|
})
|
|
@@ -10034,28 +10142,28 @@ var reducer = function reducer(state, action) {
|
|
|
10034
10142
|
|
|
10035
10143
|
case ActionType.REMOVE_TOAST:
|
|
10036
10144
|
if (action.toastId === undefined) {
|
|
10037
|
-
return _extends$
|
|
10145
|
+
return _extends$C({}, state, {
|
|
10038
10146
|
toasts: []
|
|
10039
10147
|
});
|
|
10040
10148
|
}
|
|
10041
10149
|
|
|
10042
|
-
return _extends$
|
|
10150
|
+
return _extends$C({}, state, {
|
|
10043
10151
|
toasts: state.toasts.filter(function (t) {
|
|
10044
10152
|
return t.id !== action.toastId;
|
|
10045
10153
|
})
|
|
10046
10154
|
});
|
|
10047
10155
|
|
|
10048
10156
|
case ActionType.START_PAUSE:
|
|
10049
|
-
return _extends$
|
|
10157
|
+
return _extends$C({}, state, {
|
|
10050
10158
|
pausedAt: action.time
|
|
10051
10159
|
});
|
|
10052
10160
|
|
|
10053
10161
|
case ActionType.END_PAUSE:
|
|
10054
10162
|
var diff = action.time - (state.pausedAt || 0);
|
|
10055
|
-
return _extends$
|
|
10163
|
+
return _extends$C({}, state, {
|
|
10056
10164
|
pausedAt: undefined,
|
|
10057
10165
|
toasts: state.toasts.map(function (t) {
|
|
10058
|
-
return _extends$
|
|
10166
|
+
return _extends$C({}, t, {
|
|
10059
10167
|
pauseDuration: t.pauseDuration + diff
|
|
10060
10168
|
});
|
|
10061
10169
|
})
|
|
@@ -10102,12 +10210,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
10102
10210
|
var mergedToasts = state.toasts.map(function (t) {
|
|
10103
10211
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
10104
10212
|
|
|
10105
|
-
return _extends$
|
|
10213
|
+
return _extends$C({}, toastOptions, toastOptions[t.type], t, {
|
|
10106
10214
|
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],
|
|
10107
|
-
style: _extends$
|
|
10215
|
+
style: _extends$C({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
10108
10216
|
});
|
|
10109
10217
|
});
|
|
10110
|
-
return _extends$
|
|
10218
|
+
return _extends$C({}, state, {
|
|
10111
10219
|
toasts: mergedToasts
|
|
10112
10220
|
});
|
|
10113
10221
|
};
|
|
@@ -10117,7 +10225,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
10117
10225
|
type = 'blank';
|
|
10118
10226
|
}
|
|
10119
10227
|
|
|
10120
|
-
return _extends$
|
|
10228
|
+
return _extends$C({
|
|
10121
10229
|
createdAt: Date.now(),
|
|
10122
10230
|
visible: true,
|
|
10123
10231
|
type: type,
|
|
@@ -10167,14 +10275,14 @@ toast.remove = function (toastId) {
|
|
|
10167
10275
|
};
|
|
10168
10276
|
|
|
10169
10277
|
toast.promise = function (promise, msgs, opts) {
|
|
10170
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
10278
|
+
var id = toast.loading(msgs.loading, _extends$C({}, opts, opts == null ? void 0 : opts.loading));
|
|
10171
10279
|
promise.then(function (p) {
|
|
10172
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
10280
|
+
toast.success(resolveValue(msgs.success, p), _extends$C({
|
|
10173
10281
|
id: id
|
|
10174
10282
|
}, opts, opts == null ? void 0 : opts.success));
|
|
10175
10283
|
return p;
|
|
10176
10284
|
})["catch"](function (e) {
|
|
10177
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
10285
|
+
toast.error(resolveValue(msgs.error, e), _extends$C({
|
|
10178
10286
|
id: id
|
|
10179
10287
|
}, opts, opts == null ? void 0 : opts.error));
|
|
10180
10288
|
});
|
|
@@ -10513,7 +10621,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
10513
10621
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
10514
10622
|
return createElement(ToastBarBase, {
|
|
10515
10623
|
className: toast.className,
|
|
10516
|
-
style: _extends$
|
|
10624
|
+
style: _extends$C({}, animationStyle, style, toast.style)
|
|
10517
10625
|
}, typeof children === 'function' ? children({
|
|
10518
10626
|
icon: icon,
|
|
10519
10627
|
message: message
|
|
@@ -10543,7 +10651,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
10543
10651
|
} : position.includes('right') ? {
|
|
10544
10652
|
justifyContent: 'flex-end'
|
|
10545
10653
|
} : {};
|
|
10546
|
-
return _extends$
|
|
10654
|
+
return _extends$C({
|
|
10547
10655
|
left: 0,
|
|
10548
10656
|
right: 0,
|
|
10549
10657
|
display: 'flex',
|
|
@@ -10570,7 +10678,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
10570
10678
|
handlers = _useToaster.handlers;
|
|
10571
10679
|
|
|
10572
10680
|
return createElement("div", {
|
|
10573
|
-
style: _extends$
|
|
10681
|
+
style: _extends$C({
|
|
10574
10682
|
position: 'fixed',
|
|
10575
10683
|
zIndex: 9999,
|
|
10576
10684
|
top: DEFAULT_OFFSET,
|
|
@@ -10605,72 +10713,72 @@ var Toaster = function Toaster(_ref) {
|
|
|
10605
10713
|
}));
|
|
10606
10714
|
};
|
|
10607
10715
|
|
|
10608
|
-
var _path$
|
|
10609
|
-
function _extends$
|
|
10716
|
+
var _path$z;
|
|
10717
|
+
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); }
|
|
10610
10718
|
function SvgCheckSolid(props) {
|
|
10611
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10719
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
10612
10720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10613
10721
|
className: "h-5 w-5",
|
|
10614
10722
|
viewBox: "0 0 20 20",
|
|
10615
10723
|
fill: "currentColor"
|
|
10616
|
-
}, props), _path$
|
|
10724
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
10617
10725
|
fillRule: "evenodd",
|
|
10618
10726
|
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",
|
|
10619
10727
|
clipRule: "evenodd"
|
|
10620
10728
|
})));
|
|
10621
10729
|
}
|
|
10622
10730
|
|
|
10623
|
-
var _path$
|
|
10624
|
-
function _extends$
|
|
10731
|
+
var _path$y;
|
|
10732
|
+
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); }
|
|
10625
10733
|
function SvgXIcon(props) {
|
|
10626
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10734
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
10627
10735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10628
10736
|
viewBox: "0 0 20 20",
|
|
10629
10737
|
fill: "currentColor"
|
|
10630
|
-
}, props), _path$
|
|
10738
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
10631
10739
|
fill: "evenodd",
|
|
10632
10740
|
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",
|
|
10633
10741
|
clipRule: "evenodd"
|
|
10634
10742
|
})));
|
|
10635
10743
|
}
|
|
10636
10744
|
|
|
10637
|
-
var _path$
|
|
10638
|
-
function _extends$
|
|
10745
|
+
var _path$x;
|
|
10746
|
+
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); }
|
|
10639
10747
|
function SvgXIconSolid(props) {
|
|
10640
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10748
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
10641
10749
|
className: "plc-w-4 plc-h-4",
|
|
10642
10750
|
fill: "currentColor",
|
|
10643
10751
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10644
10752
|
viewBox: "0 0 100 100"
|
|
10645
|
-
}, props), _path$
|
|
10753
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
10646
10754
|
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"
|
|
10647
10755
|
})));
|
|
10648
10756
|
}
|
|
10649
10757
|
|
|
10650
|
-
var _path$
|
|
10651
|
-
function _extends$
|
|
10758
|
+
var _path$w;
|
|
10759
|
+
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); }
|
|
10652
10760
|
function SvgExclamation(props) {
|
|
10653
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10761
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
10654
10762
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
10655
10763
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10656
10764
|
viewBox: "0 0 20 20",
|
|
10657
10765
|
fill: "currentColor"
|
|
10658
|
-
}, props), _path$
|
|
10766
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
10659
10767
|
fillRule: "evenodd",
|
|
10660
10768
|
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",
|
|
10661
10769
|
clipRule: "evenodd"
|
|
10662
10770
|
})));
|
|
10663
10771
|
}
|
|
10664
10772
|
|
|
10665
|
-
var _path$
|
|
10666
|
-
function _extends$
|
|
10773
|
+
var _path$v, _path2$4;
|
|
10774
|
+
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); }
|
|
10667
10775
|
function SvgSpinner(props) {
|
|
10668
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10776
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
10669
10777
|
className: "plc-animate-spin",
|
|
10670
10778
|
viewBox: "0 0 24 24",
|
|
10671
10779
|
fill: "currentColor",
|
|
10672
10780
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10673
|
-
}, props), _path$
|
|
10781
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
10674
10782
|
opacity: 0.2,
|
|
10675
10783
|
fill: "evenodd",
|
|
10676
10784
|
clipRule: "evenodd",
|
|
@@ -11479,6 +11587,17 @@ function getSiteCardProcessor() {
|
|
|
11479
11587
|
}
|
|
11480
11588
|
return "stripe";
|
|
11481
11589
|
}
|
|
11590
|
+
function getFourDigitYear(lastTwoDigits) {
|
|
11591
|
+
// Get the current year
|
|
11592
|
+
const currentYear = new Date().getFullYear();
|
|
11593
|
+
|
|
11594
|
+
// Extract the current century (first two digits)
|
|
11595
|
+
const currentCentury = Math.floor(currentYear / 100);
|
|
11596
|
+
|
|
11597
|
+
// Combine the century and the provided last two digits
|
|
11598
|
+
const fourDigitYear = currentCentury * 100 + lastTwoDigits;
|
|
11599
|
+
return fourDigitYear;
|
|
11600
|
+
}
|
|
11482
11601
|
|
|
11483
11602
|
/**
|
|
11484
11603
|
* @typedef {Object} OptionsType
|
|
@@ -11587,7 +11706,7 @@ const loadPaymentSDKs = () => {
|
|
|
11587
11706
|
if (!window.jQuery) {
|
|
11588
11707
|
window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
|
|
11589
11708
|
}
|
|
11590
|
-
window.Pelcro.helpers.loadSDK("https://ajax.googleapis.com/ajax/libs/jquery/
|
|
11709
|
+
window.Pelcro.helpers.loadSDK("https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js", "vantiv-jquery-sdk");
|
|
11591
11710
|
const eProtectApi3PreLiveURL = "https://request.eprotect.vantivprelive.com/eProtect/eProtect-api3.js";
|
|
11592
11711
|
const eProtectApi3ProductionURL = "https://request.eprotect.vantivcnp.com/eProtect/eProtect-api3.js";
|
|
11593
11712
|
const eProtectApi3scriptUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? eProtectApi3ProductionURL : eProtectApi3PreLiveURL;
|
|
@@ -12392,6 +12511,7 @@ const SET_CONFIRM_PASSWORD = "SET_CONFIRM_PASSWORD";
|
|
|
12392
12511
|
const CONFIRM_PASSWORD_USED = "CONFIRM_PASSWORD_USED";
|
|
12393
12512
|
const DISABLE_SUBMIT = "DISABLE_SUBMIT";
|
|
12394
12513
|
const LOADING = "LOADING";
|
|
12514
|
+
const SKELETON_LOADER = "SKELETON_LOADER";
|
|
12395
12515
|
const SUBMIT_PAYMENT = "SUBMIT_PAYMENT";
|
|
12396
12516
|
const SUBSCRIBE = "CREATE_SUBSCRIPTION";
|
|
12397
12517
|
const HANDLE_PAYPAL_SUBSCRIPTION = "HANDLE_PAYPAL_SUBSCRIPTION";
|
|
@@ -12459,6 +12579,9 @@ const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
|
12459
12579
|
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
12460
12580
|
const SET_CANCEL_SUBSCRIPTION_OPTION = "SET_CANCEL_SUBSCRIPTION_OPTION";
|
|
12461
12581
|
const HANDLE_CHECKBOX_CHANGE = "HANDLE_CHECKBOX_CHANGE";
|
|
12582
|
+
const SET_IS_DEFAULT_PAYMENT_METHOD = "SET_IS_DEFAULT_PAYMENT_METHOD";
|
|
12583
|
+
const SET_DELETE_PAYMENT_METHOD_OPTION = "SET_DELETE_PAYMENT_METHOD_OPTION";
|
|
12584
|
+
const SET_PAYMENT_METHODS = "SET_PAYMENT_METHODS";
|
|
12462
12585
|
const SET_SUBSCRIPTION_SUSPEND_DATE = "SET_SUBSCRIPTION_SUSPEND_DATE";
|
|
12463
12586
|
const SET_EMAILS = "SET_EMAILS";
|
|
12464
12587
|
const SET_EMAILS_ERROR = "SET_EMAILS_ERROR";
|
|
@@ -12470,7 +12593,7 @@ const UPDATE_MEMBERS = "UPDATE_MEMBERS";
|
|
|
12470
12593
|
const UPDATE_REMOVE_MEMBER_ID = "UPDATE_REMOVE_MEMBER_ID";
|
|
12471
12594
|
const UPDATE_CYBERSOURCE_SESSION_ID = "UPDATE_CYBERSOURCE_SESSION_ID";
|
|
12472
12595
|
|
|
12473
|
-
const initialState$
|
|
12596
|
+
const initialState$n = {
|
|
12474
12597
|
email: "",
|
|
12475
12598
|
username: "",
|
|
12476
12599
|
password: "",
|
|
@@ -12483,10 +12606,10 @@ const initialState$m = {
|
|
|
12483
12606
|
content: ""
|
|
12484
12607
|
}
|
|
12485
12608
|
};
|
|
12486
|
-
const store$
|
|
12609
|
+
const store$n = /*#__PURE__*/createContext(initialState$n);
|
|
12487
12610
|
const {
|
|
12488
|
-
Provider: Provider$
|
|
12489
|
-
} = store$
|
|
12611
|
+
Provider: Provider$n
|
|
12612
|
+
} = store$n;
|
|
12490
12613
|
const LoginContainer = _ref => {
|
|
12491
12614
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
12492
12615
|
let {
|
|
@@ -12623,7 +12746,7 @@ const LoginContainer = _ref => {
|
|
|
12623
12746
|
alert: action.payload
|
|
12624
12747
|
});
|
|
12625
12748
|
case RESET_LOGIN_FORM:
|
|
12626
|
-
return initialState$
|
|
12749
|
+
return initialState$n;
|
|
12627
12750
|
case DISABLE_LOGIN_BUTTON:
|
|
12628
12751
|
return lib_7({
|
|
12629
12752
|
...state,
|
|
@@ -12639,13 +12762,13 @@ const LoginContainer = _ref => {
|
|
|
12639
12762
|
default:
|
|
12640
12763
|
return state;
|
|
12641
12764
|
}
|
|
12642
|
-
}, initialState$
|
|
12765
|
+
}, initialState$n);
|
|
12643
12766
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12644
12767
|
style: {
|
|
12645
12768
|
...style
|
|
12646
12769
|
},
|
|
12647
12770
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
12648
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
12771
|
+
}, /*#__PURE__*/React__default.createElement(Provider$n, {
|
|
12649
12772
|
value: {
|
|
12650
12773
|
state,
|
|
12651
12774
|
dispatch
|
|
@@ -12653,12 +12776,12 @@ const LoginContainer = _ref => {
|
|
|
12653
12776
|
}, children.length ? children.map((child, i) => {
|
|
12654
12777
|
if (child) {
|
|
12655
12778
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
12656
|
-
store: store$
|
|
12779
|
+
store: store$n,
|
|
12657
12780
|
key: i
|
|
12658
12781
|
});
|
|
12659
12782
|
}
|
|
12660
12783
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
12661
|
-
store: store$
|
|
12784
|
+
store: store$n
|
|
12662
12785
|
})));
|
|
12663
12786
|
};
|
|
12664
12787
|
|
|
@@ -12967,7 +13090,7 @@ const LoginButton = _ref => {
|
|
|
12967
13090
|
buttonDisabled
|
|
12968
13091
|
},
|
|
12969
13092
|
dispatch
|
|
12970
|
-
} = useContext(store$
|
|
13093
|
+
} = useContext(store$n);
|
|
12971
13094
|
const {
|
|
12972
13095
|
t
|
|
12973
13096
|
} = useTranslation("login");
|
|
@@ -12987,14 +13110,14 @@ const LoginButton = _ref => {
|
|
|
12987
13110
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.login"));
|
|
12988
13111
|
};
|
|
12989
13112
|
|
|
12990
|
-
var _path$
|
|
12991
|
-
function _extends$
|
|
13113
|
+
var _path$u, _path2$3;
|
|
13114
|
+
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); }
|
|
12992
13115
|
function SvgEmailVerify(props) {
|
|
12993
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13116
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
12994
13117
|
className: "plc-w-6 plc-h-6",
|
|
12995
13118
|
viewBox: "0 0 700 700",
|
|
12996
13119
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12997
|
-
}, props), _path$
|
|
13120
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
12998
13121
|
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"
|
|
12999
13122
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
13000
13123
|
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"
|
|
@@ -13024,25 +13147,25 @@ const LoginRequestLoginToken = _ref => {
|
|
|
13024
13147
|
};
|
|
13025
13148
|
|
|
13026
13149
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
13027
|
-
store: store$
|
|
13150
|
+
store: store$n
|
|
13028
13151
|
}, props));
|
|
13029
13152
|
|
|
13030
13153
|
const LoginUsername = props => /*#__PURE__*/React__default.createElement(UserNameInput, Object.assign({
|
|
13031
|
-
store: store$
|
|
13154
|
+
store: store$n
|
|
13032
13155
|
}, props));
|
|
13033
13156
|
|
|
13034
13157
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
13035
|
-
store: store$
|
|
13158
|
+
store: store$n
|
|
13036
13159
|
}, props));
|
|
13037
13160
|
|
|
13038
|
-
var _path$
|
|
13039
|
-
function _extends$
|
|
13161
|
+
var _path$t;
|
|
13162
|
+
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); }
|
|
13040
13163
|
function SvgCheck(props) {
|
|
13041
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13164
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
13042
13165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13043
13166
|
fill: "currentColor",
|
|
13044
13167
|
viewBox: "0 0 20 20"
|
|
13045
|
-
}, props), _path$
|
|
13168
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
13046
13169
|
fillRule: "evenodd",
|
|
13047
13170
|
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",
|
|
13048
13171
|
clipRule: "evenodd"
|
|
@@ -13108,7 +13231,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
13108
13231
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
13109
13232
|
facebookLoginRenderProps.FacebookLogin;
|
|
13110
13233
|
|
|
13111
|
-
const initialState$
|
|
13234
|
+
const initialState$m = {
|
|
13112
13235
|
email: "",
|
|
13113
13236
|
password: "",
|
|
13114
13237
|
firstName: "",
|
|
@@ -13129,10 +13252,10 @@ const initialState$l = {
|
|
|
13129
13252
|
content: ""
|
|
13130
13253
|
}
|
|
13131
13254
|
};
|
|
13132
|
-
const store$
|
|
13255
|
+
const store$m = /*#__PURE__*/createContext(initialState$m);
|
|
13133
13256
|
const {
|
|
13134
|
-
Provider: Provider$
|
|
13135
|
-
} = store$
|
|
13257
|
+
Provider: Provider$m
|
|
13258
|
+
} = store$m;
|
|
13136
13259
|
const RegisterContainer = _ref => {
|
|
13137
13260
|
let {
|
|
13138
13261
|
style,
|
|
@@ -13344,7 +13467,7 @@ const RegisterContainer = _ref => {
|
|
|
13344
13467
|
alert: action.payload
|
|
13345
13468
|
});
|
|
13346
13469
|
case RESET_LOGIN_FORM:
|
|
13347
|
-
return initialState$
|
|
13470
|
+
return initialState$m;
|
|
13348
13471
|
case DISABLE_REGISTRATION_BUTTON:
|
|
13349
13472
|
return lib_7({
|
|
13350
13473
|
...state,
|
|
@@ -13360,13 +13483,13 @@ const RegisterContainer = _ref => {
|
|
|
13360
13483
|
default:
|
|
13361
13484
|
return state;
|
|
13362
13485
|
}
|
|
13363
|
-
}, initialState$
|
|
13486
|
+
}, initialState$m);
|
|
13364
13487
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13365
13488
|
style: {
|
|
13366
13489
|
...style
|
|
13367
13490
|
},
|
|
13368
13491
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
13369
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
13492
|
+
}, /*#__PURE__*/React__default.createElement(Provider$m, {
|
|
13370
13493
|
value: {
|
|
13371
13494
|
state,
|
|
13372
13495
|
dispatch
|
|
@@ -13374,12 +13497,12 @@ const RegisterContainer = _ref => {
|
|
|
13374
13497
|
}, children.length ? children.map((child, i) => {
|
|
13375
13498
|
if (child) {
|
|
13376
13499
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
13377
|
-
store: store$
|
|
13500
|
+
store: store$m,
|
|
13378
13501
|
key: i
|
|
13379
13502
|
});
|
|
13380
13503
|
}
|
|
13381
13504
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
13382
|
-
store: store$
|
|
13505
|
+
store: store$m
|
|
13383
13506
|
})));
|
|
13384
13507
|
};
|
|
13385
13508
|
|
|
@@ -13393,13 +13516,13 @@ function hasSecurityTokenEnabled$1() {
|
|
|
13393
13516
|
return hasSecuritySdkLoaded;
|
|
13394
13517
|
}
|
|
13395
13518
|
|
|
13396
|
-
var _path$
|
|
13397
|
-
function _extends$
|
|
13519
|
+
var _path$s;
|
|
13520
|
+
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); }
|
|
13398
13521
|
function SvgFacebookLogo(props) {
|
|
13399
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13522
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
13400
13523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13401
13524
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
13402
|
-
}, props), _path$
|
|
13525
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
13403
13526
|
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",
|
|
13404
13527
|
fill: "#3c5a9a"
|
|
13405
13528
|
})));
|
|
@@ -13416,10 +13539,10 @@ const FacebookLoginButton = _ref => {
|
|
|
13416
13539
|
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;
|
|
13417
13540
|
const {
|
|
13418
13541
|
dispatch: loginDispatch
|
|
13419
|
-
} = useContext(store$
|
|
13542
|
+
} = useContext(store$n);
|
|
13420
13543
|
const {
|
|
13421
13544
|
dispatch: registerDispatch
|
|
13422
|
-
} = useContext(store$
|
|
13545
|
+
} = useContext(store$m);
|
|
13423
13546
|
const onSuccess = facebookUser => {
|
|
13424
13547
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
13425
13548
|
type: HANDLE_SOCIAL_LOGIN,
|
|
@@ -13469,13 +13592,13 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
13469
13592
|
unwrapExports(googleLogin);
|
|
13470
13593
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
13471
13594
|
|
|
13472
|
-
var _path$
|
|
13473
|
-
function _extends$
|
|
13595
|
+
var _path$r, _path2$2, _path3$1, _path4;
|
|
13596
|
+
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); }
|
|
13474
13597
|
function SvgGoogleLogo(props) {
|
|
13475
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13598
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
13476
13599
|
viewBox: "0 0 24 24",
|
|
13477
13600
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13478
|
-
}, props), _path$
|
|
13601
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
13479
13602
|
fill: "#4285F4",
|
|
13480
13603
|
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"
|
|
13481
13604
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -13579,10 +13702,10 @@ const GoogleLoginButton = _ref => {
|
|
|
13579
13702
|
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;
|
|
13580
13703
|
const {
|
|
13581
13704
|
dispatch: loginDispatch
|
|
13582
|
-
} = useContext(store$
|
|
13705
|
+
} = useContext(store$n);
|
|
13583
13706
|
const {
|
|
13584
13707
|
dispatch: registerDispatch
|
|
13585
|
-
} = useContext(store$
|
|
13708
|
+
} = useContext(store$m);
|
|
13586
13709
|
useEffect(() => {
|
|
13587
13710
|
gapi.load("client:auth2", () => {
|
|
13588
13711
|
gapi.auth2.init({
|
|
@@ -13633,13 +13756,13 @@ const GoogleLoginButton = _ref => {
|
|
|
13633
13756
|
}) : null;
|
|
13634
13757
|
};
|
|
13635
13758
|
|
|
13636
|
-
var _path$
|
|
13637
|
-
function _extends$
|
|
13759
|
+
var _path$q;
|
|
13760
|
+
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); }
|
|
13638
13761
|
function SvgAuth0Logo(props) {
|
|
13639
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13762
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
13640
13763
|
viewBox: "0 0 256 285",
|
|
13641
13764
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13642
|
-
}, props), _path$
|
|
13765
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
13643
13766
|
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"
|
|
13644
13767
|
})));
|
|
13645
13768
|
}
|
|
@@ -13677,10 +13800,10 @@ const Auth0LoginButton = _ref => {
|
|
|
13677
13800
|
}, [auth0Enabled, auth0Loaded]);
|
|
13678
13801
|
const {
|
|
13679
13802
|
dispatch: loginDispatch
|
|
13680
|
-
} = useContext(store$
|
|
13803
|
+
} = useContext(store$n);
|
|
13681
13804
|
const {
|
|
13682
13805
|
dispatch: registerDispatch
|
|
13683
|
-
} = useContext(store$
|
|
13806
|
+
} = useContext(store$m);
|
|
13684
13807
|
function handleClick() {
|
|
13685
13808
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
13686
13809
|
if (!auth0Loaded) {
|
|
@@ -13823,13 +13946,13 @@ function LoginView(props) {
|
|
|
13823
13946
|
}))));
|
|
13824
13947
|
}
|
|
13825
13948
|
|
|
13826
|
-
var _path$
|
|
13827
|
-
function _extends$
|
|
13949
|
+
var _path$p, _path2$1, _path3;
|
|
13950
|
+
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); }
|
|
13828
13951
|
function SvgPelcroAuthorship(props) {
|
|
13829
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13952
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
13830
13953
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13831
13954
|
viewBox: "0 -80.652 497.072 179.991"
|
|
13832
|
-
}, props), _path$
|
|
13955
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
13833
13956
|
fill: "none",
|
|
13834
13957
|
stroke: "#4a4a4a",
|
|
13835
13958
|
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"
|
|
@@ -14001,11 +14124,11 @@ function LoginModal(_ref) {
|
|
|
14001
14124
|
LoginModal.viewId = "login";
|
|
14002
14125
|
|
|
14003
14126
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
14004
|
-
store: store$
|
|
14127
|
+
store: store$m
|
|
14005
14128
|
}, props));
|
|
14006
14129
|
|
|
14007
14130
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
14008
|
-
store: store$
|
|
14131
|
+
store: store$m
|
|
14009
14132
|
}, props));
|
|
14010
14133
|
|
|
14011
14134
|
const RegisterButton = _ref => {
|
|
@@ -14025,7 +14148,7 @@ const RegisterButton = _ref => {
|
|
|
14025
14148
|
buttonDisabled
|
|
14026
14149
|
},
|
|
14027
14150
|
dispatch
|
|
14028
|
-
} = useContext(store$
|
|
14151
|
+
} = useContext(store$m);
|
|
14029
14152
|
const {
|
|
14030
14153
|
t
|
|
14031
14154
|
} = useTranslation("register");
|
|
@@ -14123,7 +14246,7 @@ function FirstName(_ref) {
|
|
|
14123
14246
|
}
|
|
14124
14247
|
|
|
14125
14248
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
14126
|
-
store: store$
|
|
14249
|
+
store: store$m
|
|
14127
14250
|
}, props));
|
|
14128
14251
|
|
|
14129
14252
|
function LastName(_ref) {
|
|
@@ -14201,7 +14324,7 @@ function LastName(_ref) {
|
|
|
14201
14324
|
}
|
|
14202
14325
|
|
|
14203
14326
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
14204
|
-
store: store$
|
|
14327
|
+
store: store$m
|
|
14205
14328
|
}, props));
|
|
14206
14329
|
|
|
14207
14330
|
function Phone(_ref) {
|
|
@@ -14482,7 +14605,7 @@ function TextInput(_ref) {
|
|
|
14482
14605
|
|
|
14483
14606
|
const RegisterTextInput = props => {
|
|
14484
14607
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
14485
|
-
store: store$
|
|
14608
|
+
store: store$m
|
|
14486
14609
|
}));
|
|
14487
14610
|
};
|
|
14488
14611
|
|
|
@@ -17224,7 +17347,7 @@ class CybersourceGateway {
|
|
|
17224
17347
|
*/
|
|
17225
17348
|
|
|
17226
17349
|
/** @type {PaymentStateType} */
|
|
17227
|
-
const initialState$
|
|
17350
|
+
const initialState$l = {
|
|
17228
17351
|
disableSubmit: false,
|
|
17229
17352
|
isLoading: false,
|
|
17230
17353
|
disableCouponButton: false,
|
|
@@ -17247,15 +17370,16 @@ const initialState$k = {
|
|
|
17247
17370
|
month: "",
|
|
17248
17371
|
year: "",
|
|
17249
17372
|
cyberSourceSessionId: null,
|
|
17373
|
+
isDefault: false,
|
|
17250
17374
|
alert: {
|
|
17251
17375
|
type: "error",
|
|
17252
17376
|
content: ""
|
|
17253
17377
|
}
|
|
17254
17378
|
};
|
|
17255
|
-
const store$
|
|
17379
|
+
const store$l = /*#__PURE__*/createContext(initialState$l);
|
|
17256
17380
|
const {
|
|
17257
|
-
Provider: Provider$
|
|
17258
|
-
} = store$
|
|
17381
|
+
Provider: Provider$l
|
|
17382
|
+
} = store$l;
|
|
17259
17383
|
const PaymentMethodContainerWithoutStripe = _ref => {
|
|
17260
17384
|
var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice, _window$Pelcro, _window$Pelcro$uiSett;
|
|
17261
17385
|
let {
|
|
@@ -17279,7 +17403,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17279
17403
|
set,
|
|
17280
17404
|
order,
|
|
17281
17405
|
selectedPaymentMethodId,
|
|
17282
|
-
couponCode
|
|
17406
|
+
couponCode,
|
|
17407
|
+
paymentMethodToEdit,
|
|
17408
|
+
paymentMethodToDelete
|
|
17283
17409
|
} = usePelcro();
|
|
17284
17410
|
const {
|
|
17285
17411
|
whenUserReady
|
|
@@ -17378,7 +17504,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17378
17504
|
purchase(new CybersourceGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
17379
17505
|
} else if (type === "invoicePayment") {
|
|
17380
17506
|
payInvoice(new CybersourceGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest);
|
|
17381
|
-
} else if (type === "updatePaymentSource") {
|
|
17507
|
+
} else if (type === "createPaymentSource" || type === "updatePaymentSource") {
|
|
17382
17508
|
createNewCybersourceCard();
|
|
17383
17509
|
}
|
|
17384
17510
|
function createNewCybersourceCard() {
|
|
@@ -17700,7 +17826,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17700
17826
|
purchase(new TapGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
17701
17827
|
} else if (type === "invoicePayment") {
|
|
17702
17828
|
payInvoice(new TapGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest);
|
|
17703
|
-
} else if (type === "updatePaymentSource") {
|
|
17829
|
+
} else if (type === "createPaymentSource" || type === "updatePaymentSource") {
|
|
17704
17830
|
createNewTapCard();
|
|
17705
17831
|
}
|
|
17706
17832
|
function createNewTapCard() {
|
|
@@ -17911,14 +18037,133 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17911
18037
|
purchase(new VantivGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, state, dispatch);
|
|
17912
18038
|
} else if (type === "invoicePayment") {
|
|
17913
18039
|
payInvoice(new VantivGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest);
|
|
17914
|
-
} else if (type === "
|
|
18040
|
+
} else if (type === "createPaymentSource") {
|
|
17915
18041
|
createNewVantivCard();
|
|
18042
|
+
} else if (type === "updatePaymentSource") {
|
|
18043
|
+
updateVantivCard();
|
|
18044
|
+
} else if (type === "deletePaymentSource") {
|
|
18045
|
+
replaceVantivCard();
|
|
17916
18046
|
}
|
|
17917
18047
|
function createNewVantivCard() {
|
|
17918
|
-
window.Pelcro.
|
|
18048
|
+
window.Pelcro.paymentMethods.create({
|
|
18049
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18050
|
+
token: paymentRequest,
|
|
18051
|
+
gateway: "vantiv"
|
|
18052
|
+
}, (err, res) => {
|
|
18053
|
+
dispatch({
|
|
18054
|
+
type: DISABLE_SUBMIT,
|
|
18055
|
+
payload: false
|
|
18056
|
+
});
|
|
18057
|
+
dispatch({
|
|
18058
|
+
type: LOADING,
|
|
18059
|
+
payload: false
|
|
18060
|
+
});
|
|
18061
|
+
if (err) {
|
|
18062
|
+
onFailure(err);
|
|
18063
|
+
return dispatch({
|
|
18064
|
+
type: SHOW_ALERT,
|
|
18065
|
+
payload: {
|
|
18066
|
+
type: "error",
|
|
18067
|
+
content: getErrorMessages(err)
|
|
18068
|
+
}
|
|
18069
|
+
});
|
|
18070
|
+
}
|
|
18071
|
+
dispatch({
|
|
18072
|
+
type: SHOW_ALERT,
|
|
18073
|
+
payload: {
|
|
18074
|
+
type: "success",
|
|
18075
|
+
content: t("messages.sourceCreated")
|
|
18076
|
+
}
|
|
18077
|
+
});
|
|
18078
|
+
onSuccess(res);
|
|
18079
|
+
});
|
|
18080
|
+
}
|
|
18081
|
+
function replaceVantivCard() {
|
|
18082
|
+
const {
|
|
18083
|
+
id: paymentMethodId
|
|
18084
|
+
} = paymentMethodToDelete;
|
|
18085
|
+
window.Pelcro.paymentMethods.create({
|
|
17919
18086
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
17920
18087
|
token: paymentRequest,
|
|
17921
18088
|
gateway: "vantiv"
|
|
18089
|
+
}, (err, res) => {
|
|
18090
|
+
if (err) {
|
|
18091
|
+
dispatch({
|
|
18092
|
+
type: DISABLE_SUBMIT,
|
|
18093
|
+
payload: false
|
|
18094
|
+
});
|
|
18095
|
+
dispatch({
|
|
18096
|
+
type: LOADING,
|
|
18097
|
+
payload: false
|
|
18098
|
+
});
|
|
18099
|
+
onFailure(err);
|
|
18100
|
+
return dispatch({
|
|
18101
|
+
type: SHOW_ALERT,
|
|
18102
|
+
payload: {
|
|
18103
|
+
type: "error",
|
|
18104
|
+
content: getErrorMessages(err)
|
|
18105
|
+
}
|
|
18106
|
+
});
|
|
18107
|
+
}
|
|
18108
|
+
if (res) {
|
|
18109
|
+
setTimeout(() => {
|
|
18110
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
18111
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18112
|
+
payment_method_id: paymentMethodId
|
|
18113
|
+
}, (err, res) => {
|
|
18114
|
+
dispatch({
|
|
18115
|
+
type: DISABLE_SUBMIT,
|
|
18116
|
+
payload: false
|
|
18117
|
+
});
|
|
18118
|
+
dispatch({
|
|
18119
|
+
type: LOADING,
|
|
18120
|
+
payload: false
|
|
18121
|
+
});
|
|
18122
|
+
if (err) {
|
|
18123
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18124
|
+
return dispatch({
|
|
18125
|
+
type: SHOW_ALERT,
|
|
18126
|
+
payload: {
|
|
18127
|
+
type: "error",
|
|
18128
|
+
content: getErrorMessages(err)
|
|
18129
|
+
}
|
|
18130
|
+
});
|
|
18131
|
+
}
|
|
18132
|
+
onSuccess(res);
|
|
18133
|
+
});
|
|
18134
|
+
}, 2000);
|
|
18135
|
+
}
|
|
18136
|
+
});
|
|
18137
|
+
}
|
|
18138
|
+
function updateVantivCard() {
|
|
18139
|
+
const {
|
|
18140
|
+
id: paymentMethodId
|
|
18141
|
+
} = paymentMethodToEdit;
|
|
18142
|
+
const {
|
|
18143
|
+
paypageRegistrationId,
|
|
18144
|
+
bin,
|
|
18145
|
+
type,
|
|
18146
|
+
firstSix,
|
|
18147
|
+
lastFour,
|
|
18148
|
+
expMonth,
|
|
18149
|
+
expYear
|
|
18150
|
+
} = paymentRequest;
|
|
18151
|
+
const {
|
|
18152
|
+
isDefault
|
|
18153
|
+
} = state;
|
|
18154
|
+
const fourDigitExpYear = getFourDigitYear(Number(expYear)).toString();
|
|
18155
|
+
window.Pelcro.paymentMethods.update({
|
|
18156
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18157
|
+
payment_method_id: paymentMethodId,
|
|
18158
|
+
gateway: "vantiv",
|
|
18159
|
+
paypageRegistrationId: paypageRegistrationId,
|
|
18160
|
+
bin: bin,
|
|
18161
|
+
type: type,
|
|
18162
|
+
firstSix: firstSix,
|
|
18163
|
+
lastFour: lastFour,
|
|
18164
|
+
exp_month: expMonth,
|
|
18165
|
+
exp_year: fourDigitExpYear,
|
|
18166
|
+
is_default: isDefault
|
|
17922
18167
|
}, (err, res) => {
|
|
17923
18168
|
dispatch({
|
|
17924
18169
|
type: DISABLE_SUBMIT,
|
|
@@ -18725,7 +18970,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18725
18970
|
confirmStripeCardPayment(res, err);
|
|
18726
18971
|
});
|
|
18727
18972
|
};
|
|
18728
|
-
const
|
|
18973
|
+
const createPaymentSource = (state, dispatch) => {
|
|
18729
18974
|
return stripe.createSource({
|
|
18730
18975
|
type: "card"
|
|
18731
18976
|
}).then(_ref8 => {
|
|
@@ -18746,7 +18991,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18746
18991
|
}
|
|
18747
18992
|
});
|
|
18748
18993
|
}
|
|
18749
|
-
window.Pelcro.
|
|
18994
|
+
window.Pelcro.paymentMethods.create({
|
|
18750
18995
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
18751
18996
|
token: source.id
|
|
18752
18997
|
}, (err, res) => {
|
|
@@ -18772,30 +19017,144 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18772
19017
|
type: SHOW_ALERT,
|
|
18773
19018
|
payload: {
|
|
18774
19019
|
type: "success",
|
|
18775
|
-
content: t("messages.
|
|
19020
|
+
content: t("messages.sourceCreated")
|
|
18776
19021
|
}
|
|
18777
19022
|
});
|
|
18778
19023
|
onSuccess(res);
|
|
18779
19024
|
});
|
|
18780
19025
|
});
|
|
18781
19026
|
};
|
|
18782
|
-
const
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
|
|
18795
|
-
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
|
|
19027
|
+
const updatePaymentSource = (state, dispatch) => {
|
|
19028
|
+
const {
|
|
19029
|
+
isDefault,
|
|
19030
|
+
month,
|
|
19031
|
+
year
|
|
19032
|
+
} = state;
|
|
19033
|
+
const {
|
|
19034
|
+
id: paymentMethodId
|
|
19035
|
+
} = paymentMethodToEdit;
|
|
19036
|
+
window.Pelcro.paymentMethods.update({
|
|
19037
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19038
|
+
payment_method_id: paymentMethodId,
|
|
19039
|
+
gateway: "stripe",
|
|
19040
|
+
exp_month: month,
|
|
19041
|
+
exp_year: year,
|
|
19042
|
+
is_default: isDefault
|
|
19043
|
+
}, (err, res) => {
|
|
19044
|
+
dispatch({
|
|
19045
|
+
type: DISABLE_SUBMIT,
|
|
19046
|
+
payload: false
|
|
19047
|
+
});
|
|
19048
|
+
dispatch({
|
|
19049
|
+
type: LOADING,
|
|
19050
|
+
payload: false
|
|
19051
|
+
});
|
|
19052
|
+
if (err) {
|
|
19053
|
+
onFailure(err);
|
|
19054
|
+
return dispatch({
|
|
19055
|
+
type: SHOW_ALERT,
|
|
19056
|
+
payload: {
|
|
19057
|
+
type: "error",
|
|
19058
|
+
content: getErrorMessages(err)
|
|
19059
|
+
}
|
|
19060
|
+
});
|
|
19061
|
+
}
|
|
19062
|
+
dispatch({
|
|
19063
|
+
type: SHOW_ALERT,
|
|
19064
|
+
payload: {
|
|
19065
|
+
type: "success",
|
|
19066
|
+
content: t("messages.sourceUpdated")
|
|
19067
|
+
}
|
|
19068
|
+
});
|
|
19069
|
+
onSuccess(res);
|
|
19070
|
+
});
|
|
19071
|
+
};
|
|
19072
|
+
const replacePaymentSource = (state, dispatch) => {
|
|
19073
|
+
const {
|
|
19074
|
+
id: paymentMethodId
|
|
19075
|
+
} = paymentMethodToDelete;
|
|
19076
|
+
return stripe.createSource({
|
|
19077
|
+
type: "card"
|
|
19078
|
+
}).then(_ref9 => {
|
|
19079
|
+
var _source$card3;
|
|
19080
|
+
let {
|
|
19081
|
+
source,
|
|
19082
|
+
error
|
|
19083
|
+
} = _ref9;
|
|
19084
|
+
if (error) {
|
|
19085
|
+
return handlePaymentError(error);
|
|
19086
|
+
}
|
|
19087
|
+
|
|
19088
|
+
// We don't support source creation for 3D secure yet
|
|
19089
|
+
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") {
|
|
19090
|
+
return handlePaymentError({
|
|
19091
|
+
error: {
|
|
19092
|
+
message: t("messages.cardAuthNotSupported")
|
|
19093
|
+
}
|
|
19094
|
+
});
|
|
19095
|
+
}
|
|
19096
|
+
window.Pelcro.paymentMethods.create({
|
|
19097
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19098
|
+
token: source.id
|
|
19099
|
+
}, (err, res) => {
|
|
19100
|
+
if (err) {
|
|
19101
|
+
onFailure(err);
|
|
19102
|
+
return dispatch({
|
|
19103
|
+
type: SHOW_ALERT,
|
|
19104
|
+
payload: {
|
|
19105
|
+
type: "error",
|
|
19106
|
+
content: getErrorMessages(err)
|
|
19107
|
+
}
|
|
19108
|
+
});
|
|
19109
|
+
}
|
|
19110
|
+
if (res) {
|
|
19111
|
+
setTimeout(() => {
|
|
19112
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
19113
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
19114
|
+
payment_method_id: paymentMethodId
|
|
19115
|
+
}, (err, res) => {
|
|
19116
|
+
dispatch({
|
|
19117
|
+
type: DISABLE_SUBMIT,
|
|
19118
|
+
payload: false
|
|
19119
|
+
});
|
|
19120
|
+
dispatch({
|
|
19121
|
+
type: LOADING,
|
|
19122
|
+
payload: false
|
|
19123
|
+
});
|
|
19124
|
+
if (err) {
|
|
19125
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
19126
|
+
return dispatch({
|
|
19127
|
+
type: SHOW_ALERT,
|
|
19128
|
+
payload: {
|
|
19129
|
+
type: "error",
|
|
19130
|
+
content: getErrorMessages(err)
|
|
19131
|
+
}
|
|
19132
|
+
});
|
|
19133
|
+
}
|
|
19134
|
+
onSuccess(res);
|
|
19135
|
+
});
|
|
19136
|
+
}, 2000);
|
|
19137
|
+
}
|
|
19138
|
+
});
|
|
19139
|
+
});
|
|
19140
|
+
};
|
|
19141
|
+
const updatePaymentRequest = state => {
|
|
19142
|
+
var _state$paymentRequest;
|
|
19143
|
+
state === null || state === void 0 ? void 0 : (_state$paymentRequest = state.paymentRequest) === null || _state$paymentRequest === void 0 ? void 0 : _state$paymentRequest.update({
|
|
19144
|
+
total: {
|
|
19145
|
+
label: plan.nickname || plan.description,
|
|
19146
|
+
amount: state.updatedPrice
|
|
19147
|
+
}
|
|
19148
|
+
});
|
|
19149
|
+
};
|
|
19150
|
+
const submitPayment = (state, dispatch) => {
|
|
19151
|
+
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
19152
|
+
const isQuickPurchase = !Array.isArray(order);
|
|
19153
|
+
const mappedOrderItems = isQuickPurchase ? [{
|
|
19154
|
+
sku_id: order.id,
|
|
19155
|
+
quantity: order.quantity
|
|
19156
|
+
}] : order.map(item => ({
|
|
19157
|
+
sku_id: item.id,
|
|
18799
19158
|
quantity: item.quantity
|
|
18800
19159
|
}));
|
|
18801
19160
|
window.Pelcro.ecommerce.order.create({
|
|
@@ -18814,12 +19173,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18814
19173
|
}
|
|
18815
19174
|
stripe.createSource({
|
|
18816
19175
|
type: "card"
|
|
18817
|
-
}).then(
|
|
18818
|
-
var
|
|
19176
|
+
}).then(_ref10 => {
|
|
19177
|
+
var _ref11, _ref12, _state$updatedPrice2;
|
|
18819
19178
|
let {
|
|
18820
19179
|
source,
|
|
18821
19180
|
error
|
|
18822
|
-
} =
|
|
19181
|
+
} = _ref10;
|
|
18823
19182
|
if (error) {
|
|
18824
19183
|
return handlePaymentError(error);
|
|
18825
19184
|
}
|
|
@@ -18838,7 +19197,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18838
19197
|
return total + item.price * item.quantity;
|
|
18839
19198
|
}, 0);
|
|
18840
19199
|
};
|
|
18841
|
-
(
|
|
19200
|
+
(_ref11 = (_ref12 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : 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();
|
|
18842
19201
|
return handlePayment(source);
|
|
18843
19202
|
}).catch(error => {
|
|
18844
19203
|
return handlePaymentError(error);
|
|
@@ -19064,9 +19423,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19064
19423
|
isExistingSource: true
|
|
19065
19424
|
});
|
|
19066
19425
|
}
|
|
19426
|
+
if (type === "createPaymentSource") {
|
|
19427
|
+
return createPaymentSource(state, dispatch);
|
|
19428
|
+
}
|
|
19067
19429
|
if (type === "updatePaymentSource") {
|
|
19068
19430
|
return updatePaymentSource(state, dispatch);
|
|
19069
19431
|
}
|
|
19432
|
+
if (type === "deletePaymentSource") {
|
|
19433
|
+
return replacePaymentSource(state, dispatch);
|
|
19434
|
+
}
|
|
19070
19435
|
submitPayment(state);
|
|
19071
19436
|
});
|
|
19072
19437
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
@@ -19184,16 +19549,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19184
19549
|
...state,
|
|
19185
19550
|
cyberSourceSessionId: action.payload
|
|
19186
19551
|
});
|
|
19552
|
+
case HANDLE_CHECKBOX_CHANGE:
|
|
19553
|
+
return lib_7({
|
|
19554
|
+
...state,
|
|
19555
|
+
...action.payload
|
|
19556
|
+
});
|
|
19557
|
+
case SET_IS_DEFAULT_PAYMENT_METHOD:
|
|
19558
|
+
return lib_7({
|
|
19559
|
+
...state,
|
|
19560
|
+
...action.payload
|
|
19561
|
+
});
|
|
19187
19562
|
default:
|
|
19188
19563
|
return state;
|
|
19189
19564
|
}
|
|
19190
|
-
}, initialState$
|
|
19565
|
+
}, initialState$l);
|
|
19191
19566
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19192
19567
|
style: {
|
|
19193
19568
|
...style
|
|
19194
19569
|
},
|
|
19195
19570
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
19196
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19571
|
+
}, /*#__PURE__*/React__default.createElement(Provider$l, {
|
|
19197
19572
|
value: {
|
|
19198
19573
|
state,
|
|
19199
19574
|
dispatch
|
|
@@ -19201,12 +19576,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19201
19576
|
}, children.length ? children.map((child, i) => {
|
|
19202
19577
|
if (child) {
|
|
19203
19578
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
19204
|
-
store: store$
|
|
19579
|
+
store: store$l,
|
|
19205
19580
|
key: i
|
|
19206
19581
|
});
|
|
19207
19582
|
}
|
|
19208
19583
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19209
|
-
store: store$
|
|
19584
|
+
store: store$l
|
|
19210
19585
|
})));
|
|
19211
19586
|
};
|
|
19212
19587
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
@@ -19231,11 +19606,11 @@ const PaymentMethodContainer = props => {
|
|
|
19231
19606
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
19232
19607
|
locale: getPageOrDefaultLanguage()
|
|
19233
19608
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
19234
|
-
store: store$
|
|
19609
|
+
store: store$l
|
|
19235
19610
|
}, props))));
|
|
19236
19611
|
} else if (cardProcessor !== "stripe") {
|
|
19237
19612
|
return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
19238
|
-
store: store$
|
|
19613
|
+
store: store$l
|
|
19239
19614
|
}, props));
|
|
19240
19615
|
}
|
|
19241
19616
|
return null;
|
|
@@ -19395,7 +19770,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
19395
19770
|
currentPlan,
|
|
19396
19771
|
updatedPrice
|
|
19397
19772
|
}
|
|
19398
|
-
} = useContext(store$
|
|
19773
|
+
} = useContext(store$l);
|
|
19399
19774
|
const updatePaymentRequest = () => {
|
|
19400
19775
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
19401
19776
|
paymentRequest === null || paymentRequest === void 0 ? void 0 : paymentRequest.update({
|
|
@@ -19420,9 +19795,13 @@ const PelcroPaymentRequestButton = props => {
|
|
|
19420
19795
|
}
|
|
19421
19796
|
return null;
|
|
19422
19797
|
};
|
|
19423
|
-
const CheckoutForm =
|
|
19798
|
+
const CheckoutForm = _ref => {
|
|
19799
|
+
let {
|
|
19800
|
+
type
|
|
19801
|
+
} = _ref;
|
|
19424
19802
|
const {
|
|
19425
|
-
selectedPaymentMethodId
|
|
19803
|
+
selectedPaymentMethodId,
|
|
19804
|
+
paymentMethodToEdit
|
|
19426
19805
|
} = usePelcro();
|
|
19427
19806
|
const cardProcessor = getSiteCardProcessor();
|
|
19428
19807
|
if (selectedPaymentMethodId) {
|
|
@@ -19447,16 +19826,38 @@ const CheckoutForm = () => {
|
|
|
19447
19826
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
19448
19827
|
className: "plc-w-6/12 plc-pr-4"
|
|
19449
19828
|
}, /*#__PURE__*/React__default.createElement(MonthSelect, {
|
|
19450
|
-
store: store$
|
|
19829
|
+
store: store$l,
|
|
19451
19830
|
placeholder: "Exp Month *"
|
|
19452
19831
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
19453
19832
|
className: "plc-w-6/12"
|
|
19454
19833
|
}, /*#__PURE__*/React__default.createElement(YearSelect, {
|
|
19455
|
-
store: store$
|
|
19834
|
+
store: store$l,
|
|
19456
19835
|
placeholder: "Exp Year *"
|
|
19457
19836
|
}))));
|
|
19458
19837
|
}
|
|
19459
19838
|
if (cardProcessor === "stripe") {
|
|
19839
|
+
if (type === "updatePaymentSource") {
|
|
19840
|
+
var _paymentMethodToEdit$;
|
|
19841
|
+
return /*#__PURE__*/React__default.createElement("div", null, paymentMethodToEdit ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Input, {
|
|
19842
|
+
className: "plc-tracking-widest plc-flex-grow plc-text-center",
|
|
19843
|
+
value: `•••• •••• •••• ${paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : (_paymentMethodToEdit$ = paymentMethodToEdit.properties) === null || _paymentMethodToEdit$ === void 0 ? void 0 : _paymentMethodToEdit$.last4}`,
|
|
19844
|
+
disabled: true
|
|
19845
|
+
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Input, {
|
|
19846
|
+
className: "plc-bg-gray-300 plc-animate-pulse"
|
|
19847
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
19848
|
+
className: "plc-flex plc-items-end plc-justify-between plc-my-2"
|
|
19849
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
19850
|
+
className: "plc-w-6/12 plc-pr-4"
|
|
19851
|
+
}, /*#__PURE__*/React__default.createElement(MonthSelect, {
|
|
19852
|
+
store: store$l,
|
|
19853
|
+
placeholder: "Exp Month *"
|
|
19854
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
19855
|
+
className: "plc-w-6/12"
|
|
19856
|
+
}, /*#__PURE__*/React__default.createElement(YearSelect, {
|
|
19857
|
+
store: store$l,
|
|
19858
|
+
placeholder: "Exp Year *"
|
|
19859
|
+
}))));
|
|
19860
|
+
}
|
|
19460
19861
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
|
|
19461
19862
|
autoFocus: true
|
|
19462
19863
|
}), /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -19486,7 +19887,7 @@ const DiscountedPrice = props => {
|
|
|
19486
19887
|
taxAmount,
|
|
19487
19888
|
percentOff
|
|
19488
19889
|
}
|
|
19489
|
-
} = useContext(store$
|
|
19890
|
+
} = useContext(store$l);
|
|
19490
19891
|
const {
|
|
19491
19892
|
order,
|
|
19492
19893
|
plan
|
|
@@ -19543,7 +19944,7 @@ const SubmitPaymentMethod = _ref => {
|
|
|
19543
19944
|
month,
|
|
19544
19945
|
year
|
|
19545
19946
|
}
|
|
19546
|
-
} = useContext(store$
|
|
19947
|
+
} = useContext(store$l);
|
|
19547
19948
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
19548
19949
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
19549
19950
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -19577,15 +19978,15 @@ const SubmitPaymentMethod = _ref => {
|
|
|
19577
19978
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
19578
19979
|
};
|
|
19579
19980
|
|
|
19580
|
-
var _path$
|
|
19581
|
-
function _extends$
|
|
19981
|
+
var _path$o;
|
|
19982
|
+
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); }
|
|
19582
19983
|
function SvgArrowLeft(props) {
|
|
19583
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
19984
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
19584
19985
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19585
19986
|
fill: "none",
|
|
19586
19987
|
viewBox: "0 0 24 24",
|
|
19587
19988
|
stroke: "currentColor"
|
|
19588
|
-
}, props), _path$
|
|
19989
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
19589
19990
|
strokeLinecap: "round",
|
|
19590
19991
|
strokeLinejoin: "round",
|
|
19591
19992
|
strokeWidth: 2,
|
|
@@ -19605,7 +20006,7 @@ const ApplyCouponButton = _ref => {
|
|
|
19605
20006
|
disableCouponButton
|
|
19606
20007
|
},
|
|
19607
20008
|
dispatch
|
|
19608
|
-
} = useContext(store$
|
|
20009
|
+
} = useContext(store$l);
|
|
19609
20010
|
const {
|
|
19610
20011
|
t
|
|
19611
20012
|
} = useTranslation("checkoutForm");
|
|
@@ -19637,7 +20038,7 @@ const CouponCodeField = props => {
|
|
|
19637
20038
|
couponCode,
|
|
19638
20039
|
couponError
|
|
19639
20040
|
}
|
|
19640
|
-
} = useContext(store$
|
|
20041
|
+
} = useContext(store$l);
|
|
19641
20042
|
const onCouponCodeChange = e => {
|
|
19642
20043
|
dispatch({
|
|
19643
20044
|
type: UPDATE_COUPON_CODE,
|
|
@@ -19663,15 +20064,15 @@ const CouponCodeField = props => {
|
|
|
19663
20064
|
}, props));
|
|
19664
20065
|
};
|
|
19665
20066
|
|
|
19666
|
-
var _path$
|
|
19667
|
-
function _extends$
|
|
20067
|
+
var _path$n;
|
|
20068
|
+
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); }
|
|
19668
20069
|
function SvgTicket(props) {
|
|
19669
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20070
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
19670
20071
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19671
20072
|
fill: "none",
|
|
19672
20073
|
viewBox: "0 0 24 24",
|
|
19673
20074
|
stroke: "currentColor"
|
|
19674
|
-
}, props), _path$
|
|
20075
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
19675
20076
|
strokeLinecap: "round",
|
|
19676
20077
|
strokeLinejoin: "round",
|
|
19677
20078
|
strokeWidth: 2,
|
|
@@ -19689,7 +20090,7 @@ const CouponCode = _ref => {
|
|
|
19689
20090
|
state: {
|
|
19690
20091
|
enableCouponField
|
|
19691
20092
|
}
|
|
19692
|
-
} = useContext(store$
|
|
20093
|
+
} = useContext(store$l);
|
|
19693
20094
|
const {
|
|
19694
20095
|
t
|
|
19695
20096
|
} = useTranslation("checkoutForm");
|
|
@@ -19913,7 +20314,7 @@ const PaypalSubscribeButton = props => {
|
|
|
19913
20314
|
const {
|
|
19914
20315
|
dispatch,
|
|
19915
20316
|
state
|
|
19916
|
-
} = useContext(store$
|
|
20317
|
+
} = useContext(store$l);
|
|
19917
20318
|
const {
|
|
19918
20319
|
product,
|
|
19919
20320
|
plan,
|
|
@@ -20029,14 +20430,14 @@ const BankAuthenticationSuccess = () => {
|
|
|
20029
20430
|
}));
|
|
20030
20431
|
};
|
|
20031
20432
|
|
|
20032
|
-
var _path$
|
|
20033
|
-
function _extends$
|
|
20433
|
+
var _path$m;
|
|
20434
|
+
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); }
|
|
20034
20435
|
function SvgLock(props) {
|
|
20035
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20436
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
20036
20437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20037
20438
|
viewBox: "0 0 20 20",
|
|
20038
20439
|
fill: "currentColor"
|
|
20039
|
-
}, props), _path$
|
|
20440
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
20040
20441
|
fillRule: "evenodd",
|
|
20041
20442
|
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",
|
|
20042
20443
|
clipRule: "evenodd"
|
|
@@ -20052,7 +20453,7 @@ const SelectedPaymentMethod = () => {
|
|
|
20052
20453
|
state: {
|
|
20053
20454
|
isLoading
|
|
20054
20455
|
}
|
|
20055
|
-
} = useContext(store$
|
|
20456
|
+
} = useContext(store$l);
|
|
20056
20457
|
const {
|
|
20057
20458
|
switchView,
|
|
20058
20459
|
selectedPaymentMethodId
|
|
@@ -20093,7 +20494,7 @@ const TaxAmount = () => {
|
|
|
20093
20494
|
state: {
|
|
20094
20495
|
taxAmount
|
|
20095
20496
|
}
|
|
20096
|
-
} = useContext(store$
|
|
20497
|
+
} = useContext(store$l);
|
|
20097
20498
|
const {
|
|
20098
20499
|
plan
|
|
20099
20500
|
} = usePelcro();
|
|
@@ -20111,15 +20512,15 @@ const TaxAmount = () => {
|
|
|
20111
20512
|
};
|
|
20112
20513
|
|
|
20113
20514
|
const IncludeFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
20114
|
-
store: store$
|
|
20515
|
+
store: store$l
|
|
20115
20516
|
}, props));
|
|
20116
20517
|
|
|
20117
20518
|
const IncludeLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
20118
|
-
store: store$
|
|
20519
|
+
store: store$l
|
|
20119
20520
|
}, props));
|
|
20120
20521
|
|
|
20121
20522
|
const IncludePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
20122
|
-
store: store$
|
|
20523
|
+
store: store$l
|
|
20123
20524
|
}, props));
|
|
20124
20525
|
|
|
20125
20526
|
const SubscriptionCreateFreePlanButton = _ref => {
|
|
@@ -20133,7 +20534,7 @@ const SubscriptionCreateFreePlanButton = _ref => {
|
|
|
20133
20534
|
disableSubmit
|
|
20134
20535
|
},
|
|
20135
20536
|
dispatch
|
|
20136
|
-
} = useContext(store$
|
|
20537
|
+
} = useContext(store$l);
|
|
20137
20538
|
const {
|
|
20138
20539
|
t
|
|
20139
20540
|
} = useTranslation("common");
|
|
@@ -20169,7 +20570,7 @@ const OrderCreateFreeButton = _ref => {
|
|
|
20169
20570
|
disableSubmit
|
|
20170
20571
|
},
|
|
20171
20572
|
dispatch
|
|
20172
|
-
} = useContext(store$
|
|
20573
|
+
} = useContext(store$l);
|
|
20173
20574
|
const {
|
|
20174
20575
|
t
|
|
20175
20576
|
} = useTranslation("checkoutForm");
|
|
@@ -20208,7 +20609,7 @@ const ApplePayButton = _ref => {
|
|
|
20208
20609
|
const {
|
|
20209
20610
|
dispatch,
|
|
20210
20611
|
state
|
|
20211
|
-
} = useContext(store$
|
|
20612
|
+
} = useContext(store$l);
|
|
20212
20613
|
const {
|
|
20213
20614
|
plan,
|
|
20214
20615
|
invoice,
|
|
@@ -20521,6 +20922,43 @@ const ApplePayButton = _ref => {
|
|
|
20521
20922
|
});
|
|
20522
20923
|
};
|
|
20523
20924
|
|
|
20925
|
+
function PaymentMethodUpdateSetDefault(props) {
|
|
20926
|
+
const {
|
|
20927
|
+
dispatch,
|
|
20928
|
+
state: {
|
|
20929
|
+
isDefault
|
|
20930
|
+
}
|
|
20931
|
+
} = useContext(store$l);
|
|
20932
|
+
const {
|
|
20933
|
+
paymentMethodToEdit
|
|
20934
|
+
} = usePelcro();
|
|
20935
|
+
useEffect(() => {
|
|
20936
|
+
if (paymentMethodToEdit !== null && paymentMethodToEdit !== void 0 && paymentMethodToEdit.is_default) {
|
|
20937
|
+
dispatch({
|
|
20938
|
+
type: SET_IS_DEFAULT_PAYMENT_METHOD,
|
|
20939
|
+
payload: {
|
|
20940
|
+
isDefault: true
|
|
20941
|
+
}
|
|
20942
|
+
});
|
|
20943
|
+
}
|
|
20944
|
+
}, [paymentMethodToEdit]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
20945
|
+
|
|
20946
|
+
const handleCheckboxChange = e => {
|
|
20947
|
+
dispatch({
|
|
20948
|
+
type: HANDLE_CHECKBOX_CHANGE,
|
|
20949
|
+
payload: {
|
|
20950
|
+
isDefault: e.target.checked
|
|
20951
|
+
}
|
|
20952
|
+
});
|
|
20953
|
+
};
|
|
20954
|
+
return /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
20955
|
+
onChange: e => handleCheckboxChange(e),
|
|
20956
|
+
id: props.id,
|
|
20957
|
+
checked: isDefault,
|
|
20958
|
+
disabled: paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : paymentMethodToEdit.is_default
|
|
20959
|
+
}, props.label);
|
|
20960
|
+
}
|
|
20961
|
+
|
|
20524
20962
|
/**
|
|
20525
20963
|
*
|
|
20526
20964
|
*/
|
|
@@ -20598,9 +21036,14 @@ function PaymentMethodView(_ref) {
|
|
|
20598
21036
|
errorId: "pelcro-input-phone-error",
|
|
20599
21037
|
label: t("labels.phone"),
|
|
20600
21038
|
required: true
|
|
20601
|
-
})), /*#__PURE__*/React__default.createElement(CheckoutForm,
|
|
21039
|
+
})), /*#__PURE__*/React__default.createElement(CheckoutForm, {
|
|
21040
|
+
type: type
|
|
21041
|
+
}), showCoupon && /*#__PURE__*/React__default.createElement("div", {
|
|
20602
21042
|
className: "plc-mb-2"
|
|
20603
|
-
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement(
|
|
21043
|
+
}, /*#__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, {
|
|
21044
|
+
id: "pelcro-input-is-default",
|
|
21045
|
+
label: t("labels.isDefault")
|
|
21046
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
20604
21047
|
className: "plc-grid plc-mt-4 plc-gap-y-2"
|
|
20605
21048
|
}, /*#__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)))));
|
|
20606
21049
|
}
|
|
@@ -20720,14 +21163,14 @@ function SubscriptionRenewModal(_ref) {
|
|
|
20720
21163
|
}
|
|
20721
21164
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
20722
21165
|
|
|
20723
|
-
const initialState$
|
|
21166
|
+
const initialState$k = {
|
|
20724
21167
|
cancelationReason: "",
|
|
20725
21168
|
cancelationOption: ""
|
|
20726
21169
|
};
|
|
20727
|
-
const store$
|
|
21170
|
+
const store$k = /*#__PURE__*/createContext(initialState$k);
|
|
20728
21171
|
const {
|
|
20729
|
-
Provider: Provider$
|
|
20730
|
-
} = store$
|
|
21172
|
+
Provider: Provider$k
|
|
21173
|
+
} = store$k;
|
|
20731
21174
|
const SubscriptionCancelContainer = _ref => {
|
|
20732
21175
|
let {
|
|
20733
21176
|
style,
|
|
@@ -20752,35 +21195,35 @@ const SubscriptionCancelContainer = _ref => {
|
|
|
20752
21195
|
default:
|
|
20753
21196
|
return state;
|
|
20754
21197
|
}
|
|
20755
|
-
}, initialState$
|
|
21198
|
+
}, initialState$k);
|
|
20756
21199
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20757
21200
|
style: {
|
|
20758
21201
|
...style
|
|
20759
21202
|
},
|
|
20760
21203
|
className: `pelcro-container pelcro-subscription-cancel-container ${className}`
|
|
20761
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
21204
|
+
}, /*#__PURE__*/React__default.createElement(Provider$k, {
|
|
20762
21205
|
value: {
|
|
20763
21206
|
state,
|
|
20764
21207
|
dispatch
|
|
20765
21208
|
}
|
|
20766
21209
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20767
|
-
store: store$
|
|
21210
|
+
store: store$k,
|
|
20768
21211
|
key: i
|
|
20769
21212
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20770
|
-
store: store$
|
|
21213
|
+
store: store$k
|
|
20771
21214
|
})));
|
|
20772
21215
|
};
|
|
20773
21216
|
|
|
20774
|
-
var _path$
|
|
20775
|
-
function _extends$
|
|
21217
|
+
var _path$l;
|
|
21218
|
+
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); }
|
|
20776
21219
|
function SvgInfoCircle(props) {
|
|
20777
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21220
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
20778
21221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20779
21222
|
className: "plc-w-5 plc-h-5",
|
|
20780
21223
|
fill: "none",
|
|
20781
21224
|
viewBox: "0 0 24 24",
|
|
20782
21225
|
stroke: "currentColor"
|
|
20783
|
-
}, props), _path$
|
|
21226
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
20784
21227
|
strokeLinecap: "round",
|
|
20785
21228
|
strokeLinejoin: "round",
|
|
20786
21229
|
strokeWidth: 2,
|
|
@@ -20849,7 +21292,7 @@ const SubscriptionCancelReason = props => {
|
|
|
20849
21292
|
} = useTranslation("subscriptionCancel");
|
|
20850
21293
|
const {
|
|
20851
21294
|
dispatch
|
|
20852
|
-
} = useContext(store$
|
|
21295
|
+
} = useContext(store$k);
|
|
20853
21296
|
const handleOnTextAreaBlur = e => {
|
|
20854
21297
|
dispatch({
|
|
20855
21298
|
type: SET_CANCEL_SUBSCRIPTION_REASON,
|
|
@@ -20863,9 +21306,9 @@ const SubscriptionCancelReason = props => {
|
|
|
20863
21306
|
};
|
|
20864
21307
|
|
|
20865
21308
|
var _switch;
|
|
20866
|
-
function _extends$
|
|
21309
|
+
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); }
|
|
20867
21310
|
function SvgSubscription(props) {
|
|
20868
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21311
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
20869
21312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20870
21313
|
viewBox: "0 0 100 125",
|
|
20871
21314
|
fill: "currentColor"
|
|
@@ -20894,7 +21337,7 @@ const SubscriptionCancelButton = _ref => {
|
|
|
20894
21337
|
cancelationReason,
|
|
20895
21338
|
cancelationOption
|
|
20896
21339
|
}
|
|
20897
|
-
} = useContext(store$
|
|
21340
|
+
} = useContext(store$k);
|
|
20898
21341
|
const {
|
|
20899
21342
|
t
|
|
20900
21343
|
} = useTranslation("subscriptionCancel");
|
|
@@ -20973,7 +21416,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
20973
21416
|
cancelationOption
|
|
20974
21417
|
},
|
|
20975
21418
|
dispatch
|
|
20976
|
-
} = useContext(store$
|
|
21419
|
+
} = useContext(store$k);
|
|
20977
21420
|
const {
|
|
20978
21421
|
t
|
|
20979
21422
|
} = useTranslation("subscriptionCancel");
|
|
@@ -21089,14 +21532,14 @@ const SubscriptionCancelModal = _ref => {
|
|
|
21089
21532
|
};
|
|
21090
21533
|
SubscriptionCancelModal.viewId = "subscription-cancel";
|
|
21091
21534
|
|
|
21092
|
-
const initialState$
|
|
21535
|
+
const initialState$j = {
|
|
21093
21536
|
suspendDate: null,
|
|
21094
21537
|
buttonDisabled: false
|
|
21095
21538
|
};
|
|
21096
|
-
const store$
|
|
21539
|
+
const store$j = /*#__PURE__*/createContext(initialState$j);
|
|
21097
21540
|
const {
|
|
21098
|
-
Provider: Provider$
|
|
21099
|
-
} = store$
|
|
21541
|
+
Provider: Provider$j
|
|
21542
|
+
} = store$j;
|
|
21100
21543
|
const SubscriptionSuspendContainer = _ref => {
|
|
21101
21544
|
let {
|
|
21102
21545
|
style,
|
|
@@ -21122,22 +21565,22 @@ const SubscriptionSuspendContainer = _ref => {
|
|
|
21122
21565
|
default:
|
|
21123
21566
|
return state;
|
|
21124
21567
|
}
|
|
21125
|
-
}, initialState$
|
|
21568
|
+
}, initialState$j);
|
|
21126
21569
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
21127
21570
|
style: {
|
|
21128
21571
|
...style
|
|
21129
21572
|
},
|
|
21130
21573
|
className: `pelcro-container pelcro-subscription-suspend-container ${className}`
|
|
21131
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
21574
|
+
}, /*#__PURE__*/React__default.createElement(Provider$j, {
|
|
21132
21575
|
value: {
|
|
21133
21576
|
state,
|
|
21134
21577
|
dispatch
|
|
21135
21578
|
}
|
|
21136
21579
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
21137
|
-
store: store$
|
|
21580
|
+
store: store$j,
|
|
21138
21581
|
key: i
|
|
21139
21582
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
21140
|
-
store: store$
|
|
21583
|
+
store: store$j
|
|
21141
21584
|
})));
|
|
21142
21585
|
};
|
|
21143
21586
|
|
|
@@ -21186,7 +21629,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
21186
21629
|
const {
|
|
21187
21630
|
dispatch,
|
|
21188
21631
|
state
|
|
21189
|
-
} = useContext(store$
|
|
21632
|
+
} = useContext(store$j);
|
|
21190
21633
|
const handleInputChange = value => {
|
|
21191
21634
|
if (value) {
|
|
21192
21635
|
dispatch({
|
|
@@ -21228,7 +21671,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21228
21671
|
buttonDisabled
|
|
21229
21672
|
},
|
|
21230
21673
|
dispatch
|
|
21231
|
-
} = useContext(store$
|
|
21674
|
+
} = useContext(store$j);
|
|
21232
21675
|
const {
|
|
21233
21676
|
t
|
|
21234
21677
|
} = useTranslation("subscriptionSuspend");
|
|
@@ -21329,10 +21772,10 @@ function SubscriptionSuspendModal(_ref) {
|
|
|
21329
21772
|
}
|
|
21330
21773
|
SubscriptionSuspendModal.viewId = "subscription-suspend";
|
|
21331
21774
|
|
|
21332
|
-
var _path$
|
|
21333
|
-
function _extends$
|
|
21775
|
+
var _path$k;
|
|
21776
|
+
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); }
|
|
21334
21777
|
function SvgGift(props) {
|
|
21335
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21778
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
21336
21779
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21337
21780
|
fill: "none",
|
|
21338
21781
|
stroke: "currentColor",
|
|
@@ -21341,7 +21784,7 @@ function SvgGift(props) {
|
|
|
21341
21784
|
strokeWidth: 2,
|
|
21342
21785
|
viewBox: "0 0 24 24",
|
|
21343
21786
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21344
|
-
}, props), _path$
|
|
21787
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
21345
21788
|
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"
|
|
21346
21789
|
})));
|
|
21347
21790
|
}
|
|
@@ -21647,7 +22090,7 @@ class DefaultNewsLetter extends Component {
|
|
|
21647
22090
|
}
|
|
21648
22091
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
21649
22092
|
|
|
21650
|
-
const initialState$
|
|
22093
|
+
const initialState$i = {
|
|
21651
22094
|
didSubToNewslettersBefore: false,
|
|
21652
22095
|
newsletters: [],
|
|
21653
22096
|
isListLoading: true,
|
|
@@ -21657,10 +22100,10 @@ const initialState$h = {
|
|
|
21657
22100
|
content: ""
|
|
21658
22101
|
}
|
|
21659
22102
|
};
|
|
21660
|
-
const store$
|
|
22103
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
21661
22104
|
const {
|
|
21662
|
-
Provider: Provider$
|
|
21663
|
-
} = store$
|
|
22105
|
+
Provider: Provider$i
|
|
22106
|
+
} = store$i;
|
|
21664
22107
|
const NewsletterUpdateContainer = _ref => {
|
|
21665
22108
|
let {
|
|
21666
22109
|
style,
|
|
@@ -21767,7 +22210,7 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
21767
22210
|
default:
|
|
21768
22211
|
return state;
|
|
21769
22212
|
}
|
|
21770
|
-
}, initialState$
|
|
22213
|
+
}, initialState$i);
|
|
21771
22214
|
useEffect(() => {
|
|
21772
22215
|
const getUserNewsletters = () => {
|
|
21773
22216
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -21809,7 +22252,7 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
21809
22252
|
...style
|
|
21810
22253
|
},
|
|
21811
22254
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
21812
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
22255
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
21813
22256
|
value: {
|
|
21814
22257
|
state,
|
|
21815
22258
|
dispatch
|
|
@@ -21817,12 +22260,12 @@ const NewsletterUpdateContainer = _ref => {
|
|
|
21817
22260
|
}, children.length ? children.map((child, i) => {
|
|
21818
22261
|
if (child) {
|
|
21819
22262
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
21820
|
-
store: store$
|
|
22263
|
+
store: store$i,
|
|
21821
22264
|
key: i
|
|
21822
22265
|
});
|
|
21823
22266
|
}
|
|
21824
22267
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
21825
|
-
store: store$
|
|
22268
|
+
store: store$i
|
|
21826
22269
|
})));
|
|
21827
22270
|
};
|
|
21828
22271
|
|
|
@@ -21838,7 +22281,7 @@ const NewsletterUpdateButton = _ref => {
|
|
|
21838
22281
|
isSubmitting,
|
|
21839
22282
|
isListLoading
|
|
21840
22283
|
}
|
|
21841
|
-
} = useContext(store$
|
|
22284
|
+
} = useContext(store$i);
|
|
21842
22285
|
const {
|
|
21843
22286
|
t
|
|
21844
22287
|
} = useTranslation("newsletter");
|
|
@@ -21867,7 +22310,7 @@ const NewsletterUpdateList = () => {
|
|
|
21867
22310
|
newsletters,
|
|
21868
22311
|
isListLoading
|
|
21869
22312
|
}
|
|
21870
|
-
} = useContext(store$
|
|
22313
|
+
} = useContext(store$i);
|
|
21871
22314
|
if (isListLoading) {
|
|
21872
22315
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
21873
22316
|
width: 60,
|
|
@@ -22062,7 +22505,7 @@ function SubscriptionCreateModal(_ref) {
|
|
|
22062
22505
|
}
|
|
22063
22506
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
22064
22507
|
|
|
22065
|
-
const initialState$
|
|
22508
|
+
const initialState$h = {
|
|
22066
22509
|
emails: "",
|
|
22067
22510
|
emailsError: null,
|
|
22068
22511
|
buttonDisabled: false,
|
|
@@ -22074,10 +22517,10 @@ const initialState$g = {
|
|
|
22074
22517
|
content: ""
|
|
22075
22518
|
}
|
|
22076
22519
|
};
|
|
22077
|
-
const store$
|
|
22520
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
22078
22521
|
const {
|
|
22079
|
-
Provider: Provider$
|
|
22080
|
-
} = store$
|
|
22522
|
+
Provider: Provider$h
|
|
22523
|
+
} = store$h;
|
|
22081
22524
|
const SubscriptionManageMembersContainer = _ref => {
|
|
22082
22525
|
let {
|
|
22083
22526
|
style,
|
|
@@ -22241,7 +22684,7 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
22241
22684
|
default:
|
|
22242
22685
|
return state;
|
|
22243
22686
|
}
|
|
22244
|
-
}, initialState$
|
|
22687
|
+
}, initialState$h);
|
|
22245
22688
|
useEffect(() => {
|
|
22246
22689
|
dispatch({
|
|
22247
22690
|
type: HANDLE_LIST_MEMBERS
|
|
@@ -22252,7 +22695,7 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
22252
22695
|
...style
|
|
22253
22696
|
},
|
|
22254
22697
|
className: `pelcro-container pelcro-manage-members-container ${className}`
|
|
22255
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
22698
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
22256
22699
|
value: {
|
|
22257
22700
|
state,
|
|
22258
22701
|
dispatch
|
|
@@ -22260,12 +22703,12 @@ const SubscriptionManageMembersContainer = _ref => {
|
|
|
22260
22703
|
}, children.length ? children.map((child, i) => {
|
|
22261
22704
|
if (child) {
|
|
22262
22705
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
22263
|
-
store: store$
|
|
22706
|
+
store: store$h,
|
|
22264
22707
|
key: i
|
|
22265
22708
|
});
|
|
22266
22709
|
}
|
|
22267
22710
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
22268
|
-
store: store$
|
|
22711
|
+
store: store$h
|
|
22269
22712
|
})));
|
|
22270
22713
|
};
|
|
22271
22714
|
|
|
@@ -22282,7 +22725,7 @@ const SubscriptionManageMembersButton = _ref => {
|
|
|
22282
22725
|
buttonDisabled
|
|
22283
22726
|
},
|
|
22284
22727
|
dispatch
|
|
22285
|
-
} = useContext(store$
|
|
22728
|
+
} = useContext(store$h);
|
|
22286
22729
|
const {
|
|
22287
22730
|
t
|
|
22288
22731
|
} = useTranslation("subscriptionManageMembers");
|
|
@@ -22312,7 +22755,7 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
22312
22755
|
emails: stateEmails,
|
|
22313
22756
|
emailsError
|
|
22314
22757
|
}
|
|
22315
|
-
} = useContext(store$
|
|
22758
|
+
} = useContext(store$h);
|
|
22316
22759
|
const [emails, setEmails] = useState(stateEmails);
|
|
22317
22760
|
const [finishedTyping, setFinishedTyping] = useState(false);
|
|
22318
22761
|
const handleInputChange = useCallback(value => {
|
|
@@ -22342,15 +22785,15 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
22342
22785
|
}, props));
|
|
22343
22786
|
}
|
|
22344
22787
|
|
|
22345
|
-
var _path$
|
|
22346
|
-
function _extends$
|
|
22788
|
+
var _path$j;
|
|
22789
|
+
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); }
|
|
22347
22790
|
function SvgCheckMark(props) {
|
|
22348
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22791
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
22349
22792
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
22350
22793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22351
22794
|
viewBox: "0 0 20 20",
|
|
22352
22795
|
fill: "currentColor"
|
|
22353
|
-
}, props), _path$
|
|
22796
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
22354
22797
|
fillRule: "evenodd",
|
|
22355
22798
|
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",
|
|
22356
22799
|
clipRule: "evenodd"
|
|
@@ -22368,7 +22811,7 @@ function SubscriptionManageMembersList(props) {
|
|
|
22368
22811
|
removeMemberId,
|
|
22369
22812
|
loading
|
|
22370
22813
|
}
|
|
22371
|
-
} = useContext(store$
|
|
22814
|
+
} = useContext(store$h);
|
|
22372
22815
|
const getMemberStatus = useCallback(sub => {
|
|
22373
22816
|
if (sub.status === "pending") {
|
|
22374
22817
|
return {
|
|
@@ -22531,7 +22974,7 @@ function SubscriptionManageMembersModal(_ref) {
|
|
|
22531
22974
|
SubscriptionManageMembersModal.viewId = "manage-members";
|
|
22532
22975
|
|
|
22533
22976
|
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;
|
|
22534
|
-
const initialState$
|
|
22977
|
+
const initialState$g = {
|
|
22535
22978
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
22536
22979
|
emailError: null,
|
|
22537
22980
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
@@ -22551,10 +22994,10 @@ const initialState$f = {
|
|
|
22551
22994
|
content: ""
|
|
22552
22995
|
}
|
|
22553
22996
|
};
|
|
22554
|
-
const store$
|
|
22997
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
22555
22998
|
const {
|
|
22556
|
-
Provider: Provider$
|
|
22557
|
-
} = store$
|
|
22999
|
+
Provider: Provider$g
|
|
23000
|
+
} = store$g;
|
|
22558
23001
|
const UserUpdateContainer = _ref => {
|
|
22559
23002
|
let {
|
|
22560
23003
|
style,
|
|
@@ -22750,13 +23193,13 @@ const UserUpdateContainer = _ref => {
|
|
|
22750
23193
|
default:
|
|
22751
23194
|
return state;
|
|
22752
23195
|
}
|
|
22753
|
-
}, initialState$
|
|
23196
|
+
}, initialState$g);
|
|
22754
23197
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
22755
23198
|
style: {
|
|
22756
23199
|
...style
|
|
22757
23200
|
},
|
|
22758
23201
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
22759
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23202
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
22760
23203
|
value: {
|
|
22761
23204
|
state,
|
|
22762
23205
|
dispatch
|
|
@@ -22764,24 +23207,24 @@ const UserUpdateContainer = _ref => {
|
|
|
22764
23207
|
}, children.length ? children.map((child, i) => {
|
|
22765
23208
|
if (child) {
|
|
22766
23209
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
22767
|
-
store: store$
|
|
23210
|
+
store: store$g,
|
|
22768
23211
|
key: i
|
|
22769
23212
|
});
|
|
22770
23213
|
}
|
|
22771
23214
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
22772
|
-
store: store$
|
|
23215
|
+
store: store$g
|
|
22773
23216
|
})));
|
|
22774
23217
|
};
|
|
22775
23218
|
|
|
22776
|
-
var _path$
|
|
22777
|
-
function _extends$
|
|
23219
|
+
var _path$i;
|
|
23220
|
+
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); }
|
|
22778
23221
|
function SvgEdit(props) {
|
|
22779
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23222
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
22780
23223
|
className: "plc-w-6 plc-h-6",
|
|
22781
23224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22782
23225
|
viewBox: "0 0 20 20",
|
|
22783
23226
|
fill: "currentColor"
|
|
22784
|
-
}, props), _path$
|
|
23227
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
22785
23228
|
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"
|
|
22786
23229
|
})));
|
|
22787
23230
|
}
|
|
@@ -22793,7 +23236,7 @@ const UserUpdateEmail = props => {
|
|
|
22793
23236
|
email,
|
|
22794
23237
|
emailError
|
|
22795
23238
|
}
|
|
22796
|
-
} = useContext(store$
|
|
23239
|
+
} = useContext(store$g);
|
|
22797
23240
|
const [enableEmailEdit, setEnableEmailEdit] = useState(false);
|
|
22798
23241
|
const {
|
|
22799
23242
|
t
|
|
@@ -22817,7 +23260,7 @@ const UserUpdateEmail = props => {
|
|
|
22817
23260
|
className: "plc-flex plc-items-start plc-relative"
|
|
22818
23261
|
}, /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
22819
23262
|
disabled: !enableEmailEdit,
|
|
22820
|
-
store: store$
|
|
23263
|
+
store: store$g,
|
|
22821
23264
|
label: t("labels.email"),
|
|
22822
23265
|
enableEmailEdit: enableEmailEdit
|
|
22823
23266
|
}, props)), /*#__PURE__*/React__default.createElement(Button, {
|
|
@@ -22851,7 +23294,7 @@ const UserUpdateButton = _ref => {
|
|
|
22851
23294
|
phoneError
|
|
22852
23295
|
},
|
|
22853
23296
|
dispatch
|
|
22854
|
-
} = useContext(store$
|
|
23297
|
+
} = useContext(store$g);
|
|
22855
23298
|
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);
|
|
22856
23299
|
const {
|
|
22857
23300
|
t
|
|
@@ -22947,19 +23390,19 @@ function UpdateUserNameInput(_ref) {
|
|
|
22947
23390
|
}
|
|
22948
23391
|
|
|
22949
23392
|
const UserUpdateUsername = props => /*#__PURE__*/React__default.createElement(UpdateUserNameInput, Object.assign({
|
|
22950
|
-
store: store$
|
|
23393
|
+
store: store$g
|
|
22951
23394
|
}, props));
|
|
22952
23395
|
|
|
22953
23396
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
22954
|
-
store: store$
|
|
23397
|
+
store: store$g
|
|
22955
23398
|
}, props));
|
|
22956
23399
|
|
|
22957
23400
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
22958
|
-
store: store$
|
|
23401
|
+
store: store$g
|
|
22959
23402
|
}, props));
|
|
22960
23403
|
|
|
22961
23404
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
22962
|
-
store: store$
|
|
23405
|
+
store: store$g
|
|
22963
23406
|
}, props));
|
|
22964
23407
|
|
|
22965
23408
|
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";
|
|
@@ -23046,7 +23489,7 @@ function Tin(_ref) {
|
|
|
23046
23489
|
}
|
|
23047
23490
|
|
|
23048
23491
|
const UserUpdateTin = props => /*#__PURE__*/React__default.createElement(Tin, Object.assign({
|
|
23049
|
-
store: store$
|
|
23492
|
+
store: store$g
|
|
23050
23493
|
}, props));
|
|
23051
23494
|
|
|
23052
23495
|
function DisplayName(_ref) {
|
|
@@ -23075,7 +23518,7 @@ function DisplayName(_ref) {
|
|
|
23075
23518
|
}
|
|
23076
23519
|
|
|
23077
23520
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
23078
|
-
store: store$
|
|
23521
|
+
store: store$g
|
|
23079
23522
|
}, props));
|
|
23080
23523
|
|
|
23081
23524
|
const UserUpdateView = props => {
|
|
@@ -23169,11 +23612,11 @@ UserUpdateModal.viewId = "user-edit";
|
|
|
23169
23612
|
|
|
23170
23613
|
const UserUpdateTextInput = props => {
|
|
23171
23614
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
23172
|
-
store: store$
|
|
23615
|
+
store: store$g
|
|
23173
23616
|
}));
|
|
23174
23617
|
};
|
|
23175
23618
|
|
|
23176
|
-
const initialState$
|
|
23619
|
+
const initialState$f = {
|
|
23177
23620
|
isSubmitting: false,
|
|
23178
23621
|
firstName: "",
|
|
23179
23622
|
firstNameError: "",
|
|
@@ -23199,10 +23642,10 @@ const initialState$e = {
|
|
|
23199
23642
|
content: ""
|
|
23200
23643
|
}
|
|
23201
23644
|
};
|
|
23202
|
-
const store$
|
|
23645
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
23203
23646
|
const {
|
|
23204
|
-
Provider: Provider$
|
|
23205
|
-
} = store$
|
|
23647
|
+
Provider: Provider$f
|
|
23648
|
+
} = store$f;
|
|
23206
23649
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
23207
23650
|
const AddressCreateContainer = _ref => {
|
|
23208
23651
|
var _props$giftCode, _ref2, _props$subscriptionId;
|
|
@@ -23436,7 +23879,7 @@ const AddressCreateContainer = _ref => {
|
|
|
23436
23879
|
default:
|
|
23437
23880
|
return state;
|
|
23438
23881
|
}
|
|
23439
|
-
}, initialState$
|
|
23882
|
+
}, initialState$f);
|
|
23440
23883
|
useEffect(() => {
|
|
23441
23884
|
const getStates = () => {
|
|
23442
23885
|
dispatch({
|
|
@@ -23468,16 +23911,16 @@ const AddressCreateContainer = _ref => {
|
|
|
23468
23911
|
...style
|
|
23469
23912
|
},
|
|
23470
23913
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
23471
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23914
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
23472
23915
|
value: {
|
|
23473
23916
|
state,
|
|
23474
23917
|
dispatch
|
|
23475
23918
|
}
|
|
23476
23919
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
23477
|
-
store: store$
|
|
23920
|
+
store: store$f,
|
|
23478
23921
|
key: i
|
|
23479
23922
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23480
|
-
store: store$
|
|
23923
|
+
store: store$f
|
|
23481
23924
|
})));
|
|
23482
23925
|
};
|
|
23483
23926
|
|
|
@@ -23488,7 +23931,7 @@ function AddressCreateFirstName(props) {
|
|
|
23488
23931
|
firstName,
|
|
23489
23932
|
firstNameError
|
|
23490
23933
|
}
|
|
23491
|
-
} = useContext(store$
|
|
23934
|
+
} = useContext(store$f);
|
|
23492
23935
|
const handleInputChange = value => {
|
|
23493
23936
|
dispatch({
|
|
23494
23937
|
type: SET_TEXT_FIELD,
|
|
@@ -23522,7 +23965,7 @@ function AddressCreateLastName(props) {
|
|
|
23522
23965
|
lastName,
|
|
23523
23966
|
lastNameError
|
|
23524
23967
|
}
|
|
23525
|
-
} = useContext(store$
|
|
23968
|
+
} = useContext(store$f);
|
|
23526
23969
|
const handleInputChange = value => {
|
|
23527
23970
|
dispatch({
|
|
23528
23971
|
type: SET_TEXT_FIELD,
|
|
@@ -23554,7 +23997,7 @@ function AddressCreateLine1(props) {
|
|
|
23554
23997
|
line1,
|
|
23555
23998
|
line1Error
|
|
23556
23999
|
}
|
|
23557
|
-
} = useContext(store$
|
|
24000
|
+
} = useContext(store$f);
|
|
23558
24001
|
const handleBlur = () => {
|
|
23559
24002
|
return dispatch({
|
|
23560
24003
|
type: VALIDATE_FIELD,
|
|
@@ -23593,7 +24036,7 @@ function AddressCreateCity(props) {
|
|
|
23593
24036
|
city,
|
|
23594
24037
|
cityError
|
|
23595
24038
|
}
|
|
23596
|
-
} = useContext(store$
|
|
24039
|
+
} = useContext(store$f);
|
|
23597
24040
|
const handleInputChange = value => {
|
|
23598
24041
|
dispatch({
|
|
23599
24042
|
type: SET_TEXT_FIELD,
|
|
@@ -23625,7 +24068,7 @@ function AddressCreatePostalCode(props) {
|
|
|
23625
24068
|
postalCode,
|
|
23626
24069
|
postalCodeError
|
|
23627
24070
|
}
|
|
23628
|
-
} = useContext(store$
|
|
24071
|
+
} = useContext(store$f);
|
|
23629
24072
|
const handleInputChange = value => {
|
|
23630
24073
|
dispatch({
|
|
23631
24074
|
type: SET_TEXT_FIELD,
|
|
@@ -23661,7 +24104,7 @@ const AddressCreateSubmit = _ref => {
|
|
|
23661
24104
|
state: {
|
|
23662
24105
|
isSubmitting
|
|
23663
24106
|
}
|
|
23664
|
-
} = useContext(store$
|
|
24107
|
+
} = useContext(store$f);
|
|
23665
24108
|
const {
|
|
23666
24109
|
t
|
|
23667
24110
|
} = useTranslation("address");
|
|
@@ -23741,7 +24184,7 @@ function CountrySelect(_ref) {
|
|
|
23741
24184
|
}
|
|
23742
24185
|
|
|
23743
24186
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
23744
|
-
store: store$
|
|
24187
|
+
store: store$f
|
|
23745
24188
|
}, props));
|
|
23746
24189
|
|
|
23747
24190
|
function StateSelect(_ref) {
|
|
@@ -23823,14 +24266,14 @@ function StateSelect(_ref) {
|
|
|
23823
24266
|
}
|
|
23824
24267
|
|
|
23825
24268
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
23826
|
-
store: store$
|
|
24269
|
+
store: store$f
|
|
23827
24270
|
}, props));
|
|
23828
24271
|
|
|
23829
24272
|
const AddressCreateSetDefault = props => {
|
|
23830
24273
|
const {
|
|
23831
24274
|
dispatch,
|
|
23832
24275
|
state
|
|
23833
|
-
} = useContext(store$
|
|
24276
|
+
} = useContext(store$f);
|
|
23834
24277
|
const handleCheckboxChange = e => {
|
|
23835
24278
|
dispatch({
|
|
23836
24279
|
type: HANDLE_CHECKBOX_CHANGE,
|
|
@@ -23955,18 +24398,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
23955
24398
|
|
|
23956
24399
|
const AddressCreateTextInput = props => {
|
|
23957
24400
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
23958
|
-
store: store$
|
|
24401
|
+
store: store$f
|
|
23959
24402
|
}));
|
|
23960
24403
|
};
|
|
23961
24404
|
|
|
23962
24405
|
const AddressCreateLine2 = props => {
|
|
23963
24406
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
23964
24407
|
fieldName: "line2",
|
|
23965
|
-
store: store$
|
|
24408
|
+
store: store$f
|
|
23966
24409
|
}, props));
|
|
23967
24410
|
};
|
|
23968
24411
|
|
|
23969
|
-
const initialState$
|
|
24412
|
+
const initialState$e = {
|
|
23970
24413
|
isSubmitting: false,
|
|
23971
24414
|
firstName: "",
|
|
23972
24415
|
firstNameError: "",
|
|
@@ -23992,10 +24435,10 @@ const initialState$d = {
|
|
|
23992
24435
|
content: ""
|
|
23993
24436
|
}
|
|
23994
24437
|
};
|
|
23995
|
-
const store$
|
|
24438
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
23996
24439
|
const {
|
|
23997
|
-
Provider: Provider$
|
|
23998
|
-
} = store$
|
|
24440
|
+
Provider: Provider$e
|
|
24441
|
+
} = store$e;
|
|
23999
24442
|
const AddressUpdateContainer = _ref => {
|
|
24000
24443
|
var _props$addressId, _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
24001
24444
|
let {
|
|
@@ -24044,7 +24487,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24044
24487
|
const thisAddress = addresses[address];
|
|
24045
24488
|
if (+thisAddress.id === +addressId) {
|
|
24046
24489
|
const newState = {
|
|
24047
|
-
...initialState$
|
|
24490
|
+
...initialState$e,
|
|
24048
24491
|
firstName: thisAddress.first_name,
|
|
24049
24492
|
lastName: thisAddress.last_name,
|
|
24050
24493
|
line1: thisAddress.line1,
|
|
@@ -24195,7 +24638,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24195
24638
|
default:
|
|
24196
24639
|
return state;
|
|
24197
24640
|
}
|
|
24198
|
-
}, initialState$
|
|
24641
|
+
}, initialState$e);
|
|
24199
24642
|
useEffect(() => {
|
|
24200
24643
|
const getStates = () => {
|
|
24201
24644
|
dispatch({
|
|
@@ -24227,21 +24670,21 @@ const AddressUpdateContainer = _ref => {
|
|
|
24227
24670
|
...style
|
|
24228
24671
|
},
|
|
24229
24672
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
24230
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
24673
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
24231
24674
|
value: {
|
|
24232
24675
|
state,
|
|
24233
24676
|
dispatch
|
|
24234
24677
|
}
|
|
24235
24678
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24236
|
-
store: store$
|
|
24679
|
+
store: store$e,
|
|
24237
24680
|
key: i
|
|
24238
24681
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24239
|
-
store: store$
|
|
24682
|
+
store: store$e
|
|
24240
24683
|
})));
|
|
24241
24684
|
};
|
|
24242
24685
|
|
|
24243
24686
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
24244
|
-
store: store$
|
|
24687
|
+
store: store$e
|
|
24245
24688
|
}, props));
|
|
24246
24689
|
|
|
24247
24690
|
function AddressUpdateFirstName(props) {
|
|
@@ -24251,7 +24694,7 @@ function AddressUpdateFirstName(props) {
|
|
|
24251
24694
|
firstName,
|
|
24252
24695
|
firstNameError
|
|
24253
24696
|
}
|
|
24254
|
-
} = useContext(store$
|
|
24697
|
+
} = useContext(store$e);
|
|
24255
24698
|
const handleBlur = () => {
|
|
24256
24699
|
return dispatch({
|
|
24257
24700
|
type: VALIDATE_FIELD,
|
|
@@ -24290,7 +24733,7 @@ function AddressUpdateLastName(props) {
|
|
|
24290
24733
|
lastName,
|
|
24291
24734
|
lastNameError
|
|
24292
24735
|
}
|
|
24293
|
-
} = useContext(store$
|
|
24736
|
+
} = useContext(store$e);
|
|
24294
24737
|
const handleBlur = () => {
|
|
24295
24738
|
return dispatch({
|
|
24296
24739
|
type: VALIDATE_FIELD,
|
|
@@ -24329,7 +24772,7 @@ function AddressUpdateLine1(props) {
|
|
|
24329
24772
|
line1,
|
|
24330
24773
|
line1Error
|
|
24331
24774
|
}
|
|
24332
|
-
} = useContext(store$
|
|
24775
|
+
} = useContext(store$e);
|
|
24333
24776
|
const handleBlur = () => {
|
|
24334
24777
|
return dispatch({
|
|
24335
24778
|
type: VALIDATE_FIELD,
|
|
@@ -24365,7 +24808,7 @@ const AddressUpdateLine2 = props => {
|
|
|
24365
24808
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
24366
24809
|
fieldName: "line2"
|
|
24367
24810
|
}, props, {
|
|
24368
|
-
store: store$
|
|
24811
|
+
store: store$e
|
|
24369
24812
|
}));
|
|
24370
24813
|
};
|
|
24371
24814
|
|
|
@@ -24376,7 +24819,7 @@ function AddressUpdateCity(props) {
|
|
|
24376
24819
|
city,
|
|
24377
24820
|
cityError
|
|
24378
24821
|
}
|
|
24379
|
-
} = useContext(store$
|
|
24822
|
+
} = useContext(store$e);
|
|
24380
24823
|
const handleBlur = () => {
|
|
24381
24824
|
return dispatch({
|
|
24382
24825
|
type: VALIDATE_FIELD,
|
|
@@ -24415,7 +24858,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
24415
24858
|
postalCode,
|
|
24416
24859
|
postalCodeError
|
|
24417
24860
|
}
|
|
24418
|
-
} = useContext(store$
|
|
24861
|
+
} = useContext(store$e);
|
|
24419
24862
|
const handleBlur = () => {
|
|
24420
24863
|
return dispatch({
|
|
24421
24864
|
type: VALIDATE_FIELD,
|
|
@@ -24458,7 +24901,7 @@ const AddressUpdateSubmit = _ref => {
|
|
|
24458
24901
|
state: {
|
|
24459
24902
|
isSubmitting
|
|
24460
24903
|
}
|
|
24461
|
-
} = useContext(store$
|
|
24904
|
+
} = useContext(store$e);
|
|
24462
24905
|
const {
|
|
24463
24906
|
t
|
|
24464
24907
|
} = useTranslation("address");
|
|
@@ -24474,7 +24917,7 @@ const AddressUpdateSubmit = _ref => {
|
|
|
24474
24917
|
};
|
|
24475
24918
|
|
|
24476
24919
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
24477
|
-
store: store$
|
|
24920
|
+
store: store$e
|
|
24478
24921
|
}, props));
|
|
24479
24922
|
|
|
24480
24923
|
function AddressUpdateSetDefault(props) {
|
|
@@ -24483,7 +24926,7 @@ function AddressUpdateSetDefault(props) {
|
|
|
24483
24926
|
state: {
|
|
24484
24927
|
isDefault
|
|
24485
24928
|
}
|
|
24486
|
-
} = useContext(store$
|
|
24929
|
+
} = useContext(store$e);
|
|
24487
24930
|
const handleCheckboxChange = e => {
|
|
24488
24931
|
dispatch({
|
|
24489
24932
|
type: HANDLE_CHECKBOX_CHANGE,
|
|
@@ -24585,7 +25028,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
24585
25028
|
|
|
24586
25029
|
const AddressUpdateTextInput = props => {
|
|
24587
25030
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
24588
|
-
store: store$
|
|
25031
|
+
store: store$e
|
|
24589
25032
|
}));
|
|
24590
25033
|
};
|
|
24591
25034
|
|
|
@@ -24675,7 +25118,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
24675
25118
|
};
|
|
24676
25119
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
24677
25120
|
|
|
24678
|
-
const initialState$
|
|
25121
|
+
const initialState$d = {
|
|
24679
25122
|
email: "",
|
|
24680
25123
|
password: "",
|
|
24681
25124
|
passwordError: null,
|
|
@@ -24688,10 +25131,10 @@ const initialState$c = {
|
|
|
24688
25131
|
content: ""
|
|
24689
25132
|
}
|
|
24690
25133
|
};
|
|
24691
|
-
const store$
|
|
25134
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
24692
25135
|
const {
|
|
24693
|
-
Provider: Provider$
|
|
24694
|
-
} = store$
|
|
25136
|
+
Provider: Provider$d
|
|
25137
|
+
} = store$d;
|
|
24695
25138
|
const PasswordResetContainer = _ref => {
|
|
24696
25139
|
let {
|
|
24697
25140
|
style,
|
|
@@ -24746,7 +25189,7 @@ const PasswordResetContainer = _ref => {
|
|
|
24746
25189
|
type: SET_EMAIL,
|
|
24747
25190
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
24748
25191
|
});
|
|
24749
|
-
initialState$
|
|
25192
|
+
initialState$d.email = window.Pelcro.helpers.getURLParameter("email");
|
|
24750
25193
|
dispatch({
|
|
24751
25194
|
type: SET_TOKEN,
|
|
24752
25195
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -24806,27 +25249,27 @@ const PasswordResetContainer = _ref => {
|
|
|
24806
25249
|
default:
|
|
24807
25250
|
return state;
|
|
24808
25251
|
}
|
|
24809
|
-
}, initialState$
|
|
25252
|
+
}, initialState$d);
|
|
24810
25253
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24811
25254
|
style: {
|
|
24812
25255
|
...style
|
|
24813
25256
|
},
|
|
24814
25257
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
24815
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25258
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
24816
25259
|
value: {
|
|
24817
25260
|
state,
|
|
24818
25261
|
dispatch
|
|
24819
25262
|
}
|
|
24820
25263
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24821
|
-
store: store$
|
|
25264
|
+
store: store$d,
|
|
24822
25265
|
key: i
|
|
24823
25266
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24824
|
-
store: store$
|
|
25267
|
+
store: store$d
|
|
24825
25268
|
})));
|
|
24826
25269
|
};
|
|
24827
25270
|
|
|
24828
25271
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
24829
|
-
store: store$
|
|
25272
|
+
store: store$d
|
|
24830
25273
|
}, props));
|
|
24831
25274
|
|
|
24832
25275
|
const PasswordResetButton = _ref => {
|
|
@@ -24840,7 +25283,7 @@ const PasswordResetButton = _ref => {
|
|
|
24840
25283
|
buttonDisabled
|
|
24841
25284
|
},
|
|
24842
25285
|
dispatch
|
|
24843
|
-
} = useContext(store$
|
|
25286
|
+
} = useContext(store$d);
|
|
24844
25287
|
const {
|
|
24845
25288
|
t
|
|
24846
25289
|
} = useTranslation("passwordReset");
|
|
@@ -24857,14 +25300,14 @@ const PasswordResetButton = _ref => {
|
|
|
24857
25300
|
};
|
|
24858
25301
|
|
|
24859
25302
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
24860
|
-
store: store$
|
|
25303
|
+
store: store$d
|
|
24861
25304
|
}, props, {
|
|
24862
25305
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
24863
25306
|
disabled: true
|
|
24864
25307
|
}));
|
|
24865
25308
|
|
|
24866
25309
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
24867
|
-
store: store$
|
|
25310
|
+
store: store$d
|
|
24868
25311
|
}, props));
|
|
24869
25312
|
|
|
24870
25313
|
const PasswordResetView = props => {
|
|
@@ -24917,7 +25360,7 @@ const PasswordResetModal = _ref => {
|
|
|
24917
25360
|
};
|
|
24918
25361
|
PasswordResetModal.viewId = "password-reset";
|
|
24919
25362
|
|
|
24920
|
-
const initialState$
|
|
25363
|
+
const initialState$c = {
|
|
24921
25364
|
email: "",
|
|
24922
25365
|
emailError: null,
|
|
24923
25366
|
buttonDisabled: false,
|
|
@@ -24926,10 +25369,10 @@ const initialState$b = {
|
|
|
24926
25369
|
content: ""
|
|
24927
25370
|
}
|
|
24928
25371
|
};
|
|
24929
|
-
const store$
|
|
25372
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
24930
25373
|
const {
|
|
24931
|
-
Provider: Provider$
|
|
24932
|
-
} = store$
|
|
25374
|
+
Provider: Provider$c
|
|
25375
|
+
} = store$c;
|
|
24933
25376
|
const PasswordForgotContainer = _ref => {
|
|
24934
25377
|
let {
|
|
24935
25378
|
style,
|
|
@@ -25005,22 +25448,22 @@ const PasswordForgotContainer = _ref => {
|
|
|
25005
25448
|
default:
|
|
25006
25449
|
return state;
|
|
25007
25450
|
}
|
|
25008
|
-
}, initialState$
|
|
25451
|
+
}, initialState$c);
|
|
25009
25452
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25010
25453
|
style: {
|
|
25011
25454
|
...style
|
|
25012
25455
|
},
|
|
25013
25456
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
25014
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25457
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
25015
25458
|
value: {
|
|
25016
25459
|
state,
|
|
25017
25460
|
dispatch
|
|
25018
25461
|
}
|
|
25019
25462
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25020
|
-
store: store$
|
|
25463
|
+
store: store$c,
|
|
25021
25464
|
key: i
|
|
25022
25465
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25023
|
-
store: store$
|
|
25466
|
+
store: store$c
|
|
25024
25467
|
})));
|
|
25025
25468
|
};
|
|
25026
25469
|
|
|
@@ -25037,7 +25480,7 @@ const PasswordForgotButton = _ref => {
|
|
|
25037
25480
|
emailError
|
|
25038
25481
|
},
|
|
25039
25482
|
dispatch
|
|
25040
|
-
} = useContext(store$
|
|
25483
|
+
} = useContext(store$c);
|
|
25041
25484
|
const {
|
|
25042
25485
|
t
|
|
25043
25486
|
} = useTranslation("passwordForgot");
|
|
@@ -25058,7 +25501,7 @@ const PasswordForgotButton = _ref => {
|
|
|
25058
25501
|
};
|
|
25059
25502
|
|
|
25060
25503
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
25061
|
-
store: store$
|
|
25504
|
+
store: store$c
|
|
25062
25505
|
}, props));
|
|
25063
25506
|
|
|
25064
25507
|
const PasswordForgotView = props => {
|
|
@@ -25109,7 +25552,7 @@ const PasswordForgotModal = _ref => {
|
|
|
25109
25552
|
};
|
|
25110
25553
|
PasswordForgotModal.viewId = "password-forgot";
|
|
25111
25554
|
|
|
25112
|
-
const initialState$
|
|
25555
|
+
const initialState$b = {
|
|
25113
25556
|
email: "",
|
|
25114
25557
|
emailError: null,
|
|
25115
25558
|
buttonDisabled: false,
|
|
@@ -25118,10 +25561,10 @@ const initialState$a = {
|
|
|
25118
25561
|
content: ""
|
|
25119
25562
|
}
|
|
25120
25563
|
};
|
|
25121
|
-
const store$
|
|
25564
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
25122
25565
|
const {
|
|
25123
|
-
Provider: Provider$
|
|
25124
|
-
} = store$
|
|
25566
|
+
Provider: Provider$b
|
|
25567
|
+
} = store$b;
|
|
25125
25568
|
const PasswordlessRequestContainer = _ref => {
|
|
25126
25569
|
let {
|
|
25127
25570
|
style,
|
|
@@ -25197,22 +25640,22 @@ const PasswordlessRequestContainer = _ref => {
|
|
|
25197
25640
|
default:
|
|
25198
25641
|
return state;
|
|
25199
25642
|
}
|
|
25200
|
-
}, initialState$
|
|
25643
|
+
}, initialState$b);
|
|
25201
25644
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25202
25645
|
style: {
|
|
25203
25646
|
...style
|
|
25204
25647
|
},
|
|
25205
25648
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
25206
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25649
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
25207
25650
|
value: {
|
|
25208
25651
|
state,
|
|
25209
25652
|
dispatch
|
|
25210
25653
|
}
|
|
25211
25654
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25212
|
-
store: store$
|
|
25655
|
+
store: store$b,
|
|
25213
25656
|
key: i
|
|
25214
25657
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25215
|
-
store: store$
|
|
25658
|
+
store: store$b
|
|
25216
25659
|
})));
|
|
25217
25660
|
};
|
|
25218
25661
|
|
|
@@ -25229,7 +25672,7 @@ const PasswordlessRequestViewButton = _ref => {
|
|
|
25229
25672
|
emailError
|
|
25230
25673
|
},
|
|
25231
25674
|
dispatch
|
|
25232
|
-
} = useContext(store$
|
|
25675
|
+
} = useContext(store$b);
|
|
25233
25676
|
const {
|
|
25234
25677
|
t
|
|
25235
25678
|
} = useTranslation("passwordlessRequest");
|
|
@@ -25250,7 +25693,7 @@ const PasswordlessRequestViewButton = _ref => {
|
|
|
25250
25693
|
};
|
|
25251
25694
|
|
|
25252
25695
|
const PasswordlessRequestEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
25253
|
-
store: store$
|
|
25696
|
+
store: store$b
|
|
25254
25697
|
}, props));
|
|
25255
25698
|
|
|
25256
25699
|
const PasswordlessRequestView = props => {
|
|
@@ -25292,7 +25735,7 @@ const PasswordlessRequestModal = _ref => {
|
|
|
25292
25735
|
};
|
|
25293
25736
|
PasswordlessRequestModal.viewId = "passwordless-request";
|
|
25294
25737
|
|
|
25295
|
-
const initialState$
|
|
25738
|
+
const initialState$a = {
|
|
25296
25739
|
currentPassword: "",
|
|
25297
25740
|
newPassword: "",
|
|
25298
25741
|
confirmNewPassword: "",
|
|
@@ -25306,10 +25749,10 @@ const initialState$9 = {
|
|
|
25306
25749
|
content: ""
|
|
25307
25750
|
}
|
|
25308
25751
|
};
|
|
25309
|
-
const store$
|
|
25752
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
25310
25753
|
const {
|
|
25311
|
-
Provider: Provider$
|
|
25312
|
-
} = store$
|
|
25754
|
+
Provider: Provider$a
|
|
25755
|
+
} = store$a;
|
|
25313
25756
|
const PasswordChangeContainer = _ref => {
|
|
25314
25757
|
let {
|
|
25315
25758
|
style,
|
|
@@ -25460,22 +25903,22 @@ const PasswordChangeContainer = _ref => {
|
|
|
25460
25903
|
default:
|
|
25461
25904
|
return state;
|
|
25462
25905
|
}
|
|
25463
|
-
}, initialState$
|
|
25906
|
+
}, initialState$a);
|
|
25464
25907
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25465
25908
|
style: {
|
|
25466
25909
|
...style
|
|
25467
25910
|
},
|
|
25468
25911
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
25469
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25912
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
25470
25913
|
value: {
|
|
25471
25914
|
state,
|
|
25472
25915
|
dispatch
|
|
25473
25916
|
}
|
|
25474
25917
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25475
|
-
store: store$
|
|
25918
|
+
store: store$a,
|
|
25476
25919
|
key: i
|
|
25477
25920
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25478
|
-
store: store$
|
|
25921
|
+
store: store$a
|
|
25479
25922
|
})));
|
|
25480
25923
|
};
|
|
25481
25924
|
|
|
@@ -25486,7 +25929,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
25486
25929
|
currentPassword,
|
|
25487
25930
|
currentPasswordError
|
|
25488
25931
|
}
|
|
25489
|
-
} = useContext(store$
|
|
25932
|
+
} = useContext(store$a);
|
|
25490
25933
|
const handleBlur = useCallback(() => {
|
|
25491
25934
|
return dispatch({
|
|
25492
25935
|
type: VALIDATE_PASSWORD
|
|
@@ -25520,7 +25963,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
25520
25963
|
newPassword,
|
|
25521
25964
|
newPasswordError
|
|
25522
25965
|
}
|
|
25523
|
-
} = useContext(store$
|
|
25966
|
+
} = useContext(store$a);
|
|
25524
25967
|
const handleBlur = useCallback(() => {
|
|
25525
25968
|
return dispatch({
|
|
25526
25969
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -25554,7 +25997,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
25554
25997
|
confirmNewPassword,
|
|
25555
25998
|
confirmNewPasswordError
|
|
25556
25999
|
}
|
|
25557
|
-
} = useContext(store$
|
|
26000
|
+
} = useContext(store$a);
|
|
25558
26001
|
const handleBlur = useCallback(() => {
|
|
25559
26002
|
return dispatch({
|
|
25560
26003
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -25596,7 +26039,7 @@ const PasswordChangeButton = _ref => {
|
|
|
25596
26039
|
confirmNewPasswordError
|
|
25597
26040
|
},
|
|
25598
26041
|
dispatch
|
|
25599
|
-
} = useContext(store$
|
|
26042
|
+
} = useContext(store$a);
|
|
25600
26043
|
const {
|
|
25601
26044
|
t
|
|
25602
26045
|
} = useTranslation("passwordChange");
|
|
@@ -25663,17 +26106,17 @@ const PasswordChangeModal = _ref => {
|
|
|
25663
26106
|
};
|
|
25664
26107
|
PasswordChangeModal.viewId = "password-change";
|
|
25665
26108
|
|
|
25666
|
-
const initialState$
|
|
26109
|
+
const initialState$9 = {
|
|
25667
26110
|
buttonDisabled: false,
|
|
25668
26111
|
alert: {
|
|
25669
26112
|
type: "error",
|
|
25670
26113
|
content: ""
|
|
25671
26114
|
}
|
|
25672
26115
|
};
|
|
25673
|
-
const store$
|
|
26116
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
25674
26117
|
const {
|
|
25675
|
-
Provider: Provider$
|
|
25676
|
-
} = store$
|
|
26118
|
+
Provider: Provider$9
|
|
26119
|
+
} = store$9;
|
|
25677
26120
|
const CartContainer = _ref => {
|
|
25678
26121
|
let {
|
|
25679
26122
|
style,
|
|
@@ -25759,22 +26202,22 @@ const CartContainer = _ref => {
|
|
|
25759
26202
|
default:
|
|
25760
26203
|
return state;
|
|
25761
26204
|
}
|
|
25762
|
-
}, initialState$
|
|
26205
|
+
}, initialState$9);
|
|
25763
26206
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25764
26207
|
style: {
|
|
25765
26208
|
...style
|
|
25766
26209
|
},
|
|
25767
26210
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
25768
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26211
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
25769
26212
|
value: {
|
|
25770
26213
|
state,
|
|
25771
26214
|
dispatch
|
|
25772
26215
|
}
|
|
25773
26216
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25774
|
-
store: store$
|
|
26217
|
+
store: store$9,
|
|
25775
26218
|
key: i
|
|
25776
26219
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25777
|
-
store: store$
|
|
26220
|
+
store: store$9
|
|
25778
26221
|
})));
|
|
25779
26222
|
};
|
|
25780
26223
|
|
|
@@ -25816,7 +26259,7 @@ const CartSubmit = _ref => {
|
|
|
25816
26259
|
buttonDisabled
|
|
25817
26260
|
},
|
|
25818
26261
|
dispatch
|
|
25819
|
-
} = useContext(store$
|
|
26262
|
+
} = useContext(store$9);
|
|
25820
26263
|
const {
|
|
25821
26264
|
t
|
|
25822
26265
|
} = useTranslation("cart");
|
|
@@ -25851,7 +26294,7 @@ const CartTotalPrice = () => {
|
|
|
25851
26294
|
state: {
|
|
25852
26295
|
alert
|
|
25853
26296
|
}
|
|
25854
|
-
} = useContext(store$
|
|
26297
|
+
} = useContext(store$9);
|
|
25855
26298
|
const {
|
|
25856
26299
|
cartItems
|
|
25857
26300
|
} = usePelcro();
|
|
@@ -26165,7 +26608,7 @@ const OrderConfirmModal = props => {
|
|
|
26165
26608
|
};
|
|
26166
26609
|
OrderConfirmModal.viewId = "order-confirm";
|
|
26167
26610
|
|
|
26168
|
-
const initialState$
|
|
26611
|
+
const initialState$8 = {
|
|
26169
26612
|
email: "",
|
|
26170
26613
|
firstName: "",
|
|
26171
26614
|
lastName: "",
|
|
@@ -26177,10 +26620,10 @@ const initialState$7 = {
|
|
|
26177
26620
|
content: ""
|
|
26178
26621
|
}
|
|
26179
26622
|
};
|
|
26180
|
-
const store$
|
|
26623
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
26181
26624
|
const {
|
|
26182
|
-
Provider: Provider$
|
|
26183
|
-
} = store$
|
|
26625
|
+
Provider: Provider$8
|
|
26626
|
+
} = store$8;
|
|
26184
26627
|
const GiftCreateContainer = _ref => {
|
|
26185
26628
|
let {
|
|
26186
26629
|
style,
|
|
@@ -26278,22 +26721,22 @@ const GiftCreateContainer = _ref => {
|
|
|
26278
26721
|
default:
|
|
26279
26722
|
return state;
|
|
26280
26723
|
}
|
|
26281
|
-
}, initialState$
|
|
26724
|
+
}, initialState$8);
|
|
26282
26725
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26283
26726
|
style: {
|
|
26284
26727
|
...style
|
|
26285
26728
|
},
|
|
26286
26729
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
26287
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
26730
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
26288
26731
|
value: {
|
|
26289
26732
|
state,
|
|
26290
26733
|
dispatch
|
|
26291
26734
|
}
|
|
26292
26735
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26293
|
-
store: store$
|
|
26736
|
+
store: store$8,
|
|
26294
26737
|
key: i
|
|
26295
26738
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26296
|
-
store: store$
|
|
26739
|
+
store: store$8
|
|
26297
26740
|
})));
|
|
26298
26741
|
};
|
|
26299
26742
|
|
|
@@ -26308,7 +26751,7 @@ const GiftCreateSubmitButton = _ref => {
|
|
|
26308
26751
|
state: {
|
|
26309
26752
|
disableSubmit
|
|
26310
26753
|
}
|
|
26311
|
-
} = useContext(store$
|
|
26754
|
+
} = useContext(store$8);
|
|
26312
26755
|
const {
|
|
26313
26756
|
t
|
|
26314
26757
|
} = useTranslation("register");
|
|
@@ -26325,17 +26768,17 @@ const GiftCreateSubmitButton = _ref => {
|
|
|
26325
26768
|
|
|
26326
26769
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
26327
26770
|
initWithUserEmail: false,
|
|
26328
|
-
store: store$
|
|
26771
|
+
store: store$8
|
|
26329
26772
|
}, props));
|
|
26330
26773
|
|
|
26331
26774
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
26332
26775
|
initWithUserFirstName: false,
|
|
26333
|
-
store: store$
|
|
26776
|
+
store: store$8
|
|
26334
26777
|
}, props));
|
|
26335
26778
|
|
|
26336
26779
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
26337
26780
|
initWithUserLastName: false,
|
|
26338
|
-
store: store$
|
|
26781
|
+
store: store$8
|
|
26339
26782
|
}, props));
|
|
26340
26783
|
|
|
26341
26784
|
const nowDate = new Date();
|
|
@@ -26349,7 +26792,7 @@ const GiftCreateStartDate = props => {
|
|
|
26349
26792
|
const {
|
|
26350
26793
|
dispatch,
|
|
26351
26794
|
state
|
|
26352
|
-
} = useContext(store$
|
|
26795
|
+
} = useContext(store$8);
|
|
26353
26796
|
const handleInputChange = value => {
|
|
26354
26797
|
dispatch({
|
|
26355
26798
|
type: SET_START_DATE,
|
|
@@ -26379,7 +26822,7 @@ function GiftCreateMessage(props) {
|
|
|
26379
26822
|
const {
|
|
26380
26823
|
dispatch,
|
|
26381
26824
|
state
|
|
26382
|
-
} = useContext(store$
|
|
26825
|
+
} = useContext(store$8);
|
|
26383
26826
|
const MAX_CHARS_COUNT = 200;
|
|
26384
26827
|
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;
|
|
26385
26828
|
const handleInputChange = value => {
|
|
@@ -26497,7 +26940,7 @@ const GiftCreateModal = _ref => {
|
|
|
26497
26940
|
};
|
|
26498
26941
|
GiftCreateModal.viewId = "gift-create";
|
|
26499
26942
|
|
|
26500
|
-
const initialState$
|
|
26943
|
+
const initialState$7 = {
|
|
26501
26944
|
isSubmitting: false,
|
|
26502
26945
|
giftCode: "",
|
|
26503
26946
|
buttonDisabled: true,
|
|
@@ -26506,10 +26949,10 @@ const initialState$6 = {
|
|
|
26506
26949
|
content: ""
|
|
26507
26950
|
}
|
|
26508
26951
|
};
|
|
26509
|
-
const store$
|
|
26952
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
26510
26953
|
const {
|
|
26511
|
-
Provider: Provider$
|
|
26512
|
-
} = store$
|
|
26954
|
+
Provider: Provider$7
|
|
26955
|
+
} = store$7;
|
|
26513
26956
|
const GiftRedeemContainer = _ref => {
|
|
26514
26957
|
var _ref2, _props$subscriptionId;
|
|
26515
26958
|
let {
|
|
@@ -26619,22 +27062,22 @@ const GiftRedeemContainer = _ref => {
|
|
|
26619
27062
|
default:
|
|
26620
27063
|
return state;
|
|
26621
27064
|
}
|
|
26622
|
-
}, initialState$
|
|
27065
|
+
}, initialState$7);
|
|
26623
27066
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26624
27067
|
style: {
|
|
26625
27068
|
...style
|
|
26626
27069
|
},
|
|
26627
27070
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
26628
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
27071
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
26629
27072
|
value: {
|
|
26630
27073
|
state,
|
|
26631
27074
|
dispatch
|
|
26632
27075
|
}
|
|
26633
27076
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26634
|
-
store: store$
|
|
27077
|
+
store: store$7,
|
|
26635
27078
|
key: i
|
|
26636
27079
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26637
|
-
store: store$
|
|
27080
|
+
store: store$7
|
|
26638
27081
|
})));
|
|
26639
27082
|
};
|
|
26640
27083
|
|
|
@@ -26668,7 +27111,7 @@ function GiftCode(_ref) {
|
|
|
26668
27111
|
}
|
|
26669
27112
|
|
|
26670
27113
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
26671
|
-
store: store$
|
|
27114
|
+
store: store$7
|
|
26672
27115
|
}, props));
|
|
26673
27116
|
|
|
26674
27117
|
const GiftRedeemSubmitButton = _ref => {
|
|
@@ -26683,7 +27126,7 @@ const GiftRedeemSubmitButton = _ref => {
|
|
|
26683
27126
|
disableSubmit,
|
|
26684
27127
|
isSubmitting
|
|
26685
27128
|
}
|
|
26686
|
-
} = useContext(store$
|
|
27129
|
+
} = useContext(store$7);
|
|
26687
27130
|
const {
|
|
26688
27131
|
t
|
|
26689
27132
|
} = useTranslation("register");
|
|
@@ -26768,7 +27211,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
26768
27211
|
const addressesWithoutDefault = addresses.filter(address => !address.is_default);
|
|
26769
27212
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
26770
27213
|
};
|
|
26771
|
-
const initialState$
|
|
27214
|
+
const initialState$6 = {
|
|
26772
27215
|
addresses: [],
|
|
26773
27216
|
selectedAddressId: null,
|
|
26774
27217
|
isSubmitting: false,
|
|
@@ -26777,10 +27220,10 @@ const initialState$5 = {
|
|
|
26777
27220
|
content: ""
|
|
26778
27221
|
}
|
|
26779
27222
|
};
|
|
26780
|
-
const store$
|
|
27223
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
26781
27224
|
const {
|
|
26782
|
-
Provider: Provider$
|
|
26783
|
-
} = store$
|
|
27225
|
+
Provider: Provider$6
|
|
27226
|
+
} = store$6;
|
|
26784
27227
|
const AddressSelectContainer = _ref => {
|
|
26785
27228
|
var _props$giftCode, _ref2, _props$subscriptionId;
|
|
26786
27229
|
let {
|
|
@@ -26907,7 +27350,7 @@ const AddressSelectContainer = _ref => {
|
|
|
26907
27350
|
default:
|
|
26908
27351
|
return state;
|
|
26909
27352
|
}
|
|
26910
|
-
}, initialState$
|
|
27353
|
+
}, initialState$6);
|
|
26911
27354
|
useEffect(() => {
|
|
26912
27355
|
var _window$Pelcro$user$r;
|
|
26913
27356
|
dispatch({
|
|
@@ -26920,16 +27363,16 @@ const AddressSelectContainer = _ref => {
|
|
|
26920
27363
|
...style
|
|
26921
27364
|
},
|
|
26922
27365
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
26923
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
27366
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
26924
27367
|
value: {
|
|
26925
27368
|
state,
|
|
26926
27369
|
dispatch
|
|
26927
27370
|
}
|
|
26928
27371
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
26929
|
-
store: store$
|
|
27372
|
+
store: store$6,
|
|
26930
27373
|
key: i
|
|
26931
27374
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
26932
|
-
store: store$
|
|
27375
|
+
store: store$6
|
|
26933
27376
|
})));
|
|
26934
27377
|
};
|
|
26935
27378
|
|
|
@@ -26940,7 +27383,7 @@ const AddressSelectList = () => {
|
|
|
26940
27383
|
addresses,
|
|
26941
27384
|
selectedAddressId
|
|
26942
27385
|
}
|
|
26943
|
-
} = useContext(store$
|
|
27386
|
+
} = useContext(store$6);
|
|
26944
27387
|
const handleAddressSelect = event => {
|
|
26945
27388
|
dispatch({
|
|
26946
27389
|
type: SELECT_ADDRESS,
|
|
@@ -26983,7 +27426,7 @@ const AddressSelectSubmit = _ref => {
|
|
|
26983
27426
|
selectedAddressId,
|
|
26984
27427
|
isSubmitting
|
|
26985
27428
|
}
|
|
26986
|
-
} = useContext(store$
|
|
27429
|
+
} = useContext(store$6);
|
|
26987
27430
|
const {
|
|
26988
27431
|
t
|
|
26989
27432
|
} = useTranslation("address");
|
|
@@ -27079,7 +27522,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
27079
27522
|
}
|
|
27080
27523
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
27081
27524
|
};
|
|
27082
|
-
const initialState$
|
|
27525
|
+
const initialState$5 = {
|
|
27083
27526
|
paymentMethods: [],
|
|
27084
27527
|
selectedPaymentMethodId: null,
|
|
27085
27528
|
isSubmitting: false,
|
|
@@ -27088,10 +27531,10 @@ const initialState$4 = {
|
|
|
27088
27531
|
content: ""
|
|
27089
27532
|
}
|
|
27090
27533
|
};
|
|
27091
|
-
const store$
|
|
27534
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
27092
27535
|
const {
|
|
27093
|
-
Provider: Provider$
|
|
27094
|
-
} = store$
|
|
27536
|
+
Provider: Provider$5
|
|
27537
|
+
} = store$5;
|
|
27095
27538
|
const PaymentMethodSelectContainer = _ref => {
|
|
27096
27539
|
let {
|
|
27097
27540
|
style,
|
|
@@ -27144,7 +27587,7 @@ const PaymentMethodSelectContainer = _ref => {
|
|
|
27144
27587
|
default:
|
|
27145
27588
|
return state;
|
|
27146
27589
|
}
|
|
27147
|
-
}, initialState$
|
|
27590
|
+
}, initialState$5);
|
|
27148
27591
|
useEffect(() => {
|
|
27149
27592
|
var _window$Pelcro$user$r3;
|
|
27150
27593
|
dispatch({
|
|
@@ -27157,16 +27600,16 @@ const PaymentMethodSelectContainer = _ref => {
|
|
|
27157
27600
|
...style
|
|
27158
27601
|
},
|
|
27159
27602
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
27160
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
27603
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
27161
27604
|
value: {
|
|
27162
27605
|
state,
|
|
27163
27606
|
dispatch
|
|
27164
27607
|
}
|
|
27165
27608
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
27166
|
-
store: store$
|
|
27609
|
+
store: store$5,
|
|
27167
27610
|
key: i
|
|
27168
27611
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
27169
|
-
store: store$
|
|
27612
|
+
store: store$5
|
|
27170
27613
|
})));
|
|
27171
27614
|
};
|
|
27172
27615
|
|
|
@@ -27180,7 +27623,7 @@ const PaymentMethodSelectList = () => {
|
|
|
27180
27623
|
paymentMethods,
|
|
27181
27624
|
selectedPaymentMethodId
|
|
27182
27625
|
}
|
|
27183
|
-
} = useContext(store$
|
|
27626
|
+
} = useContext(store$5);
|
|
27184
27627
|
const handlePaymentMethodSelect = event => {
|
|
27185
27628
|
dispatch({
|
|
27186
27629
|
type: SELECT_PAYMENT_METHOD,
|
|
@@ -27228,7 +27671,7 @@ const PaymentMethodSelectSubmit = _ref => {
|
|
|
27228
27671
|
selectedPaymentMethodId,
|
|
27229
27672
|
isSubmitting
|
|
27230
27673
|
}
|
|
27231
|
-
} = useContext(store$
|
|
27674
|
+
} = useContext(store$5);
|
|
27232
27675
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27233
27676
|
onClick: () => {
|
|
27234
27677
|
dispatch({
|
|
@@ -27246,70 +27689,490 @@ const PaymentMethodSelectView = props => {
|
|
|
27246
27689
|
t
|
|
27247
27690
|
} = useTranslation("paymentMethod");
|
|
27248
27691
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27249
|
-
id: "pelcro-payment-method-select-view"
|
|
27692
|
+
id: "pelcro-payment-method-select-view"
|
|
27693
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27694
|
+
className: "plc-mb-6 plc-space-y-2 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
27695
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27696
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
27697
|
+
}, t("select.title")), /*#__PURE__*/React__default.createElement("p", null, t("select.subtitle"))), /*#__PURE__*/React__default.createElement("form", {
|
|
27698
|
+
action: "javascript:void(0);",
|
|
27699
|
+
className: "plc-mt-2 pelcro-form"
|
|
27700
|
+
}, /*#__PURE__*/React__default.createElement(PaymentMethodSelectContainer, props, /*#__PURE__*/React__default.createElement(PaymentMethodSelectList, null), /*#__PURE__*/React__default.createElement("div", {
|
|
27701
|
+
className: "plc-flex plc-justify-center plc-mt-4"
|
|
27702
|
+
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
27703
|
+
id: "pelcro-add-payment-method",
|
|
27704
|
+
onClick: props.onAddNewPaymentMethod
|
|
27705
|
+
}, t("select.buttons.addPaymentMethod"))), /*#__PURE__*/React__default.createElement(PaymentMethodSelectSubmit, {
|
|
27706
|
+
role: "submit",
|
|
27707
|
+
className: "plc-w-full plc-mt-4",
|
|
27708
|
+
id: "pelcro-submit"
|
|
27709
|
+
}))));
|
|
27710
|
+
};
|
|
27711
|
+
|
|
27712
|
+
const PaymentMethodSelectModal = _ref => {
|
|
27713
|
+
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
27714
|
+
let {
|
|
27715
|
+
onDisplay,
|
|
27716
|
+
onClose,
|
|
27717
|
+
...otherProps
|
|
27718
|
+
} = _ref;
|
|
27719
|
+
const {
|
|
27720
|
+
switchToCheckoutForm,
|
|
27721
|
+
set,
|
|
27722
|
+
plan,
|
|
27723
|
+
order
|
|
27724
|
+
} = usePelcro();
|
|
27725
|
+
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;
|
|
27726
|
+
useEffect(() => {
|
|
27727
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
|
|
27728
|
+
switchToCheckoutForm();
|
|
27729
|
+
}
|
|
27730
|
+
}, []);
|
|
27731
|
+
const onSuccess = selectedPaymentMethodId => {
|
|
27732
|
+
var _otherProps$onSuccess;
|
|
27733
|
+
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, selectedPaymentMethodId);
|
|
27734
|
+
switchToCheckoutForm();
|
|
27735
|
+
};
|
|
27736
|
+
const onAddNewPaymentMethod = () => {
|
|
27737
|
+
set({
|
|
27738
|
+
selectedPaymentMethodId: null
|
|
27739
|
+
});
|
|
27740
|
+
switchToCheckoutForm();
|
|
27741
|
+
};
|
|
27742
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
27743
|
+
onDisplay: onDisplay,
|
|
27744
|
+
onClose: onClose,
|
|
27745
|
+
id: "pelcro-payment-method-select-modal"
|
|
27746
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodSelectView, Object.assign({
|
|
27747
|
+
onAddNewPaymentMethod: onAddNewPaymentMethod
|
|
27748
|
+
}, otherProps, {
|
|
27749
|
+
onSuccess: onSuccess
|
|
27750
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
27751
|
+
};
|
|
27752
|
+
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
27753
|
+
|
|
27754
|
+
const initialState$4 = {
|
|
27755
|
+
paymentMethods: [],
|
|
27756
|
+
selectedPaymentMethodId: null,
|
|
27757
|
+
isSubmitting: false,
|
|
27758
|
+
deleteOption: "",
|
|
27759
|
+
disableSubmit: false,
|
|
27760
|
+
isLoading: false,
|
|
27761
|
+
skeletonLoader: true,
|
|
27762
|
+
alert: {
|
|
27763
|
+
type: "error",
|
|
27764
|
+
content: ""
|
|
27765
|
+
}
|
|
27766
|
+
};
|
|
27767
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
27768
|
+
const {
|
|
27769
|
+
Provider: Provider$4
|
|
27770
|
+
} = store$4;
|
|
27771
|
+
const PaymentMethodDeleteContainer = _ref => {
|
|
27772
|
+
let {
|
|
27773
|
+
style,
|
|
27774
|
+
className = "",
|
|
27775
|
+
onSuccess = () => {},
|
|
27776
|
+
onFailure = () => {},
|
|
27777
|
+
children
|
|
27778
|
+
} = _ref;
|
|
27779
|
+
const {
|
|
27780
|
+
paymentMethodToDelete
|
|
27781
|
+
} = usePelcro();
|
|
27782
|
+
useEffect(() => {
|
|
27783
|
+
window.Pelcro.paymentMethods.list({
|
|
27784
|
+
auth_token: window.Pelcro.user.read().auth_token
|
|
27785
|
+
}, (err, res) => {
|
|
27786
|
+
if (err) {
|
|
27787
|
+
return console.error(err);
|
|
27788
|
+
}
|
|
27789
|
+
if (res) {
|
|
27790
|
+
dispatch({
|
|
27791
|
+
type: SET_PAYMENT_METHODS,
|
|
27792
|
+
payload: res.data
|
|
27793
|
+
});
|
|
27794
|
+
dispatch({
|
|
27795
|
+
type: SKELETON_LOADER,
|
|
27796
|
+
payload: false
|
|
27797
|
+
});
|
|
27798
|
+
if (res.data.length !== 1) {
|
|
27799
|
+
dispatch({
|
|
27800
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
27801
|
+
payload: "select"
|
|
27802
|
+
});
|
|
27803
|
+
} else {
|
|
27804
|
+
dispatch({
|
|
27805
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
27806
|
+
payload: "add"
|
|
27807
|
+
});
|
|
27808
|
+
}
|
|
27809
|
+
}
|
|
27810
|
+
});
|
|
27811
|
+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
27812
|
+
|
|
27813
|
+
const setDefaultPaymentMethod = () => {
|
|
27814
|
+
const {
|
|
27815
|
+
selectedPaymentMethodId: paymentMethodId
|
|
27816
|
+
} = state;
|
|
27817
|
+
window.Pelcro.paymentMethods.update({
|
|
27818
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
27819
|
+
payment_method_id: paymentMethodId,
|
|
27820
|
+
is_default: true
|
|
27821
|
+
}, (err, res) => {
|
|
27822
|
+
if (err) {
|
|
27823
|
+
onFailure(err);
|
|
27824
|
+
return dispatch({
|
|
27825
|
+
type: SHOW_ALERT,
|
|
27826
|
+
payload: {
|
|
27827
|
+
type: "error",
|
|
27828
|
+
content: getErrorMessages(err)
|
|
27829
|
+
}
|
|
27830
|
+
});
|
|
27831
|
+
}
|
|
27832
|
+
setTimeout(() => {
|
|
27833
|
+
deletePaymentMethod();
|
|
27834
|
+
}, 2000);
|
|
27835
|
+
});
|
|
27836
|
+
};
|
|
27837
|
+
const deletePaymentMethod = () => {
|
|
27838
|
+
const {
|
|
27839
|
+
id: paymentMethodId
|
|
27840
|
+
} = paymentMethodToDelete;
|
|
27841
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
27842
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
27843
|
+
payment_method_id: paymentMethodId
|
|
27844
|
+
}, (err, res) => {
|
|
27845
|
+
if (err) {
|
|
27846
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
27847
|
+
return dispatch({
|
|
27848
|
+
type: SHOW_ALERT,
|
|
27849
|
+
payload: {
|
|
27850
|
+
type: "error",
|
|
27851
|
+
content: getErrorMessages(err)
|
|
27852
|
+
}
|
|
27853
|
+
});
|
|
27854
|
+
}
|
|
27855
|
+
dispatch({
|
|
27856
|
+
type: DISABLE_SUBMIT,
|
|
27857
|
+
payload: false
|
|
27858
|
+
});
|
|
27859
|
+
dispatch({
|
|
27860
|
+
type: LOADING,
|
|
27861
|
+
payload: false
|
|
27862
|
+
});
|
|
27863
|
+
onSuccess(res);
|
|
27864
|
+
});
|
|
27865
|
+
};
|
|
27866
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
27867
|
+
switch (action.type) {
|
|
27868
|
+
case SELECT_PAYMENT_METHOD:
|
|
27869
|
+
return lib_7({
|
|
27870
|
+
...state,
|
|
27871
|
+
selectedPaymentMethodId: action.payload
|
|
27872
|
+
});
|
|
27873
|
+
case HANDLE_SUBMIT:
|
|
27874
|
+
return lib_5({
|
|
27875
|
+
...state,
|
|
27876
|
+
disableSubmit: true,
|
|
27877
|
+
isLoading: true
|
|
27878
|
+
}, (state, dispatch) => setDefaultPaymentMethod());
|
|
27879
|
+
case SET_DELETE_PAYMENT_METHOD_OPTION:
|
|
27880
|
+
return lib_7({
|
|
27881
|
+
...state,
|
|
27882
|
+
deleteOption: action.payload
|
|
27883
|
+
});
|
|
27884
|
+
case SET_PAYMENT_METHODS:
|
|
27885
|
+
return lib_7({
|
|
27886
|
+
...state,
|
|
27887
|
+
paymentMethods: action.payload
|
|
27888
|
+
});
|
|
27889
|
+
case SHOW_ALERT:
|
|
27890
|
+
return lib_7({
|
|
27891
|
+
...state,
|
|
27892
|
+
alert: action.payload
|
|
27893
|
+
});
|
|
27894
|
+
case DISABLE_SUBMIT:
|
|
27895
|
+
return lib_7({
|
|
27896
|
+
...state,
|
|
27897
|
+
disableSubmit: action.payload
|
|
27898
|
+
});
|
|
27899
|
+
case LOADING:
|
|
27900
|
+
return lib_7({
|
|
27901
|
+
...state,
|
|
27902
|
+
isLoading: action.payload
|
|
27903
|
+
});
|
|
27904
|
+
case SKELETON_LOADER:
|
|
27905
|
+
return lib_7({
|
|
27906
|
+
...state,
|
|
27907
|
+
skeletonLoader: action.payload
|
|
27908
|
+
});
|
|
27909
|
+
default:
|
|
27910
|
+
return state;
|
|
27911
|
+
}
|
|
27912
|
+
}, initialState$4);
|
|
27913
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
27914
|
+
style: {
|
|
27915
|
+
...style
|
|
27916
|
+
},
|
|
27917
|
+
className: `pelcro-container pelcro-payment-method-delete-container ${className}`
|
|
27918
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
27919
|
+
value: {
|
|
27920
|
+
state,
|
|
27921
|
+
dispatch
|
|
27922
|
+
}
|
|
27923
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
27924
|
+
store: store$4,
|
|
27925
|
+
key: i
|
|
27926
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
27927
|
+
store: store$4
|
|
27928
|
+
})));
|
|
27929
|
+
};
|
|
27930
|
+
|
|
27931
|
+
const PaymentMethodDeleteSubmit = _ref => {
|
|
27932
|
+
let {
|
|
27933
|
+
name,
|
|
27934
|
+
onClick,
|
|
27935
|
+
...otherProps
|
|
27936
|
+
} = _ref;
|
|
27937
|
+
const {
|
|
27938
|
+
t
|
|
27939
|
+
} = useTranslation("paymentMethod");
|
|
27940
|
+
const {
|
|
27941
|
+
dispatch,
|
|
27942
|
+
state: {
|
|
27943
|
+
isLoading,
|
|
27944
|
+
isDisabled
|
|
27945
|
+
}
|
|
27946
|
+
} = useContext(store$4);
|
|
27947
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27948
|
+
onClick: () => {
|
|
27949
|
+
dispatch({
|
|
27950
|
+
type: HANDLE_SUBMIT
|
|
27951
|
+
});
|
|
27952
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
27953
|
+
},
|
|
27954
|
+
disabled: isDisabled,
|
|
27955
|
+
isLoading: isLoading,
|
|
27956
|
+
className: "plc-w-full"
|
|
27957
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("select.buttons.selectPaymentMethod"));
|
|
27958
|
+
};
|
|
27959
|
+
|
|
27960
|
+
const PaymentMethodDeleteList = props => {
|
|
27961
|
+
const {
|
|
27962
|
+
t
|
|
27963
|
+
} = useTranslation("paymentMethod");
|
|
27964
|
+
const {
|
|
27965
|
+
dispatch,
|
|
27966
|
+
state: {
|
|
27967
|
+
deleteOption,
|
|
27968
|
+
selectedPaymentMethodId,
|
|
27969
|
+
paymentMethods,
|
|
27970
|
+
skeletonLoader
|
|
27971
|
+
}
|
|
27972
|
+
} = useContext(store$4);
|
|
27973
|
+
const {
|
|
27974
|
+
paymentMethodToDelete
|
|
27975
|
+
} = usePelcro();
|
|
27976
|
+
const handlePaymentMethodSelect = event => {
|
|
27977
|
+
dispatch({
|
|
27978
|
+
type: SELECT_PAYMENT_METHOD,
|
|
27979
|
+
payload: event.target.value
|
|
27980
|
+
});
|
|
27981
|
+
};
|
|
27982
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, skeletonLoader ? /*#__PURE__*/React__default.createElement("div", {
|
|
27983
|
+
className: "plc-w-full plc-h-40 plc-bg-gray-300 plc-rounded-md plc-animate-pulse"
|
|
27984
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paymentMethods && deleteOption === "select" && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
27985
|
+
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"
|
|
27986
|
+
}, paymentMethods.filter(paymentMethod => (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) !== (paymentMethodToDelete === null || paymentMethodToDelete === void 0 ? void 0 : paymentMethodToDelete.id)).map(paymentMethod => {
|
|
27987
|
+
var _paymentMethod$proper, _paymentMethod$proper2, _paymentMethod$proper3, _paymentMethod$proper4;
|
|
27988
|
+
const isSelected = selectedPaymentMethodId === String(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
27989
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
27990
|
+
key: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
|
|
27991
|
+
className: `plc-p-2 plc-pl-4 plc-shadow-md plc-text-gray-900 plc-rounded pelcro-payment-method-wrapper`
|
|
27992
|
+
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
27993
|
+
className: "plc-flex plc-items-center pelcro-select-payment-method-radio",
|
|
27994
|
+
labelClassName: "plc-flex plc-items-center plc-space-x-2 plc-cursor-pointer plc-w-full",
|
|
27995
|
+
id: `pelcro-payment-method-select-${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id}`,
|
|
27996
|
+
name: "paymentMethod",
|
|
27997
|
+
checked: isSelected,
|
|
27998
|
+
value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
|
|
27999
|
+
onChange: handlePaymentMethodSelect
|
|
28000
|
+
}, getPaymentCardIcon$1((_paymentMethod$proper = paymentMethod.properties) === null || _paymentMethod$proper === void 0 ? void 0 : _paymentMethod$proper.brand), /*#__PURE__*/React__default.createElement("div", {
|
|
28001
|
+
className: "plc-flex plc-flex-col plc-text-lg pelcro-payment-method-details"
|
|
28002
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
28003
|
+
className: "plc-font-semibold"
|
|
28004
|
+
}, "\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", {
|
|
28005
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
28006
|
+
}, 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))));
|
|
28007
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
28008
|
+
className: "plc-px-3"
|
|
28009
|
+
}, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteSubmit, null))), deleteOption === "add" && /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
28010
|
+
type: "deletePaymentSource",
|
|
28011
|
+
showCoupon: false,
|
|
28012
|
+
showExternalPaymentMethods: false,
|
|
28013
|
+
showApplePayButton: false,
|
|
28014
|
+
onDisplay: props.onDisplay,
|
|
28015
|
+
onFailure: props.onFailure,
|
|
28016
|
+
onSuccess: props.onSuccess,
|
|
28017
|
+
setAsDefault: true
|
|
28018
|
+
})));
|
|
28019
|
+
};
|
|
28020
|
+
|
|
28021
|
+
const PaymentMethodDeleteOptions = _ref => {
|
|
28022
|
+
const {
|
|
28023
|
+
state: {
|
|
28024
|
+
deleteOption,
|
|
28025
|
+
paymentMethods,
|
|
28026
|
+
skeletonLoader
|
|
28027
|
+
},
|
|
28028
|
+
dispatch
|
|
28029
|
+
} = useContext(store$4);
|
|
28030
|
+
const {
|
|
28031
|
+
t
|
|
28032
|
+
} = useTranslation("paymentMethod");
|
|
28033
|
+
const handleOptionSelect = event => {
|
|
28034
|
+
dispatch({
|
|
28035
|
+
type: SET_DELETE_PAYMENT_METHOD_OPTION,
|
|
28036
|
+
payload: event.target.value
|
|
28037
|
+
});
|
|
28038
|
+
};
|
|
28039
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28040
|
+
className: "plc-text-left plc-mr-auto plc-mb-6"
|
|
28041
|
+
}, skeletonLoader ? /*#__PURE__*/React__default.createElement("div", {
|
|
28042
|
+
className: "plc-flex plc-flex-col plc-space-y-3"
|
|
28043
|
+
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
28044
|
+
className: "plc-animate-puls"
|
|
28045
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28046
|
+
className: "plc-w-36 plc-bg-gray-300 plc-h-4 plc-rounded-md plc-animate-pulse"
|
|
28047
|
+
})), /*#__PURE__*/React__default.createElement(Radio, {
|
|
28048
|
+
className: "plc-animate-pulse"
|
|
28049
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28050
|
+
className: "plc-w-36 plc-bg-gray-300 plc-h-4 plc-rounded-md plc-animate-pulse"
|
|
28051
|
+
}))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paymentMethods && paymentMethods.length !== 1 && /*#__PURE__*/React__default.createElement(Radio, {
|
|
28052
|
+
onChange: handleOptionSelect,
|
|
28053
|
+
checked: deleteOption === "select",
|
|
28054
|
+
value: "select"
|
|
28055
|
+
}, t("delete.options.select")), /*#__PURE__*/React__default.createElement(Radio, {
|
|
28056
|
+
onChange: handleOptionSelect,
|
|
28057
|
+
checked: deleteOption === "add",
|
|
28058
|
+
value: "add"
|
|
28059
|
+
}, t("delete.options.add"))));
|
|
28060
|
+
};
|
|
28061
|
+
|
|
28062
|
+
function PaymentMethodDeleteView(props) {
|
|
28063
|
+
const [t] = useTranslation("paymentMethod");
|
|
28064
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28065
|
+
id: "pelcro-payment-method-delete-view"
|
|
28066
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28067
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
28068
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
28069
|
+
className: "plc-text-2xl plc-font-semibold plc-mb-2"
|
|
28070
|
+
}, t("delete.title")), /*#__PURE__*/React__default.createElement("p", {
|
|
28071
|
+
className: ""
|
|
28072
|
+
}, t("delete.subtitle"))), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, {
|
|
28073
|
+
className: "plc-mb-2"
|
|
28074
|
+
}), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteOptions, null), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteList, {
|
|
28075
|
+
onSuccess: props.onSuccess
|
|
28076
|
+
})));
|
|
28077
|
+
}
|
|
28078
|
+
|
|
28079
|
+
const PaymentMethodDeleteModal = props => {
|
|
28080
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
28081
|
+
const {
|
|
28082
|
+
t
|
|
28083
|
+
} = useTranslation("paymentMethod");
|
|
28084
|
+
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;
|
|
28085
|
+
const {
|
|
28086
|
+
resetView
|
|
28087
|
+
} = usePelcro();
|
|
28088
|
+
const onSuccess = res => {
|
|
28089
|
+
var _props$onSuccess;
|
|
28090
|
+
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
28091
|
+
if (enableReactGA4) {
|
|
28092
|
+
ReactGA4.event("Delete payment card", {
|
|
28093
|
+
nonInteraction: true
|
|
28094
|
+
});
|
|
28095
|
+
} else {
|
|
28096
|
+
var _ReactGA$event;
|
|
28097
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
28098
|
+
category: "ACTIONS",
|
|
28099
|
+
action: "Delete payment card",
|
|
28100
|
+
nonInteraction: true
|
|
28101
|
+
});
|
|
28102
|
+
}
|
|
28103
|
+
notify$1.success(t("delete.paymentMethodReplaced"));
|
|
28104
|
+
resetView();
|
|
28105
|
+
};
|
|
28106
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
28107
|
+
id: "pelcro-payment-method-delete-modal",
|
|
28108
|
+
onDisplay: props.onDisplay,
|
|
28109
|
+
onClose: props.onClose
|
|
28110
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteView, Object.assign({}, props, {
|
|
28111
|
+
onSuccess: onSuccess
|
|
28112
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
28113
|
+
};
|
|
28114
|
+
PaymentMethodDeleteModal.viewId = "payment-method-delete";
|
|
28115
|
+
|
|
28116
|
+
const PaymentMethodCreateContainer = props => {
|
|
28117
|
+
return /*#__PURE__*/React__default.createElement(PaymentMethodContainer, Object.assign({
|
|
28118
|
+
type: "createPaymentSource",
|
|
28119
|
+
className: "pelcro-payment-create-container"
|
|
28120
|
+
}, props));
|
|
28121
|
+
};
|
|
28122
|
+
|
|
28123
|
+
/**
|
|
28124
|
+
*
|
|
28125
|
+
*/
|
|
28126
|
+
function PaymentMethodCreateView(props) {
|
|
28127
|
+
const [t] = useTranslation("paymentMethod");
|
|
28128
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28129
|
+
id: "pelcro-payment-method-create-view"
|
|
27250
28130
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27251
|
-
className: "plc-mb-
|
|
28131
|
+
className: "plc-mb-2 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
27252
28132
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27253
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
27254
|
-
}, t("
|
|
27255
|
-
|
|
27256
|
-
|
|
27257
|
-
|
|
27258
|
-
|
|
27259
|
-
|
|
27260
|
-
|
|
27261
|
-
|
|
27262
|
-
}
|
|
27263
|
-
|
|
27264
|
-
className: "plc-w-full plc-mt-4",
|
|
27265
|
-
id: "pelcro-submit"
|
|
27266
|
-
}))));
|
|
27267
|
-
};
|
|
28133
|
+
className: "plc-text-2xl plc-font-semibold "
|
|
28134
|
+
}, t("create.title")), /*#__PURE__*/React__default.createElement("p", null, t("create.subtitle"))), /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
28135
|
+
type: "createPaymentSource",
|
|
28136
|
+
showCoupon: false,
|
|
28137
|
+
showExternalPaymentMethods: false,
|
|
28138
|
+
showApplePayButton: false,
|
|
28139
|
+
onDisplay: props.onDisplay,
|
|
28140
|
+
onFailure: props.onFailure,
|
|
28141
|
+
onSuccess: props.onSuccess
|
|
28142
|
+
}));
|
|
28143
|
+
}
|
|
27268
28144
|
|
|
27269
|
-
const
|
|
27270
|
-
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
27271
|
-
|
|
27272
|
-
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
|
|
27276
|
-
|
|
27277
|
-
|
|
27278
|
-
|
|
27279
|
-
|
|
27280
|
-
|
|
27281
|
-
|
|
27282
|
-
|
|
27283
|
-
|
|
27284
|
-
|
|
27285
|
-
|
|
28145
|
+
const PaymentMethodCreateModal = props => {
|
|
28146
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
28147
|
+
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;
|
|
28148
|
+
const onSuccess = res => {
|
|
28149
|
+
var _props$onSuccess;
|
|
28150
|
+
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
28151
|
+
if (enableReactGA4) {
|
|
28152
|
+
ReactGA4.event("Created payment card", {
|
|
28153
|
+
nonInteraction: true
|
|
28154
|
+
});
|
|
28155
|
+
} else {
|
|
28156
|
+
var _ReactGA$event;
|
|
28157
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
28158
|
+
category: "ACTIONS",
|
|
28159
|
+
action: "Created payment card",
|
|
28160
|
+
nonInteraction: true
|
|
28161
|
+
});
|
|
27286
28162
|
}
|
|
27287
|
-
}, []);
|
|
27288
|
-
const onSuccess = selectedPaymentMethodId => {
|
|
27289
|
-
var _otherProps$onSuccess;
|
|
27290
|
-
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, selectedPaymentMethodId);
|
|
27291
|
-
switchToCheckoutForm();
|
|
27292
|
-
};
|
|
27293
|
-
const onAddNewPaymentMethod = () => {
|
|
27294
|
-
set({
|
|
27295
|
-
selectedPaymentMethodId: null
|
|
27296
|
-
});
|
|
27297
|
-
switchToCheckoutForm();
|
|
27298
28163
|
};
|
|
27299
28164
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(
|
|
27304
|
-
onAddNewPaymentMethod: onAddNewPaymentMethod
|
|
27305
|
-
}, otherProps, {
|
|
28165
|
+
id: "pelcro-payment-method-create-modal",
|
|
28166
|
+
onDisplay: props.onDisplay,
|
|
28167
|
+
onClose: props.onClose
|
|
28168
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodCreateView, Object.assign({}, props, {
|
|
27306
28169
|
onSuccess: onSuccess
|
|
27307
28170
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
27308
28171
|
};
|
|
27309
|
-
|
|
28172
|
+
PaymentMethodCreateModal.viewId = "payment-method-create";
|
|
27310
28173
|
|
|
27311
|
-
function _extends$
|
|
27312
|
-
_extends$
|
|
28174
|
+
function _extends$i() {
|
|
28175
|
+
_extends$i = Object.assign || function (target) {
|
|
27313
28176
|
for (var i = 1; i < arguments.length; i++) {
|
|
27314
28177
|
var source = arguments[i];
|
|
27315
28178
|
|
|
@@ -27323,7 +28186,7 @@ function _extends$h() {
|
|
|
27323
28186
|
return target;
|
|
27324
28187
|
};
|
|
27325
28188
|
|
|
27326
|
-
return _extends$
|
|
28189
|
+
return _extends$i.apply(this, arguments);
|
|
27327
28190
|
}
|
|
27328
28191
|
|
|
27329
28192
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -27507,7 +28370,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
27507
28370
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
27508
28371
|
return null;
|
|
27509
28372
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
27510
|
-
return _render(_extends$
|
|
28373
|
+
return _render(_extends$i({}, _rest, {
|
|
27511
28374
|
hidden: true,
|
|
27512
28375
|
style: {
|
|
27513
28376
|
display: 'none'
|
|
@@ -28035,7 +28898,7 @@ function TransitionChild(props) {
|
|
|
28035
28898
|
var passthroughProps = rest;
|
|
28036
28899
|
return React__default.createElement(NestingContext.Provider, {
|
|
28037
28900
|
value: nesting
|
|
28038
|
-
}, render(_extends$
|
|
28901
|
+
}, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
28039
28902
|
}
|
|
28040
28903
|
|
|
28041
28904
|
function Transition(props) {
|
|
@@ -28079,7 +28942,7 @@ function Transition(props) {
|
|
|
28079
28942
|
value: nestingBag
|
|
28080
28943
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
28081
28944
|
value: transitionBag
|
|
28082
|
-
}, render(_extends$
|
|
28945
|
+
}, render(_extends$i({}, sharedProps, {
|
|
28083
28946
|
as: Fragment,
|
|
28084
28947
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
28085
28948
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -28206,12 +29069,12 @@ var ActionTypes;
|
|
|
28206
29069
|
})(ActionTypes || (ActionTypes = {}));
|
|
28207
29070
|
|
|
28208
29071
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
28209
|
-
return _extends$
|
|
29072
|
+
return _extends$i({}, state, {
|
|
28210
29073
|
activeItemIndex: null,
|
|
28211
29074
|
menuState: MenuStates.Closed
|
|
28212
29075
|
});
|
|
28213
29076
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
28214
|
-
return _extends$
|
|
29077
|
+
return _extends$i({}, state, {
|
|
28215
29078
|
menuState: MenuStates.Open
|
|
28216
29079
|
});
|
|
28217
29080
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -28230,7 +29093,7 @@ var ActionTypes;
|
|
|
28230
29093
|
}
|
|
28231
29094
|
});
|
|
28232
29095
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
28233
|
-
return _extends$
|
|
29096
|
+
return _extends$i({}, state, {
|
|
28234
29097
|
searchQuery: '',
|
|
28235
29098
|
activeItemIndex: activeItemIndex
|
|
28236
29099
|
});
|
|
@@ -28241,19 +29104,19 @@ var ActionTypes;
|
|
|
28241
29104
|
|
|
28242
29105
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
28243
29106
|
});
|
|
28244
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
29107
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
|
|
28245
29108
|
searchQuery: searchQuery
|
|
28246
29109
|
});
|
|
28247
|
-
return _extends$
|
|
29110
|
+
return _extends$i({}, state, {
|
|
28248
29111
|
searchQuery: searchQuery,
|
|
28249
29112
|
activeItemIndex: match
|
|
28250
29113
|
});
|
|
28251
29114
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
28252
|
-
return _extends$
|
|
29115
|
+
return _extends$i({}, state, {
|
|
28253
29116
|
searchQuery: ''
|
|
28254
29117
|
});
|
|
28255
29118
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
28256
|
-
return _extends$
|
|
29119
|
+
return _extends$i({}, state, {
|
|
28257
29120
|
items: [].concat(state.items, [{
|
|
28258
29121
|
id: action.id,
|
|
28259
29122
|
dataRef: action.dataRef
|
|
@@ -28266,7 +29129,7 @@ var ActionTypes;
|
|
|
28266
29129
|
return a.id === action.id;
|
|
28267
29130
|
});
|
|
28268
29131
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
28269
|
-
return _extends$
|
|
29132
|
+
return _extends$i({}, state, {
|
|
28270
29133
|
items: nextItems,
|
|
28271
29134
|
activeItemIndex: function () {
|
|
28272
29135
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -28305,19 +29168,19 @@ var ActionTypes$1;
|
|
|
28305
29168
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
28306
29169
|
if (state.disabled) return state;
|
|
28307
29170
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
28308
|
-
return _extends$
|
|
29171
|
+
return _extends$i({}, state, {
|
|
28309
29172
|
activeOptionIndex: null,
|
|
28310
29173
|
listboxState: ListboxStates.Closed
|
|
28311
29174
|
});
|
|
28312
29175
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
28313
29176
|
if (state.disabled) return state;
|
|
28314
29177
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
28315
|
-
return _extends$
|
|
29178
|
+
return _extends$i({}, state, {
|
|
28316
29179
|
listboxState: ListboxStates.Open
|
|
28317
29180
|
});
|
|
28318
29181
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
28319
29182
|
if (state.disabled === action.disabled) return state;
|
|
28320
|
-
return _extends$
|
|
29183
|
+
return _extends$i({}, state, {
|
|
28321
29184
|
disabled: action.disabled
|
|
28322
29185
|
});
|
|
28323
29186
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -28338,7 +29201,7 @@ var ActionTypes$1;
|
|
|
28338
29201
|
}
|
|
28339
29202
|
});
|
|
28340
29203
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
28341
|
-
return _extends$
|
|
29204
|
+
return _extends$i({}, state, {
|
|
28342
29205
|
searchQuery: '',
|
|
28343
29206
|
activeOptionIndex: activeOptionIndex
|
|
28344
29207
|
});
|
|
@@ -28351,10 +29214,10 @@ var ActionTypes$1;
|
|
|
28351
29214
|
|
|
28352
29215
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
28353
29216
|
});
|
|
28354
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
29217
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
|
|
28355
29218
|
searchQuery: searchQuery
|
|
28356
29219
|
});
|
|
28357
|
-
return _extends$
|
|
29220
|
+
return _extends$i({}, state, {
|
|
28358
29221
|
searchQuery: searchQuery,
|
|
28359
29222
|
activeOptionIndex: match
|
|
28360
29223
|
});
|
|
@@ -28362,11 +29225,11 @@ var ActionTypes$1;
|
|
|
28362
29225
|
if (state.disabled) return state;
|
|
28363
29226
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
28364
29227
|
if (state.searchQuery === '') return state;
|
|
28365
|
-
return _extends$
|
|
29228
|
+
return _extends$i({}, state, {
|
|
28366
29229
|
searchQuery: ''
|
|
28367
29230
|
});
|
|
28368
29231
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
28369
|
-
return _extends$
|
|
29232
|
+
return _extends$i({}, state, {
|
|
28370
29233
|
options: [].concat(state.options, [{
|
|
28371
29234
|
id: action.id,
|
|
28372
29235
|
dataRef: action.dataRef
|
|
@@ -28379,7 +29242,7 @@ var ActionTypes$1;
|
|
|
28379
29242
|
return a.id === action.id;
|
|
28380
29243
|
});
|
|
28381
29244
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
28382
|
-
return _extends$
|
|
29245
|
+
return _extends$i({}, state, {
|
|
28383
29246
|
options: nextOptions,
|
|
28384
29247
|
activeOptionIndex: function () {
|
|
28385
29248
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -28398,6 +29261,7 @@ var GroupContext = /*#__PURE__*/createContext(null);
|
|
|
28398
29261
|
GroupContext.displayName = 'GroupContext';
|
|
28399
29262
|
|
|
28400
29263
|
const getPaymentCardIcon = name => {
|
|
29264
|
+
var _icons$name$toLowerCa;
|
|
28401
29265
|
const icons = {
|
|
28402
29266
|
visa: /*#__PURE__*/React__default.createElement("svg", {
|
|
28403
29267
|
className: "plc-w-12",
|
|
@@ -28424,7 +29288,7 @@ const getPaymentCardIcon = name => {
|
|
|
28424
29288
|
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"
|
|
28425
29289
|
}))
|
|
28426
29290
|
};
|
|
28427
|
-
return name
|
|
29291
|
+
return (_icons$name$toLowerCa = icons[name === null || name === void 0 ? void 0 : name.toLowerCase()]) !== null && _icons$name$toLowerCa !== void 0 ? _icons$name$toLowerCa : /*#__PURE__*/React__default.createElement("svg", {
|
|
28428
29292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28429
29293
|
className: "plc-w-12",
|
|
28430
29294
|
fill: "none",
|
|
@@ -28438,16 +29302,16 @@ const getPaymentCardIcon = name => {
|
|
|
28438
29302
|
}));
|
|
28439
29303
|
};
|
|
28440
29304
|
|
|
28441
|
-
var _path$
|
|
28442
|
-
function _extends$
|
|
29305
|
+
var _path$h;
|
|
29306
|
+
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); }
|
|
28443
29307
|
function SvgChevronRight(props) {
|
|
28444
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29308
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
28445
29309
|
className: "plc-w-6 plc-h-6",
|
|
28446
29310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28447
29311
|
fill: "none",
|
|
28448
29312
|
viewBox: "0 0 24 24",
|
|
28449
29313
|
stroke: "currentColor"
|
|
28450
|
-
}, props), _path$
|
|
29314
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
28451
29315
|
strokeLinecap: "round",
|
|
28452
29316
|
strokeLinejoin: "round",
|
|
28453
29317
|
strokeWidth: 2,
|
|
@@ -28676,16 +29540,16 @@ const SavedItems = _ref3 => {
|
|
|
28676
29540
|
});
|
|
28677
29541
|
};
|
|
28678
29542
|
|
|
28679
|
-
var _path$
|
|
28680
|
-
function _extends$
|
|
29543
|
+
var _path$g;
|
|
29544
|
+
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); }
|
|
28681
29545
|
function SvgRefresh(props) {
|
|
28682
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29546
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
28683
29547
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
28684
29548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28685
29549
|
fill: "none",
|
|
28686
29550
|
viewBox: "0 0 24 24",
|
|
28687
29551
|
stroke: "currentColor"
|
|
28688
|
-
}, props), _path$
|
|
29552
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
28689
29553
|
strokeLinecap: "round",
|
|
28690
29554
|
strokeLinejoin: "round",
|
|
28691
29555
|
strokeWidth: 2,
|
|
@@ -28693,31 +29557,31 @@ function SvgRefresh(props) {
|
|
|
28693
29557
|
})));
|
|
28694
29558
|
}
|
|
28695
29559
|
|
|
28696
|
-
var _path$
|
|
28697
|
-
function _extends$
|
|
29560
|
+
var _path$f;
|
|
29561
|
+
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); }
|
|
28698
29562
|
function SvgCalendar(props) {
|
|
28699
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29563
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
28700
29564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28701
29565
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
28702
29566
|
viewBox: "0 0 20 20",
|
|
28703
29567
|
fill: "currentColor"
|
|
28704
|
-
}, props), _path$
|
|
29568
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
28705
29569
|
fillRule: "evenodd",
|
|
28706
29570
|
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",
|
|
28707
29571
|
clipRule: "evenodd"
|
|
28708
29572
|
})));
|
|
28709
29573
|
}
|
|
28710
29574
|
|
|
28711
|
-
var _path$
|
|
28712
|
-
function _extends$
|
|
29575
|
+
var _path$e;
|
|
29576
|
+
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); }
|
|
28713
29577
|
function SvgPlus(props) {
|
|
28714
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29578
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
28715
29579
|
className: "plc-w-5 plc-h-5",
|
|
28716
29580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28717
29581
|
fill: "none",
|
|
28718
29582
|
viewBox: "0 0 24 24",
|
|
28719
29583
|
stroke: "currentColor"
|
|
28720
|
-
}, props), _path$
|
|
29584
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
28721
29585
|
strokeLinecap: "round",
|
|
28722
29586
|
strokeLinejoin: "round",
|
|
28723
29587
|
strokeWidth: 2,
|
|
@@ -29077,16 +29941,16 @@ Accordion.item = function AccordionItem(_ref2) {
|
|
|
29077
29941
|
}, content)) : null;
|
|
29078
29942
|
};
|
|
29079
29943
|
|
|
29080
|
-
var _path$
|
|
29081
|
-
function _extends$
|
|
29944
|
+
var _path$d;
|
|
29945
|
+
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); }
|
|
29082
29946
|
function SvgExit(props) {
|
|
29083
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29947
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
29084
29948
|
className: "plc-w-6 plc-h-6",
|
|
29085
29949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29086
29950
|
fill: "none",
|
|
29087
29951
|
viewBox: "0 0 24 24",
|
|
29088
29952
|
stroke: "currentColor"
|
|
29089
|
-
}, props), _path$
|
|
29953
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
29090
29954
|
strokeLinecap: "round",
|
|
29091
29955
|
strokeLinejoin: "round",
|
|
29092
29956
|
strokeWidth: 2,
|
|
@@ -29094,15 +29958,15 @@ function SvgExit(props) {
|
|
|
29094
29958
|
})));
|
|
29095
29959
|
}
|
|
29096
29960
|
|
|
29097
|
-
var _path$
|
|
29098
|
-
function _extends$
|
|
29961
|
+
var _path$c;
|
|
29962
|
+
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); }
|
|
29099
29963
|
function SvgUser(props) {
|
|
29100
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29964
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
29101
29965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29102
29966
|
fill: "none",
|
|
29103
29967
|
viewBox: "0 0 24 24",
|
|
29104
29968
|
stroke: "currentColor"
|
|
29105
|
-
}, props), _path$
|
|
29969
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
29106
29970
|
strokeLinecap: "round",
|
|
29107
29971
|
strokeLinejoin: "round",
|
|
29108
29972
|
strokeWidth: 2,
|
|
@@ -29110,16 +29974,16 @@ function SvgUser(props) {
|
|
|
29110
29974
|
})));
|
|
29111
29975
|
}
|
|
29112
29976
|
|
|
29113
|
-
var _path$
|
|
29114
|
-
function _extends$
|
|
29977
|
+
var _path$b;
|
|
29978
|
+
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); }
|
|
29115
29979
|
function SvgNewsletter(props) {
|
|
29116
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29980
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
29117
29981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29118
29982
|
className: "plc-h-5 plc-w-5",
|
|
29119
29983
|
fill: "none",
|
|
29120
29984
|
viewBox: "0 0 24 24",
|
|
29121
29985
|
stroke: "currentColor"
|
|
29122
|
-
}, props), _path$
|
|
29986
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
29123
29987
|
strokeLinecap: "round",
|
|
29124
29988
|
strokeLinejoin: "round",
|
|
29125
29989
|
strokeWidth: 2,
|
|
@@ -29127,16 +29991,16 @@ function SvgNewsletter(props) {
|
|
|
29127
29991
|
})));
|
|
29128
29992
|
}
|
|
29129
29993
|
|
|
29130
|
-
var _path$
|
|
29131
|
-
function _extends$
|
|
29994
|
+
var _path$a;
|
|
29995
|
+
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); }
|
|
29132
29996
|
function SvgDocument(props) {
|
|
29133
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
29997
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
29134
29998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29135
29999
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
29136
30000
|
fill: "none",
|
|
29137
30001
|
viewBox: "0 0 24 24",
|
|
29138
30002
|
stroke: "currentColor"
|
|
29139
|
-
}, props), _path$
|
|
30003
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
29140
30004
|
strokeLinecap: "round",
|
|
29141
30005
|
strokeLinejoin: "round",
|
|
29142
30006
|
strokeWidth: 2,
|
|
@@ -29144,16 +30008,16 @@ function SvgDocument(props) {
|
|
|
29144
30008
|
})));
|
|
29145
30009
|
}
|
|
29146
30010
|
|
|
29147
|
-
var _path$
|
|
29148
|
-
function _extends$
|
|
30011
|
+
var _path$9;
|
|
30012
|
+
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); }
|
|
29149
30013
|
function SvgPaymentCard(props) {
|
|
29150
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30014
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
29151
30015
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
29152
30016
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29153
30017
|
fill: "none",
|
|
29154
30018
|
viewBox: "0 0 24 24",
|
|
29155
30019
|
stroke: "currentColor"
|
|
29156
|
-
}, props), _path$
|
|
30020
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
29157
30021
|
strokeLinecap: "round",
|
|
29158
30022
|
strokeLinejoin: "round",
|
|
29159
30023
|
strokeWidth: 2,
|
|
@@ -29161,16 +30025,16 @@ function SvgPaymentCard(props) {
|
|
|
29161
30025
|
})));
|
|
29162
30026
|
}
|
|
29163
30027
|
|
|
29164
|
-
var _path$
|
|
29165
|
-
function _extends$
|
|
30028
|
+
var _path$8, _path2;
|
|
30029
|
+
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); }
|
|
29166
30030
|
function SvgLocationPin(props) {
|
|
29167
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30031
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
29168
30032
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
29169
30033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29170
30034
|
fill: "none",
|
|
29171
30035
|
viewBox: "0 0 24 24",
|
|
29172
30036
|
stroke: "currentColor"
|
|
29173
|
-
}, props), _path$
|
|
30037
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
29174
30038
|
strokeLinecap: "round",
|
|
29175
30039
|
strokeLinejoin: "round",
|
|
29176
30040
|
strokeWidth: 2,
|
|
@@ -29183,16 +30047,16 @@ function SvgLocationPin(props) {
|
|
|
29183
30047
|
})));
|
|
29184
30048
|
}
|
|
29185
30049
|
|
|
29186
|
-
var _path$
|
|
29187
|
-
function _extends$
|
|
30050
|
+
var _path$7;
|
|
30051
|
+
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); }
|
|
29188
30052
|
function SvgShopping(props) {
|
|
29189
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30053
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
29190
30054
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
29191
30055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29192
30056
|
fill: "none",
|
|
29193
30057
|
viewBox: "0 0 24 24",
|
|
29194
30058
|
stroke: "currentColor"
|
|
29195
|
-
}, props), _path$
|
|
30059
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
29196
30060
|
strokeLinecap: "round",
|
|
29197
30061
|
strokeLinejoin: "round",
|
|
29198
30062
|
strokeWidth: 2,
|
|
@@ -29200,16 +30064,16 @@ function SvgShopping(props) {
|
|
|
29200
30064
|
})));
|
|
29201
30065
|
}
|
|
29202
30066
|
|
|
29203
|
-
var _path$
|
|
29204
|
-
function _extends$
|
|
30067
|
+
var _path$6;
|
|
30068
|
+
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); }
|
|
29205
30069
|
function SvgBookmark(props) {
|
|
29206
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30070
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
29207
30071
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
29208
30072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29209
30073
|
fill: "none",
|
|
29210
30074
|
viewBox: "0 0 24 24",
|
|
29211
30075
|
stroke: "currentColor"
|
|
29212
|
-
}, props), _path$
|
|
30076
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
29213
30077
|
strokeLinecap: "round",
|
|
29214
30078
|
strokeLinejoin: "round",
|
|
29215
30079
|
strokeWidth: 2,
|
|
@@ -29217,63 +30081,76 @@ function SvgBookmark(props) {
|
|
|
29217
30081
|
})));
|
|
29218
30082
|
}
|
|
29219
30083
|
|
|
29220
|
-
var _path$
|
|
29221
|
-
function _extends$
|
|
30084
|
+
var _path$5;
|
|
30085
|
+
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); }
|
|
29222
30086
|
function SvgKey(props) {
|
|
29223
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30087
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
29224
30088
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29225
30089
|
viewBox: "0 0 20 20",
|
|
29226
30090
|
fill: "currentColor"
|
|
29227
|
-
}, props), _path$
|
|
30091
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
29228
30092
|
fillRule: "evenodd",
|
|
29229
30093
|
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",
|
|
29230
30094
|
clipRule: "evenodd"
|
|
29231
30095
|
})));
|
|
29232
30096
|
}
|
|
29233
30097
|
|
|
29234
|
-
var _path$
|
|
29235
|
-
function _extends$
|
|
30098
|
+
var _path$4;
|
|
30099
|
+
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); }
|
|
29236
30100
|
function SvgDonate(props) {
|
|
29237
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30101
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
29238
30102
|
width: 24,
|
|
29239
30103
|
height: 24,
|
|
29240
30104
|
fill: "currentColor",
|
|
29241
30105
|
xmlns: "http://www.w3.org/2000/svg"
|
|
29242
|
-
}, props), _path$
|
|
30106
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
29243
30107
|
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"
|
|
29244
30108
|
})));
|
|
29245
30109
|
}
|
|
29246
30110
|
|
|
29247
|
-
var _path$
|
|
29248
|
-
function _extends$
|
|
30111
|
+
var _path$3;
|
|
30112
|
+
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); }
|
|
29249
30113
|
function SvgMemberships(props) {
|
|
29250
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30114
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
29251
30115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29252
30116
|
fill: "none",
|
|
29253
30117
|
strokeWidth: 1.5,
|
|
29254
30118
|
stroke: "currentColor",
|
|
29255
30119
|
width: 24,
|
|
29256
30120
|
height: 24
|
|
29257
|
-
}, props), _path$
|
|
30121
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
29258
30122
|
strokeLinecap: "round",
|
|
29259
30123
|
strokeLinejoin: "round",
|
|
29260
30124
|
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"
|
|
29261
30125
|
})));
|
|
29262
30126
|
}
|
|
29263
30127
|
|
|
29264
|
-
var _path$
|
|
29265
|
-
function _extends$
|
|
30128
|
+
var _path$2;
|
|
30129
|
+
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); }
|
|
29266
30130
|
function SvgQrcode(props) {
|
|
29267
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
30131
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
29268
30132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29269
30133
|
width: 682.667,
|
|
29270
30134
|
height: 682.667,
|
|
29271
30135
|
viewBox: "0 0 512 512"
|
|
29272
|
-
}, props), _path$
|
|
30136
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
29273
30137
|
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"
|
|
29274
30138
|
})));
|
|
29275
30139
|
}
|
|
29276
30140
|
|
|
30141
|
+
var _path$1;
|
|
30142
|
+
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); }
|
|
30143
|
+
function SvgTrashCan(props) {
|
|
30144
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
30145
|
+
className: "plc-w-6 plc-h-6",
|
|
30146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30147
|
+
viewBox: "0 0 448 512",
|
|
30148
|
+
fill: "currentColor"
|
|
30149
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
30150
|
+
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"
|
|
30151
|
+
})));
|
|
30152
|
+
}
|
|
30153
|
+
|
|
29277
30154
|
const DonationsMenu = _ref => {
|
|
29278
30155
|
let {
|
|
29279
30156
|
reactivateSubscription,
|
|
@@ -29588,7 +30465,9 @@ function DashboardWithHook(props) {
|
|
|
29588
30465
|
switchView,
|
|
29589
30466
|
resetView,
|
|
29590
30467
|
logout,
|
|
29591
|
-
set
|
|
30468
|
+
set,
|
|
30469
|
+
setPaymentMethodToEdit,
|
|
30470
|
+
setPaymentMethodToDelete
|
|
29592
30471
|
} = usePelcro();
|
|
29593
30472
|
return /*#__PURE__*/React__default.createElement(DashboardWithTrans, {
|
|
29594
30473
|
setAddress: addressIdToEdit => set({
|
|
@@ -29611,7 +30490,9 @@ function DashboardWithHook(props) {
|
|
|
29611
30490
|
product,
|
|
29612
30491
|
plan,
|
|
29613
30492
|
isGift
|
|
29614
|
-
})
|
|
30493
|
+
}),
|
|
30494
|
+
setPaymentMethodToEdit: setPaymentMethodToEdit,
|
|
30495
|
+
setPaymentMethodToDelete: setPaymentMethodToDelete
|
|
29615
30496
|
});
|
|
29616
30497
|
}
|
|
29617
30498
|
DashboardWithHook.viewId = "dashboard";
|
|
@@ -29638,6 +30519,18 @@ class Dashboard extends Component {
|
|
|
29638
30519
|
nonInteraction: true
|
|
29639
30520
|
});
|
|
29640
30521
|
}
|
|
30522
|
+
window.Pelcro.paymentMethods.list({
|
|
30523
|
+
auth_token: window.Pelcro.user.read().auth_token
|
|
30524
|
+
}, (err, res) => {
|
|
30525
|
+
if (err) {
|
|
30526
|
+
return console.error(err);
|
|
30527
|
+
}
|
|
30528
|
+
if (res) {
|
|
30529
|
+
this.setState({
|
|
30530
|
+
sources: res.data
|
|
30531
|
+
});
|
|
30532
|
+
}
|
|
30533
|
+
});
|
|
29641
30534
|
const {
|
|
29642
30535
|
addresses
|
|
29643
30536
|
} = window.Pelcro.user.read();
|
|
@@ -29707,10 +30600,46 @@ class Dashboard extends Component {
|
|
|
29707
30600
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
29708
30601
|
});
|
|
29709
30602
|
});
|
|
30603
|
+
_defineProperty$3(this, "deletePaymentMethod", (paymentMethodId, onSuccess, onFailure) => {
|
|
30604
|
+
// disable the Login button to prevent repeated clicks
|
|
30605
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
30606
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
30607
|
+
payment_method_id: paymentMethodId
|
|
30608
|
+
}, (err, res) => {
|
|
30609
|
+
if (err) {
|
|
30610
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30611
|
+
}
|
|
30612
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
30613
|
+
});
|
|
30614
|
+
});
|
|
30615
|
+
_defineProperty$3(this, "onDeletePaymentMethodClick", source => {
|
|
30616
|
+
const isDeletable = source === null || source === void 0 ? void 0 : source.deletable;
|
|
30617
|
+
if (isDeletable) {
|
|
30618
|
+
this.props.onClose();
|
|
30619
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
30620
|
+
this.deletePaymentMethod(source.id, onSuccess, onFailure);
|
|
30621
|
+
}, {
|
|
30622
|
+
confirmMessage: this.locale("messages.paymentMethodDeletion.isSureToDelete"),
|
|
30623
|
+
loadingMessage: this.locale("messages.paymentMethodDeletion.loading"),
|
|
30624
|
+
successMessage: this.locale("messages.paymentMethodDeletion.success"),
|
|
30625
|
+
errorMessage: this.locale("messages.paymentMethodDeletion.error")
|
|
30626
|
+
}, {
|
|
30627
|
+
closeButtonLabel: this.locale("labels.subCancellation.goBack")
|
|
30628
|
+
});
|
|
30629
|
+
} else {
|
|
30630
|
+
this.props.setPaymentMethodToDelete(source.id);
|
|
30631
|
+
return this.props.setView("payment-method-delete");
|
|
30632
|
+
}
|
|
30633
|
+
});
|
|
29710
30634
|
_defineProperty$3(this, "displayRedeem", () => {
|
|
29711
30635
|
return this.props.setView("gift-redeem");
|
|
29712
30636
|
});
|
|
29713
30637
|
_defineProperty$3(this, "displaySourceCreate", () => {
|
|
30638
|
+
return this.props.setView("payment-method-create");
|
|
30639
|
+
});
|
|
30640
|
+
_defineProperty$3(this, "displaySourceEdit", e => {
|
|
30641
|
+
const source = e.currentTarget.dataset.key;
|
|
30642
|
+
this.props.setPaymentMethodToEdit(source);
|
|
29714
30643
|
return this.props.setView("payment-method-update");
|
|
29715
30644
|
});
|
|
29716
30645
|
_defineProperty$3(this, "displayUserEdit", () => {
|
|
@@ -29964,6 +30893,52 @@ class Dashboard extends Component {
|
|
|
29964
30893
|
onClick: this.displayAddressCreate
|
|
29965
30894
|
}, this.locale("labels.addAddress"))))));
|
|
29966
30895
|
});
|
|
30896
|
+
_defineProperty$3(this, "renderSources", () => {
|
|
30897
|
+
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) => {
|
|
30898
|
+
var _source$properties, _source$properties2;
|
|
30899
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
30900
|
+
key: "dashboard-source-" + source.id,
|
|
30901
|
+
className: "plc-flex plc-flex-row plc-pr-6"
|
|
30902
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
30903
|
+
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"
|
|
30904
|
+
}, /*#__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", {
|
|
30905
|
+
className: "plc-ml-1 plc-text-lg plc-tracking-widest plc-flex-grow plc-text-center"
|
|
30906
|
+
}, "\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, {
|
|
30907
|
+
id: "pelcro-button-update-source-" + index,
|
|
30908
|
+
variant: "icon",
|
|
30909
|
+
className: "plc-text-white",
|
|
30910
|
+
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
30911
|
+
"data-key": source.id,
|
|
30912
|
+
onClick: this.displaySourceEdit,
|
|
30913
|
+
disabled: this.state.disableSubmit
|
|
30914
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
30915
|
+
id: "pelcro-button-delete-source-" + index,
|
|
30916
|
+
variant: "icon",
|
|
30917
|
+
className: "plc-text-white",
|
|
30918
|
+
icon: /*#__PURE__*/React__default.createElement(SvgTrashCan, null),
|
|
30919
|
+
onClick: () => {
|
|
30920
|
+
this.onDeletePaymentMethodClick(source);
|
|
30921
|
+
},
|
|
30922
|
+
disabled: this.state.disableSubmit
|
|
30923
|
+
})), /*#__PURE__*/React__default.createElement("span", {
|
|
30924
|
+
className: "plc-flex-grow"
|
|
30925
|
+
}), source.is_default && /*#__PURE__*/React__default.createElement("span", {
|
|
30926
|
+
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"
|
|
30927
|
+
}, this.locale("labels.default")));
|
|
30928
|
+
});
|
|
30929
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
30930
|
+
className: "plc-pr-2"
|
|
30931
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
30932
|
+
className: "plc-overflow-y-scroll plc-max-h-52"
|
|
30933
|
+
}, sources), /*#__PURE__*/React__default.createElement(Button, {
|
|
30934
|
+
variant: "ghost",
|
|
30935
|
+
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
30936
|
+
className: "plc-w-4 plc-mr-1"
|
|
30937
|
+
}),
|
|
30938
|
+
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",
|
|
30939
|
+
onClick: this.displaySourceCreate
|
|
30940
|
+
}, this.locale("labels.addPaymentSource")));
|
|
30941
|
+
});
|
|
29967
30942
|
_defineProperty$3(this, "closeDashboard", () => {
|
|
29968
30943
|
this.setState({
|
|
29969
30944
|
isOpen: false
|
|
@@ -29974,7 +30949,8 @@ class Dashboard extends Component {
|
|
|
29974
30949
|
subscriptions: window.Pelcro.subscription.list(),
|
|
29975
30950
|
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 : [],
|
|
29976
30951
|
disableSubmit: false,
|
|
29977
|
-
addresses: []
|
|
30952
|
+
addresses: [],
|
|
30953
|
+
sources: []
|
|
29978
30954
|
};
|
|
29979
30955
|
this.site = window.Pelcro.site.read();
|
|
29980
30956
|
this.locale = this.props.t;
|
|
@@ -29983,7 +30959,7 @@ class Dashboard extends Component {
|
|
|
29983
30959
|
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;
|
|
29984
30960
|
}
|
|
29985
30961
|
render() {
|
|
29986
|
-
var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet
|
|
30962
|
+
var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet;
|
|
29987
30963
|
const {
|
|
29988
30964
|
isOpen
|
|
29989
30965
|
} = this.state;
|
|
@@ -30086,25 +31062,7 @@ class Dashboard extends Component {
|
|
|
30086
31062
|
name: SUB_MENUS.PAYMENT_CARDS,
|
|
30087
31063
|
icon: /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
|
|
30088
31064
|
title: this.locale("labels.paymentSource"),
|
|
30089
|
-
content:
|
|
30090
|
-
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"
|
|
30091
|
-
}, 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", {
|
|
30092
|
-
className: "plc-ml-1 plc-text-lg plc-tracking-widest"
|
|
30093
|
-
}, "\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, {
|
|
30094
|
-
variant: "icon",
|
|
30095
|
-
className: "plc-text-white",
|
|
30096
|
-
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
30097
|
-
onClick: this.displaySourceCreate,
|
|
30098
|
-
disabled: this.state.disableSubmit
|
|
30099
|
-
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, this.locale("messages.noCard")), /*#__PURE__*/React__default.createElement(Button, {
|
|
30100
|
-
variant: "icon",
|
|
30101
|
-
className: "plc-text-white",
|
|
30102
|
-
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
30103
|
-
className: "plc-w-6 plc-h-6"
|
|
30104
|
-
}),
|
|
30105
|
-
onClick: this.displaySourceCreate,
|
|
30106
|
-
disabled: this.state.disableSubmit
|
|
30107
|
-
})))
|
|
31065
|
+
content: this.renderSources()
|
|
30108
31066
|
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
30109
31067
|
name: SUB_MENUS.ADDRESSES,
|
|
30110
31068
|
icon: /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
|
|
@@ -34015,4 +34973,4 @@ const QrCodeModal = _ref => {
|
|
|
34015
34973
|
};
|
|
34016
34974
|
QrCodeModal.viewId = "qrcode";
|
|
34017
34975
|
|
|
34018
|
-
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, 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$1 as notify, unauthenticatedButtons, usePelcro };
|
|
34976
|
+
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, 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$1 as notify, unauthenticatedButtons, usePelcro };
|