camox 0.48.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/core/createApp.d.ts +1 -0
  2. package/dist/core/createApp.js +1 -0
  3. package/dist/core/editing/contentEdits.js +78 -0
  4. package/dist/core/editing/createEditableBlock.js +277 -311
  5. package/dist/core/layoutContext.d.ts +1 -0
  6. package/dist/core/lib/contentType.js +2 -2
  7. package/dist/core/recordItem.js +3 -3
  8. package/dist/features/canvas/CamoxCanvas.js +15 -15
  9. package/dist/features/canvas/CanvasLoadingScreen.js +15 -11
  10. package/dist/features/canvas/CanvasPageFrame.js +81 -87
  11. package/dist/features/canvas/CanvasPreviewPageSlot.js +1 -1
  12. package/dist/features/canvas/DerivedPagePathInput.js +12 -12
  13. package/dist/features/canvas/canvasOverlayGeometry.js +1 -1
  14. package/dist/features/canvas/canvasStore.js +2 -2
  15. package/dist/features/canvas/sidebar/CanvasInspector.js +1 -1
  16. package/dist/features/canvas/sidebar/CuratedPageInspector.js +1 -1
  17. package/dist/features/canvas/sidebar/LayoutPageBlocks.js +23 -31
  18. package/dist/features/canvas/useCanvasCamera.js +1 -1
  19. package/dist/features/canvas/useDiscoveredPreviewPaths.js +16 -9
  20. package/dist/features/content/ContentAssets.js +84 -88
  21. package/dist/features/page/CuratedPageContent.js +1 -1
  22. package/dist/features/preview/CamoxPreview.d.ts +8 -4
  23. package/dist/features/preview/CamoxPreview.js +258 -443
  24. package/dist/features/preview/EditablePageContent.js +244 -2
  25. package/dist/features/preview/EditablePageExperience.js +19 -13
  26. package/dist/features/preview/components/AddBlockSheet.js +55 -15
  27. package/dist/features/preview/components/BlockActionsPopover.js +23 -51
  28. package/dist/features/preview/components/BlockPeek.js +66 -0
  29. package/dist/features/preview/components/BlockThumbnail.js +134 -119
  30. package/dist/features/preview/components/CanvasPreview.js +1 -1
  31. package/dist/features/preview/components/CreatePageModal.js +150 -156
  32. package/dist/features/preview/components/FieldToolbar.js +1 -1
  33. package/dist/features/preview/components/Frame.js +27 -4
  34. package/dist/features/preview/components/MobilePreviewDrawer.js +6 -9
  35. package/dist/features/preview/components/PageInfo.js +161 -126
  36. package/dist/features/preview/components/PagePicker.js +2 -2
  37. package/dist/features/preview/components/PageTree.js +174 -190
  38. package/dist/features/preview/components/PreviewPanel.js +13 -67
  39. package/dist/features/preview/components/PreviewToolbar.js +1 -1
  40. package/dist/features/preview/components/ReferenceFieldEditor.js +4 -4
  41. package/dist/features/preview/components/ReferenceListFieldEditor.js +4 -4
  42. package/dist/features/preview/components/RemovedBlockPlaceholder.js +37 -70
  43. package/dist/features/preview/components/RepeatableItemsList.js +1 -1
  44. package/dist/features/preview/components/SelectionEditor.js +248 -256
  45. package/dist/features/preview/components/StudioEditingFallback.js +22 -26
  46. package/dist/features/preview/components/useFieldWriter.js +19 -19
  47. package/dist/features/preview/components/useRecordView.js +105 -147
  48. package/dist/features/preview/components/useRepeatableItemActions.js +0 -2
  49. package/dist/features/preview/pageRecord.js +30 -24
  50. package/dist/features/preview/previewConstants.js +2 -8
  51. package/dist/features/preview/previewStore.js +2 -0
  52. package/dist/features/preview/studioNotice.js +20 -0
  53. package/dist/features/preview/usePreviewViewportActions.js +1 -1
  54. package/dist/features/provider/AuthenticatedCamoxProvider.js +47 -31
  55. package/dist/features/provider/components/CommandPalette.js +2 -5
  56. package/dist/features/provider/signInShortcut.js +1 -2
  57. package/dist/features/provider/useAdminShortcuts.js +47 -53
  58. package/dist/features/renderer/RendererApp.js +542 -0
  59. package/dist/features/renderer/RendererFrames.js +450 -0
  60. package/dist/features/renderer/definitionAnswers.js +26 -0
  61. package/dist/features/renderer/protocol.js +35 -0
  62. package/dist/features/renderer/rendererHost.js +249 -0
  63. package/dist/features/renderer/studioConnection.js +186 -0
  64. package/dist/features/routes/pageRuntime.d.ts +2 -1
  65. package/dist/features/routes/pageRuntime.js +34 -22
  66. package/dist/features/runtime/RuntimeChrome.js +2 -5
  67. package/dist/features/runtime/assetPrefix.js +14 -0
  68. package/dist/features/runtime/breadcrumbs.js +1 -1
  69. package/dist/features/runtime/editingFallback.js +4 -8
  70. package/dist/features/runtime/livePages.js +1 -1
  71. package/dist/features/runtime/pageApp.js +57 -83
  72. package/dist/features/runtime/pageClient.js +1 -1
  73. package/dist/features/runtime/pageNavigation.js +3 -2
  74. package/dist/features/runtime/publicCache.js +95 -0
  75. package/dist/features/runtime/publishingDraft.js +23 -0
  76. package/dist/features/runtime/rendererClient.d.ts +8 -0
  77. package/dist/features/runtime/rendererClient.js +77 -0
  78. package/dist/features/runtime/runtime.d.ts +22 -3
  79. package/dist/features/runtime/runtime.js +209 -96
  80. package/dist/features/runtime/runtimeRoutes.d.ts +2 -0
  81. package/dist/features/runtime/runtimeRoutes.js +2 -0
  82. package/dist/features/runtime/worker.d.ts +14 -1
  83. package/dist/features/runtime/worker.js +34 -4
  84. package/dist/features/settings/AnalyticsSettings.js +622 -0
  85. package/dist/features/settings/CamoxSettings.js +95 -0
  86. package/dist/features/settings/FaviconSettings.js +254 -0
  87. package/dist/features/settings/ProjectNameSettings.js +145 -0
  88. package/dist/features/settings/SettingsPart.js +73 -0
  89. package/dist/features/settings/SocialProfilesSettings.js +245 -0
  90. package/dist/features/settings/useProjectMutation.js +61 -0
  91. package/dist/features/studio/FollowAgentProvider.js +10 -10
  92. package/dist/features/studio/components/DraftsControl.js +136 -131
  93. package/dist/features/studio/components/LocalePicker.js +178 -174
  94. package/dist/features/studio/components/Navbar.js +107 -66
  95. package/dist/features/studio/components/ProjectMenu.js +119 -171
  96. package/dist/features/studio/components/ReviewDraftSheet.js +1151 -991
  97. package/dist/features/studio/components/ThreadMessages.js +100 -65
  98. package/dist/features/studio/components/UserButton.js +2 -2
  99. package/dist/features/studio/routes.js +3 -1
  100. package/dist/features/studio/showInCanvas.js +129 -0
  101. package/dist/features/vite/definitionsSync.js +5 -6
  102. package/dist/features/vite/hostedChecks.js +127 -0
  103. package/dist/features/vite/runtimeDev.js +58 -17
  104. package/dist/features/vite/staticAssetHeaders.js +52 -0
  105. package/dist/features/vite/vite.d.ts +1 -1
  106. package/dist/features/vite/vite.js +49 -9
  107. package/dist/hooks/use-page-destinations.js +10 -10
  108. package/dist/lib/api-client-server.d.ts +1 -1
  109. package/dist/lib/api-client.d.ts +2 -1
  110. package/dist/lib/draft-scope.d.ts +1 -0
  111. package/dist/lib/locale-path.d.ts +3 -11
  112. package/dist/lib/locale-path.js +3 -27
  113. package/dist/lib/queries.js +7 -1
  114. package/dist/lib/revisions.js +20 -0
  115. package/dist/lib/shortcuts.js +29 -0
  116. package/dist/lib/studio-definitions.js +160 -0
  117. package/dist/lib/studio-reads.d.ts +1 -0
  118. package/dist/lib/studio-reads.js +65 -21
  119. package/dist/lib/use-project-room.js +16 -10
  120. package/dist/lib/utils.js +1 -104
  121. package/dist/package.js +1 -1
  122. package/dist/studio.css +1 -1
  123. package/package.json +9 -4
  124. package/skills/camox/SKILL.md +4 -0
  125. package/skills/camox/references/artifacts.md +1 -1
  126. package/dist/features/studio/components/FaviconDialog.js +0 -318
  127. package/dist/features/studio/components/SocialProfilesDialog.js +0 -342
