@axos-web-dev/shared-components 1.0.77-patch.29 → 1.0.77-patch.31

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.
Files changed (41) hide show
  1. package/dist/Chatbot/Bubble.css.d.ts +2 -0
  2. package/dist/Chatbot/Bubble.css.js +8 -0
  3. package/dist/Chatbot/Bubble.d.ts +3 -0
  4. package/dist/Chatbot/Bubble.js +100 -0
  5. package/dist/Chatbot/Chat.d.ts +1 -0
  6. package/dist/Chatbot/Chat.js +165 -0
  7. package/dist/Chatbot/ChatWindow.css.d.ts +18 -0
  8. package/dist/Chatbot/ChatWindow.css.js +39 -0
  9. package/dist/Chatbot/ChatWindow.d.ts +30 -0
  10. package/dist/Chatbot/ChatWindow.js +397 -0
  11. package/dist/Chatbot/Chatbot.css.d.ts +2 -0
  12. package/dist/Chatbot/Chatbot.css.js +6 -0
  13. package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
  14. package/dist/Chatbot/Chatbot.d.ts +5 -0
  15. package/dist/Chatbot/Chatbot.js +42 -0
  16. package/dist/Chatbot/EllipsisIcon.d.ts +4 -0
  17. package/dist/Chatbot/EllipsisIcon.js +19 -0
  18. package/dist/Chatbot/authenticate.d.ts +3 -0
  19. package/dist/Chatbot/authenticate.js +16 -0
  20. package/dist/Chatbot/index.d.ts +9 -0
  21. package/dist/Chatbot/index.js +40 -0
  22. package/dist/Chatbot/store/chat.d.ts +9 -0
  23. package/dist/Chatbot/store/chat.js +11 -0
  24. package/dist/Chatbot/store/messages.d.ts +15 -0
  25. package/dist/Chatbot/store/messages.js +13 -0
  26. package/dist/Chatbot/useHeadlessChat.d.ts +27 -0
  27. package/dist/Chatbot/useHeadlessChat.js +240 -0
  28. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +16 -0
  29. package/dist/Forms/CommercialDepositsNoLendingOption.js +330 -0
  30. package/dist/Forms/index.d.ts +1 -0
  31. package/dist/Forms/index.js +2 -0
  32. package/dist/StepItemSet/StepItemSet.css.d.ts +1 -0
  33. package/dist/StepItemSet/StepItemSet.css.js +9 -5
  34. package/dist/StepItemSet/StepItemSet.d.ts +6 -0
  35. package/dist/StepItemSet/StepItemSet.js +22 -3
  36. package/dist/StepItemSet/index.js +2 -1
  37. package/dist/assets/Chatbot/Bubble.css +51 -0
  38. package/dist/assets/Chatbot/ChatWindow.css +213 -0
  39. package/dist/assets/StepItemSet/StepItemSet.css +27 -10
  40. package/dist/main.js +4 -1
  41. package/package.json +3 -1
