@pelcro/react-pelcro-js 4.0.0-alpha.10 → 4.0.0-alpha.12
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 +277 -292
- package/dist/index.esm.js +276 -292
- package/dist/pelcro.css +20 -7
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3072,7 +3072,7 @@ var _slicedToArray = unwrapExports(slicedToArray);
|
|
|
3072
3072
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3073
3073
|
|
|
3074
3074
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3075
|
-
function useTranslation
|
|
3075
|
+
function useTranslation(ns) {
|
|
3076
3076
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3077
3077
|
var i18nFromProps = props.i18n;
|
|
3078
3078
|
|
|
@@ -3177,7 +3177,7 @@ function withTranslation(ns) {
|
|
|
3177
3177
|
var forwardedRef = _ref.forwardedRef,
|
|
3178
3178
|
rest = _objectWithoutProperties$2(_ref, ["forwardedRef"]);
|
|
3179
3179
|
|
|
3180
|
-
var _useTranslation = useTranslation
|
|
3180
|
+
var _useTranslation = useTranslation(ns, rest),
|
|
3181
3181
|
_useTranslation2 = _slicedToArray(_useTranslation, 3),
|
|
3182
3182
|
t = _useTranslation2[0],
|
|
3183
3183
|
i18n = _useTranslation2[1],
|
|
@@ -10010,7 +10010,7 @@ const VARIANTS = {
|
|
|
10010
10010
|
ICON: "icon",
|
|
10011
10011
|
GHOST: "ghost"
|
|
10012
10012
|
};
|
|
10013
|
-
function Button
|
|
10013
|
+
function Button({
|
|
10014
10014
|
variant = "solid",
|
|
10015
10015
|
isLoading,
|
|
10016
10016
|
icon,
|
|
@@ -10135,11 +10135,11 @@ toast.confirm = (onConfirm, {
|
|
|
10135
10135
|
className: "plc-font-semibold"
|
|
10136
10136
|
}, confirmMessage), /*#__PURE__*/React__default.createElement("div", {
|
|
10137
10137
|
className: "plc-space-y-2 sm:plc-space-y-0 sm:plc-space-x-2"
|
|
10138
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
10138
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
10139
10139
|
variant: "solid",
|
|
10140
10140
|
className: "plc-text-xs plc-bg-red-500 hover:plc-bg-red-600",
|
|
10141
10141
|
onClick: onConfirmClick
|
|
10142
|
-
}, confirmButtonLabel !== null && confirmButtonLabel !== void 0 ? confirmButtonLabel : translations.labels.confirm), /*#__PURE__*/React__default.createElement(Button
|
|
10142
|
+
}, confirmButtonLabel !== null && confirmButtonLabel !== void 0 ? confirmButtonLabel : translations.labels.confirm), /*#__PURE__*/React__default.createElement(Button, {
|
|
10143
10143
|
className: "plc-text-xs",
|
|
10144
10144
|
variant: "outline",
|
|
10145
10145
|
onClick: () => toast.dismiss(t.id)
|
|
@@ -11915,7 +11915,7 @@ function Email({
|
|
|
11915
11915
|
}) {
|
|
11916
11916
|
const {
|
|
11917
11917
|
t
|
|
11918
|
-
} = useTranslation
|
|
11918
|
+
} = useTranslation("common");
|
|
11919
11919
|
const {
|
|
11920
11920
|
dispatch,
|
|
11921
11921
|
state: {
|
|
@@ -12006,7 +12006,7 @@ function Password({
|
|
|
12006
12006
|
}) {
|
|
12007
12007
|
const {
|
|
12008
12008
|
t
|
|
12009
|
-
} = useTranslation
|
|
12009
|
+
} = useTranslation("common");
|
|
12010
12010
|
const {
|
|
12011
12011
|
dispatch,
|
|
12012
12012
|
state: {
|
|
@@ -12054,7 +12054,7 @@ function ConfirmPassword({
|
|
|
12054
12054
|
}) {
|
|
12055
12055
|
const {
|
|
12056
12056
|
t
|
|
12057
|
-
} = useTranslation
|
|
12057
|
+
} = useTranslation("common");
|
|
12058
12058
|
const {
|
|
12059
12059
|
dispatch,
|
|
12060
12060
|
state: {
|
|
@@ -12135,12 +12135,12 @@ const LoginButton = ({
|
|
|
12135
12135
|
} = useContext(store$l);
|
|
12136
12136
|
const {
|
|
12137
12137
|
t
|
|
12138
|
-
} = useTranslation
|
|
12138
|
+
} = useTranslation("login");
|
|
12139
12139
|
const [isDisabled, setDisabled] = useState(true);
|
|
12140
12140
|
useEffect(() => {
|
|
12141
12141
|
setDisabled(emailError || passwordError || !email.length || !password.length || buttonDisabled);
|
|
12142
12142
|
}, [emailError, passwordError, email, password, buttonDisabled]);
|
|
12143
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
12143
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
12144
12144
|
onClick: () => {
|
|
12145
12145
|
dispatch({
|
|
12146
12146
|
type: HANDLE_LOGIN
|
|
@@ -12178,7 +12178,7 @@ const LoginRequestLoginToken = ({
|
|
|
12178
12178
|
}) => {
|
|
12179
12179
|
const {
|
|
12180
12180
|
t
|
|
12181
|
-
} = useTranslation
|
|
12181
|
+
} = useTranslation("passwordlessRequest");
|
|
12182
12182
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
12183
12183
|
type: "button",
|
|
12184
12184
|
onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(),
|
|
@@ -12885,7 +12885,7 @@ function LoginView(props) {
|
|
|
12885
12885
|
|
|
12886
12886
|
const {
|
|
12887
12887
|
t
|
|
12888
|
-
} = useTranslation
|
|
12888
|
+
} = useTranslation("login");
|
|
12889
12889
|
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
|
|
12890
12890
|
const passwordlessEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.passwordless_enabled;
|
|
12891
12891
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -12973,7 +12973,7 @@ const Authorship = () => {
|
|
|
12973
12973
|
target: "_blank",
|
|
12974
12974
|
className: "plc-inline-flex plc-flex-col plc-items-center"
|
|
12975
12975
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
12976
|
-
className: "plc-inline-flex plc-mb-2"
|
|
12976
|
+
className: "plc-inline-flex plc-mb-2 pelcro-authorship"
|
|
12977
12977
|
}, "Powered by"), /*#__PURE__*/React__default.createElement(SvgPelcroAuthorship, {
|
|
12978
12978
|
className: "pelcro-authorship"
|
|
12979
12979
|
}));
|
|
@@ -13002,7 +13002,7 @@ function Modal({
|
|
|
13002
13002
|
className: "pelcro-modal-content"
|
|
13003
13003
|
}, children.find(({
|
|
13004
13004
|
type
|
|
13005
|
-
}) => type === ModalHeader
|
|
13005
|
+
}) => type === ModalHeader && /*#__PURE__*/React__default.createElement(ModalHeader, Object.assign({
|
|
13006
13006
|
id: id,
|
|
13007
13007
|
onDisplay: onDisplay,
|
|
13008
13008
|
hideCloseButton: hideCloseButton
|
|
@@ -13012,7 +13012,7 @@ function Modal({
|
|
|
13012
13012
|
type
|
|
13013
13013
|
}) => type === ModalFooter))));
|
|
13014
13014
|
}
|
|
13015
|
-
const ModalHeader
|
|
13015
|
+
const ModalHeader = ({
|
|
13016
13016
|
id,
|
|
13017
13017
|
onDisplay,
|
|
13018
13018
|
hideCloseButton,
|
|
@@ -13077,7 +13077,7 @@ function LoginModal({
|
|
|
13077
13077
|
}) {
|
|
13078
13078
|
const {
|
|
13079
13079
|
t
|
|
13080
|
-
} = useTranslation
|
|
13080
|
+
} = useTranslation("login");
|
|
13081
13081
|
const {
|
|
13082
13082
|
switchView,
|
|
13083
13083
|
resetView,
|
|
@@ -13117,7 +13117,7 @@ function LoginModal({
|
|
|
13117
13117
|
id: "pelcro-login-modal",
|
|
13118
13118
|
onDisplay: onDisplay,
|
|
13119
13119
|
onClose: onClose
|
|
13120
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
13120
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
13121
13121
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
13122
13122
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
13123
13123
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -13165,12 +13165,12 @@ const RegisterButton = ({
|
|
|
13165
13165
|
} = useContext(store$k);
|
|
13166
13166
|
const {
|
|
13167
13167
|
t
|
|
13168
|
-
} = useTranslation
|
|
13168
|
+
} = useTranslation("register");
|
|
13169
13169
|
const [isDisabled, setDisabled] = useState(true);
|
|
13170
13170
|
useEffect(() => {
|
|
13171
13171
|
setDisabled(buttonDisabled || emailError || passwordError || !email.length || !password.length);
|
|
13172
13172
|
}, [buttonDisabled, emailError, passwordError, email, password]);
|
|
13173
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
13173
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
13174
13174
|
onClick: () => {
|
|
13175
13175
|
dispatch({
|
|
13176
13176
|
type: HANDLE_REGISTRATION
|
|
@@ -13192,7 +13192,7 @@ function FirstName({
|
|
|
13192
13192
|
}) {
|
|
13193
13193
|
const {
|
|
13194
13194
|
t
|
|
13195
|
-
} = useTranslation
|
|
13195
|
+
} = useTranslation("common");
|
|
13196
13196
|
const {
|
|
13197
13197
|
dispatch,
|
|
13198
13198
|
state: {
|
|
@@ -13270,7 +13270,7 @@ function LastName({
|
|
|
13270
13270
|
}) {
|
|
13271
13271
|
const {
|
|
13272
13272
|
t
|
|
13273
|
-
} = useTranslation
|
|
13273
|
+
} = useTranslation("common");
|
|
13274
13274
|
const {
|
|
13275
13275
|
dispatch,
|
|
13276
13276
|
state: {
|
|
@@ -13348,7 +13348,7 @@ function Phone({
|
|
|
13348
13348
|
}) {
|
|
13349
13349
|
const {
|
|
13350
13350
|
t
|
|
13351
|
-
} = useTranslation
|
|
13351
|
+
} = useTranslation("common");
|
|
13352
13352
|
const {
|
|
13353
13353
|
dispatch,
|
|
13354
13354
|
state: {
|
|
@@ -13424,7 +13424,7 @@ function RegisterView(props) {
|
|
|
13424
13424
|
|
|
13425
13425
|
const {
|
|
13426
13426
|
t
|
|
13427
|
-
} = useTranslation
|
|
13427
|
+
} = useTranslation("register");
|
|
13428
13428
|
usePelcro();
|
|
13429
13429
|
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
|
|
13430
13430
|
const showNameFields = (_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.enableNameFieldsInRegister;
|
|
@@ -13654,7 +13654,7 @@ function RegisterModal(props) {
|
|
|
13654
13654
|
|
|
13655
13655
|
const {
|
|
13656
13656
|
t
|
|
13657
|
-
} = useTranslation
|
|
13657
|
+
} = useTranslation("register");
|
|
13658
13658
|
const {
|
|
13659
13659
|
switchView,
|
|
13660
13660
|
resetView,
|
|
@@ -13723,7 +13723,7 @@ function RegisterModal(props) {
|
|
|
13723
13723
|
id: "pelcro-register-modal",
|
|
13724
13724
|
onDisplay: props === null || props === void 0 ? void 0 : props.onDisplay,
|
|
13725
13725
|
onClose: props === null || props === void 0 ? void 0 : props.onClose
|
|
13726
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
13726
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
13727
13727
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
13728
13728
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
13729
13729
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -18706,7 +18706,7 @@ class SelectModal extends Component {
|
|
|
18706
18706
|
className: "plc-mb-2"
|
|
18707
18707
|
}, this.locale("labels.startingAt")), this.countStartPrice(product.plans)))), isPlanMode || /*#__PURE__*/React__default.createElement("div", {
|
|
18708
18708
|
className: "plc-mt-auto plc-w-full"
|
|
18709
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
18709
|
+
}, /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
18710
18710
|
onClick: productButtonCallback,
|
|
18711
18711
|
"data-key": product.id,
|
|
18712
18712
|
id: "pelcro-select-product-back-button",
|
|
@@ -18976,7 +18976,7 @@ class SelectModal extends Component {
|
|
|
18976
18976
|
hideCloseButton: !this.closeButton,
|
|
18977
18977
|
onClose: this.props.onClose,
|
|
18978
18978
|
id: "pelcro-selection-modal"
|
|
18979
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
18979
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
18980
18980
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
18981
18981
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default.createElement("button", {
|
|
18982
18982
|
type: "button",
|
|
@@ -18996,7 +18996,7 @@ class SelectModal extends Component {
|
|
|
18996
18996
|
onChange: this.onIsGiftChange,
|
|
18997
18997
|
checked: this.state.isGift,
|
|
18998
18998
|
id: "pelcro-input-is-gift"
|
|
18999
|
-
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default.createElement(Button
|
|
18999
|
+
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default.createElement(Button, {
|
|
19000
19000
|
disabled: this.state.disabled,
|
|
19001
19001
|
onClick: this.submitOption,
|
|
19002
19002
|
id: "pelcro-submit",
|
|
@@ -21123,7 +21123,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21123
21123
|
|
|
21124
21124
|
const {
|
|
21125
21125
|
t
|
|
21126
|
-
} = useTranslation
|
|
21126
|
+
} = useTranslation("payment");
|
|
21127
21127
|
const pelcroStore = usePelcro();
|
|
21128
21128
|
const {
|
|
21129
21129
|
set,
|
|
@@ -22841,7 +22841,7 @@ const StripeInputStyle = {
|
|
|
22841
22841
|
const PelcroCardNumber = props => {
|
|
22842
22842
|
const {
|
|
22843
22843
|
t
|
|
22844
|
-
} = useTranslation
|
|
22844
|
+
} = useTranslation("checkoutForm");
|
|
22845
22845
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("label", {
|
|
22846
22846
|
htmlFor: "pelcro-input-card-number"
|
|
22847
22847
|
}, t("labels.card"), " *"), /*#__PURE__*/React__default.createElement(es_9, Object.assign({
|
|
@@ -22852,7 +22852,7 @@ const PelcroCardNumber = props => {
|
|
|
22852
22852
|
const PelcroCardCVC = props => {
|
|
22853
22853
|
const {
|
|
22854
22854
|
t
|
|
22855
|
-
} = useTranslation
|
|
22855
|
+
} = useTranslation("checkoutForm");
|
|
22856
22856
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("label", {
|
|
22857
22857
|
htmlFor: "pelcro-input-cvc-number"
|
|
22858
22858
|
}, t("labels.CVC"), " *"), /*#__PURE__*/React__default.createElement(es_6, Object.assign({
|
|
@@ -22863,7 +22863,7 @@ const PelcroCardCVC = props => {
|
|
|
22863
22863
|
const PelcroCardExpiry = props => {
|
|
22864
22864
|
const {
|
|
22865
22865
|
t
|
|
22866
|
-
} = useTranslation
|
|
22866
|
+
} = useTranslation("checkoutForm");
|
|
22867
22867
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("label", {
|
|
22868
22868
|
htmlFor: "pelcro-input-expiry-date"
|
|
22869
22869
|
}, t("labels.date"), " *"), /*#__PURE__*/React__default.createElement(es_8, Object.assign({
|
|
@@ -22953,7 +22953,7 @@ const DiscountedPrice = props => {
|
|
|
22953
22953
|
|
|
22954
22954
|
const {
|
|
22955
22955
|
t
|
|
22956
|
-
} = useTranslation
|
|
22956
|
+
} = useTranslation("checkoutForm");
|
|
22957
22957
|
const {
|
|
22958
22958
|
dispatch,
|
|
22959
22959
|
state: {
|
|
@@ -22983,7 +22983,7 @@ const DiscountedPrice = props => {
|
|
|
22983
22983
|
className: "plc-flex plc-items-center plc-justify-center plc-mt-2 pelcro-discount"
|
|
22984
22984
|
}, props), "(-", percentOff, ")", /*#__PURE__*/React__default.createElement("span", {
|
|
22985
22985
|
className: "plc-ml-1 plc-font-bold pelcro-discounted-price"
|
|
22986
|
-
}, priceFormatted), /*#__PURE__*/React__default.createElement(Button
|
|
22986
|
+
}, priceFormatted), /*#__PURE__*/React__default.createElement(Button, {
|
|
22987
22987
|
variant: "ghost",
|
|
22988
22988
|
className: "plc-ml-2 plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
|
|
22989
22989
|
onClick: onCouponRemove
|
|
@@ -23004,7 +23004,7 @@ const SubmitPaymentMethod = ({
|
|
|
23004
23004
|
} = usePelcro();
|
|
23005
23005
|
const {
|
|
23006
23006
|
t
|
|
23007
|
-
} = useTranslation
|
|
23007
|
+
} = useTranslation("checkoutForm");
|
|
23008
23008
|
const {
|
|
23009
23009
|
dispatch,
|
|
23010
23010
|
state: {
|
|
@@ -23034,7 +23034,7 @@ const SubmitPaymentMethod = ({
|
|
|
23034
23034
|
setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length));
|
|
23035
23035
|
}
|
|
23036
23036
|
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone]);
|
|
23037
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
23037
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
23038
23038
|
role: "submit",
|
|
23039
23039
|
className: "plc-w-full plc-py-3",
|
|
23040
23040
|
variant: "solid",
|
|
@@ -23065,7 +23065,7 @@ const ApplyCouponButton = ({
|
|
|
23065
23065
|
} = useContext(store$j);
|
|
23066
23066
|
const {
|
|
23067
23067
|
t
|
|
23068
|
-
} = useTranslation
|
|
23068
|
+
} = useTranslation("checkoutForm");
|
|
23069
23069
|
|
|
23070
23070
|
const onApplyCouponCode = () => {
|
|
23071
23071
|
dispatch({
|
|
@@ -23074,7 +23074,7 @@ const ApplyCouponButton = ({
|
|
|
23074
23074
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
23075
23075
|
};
|
|
23076
23076
|
|
|
23077
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
23077
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
23078
23078
|
className: "plc-h-12 plc-ml-4",
|
|
23079
23079
|
variant: "solid",
|
|
23080
23080
|
"aria-label": t("labels.applyCouponCode"),
|
|
@@ -23089,7 +23089,7 @@ const ApplyCouponButton = ({
|
|
|
23089
23089
|
const CouponCodeField = props => {
|
|
23090
23090
|
const {
|
|
23091
23091
|
t
|
|
23092
|
-
} = useTranslation
|
|
23092
|
+
} = useTranslation("checkoutForm");
|
|
23093
23093
|
const {
|
|
23094
23094
|
dispatch,
|
|
23095
23095
|
state: {
|
|
@@ -23155,7 +23155,7 @@ const CouponCode = ({
|
|
|
23155
23155
|
} = useContext(store$j);
|
|
23156
23156
|
const {
|
|
23157
23157
|
t
|
|
23158
|
-
} = useTranslation
|
|
23158
|
+
} = useTranslation("checkoutForm");
|
|
23159
23159
|
|
|
23160
23160
|
const showCouponField = () => {
|
|
23161
23161
|
dispatch({
|
|
@@ -23167,7 +23167,7 @@ const CouponCode = ({
|
|
|
23167
23167
|
|
|
23168
23168
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23169
23169
|
className: "plc-mt-4 plc-mb-6"
|
|
23170
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
23170
|
+
}, /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
23171
23171
|
className: "plc-mb-2 plc-text-base plc-text-gray-500",
|
|
23172
23172
|
variant: "ghost",
|
|
23173
23173
|
icon: /*#__PURE__*/React__default.createElement(SvgTicket, {
|
|
@@ -23508,7 +23508,7 @@ const PaypalSubscribeButton = props => {
|
|
|
23508
23508
|
const BankRedirection = () => {
|
|
23509
23509
|
const {
|
|
23510
23510
|
t
|
|
23511
|
-
} = useTranslation
|
|
23511
|
+
} = useTranslation("checkoutForm");
|
|
23512
23512
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23513
23513
|
className: "plc-absolute plc-inset-0 plc-flex-col plc-items-center plc-justify-center plc-hidden plc-text-lg plc-bg-white plc-z-max plc-text-primary-500 card-authentication-container"
|
|
23514
23514
|
}, t("messages.bankRedirection"), /*#__PURE__*/React__default.createElement(SvgSpinner, {
|
|
@@ -23519,7 +23519,7 @@ const BankRedirection = () => {
|
|
|
23519
23519
|
const BankAuthenticationSuccess = () => {
|
|
23520
23520
|
const {
|
|
23521
23521
|
t
|
|
23522
|
-
} = useTranslation
|
|
23522
|
+
} = useTranslation("checkoutForm");
|
|
23523
23523
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23524
23524
|
className: "plc-absolute plc-inset-0 plc-flex-col plc-items-center plc-justify-center plc-hidden plc-text-lg plc-bg-white plc-z-max plc-text-primary-500 card-authentication-success-container"
|
|
23525
23525
|
}, t("messages.bankAuthenticationSuccess"), /*#__PURE__*/React__default.createElement(SvgSpinner, {
|
|
@@ -23548,7 +23548,7 @@ const SelectedPaymentMethod = () => {
|
|
|
23548
23548
|
|
|
23549
23549
|
const {
|
|
23550
23550
|
t
|
|
23551
|
-
} = useTranslation
|
|
23551
|
+
} = useTranslation("paymentMethod");
|
|
23552
23552
|
const {
|
|
23553
23553
|
state: {
|
|
23554
23554
|
isLoading
|
|
@@ -23577,7 +23577,7 @@ const SelectedPaymentMethod = () => {
|
|
|
23577
23577
|
className: "plc-font-semibold"
|
|
23578
23578
|
}, "\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", {
|
|
23579
23579
|
className: "plc-text-sm plc-text-gray-500"
|
|
23580
|
-
}, 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))), /*#__PURE__*/React__default.createElement(Button
|
|
23580
|
+
}, 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))), /*#__PURE__*/React__default.createElement(Button, {
|
|
23581
23581
|
onClick: () => switchView("payment-method-select"),
|
|
23582
23582
|
disabled: isLoading,
|
|
23583
23583
|
variant: "ghost",
|
|
@@ -23590,7 +23590,7 @@ const TaxAmount = () => {
|
|
|
23590
23590
|
|
|
23591
23591
|
const {
|
|
23592
23592
|
t
|
|
23593
|
-
} = useTranslation
|
|
23593
|
+
} = useTranslation("checkoutForm");
|
|
23594
23594
|
const {
|
|
23595
23595
|
state: {
|
|
23596
23596
|
taxAmount
|
|
@@ -23642,7 +23642,7 @@ function PaymentMethodView({
|
|
|
23642
23642
|
|
|
23643
23643
|
const {
|
|
23644
23644
|
t
|
|
23645
|
-
} = useTranslation
|
|
23645
|
+
} = useTranslation("checkoutForm");
|
|
23646
23646
|
const cardProcessor = getSiteCardProcessor();
|
|
23647
23647
|
const supportsVantiv = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_gateway_settings);
|
|
23648
23648
|
const supportsTap = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.tap_gateway_settings);
|
|
@@ -23702,7 +23702,7 @@ const SubscriptionRenewView = ({
|
|
|
23702
23702
|
}) => {
|
|
23703
23703
|
const {
|
|
23704
23704
|
t
|
|
23705
|
-
} = useTranslation
|
|
23705
|
+
} = useTranslation("checkoutForm");
|
|
23706
23706
|
const {
|
|
23707
23707
|
plan
|
|
23708
23708
|
} = usePelcro();
|
|
@@ -23790,7 +23790,7 @@ function SubscriptionRenewModal({
|
|
|
23790
23790
|
id: "pelcro-subscription-renew-modal",
|
|
23791
23791
|
onDisplay: onDisplay,
|
|
23792
23792
|
onClose: onClose
|
|
23793
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
23793
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
23794
23794
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
23795
23795
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
23796
23796
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -23817,7 +23817,7 @@ const SubscriptionCancelContainer = ({
|
|
|
23817
23817
|
children,
|
|
23818
23818
|
...props
|
|
23819
23819
|
}) => {
|
|
23820
|
-
useTranslation
|
|
23820
|
+
useTranslation("verifyEmail");
|
|
23821
23821
|
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
23822
23822
|
switch (action.type) {
|
|
23823
23823
|
case SET_CANCEL_SUBSCRIPTION_REASON:
|
|
@@ -23923,7 +23923,7 @@ function TextArea({
|
|
|
23923
23923
|
const SubscriptionCancelReason = props => {
|
|
23924
23924
|
const {
|
|
23925
23925
|
t
|
|
23926
|
-
} = useTranslation
|
|
23926
|
+
} = useTranslation("subscriptionCancel");
|
|
23927
23927
|
const {
|
|
23928
23928
|
dispatch,
|
|
23929
23929
|
state
|
|
@@ -23980,7 +23980,7 @@ const SubscriptionCancelNowButton = ({
|
|
|
23980
23980
|
} = useContext(store$i);
|
|
23981
23981
|
const {
|
|
23982
23982
|
t
|
|
23983
|
-
} = useTranslation
|
|
23983
|
+
} = useTranslation("subscriptionCancel");
|
|
23984
23984
|
|
|
23985
23985
|
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
23986
23986
|
window.Pelcro.subscription.cancel({
|
|
@@ -24030,7 +24030,7 @@ const SubscriptionCancelNowButton = ({
|
|
|
24030
24030
|
});
|
|
24031
24031
|
};
|
|
24032
24032
|
|
|
24033
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
24033
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
24034
24034
|
onClick: handleCancelNowClick,
|
|
24035
24035
|
className: `${className}`
|
|
24036
24036
|
}, t("messages.cancelNow"));
|
|
@@ -24054,7 +24054,7 @@ const SubscriptionCancelLaterButton = ({
|
|
|
24054
24054
|
} = useContext(store$i);
|
|
24055
24055
|
const {
|
|
24056
24056
|
t
|
|
24057
|
-
} = useTranslation
|
|
24057
|
+
} = useTranslation("subscriptionCancel");
|
|
24058
24058
|
|
|
24059
24059
|
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
24060
24060
|
window.Pelcro.subscription.cancel({
|
|
@@ -24104,7 +24104,7 @@ const SubscriptionCancelLaterButton = ({
|
|
|
24104
24104
|
});
|
|
24105
24105
|
};
|
|
24106
24106
|
|
|
24107
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
24107
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
24108
24108
|
onClick: handleCancelNowClick,
|
|
24109
24109
|
className: `${className}`
|
|
24110
24110
|
}, t("messages.cancelLater"));
|
|
@@ -24116,7 +24116,7 @@ const SubscriptionCancelView = props => {
|
|
|
24116
24116
|
} = usePelcro();
|
|
24117
24117
|
const {
|
|
24118
24118
|
t
|
|
24119
|
-
} = useTranslation
|
|
24119
|
+
} = useTranslation("subscriptionCancel");
|
|
24120
24120
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24121
24121
|
id: "pelcro-subscription-cancel-view"
|
|
24122
24122
|
}, /*#__PURE__*/React__default.createElement(SubscriptionCancelContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -24147,12 +24147,12 @@ const SubscriptionCancelModal = ({
|
|
|
24147
24147
|
} = usePelcro();
|
|
24148
24148
|
const {
|
|
24149
24149
|
t
|
|
24150
|
-
} = useTranslation
|
|
24150
|
+
} = useTranslation("subscriptionCancel");
|
|
24151
24151
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
24152
24152
|
onDisplay: onDisplay,
|
|
24153
24153
|
onClose: onClose,
|
|
24154
24154
|
id: "pelcro-subscription-cancel-modal"
|
|
24155
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
24155
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
24156
24156
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
24157
24157
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
24158
24158
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -24179,7 +24179,7 @@ const SubscriptionSuspendContainer = ({
|
|
|
24179
24179
|
children,
|
|
24180
24180
|
...props
|
|
24181
24181
|
}) => {
|
|
24182
|
-
useTranslation
|
|
24182
|
+
useTranslation("SubscriptionSuspend");
|
|
24183
24183
|
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
24184
24184
|
switch (action.type) {
|
|
24185
24185
|
case SET_SUBSCRIPTION_SUSPEND_DATE:
|
|
@@ -24254,7 +24254,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
24254
24254
|
|
|
24255
24255
|
const {
|
|
24256
24256
|
t
|
|
24257
|
-
} = useTranslation
|
|
24257
|
+
} = useTranslation("subscriptionSuspend");
|
|
24258
24258
|
const {
|
|
24259
24259
|
dispatch,
|
|
24260
24260
|
state
|
|
@@ -24305,7 +24305,7 @@ const SubscriptionSuspendButton = ({
|
|
|
24305
24305
|
} = useContext(store$h);
|
|
24306
24306
|
const {
|
|
24307
24307
|
t
|
|
24308
|
-
} = useTranslation
|
|
24308
|
+
} = useTranslation("subscriptionSuspend");
|
|
24309
24309
|
|
|
24310
24310
|
const suspendSubscription = (payload, onSuccess, onFailure) => {
|
|
24311
24311
|
window.Pelcro.subscription.update({
|
|
@@ -24349,7 +24349,7 @@ const SubscriptionSuspendButton = ({
|
|
|
24349
24349
|
});
|
|
24350
24350
|
};
|
|
24351
24351
|
|
|
24352
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
24352
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
24353
24353
|
onClick: handleClick,
|
|
24354
24354
|
className: `${className}`,
|
|
24355
24355
|
disabled: buttonDisabled
|
|
@@ -24362,7 +24362,7 @@ const SubscriptionSuspendView = props => {
|
|
|
24362
24362
|
} = usePelcro();
|
|
24363
24363
|
const {
|
|
24364
24364
|
t
|
|
24365
|
-
} = useTranslation
|
|
24365
|
+
} = useTranslation("subscriptionSuspend");
|
|
24366
24366
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24367
24367
|
id: "pelcro-subscription-suspend-view"
|
|
24368
24368
|
}, /*#__PURE__*/React__default.createElement(SubscriptionSuspendContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -24428,7 +24428,7 @@ const PaymentSuccessView = ({
|
|
|
24428
24428
|
}) => {
|
|
24429
24429
|
const {
|
|
24430
24430
|
t
|
|
24431
|
-
} = useTranslation
|
|
24431
|
+
} = useTranslation("success");
|
|
24432
24432
|
const {
|
|
24433
24433
|
successTitle,
|
|
24434
24434
|
successContent,
|
|
@@ -24442,7 +24442,7 @@ const PaymentSuccessView = ({
|
|
|
24442
24442
|
className: "plc-text-center plc-text-gray-900"
|
|
24443
24443
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
24444
24444
|
className: "plc-mb-4 plc-text-3xl"
|
|
24445
|
-
}, successTitle), /*#__PURE__*/React__default.createElement("p", null, successContent)), /*#__PURE__*/React__default.createElement(Button
|
|
24445
|
+
}, successTitle), /*#__PURE__*/React__default.createElement("p", null, successContent)), /*#__PURE__*/React__default.createElement(Button, {
|
|
24446
24446
|
className: "plc-mt-6",
|
|
24447
24447
|
onClick: onClose,
|
|
24448
24448
|
autoFocus: true
|
|
@@ -24696,7 +24696,7 @@ class DefaultNewsLetter extends Component {
|
|
|
24696
24696
|
hideCloseButton: !this.closeButton,
|
|
24697
24697
|
onClose: this.props.onClose,
|
|
24698
24698
|
id: "pelcro-newsletter-modal"
|
|
24699
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
24699
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
24700
24700
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
24701
24701
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
24702
24702
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -24739,7 +24739,7 @@ class DefaultNewsLetter extends Component {
|
|
|
24739
24739
|
label: t("labels.postalCode")
|
|
24740
24740
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
24741
24741
|
className: "plc-text-gray-900 pelcro-footnote"
|
|
24742
|
-
}, "* ", t("labels.required")), /*#__PURE__*/React__default.createElement(Button
|
|
24742
|
+
}, "* ", t("labels.required")), /*#__PURE__*/React__default.createElement(Button, {
|
|
24743
24743
|
role: "submit",
|
|
24744
24744
|
className: "plc-w-full plc-mt-2",
|
|
24745
24745
|
id: "pelcro-submit",
|
|
@@ -24787,7 +24787,7 @@ const NewsletterUpdateContainer = ({
|
|
|
24787
24787
|
onFailure = () => {},
|
|
24788
24788
|
children
|
|
24789
24789
|
}) => {
|
|
24790
|
-
const [t] = useTranslation
|
|
24790
|
+
const [t] = useTranslation("newsletter");
|
|
24791
24791
|
|
|
24792
24792
|
const handleSubmit = ({
|
|
24793
24793
|
newsletters,
|
|
@@ -24966,8 +24966,8 @@ const NewsletterUpdateButton = ({
|
|
|
24966
24966
|
} = useContext(store$g);
|
|
24967
24967
|
const {
|
|
24968
24968
|
t
|
|
24969
|
-
} = useTranslation
|
|
24970
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
24969
|
+
} = useTranslation("newsletter");
|
|
24970
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
24971
24971
|
onClick: () => {
|
|
24972
24972
|
dispatch({
|
|
24973
24973
|
type: HANDLE_SUBMIT
|
|
@@ -25020,7 +25020,7 @@ const NewsletterUpdateList = () => {
|
|
|
25020
25020
|
const NewsletterUpdateView = props => {
|
|
25021
25021
|
const {
|
|
25022
25022
|
t
|
|
25023
|
-
} = useTranslation
|
|
25023
|
+
} = useTranslation("newsletter");
|
|
25024
25024
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25025
25025
|
id: "pelcro-newsletter-update-view"
|
|
25026
25026
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -25041,12 +25041,12 @@ const NewsletterUpdateModal = ({
|
|
|
25041
25041
|
}) => {
|
|
25042
25042
|
const {
|
|
25043
25043
|
t
|
|
25044
|
-
} = useTranslation
|
|
25044
|
+
} = useTranslation("newsletter");
|
|
25045
25045
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
25046
25046
|
id: "pelcro-newsletter-update-modal",
|
|
25047
25047
|
onDisplay: onDisplay,
|
|
25048
25048
|
onClose: onClose
|
|
25049
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
25049
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25050
25050
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25051
25051
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25052
25052
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -25059,7 +25059,7 @@ const MeterView = () => {
|
|
|
25059
25059
|
|
|
25060
25060
|
const {
|
|
25061
25061
|
t
|
|
25062
|
-
} = useTranslation
|
|
25062
|
+
} = useTranslation("meter");
|
|
25063
25063
|
const {
|
|
25064
25064
|
switchView,
|
|
25065
25065
|
product,
|
|
@@ -25075,10 +25075,10 @@ const MeterView = () => {
|
|
|
25075
25075
|
className: "plc-text-sm plc-text-gray-600"
|
|
25076
25076
|
}, subtitle, ",", !isAuthenticated() && " or " + t("messages.alreadyHaveAccount")), /*#__PURE__*/React__default.createElement("div", {
|
|
25077
25077
|
className: "plc-flex plc-mt-2"
|
|
25078
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
25078
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
25079
25079
|
className: "plc-w-1/2",
|
|
25080
25080
|
onClick: () => switchView("plan-select")
|
|
25081
|
-
}, t("messages.subscribeNow")), !isAuthenticated() && /*#__PURE__*/React__default.createElement(Button
|
|
25081
|
+
}, t("messages.subscribeNow")), !isAuthenticated() && /*#__PURE__*/React__default.createElement(Button, {
|
|
25082
25082
|
className: "pelcro-button-ghost plc-w-1/2",
|
|
25083
25083
|
onClick: () => switchView("login")
|
|
25084
25084
|
}, t("messages.loginHere"))));
|
|
@@ -25120,7 +25120,7 @@ const SubscriptionCreateView = ({
|
|
|
25120
25120
|
}) => {
|
|
25121
25121
|
const {
|
|
25122
25122
|
t
|
|
25123
|
-
} = useTranslation
|
|
25123
|
+
} = useTranslation("checkoutForm");
|
|
25124
25124
|
const {
|
|
25125
25125
|
plan
|
|
25126
25126
|
} = usePelcro();
|
|
@@ -25192,7 +25192,7 @@ function SubscriptionCreateModal({
|
|
|
25192
25192
|
id: "pelcro-subscription-create-modal",
|
|
25193
25193
|
onDisplay: onDisplay,
|
|
25194
25194
|
onClose: onClose
|
|
25195
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
25195
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25196
25196
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25197
25197
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25198
25198
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -25235,7 +25235,7 @@ const UserUpdateContainer = ({
|
|
|
25235
25235
|
}) => {
|
|
25236
25236
|
const {
|
|
25237
25237
|
t
|
|
25238
|
-
} = useTranslation
|
|
25238
|
+
} = useTranslation("userEdit");
|
|
25239
25239
|
useEffect(() => {
|
|
25240
25240
|
document.addEventListener("PelcroUserLoaded", () => {
|
|
25241
25241
|
loadUserDataIntoFields();
|
|
@@ -25448,7 +25448,7 @@ const UserUpdateEmail = props => {
|
|
|
25448
25448
|
const [enableEmailEdit, setEnableEmailEdit] = useState(false);
|
|
25449
25449
|
const {
|
|
25450
25450
|
t
|
|
25451
|
-
} = useTranslation
|
|
25451
|
+
} = useTranslation("userEdit");
|
|
25452
25452
|
|
|
25453
25453
|
const handleEnableEmailEdit = () => {
|
|
25454
25454
|
if (enableEmailEdit) {
|
|
@@ -25473,7 +25473,7 @@ const UserUpdateEmail = props => {
|
|
|
25473
25473
|
store: store$f,
|
|
25474
25474
|
label: t("labels.email"),
|
|
25475
25475
|
enableEmailEdit: enableEmailEdit
|
|
25476
|
-
}, props)), /*#__PURE__*/React__default.createElement(Button
|
|
25476
|
+
}, props)), /*#__PURE__*/React__default.createElement(Button, {
|
|
25477
25477
|
variant: "icon",
|
|
25478
25478
|
className: "plc-absolute plc-rounded-none plc-text-gray-500 plc-w-12 plc-h-12 plc-top-7 plc-right-0 hover:plc-text-gray-900 hover:plc-bg-transparent focus:plc-ring-0 focus:plc-shadow-none",
|
|
25479
25479
|
icon: enableEmailEdit ? /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
@@ -25508,12 +25508,12 @@ const UserUpdateButton = ({
|
|
|
25508
25508
|
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);
|
|
25509
25509
|
const {
|
|
25510
25510
|
t
|
|
25511
|
-
} = useTranslation
|
|
25511
|
+
} = useTranslation("userEdit");
|
|
25512
25512
|
const [isDisabled, setDisabled] = useState(true);
|
|
25513
25513
|
useEffect(() => {
|
|
25514
25514
|
setDisabled(buttonDisabled || emailError || !(email !== null && email !== void 0 && email.length) || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length));
|
|
25515
25515
|
}, [email, firstName, lastName, phone, buttonDisabled, emailError, firstNameError, lastNameError, phoneError]);
|
|
25516
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
25516
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
25517
25517
|
onClick: () => {
|
|
25518
25518
|
dispatch({
|
|
25519
25519
|
type: HANDLE_USER_UPDATE
|
|
@@ -25555,7 +25555,7 @@ const UserUpdateProfilePic = ({
|
|
|
25555
25555
|
src: profilePicture,
|
|
25556
25556
|
alt: "profile picture",
|
|
25557
25557
|
onClick: onClick
|
|
25558
|
-
}, otherProps)), /*#__PURE__*/React__default.createElement(Button
|
|
25558
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement(Button, {
|
|
25559
25559
|
variant: "icon",
|
|
25560
25560
|
className: "plc-absolute plc-bg-gray-500 plc-text-white plc-w-10 plc-h-10 plc-top-24 plc-right-2 hover:plc-bg-gray-600 hover:plc-text-white",
|
|
25561
25561
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -25569,7 +25569,7 @@ function Tin({
|
|
|
25569
25569
|
store,
|
|
25570
25570
|
...otherProps
|
|
25571
25571
|
}) {
|
|
25572
|
-
useTranslation
|
|
25572
|
+
useTranslation("common");
|
|
25573
25573
|
const {
|
|
25574
25574
|
dispatch,
|
|
25575
25575
|
state: {
|
|
@@ -25629,7 +25629,7 @@ const UserUpdateView = props => {
|
|
|
25629
25629
|
|
|
25630
25630
|
const {
|
|
25631
25631
|
t
|
|
25632
|
-
} = useTranslation
|
|
25632
|
+
} = useTranslation("userEdit");
|
|
25633
25633
|
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);
|
|
25634
25634
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25635
25635
|
id: "pelcro-user-update-view"
|
|
@@ -25688,7 +25688,7 @@ function UserUpdateModal({
|
|
|
25688
25688
|
} = usePelcro();
|
|
25689
25689
|
const {
|
|
25690
25690
|
t
|
|
25691
|
-
} = useTranslation
|
|
25691
|
+
} = useTranslation("userEdit");
|
|
25692
25692
|
|
|
25693
25693
|
const onPictureClick = () => {
|
|
25694
25694
|
switchView("profile-picture");
|
|
@@ -25698,7 +25698,7 @@ function UserUpdateModal({
|
|
|
25698
25698
|
id: "pelcro-user-update-modal",
|
|
25699
25699
|
onDisplay: onDisplay,
|
|
25700
25700
|
onClose: onClose
|
|
25701
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
25701
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25702
25702
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25703
25703
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25704
25704
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -25793,7 +25793,7 @@ const AddressCreateContainer = ({
|
|
|
25793
25793
|
|
|
25794
25794
|
const {
|
|
25795
25795
|
t
|
|
25796
|
-
} = useTranslation
|
|
25796
|
+
} = useTranslation("address");
|
|
25797
25797
|
const {
|
|
25798
25798
|
giftCode: giftCodeFromStore,
|
|
25799
25799
|
subscriptionIdToRenew: subscriptionIdToRenewFromStore,
|
|
@@ -26263,8 +26263,8 @@ const AddressCreateSubmit = ({
|
|
|
26263
26263
|
} = useContext(store$e);
|
|
26264
26264
|
const {
|
|
26265
26265
|
t
|
|
26266
|
-
} = useTranslation
|
|
26267
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
26266
|
+
} = useTranslation("address");
|
|
26267
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
26268
26268
|
onClick: () => {
|
|
26269
26269
|
dispatch({
|
|
26270
26270
|
type: HANDLE_SUBMIT
|
|
@@ -26489,7 +26489,7 @@ const AddressCreateSetDefault = props => {
|
|
|
26489
26489
|
const AddressCreateView = props => {
|
|
26490
26490
|
const {
|
|
26491
26491
|
t
|
|
26492
|
-
} = useTranslation
|
|
26492
|
+
} = useTranslation("address");
|
|
26493
26493
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26494
26494
|
id: "pelcro-address-create-view"
|
|
26495
26495
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -26561,7 +26561,7 @@ const AddressCreateModal = ({
|
|
|
26561
26561
|
} = usePelcro();
|
|
26562
26562
|
const {
|
|
26563
26563
|
t
|
|
26564
|
-
} = useTranslation
|
|
26564
|
+
} = useTranslation("address");
|
|
26565
26565
|
|
|
26566
26566
|
const onSuccess = newAddressId => {
|
|
26567
26567
|
var _otherProps$onSuccess;
|
|
@@ -26589,7 +26589,7 @@ const AddressCreateModal = ({
|
|
|
26589
26589
|
id: "pelcro-address-create-modal",
|
|
26590
26590
|
onDisplay: onDisplay,
|
|
26591
26591
|
onClose: onClose
|
|
26592
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
26592
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26593
26593
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
26594
26594
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26595
26595
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -26660,7 +26660,7 @@ const AddressUpdateContainer = ({
|
|
|
26660
26660
|
addressIdToEdit
|
|
26661
26661
|
} = usePelcro();
|
|
26662
26662
|
const addressId = (_props$addressId = props === null || props === void 0 ? void 0 : props.addressId) !== null && _props$addressId !== void 0 ? _props$addressId : addressIdToEdit;
|
|
26663
|
-
const [t] = useTranslation
|
|
26663
|
+
const [t] = useTranslation("address");
|
|
26664
26664
|
useEffect(() => {
|
|
26665
26665
|
const getCountries = () => {
|
|
26666
26666
|
dispatch({
|
|
@@ -27121,8 +27121,8 @@ const AddressUpdateSubmit = ({
|
|
|
27121
27121
|
} = useContext(store$d);
|
|
27122
27122
|
const {
|
|
27123
27123
|
t
|
|
27124
|
-
} = useTranslation
|
|
27125
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
27124
|
+
} = useTranslation("address");
|
|
27125
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27126
27126
|
onClick: () => {
|
|
27127
27127
|
dispatch({
|
|
27128
27128
|
type: HANDLE_SUBMIT
|
|
@@ -27164,7 +27164,7 @@ function AddressUpdateSetDefault(props) {
|
|
|
27164
27164
|
const AddressUpdateView = props => {
|
|
27165
27165
|
const {
|
|
27166
27166
|
t
|
|
27167
|
-
} = useTranslation
|
|
27167
|
+
} = useTranslation("address");
|
|
27168
27168
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27169
27169
|
id: "pelcro-address-update-view"
|
|
27170
27170
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -27236,12 +27236,12 @@ const AddressUpdateModal = ({
|
|
|
27236
27236
|
}) => {
|
|
27237
27237
|
const {
|
|
27238
27238
|
t
|
|
27239
|
-
} = useTranslation
|
|
27239
|
+
} = useTranslation("address");
|
|
27240
27240
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
27241
27241
|
id: "pelcro-address-update-modal",
|
|
27242
27242
|
onDisplay: onDisplay,
|
|
27243
27243
|
onClose: onClose
|
|
27244
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
27244
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27245
27245
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27246
27246
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27247
27247
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -27308,7 +27308,7 @@ const ReactGA$2 = (_window$2 = window) !== null && _window$2 !== void 0 && (_win
|
|
|
27308
27308
|
const PaymentMethodUpdateModal = props => {
|
|
27309
27309
|
const {
|
|
27310
27310
|
t
|
|
27311
|
-
} = useTranslation
|
|
27311
|
+
} = useTranslation("paymentMethod");
|
|
27312
27312
|
|
|
27313
27313
|
const onSuccess = res => {
|
|
27314
27314
|
var _props$onSuccess, _ReactGA$event;
|
|
@@ -27325,7 +27325,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
27325
27325
|
id: "pelcro-payment-method-update-modal",
|
|
27326
27326
|
onDisplay: props.onDisplay,
|
|
27327
27327
|
onClose: props.onClose
|
|
27328
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
27328
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27329
27329
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27330
27330
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27331
27331
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -27362,7 +27362,7 @@ const PasswordResetContainer = ({
|
|
|
27362
27362
|
}) => {
|
|
27363
27363
|
const {
|
|
27364
27364
|
t
|
|
27365
|
-
} = useTranslation
|
|
27365
|
+
} = useTranslation("passwordReset");
|
|
27366
27366
|
|
|
27367
27367
|
const handleSubmit = ({
|
|
27368
27368
|
email,
|
|
@@ -27503,8 +27503,8 @@ const PasswordResetButton = ({
|
|
|
27503
27503
|
} = useContext(store$c);
|
|
27504
27504
|
const {
|
|
27505
27505
|
t
|
|
27506
|
-
} = useTranslation
|
|
27507
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
27506
|
+
} = useTranslation("passwordReset");
|
|
27507
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27508
27508
|
onClick: () => {
|
|
27509
27509
|
dispatch({
|
|
27510
27510
|
type: HANDLE_SUBMIT
|
|
@@ -27530,7 +27530,7 @@ const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.create
|
|
|
27530
27530
|
const PasswordResetView = props => {
|
|
27531
27531
|
const {
|
|
27532
27532
|
t
|
|
27533
|
-
} = useTranslation
|
|
27533
|
+
} = useTranslation("passwordReset");
|
|
27534
27534
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27535
27535
|
id: "pelcro-password-reset-view"
|
|
27536
27536
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -27566,12 +27566,12 @@ const PasswordResetModal = ({
|
|
|
27566
27566
|
}) => {
|
|
27567
27567
|
const {
|
|
27568
27568
|
t
|
|
27569
|
-
} = useTranslation
|
|
27569
|
+
} = useTranslation("passwordReset");
|
|
27570
27570
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
27571
27571
|
onDisplay: onDisplay,
|
|
27572
27572
|
onClose: onClose,
|
|
27573
27573
|
id: "pelcro-password-reset-modal"
|
|
27574
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
27574
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27575
27575
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27576
27576
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27577
27577
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -27602,7 +27602,7 @@ const PasswordForgotContainer = ({
|
|
|
27602
27602
|
}) => {
|
|
27603
27603
|
const {
|
|
27604
27604
|
t
|
|
27605
|
-
} = useTranslation
|
|
27605
|
+
} = useTranslation("passwordForgot");
|
|
27606
27606
|
|
|
27607
27607
|
const handleSubmit = ({
|
|
27608
27608
|
email
|
|
@@ -27702,12 +27702,12 @@ const PasswordForgotButton = ({
|
|
|
27702
27702
|
} = useContext(store$b);
|
|
27703
27703
|
const {
|
|
27704
27704
|
t
|
|
27705
|
-
} = useTranslation
|
|
27705
|
+
} = useTranslation("passwordForgot");
|
|
27706
27706
|
const [isDisabled, setDisabled] = useState(true);
|
|
27707
27707
|
useEffect(() => {
|
|
27708
27708
|
setDisabled(emailError || !email.length || buttonDisabled);
|
|
27709
27709
|
}, [emailError, email, buttonDisabled]);
|
|
27710
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
27710
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27711
27711
|
onClick: () => {
|
|
27712
27712
|
dispatch({
|
|
27713
27713
|
type: HANDLE_SUBMIT
|
|
@@ -27726,7 +27726,7 @@ const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(E
|
|
|
27726
27726
|
const PasswordForgotView = props => {
|
|
27727
27727
|
const {
|
|
27728
27728
|
t
|
|
27729
|
-
} = useTranslation
|
|
27729
|
+
} = useTranslation("passwordForgot");
|
|
27730
27730
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27731
27731
|
id: "pelcro-password-forgot-view"
|
|
27732
27732
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -27751,7 +27751,7 @@ const PasswordForgotModal = ({
|
|
|
27751
27751
|
}) => {
|
|
27752
27752
|
const {
|
|
27753
27753
|
t
|
|
27754
|
-
} = useTranslation
|
|
27754
|
+
} = useTranslation("passwordForgot");
|
|
27755
27755
|
const {
|
|
27756
27756
|
switchView
|
|
27757
27757
|
} = usePelcro();
|
|
@@ -27759,7 +27759,7 @@ const PasswordForgotModal = ({
|
|
|
27759
27759
|
id: "pelcro-password-forgot-modal",
|
|
27760
27760
|
onDisplay: onDisplay,
|
|
27761
27761
|
onClose: onClose
|
|
27762
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
27762
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27763
27763
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27764
27764
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27765
27765
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -27797,7 +27797,7 @@ const PasswordlessRequestContainer = ({
|
|
|
27797
27797
|
}) => {
|
|
27798
27798
|
const {
|
|
27799
27799
|
t
|
|
27800
|
-
} = useTranslation
|
|
27800
|
+
} = useTranslation("passwordlessRequest");
|
|
27801
27801
|
|
|
27802
27802
|
const handleSubmit = ({
|
|
27803
27803
|
email
|
|
@@ -27897,12 +27897,12 @@ const PasswordlessRequestViewButton = ({
|
|
|
27897
27897
|
} = useContext(store$a);
|
|
27898
27898
|
const {
|
|
27899
27899
|
t
|
|
27900
|
-
} = useTranslation
|
|
27900
|
+
} = useTranslation("passwordlessRequest");
|
|
27901
27901
|
const [isDisabled, setDisabled] = useState(true);
|
|
27902
27902
|
useEffect(() => {
|
|
27903
27903
|
setDisabled(emailError || !email.length || buttonDisabled);
|
|
27904
27904
|
}, [emailError, email, buttonDisabled]);
|
|
27905
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
27905
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
27906
27906
|
onClick: () => {
|
|
27907
27907
|
dispatch({
|
|
27908
27908
|
type: HANDLE_SUBMIT
|
|
@@ -27921,7 +27921,7 @@ const PasswordlessRequestEmail = props => /*#__PURE__*/React__default.createElem
|
|
|
27921
27921
|
const PasswordlessRequestView = props => {
|
|
27922
27922
|
const {
|
|
27923
27923
|
t
|
|
27924
|
-
} = useTranslation
|
|
27924
|
+
} = useTranslation("passwordlessRequest");
|
|
27925
27925
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
27926
27926
|
id: "pelcro-password-forgot-view"
|
|
27927
27927
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -27946,12 +27946,12 @@ const PasswordlessRequestModal = ({
|
|
|
27946
27946
|
}) => {
|
|
27947
27947
|
const {
|
|
27948
27948
|
t
|
|
27949
|
-
} = useTranslation
|
|
27949
|
+
} = useTranslation("passwordlessRequest");
|
|
27950
27950
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
27951
27951
|
id: "pelcro-password-forgot-modal",
|
|
27952
27952
|
onDisplay: onDisplay,
|
|
27953
27953
|
onClose: onClose
|
|
27954
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
27954
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27955
27955
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27956
27956
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27957
27957
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -27986,7 +27986,7 @@ const PasswordChangeContainer = ({
|
|
|
27986
27986
|
}) => {
|
|
27987
27987
|
const {
|
|
27988
27988
|
t
|
|
27989
|
-
} = useTranslation
|
|
27989
|
+
} = useTranslation("passwordChange");
|
|
27990
27990
|
|
|
27991
27991
|
const handleSubmit = ({
|
|
27992
27992
|
currentPassword,
|
|
@@ -28265,9 +28265,9 @@ const PasswordChangeButton = ({
|
|
|
28265
28265
|
} = useContext(store$9);
|
|
28266
28266
|
const {
|
|
28267
28267
|
t
|
|
28268
|
-
} = useTranslation
|
|
28268
|
+
} = useTranslation("passwordChange");
|
|
28269
28269
|
const hasInvalidField = currentPasswordError || newPasswordError || confirmNewPasswordError;
|
|
28270
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28270
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28271
28271
|
onClick: () => {
|
|
28272
28272
|
dispatch({
|
|
28273
28273
|
type: HANDLE_SUBMIT
|
|
@@ -28282,7 +28282,7 @@ const PasswordChangeButton = ({
|
|
|
28282
28282
|
const PasswordChangeView = props => {
|
|
28283
28283
|
const {
|
|
28284
28284
|
t
|
|
28285
|
-
} = useTranslation
|
|
28285
|
+
} = useTranslation("passwordChange");
|
|
28286
28286
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28287
28287
|
id: "pelcro-password-change-view"
|
|
28288
28288
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -28318,12 +28318,12 @@ const PasswordChangeModal = ({
|
|
|
28318
28318
|
}) => {
|
|
28319
28319
|
const {
|
|
28320
28320
|
t
|
|
28321
|
-
} = useTranslation
|
|
28321
|
+
} = useTranslation("passwordChange");
|
|
28322
28322
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
28323
28323
|
id: "pelcro-password-change-modal",
|
|
28324
28324
|
onDisplay: onDisplay,
|
|
28325
28325
|
onClose: onClose
|
|
28326
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
28326
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28327
28327
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
28328
28328
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
28329
28329
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -28356,7 +28356,7 @@ const CartContainer = ({
|
|
|
28356
28356
|
} = usePelcro();
|
|
28357
28357
|
const {
|
|
28358
28358
|
t
|
|
28359
|
-
} = useTranslation
|
|
28359
|
+
} = useTranslation("shop");
|
|
28360
28360
|
useEffect(() => {
|
|
28361
28361
|
dispatch({
|
|
28362
28362
|
type: DISABLE_SUBMIT,
|
|
@@ -28459,7 +28459,7 @@ const CartRemoveItemButton = ({
|
|
|
28459
28459
|
const {
|
|
28460
28460
|
removeFromCart
|
|
28461
28461
|
} = usePelcro();
|
|
28462
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28462
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28463
28463
|
variant: "icon",
|
|
28464
28464
|
"data-key": itemId,
|
|
28465
28465
|
icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
@@ -28487,8 +28487,8 @@ const CartSubmit = ({
|
|
|
28487
28487
|
} = useContext(store$8);
|
|
28488
28488
|
const {
|
|
28489
28489
|
t
|
|
28490
|
-
} = useTranslation
|
|
28491
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28490
|
+
} = useTranslation("cart");
|
|
28491
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({}, otherProps, {
|
|
28492
28492
|
onClick: () => {
|
|
28493
28493
|
dispatch({
|
|
28494
28494
|
type: HANDLE_SUBMIT
|
|
@@ -28525,7 +28525,7 @@ const CartTotalPrice = () => {
|
|
|
28525
28525
|
const totalPriceCurrency = cartItems[0].currency;
|
|
28526
28526
|
const {
|
|
28527
28527
|
t
|
|
28528
|
-
} = useTranslation
|
|
28528
|
+
} = useTranslation("cart");
|
|
28529
28529
|
|
|
28530
28530
|
if (!alert.content) {
|
|
28531
28531
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -28544,7 +28544,7 @@ const CartView = props => {
|
|
|
28544
28544
|
} = usePelcro();
|
|
28545
28545
|
const {
|
|
28546
28546
|
t
|
|
28547
|
-
} = useTranslation
|
|
28547
|
+
} = useTranslation("cart");
|
|
28548
28548
|
useEffect(() => {
|
|
28549
28549
|
document.dispatchEvent(cartOpened(cartItems));
|
|
28550
28550
|
}, []);
|
|
@@ -28603,7 +28603,7 @@ const CartModal = ({
|
|
|
28603
28603
|
} = usePelcro();
|
|
28604
28604
|
const {
|
|
28605
28605
|
t
|
|
28606
|
-
} = useTranslation
|
|
28606
|
+
} = useTranslation("cart");
|
|
28607
28607
|
|
|
28608
28608
|
const onSuccess = items => {
|
|
28609
28609
|
var _otherProps$onSuccess;
|
|
@@ -28622,7 +28622,7 @@ const CartModal = ({
|
|
|
28622
28622
|
onDisplay: onDisplay,
|
|
28623
28623
|
onClose: onClose,
|
|
28624
28624
|
hideCloseButton: false
|
|
28625
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
28625
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28626
28626
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
28627
28627
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
28628
28628
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -28642,7 +28642,7 @@ const ShopSelectProductButton = ({
|
|
|
28642
28642
|
} = usePelcro();
|
|
28643
28643
|
const {
|
|
28644
28644
|
t
|
|
28645
|
-
} = useTranslation
|
|
28645
|
+
} = useTranslation("shop");
|
|
28646
28646
|
const [disabled, setDisabled] = useState(false);
|
|
28647
28647
|
const [textContent, setTextContent] = useState(t("buttons.select"));
|
|
28648
28648
|
|
|
@@ -28657,7 +28657,7 @@ const ShopSelectProductButton = ({
|
|
|
28657
28657
|
}, 1000);
|
|
28658
28658
|
};
|
|
28659
28659
|
|
|
28660
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28660
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28661
28661
|
"data-sku-id": itemId,
|
|
28662
28662
|
id: `pelcro-shop-select-${itemId}`,
|
|
28663
28663
|
onClick: handleClick,
|
|
@@ -28674,8 +28674,8 @@ const ShopPurchaseButton = ({
|
|
|
28674
28674
|
} = usePelcro();
|
|
28675
28675
|
const {
|
|
28676
28676
|
t
|
|
28677
|
-
} = useTranslation
|
|
28678
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28677
|
+
} = useTranslation("shop");
|
|
28678
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({}, otherProps, {
|
|
28679
28679
|
"data-sku-id": itemId,
|
|
28680
28680
|
id: `pelcro-shop-purchase-${itemId}`,
|
|
28681
28681
|
onClick: () => purchaseItem(itemId)
|
|
@@ -28745,7 +28745,7 @@ const OrderCreateModal = ({
|
|
|
28745
28745
|
} = usePelcro();
|
|
28746
28746
|
const {
|
|
28747
28747
|
t
|
|
28748
|
-
} = useTranslation
|
|
28748
|
+
} = useTranslation("payment");
|
|
28749
28749
|
|
|
28750
28750
|
const onSuccess = () => {
|
|
28751
28751
|
var _otherProps$onSuccess;
|
|
@@ -28758,7 +28758,7 @@ const OrderCreateModal = ({
|
|
|
28758
28758
|
id: "pelcro-order-create-modal",
|
|
28759
28759
|
onDisplay: onDisplay,
|
|
28760
28760
|
onClose: onClose
|
|
28761
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
28761
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28762
28762
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
28763
28763
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
28764
28764
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -28776,7 +28776,7 @@ const OrderConfirmModal = props => {
|
|
|
28776
28776
|
const latestOrderDiscount = latestOrder === null || latestOrder === void 0 ? void 0 : (_latestOrder$coupon = latestOrder.coupon) === null || _latestOrder$coupon === void 0 ? void 0 : _latestOrder$coupon.percent_off;
|
|
28777
28777
|
const {
|
|
28778
28778
|
t
|
|
28779
|
-
} = useTranslation
|
|
28779
|
+
} = useTranslation("shop");
|
|
28780
28780
|
const {
|
|
28781
28781
|
resetView
|
|
28782
28782
|
} = usePelcro();
|
|
@@ -28834,7 +28834,7 @@ const OrderConfirmModal = props => {
|
|
|
28834
28834
|
className: "pelcro-summary-total"
|
|
28835
28835
|
}, latestOrderDiscount && `(-${latestOrderDiscount}%) `, getFormattedPriceByLocal(latestOrder === null || latestOrder === void 0 ? void 0 : latestOrder.amount, latestOrder === null || latestOrder === void 0 ? void 0 : latestOrder.currency, getPageOrDefaultLanguage())))), /*#__PURE__*/React__default.createElement("div", {
|
|
28836
28836
|
className: "plc-flex plc-justify-center plc-mt-6"
|
|
28837
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
28837
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
28838
28838
|
id: "pelcro-submit",
|
|
28839
28839
|
onClick: onClose,
|
|
28840
28840
|
autoFocus: true
|
|
@@ -28868,7 +28868,7 @@ const GiftCreateContainer = ({
|
|
|
28868
28868
|
}) => {
|
|
28869
28869
|
const {
|
|
28870
28870
|
t
|
|
28871
|
-
} = useTranslation
|
|
28871
|
+
} = useTranslation("register");
|
|
28872
28872
|
const {
|
|
28873
28873
|
set
|
|
28874
28874
|
} = usePelcro();
|
|
@@ -28992,8 +28992,8 @@ const GiftCreateSubmitButton = ({
|
|
|
28992
28992
|
} = useContext(store$7);
|
|
28993
28993
|
const {
|
|
28994
28994
|
t
|
|
28995
|
-
} = useTranslation
|
|
28996
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
28995
|
+
} = useTranslation("register");
|
|
28996
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
28997
28997
|
onClick: () => {
|
|
28998
28998
|
dispatch({
|
|
28999
28999
|
type: HANDLE_SUBMIT
|
|
@@ -29027,7 +29027,7 @@ const GiftCreateStartDate = props => {
|
|
|
29027
29027
|
|
|
29028
29028
|
const {
|
|
29029
29029
|
t
|
|
29030
|
-
} = useTranslation
|
|
29030
|
+
} = useTranslation("register");
|
|
29031
29031
|
const {
|
|
29032
29032
|
dispatch,
|
|
29033
29033
|
state
|
|
@@ -29062,7 +29062,7 @@ function GiftCreateMessage(props) {
|
|
|
29062
29062
|
|
|
29063
29063
|
const {
|
|
29064
29064
|
t
|
|
29065
|
-
} = useTranslation
|
|
29065
|
+
} = useTranslation("register");
|
|
29066
29066
|
const {
|
|
29067
29067
|
dispatch,
|
|
29068
29068
|
state
|
|
@@ -29096,7 +29096,7 @@ function GiftCreateMessage(props) {
|
|
|
29096
29096
|
const GiftCreateView = props => {
|
|
29097
29097
|
const {
|
|
29098
29098
|
t
|
|
29099
|
-
} = useTranslation
|
|
29099
|
+
} = useTranslation("register");
|
|
29100
29100
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29101
29101
|
id: "pelcro-gift-create-view"
|
|
29102
29102
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -29155,7 +29155,7 @@ const GiftCreateModal = ({
|
|
|
29155
29155
|
}) => {
|
|
29156
29156
|
const {
|
|
29157
29157
|
t
|
|
29158
|
-
} = useTranslation
|
|
29158
|
+
} = useTranslation("register");
|
|
29159
29159
|
const {
|
|
29160
29160
|
switchView,
|
|
29161
29161
|
switchToAddressView,
|
|
@@ -29179,7 +29179,7 @@ const GiftCreateModal = ({
|
|
|
29179
29179
|
id: "pelcro-gift-create-modal",
|
|
29180
29180
|
onDisplay: onDisplay,
|
|
29181
29181
|
onClose: onClose
|
|
29182
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
29182
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29183
29183
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29184
29184
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29185
29185
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -29219,7 +29219,7 @@ const GiftRedeemContainer = ({
|
|
|
29219
29219
|
}) => {
|
|
29220
29220
|
const {
|
|
29221
29221
|
t
|
|
29222
|
-
} = useTranslation
|
|
29222
|
+
} = useTranslation("register");
|
|
29223
29223
|
const {
|
|
29224
29224
|
set
|
|
29225
29225
|
} = usePelcro();
|
|
@@ -29339,8 +29339,8 @@ const GiftRedeemSubmitButton = ({
|
|
|
29339
29339
|
} = useContext(store$6);
|
|
29340
29340
|
const {
|
|
29341
29341
|
t
|
|
29342
|
-
} = useTranslation
|
|
29343
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
29342
|
+
} = useTranslation("register");
|
|
29343
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
29344
29344
|
onClick: () => {
|
|
29345
29345
|
dispatch({
|
|
29346
29346
|
type: HANDLE_SUBMIT
|
|
@@ -29354,7 +29354,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
29354
29354
|
const GiftRedeemView = props => {
|
|
29355
29355
|
const {
|
|
29356
29356
|
t
|
|
29357
|
-
} = useTranslation
|
|
29357
|
+
} = useTranslation("register");
|
|
29358
29358
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29359
29359
|
id: "pelcro-gift-redeem-view"
|
|
29360
29360
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -29383,7 +29383,7 @@ const GiftRedeemModal = ({
|
|
|
29383
29383
|
}) => {
|
|
29384
29384
|
const {
|
|
29385
29385
|
t
|
|
29386
|
-
} = useTranslation
|
|
29386
|
+
} = useTranslation("register");
|
|
29387
29387
|
const {
|
|
29388
29388
|
switchView,
|
|
29389
29389
|
switchToAddressView,
|
|
@@ -29406,7 +29406,7 @@ const GiftRedeemModal = ({
|
|
|
29406
29406
|
id: "pelcro-gift-redeem-modal",
|
|
29407
29407
|
onClose: onClose,
|
|
29408
29408
|
onDisplay: onDisplay
|
|
29409
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
29409
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29410
29410
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29411
29411
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29412
29412
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -29463,7 +29463,7 @@ const AddressSelectContainer = ({
|
|
|
29463
29463
|
|
|
29464
29464
|
const {
|
|
29465
29465
|
t
|
|
29466
|
-
} = useTranslation
|
|
29466
|
+
} = useTranslation("address");
|
|
29467
29467
|
const {
|
|
29468
29468
|
switchView,
|
|
29469
29469
|
giftCode: giftCodeFromStore,
|
|
@@ -29664,8 +29664,8 @@ const AddressSelectSubmit = ({
|
|
|
29664
29664
|
} = useContext(store$5);
|
|
29665
29665
|
const {
|
|
29666
29666
|
t
|
|
29667
|
-
} = useTranslation
|
|
29668
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
29667
|
+
} = useTranslation("address");
|
|
29668
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
29669
29669
|
onClick: () => {
|
|
29670
29670
|
dispatch({
|
|
29671
29671
|
type: HANDLE_SUBMIT
|
|
@@ -29680,7 +29680,7 @@ const AddressSelectSubmit = ({
|
|
|
29680
29680
|
const AddressSelectView = props => {
|
|
29681
29681
|
const {
|
|
29682
29682
|
t
|
|
29683
|
-
} = useTranslation
|
|
29683
|
+
} = useTranslation("address");
|
|
29684
29684
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29685
29685
|
id: "pelcro-address-select-view"
|
|
29686
29686
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -29712,7 +29712,7 @@ const AddressSelectModal = ({
|
|
|
29712
29712
|
} = usePelcro();
|
|
29713
29713
|
const {
|
|
29714
29714
|
t
|
|
29715
|
-
} = useTranslation
|
|
29715
|
+
} = useTranslation("address");
|
|
29716
29716
|
|
|
29717
29717
|
const onSuccess = selectedAddressId => {
|
|
29718
29718
|
var _otherProps$onSuccess;
|
|
@@ -29744,7 +29744,7 @@ const AddressSelectModal = ({
|
|
|
29744
29744
|
onDisplay: onDisplay,
|
|
29745
29745
|
onClose: onClose,
|
|
29746
29746
|
id: "pelcro-address-select-modal"
|
|
29747
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
29747
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29748
29748
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29749
29749
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29750
29750
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -29871,7 +29871,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
29871
29871
|
const PaymentMethodSelectList = () => {
|
|
29872
29872
|
const {
|
|
29873
29873
|
t
|
|
29874
|
-
} = useTranslation
|
|
29874
|
+
} = useTranslation("paymentMethod");
|
|
29875
29875
|
const {
|
|
29876
29876
|
dispatch,
|
|
29877
29877
|
state: {
|
|
@@ -29921,7 +29921,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
29921
29921
|
}) => {
|
|
29922
29922
|
const {
|
|
29923
29923
|
t
|
|
29924
|
-
} = useTranslation
|
|
29924
|
+
} = useTranslation("paymentMethod");
|
|
29925
29925
|
const {
|
|
29926
29926
|
dispatch,
|
|
29927
29927
|
state: {
|
|
@@ -29929,7 +29929,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
29929
29929
|
isSubmitting
|
|
29930
29930
|
}
|
|
29931
29931
|
} = useContext(store$4);
|
|
29932
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
29932
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
29933
29933
|
onClick: () => {
|
|
29934
29934
|
dispatch({
|
|
29935
29935
|
type: HANDLE_SUBMIT
|
|
@@ -29944,7 +29944,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
29944
29944
|
const PaymentMethodSelectView = props => {
|
|
29945
29945
|
const {
|
|
29946
29946
|
t
|
|
29947
|
-
} = useTranslation
|
|
29947
|
+
} = useTranslation("paymentMethod");
|
|
29948
29948
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29949
29949
|
id: "pelcro-payment-method-select-view"
|
|
29950
29950
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -29973,7 +29973,7 @@ const PaymentMethodSelectModal = ({
|
|
|
29973
29973
|
} = usePelcro();
|
|
29974
29974
|
const {
|
|
29975
29975
|
t
|
|
29976
|
-
} = useTranslation
|
|
29976
|
+
} = useTranslation("paymentMethod");
|
|
29977
29977
|
|
|
29978
29978
|
const onSuccess = selectedPaymentMethodId => {
|
|
29979
29979
|
var _otherProps$onSuccess;
|
|
@@ -29993,7 +29993,7 @@ const PaymentMethodSelectModal = ({
|
|
|
29993
29993
|
onDisplay: onDisplay,
|
|
29994
29994
|
onClose: onClose,
|
|
29995
29995
|
id: "pelcro-payment-method-select-modal"
|
|
29996
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
29996
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29997
29997
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29998
29998
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29999
29999
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -31380,7 +31380,7 @@ const Card = ({
|
|
|
31380
31380
|
requestStates,
|
|
31381
31381
|
...restProps
|
|
31382
31382
|
}) => {
|
|
31383
|
-
useTranslation
|
|
31383
|
+
useTranslation("dashboard");
|
|
31384
31384
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
31385
31385
|
className: `plc-bg-white plc-border-2 plc-p-6 plc-rounded plc-my-20 ${className}`,
|
|
31386
31386
|
id: "plc-dashboard-card"
|
|
@@ -31404,7 +31404,7 @@ const ReactGA$1 = (_window$1 = window) !== null && _window$1 !== void 0 && (_win
|
|
|
31404
31404
|
const SavedItemsMenu = () => {
|
|
31405
31405
|
const {
|
|
31406
31406
|
t
|
|
31407
|
-
} = useTranslation
|
|
31407
|
+
} = useTranslation("dashboard");
|
|
31408
31408
|
const [userMetadata, setUserMetadata] = useState(window.Pelcro.user.read().metadata);
|
|
31409
31409
|
const userSavedItems = userMetadata ? Object.entries(userMetadata) // only get metadata related to saved items
|
|
31410
31410
|
.filter(([categoryTitle, value]) => categoryTitle.startsWith("metadata_saved_") && (value === null || value === void 0 ? void 0 : value.length)) // drop the "metadata_saved_" from the category title
|
|
@@ -31424,7 +31424,7 @@ const SavedItems = ({
|
|
|
31424
31424
|
}) => {
|
|
31425
31425
|
const {
|
|
31426
31426
|
t
|
|
31427
|
-
} = useTranslation
|
|
31427
|
+
} = useTranslation("dashboard");
|
|
31428
31428
|
const [isLoading, setLoading] = useState(false);
|
|
31429
31429
|
const {
|
|
31430
31430
|
isAuthenticated
|
|
@@ -31484,7 +31484,7 @@ const SavedItems = ({
|
|
|
31484
31484
|
src: item === null || item === void 0 ? void 0 : item.image
|
|
31485
31485
|
}), /*#__PURE__*/React__default.createElement("span", {
|
|
31486
31486
|
className: "plc-font-semibold"
|
|
31487
|
-
}, item.title)))), /*#__PURE__*/React__default.createElement(Button
|
|
31487
|
+
}, item.title)))), /*#__PURE__*/React__default.createElement(Button, {
|
|
31488
31488
|
variant: "ghost",
|
|
31489
31489
|
type: "button",
|
|
31490
31490
|
className: "plc-text-gray-500 plc-rounded-2xl",
|
|
@@ -31513,10 +31513,30 @@ function SvgCalendar(props) {
|
|
|
31513
31513
|
})));
|
|
31514
31514
|
}
|
|
31515
31515
|
|
|
31516
|
+
const AddNew = ({
|
|
31517
|
+
title,
|
|
31518
|
+
onClick
|
|
31519
|
+
}) => {
|
|
31520
|
+
const handleClick = () => {
|
|
31521
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
31522
|
+
};
|
|
31523
|
+
|
|
31524
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title && /*#__PURE__*/React__default.createElement("div", {
|
|
31525
|
+
className: "plc-mt-5 plc-relative plc-text-primary-500"
|
|
31526
|
+
}, /*#__PURE__*/React__default.createElement("hr", {
|
|
31527
|
+
className: "plc-absolute plc-border-t-2 plc-my-4 plc-top-1.5 plc-w-full"
|
|
31528
|
+
}), /*#__PURE__*/React__default.createElement("button", {
|
|
31529
|
+
onClick: handleClick,
|
|
31530
|
+
className: "plc-bg-white plc-flex plc-items-center plc-mx-auto plc-p-2 plc-relative focus-within:plc-outline-none"
|
|
31531
|
+
}, /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
31532
|
+
className: "plc-w-4 plc-h-4 plc-mr-1"
|
|
31533
|
+
}), /*#__PURE__*/React__default.createElement("span", null, title))));
|
|
31534
|
+
};
|
|
31535
|
+
|
|
31516
31536
|
const SubscriptionsMenu = props => {
|
|
31517
31537
|
const {
|
|
31518
31538
|
t
|
|
31519
|
-
} = useTranslation
|
|
31539
|
+
} = useTranslation("dashboard");
|
|
31520
31540
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
31521
31541
|
id: "pelcro-dashboard-subscriptions-menu",
|
|
31522
31542
|
className: "plc-max-w-80% plc-m-auto",
|
|
@@ -31537,20 +31557,15 @@ const SubscriptionsMenu = props => {
|
|
|
31537
31557
|
className: "plc-w-1/5"
|
|
31538
31558
|
}, t("labels.actions")))), /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
31539
31559
|
className: "plc-h-4"
|
|
31540
|
-
})), /*#__PURE__*/React__default.createElement(Accordion, null, /*#__PURE__*/React__default.createElement(SubscriptionsItems, props)), /*#__PURE__*/React__default.createElement(
|
|
31541
|
-
|
|
31542
|
-
className: "plc-p-1"
|
|
31543
|
-
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
31544
|
-
variant: "ghost",
|
|
31545
|
-
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
31546
|
-
className: "plc-w-4 plc-h-4 plc-mr-1"
|
|
31547
|
-
}),
|
|
31548
|
-
className: "plc-w-full plc-h-8 plc-font-semibold plc-tracking-wider plc-text-gray-900 plc-uppercase plc-rounded-none hover:plc-bg-gray-100",
|
|
31560
|
+
})), /*#__PURE__*/React__default.createElement(Accordion, null, /*#__PURE__*/React__default.createElement(SubscriptionsItems, props))), /*#__PURE__*/React__default.createElement(AddNew, {
|
|
31561
|
+
title: t("labels.addSubscription"),
|
|
31549
31562
|
onClick: props.displayProductSelect
|
|
31550
|
-
}
|
|
31563
|
+
}), /*#__PURE__*/React__default.createElement("table", {
|
|
31564
|
+
className: "plc-w-full plc-table-fixed pelcro-subscriptions-table plc-text-left"
|
|
31565
|
+
}, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
31551
31566
|
colSpan: "5",
|
|
31552
31567
|
className: "plc-p-1"
|
|
31553
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
31568
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
31554
31569
|
variant: "ghost",
|
|
31555
31570
|
icon: /*#__PURE__*/React__default.createElement(SvgGift, {
|
|
31556
31571
|
className: "plc-w-4 plc-h-4 plc-mr-1"
|
|
@@ -31574,7 +31589,7 @@ const SubscriptionsItems = ({
|
|
|
31574
31589
|
}) => {
|
|
31575
31590
|
const {
|
|
31576
31591
|
t
|
|
31577
|
-
} = useTranslation
|
|
31592
|
+
} = useTranslation("dashboard");
|
|
31578
31593
|
const {
|
|
31579
31594
|
switchView,
|
|
31580
31595
|
setSubscriptionToCancel,
|
|
@@ -31703,35 +31718,35 @@ const SubscriptionsItems = ({
|
|
|
31703
31718
|
className: "plc-inline-block plc-mt-1 plc-underline"
|
|
31704
31719
|
}, getSubscriptionStatus(sub).content), /*#__PURE__*/React__default.createElement("br", null), sub.shipments_remaining ? /*#__PURE__*/React__default.createElement("span", {
|
|
31705
31720
|
className: "plc-inline-block plc-mt-1"
|
|
31706
|
-
}, sub.shipments_remaining, " ", t("labels.shipments")) : null)), /*#__PURE__*/React__default.createElement("td", null, sub.cancel_at_period_end === 1 && sub.plan.auto_renew && !sub.is_gift_recipient && /*#__PURE__*/React__default.createElement(Button
|
|
31721
|
+
}, sub.shipments_remaining, " ", t("labels.shipments")) : null)), /*#__PURE__*/React__default.createElement("td", null, sub.cancel_at_period_end === 1 && sub.plan.auto_renew && !sub.is_gift_recipient && /*#__PURE__*/React__default.createElement(Button, {
|
|
31707
31722
|
variant: "ghost",
|
|
31708
31723
|
className: "plc-text-green-400 focus:plc-ring-green-300 pelcro-dashboard-sub-reactivate-button",
|
|
31709
31724
|
icon: /*#__PURE__*/React__default.createElement(SvgRefresh, null),
|
|
31710
31725
|
onClick: onReactivateClick,
|
|
31711
31726
|
disabled: disableSubmit,
|
|
31712
31727
|
"data-key": sub.id
|
|
31713
|
-
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && sub.status !== "incomplete" && /*#__PURE__*/React__default.createElement(Button
|
|
31728
|
+
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && sub.status !== "incomplete" && /*#__PURE__*/React__default.createElement(Button, {
|
|
31714
31729
|
variant: "ghost",
|
|
31715
31730
|
className: "plc-text-blue-400 pelcro-dashboard-sub-renew-button",
|
|
31716
31731
|
icon: /*#__PURE__*/React__default.createElement(SvgRefresh, null),
|
|
31717
31732
|
onClick: onRenewClick,
|
|
31718
31733
|
disabled: disableSubmit,
|
|
31719
31734
|
"data-key": sub.id
|
|
31720
|
-
}, t("labels.renew")), sub.shipments_suspended_until && isDateAfterToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button
|
|
31735
|
+
}, t("labels.renew")), sub.shipments_suspended_until && isDateAfterToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button, {
|
|
31721
31736
|
variant: "ghost",
|
|
31722
31737
|
className: "plc-text-blue-400 pelcro-dashboard-sub-suspend-button",
|
|
31723
31738
|
icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
|
|
31724
31739
|
onClick: onUnSuspendClick,
|
|
31725
31740
|
disabled: disableSubmit,
|
|
31726
31741
|
"data-key": sub.id
|
|
31727
|
-
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && !isDateAfterToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default.createElement(Button
|
|
31742
|
+
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && !isDateAfterToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default.createElement(Button, {
|
|
31728
31743
|
variant: "ghost",
|
|
31729
31744
|
className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-suspend-button",
|
|
31730
31745
|
icon: /*#__PURE__*/React__default.createElement(SvgCalendar, null),
|
|
31731
31746
|
onClick: onSuspendClick,
|
|
31732
31747
|
disabled: disableSubmit,
|
|
31733
31748
|
"data-key": sub.id
|
|
31734
|
-
}, t("labels.suspend")), !sub.plan.auto_renew || sub.plan.auto_renew && sub.cancel_at_period_end === 0 ? /*#__PURE__*/React__default.createElement(Button
|
|
31749
|
+
}, t("labels.suspend")), !sub.plan.auto_renew || sub.plan.auto_renew && sub.cancel_at_period_end === 0 ? /*#__PURE__*/React__default.createElement(Button, {
|
|
31735
31750
|
variant: "ghost",
|
|
31736
31751
|
className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
|
|
31737
31752
|
icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
|
|
@@ -31875,7 +31890,7 @@ Accordion.item = function AccordionItem({
|
|
|
31875
31890
|
const OrdersMenu = () => {
|
|
31876
31891
|
const {
|
|
31877
31892
|
t
|
|
31878
|
-
} = useTranslation
|
|
31893
|
+
} = useTranslation("dashboard");
|
|
31879
31894
|
const userOrders = window.Pelcro.user.read().orders;
|
|
31880
31895
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
31881
31896
|
id: "pelcro-dashboard-orders-menu",
|
|
@@ -31910,9 +31925,11 @@ const OrderItems = ({
|
|
|
31910
31925
|
|
|
31911
31926
|
const {
|
|
31912
31927
|
t
|
|
31913
|
-
} = useTranslation
|
|
31928
|
+
} = useTranslation("dashboard");
|
|
31914
31929
|
if ((orders === null || orders === void 0 ? void 0 : orders.length) === 0) return null;
|
|
31915
31930
|
return !(orders !== null && orders !== void 0 && orders.length) ? null : orders === null || orders === void 0 ? void 0 : orders.map(order => {
|
|
31931
|
+
var _order$items;
|
|
31932
|
+
|
|
31916
31933
|
const isActive = activeMenu === order.id;
|
|
31917
31934
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
31918
31935
|
key: order.id
|
|
@@ -31930,7 +31947,7 @@ const OrderItems = ({
|
|
|
31930
31947
|
count: getItemsAmount(order.id)
|
|
31931
31948
|
}))), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement("p", {
|
|
31932
31949
|
className: "plc-font-semibold "
|
|
31933
|
-
}, order.
|
|
31950
|
+
}, order === null || order === void 0 ? void 0 : (_order$items = order.items) === null || _order$items === void 0 ? void 0 : _order$items[0].created_at)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement("div", {
|
|
31934
31951
|
className: `plc-flex plc-items-center plc-justify-center plc-transition-transform plc-ease-out plc-transform plc-rounded-full plc-w-7 plc-h-7 ${isActive ? "plc-flex plc-place-items-center plc-w-7 plc-h-7 plc-p-1 plc-bg-primary-400 plc-rounded-full" : "accordion-chevron"}`
|
|
31935
31952
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
31936
31953
|
className: `plc-transition plc-ease-out ${isActive && "plc-text-white plc-transform plc-rotate-90"}`
|
|
@@ -31962,30 +31979,10 @@ const OrderItems = ({
|
|
|
31962
31979
|
});
|
|
31963
31980
|
};
|
|
31964
31981
|
|
|
31965
|
-
const AddNew = ({
|
|
31966
|
-
title,
|
|
31967
|
-
onClick
|
|
31968
|
-
}) => {
|
|
31969
|
-
const handleClick = () => {
|
|
31970
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
31971
|
-
};
|
|
31972
|
-
|
|
31973
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title && /*#__PURE__*/React__default.createElement("div", {
|
|
31974
|
-
className: "plc-mt-5 plc-relative plc-text-primary-500"
|
|
31975
|
-
}, /*#__PURE__*/React__default.createElement("hr", {
|
|
31976
|
-
className: "plc-absolute plc-border-t-2 plc-my-4 plc-top-1.5 plc-w-full"
|
|
31977
|
-
}), /*#__PURE__*/React__default.createElement("button", {
|
|
31978
|
-
onClick: handleClick,
|
|
31979
|
-
className: "plc-bg-white plc-flex plc-items-center plc-mx-auto plc-p-2 plc-relative focus-within:plc-outline-none"
|
|
31980
|
-
}, /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
31981
|
-
className: "plc-w-4 plc-h-4 plc-mr-1"
|
|
31982
|
-
}), /*#__PURE__*/React__default.createElement("span", null, title))));
|
|
31983
|
-
};
|
|
31984
|
-
|
|
31985
31982
|
const DonationsMenu = props => {
|
|
31986
31983
|
const {
|
|
31987
31984
|
t
|
|
31988
|
-
} = useTranslation
|
|
31985
|
+
} = useTranslation("dashboard");
|
|
31989
31986
|
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
31990
31987
|
return /*#__PURE__*/React__default.createElement("tr", {
|
|
31991
31988
|
key: sub.id,
|
|
@@ -31998,22 +31995,7 @@ const DonationsMenu = props => {
|
|
|
31998
31995
|
className: "plc-text-xs plc-text-gray-400 pelcro-donation-price"
|
|
31999
31996
|
}, getFormattedPriceByLocal(sub.plan.amount * sub.quantity, sub.plan.currency, getPageOrDefaultLanguage())))), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement("div", {
|
|
32000
31997
|
className: "plc-mb-4 plc-text-gray-500 pelcro-donation-date"
|
|
32001
|
-
}, sub.status && /*#__PURE__*/React__default.createElement("span", null, formatStartDate(sub.start))))
|
|
32002
|
-
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(sub).bgColor} plc-uppercase ${props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(sub).textColor} plc-rounded-lg`
|
|
32003
|
-
}, props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(sub).icon, props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(sub).title), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
32004
|
-
className: "plc-mb-4 plc-text-xs plc-text-gray-500"
|
|
32005
|
-
}, sub.status && /*#__PURE__*/React__default.createElement("span", {
|
|
32006
|
-
className: "plc-inline-block plc-mt-1 plc-underline"
|
|
32007
|
-
}, props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(sub).content))), /*#__PURE__*/React__default.createElement("td", null, sub.cancel_at_period_end === 1 && /*#__PURE__*/React__default.createElement(Button, {
|
|
32008
|
-
variant: "ghost",
|
|
32009
|
-
icon: /*#__PURE__*/React__default.createElement(RefreshIcon, {
|
|
32010
|
-
className: "plc-w-4 plc-h-4"
|
|
32011
|
-
}),
|
|
32012
|
-
className: "plc-text-blue-400" // onClick={onRenewClick}
|
|
32013
|
-
// disabled={this.state.disableSubmit}
|
|
32014
|
-
,
|
|
32015
|
-
"data-key": sub.id
|
|
32016
|
-
}, t("labels.renew"))));
|
|
31998
|
+
}, sub.status && /*#__PURE__*/React__default.createElement("span", null, formatStartDate(sub.start)))));
|
|
32017
31999
|
});
|
|
32018
32000
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
32019
32001
|
id: "pelcro-dashboard-donation-menu",
|
|
@@ -32027,13 +32009,7 @@ const DonationsMenu = props => {
|
|
|
32027
32009
|
className: "plc-w-1/4"
|
|
32028
32010
|
}, t("labels.plan")), /*#__PURE__*/React__default.createElement("th", {
|
|
32029
32011
|
className: "plc-w-1/4"
|
|
32030
|
-
}, t("labels.startDate")), /*#__PURE__*/React__default.createElement("
|
|
32031
|
-
className: "plc-w-1/4"
|
|
32032
|
-
}, t("labels.status.title")), /*#__PURE__*/React__default.createElement("th", {
|
|
32033
|
-
className: "plc-w-1/4"
|
|
32034
|
-
}, t("labels.actions")))), /*#__PURE__*/React__default.createElement("tbody", null, subscriptions)), /*#__PURE__*/React__default.createElement(AddNew, {
|
|
32035
|
-
title: t("labels.newDonations")
|
|
32036
|
-
}));
|
|
32012
|
+
}, t("labels.startDate")))), /*#__PURE__*/React__default.createElement("tbody", null, subscriptions)));
|
|
32037
32013
|
};
|
|
32038
32014
|
|
|
32039
32015
|
function getDonationSubs() {
|
|
@@ -32052,7 +32028,7 @@ function formatStartDate(date) {
|
|
|
32052
32028
|
const InvoicesMenu = props => {
|
|
32053
32029
|
const {
|
|
32054
32030
|
t
|
|
32055
|
-
} = useTranslation
|
|
32031
|
+
} = useTranslation("dashboard");
|
|
32056
32032
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
32057
32033
|
id: "pelcro-dashboard-invoices-menu",
|
|
32058
32034
|
className: "plc-max-w-80% plc-m-auto",
|
|
@@ -32079,7 +32055,7 @@ const InvoicesItems = () => {
|
|
|
32079
32055
|
|
|
32080
32056
|
const {
|
|
32081
32057
|
t
|
|
32082
|
-
} = useTranslation
|
|
32058
|
+
} = useTranslation("dashboard");
|
|
32083
32059
|
const {
|
|
32084
32060
|
setInvoice,
|
|
32085
32061
|
switchView
|
|
@@ -32111,7 +32087,7 @@ const InvoicesItems = () => {
|
|
|
32111
32087
|
className: "plc-py-2"
|
|
32112
32088
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
32113
32089
|
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${invoiceStatus.bgColor} plc-uppercase ${invoiceStatus.textColor} plc-rounded-lg`
|
|
32114
|
-
}, invoiceStatus.icon, invoiceStatus.title)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button
|
|
32090
|
+
}, invoiceStatus.icon, invoiceStatus.title)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
32115
32091
|
variant: "ghost",
|
|
32116
32092
|
className: "plc-text-blue-400 focus:plc-ring-blue-400 pelcro-dashboard-view-invoice-button",
|
|
32117
32093
|
icon: /*#__PURE__*/React__default.createElement(SvgDocument, {
|
|
@@ -32190,7 +32166,7 @@ function getInvoiceStatus(invoice) {
|
|
|
32190
32166
|
const MembershipsMenu = props => {
|
|
32191
32167
|
const {
|
|
32192
32168
|
t
|
|
32193
|
-
} = useTranslation
|
|
32169
|
+
} = useTranslation("dashboard");
|
|
32194
32170
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
32195
32171
|
id: "pelcro-dashboard-donation-menu",
|
|
32196
32172
|
className: "plc-max-w-80% plc-m-auto",
|
|
@@ -32215,7 +32191,7 @@ const MembershipsMenu = props => {
|
|
|
32215
32191
|
const MembershipsItems = props => {
|
|
32216
32192
|
const {
|
|
32217
32193
|
t
|
|
32218
|
-
} = useTranslation
|
|
32194
|
+
} = useTranslation("dashboard");
|
|
32219
32195
|
const {
|
|
32220
32196
|
switchView,
|
|
32221
32197
|
setSelectedMembership,
|
|
@@ -32262,7 +32238,7 @@ const MembershipsItems = props => {
|
|
|
32262
32238
|
className: "plc-inline-block plc-mt-1"
|
|
32263
32239
|
}, membership.subscription.shipments_remaining, " ", t("labels.shipments")) : null)), /*#__PURE__*/React__default.createElement("td", {
|
|
32264
32240
|
className: "plc-truncate"
|
|
32265
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
32241
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
32266
32242
|
variant: "ghost",
|
|
32267
32243
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, {
|
|
32268
32244
|
className: "plc-w-4 plc-h-4"
|
|
@@ -32329,7 +32305,7 @@ const GiftsMenu = props => {
|
|
|
32329
32305
|
|
|
32330
32306
|
const {
|
|
32331
32307
|
t
|
|
32332
|
-
} = useTranslation
|
|
32308
|
+
} = useTranslation("dashboard");
|
|
32333
32309
|
const 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 : [];
|
|
32334
32310
|
|
|
32335
32311
|
const renderGiftRecipients = () => {
|
|
@@ -32359,7 +32335,7 @@ const GiftsMenu = props => {
|
|
|
32359
32335
|
className: "plc-mb-4 plc-text-xs plc-text-gray-500"
|
|
32360
32336
|
}, recipient.status && /*#__PURE__*/React__default.createElement("span", {
|
|
32361
32337
|
className: "plc-inline-block plc-mt-1 plc-underline"
|
|
32362
|
-
}, props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(recipient).content))), recipient.cancel_at_period_end === 1 && /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button
|
|
32338
|
+
}, props === null || props === void 0 ? void 0 : props.getSubscriptionStatus(recipient).content))), recipient.cancel_at_period_end === 1 && /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
32363
32339
|
variant: "ghost",
|
|
32364
32340
|
icon: /*#__PURE__*/React__default.createElement(SvgRefresh, {
|
|
32365
32341
|
className: "plc-w-4 plc-h-4"
|
|
@@ -32402,7 +32378,7 @@ const GiftsMenu = props => {
|
|
|
32402
32378
|
const AddressesMenu = props => {
|
|
32403
32379
|
const {
|
|
32404
32380
|
t
|
|
32405
|
-
} = useTranslation
|
|
32381
|
+
} = useTranslation("dashboard");
|
|
32406
32382
|
const [requestStates, setRequestStates] = useState({
|
|
32407
32383
|
loading: false,
|
|
32408
32384
|
success: false,
|
|
@@ -32426,7 +32402,7 @@ const AddressesMenu = props => {
|
|
|
32426
32402
|
const AddressesItems = props => {
|
|
32427
32403
|
var _window$Pelcro$user$r;
|
|
32428
32404
|
|
|
32429
|
-
useTranslation
|
|
32405
|
+
useTranslation("dashboard");
|
|
32430
32406
|
const {
|
|
32431
32407
|
switchView
|
|
32432
32408
|
} = usePelcro();
|
|
@@ -32465,7 +32441,7 @@ const AddressesItems = props => {
|
|
|
32465
32441
|
className: "pelcro-address-line1 plc-text-sm plc-mt-2"
|
|
32466
32442
|
}, address.line1), /*#__PURE__*/React__default.createElement("p", {
|
|
32467
32443
|
className: "pelcro-address-country plc-text-sm"
|
|
32468
|
-
}, address.city, ", ", address.state_name, " ", address.postal_code, ", ", address.country_name)), /*#__PURE__*/React__default.createElement(Button
|
|
32444
|
+
}, address.city, ", ", address.state_name, " ", address.postal_code, ", ", address.country_name)), /*#__PURE__*/React__default.createElement(Button, {
|
|
32469
32445
|
variant: "icon",
|
|
32470
32446
|
className: "plc-text-gray-500",
|
|
32471
32447
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -32519,7 +32495,7 @@ const getPaymentCardIcon = name => {
|
|
|
32519
32495
|
const PaymentCardsMenu = props => {
|
|
32520
32496
|
const {
|
|
32521
32497
|
t
|
|
32522
|
-
} = useTranslation
|
|
32498
|
+
} = useTranslation("dashboard");
|
|
32523
32499
|
const source = window.Pelcro.user.read().source;
|
|
32524
32500
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
32525
32501
|
id: "pelcro-dashboard-payment-menu",
|
|
@@ -32537,7 +32513,7 @@ const PaymentCardsMenu = props => {
|
|
|
32537
32513
|
const PaymentCardsItems = props => {
|
|
32538
32514
|
var _props$source, _props$source$propert, _props$source2, _props$source2$proper;
|
|
32539
32515
|
|
|
32540
|
-
useTranslation
|
|
32516
|
+
useTranslation("dashboard");
|
|
32541
32517
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
32542
32518
|
className: `plc-py-2 plc-px-4 plc-mt-5 plc-flex plc-items-center plc-justify-between last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-bg-white plc-shadow-md_dark`
|
|
32543
32519
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32546,7 +32522,7 @@ const PaymentCardsItems = props => {
|
|
|
32546
32522
|
className: "plc-mr-6"
|
|
32547
32523
|
}, getPaymentCardIcon(props === null || props === void 0 ? void 0 : (_props$source = props.source) === null || _props$source === void 0 ? void 0 : (_props$source$propert = _props$source.properties) === null || _props$source$propert === void 0 ? void 0 : _props$source$propert.brand)), /*#__PURE__*/React__default.createElement("p", {
|
|
32548
32524
|
className: "plc-ml-1 plc-text-lg plc-tracking-widest"
|
|
32549
|
-
}, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", props === null || props === void 0 ? void 0 : (_props$source2 = props.source) === null || _props$source2 === void 0 ? void 0 : (_props$source2$proper = _props$source2.properties) === null || _props$source2$proper === void 0 ? void 0 : _props$source2$proper.last4)), /*#__PURE__*/React__default.createElement(Button
|
|
32525
|
+
}, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", props === null || props === void 0 ? void 0 : (_props$source2 = props.source) === null || _props$source2 === void 0 ? void 0 : (_props$source2$proper = _props$source2.properties) === null || _props$source2$proper === void 0 ? void 0 : _props$source2$proper.last4)), /*#__PURE__*/React__default.createElement(Button, {
|
|
32550
32526
|
variant: "icon",
|
|
32551
32527
|
className: "plc-text-gray-500",
|
|
32552
32528
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -33951,7 +33927,7 @@ var QRCode = unwrapExports(lib);
|
|
|
33951
33927
|
const QRCodeMenu = props => {
|
|
33952
33928
|
const {
|
|
33953
33929
|
t
|
|
33954
|
-
} = useTranslation
|
|
33930
|
+
} = useTranslation("qr");
|
|
33955
33931
|
const value = window.Pelcro.user.read().id ? `${window.Pelcro.environment.domain}/admin/${window.Pelcro.siteid}/customers/${window.Pelcro.user.read().id}` : `${window.Pelcro.environment.domain}/admin/${window.Pelcro.siteid}/customers`;
|
|
33956
33932
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
33957
33933
|
id: "pelcro-dashboard-donation-menu",
|
|
@@ -33968,7 +33944,7 @@ const QRCodeMenu = props => {
|
|
|
33968
33944
|
const ProfileMenu = props => {
|
|
33969
33945
|
const {
|
|
33970
33946
|
t
|
|
33971
|
-
} = useTranslation
|
|
33947
|
+
} = useTranslation("dashboard");
|
|
33972
33948
|
const {
|
|
33973
33949
|
switchView
|
|
33974
33950
|
} = usePelcro();
|
|
@@ -34014,7 +33990,7 @@ const NewslettersMenu = props => {
|
|
|
34014
33990
|
|
|
34015
33991
|
const {
|
|
34016
33992
|
t
|
|
34017
|
-
} = useTranslation
|
|
33993
|
+
} = useTranslation("dashboard");
|
|
34018
33994
|
const defaultStatues = {
|
|
34019
33995
|
loading: false,
|
|
34020
33996
|
success: false,
|
|
@@ -34109,7 +34085,7 @@ const NewslettersMenu = props => {
|
|
|
34109
34085
|
newsletters: newsletters
|
|
34110
34086
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
34111
34087
|
className: "plc-flex plc-justify-center"
|
|
34112
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
34088
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
34113
34089
|
onClick: handleSubmit,
|
|
34114
34090
|
disabled: requestStates.loading
|
|
34115
34091
|
}, "SUBMIT")));
|
|
@@ -34119,7 +34095,7 @@ const NewsLettersItems = ({
|
|
|
34119
34095
|
newsletters,
|
|
34120
34096
|
handleChange
|
|
34121
34097
|
}) => {
|
|
34122
|
-
useTranslation
|
|
34098
|
+
useTranslation("dashboard");
|
|
34123
34099
|
if (newsletters.length === 0) return null;
|
|
34124
34100
|
return newsletters.map(newsletter => {
|
|
34125
34101
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -34451,7 +34427,7 @@ class Dashboard extends Component {
|
|
|
34451
34427
|
className: "plc-rounded-full plc-bg-gray-200 plc-text-black plc-inline-flex plc-items-start plc-py-1 plc-px-4 plc-text-sm plc-capitalize"
|
|
34452
34428
|
}, address.type), address.is_default && /*#__PURE__*/React__default.createElement("span", {
|
|
34453
34429
|
className: "plc-rounded-full plc-bg-gray-800 plc-text-white plc-inline-flex plc-items-start plc-py-1 plc-px-4 plc-text-sm plc-ml-2"
|
|
34454
|
-
}, this.locale("labels.default")))), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button
|
|
34430
|
+
}, this.locale("labels.default")))), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
34455
34431
|
variant: "icon",
|
|
34456
34432
|
className: "plc-text-gray-500",
|
|
34457
34433
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -34473,7 +34449,7 @@ class Dashboard extends Component {
|
|
|
34473
34449
|
}), addresses, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
34474
34450
|
colSpan: "2",
|
|
34475
34451
|
className: "plc-p-1"
|
|
34476
|
-
}, /*#__PURE__*/React__default.createElement(Button
|
|
34452
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
34477
34453
|
variant: "ghost",
|
|
34478
34454
|
icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
|
|
34479
34455
|
className: "plc-w-4 plc-mr-1"
|
|
@@ -34585,9 +34561,10 @@ class Dashboard extends Component {
|
|
|
34585
34561
|
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
34586
34562
|
activeDashboardLink: this.state.activeDashboardLink
|
|
34587
34563
|
}), /*#__PURE__*/React__default.createElement(DashboardLink, {
|
|
34564
|
+
show: showNewsletters(),
|
|
34588
34565
|
name: SUB_MENUS.NEWSLETTERS,
|
|
34589
34566
|
icon: /*#__PURE__*/React__default.createElement(SvgNewsletter, {
|
|
34590
|
-
className: "plc-transform plc-scale-
|
|
34567
|
+
className: "plc-transform plc--translate-x-1 plc-scale-105 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
|
|
34591
34568
|
}),
|
|
34592
34569
|
title: this.locale("labels.Newsletters"),
|
|
34593
34570
|
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
@@ -34683,7 +34660,7 @@ class Dashboard extends Component {
|
|
|
34683
34660
|
setSubscriptionIdToRenew: this.props.setSubscriptionIdToRenew,
|
|
34684
34661
|
setIsRenewingGift: this.props.setIsRenewingGift,
|
|
34685
34662
|
setView: this.props.setView
|
|
34686
|
-
}), this.state.activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default.createElement(OrdersMenu, null), this.state.activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default.createElement(InvoicesMenu, null), this.state.activeDashboardLink === SUB_MENUS.LOGOUT && this.props.logout(), /*#__PURE__*/React__default.createElement(Button
|
|
34663
|
+
}), this.state.activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default.createElement(OrdersMenu, null), this.state.activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default.createElement(InvoicesMenu, null), this.state.activeDashboardLink === SUB_MENUS.LOGOUT && this.props.logout(), /*#__PURE__*/React__default.createElement(Button, {
|
|
34687
34664
|
variant: "ghost",
|
|
34688
34665
|
type: "button",
|
|
34689
34666
|
className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-5 plc-right-10",
|
|
@@ -34702,15 +34679,22 @@ function hasInvoices() {
|
|
|
34702
34679
|
return invoices.length > 0;
|
|
34703
34680
|
}
|
|
34704
34681
|
|
|
34682
|
+
function showNewsletters() {
|
|
34683
|
+
var _ref, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro3$uiSet2;
|
|
34684
|
+
|
|
34685
|
+
const showNewslettersUiSettings = (_ref = ((_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : (_window$Pelcro3$uiSet2 = _window$Pelcro3$uiSet.newsletters) === null || _window$Pelcro3$uiSet2 === void 0 ? void 0 : _window$Pelcro3$uiSet2.length) > 0) !== null && _ref !== void 0 ? _ref : false;
|
|
34686
|
+
return showNewslettersUiSettings;
|
|
34687
|
+
}
|
|
34688
|
+
|
|
34705
34689
|
const DashboardWithTrans = withTranslation("dashboard")(Dashboard);
|
|
34706
34690
|
|
|
34707
|
-
// The button in the lower
|
|
34691
|
+
// The button in the lower left that shows the dashboard.
|
|
34708
34692
|
const DashboardOpenButton = () => {
|
|
34709
34693
|
const {
|
|
34710
34694
|
switchView
|
|
34711
34695
|
} = usePelcro();
|
|
34712
34696
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
34713
|
-
className: "plc-fixed plc-
|
|
34697
|
+
className: "plc-fixed plc-left-4 plc-bottom-4 pelcro-open-dashboard-btn"
|
|
34714
34698
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
34715
34699
|
className: "plc-bg-white plc-border-2 plc-rounded-full focus:plc-outline-none plc-border-primary-300 hover:plc-bg-white",
|
|
34716
34700
|
name: "menu",
|
|
@@ -34759,7 +34743,7 @@ const ProfilePicChangeContainer = ({
|
|
|
34759
34743
|
}) => {
|
|
34760
34744
|
const {
|
|
34761
34745
|
t
|
|
34762
|
-
} = useTranslation
|
|
34746
|
+
} = useTranslation("userEdit");
|
|
34763
34747
|
|
|
34764
34748
|
const handleUpdatePicture = async ({
|
|
34765
34749
|
imageSrc,
|
|
@@ -34959,8 +34943,8 @@ const ProfilePicChangeButton = ({
|
|
|
34959
34943
|
} = useContext(store$3);
|
|
34960
34944
|
const {
|
|
34961
34945
|
t
|
|
34962
|
-
} = useTranslation
|
|
34963
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
34946
|
+
} = useTranslation("userEdit");
|
|
34947
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
34964
34948
|
onClick: () => {
|
|
34965
34949
|
dispatch({
|
|
34966
34950
|
type: HANDLE_USER_UPDATE
|
|
@@ -36369,7 +36353,7 @@ const ProfilePicChangeZoom = ({
|
|
|
36369
36353
|
} = useContext(store$3);
|
|
36370
36354
|
const {
|
|
36371
36355
|
t
|
|
36372
|
-
} = useTranslation
|
|
36356
|
+
} = useTranslation("userEdit");
|
|
36373
36357
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36374
36358
|
className: `plc-flex plc-flex-col plc-items-center ${className}`
|
|
36375
36359
|
}, /*#__PURE__*/React__default.createElement("label", {
|
|
@@ -36421,7 +36405,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
36421
36405
|
} = useContext(store$3);
|
|
36422
36406
|
const {
|
|
36423
36407
|
t
|
|
36424
|
-
} = useTranslation
|
|
36408
|
+
} = useTranslation("userEdit");
|
|
36425
36409
|
|
|
36426
36410
|
const browseFiles = () => {
|
|
36427
36411
|
const fileInput = document.getElementById("pelcro-profile-picture-selector");
|
|
@@ -36432,7 +36416,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
36432
36416
|
}
|
|
36433
36417
|
};
|
|
36434
36418
|
|
|
36435
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button
|
|
36419
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
36436
36420
|
icon: /*#__PURE__*/React__default.createElement(SvgPhotograph, null),
|
|
36437
36421
|
disabled: isSubmitting,
|
|
36438
36422
|
onClick: browseFiles,
|
|
@@ -36463,8 +36447,8 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
36463
36447
|
} = useContext(store$3);
|
|
36464
36448
|
const {
|
|
36465
36449
|
t
|
|
36466
|
-
} = useTranslation
|
|
36467
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
36450
|
+
} = useTranslation("userEdit");
|
|
36451
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
36468
36452
|
icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
36469
36453
|
className: "plc-h-6 plc-w-6"
|
|
36470
36454
|
}),
|
|
@@ -36486,7 +36470,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
36486
36470
|
} = useContext(store$3);
|
|
36487
36471
|
const {
|
|
36488
36472
|
t
|
|
36489
|
-
} = useTranslation
|
|
36473
|
+
} = useTranslation("userEdit");
|
|
36490
36474
|
const currentProfilePicture = window.Pelcro.user.read().profile_photo;
|
|
36491
36475
|
return imageSrc ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ProfilePicChangeCropper, null), /*#__PURE__*/React__default.createElement(ProfilePicChangeZoom, {
|
|
36492
36476
|
className: "plc-mt-4 plc-mb-4"
|
|
@@ -36532,12 +36516,12 @@ function ProfilePicChangeModal({
|
|
|
36532
36516
|
}) {
|
|
36533
36517
|
const {
|
|
36534
36518
|
t
|
|
36535
|
-
} = useTranslation
|
|
36519
|
+
} = useTranslation("userEdit");
|
|
36536
36520
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
36537
36521
|
id: "pelcro-profile-picture-modal",
|
|
36538
36522
|
onDisplay: onDisplay,
|
|
36539
36523
|
onClose: onClose
|
|
36540
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
36524
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36541
36525
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
36542
36526
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
36543
36527
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -36567,7 +36551,7 @@ const EmailVerifyContainer = ({
|
|
|
36567
36551
|
}) => {
|
|
36568
36552
|
const {
|
|
36569
36553
|
t
|
|
36570
|
-
} = useTranslation
|
|
36554
|
+
} = useTranslation("verifyEmail");
|
|
36571
36555
|
|
|
36572
36556
|
const submit = () => {
|
|
36573
36557
|
window.Pelcro.user.resendEmailVerification((err, res) => {
|
|
@@ -36649,8 +36633,8 @@ const EmailVerifyResendButton = ({
|
|
|
36649
36633
|
} = useContext(store$2);
|
|
36650
36634
|
const {
|
|
36651
36635
|
t
|
|
36652
|
-
} = useTranslation
|
|
36653
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
36636
|
+
} = useTranslation("verifyEmail");
|
|
36637
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
36654
36638
|
onClick: () => {
|
|
36655
36639
|
dispatch({
|
|
36656
36640
|
type: HANDLE_SUBMIT
|
|
@@ -36666,7 +36650,7 @@ const EmailVerifyView = props => {
|
|
|
36666
36650
|
|
|
36667
36651
|
const {
|
|
36668
36652
|
t
|
|
36669
|
-
} = useTranslation
|
|
36653
|
+
} = useTranslation("verifyEmail");
|
|
36670
36654
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36671
36655
|
id: "pelcro-email-verify-view"
|
|
36672
36656
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -36695,12 +36679,12 @@ const EmailVerifyModal = ({
|
|
|
36695
36679
|
}) => {
|
|
36696
36680
|
const {
|
|
36697
36681
|
t
|
|
36698
|
-
} = useTranslation
|
|
36682
|
+
} = useTranslation("verifyEmail");
|
|
36699
36683
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
36700
36684
|
onDisplay: onDisplay,
|
|
36701
36685
|
onClose: onClose,
|
|
36702
36686
|
id: "pelcro-email-verify-modal"
|
|
36703
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
36687
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36704
36688
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
36705
36689
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
36706
36690
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -36836,7 +36820,7 @@ function VerifyLinkTokenModal({
|
|
|
36836
36820
|
}) {
|
|
36837
36821
|
const {
|
|
36838
36822
|
t
|
|
36839
|
-
} = useTranslation
|
|
36823
|
+
} = useTranslation("verifyLinkToken");
|
|
36840
36824
|
const {
|
|
36841
36825
|
resetView
|
|
36842
36826
|
} = usePelcro();
|
|
@@ -36853,7 +36837,7 @@ function VerifyLinkTokenModal({
|
|
|
36853
36837
|
id: "pelcro-login-modal",
|
|
36854
36838
|
onDisplay: onDisplay,
|
|
36855
36839
|
onClose: onClose
|
|
36856
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
36840
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36857
36841
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
36858
36842
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
36859
36843
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -36891,7 +36875,7 @@ const InvoicePaymentModal = ({
|
|
|
36891
36875
|
} = usePelcro();
|
|
36892
36876
|
const {
|
|
36893
36877
|
t
|
|
36894
|
-
} = useTranslation
|
|
36878
|
+
} = useTranslation("payment");
|
|
36895
36879
|
|
|
36896
36880
|
const onSuccess = () => {
|
|
36897
36881
|
var _otherProps$onSuccess;
|
|
@@ -36904,7 +36888,7 @@ const InvoicePaymentModal = ({
|
|
|
36904
36888
|
id: "pelcro-invoice-payment-modal",
|
|
36905
36889
|
onDisplay: onDisplay,
|
|
36906
36890
|
onClose: onClose
|
|
36907
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
36891
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36908
36892
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
36909
36893
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
36910
36894
|
className: "plc-text-2xl plc-font-semibold "
|
|
@@ -36969,7 +36953,7 @@ const InvoiceDetailsDownloadButton = ({
|
|
|
36969
36953
|
}) => {
|
|
36970
36954
|
const {
|
|
36971
36955
|
t
|
|
36972
|
-
} = useTranslation
|
|
36956
|
+
} = useTranslation("invoiceDetails");
|
|
36973
36957
|
const {
|
|
36974
36958
|
invoice
|
|
36975
36959
|
} = usePelcro();
|
|
@@ -36992,8 +36976,8 @@ const InvoiceDetailsPayButton = ({
|
|
|
36992
36976
|
} = useContext(store);
|
|
36993
36977
|
const {
|
|
36994
36978
|
t
|
|
36995
|
-
} = useTranslation
|
|
36996
|
-
return /*#__PURE__*/React__default.createElement(Button
|
|
36979
|
+
} = useTranslation("invoiceDetails");
|
|
36980
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
36997
36981
|
onClick: () => {
|
|
36998
36982
|
dispatch({
|
|
36999
36983
|
type: HANDLE_SUBMIT
|
|
@@ -37006,7 +36990,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
37006
36990
|
const InvoiceDetailsView = props => {
|
|
37007
36991
|
const {
|
|
37008
36992
|
t
|
|
37009
|
-
} = useTranslation
|
|
36993
|
+
} = useTranslation("invoiceDetails");
|
|
37010
36994
|
const {
|
|
37011
36995
|
invoice
|
|
37012
36996
|
} = usePelcro();
|
|
@@ -37076,7 +37060,7 @@ const InvoiceDetailsModal = ({
|
|
|
37076
37060
|
} = usePelcro();
|
|
37077
37061
|
const {
|
|
37078
37062
|
t
|
|
37079
|
-
} = useTranslation
|
|
37063
|
+
} = useTranslation("invoiceDetails");
|
|
37080
37064
|
|
|
37081
37065
|
const onSuccess = () => {
|
|
37082
37066
|
var _otherProps$onSuccess;
|
|
@@ -37089,7 +37073,7 @@ const InvoiceDetailsModal = ({
|
|
|
37089
37073
|
onDisplay: onDisplay,
|
|
37090
37074
|
onClose: onClose,
|
|
37091
37075
|
id: "pelcro-invoice-details-modal"
|
|
37092
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
37076
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
37093
37077
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
37094
37078
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
37095
37079
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -37119,12 +37103,12 @@ const QrCodeModal = ({
|
|
|
37119
37103
|
}) => {
|
|
37120
37104
|
const {
|
|
37121
37105
|
t
|
|
37122
|
-
} = useTranslation
|
|
37106
|
+
} = useTranslation("qr");
|
|
37123
37107
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
37124
37108
|
id: "pelcro-qrcode-create-modal",
|
|
37125
37109
|
onDisplay: onDisplay,
|
|
37126
37110
|
onClose: onClose
|
|
37127
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader
|
|
37111
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
37128
37112
|
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
37129
37113
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
37130
37114
|
className: "plc-text-2xl plc-font-semibold"
|
|
@@ -37132,4 +37116,4 @@ const QrCodeModal = ({
|
|
|
37132
37116
|
};
|
|
37133
37117
|
QrCodeModal.viewId = "qrcode";
|
|
37134
37118
|
|
|
37135
|
-
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, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button
|
|
37119
|
+
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, 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, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, 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, QrCodeModal, QrCodeView, 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, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, 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 };
|