@@ -33,202 +33,206 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem,
33
33
  * and removing them. Switching keeps the page shown when the other language has it, and goes to
34
34
  * that language's home otherwise; the URL names the language by its prefix. Adding and removing
35
35
  * languages are content writes, so on Live they start a draft. While Camox translates the draft
36
- * into its languages, the picker shows a spinner, and nothing else does.
36
+ * into its languages, the picker shows a spinner, and nothing else does. A `disabled` picker still
37
+ * names the language viewed.
37
38
  */
38
39
  function LocalePicker(t0) {
39
- const $ = c(69);
40
- const { recordPage } = t0;
40
+ const $ = c(70);
41
+ const { recordPage, disabled: t1 } = t0;
42
+ const disabled = t1 === void 0 ? false : t1;
41
43
  const projectUuid = useProjectUuid();
42
44
  const view = useViewLocale();
43
45
  const dialog = useSelector(studioStore, _temp);
44
- let t1;
46
+ let t2;
45
47
  if ($[0] !== projectUuid) {
46
- t1 = reads.project({ projectUuid });
48
+ t2 = reads.project({ projectUuid });
47
49
  $[0] = projectUuid;
48
- $[1] = t1;
49
- } else t1 = $[1];
50
- const t2 = !!projectUuid;
51
- let t3;
52
- if ($[2] !== t2) {
53
- t3 = { enabled: t2 };
54
- $[2] = t2;
55
- $[3] = t3;
56
- } else t3 = $[3];
57
- const projectId = useReadQuery(t1, t3).data?.id;
50
+ $[1] = t2;
51
+ } else t2 = $[1];
52
+ const t3 = !!projectUuid;
58
53
  let t4;
