@flamingo-stack/openframe-frontend-core 0.0.731 → 0.0.732
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/build/export-map.json +1 -1
- package/dist/{chunk-2UNQJVYN.cjs → chunk-22ZK7BA3.cjs} +1221 -1006
- package/dist/{chunk-Y4QRK3CB.cjs → chunk-3BLBWZ6A.cjs} +4 -4
- package/dist/{chunk-ZV6473Z4.cjs → chunk-5HMGK3N6.cjs} +18 -18
- package/dist/{chunk-HI7EFAFQ.cjs → chunk-5HSMTSHU.cjs} +28 -28
- package/dist/{chunk-XDBHGWFH.cjs → chunk-6HHUU56Y.cjs} +16 -16
- package/dist/{chunk-A4HNF4MP.cjs → chunk-6KDGIOLP.cjs} +80 -80
- package/dist/chunk-AEVGCB3Y.cjs +417 -0
- package/dist/{chunk-CLILWI6O.cjs → chunk-BDTX2OEE.cjs} +32 -32
- package/dist/{chunk-YDGBRI3Y.cjs → chunk-BS4EZZCN.cjs} +13 -13
- package/dist/{chunk-JPZ4Y6X3.cjs → chunk-C5NERNE6.cjs} +89 -89
- package/dist/{chunk-YUXRIR45.cjs → chunk-CC3LINHF.cjs} +95 -47
- package/dist/{chunk-53XZ6MJ5.cjs → chunk-CUF3IYIB.cjs} +28 -28
- package/dist/{chunk-FKKUQK4C.cjs → chunk-G37LT2ID.cjs} +5 -1
- package/dist/chunk-HELVKMRG.cjs +28 -0
- package/dist/{chunk-HEOD765R.cjs → chunk-HH4BMYDX.cjs} +23 -370
- package/dist/{chunk-4YPV4OI4.cjs → chunk-I46MQ4R5.cjs} +80 -80
- package/dist/{chunk-RAHRDJBP.cjs → chunk-MEDDKM3A.cjs} +2 -2
- package/dist/{chunk-3SWLL4IM.cjs → chunk-MVZ6XFPK.cjs} +6 -6
- package/dist/{chunk-TH4N726A.cjs → chunk-N466AJGN.cjs} +17 -17
- package/dist/{chunk-QP6QS3YU.cjs → chunk-OI7VCXYU.cjs} +48 -50
- package/dist/{chunk-25H2SZH7.cjs → chunk-OJ3XU3YZ.cjs} +4 -4
- package/dist/{chunk-JK75ZZP3.cjs → chunk-PRWBVIWW.cjs} +43 -43
- package/dist/chunk-PX7FY655.cjs +114 -0
- package/dist/{chunk-HLIJ3U2T.cjs → chunk-QMTC3BK3.cjs} +13 -11
- package/dist/{chunk-YJFN2W7A.cjs → chunk-RIXGLS5Y.cjs} +3 -3
- package/dist/{chunk-BFHLGEJK.cjs → chunk-SJRR745G.cjs} +61 -58
- package/dist/{chunk-6V4GEE55.cjs → chunk-TLDCSTTQ.cjs} +8 -8
- package/dist/{chunk-RBOIGJYF.cjs → chunk-XOQ2UUVS.cjs} +4 -4
- package/dist/{chunk-32ENYVFA.cjs → chunk-YGKVHSNQ.cjs} +42 -42
- package/dist/{chunk-HY2KTQSL.cjs → chunk-ZWMPAFGB.cjs} +183 -183
- package/dist/{cloud-tenants-SC4FNAC2.cjs → cloud-tenants-ILRE74JY.cjs} +16 -16
- package/dist/components/agent-identity.d.ts +8 -0
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +13 -1
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/faq/index.cjs +17 -17
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/help-center-pages/index.cjs +127 -127
- package/dist/components/index.cjs +79 -72
- package/dist/components/meeting-scheduler/index.cjs +47 -47
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/onboarding-guides/index.cjs +19 -19
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -1
- package/dist/components/product-demo/screens/remote-desktop-picture.js +2 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/tickets/index.cjs +20 -20
- package/dist/components/ui/device-wallpaper.d.ts +7 -0
- package/dist/components/ui/device-wallpaper.d.ts.map +1 -0
- package/dist/components/ui/device-wallpaper.js +5 -0
- package/dist/components/ui/feature-list.d.ts +9 -4
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +26 -35
- package/dist/components/ui/index.cjs +22 -16
- package/dist/components/ui/index.d.ts +3 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/components/ui/notification-stack.d.ts +33 -0
- package/dist/components/ui/notification-stack.d.ts.map +1 -0
- package/dist/components/ui/notification-stack.js +78 -0
- package/dist/components/ui/numbered-step.d.ts +29 -0
- package/dist/components/ui/numbered-step.d.ts.map +1 -0
- package/dist/components/ui/numbered-step.js +57 -0
- package/dist/components/ui/phone-frame.d.ts +14 -9
- package/dist/components/ui/phone-frame.d.ts.map +1 -1
- package/dist/components/ui/phone-frame.js +50 -6
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.js +68 -0
- package/dist/components/ui/snap-carousel.d.ts +5 -8
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +2 -27
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +30 -20
- package/dist/{devices-7MHSJNXS.cjs → devices-A6SFNGE4.cjs} +17 -17
- package/dist/{embeddable-chat-VPIG3F7E.cjs → embeddable-chat-BKPYNOIM.cjs} +80 -80
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/ui/use-autoplay.d.ts +50 -13
- package/dist/hooks/ui/use-autoplay.d.ts.map +1 -1
- package/dist/hooks/ui/use-autoplay.js +76 -13
- package/dist/hooks/ui/use-in-view.d.ts +8 -0
- package/dist/hooks/ui/use-in-view.d.ts.map +1 -1
- package/dist/hooks/ui/use-in-view.js +21 -36
- package/dist/hooks/use-agent-identities.d.ts +6 -0
- package/dist/hooks/use-agent-identities.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.d.ts +26 -9
- package/dist/hooks/use-scenario-player.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.js +12 -9
- package/dist/index.cjs +51 -44
- package/dist/{knowledge-4DREGSOZ.cjs → knowledge-5ZCVKUYV.cjs} +17 -17
- package/dist/{logs-BWXNT2KP.cjs → logs-CL4OJASB.cjs} +24 -24
- package/dist/{policies-MGFUI23M.cjs → policies-7D44ZVS5.cjs} +20 -20
- package/dist/{remote-session-O6QGXV2N.cjs → remote-session-QB3CIZRM.cjs} +5 -4
- package/dist/{software-update-7LF7XEYC.cjs → software-update-AX6TZL26.cjs} +20 -20
- package/dist/{tickets-board-KNXK747O.cjs → tickets-board-7FAV2YWF.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +20 -1
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +2 -1
- package/src/components/ui/device-wallpaper.ts +7 -0
- package/src/components/ui/feature-list.tsx +24 -30
- package/src/components/ui/index.ts +3 -1
- package/src/components/ui/notification-stack.tsx +133 -0
- package/src/components/ui/numbered-step.tsx +81 -0
- package/src/components/ui/phone-frame.tsx +83 -19
- package/src/components/ui/phone-glyphs/lock-camera-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/lock-flashlight-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/status-bar-glyphs.tsx +45 -0
- package/src/components/ui/snap-carousel.tsx +6 -38
- package/src/components/ui/tab-navigation.tsx +49 -21
- package/src/hooks/ui/use-autoplay.ts +144 -27
- package/src/hooks/ui/use-in-view.ts +31 -38
- package/src/hooks/use-agent-identities.ts +6 -0
- package/src/hooks/use-scenario-player.ts +44 -20
- package/dist/chunk-2WXLQ5R5.cjs +0 -99
- package/dist/chunk-BE2WAMG5.cjs +0 -54
- package/dist/chunk-LCTDHLDL.cjs +0 -43
- package/dist/components/ui/playback-toggle.d.ts +0 -24
- package/dist/components/ui/playback-toggle.d.ts.map +0 -1
- package/dist/components/ui/playback-toggle.js +0 -32
- package/src/components/ui/playback-toggle.tsx +0 -53
|
@@ -145,63 +145,111 @@ function useInView({
|
|
|
145
145
|
rootMargin = "0px",
|
|
146
146
|
initial = false
|
|
147
147
|
} = {}) {
|
|
148
|
-
const [
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if (!entry) return;
|
|
169
|
-
const ofElement = entry.intersectionRatio >= threshold;
|
|
170
|
-
const viewportHeight = _nullishCoalesce(_optionalChain([entry, 'access', _10 => _10.rootBounds, 'optionalAccess', _11 => _11.height]), () => ( 0));
|
|
171
|
-
const ofViewport = viewportHeight > 0 && (_nullishCoalesce(_optionalChain([entry, 'access', _12 => _12.intersectionRect, 'optionalAccess', _13 => _13.height]), () => ( 0))) >= viewportHeight * threshold;
|
|
172
|
-
setInView(entry.isIntersecting && (ofElement || ofViewport));
|
|
173
|
-
},
|
|
174
|
-
{ threshold: STEPS, rootMargin }
|
|
175
|
-
);
|
|
176
|
-
observer.observe(node);
|
|
177
|
-
observerRef.current = observer;
|
|
178
|
-
},
|
|
179
|
-
[disconnect, threshold, rootMargin, initial]
|
|
180
|
-
);
|
|
181
|
-
_react.useEffect.call(void 0, () => disconnect, [disconnect]);
|
|
182
|
-
return { ref, inView };
|
|
148
|
+
const [node, setNode] = _react.useState.call(void 0, null);
|
|
149
|
+
const [seen, setSeen] = _react.useState.call(void 0, null);
|
|
150
|
+
_react.useEffect.call(void 0, () => {
|
|
151
|
+
if (!node || typeof IntersectionObserver === "undefined") return void 0;
|
|
152
|
+
const observer = new IntersectionObserver(
|
|
153
|
+
(entries) => {
|
|
154
|
+
const entry = entries[entries.length - 1];
|
|
155
|
+
if (!entry) return;
|
|
156
|
+
const ofElement = entry.intersectionRatio >= threshold;
|
|
157
|
+
const viewportHeight = _nullishCoalesce(_optionalChain([entry, 'access', _7 => _7.rootBounds, 'optionalAccess', _8 => _8.height]), () => ( 0));
|
|
158
|
+
const ofViewport = viewportHeight > 0 && (_nullishCoalesce(_optionalChain([entry, 'access', _9 => _9.intersectionRect, 'optionalAccess', _10 => _10.height]), () => ( 0))) >= viewportHeight * threshold;
|
|
159
|
+
setSeen({ node, inView: entry.isIntersecting && (ofElement || ofViewport) });
|
|
160
|
+
},
|
|
161
|
+
{ threshold: STEPS, rootMargin }
|
|
162
|
+
);
|
|
163
|
+
observer.observe(node);
|
|
164
|
+
return () => observer.disconnect();
|
|
165
|
+
}, [node, threshold, rootMargin]);
|
|
166
|
+
const inView = !node ? false : _optionalChain([seen, 'optionalAccess', _11 => _11.node]) === node ? seen.inView : initial;
|
|
167
|
+
return { ref: setNode, inView };
|
|
183
168
|
}
|
|
184
169
|
|
|
185
170
|
// src/hooks/ui/use-autoplay.ts
|
|
186
171
|
|
|
172
|
+
function listen(target, events, onChange) {
|
|
173
|
+
const controller = new AbortController();
|
|
174
|
+
for (const event of events) target.addEventListener(event, onChange, { signal: controller.signal });
|
|
175
|
+
return () => controller.abort();
|
|
176
|
+
}
|
|
177
|
+
var subscribeToTab = (onChange) => {
|
|
178
|
+
const stopDocument = listen(document, ["visibilitychange"], onChange);
|
|
179
|
+
const stopWindow = listen(window, ["pageshow"], onChange);
|
|
180
|
+
return () => {
|
|
181
|
+
stopDocument();
|
|
182
|
+
stopWindow();
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
var tabIsHidden = () => document.visibilityState === "hidden";
|
|
186
|
+
var never = () => false;
|
|
187
|
+
var RELEASE_EVENTS = ["pointerup", "pointercancel", "mouseup", "touchend", "dragend", "blur"];
|
|
187
188
|
function useAutoplay(onScreen) {
|
|
188
189
|
const reducedState = usePrefersReducedMotionState();
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
_react.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
190
|
+
const tabHidden = _react.useSyncExternalStore.call(void 0, subscribeToTab, tabIsHidden, never);
|
|
191
|
+
const host = _react.useRef.call(void 0, null);
|
|
192
|
+
const keyboardCameIn = _react.useRef.call(void 0, false);
|
|
193
|
+
const subscribeToKeyboard = _react.useCallback.call(void 0, (onChange) => {
|
|
194
|
+
const usedPointer = () => {
|
|
195
|
+
keyboardCameIn.current = false;
|
|
196
|
+
onChange();
|
|
197
|
+
};
|
|
198
|
+
const stopFocus = listen(document, ["focusin", "focusout", "visibilitychange"], onChange);
|
|
199
|
+
const stopPointer = listen(document, ["pointerdown", "pointermove"], usedPointer);
|
|
200
|
+
const stopWindow = listen(window, ["focus", "blur"], onChange);
|
|
196
201
|
return () => {
|
|
197
|
-
|
|
198
|
-
|
|
202
|
+
stopFocus();
|
|
203
|
+
stopPointer();
|
|
204
|
+
stopWindow();
|
|
199
205
|
};
|
|
200
206
|
}, []);
|
|
207
|
+
const keyboardIsInside = _react.useCallback.call(void 0, () => {
|
|
208
|
+
if (!keyboardCameIn.current) return false;
|
|
209
|
+
const inside = !!_optionalChain([host, 'access', _12 => _12.current, 'optionalAccess', _13 => _13.isConnected]) && host.current.contains(document.activeElement);
|
|
210
|
+
if (!inside) keyboardCameIn.current = false;
|
|
211
|
+
return inside;
|
|
212
|
+
}, []);
|
|
213
|
+
const focused = _react.useSyncExternalStore.call(void 0, subscribeToKeyboard, keyboardIsInside, never);
|
|
214
|
+
const [pressed, setPressed] = _react.useState.call(void 0, false);
|
|
215
|
+
const holdProps = _react.useMemo.call(void 0,
|
|
216
|
+
() => ({
|
|
217
|
+
onPointerDown: (event) => {
|
|
218
|
+
host.current = event.currentTarget;
|
|
219
|
+
setPressed(true);
|
|
220
|
+
const released = new AbortController();
|
|
221
|
+
const release2 = () => {
|
|
222
|
+
setPressed(false);
|
|
223
|
+
released.abort();
|
|
224
|
+
};
|
|
225
|
+
for (const type of RELEASE_EVENTS) window.addEventListener(type, release2, { signal: released.signal });
|
|
226
|
+
window.addEventListener(
|
|
227
|
+
"pointermove",
|
|
228
|
+
(move) => {
|
|
229
|
+
if (move.buttons === 0) release2();
|
|
230
|
+
},
|
|
231
|
+
{ signal: released.signal }
|
|
232
|
+
);
|
|
233
|
+
},
|
|
234
|
+
onFocus: (event) => {
|
|
235
|
+
host.current = event.currentTarget;
|
|
236
|
+
if (event.target.matches(":focus-visible")) keyboardCameIn.current = true;
|
|
237
|
+
}
|
|
238
|
+
}),
|
|
239
|
+
[]
|
|
240
|
+
);
|
|
241
|
+
const [, setReleases] = _react.useState.call(void 0, 0);
|
|
242
|
+
const release = _react.useCallback.call(void 0, () => {
|
|
243
|
+
keyboardCameIn.current = false;
|
|
244
|
+
setPressed(false);
|
|
245
|
+
setReleases((count) => count + 1);
|
|
246
|
+
}, []);
|
|
247
|
+
const held = pressed || focused;
|
|
201
248
|
return {
|
|
202
|
-
playing: onScreen && !
|
|
203
|
-
|
|
204
|
-
|
|
249
|
+
playing: onScreen && !held && !tabHidden && reducedState === false,
|
|
250
|
+
held,
|
|
251
|
+
holdProps,
|
|
252
|
+
release,
|
|
205
253
|
reducedMotion: reducedState === true
|
|
206
254
|
};
|
|
207
255
|
}
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk22ZK7BA3cjs = require('./chunk-22ZK7BA3.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkG37LT2IDcjs = require('./chunk-G37LT2ID.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkSJRR745Gcjs = require('./chunk-SJRR745G.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk6KDGIOLPcjs = require('./chunk-6KDGIOLP.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkZWMPAFGBcjs = require('./chunk-ZWMPAFGB.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkXOQ2UUVScjs = require('./chunk-XOQ2UUVS.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkZWMPAFGBcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkSJRR745Gcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkSJRR745Gcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkSJRR745Gcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkXOQ2UUVScjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkXOQ2UUVScjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk6KDGIOLPcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22ZK7BA3cjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkG37LT2IDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkG37LT2IDcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkG37LT2IDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkG37LT2IDcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkG37LT2IDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkG37LT2IDcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunk22ZK7BA3cjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkZWMPAFGBcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkZWMPAFGBcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -2999,6 +2999,8 @@ function RemoteSessionStorageAlert({ scope, capacity, className }) {
|
|
|
2999
2999
|
);
|
|
3000
3000
|
}
|
|
3001
3001
|
|
|
3002
|
+
// src/components/ui/device-wallpaper.ts
|
|
3003
|
+
var DEVICE_WALLPAPER_CLASS = "bg-gradient-to-br from-ods-flamingo-cyan-secondary via-ods-bg-surface to-ods-flamingo-pink-secondary";
|
|
3002
3004
|
|
|
3003
3005
|
|
|
3004
3006
|
|
|
@@ -3056,4 +3058,6 @@ function RemoteSessionStorageAlert({ scope, capacity, className }) {
|
|
|
3056
3058
|
|
|
3057
3059
|
|
|
3058
3060
|
|
|
3059
|
-
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
exports.SplitButton = SplitButton; exports.HiddenTagsPopup = HiddenTagsPopup; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.BACK_BUTTON_SKELETON_CLASS = BACK_BUTTON_SKELETON_CLASS; exports.BackButton = BackButton; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.RemoteSessionViewers = RemoteSessionViewers; exports.RemoteSessionScope = RemoteSessionScope; exports.RemoteSessionOrgLogo = RemoteSessionOrgLogo; exports.RemoteSessionRecordingTag = RemoteSessionRecordingTag; exports.REMOTE_SESSION_DRAG_HANDLE_CLASS = REMOTE_SESSION_DRAG_HANDLE_CLASS; exports.RemoteSessionDragger = RemoteSessionDragger; exports.formatRemoteSessionElapsed = formatRemoteSessionElapsed; exports.useRemoteSessionTimer = useRemoteSessionTimer; exports.RemoteAccessRequestCard = RemoteAccessRequestCard; exports.RemoteSessionBlockFrame = RemoteSessionBlockFrame; exports.RemoteSessionEndButton = RemoteSessionEndButton; exports.RemoteSessionSummary = RemoteSessionSummary; exports.RemoteSessionMinimizedChip = RemoteSessionMinimizedChip; exports.RemoteSessionChatPanel = RemoteSessionChatPanel; exports.RemoteDesktopChatMessageRow = RemoteDesktopChatMessageRow; exports.REMOTE_DESKTOP_CHAT_END_USER_NAME = REMOTE_DESKTOP_CHAT_END_USER_NAME; exports.RemoteDesktopChatPanel = RemoteDesktopChatPanel; exports.RemoteDesktopFullscreenToolbar = RemoteDesktopFullscreenToolbar; exports.RemoteDesktopView = RemoteDesktopView; exports.RemoteDesktopViewSkeleton = RemoteDesktopViewSkeleton; exports.RemoteSessionDialog = RemoteSessionDialog; exports.RemoteSessionBorder = RemoteSessionBorder; exports.RemoteSessionPill = RemoteSessionPill; exports.REMOTE_SESSION_KEEP_REASON_LABELS = REMOTE_SESSION_KEEP_REASON_LABELS; exports.KeepRecordingModal = KeepRecordingModal; exports.ReleaseKeepingModal = ReleaseKeepingModal; exports.AssignTicketModal = AssignTicketModal; exports.UnassignTicketModal = UnassignTicketModal; exports.formatRemoteSessionOffset = formatRemoteSessionOffset; exports.RemoteSessionEventList = RemoteSessionEventList; exports.RemoteSessionTimelineMarkers = RemoteSessionTimelineMarkers; exports.RemoteSessionStatusTag = RemoteSessionStatusTag; exports.RemoteSessionExpiry = RemoteSessionExpiry; exports.RemoteSessionStorageAlert = RemoteSessionStorageAlert; exports.DEVICE_WALLPAPER_CLASS = DEVICE_WALLPAPER_CLASS;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkMANNIJ42cjs = require('./chunk-MANNIJ42.cjs');
|
|
5
|
+
|
|
6
|
+
// src/components/tool-icon.tsx
|
|
7
|
+
var _react = require('react');
|
|
8
|
+
var TOOL_ICONS = /* @__PURE__ */ new Map();
|
|
9
|
+
function toolIcon(toolType) {
|
|
10
|
+
const known = TOOL_ICONS.get(toolType);
|
|
11
|
+
if (known !== void 0) return known;
|
|
12
|
+
const words = toolType.toLowerCase().split("_").filter(Boolean);
|
|
13
|
+
let icon = null;
|
|
14
|
+
for (let count = words.length; count >= 1 && !icon; count -= 1) {
|
|
15
|
+
icon = _chunkMANNIJ42cjs.findIcon.call(void 0, `${words.slice(0, count).join("-")}-logo-grey`);
|
|
16
|
+
}
|
|
17
|
+
TOOL_ICONS.set(toolType, icon);
|
|
18
|
+
return icon;
|
|
19
|
+
}
|
|
20
|
+
var ToolIcon = ({ toolType, size = 16, className }) => {
|
|
21
|
+
const icon = toolIcon(toolType);
|
|
22
|
+
return icon ? _react.createElement.call(void 0, icon, { size, className }) : null;
|
|
23
|
+
};
|
|
24
|
+
ToolIcon.displayName = "ToolIcon";
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.ToolIcon = ToolIcon;
|