@pelcro/react-pelcro-js 3.2.0-beta.34 → 3.2.0-beta.35
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 +458 -199
- package/dist/index.esm.js +458 -200
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6945,7 +6945,7 @@ class PelcroActions {
|
|
|
6945
6945
|
view,
|
|
6946
6946
|
cartItems,
|
|
6947
6947
|
...otherStateFields
|
|
6948
|
-
} = initialState$
|
|
6948
|
+
} = initialState$l;
|
|
6949
6949
|
this.set(otherStateFields);
|
|
6950
6950
|
});
|
|
6951
6951
|
|
|
@@ -7281,7 +7281,7 @@ class PelcroCallbacks {
|
|
|
7281
7281
|
|
|
7282
7282
|
}
|
|
7283
7283
|
|
|
7284
|
-
const initialState$
|
|
7284
|
+
const initialState$l = {
|
|
7285
7285
|
// View
|
|
7286
7286
|
view: null,
|
|
7287
7287
|
// Plans
|
|
@@ -7311,7 +7311,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
7311
7311
|
return {
|
|
7312
7312
|
// Store setter
|
|
7313
7313
|
set,
|
|
7314
|
-
...initialState$
|
|
7314
|
+
...initialState$l,
|
|
7315
7315
|
// State actions
|
|
7316
7316
|
...actions,
|
|
7317
7317
|
// Callbacks
|
|
@@ -10507,8 +10507,9 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
|
10507
10507
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
10508
10508
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
10509
10509
|
const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
10510
|
+
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
10510
10511
|
|
|
10511
|
-
const initialState$
|
|
10512
|
+
const initialState$k = {
|
|
10512
10513
|
email: "",
|
|
10513
10514
|
password: "",
|
|
10514
10515
|
emailError: null,
|
|
@@ -10519,10 +10520,10 @@ const initialState$j = {
|
|
|
10519
10520
|
content: ""
|
|
10520
10521
|
}
|
|
10521
10522
|
};
|
|
10522
|
-
const store$
|
|
10523
|
+
const store$k = /*#__PURE__*/createContext(initialState$k);
|
|
10523
10524
|
const {
|
|
10524
|
-
Provider: Provider$
|
|
10525
|
-
} = store$
|
|
10525
|
+
Provider: Provider$k
|
|
10526
|
+
} = store$k;
|
|
10526
10527
|
|
|
10527
10528
|
const LoginContainer = ({
|
|
10528
10529
|
style,
|
|
@@ -10629,7 +10630,7 @@ const LoginContainer = ({
|
|
|
10629
10630
|
});
|
|
10630
10631
|
|
|
10631
10632
|
case RESET_LOGIN_FORM:
|
|
10632
|
-
return initialState$
|
|
10633
|
+
return initialState$k;
|
|
10633
10634
|
|
|
10634
10635
|
case DISABLE_LOGIN_BUTTON:
|
|
10635
10636
|
return lib_7({ ...state,
|
|
@@ -10647,12 +10648,12 @@ const LoginContainer = ({
|
|
|
10647
10648
|
default:
|
|
10648
10649
|
return state;
|
|
10649
10650
|
}
|
|
10650
|
-
}, initialState$
|
|
10651
|
+
}, initialState$k);
|
|
10651
10652
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10652
10653
|
style: { ...style
|
|
10653
10654
|
},
|
|
10654
10655
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
10655
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10656
|
+
}, /*#__PURE__*/React__default.createElement(Provider$k, {
|
|
10656
10657
|
value: {
|
|
10657
10658
|
state,
|
|
10658
10659
|
dispatch
|
|
@@ -10660,12 +10661,12 @@ const LoginContainer = ({
|
|
|
10660
10661
|
}, children.length ? children.map((child, i) => {
|
|
10661
10662
|
if (child) {
|
|
10662
10663
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10663
|
-
store: store$
|
|
10664
|
+
store: store$k,
|
|
10664
10665
|
key: i
|
|
10665
10666
|
});
|
|
10666
10667
|
}
|
|
10667
10668
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10668
|
-
store: store$
|
|
10669
|
+
store: store$k
|
|
10669
10670
|
})));
|
|
10670
10671
|
};
|
|
10671
10672
|
|
|
@@ -10923,7 +10924,7 @@ const LoginButton = ({
|
|
|
10923
10924
|
buttonDisabled
|
|
10924
10925
|
},
|
|
10925
10926
|
dispatch
|
|
10926
|
-
} = useContext(store$
|
|
10927
|
+
} = useContext(store$k);
|
|
10927
10928
|
const {
|
|
10928
10929
|
t
|
|
10929
10930
|
} = useTranslation("login");
|
|
@@ -10981,11 +10982,11 @@ const LoginRequestLoginToken = ({
|
|
|
10981
10982
|
};
|
|
10982
10983
|
|
|
10983
10984
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10984
|
-
store: store$
|
|
10985
|
+
store: store$k
|
|
10985
10986
|
}, props));
|
|
10986
10987
|
|
|
10987
10988
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10988
|
-
store: store$
|
|
10989
|
+
store: store$k
|
|
10989
10990
|
}, props));
|
|
10990
10991
|
|
|
10991
10992
|
var _path$q;
|
|
@@ -11062,7 +11063,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
11062
11063
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
11063
11064
|
facebookLoginRenderProps.FacebookLogin;
|
|
11064
11065
|
|
|
11065
|
-
const initialState$
|
|
11066
|
+
const initialState$j = {
|
|
11066
11067
|
email: "",
|
|
11067
11068
|
password: "",
|
|
11068
11069
|
emailError: null,
|
|
@@ -11079,10 +11080,10 @@ const initialState$i = {
|
|
|
11079
11080
|
content: ""
|
|
11080
11081
|
}
|
|
11081
11082
|
};
|
|
11082
|
-
const store$
|
|
11083
|
+
const store$j = /*#__PURE__*/createContext(initialState$j);
|
|
11083
11084
|
const {
|
|
11084
|
-
Provider: Provider$
|
|
11085
|
-
} = store$
|
|
11085
|
+
Provider: Provider$j
|
|
11086
|
+
} = store$j;
|
|
11086
11087
|
|
|
11087
11088
|
const RegisterContainer = ({
|
|
11088
11089
|
style,
|
|
@@ -11265,7 +11266,7 @@ const RegisterContainer = ({
|
|
|
11265
11266
|
});
|
|
11266
11267
|
|
|
11267
11268
|
case RESET_LOGIN_FORM:
|
|
11268
|
-
return initialState$
|
|
11269
|
+
return initialState$j;
|
|
11269
11270
|
|
|
11270
11271
|
case DISABLE_REGISTRATION_BUTTON:
|
|
11271
11272
|
return lib_7({ ...state,
|
|
@@ -11283,12 +11284,12 @@ const RegisterContainer = ({
|
|
|
11283
11284
|
default:
|
|
11284
11285
|
return state;
|
|
11285
11286
|
}
|
|
11286
|
-
}, initialState$
|
|
11287
|
+
}, initialState$j);
|
|
11287
11288
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11288
11289
|
style: { ...style
|
|
11289
11290
|
},
|
|
11290
11291
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
11291
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
11292
|
+
}, /*#__PURE__*/React__default.createElement(Provider$j, {
|
|
11292
11293
|
value: {
|
|
11293
11294
|
state,
|
|
11294
11295
|
dispatch
|
|
@@ -11296,12 +11297,12 @@ const RegisterContainer = ({
|
|
|
11296
11297
|
}, children.length ? children.map((child, i) => {
|
|
11297
11298
|
if (child) {
|
|
11298
11299
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
11299
|
-
store: store$
|
|
11300
|
+
store: store$j,
|
|
11300
11301
|
key: i
|
|
11301
11302
|
});
|
|
11302
11303
|
}
|
|
11303
11304
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
11304
|
-
store: store$
|
|
11305
|
+
store: store$j
|
|
11305
11306
|
})));
|
|
11306
11307
|
};
|
|
11307
11308
|
/**
|
|
@@ -11341,10 +11342,10 @@ const FacebookLoginButton = ({
|
|
|
11341
11342
|
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;
|
|
11342
11343
|
const {
|
|
11343
11344
|
dispatch: loginDispatch
|
|
11344
|
-
} = useContext(store$
|
|
11345
|
+
} = useContext(store$k);
|
|
11345
11346
|
const {
|
|
11346
11347
|
dispatch: registerDispatch
|
|
11347
|
-
} = useContext(store$
|
|
11348
|
+
} = useContext(store$j);
|
|
11348
11349
|
|
|
11349
11350
|
const onSuccess = facebookUser => {
|
|
11350
11351
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -11431,10 +11432,10 @@ const GoogleLoginButton = ({
|
|
|
11431
11432
|
const googleLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
|
|
11432
11433
|
const {
|
|
11433
11434
|
dispatch: loginDispatch
|
|
11434
|
-
} = useContext(store$
|
|
11435
|
+
} = useContext(store$k);
|
|
11435
11436
|
const {
|
|
11436
11437
|
dispatch: registerDispatch
|
|
11437
|
-
} = useContext(store$
|
|
11438
|
+
} = useContext(store$j);
|
|
11438
11439
|
|
|
11439
11440
|
const onSuccess = response => {
|
|
11440
11441
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -11530,10 +11531,10 @@ const Auth0LoginButton = ({
|
|
|
11530
11531
|
}, [auth0Enabled, auth0Loaded]);
|
|
11531
11532
|
const {
|
|
11532
11533
|
dispatch: loginDispatch
|
|
11533
|
-
} = useContext(store$
|
|
11534
|
+
} = useContext(store$k);
|
|
11534
11535
|
const {
|
|
11535
11536
|
dispatch: registerDispatch
|
|
11536
|
-
} = useContext(store$
|
|
11537
|
+
} = useContext(store$j);
|
|
11537
11538
|
|
|
11538
11539
|
function handleClick() {
|
|
11539
11540
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -11830,11 +11831,11 @@ function LoginModal({
|
|
|
11830
11831
|
LoginModal.viewId = "login";
|
|
11831
11832
|
|
|
11832
11833
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
11833
|
-
store: store$
|
|
11834
|
+
store: store$j
|
|
11834
11835
|
}, props));
|
|
11835
11836
|
|
|
11836
11837
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
11837
|
-
store: store$
|
|
11838
|
+
store: store$j
|
|
11838
11839
|
}, props));
|
|
11839
11840
|
|
|
11840
11841
|
const RegisterButton = ({
|
|
@@ -11854,7 +11855,7 @@ const RegisterButton = ({
|
|
|
11854
11855
|
buttonDisabled
|
|
11855
11856
|
},
|
|
11856
11857
|
dispatch
|
|
11857
|
-
} = useContext(store$
|
|
11858
|
+
} = useContext(store$j);
|
|
11858
11859
|
const {
|
|
11859
11860
|
t
|
|
11860
11861
|
} = useTranslation("register");
|
|
@@ -11992,7 +11993,7 @@ function FirstName({
|
|
|
11992
11993
|
}
|
|
11993
11994
|
|
|
11994
11995
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
11995
|
-
store: store$
|
|
11996
|
+
store: store$j
|
|
11996
11997
|
}, props));
|
|
11997
11998
|
|
|
11998
11999
|
function LastName({
|
|
@@ -12023,7 +12024,7 @@ function LastName({
|
|
|
12023
12024
|
}
|
|
12024
12025
|
|
|
12025
12026
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
12026
|
-
store: store$
|
|
12027
|
+
store: store$j
|
|
12027
12028
|
}, props));
|
|
12028
12029
|
|
|
12029
12030
|
/**
|
|
@@ -12147,7 +12148,7 @@ function TextInput({
|
|
|
12147
12148
|
|
|
12148
12149
|
const RegisterTextInput = props => {
|
|
12149
12150
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
12150
|
-
store: store$
|
|
12151
|
+
store: store$j
|
|
12151
12152
|
}));
|
|
12152
12153
|
};
|
|
12153
12154
|
|
|
@@ -14491,7 +14492,7 @@ class VantivGateway {
|
|
|
14491
14492
|
|
|
14492
14493
|
/** @type {PaymentStateType} */
|
|
14493
14494
|
|
|
14494
|
-
const initialState$
|
|
14495
|
+
const initialState$i = {
|
|
14495
14496
|
disableSubmit: false,
|
|
14496
14497
|
isLoading: false,
|
|
14497
14498
|
disableCouponButton: false,
|
|
@@ -14510,10 +14511,10 @@ const initialState$h = {
|
|
|
14510
14511
|
content: ""
|
|
14511
14512
|
}
|
|
14512
14513
|
};
|
|
14513
|
-
const store$
|
|
14514
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
14514
14515
|
const {
|
|
14515
|
-
Provider: Provider$
|
|
14516
|
-
} = store$
|
|
14516
|
+
Provider: Provider$i
|
|
14517
|
+
} = store$i;
|
|
14517
14518
|
|
|
14518
14519
|
const PaymentMethodContainerWithoutStripe = ({
|
|
14519
14520
|
style,
|
|
@@ -15765,21 +15766,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15765
15766
|
default:
|
|
15766
15767
|
return state;
|
|
15767
15768
|
}
|
|
15768
|
-
}, initialState$
|
|
15769
|
+
}, initialState$i);
|
|
15769
15770
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15770
15771
|
style: { ...style
|
|
15771
15772
|
},
|
|
15772
15773
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
15773
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15774
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
15774
15775
|
value: {
|
|
15775
15776
|
state,
|
|
15776
15777
|
dispatch
|
|
15777
15778
|
}
|
|
15778
15779
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
15779
|
-
store: store$
|
|
15780
|
+
store: store$i,
|
|
15780
15781
|
key: i
|
|
15781
15782
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15782
|
-
store: store$
|
|
15783
|
+
store: store$i
|
|
15783
15784
|
})));
|
|
15784
15785
|
};
|
|
15785
15786
|
|
|
@@ -15801,7 +15802,7 @@ const PaymentMethodContainer = props => {
|
|
|
15801
15802
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
15802
15803
|
locale: getPageOrDefaultLanguage()
|
|
15803
15804
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
15804
|
-
store: store$
|
|
15805
|
+
store: store$i
|
|
15805
15806
|
}, props))));
|
|
15806
15807
|
}
|
|
15807
15808
|
|
|
@@ -15854,7 +15855,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
15854
15855
|
currentPlan,
|
|
15855
15856
|
updatedPrice
|
|
15856
15857
|
}
|
|
15857
|
-
} = useContext(store$
|
|
15858
|
+
} = useContext(store$i);
|
|
15858
15859
|
|
|
15859
15860
|
const updatePaymentRequest = () => {
|
|
15860
15861
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -15930,7 +15931,7 @@ const DiscountedPrice = props => {
|
|
|
15930
15931
|
taxAmount,
|
|
15931
15932
|
percentOff
|
|
15932
15933
|
}
|
|
15933
|
-
} = useContext(store$
|
|
15934
|
+
} = useContext(store$i);
|
|
15934
15935
|
const {
|
|
15935
15936
|
order,
|
|
15936
15937
|
plan
|
|
@@ -15980,7 +15981,7 @@ const SubmitPaymentMethod = ({
|
|
|
15980
15981
|
isLoading,
|
|
15981
15982
|
updatedPrice
|
|
15982
15983
|
}
|
|
15983
|
-
} = useContext(store$
|
|
15984
|
+
} = useContext(store$i);
|
|
15984
15985
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
15985
15986
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
15986
15987
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -16030,7 +16031,7 @@ const ApplyCouponButton = ({
|
|
|
16030
16031
|
disableCouponButton
|
|
16031
16032
|
},
|
|
16032
16033
|
dispatch
|
|
16033
|
-
} = useContext(store$
|
|
16034
|
+
} = useContext(store$i);
|
|
16034
16035
|
const {
|
|
16035
16036
|
t
|
|
16036
16037
|
} = useTranslation("checkoutForm");
|
|
@@ -16064,7 +16065,7 @@ const CouponCodeField = props => {
|
|
|
16064
16065
|
couponCode,
|
|
16065
16066
|
couponError
|
|
16066
16067
|
}
|
|
16067
|
-
} = useContext(store$
|
|
16068
|
+
} = useContext(store$i);
|
|
16068
16069
|
|
|
16069
16070
|
const onCouponCodeChange = e => {
|
|
16070
16071
|
dispatch({
|
|
@@ -16120,7 +16121,7 @@ const CouponCode = ({
|
|
|
16120
16121
|
state: {
|
|
16121
16122
|
enableCouponField
|
|
16122
16123
|
}
|
|
16123
|
-
} = useContext(store$
|
|
16124
|
+
} = useContext(store$i);
|
|
16124
16125
|
const {
|
|
16125
16126
|
t
|
|
16126
16127
|
} = useTranslation("checkoutForm");
|
|
@@ -16377,7 +16378,7 @@ const PaypalSubscribeButton = props => {
|
|
|
16377
16378
|
const {
|
|
16378
16379
|
dispatch,
|
|
16379
16380
|
state
|
|
16380
|
-
} = useContext(store$
|
|
16381
|
+
} = useContext(store$i);
|
|
16381
16382
|
const {
|
|
16382
16383
|
product,
|
|
16383
16384
|
plan,
|
|
@@ -16510,7 +16511,7 @@ const SelectedPaymentMethod = () => {
|
|
|
16510
16511
|
state: {
|
|
16511
16512
|
isLoading
|
|
16512
16513
|
}
|
|
16513
|
-
} = useContext(store$
|
|
16514
|
+
} = useContext(store$i);
|
|
16514
16515
|
const {
|
|
16515
16516
|
switchView,
|
|
16516
16517
|
selectedPaymentMethodId
|
|
@@ -16552,7 +16553,7 @@ const TaxAmount = () => {
|
|
|
16552
16553
|
state: {
|
|
16553
16554
|
taxAmount
|
|
16554
16555
|
}
|
|
16555
|
-
} = useContext(store$
|
|
16556
|
+
} = useContext(store$i);
|
|
16556
16557
|
const {
|
|
16557
16558
|
plan
|
|
16558
16559
|
} = usePelcro();
|
|
@@ -16716,12 +16717,363 @@ function SubscriptionRenewModal({
|
|
|
16716
16717
|
}
|
|
16717
16718
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
16718
16719
|
|
|
16720
|
+
const initialState$h = {
|
|
16721
|
+
cancelationReason: ""
|
|
16722
|
+
};
|
|
16723
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
16724
|
+
const {
|
|
16725
|
+
Provider: Provider$h
|
|
16726
|
+
} = store$h;
|
|
16727
|
+
|
|
16728
|
+
const SubscriptionCancelContainer = ({
|
|
16729
|
+
style,
|
|
16730
|
+
className = "",
|
|
16731
|
+
onSuccess = () => {},
|
|
16732
|
+
onFailure = () => {},
|
|
16733
|
+
children,
|
|
16734
|
+
...props
|
|
16735
|
+
}) => {
|
|
16736
|
+
useTranslation("verifyEmail");
|
|
16737
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
16738
|
+
switch (action.type) {
|
|
16739
|
+
case SET_CANCEL_SUBSCRIPTION_REASON:
|
|
16740
|
+
return lib_7({ ...state,
|
|
16741
|
+
cancelationReason: action.payload
|
|
16742
|
+
});
|
|
16743
|
+
|
|
16744
|
+
default:
|
|
16745
|
+
return state;
|
|
16746
|
+
}
|
|
16747
|
+
}, initialState$h);
|
|
16748
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16749
|
+
style: { ...style
|
|
16750
|
+
},
|
|
16751
|
+
className: `pelcro-container pelcro-subscription-cancel-container ${className}`
|
|
16752
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
16753
|
+
value: {
|
|
16754
|
+
state,
|
|
16755
|
+
dispatch
|
|
16756
|
+
}
|
|
16757
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16758
|
+
store: store$h,
|
|
16759
|
+
key: i
|
|
16760
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16761
|
+
store: store$h
|
|
16762
|
+
})));
|
|
16763
|
+
};
|
|
16764
|
+
|
|
16719
16765
|
var _path$i;
|
|
16720
16766
|
|
|
16721
16767
|
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
16722
16768
|
|
|
16723
|
-
function
|
|
16769
|
+
function SvgInfoCircle(props) {
|
|
16724
16770
|
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
16771
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16772
|
+
className: "plc-w-5 plc-h-5",
|
|
16773
|
+
fill: "none",
|
|
16774
|
+
viewBox: "0 0 24 24",
|
|
16775
|
+
stroke: "currentColor"
|
|
16776
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
16777
|
+
strokeLinecap: "round",
|
|
16778
|
+
strokeLinejoin: "round",
|
|
16779
|
+
strokeWidth: 2,
|
|
16780
|
+
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
16781
|
+
})));
|
|
16782
|
+
}
|
|
16783
|
+
|
|
16784
|
+
/**
|
|
16785
|
+
*
|
|
16786
|
+
*/
|
|
16787
|
+
|
|
16788
|
+
const Tooltip = ({
|
|
16789
|
+
value,
|
|
16790
|
+
className
|
|
16791
|
+
}) => {
|
|
16792
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16793
|
+
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
16794
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16795
|
+
className: "pelcro-tooltip-icon"
|
|
16796
|
+
}, /*#__PURE__*/React__default.createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
16797
|
+
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
16798
|
+
}, value));
|
|
16799
|
+
};
|
|
16800
|
+
|
|
16801
|
+
/**
|
|
16802
|
+
*
|
|
16803
|
+
*/
|
|
16804
|
+
|
|
16805
|
+
function TextArea({
|
|
16806
|
+
label = "",
|
|
16807
|
+
tooltipText,
|
|
16808
|
+
required,
|
|
16809
|
+
id,
|
|
16810
|
+
errorId,
|
|
16811
|
+
error,
|
|
16812
|
+
className = "",
|
|
16813
|
+
labelClassName = "",
|
|
16814
|
+
errorClassName = "",
|
|
16815
|
+
wrapperClassName = "",
|
|
16816
|
+
...otherProps
|
|
16817
|
+
}) {
|
|
16818
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16819
|
+
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
16820
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
16821
|
+
htmlFor: id,
|
|
16822
|
+
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
16823
|
+
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
16824
|
+
value: tooltipText,
|
|
16825
|
+
className: "plc-ml-1"
|
|
16826
|
+
})), /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
16827
|
+
type: "text",
|
|
16828
|
+
id: id,
|
|
16829
|
+
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
16830
|
+
"aria-describedby": errorId,
|
|
16831
|
+
"aria-invalid": Boolean(error)
|
|
16832
|
+
}, otherProps)), error && /*#__PURE__*/React__default.createElement("p", {
|
|
16833
|
+
id: errorId,
|
|
16834
|
+
"aria-live": "assertive",
|
|
16835
|
+
className: `pelcro-input-error ${errorClassName}`
|
|
16836
|
+
}, error));
|
|
16837
|
+
}
|
|
16838
|
+
|
|
16839
|
+
const SubscriptionCancelReason = props => {
|
|
16840
|
+
const {
|
|
16841
|
+
t
|
|
16842
|
+
} = useTranslation("subscriptionCancel");
|
|
16843
|
+
const {
|
|
16844
|
+
dispatch,
|
|
16845
|
+
state
|
|
16846
|
+
} = useContext(store$h);
|
|
16847
|
+
|
|
16848
|
+
const handleOnTextAreaBlur = e => {
|
|
16849
|
+
dispatch({
|
|
16850
|
+
type: SET_CANCEL_SUBSCRIPTION_REASON,
|
|
16851
|
+
payload: e.target.value.trim()
|
|
16852
|
+
});
|
|
16853
|
+
};
|
|
16854
|
+
|
|
16855
|
+
return /*#__PURE__*/React__default.createElement(TextArea, Object.assign({
|
|
16856
|
+
label: t("labels.cancelReason"),
|
|
16857
|
+
onBlur: e => handleOnTextAreaBlur(e)
|
|
16858
|
+
}, props));
|
|
16859
|
+
};
|
|
16860
|
+
|
|
16861
|
+
var _switch;
|
|
16862
|
+
|
|
16863
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
16864
|
+
|
|
16865
|
+
function SvgSubscription(props) {
|
|
16866
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
16867
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16868
|
+
viewBox: "0 0 100 125",
|
|
16869
|
+
fill: "currentColor"
|
|
16870
|
+
}, props), _switch || (_switch = /*#__PURE__*/React.createElement("switch", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
16871
|
+
d: "M5273.1 2400.1v-2c0-2.8-5-4-9.7-4s-9.7 1.3-9.7 4v2c0 1.8.7 3.6 2 4.9l5 4.9c.3.3.4.6.4 1v6.4c0 .4.2.7.6.8l2.9.9c.5.1 1-.2 1-.8v-7.2c0-.4.2-.7.4-1l5.1-5c1.3-1.3 2-3.1 2-4.9zm-9.7-.1c-4.8 0-7.4-1.3-7.5-1.8.1-.5 2.7-1.8 7.5-1.8s7.3 1.3 7.5 1.8c-.2.5-2.7 1.8-7.5 1.8z"
|
|
16872
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16873
|
+
d: "M5268.4 2410.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1h-4.3zM5272.7 2413.7h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1zM5272.7 2417h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1 0-.5-.4-1-1-1z"
|
|
16874
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
16875
|
+
d: "M90.4 58.6c0-4.4-3.6-7.9-8-7.9-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-.9 0-1.8.1-2.6.4v-4.6h6c4.8 0 8.6-3.9 8.6-8.7V11.2c0-4.8-3.9-8.7-8.6-8.7H18.2c-4.8 0-8.6 3.9-8.6 8.7v20.3c0 4.8 3.9 8.7 8.6 8.7h24.6V64l-3.3-3.3c-2.7-2.7-7-3.1-10.2-1-1.9 1.3-3.1 3.3-3.5 5.5-.3 2.2.3 4.5 1.8 6.3L42 88.9c4.5 5.5 11.2 8.6 18.2 8.6h9c5.6 0 10.9-2.2 14.9-6.2s6.2-9.3 6.2-14.9l.1-17.8zm-21 33.5h-9c-5.5 0-10.6-2.4-14.1-6.6L31.9 68.1c-.5-.6-.7-1.3-.6-2.1.1-.8.5-1.4 1.1-1.8.4-.3 1-.5 1.5-.5.7 0 1.4.3 1.9.8l5.8 5.8c1.1 1.1 2.8 1.4 4.3.8 1.5-.6 2.4-2 2.4-3.6V30.1c0-1.4 1.2-2.6 2.6-2.6.7 0 1.3.3 1.8.8s.8 1.1.8 1.8v25.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6V59c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v6.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v17.8c0 4.2-1.6 8.1-4.6 11.1-3.2 2.9-7.2 4.5-11.3 4.5zM18.2 34.2c-1.5 0-2.6-1.2-2.6-2.7V11.2c0-1.5 1.2-2.7 2.6-2.7h46.5c1.5 0 2.6 1.2 2.6 2.7v20.3c0 1.5-1.2 2.7-2.6 2.7h-6v-4c0-2.1-.8-4.1-2.3-5.6-1.5-1.5-3.5-2.3-5.6-2.3-4.4 0-7.9 3.6-7.9 8v4H18.2z"
|
|
16876
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16877
|
+
d: "M35.5 15.5L30 21.4l-1.9-2.1c-1-1.1-2.7-1.2-3.8-.1-1.1 1-1.2 2.7-.1 3.8l3.9 4.2c.5.6 1.2.9 2 .9s1.5-.3 2-.9l7.5-8c1-1.1 1-2.8-.1-3.8s-3-1-4 .1z"
|
|
16878
|
+
}))))));
|
|
16879
|
+
}
|
|
16880
|
+
|
|
16881
|
+
const SubscriptionCancelNowButton = ({
|
|
16882
|
+
subscription,
|
|
16883
|
+
onClick,
|
|
16884
|
+
className
|
|
16885
|
+
}) => {
|
|
16886
|
+
const {
|
|
16887
|
+
switchView
|
|
16888
|
+
} = usePelcro();
|
|
16889
|
+
const {
|
|
16890
|
+
state: {
|
|
16891
|
+
cancelationReason
|
|
16892
|
+
},
|
|
16893
|
+
dispatch
|
|
16894
|
+
} = useContext(store$h);
|
|
16895
|
+
const {
|
|
16896
|
+
t
|
|
16897
|
+
} = useTranslation("subscriptionCancel");
|
|
16898
|
+
|
|
16899
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
16900
|
+
window.Pelcro.subscription.cancel({
|
|
16901
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
16902
|
+
subscription_id: payload.subscription_id,
|
|
16903
|
+
mode: payload.mode,
|
|
16904
|
+
...(payload.reason && {
|
|
16905
|
+
reason: payload.reason
|
|
16906
|
+
})
|
|
16907
|
+
}, (err, res) => {
|
|
16908
|
+
var _ReactGA$event;
|
|
16909
|
+
|
|
16910
|
+
if (err) {
|
|
16911
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
16912
|
+
}
|
|
16913
|
+
|
|
16914
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
16915
|
+
category: "ACTIONS",
|
|
16916
|
+
action: "Canceled",
|
|
16917
|
+
nonInteraction: true
|
|
16918
|
+
});
|
|
16919
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
16920
|
+
});
|
|
16921
|
+
};
|
|
16922
|
+
|
|
16923
|
+
const handleCancelNowClick = () => {
|
|
16924
|
+
const payload = {
|
|
16925
|
+
subscription_id: subscription.id,
|
|
16926
|
+
mode: "now",
|
|
16927
|
+
...(cancelationReason && {
|
|
16928
|
+
reason: cancelationReason
|
|
16929
|
+
})
|
|
16930
|
+
};
|
|
16931
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
16932
|
+
|
|
16933
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
16934
|
+
|
|
16935
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
16936
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
16937
|
+
}, {
|
|
16938
|
+
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
16939
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
16940
|
+
successMessage: t("messages.subCancellation.success"),
|
|
16941
|
+
errorMessage: t("messages.subCancellation.error")
|
|
16942
|
+
}, {
|
|
16943
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
16944
|
+
});
|
|
16945
|
+
};
|
|
16946
|
+
|
|
16947
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
16948
|
+
onClick: handleCancelNowClick,
|
|
16949
|
+
className: `${className}`
|
|
16950
|
+
}, t("messages.cancelNow"));
|
|
16951
|
+
};
|
|
16952
|
+
|
|
16953
|
+
const SubscriptionCancelLaterButton = ({
|
|
16954
|
+
subscription,
|
|
16955
|
+
onClick,
|
|
16956
|
+
className
|
|
16957
|
+
}) => {
|
|
16958
|
+
const {
|
|
16959
|
+
switchView
|
|
16960
|
+
} = usePelcro();
|
|
16961
|
+
const {
|
|
16962
|
+
state: {
|
|
16963
|
+
cancelationReason
|
|
16964
|
+
},
|
|
16965
|
+
dispatch
|
|
16966
|
+
} = useContext(store$h);
|
|
16967
|
+
const {
|
|
16968
|
+
t
|
|
16969
|
+
} = useTranslation("subscriptionCancel");
|
|
16970
|
+
|
|
16971
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
16972
|
+
window.Pelcro.subscription.cancel({
|
|
16973
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
16974
|
+
subscription_id: payload.subscription_id,
|
|
16975
|
+
mode: payload.mode,
|
|
16976
|
+
...(payload.reason && {
|
|
16977
|
+
reason: payload.reason
|
|
16978
|
+
})
|
|
16979
|
+
}, (err, res) => {
|
|
16980
|
+
var _ReactGA$event;
|
|
16981
|
+
|
|
16982
|
+
if (err) {
|
|
16983
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
16984
|
+
}
|
|
16985
|
+
|
|
16986
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
16987
|
+
category: "ACTIONS",
|
|
16988
|
+
action: "Canceled",
|
|
16989
|
+
nonInteraction: true
|
|
16990
|
+
});
|
|
16991
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
16992
|
+
});
|
|
16993
|
+
};
|
|
16994
|
+
|
|
16995
|
+
const handleCancelNowClick = () => {
|
|
16996
|
+
const payload = {
|
|
16997
|
+
subscription_id: subscription.id,
|
|
16998
|
+
mode: "now",
|
|
16999
|
+
...(cancelationReason && {
|
|
17000
|
+
reason: cancelationReason
|
|
17001
|
+
})
|
|
17002
|
+
};
|
|
17003
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
17004
|
+
|
|
17005
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
17006
|
+
|
|
17007
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
17008
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
17009
|
+
}, {
|
|
17010
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
17011
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
17012
|
+
successMessage: t("messages.subCancellation.success"),
|
|
17013
|
+
errorMessage: t("messages.subCancellation.error")
|
|
17014
|
+
}, {
|
|
17015
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
17016
|
+
});
|
|
17017
|
+
};
|
|
17018
|
+
|
|
17019
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
17020
|
+
onClick: handleCancelNowClick,
|
|
17021
|
+
className: `${className}`
|
|
17022
|
+
}, t("messages.cancelLater"));
|
|
17023
|
+
};
|
|
17024
|
+
|
|
17025
|
+
const SubscriptionCancelView = props => {
|
|
17026
|
+
const {
|
|
17027
|
+
subscriptionToCancel
|
|
17028
|
+
} = usePelcro();
|
|
17029
|
+
const {
|
|
17030
|
+
t
|
|
17031
|
+
} = useTranslation("subscriptionCancel");
|
|
17032
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
17033
|
+
id: "pelcro-subscription-cancel-view"
|
|
17034
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
17035
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
17036
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
17037
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
17038
|
+
}, t("labels.title"), /*#__PURE__*/React__default.createElement("span", {
|
|
17039
|
+
className: "plc-text-gray-400 plc-text-base plc-block"
|
|
17040
|
+
}, "(", subscriptionToCancel.plan.nickname, ")"))), /*#__PURE__*/React__default.createElement(SubscriptionCancelContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
17041
|
+
className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
|
|
17042
|
+
}, /*#__PURE__*/React__default.createElement(SvgSubscription, {
|
|
17043
|
+
className: "plc-w-32 plc-h-32"
|
|
17044
|
+
}), /*#__PURE__*/React__default.createElement("p", {
|
|
17045
|
+
className: "plc-mb-3 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
17046
|
+
}, t("messages.subscriptionEnd"), " ", new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString('en-CA', {
|
|
17047
|
+
year: "numeric",
|
|
17048
|
+
month: "short",
|
|
17049
|
+
day: "numeric"
|
|
17050
|
+
}), "."), /*#__PURE__*/React__default.createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default.createElement(SubscriptionCancelNowButton, {
|
|
17051
|
+
className: "plc-mb-2",
|
|
17052
|
+
subscription: subscriptionToCancel
|
|
17053
|
+
}), /*#__PURE__*/React__default.createElement(SubscriptionCancelLaterButton, {
|
|
17054
|
+
subscription: subscriptionToCancel
|
|
17055
|
+
}))));
|
|
17056
|
+
};
|
|
17057
|
+
|
|
17058
|
+
const SubscriptionCancelModal = ({
|
|
17059
|
+
onDisplay,
|
|
17060
|
+
onClose,
|
|
17061
|
+
...otherProps
|
|
17062
|
+
}) => {
|
|
17063
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
17064
|
+
onDisplay: onDisplay,
|
|
17065
|
+
onClose: onClose,
|
|
17066
|
+
id: "pelcro-subscription-cancel-modal"
|
|
17067
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionCancelView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
17068
|
+
};
|
|
17069
|
+
SubscriptionCancelModal.viewId = "subscription-cancel";
|
|
17070
|
+
|
|
17071
|
+
var _path$h;
|
|
17072
|
+
|
|
17073
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
17074
|
+
|
|
17075
|
+
function SvgGift(props) {
|
|
17076
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
16725
17077
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
16726
17078
|
fill: "none",
|
|
16727
17079
|
stroke: "currentColor",
|
|
@@ -16730,7 +17082,7 @@ function SvgGift(props) {
|
|
|
16730
17082
|
strokeWidth: 2,
|
|
16731
17083
|
viewBox: "0 0 24 24",
|
|
16732
17084
|
xmlns: "http://www.w3.org/2000/svg"
|
|
16733
|
-
}, props), _path$
|
|
17085
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
16734
17086
|
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"
|
|
16735
17087
|
})));
|
|
16736
17088
|
}
|
|
@@ -17685,17 +18037,17 @@ const UserUpdateContainer = ({
|
|
|
17685
18037
|
})));
|
|
17686
18038
|
};
|
|
17687
18039
|
|
|
17688
|
-
var _path$
|
|
18040
|
+
var _path$g;
|
|
17689
18041
|
|
|
17690
|
-
function _extends$
|
|
18042
|
+
function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
17691
18043
|
|
|
17692
18044
|
function SvgEdit(props) {
|
|
17693
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18045
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
17694
18046
|
className: "plc-w-6 plc-h-6",
|
|
17695
18047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17696
18048
|
viewBox: "0 0 20 20",
|
|
17697
18049
|
fill: "currentColor"
|
|
17698
|
-
}, props), _path$
|
|
18050
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
17699
18051
|
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"
|
|
17700
18052
|
})));
|
|
17701
18053
|
}
|
|
@@ -21104,42 +21456,6 @@ const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(La
|
|
|
21104
21456
|
store: store$7
|
|
21105
21457
|
}, props));
|
|
21106
21458
|
|
|
21107
|
-
var _path$g;
|
|
21108
|
-
|
|
21109
|
-
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
21110
|
-
|
|
21111
|
-
function SvgInfoCircle(props) {
|
|
21112
|
-
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
21113
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21114
|
-
className: "plc-w-5 plc-h-5",
|
|
21115
|
-
fill: "none",
|
|
21116
|
-
viewBox: "0 0 24 24",
|
|
21117
|
-
stroke: "currentColor"
|
|
21118
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
21119
|
-
strokeLinecap: "round",
|
|
21120
|
-
strokeLinejoin: "round",
|
|
21121
|
-
strokeWidth: 2,
|
|
21122
|
-
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
21123
|
-
})));
|
|
21124
|
-
}
|
|
21125
|
-
|
|
21126
|
-
/**
|
|
21127
|
-
*
|
|
21128
|
-
*/
|
|
21129
|
-
|
|
21130
|
-
const Tooltip = ({
|
|
21131
|
-
value,
|
|
21132
|
-
className
|
|
21133
|
-
}) => {
|
|
21134
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
21135
|
-
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
21136
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21137
|
-
className: "pelcro-tooltip-icon"
|
|
21138
|
-
}, /*#__PURE__*/React__default.createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
21139
|
-
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
21140
|
-
}, value));
|
|
21141
|
-
};
|
|
21142
|
-
|
|
21143
21459
|
function DatePicker({
|
|
21144
21460
|
label = "",
|
|
21145
21461
|
tooltipText,
|
|
@@ -21208,44 +21524,6 @@ const GiftCreateStartDate = props => {
|
|
|
21208
21524
|
}, props));
|
|
21209
21525
|
};
|
|
21210
21526
|
|
|
21211
|
-
/**
|
|
21212
|
-
*
|
|
21213
|
-
*/
|
|
21214
|
-
|
|
21215
|
-
function TextArea({
|
|
21216
|
-
label = "",
|
|
21217
|
-
tooltipText,
|
|
21218
|
-
required,
|
|
21219
|
-
id,
|
|
21220
|
-
errorId,
|
|
21221
|
-
error,
|
|
21222
|
-
className = "",
|
|
21223
|
-
labelClassName = "",
|
|
21224
|
-
errorClassName = "",
|
|
21225
|
-
wrapperClassName = "",
|
|
21226
|
-
...otherProps
|
|
21227
|
-
}) {
|
|
21228
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
21229
|
-
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
21230
|
-
}, /*#__PURE__*/React__default.createElement("label", {
|
|
21231
|
-
htmlFor: id,
|
|
21232
|
-
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
21233
|
-
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
21234
|
-
value: tooltipText,
|
|
21235
|
-
className: "plc-ml-1"
|
|
21236
|
-
})), /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
21237
|
-
type: "text",
|
|
21238
|
-
id: id,
|
|
21239
|
-
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
21240
|
-
"aria-describedby": errorId,
|
|
21241
|
-
"aria-invalid": Boolean(error)
|
|
21242
|
-
}, otherProps)), error && /*#__PURE__*/React__default.createElement("p", {
|
|
21243
|
-
id: errorId,
|
|
21244
|
-
"aria-live": "assertive",
|
|
21245
|
-
className: `pelcro-input-error ${errorClassName}`
|
|
21246
|
-
}, error));
|
|
21247
|
-
}
|
|
21248
|
-
|
|
21249
21527
|
/**
|
|
21250
21528
|
*
|
|
21251
21529
|
*/
|
|
@@ -22127,8 +22405,8 @@ const PaymentMethodSelectModal = ({
|
|
|
22127
22405
|
};
|
|
22128
22406
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
22129
22407
|
|
|
22130
|
-
function _extends$
|
|
22131
|
-
_extends$
|
|
22408
|
+
function _extends$g() {
|
|
22409
|
+
_extends$g = Object.assign || function (target) {
|
|
22132
22410
|
for (var i = 1; i < arguments.length; i++) {
|
|
22133
22411
|
var source = arguments[i];
|
|
22134
22412
|
|
|
@@ -22142,7 +22420,7 @@ function _extends$h() {
|
|
|
22142
22420
|
return target;
|
|
22143
22421
|
};
|
|
22144
22422
|
|
|
22145
|
-
return _extends$
|
|
22423
|
+
return _extends$g.apply(this, arguments);
|
|
22146
22424
|
}
|
|
22147
22425
|
|
|
22148
22426
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -22326,7 +22604,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
22326
22604
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
22327
22605
|
return null;
|
|
22328
22606
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
22329
|
-
return _render(_extends$
|
|
22607
|
+
return _render(_extends$g({}, _rest, {
|
|
22330
22608
|
hidden: true,
|
|
22331
22609
|
style: {
|
|
22332
22610
|
display: 'none'
|
|
@@ -22854,7 +23132,7 @@ function TransitionChild(props) {
|
|
|
22854
23132
|
var passthroughProps = rest;
|
|
22855
23133
|
return React__default.createElement(NestingContext.Provider, {
|
|
22856
23134
|
value: nesting
|
|
22857
|
-
}, render(_extends$
|
|
23135
|
+
}, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
22858
23136
|
}
|
|
22859
23137
|
|
|
22860
23138
|
function Transition(props) {
|
|
@@ -22898,7 +23176,7 @@ function Transition(props) {
|
|
|
22898
23176
|
value: nestingBag
|
|
22899
23177
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
22900
23178
|
value: transitionBag
|
|
22901
|
-
}, render(_extends$
|
|
23179
|
+
}, render(_extends$g({}, sharedProps, {
|
|
22902
23180
|
as: Fragment,
|
|
22903
23181
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
22904
23182
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -23025,12 +23303,12 @@ var ActionTypes;
|
|
|
23025
23303
|
})(ActionTypes || (ActionTypes = {}));
|
|
23026
23304
|
|
|
23027
23305
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
23028
|
-
return _extends$
|
|
23306
|
+
return _extends$g({}, state, {
|
|
23029
23307
|
activeItemIndex: null,
|
|
23030
23308
|
menuState: MenuStates.Closed
|
|
23031
23309
|
});
|
|
23032
23310
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
23033
|
-
return _extends$
|
|
23311
|
+
return _extends$g({}, state, {
|
|
23034
23312
|
menuState: MenuStates.Open
|
|
23035
23313
|
});
|
|
23036
23314
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -23049,7 +23327,7 @@ var ActionTypes;
|
|
|
23049
23327
|
}
|
|
23050
23328
|
});
|
|
23051
23329
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
23052
|
-
return _extends$
|
|
23330
|
+
return _extends$g({}, state, {
|
|
23053
23331
|
searchQuery: '',
|
|
23054
23332
|
activeItemIndex: activeItemIndex
|
|
23055
23333
|
});
|
|
@@ -23060,19 +23338,19 @@ var ActionTypes;
|
|
|
23060
23338
|
|
|
23061
23339
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
23062
23340
|
});
|
|
23063
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
23341
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
|
|
23064
23342
|
searchQuery: searchQuery
|
|
23065
23343
|
});
|
|
23066
|
-
return _extends$
|
|
23344
|
+
return _extends$g({}, state, {
|
|
23067
23345
|
searchQuery: searchQuery,
|
|
23068
23346
|
activeItemIndex: match
|
|
23069
23347
|
});
|
|
23070
23348
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
23071
|
-
return _extends$
|
|
23349
|
+
return _extends$g({}, state, {
|
|
23072
23350
|
searchQuery: ''
|
|
23073
23351
|
});
|
|
23074
23352
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
23075
|
-
return _extends$
|
|
23353
|
+
return _extends$g({}, state, {
|
|
23076
23354
|
items: [].concat(state.items, [{
|
|
23077
23355
|
id: action.id,
|
|
23078
23356
|
dataRef: action.dataRef
|
|
@@ -23085,7 +23363,7 @@ var ActionTypes;
|
|
|
23085
23363
|
return a.id === action.id;
|
|
23086
23364
|
});
|
|
23087
23365
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
23088
|
-
return _extends$
|
|
23366
|
+
return _extends$g({}, state, {
|
|
23089
23367
|
items: nextItems,
|
|
23090
23368
|
activeItemIndex: function () {
|
|
23091
23369
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -23124,19 +23402,19 @@ var ActionTypes$1;
|
|
|
23124
23402
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
23125
23403
|
if (state.disabled) return state;
|
|
23126
23404
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23127
|
-
return _extends$
|
|
23405
|
+
return _extends$g({}, state, {
|
|
23128
23406
|
activeOptionIndex: null,
|
|
23129
23407
|
listboxState: ListboxStates.Closed
|
|
23130
23408
|
});
|
|
23131
23409
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
23132
23410
|
if (state.disabled) return state;
|
|
23133
23411
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
23134
|
-
return _extends$
|
|
23412
|
+
return _extends$g({}, state, {
|
|
23135
23413
|
listboxState: ListboxStates.Open
|
|
23136
23414
|
});
|
|
23137
23415
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
23138
23416
|
if (state.disabled === action.disabled) return state;
|
|
23139
|
-
return _extends$
|
|
23417
|
+
return _extends$g({}, state, {
|
|
23140
23418
|
disabled: action.disabled
|
|
23141
23419
|
});
|
|
23142
23420
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -23157,7 +23435,7 @@ var ActionTypes$1;
|
|
|
23157
23435
|
}
|
|
23158
23436
|
});
|
|
23159
23437
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
23160
|
-
return _extends$
|
|
23438
|
+
return _extends$g({}, state, {
|
|
23161
23439
|
searchQuery: '',
|
|
23162
23440
|
activeOptionIndex: activeOptionIndex
|
|
23163
23441
|
});
|
|
@@ -23170,10 +23448,10 @@ var ActionTypes$1;
|
|
|
23170
23448
|
|
|
23171
23449
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
23172
23450
|
});
|
|
23173
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
23451
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
|
|
23174
23452
|
searchQuery: searchQuery
|
|
23175
23453
|
});
|
|
23176
|
-
return _extends$
|
|
23454
|
+
return _extends$g({}, state, {
|
|
23177
23455
|
searchQuery: searchQuery,
|
|
23178
23456
|
activeOptionIndex: match
|
|
23179
23457
|
});
|
|
@@ -23181,11 +23459,11 @@ var ActionTypes$1;
|
|
|
23181
23459
|
if (state.disabled) return state;
|
|
23182
23460
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23183
23461
|
if (state.searchQuery === '') return state;
|
|
23184
|
-
return _extends$
|
|
23462
|
+
return _extends$g({}, state, {
|
|
23185
23463
|
searchQuery: ''
|
|
23186
23464
|
});
|
|
23187
23465
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
23188
|
-
return _extends$
|
|
23466
|
+
return _extends$g({}, state, {
|
|
23189
23467
|
options: [].concat(state.options, [{
|
|
23190
23468
|
id: action.id,
|
|
23191
23469
|
dataRef: action.dataRef
|
|
@@ -23198,7 +23476,7 @@ var ActionTypes$1;
|
|
|
23198
23476
|
return a.id === action.id;
|
|
23199
23477
|
});
|
|
23200
23478
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
23201
|
-
return _extends$
|
|
23479
|
+
return _extends$g({}, state, {
|
|
23202
23480
|
options: nextOptions,
|
|
23203
23481
|
activeOptionIndex: function () {
|
|
23204
23482
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -23261,10 +23539,10 @@ const getPaymentCardIcon = name => {
|
|
|
23261
23539
|
|
|
23262
23540
|
var _path$f;
|
|
23263
23541
|
|
|
23264
|
-
function _extends$
|
|
23542
|
+
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
23265
23543
|
|
|
23266
23544
|
function SvgChevronRight(props) {
|
|
23267
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23545
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
23268
23546
|
className: "plc-w-6 plc-h-6",
|
|
23269
23547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23270
23548
|
fill: "none",
|
|
@@ -23488,10 +23766,10 @@ const SavedItems = ({
|
|
|
23488
23766
|
|
|
23489
23767
|
var _path$e;
|
|
23490
23768
|
|
|
23491
|
-
function _extends$
|
|
23769
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
23492
23770
|
|
|
23493
23771
|
function SvgRefresh(props) {
|
|
23494
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23772
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
23495
23773
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23496
23774
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23497
23775
|
fill: "none",
|
|
@@ -23507,10 +23785,10 @@ function SvgRefresh(props) {
|
|
|
23507
23785
|
|
|
23508
23786
|
var _path$d;
|
|
23509
23787
|
|
|
23510
|
-
function _extends$
|
|
23788
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
23511
23789
|
|
|
23512
23790
|
function SvgCalendar(props) {
|
|
23513
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23791
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
23514
23792
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23515
23793
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
23516
23794
|
viewBox: "0 0 20 20",
|
|
@@ -23524,10 +23802,10 @@ function SvgCalendar(props) {
|
|
|
23524
23802
|
|
|
23525
23803
|
var _path$c;
|
|
23526
23804
|
|
|
23527
|
-
function _extends$
|
|
23805
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
23528
23806
|
|
|
23529
23807
|
function SvgPlus(props) {
|
|
23530
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23808
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
23531
23809
|
className: "plc-w-5 plc-h-5",
|
|
23532
23810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23533
23811
|
fill: "none",
|
|
@@ -23543,10 +23821,10 @@ function SvgPlus(props) {
|
|
|
23543
23821
|
|
|
23544
23822
|
var _path$b;
|
|
23545
23823
|
|
|
23546
|
-
function _extends$
|
|
23824
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
23547
23825
|
|
|
23548
23826
|
function SvgCheckMark(props) {
|
|
23549
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23827
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
23550
23828
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23551
23829
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23552
23830
|
viewBox: "0 0 20 20",
|
|
@@ -23856,10 +24134,10 @@ Accordion.item = function AccordionItem({
|
|
|
23856
24134
|
|
|
23857
24135
|
var _path$a;
|
|
23858
24136
|
|
|
23859
|
-
function _extends$
|
|
24137
|
+
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
23860
24138
|
|
|
23861
24139
|
function SvgExit(props) {
|
|
23862
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24140
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
23863
24141
|
className: "plc-w-6 plc-h-6",
|
|
23864
24142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23865
24143
|
fill: "none",
|
|
@@ -23875,10 +24153,10 @@ function SvgExit(props) {
|
|
|
23875
24153
|
|
|
23876
24154
|
var _path$9;
|
|
23877
24155
|
|
|
23878
|
-
function _extends$
|
|
24156
|
+
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
23879
24157
|
|
|
23880
24158
|
function SvgUser(props) {
|
|
23881
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24159
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
23882
24160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23883
24161
|
fill: "none",
|
|
23884
24162
|
viewBox: "0 0 24 24",
|
|
@@ -23893,10 +24171,10 @@ function SvgUser(props) {
|
|
|
23893
24171
|
|
|
23894
24172
|
var _path$8;
|
|
23895
24173
|
|
|
23896
|
-
function _extends$
|
|
24174
|
+
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
23897
24175
|
|
|
23898
24176
|
function SvgNewsletter(props) {
|
|
23899
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24177
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
23900
24178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23901
24179
|
className: "plc-h-5 plc-w-5",
|
|
23902
24180
|
fill: "none",
|
|
@@ -23912,10 +24190,10 @@ function SvgNewsletter(props) {
|
|
|
23912
24190
|
|
|
23913
24191
|
var _path$7;
|
|
23914
24192
|
|
|
23915
|
-
function _extends$
|
|
24193
|
+
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
23916
24194
|
|
|
23917
24195
|
function SvgDocument(props) {
|
|
23918
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24196
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
23919
24197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23920
24198
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
23921
24199
|
fill: "none",
|
|
@@ -23931,10 +24209,10 @@ function SvgDocument(props) {
|
|
|
23931
24209
|
|
|
23932
24210
|
var _path$6;
|
|
23933
24211
|
|
|
23934
|
-
function _extends$
|
|
24212
|
+
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
23935
24213
|
|
|
23936
24214
|
function SvgPaymentCard(props) {
|
|
23937
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24215
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
23938
24216
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23939
24217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23940
24218
|
fill: "none",
|
|
@@ -23950,10 +24228,10 @@ function SvgPaymentCard(props) {
|
|
|
23950
24228
|
|
|
23951
24229
|
var _path$5, _path2;
|
|
23952
24230
|
|
|
23953
|
-
function _extends$
|
|
24231
|
+
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
23954
24232
|
|
|
23955
24233
|
function SvgLocationPin(props) {
|
|
23956
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24234
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
23957
24235
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23958
24236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23959
24237
|
fill: "none",
|
|
@@ -23972,26 +24250,6 @@ function SvgLocationPin(props) {
|
|
|
23972
24250
|
})));
|
|
23973
24251
|
}
|
|
23974
24252
|
|
|
23975
|
-
var _switch;
|
|
23976
|
-
|
|
23977
|
-
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
23978
|
-
|
|
23979
|
-
function SvgSubscription(props) {
|
|
23980
|
-
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
23981
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23982
|
-
viewBox: "0 0 100 125",
|
|
23983
|
-
fill: "currentColor"
|
|
23984
|
-
}, props), _switch || (_switch = /*#__PURE__*/React.createElement("switch", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
23985
|
-
d: "M5273.1 2400.1v-2c0-2.8-5-4-9.7-4s-9.7 1.3-9.7 4v2c0 1.8.7 3.6 2 4.9l5 4.9c.3.3.4.6.4 1v6.4c0 .4.2.7.6.8l2.9.9c.5.1 1-.2 1-.8v-7.2c0-.4.2-.7.4-1l5.1-5c1.3-1.3 2-3.1 2-4.9zm-9.7-.1c-4.8 0-7.4-1.3-7.5-1.8.1-.5 2.7-1.8 7.5-1.8s7.3 1.3 7.5 1.8c-.2.5-2.7 1.8-7.5 1.8z"
|
|
23986
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23987
|
-
d: "M5268.4 2410.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1h-4.3zM5272.7 2413.7h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1zM5272.7 2417h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1 0-.5-.4-1-1-1z"
|
|
23988
|
-
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
23989
|
-
d: "M90.4 58.6c0-4.4-3.6-7.9-8-7.9-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-.9 0-1.8.1-2.6.4v-4.6h6c4.8 0 8.6-3.9 8.6-8.7V11.2c0-4.8-3.9-8.7-8.6-8.7H18.2c-4.8 0-8.6 3.9-8.6 8.7v20.3c0 4.8 3.9 8.7 8.6 8.7h24.6V64l-3.3-3.3c-2.7-2.7-7-3.1-10.2-1-1.9 1.3-3.1 3.3-3.5 5.5-.3 2.2.3 4.5 1.8 6.3L42 88.9c4.5 5.5 11.2 8.6 18.2 8.6h9c5.6 0 10.9-2.2 14.9-6.2s6.2-9.3 6.2-14.9l.1-17.8zm-21 33.5h-9c-5.5 0-10.6-2.4-14.1-6.6L31.9 68.1c-.5-.6-.7-1.3-.6-2.1.1-.8.5-1.4 1.1-1.8.4-.3 1-.5 1.5-.5.7 0 1.4.3 1.9.8l5.8 5.8c1.1 1.1 2.8 1.4 4.3.8 1.5-.6 2.4-2 2.4-3.6V30.1c0-1.4 1.2-2.6 2.6-2.6.7 0 1.3.3 1.8.8s.8 1.1.8 1.8v25.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6V59c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v6.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v17.8c0 4.2-1.6 8.1-4.6 11.1-3.2 2.9-7.2 4.5-11.3 4.5zM18.2 34.2c-1.5 0-2.6-1.2-2.6-2.7V11.2c0-1.5 1.2-2.7 2.6-2.7h46.5c1.5 0 2.6 1.2 2.6 2.7v20.3c0 1.5-1.2 2.7-2.6 2.7h-6v-4c0-2.1-.8-4.1-2.3-5.6-1.5-1.5-3.5-2.3-5.6-2.3-4.4 0-7.9 3.6-7.9 8v4H18.2z"
|
|
23990
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23991
|
-
d: "M35.5 15.5L30 21.4l-1.9-2.1c-1-1.1-2.7-1.2-3.8-.1-1.1 1-1.2 2.7-.1 3.8l3.9 4.2c.5.6 1.2.9 2 .9s1.5-.3 2-.9l7.5-8c1-1.1 1-2.8-.1-3.8s-3-1-4 .1z"
|
|
23992
|
-
}))))));
|
|
23993
|
-
}
|
|
23994
|
-
|
|
23995
24253
|
var _path$4;
|
|
23996
24254
|
|
|
23997
24255
|
function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
@@ -27224,4 +27482,4 @@ const InvoiceDetailsModal = ({
|
|
|
27224
27482
|
};
|
|
27225
27483
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
27226
27484
|
|
|
27227
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, 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, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|
|
27485
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, 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, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|