54
+ if ($[2] !== t3) {
55
+ t4 = { enabled: t3 };
56
+ $[2] = t3;
57
+ $[3] = t4;
58
+ } else t4 = $[3];
59
+ const projectId = useReadQuery(t2, t4).data?.id;
60
+ let t5;
59
61
  if ($[4] !== projectId) {
60
- t4 = reads.localeList({ projectId: projectId ?? 0 });
62
+ t5 = reads.localeList({ projectId: projectId ?? 0 });
61
63
  $[4] = projectId;
62
- $[5] = t4;
63
- } else t4 = $[5];
64
- const t5 = !!projectId;
65
- let t6;
66
- if ($[6] !== t5) {
67
- t6 = { enabled: t5 };
68
- $[6] = t5;
69
- $[7] = t6;
70
- } else t6 = $[7];
71
- const locales = useReadQuery(t4, t6).data ?? view.locales;
64
+ $[5] = t5;
65
+ } else t5 = $[5];
66
+ const t6 = !!projectId;
72
67
  let t7;
68
+ if ($[6] !== t6) {
69
+ t7 = { enabled: t6 };
70
+ $[6] = t6;
71
+ $[7] = t7;
72
+ } else t7 = $[7];
73
+ const locales = useReadQuery(t5, t7).data ?? view.locales;
74
+ let t8;
73
75
  if ($[8] !== locales || $[9] !== view) {
74
- t7 = locales.find((locale) => view.locale.isDefault ? locale.isDefault : locale.tag === view.locale.tag) ?? view.locale;
76
+ t8 = locales.find((locale) => view.locale.isDefault ? locale.isDefault : locale.tag === view.locale.tag) ?? view.locale;
75
77
  $[8] = locales;
76
78
  $[9] = view;
77
- $[10] = t7;
78
- } else t7 = $[10];
79
- const viewed = t7;
79
+ $[10] = t8;
80
+ } else t8 = $[10];
81
+ const viewed = t8;
80
82
  const switchTo = useSwitchLocale(recordPage);
81
83
  const draftId = useCurrentDraftId();
