@pisell/private-materials 3.2.17 → 3.2.18
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 +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +19 -10
- package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +10 -20
- package/es/components/appointmentBooking/components/Cart/Item/index.js +73 -0
- package/es/components/appointmentBooking/components/Content/index.js +29 -15
- package/es/components/appointmentBooking/components/Date/index.js +77 -12
- package/es/components/appointmentBooking/components/Date/index.less +1 -0
- package/es/components/appointmentBooking/components/Footer/index.js +3 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +50 -59
- package/es/components/appointmentBooking/components/Header/index.js +6 -4
- package/es/components/appointmentBooking/components/Resource/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Resource/index.js +62 -29
- package/es/components/appointmentBooking/components/Resource/index.less +6 -0
- package/es/components/appointmentBooking/components/Services/index.js +25 -135
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +44 -755
- package/es/components/appointmentBooking/context.d.ts +23 -0
- package/es/components/appointmentBooking/context.js +71 -0
- package/es/components/appointmentBooking/hooks.d.ts +6 -8
- package/es/components/appointmentBooking/hooks.js +119 -62
- package/es/components/appointmentBooking/index.js +2 -3
- package/es/components/appointmentBooking/locales.d.ts +12 -0
- package/es/components/appointmentBooking/locales.js +21 -3
- package/es/components/appointmentBooking/utils.d.ts +12 -0
- package/es/components/appointmentBooking/utils.js +70 -0
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +18 -16
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +7 -11
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.js +22 -21
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +1 -1
- package/lib/components/appointmentBooking/components/Content/index.js +26 -14
- package/lib/components/appointmentBooking/components/Date/index.js +53 -16
- package/lib/components/appointmentBooking/components/Date/index.less +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.js +3 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +43 -52
- package/lib/components/appointmentBooking/components/Header/index.js +2 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Resource/index.js +55 -41
- package/lib/components/appointmentBooking/components/Resource/index.less +6 -0
- package/lib/components/appointmentBooking/components/Services/index.js +15 -155
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +17 -941
- package/lib/components/appointmentBooking/context.d.ts +23 -0
- package/lib/components/appointmentBooking/context.js +85 -0
- package/lib/components/appointmentBooking/hooks.d.ts +6 -8
- package/lib/components/appointmentBooking/hooks.js +44 -20
- package/lib/components/appointmentBooking/index.js +2 -5
- package/lib/components/appointmentBooking/locales.d.ts +12 -0
- package/lib/components/appointmentBooking/locales.js +15 -3
- package/lib/components/appointmentBooking/utils.d.ts +12 -0
- package/lib/components/appointmentBooking/utils.js +62 -2
- package/package.json +2 -2
- package/es/components/appointmentBooking/components/Information/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Information/index.js +0 -178
- package/es/components/appointmentBooking/components/Provider/Cart/Item/index.js +0 -68
- package/es/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Content/index.js +0 -64
- package/es/components/appointmentBooking/components/Provider/Content/index.less +0 -31
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Event/index.js +0 -93
- package/es/components/appointmentBooking/components/Provider/Event/index.less +0 -20
- package/es/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Information/index.js +0 -151
- package/lib/components/appointmentBooking/components/Information/index.less +0 -92
- package/lib/components/appointmentBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/appointmentBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/appointmentBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Information → Guest}/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
- /package/{es/components/eventBooking/components/Provider → lib/components/appointmentBooking/components}/Cart/Item/index.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
- /package/{es/components/appointmentBooking/components/Provider/Information → lib/components/appointmentBooking/components/Guest}/index.less +0 -0
package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/InformationOptionsModal/index.tsx
|
|
30
|
-
var InformationOptionsModal_exports = {};
|
|
31
|
-
__export(InformationOptionsModal_exports, {
|
|
32
|
-
default: () => InformationOptionsModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(InformationOptionsModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_index = require("./index.less");
|
|
38
|
-
var InformationOptionsModal = (props) => {
|
|
39
|
-
const { open, onCancel, options, onClick } = props;
|
|
40
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
-
import_materials.PisellModal,
|
|
42
|
-
{
|
|
43
|
-
open,
|
|
44
|
-
platform: "h5",
|
|
45
|
-
closable: true,
|
|
46
|
-
bodyStyle: { padding: "0 24px" },
|
|
47
|
-
destroyOnClose: true,
|
|
48
|
-
footer: null,
|
|
49
|
-
onCancel,
|
|
50
|
-
mobileModalHeight: "auto",
|
|
51
|
-
className: "information-option-modal",
|
|
52
|
-
headerDivider: false
|
|
53
|
-
},
|
|
54
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "information-options-wrap" }, options.map((item) => {
|
|
55
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
key: item.key,
|
|
59
|
-
className: "information-options-wrap-item",
|
|
60
|
-
onClick: () => onClick(item)
|
|
61
|
-
},
|
|
62
|
-
item.label
|
|
63
|
-
);
|
|
64
|
-
}))
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
var InformationOptionsModal_default = InformationOptionsModal;
|
package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.information-options-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
.information-options-wrap-item {
|
|
6
|
-
color: var(--Gray-900, #101828);
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
line-height: 24px;
|
|
10
|
-
display: flex;
|
|
11
|
-
padding: 9px 10px;
|
|
12
|
-
align-items: center;
|
|
13
|
-
flex: 1 0 0;
|
|
14
|
-
&:last-child {
|
|
15
|
-
color: var(--Error-700, #b42318);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.information-option-modal {
|
|
21
|
-
.pisell-lowcode-modal-header {
|
|
22
|
-
border: none;
|
|
23
|
-
}
|
|
24
|
-
.pisell-lowcode-modal-body {
|
|
25
|
-
height: max-content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/OrderProductModal/index.tsx
|
|
30
|
-
var OrderProductModal_exports = {};
|
|
31
|
-
__export(OrderProductModal_exports, {
|
|
32
|
-
default: () => OrderProductModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(OrderProductModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var OrderProductModal = (props) => {
|
|
40
|
-
const { open, onCancel, type = "cart" } = props;
|
|
41
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
-
import_materials.PisellModal.Information,
|
|
43
|
-
{
|
|
44
|
-
open,
|
|
45
|
-
title: type === "cart" ? import_utils.locales.getText("pisell2.event.event.full.title") : import_utils.locales.getText("pisell2.event.capacity.limit.reached.title"),
|
|
46
|
-
describe: type === "cart" ? import_utils.locales.getText("pisell2.event.event.full.tip") : import_utils.locales.getText("pisell2.event.capacity.limit.reached.tip"),
|
|
47
|
-
okText: import_utils.locales.getText("pisell2.event.event.full.ok"),
|
|
48
|
-
cancelText: "",
|
|
49
|
-
cancelVisible: false,
|
|
50
|
-
closable: true,
|
|
51
|
-
onCancel: () => onCancel(),
|
|
52
|
-
onOk: () => onCancel(),
|
|
53
|
-
zIndex: 1001
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
var OrderProductModal_default = OrderProductModal;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.event-booking-order-product-modal {
|
|
2
|
-
.event-booking-order-product-modal-content {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 4px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.event-booking-order-product-modal-content-title {
|
|
9
|
-
color: var(--Gray-900, #101828);
|
|
10
|
-
font-size: 24px;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
line-height: 32px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.event-booking-order-product-modal-content-describe {
|
|
16
|
-
color: var(--Gray-900, #101828);
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: 4px;
|
|
23
|
-
|
|
24
|
-
ul {
|
|
25
|
-
list-style-type: disc !important;
|
|
26
|
-
padding-left: 20px;
|
|
27
|
-
li {
|
|
28
|
-
list-style-type: disc !important;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.tsx
|
|
30
|
-
var RemoveOptionConfirmModal_exports = {};
|
|
31
|
-
__export(RemoveOptionConfirmModal_exports, {
|
|
32
|
-
default: () => RemoveOptionConfirmModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(RemoveOptionConfirmModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var RemoveOptionConfirmModal = (props) => {
|
|
39
|
-
const { removeOpen, onCancel, onOk } = props;
|
|
40
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
-
import_materials.PisellModal.Information,
|
|
42
|
-
{
|
|
43
|
-
open: removeOpen,
|
|
44
|
-
title: import_utils.locales.getText("pisell2.event.remove.title"),
|
|
45
|
-
describe: import_utils.locales.getText("pisell2.event.remove.tip"),
|
|
46
|
-
okText: import_utils.locales.getText("pisell2.event.remove"),
|
|
47
|
-
cancelText: import_utils.locales.getText("pisell2.event.remove.cancel"),
|
|
48
|
-
closable: true,
|
|
49
|
-
onCancel: () => onCancel(),
|
|
50
|
-
zIndex: 1001,
|
|
51
|
-
okButtonProps: {
|
|
52
|
-
style: {
|
|
53
|
-
border: "1px solid var(--Error-600, #D92D20)",
|
|
54
|
-
background: "var(--Error-600, #D92D20)",
|
|
55
|
-
boxShadow: "0px 1px 2px 0px rgba(16, 24, 40, 0.05)"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
onOk: () => onOk()
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
var RemoveOptionConfirmModal_default = RemoveOptionConfirmModal;
|
|
@@ -1,90 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/Resource/index.tsx
|
|
30
|
-
var Resource_exports = {};
|
|
31
|
-
__export(Resource_exports, {
|
|
32
|
-
default: () => Resource_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Resource_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_Sales = require("../../../../Sales");
|
|
39
|
-
var import_resourceDisplay = __toESM(require("../../resourceDisplay"));
|
|
40
|
-
var import_utils2 = require("../../../utils");
|
|
41
|
-
var import_index = require("./index.less");
|
|
42
|
-
var Resource = () => {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
const { data } = (0, import_Sales.useSales)();
|
|
45
|
-
const { getResourceList, selectResource } = (0, import_Sales.useResource)();
|
|
46
|
-
const { createCartItem } = (0, import_Sales.useCart)();
|
|
47
|
-
const { nextStep } = (0, import_Sales.useStep)();
|
|
48
|
-
const handleClick = (item) => {
|
|
49
|
-
createCartItem();
|
|
50
|
-
selectResource(item);
|
|
51
|
-
nextStep();
|
|
52
|
-
};
|
|
53
|
-
const renderItem = (item) => {
|
|
54
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
-
import_resourceDisplay.default,
|
|
56
|
-
{
|
|
57
|
-
mode: "campus",
|
|
58
|
-
dataSource: item,
|
|
59
|
-
direction: "vertical",
|
|
60
|
-
shape: "square",
|
|
61
|
-
bordered: false,
|
|
62
|
-
borderRadius: 8,
|
|
63
|
-
padding: 8,
|
|
64
|
-
onClick: () => handleClick(item)
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
-
"div",
|
|
70
|
-
{
|
|
71
|
-
className: `event-interface-resource-wrap ${(0, import_utils.isMobile)() ? "event-interface-resource-mobile-wrap" : ""}`
|
|
72
|
-
},
|
|
73
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "title" }, import_utils.locales.getText("pisell2.event.select.campus")((0, import_utils2.resourceTitle)(data))),
|
|
74
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, (_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.resourceList) == null ? void 0 : _b.map((item, index) => {
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: "content-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "content-title" }, item == null ? void 0 : item.title), /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
-
import_materials.PisellViewGrid,
|
|
77
|
-
{
|
|
78
|
-
dataSource: item == null ? void 0 : item.children,
|
|
79
|
-
columns: (0, import_utils.isMobile)() ? 1 : 3,
|
|
80
|
-
verticalGap: 20,
|
|
81
|
-
horizontalGap: 20,
|
|
82
|
-
loading: getResourceList.loading,
|
|
83
|
-
renderItem,
|
|
84
|
-
className: "content-grid"
|
|
85
|
-
}
|
|
86
|
-
));
|
|
87
|
-
}))
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
var Resource_default = Resource;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.event-interface-resource-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
margin-bottom: 24px;
|
|
5
|
-
|
|
6
|
-
.title {
|
|
7
|
-
color: var(--Gray-900, #101828);
|
|
8
|
-
font-size: 20px;
|
|
9
|
-
font-weight: 600;
|
|
10
|
-
line-height: 30px;
|
|
11
|
-
text-align: center;
|
|
12
|
-
margin: 8px 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.content {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 24px;
|
|
19
|
-
.pisell-card-wrap {
|
|
20
|
-
background: transparent;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.content-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
|
|
28
|
-
.content-title {
|
|
29
|
-
color: var(--Gray-900, #101828);
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
font-weight: 600;
|
|
32
|
-
line-height: 24px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.content-grid {
|
|
37
|
-
padding: 20px 12px;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.event-interface-resource-mobile-wrap {
|
|
45
|
-
padding: 0 20px 20px;
|
|
46
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/SelectHolderModal.tsx
|
|
30
|
-
var SelectHolderModal_exports = {};
|
|
31
|
-
__export(SelectHolderModal_exports, {
|
|
32
|
-
default: () => SelectHolderModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(SelectHolderModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_selectHolder = __toESM(require("../selectHolder"));
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_Sales = require("../../../Sales");
|
|
39
|
-
var SelectHolderModal = (props) => {
|
|
40
|
-
var _a;
|
|
41
|
-
const { open } = props;
|
|
42
|
-
const { data } = (0, import_Sales.useSales)();
|
|
43
|
-
const {
|
|
44
|
-
onHolderClose,
|
|
45
|
-
onOpenCreateHolder,
|
|
46
|
-
selectHolder,
|
|
47
|
-
holderData,
|
|
48
|
-
updateHolderList,
|
|
49
|
-
defaultSelectedHolder
|
|
50
|
-
} = (0, import_Sales.useHolder)();
|
|
51
|
-
const { nextStep, prevStep, currentStepData } = (0, import_Sales.useStep)();
|
|
52
|
-
const [selectedHolder, setSelectedHolder] = (0, import_react.useState)(defaultSelectedHolder);
|
|
53
|
-
const { onCloseCart } = (0, import_Sales.useCart)();
|
|
54
|
-
(0, import_react.useEffect)(() => {
|
|
55
|
-
setSelectedHolder(defaultSelectedHolder);
|
|
56
|
-
}, [defaultSelectedHolder]);
|
|
57
|
-
const handleHolder = (e) => {
|
|
58
|
-
var _a2, _b, _c, _d, _e;
|
|
59
|
-
if (!(e == null ? void 0 : e.isAddCard)) {
|
|
60
|
-
setSelectedHolder(e);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
onOpenCreateHolder({
|
|
64
|
-
form_id: (_e = (_d = (_c = (_b = (_a2 = data.initData) == null ? void 0 : _a2.boardSetting) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.appointment_subject) == null ? void 0 : _e.form_id,
|
|
65
|
-
form_title: import_utils.locales.getText("pisell2.event.create.form"),
|
|
66
|
-
callback: (res) => {
|
|
67
|
-
updateHolderList(res == null ? void 0 : res.values);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
72
|
-
import_selectHolder.default,
|
|
73
|
-
{
|
|
74
|
-
open,
|
|
75
|
-
options: (holderData == null ? void 0 : holderData.holderList) || [],
|
|
76
|
-
onCancel: () => onHolderClose(),
|
|
77
|
-
value: selectedHolder == null ? void 0 : selectedHolder.id,
|
|
78
|
-
title: import_utils.locales.getText("pisell2.event.holder.modal.title"),
|
|
79
|
-
okText: import_utils.locales.getText("pisell2.event.confirm"),
|
|
80
|
-
onClick: (e) => handleHolder(e),
|
|
81
|
-
disabled: !((_a = holderData == null ? void 0 : holderData.holderList) == null ? void 0 : _a.length) || !(selectedHolder == null ? void 0 : selectedHolder.id),
|
|
82
|
-
errorTipText: import_utils.locales.getText("pisell2.event.error.holder"),
|
|
83
|
-
onOk: () => {
|
|
84
|
-
onCloseCart();
|
|
85
|
-
const isEvent = (currentStepData == null ? void 0 : currentStepData.key) === "select-event";
|
|
86
|
-
selectHolder(selectedHolder, isEvent ? "addToCart" : "createCartItem");
|
|
87
|
-
if (isEvent) {
|
|
88
|
-
nextStep();
|
|
89
|
-
} else {
|
|
90
|
-
prevStep();
|
|
91
|
-
}
|
|
92
|
-
onHolderClose();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
};
|
|
97
|
-
var SelectHolderModal_default = SelectHolderModal;
|
|
@@ -1,69 +0,0 @@
|
|
|
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/components/appointmentBooking/components/Provider/SelectProduct/index.tsx
|
|
30
|
-
var SelectProduct_exports = {};
|
|
31
|
-
__export(SelectProduct_exports, {
|
|
32
|
-
default: () => SelectProduct_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(SelectProduct_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_Sales = require("../../../Sales");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_materials = require("@pisell/materials");
|
|
39
|
-
var import_index = require("./index.less");
|
|
40
|
-
var SelectProduct = () => {
|
|
41
|
-
var _a;
|
|
42
|
-
const { data } = (0, import_Sales.useSales)();
|
|
43
|
-
const { addToCart, cartData } = (0, import_Sales.useCart)();
|
|
44
|
-
const handleAddToCart = (product) => {
|
|
45
|
-
addToCart(product);
|
|
46
|
-
};
|
|
47
|
-
const renderProductCard = (product) => {
|
|
48
|
-
var _a2;
|
|
49
|
-
const isSelected = (_a2 = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a2.some(
|
|
50
|
-
(item) => item.id === product.id
|
|
51
|
-
);
|
|
52
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
key: product.id,
|
|
56
|
-
className: `product-card ${isSelected ? "product-card-selected" : ""}`,
|
|
57
|
-
onClick: () => handleAddToCart(product)
|
|
58
|
-
},
|
|
59
|
-
/* @__PURE__ */ import_react.default.createElement(import_materials.PisellCard, { bodyStyle: { padding: "16px" } }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-title" }, product.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-price" }, product.price, " ", product.currency)))
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "select-product-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "step-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "step-number" }, "Step 1"), /* @__PURE__ */ import_react.default.createElement("div", { className: "step-title" }, "Select Product")), /* @__PURE__ */ import_react.default.createElement("div", { className: "category-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "category-title" }, "Other"), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-list" }, renderProductCard({
|
|
63
|
-
id: "1",
|
|
64
|
-
title: "appointment",
|
|
65
|
-
price: "1.00",
|
|
66
|
-
currency: "AUD"
|
|
67
|
-
}))), /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-title" }, "Your cart"), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-items" }, cartData.cartItems.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.id, className: "cart-item" }, item.title))) : /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty-icon" }, "🛒"), /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty-text" }, import_utils.locales.getText("pisell2.event.cart.empty")))));
|
|
68
|
-
};
|
|
69
|
-
var SelectProduct_default = SelectProduct;
|