@@ -0,0 +1,240 @@
1
+ "use client";
2
+ import { useState, useRef, useCallback, useEffect } from "react";
3
+ import { useLocation } from "react-use";
4
+ import { useMessages } from "./store/messages.js";
5
+ const brandMap = /* @__PURE__ */ new Map([
6
+ ["axos", 1],
7
+ ["", 2],
8
+ ["ufb", 3]
9
+ ]);
10
+ function useHeadlessChat({
11
+ companyId,
12
+ tenant,
13
+ host,
14
+ getToken,
15
+ projectId = "axos",
16
+ debug = false,
17
+ menuOption = "Support Virtual Agent"
18
+ }) {
19
+ const { hostname } = useLocation();
20
+ const addMessage = useMessages((state) => state.addMessage);
21
+ const addMessages = useMessages((state) => state.addMessages);
22
+ const clearMessages = useMessages((state) => state.clearMessages);
23
+ const [showReconnect, setShowReconnect] = useState(false);
24
+ const [status, setStatus] = useState("idle");
25
+ const chatRef = useRef(null);
26
+ const clientRef = useRef(null);
27
+ const isMountedRef = useRef(true);
28
+ const hasLoadedBefore = useRef(true);
29
+ const menuRef = useRef({ menus: [] });
30
+ const sendMessage = useCallback(async (body) => {
31
+ if (chatRef.current) {
32
+ await clientRef.current?.sendTextMessage(body);
33
+ }
34
+ }, []);
35
+ const endChat = useCallback(async () => {
36
+ if (chatRef.current) {
37
+ await clientRef.current?.finishChat();
38
+ clearMessages();
39
+ clientRef.current?.createChat(
40
+ menuRef.current.menus.find((menu) => menu.name === menuOption)?.id,
41
+ {
42
+ custom_data: {
43
+ unsigned: {
44
+ facingBrandId: {
45
+ label: "facingBrandId",
46
+ value: `${brandMap.get(projectId) || 1}`
47
+ },
48
+ channel: {
49
+ label: "channel",
50
+ value: "in_web"
51
+ },
52
+ user_auth: {
53
+ label: "user_auth",
54
+ value: "false"
55
+ },
56
+ env: {
57
+ label: "env",
58
+ value: hostname?.includes("www") ? "prod" : hostname?.split(".")[1] ? hostname?.split(".")[1] : ""
59
+ }
60
+ }
61
+ }
62
+ }
63
+ );
64
+ }
65
+ }, [clearMessages, hostname, menuOption, projectId]);
66
+ useEffect(() => {
67
+ let messageHandler;
68
+ let chatReadyHandler;
69
+ let chatEndedHandler;
70
+ let chatConnectedHandler;
71
+ let chatDisconnectedHandler;
72
+ let memberLeftHandler;
73
+ let memberJoinedHandler;
74
+ let startTypingHandler;
75
+ let stopTypingHandler;
76
+ let chatTimeoutHandler;
77
+ async function init() {
78
+ setStatus("connecting");
79
+ const { Client, Logger, consoleLoggerHandler } = await import("@ujet/websdk-headless");
80
+ if (debug) Logger.addHandler(consoleLoggerHandler);
81
+ try {
82
+ clientRef.current = new Client({
83
+ companyId,
84
+ tenant,
85
+ host,
86
+ authenticate: getToken
87
+ });
88
+ if (debug) console.log("clientRef:", clientRef.current);
89
+ } catch (e) {
90
+ console.error("Error creating client:", e);
91
+ if (isMountedRef.current) setStatus("error");
92
+ return;
93
+ }
94
+ menuRef.current = await clientRef.current?.getMenus();
95
+ if (debug) console.log("channelId:", menuRef.current);
96
+ if (debug)
97
+ console.log(
98
+ "channelId:",
99
+ menuRef.current?.menus.find((menu) => menu.name === menuOption)?.id
100
+ );
101
+ const custom_data = {
102
+ unsigned: {
103
+ facingBrandId: {
104
+ label: "facingBrandId",
105
+ value: `${brandMap.get(projectId) || 1}`
106
+ },
107
+ channel: {
108
+ label: "channel",
109
+ value: "in_web"
110
+ },
111
+ user_auth: {
112
+ label: "user_auth",
113
+ value: "false"
114
+ },
115
+ env: {
116
+ label: "env",
117
+ value: hostname?.includes("www") ? "prod" : hostname?.split(".")[1] ? hostname?.split(".")[1] : ""
118
+ }
119
+ }
120
+ };
121
+ try {
122
+ chatRef.current = await clientRef.current?.loadOngoingChat();
123
+ if (chatRef.current != null) {
124
+ chatRef.current = await clientRef.current?.resumeChat(
125
+ chatRef.current?.state?.id
126
+ );
127
+ if (debug) console.log("Resumed chatRef:", chatRef.current);
128
+ } else {
129
+ chatRef.current = await clientRef.current?.createChat(
130
+ menuRef.current.menus.find((menu) => menu.name === menuOption)?.id,
131
+ {
132
+ custom_data
133
+ }
134
+ );
135
+ if (debug) console.log("chatRef:", chatRef.current);
136
+ }
137
+ } catch (error) {
138
+ console.error("Error creating chat:", error);
139
+ }
140
+ messageHandler = (msg) => {
141
+ if (debug) console.log("Received message:", msg);
142
+ addMessage(msg);
143
+ };
144
+ chatReadyHandler = () => {
145
+ console.log("Chat is ready");
146
+ };
147
+ chatEndedHandler = () => {
148
+ console.log("Chat has ended");
149
+ setStatus("finished");
150
+ };
151
+ chatConnectedHandler = async () => {
152
+ console.log("Chat connected");
153
+ setStatus("connected");
154
+ try {
155
+ const messagesFetched = await chatRef.current?.fetchMessages();
156
+ if (debug) console.log("[messages]:", messagesFetched);
157
+ addMessages(messagesFetched || []);
158
+ } catch (error) {
159
+ console.error("Error fetching messages:", error);
160
+ }
161
+ };
162
+ startTypingHandler = (identity) => {
163
+ console.log("start typing: ", identity);
164
+ };
165
+ stopTypingHandler = (identity) => {
166
+ console.log("stop typing: ", identity);
167
+ };
168
+ memberLeftHandler = (identity) => {
169
+ console.log("Member has left the chat: ", identity);
170
+ };
171
+ memberJoinedHandler = (identity) => {
172
+ console.log("Member has joined the chat: ", identity);
173
+ };
174
+ chatDisconnectedHandler = () => {
175
+ console.log("Chat disconnected");
176
+ setStatus("idle");
177
+ };
178
+ chatTimeoutHandler = () => {
179
+ console.log("Chat timeout");
180
+ };
181
+ clientRef.current?.on("ready", chatReadyHandler);
182
+ clientRef.current?.on("chat.connected", chatConnectedHandler);
183
+ clientRef.current?.on("chat.message", messageHandler);
184
+ clientRef.current?.on("chat.memberLeft", memberLeftHandler);
185
+ clientRef.current?.on("chat.memberJoined", memberJoinedHandler);
186
+ clientRef.current?.on("chat.typingStarted", startTypingHandler);
187
+ clientRef.current?.on("chat.typingEnded", stopTypingHandler);
188
+ clientRef.current?.on("chat.disconnected", chatDisconnectedHandler);
189
+ clientRef.current?.on("chat.ended", chatEndedHandler);
190
+ clientRef.current?.on("chat.timeout", chatTimeoutHandler);
191
+ }
192
+ if (hasLoadedBefore.current) {
193
+ if (debug) console.log("Initializing chat...");
194
+ init();
195
+ hasLoadedBefore.current = false;
196
+ }
197
+ return () => {
198
+ isMountedRef.current = false;
199
+ if (debug)
200
+ console.log(
201
+ "Component unmounted. Cancelling pending async operations."
202
+ );
203
+ chatRef.current = null;
204
+ clientRef.current?.off("ready", chatReadyHandler);
205
+ clientRef.current?.off("chat.message", messageHandler);
206
+ clientRef.current?.off("chat.connected", chatConnectedHandler);
207
+ clientRef.current?.off("chat.ended", chatEndedHandler);
208
+ clientRef.current?.off("chat.memberLeft", memberLeftHandler);
209
+ clientRef.current?.off("chat.memberJoined", memberJoinedHandler);
210
+ clientRef.current?.off("chat.typingStarted", startTypingHandler);
211
+ clientRef.current?.off("chat.typingEnded", stopTypingHandler);
212
+ clientRef.current?.off("chat.disconnected", chatDisconnectedHandler);
213
+ clientRef.current?.off("chat.timeout", chatTimeoutHandler);
214
+ clientRef.current?.destroyChat();
215
+ clientRef.current = null;
216
+ };
217
+ }, [
218
+ companyId,
219
+ tenant,
220
+ host,
221
+ getToken,
222
+ addMessage,
223
+ addMessages,
224
+ debug,
225
+ projectId,
226
+ menuOption,
227
+ hostname
228
+ ]);
229
+ return {
230
+ status,
231
+ sendMessage,
232
+ showReconnect,
233
+ setShowReconnect,
234
+ endChat,
235
+ virtualAgent: chatRef.current?.state.virtual_agent
236
+ };
237
+ }
238
+ export {
239
+ useHeadlessChat
240
+ };
@@ -0,0 +1,16 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type CommercialDepositsNoLendingOptionInputs = {
4
+ first_name: string;
5
+ last_name: string;
6
+ company: string;
7
+ email: string;
8
+ phone: string;
9
+ Estimated_Gross_Annual_Revenue__c: string;
10
+ Banking__c: boolean;
11
+ Treasury_Management__c: boolean;
12
+ Others__c: boolean;
13
+ Others_Detail__c: string;
14
+ Product_and_servicing_needs__c: string;
15
+ };
16
+ export declare const CommercialDepositsNoLendingOption: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,330 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import { Button } from "../Button/Button.js";
5
+ import "../Button/Button.css.js";
6
+ import "react";
7
+ import "react-use";
8
+ import { Checkbox } from "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import { Dropdown } from "../Input/Dropdown.js";
11
+ import "../Input/Dropdown.css.js";
12
+ import { Input } from "../Input/Input.js";
13
+ import "../Input/Input.css.js";
14
+ import "../Input/InputAmount.js";
15
+ import { InputPhone } from "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
17
+ import "../Input/DownPaymentInput.js";
18
+ import "../Input/RadioButton.js";
19
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
20
+ import SvgAxosX from "../icons/AxosX/index.js";
21
+ import SvgComponent from "../icons/AxosX/Blue.js";
22
+ import "../icons/CheckIcon/CheckIcon.css.js";
23
+ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
+ /* empty css */
28
+ import "../utils/allowedAxosDomains.js";
29
+ import { associatedEmail } from "../utils/EverestValidity.js";
30
+ import { getVariant } from "../utils/getVariant.js";
31
+ import clsx from "clsx";
32
+ import { useForm, FormProvider } from "react-hook-form";
33
+ import * as z from "zod";
34
+ import { iconForm, headerForm, form, descriptionField, headerContainer, x_input, fullRowForm, pl_label, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
36
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
37
+ const CommercialDepositsNoLendingOption = ({
38
+ icon = false,
39
+ children,
40
+ onSubmit = (values) => {
41
+ console.log(values);
42
+ },
43
+ disclosure,
44
+ variant: fullVariant = "primary",
45
+ headline,
46
+ description,
47
+ callToAction,
48
+ validateEmail,
49
+ onValidate,
50
+ id
51
+ }) => {
52
+ const schema = z.object({
53
+ first_name: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
54
+ message: "First Name is required."
55
+ }).trim().min(1, { message: "First Name is required." }),
56
+ last_name: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
57
+ message: "Last Name is required."
58
+ }).trim().min(1, { message: "Last Name is required." }),
59
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
60
+ phone: z.string({ message: "Business Phone is required." }).regex(/[\d-]{10}/, { message: "Business Phone is required." }).min(10, { message: "Business Phone is required." }).max(12, { message: "Business Phone is required." }).transform((val, ctx) => {
61
+ const removeDashes = val.replace(/-/gi, "");
62
+ if (removeDashes.length !== 10) {
63
+ ctx.addIssue({
64
+ code: z.ZodIssueCode.custom,
65
+ message: "Business Phone must have at least 10 and no more than 10 characters."
66
+ });
67
+ return z.NEVER;
68
+ }
69
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
70
+ ctx.addIssue({
71
+ code: z.ZodIssueCode.custom,
72
+ message: "Invalid phone number."
73
+ });
74
+ return z.NEVER;
75
+ }
76
+ return removeDashes;
77
+ }),
78
+ company: z.string({ message: "Business Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
79
+ message: "Business Name is required"
80
+ }).trim().min(1, { message: "Business Name is required." }),
81
+ Estimated_Gross_Annual_Revenue__c: z.string({
82
+ message: "Estimated gross annual revenue is required"
83
+ }).min(1, { message: "Estimated gross annual revenue is required" }),
84
+ Banking__c: z.boolean(),
85
+ Treasury_Management__c: z.boolean(),
86
+ Others__c: z.boolean().optional(),
87
+ Others_Detail__c: z.string().optional(),
88
+ Product_and_servicing_needs__c: z.string()
89
+ });
90
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
91
+ if (!isValidHoneyPot(data)) {
92
+ ctx.addIssue({
93
+ code: z.ZodIssueCode.custom,
94
+ message: "fields are not valid."
95
+ });
96
+ }
97
+ });
98
+ const methods = useForm({
99
+ resolver: zodResolver(gen_schema, {
100
+ async: true
101
+ }),
102
+ mode: "all"
103
+ });
104
+ const {
105
+ handleSubmit,
106
+ register,
107
+ watch,
108
+ formState: { errors, isValid, isSubmitting }
109
+ } = methods;
110
+ const othersChecked = watch("Others__c");
111
+ const submitForm = async (data) => {
112
+ const processData = {
113
+ ...data,
114
+ Banking__c: data.Banking__c ? true : false
115
+ };
116
+ await onSubmit(processData);
117
+ };
118
+ const variant = getVariant(fullVariant);
119
+ return /* @__PURE__ */ jsx(
120
+ "section",
121
+ {
122
+ id: `id_${id}`,
123
+ className: clsx(formContainer({ variant })),
124
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
125
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
126
+ /* @__PURE__ */ jsxs("div", { className: clsx(headerContainer, "text_center"), children: [
127
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
128
+ description && /* @__PURE__ */ jsx(
129
+ "div",
130
+ {
131
+ className: clsx(
132
+ form,
133
+ descriptionField({ variant }),
134
+ "text_center"
135
+ ),
136
+ children: description
137
+ }
138
+ )
139
+ ] }),
140
+ /* @__PURE__ */ jsxs(
141
+ "form",
142
+ {
143
+ className: form,
144
+ onSubmit: async (e) => {
145
+ onValidate && onValidate(e);
146
+ await handleSubmit(submitForm)(e);
147
+ e.preventDefault();
148
+ },
149
+ children: [
150
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
151
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
152
+ Input,
153
+ {
154
+ id: "first_name",
155
+ ...register("first_name", {
156
+ required: "First Name is required"
157
+ }),
158
+ label: "First Name",
159
+ sizes: "medium",
160
+ required: true,
161
+ error: !!errors.first_name,
162
+ helperText: errors.first_name?.message,
163
+ variant
164
+ }
165
+ ) }),
166
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
167
+ Input,
168
+ {
169
+ id: "last_name",
170
+ ...register("last_name", { required: true }),
171
+ label: "Last Name",
172
+ sizes: "medium",
173
+ required: true,
174
+ error: !!errors.last_name,
175
+ helperText: errors.last_name?.message,
176
+ variant
177
+ }
178
+ ) }),
179
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
180
+ Input,
181
+ {
182
+ id: "company",
183
+ ...register("company", { required: true }),
184
+ label: "Business Name",
185
+ sizes: "medium",
186
+ required: true,
187
+ error: !!errors.company,
188
+ helperText: errors.company?.message,
189
+ variant
190
+ }
191
+ ) }),
192
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
193
+ Input,
194
+ {
195
+ id: "email",
196
+ ...register("email", {
197
+ required: true,
198
+ validate: {
199
+ isValid: associatedEmail
200
+ }
201
+ }),
202
+ label: "Email",
203
+ sizes: "medium",
204
+ required: true,
205
+ error: !!errors.email,
206
+ helperText: errors.email?.message,
207
+ variant
208
+ }
209
+ ) }),
210
+ /* @__PURE__ */ jsx("div", { className: x_input, children: /* @__PURE__ */ jsx(
211
+ InputPhone,
212
+ {
213
+ id: "phone",
214
+ ...register("phone", { required: true, maxLength: 12 }),
215
+ label: "Business Phone",
216
+ sizes: "medium",
217
+ required: true,
218
+ error: !!errors.phone,
219
+ helperText: errors.phone?.message,
220
+ variant
221
+ }
222
+ ) }),
223
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
224
+ Dropdown,
225
+ {
226
+ id: "Estimated_Gross_Annual_Revenue__c",
227
+ ...register("Estimated_Gross_Annual_Revenue__c", {
228
+ required: true
229
+ }),
230
+ label: "Estimated Gross Annual Revenue",
231
+ sizes: "medium",
232
+ required: true,
233
+ error: !!errors.Estimated_Gross_Annual_Revenue__c,
234
+ helperText: errors.Estimated_Gross_Annual_Revenue__c?.message,
235
+ variant,
236
+ defaultValue: "",
237
+ children: [
238
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "", children: "Select Option" }),
239
+ /* @__PURE__ */ jsx("option", { value: "Under $3MM", children: "Under $3MM" }),
240
+ /* @__PURE__ */ jsx("option", { value: "$3MM - $10MM", children: "$3MM - $10MM" }),
241
+ /* @__PURE__ */ jsx("option", { value: "$10MM - $100MM", children: "$10MM - $100MM" }),
242
+ /* @__PURE__ */ jsx("option", { value: "Above $100MM", children: "Above $100MM" })
243
+ ]
244
+ }
245
+ ) }),
246
+ /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
247
+ /* @__PURE__ */ jsx("div", { className: pl_label, children: "Which products or services apply to your request? Click all that apply." }),
248
+ /* @__PURE__ */ jsx(
249
+ Checkbox,
250
+ {
251
+ id: "Banking__c",
252
+ ...register("Banking__c"),
253
+ sizes: "medium",
254
+ variant,
255
+ children: "Banking"
256
+ }
257
+ ),
258
+ /* @__PURE__ */ jsx(
259
+ Checkbox,
260
+ {
261
+ id: "Treasury_Management__c",
262
+ ...register("Treasury_Management__c"),
263
+ sizes: "medium",
264
+ variant,
265
+ children: "Treasury Management"
266
+ }
267
+ ),
268
+ /* @__PURE__ */ jsx(
269
+ Checkbox,
270
+ {
271
+ id: "Others__c",
272
+ ...register("Others__c"),
273
+ sizes: "medium",
274
+ variant,
275
+ children: "Other"
276
+ }
277
+ ),
278
+ othersChecked && /* @__PURE__ */ jsx(
279
+ Input,
280
+ {
281
+ id: "Others_Detail__c",
282
+ ...register("Others_Detail__c", { required: false }),
283
+ sizes: "medium",
284
+ required: false,
285
+ error: !!errors.Others_Detail__c,
286
+ helperText: errors.Others_Detail__c?.message,
287
+ variant
288
+ }
289
+ )
290
+ ] }),
291
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
292
+ Input,
293
+ {
294
+ id: "Product_and_servicing_needs__c",
295
+ ...register("Product_and_servicing_needs__c", {
296
+ required: false
297
+ }),
298
+ label: "Kindly describe your product and/or servicing needs.",
299
+ sizes: "medium",
300
+ required: false,
301
+ error: !!errors.Product_and_servicing_needs__c,
302
+ helperText: errors.Product_and_servicing_needs__c?.message,
303
+ variant
304
+ }
305
+ ) }),
306
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
307
+ ] }),
308
+ children,
309
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
310
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
311
+ Button,
312
+ {
313
+ color: getVariant(callToAction?.variant),
314
+ as: "button",
315
+ type: "submit",
316
+ disabled: !isValid || isSubmitting,
317
+ children: callToAction?.displayText
318
+ }
319
+ ) })
320
+ ]
321
+ }
322
+ )
323
+ ] }) })
324
+ },
325
+ id
326
+ );
327
+ };
328
+ export {
329
+ CommercialDepositsNoLendingOption
330
+ };
@@ -3,6 +3,7 @@ export * from './ApplyNow';
3
3
  export * from './applynow-utils';