82
- let t8;
84
+ let t9;
83
85
  if ($[11] !== draftId || $[12] !== projectId) {
84
- t8 = reads.draft({
86
+ t9 = reads.draft({
85
87
  projectId: projectId ?? 0,
86
88
  draftId: draftId ?? ""
87
89
  });
88
90
  $[11] = draftId;
89
91
  $[12] = projectId;
90
- $[13] = t8;
91
- } else t8 = $[13];
92
- const t9 = !!projectId && !!draftId;
93
- let t10;
94
- if ($[14] !== t9) {
95
- t10 = { enabled: t9 };
96
- $[14] = t9;
97
- $[15] = t10;
98
- } else t10 = $[15];
99
- const draft = useReadQuery(t8, t10);
92
+ $[13] = t9;
93
+ } else t9 = $[13];
94
+ const t10 = !!projectId && !!draftId;
100
95
  let t11;
96
+ if ($[14] !== t10) {
97
+ t11 = { enabled: t10 };
98
+ $[14] = t10;
99
+ $[15] = t11;
100
+ } else t11 = $[15];
101
+ const draft = useReadQuery(t9, t11);
102
+ let t12;
101
103
  if ($[16] !== draft.data?.translatingLocales) {
102
- t11 = draft.data?.translatingLocales ?? [];
104
+ t12 = draft.data?.translatingLocales ?? [];
103
105
  $[16] = draft.data?.translatingLocales;
104
- $[17] = t11;
105
- } else t11 = $[17];
106
- const translatingLocales = t11;
107
- let t12;
106
+ $[17] = t12;
107
+ } else t12 = $[17];
108
+ const translatingLocales = t12;
109
+ let t13;
108
110
  if ($[18] !== viewed.tag) {
109
- t12 = [viewed.tag];
111
+ t13 = [viewed.tag];
110
112
  $[18] = viewed.tag;
111
- $[19] = t12;
112
- } else t12 = $[19];
113
- React.useEffect(_temp2, t12);
114
- let t13;
113
+ $[19] = t13;
114
+ } else t13 = $[19];
115
+ React.useEffect(_temp2, t13);
116
+ let t14;
115
117
  if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
116
- t13 = /* @__PURE__ */ jsx(Button, {
118
+ t14 = /* @__PURE__ */ jsx(Button, {
117
119
  type: "button",
118
120
  variant: "ghost"
119
121
  });
120
- $[20] = t13;
121
- } else t13 = $[20];
122
- let t14;
122
+ $[20] = t14;
123
+ } else t14 = $[20];
124
+ let t15;
123
125
  if ($[21] !== translatingLocales) {
124
- t14 = translatingLocales.length > 0 ? /* @__PURE__ */ jsx(TranslatingSpinner, { tags: translatingLocales }) : /* @__PURE__ */ jsx(Languages, {
126
+ t15 = translatingLocales.length > 0 ? /* @__PURE__ */ jsx(TranslatingSpinner, { tags: translatingLocales }) : /* @__PURE__ */ jsx(Languages, {
125
127
  "aria-hidden": true,
126
128
  className: "text-muted-foreground size-4"
127
129
  });
128
130
  $[21] = translatingLocales;
129
- $[22] = t14;
130
- } else t14 = $[22];
131
- let t15;
131
+ $[22] = t15;
132
+ } else t15 = $[22];
133
+ let t16;
132
134
  if ($[23] !== viewed.tag) {
133
- t15 = localeLabel(viewed.tag);
135
+ t16 = localeLabel(viewed.tag);
134
136
  $[23] = viewed.tag;
135
- $[24] = t15;
136
- } else t15 = $[24];
137
- let t16;
138
- if ($[25] !== t15) {
139
- t16 = /* @__PURE__ */ jsx("span", {
137
+ $[24] = t16;
138
+ } else t16 = $[24];
139
+ let t17;
140
+ if ($[25] !== t16) {
141
+ t17 = /* @__PURE__ */ jsx("span", {
140
142
  className: "max-w-40 truncate",
141
- children: t15
143
+ children: t16
142
144
  });
143
- $[25] = t15;
144
- $[26] = t16;
145
- } else t16 = $[26];
146
- let t17;
145
+ $[25] = t16;
146
+ $[26] = t17;
147
+ } else t17 = $[26];
148
+ let t18;
147
149
  if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
148
- t17 = /* @__PURE__ */ jsx(ChevronsUpDown, {
150
+ t18 = /* @__PURE__ */ jsx(ChevronsUpDown, {
149
151
  "aria-hidden": true,
150
152
  className: "size-4 opacity-50"
151
153
  });
152
- $[27] = t17;
153
- } else t17 = $[27];
154
- let t18;
155
- if ($[28] !== t14 || $[29] !== t16) {
156
- t18 = /* @__PURE__ */ jsxs(DropdownMenuTrigger, {
157
- render: t13,
154
+ $[27] = t18;
155
+ } else t18 = $[27];
156
+ let t19;
157
+ if ($[28] !== disabled || $[29] !== t15 || $[30] !== t17) {
158
+ t19 = /* @__PURE__ */ jsxs(DropdownMenuTrigger, {
159
+ disabled,
160
+ render: t14,
158
161
  children: [
159
- t14,
160
- t16,
161
- t17
162
+ t15,
163
+ t17,
164
+ t18
162
165
  ]
163
166
  });
164
- $[28] = t14;
165
- $[29] = t16;
166
- $[30] = t18;
167
- } else t18 = $[30];
168
- const t19 = viewed.tag;
169
- let t20;
170
- if ($[31] !== locales || $[32] !== switchTo) {
171
- t20 = (tag) => {
167
+ $[28] = disabled;
168
+ $[29] = t15;
169
+ $[30] = t17;
170
+ $[31] = t19;
171
+ } else t19 = $[31];
172
+ const t20 = viewed.tag;
173
+ let t21;
174
+ if ($[32] !== locales || $[33] !== switchTo) {
175
+ t21 = (tag) => {
172
176
  const next = locales.find((locale_0) => locale_0.tag === tag);
173
177
  if (next) switchTo(next);
174
178
  };
175
- $[31] = locales;
176
- $[32] = switchTo;
177
- $[33] = t20;
178
- } else t20 = $[33];
179
- let t21;
180
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
181
- t21 = /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Languages" });
179
+ $[32] = locales;
180
+ $[33] = switchTo;
182
181
  $[34] = t21;
183
182
  } else t21 = $[34];
184
183
  let t22;
185
- if ($[35] !== locales) {
186
- t22 = locales.map(_temp3);
187
- $[35] = locales;
188
- $[36] = t22;
189
- } else t22 = $[36];
184
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
185
+ t22 = /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Languages" });
186
+ $[35] = t22;
187
+ } else t22 = $[35];
190
188
  let t23;
191
- if ($[37] !== t22) {
192
- t23 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t21, t22] });
193
- $[37] = t22;
194
- $[38] = t23;
195
- } else t23 = $[38];
189
+ if ($[36] !== locales) {
190
+ t23 = locales.map(_temp3);
191
+ $[36] = locales;
192
+ $[37] = t23;
193
+ } else t23 = $[37];
196
194
  let t24;
197
- if ($[39] !== t20 || $[40] !== t23 || $[41] !== viewed.tag) {
198
- t24 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
199
- value: t19,
200
- onValueChange: t20,
201
- children: t23
202
- });
203
- $[39] = t20;
204
- $[40] = t23;
205
- $[41] = viewed.tag;
206
- $[42] = t24;
207
- } else t24 = $[42];
195
+ if ($[38] !== t23) {
196
+ t24 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t22, t23] });
197
+ $[38] = t23;
198
+ $[39] = t24;
199
+ } else t24 = $[39];
208
200
  let t25;
