@adminide-stack/clock-tik-browser 12.0.30 → 12.0.32
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/lib/pages/Home/HomePage.d.ts.map +1 -1
- package/lib/pages/Home/HomePage.js +1091 -325
- package/lib/pages/Home/HomePage.js.map +1 -1
- package/lib/pages/Home/__tests__/device.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/device.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/failure.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/failure.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/qr.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/qr.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/textLink.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/textLink.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/timeBack.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/timeBack.test.d.ts.map +1 -0
- package/lib/pages/Home/assets.js +0 -2
- package/lib/pages/Home/assets.js.map +1 -1
- package/lib/pages/Home/chat/ChoresChat.d.ts +3 -1
- package/lib/pages/Home/chat/ChoresChat.d.ts.map +1 -1
- package/lib/pages/Home/chat/ChoresChat.js +212 -31
- package/lib/pages/Home/chat/ChoresChat.js.map +1 -1
- package/lib/pages/Home/chat/chatTheme.d.ts +2 -1
- package/lib/pages/Home/chat/chatTheme.d.ts.map +1 -1
- package/lib/pages/Home/chat/chatTheme.js +298 -15
- package/lib/pages/Home/chat/chatTheme.js.map +1 -1
- package/lib/pages/Home/chat/failure.d.ts +8 -0
- package/lib/pages/Home/chat/failure.d.ts.map +1 -0
- package/lib/pages/Home/chat/failure.js +24 -0
- package/lib/pages/Home/chat/failure.js.map +1 -0
- package/lib/pages/Home/chat/thread.d.ts +5 -0
- package/lib/pages/Home/chat/thread.d.ts.map +1 -1
- package/lib/pages/Home/chat/thread.js +24 -1
- package/lib/pages/Home/chat/thread.js.map +1 -1
- package/lib/pages/Home/content.d.ts +38 -16
- package/lib/pages/Home/content.d.ts.map +1 -1
- package/lib/pages/Home/content.js +79 -30
- package/lib/pages/Home/content.js.map +1 -1
- package/lib/pages/Home/homeStyles.d.ts +2 -0
- package/lib/pages/Home/homeStyles.d.ts.map +1 -1
- package/lib/pages/Home/homeStyles.js +1902 -491
- package/lib/pages/Home/homeStyles.js.map +1 -1
- package/lib/pages/Home/imessage/ImessageDialog.d.ts +14 -0
- package/lib/pages/Home/imessage/ImessageDialog.d.ts.map +1 -0
- package/lib/pages/Home/imessage/ImessageDialog.js +277 -0
- package/lib/pages/Home/imessage/ImessageDialog.js.map +1 -0
- package/lib/pages/Home/imessage/ImessageIcon.d.ts +5 -0
- package/lib/pages/Home/imessage/ImessageIcon.d.ts.map +1 -0
- package/lib/pages/Home/imessage/ImessageIcon.js +42 -0
- package/lib/pages/Home/imessage/ImessageIcon.js.map +1 -0
- package/lib/pages/Home/imessage/QrCode.d.ts +6 -0
- package/lib/pages/Home/imessage/QrCode.d.ts.map +1 -0
- package/lib/pages/Home/imessage/QrCode.js +86 -0
- package/lib/pages/Home/imessage/QrCode.js.map +1 -0
- package/lib/pages/Home/imessage/device.d.ts +31 -0
- package/lib/pages/Home/imessage/device.d.ts.map +1 -0
- package/lib/pages/Home/imessage/device.js +31 -0
- package/lib/pages/Home/imessage/device.js.map +1 -0
- package/lib/pages/Home/imessage/qr.d.ts +42 -0
- package/lib/pages/Home/imessage/qr.d.ts.map +1 -0
- package/lib/pages/Home/imessage/qr.js +469 -0
- package/lib/pages/Home/imessage/qr.js.map +1 -0
- package/lib/pages/Home/imessage/textLink.d.ts +70 -0
- package/lib/pages/Home/imessage/textLink.d.ts.map +1 -0
- package/lib/pages/Home/imessage/textLink.js +224 -0
- package/lib/pages/Home/imessage/textLink.js.map +1 -0
- package/lib/pages/Home/index.d.ts +15 -0
- package/lib/pages/Home/index.d.ts.map +1 -1
- package/lib/pages/Home/index.js +23 -28
- package/lib/pages/Home/index.js.map +1 -1
- package/lib/pages/Home/platform.d.ts +5 -0
- package/lib/pages/Home/platform.d.ts.map +1 -1
- package/lib/pages/Home/platform.js +8 -1
- package/lib/pages/Home/platform.js.map +1 -1
- package/lib/pages/Home/timeBack.d.ts +10 -0
- package/lib/pages/Home/timeBack.d.ts.map +1 -0
- package/lib/pages/Home/timeBack.js +12 -0
- package/lib/pages/Home/timeBack.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
2
2
|
.cbh-chat {
|
|
3
|
-
--background:
|
|
4
|
-
--foreground: 30
|
|
3
|
+
--background: 30 100% 98%; /* #fffaf5 */
|
|
4
|
+
--foreground: 30 13% 9%; /* #1a1714 */
|
|
5
5
|
--card: 0 0% 100%;
|
|
6
|
-
--card-foreground: 30
|
|
6
|
+
--card-foreground: 30 13% 9%;
|
|
7
7
|
--popover: 0 0% 100%;
|
|
8
|
-
--popover-foreground: 30
|
|
9
|
-
--primary: 30
|
|
10
|
-
--primary-foreground:
|
|
11
|
-
--secondary: 26 100% 95.
|
|
12
|
-
--secondary-foreground: 30
|
|
13
|
-
--muted: 26 100% 95.
|
|
8
|
+
--popover-foreground: 30 13% 9%;
|
|
9
|
+
--primary: 30 13% 9%; /* ink, as the page's buttons */
|
|
10
|
+
--primary-foreground: 30 100% 98%;
|
|
11
|
+
--secondary: 26 100% 95.9%;
|
|
12
|
+
--secondary-foreground: 30 13% 9%;
|
|
13
|
+
--muted: 26 100% 95.9%; /* #fff3ea */
|
|
14
14
|
--muted-foreground: 30 7.8% 40.4%; /* #6f675f */
|
|
15
|
-
--accent: 26 100% 95.
|
|
16
|
-
--accent-foreground: 30
|
|
15
|
+
--accent: 26 100% 95.9%;
|
|
16
|
+
--accent-foreground: 30 13% 9%;
|
|
17
17
|
--destructive: 0 72% 46%;
|
|
18
18
|
--destructive-foreground: 0 0% 100%;
|
|
19
|
-
--border: 29
|
|
20
|
-
--input: 29
|
|
19
|
+
--border: 30 29.6% 89.4%; /* #ece4dc */
|
|
20
|
+
--input: 30 29.6% 89.4%;
|
|
21
21
|
--ring: 21 100% 36.1%; /* #b84100 */
|
|
22
|
-
--radius: 0.
|
|
22
|
+
--radius: 0.875rem;
|
|
23
|
+
/* The business layout's base styles set every element's font to var(--font-family). */
|
|
24
|
+
--font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
25
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
23
26
|
color-scheme: light;
|
|
24
|
-
font-family: -
|
|
27
|
+
font-family: var(--font-family);
|
|
25
28
|
line-height: 1.5;
|
|
26
29
|
-webkit-font-smoothing: antialiased;
|
|
27
30
|
}
|
|
@@ -31,6 +34,286 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
31
34
|
background: transparent;
|
|
32
35
|
border-top-color: transparent;
|
|
33
36
|
}
|
|
37
|
+
|
|
38
|
+
/* the empty chat: Lucy's greeting. chat-pro pads its empty state (py-8 px-4) around what fills it;
|
|
39
|
+
the welcome takes that room above it into its own top padding (36px + 32px) and drops the rest,
|
|
40
|
+
so none of the chat's height goes to padding twice. */
|
|
41
|
+
.cbh-chat :has(> .cbh-chat-welcome) {
|
|
42
|
+
padding: 0;
|
|
43
|
+
}
|
|
44
|
+
.cbh-chat .cbh-chat-welcome {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
align-items: center;
|
|
48
|
+
width: 100%;
|
|
49
|
+
max-width: 640px;
|
|
50
|
+
margin: 0 auto;
|
|
51
|
+
padding: 68px 8px 12px;
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
.cbh-chat .cbh-chat-welcome > * {
|
|
55
|
+
animation: cbh-chat-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
56
|
+
}
|
|
57
|
+
.cbh-chat .cbh-chat-welcome > :nth-child(2) {
|
|
58
|
+
animation-delay: 0.05s;
|
|
59
|
+
}
|
|
60
|
+
.cbh-chat .cbh-chat-welcome > :nth-child(3) {
|
|
61
|
+
animation-delay: 0.1s;
|
|
62
|
+
}
|
|
63
|
+
.cbh-chat .cbh-chat-welcome > :nth-child(4) {
|
|
64
|
+
animation-delay: 0.15s;
|
|
65
|
+
}
|
|
66
|
+
.cbh-chat .cbh-chat-welcome > :nth-child(n + 5) {
|
|
67
|
+
animation-delay: 0.2s;
|
|
68
|
+
}
|
|
69
|
+
.cbh-chat .cbh-chat-halo {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: grid;
|
|
72
|
+
place-items: center;
|
|
73
|
+
width: 56px;
|
|
74
|
+
height: 56px;
|
|
75
|
+
margin-bottom: 18px;
|
|
76
|
+
border: 1px solid hsl(var(--border));
|
|
77
|
+
border-radius: 18px;
|
|
78
|
+
background: #fff;
|
|
79
|
+
box-shadow: 0 1px 2px rgba(48, 28, 8, 0.05), 0 10px 28px -14px rgba(48, 28, 8, 0.22);
|
|
80
|
+
}
|
|
81
|
+
.cbh-chat .cbh-chat-halo::before {
|
|
82
|
+
content: '';
|
|
83
|
+
position: absolute;
|
|
84
|
+
inset: -14px;
|
|
85
|
+
z-index: -1;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
background: conic-gradient(from 200deg, #ff5a00, #ffb36b, #ffd27a, #ff9a8a, #ff5a00);
|
|
88
|
+
filter: blur(14px);
|
|
89
|
+
opacity: 0.45;
|
|
90
|
+
animation: cbh-chat-spin 14s linear infinite;
|
|
91
|
+
}
|
|
92
|
+
.cbh-chat .cbh-chat-hello {
|
|
93
|
+
margin: 0;
|
|
94
|
+
font-size: 13px;
|
|
95
|
+
color: hsl(var(--muted-foreground));
|
|
96
|
+
}
|
|
97
|
+
.cbh-chat .cbh-chat-title {
|
|
98
|
+
margin: 6px 0 0;
|
|
99
|
+
--font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
|
|
100
|
+
font-family: var(--font-family);
|
|
101
|
+
font-weight: 400;
|
|
102
|
+
font-size: clamp(30px, 4.4vw, 42px);
|
|
103
|
+
line-height: 1.08;
|
|
104
|
+
letter-spacing: -0.015em;
|
|
105
|
+
color: hsl(var(--foreground));
|
|
106
|
+
text-wrap: balance;
|
|
107
|
+
}
|
|
108
|
+
.cbh-chat .cbh-chat-sub {
|
|
109
|
+
margin: 10px 0 0;
|
|
110
|
+
max-width: 30em;
|
|
111
|
+
font-size: 14.5px;
|
|
112
|
+
line-height: 1.55;
|
|
113
|
+
color: hsl(var(--muted-foreground));
|
|
114
|
+
}
|
|
115
|
+
.cbh-chat .cbh-chat-starters {
|
|
116
|
+
display: grid;
|
|
117
|
+
gap: 10px;
|
|
118
|
+
width: 100%;
|
|
119
|
+
margin-top: 26px;
|
|
120
|
+
}
|
|
121
|
+
@media (min-width: 640px) {
|
|
122
|
+
.cbh-chat .cbh-chat-starters {
|
|
123
|
+
grid-template-columns: 1fr 1fr;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.cbh-chat .cbh-chat-starter {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: flex-start;
|
|
129
|
+
gap: 12px;
|
|
130
|
+
padding: 14px;
|
|
131
|
+
border: 1px solid hsl(var(--border));
|
|
132
|
+
border-radius: 16px;
|
|
133
|
+
background: hsl(var(--card));
|
|
134
|
+
font: inherit;
|
|
135
|
+
text-align: left;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
|
|
138
|
+
}
|
|
139
|
+
.cbh-chat .cbh-chat-starter:hover:not(:disabled) {
|
|
140
|
+
transform: translateY(-2px);
|
|
141
|
+
border-color: rgba(255, 90, 0, 0.35);
|
|
142
|
+
box-shadow: 0 12px 24px -16px rgba(255, 90, 0, 0.55);
|
|
143
|
+
}
|
|
144
|
+
.cbh-chat .cbh-chat-starter:disabled {
|
|
145
|
+
opacity: 0.55;
|
|
146
|
+
cursor: default;
|
|
147
|
+
}
|
|
148
|
+
.cbh-chat .cbh-chat-starter:focus-visible,
|
|
149
|
+
.cbh-chat .cbh-chat-imsg:focus-visible {
|
|
150
|
+
outline: 2px solid hsl(var(--ring));
|
|
151
|
+
outline-offset: 2px;
|
|
152
|
+
}
|
|
153
|
+
.cbh-chat .cbh-chat-starter-icon {
|
|
154
|
+
flex: none;
|
|
155
|
+
display: grid;
|
|
156
|
+
place-items: center;
|
|
157
|
+
width: 34px;
|
|
158
|
+
height: 34px;
|
|
159
|
+
border-radius: 11px;
|
|
160
|
+
background: linear-gradient(160deg, #fff1e6, #ffe0cc);
|
|
161
|
+
color: #b84100;
|
|
162
|
+
}
|
|
163
|
+
.cbh-chat .cbh-chat-starter b {
|
|
164
|
+
display: block;
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
color: hsl(var(--foreground));
|
|
168
|
+
}
|
|
169
|
+
.cbh-chat .cbh-chat-starter small {
|
|
170
|
+
display: -webkit-box;
|
|
171
|
+
margin-top: 2px;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
-webkit-box-orient: vertical;
|
|
174
|
+
-webkit-line-clamp: 2;
|
|
175
|
+
font-size: 12.5px;
|
|
176
|
+
line-height: 1.4;
|
|
177
|
+
color: hsl(var(--muted-foreground));
|
|
178
|
+
}
|
|
179
|
+
.cbh-chat .cbh-chat-imsg {
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 8px;
|
|
183
|
+
height: 40px;
|
|
184
|
+
margin-top: 18px;
|
|
185
|
+
padding: 0 14px 0 8px;
|
|
186
|
+
border: 0;
|
|
187
|
+
border-radius: 999px;
|
|
188
|
+
background: hsl(var(--card));
|
|
189
|
+
color: hsl(var(--foreground));
|
|
190
|
+
font: inherit;
|
|
191
|
+
font-size: 13.5px;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
box-shadow: 0 0 0 1px hsl(var(--border)), 0 6px 18px -12px rgba(48, 28, 8, 0.35);
|
|
196
|
+
transition: transform 0.2s ease, box-shadow 0.25s ease;
|
|
197
|
+
}
|
|
198
|
+
.cbh-chat .cbh-chat-imsg:hover {
|
|
199
|
+
transform: translateY(-1px);
|
|
200
|
+
box-shadow: 0 0 0 1px rgba(18, 191, 56, 0.55), 0 12px 24px -12px rgba(18, 191, 56, 0.6);
|
|
201
|
+
}
|
|
202
|
+
.cbh-chat .cbh-chat-imsg span {
|
|
203
|
+
font-weight: 500;
|
|
204
|
+
color: hsl(var(--muted-foreground));
|
|
205
|
+
}
|
|
206
|
+
/* A phone: the welcome fits the chat without scrolling. The kit opens an empty chat scrolled to its
|
|
207
|
+
foot, so a welcome taller than the chat starts with Lucy's greeting cut off above the top. The
|
|
208
|
+
starters become one-line rows (their full wording is still read out) and the halo is smaller. */
|
|
209
|
+
@media (max-width: 639px) {
|
|
210
|
+
.cbh-chat .cbh-chat-welcome {
|
|
211
|
+
padding: 12px 0 4px;
|
|
212
|
+
}
|
|
213
|
+
.cbh-chat .cbh-chat-halo {
|
|
214
|
+
width: 44px;
|
|
215
|
+
height: 44px;
|
|
216
|
+
margin-bottom: 12px;
|
|
217
|
+
border-radius: 14px;
|
|
218
|
+
}
|
|
219
|
+
.cbh-chat .cbh-chat-halo::before {
|
|
220
|
+
inset: -10px;
|
|
221
|
+
filter: blur(10px);
|
|
222
|
+
}
|
|
223
|
+
.cbh-chat .cbh-chat-halo svg {
|
|
224
|
+
width: 24px;
|
|
225
|
+
height: 24px;
|
|
226
|
+
}
|
|
227
|
+
.cbh-chat .cbh-chat-title {
|
|
228
|
+
font-size: 28px;
|
|
229
|
+
}
|
|
230
|
+
.cbh-chat .cbh-chat-sub {
|
|
231
|
+
margin-top: 8px;
|
|
232
|
+
font-size: 14px;
|
|
233
|
+
}
|
|
234
|
+
.cbh-chat .cbh-chat-starters {
|
|
235
|
+
gap: 8px;
|
|
236
|
+
margin-top: 18px;
|
|
237
|
+
}
|
|
238
|
+
.cbh-chat .cbh-chat-starter {
|
|
239
|
+
position: relative;
|
|
240
|
+
align-items: center;
|
|
241
|
+
padding: 9px 12px 9px 9px;
|
|
242
|
+
border-radius: 14px;
|
|
243
|
+
}
|
|
244
|
+
.cbh-chat .cbh-chat-starter-icon {
|
|
245
|
+
width: 30px;
|
|
246
|
+
height: 30px;
|
|
247
|
+
border-radius: 10px;
|
|
248
|
+
}
|
|
249
|
+
.cbh-chat .cbh-chat-starter > span:last-child {
|
|
250
|
+
min-width: 0;
|
|
251
|
+
}
|
|
252
|
+
.cbh-chat .cbh-chat-starter b {
|
|
253
|
+
overflow: hidden;
|
|
254
|
+
white-space: nowrap;
|
|
255
|
+
text-overflow: ellipsis;
|
|
256
|
+
}
|
|
257
|
+
.cbh-chat .cbh-chat-starter small {
|
|
258
|
+
position: absolute;
|
|
259
|
+
width: 1px;
|
|
260
|
+
height: 1px;
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
clip: rect(0 0 0 0);
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
}
|
|
265
|
+
.cbh-chat .cbh-chat-imsg {
|
|
266
|
+
margin-top: 14px;
|
|
267
|
+
}
|
|
268
|
+
/* "Prefer texting?" does not fit beside it on one line. */
|
|
269
|
+
.cbh-chat .cbh-chat-imsg span {
|
|
270
|
+
display: none;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/* A short chat (a phone with the browser's bars showing, a small phone): what the welcome can do
|
|
274
|
+
without goes before it would scroll - the halo (the header carries Lucy's mark), then the line
|
|
275
|
+
under the question, then the greeting and the iMessage pill (the header has iMessage too).
|
|
276
|
+
Measured on chat-pro's scroll area, so it is the room the welcome really has. */
|
|
277
|
+
.cbh-chat .ym-hide-scrollbar:has(.cbh-chat-welcome) {
|
|
278
|
+
container: cbh-chat-area / size;
|
|
279
|
+
}
|
|
280
|
+
@container cbh-chat-area (max-height: 540px) {
|
|
281
|
+
.cbh-chat .cbh-chat-halo {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
@container cbh-chat-area (max-height: 490px) {
|
|
286
|
+
.cbh-chat .cbh-chat-sub {
|
|
287
|
+
display: none;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
@container cbh-chat-area (max-height: 430px) {
|
|
291
|
+
.cbh-chat .cbh-chat-hello,
|
|
292
|
+
.cbh-chat .cbh-chat-imsg {
|
|
293
|
+
display: none;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
@keyframes cbh-chat-rise {
|
|
297
|
+
from {
|
|
298
|
+
opacity: 0;
|
|
299
|
+
transform: translateY(10px);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
@keyframes cbh-chat-spin {
|
|
303
|
+
to {
|
|
304
|
+
transform: rotate(360deg);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
@media (prefers-reduced-motion: reduce) {
|
|
308
|
+
.cbh-chat .cbh-chat-welcome > *,
|
|
309
|
+
.cbh-chat .cbh-chat-halo::before {
|
|
310
|
+
animation: none;
|
|
311
|
+
}
|
|
312
|
+
.cbh-chat .cbh-chat-starter,
|
|
313
|
+
.cbh-chat .cbh-chat-imsg {
|
|
314
|
+
transition: none;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
34
317
|
`;
|
|
35
318
|
function ChatTheme() {
|
|
36
319
|
// eslint-disable-next-line react/no-danger
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatTheme.js","sources":["../../../../src/pages/Home/chat/chatTheme.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"chatTheme.js","sources":["../../../../src/pages/Home/chat/chatTheme.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oCAQA,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ThB;SAEe,SAAS,GAAA;;SAEdA,GAAA,CAAA,OAAA,EAAA;AACX,IAAC,qBAAA,EAAA,IAAA;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What Lucy's reply says when a turn failed. A turn the agent itself reported failed carries its
|
|
3
|
+
* own sentence, written for people; anything else is said here.
|
|
4
|
+
*/
|
|
5
|
+
export declare function failureNote(err: unknown, online?: boolean): string;
|
|
6
|
+
/** Whether sending the chore again could help: not for an account that is out of credits. */
|
|
7
|
+
export declare function canRetry(err: unknown): boolean;
|
|
8
|
+
//# sourceMappingURL=failure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure.d.ts","sourceRoot":"","sources":["../../../../src/pages/Home/chat/failure.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,UAAmB,GAAG,MAAM,CAW3E;AAED,6FAA6F;AAC7F,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAE9C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {isSessionBusyError}from'@yantra/surface-kit/agent-chat';/**
|
|
2
|
+
* A chore that did not go through, said in plain words: what to do about it (check the connection,
|
|
3
|
+
* give it a moment), never the raw error ("Failed to fetch").
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* What Lucy's reply says when a turn failed. A turn the agent itself reported failed carries its
|
|
7
|
+
* own sentence, written for people; anything else is said here.
|
|
8
|
+
*/
|
|
9
|
+
function failureNote(err, online = navigator.onLine) {
|
|
10
|
+
if (isSessionBusyError(err)) {
|
|
11
|
+
return 'Lucy is still finishing the last chore and this one could not start. Try again in a moment, or start a new chat.';
|
|
12
|
+
}
|
|
13
|
+
const failed = err;
|
|
14
|
+
if (failed?.turnFailed && failed.message) return failed.message;
|
|
15
|
+
// No answer came back at all: this device is offline, or cannot reach Lucy from where it is.
|
|
16
|
+
if (failed?.dropped || err instanceof TypeError || !online) {
|
|
17
|
+
return 'Lucy can’t be reached right now. Check your connection and try again.';
|
|
18
|
+
}
|
|
19
|
+
return 'Lucy can’t be reached right now. Try again in a moment.';
|
|
20
|
+
}
|
|
21
|
+
/** Whether sending the chore again could help: not for an account that is out of credits. */
|
|
22
|
+
function canRetry(err) {
|
|
23
|
+
return err?.failureClass !== 'credits';
|
|
24
|
+
}export{canRetry,failureNote};//# sourceMappingURL=failure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure.js","sources":["../../../../src/pages/Home/chat/failure.ts"],"sourcesContent":[null],"names":[],"mappings":"gEAAA;;;AAGG;AAGH;;;AAGG;AACG,SAAU,WAAW,CAAC,GAAY,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,EAAA;AAC/D,EAAA,IAAA,kBAAsB,CAAA,GAAI,CAAA,EAAC;AACvB,IAAA,OAAA;;QAEE,MAAA,GAAS,GAAA;AACf,EAAA,IAAA,QAAU,UAAE,IAAc,MAAA,CAAA,OAAc,EAAA,OAAA,MAAA,CAAA,OAAA;;MACqD,MAAA,EAAA,OAAA,IAAA,GAAA,YAAA,SAAA,IAAA,CAAA,MAAA,EAAA;IAC7F,OAAI,uEAAyD;AACzD;SACH,yDAAA;AACD;AACJ;AAE6F,SAAA,QAAA,CAAA,GAAA,EAAA;AAC7F,EAAM,OAAA,GAAA,EAAA,YAA+B,KAAA,SAAA;AACjC"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* The agent holds the conversation itself; this is what lets a reload pick it back up.
|
|
7
7
|
* - The PENDING CHORE: what a signed-out visitor typed before signing in. Sign-in leaves the page
|
|
8
8
|
* and comes back, so it waits in sessionStorage (this tab only) and is sent once they are back.
|
|
9
|
+
* - The PENDING TEXT: a signed-out visitor asked to text Lucy on iMessage. It waits the same way,
|
|
10
|
+
* and the iMessage dialog opens once they are back.
|
|
9
11
|
*
|
|
10
12
|
* Every storage call is guarded: a private window or blocked storage just means nothing is kept.
|
|
11
13
|
*/
|
|
@@ -28,4 +30,7 @@ export declare function clearThread(account: string, storage?: Storage): void;
|
|
|
28
30
|
export declare function savePendingChore(text: string, storage?: Storage, now?: number): void;
|
|
29
31
|
/** The chore typed before sign-in, once: reading it removes it. '' when none, or too old. */
|
|
30
32
|
export declare function takePendingChore(storage?: Storage, now?: number): string;
|
|
33
|
+
export declare function savePendingImessage(storage?: Storage, now?: number): void;
|
|
34
|
+
/** Whether a visitor asked for iMessage before signing in, once: reading it removes it. */
|
|
35
|
+
export declare function takePendingImessage(storage?: Storage, now?: number): boolean;
|
|
31
36
|
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../src/pages/Home/chat/thread.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../src/pages/Home/chat/thread.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,WAAW,EAAE,CAAC;CAC3B;AAKD,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,QAAiB,CAAC;AAcjD,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIzD;AAED,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGpD;AAQD,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,OAAsB,GAAG,UAAU,CAcvF;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,OAAsB,GAAG,IAAI,CASrG;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,OAAsB,GAAG,IAAI,CAOlF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,OAAwB,EAAE,GAAG,SAAa,GAAG,IAAI,CAQxG;AAED,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,OAAwB,EAAE,GAAG,SAAa,GAAG,MAAM,CAY5F;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,OAAwB,EAAE,GAAG,SAAa,GAAG,IAAI,CAM7F;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,OAAwB,EAAE,GAAG,SAAa,GAAG,OAAO,CAWhG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const THREAD_PREFIX = 'cbh-chat:v1:';
|
|
2
2
|
const PENDING_KEY = 'cbh-pending-chore';
|
|
3
|
+
const PENDING_TEXT_KEY = 'cbh-pending-imessage';
|
|
3
4
|
/** The newest messages kept; older ones stay in the agent's own transcript. */
|
|
4
5
|
const THREAD_MAX_MESSAGES = 200;
|
|
5
6
|
/** A chore older than this was abandoned with its sign-in, not delayed by it. */
|
|
@@ -99,4 +100,26 @@ function takePendingChore(storage = sessionStorage, now = Date.now()) {
|
|
|
99
100
|
} catch {
|
|
100
101
|
return '';
|
|
101
102
|
}
|
|
102
|
-
}
|
|
103
|
+
}
|
|
104
|
+
function savePendingImessage(storage = sessionStorage, now = Date.now()) {
|
|
105
|
+
try {
|
|
106
|
+
storage.setItem(PENDING_TEXT_KEY, JSON.stringify({
|
|
107
|
+
at: now
|
|
108
|
+
}));
|
|
109
|
+
} catch {
|
|
110
|
+
/* the visitor taps "Text Lucy on iMessage" again after signing in */
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** Whether a visitor asked for iMessage before signing in, once: reading it removes it. */
|
|
114
|
+
function takePendingImessage(storage = sessionStorage, now = Date.now()) {
|
|
115
|
+
try {
|
|
116
|
+
const raw = storage.getItem(PENDING_TEXT_KEY);
|
|
117
|
+
if (!raw) return false;
|
|
118
|
+
storage.removeItem(PENDING_TEXT_KEY);
|
|
119
|
+
const parsed = JSON.parse(raw);
|
|
120
|
+
if (typeof parsed.at !== 'number') return false;
|
|
121
|
+
return now - parsed.at <= PENDING_MAX_AGE_MS && parsed.at <= now + 60_000;
|
|
122
|
+
} catch {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
}export{PENDING_MAX_AGE_MS,THREAD_MAX_MESSAGES,accountKeyFromToken,clearThread,emailFromToken,loadThread,savePendingChore,savePendingImessage,saveThread,takePendingChore,takePendingImessage};//# sourceMappingURL=thread.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.js","sources":["../../../../src/pages/Home/chat/thread.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thread.js","sources":["../../../../src/pages/Home/chat/thread.ts"],"sourcesContent":[null],"names":[],"mappings":"AAoBA,MAAM,aAAa,GAAG,cAAc;AACpC,MAAM,WAAW,GAAG,mBAAmB;AACvC,MAAM,gBAAgB,GAAG,sBAAsB;AAC/C;AACO,MAAM,mBAAmB,GAAG;AACnC;MACa,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG;AAE5C;AACA,SAAS,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EAAA;AACL,KAAC,CAAA,CAAA;AAED,GAAM,CAAA,MAAA;AACF;AACI;;AACF;SACuE,mBAAA,CAAA,OAAA,GAAA,cAAA,EAAA,GAAA,GAAA,IAAA,CAAA,GAAA,EAAA,EAAA;MACxE;AACL,IAAC,MAAA,GAAA,GAAA,OAAA,CAAA,OAAA,CAAA,gBAAA,CAAA;AAED,IAA2F,IAAA,CAAA,GAAA,EAAA,OAAA,KAAA;AAC3F,IAAM,OAAA,CAAA,UAA6B,CAAA,gBAAoB,CAAA;AACnD,IAAA,MAAK,MAAA,GAAA,IAAA,CAAA,KAAA,CAAA,GAAA,CAAA;QACD,OAAM,MAAa,CAAA,EAAA,aAAS,EAAA,OAAA,KAAA;AAC5B,IAAA,OAAA,GAAQ,GAAA,MAAA,CAAA,EAAA,IAAA,kBAAA,IAAA,MAAA,CAAA,EAAA,IAAA,GAAA,GAAA,MAAA;AAAE,GAAA,CAAA,MAAA;AACV,IAAA,OAAA,KAAQ;;AAER"}
|
|
@@ -26,7 +26,10 @@ export interface Area {
|
|
|
26
26
|
}
|
|
27
27
|
/** "Every corner of home life": each example is a button into the app. */
|
|
28
28
|
export declare const AREAS: Area[];
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Where the minutes come from (per day); the page lets a visitor pick the ones they would hand over.
|
|
31
|
+
* Housework stays at zero on purpose: it is physical.
|
|
32
|
+
*/
|
|
30
33
|
export declare const MINUTES: {
|
|
31
34
|
label: string;
|
|
32
35
|
min: number;
|
|
@@ -38,22 +41,41 @@ export declare const STEPS: {
|
|
|
38
41
|
title: string;
|
|
39
42
|
body: string;
|
|
40
43
|
}[];
|
|
44
|
+
/** What the hero composer types out while it waits: the chores people hand over first. */
|
|
45
|
+
export declare const TYPED_CHORES: string[];
|
|
46
|
+
/** The strip of chores under the hero: every one a button that hands it over. */
|
|
47
|
+
export declare const STRIP_CHORES: Chore[];
|
|
48
|
+
/**
|
|
49
|
+
* The live call card beside the reels: what Lucy is doing, step by step. A dramatization like the
|
|
50
|
+
* reels themselves (the internet bill one), not a transcript.
|
|
51
|
+
*/
|
|
52
|
+
export declare const CALL_STEPS: {
|
|
53
|
+
label: string;
|
|
54
|
+
detail: string;
|
|
55
|
+
}[];
|
|
56
|
+
/** The iMessage thread in the phone: drawn, not a transcript. */
|
|
57
|
+
export declare const TEXT_THREAD: {
|
|
58
|
+
from: 'you' | 'lucy';
|
|
59
|
+
text: string;
|
|
60
|
+
}[];
|
|
61
|
+
/** How texting Lucy starts, beside the phone. */
|
|
62
|
+
export declare const TEXT_STEPS: {
|
|
63
|
+
title: string;
|
|
64
|
+
body: string;
|
|
65
|
+
}[];
|
|
66
|
+
/** The questions people ask first. The page shows them and its FAQ structured data says the same. */
|
|
67
|
+
export declare const FAQS: {
|
|
68
|
+
q: string;
|
|
69
|
+
a: string;
|
|
70
|
+
}[];
|
|
41
71
|
export declare const FOOTNOTE = "Illustrative estimate: about 38 of the roughly 169 minutes of daily life admin, based on the U.S. BLS American Time Use Survey 2025. Results vary by household.";
|
|
42
72
|
export declare const VIDEO_NOTE = "Videos are dramatizations with AI voices and fictional companies.";
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
export declare const BUSINESS_PRODUCTS: BusinessProduct[];
|
|
52
|
-
export declare const BUSINESS_LINKS: {
|
|
53
|
-
readonly home: "";
|
|
54
|
-
readonly pricing: "/pricing";
|
|
55
|
-
readonly demo: "/demo";
|
|
56
|
-
readonly freelancers: "/freelancers";
|
|
57
|
-
readonly helpCenter: "/help-center";
|
|
73
|
+
/**
|
|
74
|
+
* The site-wide pages the footer links to. They are served under /business (see business.ts) but
|
|
75
|
+
* speak for all of Clockbook. A business itself is sent to Yantra (platform.ts yantraAppUrl).
|
|
76
|
+
*/
|
|
77
|
+
export declare const SITE_LINKS: {
|
|
78
|
+
readonly privacy: "/privacy";
|
|
79
|
+
readonly contact: "/contact-us";
|
|
58
80
|
};
|
|
59
81
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/pages/Home/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1G,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,mEAAmE;AACnE,eAAO,MAAM,WAAW,EAAE,KAAK,EA6B9B,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,aAAa,EAAE,KAAK,EAKhC,CAAC;AAEF,MAAM,WAAW,IAAI;IACjB,GAAG,EAAE,OAAO,GAAG,eAAe,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,EAAE,CAAC;CACnB;AAED,0EAA0E;AAC1E,eAAO,MAAM,KAAK,EAAE,IAAI,EAqFvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/pages/Home/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1G,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,C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M,CAAA;CAAE,EAIvD,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,IAAI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAqB1C,CAAC;AAEF,eAAO,MAAM,QAAQ,oKACgJ,CAAC;AACtK,eAAO,MAAM,UAAU,sEAAsE,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC"}
|
|
@@ -135,7 +135,10 @@ const AREAS = [{
|
|
|
135
135
|
prompt: 'Find me a cheaper flight for my trip next month.'
|
|
136
136
|
}]
|
|
137
137
|
}];
|
|
138
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Where the minutes come from (per day); the page lets a visitor pick the ones they would hand over.
|
|
140
|
+
* Housework stays at zero on purpose: it is physical.
|
|
141
|
+
*/
|
|
139
142
|
const MINUTES = [{
|
|
140
143
|
label: 'Shopping',
|
|
141
144
|
min: 17,
|
|
@@ -165,7 +168,7 @@ const MINUTES = [{
|
|
|
165
168
|
const HOUSEWORK_MIN = 34;
|
|
166
169
|
const STEPS = [{
|
|
167
170
|
title: 'Text it',
|
|
168
|
-
body: '
|
|
171
|
+
body: 'Right here, or from iMessage on your iPhone, iPad or Mac. Say it the way you would tell a friend.'
|
|
169
172
|
}, {
|
|
170
173
|
title: 'Clockbook handles it',
|
|
171
174
|
body: 'Lucy makes the calls, works the forms, compares the prices and keeps track.'
|
|
@@ -173,33 +176,79 @@ const STEPS = [{
|
|
|
173
176
|
title: 'You approve what matters',
|
|
174
177
|
body: 'Payments and account changes wait for your yes. When a company needs to hear from you, Lucy rings you in.'
|
|
175
178
|
}];
|
|
179
|
+
/** What the hero composer types out while it waits: the chores people hand over first. */
|
|
180
|
+
const TYPED_CHORES = ['Cancel my gym membership. They say I have to call.', 'Call my internet provider and ask for a better rate.', 'Book the dentist for the kids next week, after school.', 'Plan five easy dinners and make the grocery list.', 'Get a refund for my cancelled flight, not a voucher.', 'Find a plumber who can come this week.'];
|
|
181
|
+
/** The strip of chores under the hero: every one a button that hands it over. */
|
|
182
|
+
const STRIP_CHORES = [...HERO_CHORES.slice(5), ...AREAS.flatMap(a => a.chores)];
|
|
183
|
+
/**
|
|
184
|
+
* The live call card beside the reels: what Lucy is doing, step by step. A dramatization like the
|
|
185
|
+
* reels themselves (the internet bill one), not a transcript.
|
|
186
|
+
*/
|
|
187
|
+
const CALL_STEPS = [{
|
|
188
|
+
label: 'Calling your internet provider',
|
|
189
|
+
detail: 'From your account details'
|
|
190
|
+
}, {
|
|
191
|
+
label: 'Through the phone menu',
|
|
192
|
+
detail: 'Billing, then retention'
|
|
193
|
+
}, {
|
|
194
|
+
label: 'Waited on hold',
|
|
195
|
+
detail: '14 minutes, so you didn’t'
|
|
196
|
+
}, {
|
|
197
|
+
label: 'Asked for a better rate',
|
|
198
|
+
detail: 'And said no to the upsell'
|
|
199
|
+
}, {
|
|
200
|
+
label: 'New rate confirmed',
|
|
201
|
+
detail: '$35 a month less'
|
|
202
|
+
}];
|
|
203
|
+
/** The iMessage thread in the phone: drawn, not a transcript. */
|
|
204
|
+
const TEXT_THREAD = [{
|
|
205
|
+
from: 'you',
|
|
206
|
+
text: 'Can you cancel my gym? They say I have to call.'
|
|
207
|
+
}, {
|
|
208
|
+
from: 'lucy',
|
|
209
|
+
text: 'On it. I’ll call them now and say no to the offers.'
|
|
210
|
+
}, {
|
|
211
|
+
from: 'lucy',
|
|
212
|
+
text: 'Done. It’s cancelled with no fee, and the confirmation is in your email.'
|
|
213
|
+
}, {
|
|
214
|
+
from: 'you',
|
|
215
|
+
text: 'Amazing. Next: book the dentist for the kids?'
|
|
216
|
+
}];
|
|
217
|
+
/** How texting Lucy starts, beside the phone. */
|
|
218
|
+
const TEXT_STEPS = [{
|
|
219
|
+
title: 'Sign in',
|
|
220
|
+
body: 'A minute, and it sets up your account if you are new.'
|
|
221
|
+
}, {
|
|
222
|
+
title: 'Open Messages',
|
|
223
|
+
body: 'Tap Text Lucy on iMessage. Messages opens with “Hi Lucy” ready.'
|
|
224
|
+
}, {
|
|
225
|
+
title: 'Hit send',
|
|
226
|
+
body: 'That one text links your phone. Lucy answers right there, from then on.'
|
|
227
|
+
}];
|
|
228
|
+
/** The questions people ask first. The page shows them and its FAQ structured data says the same. */
|
|
229
|
+
const FAQS = [{
|
|
230
|
+
q: 'How much time does Clockbook save?',
|
|
231
|
+
a: 'About 38 minutes a day, roughly 4.4 hours a week, as an illustrative estimate based on the U.S. BLS American Time Use Survey 2025. Results vary by household.'
|
|
232
|
+
}, {
|
|
233
|
+
q: 'What can I hand over to Clockbook?',
|
|
234
|
+
a: 'Life admin: calls to customer care, scheduling calls and appointments, bills and fees, cancellations, subscriptions, household service quotes, groceries and shopping, family logistics and travel refunds or rebookings.'
|
|
235
|
+
}, {
|
|
236
|
+
q: 'Can Clockbook call a company for me?',
|
|
237
|
+
a: 'Yes. Clockbook makes the call, works the phone menu, waits on hold and talks to a real person. When the company needs to hear from you, it rings you in.'
|
|
238
|
+
}, {
|
|
239
|
+
q: 'Can I text Lucy on iMessage?',
|
|
240
|
+
a: 'Yes. Sign in, tap Text Lucy on iMessage, and Messages opens with a text to Lucy ready to send. That first text links your phone, and Lucy answers right there, on iPhone, iPad or Mac.'
|
|
241
|
+
}, {
|
|
242
|
+
q: 'Does Clockbook pay for things or change my accounts without asking?',
|
|
243
|
+
a: 'No. Payments and account changes wait for your approval.'
|
|
244
|
+
}];
|
|
176
245
|
const FOOTNOTE = 'Illustrative estimate: about 38 of the roughly 169 minutes of daily life admin, based on the U.S. BLS American Time Use Survey 2025. Results vary by household.';
|
|
177
246
|
const VIDEO_NOTE = 'Videos are dramatizations with AI voices and fictional companies.';
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
blurb: 'Onboarding, attendance, time off and the paperwork of a growing team, with approvals that learn your decisions.',
|
|
187
|
-
path: '/products/hrm'
|
|
188
|
-
}, {
|
|
189
|
-
key: 'books',
|
|
190
|
-
title: 'Books',
|
|
191
|
-
blurb: 'Invoices, expenses, payroll and the complete financial toolkit for a growing business.',
|
|
192
|
-
path: '/products/books'
|
|
193
|
-
}, {
|
|
194
|
-
key: 'workflows',
|
|
195
|
-
title: 'Workflows',
|
|
196
|
-
blurb: 'Automate the back office with visual workflows and agents that flag what needs a human, with you always in control.',
|
|
197
|
-
path: '/products/workflow'
|
|
198
|
-
}];
|
|
199
|
-
const BUSINESS_LINKS = {
|
|
200
|
-
home: '',
|
|
201
|
-
pricing: '/pricing',
|
|
202
|
-
demo: '/demo',
|
|
203
|
-
freelancers: '/freelancers',
|
|
204
|
-
helpCenter: '/help-center'
|
|
205
|
-
};export{AREAS,BUSINESS_LINKS,BUSINESS_PRODUCTS,CHAT_STARTERS,FOOTNOTE,HERO_CHORES,HOUSEWORK_MIN,MINUTES,STEPS,VIDEO_NOTE};//# sourceMappingURL=content.js.map
|
|
247
|
+
/**
|
|
248
|
+
* The site-wide pages the footer links to. They are served under /business (see business.ts) but
|
|
249
|
+
* speak for all of Clockbook. A business itself is sent to Yantra (platform.ts yantraAppUrl).
|
|
250
|
+
*/
|
|
251
|
+
const SITE_LINKS = {
|
|
252
|
+
privacy: '/privacy',
|
|
253
|
+
contact: '/contact-us'
|
|
254
|
+
};export{AREAS,CALL_STEPS,CHAT_STARTERS,FAQS,FOOTNOTE,HERO_CHORES,HOUSEWORK_MIN,MINUTES,SITE_LINKS,STEPS,STRIP_CHORES,TEXT_STEPS,TEXT_THREAD,TYPED_CHORES,VIDEO_NOTE};//# sourceMappingURL=content.js.map
|