@adminide-stack/yantra-mobile 12.0.160-alpha.1 → 12.0.160

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 (489) hide show
  1. package/lib/assets/channels/lucy.jpg +0 -0
  2. package/lib/components/GatewayConnector/GatewayConnector.js +3 -2
  3. package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
  4. package/lib/components/GatewayToolbarButtonMobile.js +4 -2
  5. package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
  6. package/lib/components/NavigationHeader/HeaderMoreMenu.js +2 -1
  7. package/lib/components/NavigationHeader/HeaderMoreMenu.js.map +1 -1
  8. package/lib/components/NavigationHeader/NavigationHeader.js +13 -11
  9. package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
  10. package/lib/features/attachments/ComposerAttachMenu.js +15 -6
  11. package/lib/features/attachments/ComposerAttachMenu.js.map +1 -1
  12. package/lib/features/canvas/AudioEditorExperience.js +44 -1
  13. package/lib/features/canvas/AudioEditorExperience.js.map +1 -1
  14. package/lib/features/canvas/CanvasAppsPanel.js +240 -0
  15. package/lib/features/canvas/CanvasAppsPanel.js.map +1 -0
  16. package/lib/features/canvas/CanvasBoardsGrid.js +264 -803
  17. package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
  18. package/lib/features/canvas/CanvasEditToolsPanel.js +320 -66
  19. package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
  20. package/lib/features/canvas/CanvasExperience.js +366 -235
  21. package/lib/features/canvas/CanvasExperience.js.map +1 -1
  22. package/lib/features/canvas/CanvasGeneratePanel.js +437 -117
  23. package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
  24. package/lib/features/canvas/CanvasLibrarySheet.js +218 -18
  25. package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
  26. package/lib/features/canvas/CanvasLooksPanel.js +2 -2
  27. package/lib/features/canvas/CanvasLooksPanel.js.map +1 -1
  28. package/lib/features/canvas/CanvasTasksPanel.js +52 -12
  29. package/lib/features/canvas/CanvasTasksPanel.js.map +1 -1
  30. package/lib/features/canvas/CanvasTemplatesPanel.js +2 -2
  31. package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -1
  32. package/lib/features/canvas/CanvasToolDock.js +146 -37
  33. package/lib/features/canvas/CanvasToolDock.js.map +1 -1
  34. package/lib/features/canvas/DesignCategoryGallery.js +264 -7
  35. package/lib/features/canvas/DesignCategoryGallery.js.map +1 -1
  36. package/lib/features/canvas/NativeCanvasViewer.js +54 -7
  37. package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
  38. package/lib/features/canvas/SetStudioExperience.js +7 -5
  39. package/lib/features/canvas/SetStudioExperience.js.map +1 -1
  40. package/lib/features/canvas/VideoEditorExperience.js +9 -5
  41. package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
  42. package/lib/features/canvas/VideoGeneratorExperience.js +295 -96
  43. package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
  44. package/lib/features/canvas/appsCatalog.js +554 -0
  45. package/lib/features/canvas/appsCatalog.js.map +1 -0
  46. package/lib/features/canvas/boardActions.js +547 -0
  47. package/lib/features/canvas/boardActions.js.map +1 -0
  48. package/lib/features/canvas/boardHistory.js +264 -0
  49. package/lib/features/canvas/boardHistory.js.map +1 -0
  50. package/lib/features/canvas/canvasAgentChat.js +3 -2
  51. package/lib/features/canvas/canvasAgentChat.js.map +1 -1
  52. package/lib/features/canvas/canvasArtifacts.js +115 -0
  53. package/lib/features/canvas/canvasArtifacts.js.map +1 -0
  54. package/lib/features/canvas/canvasCore.js +5 -2
  55. package/lib/features/canvas/canvasCore.js.map +1 -1
  56. package/lib/features/canvas/canvasEditHistory.js +42 -0
  57. package/lib/features/canvas/canvasEditHistory.js.map +1 -0
  58. package/lib/features/canvas/canvasEditOps.js +27 -21
  59. package/lib/features/canvas/canvasEditOps.js.map +1 -1
  60. package/lib/features/canvas/canvasTasks.js +5 -4
  61. package/lib/features/canvas/canvasTasks.js.map +1 -1
  62. package/lib/features/canvas/canvasUi.js +9 -4
  63. package/lib/features/canvas/canvasUi.js.map +1 -1
  64. package/lib/features/canvas/catalogSearchIndex.js +271 -0
  65. package/lib/features/canvas/catalogSearchIndex.js.map +1 -0
  66. package/lib/features/canvas/characters/CharacterBuilder.js +331 -0
  67. package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -0
  68. package/lib/features/canvas/characters/CharacterPicker.js +207 -0
  69. package/lib/features/canvas/characters/CharacterPicker.js.map +1 -0
  70. package/lib/features/canvas/characters/CharacterStudio.js +106 -0
  71. package/lib/features/canvas/characters/CharacterStudio.js.map +1 -0
  72. package/lib/features/canvas/characters/PhotoDumpTool.js +157 -0
  73. package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -0
  74. package/lib/features/canvas/characters/PhotoSlot.js +104 -0
  75. package/lib/features/canvas/characters/PhotoSlot.js.map +1 -0
  76. package/lib/features/canvas/characters/RunFooter.js +126 -0
  77. package/lib/features/canvas/characters/RunFooter.js.map +1 -0
  78. package/lib/features/canvas/characters/StoryFramesTool.js +245 -0
  79. package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -0
  80. package/lib/features/canvas/characters/SubjectPicker.js +198 -0
  81. package/lib/features/canvas/characters/SubjectPicker.js.map +1 -0
  82. package/lib/features/canvas/characters/characterActions.js +364 -0
  83. package/lib/features/canvas/characters/characterActions.js.map +1 -0
  84. package/lib/features/canvas/characters/characterRuns.js +256 -0
  85. package/lib/features/canvas/characters/characterRuns.js.map +1 -0
  86. package/lib/features/canvas/characters/characterStore.js +137 -0
  87. package/lib/features/canvas/characters/characterStore.js.map +1 -0
  88. package/lib/features/canvas/characters/characterTools.js +33 -0
  89. package/lib/features/canvas/characters/characterTools.js.map +1 -0
  90. package/lib/features/canvas/characters/characterVocabulary.js +1138 -0
  91. package/lib/features/canvas/characters/characterVocabulary.js.map +1 -0
  92. package/lib/features/canvas/characters/charactersRpc.js +70 -0
  93. package/lib/features/canvas/characters/charactersRpc.js.map +1 -0
  94. package/lib/features/canvas/characters/photoDumpPacks.js +252 -0
  95. package/lib/features/canvas/characters/photoDumpPacks.js.map +1 -0
  96. package/lib/features/canvas/characters/placement.js +114 -0
  97. package/lib/features/canvas/characters/placement.js.map +1 -0
  98. package/lib/features/canvas/characters/storyboard.js +188 -0
  99. package/lib/features/canvas/characters/storyboard.js.map +1 -0
  100. package/lib/features/canvas/createTiles.js +16 -98
  101. package/lib/features/canvas/createTiles.js.map +1 -1
  102. package/lib/features/canvas/creditsOffer.js +21 -0
  103. package/lib/features/canvas/creditsOffer.js.map +1 -0
  104. package/lib/features/canvas/deepLinks.js.map +1 -1
  105. package/lib/features/canvas/designCatalog.js +6 -13
  106. package/lib/features/canvas/designCatalog.js.map +1 -1
  107. package/lib/features/canvas/editTools.js +122 -10
  108. package/lib/features/canvas/editTools.js.map +1 -1
  109. package/lib/features/canvas/editorControls.js +1 -1
  110. package/lib/features/canvas/elements/ElementForm.js +389 -0
  111. package/lib/features/canvas/elements/ElementForm.js.map +1 -0
  112. package/lib/features/canvas/elements/ElementMentionMenu.js +125 -0
  113. package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -0
  114. package/lib/features/canvas/elements/ElementThumb.js +23 -0
  115. package/lib/features/canvas/elements/ElementThumb.js.map +1 -0
  116. package/lib/features/canvas/elements/ElementsButton.js +55 -0
  117. package/lib/features/canvas/elements/ElementsButton.js.map +1 -0
  118. package/lib/features/canvas/elements/ElementsSheet.js +392 -0
  119. package/lib/features/canvas/elements/ElementsSheet.js.map +1 -0
  120. package/lib/features/canvas/elements/MentionedElements.js +159 -0
  121. package/lib/features/canvas/elements/MentionedElements.js.map +1 -0
  122. package/lib/features/canvas/elements/elementCopy.js +37 -0
  123. package/lib/features/canvas/elements/elementCopy.js.map +1 -0
  124. package/lib/features/canvas/elements/elementImages.js +66 -0
  125. package/lib/features/canvas/elements/elementImages.js.map +1 -0
  126. package/lib/features/canvas/elements/elementsStore.js +164 -0
  127. package/lib/features/canvas/elements/elementsStore.js.map +1 -0
  128. package/lib/features/canvas/elements/shotMentions.js +94 -0
  129. package/lib/features/canvas/elements/shotMentions.js.map +1 -0
  130. package/lib/features/canvas/elements/unicodeWords.js +13 -0
  131. package/lib/features/canvas/elements/unicodeWords.js.map +1 -0
  132. package/lib/features/canvas/elements/useElementMentions.js +94 -0
  133. package/lib/features/canvas/elements/useElementMentions.js.map +1 -0
  134. package/lib/features/canvas/elements/useGeneratorElements.js +83 -0
  135. package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -0
  136. package/lib/features/canvas/elements/useSavedElements.js +170 -0
  137. package/lib/features/canvas/elements/useSavedElements.js.map +1 -0
  138. package/lib/features/canvas/enhance/AnimateControls.js +249 -0
  139. package/lib/features/canvas/enhance/AnimateControls.js.map +1 -0
  140. package/lib/features/canvas/enhance/ClipAudioControls.js +184 -0
  141. package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -0
  142. package/lib/features/canvas/enhance/ImageAiControls.js +293 -0
  143. package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -0
  144. package/lib/features/canvas/enhance/MediaSlot.js +220 -0
  145. package/lib/features/canvas/enhance/MediaSlot.js.map +1 -0
  146. package/lib/features/canvas/enhance/PixelToolControls.js +236 -0
  147. package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -0
  148. package/lib/features/canvas/enhance/RemixControls.js +166 -0
  149. package/lib/features/canvas/enhance/RemixControls.js.map +1 -0
  150. package/lib/features/canvas/enhance/enhanceUi.js +182 -0
  151. package/lib/features/canvas/enhance/enhanceUi.js.map +1 -0
  152. package/lib/features/canvas/enhance/useEnhanceRunner.js +218 -0
  153. package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -0
  154. package/lib/features/canvas/enhanceCatalog.js +110 -0
  155. package/lib/features/canvas/enhanceCatalog.js.map +1 -0
  156. package/lib/features/canvas/enhanceOps.js +630 -0
  157. package/lib/features/canvas/enhanceOps.js.map +1 -0
  158. package/lib/features/canvas/enhanceRpc.js +404 -0
  159. package/lib/features/canvas/enhanceRpc.js.map +1 -0
  160. package/lib/features/canvas/generationModels.js +82 -11
  161. package/lib/features/canvas/generationModels.js.map +1 -1
  162. package/lib/features/canvas/generationTasks.js +46 -17
  163. package/lib/features/canvas/generationTasks.js.map +1 -1
  164. package/lib/features/canvas/generator/GeneratorModelMenu.js +118 -0
  165. package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -0
  166. package/lib/features/canvas/generator/audio/AudioLaneSettings.js +127 -0
  167. package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -0
  168. package/lib/features/canvas/generator/audio/audioLane.js +163 -0
  169. package/lib/features/canvas/generator/audio/audioLane.js.map +1 -0
  170. package/lib/features/canvas/generator/audio/audioVoices.js +108 -0
  171. package/lib/features/canvas/generator/audio/audioVoices.js.map +1 -0
  172. package/lib/features/canvas/generator/audio/clipAudio.js +149 -0
  173. package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -0
  174. package/lib/features/canvas/generator/audio/dub.js +109 -0
  175. package/lib/features/canvas/generator/audio/dub.js.map +1 -0
  176. package/lib/features/canvas/generator/audio/soundtrack.js +70 -0
  177. package/lib/features/canvas/generator/audio/soundtrack.js.map +1 -0
  178. package/lib/features/canvas/generator/audio/useAudioVoices.js +38 -0
  179. package/lib/features/canvas/generator/audio/useAudioVoices.js.map +1 -0
  180. package/lib/features/canvas/generator/audio/useSamplePlayer.js +72 -0
  181. package/lib/features/canvas/generator/audio/useSamplePlayer.js.map +1 -0
  182. package/lib/features/canvas/generator/audio/useSampleUploads.js +11 -0
  183. package/lib/features/canvas/generator/audio/useSampleUploads.js.map +1 -0
  184. package/lib/features/canvas/generator/batchImages.js +198 -0
  185. package/lib/features/canvas/generator/batchImages.js.map +1 -0
  186. package/lib/features/canvas/generator/batchLayout.js +36 -0
  187. package/lib/features/canvas/generator/batchLayout.js.map +1 -0
  188. package/lib/features/canvas/generator/brandKitGeneration.js +47 -0
  189. package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -0
  190. package/lib/features/canvas/generator/cameraVocabulary.js +90 -0
  191. package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
  192. package/lib/features/canvas/generator/cinematicVocabulary.js +58 -0
  193. package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
  194. package/lib/features/canvas/generator/elementMentions.js +402 -0
  195. package/lib/features/canvas/generator/elementMentions.js.map +1 -0
  196. package/lib/features/canvas/generator/reuse/BatchCountPill.js +136 -0
  197. package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -0
  198. package/lib/features/canvas/generator/reuse/busyRuns.js +17 -0
  199. package/lib/features/canvas/generator/reuse/busyRuns.js.map +1 -0
  200. package/lib/features/canvas/generator/reuse/generationRecord.js +368 -0
  201. package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -0
  202. package/lib/features/canvas/generator/reuse/generationReuse.js +77 -0
  203. package/lib/features/canvas/generator/reuse/generationReuse.js.map +1 -0
  204. package/lib/features/canvas/generator/reuse/laneInputs.js +75 -0
  205. package/lib/features/canvas/generator/reuse/laneInputs.js.map +1 -0
  206. package/lib/features/canvas/generator/reuse/modelFavourites.js +87 -0
  207. package/lib/features/canvas/generator/reuse/modelFavourites.js.map +1 -0
  208. package/lib/features/canvas/generator/reuse/recreate.js +121 -0
  209. package/lib/features/canvas/generator/reuse/recreate.js.map +1 -0
  210. package/lib/features/canvas/generator/reuse/retryJob.js +142 -0
  211. package/lib/features/canvas/generator/reuse/retryJob.js.map +1 -0
  212. package/lib/features/canvas/generator/reuse/reusePlan.js +203 -0
  213. package/lib/features/canvas/generator/reuse/reusePlan.js.map +1 -0
  214. package/lib/features/canvas/generator/reuse/runBoard.js +117 -0
  215. package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -0
  216. package/lib/features/canvas/generator/useShotSpec.js +4 -3
  217. package/lib/features/canvas/generator/useShotSpec.js.map +1 -1
  218. package/lib/features/canvas/generator/video/VideoExtrasControls.js +276 -0
  219. package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -0
  220. package/lib/features/canvas/generator/video/cameraMotions.js +66 -0
  221. package/lib/features/canvas/generator/video/cameraMotions.js.map +1 -0
  222. package/lib/features/canvas/generator/video/clipTile.js +20 -0
  223. package/lib/features/canvas/generator/video/clipTile.js.map +1 -0
  224. package/lib/features/canvas/generator/video/mediaSeconds.js +31 -0
  225. package/lib/features/canvas/generator/video/mediaSeconds.js.map +1 -0
  226. package/lib/features/canvas/generator/video/referenceMedia.js +156 -0
  227. package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -0
  228. package/lib/features/canvas/generator/video/useVideoGenExtras.js +179 -0
  229. package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -0
  230. package/lib/features/canvas/generator/video/videoExtras.js +34 -0
  231. package/lib/features/canvas/generator/video/videoExtras.js.map +1 -0
  232. package/lib/features/canvas/generator/video/videoModelCaps.js +96 -0
  233. package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -0
  234. package/lib/features/canvas/home/BoardHistorySheet.js +266 -0
  235. package/lib/features/canvas/home/BoardHistorySheet.js.map +1 -0
  236. package/lib/features/canvas/home/BoardMenuSheet.js +157 -0
  237. package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -0
  238. package/lib/features/canvas/home/BoardTile.js +224 -0
  239. package/lib/features/canvas/home/BoardTile.js.map +1 -0
  240. package/lib/features/canvas/home/HeroComposer.js +72 -6
  241. package/lib/features/canvas/home/HeroComposer.js.map +1 -1
  242. package/lib/features/canvas/home/SlidesPrompt.js +79 -0
  243. package/lib/features/canvas/home/SlidesPrompt.js.map +1 -0
  244. package/lib/features/canvas/home/TemplatesGallery.js +2 -19
  245. package/lib/features/canvas/home/TemplatesGallery.js.map +1 -1
  246. package/lib/features/canvas/home/TrashView.js +299 -0
  247. package/lib/features/canvas/home/TrashView.js.map +1 -0
  248. package/lib/features/canvas/home/heroShots.js +4 -2
  249. package/lib/features/canvas/home/heroShots.js.map +1 -1
  250. package/lib/features/canvas/home/templatesGallerySources.js +13 -58
  251. package/lib/features/canvas/home/templatesGallerySources.js.map +1 -1
  252. package/lib/features/canvas/home/useYourWork.js +218 -0
  253. package/lib/features/canvas/home/useYourWork.js.map +1 -0
  254. package/lib/features/canvas/homeWork.js +54 -119
  255. package/lib/features/canvas/homeWork.js.map +1 -1
  256. package/lib/features/canvas/influencer/influencerPipeline.js +9 -8
  257. package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
  258. package/lib/features/canvas/lazyEditors.js +3 -2
  259. package/lib/features/canvas/lazyEditors.js.map +1 -1
  260. package/lib/features/canvas/lookReading.js +38 -0
  261. package/lib/features/canvas/lookReading.js.map +1 -0
  262. package/lib/features/canvas/matchLook.js +81 -0
  263. package/lib/features/canvas/matchLook.js.map +1 -0
  264. package/lib/features/canvas/mediaUrls.js +22 -1
  265. package/lib/features/canvas/mediaUrls.js.map +1 -1
  266. package/lib/features/canvas/pngPixels.js +224 -0
  267. package/lib/features/canvas/pngPixels.js.map +1 -0
  268. package/lib/features/canvas/rankedCatalogSearch.js +1 -1
  269. package/lib/features/canvas/serverTasks.js +12 -5
  270. package/lib/features/canvas/serverTasks.js.map +1 -1
  271. package/lib/features/canvas/studioCatalog.js +1 -1
  272. package/lib/features/canvas/surfaceIndex.js +287 -11
  273. package/lib/features/canvas/surfaceIndex.js.map +1 -1
  274. package/lib/features/canvas/templateSearch.js +90 -11
  275. package/lib/features/canvas/templateSearch.js.map +1 -1
  276. package/lib/features/canvas/videoEditor/agent/agentLoop.js +6 -5
  277. package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
  278. package/lib/features/canvas/videoEditor/agent/brainClient.js +13 -2
  279. package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -1
  280. package/lib/features/canvas/videoEditor/agent/cutTools.js +150 -4
  281. package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
  282. package/lib/features/canvas/videoEditor/exportTask.js +5 -2
  283. package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
  284. package/lib/features/canvas/videoEditor/formWidgets.js +1 -1
  285. package/lib/features/canvas/videoEditor/mediaActions.js +18 -3
  286. package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
  287. package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js +25 -2
  288. package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js.map +1 -1
  289. package/lib/features/canvas/videoEditor/produce/produceScenes.js +15 -7
  290. package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
  291. package/lib/features/canvas/videoEditor/remoteMediaClient.js +3 -3
  292. package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
  293. package/lib/features/channels/ChannelIcon.js +62 -0
  294. package/lib/features/channels/ChannelIcon.js.map +1 -0
  295. package/lib/features/channels/ConnectAppsSheet.js +721 -0
  296. package/lib/features/channels/ConnectAppsSheet.js.map +1 -0
  297. package/lib/features/channels/HomeImessage.js +48 -0
  298. package/lib/features/channels/HomeImessage.js.map +1 -0
  299. package/lib/features/channels/channelLinks.js +90 -0
  300. package/lib/features/channels/channelLinks.js.map +1 -0
  301. package/lib/features/channels/useChannelsApi.js +299 -0
  302. package/lib/features/channels/useChannelsApi.js.map +1 -0
  303. package/lib/features/chat/AskUserCard.js +327 -21
  304. package/lib/features/chat/AskUserCard.js.map +1 -1
  305. package/lib/features/chat/ChatModelSheet.js +414 -0
  306. package/lib/features/chat/ChatModelSheet.js.map +1 -0
  307. package/lib/features/chat/TemplatesChatCards.js +32 -1
  308. package/lib/features/chat/TemplatesChatCards.js.map +1 -1
  309. package/lib/features/chat/askUser.js +130 -17
  310. package/lib/features/chat/askUser.js.map +1 -1
  311. package/lib/features/chat/chatModelCredentials.js +76 -0
  312. package/lib/features/chat/chatModelCredentials.js.map +1 -0
  313. package/lib/features/chat/chatModelPick.js +67 -0
  314. package/lib/features/chat/chatModelPick.js.map +1 -0
  315. package/lib/features/chat/credentialTemplates.js +43 -0
  316. package/lib/features/chat/credentialTemplates.js.map +1 -0
  317. package/lib/features/design/DesignEditorExperience.js +208 -22
  318. package/lib/features/design/DesignEditorExperience.js.map +1 -1
  319. package/lib/features/design/DesignExperience.js +23 -6
  320. package/lib/features/design/DesignExperience.js.map +1 -1
  321. package/lib/features/design/doc/aiDesign.js +6 -16
  322. package/lib/features/design/doc/aiDesign.js.map +1 -1
  323. package/lib/features/design/doc/arrange.js +72 -0
  324. package/lib/features/design/doc/arrange.js.map +1 -0
  325. package/lib/features/design/doc/artifacts.js +40 -10
  326. package/lib/features/design/doc/artifacts.js.map +1 -1
  327. package/lib/features/design/doc/bleedRunout.js +201 -0
  328. package/lib/features/design/doc/bleedRunout.js.map +1 -0
  329. package/lib/features/design/doc/briefForms.js +218 -0
  330. package/lib/features/design/doc/briefForms.js.map +1 -0
  331. package/lib/features/design/doc/chart.js +11 -1
  332. package/lib/features/design/doc/chart.js.map +1 -1
  333. package/lib/features/design/doc/deletedWork.js +13 -0
  334. package/lib/features/design/doc/deletedWork.js.map +1 -0
  335. package/lib/features/design/doc/demoVideo.js +91 -0
  336. package/lib/features/design/doc/demoVideo.js.map +1 -0
  337. package/lib/features/design/doc/docOps.js +15 -0
  338. package/lib/features/design/doc/docOps.js.map +1 -1
  339. package/lib/features/design/doc/layoutGuides.js +159 -0
  340. package/lib/features/design/doc/layoutGuides.js.map +1 -0
  341. package/lib/features/design/doc/pageTemplates.js +286 -0
  342. package/lib/features/design/doc/pageTemplates.js.map +1 -0
  343. package/lib/features/design/doc/resize.js +8 -3
  344. package/lib/features/design/doc/resize.js.map +1 -1
  345. package/lib/features/design/doc/sizes.js +18 -5
  346. package/lib/features/design/doc/sizes.js.map +1 -1
  347. package/lib/features/design/doc/textRuns.js +67 -0
  348. package/lib/features/design/doc/textRuns.js.map +1 -0
  349. package/lib/features/design/doc/types.js +8 -1
  350. package/lib/features/design/doc/types.js.map +1 -1
  351. package/lib/features/design/editor/AiPanel.js +71 -74
  352. package/lib/features/design/editor/AiPanel.js.map +1 -1
  353. package/lib/features/design/editor/AllPagesPanel.js +64 -0
  354. package/lib/features/design/editor/AllPagesPanel.js.map +1 -0
  355. package/lib/features/design/editor/CarouselWizard.js +139 -0
  356. package/lib/features/design/editor/CarouselWizard.js.map +1 -0
  357. package/lib/features/design/editor/DesignCanvas.js +205 -14
  358. package/lib/features/design/editor/DesignCanvas.js.map +1 -1
  359. package/lib/features/design/editor/ExportSheet.js +24 -8
  360. package/lib/features/design/editor/ExportSheet.js.map +1 -1
  361. package/lib/features/design/editor/FlyerBriefForm.js +221 -0
  362. package/lib/features/design/editor/FlyerBriefForm.js.map +1 -0
  363. package/lib/features/design/editor/GuidesPanel.js +152 -0
  364. package/lib/features/design/editor/GuidesPanel.js.map +1 -0
  365. package/lib/features/design/editor/LayerTools.js +24 -1
  366. package/lib/features/design/editor/LayerTools.js.map +1 -1
  367. package/lib/features/design/editor/LayersPanel.js +156 -0
  368. package/lib/features/design/editor/LayersPanel.js.map +1 -0
  369. package/lib/features/design/editor/ToolPanels.js +34 -1
  370. package/lib/features/design/editor/ToolPanels.js.map +1 -1
  371. package/lib/features/design/editor/WordStyleRow.js +66 -0
  372. package/lib/features/design/editor/WordStyleRow.js.map +1 -0
  373. package/lib/features/design/editor/useDesignSave.js +36 -2
  374. package/lib/features/design/editor/useDesignSave.js.map +1 -1
  375. package/lib/features/design/export/exportDesign.js +79 -19
  376. package/lib/features/design/export/exportDesign.js.map +1 -1
  377. package/lib/features/design/export/fetchBytes.js +26 -0
  378. package/lib/features/design/export/fetchBytes.js.map +1 -0
  379. package/lib/features/design/export/pdf.js +16 -1
  380. package/lib/features/design/export/pdf.js.map +1 -1
  381. package/lib/features/design/export/pptx.js +621 -0
  382. package/lib/features/design/export/pptx.js.map +1 -0
  383. package/lib/features/design/export/pptxChart.js +106 -0
  384. package/lib/features/design/export/pptxChart.js.map +1 -0
  385. package/lib/features/design/export/pptxGeometry.js +219 -0
  386. package/lib/features/design/export/pptxGeometry.js.map +1 -0
  387. package/lib/features/design/export/printFile.js +19 -0
  388. package/lib/features/design/export/printFile.js.map +1 -0
  389. package/lib/features/design/export/zip.js +91 -0
  390. package/lib/features/design/export/zip.js.map +1 -0
  391. package/lib/features/design/render/PageCapture.js +95 -23
  392. package/lib/features/design/render/PageCapture.js.map +1 -1
  393. package/lib/features/design/render/TextMeasure.js +1 -1
  394. package/lib/features/design/render/layers.js +1 -1
  395. package/lib/features/design/surface/BoardScreen.js +139 -102
  396. package/lib/features/design/surface/BoardScreen.js.map +1 -1
  397. package/lib/features/design/surface/BrandSheet.js +407 -0
  398. package/lib/features/design/surface/BrandSheet.js.map +1 -0
  399. package/lib/features/design/surface/ChatWorkView.js +154 -0
  400. package/lib/features/design/surface/ChatWorkView.js.map +1 -0
  401. package/lib/features/design/surface/CreationScreen.js +36 -2
  402. package/lib/features/design/surface/CreationScreen.js.map +1 -1
  403. package/lib/features/design/surface/DesignAgentChatPane.js +7 -1
  404. package/lib/features/design/surface/DesignAgentChatPane.js.map +1 -1
  405. package/lib/features/design/surface/DesignHome.js +505 -0
  406. package/lib/features/design/surface/DesignHome.js.map +1 -0
  407. package/lib/features/design/surface/DesignSurfaceExperience.js +182 -9
  408. package/lib/features/design/surface/DesignSurfaceExperience.js.map +1 -1
  409. package/lib/features/design/surface/TasksSheet.js +141 -0
  410. package/lib/features/design/surface/TasksSheet.js.map +1 -0
  411. package/lib/features/design/surface/TemplatesGallery.js +67 -17
  412. package/lib/features/design/surface/TemplatesGallery.js.map +1 -1
  413. package/lib/features/design/surface/WorkTiles.js +207 -0
  414. package/lib/features/design/surface/WorkTiles.js.map +1 -0
  415. package/lib/features/design/surface/agentTurn.js +4 -4
  416. package/lib/features/design/surface/agentTurn.js.map +1 -1
  417. package/lib/features/design/surface/brandKit.js +204 -0
  418. package/lib/features/design/surface/brandKit.js.map +1 -0
  419. package/lib/features/design/surface/designBoard.js +269 -58
  420. package/lib/features/design/surface/designBoard.js.map +1 -1
  421. package/lib/features/design/surface/designChannel.js +30 -6
  422. package/lib/features/design/surface/designChannel.js.map +1 -1
  423. package/lib/features/design/surface/designConnector.js +11 -3
  424. package/lib/features/design/surface/designConnector.js.map +1 -1
  425. package/lib/features/design/surface/designErrors.js +92 -0
  426. package/lib/features/design/surface/designErrors.js.map +1 -0
  427. package/lib/features/design/surface/designLinks.js +64 -1
  428. package/lib/features/design/surface/designLinks.js.map +1 -1
  429. package/lib/features/design/surface/designRun.js +7 -3
  430. package/lib/features/design/surface/designRun.js.map +1 -1
  431. package/lib/features/design/surface/designTheme.js +54 -93
  432. package/lib/features/design/surface/designTheme.js.map +1 -1
  433. package/lib/features/design/surface/execStream.js +2 -2
  434. package/lib/features/design/surface/execStream.js.map +1 -1
  435. package/lib/features/design/surface/freshLinks.js +69 -0
  436. package/lib/features/design/surface/freshLinks.js.map +1 -0
  437. package/lib/features/design/surface/graphicChat.js +37 -0
  438. package/lib/features/design/surface/graphicChat.js.map +1 -0
  439. package/lib/features/design/surface/templateKinds.js +61 -0
  440. package/lib/features/design/surface/templateKinds.js.map +1 -0
  441. package/lib/features/design/surface/useBrandKitInUse.js +90 -0
  442. package/lib/features/design/surface/useBrandKitInUse.js.map +1 -0
  443. package/lib/features/design/surface/useDesignSurface.js +202 -43
  444. package/lib/features/design/surface/useDesignSurface.js.map +1 -1
  445. package/lib/features/design/surface/workList.js +184 -0
  446. package/lib/features/design/surface/workList.js.map +1 -0
  447. package/lib/features/devices/bodyComposition.js.map +1 -1
  448. package/lib/features/docs/DocsEditorExperience.js +18 -3
  449. package/lib/features/docs/DocsEditorExperience.js.map +1 -1
  450. package/lib/features/docs/docArtifacts.js +11 -23
  451. package/lib/features/docs/docArtifacts.js.map +1 -1
  452. package/lib/features/docs/docExport.js +1 -13
  453. package/lib/features/docs/docExport.js.map +1 -1
  454. package/lib/features/docs/docShare.js +28 -1
  455. package/lib/features/docs/docShare.js.map +1 -1
  456. package/lib/features/docs/docxFile.js +221 -0
  457. package/lib/features/docs/docxFile.js.map +1 -0
  458. package/lib/features/home/sky/HomeSky.js +526 -0
  459. package/lib/features/home/sky/HomeSky.js.map +1 -0
  460. package/lib/features/home/sky/homeSkyBar.js +16 -0
  461. package/lib/features/home/sky/homeSkyBar.js.map +1 -0
  462. package/lib/features/home/sky/skyScene.js +273 -0
  463. package/lib/features/home/sky/skyScene.js.map +1 -0
  464. package/lib/features/home/sky/useSkyScene.js +32 -0
  465. package/lib/features/home/sky/useSkyScene.js.map +1 -0
  466. package/lib/features/home/weather.js +8 -3
  467. package/lib/features/home/weather.js.map +1 -1
  468. package/lib/features/links/openInApp.js +8 -1
  469. package/lib/features/links/openInApp.js.map +1 -1
  470. package/lib/features/webbuilder/codezenHandoff.js +7 -1
  471. package/lib/features/webbuilder/codezenHandoff.js.map +1 -1
  472. package/lib/hooks/useChatStream.js +3 -2
  473. package/lib/hooks/useChatStream.js.map +1 -1
  474. package/lib/screens/DesignNative/index.js +13 -3
  475. package/lib/screens/DesignNative/index.js.map +1 -1
  476. package/lib/screens/Devices/index.js.map +1 -1
  477. package/lib/screens/Home/HomeScreen.js +150 -28
  478. package/lib/screens/Home/HomeScreen.js.map +1 -1
  479. package/lib/screens/Home/components/HomeHero.js +7 -4
  480. package/lib/screens/Home/components/HomeHero.js.map +1 -1
  481. package/lib/screens/Home/components/HomeSuggestions.js +5 -3
  482. package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
  483. package/package.json +4 -4
  484. package/lib/features/design/surface/DesignBoards.js +0 -441
  485. package/lib/features/design/surface/DesignBoards.js.map +0 -1
  486. package/lib/features/design/surface/WetPaint.js +0 -140
  487. package/lib/features/design/surface/WetPaint.js.map +0 -1
  488. package/lib/features/design/surface/metaball.js +0 -48
  489. package/lib/features/design/surface/metaball.js.map +0 -1
