@phillips/seldon 1.13.0 → 1.14.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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, Fragment as W, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import b from "../../node_modules/classnames/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as T from "react";
|
|
4
4
|
import { px as X } from "../../utils/index.js";
|
|
5
5
|
import u from "../Input/Input.js";
|
|
6
6
|
const o = `${X}-viewings-list-card-form`, l = ({
|
|
7
7
|
address1: g,
|
|
8
|
-
address1Label:
|
|
9
|
-
addressUrl:
|
|
10
|
-
addressUrlLabel:
|
|
11
|
-
address2:
|
|
8
|
+
address1Label: H = "Address ('432 Park Ave', ETC)",
|
|
9
|
+
addressUrl: V,
|
|
10
|
+
addressUrlLabel: $ = "URL for map link ('http://www.website.com')",
|
|
11
|
+
address2: c,
|
|
12
12
|
address2Label: h = "City, State, Zip ('New York, NY 10019')",
|
|
13
13
|
address3: z,
|
|
14
14
|
address3Label: L = "Country (United States)",
|
|
@@ -23,13 +23,13 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
23
23
|
previewDates: y,
|
|
24
24
|
previewDatesLabel: E = "Date(s)",
|
|
25
25
|
previewHours1: U,
|
|
26
|
-
previewHours1Label:
|
|
27
|
-
previewHours2:
|
|
26
|
+
previewHours1Label: A = "Hours1",
|
|
27
|
+
previewHours2: N,
|
|
28
28
|
previewHours2Label: P = "Hours2",
|
|
29
|
-
previewLabel:
|
|
30
|
-
previewLabelValue:
|
|
29
|
+
previewLabel: j = "Label ('Preview', 'Opening Night', etc)",
|
|
30
|
+
previewLabelValue: I,
|
|
31
31
|
previewOn: p = "false",
|
|
32
|
-
previewToggleLabel:
|
|
32
|
+
previewToggleLabel: R = "Additional Hours",
|
|
33
33
|
viewingLabel: Y = "Label ('Open to public')",
|
|
34
34
|
viewingLabelValue: Z,
|
|
35
35
|
viewingDates: q,
|
|
@@ -39,22 +39,10 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
39
39
|
viewingHours2: K,
|
|
40
40
|
viewingHours2Label: M = "Hours2"
|
|
41
41
|
}) => {
|
|
42
|
-
const [m, f] =
|
|
43
|
-
return
|
|
42
|
+
const [m, f] = T.useState(p === "true"), [w, Q] = T.useState(O === "true");
|
|
43
|
+
return T.useEffect(() => {
|
|
44
44
|
f(p === "true");
|
|
45
|
-
}, [p]), /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */ t(
|
|
47
|
-
u,
|
|
48
|
-
{
|
|
49
|
-
id: `viewingLabel-${r}`,
|
|
50
|
-
name: "viewingLabelValue",
|
|
51
|
-
defaultValue: Z,
|
|
52
|
-
labelText: Y,
|
|
53
|
-
size: "sm",
|
|
54
|
-
invalid: e == null ? void 0 : e.viewingLabelValue,
|
|
55
|
-
invalidText: e == null ? void 0 : e.viewingLabelValue
|
|
56
|
-
}
|
|
57
|
-
),
|
|
45
|
+
}, [p]), /* @__PURE__ */ a(W, { children: [
|
|
58
46
|
/* @__PURE__ */ t(
|
|
59
47
|
u,
|
|
60
48
|
{
|
|
@@ -91,12 +79,24 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
91
79
|
invalidText: e == null ? void 0 : e.viewingHours2
|
|
92
80
|
}
|
|
93
81
|
),
|
|
82
|
+
/* @__PURE__ */ t(
|
|
83
|
+
u,
|
|
84
|
+
{
|
|
85
|
+
id: `viewingLabel-${r}`,
|
|
86
|
+
name: "viewingLabelValue",
|
|
87
|
+
defaultValue: Z,
|
|
88
|
+
labelText: Y,
|
|
89
|
+
size: "sm",
|
|
90
|
+
invalid: e == null ? void 0 : e.viewingLabelValue,
|
|
91
|
+
invalidText: e == null ? void 0 : e.viewingLabelValue
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
94
|
/* @__PURE__ */ t(
|
|
95
95
|
u,
|
|
96
96
|
{
|
|
97
97
|
id: `previewOn-${r}`,
|
|
98
98
|
type: "toggle",
|
|
99
|
-
labelText:
|
|
99
|
+
labelText: R,
|
|
100
100
|
size: "md",
|
|
101
101
|
defaultChecked: m,
|
|
102
102
|
inline: !0,
|
|
@@ -108,7 +108,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
110
|
m ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "previewOn", value: "false" }),
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ a(
|
|
112
112
|
"div",
|
|
113
113
|
{
|
|
114
114
|
className: b(`${o}__preview-set`, { [`${o}__preview-set--hidden`]: !m }),
|
|
@@ -132,7 +132,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
132
132
|
id: `previewHours1-${r}`,
|
|
133
133
|
name: "previewHours1",
|
|
134
134
|
defaultValue: U,
|
|
135
|
-
labelText:
|
|
135
|
+
labelText: A,
|
|
136
136
|
size: "sm",
|
|
137
137
|
invalid: e == null ? void 0 : e.previewHours1,
|
|
138
138
|
invalidText: e == null ? void 0 : e.previewHours1,
|
|
@@ -144,7 +144,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
144
144
|
{
|
|
145
145
|
id: `previewHours2-${r}`,
|
|
146
146
|
name: "previewHours2",
|
|
147
|
-
defaultValue:
|
|
147
|
+
defaultValue: N,
|
|
148
148
|
labelText: P,
|
|
149
149
|
size: "sm",
|
|
150
150
|
invalid: 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: I,
|
|
161
|
+
labelText: j,
|
|
162
162
|
size: "sm",
|
|
163
163
|
invalid: e == null ? void 0 : e.previewLabelValue,
|
|
164
164
|
invalidText: e == null ? void 0 : e.previewLabelValue,
|
|
@@ -174,7 +174,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
174
174
|
id: `address1-${r}`,
|
|
175
175
|
name: "address1",
|
|
176
176
|
defaultValue: g,
|
|
177
|
-
labelText:
|
|
177
|
+
labelText: H,
|
|
178
178
|
size: "sm",
|
|
179
179
|
invalid: e == null ? void 0 : e.address1,
|
|
180
180
|
invalidText: e == null ? void 0 : e.address1
|
|
@@ -185,8 +185,8 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
185
185
|
{
|
|
186
186
|
id: `addressUrl-${r}`,
|
|
187
187
|
name: "addressUrl",
|
|
188
|
-
defaultValue:
|
|
189
|
-
labelText:
|
|
188
|
+
defaultValue: V,
|
|
189
|
+
labelText: $,
|
|
190
190
|
size: "sm",
|
|
191
191
|
type: "url",
|
|
192
192
|
invalid: e == null ? void 0 : e.addressUrl,
|
|
@@ -198,7 +198,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
198
198
|
{
|
|
199
199
|
id: `address2-${r}`,
|
|
200
200
|
name: "address2",
|
|
201
|
-
defaultValue:
|
|
201
|
+
defaultValue: c,
|
|
202
202
|
labelText: h,
|
|
203
203
|
size: "sm",
|
|
204
204
|
invalid: e == null ? void 0 : e.address2,
|
|
@@ -234,7 +234,7 @@ const o = `${X}-viewings-list-card-form`, l = ({
|
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
236
|
w ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "emailOn", value: "false" }),
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ a(
|
|
238
238
|
"div",
|
|
239
239
|
{
|
|
240
240
|
className: b(`${o}__preview-set`, { [`${o}__preview-set--hidden`]: !w }),
|