209
- if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
210
- t25 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
201
+ if ($[40] !== t21 || $[41] !== t24 || $[42] !== viewed.tag) {
202
+ t25 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
203
+ value: t20,
204
+ onValueChange: t21,
205
+ children: t24
206
+ });
207
+ $[40] = t21;
208
+ $[41] = t24;
209
+ $[42] = viewed.tag;
211
210
  $[43] = t25;
212
211
  } else t25 = $[43];
213
- const t26 = !projectId;
214
- let t27;
212
+ let t26;
215
213
  if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
216
- t27 = /* @__PURE__ */ jsx(Plus, {});
217
- $[44] = t27;
218
- } else t27 = $[44];
214
+ t26 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
215
+ $[44] = t26;
216
+ } else t26 = $[44];
217
+ const t27 = !projectId;
219
218
  let t28;
220
- if ($[45] !== t26) {
221
- t28 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
222
- disabled: t26,
219
+ if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
220
+ t28 = /* @__PURE__ */ jsx(Plus, {});
221
+ $[45] = t28;
222
+ } else t28 = $[45];
223
+ let t29;
224
+ if ($[46] !== t27) {
225
+ t29 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
226
+ disabled: t27,
223
227
  onClick: _temp4,
224
- children: [t27, "Add language…"]
228
+ children: [t28, "Add language…"]
225
229
  });
