@adminide-stack/yantra-mobile 12.0.94 → 12.0.95-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/compute.js +113 -1
- package/lib/compute.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/apps/AppsCatalog.js +20 -0
- package/lib/features/apps/AppsCatalog.js.map +1 -1
- package/lib/features/apps/appArt.js +3 -1
- package/lib/features/apps/appArt.js.map +1 -1
- package/lib/features/apps/appFavorites.js +8 -2
- package/lib/features/apps/appFavorites.js.map +1 -1
- package/lib/features/apps/mobileAppCatalog.js +27 -1
- package/lib/features/apps/mobileAppCatalog.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +1 -0
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/videoEditor/remoteMediaClient.js +51 -24
- package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
- package/lib/features/chat/connectorConnect.js +1 -1
- package/lib/features/inbox/InboxAgentChatPane.js +64 -0
- package/lib/features/inbox/InboxAgentChatPane.js.map +1 -0
- package/lib/features/inbox/InboxExperience.js +631 -0
- package/lib/features/inbox/InboxExperience.js.map +1 -0
- package/lib/features/inbox/components/BottomSheet.js +111 -0
- package/lib/features/inbox/components/BottomSheet.js.map +1 -0
- package/lib/features/inbox/components/ComposeSheet.js +298 -0
- package/lib/features/inbox/components/ComposeSheet.js.map +1 -0
- package/lib/features/inbox/components/InboxStates.js +182 -0
- package/lib/features/inbox/components/InboxStates.js.map +1 -0
- package/lib/features/inbox/components/MailBody.js +103 -0
- package/lib/features/inbox/components/MailBody.js.map +1 -0
- package/lib/features/inbox/components/MessageReader.js +396 -0
- package/lib/features/inbox/components/MessageReader.js.map +1 -0
- package/lib/features/inbox/components/MessageRow.js +153 -0
- package/lib/features/inbox/components/MessageRow.js.map +1 -0
- package/lib/features/inbox/components/SenderAvatar.js +24 -0
- package/lib/features/inbox/components/SenderAvatar.js.map +1 -0
- package/lib/features/inbox/components/Tap.js +55 -0
- package/lib/features/inbox/components/Tap.js.map +1 -0
- package/lib/features/inbox/composeDraft.js +89 -0
- package/lib/features/inbox/composeDraft.js.map +1 -0
- package/lib/features/inbox/formatMailDate.js +60 -0
- package/lib/features/inbox/formatMailDate.js.map +1 -0
- package/lib/features/inbox/inboxAccounts.js +110 -0
- package/lib/features/inbox/inboxAccounts.js.map +1 -0
- package/lib/features/inbox/inboxClient.js +293 -0
- package/lib/features/inbox/inboxClient.js.map +1 -0
- package/lib/features/inbox/inboxContext.js +27 -0
- package/lib/features/inbox/inboxContext.js.map +1 -0
- package/lib/features/inbox/inboxFolders.js +47 -0
- package/lib/features/inbox/inboxFolders.js.map +1 -0
- package/lib/features/inbox/inboxNormalize.js +144 -0
- package/lib/features/inbox/inboxNormalize.js.map +1 -0
- package/lib/features/inbox/inboxPreference.js +20 -0
- package/lib/features/inbox/inboxPreference.js.map +1 -0
- package/lib/features/inbox/inboxTheme.js +54 -0
- package/lib/features/inbox/inboxTheme.js.map +1 -0
- package/lib/features/inbox/nativeInboxRegistry.js +15 -0
- package/lib/features/inbox/nativeInboxRegistry.js.map +1 -0
- package/lib/features/inbox/openAttachment.js +43 -0
- package/lib/features/inbox/openAttachment.js.map +1 -0
- package/lib/features/inbox/useInboxMailbox.js +250 -0
- package/lib/features/inbox/useInboxMailbox.js.map +1 -0
- package/lib/features/inbox/useMailMessage.js +101 -0
- package/lib/features/inbox/useMailMessage.js.map +1 -0
- package/lib/features/study/StudyAgentChatPane.js +67 -0
- package/lib/features/study/StudyAgentChatPane.js.map +1 -0
- package/lib/features/study/StudyExperience.js +586 -0
- package/lib/features/study/StudyExperience.js.map +1 -0
- package/lib/features/study/components/CellView.js +133 -0
- package/lib/features/study/components/CellView.js.map +1 -0
- package/lib/features/study/components/IntakeCard.js +203 -0
- package/lib/features/study/components/IntakeCard.js.map +1 -0
- package/lib/features/study/components/NotebookSwitcher.js +74 -0
- package/lib/features/study/components/NotebookSwitcher.js.map +1 -0
- package/lib/features/study/components/SourceStrip.js +69 -0
- package/lib/features/study/components/SourceStrip.js.map +1 -0
- package/lib/features/study/components/StudyComposer.js +118 -0
- package/lib/features/study/components/StudyComposer.js.map +1 -0
- package/lib/features/study/components/StudyOnboarding.js +477 -0
- package/lib/features/study/components/StudyOnboarding.js.map +1 -0
- package/lib/features/study/components/StudySheet.js +120 -0
- package/lib/features/study/components/StudySheet.js.map +1 -0
- package/lib/features/study/components/StudyStates.js +148 -0
- package/lib/features/study/components/StudyStates.js.map +1 -0
- package/lib/features/study/components/TextEntrySheet.js +111 -0
- package/lib/features/study/components/TextEntrySheet.js.map +1 -0
- package/lib/features/study/nativeStudyRegistry.js +15 -0
- package/lib/features/study/nativeStudyRegistry.js.map +1 -0
- package/lib/features/study/shareExport.js +38 -0
- package/lib/features/study/shareExport.js.map +1 -0
- package/lib/features/study/studyClient.js +278 -0
- package/lib/features/study/studyClient.js.map +1 -0
- package/lib/features/study/studyContext.js +25 -0
- package/lib/features/study/studyContext.js.map +1 -0
- package/lib/features/study/studyFiles.js +140 -0
- package/lib/features/study/studyFiles.js.map +1 -0
- package/lib/features/study/studyNormalize.js +116 -0
- package/lib/features/study/studyNormalize.js.map +1 -0
- package/lib/features/study/studyPreference.js +24 -0
- package/lib/features/study/studyPreference.js.map +1 -0
- package/lib/features/study/studyProfile.js +233 -0
- package/lib/features/study/studyProfile.js.map +1 -0
- package/lib/features/study/studyPrompts.js +78 -0
- package/lib/features/study/studyPrompts.js.map +1 -0
- package/lib/features/study/studyTheme.js +47 -0
- package/lib/features/study/studyTheme.js.map +1 -0
- package/lib/features/study/useStudyWorkspace.js +401 -0
- package/lib/features/study/useStudyWorkspace.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/routes.json +108 -0
- package/lib/screens/InboxNative/index.js +77 -0
- package/lib/screens/InboxNative/index.js.map +1 -0
- package/lib/screens/InboxNative/useConnectMailbox.js +42 -0
- package/lib/screens/InboxNative/useConnectMailbox.js.map +1 -0
- package/lib/screens/InboxNative/useInboxHostChat.js +62 -0
- package/lib/screens/InboxNative/useInboxHostChat.js.map +1 -0
- package/lib/screens/InboxNative/useMailAccounts.js +54 -0
- package/lib/screens/InboxNative/useMailAccounts.js.map +1 -0
- package/lib/screens/StudyNative/index.js +80 -0
- package/lib/screens/StudyNative/index.js.map +1 -0
- package/lib/screens/StudyNative/useStudyHostChat.js +62 -0
- package/lib/screens/StudyNative/useStudyHostChat.js.map +1 -0
- package/lib/utils/authUserDisplay.js +11 -1
- package/lib/utils/authUserDisplay.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState}from'react';import {StyleSheet,Platform,View,TextInput,KeyboardAvoidingView,ScrollView,Text}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {useSafeInsets}from'../../canvas/withRemoteSafeArea.js';import {Tap,DIM}from'../../inbox/components/Tap.js';import {optionById,STUDY_TIMES,ACCOUNTABILITY_LEVELS,REMINDER_TONES,LEARNING_STYLES}from'../studyProfile.js';import {DISPLAY_FONT}from'../studyTheme.js';const SETUP_STEPS = 5;
|
|
2
|
+
const REVIEW_STEP = 5;
|
|
3
|
+
const STEPS = {
|
|
4
|
+
1: {
|
|
5
|
+
title: "What should your tutor call you?",
|
|
6
|
+
lead: "Pick the name you go by.",
|
|
7
|
+
hint: "It shows up in chats and study plans."
|
|
8
|
+
},
|
|
9
|
+
2: {
|
|
10
|
+
title: "When do you study best?",
|
|
11
|
+
lead: "Pick your prime focus window.",
|
|
12
|
+
hint: "Your tutor plans around it."
|
|
13
|
+
},
|
|
14
|
+
3: {
|
|
15
|
+
title: "Choose your tutor's teaching style",
|
|
16
|
+
lead: "Choose the formats that make ideas click.",
|
|
17
|
+
hint: "Pick more than one if a mix works best."
|
|
18
|
+
},
|
|
19
|
+
4: {
|
|
20
|
+
title: "Set your coaching intensity",
|
|
21
|
+
lead: "Set the level of accountability you want.",
|
|
22
|
+
hint: "Your tutor matches its follow-through to that style."
|
|
23
|
+
},
|
|
24
|
+
5: {
|
|
25
|
+
title: "Review your tutor setup",
|
|
26
|
+
lead: "Make sure this matches how you want to be coached.",
|
|
27
|
+
hint: "You can edit any answer before starting."
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function stepValid(step, profile) {
|
|
31
|
+
switch (step) {
|
|
32
|
+
case 1:
|
|
33
|
+
return Boolean(profile.preferredName.trim());
|
|
34
|
+
case 2:
|
|
35
|
+
return Boolean(profile.studyTime);
|
|
36
|
+
case 3:
|
|
37
|
+
return profile.learningStyles.length > 0;
|
|
38
|
+
case 4:
|
|
39
|
+
return Boolean(profile.accountability && profile.reminderTone);
|
|
40
|
+
default:
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function OptionCard({
|
|
45
|
+
option,
|
|
46
|
+
selected,
|
|
47
|
+
multi,
|
|
48
|
+
compact,
|
|
49
|
+
theme,
|
|
50
|
+
onPress
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ jsxs(Tap, { onPress, accessibilityRole: multi ? "checkbox" : "radio", accessibilityState: {
|
|
53
|
+
checked: selected
|
|
54
|
+
}, accessibilityLabel: option.label, testID: `study-option-${option.id}`, style: [styles.option, compact ? styles.optionCompact : null, {
|
|
55
|
+
backgroundColor: selected ? theme.selected : theme.card,
|
|
56
|
+
borderColor: selected ? theme.selectedLine : theme.border
|
|
57
|
+
}], pressedStyle: DIM, children: [
|
|
58
|
+
/* @__PURE__ */ jsx(View, { style: [styles.dot, multi ? styles.dotSquare : null, selected ? {
|
|
59
|
+
backgroundColor: theme.accent,
|
|
60
|
+
borderColor: theme.accent
|
|
61
|
+
} : {
|
|
62
|
+
borderColor: theme.faint
|
|
63
|
+
}], children: selected ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "check", size: 13, color: theme.accentInk }) : null }),
|
|
64
|
+
/* @__PURE__ */ jsx(Text, { style: styles.emoji, children: option.emoji }),
|
|
65
|
+
/* @__PURE__ */ jsxs(View, { style: styles.optionText, children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.optionLabel, {
|
|
67
|
+
color: theme.ink
|
|
68
|
+
}], numberOfLines: 2, children: option.label }),
|
|
69
|
+
!compact && option.description ? /* @__PURE__ */ jsx(Text, { style: [styles.optionDetail, {
|
|
70
|
+
color: theme.muted
|
|
71
|
+
}], children: option.description }) : null,
|
|
72
|
+
option.quote ? /* @__PURE__ */ jsx(Text, { style: [styles.quote, {
|
|
73
|
+
color: theme.muted
|
|
74
|
+
}], children: option.quote }) : null
|
|
75
|
+
] })
|
|
76
|
+
] });
|
|
77
|
+
}
|
|
78
|
+
function GroupLabel({
|
|
79
|
+
text,
|
|
80
|
+
theme
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsx(Text, { style: [styles.groupLabel, {
|
|
83
|
+
color: theme.faint
|
|
84
|
+
}], children: text.toUpperCase() });
|
|
85
|
+
}
|
|
86
|
+
function Chip({
|
|
87
|
+
text,
|
|
88
|
+
theme
|
|
89
|
+
}) {
|
|
90
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.chip, {
|
|
91
|
+
backgroundColor: theme.chip
|
|
92
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.chipText, {
|
|
93
|
+
color: theme.ink
|
|
94
|
+
}], numberOfLines: 1, children: text }) });
|
|
95
|
+
}
|
|
96
|
+
function ReviewRow({
|
|
97
|
+
label,
|
|
98
|
+
values,
|
|
99
|
+
theme,
|
|
100
|
+
onEdit
|
|
101
|
+
}) {
|
|
102
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.reviewRow, {
|
|
103
|
+
borderBottomColor: theme.border
|
|
104
|
+
}], children: [
|
|
105
|
+
/* @__PURE__ */ jsxs(View, { style: styles.reviewText, children: [
|
|
106
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.reviewLabel, {
|
|
107
|
+
color: theme.muted
|
|
108
|
+
}], children: label }),
|
|
109
|
+
/* @__PURE__ */ jsx(View, { style: styles.chips, children: values.length ? values.map((value) => /* @__PURE__ */ jsx(Chip, { text: value, theme }, value)) : /* @__PURE__ */ jsx(Text, { style: [styles.skipped, {
|
|
110
|
+
color: theme.faint
|
|
111
|
+
}], children: "Not set" }) })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsxs(Tap, { onPress: onEdit, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: `Edit ${label.toLowerCase()}`, style: styles.editButton, pressedStyle: DIM, children: [
|
|
114
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "pencil-outline", size: 15, color: theme.muted }),
|
|
115
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.editLabel, {
|
|
116
|
+
color: theme.muted
|
|
117
|
+
}], children: "Edit" })
|
|
118
|
+
] })
|
|
119
|
+
] });
|
|
120
|
+
}
|
|
121
|
+
const chipOf = (option) => option ? `${option.emoji} ${option.label}` : "";
|
|
122
|
+
function StudyOnboarding({
|
|
123
|
+
profile,
|
|
124
|
+
theme,
|
|
125
|
+
onChange,
|
|
126
|
+
onComplete,
|
|
127
|
+
initialStep = 1,
|
|
128
|
+
onClose,
|
|
129
|
+
onExit
|
|
130
|
+
}) {
|
|
131
|
+
const insets = useSafeInsets();
|
|
132
|
+
const [step, setStep] = useState(initialStep);
|
|
133
|
+
const meta = STEPS[step];
|
|
134
|
+
const valid = stepValid(step, profile);
|
|
135
|
+
const allValid = [1, 2, 3, 4].every((n) => stepValid(n, profile));
|
|
136
|
+
const next = () => {
|
|
137
|
+
if (valid && step < SETUP_STEPS) setStep(step + 1);
|
|
138
|
+
};
|
|
139
|
+
const toggleStyle = (id) => onChange({
|
|
140
|
+
learningStyles: profile.learningStyles.includes(id) ? profile.learningStyles.filter((item) => item !== id) : [...profile.learningStyles, id]
|
|
141
|
+
});
|
|
142
|
+
const body = (() => {
|
|
143
|
+
switch (step) {
|
|
144
|
+
case 1:
|
|
145
|
+
return /* @__PURE__ */ jsx(TextInput, { value: profile.preferredName, onChangeText: (preferredName) => onChange({
|
|
146
|
+
preferredName
|
|
147
|
+
}), onSubmitEditing: next, placeholder: "Your name", placeholderTextColor: theme.faint, autoFocus: !profile.preferredName, autoCapitalize: "words", autoCorrect: false, returnKeyType: "next", accessibilityLabel: "Your name", testID: "study-name-input", style: [styles.nameInput, {
|
|
148
|
+
color: theme.ink,
|
|
149
|
+
backgroundColor: theme.card,
|
|
150
|
+
borderColor: theme.border
|
|
151
|
+
}] });
|
|
152
|
+
case 2:
|
|
153
|
+
return STUDY_TIMES.map((option) => /* @__PURE__ */ jsx(OptionCard, { option, compact: true, selected: profile.studyTime === option.id, theme, onPress: () => onChange({
|
|
154
|
+
studyTime: option.id
|
|
155
|
+
}) }, option.id));
|
|
156
|
+
case 3:
|
|
157
|
+
return LEARNING_STYLES.map((option) => /* @__PURE__ */ jsx(OptionCard, { option, multi: true, selected: profile.learningStyles.includes(option.id), theme, onPress: () => toggleStyle(option.id) }, option.id));
|
|
158
|
+
case 4:
|
|
159
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
160
|
+
/* @__PURE__ */ jsx(GroupLabel, { text: "Accountability level", theme }),
|
|
161
|
+
ACCOUNTABILITY_LEVELS.map((option) => /* @__PURE__ */ jsx(OptionCard, { option, compact: true, selected: profile.accountability === option.id, theme, onPress: () => onChange({
|
|
162
|
+
accountability: option.id
|
|
163
|
+
}) }, option.id)),
|
|
164
|
+
/* @__PURE__ */ jsx(GroupLabel, { text: "Reminder tone", theme }),
|
|
165
|
+
REMINDER_TONES.map((option) => /* @__PURE__ */ jsx(OptionCard, { option, compact: true, selected: profile.reminderTone === option.id, theme, onPress: () => onChange({
|
|
166
|
+
reminderTone: option.id
|
|
167
|
+
}) }, option.id))
|
|
168
|
+
] });
|
|
169
|
+
default:
|
|
170
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.review, {
|
|
171
|
+
backgroundColor: theme.card,
|
|
172
|
+
borderColor: theme.border
|
|
173
|
+
}], children: [
|
|
174
|
+
/* @__PURE__ */ jsx(ReviewRow, { label: "Preferred name", values: profile.preferredName.trim() ? [profile.preferredName.trim()] : [], theme, onEdit: () => setStep(1) }),
|
|
175
|
+
/* @__PURE__ */ jsx(ReviewRow, { label: "Best study time", values: [chipOf(optionById(STUDY_TIMES, profile.studyTime))].filter(Boolean), theme, onEdit: () => setStep(2) }),
|
|
176
|
+
/* @__PURE__ */ jsx(ReviewRow, { label: "Learning style", values: profile.learningStyles.map((id) => chipOf(optionById(LEARNING_STYLES, id))).filter(Boolean), theme, onEdit: () => setStep(3) }),
|
|
177
|
+
/* @__PURE__ */ jsx(ReviewRow, { label: "Accountability", values: [chipOf(optionById(ACCOUNTABILITY_LEVELS, profile.accountability)), chipOf(optionById(REMINDER_TONES, profile.reminderTone))].filter(Boolean), theme, onEdit: () => setStep(4) })
|
|
178
|
+
] });
|
|
179
|
+
}
|
|
180
|
+
})();
|
|
181
|
+
return /* @__PURE__ */ jsxs(KeyboardAvoidingView, { style: [styles.fill, {
|
|
182
|
+
backgroundColor: theme.screen
|
|
183
|
+
}], behavior: Platform.OS === "ios" ? "padding" : void 0, testID: "study-setup", children: [
|
|
184
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.top, {
|
|
185
|
+
paddingTop: insets.top + 4
|
|
186
|
+
}], children: [
|
|
187
|
+
onExit ? /* @__PURE__ */ jsx(Tap, { onPress: onExit, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Back", style: styles.exit, pressedStyle: DIM, testID: "study-exit", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "chevron-left", size: 30, color: theme.ink }) }) : null,
|
|
188
|
+
/* @__PURE__ */ jsx(View, { style: styles.progress, children: Array.from({
|
|
189
|
+
length: SETUP_STEPS
|
|
190
|
+
}, (_, index) => /* @__PURE__ */ jsx(View, { style: [styles.progressBar, {
|
|
191
|
+
backgroundColor: index < step ? theme.accent : theme.border
|
|
192
|
+
}] }, index)) }),
|
|
193
|
+
onClose ? /* @__PURE__ */ jsx(Tap, { onPress: onClose, hitSlop: 10, accessibilityRole: "button", accessibilityLabel: "Close setup", style: styles.close, pressedStyle: DIM, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "close", size: 22, color: theme.muted }) }) : null
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.scroll, keyboardShouldPersistTaps: "handled", keyboardDismissMode: "on-drag", children: [
|
|
196
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.title, {
|
|
197
|
+
color: theme.ink
|
|
198
|
+
}], accessibilityRole: "header", children: meta.title }),
|
|
199
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.leadLine, children: [
|
|
200
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.lead, {
|
|
201
|
+
color: theme.ink
|
|
202
|
+
}], children: [
|
|
203
|
+
meta.lead,
|
|
204
|
+
" "
|
|
205
|
+
] }),
|
|
206
|
+
/* @__PURE__ */ jsx(Text, { style: {
|
|
207
|
+
color: theme.muted
|
|
208
|
+
}, children: meta.hint })
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ jsx(View, { style: styles.options, children: body })
|
|
211
|
+
] }),
|
|
212
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.footer, {
|
|
213
|
+
paddingBottom: Math.max(insets.bottom, 12),
|
|
214
|
+
borderTopColor: theme.border
|
|
215
|
+
}], children: [
|
|
216
|
+
/* @__PURE__ */ jsx(View, { style: styles.footerSide, children: /* @__PURE__ */ jsxs(Tap, { onPress: () => setStep(step - 1), disabled: step === 1, accessibilityRole: "button", accessibilityLabel: "Back", style: [styles.back, step === 1 ? styles.hidden : null], pressedStyle: DIM, children: [
|
|
217
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "chevron-left", size: 20, color: theme.muted }),
|
|
218
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.backLabel, {
|
|
219
|
+
color: theme.muted
|
|
220
|
+
}], children: "Back" })
|
|
221
|
+
] }) }),
|
|
222
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.counter, {
|
|
223
|
+
color: theme.muted
|
|
224
|
+
}], children: [
|
|
225
|
+
/* @__PURE__ */ jsx(Text, { style: {
|
|
226
|
+
color: theme.ink,
|
|
227
|
+
fontWeight: "700"
|
|
228
|
+
}, children: step }),
|
|
229
|
+
" / ",
|
|
230
|
+
SETUP_STEPS
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ jsx(View, { style: [styles.footerSide, styles.footerEnd], children: step < SETUP_STEPS ? /* @__PURE__ */ jsxs(Tap, { onPress: next, disabled: !valid, accessibilityRole: "button", accessibilityLabel: "Continue", accessibilityState: {
|
|
233
|
+
disabled: !valid
|
|
234
|
+
}, testID: "study-setup-continue", style: [styles.continue, {
|
|
235
|
+
backgroundColor: valid ? theme.accent : theme.faint
|
|
236
|
+
}], pressedStyle: styles.pressed, children: [
|
|
237
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.continueLabel, {
|
|
238
|
+
color: theme.accentInk
|
|
239
|
+
}], children: "Continue" }),
|
|
240
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "chevron-right", size: 18, color: theme.accentInk })
|
|
241
|
+
] }) : /* @__PURE__ */ jsxs(Tap, { onPress: onComplete, disabled: !allValid, accessibilityRole: "button", accessibilityLabel: onClose ? "Save setup" : "Start studying", accessibilityState: {
|
|
242
|
+
disabled: !allValid
|
|
243
|
+
}, testID: "study-setup-done", style: [styles.continue, {
|
|
244
|
+
backgroundColor: allValid ? theme.accent : theme.faint
|
|
245
|
+
}], pressedStyle: styles.pressed, children: [
|
|
246
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.continueLabel, {
|
|
247
|
+
color: theme.accentInk
|
|
248
|
+
}], children: onClose ? "Save" : "Start studying" }),
|
|
249
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-right", size: 17, color: theme.accentInk })
|
|
250
|
+
] }) })
|
|
251
|
+
] })
|
|
252
|
+
] });
|
|
253
|
+
}
|
|
254
|
+
const styles = StyleSheet.create({
|
|
255
|
+
fill: {
|
|
256
|
+
flex: 1
|
|
257
|
+
},
|
|
258
|
+
top: {
|
|
259
|
+
flexDirection: "row",
|
|
260
|
+
alignItems: "center",
|
|
261
|
+
paddingLeft: 20,
|
|
262
|
+
paddingRight: 20,
|
|
263
|
+
paddingBottom: 6,
|
|
264
|
+
gap: 12
|
|
265
|
+
},
|
|
266
|
+
exit: {
|
|
267
|
+
width: 40,
|
|
268
|
+
height: 44,
|
|
269
|
+
marginLeft: -16,
|
|
270
|
+
marginRight: -8,
|
|
271
|
+
alignItems: "center",
|
|
272
|
+
justifyContent: "center"
|
|
273
|
+
},
|
|
274
|
+
progress: {
|
|
275
|
+
flex: 1,
|
|
276
|
+
flexDirection: "row",
|
|
277
|
+
gap: 6,
|
|
278
|
+
height: 44,
|
|
279
|
+
alignItems: "center"
|
|
280
|
+
},
|
|
281
|
+
progressBar: {
|
|
282
|
+
flex: 1,
|
|
283
|
+
height: 4,
|
|
284
|
+
borderRadius: 2
|
|
285
|
+
},
|
|
286
|
+
close: {
|
|
287
|
+
width: 32,
|
|
288
|
+
height: 44,
|
|
289
|
+
alignItems: "flex-end",
|
|
290
|
+
justifyContent: "center"
|
|
291
|
+
},
|
|
292
|
+
scroll: {
|
|
293
|
+
paddingHorizontal: 22,
|
|
294
|
+
paddingTop: 18,
|
|
295
|
+
paddingBottom: 32
|
|
296
|
+
},
|
|
297
|
+
title: {
|
|
298
|
+
fontSize: 31,
|
|
299
|
+
lineHeight: 37,
|
|
300
|
+
fontWeight: "600",
|
|
301
|
+
fontFamily: DISPLAY_FONT,
|
|
302
|
+
letterSpacing: -0.2
|
|
303
|
+
},
|
|
304
|
+
leadLine: {
|
|
305
|
+
fontSize: 15,
|
|
306
|
+
lineHeight: 22,
|
|
307
|
+
marginTop: 10
|
|
308
|
+
},
|
|
309
|
+
lead: {
|
|
310
|
+
fontWeight: "600"
|
|
311
|
+
},
|
|
312
|
+
options: {
|
|
313
|
+
marginTop: 24,
|
|
314
|
+
gap: 10
|
|
315
|
+
},
|
|
316
|
+
nameInput: {
|
|
317
|
+
height: 54,
|
|
318
|
+
borderRadius: 14,
|
|
319
|
+
borderWidth: 1,
|
|
320
|
+
paddingHorizontal: 16,
|
|
321
|
+
fontSize: 18
|
|
322
|
+
},
|
|
323
|
+
option: {
|
|
324
|
+
flexDirection: "row",
|
|
325
|
+
alignItems: "flex-start",
|
|
326
|
+
gap: 10,
|
|
327
|
+
borderRadius: 14,
|
|
328
|
+
borderWidth: 1,
|
|
329
|
+
paddingHorizontal: 16,
|
|
330
|
+
paddingVertical: 14
|
|
331
|
+
},
|
|
332
|
+
optionCompact: {
|
|
333
|
+
paddingVertical: 12
|
|
334
|
+
},
|
|
335
|
+
optionText: {
|
|
336
|
+
flex: 1,
|
|
337
|
+
minWidth: 0
|
|
338
|
+
},
|
|
339
|
+
dot: {
|
|
340
|
+
marginTop: 1,
|
|
341
|
+
width: 20,
|
|
342
|
+
height: 20,
|
|
343
|
+
borderRadius: 10,
|
|
344
|
+
borderWidth: 1.5,
|
|
345
|
+
alignItems: "center",
|
|
346
|
+
justifyContent: "center"
|
|
347
|
+
},
|
|
348
|
+
dotSquare: {
|
|
349
|
+
borderRadius: 6
|
|
350
|
+
},
|
|
351
|
+
emoji: {
|
|
352
|
+
fontSize: 18,
|
|
353
|
+
lineHeight: 22
|
|
354
|
+
},
|
|
355
|
+
optionLabel: {
|
|
356
|
+
fontSize: 15,
|
|
357
|
+
lineHeight: 22,
|
|
358
|
+
fontWeight: "500"
|
|
359
|
+
},
|
|
360
|
+
optionDetail: {
|
|
361
|
+
fontSize: 13,
|
|
362
|
+
lineHeight: 18,
|
|
363
|
+
marginTop: 3
|
|
364
|
+
},
|
|
365
|
+
quote: {
|
|
366
|
+
fontSize: 12,
|
|
367
|
+
lineHeight: 17,
|
|
368
|
+
marginTop: 6,
|
|
369
|
+
fontFamily: Platform.select({
|
|
370
|
+
ios: "Menlo",
|
|
371
|
+
android: "monospace",
|
|
372
|
+
default: void 0
|
|
373
|
+
})
|
|
374
|
+
},
|
|
375
|
+
groupLabel: {
|
|
376
|
+
fontSize: 11,
|
|
377
|
+
fontWeight: "600",
|
|
378
|
+
letterSpacing: 1.5,
|
|
379
|
+
marginTop: 8
|
|
380
|
+
},
|
|
381
|
+
review: {
|
|
382
|
+
borderRadius: 16,
|
|
383
|
+
borderWidth: 1,
|
|
384
|
+
paddingHorizontal: 16
|
|
385
|
+
},
|
|
386
|
+
reviewRow: {
|
|
387
|
+
flexDirection: "row",
|
|
388
|
+
alignItems: "flex-start",
|
|
389
|
+
gap: 10,
|
|
390
|
+
paddingVertical: 14,
|
|
391
|
+
borderBottomWidth: StyleSheet.hairlineWidth
|
|
392
|
+
},
|
|
393
|
+
reviewText: {
|
|
394
|
+
flex: 1,
|
|
395
|
+
minWidth: 0
|
|
396
|
+
},
|
|
397
|
+
reviewLabel: {
|
|
398
|
+
fontSize: 12,
|
|
399
|
+
fontWeight: "600",
|
|
400
|
+
marginBottom: 8
|
|
401
|
+
},
|
|
402
|
+
chips: {
|
|
403
|
+
flexDirection: "row",
|
|
404
|
+
flexWrap: "wrap",
|
|
405
|
+
gap: 6
|
|
406
|
+
},
|
|
407
|
+
chip: {
|
|
408
|
+
borderRadius: 999,
|
|
409
|
+
paddingHorizontal: 10,
|
|
410
|
+
paddingVertical: 5,
|
|
411
|
+
maxWidth: "100%"
|
|
412
|
+
},
|
|
413
|
+
chipText: {
|
|
414
|
+
fontSize: 13
|
|
415
|
+
},
|
|
416
|
+
skipped: {
|
|
417
|
+
fontSize: 13,
|
|
418
|
+
fontStyle: "italic"
|
|
419
|
+
},
|
|
420
|
+
editButton: {
|
|
421
|
+
flexDirection: "row",
|
|
422
|
+
alignItems: "center",
|
|
423
|
+
gap: 4,
|
|
424
|
+
paddingVertical: 2
|
|
425
|
+
},
|
|
426
|
+
editLabel: {
|
|
427
|
+
fontSize: 13,
|
|
428
|
+
fontWeight: "500"
|
|
429
|
+
},
|
|
430
|
+
footer: {
|
|
431
|
+
flexDirection: "row",
|
|
432
|
+
alignItems: "center",
|
|
433
|
+
justifyContent: "space-between",
|
|
434
|
+
paddingHorizontal: 16,
|
|
435
|
+
paddingTop: 12,
|
|
436
|
+
borderTopWidth: StyleSheet.hairlineWidth
|
|
437
|
+
},
|
|
438
|
+
footerSide: {
|
|
439
|
+
flex: 1,
|
|
440
|
+
flexDirection: "row"
|
|
441
|
+
},
|
|
442
|
+
footerEnd: {
|
|
443
|
+
justifyContent: "flex-end"
|
|
444
|
+
},
|
|
445
|
+
back: {
|
|
446
|
+
flexDirection: "row",
|
|
447
|
+
alignItems: "center",
|
|
448
|
+
height: 44
|
|
449
|
+
},
|
|
450
|
+
hidden: {
|
|
451
|
+
opacity: 0
|
|
452
|
+
},
|
|
453
|
+
backLabel: {
|
|
454
|
+
fontSize: 15,
|
|
455
|
+
fontWeight: "500"
|
|
456
|
+
},
|
|
457
|
+
counter: {
|
|
458
|
+
fontSize: 14
|
|
459
|
+
},
|
|
460
|
+
continue: {
|
|
461
|
+
flexDirection: "row",
|
|
462
|
+
alignItems: "center",
|
|
463
|
+
gap: 4,
|
|
464
|
+
height: 44,
|
|
465
|
+
paddingLeft: 18,
|
|
466
|
+
paddingRight: 12,
|
|
467
|
+
borderRadius: 12,
|
|
468
|
+
justifyContent: "center"
|
|
469
|
+
},
|
|
470
|
+
pressed: {
|
|
471
|
+
opacity: 0.85
|
|
472
|
+
},
|
|
473
|
+
continueLabel: {
|
|
474
|
+
fontSize: 15,
|
|
475
|
+
fontWeight: "600"
|
|
476
|
+
}
|
|
477
|
+
});export{REVIEW_STEP,SETUP_STEPS,StudyOnboarding};//# sourceMappingURL=StudyOnboarding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyOnboarding.js","sources":["../../../../src/features/study/components/StudyOnboarding.tsx"],"sourcesContent":["/**\n * The tutor setup, the first time Study opens (and later from the notebook\n * menu): what to call the person, when they study, how they learn, and how hard\n * to push. The web wizard's steps and answers; every answer saves as it is\n * picked, so leaving halfway loses nothing.\n */\nimport React, { useState } from 'react';\nimport { KeyboardAvoidingView, Platform, ScrollView, StyleSheet, Text, TextInput, View } from 'react-native';\nimport { MaterialCommunityIcons } from '@expo/vector-icons';\nimport { useSafeInsets } from '../../canvas/withRemoteSafeArea';\nimport { DIM, Tap } from '../../inbox/components/Tap';\nimport {\n ACCOUNTABILITY_LEVELS,\n LEARNING_STYLES,\n REMINDER_TONES,\n STUDY_TIMES,\n optionById,\n type StudyOption,\n type StudyProfile,\n} from '../studyProfile';\nimport { DISPLAY_FONT, type StudyTheme } from '../studyTheme';\n\nexport const SETUP_STEPS = 5;\nexport const REVIEW_STEP = 5;\n\nconst STEPS: Record<number, { title: string; lead: string; hint: string }> = {\n 1: {\n title: 'What should your tutor call you?',\n lead: 'Pick the name you go by.',\n hint: 'It shows up in chats and study plans.',\n },\n 2: {\n title: 'When do you study best?',\n lead: 'Pick your prime focus window.',\n hint: 'Your tutor plans around it.',\n },\n 3: {\n title: \"Choose your tutor's teaching style\",\n lead: 'Choose the formats that make ideas click.',\n hint: 'Pick more than one if a mix works best.',\n },\n 4: {\n title: 'Set your coaching intensity',\n lead: 'Set the level of accountability you want.',\n hint: 'Your tutor matches its follow-through to that style.',\n },\n 5: {\n title: 'Review your tutor setup',\n lead: 'Make sure this matches how you want to be coached.',\n hint: 'You can edit any answer before starting.',\n },\n};\n\nfunction stepValid(step: number, profile: StudyProfile): boolean {\n switch (step) {\n case 1:\n return Boolean(profile.preferredName.trim());\n case 2:\n return Boolean(profile.studyTime);\n case 3:\n return profile.learningStyles.length > 0;\n case 4:\n return Boolean(profile.accountability && profile.reminderTone);\n default:\n return true;\n }\n}\n\nfunction OptionCard({\n option,\n selected,\n multi,\n compact,\n theme,\n onPress,\n}: {\n option: StudyOption;\n selected: boolean;\n multi?: boolean;\n compact?: boolean;\n theme: StudyTheme;\n onPress: () => void;\n}) {\n return (\n <Tap\n onPress={onPress}\n accessibilityRole={multi ? 'checkbox' : 'radio'}\n accessibilityState={{ checked: selected }}\n accessibilityLabel={option.label}\n testID={`study-option-${option.id}`}\n style={[\n styles.option,\n compact ? styles.optionCompact : null,\n {\n backgroundColor: selected ? theme.selected : theme.card,\n borderColor: selected ? theme.selectedLine : theme.border,\n },\n ]}\n pressedStyle={DIM}\n >\n <View\n style={[\n styles.dot,\n multi ? styles.dotSquare : null,\n selected\n ? { backgroundColor: theme.accent, borderColor: theme.accent }\n : { borderColor: theme.faint },\n ]}\n >\n {selected ? <MaterialCommunityIcons name=\"check\" size={13} color={theme.accentInk} /> : null}\n </View>\n <Text style={styles.emoji}>{option.emoji}</Text>\n {/* Label, description and quote share one left edge. */}\n <View style={styles.optionText}>\n <Text style={[styles.optionLabel, { color: theme.ink }]} numberOfLines={2}>\n {option.label}\n </Text>\n {!compact && option.description ? (\n <Text style={[styles.optionDetail, { color: theme.muted }]}>{option.description}</Text>\n ) : null}\n {option.quote ? <Text style={[styles.quote, { color: theme.muted }]}>{option.quote}</Text> : null}\n </View>\n </Tap>\n );\n}\n\nfunction GroupLabel({ text, theme }: { text: string; theme: StudyTheme }) {\n return <Text style={[styles.groupLabel, { color: theme.faint }]}>{text.toUpperCase()}</Text>;\n}\n\nfunction Chip({ text, theme }: { text: string; theme: StudyTheme }) {\n return (\n <View style={[styles.chip, { backgroundColor: theme.chip }]}>\n <Text style={[styles.chipText, { color: theme.ink }]} numberOfLines={1}>\n {text}\n </Text>\n </View>\n );\n}\n\nfunction ReviewRow({\n label,\n values,\n theme,\n onEdit,\n}: {\n label: string;\n values: string[];\n theme: StudyTheme;\n onEdit: () => void;\n}) {\n return (\n <View style={[styles.reviewRow, { borderBottomColor: theme.border }]}>\n <View style={styles.reviewText}>\n <Text style={[styles.reviewLabel, { color: theme.muted }]}>{label}</Text>\n <View style={styles.chips}>\n {values.length ? (\n values.map((value) => <Chip key={value} text={value} theme={theme} />)\n ) : (\n <Text style={[styles.skipped, { color: theme.faint }]}>Not set</Text>\n )}\n </View>\n </View>\n <Tap\n onPress={onEdit}\n hitSlop={8}\n accessibilityRole=\"button\"\n accessibilityLabel={`Edit ${label.toLowerCase()}`}\n style={styles.editButton}\n pressedStyle={DIM}\n >\n <MaterialCommunityIcons name=\"pencil-outline\" size={15} color={theme.muted} />\n <Text style={[styles.editLabel, { color: theme.muted }]}>Edit</Text>\n </Tap>\n </View>\n );\n}\n\nconst chipOf = (option?: StudyOption) => (option ? `${option.emoji} ${option.label}` : '');\n\nexport function StudyOnboarding({\n profile,\n theme,\n onChange,\n onComplete,\n initialStep = 1,\n onClose,\n onExit,\n}: {\n profile: StudyProfile;\n theme: StudyTheme;\n onChange: (patch: Partial<StudyProfile>) => void;\n onComplete: () => void;\n initialStep?: number;\n /** Editing an existing setup: a close button, and the last step saves. */\n onClose?: () => void;\n /** First-time setup: leaves Study altogether. */\n onExit?: () => void;\n}) {\n const insets = useSafeInsets();\n const [step, setStep] = useState(initialStep);\n const meta = STEPS[step];\n const valid = stepValid(step, profile);\n const allValid = [1, 2, 3, 4].every((n) => stepValid(n, profile));\n\n const next = () => {\n if (valid && step < SETUP_STEPS) setStep(step + 1);\n };\n\n const toggleStyle = (id: string) =>\n onChange({\n learningStyles: profile.learningStyles.includes(id)\n ? profile.learningStyles.filter((item) => item !== id)\n : [...profile.learningStyles, id],\n });\n\n const body = (() => {\n switch (step) {\n case 1:\n return (\n <TextInput\n value={profile.preferredName}\n onChangeText={(preferredName) => onChange({ preferredName })}\n onSubmitEditing={next}\n placeholder=\"Your name\"\n placeholderTextColor={theme.faint}\n autoFocus={!profile.preferredName}\n autoCapitalize=\"words\"\n autoCorrect={false}\n returnKeyType=\"next\"\n accessibilityLabel=\"Your name\"\n testID=\"study-name-input\"\n style={[\n styles.nameInput,\n { color: theme.ink, backgroundColor: theme.card, borderColor: theme.border },\n ]}\n />\n );\n case 2:\n return STUDY_TIMES.map((option) => (\n <OptionCard\n key={option.id}\n option={option}\n compact\n selected={profile.studyTime === option.id}\n theme={theme}\n onPress={() => onChange({ studyTime: option.id })}\n />\n ));\n case 3:\n return LEARNING_STYLES.map((option) => (\n <OptionCard\n key={option.id}\n option={option}\n multi\n selected={profile.learningStyles.includes(option.id)}\n theme={theme}\n onPress={() => toggleStyle(option.id)}\n />\n ));\n case 4:\n return (\n <>\n <GroupLabel text=\"Accountability level\" theme={theme} />\n {ACCOUNTABILITY_LEVELS.map((option) => (\n <OptionCard\n key={option.id}\n option={option}\n compact\n selected={profile.accountability === option.id}\n theme={theme}\n onPress={() => onChange({ accountability: option.id })}\n />\n ))}\n <GroupLabel text=\"Reminder tone\" theme={theme} />\n {REMINDER_TONES.map((option) => (\n <OptionCard\n key={option.id}\n option={option}\n compact\n selected={profile.reminderTone === option.id}\n theme={theme}\n onPress={() => onChange({ reminderTone: option.id })}\n />\n ))}\n </>\n );\n default:\n return (\n <View style={[styles.review, { backgroundColor: theme.card, borderColor: theme.border }]}>\n <ReviewRow\n label=\"Preferred name\"\n values={profile.preferredName.trim() ? [profile.preferredName.trim()] : []}\n theme={theme}\n onEdit={() => setStep(1)}\n />\n <ReviewRow\n label=\"Best study time\"\n values={[chipOf(optionById(STUDY_TIMES, profile.studyTime))].filter(Boolean)}\n theme={theme}\n onEdit={() => setStep(2)}\n />\n <ReviewRow\n label=\"Learning style\"\n values={profile.learningStyles\n .map((id) => chipOf(optionById(LEARNING_STYLES, id)))\n .filter(Boolean)}\n theme={theme}\n onEdit={() => setStep(3)}\n />\n <ReviewRow\n label=\"Accountability\"\n values={[\n chipOf(optionById(ACCOUNTABILITY_LEVELS, profile.accountability)),\n chipOf(optionById(REMINDER_TONES, profile.reminderTone)),\n ].filter(Boolean)}\n theme={theme}\n onEdit={() => setStep(4)}\n />\n </View>\n );\n }\n })();\n\n return (\n <KeyboardAvoidingView\n style={[styles.fill, { backgroundColor: theme.screen }]}\n behavior={Platform.OS === 'ios' ? 'padding' : undefined}\n testID=\"study-setup\"\n >\n <View style={[styles.top, { paddingTop: insets.top + 4 }]}>\n {onExit ? (\n <Tap\n onPress={onExit}\n hitSlop={8}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Back\"\n style={styles.exit}\n pressedStyle={DIM}\n testID=\"study-exit\"\n >\n <MaterialCommunityIcons name=\"chevron-left\" size={30} color={theme.ink} />\n </Tap>\n ) : null}\n <View style={styles.progress}>\n {Array.from({ length: SETUP_STEPS }, (_, index) => (\n <View\n key={index}\n style={[\n styles.progressBar,\n { backgroundColor: index < step ? theme.accent : theme.border },\n ]}\n />\n ))}\n </View>\n {onClose ? (\n <Tap\n onPress={onClose}\n hitSlop={10}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Close setup\"\n style={styles.close}\n pressedStyle={DIM}\n >\n <MaterialCommunityIcons name=\"close\" size={22} color={theme.muted} />\n </Tap>\n ) : null}\n </View>\n <ScrollView\n contentContainerStyle={styles.scroll}\n keyboardShouldPersistTaps=\"handled\"\n keyboardDismissMode=\"on-drag\"\n >\n <Text style={[styles.title, { color: theme.ink }]} accessibilityRole=\"header\">\n {meta.title}\n </Text>\n <Text style={styles.leadLine}>\n <Text style={[styles.lead, { color: theme.ink }]}>{meta.lead} </Text>\n <Text style={{ color: theme.muted }}>{meta.hint}</Text>\n </Text>\n <View style={styles.options}>{body}</View>\n </ScrollView>\n <View style={[styles.footer, { paddingBottom: Math.max(insets.bottom, 12), borderTopColor: theme.border }]}>\n <View style={styles.footerSide}>\n <Tap\n onPress={() => setStep(step - 1)}\n disabled={step === 1}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Back\"\n style={[styles.back, step === 1 ? styles.hidden : null]}\n pressedStyle={DIM}\n >\n <MaterialCommunityIcons name=\"chevron-left\" size={20} color={theme.muted} />\n <Text style={[styles.backLabel, { color: theme.muted }]}>Back</Text>\n </Tap>\n </View>\n <Text style={[styles.counter, { color: theme.muted }]}>\n <Text style={{ color: theme.ink, fontWeight: '700' }}>{step}</Text> / {SETUP_STEPS}\n </Text>\n <View style={[styles.footerSide, styles.footerEnd]}>\n {step < SETUP_STEPS ? (\n <Tap\n onPress={next}\n disabled={!valid}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Continue\"\n accessibilityState={{ disabled: !valid }}\n testID=\"study-setup-continue\"\n style={[styles.continue, { backgroundColor: valid ? theme.accent : theme.faint }]}\n pressedStyle={styles.pressed}\n >\n <Text style={[styles.continueLabel, { color: theme.accentInk }]}>Continue</Text>\n <MaterialCommunityIcons name=\"chevron-right\" size={18} color={theme.accentInk} />\n </Tap>\n ) : (\n <Tap\n onPress={onComplete}\n disabled={!allValid}\n accessibilityRole=\"button\"\n accessibilityLabel={onClose ? 'Save setup' : 'Start studying'}\n accessibilityState={{ disabled: !allValid }}\n testID=\"study-setup-done\"\n style={[styles.continue, { backgroundColor: allValid ? theme.accent : theme.faint }]}\n pressedStyle={styles.pressed}\n >\n <Text style={[styles.continueLabel, { color: theme.accentInk }]}>\n {onClose ? 'Save' : 'Start studying'}\n </Text>\n <MaterialCommunityIcons name=\"arrow-right\" size={17} color={theme.accentInk} />\n </Tap>\n )}\n </View>\n </View>\n </KeyboardAvoidingView>\n );\n}\n\nconst styles = StyleSheet.create({\n fill: { flex: 1 },\n top: { flexDirection: 'row', alignItems: 'center', paddingLeft: 20, paddingRight: 20, paddingBottom: 6, gap: 12 },\n exit: { width: 40, height: 44, marginLeft: -16, marginRight: -8, alignItems: 'center', justifyContent: 'center' },\n progress: { flex: 1, flexDirection: 'row', gap: 6, height: 44, alignItems: 'center' },\n progressBar: { flex: 1, height: 4, borderRadius: 2 },\n close: { width: 32, height: 44, alignItems: 'flex-end', justifyContent: 'center' },\n scroll: { paddingHorizontal: 22, paddingTop: 18, paddingBottom: 32 },\n title: { fontSize: 31, lineHeight: 37, fontWeight: '600', fontFamily: DISPLAY_FONT, letterSpacing: -0.2 },\n leadLine: { fontSize: 15, lineHeight: 22, marginTop: 10 },\n lead: { fontWeight: '600' },\n options: { marginTop: 24, gap: 10 },\n nameInput: {\n height: 54,\n borderRadius: 14,\n borderWidth: 1,\n paddingHorizontal: 16,\n fontSize: 18,\n },\n option: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n gap: 10,\n borderRadius: 14,\n borderWidth: 1,\n paddingHorizontal: 16,\n paddingVertical: 14,\n },\n optionCompact: { paddingVertical: 12 },\n optionText: { flex: 1, minWidth: 0 },\n dot: {\n marginTop: 1,\n width: 20,\n height: 20,\n borderRadius: 10,\n borderWidth: 1.5,\n alignItems: 'center',\n justifyContent: 'center',\n },\n dotSquare: { borderRadius: 6 },\n emoji: { fontSize: 18, lineHeight: 22 },\n optionLabel: { fontSize: 15, lineHeight: 22, fontWeight: '500' },\n optionDetail: { fontSize: 13, lineHeight: 18, marginTop: 3 },\n quote: {\n fontSize: 12,\n lineHeight: 17,\n marginTop: 6,\n fontFamily: Platform.select({ ios: 'Menlo', android: 'monospace', default: undefined }),\n },\n groupLabel: { fontSize: 11, fontWeight: '600', letterSpacing: 1.5, marginTop: 8 },\n review: { borderRadius: 16, borderWidth: 1, paddingHorizontal: 16 },\n reviewRow: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n gap: 10,\n paddingVertical: 14,\n borderBottomWidth: StyleSheet.hairlineWidth,\n },\n reviewText: { flex: 1, minWidth: 0 },\n reviewLabel: { fontSize: 12, fontWeight: '600', marginBottom: 8 },\n chips: { flexDirection: 'row', flexWrap: 'wrap', gap: 6 },\n chip: { borderRadius: 999, paddingHorizontal: 10, paddingVertical: 5, maxWidth: '100%' },\n chipText: { fontSize: 13 },\n skipped: { fontSize: 13, fontStyle: 'italic' },\n editButton: { flexDirection: 'row', alignItems: 'center', gap: 4, paddingVertical: 2 },\n editLabel: { fontSize: 13, fontWeight: '500' },\n footer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingHorizontal: 16,\n paddingTop: 12,\n borderTopWidth: StyleSheet.hairlineWidth,\n },\n footerSide: { flex: 1, flexDirection: 'row' },\n footerEnd: { justifyContent: 'flex-end' },\n back: { flexDirection: 'row', alignItems: 'center', height: 44 },\n hidden: { opacity: 0 },\n backLabel: { fontSize: 15, fontWeight: '500' },\n counter: { fontSize: 14 },\n continue: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 4,\n height: 44,\n paddingLeft: 18,\n paddingRight: 12,\n borderRadius: 12,\n justifyContent: 'center',\n },\n pressed: { opacity: 0.85 },\n continueLabel: { fontSize: 15, fontWeight: '600' },\n});\n"],"names":[],"mappings":"sfAaO,MAAM,WAAc,GAAA;AACpB,MAAM,WAAc,GAAA;AAC3B,MAAM,KAID,GAAA;AAAA,EACH,CAAG,EAAA;AAAA,IACD,KAAO,EAAA,kCAAA;AAAA,IACP,IAAM,EAAA,0BAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,CAAG,EAAA;AAAA,IACD,KAAO,EAAA,yBAAA;AAAA,IACP,IAAM,EAAA,+BAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,CAAG,EAAA;AAAA,IACD,KAAO,EAAA,oCAAA;AAAA,IACP,IAAM,EAAA,2CAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,CAAG,EAAA;AAAA,IACD,KAAO,EAAA,6BAAA;AAAA,IACP,IAAM,EAAA,2CAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,CAAG,EAAA;AAAA,IACD,KAAO,EAAA,yBAAA;AAAA,IACP,IAAM,EAAA,oDAAA;AAAA,IACN,IAAM,EAAA;AAAA;AAEV,CAAA;AACA,SAAS,SAAA,CAAU,MAAc,OAAgC,EAAA;AAC/D,EAAA,QAAQ,IAAM;AAAA,IACZ,KAAK,CAAA;AACH,MAAA,OAAO,OAAQ,CAAA,OAAA,CAAQ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