4
4
  export * from './ClearingForm';
5
5
  export * from './CommercialDeposits';
6
+ export * from './CommercialDepositsNoLendingOption';
6
7
  export * from './CommercialLending';
7
8
  export * from './CommercialPremiumFinance';
8
9
  export * from './ContactCompany';
@@ -4,6 +4,7 @@ import { ApplyNow } from "./ApplyNow.js";
4
4
  import { getLink } from "./applynow-utils.js";
5
5
  import { ClearingForm } from "./ClearingForm.js";
6
6
  import { CommercialDeposits } from "./CommercialDeposits.js";
7
+ import { CommercialDepositsNoLendingOption } from "./CommercialDepositsNoLendingOption.js";
7
8
  import { CommercialLending } from "./CommercialLending.js";
8
9
  import { CommercialPremiumFinance } from "./CommercialPremiumFinance.js";
9
10
  import { ContactCompany } from "./ContactCompany.js";
@@ -44,6 +45,7 @@ export {
44
45
  ApplyNow,
45
46
  ClearingForm,
46
47
  CommercialDeposits,
48
+ CommercialDepositsNoLendingOption,
47
49
  CommercialLending,
48
50
  CommercialPremiumFinance,
49
51
  ContactCompany,
@@ -83,6 +83,7 @@ export declare const sec_title: import('@vanilla-extract/recipes').RuntimeFn<{
83
83
  export declare const sec_subtitle: string;
84
84
  export declare const tablet_col: string;
85
85
  export declare const bs_image: string;
86
+ export declare const bs_video: string;
86
87
  export declare const steps_wrapper: string;
87
88
  export declare const ol: string;
88
89
  export declare const bs_btns: string;
@@ -1,6 +1,8 @@
1
- import '../assets/StepItemSet/StepItemSet.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
1
+ import '../assets/StepItemSet/StepItemSet.css';import '../assets/VideoTile/VideoTile.css';import '../assets/Typography/Typography.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
+ /* empty css */
5
+ /* empty css */
4
6
  /* empty css */
5
7
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
8
  var bs_section = createRuntimeFn({ defaultClassName: "_18par6f0", variantClassNames: { variant: { primary: "_18par6f1", secondary: "_18par6f2", tertiary: "_18par6f3", quaternary: "_18par6f4" } }, defaultVariants: {}, compoundVariants: [] });
@@ -11,15 +13,17 @@ var sec_title = createRuntimeFn({ defaultClassName: "_18par6fc", variantClassNam
11
13
  var sec_subtitle = "_18par6fh";
12
14
  var tablet_col = "_18par6fi";
13
15
  var bs_image = "_18par6fj";
14
- var steps_wrapper = "_18par6fk";
15
- var ol = "_18par6fl";
16
- var bs_btns = "_18par6fm";
17
- var bs_add_details = "_18par6fn";
16
+ var bs_video = "_18par6fk";
17
+ var steps_wrapper = "_18par6fl";
18
+ var ol = "_18par6fm";
19
+ var bs_btns = "_18par6fn";
20
+ var bs_add_details = "_18par6fo";
18
21
  export {
19
22
  bs_add_details,
20
23
  bs_btns,
21
24
  bs_image,
22
25
  bs_section,
26
+ bs_video,
23
27
  bs_wrapper,
24
28
  modifier,
25
29
  ol,
@@ -13,5 +13,11 @@ export interface StepItemSetProps {
13
13
  stepItems?: StepItemProps[];
14
14
  callToActionRow?: boolean | ChevronProps[];
15
15
  additionalDetails?: string | ReactNode;
16
+ video?: {
17
+ videoId: string;
18
+ videoPlayer: string;
19
+ thubnailImage: string;
20
+ transcript?: string;
21
+ };
16
22
  }
17
23
  export declare const StepItemSet: FC<StepItemSetProps>;