@@ -0,0 +1,1138 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ const FRAMINGS = [{
18
+ id: "portrait",
19
+ label: "Portrait",
20
+ aspect: "3:4",
21
+ phrase: "Head-and-shoulders portrait, facing the camera, plain light grey studio backdrop, soft even light, sharp focus."
22
+ }, {
23
+ id: "full-body",
24
+ label: "Full body",
25
+ aspect: "9:16",
26
+ phrase: "Full-body standing shot from head to toe, facing the camera, arms relaxed at the sides, plain light grey studio backdrop, soft even light, sharp focus."
27
+ }, {
28
+ id: "sheet",
29
+ label: "Character sheet",
30
+ aspect: "16:9",
31
+ phrase: "A two-panel character sheet on a pure white seamless background: on the left a close-up of the face with the whole head and hair in frame, on the right a full-body standing shot, arms relaxed at the sides. The same person in both panels. Bright, soft, even light, sharp focus."
32
+ }];
33
+ const CREATURE = "creature";
34
+ const ATTRIBUTE_GROUPS = [
35
+ {
36
+ id: "type",
37
+ label: "Character type",
38
+ options: [{
39
+ id: "everyday",
40
+ label: "Everyday",
41
+ phrase: "everyday-looking"
42
+ }, {
43
+ id: "striking",
44
+ label: "Striking",
45
+ phrase: "striking, unconventional-looking"
46
+ }, {
47
+ id: "offbeat",
48
+ label: "Offbeat",
49
+ phrase: "offbeat, odd-looking"
50
+ }, {
51
+ id: "cat",
52
+ label: "Cat",
53
+ phrase: "cat",
54
+ alt: CREATURE
55
+ }, {
56
+ id: "dog",
57
+ label: "Dog",
58
+ phrase: "dog",
59
+ alt: CREATURE
60
+ }, {
61
+ id: "frog",
62
+ label: "Frog",
63
+ phrase: "frog",
64
+ alt: CREATURE
65
+ }, {
66
+ id: "bird",
67
+ label: "Bird",
68
+ phrase: "bird",
69
+ alt: CREATURE
70
+ }, {
71
+ id: "mouse",
72
+ label: "Mouse",
73
+ phrase: "mouse",
74
+ alt: CREATURE
75
+ }, {
76
+ id: "beetle",
77
+ label: "Beetle",
78
+ phrase: "beetle",
79
+ alt: CREATURE
80
+ }]
81
+ },
82
+ {
83
+ id: "gender",
84
+ label: "Gender",
85
+ options: [{
86
+ id: "woman",
87
+ label: "Woman",
88
+ phrase: "woman",
89
+ alt: "female"
90
+ }, {
91
+ id: "man",
92
+ label: "Man",
93
+ phrase: "man",
94
+ alt: "male"
95
+ }, {
96
+ id: "trans-woman",
97
+ label: "Trans woman",
98
+ phrase: "trans woman",
99
+ alt: "female"
100
+ }, {
101
+ id: "trans-man",
102
+ label: "Trans man",
103
+ phrase: "trans man",
104
+ alt: "male"
105
+ }, {
106
+ id: "non-binary",
107
+ label: "Non-binary",
108
+ phrase: "non-binary person",
109
+ alt: "androgynous"
110
+ }]
111
+ },
112
+ {
113
+ id: "age",
114
+ label: "Age",
115
+ options: [{
116
+ id: "20s",
117
+ label: "20s",
118
+ phrase: "young adult"
119
+ }, {
120
+ id: "30s",
121
+ label: "30s",
122
+ phrase: "thirty-something"
123
+ }, {
124
+ id: "40s-50s",
125
+ label: "40s-50s",
126
+ phrase: "middle-aged"
127
+ }, {
128
+ id: "60-plus",
129
+ label: "60+",
130
+ phrase: "senior"
131
+ }]
132
+ },
133
+ {
134
+ id: "ethnicity",
135
+ label: "Heritage",
136
+ humanOnly: true,
137
+ options: [{
138
+ id: "african",
139
+ label: "African",
140
+ phrase: "African"
141
+ }, {
142
+ id: "east-asian",
143
+ label: "East Asian",
144
+ phrase: "East Asian"
145
+ }, {
146
+ id: "south-asian",
147
+ label: "South Asian",
148
+ phrase: "South Asian"
149
+ }, {
150
+ id: "southeast-asian",
151
+ label: "Southeast Asian",
152
+ phrase: "Southeast Asian"
153
+ }, {
154
+ id: "european",
155
+ label: "European",
156
+ phrase: "European"
157
+ }, {
158
+ id: "latin-american",
159
+ label: "Latin American",
160
+ phrase: "Latin American"
161
+ }, {
162
+ id: "middle-eastern",
163
+ label: "Middle Eastern",
164
+ phrase: "Middle Eastern"
165
+ }, {
166
+ id: "mixed",
167
+ label: "Mixed",
168
+ phrase: "mixed-heritage"
169
+ }]
170
+ },
171
+ {
172
+ id: "skin",
173
+ label: "Skin tone",
174
+ humanOnly: true,
175
+ options: [{
176
+ id: "porcelain",
177
+ label: "Porcelain",
178
+ phrase: "porcelain-pale skin"
179
+ }, {
180
+ id: "fair",
181
+ label: "Fair",
182
+ phrase: "fair skin"
183
+ }, {
184
+ id: "light",
185
+ label: "Light",
186
+ phrase: "light skin"
187
+ }, {
188
+ id: "olive",
189
+ label: "Olive",
190
+ phrase: "olive skin"
191
+ }, {
192
+ id: "tan",
193
+ label: "Tan",
194
+ phrase: "tan skin"
195
+ }, {
196
+ id: "brown",
197
+ label: "Brown",
198
+ phrase: "brown skin"
199
+ }, {
200
+ id: "deep",
201
+ label: "Deep",
202
+ phrase: "deep brown skin"
203
+ }, {
204
+ id: "dark",
205
+ label: "Dark",
206
+ phrase: "dark skin"
207
+ }]
208
+ },
209
+ {
210
+ id: "build",
211
+ label: "Build",
212
+ options: [{
213
+ id: "slim",
214
+ label: "Slim",
215
+ phrase: "a slim build"
216
+ }, {
217
+ id: "athletic",
218
+ label: "Athletic",
219
+ phrase: "an athletic build"
220
+ }, {
221
+ id: "average",
222
+ label: "Average",
223
+ phrase: "an average build"
224
+ }, {
225
+ id: "curvy",
226
+ label: "Curvy",
227
+ phrase: "a curvy figure"
228
+ }, {
229
+ id: "muscular",
230
+ label: "Muscular",
231
+ phrase: "a muscular build"
232
+ }, {
233
+ id: "heavy",
234
+ label: "Heavy-set",
235
+ phrase: "a heavy-set build"
236
+ }, {
237
+ id: "bodybuilder",
238
+ label: "Bodybuilder",
239
+ phrase: "a hugely muscular bodybuilder physique"
240
+ }]
241
+ },
242
+ {
243
+ id: "hair",
244
+ label: "Hairstyle",
245
+ // `{colour}` is where the hair colour goes, so "long wavy black hair"
246
+ // reads as one phrase. A style with no slot (bald) ignores the colour.
247
+ options: [{
248
+ id: "pixie",
249
+ label: "Pixie cut",
250
+ phrase: "a {colour}pixie cut"
251
+ }, {
252
+ id: "bob",
253
+ label: "Bob",
254
+ phrase: "a sleek {colour}bob"
255
+ }, {
256
+ id: "shoulder",
257
+ label: "Shoulder length",
258
+ phrase: "shoulder-length {colour}hair"
259
+ }, {
260
+ id: "long-straight",
261
+ label: "Long straight",
262
+ phrase: "long straight {colour}hair"
263
+ }, {
264
+ id: "long-wavy",
265
+ label: "Long wavy",
266
+ phrase: "long wavy {colour}hair"
267
+ }, {
268
+ id: "curly",
269
+ label: "Curly",
270
+ phrase: "voluminous curly {colour}hair"
271
+ }, {
272
+ id: "afro",
273
+ label: "Afro",
274
+ phrase: "a full {colour}afro"
275
+ }, {
276
+ id: "braids",
277
+ label: "Braids",
278
+ phrase: "long {colour}box braids"
279
+ }, {
280
+ id: "locs",
281
+ label: "Locs",
282
+ phrase: "shoulder-length {colour}locs"
283
+ }, {
284
+ id: "ponytail",
285
+ label: "High ponytail",
286
+ phrase: "a high {colour}ponytail"
287
+ }, {
288
+ id: "bun",
289
+ label: "Top bun",
290
+ phrase: "a messy {colour}top bun"
291
+ }, {
292
+ id: "pigtails",
293
+ label: "Pigtails",
294
+ phrase: "{colour}pigtails"
295
+ }, {
296
+ id: "buzz",
297
+ label: "Buzz cut",
298
+ phrase: "a {colour}buzz cut"
299
+ }, {
300
+ id: "crew",
301
+ label: "Short crop",
302
+ phrase: "a short cropped {colour}haircut"
303
+ }, {
304
+ id: "slicked",
305
+ label: "Slicked back",
306
+ phrase: "slicked-back {colour}hair"
307
+ }, {
308
+ id: "mullet",
309
+ label: "Mullet",
310
+ phrase: "a {colour}mullet"
311
+ }, {
312
+ id: "bowl",
313
+ label: "Bowl cut",
314
+ phrase: "a glossy {colour}bowl cut"
315
+ }, {
316
+ id: "mohawk",
317
+ label: "Mohawk",
318
+ phrase: "a {colour}mohawk"
319
+ }, {
320
+ id: "bald",
321
+ label: "Bald",
322
+ phrase: "a shaved bald head"
323
+ }]
324
+ },
325
+ {
326
+ id: "hairColour",
327
+ label: "Hair colour",
328
+ options: [{
329
+ id: "black",
330
+ label: "Black",
331
+ phrase: "black"
332
+ }, {
333
+ id: "dark-brown",
334
+ label: "Dark brown",
335
+ phrase: "dark brown"
336
+ }, {
337
+ id: "chestnut",
338
+ label: "Chestnut",
339
+ phrase: "chestnut"
340
+ }, {
341
+ id: "blonde",
342
+ label: "Blonde",
343
+ phrase: "golden blonde"
344
+ }, {
345
+ id: "platinum",
346
+ label: "Platinum",
347
+ phrase: "platinum blonde"
348
+ }, {
349
+ id: "copper",
350
+ label: "Copper",
351
+ phrase: "copper red"
352
+ }, {
353
+ id: "grey",
354
+ label: "Grey",
355
+ phrase: "silver-grey"
356
+ }, {
357
+ id: "white",
358
+ label: "White",
359
+ phrase: "snow-white"
360
+ }, {
361
+ id: "pink",
362
+ label: "Pink",
363
+ phrase: "pastel pink"
364
+ }, {
365
+ id: "lilac",
366
+ label: "Lilac",
367
+ phrase: "lilac"
368
+ }, {
369
+ id: "green",
370
+ label: "Green",
371
+ phrase: "emerald green"
372
+ }, {
373
+ id: "blue",
374
+ label: "Blue",
375
+ phrase: "electric blue"
376
+ }]
377
+ },
378
+ {
379
+ id: "style",
380
+ label: "Style",
381
+ options: [{
382
+ id: "casual",
383
+ label: "Casual",
384
+ phrase: "casual everyday clothes, a plain tee and jeans"
385
+ }, {
386
+ id: "streetwear",
387
+ label: "Streetwear",
388
+ phrase: "streetwear, an oversized hoodie and sneakers"
389
+ }, {
390
+ id: "sporty",
391
+ label: "Sporty",
392
+ phrase: "sporty athleisure"
393
+ }, {
394
+ id: "business",
395
+ label: "Business",
396
+ phrase: "a tailored business suit"
397
+ }, {
398
+ id: "retro",
399
+ label: "Retro",
400
+ phrase: "retro 1970s fashion"
401
+ }, {
402
+ id: "y2k",
403
+ label: "Y2K",
404
+ phrase: "glossy early-2000s Y2K fashion"
405
+ }, {
406
+ id: "goth",
407
+ label: "Goth",
408
+ phrase: "goth fashion, black layers and silver jewellery"
409
+ }, {
410
+ id: "boho",
411
+ label: "Boho",
412
+ phrase: "boho style, flowing fabrics in earthy tones"
413
+ }, {
414
+ id: "minimal",
415
+ label: "Minimal",
416
+ phrase: "a minimalist outfit in neutral tones"
417
+ }, {
418
+ id: "avant-garde",
419
+ label: "Avant-garde",
420
+ phrase: "avant-garde theatrical fashion"
421
+ }]
422
+ },
423
+ {
424
+ id: "height",
425
+ label: "Height",
426
+ advanced: true,
427
+ options: [{
428
+ id: "petite",
429
+ label: "Petite",
430
+ phrase: "a petite frame"
431
+ }, {
432
+ id: "average",
433
+ label: "Average",
434
+ phrase: "average height"
435
+ }, {
436
+ id: "tall",
437
+ label: "Tall",
438
+ phrase: "a tall frame"
439
+ }, {
440
+ id: "very-tall",
441
+ label: "Very tall",
442
+ phrase: "a very tall, long-limbed frame"
443
+ }]
444
+ },
445
+ {
446
+ id: "faceShape",
447
+ label: "Face shape",
448
+ advanced: true,
449
+ options: [{
450
+ id: "oval",
451
+ label: "Oval",
452
+ phrase: "an oval face"
453
+ }, {
454
+ id: "round",
455
+ label: "Round",
456
+ phrase: "a round face"
457
+ }, {
458
+ id: "square",
459
+ label: "Square",
460
+ phrase: "a square face with a strong jaw"
461
+ }, {
462
+ id: "heart",
463
+ label: "Heart",
464
+ phrase: "a heart-shaped face"
465
+ }, {
466
+ id: "long",
467
+ label: "Long",
468
+ phrase: "a long face"
469
+ }, {
470
+ id: "chiselled",
471
+ label: "Chiselled",
472
+ phrase: "a chiselled, sharply defined jawline"
473
+ }]
474
+ },
475
+ {
476
+ id: "eyeColour",
477
+ label: "Eye colour",
478
+ advanced: true,
479
+ options: [{
480
+ id: "brown",
481
+ label: "Brown",
482
+ phrase: "brown"
483
+ }, {
484
+ id: "dark-brown",
485
+ label: "Dark brown",
486
+ phrase: "dark brown"
487
+ }, {
488
+ id: "hazel",
489
+ label: "Hazel",
490
+ phrase: "hazel"
491
+ }, {
492
+ id: "green",
493
+ label: "Green",
494
+ phrase: "green"
495
+ }, {
496
+ id: "blue",
497
+ label: "Blue",
498
+ phrase: "blue"
499
+ }, {
500
+ id: "ice-blue",
501
+ label: "Ice blue",
502
+ phrase: "ice-blue"
503
+ }, {
504
+ id: "grey",
505
+ label: "Grey",
506
+ phrase: "grey"
507
+ }, {
508
+ id: "amber",
509
+ label: "Amber",
510
+ phrase: "amber"
511
+ }]
512
+ },
513
+ {
514
+ id: "eyeShape",
515
+ label: "Eye shape",
516
+ advanced: true,
517
+ options: [{
518
+ id: "almond",
519
+ label: "Almond",
520
+ phrase: "almond-shaped"
521
+ }, {
522
+ id: "round",
523
+ label: "Round",
524
+ phrase: "round"
525
+ }, {
526
+ id: "hooded",
527
+ label: "Hooded",
528
+ phrase: "hooded"
529
+ }, {
530
+ id: "monolid",
531
+ label: "Monolid",
532
+ phrase: "monolid"
533
+ }, {
534
+ id: "upturned",
535
+ label: "Upturned",
536
+ phrase: "upturned"
537
+ }, {
538
+ id: "downturned",
539
+ label: "Downturned",
540
+ phrase: "downturned"
541
+ }, {
542
+ id: "deep-set",
543
+ label: "Deep-set",
544
+ phrase: "deep-set"
545
+ }, {
546
+ id: "wide-set",
547
+ label: "Wide-set",
548
+ phrase: "wide-set"
549
+ }]
550
+ },
551
+ {
552
+ id: "facialHair",
553
+ label: "Facial hair",
554
+ advanced: true,
555
+ options: [{
556
+ id: "none",
557
+ label: "Clean-shaven",
558
+ phrase: "clean-shaven"
559
+ }, {
560
+ id: "stubble",
561
+ label: "Stubble",
562
+ phrase: "light stubble"
563
+ }, {
564
+ id: "short-beard",
565
+ label: "Short beard",
566
+ phrase: "a short trimmed beard"
567
+ }, {
568
+ id: "full-beard",
569
+ label: "Full beard",
570
+ phrase: "a full beard"
571
+ }, {
572
+ id: "moustache",
573
+ label: "Moustache",
574
+ phrase: "a thick moustache"
575
+ }, {
576
+ id: "pencil",
577
+ label: "Pencil moustache",
578
+ phrase: "a thin pencil moustache"
579
+ }, {
580
+ id: "goatee",
581
+ label: "Goatee",
582
+ phrase: "a goatee"
583
+ }, {
584
+ id: "braided",
585
+ label: "Braided beard",
586
+ phrase: "a long braided beard"
587
+ }]
588
+ },
589
+ {
590
+ id: "features",
591
+ label: "Features",
592
+ multi: true,
593
+ max: 4,
594
+ advanced: true,
595
+ options: [{
596
+ id: "freckles",
597
+ label: "Freckles",
598
+ phrase: "freckles"
599
+ }, {
600
+ id: "dimples",
601
+ label: "Dimples",
602
+ phrase: "dimples"
603
+ }, {
604
+ id: "cheekbones",
605
+ label: "High cheekbones",
606
+ phrase: "high cheekbones"
607
+ }, {
608
+ id: "thick-brows",
609
+ label: "Thick brows",
610
+ phrase: "thick eyebrows"
611
+ }, {
612
+ id: "full-lips",
613
+ label: "Full lips",
614
+ phrase: "full lips"
615
+ }, {
616
+ id: "beauty-mark",
617
+ label: "Beauty mark",
618
+ phrase: "a beauty mark"
619
+ }, {
620
+ id: "button-nose",
621
+ label: "Button nose",
622
+ phrase: "a button nose"
623
+ }, {
624
+ id: "aquiline-nose",
625
+ label: "Aquiline nose",
626
+ phrase: "an aquiline nose"
627
+ }, {
628
+ id: "gap-teeth",
629
+ label: "Gap teeth",
630
+ phrase: "a gap between the front teeth"
631
+ }, {
632
+ id: "braces",
633
+ label: "Braces",
634
+ phrase: "braces on the teeth"
635
+ }, {
636
+ id: "eye-bags",
637
+ label: "Tired eyes",
638
+ phrase: "heavy under-eye bags"
639
+ }, {
640
+ id: "pointed-ears",
641
+ label: "Pointed ears",
642
+ phrase: "pointed, elf-like ears"
643
+ }, {
644
+ id: "big-ears",
645
+ label: "Big ears",
646
+ phrase: "large protruding ears"
647
+ }]
648
+ },
649
+ {
650
+ id: "distinctive",
651
+ label: "Distinctive marks",
652
+ multi: true,
653
+ max: 3,
654
+ advanced: true,
655
+ options: [{
656
+ id: "scar",
657
+ label: "Scar",
658
+ phrase: "a faint scar across one eyebrow"
659
+ }, {
660
+ id: "septum",
661
+ label: "Septum ring",
662
+ phrase: "a septum ring"
663
+ }, {
664
+ id: "two-tone-eyes",
665
+ label: "Two-tone eyes",
666
+ phrase: "heterochromia, one blue eye and one brown eye"
667
+ }, {
668
+ id: "lashes",
669
+ label: "Long lashes",
670
+ phrase: "long, dramatic eyelashes"
671
+ }, {
672
+ id: "bleached-brows",
673
+ label: "Bleached brows",
674
+ phrase: "bleached eyebrows"
675
+ }, {
676
+ id: "face-tattoo",
677
+ label: "Face tattoo",
678
+ phrase: "a small tattoo on the cheekbone"
679
+ }, {
680
+ id: "vitiligo",
681
+ label: "Vitiligo",
682
+ phrase: "vitiligo patches on the skin"
683
+ }, {
684
+ id: "birthmark",
685
+ label: "Birthmark",
686
+ phrase: "a birthmark on one cheek"
687
+ }, {
688
+ id: "grey-streak",
689
+ label: "Grey streak",
690
+ phrase: "a single grey streak in the hair"
691
+ }]
692
+ },
693
+ {
694
+ id: "accessories",
695
+ label: "Accessories",
696
+ multi: true,
697
+ max: 3,
698
+ advanced: true,
699
+ options: [{
700
+ id: "glasses",
701
+ label: "Glasses",
702
+ phrase: "glasses"
703
+ }, {
704
+ id: "sunglasses",
705
+ label: "Sunglasses",
706
+ phrase: "sunglasses"
707
+ }, {
708
+ id: "hat",
709
+ label: "Hat",
710
+ phrase: "a wide-brimmed hat"
711
+ }, {
712
+ id: "beanie",
713
+ label: "Beanie",
714
+ phrase: "a knit beanie"
715
+ }, {
716
+ id: "headphones",
717
+ label: "Headphones",
718
+ phrase: "over-ear headphones around the neck"
719
+ }, {
720
+ id: "jewellery",
721
+ label: "Jewellery",
722
+ phrase: "statement jewellery"
723
+ }, {
724
+ id: "earrings",
725
+ label: "Earrings",
726
+ phrase: "hoop earrings"
727
+ }, {
728
+ id: "bandana",
729
+ label: "Bandana",
730
+ phrase: "a bandana"
731
+ }, {
732
+ id: "scarf",
733
+ label: "Scarf",
734
+ phrase: "a scarf"
735
+ }]
736
+ },
737
+ // Casting: who they are in a story, not what they look like. Each one is
738
+ // written as the expression and bearing it implies, which is all an image
739
+ // model can do with "a rebel".
740
+ {
741
+ id: "role",
742
+ label: "Role",
743
+ advanced: true,
744
+ options: [{
745
+ id: "innocent",
746
+ label: "Innocent",
747
+ phrase: "an open, innocent face and a hopeful look"
748
+ }, {
749
+ id: "everyman",
750
+ label: "Everyman",
751
+ phrase: "an ordinary, relatable, down-to-earth manner"
752
+ }, {
753
+ id: "hero",
754
+ label: "Hero",
755
+ phrase: "the steady, determined gaze of a hero"
756
+ }, {
757
+ id: "caregiver",
758
+ label: "Caregiver",
759
+ phrase: "a warm, caring, gentle expression"
760
+ }, {
761
+ id: "explorer",
762
+ label: "Explorer",
763
+ phrase: "the weathered, curious look of an explorer"
764
+ }, {
765
+ id: "rebel",
766
+ label: "Rebel",
767
+ phrase: "a defiant, rebellious attitude"
768
+ }, {
769
+ id: "romantic",
770
+ label: "Romantic",
771
+ phrase: "a soft, romantic, dreamy look"
772
+ }, {
773
+ id: "creator",
774
+ label: "Creator",
775
+ phrase: "the absorbed, inventive look of an artist"
776
+ }, {
777
+ id: "joker",
778
+ label: "Joker",
779
+ phrase: "a playful, mischievous grin"
780
+ }, {
781
+ id: "sage",
782
+ label: "Sage",
783
+ phrase: "a calm, wise, thoughtful look"
784
+ }, {
785
+ id: "mystic",
786
+ label: "Mystic",
787
+ phrase: "a mysterious, knowing look"
788
+ }, {
789
+ id: "ruler",
790
+ label: "Ruler",
791
+ phrase: "a commanding, regal bearing"
792
+ }]
793
+ },
794
+ {
795
+ id: "era",
796
+ label: "Era",
797
+ advanced: true,
798
+ options: [{
799
+ id: "present",
800
+ label: "Present day",
801
+ phrase: "the present day"
802
+ }, {
803
+ id: "medieval",
804
+ label: "Medieval",
805
+ phrase: "medieval times"
806
+ }, {
807
+ id: "victorian",
808
+ label: "Victorian",
809
+ phrase: "the Victorian era"
810
+ }, {
811
+ id: "1920s",
812
+ label: "1920s",
813
+ phrase: "the 1920s"
814
+ }, {
815
+ id: "1950s",
816
+ label: "1950s",
817
+ phrase: "the 1950s"
818
+ }, {
819
+ id: "1970s",
820
+ label: "1970s",
821
+ phrase: "the 1970s"
822
+ }, {
823
+ id: "1980s",
824
+ label: "1980s",
825
+ phrase: "the 1980s"
826
+ }, {
827
+ id: "1990s",
828
+ label: "1990s",
829
+ phrase: "the 1990s"
830
+ }, {
831
+ id: "future",
832
+ label: "Near future",
833
+ phrase: "a near-future world"
834
+ }]
835
+ },
836
+ {
837
+ id: "genre",
838
+ label: "Genre",
839
+ advanced: true,
840
+ options: [{
841
+ id: "drama",
842
+ label: "Drama",
843
+ phrase: "a drama"
844
+ }, {
845
+ id: "action",
846
+ label: "Action",
847
+ phrase: "an action film"
848
+ }, {
849
+ id: "comedy",
850
+ label: "Comedy",
851
+ phrase: "a comedy"
852
+ }, {
853
+ id: "thriller",
854
+ label: "Thriller",
855
+ phrase: "a thriller"
856
+ }, {
857
+ id: "horror",
858
+ label: "Horror",
859
+ phrase: "a horror film"
860
+ }, {
861
+ id: "romance",
862
+ label: "Romance",
863
+ phrase: "a romance"
864
+ }, {
865
+ id: "sci-fi",
866
+ label: "Sci-fi",
867
+ phrase: "a science-fiction film"
868
+ }, {
869
+ id: "fantasy",
870
+ label: "Fantasy",
871
+ phrase: "a fantasy epic"
872
+ }, {
873
+ id: "western",
874
+ label: "Western",
875
+ phrase: "a western"
876
+ }]
877
+ }
878
+ ];
879
+ const GROUPS = new Map(ATTRIBUTE_GROUPS.map((g) => [g.id, g]));
880
+ function attributeGroup(id) {
881
+ const group = GROUPS.get(id);
882
+ if (!group) throw new Error(`Unknown attribute group "${id}"`);
883
+ return group;
884
+ }
885
+ function chosenOptions(selection, id) {
886
+ var _a;
887
+ const picked = new Set((_a = selection[id]) != null ? _a : []);
888
+ return attributeGroup(id).options.filter((o) => picked.has(o.id));
889
+ }
890
+ const firstChosen = (selection, id) => chosenOptions(selection, id)[0];
891
+ function isCreature(selection) {
892
+ var _a;
893
+ return ((_a = firstChosen(selection, "type")) == null ? void 0 : _a.alt) === CREATURE;
894
+ }
895
+ function visibleGroups(selection) {
896
+ const creature = isCreature(selection);
897
+ return ATTRIBUTE_GROUPS.filter((g) => !(creature && g.humanOnly));
898
+ }
899
+ function toggleOption(selection, id, optionId) {
900
+ var _a, _b;
901
+ const group = attributeGroup(id);
902
+ if (!group.options.some((o) => o.id === optionId)) return selection;
903
+ const current = (_a = selection[id]) != null ? _a : [];
904
+ let next;
905
+ if (current.includes(optionId)) next = current.filter((x) => x !== optionId);
906
+ else if (group.multi) next = [...current, optionId].slice(-((_b = group.max) != null ? _b : group.options.length));
907
+ else next = [optionId];
908
+ const out = __spreadValues({}, selection);
909
+ if (next.length) out[id] = next;
910
+ else delete out[id];
911
+ return out;
912
+ }
913
+ function cleanSelection(selection) {
914
+ var _a;
915
+ const out = {};
916
+ for (const group of ATTRIBUTE_GROUPS) {
917
+ const known = chosenOptions(selection, group.id).map((o) => o.id);
918
+ const kept = group.multi ? known.slice(0, (_a = group.max) != null ? _a : known.length) : known.slice(0, 1);
919
+ if (kept.length) out[group.id] = kept;
920
+ }
921
+ return out;
922
+ }
923
+ const article = (phrase) => /^[aeiou]/i.test(phrase) ? `an ${phrase}` : `a ${phrase}`;
924
+ function listPhrase(items) {
925
+ var _a;
926
+ if (items.length <= 1) return (_a = items[0]) != null ? _a : "";
927
+ return `${items.slice(0, -1).join(", ")} and ${items[items.length - 1]}`;
928
+ }
929
+ function subjectPhrase(selection) {
930
+ var _a, _b, _c;
931
+ const type = firstChosen(selection, "type");
932
+ const gender = firstChosen(selection, "gender");
933
+ const age = (_a = firstChosen(selection, "age")) == null ? void 0 : _a.phrase;
934
+ if ((type == null ? void 0 : type.alt) === CREATURE) {
935
+ return article([age, gender == null ? void 0 : gender.alt, `anthropomorphic ${type.phrase} character`].filter(Boolean).join(" "));
936
+ }
937
+ const heritage = (_b = firstChosen(selection, "ethnicity")) == null ? void 0 : _b.phrase;
938
+ return article([type == null ? void 0 : type.phrase, age, heritage, (_c = gender == null ? void 0 : gender.phrase) != null ? _c : "person"].filter(Boolean).join(" "));
939
+ }
940
+ function hairPhrase(selection) {
941
+ var _a;
942
+ const style = firstChosen(selection, "hair");
943
+ const colour = (_a = firstChosen(selection, "hairColour")) == null ? void 0 : _a.phrase;
944
+ if (style) return style.phrase.replace("{colour}", colour ? `${colour} ` : "");
945
+ return colour ? `${colour} hair` : "";
946
+ }
947
+ function eyePhrase(selection) {
948
+ var _a, _b;
949
+ const shape = (_a = firstChosen(selection, "eyeShape")) == null ? void 0 : _a.phrase;
950
+ const colour = (_b = firstChosen(selection, "eyeColour")) == null ? void 0 : _b.phrase;
951
+ if (!shape && !colour) return "";
952
+ return `${[shape, colour].filter(Boolean).join(" ")} eyes`;
953
+ }
954
+ function featurePhrases(selection) {
955
+ const creature = isCreature(selection);
956
+ const one = (id) => {
957
+ var _a, _b;
958
+ return (_b = (_a = firstChosen(selection, id)) == null ? void 0 : _a.phrase) != null ? _b : "";
959
+ };
960
+ const many = (id) => chosenOptions(selection, id).map((o) => o.phrase);
961
+ return [creature ? "" : one("skin"), one("build"), one("height"), one("faceShape"), hairPhrase(selection), eyePhrase(selection), one("facialHair"), ...many("features"), ...many("distinctive")].filter(Boolean);
962
+ }
963
+ function framingOf(id) {
964
+ var _a;
965
+ return (_a = FRAMINGS.find((f) => f.id === id)) != null ? _a : FRAMINGS[0];
966
+ }
967
+ const MAX_DETAILS = 400;
968
+ function composeCharacterPrompt(selection, opts = {}) {
969
+ var _a, _b, _c, _d, _e;
970
+ const clean = cleanSelection(selection);
971
+ const creature = isCreature(clean);
972
+ const type = firstChosen(clean, "type");
973
+ const style = (_a = firstChosen(clean, "style")) == null ? void 0 : _a.phrase;
974
+ const accessories = chosenOptions(clean, "accessories").map((o) => o.phrase);
975
+ const role = (_b = firstChosen(clean, "role")) == null ? void 0 : _b.phrase;
976
+ const era = (_c = firstChosen(clean, "era")) == null ? void 0 : _c.phrase;
977
+ const genre = (_d = firstChosen(clean, "genre")) == null ? void 0 : _d.phrase;
978
+ const features = featurePhrases(clean);
979
+ const framing = framingOf(opts.framing);
980
+ const details = ((_e = opts.details) != null ? _e : "").trim().replace(/\s+/g, " ").slice(0, MAX_DETAILS);
981
+ const subject = subjectPhrase(clean);
982
+ const lead = opts.fromPhoto ? `Using the person in the reference photo as the base - keep their face, bone structure and identity recognisable - make a character image of them as ${subject}` : `${creature ? "A photoreal image" : "A photorealistic character portrait"} of ${subject}`;
983
+ const sentences = [
984
+ `${lead}${features.length ? `, with ${listPhrase(features)}` : ""}.`,
985
+ style || accessories.length ? `Wearing ${listPhrase([style, ...accessories].filter((s) => Boolean(s)))}.` : "",
986
+ era ? `Hair, make-up and clothing true to ${era}.` : "",
987
+ genre ? `Cast as a character in ${genre}.` : "",
988
+ (type == null ? void 0 : type.id) === "offbeat" ? "Unusual, exaggerated features, but still a believable, photoreal person." : "",
989
+ creature ? "Realistic fur, feather or skin texture, expressive face, standing upright like a person." : "",
990
+ details ? /[.!?]$/.test(details) ? details : `${details}.` : "",
991
+ // A role is an expression; without one the face stays neutral, which is what a reference still wants.
992
+ role ? `${role.charAt(0).toUpperCase()}${role.slice(1)}.` : "A relaxed, neutral expression.",
993
+ framing.phrase,
994
+ creature ? "" : "Natural skin texture, true-to-life colour."
995
+ ];
996
+ return sentences.filter(Boolean).join(" ");
997
+ }
998
+ function selectionChips(selection, limit = 6) {
999
+ const clean = cleanSelection(selection);
1000
+ const order = ["type", "gender", "age", "ethnicity", "hair", "hairColour", "style", "role", "features"];
1001
+ const chips = [];
1002
+ for (const id of order) {
1003
+ for (const option of chosenOptions(clean, id)) {
1004
+ if (id === "type" && option.id === "everyday") continue;
1005
+ chips.push(option.label);
1006
+ }
1007
+ }
1008
+ return chips.slice(0, limit);
1009
+ }
1010
+ const DEFAULT_SELECTION = {
1011
+ type: ["everyday"]
1012
+ };
1013
+ const CHARACTER_PRESETS = [{
1014
+ id: "street-creator",
1015
+ label: "Street creator",
1016
+ selection: {
1017
+ type: ["everyday"],
1018
+ gender: ["woman"],
1019
+ age: ["20s"],
1020
+ hair: ["braids"],
1021
+ hairColour: ["black"],
1022
+ style: ["streetwear"],
1023
+ accessories: ["headphones"]
1024
+ }
1025
+ }, {
1026
+ id: "retro-host",
1027
+ label: "Retro host",
1028
+ selection: {
1029
+ type: ["striking"],
1030
+ gender: ["man"],
1031
+ age: ["30s"],
1032
+ hair: ["slicked"],
1033
+ hairColour: ["dark-brown"],
1034
+ facialHair: ["pencil"],
1035
+ style: ["retro"],
1036
+ era: ["1970s"]
1037
+ }
1038
+ }, {
1039
+ id: "goth-musician",
1040
+ label: "Goth musician",
1041
+ selection: {
1042
+ type: ["striking"],
1043
+ gender: ["non-binary"],
1044
+ age: ["20s"],
1045
+ hair: ["bob"],
1046
+ hairColour: ["black"],
1047
+ style: ["goth"],
1048
+ features: ["thick-brows"],
1049
+ distinctive: ["septum"]
1050
+ }
1051
+ }, {
1052
+ id: "fitness-coach",
1053
+ label: "Fitness coach",
1054
+ selection: {
1055
+ type: ["everyday"],
1056
+ gender: ["man"],
1057
+ age: ["30s"],
1058
+ build: ["muscular"],
1059
+ hair: ["buzz"],
1060
+ style: ["sporty"],
1061
+ role: ["hero"]
1062
+ }
1063
+ }, {
1064
+ id: "founder",
1065
+ label: "Founder",
1066
+ selection: {
1067
+ type: ["everyday"],
1068
+ gender: ["woman"],
1069
+ age: ["40s-50s"],
1070
+ hair: ["shoulder"],
1071
+ hairColour: ["grey"],
1072
+ style: ["business"],
1073
+ accessories: ["glasses"],
1074
+ role: ["ruler"]
1075
+ }
1076
+ }, {
1077
+ id: "offbeat-star",
1078
+ label: "Offbeat star",
1079
+ selection: {
1080
+ type: ["offbeat"],
1081
+ gender: ["man"],
1082
+ age: ["40s-50s"],
1083
+ hair: ["bowl"],
1084
+ hairColour: ["black"],
1085
+ facialHair: ["moustache"],
1086
+ features: ["gap-teeth"],
1087
+ style: ["avant-garde"]
1088
+ }
1089
+ }, {
1090
+ id: "cat-barista",
1091
+ label: "Cat barista",
1092
+ selection: {
1093
+ type: ["cat"],
1094
+ gender: ["woman"],
1095
+ age: ["20s"],
1096
+ style: ["casual"],
1097
+ accessories: ["beanie"]
1098
+ }
1099
+ }];
1100
+ function sameSelection(a, b) {
1101
+ const ca = cleanSelection(a);
1102
+ const cb = cleanSelection(b);
1103
+ return ATTRIBUTE_GROUPS.every((g) => {
1104
+ var _a, _b;
1105
+ return ((_a = ca[g.id]) != null ? _a : []).join(",") === ((_b = cb[g.id]) != null ? _b : []).join(",");
1106
+ });
1107
+ }
1108
+ const CASTING = /* @__PURE__ */ new Set(["role", "era", "genre"]);
1109
+ function randomSelection(current, rng = Math.random) {
1110
+ var _a, _b, _c;
1111
+ const pick = (items) => items[Math.min(items.length - 1, Math.floor(rng() * items.length))];
1112
+ const type = ((_a = current.type) == null ? void 0 : _a.length) ? current.type : DEFAULT_SELECTION.type;
1113
+ const out = {
1114
+ type
1115
+ };
1116
+ for (const id of CASTING) if ((_b = current[id]) == null ? void 0 : _b.length) out[id] = current[id];
1117
+ for (const group of visibleGroups({
1118
+ type
1119
+ })) {
1120
+ if (group.id === "type" || CASTING.has(group.id)) continue;
1121
+ if (group.multi) {
1122
+ const count = Math.floor(rng() * (group.id === "features" ? 3 : 2));
1123
+ const pool = [...group.options];
1124
+ const chosen = /* @__PURE__ */ new Set();
1125
+ for (let i = 0; i < count && pool.length; i++) {
1126
+ const option = pick(pool);
1127
+ chosen.add(option.id);
1128
+ pool.splice(pool.indexOf(option), 1);
1129
+ }
1130
+ if (chosen.size) out[group.id] = group.options.filter((o) => chosen.has(o.id)).map((o) => o.id);
1131
+ continue;
1132
+ }
1133
+ out[group.id] = [pick(group.options).id];
1134
+ }
1135
+ const gender = (_c = out.gender) == null ? void 0 : _c[0];
1136
+ if (gender === "woman" || gender === "trans-woman") delete out.facialHair;
1137
+ return out;
1138
+ }export{ATTRIBUTE_GROUPS,CHARACTER_PRESETS,DEFAULT_SELECTION,FRAMINGS,MAX_DETAILS,attributeGroup,chosenOptions,cleanSelection,composeCharacterPrompt,featurePhrases,framingOf,isCreature,listPhrase,randomSelection,sameSelection,selectionChips,subjectPhrase,toggleOption,visibleGroups};//# sourceMappingURL=characterVocabulary.js.map