@pelcro/react-pelcro-js 4.0.0-alpha.44 → 4.0.0-alpha.45
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 +396 -325
- package/dist/index.esm.js +396 -325
- package/dist/pelcro.css +207 -47
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3967,7 +3967,8 @@ var labels$T = {
|
|
|
3967
3967
|
};
|
|
3968
3968
|
var buttons$g = {
|
|
3969
3969
|
next: "Next",
|
|
3970
|
-
|
|
3970
|
+
view: "View Plans",
|
|
3971
|
+
select: "Select",
|
|
3971
3972
|
back: "Back",
|
|
3972
3973
|
gift: "Gift"
|
|
3973
3974
|
};
|
|
@@ -4914,7 +4915,8 @@ var labels$y = {
|
|
|
4914
4915
|
};
|
|
4915
4916
|
var buttons$b = {
|
|
4916
4917
|
next: "Prochain",
|
|
4917
|
-
|
|
4918
|
+
view: "Voir les plans",
|
|
4919
|
+
select: "Sélectionner",
|
|
4918
4920
|
back: "Retour",
|
|
4919
4921
|
gift: "cadeau"
|
|
4920
4922
|
};
|
|
@@ -5916,6 +5918,7 @@ var labels$j = {
|
|
|
5916
5918
|
};
|
|
5917
5919
|
var buttons$6 = {
|
|
5918
5920
|
next: "다음",
|
|
5921
|
+
view: "요금제 보기",
|
|
5919
5922
|
select: "플랜 보기",
|
|
5920
5923
|
back: "뒤로",
|
|
5921
5924
|
gift: "선물"
|
|
@@ -6739,8 +6742,9 @@ var labels$4 = {
|
|
|
6739
6742
|
};
|
|
6740
6743
|
var buttons$1 = {
|
|
6741
6744
|
next: "Siguiente",
|
|
6745
|
+
view: "Ver planes",
|
|
6742
6746
|
select: "Seleccionar",
|
|
6743
|
-
back: "
|
|
6747
|
+
back: "Volver",
|
|
6744
6748
|
gift: "regalo"
|
|
6745
6749
|
};
|
|
6746
6750
|
var select_es = {
|
|
@@ -9769,7 +9773,7 @@ const userHasPaymentMethod = () => {
|
|
|
9769
9773
|
const getEntitlementsFromElem = elem => {
|
|
9770
9774
|
return elem.dataset.pelcroEntitlements.split(",").map(entitlement => entitlement.trim()).filter(entitlement => entitlement);
|
|
9771
9775
|
};
|
|
9772
|
-
const getPaymentCardIcon
|
|
9776
|
+
const getPaymentCardIcon = name => {
|
|
9773
9777
|
var _icons$name$toLowerCa;
|
|
9774
9778
|
|
|
9775
9779
|
const icons = {
|
|
@@ -13157,18 +13161,19 @@ function Input({
|
|
|
13157
13161
|
}) {
|
|
13158
13162
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13159
13163
|
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
13160
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
13161
|
-
htmlFor: id,
|
|
13162
|
-
className: `pelcro-input-label ${labelClassName}`
|
|
13163
|
-
}, required ? /*#__PURE__*/React__default.createElement("span", {
|
|
13164
|
-
className: "plc-text-primary-800 plc-inline-flex plc-mr-1"
|
|
13165
|
-
}, "*") : "", `${label}`), /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
13164
|
+
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
13166
13165
|
type: "text",
|
|
13167
13166
|
id: id,
|
|
13168
13167
|
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
13168
|
+
placeholder: "placeholder",
|
|
13169
13169
|
"aria-describedby": errorId,
|
|
13170
13170
|
"aria-invalid": Boolean(error)
|
|
13171
|
-
}, otherProps)),
|
|
13171
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
13172
|
+
htmlFor: id,
|
|
13173
|
+
className: `pelcro-input-label ${labelClassName}`
|
|
13174
|
+
}, `${label}`, required ? /*#__PURE__*/React__default.createElement("span", {
|
|
13175
|
+
className: "plc-text-gray-400 plc-inline-flex plc-ml-1"
|
|
13176
|
+
}, "*") : ""), error && /*#__PURE__*/React__default.createElement("p", {
|
|
13172
13177
|
id: errorId,
|
|
13173
13178
|
"aria-live": "assertive",
|
|
13174
13179
|
className: `pelcro-input-error ${errorClassName}`
|
|
@@ -14346,9 +14351,9 @@ const Authorship = () => {
|
|
|
14346
14351
|
href: `https://www.pelcro.com/?utm_source=${window.location.hostname}&utm_medium=direct&utm_campaign=powered_by_pelcro`,
|
|
14347
14352
|
rel: "noopener noreferrer nofollow",
|
|
14348
14353
|
target: "_blank",
|
|
14349
|
-
className: "plc-inline-flex plc-flex-
|
|
14354
|
+
className: "plc-inline-flex plc-flex-row plc-items-center plc-mt-6"
|
|
14350
14355
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
14351
|
-
className: "plc-inline-flex plc-
|
|
14356
|
+
className: "plc-inline-flex plc-mr-2 pelcro-authorship"
|
|
14352
14357
|
}, "Powered by"), /*#__PURE__*/React__default.createElement(SvgPelcroAuthorship, {
|
|
14353
14358
|
className: "pelcro-authorship"
|
|
14354
14359
|
}));
|
|
@@ -14394,6 +14399,7 @@ function Modal({
|
|
|
14394
14399
|
const ModalHeader = ({
|
|
14395
14400
|
id,
|
|
14396
14401
|
onDisplay,
|
|
14402
|
+
className = "",
|
|
14397
14403
|
hideCloseButton,
|
|
14398
14404
|
children,
|
|
14399
14405
|
...props
|
|
@@ -14410,7 +14416,7 @@ const ModalHeader = ({
|
|
|
14410
14416
|
};
|
|
14411
14417
|
|
|
14412
14418
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14413
|
-
className:
|
|
14419
|
+
className: `pelcro-modal-header ${className}`
|
|
14414
14420
|
}, !hideCloseButton && /*#__PURE__*/React__default.createElement("button", {
|
|
14415
14421
|
type: "button",
|
|
14416
14422
|
className: "pelcro-modal-close",
|
|
@@ -14419,25 +14425,27 @@ const ModalHeader = ({
|
|
|
14419
14425
|
}, /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
14420
14426
|
className: "plc-fill-current"
|
|
14421
14427
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
14422
|
-
className: "plc-flex plc-
|
|
14428
|
+
className: "plc-flex plc-w-full"
|
|
14423
14429
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
14424
14430
|
alt: "business logo",
|
|
14425
|
-
className: `plc-max-h-14 plc-
|
|
14431
|
+
className: `plc-max-h-14 plc-my-2 pelcro-modal-logo ${(_window$Pelcro = window.Pelcro) !== null && _window$Pelcro !== void 0 && _window$Pelcro._showModalHeader ? "" : "plc-hidden"}`,
|
|
14426
14432
|
src: (_window$Pelcro$site$r = window.Pelcro.site.read().logo) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.url
|
|
14427
14433
|
})), children);
|
|
14428
14434
|
};
|
|
14429
14435
|
const ModalBody = ({
|
|
14436
|
+
className = "",
|
|
14430
14437
|
children
|
|
14431
14438
|
}) => {
|
|
14432
14439
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14433
|
-
className:
|
|
14440
|
+
className: `pelcro-modal-body ${className}`
|
|
14434
14441
|
}, children);
|
|
14435
14442
|
};
|
|
14436
14443
|
const ModalFooter = ({
|
|
14444
|
+
className = "",
|
|
14437
14445
|
children
|
|
14438
14446
|
}) => {
|
|
14439
14447
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14440
|
-
className:
|
|
14448
|
+
className: `pelcro-modal-footer ${className}`
|
|
14441
14449
|
}, children, /*#__PURE__*/React__default.createElement(Authorship, null));
|
|
14442
14450
|
};
|
|
14443
14451
|
|
|
@@ -14514,9 +14522,9 @@ function LoginModal({
|
|
|
14514
14522
|
onDisplay: onDisplay,
|
|
14515
14523
|
onClose: onClose
|
|
14516
14524
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
14517
|
-
className: "plc-text-
|
|
14525
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
14518
14526
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
14519
|
-
className: "plc-text-
|
|
14527
|
+
className: "plc-text-xl plc-font-bold"
|
|
14520
14528
|
}, t("messages.loginTo")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(LoginView, Object.assign({
|
|
14521
14529
|
onForgotPassword: onForgotPassword
|
|
14522
14530
|
}, props, {
|
|
@@ -14952,10 +14960,12 @@ function RegisterModal(props) {
|
|
|
14952
14960
|
onDisplay: props === null || props === void 0 ? void 0 : props.onDisplay,
|
|
14953
14961
|
onClose: props === null || props === void 0 ? void 0 : props.onClose
|
|
14954
14962
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
14955
|
-
className: "plc-text-
|
|
14963
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
14956
14964
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
14957
|
-
className: "plc-text-
|
|
14958
|
-
}, title), /*#__PURE__*/React__default.createElement("p",
|
|
14965
|
+
className: "plc-text-xl plc-font-bold"
|
|
14966
|
+
}, title), /*#__PURE__*/React__default.createElement("p", {
|
|
14967
|
+
className: "plc-text-sm"
|
|
14968
|
+
}, subtitle))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(RegisterView, Object.assign({}, props, {
|
|
14959
14969
|
onSuccess: onSuccess
|
|
14960
14970
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement("p", {
|
|
14961
14971
|
className: "plc-mb-4"
|
|
@@ -14967,45 +14977,6 @@ function RegisterModal(props) {
|
|
|
14967
14977
|
}
|
|
14968
14978
|
RegisterModal.viewId = "register";
|
|
14969
14979
|
|
|
14970
|
-
function Checkbox({
|
|
14971
|
-
className = "",
|
|
14972
|
-
labelClassName = "",
|
|
14973
|
-
id,
|
|
14974
|
-
children,
|
|
14975
|
-
...otherProps
|
|
14976
|
-
}) {
|
|
14977
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
14978
|
-
className: "plc-flex plc-items-center"
|
|
14979
|
-
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
14980
|
-
type: "checkbox",
|
|
14981
|
-
id: id,
|
|
14982
|
-
className: `pelcro-checkbox ${className}`
|
|
14983
|
-
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
14984
|
-
htmlFor: id,
|
|
14985
|
-
className: `pelcro-checkbox-label ${labelClassName}`
|
|
14986
|
-
}, children));
|
|
14987
|
-
}
|
|
14988
|
-
|
|
14989
|
-
function Radio({
|
|
14990
|
-
wrapperClassName = "",
|
|
14991
|
-
className = "",
|
|
14992
|
-
labelClassName = "",
|
|
14993
|
-
id,
|
|
14994
|
-
children,
|
|
14995
|
-
...otherProps
|
|
14996
|
-
}) {
|
|
14997
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
14998
|
-
className: `plc-flex plc-items-center ${wrapperClassName}`
|
|
14999
|
-
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
15000
|
-
type: "radio",
|
|
15001
|
-
id: id,
|
|
15002
|
-
className: `pelcro-radio ${className}`
|
|
15003
|
-
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
15004
|
-
htmlFor: id,
|
|
15005
|
-
className: `pelcro-radio-label ${labelClassName}`
|
|
15006
|
-
}, children));
|
|
15007
|
-
}
|
|
15008
|
-
|
|
15009
14980
|
var initialState_1 = createCommonjsModule(function (module, exports) {
|
|
15010
14981
|
|
|
15011
14982
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -19989,37 +19960,68 @@ class SelectModal extends Component {
|
|
|
19989
19960
|
});
|
|
19990
19961
|
|
|
19991
19962
|
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
19963
|
+
var _product$description, _product$description2;
|
|
19964
|
+
|
|
19992
19965
|
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
19993
|
-
const productButtonLabel = this.locale("buttons.
|
|
19966
|
+
const productButtonLabel = this.locale("buttons.view");
|
|
19994
19967
|
const productButtonCallback = this.selectProduct;
|
|
19968
|
+
const {
|
|
19969
|
+
productsDescriptionsExpanded
|
|
19970
|
+
} = this.state;
|
|
19971
|
+
const productObject = {
|
|
19972
|
+
id: product.id,
|
|
19973
|
+
index: index,
|
|
19974
|
+
expanded: false
|
|
19975
|
+
};
|
|
19976
|
+
|
|
19977
|
+
if (!this.state.productsDescriptionsExpanded[index]) {
|
|
19978
|
+
productsDescriptionsExpanded.push(productObject);
|
|
19979
|
+
}
|
|
19980
|
+
|
|
19981
|
+
const toggleProductDescriptionExpanded = () => {
|
|
19982
|
+
this.setState({
|
|
19983
|
+
productsDescriptionsExpanded: this.state.productsDescriptionsExpanded.map(obj => obj.index === index ? Object.assign(obj, {
|
|
19984
|
+
expanded: !obj.expanded
|
|
19985
|
+
}) : obj)
|
|
19986
|
+
});
|
|
19987
|
+
};
|
|
19988
|
+
|
|
19995
19989
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19996
19990
|
key: product.id,
|
|
19997
|
-
className: `pelcro-product plc-relative plc-overflow-hidden plc-h-full plc-flex plc-flex-col plc-items-
|
|
19991
|
+
className: `pelcro-product plc-relative plc-overflow-hidden plc-h-full plc-min-h-card plc-flex plc-flex-col plc-items-center plc-justify-center plc-pt-5 plc-text-gray-900 plc-border-solid plc-rounded-sm plc-border-gray-200 plc-bg-white pelcro-select-product-wrapper ${options !== null && options !== void 0 && options.emphasize ? "plc-border-2" : "plc-border"}`
|
|
19998
19992
|
}, product.image && /*#__PURE__*/React__default.createElement("figure", {
|
|
19999
19993
|
className: "plc-w-full plc-mb-4 plc-h-28 plc-relative plc-overflow-hidden plc-flex plc-items-stretch"
|
|
20000
19994
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
20001
19995
|
alt: `image of ${product.name}`,
|
|
20002
19996
|
src: product.image,
|
|
20003
|
-
className: "plc-object-contain plc-max-w-50% plc-object-
|
|
19997
|
+
className: "plc-object-contain plc-max-w-50% plc-object-center plc-mx-auto plc-max-h-full pelcro-select-product-image plc-rounded-sm"
|
|
20004
19998
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
20005
|
-
className: "plc-flex plc-flex-col plc-flex-wrap plc-w-full plc-flex-1"
|
|
19999
|
+
className: "plc-flex plc-flex-col plc-flex-wrap plc-w-full plc-flex-1 plc-text-center"
|
|
20006
20000
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20007
20001
|
className: "plc-w-full pelcro-select-product-header"
|
|
20008
20002
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
20009
|
-
className: "plc-font-medium plc-text-
|
|
20010
|
-
}, product.name), /*#__PURE__*/React__default.createElement("p", {
|
|
20011
|
-
className: "plc-text-sm plc-mt-1 pelcro-select-product-description"
|
|
20012
|
-
}, product.description)))
|
|
20013
|
-
className: "plc-mt-
|
|
20003
|
+
className: "plc-font-medium plc-text-base pelcro-select-product-title"
|
|
20004
|
+
}, product.name), (product === null || product === void 0 ? void 0 : (_product$description = product.description) === null || _product$description === void 0 ? void 0 : _product$description.length) <= 105 && /*#__PURE__*/React__default.createElement("p", {
|
|
20005
|
+
className: "plc-text-sm plc-mt-1 pelcro-select-product-description plc-px-8"
|
|
20006
|
+
}, product.description), (product === null || product === void 0 ? void 0 : (_product$description2 = product.description) === null || _product$description2 === void 0 ? void 0 : _product$description2.length) > 105 && /*#__PURE__*/React__default.createElement("div", {
|
|
20007
|
+
className: "plc-text-sm plc-mt-1 pelcro-select-product-description plc-px-8"
|
|
20008
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20009
|
+
className: `plc-overflow-x-hidden ${productsDescriptionsExpanded[index].expanded ? "md:plc-whitespace-normal plc-whitespace-normal" : "plc-whitespace-normal"}`
|
|
20010
|
+
}, productsDescriptionsExpanded[index].expanded ? /*#__PURE__*/React__default.createElement("span", null, product.description, " ", /*#__PURE__*/React__default.createElement("button", {
|
|
20011
|
+
onClick: toggleProductDescriptionExpanded,
|
|
20012
|
+
className: "plc-text-primary plc-underline plc-cursor-pointer plc-outline-none focus:plc-outline-none hover:plc-no-underline"
|
|
20013
|
+
}, "Read less")) : /*#__PURE__*/React__default.createElement("span", null, product.description.slice(0, 105), " ... ", /*#__PURE__*/React__default.createElement("button", {
|
|
20014
|
+
onClick: toggleProductDescriptionExpanded,
|
|
20015
|
+
className: "plc-text-primary plc-underline plc-cursor-pointer plc-outline-none focus:plc-outline-none hover:plc-no-underline"
|
|
20016
|
+
}, "Read more")))))), /*#__PURE__*/React__default.createElement("div", {
|
|
20017
|
+
className: "plc-mt-auto plc-w-full plc-text-center"
|
|
20014
20018
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20015
20019
|
className: "plc-mt-3 plc-mb-6"
|
|
20016
|
-
}, product.plans && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
20017
|
-
className: "plc-mb-2 plc-text-sm plc-text-gray-600 plc-font-bold"
|
|
20018
|
-
}, this.locale("labels.startingAt")), this.countStartPrice(product.plans))), isPlanMode || /*#__PURE__*/React__default.createElement(Button, {
|
|
20020
|
+
}, product.plans && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, this.countStartPrice(product.plans))), isPlanMode || /*#__PURE__*/React__default.createElement(Button, {
|
|
20019
20021
|
onClick: productButtonCallback,
|
|
20020
20022
|
"data-key": product.id,
|
|
20021
20023
|
id: "pelcro-select-product-back-button",
|
|
20022
|
-
className: `plc-w-full plc-capitalize plc-border-2 plc-border-primary hover:plc-bg-primary-600 hover:plc-border-primary-600 plc-transition-all focus:plc-outline-none ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
20024
|
+
className: `plc-w-full plc-capitalize plc-border-2 plc-border-primary plc-rounded-none plc-rounded-b-sm hover:plc-bg-primary-600 hover:plc-border-primary-600 plc-transition-all focus:plc-outline-none ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
20023
20025
|
}, productButtonLabel)));
|
|
20024
20026
|
});
|
|
20025
20027
|
|
|
@@ -20094,16 +20096,11 @@ class SelectModal extends Component {
|
|
|
20094
20096
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20095
20097
|
className: "plc-flex plc-flex-col"
|
|
20096
20098
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20097
|
-
className: "selectedProduct plc-flex plc-flex-col plc-
|
|
20099
|
+
className: "selectedProduct plc-flex plc-flex-col plc-max-w-3xl plc-ml-11"
|
|
20098
20100
|
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
20099
|
-
className: "plc-text-2xl plc-mb-3"
|
|
20100
|
-
}, name),
|
|
20101
|
-
className: "plc-
|
|
20102
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
20103
|
-
src: image,
|
|
20104
|
-
alt: "Product Image"
|
|
20105
|
-
})), description && /*#__PURE__*/React__default.createElement("div", {
|
|
20106
|
-
className: "plc-max-w-xl plc-text-center"
|
|
20101
|
+
className: "plc-text-2xl plc-font-extrabold plc-mb-3"
|
|
20102
|
+
}, name), description && /*#__PURE__*/React__default.createElement("div", {
|
|
20103
|
+
className: "plc-text-left plc-text-sm"
|
|
20107
20104
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20108
20105
|
className: `plc-overflow-x-hidden ${prodDescExpanded ? "md:plc-whitespace-normal plc-whitespace-normal" : "md:plc-whitespace-nowrap plc-whitespace-normal"}`
|
|
20109
20106
|
}, prodDescExpanded ? /*#__PURE__*/React__default.createElement("span", null, description, " ", /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -20149,19 +20146,21 @@ class SelectModal extends Component {
|
|
|
20149
20146
|
this.state.plan.id === plan.id ? true : false;
|
|
20150
20147
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20151
20148
|
key: plan.id,
|
|
20152
|
-
className: `${((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.plan.id) === plan.id ? "plc-border-2 plc-border-primary" : "plc-border plc-border-gray-300"} plc-h-full plc-flex plc-flex-col plc-items-start plc-text-gray-900 plc-border-solid plc-rounded-
|
|
20149
|
+
className: `${((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.plan.id) === plan.id ? "plc-border-2 plc-border-primary" : "plc-border plc-border-gray-300"} plc-h-full plc-min-h-card plc-flex plc-flex-col plc-items-start plc-text-gray-900 plc-border-solid plc-rounded-sm plc-bg-white pelcro-select-plan-wrapper`
|
|
20153
20150
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20154
|
-
className: "plc-w-full plc-flex plc-flex-col plc-h-full",
|
|
20151
|
+
className: "plc-w-full plc-flex plc-flex-col plc-flex-1 plc-h-full plc-justify-between",
|
|
20155
20152
|
id: `pelcro-select-plan-${plan.id}`
|
|
20156
20153
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20157
|
-
className: "plc-
|
|
20154
|
+
className: "plc-py-4 plc-text-center plc-flex plc-justify-center plc-items-center plc-w-full plc-border-b plc-border-gray-300"
|
|
20158
20155
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
20159
20156
|
className: "pelcro-select-plan-title plc-font-medium plc-text-xl plc-break-all"
|
|
20160
|
-
}, plan.nickname), /*#__PURE__*/React__default.createElement("
|
|
20157
|
+
}, plan.nickname)), /*#__PURE__*/React__default.createElement("div", {
|
|
20158
|
+
className: "plc-flex plc-flex-col plc-flex-1 plc-justify-between"
|
|
20159
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20160
|
+
className: "plc-px-8 plc-py-6 plc-text-center plc-w-full"
|
|
20161
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
20161
20162
|
className: "plc-text-sm plc-mt-1 pelcro-select-plan-description plc-text-gray-400"
|
|
20162
20163
|
}, plan.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
20163
|
-
className: "plc-mt-auto plc-px-4 plc-mb-4 plc-border-t plc-border-gray-300"
|
|
20164
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20165
20164
|
className: "plc-pt-4 plc-mb-4 plc-font-semibold pelcro-select-plan-price plc-px-4 plc-text-center plc-flex plc-items-end plc-justify-center"
|
|
20166
20165
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
20167
20166
|
className: "plc-font-bold plc-text-3xl"
|
|
@@ -20172,13 +20171,13 @@ class SelectModal extends Component {
|
|
|
20172
20171
|
}, plan.currency), /*#__PURE__*/React__default.createElement("span", {
|
|
20173
20172
|
className: "plc-capitalize"
|
|
20174
20173
|
}, "/ ", plan.interval))), /*#__PURE__*/React__default.createElement("div", {
|
|
20175
|
-
className: `plc-grid ${disableGifting ? "plc-grid-cols-1" : "plc-grid-cols-2
|
|
20174
|
+
className: `plc-grid plc-bg-primary ${disableGifting ? "plc-grid-cols-1" : "plc-grid-cols-2"}`
|
|
20176
20175
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
20177
|
-
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-
|
|
20176
|
+
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-sm plc-border-primary focus:plc-outline-none plc-text-white plc-bg-primary hover:plc-bg-primary-600 hover:plc-border-primary-600 plc-transition-all`,
|
|
20178
20177
|
"data-key": plan.id,
|
|
20179
20178
|
onClick: e => this.selectPlan(e, false)
|
|
20180
20179
|
}, this.locale("buttons.select")), !disableGifting && /*#__PURE__*/React__default.createElement("button", {
|
|
20181
|
-
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-
|
|
20180
|
+
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-sm plc-border-primary focus:plc-outline-none plc-text-primary plc-bg-white hover:plc-border-primary-600 hover:plc-text-primary-600 hover:plc-shadow-sm plc-transition-all`,
|
|
20182
20181
|
"data-key": plan.id,
|
|
20183
20182
|
onClick: e => this.selectPlan(e, true)
|
|
20184
20183
|
}, this.locale("buttons.gift"))))));
|
|
@@ -20277,6 +20276,7 @@ class SelectModal extends Component {
|
|
|
20277
20276
|
initialTabSlide: 0,
|
|
20278
20277
|
scrollToTab: true,
|
|
20279
20278
|
prodDescExpanded: false,
|
|
20279
|
+
productsDescriptionsExpanded: [],
|
|
20280
20280
|
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
20281
20281
|
};
|
|
20282
20282
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
@@ -20311,17 +20311,20 @@ class SelectModal extends Component {
|
|
|
20311
20311
|
hideCloseButton: !this.closeButton,
|
|
20312
20312
|
onClose: this.props.onClose,
|
|
20313
20313
|
id: "pelcro-selection-modal"
|
|
20314
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader,
|
|
20315
|
-
className: "plc-
|
|
20314
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
20315
|
+
className: "plc-pl-20"
|
|
20316
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20317
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
20316
20318
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default.createElement("button", {
|
|
20317
20319
|
type: "button",
|
|
20318
20320
|
onClick: this.goBack,
|
|
20319
20321
|
className: "plc-absolute plc-w-6 plc-text-gray-500 focus:plc-text-black plc-z-max plc-top-1/2 plc-left-2 sm:plc-left-5 plc-transform plc--translate-y-1/2 plc-border-0 hover:plc-text-black hover:plc-shadow-none plc-bg-transparent hover:plc-bg-transparent focus:plc-bg-transparent"
|
|
20320
20322
|
}, /*#__PURE__*/React__default.createElement(SvgArrowLeft, null)), /*#__PURE__*/React__default.createElement("h4", {
|
|
20321
|
-
className: "plc-text-
|
|
20322
|
-
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p",
|
|
20323
|
-
|
|
20324
|
-
|
|
20323
|
+
className: "plc-text-xl plc-font-bold"
|
|
20324
|
+
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", {
|
|
20325
|
+
className: "plc-text-sm"
|
|
20326
|
+
}, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle)))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement("div", {
|
|
20327
|
+
id: "pelcro-selection-view"
|
|
20325
20328
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20326
20329
|
className: "pelcro-select-products-wrapper"
|
|
20327
20330
|
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -24212,42 +24215,51 @@ const PaymentMethodContainer = props => {
|
|
|
24212
24215
|
};
|
|
24213
24216
|
|
|
24214
24217
|
const StripeInputStyle = {
|
|
24215
|
-
base: "plc-w-full plc-p-3 plc-border plc-border-gray-300 plc-appearance-none plc-outline-none plc-rounded
|
|
24218
|
+
base: "plc-w-full plc-p-3 plc-border plc-border-gray-300 plc-appearance-none plc-outline-none plc-rounded plc-bg-white pelcro-input-input",
|
|
24216
24219
|
focus: "plc-ring-2 plc-ring-primary-400",
|
|
24217
|
-
invalid: "plc-ring-2 plc-ring-red-
|
|
24220
|
+
invalid: "plc-ring-2 plc-ring-red-300 pelcro-input-invalid"
|
|
24218
24221
|
};
|
|
24219
24222
|
const PelcroCardNumber = props => {
|
|
24220
24223
|
const {
|
|
24221
24224
|
t
|
|
24222
24225
|
} = useTranslation("checkoutForm");
|
|
24223
|
-
return /*#__PURE__*/React__default.createElement(
|
|
24224
|
-
|
|
24225
|
-
},
|
|
24226
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24227
|
+
className: "plc-relative"
|
|
24228
|
+
}, /*#__PURE__*/React__default.createElement(es_9, Object.assign({
|
|
24226
24229
|
id: "pelcro-input-card-number",
|
|
24227
24230
|
classes: StripeInputStyle
|
|
24228
|
-
}, props))
|
|
24231
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
24232
|
+
htmlFor: "pelcro-input-card-number",
|
|
24233
|
+
className: "pelcro-input-card-number-label"
|
|
24234
|
+
}, t("labels.card"), " *"));
|
|
24229
24235
|
};
|
|
24230
24236
|
const PelcroCardCVC = props => {
|
|
24231
24237
|
const {
|
|
24232
24238
|
t
|
|
24233
24239
|
} = useTranslation("checkoutForm");
|
|
24234
|
-
return /*#__PURE__*/React__default.createElement(
|
|
24235
|
-
|
|
24236
|
-
},
|
|
24240
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24241
|
+
className: "plc-relative"
|
|
24242
|
+
}, /*#__PURE__*/React__default.createElement(es_6, Object.assign({
|
|
24237
24243
|
id: "pelcro-input-cvc-number",
|
|
24238
24244
|
classes: StripeInputStyle
|
|
24239
|
-
}, props))
|
|
24245
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
24246
|
+
htmlFor: "pelcro-input-cvc-number",
|
|
24247
|
+
className: "pelcro-input-cvc-number-label"
|
|
24248
|
+
}, t("labels.CVC"), " *"));
|
|
24240
24249
|
};
|
|
24241
24250
|
const PelcroCardExpiry = props => {
|
|
24242
24251
|
const {
|
|
24243
24252
|
t
|
|
24244
24253
|
} = useTranslation("checkoutForm");
|
|
24245
|
-
return /*#__PURE__*/React__default.createElement(
|
|
24246
|
-
|
|
24247
|
-
},
|
|
24254
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24255
|
+
className: "plc-relative"
|
|
24256
|
+
}, /*#__PURE__*/React__default.createElement(es_8, Object.assign({
|
|
24248
24257
|
id: "pelcro-input-expiry-date",
|
|
24249
24258
|
classes: StripeInputStyle
|
|
24250
|
-
}, props))
|
|
24259
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
24260
|
+
htmlFor: "pelcro-input-expiry-date",
|
|
24261
|
+
className: "pelcro-input-expiry-date-label"
|
|
24262
|
+
}, t("labels.date"), " *"));
|
|
24251
24263
|
};
|
|
24252
24264
|
const PelcroPaymentRequestButton = props => {
|
|
24253
24265
|
const {
|
|
@@ -24308,18 +24320,55 @@ const CheckoutForm = () => {
|
|
|
24308
24320
|
}
|
|
24309
24321
|
|
|
24310
24322
|
if (cardProcessor === "stripe") {
|
|
24311
|
-
return /*#__PURE__*/React__default.createElement("div",
|
|
24323
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24324
|
+
className: "plc-mt-4"
|
|
24325
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24326
|
+
className: "plc-relative"
|
|
24327
|
+
}, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
|
|
24312
24328
|
autoFocus: true
|
|
24313
|
-
}), /*#__PURE__*/React__default.createElement("img", {
|
|
24314
|
-
alt: "credit_cards",
|
|
24315
|
-
className: "plc-w-auto plc-h-4 plc-mt-2",
|
|
24316
|
-
src: "https://js.pelcro.com/ui/plugin/main/images/credit_cards.png"
|
|
24317
24329
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
24318
|
-
|
|
24330
|
+
// alt="credit_cards"
|
|
24331
|
+
className: "plc-w-auto plc-h-8 plc-absolute plc-right-2 plc-top-1 plc-flex" // src="https://js.pelcro.com/ui/plugin/main/images/credit_cards.png"
|
|
24332
|
+
|
|
24333
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
24334
|
+
className: "plc-w-8",
|
|
24335
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24336
|
+
viewBox: "0 0 48 48"
|
|
24337
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
24338
|
+
fill: "#1565C0",
|
|
24339
|
+
d: "M15.186 19l-2.626 7.832c0 0-.667-3.313-.733-3.729-1.495-3.411-3.701-3.221-3.701-3.221L10.726 30v-.002h3.161L18.258 19H15.186zM17.689 30L20.56 30 22.296 19 19.389 19zM38.008 19h-3.021l-4.71 11h2.852l.588-1.571h3.596L37.619 30h2.613L38.008 19zM34.513 26.328l1.563-4.157.818 4.157H34.513zM26.369 22.206c0-.606.498-1.057 1.926-1.057.928 0 1.991.674 1.991.674l.466-2.309c0 0-1.358-.515-2.691-.515-3.019 0-4.576 1.444-4.576 3.272 0 3.306 3.979 2.853 3.979 4.551 0 .291-.231.964-1.888.964-1.662 0-2.759-.609-2.759-.609l-.495 2.216c0 0 1.063.606 3.117.606 2.059 0 4.915-1.54 4.915-3.752C30.354 23.586 26.369 23.394 26.369 22.206z"
|
|
24340
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
24341
|
+
fill: "#FFC107",
|
|
24342
|
+
d: "M12.212,24.945l-0.966-4.748c0,0-0.437-1.029-1.573-1.029c-1.136,0-4.44,0-4.44,0S10.894,20.84,12.212,24.945z"
|
|
24343
|
+
})), /*#__PURE__*/React__default.createElement("svg", {
|
|
24344
|
+
className: "plc-w-8",
|
|
24345
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24346
|
+
viewBox: "0 0 48 48"
|
|
24347
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
24348
|
+
fill: "#ff9800",
|
|
24349
|
+
d: "M32 10A14 14 0 1 0 32 38A14 14 0 1 0 32 10Z"
|
|
24350
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
24351
|
+
fill: "#d50000",
|
|
24352
|
+
d: "M16 10A14 14 0 1 0 16 38A14 14 0 1 0 16 10Z"
|
|
24353
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
24354
|
+
fill: "#ff3d00",
|
|
24355
|
+
d: "M18,24c0,4.755,2.376,8.95,6,11.48c3.624-2.53,6-6.725,6-11.48s-2.376-8.95-6-11.48 C20.376,15.05,18,19.245,18,24z"
|
|
24356
|
+
})), /*#__PURE__*/React__default.createElement("svg", {
|
|
24357
|
+
className: "plc-w-8",
|
|
24358
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24359
|
+
viewBox: "0 0 48 48"
|
|
24360
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
24361
|
+
fill: "#1976D2",
|
|
24362
|
+
d: "M45,35c0,2.209-1.791,4-4,4H7c-2.209,0-4-1.791-4-4V13c0-2.209,1.791-4,4-4h34c2.209,0,4,1.791,4,4V35z"
|
|
24363
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
24364
|
+
fill: "#FFF",
|
|
24365
|
+
d: "M22.255 20l-2.113 4.683L18.039 20h-2.695v6.726L12.341 20h-2.274L7 26.981h1.815l.671-1.558h3.432l.682 1.558h3.465v-5.185l2.299 5.185h1.563l2.351-5.095v5.095H25V20H22.255zM10.135 23.915l1.026-2.44 1.066 2.44H10.135zM37.883 23.413L41 20.018h-2.217l-1.994 2.164L34.86 20H28v6.982h6.635l2.092-2.311L38.767 27h2.21L37.883 23.413zM33.728 25.516h-4.011v-1.381h3.838v-1.323h-3.838v-1.308l4.234.012 1.693 1.897L33.728 25.516z"
|
|
24366
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
24367
|
+
className: "plc-flex plc-items-end plc-justify-between plc-my-4"
|
|
24319
24368
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24320
|
-
className: "plc-w-6/12 plc-pr-
|
|
24369
|
+
className: "plc-w-6/12 plc-pr-1"
|
|
24321
24370
|
}, /*#__PURE__*/React__default.createElement(PelcroCardExpiry, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
24322
|
-
className: "plc-w-6/12 plc-pl-
|
|
24371
|
+
className: "plc-w-6/12 plc-pl-1"
|
|
24323
24372
|
}, /*#__PURE__*/React__default.createElement(PelcroCardCVC, null))));
|
|
24324
24373
|
}
|
|
24325
24374
|
|
|
@@ -24534,7 +24583,7 @@ const CouponCode = ({
|
|
|
24534
24583
|
}),
|
|
24535
24584
|
onClick: showCouponField
|
|
24536
24585
|
}, otherProps), !enableCouponField ? t("labels.addCode") : t("labels.hideCode")), enableCouponField && /*#__PURE__*/React__default.createElement("div", {
|
|
24537
|
-
className: "plc-flex plc-w-full plc-mt-2 pelcro-apply-coupon-wrapper"
|
|
24586
|
+
className: "plc-flex plc-w-full plc-mt-2 plc-mb-8 pelcro-apply-coupon-wrapper"
|
|
24538
24587
|
}, /*#__PURE__*/React__default.createElement(CouponCodeField, null), /*#__PURE__*/React__default.createElement(ApplyCouponButton, null)));
|
|
24539
24588
|
};
|
|
24540
24589
|
|
|
@@ -24919,7 +24968,7 @@ const SelectedPaymentMethod = () => {
|
|
|
24919
24968
|
className: "plc-flex plc-items-center plc-justify-between plc-w-full"
|
|
24920
24969
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24921
24970
|
className: "plc-flex plc-items-center plc-space-x-2"
|
|
24922
|
-
}, getPaymentCardIcon
|
|
24971
|
+
}, getPaymentCardIcon((_paymentMethod$proper = paymentMethod.properties) === null || _paymentMethod$proper === void 0 ? void 0 : _paymentMethod$proper.brand), /*#__PURE__*/React__default.createElement("div", {
|
|
24923
24972
|
className: "plc-flex plc-flex-col plc-text-lg pelcro-payment-method-details"
|
|
24924
24973
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
24925
24974
|
className: "plc-font-semibold"
|
|
@@ -25106,13 +25155,13 @@ function PaymentMethodView({
|
|
|
25106
25155
|
const isUserLastName = Boolean(window.Pelcro.user.read().last_name);
|
|
25107
25156
|
const isUserPhone = Boolean(window.Pelcro.user.read().phone);
|
|
25108
25157
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25109
|
-
className: "plc-flex plc-flex-col plc-items-center
|
|
25158
|
+
className: "plc-flex plc-flex-col plc-items-center pelcro-payment-block"
|
|
25110
25159
|
}, order && /*#__PURE__*/React__default.createElement("div", {
|
|
25111
|
-
className: "plc-w-full plc-
|
|
25160
|
+
className: "plc-w-full plc-font-semibold plc-text-left plc-text-gray-900 plc-mb-6"
|
|
25112
25161
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
25113
25162
|
className: "plc-text-gray-600"
|
|
25114
25163
|
}, !Array.isArray(order) ? /*#__PURE__*/React__default.createElement("span", {
|
|
25115
|
-
className: "plc-
|
|
25164
|
+
className: "plc-font-bold"
|
|
25116
25165
|
}, order === null || order === void 0 ? void 0 : order.name) : /*#__PURE__*/React__default.createElement("span", {
|
|
25117
25166
|
className: "plc-tracking-wider plc-uppercase"
|
|
25118
25167
|
}, t("labels.freeItems")), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -25192,8 +25241,8 @@ const SubscriptionRenewView = ({
|
|
|
25192
25241
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
25193
25242
|
className: "plc-text-gray-600"
|
|
25194
25243
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25195
|
-
className: "plc-
|
|
25196
|
-
}, plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
25244
|
+
className: "plc-font-bold"
|
|
25245
|
+
}, product.name, " - ", plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
25197
25246
|
className: "plc-text-xl plc-font-semibold plc-text-primary-600"
|
|
25198
25247
|
}, plan.amount_formatted, " "), /*#__PURE__*/React__default.createElement("span", {
|
|
25199
25248
|
className: "plc-font-thin"
|
|
@@ -25203,9 +25252,9 @@ const SubscriptionRenewView = ({
|
|
|
25203
25252
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25204
25253
|
id: "pelcro-subscription-renew-view"
|
|
25205
25254
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25206
|
-
className: "plc-mb-6 plc-text-
|
|
25255
|
+
className: "plc-flex plc-flex-col plc-items-center plc-mb-6 plc-text-left plc-text-gray-900 pelcro-title-wrapper"
|
|
25207
25256
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25208
|
-
className: "plc-w-full plc-
|
|
25257
|
+
className: "plc-w-full plc-font-semibold plc-text-left plc-text-gray-900"
|
|
25209
25258
|
}, plan && getPricingText(plan))), /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
25210
25259
|
type: "createPayment",
|
|
25211
25260
|
showCoupon: true,
|
|
@@ -25264,10 +25313,12 @@ function SubscriptionRenewModal({
|
|
|
25264
25313
|
onDisplay: onDisplay,
|
|
25265
25314
|
onClose: onClose
|
|
25266
25315
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25267
|
-
className: "plc-text-
|
|
25316
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25268
25317
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25269
|
-
className: "plc-text-
|
|
25270
|
-
}, (_product$paywall$subs = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.subscribe_title) !== null && _product$paywall$subs !== void 0 ? _product$paywall$subs : (_window$Pelcro$paywal = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal === void 0 ? void 0 : _window$Pelcro$paywal.subscribe_title), " ", /*#__PURE__*/React__default.createElement("p",
|
|
25318
|
+
className: "plc-text-xl plc-font-bold"
|
|
25319
|
+
}, (_product$paywall$subs = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.subscribe_title) !== null && _product$paywall$subs !== void 0 ? _product$paywall$subs : (_window$Pelcro$paywal = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal === void 0 ? void 0 : _window$Pelcro$paywal.subscribe_title), " ", /*#__PURE__*/React__default.createElement("p", {
|
|
25320
|
+
className: "plc-text-sm"
|
|
25321
|
+
}, (_product$paywall$subs2 = product === null || product === void 0 ? void 0 : (_product$paywall2 = product.paywall) === null || _product$paywall2 === void 0 ? void 0 : _product$paywall2.subscribe_subtitle) !== null && _product$paywall$subs2 !== void 0 ? _product$paywall$subs2 : (_window$Pelcro$paywal2 = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal2 === void 0 ? void 0 : _window$Pelcro$paywal2.subscribe_subtitle))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionRenewView, Object.assign({}, otherProps, {
|
|
25271
25322
|
onSuccess: onSuccess,
|
|
25272
25323
|
onGiftRenewalSuccess: onGiftRenewalSuccess
|
|
25273
25324
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -25347,7 +25398,7 @@ const Tooltip = ({
|
|
|
25347
25398
|
className
|
|
25348
25399
|
}) => {
|
|
25349
25400
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25350
|
-
className: `plc-flex pelcro-tooltip-container plc-text-gray-
|
|
25401
|
+
className: `plc-flex pelcro-tooltip-container plc-text-gray-400 ${className}`
|
|
25351
25402
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25352
25403
|
className: "pelcro-tooltip-icon"
|
|
25353
25404
|
}, /*#__PURE__*/React__default.createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25374,19 +25425,20 @@ function TextArea({
|
|
|
25374
25425
|
}) {
|
|
25375
25426
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25376
25427
|
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
25377
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
25378
|
-
htmlFor: id,
|
|
25379
|
-
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
25380
|
-
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
25381
|
-
value: tooltipText,
|
|
25382
|
-
className: "plc-ml-1"
|
|
25383
|
-
})), /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
25428
|
+
}, /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
25384
25429
|
type: "text",
|
|
25385
25430
|
id: id,
|
|
25386
25431
|
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
25432
|
+
placeholder: "placeholder",
|
|
25387
25433
|
"aria-describedby": errorId,
|
|
25388
25434
|
"aria-invalid": Boolean(error)
|
|
25389
|
-
}, otherProps)),
|
|
25435
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
25436
|
+
htmlFor: id,
|
|
25437
|
+
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
25438
|
+
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
25439
|
+
value: tooltipText,
|
|
25440
|
+
className: "plc-ml-1"
|
|
25441
|
+
})), error && /*#__PURE__*/React__default.createElement("p", {
|
|
25390
25442
|
id: errorId,
|
|
25391
25443
|
"aria-live": "assertive",
|
|
25392
25444
|
className: `pelcro-input-error ${errorClassName}`
|
|
@@ -25626,9 +25678,9 @@ const SubscriptionCancelModal = ({
|
|
|
25626
25678
|
onClose: onClose,
|
|
25627
25679
|
id: "pelcro-subscription-cancel-modal"
|
|
25628
25680
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25629
|
-
className: "plc-text-
|
|
25681
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25630
25682
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25631
|
-
className: "plc-text-
|
|
25683
|
+
className: "plc-text-xl plc-font-bold"
|
|
25632
25684
|
}, t("labels.title"), /*#__PURE__*/React__default.createElement("span", {
|
|
25633
25685
|
className: "plc-text-gray-400 plc-text-base plc-block"
|
|
25634
25686
|
}, "(", subscriptionToCancel.plan.nickname, ")")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionCancelView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -25701,19 +25753,20 @@ function DatePicker({
|
|
|
25701
25753
|
}) {
|
|
25702
25754
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25703
25755
|
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
25704
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
25705
|
-
htmlFor: id,
|
|
25706
|
-
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
25707
|
-
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
25708
|
-
value: tooltipText,
|
|
25709
|
-
className: "plc-ml-1"
|
|
25710
|
-
})), /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
25756
|
+
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
25711
25757
|
type: "date",
|
|
25712
25758
|
id: id,
|
|
25713
25759
|
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
25760
|
+
placeholder: "placeholder",
|
|
25714
25761
|
"aria-describedby": errorId,
|
|
25715
25762
|
"aria-invalid": Boolean(error)
|
|
25716
|
-
}, otherProps)),
|
|
25763
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
25764
|
+
htmlFor: id,
|
|
25765
|
+
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
25766
|
+
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
25767
|
+
value: tooltipText,
|
|
25768
|
+
className: "plc-ml-1"
|
|
25769
|
+
})), error && /*#__PURE__*/React__default.createElement("p", {
|
|
25717
25770
|
id: errorId,
|
|
25718
25771
|
"aria-live": "assertive",
|
|
25719
25772
|
className: `pelcro-input-error ${errorClassName}`
|
|
@@ -25868,9 +25921,9 @@ function SubscriptionSuspendModal({
|
|
|
25868
25921
|
onClose: onClose,
|
|
25869
25922
|
id: "pelcro-subscription-suspend-modal"
|
|
25870
25923
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25871
|
-
className: "plc-text-
|
|
25924
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
25872
25925
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25873
|
-
className: "plc-text-
|
|
25926
|
+
className: "plc-text-xl plc-font-bold"
|
|
25874
25927
|
}, t("labels.title"), /*#__PURE__*/React__default.createElement("span", {
|
|
25875
25928
|
className: "plc-text-gray-400 plc-text-base plc-block"
|
|
25876
25929
|
}, "(", subscriptionToSuspend.plan.nickname, ")")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionSuspendView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -26177,10 +26230,12 @@ class DefaultNewsLetter extends Component {
|
|
|
26177
26230
|
onClose: this.props.onClose,
|
|
26178
26231
|
id: "pelcro-newsletter-modal"
|
|
26179
26232
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26180
|
-
className: "plc-text-
|
|
26233
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
26181
26234
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26182
|
-
className: "plc-text-
|
|
26183
|
-
}, this.title), /*#__PURE__*/React__default.createElement("p",
|
|
26235
|
+
className: "plc-text-xl plc-font-bold"
|
|
26236
|
+
}, this.title), /*#__PURE__*/React__default.createElement("p", {
|
|
26237
|
+
className: "plc-text-sm"
|
|
26238
|
+
}, this.subtitle))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26184
26239
|
id: "pelcro-newsletter-view"
|
|
26185
26240
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
26186
26241
|
action: "javascript:void(0);",
|
|
@@ -26459,6 +26514,25 @@ const NewsletterUpdateButton = ({
|
|
|
26459
26514
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.submit"));
|
|
26460
26515
|
};
|
|
26461
26516
|
|
|
26517
|
+
function Checkbox({
|
|
26518
|
+
className = "",
|
|
26519
|
+
labelClassName = "",
|
|
26520
|
+
id,
|
|
26521
|
+
children,
|
|
26522
|
+
...otherProps
|
|
26523
|
+
}) {
|
|
26524
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
26525
|
+
className: "plc-flex plc-items-center"
|
|
26526
|
+
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
26527
|
+
type: "checkbox",
|
|
26528
|
+
id: id,
|
|
26529
|
+
className: `pelcro-checkbox ${className}`
|
|
26530
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
26531
|
+
htmlFor: id,
|
|
26532
|
+
className: `pelcro-checkbox-label ${labelClassName}`
|
|
26533
|
+
}, children));
|
|
26534
|
+
}
|
|
26535
|
+
|
|
26462
26536
|
const NewsletterUpdateList = () => {
|
|
26463
26537
|
const handleSelectNewsletter = event => {
|
|
26464
26538
|
dispatch({
|
|
@@ -26527,9 +26601,9 @@ const NewsletterUpdateModal = ({
|
|
|
26527
26601
|
onDisplay: onDisplay,
|
|
26528
26602
|
onClose: onClose
|
|
26529
26603
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26530
|
-
className: "plc-text-
|
|
26604
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
26531
26605
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26532
|
-
className: "plc-text-
|
|
26606
|
+
className: "plc-text-xl plc-font-bold"
|
|
26533
26607
|
}, t("updateTitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(NewsletterUpdateView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
26534
26608
|
};
|
|
26535
26609
|
NewsletterUpdateModal.viewId = "newsletter-update";
|
|
@@ -26624,8 +26698,8 @@ const SubscriptionCreateView = ({
|
|
|
26624
26698
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
26625
26699
|
className: "plc-text-gray-600"
|
|
26626
26700
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
26627
|
-
className: "plc-
|
|
26628
|
-
}, plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
26701
|
+
className: "plc-font-bold"
|
|
26702
|
+
}, product.name, " - ", plan.nickname), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
26629
26703
|
className: "plc-text-xl plc-font-semibold plc-text-primary-600"
|
|
26630
26704
|
}, priceFormatted, " "), /*#__PURE__*/React__default.createElement("span", {
|
|
26631
26705
|
className: "plc-font-thin"
|
|
@@ -26635,9 +26709,9 @@ const SubscriptionCreateView = ({
|
|
|
26635
26709
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26636
26710
|
id: "pelcro-subscription-create-view"
|
|
26637
26711
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
26638
|
-
className: "plc-flex plc-flex-col plc-items-center plc-mb-6 plc-text-
|
|
26712
|
+
className: "plc-flex plc-flex-col plc-items-center plc-mb-6 plc-text-left plc-text-gray-900 pelcro-title-wrapper"
|
|
26639
26713
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
26640
|
-
className: "plc-w-full plc-
|
|
26714
|
+
className: "plc-w-full plc-font-semibold plc-text-left plc-text-gray-900"
|
|
26641
26715
|
}, plan && getPricingText(plan))), /*#__PURE__*/React__default.createElement(PaymentMethodView, {
|
|
26642
26716
|
type: "createPayment",
|
|
26643
26717
|
showCoupon: true,
|
|
@@ -26677,10 +26751,12 @@ function SubscriptionCreateModal({
|
|
|
26677
26751
|
onDisplay: onDisplay,
|
|
26678
26752
|
onClose: onClose
|
|
26679
26753
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26680
|
-
className: "plc-text-
|
|
26754
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
26681
26755
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26682
|
-
className: "plc-text-
|
|
26683
|
-
}, (_product$paywall$subs = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.subscribe_title) !== null && _product$paywall$subs !== void 0 ? _product$paywall$subs : (_window$Pelcro$paywal = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal === void 0 ? void 0 : _window$Pelcro$paywal.subscribe_title), " ", /*#__PURE__*/React__default.createElement("p",
|
|
26756
|
+
className: "plc-text-xl plc-font-bold"
|
|
26757
|
+
}, (_product$paywall$subs = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.subscribe_title) !== null && _product$paywall$subs !== void 0 ? _product$paywall$subs : (_window$Pelcro$paywal = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal === void 0 ? void 0 : _window$Pelcro$paywal.subscribe_title), " ", /*#__PURE__*/React__default.createElement("p", {
|
|
26758
|
+
className: "plc-text-sm"
|
|
26759
|
+
}, (_product$paywall$subs2 = product === null || product === void 0 ? void 0 : (_product$paywall2 = product.paywall) === null || _product$paywall2 === void 0 ? void 0 : _product$paywall2.subscribe_subtitle) !== null && _product$paywall$subs2 !== void 0 ? _product$paywall$subs2 : (_window$Pelcro$paywal2 = window.Pelcro.paywall.read()) === null || _window$Pelcro$paywal2 === void 0 ? void 0 : _window$Pelcro$paywal2.subscribe_subtitle))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionCreateView, Object.assign({}, otherProps, {
|
|
26684
26760
|
onSuccess: onSuccess
|
|
26685
26761
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
26686
26762
|
}
|
|
@@ -27168,10 +27244,12 @@ function SubscriptionManageMembersModal({
|
|
|
27168
27244
|
onClose: onClose,
|
|
27169
27245
|
className: "plc-max-w-xl"
|
|
27170
27246
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27171
|
-
className: "plc-text-
|
|
27247
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27172
27248
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27173
|
-
className: "plc-text-
|
|
27174
|
-
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p",
|
|
27249
|
+
className: "plc-text-xl plc-font-bold"
|
|
27250
|
+
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p", {
|
|
27251
|
+
className: "plc-text-sm"
|
|
27252
|
+
}, "Comma-separated list e.g. 'john@example.com,jane@example.com'"))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionManageMembersView, Object.assign({}, props, {
|
|
27175
27253
|
onSuccess: onSuccess
|
|
27176
27254
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
27177
27255
|
}
|
|
@@ -27440,7 +27518,7 @@ const UserUpdateEmail = props => {
|
|
|
27440
27518
|
enableEmailEdit: enableEmailEdit
|
|
27441
27519
|
}, props)), /*#__PURE__*/React__default.createElement(Button, {
|
|
27442
27520
|
variant: "icon",
|
|
27443
|
-
className: "plc-absolute
|
|
27521
|
+
className: "plc-absolute plc-rounded-none plc-text-gray-500 plc-w-12 plc-h-12 plc--top-1 plc-right-0 hover:plc-text-gray-900 hover:plc-bg-transparent focus:plc-ring-0 focus:plc-shadow-none",
|
|
27444
27522
|
icon: enableEmailEdit ? /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
27445
27523
|
className: "plc-w-6"
|
|
27446
27524
|
}) : /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -27765,10 +27843,12 @@ function UserUpdateModal({
|
|
|
27765
27843
|
onDisplay: onDisplay,
|
|
27766
27844
|
onClose: onClose
|
|
27767
27845
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
27768
|
-
className: "plc-text-
|
|
27846
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
27769
27847
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
27770
|
-
className: "plc-text-
|
|
27771
|
-
}, t("labels.title")), /*#__PURE__*/React__default.createElement("p",
|
|
27848
|
+
className: "plc-text-xl plc-font-bold"
|
|
27849
|
+
}, t("labels.title")), /*#__PURE__*/React__default.createElement("p", {
|
|
27850
|
+
className: "plc-text-sm"
|
|
27851
|
+
}, t("labels.subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(UserUpdateView, Object.assign({
|
|
27772
27852
|
onPictureClick: onPictureClick
|
|
27773
27853
|
}, otherProps))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
27774
27854
|
}
|
|
@@ -28325,17 +28405,18 @@ function Select({
|
|
|
28325
28405
|
}) {
|
|
28326
28406
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28327
28407
|
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
28328
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
28329
|
-
htmlFor: id,
|
|
28330
|
-
className: `pelcro-input-label ${labelClassName}`
|
|
28331
|
-
}, required ? /*#__PURE__*/React__default.createElement("span", {
|
|
28332
|
-
className: "plc-text-primary-800 plc-inline-flex plc-mr-1"
|
|
28333
|
-
}, "*") : "", `${label}`), /*#__PURE__*/React__default.createElement("select", Object.assign({
|
|
28408
|
+
}, /*#__PURE__*/React__default.createElement("select", Object.assign({
|
|
28334
28409
|
id: id,
|
|
28335
28410
|
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
28411
|
+
placeholder: "placeholder",
|
|
28336
28412
|
"aria-describedby": errorId,
|
|
28337
28413
|
"aria-invalid": Boolean(error)
|
|
28338
|
-
}, otherProps), children),
|
|
28414
|
+
}, otherProps), children), /*#__PURE__*/React__default.createElement("label", {
|
|
28415
|
+
htmlFor: id,
|
|
28416
|
+
className: `pelcro-input-label ${labelClassName}`
|
|
28417
|
+
}, `${label}`, required ? /*#__PURE__*/React__default.createElement("span", {
|
|
28418
|
+
className: "plc-text-gray-400 plc-inline-flex plc-ml-1"
|
|
28419
|
+
}, "*") : ""), error && /*#__PURE__*/React__default.createElement("p", {
|
|
28339
28420
|
id: errorId,
|
|
28340
28421
|
"aria-live": "assertive",
|
|
28341
28422
|
className: `pelcro-input-error ${errorClassName}`
|
|
@@ -28626,9 +28707,9 @@ const AddressCreateModal = ({
|
|
|
28626
28707
|
onDisplay: onDisplay,
|
|
28627
28708
|
onClose: onClose
|
|
28628
28709
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28629
|
-
className: "plc-text-
|
|
28710
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
28630
28711
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
28631
|
-
className: "plc-text-
|
|
28712
|
+
className: "plc-text-xl plc-font-bold"
|
|
28632
28713
|
}, giftRecipient ? t("titleGifting") : t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(AddressCreateView, Object.assign({}, otherProps, {
|
|
28633
28714
|
onSuccess: onSuccess,
|
|
28634
28715
|
onGiftRedemptionSuccess: onGiftRedemptionSuccess,
|
|
@@ -29287,9 +29368,9 @@ const AddressUpdateModal = ({
|
|
|
29287
29368
|
onDisplay: onDisplay,
|
|
29288
29369
|
onClose: onClose
|
|
29289
29370
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29290
|
-
className: "plc-text-
|
|
29371
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29291
29372
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29292
|
-
className: "plc-text-
|
|
29373
|
+
className: "plc-text-xl plc-font-bold"
|
|
29293
29374
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(AddressUpdateView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
29294
29375
|
};
|
|
29295
29376
|
AddressUpdateModal.viewId = "address-edit";
|
|
@@ -29371,10 +29452,12 @@ const PaymentMethodUpdateModal = props => {
|
|
|
29371
29452
|
onDisplay: props.onDisplay,
|
|
29372
29453
|
onClose: props.onClose
|
|
29373
29454
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29374
|
-
className: "plc-text-
|
|
29455
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29375
29456
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29376
|
-
className: "plc-text-
|
|
29377
|
-
}, t("update.title")), /*#__PURE__*/React__default.createElement("p",
|
|
29457
|
+
className: "plc-text-xl plc-font-bold"
|
|
29458
|
+
}, t("update.title")), /*#__PURE__*/React__default.createElement("p", {
|
|
29459
|
+
className: "plc-text-sm"
|
|
29460
|
+
}, t("update.subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodUpdateView, Object.assign({}, props, {
|
|
29378
29461
|
onSuccess: onSuccess
|
|
29379
29462
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
29380
29463
|
};
|
|
@@ -29617,10 +29700,12 @@ const PasswordResetModal = ({
|
|
|
29617
29700
|
onClose: onClose,
|
|
29618
29701
|
id: "pelcro-password-reset-modal"
|
|
29619
29702
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29620
|
-
className: "plc-text-
|
|
29703
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29621
29704
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29622
|
-
className: "plc-text-
|
|
29623
|
-
}, t("title")), /*#__PURE__*/React__default.createElement("p",
|
|
29705
|
+
className: "plc-text-xl plc-font-bold"
|
|
29706
|
+
}, t("title")), /*#__PURE__*/React__default.createElement("p", {
|
|
29707
|
+
className: "plc-text-sm"
|
|
29708
|
+
}, t("subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PasswordResetView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
29624
29709
|
};
|
|
29625
29710
|
PasswordResetModal.viewId = "password-reset";
|
|
29626
29711
|
|
|
@@ -29805,9 +29890,9 @@ const PasswordForgotModal = ({
|
|
|
29805
29890
|
onDisplay: onDisplay,
|
|
29806
29891
|
onClose: onClose
|
|
29807
29892
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29808
|
-
className: "plc-text-
|
|
29893
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
29809
29894
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
29810
|
-
className: "plc-text-
|
|
29895
|
+
className: "plc-text-xl plc-font-bold"
|
|
29811
29896
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PasswordForgotView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement("p", {
|
|
29812
29897
|
className: "plc-mb-9"
|
|
29813
29898
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -29997,9 +30082,9 @@ const PasswordlessRequestModal = ({
|
|
|
29997
30082
|
onDisplay: onDisplay,
|
|
29998
30083
|
onClose: onClose
|
|
29999
30084
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
30000
|
-
className: "plc-text-
|
|
30085
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30001
30086
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
30002
|
-
className: "plc-text-
|
|
30087
|
+
className: "plc-text-xl plc-font-bold"
|
|
30003
30088
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PasswordlessRequestView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
30004
30089
|
};
|
|
30005
30090
|
PasswordlessRequestModal.viewId = "passwordless-request";
|
|
@@ -30369,9 +30454,9 @@ const PasswordChangeModal = ({
|
|
|
30369
30454
|
onDisplay: onDisplay,
|
|
30370
30455
|
onClose: onClose
|
|
30371
30456
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
30372
|
-
className: "plc-text-
|
|
30457
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30373
30458
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
30374
|
-
className: "plc-text-
|
|
30459
|
+
className: "plc-text-xl plc-font-bold"
|
|
30375
30460
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PasswordChangeView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
30376
30461
|
};
|
|
30377
30462
|
PasswordChangeModal.viewId = "password-change";
|
|
@@ -30669,9 +30754,9 @@ const CartModal = ({
|
|
|
30669
30754
|
onClose: onClose,
|
|
30670
30755
|
hideCloseButton: false
|
|
30671
30756
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
30672
|
-
className: "plc-text-
|
|
30757
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30673
30758
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
30674
|
-
className: "plc-text-
|
|
30759
|
+
className: "plc-text-xl plc-font-bold "
|
|
30675
30760
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(CartView, Object.assign({}, otherProps, {
|
|
30676
30761
|
onSuccess: onSuccess
|
|
30677
30762
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -30815,9 +30900,9 @@ const OrderCreateModal = ({
|
|
|
30815
30900
|
onDisplay: onDisplay,
|
|
30816
30901
|
onClose: onClose
|
|
30817
30902
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
30818
|
-
className: "plc-text-
|
|
30903
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30819
30904
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
30820
|
-
className: "plc-text-
|
|
30905
|
+
className: "plc-text-xl plc-font-bold "
|
|
30821
30906
|
}, t("labels.checkout.title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(OrderCreateView, Object.assign({}, otherProps, {
|
|
30822
30907
|
onSuccess: onSuccess
|
|
30823
30908
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -31234,9 +31319,9 @@ const GiftCreateModal = ({
|
|
|
31234
31319
|
onDisplay: onDisplay,
|
|
31235
31320
|
onClose: onClose
|
|
31236
31321
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
31237
|
-
className: "plc-text-
|
|
31322
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
31238
31323
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
31239
|
-
className: "plc-text-
|
|
31324
|
+
className: "plc-text-xl plc-font-bold"
|
|
31240
31325
|
}, t("gift.titles.firstTitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(GiftCreateView, Object.assign({}, otherProps, {
|
|
31241
31326
|
onSuccess: onSuccess
|
|
31242
31327
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -31508,10 +31593,12 @@ const GiftRedeemModal = ({
|
|
|
31508
31593
|
onClose: onClose,
|
|
31509
31594
|
onDisplay: onDisplay
|
|
31510
31595
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
31511
|
-
className: "plc-text-
|
|
31596
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
31512
31597
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
31513
|
-
className: "plc-text-
|
|
31514
|
-
}, t("redeem.titles.firstTitle")), /*#__PURE__*/React__default.createElement("p",
|
|
31598
|
+
className: "plc-text-xl plc-font-bold"
|
|
31599
|
+
}, t("redeem.titles.firstTitle")), /*#__PURE__*/React__default.createElement("p", {
|
|
31600
|
+
className: "plc-text-sm"
|
|
31601
|
+
}, t("redeem.titles.secondTitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(GiftRedeemView, Object.assign({}, otherProps, {
|
|
31515
31602
|
onSuccess: onSuccess
|
|
31516
31603
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, isAuthenticated() && /*#__PURE__*/React__default.createElement("p", {
|
|
31517
31604
|
className: "plc-mb-9"
|
|
@@ -31711,6 +31798,26 @@ const AddressSelectContainer = ({
|
|
|
31711
31798
|
})));
|
|
31712
31799
|
};
|
|
31713
31800
|
|
|
31801
|
+
function Radio({
|
|
31802
|
+
wrapperClassName = "",
|
|
31803
|
+
className = "",
|
|
31804
|
+
labelClassName = "",
|
|
31805
|
+
id,
|
|
31806
|
+
children,
|
|
31807
|
+
...otherProps
|
|
31808
|
+
}) {
|
|
31809
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
31810
|
+
className: `plc-flex plc-items-center ${wrapperClassName}`
|
|
31811
|
+
}, /*#__PURE__*/React__default.createElement("input", Object.assign({
|
|
31812
|
+
type: "radio",
|
|
31813
|
+
id: id,
|
|
31814
|
+
className: `pelcro-radio ${className}`
|
|
31815
|
+
}, otherProps)), /*#__PURE__*/React__default.createElement("label", {
|
|
31816
|
+
htmlFor: id,
|
|
31817
|
+
className: `pelcro-radio-label ${labelClassName}`
|
|
31818
|
+
}, children));
|
|
31819
|
+
}
|
|
31820
|
+
|
|
31714
31821
|
const AddressSelectList = () => {
|
|
31715
31822
|
const {
|
|
31716
31823
|
dispatch,
|
|
@@ -31846,10 +31953,12 @@ const AddressSelectModal = ({
|
|
|
31846
31953
|
onClose: onClose,
|
|
31847
31954
|
id: "pelcro-address-select-modal"
|
|
31848
31955
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
31849
|
-
className: "plc-text-
|
|
31956
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
31850
31957
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
31851
|
-
className: "plc-text-
|
|
31852
|
-
}, t("selectAddressTitle")), /*#__PURE__*/React__default.createElement("p",
|
|
31958
|
+
className: "plc-text-xl plc-font-bold"
|
|
31959
|
+
}, t("selectAddressTitle")), /*#__PURE__*/React__default.createElement("p", {
|
|
31960
|
+
className: "plc-text-sm"
|
|
31961
|
+
}, t("selectAddressSubtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(AddressSelectView, Object.assign({
|
|
31853
31962
|
onAddNewAddress: onAddNewAddress
|
|
31854
31963
|
}, otherProps, {
|
|
31855
31964
|
onSuccess: onSuccess,
|
|
@@ -32005,7 +32114,7 @@ const PaymentMethodSelectList = () => {
|
|
|
32005
32114
|
checked: isSelected,
|
|
32006
32115
|
value: paymentMethod.id,
|
|
32007
32116
|
onChange: handlePaymentMethodSelect
|
|
32008
|
-
}, getPaymentCardIcon
|
|
32117
|
+
}, getPaymentCardIcon((_paymentMethod$proper = paymentMethod.properties) === null || _paymentMethod$proper === void 0 ? void 0 : _paymentMethod$proper.brand), /*#__PURE__*/React__default.createElement("div", {
|
|
32009
32118
|
className: "plc-flex plc-flex-col plc-text-lg pelcro-payment-method-details"
|
|
32010
32119
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
32011
32120
|
className: "plc-font-semibold"
|
|
@@ -32105,10 +32214,12 @@ const PaymentMethodSelectModal = ({
|
|
|
32105
32214
|
onClose: onClose,
|
|
32106
32215
|
id: "pelcro-payment-method-select-modal"
|
|
32107
32216
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
32108
|
-
className: "plc-text-
|
|
32217
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
32109
32218
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
32110
|
-
className: "plc-text-
|
|
32111
|
-
}, t("select.title")), /*#__PURE__*/React__default.createElement("p",
|
|
32219
|
+
className: "plc-text-xl plc-font-bold"
|
|
32220
|
+
}, t("select.title")), /*#__PURE__*/React__default.createElement("p", {
|
|
32221
|
+
className: "plc-text-sm"
|
|
32222
|
+
}, t("select.subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodSelectView, Object.assign({
|
|
32112
32223
|
onAddNewPaymentMethod: onAddNewPaymentMethod
|
|
32113
32224
|
}, otherProps, {
|
|
32114
32225
|
onSuccess: onSuccess
|
|
@@ -33464,12 +33575,12 @@ const Card = ({
|
|
|
33464
33575
|
}) => {
|
|
33465
33576
|
useTranslation("dashboard");
|
|
33466
33577
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33467
|
-
className: `plc-bg-white plc-border-2 plc-p-6 plc-rounded plc-my-11 md:plc-my-20 ${className}`,
|
|
33578
|
+
className: `plc-bg-white plc-border-2 plc-p-6 md:plc-p-8 plc-rounded plc-my-11 md:plc-my-20 ${className}`,
|
|
33468
33579
|
id: "plc-dashboard-card"
|
|
33469
33580
|
}, title && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
33470
33581
|
className: "plc-flex plc-items-end plc-justify-between"
|
|
33471
33582
|
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
33472
|
-
className: "plc-font-
|
|
33583
|
+
className: "plc-font-bold plc-text-xl"
|
|
33473
33584
|
}, title), (requestStates === null || requestStates === void 0 ? void 0 : requestStates.loading) && /*#__PURE__*/React__default.createElement("span", {
|
|
33474
33585
|
className: "plc-text-blue-500"
|
|
33475
33586
|
}, "Loading..."), (requestStates === null || requestStates === void 0 ? void 0 : requestStates.success) && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -34727,7 +34838,7 @@ const AddressesMenu = props => {
|
|
|
34727
34838
|
|
|
34728
34839
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
34729
34840
|
id: "pelcro-dashboard-addresses-menu",
|
|
34730
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
34841
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
34731
34842
|
title: t("labels.addresses"),
|
|
34732
34843
|
requestStates: requestStates
|
|
34733
34844
|
}, /*#__PURE__*/React__default.createElement(AddressesItems, {
|
|
@@ -34748,6 +34859,11 @@ const AddressesItems = props => {
|
|
|
34748
34859
|
} = useTranslation("dashboard");
|
|
34749
34860
|
const [selectedAddressId, setSelectedAddressId] = useState(null);
|
|
34750
34861
|
const allAddresses = (_window$Pelcro$user$r = window.Pelcro.user.read().addresses) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
34862
|
+
useEffect(() => {
|
|
34863
|
+
var _getDefaultAddress;
|
|
34864
|
+
|
|
34865
|
+
setSelectedAddressId(String((_getDefaultAddress = getDefaultAddress(addresses)) === null || _getDefaultAddress === void 0 ? void 0 : _getDefaultAddress.id));
|
|
34866
|
+
}, []);
|
|
34751
34867
|
|
|
34752
34868
|
const getDefaultAddress = addresses => {
|
|
34753
34869
|
return addresses.find(address => address.is_default) || false;
|
|
@@ -34761,11 +34877,6 @@ const AddressesItems = props => {
|
|
|
34761
34877
|
|
|
34762
34878
|
const addresses = moveDefaultAddressToStart(allAddresses);
|
|
34763
34879
|
if (addresses.length === 0) return null;
|
|
34764
|
-
useEffect(() => {
|
|
34765
|
-
var _getDefaultAddress;
|
|
34766
|
-
|
|
34767
|
-
setSelectedAddressId(String((_getDefaultAddress = getDefaultAddress(addresses)) === null || _getDefaultAddress === void 0 ? void 0 : _getDefaultAddress.id));
|
|
34768
|
-
}, []);
|
|
34769
34880
|
return addresses.map((address, index) => address.type === "shipping" && /*#__PURE__*/React__default.createElement("div", {
|
|
34770
34881
|
key: address.id,
|
|
34771
34882
|
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 ${selectedAddressId === String(address.id) && `plc-border-primary-400 plc-border-2`}`
|
|
@@ -34779,9 +34890,9 @@ const AddressesItems = props => {
|
|
|
34779
34890
|
className: "pelcro-address-line1 plc-text-sm plc-mt-2"
|
|
34780
34891
|
}, address.line1), /*#__PURE__*/React__default.createElement("p", {
|
|
34781
34892
|
className: "pelcro-address-country plc-text-sm"
|
|
34782
|
-
}, address.city, ", ", address.state_name, " ", address.postal_code, ", ", address.country_name), address.is_default && /*#__PURE__*/React__default.createElement("span", {
|
|
34783
|
-
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-
|
|
34784
|
-
}, t("labels.default"))
|
|
34893
|
+
}, address.city, ", ", address.state_name, " ", address.postal_code, ", ", address.country_name)), address.is_default && /*#__PURE__*/React__default.createElement("span", {
|
|
34894
|
+
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-mr-4"
|
|
34895
|
+
}, t("labels.default")), /*#__PURE__*/React__default.createElement(Button, {
|
|
34785
34896
|
variant: "icon",
|
|
34786
34897
|
className: "plc-text-gray-500",
|
|
34787
34898
|
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
@@ -34791,89 +34902,6 @@ const AddressesItems = props => {
|
|
|
34791
34902
|
})));
|
|
34792
34903
|
};
|
|
34793
34904
|
|
|
34794
|
-
const SUB_MENUS = {
|
|
34795
|
-
PROFILE: "profile",
|
|
34796
|
-
QRCODE: "qr-code",
|
|
34797
|
-
PASSWORDCHANGE: "passwordChange",
|
|
34798
|
-
SUBSCRIPTIONS: "subscriptions",
|
|
34799
|
-
DONATIONS: "donations",
|
|
34800
|
-
MEMBERSHIPS: "memberships",
|
|
34801
|
-
NEWSLETTERS: "Newsletters",
|
|
34802
|
-
PAYMENT_CARDS: "payment-cards",
|
|
34803
|
-
ADDRESSES: "addresses",
|
|
34804
|
-
GIFTS: "gifts",
|
|
34805
|
-
ORDERS: "orders",
|
|
34806
|
-
INVOICES: "invoices",
|
|
34807
|
-
LOGOUT: "logout",
|
|
34808
|
-
SAVED_ITEMS: "saved-items"
|
|
34809
|
-
};
|
|
34810
|
-
const getPaymentCardIcon = name => {
|
|
34811
|
-
var _icons$name$toLowerCa;
|
|
34812
|
-
|
|
34813
|
-
const icons = {
|
|
34814
|
-
visa: /*#__PURE__*/React__default.createElement("svg", {
|
|
34815
|
-
className: "plc-w-12",
|
|
34816
|
-
fill: "#000000",
|
|
34817
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34818
|
-
viewBox: "0 0 50 50"
|
|
34819
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
34820
|
-
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 29.6875 19.40625 C 26.585938 19.40625 25 20.933594 25 22.875 C 25 26.386719 29.0625 25.914063 29.0625 27.71875 C 29.0625 28.023438 28.828125 28.75 27.125 28.75 C 25.417969 28.75 24.3125 28.09375 24.3125 28.09375 L 23.78125 30.46875 C 23.78125 30.46875 24.886719 31.09375 27 31.09375 C 29.113281 31.09375 32.03125 29.476563 32.03125 27.125 C 32.03125 24.296875 27.96875 24.074219 27.96875 22.8125 C 27.96875 22.167969 28.46875 21.6875 29.9375 21.6875 C 30.890625 21.6875 31.96875 22.40625 31.96875 22.40625 L 32.46875 19.96875 C 32.46875 19.96875 31.050781 19.40625 29.6875 19.40625 Z M 16.46875 19.625 L 13.78125 27.5625 C 13.78125 27.5625 13.597656 26.886719 13.53125 26.46875 C 11.996094 23.023438 9.5 21.75 9.5 21.75 L 11.875 30.75 L 15.125 30.75 L 19.625 19.625 Z M 20.78125 19.625 L 19.03125 30.75 L 22 30.75 L 23.78125 19.625 Z M 36.8125 19.625 L 31.96875 30.75 L 34.90625 30.75 L 35.5 29.15625 L 39.1875 29.15625 L 39.5 30.75 L 42.1875 30.75 L 39.90625 19.625 Z M 6.25 19.65625 C 6.25 19.65625 12.054688 21.453125 13.40625 25.8125 L 12.40625 20.75 C 12.40625 20.75 11.976563 19.65625 10.8125 19.65625 Z M 37.9375 22.84375 L 38.75 27.03125 L 36.3125 27.03125 Z"
|
|
34821
|
-
})),
|
|
34822
|
-
mastercard: /*#__PURE__*/React__default.createElement("svg", {
|
|
34823
|
-
className: "plc-w-12",
|
|
34824
|
-
fill: "#000000",
|
|
34825
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34826
|
-
viewBox: "0 0 50 50"
|
|
34827
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
34828
|
-
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 17 13 C 10.382812 13 5 18.382812 5 25 C 5 31.617188 10.382812 37 17 37 C 20.078125 37 22.875 35.816406 25 33.90625 C 27.125 35.816406 29.925781 37 33 37 C 39.617188 37 45 31.617188 45 25 C 45 18.382812 39.617188 13 33 13 C 29.925781 13 27.125 14.183594 25 16.09375 C 22.875 14.183594 20.078125 13 17 13 Z M 33 15 C 38.535156 15 43 19.464844 43 25 C 43 30.535156 38.535156 35 33 35 C 30.449219 35 28.109375 34.066406 26.34375 32.5 C 27.996094 30.441406 29 27.839844 29 25 C 29 22.160156 27.996094 19.558594 26.34375 17.5 C 28.109375 15.933594 30.449219 15 33 15 Z M 33 15 "
|
|
34829
|
-
})),
|
|
34830
|
-
"american express": /*#__PURE__*/React__default.createElement("svg", {
|
|
34831
|
-
className: "plc-w-12",
|
|
34832
|
-
fill: "#000000",
|
|
34833
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34834
|
-
viewBox: "0 0 50 50"
|
|
34835
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
34836
|
-
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 8.5625 19.90625 L 4.84375 28.40625 L 7.0625 28.40625 L 7.875 26.5 L 12.0625 26.5 L 12.875 28.40625 L 17.09375 28.40625 L 17.09375 22.09375 L 19.90625 28.40625 L 21.8125 28.40625 L 24.65625 22.1875 L 24.65625 28.40625 L 26.75 28.40625 L 26.75 19.90625 L 23.40625 19.90625 L 20.84375 25.625 L 18.28125 19.90625 L 15 19.90625 L 15 28.09375 L 11.34375 19.90625 Z M 29.5 19.90625 L 29.5 28.4375 L 37.5 28.4375 L 40 25.59375 L 42.46875 28.4375 L 45.125 28.4375 L 41.375 24.0625 L 45.125 19.90625 L 42.46875 19.90625 L 40.0625 22.5625 L 37.75 19.90625 Z M 9.90625 21.6875 L 11.21875 24.6875 L 8.65625 24.6875 Z M 31.5625 21.71875 L 36.65625 21.75 L 38.6875 24.0625 L 36.40625 26.625 L 31.5625 26.625 L 31.5625 24.9375 L 36.1875 24.9375 L 36.1875 23.3125 L 31.5625 23.3125 Z"
|
|
34837
|
-
}))
|
|
34838
|
-
};
|
|
34839
|
-
return (_icons$name$toLowerCa = icons[name.toLowerCase()]) !== null && _icons$name$toLowerCa !== void 0 ? _icons$name$toLowerCa : /*#__PURE__*/React__default.createElement("svg", {
|
|
34840
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34841
|
-
className: "plc-w-12",
|
|
34842
|
-
fill: "none",
|
|
34843
|
-
viewBox: "0 0 24 24",
|
|
34844
|
-
stroke: "currentColor"
|
|
34845
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
34846
|
-
strokeLinecap: "round",
|
|
34847
|
-
strokeLinejoin: "round",
|
|
34848
|
-
strokeWidth: "1",
|
|
34849
|
-
d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
|
|
34850
|
-
}));
|
|
34851
|
-
};
|
|
34852
|
-
const hasInvoices = () => {
|
|
34853
|
-
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
34854
|
-
|
|
34855
|
-
const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
34856
|
-
return invoices.length > 0;
|
|
34857
|
-
};
|
|
34858
|
-
const showNewsletters = () => {
|
|
34859
|
-
var _ref, _window$Pelcro, _window$Pelcro$uiSett, _window$Pelcro$uiSett2;
|
|
34860
|
-
|
|
34861
|
-
const showNewslettersUiSettings = (_ref = ((_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$uiSett2 = _window$Pelcro$uiSett.newsletters) === null || _window$Pelcro$uiSett2 === void 0 ? void 0 : _window$Pelcro$uiSett2.length) > 0) !== null && _ref !== void 0 ? _ref : false;
|
|
34862
|
-
return showNewslettersUiSettings;
|
|
34863
|
-
};
|
|
34864
|
-
const hasDonationSubs = () => {
|
|
34865
|
-
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
34866
|
-
|
|
34867
|
-
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
34868
|
-
const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
34869
|
-
return donations.length > 0 || canceledDonations.length > 0;
|
|
34870
|
-
};
|
|
34871
|
-
const hasActiveMemberships = () => {
|
|
34872
|
-
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
34873
|
-
|
|
34874
|
-
return (_window$Pelcro$user$r3 = (_window$Pelcro$user$r4 = window.Pelcro.user.read().memberships) === null || _window$Pelcro$user$r4 === void 0 ? void 0 : _window$Pelcro$user$r4.some(membership => membership.status === "active" && membership.subscription.ended_at === null)) !== null && _window$Pelcro$user$r3 !== void 0 ? _window$Pelcro$user$r3 : false;
|
|
34875
|
-
};
|
|
34876
|
-
|
|
34877
34905
|
const PaymentCardsMenu = props => {
|
|
34878
34906
|
const {
|
|
34879
34907
|
t
|
|
@@ -34889,7 +34917,7 @@ const PaymentCardsMenu = props => {
|
|
|
34889
34917
|
|
|
34890
34918
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
34891
34919
|
id: "pelcro-dashboard-payment-menu",
|
|
34892
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
34920
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
34893
34921
|
title: t("labels.paymentSource")
|
|
34894
34922
|
}, source ? /*#__PURE__*/React__default.createElement(PaymentCardsItems, {
|
|
34895
34923
|
displaySourceCreate: displaySourceCreate,
|
|
@@ -34905,7 +34933,7 @@ const PaymentCardsItems = props => {
|
|
|
34905
34933
|
|
|
34906
34934
|
useTranslation("dashboard");
|
|
34907
34935
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
34908
|
-
className: `plc-py-
|
|
34936
|
+
className: `plc-py-4 plc-px-6 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`
|
|
34909
34937
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
34910
34938
|
className: "plc-flex plc-items-center"
|
|
34911
34939
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -36321,7 +36349,7 @@ const QRCodeMenu = props => {
|
|
|
36321
36349
|
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`;
|
|
36322
36350
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
36323
36351
|
id: "pelcro-dashboard-donation-menu",
|
|
36324
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
36352
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
36325
36353
|
title: t("title")
|
|
36326
36354
|
}, /*#__PURE__*/React__default.createElement(QRCode, {
|
|
36327
36355
|
style: {
|
|
@@ -36345,7 +36373,7 @@ const ProfileMenu = props => {
|
|
|
36345
36373
|
|
|
36346
36374
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
36347
36375
|
id: "pelcro-dashboard-profile-menu",
|
|
36348
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
36376
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
36349
36377
|
title: t("labels.profile")
|
|
36350
36378
|
}, /*#__PURE__*/React__default.createElement(UserUpdateView, {
|
|
36351
36379
|
onPictureClick: onPictureClick
|
|
@@ -36467,7 +36495,7 @@ const NewslettersMenu = props => {
|
|
|
36467
36495
|
}, []);
|
|
36468
36496
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
36469
36497
|
id: "pelcro-dashboard-newsletters-menu",
|
|
36470
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
36498
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
36471
36499
|
title: t("labels.Newsletters"),
|
|
36472
36500
|
requestStates: requestStates
|
|
36473
36501
|
}, /*#__PURE__*/React__default.createElement(NewsLettersItems, {
|
|
@@ -36508,11 +36536,52 @@ const PasswordChangeMenu = () => {
|
|
|
36508
36536
|
} = useTranslation("dashboard");
|
|
36509
36537
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
36510
36538
|
id: "pelcro-dashboard-profile-menu",
|
|
36511
|
-
className: "plc-max-w-100% md:plc-max-w-
|
|
36539
|
+
className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
|
|
36512
36540
|
title: t("labels.changePassword")
|
|
36513
36541
|
}, /*#__PURE__*/React__default.createElement(PasswordChangeView, null));
|
|
36514
36542
|
};
|
|
36515
36543
|
|
|
36544
|
+
const SUB_MENUS = {
|
|
36545
|
+
PROFILE: "profile",
|
|
36546
|
+
QRCODE: "qr-code",
|
|
36547
|
+
PASSWORDCHANGE: "passwordChange",
|
|
36548
|
+
SUBSCRIPTIONS: "subscriptions",
|
|
36549
|
+
DONATIONS: "donations",
|
|
36550
|
+
MEMBERSHIPS: "memberships",
|
|
36551
|
+
NEWSLETTERS: "Newsletters",
|
|
36552
|
+
PAYMENT_CARDS: "payment-cards",
|
|
36553
|
+
ADDRESSES: "addresses",
|
|
36554
|
+
GIFTS: "gifts",
|
|
36555
|
+
ORDERS: "orders",
|
|
36556
|
+
INVOICES: "invoices",
|
|
36557
|
+
LOGOUT: "logout",
|
|
36558
|
+
SAVED_ITEMS: "saved-items"
|
|
36559
|
+
};
|
|
36560
|
+
const hasInvoices = () => {
|
|
36561
|
+
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
36562
|
+
|
|
36563
|
+
const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
36564
|
+
return invoices.length > 0;
|
|
36565
|
+
};
|
|
36566
|
+
const showNewsletters = () => {
|
|
36567
|
+
var _ref, _window$Pelcro, _window$Pelcro$uiSett, _window$Pelcro$uiSett2;
|
|
36568
|
+
|
|
36569
|
+
const showNewslettersUiSettings = (_ref = ((_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$uiSett2 = _window$Pelcro$uiSett.newsletters) === null || _window$Pelcro$uiSett2 === void 0 ? void 0 : _window$Pelcro$uiSett2.length) > 0) !== null && _ref !== void 0 ? _ref : false;
|
|
36570
|
+
return showNewslettersUiSettings;
|
|
36571
|
+
};
|
|
36572
|
+
const hasDonationSubs = () => {
|
|
36573
|
+
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
36574
|
+
|
|
36575
|
+
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
36576
|
+
const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
36577
|
+
return donations.length > 0 || canceledDonations.length > 0;
|
|
36578
|
+
};
|
|
36579
|
+
const hasActiveMemberships = () => {
|
|
36580
|
+
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
36581
|
+
|
|
36582
|
+
return (_window$Pelcro$user$r3 = (_window$Pelcro$user$r4 = window.Pelcro.user.read().memberships) === null || _window$Pelcro$user$r4 === void 0 ? void 0 : _window$Pelcro$user$r4.some(membership => membership.status === "active" && membership.subscription.ended_at === null)) !== null && _window$Pelcro$user$r3 !== void 0 ? _window$Pelcro$user$r3 : false;
|
|
36583
|
+
};
|
|
36584
|
+
|
|
36516
36585
|
const DashboardContent = props => {
|
|
36517
36586
|
var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett, _props$children;
|
|
36518
36587
|
|
|
@@ -39259,10 +39328,12 @@ function ProfilePicChangeModal({
|
|
|
39259
39328
|
onDisplay: onDisplay,
|
|
39260
39329
|
onClose: onClose
|
|
39261
39330
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39262
|
-
className: "plc-text-
|
|
39331
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39263
39332
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39264
|
-
className: "plc-text-
|
|
39265
|
-
}, t("labels.cropperTitle")), /*#__PURE__*/React__default.createElement("p",
|
|
39333
|
+
className: "plc-text-xl plc-font-bold"
|
|
39334
|
+
}, t("labels.cropperTitle")), /*#__PURE__*/React__default.createElement("p", {
|
|
39335
|
+
className: "plc-text-sm"
|
|
39336
|
+
}, t("labels.cropperSubtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(ProfilePicChangeView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
39266
39337
|
}
|
|
39267
39338
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
39268
39339
|
|
|
@@ -39447,9 +39518,9 @@ const EmailVerifyModal = ({
|
|
|
39447
39518
|
onClose: onClose,
|
|
39448
39519
|
id: "pelcro-email-verify-modal"
|
|
39449
39520
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39450
|
-
className: "plc-text-
|
|
39521
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39451
39522
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39452
|
-
className: "plc-text-
|
|
39523
|
+
className: "plc-text-xl plc-font-bold"
|
|
39453
39524
|
}, t("labels.title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, Object.assign({
|
|
39454
39525
|
onSuccess: onSuccess
|
|
39455
39526
|
}, otherProps))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -39602,9 +39673,9 @@ function VerifyLinkTokenModal({
|
|
|
39602
39673
|
onDisplay: onDisplay,
|
|
39603
39674
|
onClose: onClose
|
|
39604
39675
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39605
|
-
className: "plc-text-
|
|
39676
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39606
39677
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39607
|
-
className: "plc-text-
|
|
39678
|
+
className: "plc-text-xl plc-font-bold"
|
|
39608
39679
|
}, t("labels.title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(VerifyLinkTokenView, Object.assign({}, props, {
|
|
39609
39680
|
onSuccess: onSuccess
|
|
39610
39681
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -39653,9 +39724,9 @@ const InvoicePaymentModal = ({
|
|
|
39653
39724
|
onDisplay: onDisplay,
|
|
39654
39725
|
onClose: onClose
|
|
39655
39726
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39656
|
-
className: "plc-text-
|
|
39727
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39657
39728
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39658
|
-
className: "plc-text-
|
|
39729
|
+
className: "plc-text-xl plc-font-bold"
|
|
39659
39730
|
}, t("labels.checkout.title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(InvoicePaymentView, Object.assign({}, otherProps, {
|
|
39660
39731
|
onSuccess: onSuccess
|
|
39661
39732
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -39838,9 +39909,9 @@ const InvoiceDetailsModal = ({
|
|
|
39838
39909
|
onClose: onClose,
|
|
39839
39910
|
id: "pelcro-invoice-details-modal"
|
|
39840
39911
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39841
|
-
className: "plc-text-
|
|
39912
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39842
39913
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39843
|
-
className: "plc-text-
|
|
39914
|
+
className: "plc-text-xl plc-font-bold"
|
|
39844
39915
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(InvoiceDetailsView, Object.assign({}, otherProps, {
|
|
39845
39916
|
onSuccess: onSuccess
|
|
39846
39917
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
@@ -39873,9 +39944,9 @@ const QrCodeModal = ({
|
|
|
39873
39944
|
onDisplay: onDisplay,
|
|
39874
39945
|
onClose: onClose
|
|
39875
39946
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
39876
|
-
className: "plc-text-
|
|
39947
|
+
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
39877
39948
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
39878
|
-
className: "plc-text-
|
|
39949
|
+
className: "plc-text-xl plc-font-bold"
|
|
39879
39950
|
}, t("title")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(QrCodeView, null)), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
39880
39951
|
};
|
|
39881
39952
|
QrCodeModal.viewId = "qrcode";
|