@phillips/seldon 1.11.0 → 1.13.0
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/components/ViewingsList/ViewingsList.d.ts +4 -0
- package/dist/components/ViewingsList/ViewingsListCard.d.ts +28 -1
- package/dist/components/ViewingsList/ViewingsListCard.js +110 -98
- package/dist/components/ViewingsList/ViewingsListCardForm.d.ts +28 -28
- package/dist/components/ViewingsList/ViewingsListCardForm.js +46 -46
- package/package.json +1 -1
|
@@ -10,6 +10,10 @@ export interface I18nObject {
|
|
|
10
10
|
deleteBtnLabel?: string;
|
|
11
11
|
editBtnLabel?: string;
|
|
12
12
|
enableOnSiteToggleLabel?: string;
|
|
13
|
+
emailLabel?: string;
|
|
14
|
+
emailLink?: string;
|
|
15
|
+
emailLinkLabel?: string;
|
|
16
|
+
emailToggleLabel?: string;
|
|
13
17
|
locationLabel?: string;
|
|
14
18
|
previewDatesLabel?: string;
|
|
15
19
|
previewHours1Label?: string;
|
|
@@ -29,6 +29,30 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
|
|
|
29
29
|
* Label for enable on site toggle
|
|
30
30
|
*/
|
|
31
31
|
enableOnSiteToggleLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Email value:
|
|
34
|
+
*/
|
|
35
|
+
email?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Label for email input:
|
|
38
|
+
*/
|
|
39
|
+
emailLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* EmailLink value
|
|
42
|
+
*/
|
|
43
|
+
emailLink?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Label for email Link input:
|
|
46
|
+
*/
|
|
47
|
+
emailLinkLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Email toggle
|
|
50
|
+
*/
|
|
51
|
+
emailOn?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Label for email toggle
|
|
54
|
+
*/
|
|
55
|
+
emailToggleLabel?: string;
|
|
32
56
|
/**
|
|
33
57
|
* Location of viewing
|
|
34
58
|
*/
|
|
@@ -49,6 +73,9 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
|
|
|
49
73
|
address1Url?: string | undefined;
|
|
50
74
|
address2?: string | undefined;
|
|
51
75
|
address3?: string | undefined;
|
|
76
|
+
emailLabel?: string | undefined;
|
|
77
|
+
emailOn?: string | undefined;
|
|
78
|
+
emailToggleLabel?: string | undefined;
|
|
52
79
|
location?: string | undefined;
|
|
53
80
|
previewDates?: string | undefined;
|
|
54
81
|
previewHours1?: string | undefined;
|
|
@@ -81,5 +108,5 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
|
|
|
81
108
|
*/
|
|
82
109
|
saveBtnLabel?: string;
|
|
83
110
|
}
|
|
84
|
-
declare const ViewingsListCard: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, cancelBtnLabel, cardTitle, deleteBtnLabel, editBtnLabel, editState, enableOnSite, enableOnSiteToggleLabel, id, invalidFields, location, locationLabel, onCancel, onEdit, onDelete, onSave, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, saveBtnLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
declare const ViewingsListCard: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, cancelBtnLabel, cardTitle, deleteBtnLabel, editBtnLabel, editState, enableOnSite, enableOnSiteToggleLabel, email, emailLabel, emailLink, emailLinkLabel, emailOn, emailToggleLabel, id, invalidFields, location, locationLabel, onCancel, onEdit, onDelete, onSave, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, saveBtnLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
112
|
export default ViewingsListCard;
|
|
@@ -1,84 +1,90 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import
|
|
4
|
-
import { px as
|
|
3
|
+
import ie from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { px as E } from "../../utils/index.js";
|
|
5
5
|
import g from "../Input/Input.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
address1:
|
|
10
|
-
address1Label:
|
|
11
|
-
addressUrl:
|
|
12
|
-
addressUrlLabel:
|
|
13
|
-
address2:
|
|
14
|
-
address2Label:
|
|
6
|
+
import l from "../Button/Button.js";
|
|
7
|
+
import pe from "./ViewingsListCardForm.js";
|
|
8
|
+
const u = `${E}-viewings-list-card`, Ee = ({
|
|
9
|
+
address1: $,
|
|
10
|
+
address1Label: d,
|
|
11
|
+
addressUrl: C,
|
|
12
|
+
addressUrlLabel: T,
|
|
13
|
+
address2: O,
|
|
14
|
+
address2Label: w,
|
|
15
15
|
address3: x,
|
|
16
16
|
address3Label: z,
|
|
17
|
-
cancelBtnLabel:
|
|
18
|
-
cardTitle:
|
|
19
|
-
deleteBtnLabel:
|
|
20
|
-
editBtnLabel:
|
|
17
|
+
cancelBtnLabel: A = "CANCEL",
|
|
18
|
+
cardTitle: L = "Add New Viewing",
|
|
19
|
+
deleteBtnLabel: _ = "DELETE",
|
|
20
|
+
editBtnLabel: k = "EDIT",
|
|
21
21
|
editState: o,
|
|
22
22
|
enableOnSite: i = "false",
|
|
23
|
-
enableOnSiteToggleLabel:
|
|
24
|
-
|
|
23
|
+
enableOnSiteToggleLabel: I = "Enabled on website",
|
|
24
|
+
email: N,
|
|
25
|
+
emailLabel: V = "Email",
|
|
26
|
+
emailLink: S,
|
|
27
|
+
emailLinkLabel: v = "Email Address",
|
|
28
|
+
emailOn: j = "false",
|
|
29
|
+
emailToggleLabel: D = "Include Email Address",
|
|
30
|
+
id: t,
|
|
25
31
|
invalidFields: n,
|
|
26
|
-
location:
|
|
27
|
-
locationLabel:
|
|
32
|
+
location: R,
|
|
33
|
+
locationLabel: q = "Location",
|
|
28
34
|
onCancel: p,
|
|
29
|
-
onEdit:
|
|
30
|
-
onDelete:
|
|
35
|
+
onEdit: m,
|
|
36
|
+
onDelete: f,
|
|
31
37
|
onSave: h,
|
|
32
|
-
previewDates:
|
|
33
|
-
previewDatesLabel:
|
|
34
|
-
previewHours1:
|
|
35
|
-
previewHours1Label:
|
|
36
|
-
previewHours2:
|
|
37
|
-
previewHours2Label:
|
|
38
|
-
previewLabel:
|
|
39
|
-
previewLabelValue:
|
|
40
|
-
previewOn:
|
|
41
|
-
previewToggleLabel:
|
|
42
|
-
saveBtnLabel:
|
|
43
|
-
viewingLabel:
|
|
44
|
-
viewingLabelValue:
|
|
45
|
-
viewingDates:
|
|
46
|
-
viewingDatesLabel:
|
|
47
|
-
viewingHours1:
|
|
48
|
-
viewingHours1Label:
|
|
49
|
-
viewingHours2:
|
|
50
|
-
viewingHours2Label:
|
|
38
|
+
previewDates: B,
|
|
39
|
+
previewDatesLabel: G,
|
|
40
|
+
previewHours1: H,
|
|
41
|
+
previewHours1Label: J,
|
|
42
|
+
previewHours2: K,
|
|
43
|
+
previewHours2Label: M,
|
|
44
|
+
previewLabel: P,
|
|
45
|
+
previewLabelValue: Q,
|
|
46
|
+
previewOn: U,
|
|
47
|
+
previewToggleLabel: W,
|
|
48
|
+
saveBtnLabel: X = "SAVE DETAILS",
|
|
49
|
+
viewingLabel: Y,
|
|
50
|
+
viewingLabelValue: Z,
|
|
51
|
+
viewingDates: F,
|
|
52
|
+
viewingDatesLabel: ee,
|
|
53
|
+
viewingHours1: te,
|
|
54
|
+
viewingHours1Label: ne,
|
|
55
|
+
viewingHours2: oe,
|
|
56
|
+
viewingHours2Label: se
|
|
51
57
|
}) => {
|
|
52
|
-
const [
|
|
58
|
+
const [ce, re] = r.useState(i === "true"), c = r.useRef(null);
|
|
53
59
|
r.useEffect(() => {
|
|
54
60
|
o && c.current && c.current.focus();
|
|
55
61
|
}, [o]), r.useEffect(() => {
|
|
56
62
|
var s, b;
|
|
57
63
|
n && c.current && ((b = (s = c.current.closest(".phillips-viewings-list-card")) == null ? void 0 : s.querySelector(".phillips-input--invalid input")) == null || b.focus());
|
|
58
64
|
}, [n]);
|
|
59
|
-
const
|
|
65
|
+
const le = () => {
|
|
60
66
|
typeof p == "function" && p();
|
|
61
|
-
},
|
|
62
|
-
typeof
|
|
63
|
-
},
|
|
67
|
+
}, ue = () => {
|
|
68
|
+
typeof m == "function" && m();
|
|
69
|
+
}, ae = (s) => {
|
|
64
70
|
typeof h == "function" && h(s);
|
|
65
71
|
};
|
|
66
72
|
return /* @__PURE__ */ a(
|
|
67
73
|
"section",
|
|
68
74
|
{
|
|
69
|
-
"data-testid": `viewings-list-card-${
|
|
70
|
-
id:
|
|
71
|
-
className:
|
|
75
|
+
"data-testid": `viewings-list-card-${t}`,
|
|
76
|
+
id: t,
|
|
77
|
+
className: ie(`${u}`, { [`${u}--edit-state`]: o }),
|
|
72
78
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ e("h3", { className: `${u}__title`, children: L }),
|
|
80
|
+
/* @__PURE__ */ e("input", { type: "hidden", name: "id", value: t }),
|
|
81
|
+
/* @__PURE__ */ e(
|
|
76
82
|
g,
|
|
77
83
|
{
|
|
78
84
|
ref: c,
|
|
79
|
-
id: `location-${
|
|
80
|
-
defaultValue:
|
|
81
|
-
labelText:
|
|
85
|
+
id: `location-${t}`,
|
|
86
|
+
defaultValue: R,
|
|
87
|
+
labelText: q,
|
|
82
88
|
size: "sm",
|
|
83
89
|
name: "location",
|
|
84
90
|
invalid: n == null ? void 0 : n.location,
|
|
@@ -86,70 +92,76 @@ const l = `${$}-viewings-list-card`, ft = ({
|
|
|
86
92
|
readOnly: !o
|
|
87
93
|
}
|
|
88
94
|
),
|
|
89
|
-
o ? /* @__PURE__ */
|
|
90
|
-
|
|
95
|
+
o ? /* @__PURE__ */ e(
|
|
96
|
+
pe,
|
|
91
97
|
{
|
|
92
|
-
address1:
|
|
93
|
-
address1Label:
|
|
94
|
-
addressUrl:
|
|
95
|
-
addressUrlLabel:
|
|
96
|
-
address2:
|
|
97
|
-
address2Label:
|
|
98
|
+
address1: $,
|
|
99
|
+
address1Label: d,
|
|
100
|
+
addressUrl: C,
|
|
101
|
+
addressUrlLabel: T,
|
|
102
|
+
address2: O,
|
|
103
|
+
address2Label: w,
|
|
98
104
|
address3: x,
|
|
99
105
|
address3Label: z,
|
|
100
|
-
|
|
106
|
+
email: N,
|
|
107
|
+
emailLabel: V,
|
|
108
|
+
emailLink: S,
|
|
109
|
+
emailLinkLabel: v,
|
|
110
|
+
emailOn: j,
|
|
111
|
+
emailToggleLabel: D,
|
|
112
|
+
id: t,
|
|
101
113
|
invalidFields: n,
|
|
102
|
-
previewDates:
|
|
103
|
-
previewDatesLabel:
|
|
104
|
-
previewHours1:
|
|
105
|
-
previewHours1Label:
|
|
106
|
-
previewHours2:
|
|
107
|
-
previewHours2Label:
|
|
108
|
-
previewLabel:
|
|
109
|
-
previewLabelValue:
|
|
110
|
-
previewOn:
|
|
111
|
-
previewToggleLabel:
|
|
112
|
-
viewingLabel:
|
|
113
|
-
viewingLabelValue:
|
|
114
|
-
viewingDates:
|
|
115
|
-
viewingDatesLabel:
|
|
116
|
-
viewingHours1:
|
|
117
|
-
viewingHours1Label:
|
|
118
|
-
viewingHours2:
|
|
119
|
-
viewingHours2Label:
|
|
114
|
+
previewDates: B,
|
|
115
|
+
previewDatesLabel: G,
|
|
116
|
+
previewHours1: H,
|
|
117
|
+
previewHours1Label: J,
|
|
118
|
+
previewHours2: K,
|
|
119
|
+
previewHours2Label: M,
|
|
120
|
+
previewLabel: P,
|
|
121
|
+
previewLabelValue: Q,
|
|
122
|
+
previewOn: U,
|
|
123
|
+
previewToggleLabel: W,
|
|
124
|
+
viewingLabel: Y,
|
|
125
|
+
viewingLabelValue: Z,
|
|
126
|
+
viewingDates: F,
|
|
127
|
+
viewingDatesLabel: ee,
|
|
128
|
+
viewingHours1: te,
|
|
129
|
+
viewingHours1Label: ne,
|
|
130
|
+
viewingHours2: oe,
|
|
131
|
+
viewingHours2Label: se
|
|
120
132
|
}
|
|
121
133
|
) : null,
|
|
122
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ e(
|
|
123
135
|
g,
|
|
124
136
|
{
|
|
125
|
-
id: `enableOnSite-${
|
|
137
|
+
id: `enableOnSite-${t}`,
|
|
126
138
|
type: "toggle",
|
|
127
139
|
defaultChecked: i === "true",
|
|
128
|
-
labelText:
|
|
140
|
+
labelText: I,
|
|
129
141
|
size: "md",
|
|
130
142
|
inline: !0,
|
|
131
143
|
value: "true",
|
|
132
144
|
name: "enableOnSite",
|
|
133
|
-
onChange: () =>
|
|
145
|
+
onChange: () => re((s) => !s),
|
|
134
146
|
readOnly: !o
|
|
135
147
|
}
|
|
136
148
|
),
|
|
137
|
-
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
149
|
+
ce ? null : /* @__PURE__ */ e("input", { type: "hidden", name: "enableOnSite", value: "false" }),
|
|
150
|
+
/* @__PURE__ */ e("hr", {}),
|
|
151
|
+
/* @__PURE__ */ e("div", { className: `${u}__btn-group ${E}-button__group`, children: o ? /* @__PURE__ */ a(y, { children: [
|
|
152
|
+
/* @__PURE__ */ e(l, { id: `vlc-save-btn-${t}`, buttonType: "ghost", type: "submit", size: "sm", onClick: ae, children: X }),
|
|
153
|
+
/* @__PURE__ */ e(l, { id: `vlc-cancel-btn-${t}`, buttonType: "ghost", type: "button", size: "sm", onClick: le, children: A })
|
|
142
154
|
] }) : /* @__PURE__ */ a(y, { children: [
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
155
|
+
/* @__PURE__ */ e(l, { id: `vlc-edit-btn-${t}`, buttonType: "ghost", type: "button", size: "sm", onClick: ue, children: k }),
|
|
156
|
+
/* @__PURE__ */ e(
|
|
157
|
+
l,
|
|
146
158
|
{
|
|
147
|
-
id: `vlc-delete-btn-${
|
|
159
|
+
id: `vlc-delete-btn-${t}`,
|
|
148
160
|
buttonType: "ghost",
|
|
149
161
|
type: "button",
|
|
150
162
|
size: "sm",
|
|
151
|
-
onClick: () => typeof
|
|
152
|
-
children:
|
|
163
|
+
onClick: () => typeof f == "function" && f(t),
|
|
164
|
+
children: _
|
|
153
165
|
}
|
|
154
166
|
)
|
|
155
167
|
] }) })
|
|
@@ -158,5 +170,5 @@ const l = `${$}-viewings-list-card`, ft = ({
|
|
|
158
170
|
);
|
|
159
171
|
};
|
|
160
172
|
export {
|
|
161
|
-
|
|
173
|
+
Ee as default
|
|
162
174
|
};
|
|
@@ -31,6 +31,30 @@ export interface ViewingsListCardFormProps {
|
|
|
31
31
|
* Label for address3 input
|
|
32
32
|
*/
|
|
33
33
|
address3Label?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Email toggle
|
|
36
|
+
*/
|
|
37
|
+
emailOn?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Email value:
|
|
40
|
+
*/
|
|
41
|
+
email?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Label for email toggle
|
|
44
|
+
*/
|
|
45
|
+
emailToggleLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Label for email input:
|
|
48
|
+
*/
|
|
49
|
+
emailLabel?: string;
|
|
50
|
+
/**
|
|
51
|
+
* EmailLink value
|
|
52
|
+
*/
|
|
53
|
+
emailLink?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Label for email Link input:
|
|
56
|
+
*/
|
|
57
|
+
emailLinkLabel?: string;
|
|
34
58
|
/**
|
|
35
59
|
* Unique id for ViewingListCard component
|
|
36
60
|
*/
|
|
@@ -43,19 +67,19 @@ export interface ViewingsListCardFormProps {
|
|
|
43
67
|
addressUrl?: string | undefined;
|
|
44
68
|
address2?: string | undefined;
|
|
45
69
|
address3?: string | undefined;
|
|
70
|
+
emailLabel?: string | undefined;
|
|
71
|
+
emailOn?: string | undefined;
|
|
72
|
+
emailToggleLabel?: string | undefined;
|
|
46
73
|
location?: string | undefined;
|
|
47
74
|
previewDates?: string | undefined;
|
|
48
75
|
previewHours1?: string | undefined;
|
|
49
76
|
previewHours2?: string | undefined;
|
|
50
77
|
previewLabelValue?: string | undefined;
|
|
51
78
|
previewOn?: string | undefined;
|
|
52
|
-
emailOn?: string | undefined;
|
|
53
79
|
viewingLabelValue?: string | undefined;
|
|
54
80
|
viewingDates?: string | undefined;
|
|
55
81
|
viewingHours1?: string | undefined;
|
|
56
82
|
viewingHours2?: string | undefined;
|
|
57
|
-
emailLabel?: string | undefined;
|
|
58
|
-
emailToggleLabel?: string | undefined;
|
|
59
83
|
};
|
|
60
84
|
/**
|
|
61
85
|
* Label for preview label input
|
|
@@ -129,30 +153,6 @@ export interface ViewingsListCardFormProps {
|
|
|
129
153
|
* Label for viewing Hours1 input
|
|
130
154
|
*/
|
|
131
155
|
viewingHours2Label?: string;
|
|
132
|
-
/**
|
|
133
|
-
* Email toggle
|
|
134
|
-
*/
|
|
135
|
-
emailOn?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Email value:
|
|
138
|
-
*/
|
|
139
|
-
email?: string;
|
|
140
|
-
/**
|
|
141
|
-
* Label for email toggle
|
|
142
|
-
*/
|
|
143
|
-
emailToggleLabel?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Label for email input:
|
|
146
|
-
*/
|
|
147
|
-
emailLabel?: string;
|
|
148
|
-
/**
|
|
149
|
-
* EmailLink value
|
|
150
|
-
*/
|
|
151
|
-
emailLink?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Label for email Link input:
|
|
154
|
-
*/
|
|
155
|
-
emailLinkLabel?: string;
|
|
156
156
|
}
|
|
157
|
-
declare const ViewingsListCardForm: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, id, invalidFields, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label,
|
|
157
|
+
declare const ViewingsListCardForm: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, emailOn, emailToggleLabel, email, emailLabel, emailLink, emailLinkLabel, id, invalidFields, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
158
158
|
export default ViewingsListCardForm;
|
|
@@ -12,34 +12,34 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
12
12
|
address2Label: h = "City, State, Zip ('New York, NY 10019')",
|
|
13
13
|
address3: z,
|
|
14
14
|
address3Label: L = "Country (United States)",
|
|
15
|
+
emailOn: O = "false",
|
|
16
|
+
emailToggleLabel: D = "Include Email Address",
|
|
17
|
+
email: C,
|
|
18
|
+
emailLabel: S = "Email",
|
|
19
|
+
emailLink: _,
|
|
20
|
+
emailLinkLabel: k = "Email Address",
|
|
15
21
|
id: r,
|
|
16
22
|
invalidFields: e,
|
|
17
|
-
previewDates:
|
|
18
|
-
previewDatesLabel:
|
|
19
|
-
previewHours1:
|
|
20
|
-
previewHours1Label:
|
|
21
|
-
previewHours2:
|
|
22
|
-
previewHours2Label:
|
|
23
|
-
previewLabel:
|
|
24
|
-
previewLabelValue:
|
|
23
|
+
previewDates: y,
|
|
24
|
+
previewDatesLabel: E = "Date(s)",
|
|
25
|
+
previewHours1: U,
|
|
26
|
+
previewHours1Label: N = "Hours1",
|
|
27
|
+
previewHours2: A,
|
|
28
|
+
previewHours2Label: P = "Hours2",
|
|
29
|
+
previewLabel: I = "Label ('Preview', 'Opening NIght', etc)",
|
|
30
|
+
previewLabelValue: R,
|
|
25
31
|
previewOn: p = "false",
|
|
26
|
-
previewToggleLabel:
|
|
27
|
-
viewingLabel:
|
|
28
|
-
viewingLabelValue:
|
|
29
|
-
viewingDates:
|
|
30
|
-
viewingDatesLabel:
|
|
31
|
-
viewingHours1:
|
|
32
|
-
viewingHours1Label:
|
|
33
|
-
viewingHours2:
|
|
34
|
-
viewingHours2Label:
|
|
35
|
-
emailOn: q = "false",
|
|
36
|
-
emailToggleLabel: B = "Include Email Address",
|
|
37
|
-
email: G,
|
|
38
|
-
emailLabel: J = "Email",
|
|
39
|
-
emailLink: K,
|
|
40
|
-
emailLinkLabel: M = "Email Address"
|
|
32
|
+
previewToggleLabel: j = "Preview/ Reception",
|
|
33
|
+
viewingLabel: Y = "Label ('Open to public')",
|
|
34
|
+
viewingLabelValue: Z,
|
|
35
|
+
viewingDates: q,
|
|
36
|
+
viewingDatesLabel: B = "Date(s)",
|
|
37
|
+
viewingHours1: G,
|
|
38
|
+
viewingHours1Label: J = "Hours1",
|
|
39
|
+
viewingHours2: K,
|
|
40
|
+
viewingHours2Label: M = "Hours2"
|
|
41
41
|
}) => {
|
|
42
|
-
const [m, f] = a.useState(p === "true"), [w, Q] = a.useState(
|
|
42
|
+
const [m, f] = a.useState(p === "true"), [w, Q] = a.useState(O === "true");
|
|
43
43
|
return a.useEffect(() => {
|
|
44
44
|
f(p === "true");
|
|
45
45
|
}, [p]), /* @__PURE__ */ T(W, { children: [
|
|
@@ -48,8 +48,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
48
48
|
{
|
|
49
49
|
id: `viewingLabel-${r}`,
|
|
50
50
|
name: "viewingLabelValue",
|
|
51
|
-
defaultValue:
|
|
52
|
-
labelText:
|
|
51
|
+
defaultValue: Z,
|
|
52
|
+
labelText: Y,
|
|
53
53
|
size: "sm",
|
|
54
54
|
invalid: e == null ? void 0 : e.viewingLabelValue,
|
|
55
55
|
invalidText: e == null ? void 0 : e.viewingLabelValue
|
|
@@ -60,8 +60,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
60
60
|
{
|
|
61
61
|
id: `viewingDates-${r}`,
|
|
62
62
|
name: "viewingDates",
|
|
63
|
-
defaultValue:
|
|
64
|
-
labelText:
|
|
63
|
+
defaultValue: q,
|
|
64
|
+
labelText: B,
|
|
65
65
|
size: "sm",
|
|
66
66
|
invalid: e == null ? void 0 : e.viewingDates,
|
|
67
67
|
invalidText: e == null ? void 0 : e.viewingDates
|
|
@@ -72,8 +72,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
72
72
|
{
|
|
73
73
|
id: `viewingHours1-${r}`,
|
|
74
74
|
name: "viewingHours1",
|
|
75
|
-
defaultValue:
|
|
76
|
-
labelText:
|
|
75
|
+
defaultValue: G,
|
|
76
|
+
labelText: J,
|
|
77
77
|
size: "sm",
|
|
78
78
|
invalid: e == null ? void 0 : e.viewingHours1,
|
|
79
79
|
invalidText: e == null ? void 0 : e.viewingHours1
|
|
@@ -84,8 +84,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
84
84
|
{
|
|
85
85
|
id: `viewingHours2-${r}`,
|
|
86
86
|
name: "viewingHours2",
|
|
87
|
-
defaultValue:
|
|
88
|
-
labelText:
|
|
87
|
+
defaultValue: K,
|
|
88
|
+
labelText: M,
|
|
89
89
|
size: "sm",
|
|
90
90
|
invalid: e == null ? void 0 : e.viewingHours2,
|
|
91
91
|
invalidText: e == null ? void 0 : e.viewingHours2
|
|
@@ -96,7 +96,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
96
96
|
{
|
|
97
97
|
id: `previewOn-${r}`,
|
|
98
98
|
type: "toggle",
|
|
99
|
-
labelText:
|
|
99
|
+
labelText: j,
|
|
100
100
|
size: "md",
|
|
101
101
|
defaultChecked: m,
|
|
102
102
|
inline: !0,
|
|
@@ -118,8 +118,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
118
118
|
{
|
|
119
119
|
id: `previewDates-${r}`,
|
|
120
120
|
name: "previewDates",
|
|
121
|
-
defaultValue:
|
|
122
|
-
labelText:
|
|
121
|
+
defaultValue: y,
|
|
122
|
+
labelText: E,
|
|
123
123
|
size: "sm",
|
|
124
124
|
invalid: e == null ? void 0 : e.previewDates,
|
|
125
125
|
invalidText: e == null ? void 0 : e.previewDates,
|
|
@@ -131,8 +131,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
131
131
|
{
|
|
132
132
|
id: `previewHours1-${r}`,
|
|
133
133
|
name: "previewHours1",
|
|
134
|
-
defaultValue:
|
|
135
|
-
labelText:
|
|
134
|
+
defaultValue: U,
|
|
135
|
+
labelText: N,
|
|
136
136
|
size: "sm",
|
|
137
137
|
invalid: e == null ? void 0 : e.previewHours1,
|
|
138
138
|
invalidText: e == null ? void 0 : e.previewHours1,
|
|
@@ -144,8 +144,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
144
144
|
{
|
|
145
145
|
id: `previewHours2-${r}`,
|
|
146
146
|
name: "previewHours2",
|
|
147
|
-
defaultValue:
|
|
148
|
-
labelText:
|
|
147
|
+
defaultValue: A,
|
|
148
|
+
labelText: P,
|
|
149
149
|
size: "sm",
|
|
150
150
|
invalid: e == null ? void 0 : e.previewHours2,
|
|
151
151
|
invalidText: e == null ? void 0 : e.previewHours2,
|
|
@@ -157,8 +157,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
157
157
|
{
|
|
158
158
|
id: `previewLabel-${r}`,
|
|
159
159
|
name: "previewLabelValue",
|
|
160
|
-
defaultValue:
|
|
161
|
-
labelText:
|
|
160
|
+
defaultValue: R,
|
|
161
|
+
labelText: I,
|
|
162
162
|
size: "sm",
|
|
163
163
|
invalid: e == null ? void 0 : e.previewLabelValue,
|
|
164
164
|
invalidText: e == null ? void 0 : e.previewLabelValue,
|
|
@@ -222,7 +222,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
222
222
|
{
|
|
223
223
|
id: `emailOn-${r}`,
|
|
224
224
|
type: "toggle",
|
|
225
|
-
labelText:
|
|
225
|
+
labelText: D,
|
|
226
226
|
size: "md",
|
|
227
227
|
defaultChecked: w,
|
|
228
228
|
inline: !0,
|
|
@@ -244,8 +244,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
244
244
|
{
|
|
245
245
|
id: `email-${r}`,
|
|
246
246
|
name: "email",
|
|
247
|
-
defaultValue:
|
|
248
|
-
labelText:
|
|
247
|
+
defaultValue: C,
|
|
248
|
+
labelText: S,
|
|
249
249
|
size: "sm",
|
|
250
250
|
invalid: e == null ? void 0 : e.address2,
|
|
251
251
|
invalidText: e == null ? void 0 : e.address2,
|
|
@@ -257,8 +257,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
257
257
|
{
|
|
258
258
|
id: `emailLink-${r}`,
|
|
259
259
|
name: "emailLink",
|
|
260
|
-
defaultValue:
|
|
261
|
-
labelText:
|
|
260
|
+
defaultValue: _,
|
|
261
|
+
labelText: k,
|
|
262
262
|
size: "sm",
|
|
263
263
|
invalid: e == null ? void 0 : e.address3,
|
|
264
264
|
invalidText: e == null ? void 0 : e.address3,
|