@pisell/private-materials 6.2.41 → 6.2.44
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +13 -29
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +12 -8
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/editBookingModal/index.js +3 -4
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +16 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/index.less +5 -22
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +4 -0
- package/es/plus/saasCreateOrganization/components/Header.js +62 -0
- package/es/plus/saasCreateOrganization/index.d.ts +5 -0
- package/es/plus/saasCreateOrganization/index.js +15 -0
- package/es/plus/saasCreateOrganization/index.less +55 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/es/plus/saasCreateOrganization/locales.js +14 -0
- package/es/plus/saasCreateOrganization/types.d.ts +69 -0
- package/es/plus/saasCreateOrganization/types.js +1 -0
- package/es/plus/saasLogin/index.d.ts +5 -0
- package/es/plus/saasLogin/index.js +165 -0
- package/es/plus/saasLogin/index.less +136 -0
- package/es/plus/saasLogin/locales.d.ts +51 -0
- package/es/plus/saasLogin/locales.js +50 -0
- package/es/plus/saasLogin/types.d.ts +62 -0
- package/es/plus/saasLogin/types.js +1 -0
- package/es/plus/saasLogin/utils.d.ts +35 -0
- package/es/plus/saasLogin/utils.js +31 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +10 -0
- package/es/plus/saasRegister/components/EntryEmail.js +92 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +10 -0
- package/es/plus/saasRegister/components/EntryInfo.js +145 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +5 -0
- package/es/plus/saasRegister/components/GoLogin.js +27 -0
- package/es/plus/saasRegister/components/Header.d.ts +4 -0
- package/es/plus/saasRegister/components/Header.js +62 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +9 -0
- package/es/plus/saasRegister/components/VerifyError.js +68 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
- package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
- package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
- package/es/plus/saasRegister/index.d.ts +5 -0
- package/es/plus/saasRegister/index.js +246 -0
- package/es/plus/saasRegister/index.less +218 -0
- package/es/plus/saasRegister/locales.d.ts +117 -0
- package/es/plus/saasRegister/locales.js +116 -0
- package/es/plus/saasRegister/types.d.ts +114 -0
- package/es/plus/saasRegister/types.js +24 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +1 -11
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/editBookingModal/index.js +3 -4
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +15 -3
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/index.less +5 -22
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +5 -0
- package/lib/plus/saasCreateOrganization/index.js +47 -0
- package/lib/plus/saasCreateOrganization/index.less +55 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/lib/plus/saasCreateOrganization/locales.js +38 -0
- package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
- package/lib/plus/saasCreateOrganization/types.js +17 -0
- package/lib/plus/saasLogin/index.d.ts +5 -0
- package/lib/plus/saasLogin/index.js +171 -0
- package/lib/plus/saasLogin/index.less +136 -0
- package/lib/plus/saasLogin/locales.d.ts +51 -0
- package/lib/plus/saasLogin/locales.js +74 -0
- package/lib/plus/saasLogin/types.d.ts +62 -0
- package/lib/plus/saasLogin/types.js +17 -0
- package/lib/plus/saasLogin/utils.d.ts +35 -0
- package/lib/plus/saasLogin/utils.js +50 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +10 -0
- package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +10 -0
- package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +5 -0
- package/lib/plus/saasRegister/components/GoLogin.js +58 -0
- package/lib/plus/saasRegister/components/Header.d.ts +4 -0
- package/lib/plus/saasRegister/components/Header.js +99 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +9 -0
- package/lib/plus/saasRegister/components/VerifyError.js +123 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
- package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
- package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
- package/lib/plus/saasRegister/index.d.ts +5 -0
- package/lib/plus/saasRegister/index.js +205 -0
- package/lib/plus/saasRegister/index.less +218 -0
- package/lib/plus/saasRegister/locales.d.ts +117 -0
- package/lib/plus/saasRegister/locales.js +140 -0
- package/lib/plus/saasRegister/types.d.ts +114 -0
- package/lib/plus/saasRegister/types.js +54 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/saas-create-organization/meta.ts +214 -0
- package/lowcode/saas-create-organization/snippets.ts +25 -0
- package/lowcode/saas-login/meta.ts +370 -0
- package/lowcode/saas-login/snippets.ts +38 -0
- package/lowcode/saas-register/meta.ts +386 -0
- package/lowcode/saas-register/snippets.ts +31 -0
- package/package.json +3 -3
@@ -0,0 +1,92 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/EntryEmail.tsx
|
30
|
+
var EntryEmail_exports = {};
|
31
|
+
__export(EntryEmail_exports, {
|
32
|
+
default: () => EntryEmail_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(EntryEmail_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import_antd = require("antd");
|
38
|
+
var import__ = require("../index.less");
|
39
|
+
var EntryEmail = (props) => {
|
40
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
41
|
+
const {
|
42
|
+
emailLabel = import_utils.locales.getText("pisell-saas-register-email-label"),
|
43
|
+
emailPlaceholder = import_utils.locales.getText(
|
44
|
+
"pisell-saas-register-email-placeholder"
|
45
|
+
),
|
46
|
+
onVerifyEmail,
|
47
|
+
buttonText = import_utils.locales.getText("pisell-saas-register-button"),
|
48
|
+
form
|
49
|
+
} = props;
|
50
|
+
const emailRules = [
|
51
|
+
{
|
52
|
+
required: true,
|
53
|
+
message: import_utils.locales.getText("pisell-saas-register-email-error")
|
54
|
+
},
|
55
|
+
{
|
56
|
+
type: "email",
|
57
|
+
message: import_utils.locales.getText("pisell-saas-register-email-error-valid")
|
58
|
+
}
|
59
|
+
];
|
60
|
+
const _onClick = async () => {
|
61
|
+
try {
|
62
|
+
setLoading(true);
|
63
|
+
const values = await form.validateFields();
|
64
|
+
const result = await (onVerifyEmail == null ? void 0 : onVerifyEmail(values.email));
|
65
|
+
props.handleVerifyEmail(!!result);
|
66
|
+
} catch (error) {
|
67
|
+
console.error("handleVerifyEmail failed:", error);
|
68
|
+
} finally {
|
69
|
+
setLoading(false);
|
70
|
+
}
|
71
|
+
};
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, emailLabel), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "email", rules: emailRules }, /* @__PURE__ */ import_react.default.createElement(
|
73
|
+
import_antd.Input,
|
74
|
+
{
|
75
|
+
placeholder: emailPlaceholder,
|
76
|
+
size: "large",
|
77
|
+
className: "pisell-saas-register-input"
|
78
|
+
}
|
79
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
80
|
+
import_antd.Button,
|
81
|
+
{
|
82
|
+
type: "primary",
|
83
|
+
block: true,
|
84
|
+
size: "large",
|
85
|
+
loading,
|
86
|
+
className: "pisell-saas-register-button",
|
87
|
+
onClick: _onClick
|
88
|
+
},
|
89
|
+
buttonText
|
90
|
+
));
|
91
|
+
};
|
92
|
+
var EntryEmail_default = EntryEmail;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormInstance } from 'antd';
|
3
|
+
import { SRProps } from '../types';
|
4
|
+
import '../index.less';
|
5
|
+
interface IProps extends SRProps {
|
6
|
+
form: FormInstance;
|
7
|
+
emailToken?: string;
|
8
|
+
}
|
9
|
+
declare const EntryInfo: (props: IProps) => JSX.Element;
|
10
|
+
export default EntryInfo;
|
@@ -0,0 +1,128 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/EntryInfo.tsx
|
30
|
+
var EntryInfo_exports = {};
|
31
|
+
__export(EntryInfo_exports, {
|
32
|
+
default: () => EntryInfo_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(EntryInfo_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_antd = require("antd");
|
37
|
+
var import_utils = require("@pisell/utils");
|
38
|
+
var import__ = require("../index.less");
|
39
|
+
var EntryInfo = (props) => {
|
40
|
+
const {
|
41
|
+
passwordLabel = import_utils.locales.getText("pisell-saas-register-password-label"),
|
42
|
+
passwordPlaceholder = import_utils.locales.getText(
|
43
|
+
"pisell-saas-register-password-placeholder"
|
44
|
+
),
|
45
|
+
showDivider = true,
|
46
|
+
dividerText = import_utils.locales.getText("pisell-saas-register-divider-text"),
|
47
|
+
showFirstName = true,
|
48
|
+
showLastName = true,
|
49
|
+
form
|
50
|
+
} = props;
|
51
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
52
|
+
const _handleEntryInfo = async () => {
|
53
|
+
var _a;
|
54
|
+
if (loading) {
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
setLoading(true);
|
58
|
+
try {
|
59
|
+
const values = await form.validateFields() || {};
|
60
|
+
await ((_a = props == null ? void 0 : props.onEntryInfo) == null ? void 0 : _a.call(props, { ...values, token: props.emailToken }));
|
61
|
+
} catch (error) {
|
62
|
+
console.error("handleEntryInfo_failed:", error);
|
63
|
+
} finally {
|
64
|
+
setLoading(false);
|
65
|
+
}
|
66
|
+
};
|
67
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
68
|
+
"div",
|
69
|
+
{
|
70
|
+
className: "pisell-saas-register-form-email",
|
71
|
+
style: { marginTop: "12px" }
|
72
|
+
},
|
73
|
+
form.getFieldValue("email")
|
74
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, passwordLabel), /* @__PURE__ */ import_react.default.createElement(
|
75
|
+
import_antd.Form.Item,
|
76
|
+
{
|
77
|
+
name: "password",
|
78
|
+
rules: [
|
79
|
+
{
|
80
|
+
required: true,
|
81
|
+
message: import_utils.locales.getText(
|
82
|
+
"pisell-saas-register-password-required"
|
83
|
+
)
|
84
|
+
}
|
85
|
+
]
|
86
|
+
},
|
87
|
+
/* @__PURE__ */ import_react.default.createElement(
|
88
|
+
import_antd.Input.Password,
|
89
|
+
{
|
90
|
+
placeholder: passwordPlaceholder,
|
91
|
+
size: "large",
|
92
|
+
className: "pisell-saas-register-input"
|
93
|
+
}
|
94
|
+
)
|
95
|
+
), showDivider && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-divider" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-divider-text" }, dividerText)), /* @__PURE__ */ import_react.default.createElement("div", null, showFirstName && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, import_utils.locales.getText("pisell-saas-register-first-name-label")), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "firstName", rules: [{ required: false }] }, /* @__PURE__ */ import_react.default.createElement(
|
96
|
+
import_antd.Input,
|
97
|
+
{
|
98
|
+
placeholder: import_utils.locales.getText(
|
99
|
+
"pisell-saas-register-first-name-placeholder"
|
100
|
+
),
|
101
|
+
size: "large",
|
102
|
+
className: "pisell-saas-register-input",
|
103
|
+
maxLength: 50
|
104
|
+
}
|
105
|
+
))), showLastName && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, import_utils.locales.getText("pisell-saas-register-last-name-label")), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "lastName", rules: [{ required: false }] }, /* @__PURE__ */ import_react.default.createElement(
|
106
|
+
import_antd.Input,
|
107
|
+
{
|
108
|
+
placeholder: import_utils.locales.getText(
|
109
|
+
"pisell-saas-register-last-name-placeholder"
|
110
|
+
),
|
111
|
+
size: "large",
|
112
|
+
className: "pisell-saas-register-input",
|
113
|
+
maxLength: 50
|
114
|
+
}
|
115
|
+
))), /* @__PURE__ */ import_react.default.createElement(
|
116
|
+
import_antd.Button,
|
117
|
+
{
|
118
|
+
type: "primary",
|
119
|
+
block: true,
|
120
|
+
size: "large",
|
121
|
+
className: "pisell-saas-register-button",
|
122
|
+
loading,
|
123
|
+
onClick: _handleEntryInfo
|
124
|
+
},
|
125
|
+
import_utils.locales.getText("pisell-saas-register-button")
|
126
|
+
))));
|
127
|
+
};
|
128
|
+
var EntryInfo_default = EntryInfo;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/GoLogin.tsx
|
30
|
+
var GoLogin_exports = {};
|
31
|
+
__export(GoLogin_exports, {
|
32
|
+
default: () => GoLogin_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(GoLogin_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import__ = require("../index.less");
|
38
|
+
var GoLogin = (props) => {
|
39
|
+
const {
|
40
|
+
showLogin = true,
|
41
|
+
loginAlign = "center",
|
42
|
+
showLoginText = true,
|
43
|
+
loginText = import_utils.locales.getText("pisell-saas-register-login-text"),
|
44
|
+
loginLinkText = import_utils.locales.getText("pisell-saas-register-login-link-text"),
|
45
|
+
showLoginLinkText = true,
|
46
|
+
onGoLogin
|
47
|
+
} = props;
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showLogin && /* @__PURE__ */ import_react.default.createElement(
|
49
|
+
"p",
|
50
|
+
{
|
51
|
+
className: "pisell-saas-register-action",
|
52
|
+
style: { textAlign: loginAlign }
|
53
|
+
},
|
54
|
+
showLoginText ? loginText : "",
|
55
|
+
showLoginLinkText && /* @__PURE__ */ import_react.default.createElement("a", { onClick: onGoLogin }, loginLinkText || "")
|
56
|
+
));
|
57
|
+
};
|
58
|
+
var GoLogin_default = GoLogin;
|
@@ -0,0 +1,99 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/Header.tsx
|
30
|
+
var Header_exports = {};
|
31
|
+
__export(Header_exports, {
|
32
|
+
Header: () => Header
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(Header_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import__ = require("../index.less");
|
38
|
+
var Header = (props) => {
|
39
|
+
const {
|
40
|
+
showLogo = true,
|
41
|
+
logo = "",
|
42
|
+
logoSize = { width: 48, height: 48 },
|
43
|
+
logoPosition = "center",
|
44
|
+
showWelcomeMessage = true,
|
45
|
+
welcomeMessage = import_utils.locales.getText("pisell-saas-register-welcome-message"),
|
46
|
+
welcomeMessageAlign = "center",
|
47
|
+
showTitle = true,
|
48
|
+
title = import_utils.locales.getText("pisell-saas-register-title"),
|
49
|
+
titleAlign = "center",
|
50
|
+
showSubtitle = true,
|
51
|
+
subtitle = import_utils.locales.getText("pisell-saas-register-subtitle"),
|
52
|
+
subtitleAlign = "center"
|
53
|
+
} = props;
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showLogo && /* @__PURE__ */ import_react.default.createElement(
|
55
|
+
"div",
|
56
|
+
{
|
57
|
+
className: `pisell-saas-register-logo ${logoPosition}`,
|
58
|
+
style: {
|
59
|
+
width: logoSize.width,
|
60
|
+
height: logoSize.height
|
61
|
+
}
|
62
|
+
},
|
63
|
+
logo && /* @__PURE__ */ import_react.default.createElement(
|
64
|
+
"img",
|
65
|
+
{
|
66
|
+
src: logo,
|
67
|
+
alt: "logo",
|
68
|
+
style: {
|
69
|
+
height: (logoSize == null ? void 0 : logoSize.height) || 48
|
70
|
+
}
|
71
|
+
}
|
72
|
+
)
|
73
|
+
), showWelcomeMessage && /* @__PURE__ */ import_react.default.createElement(
|
74
|
+
"h1",
|
75
|
+
{
|
76
|
+
className: "pisell-saas-register-welcome-message",
|
77
|
+
style: { textAlign: welcomeMessageAlign }
|
78
|
+
},
|
79
|
+
welcomeMessage || ""
|
80
|
+
), showTitle && /* @__PURE__ */ import_react.default.createElement(
|
81
|
+
"h1",
|
82
|
+
{
|
83
|
+
className: "pisell-saas-register-title",
|
84
|
+
style: { textAlign: titleAlign }
|
85
|
+
},
|
86
|
+
title || ""
|
87
|
+
), showSubtitle && /* @__PURE__ */ import_react.default.createElement(
|
88
|
+
"div",
|
89
|
+
{
|
90
|
+
className: "pisell-saas-register-subtitle",
|
91
|
+
style: { textAlign: subtitleAlign }
|
92
|
+
},
|
93
|
+
subtitle || ""
|
94
|
+
));
|
95
|
+
};
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
97
|
+
0 && (module.exports = {
|
98
|
+
Header
|
99
|
+
});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SRStepStatus } from '../types';
|
3
|
+
import '../index.less';
|
4
|
+
declare const VerifyError: (props: {
|
5
|
+
status?: SRStepStatus;
|
6
|
+
onBackToRegister?: () => void;
|
7
|
+
onGoLogin?: () => void;
|
8
|
+
}) => JSX.Element | null;
|
9
|
+
export default VerifyError;
|
@@ -0,0 +1,123 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/VerifyError.tsx
|
30
|
+
var VerifyError_exports = {};
|
31
|
+
__export(VerifyError_exports, {
|
32
|
+
default: () => VerifyError_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(VerifyError_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import_antd = require("antd");
|
38
|
+
var import_GoLogin = __toESM(require("./GoLogin"));
|
39
|
+
var import_types = require("../types");
|
40
|
+
var import__ = require("../index.less");
|
41
|
+
var VerifyErrorContent = (props) => {
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form-main" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form-title" }, props.title), props.subtitle ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form-subtitle" }, props.subtitle) : null), /* @__PURE__ */ import_react.default.createElement(
|
43
|
+
import_antd.Button,
|
44
|
+
{
|
45
|
+
type: "primary",
|
46
|
+
block: true,
|
47
|
+
size: "large",
|
48
|
+
className: "pisell-saas-register-button margin-top-32",
|
49
|
+
onClick: props.onClick
|
50
|
+
},
|
51
|
+
props.buttonText
|
52
|
+
), props.showGoLogin ? /* @__PURE__ */ import_react.default.createElement(import_GoLogin.default, { onGoLogin: props.onGoLogin }) : null);
|
53
|
+
};
|
54
|
+
var VerifyError = (props) => {
|
55
|
+
const { status, onBackToRegister } = props;
|
56
|
+
if (status === import_types.SRStepStatus.FAILED_EMAIL_REGISTERED) {
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
58
|
+
VerifyErrorContent,
|
59
|
+
{
|
60
|
+
title: import_utils.locales.getText(
|
61
|
+
"pisell-saas-register-failed-email-registered-title"
|
62
|
+
),
|
63
|
+
buttonText: import_utils.locales.getText("pisell-saas-register-failed-button-text"),
|
64
|
+
onClick: onBackToRegister,
|
65
|
+
showGoLogin: true,
|
66
|
+
onGoLogin: props.onGoLogin
|
67
|
+
}
|
68
|
+
);
|
69
|
+
}
|
70
|
+
if (status === import_types.SRStepStatus.FAILED_LINK_EXPIRED) {
|
71
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
72
|
+
VerifyErrorContent,
|
73
|
+
{
|
74
|
+
title: import_utils.locales.getText(
|
75
|
+
"pisell-saas-register-failed-link-expired-title"
|
76
|
+
),
|
77
|
+
subtitle: import_utils.locales.getText(
|
78
|
+
"pisell-saas-register-failed-link-expired-subtitle"
|
79
|
+
),
|
80
|
+
buttonText: import_utils.locales.getText("pisell-saas-register-failed-button-text"),
|
81
|
+
onClick: onBackToRegister,
|
82
|
+
showGoLogin: true,
|
83
|
+
onGoLogin: props.onGoLogin
|
84
|
+
}
|
85
|
+
);
|
86
|
+
}
|
87
|
+
if (status === import_types.SRStepStatus.FAILED_LINK_EMAIL_REGISTERED) {
|
88
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
89
|
+
VerifyErrorContent,
|
90
|
+
{
|
91
|
+
title: import_utils.locales.getText(
|
92
|
+
"pisell-saas-register-failed-link-email-registered-title"
|
93
|
+
),
|
94
|
+
subtitle: import_utils.locales.getText(
|
95
|
+
"pisell-saas-register-failed-link-email-registered-subtitle"
|
96
|
+
),
|
97
|
+
buttonText: import_utils.locales.getText(
|
98
|
+
"pisell-saas-register-failed-link-email-registered-button-text"
|
99
|
+
),
|
100
|
+
onClick: props.onGoLogin
|
101
|
+
}
|
102
|
+
);
|
103
|
+
}
|
104
|
+
if (status === import_types.SRStepStatus.FAILED_LINK_INVALID) {
|
105
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
106
|
+
VerifyErrorContent,
|
107
|
+
{
|
108
|
+
title: import_utils.locales.getText(
|
109
|
+
"pisell-saas-register-failed-link-invalid-title"
|
110
|
+
),
|
111
|
+
subtitle: import_utils.locales.getText(
|
112
|
+
"pisell-saas-register-failed-link-invalid-subtitle"
|
113
|
+
),
|
114
|
+
buttonText: import_utils.locales.getText("pisell-saas-register-failed-button-text"),
|
115
|
+
onClick: onBackToRegister,
|
116
|
+
showGoLogin: true,
|
117
|
+
onGoLogin: props.onGoLogin
|
118
|
+
}
|
119
|
+
);
|
120
|
+
}
|
121
|
+
return null;
|
122
|
+
};
|
123
|
+
var VerifyError_default = VerifyError;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/plus/saasRegister/components/VerifyingLink.tsx
|
30
|
+
var VerifyingLink_exports = {};
|
31
|
+
__export(VerifyingLink_exports, {
|
32
|
+
default: () => VerifyingLink_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(VerifyingLink_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import__ = require("../index.less");
|
38
|
+
var VerifyingEmailLink = (props) => {
|
39
|
+
(0, import_react.useEffect)(() => {
|
40
|
+
props.onVerifyLink();
|
41
|
+
}, []);
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form-main" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form-title" }, import_utils.locales.getText("pisell-saas-register-verifying-email-title"))));
|
43
|
+
};
|
44
|
+
var VerifyingLink_default = VerifyingEmailLink;
|