226
- $[45] = t26;
227
- $[46] = t28;
228
- } else t28 = $[46];
229
- let t29;
230
- if ($[47] !== projectId || $[48] !== viewed.isDefault || $[49] !== viewed.tag) {
231
- t29 = !viewed.isDefault && /* @__PURE__ */ jsxs(DropdownMenuItem, {
230
+ $[46] = t27;
231
+ $[47] = t29;
232
+ } else t29 = $[47];
233
+ let t30;
234
+ if ($[48] !== projectId || $[49] !== viewed.isDefault || $[50] !== viewed.tag) {
235
+ t30 = !viewed.isDefault && /* @__PURE__ */ jsxs(DropdownMenuItem, {
232
236
  variant: "destructive",
233
237
  disabled: !projectId,
234
238
  onClick: _temp5,
@@ -239,43 +243,43 @@ function LocalePicker(t0) {
239
243
  "…"
240
244
  ]
241
245
  });
242
- $[47] = projectId;
243
- $[48] = viewed.isDefault;
244
- $[49] = viewed.tag;
245
- $[50] = t29;
246
- } else t29 = $[50];
247
- let t30;
248
- if ($[51] !== t28 || $[52] !== t29) {
249
- t30 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t28, t29] });
250
- $[51] = t28;
246
+ $[48] = projectId;
247
+ $[49] = viewed.isDefault;
248
+ $[50] = viewed.tag;
249
+ $[51] = t30;
250
+ } else t30 = $[51];
251
+ let t31;
252
+ if ($[52] !== t29 || $[53] !== t30) {
253
+ t31 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t29, t30] });
251
254
  $[52] = t29;
252
255
  $[53] = t30;
253
- } else t30 = $[53];
254
- let t31;
255
- if ($[54] !== t24 || $[55] !== t30) {
256
- t31 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
256
+ $[54] = t31;
257
+ } else t31 = $[54];
258
+ let t32;
259
+ if ($[55] !== t25 || $[56] !== t31) {
260
+ t32 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
257
261
  className: "w-64",
258
262
  align: "start",
259
263
  children: [
260
- t24,
261
264
  t25,
262
- t30
265
+ t26,
266
+ t31
263
267
  ]
264
268
  });
265
- $[54] = t24;
266
- $[55] = t30;
269
+ $[55] = t25;
267
270
  $[56] = t31;
268
- } else t31 = $[56];
269
- let t32;
270
- if ($[57] !== t18 || $[58] !== t31) {
271
- t32 = /* @__PURE__ */ jsxs(DropdownMenu, { children: [t18, t31] });
272
- $[57] = t18;
273
- $[58] = t31;
274
- $[59] = t32;
275
- } else t32 = $[59];
271
+ $[57] = t32;
272
+ } else t32 = $[57];
276
273
  let t33;
277
- if ($[60] !== dialog || $[61] !== locales || $[62] !== projectId || $[63] !== switchTo || $[64] !== viewed) {
278
- t33 = projectId && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AddLocaleDialog, {
274
+ if ($[58] !== t19 || $[59] !== t32) {
275
+ t33 = /* @__PURE__ */ jsxs(DropdownMenu, { children: [t19, t32] });
276
+ $[58] = t19;
277
+ $[59] = t32;
278
+ $[60] = t33;
279
+ } else t33 = $[60];
280
+ let t34;
281
+ if ($[61] !== dialog || $[62] !== locales || $[63] !== projectId || $[64] !== switchTo || $[65] !== viewed) {
282
+ t34 = projectId && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AddLocaleDialog, {
279
283
  projectId,
280
284
  locales,
281
285
  open: dialog === "add",
@@ -289,21 +293,21 @@ function LocalePicker(t0) {
289
293
  if (fallback) switchTo(fallback);
290
294
  }
291
295
  })] });
292
- $[60] = dialog;
293
- $[61] = locales;
294
- $[62] = projectId;
295
- $[63] = switchTo;
296
- $[64] = viewed;
297
- $[65] = t33;
298
- } else t33 = $[65];
299
- let t34;
300
- if ($[66] !== t32 || $[67] !== t33) {
301
- t34 = /* @__PURE__ */ jsxs(Fragment, { children: [t32, t33] });
302
- $[66] = t32;
296
+ $[61] = dialog;
297
+ $[62] = locales;
298
+ $[63] = projectId;
299
+ $[64] = switchTo;
300
+ $[65] = viewed;
301
+ $[66] = t34;
302
+ } else t34 = $[66];
303
+ let t35;
304
+ if ($[67] !== t33 || $[68] !== t34) {
305
+ t35 = /* @__PURE__ */ jsxs(Fragment, { children: [t33, t34] });
303
306
  $[67] = t33;
304
307
  $[68] = t34;
305
- } else t34 = $[68];
306
- return t34;
308
+ $[69] = t35;
309
+ } else t35 = $[69];
310
+ return t35;
307
311
  }
308
312
  function _temp6(locale_2) {
309
313
  return locale_2.isDefault;