@dickpy/dsh-imagegen 1.5.4 → 1.5.5

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/client.js CHANGED
@@ -514,6 +514,7 @@ window.__ModuleLoader__.load({
514
514
  "canvas.generatingNode": "生成中…",
515
515
  "canvas.generateFailed": "生成失败",
516
516
  "canvas.retry": "重试",
517
+ "canvas.taskLost": "生成任务已丢失(服务重启),请重试",
517
518
  "canvas.emptyImageNode": "点击上传图片",
518
519
  "canvas.connectHint": "拖到其他节点建立连线",
519
520
  "canvas.resizeHint": "拖动调整大小(图片锁定比例)",
@@ -986,6 +987,7 @@ window.__ModuleLoader__.load({
986
987
  "canvas.generatingNode": "Generating…",
987
988
  "canvas.generateFailed": "Generation failed",
988
989
  "canvas.retry": "Retry",
990
+ "canvas.taskLost": "Generation task lost (service restarted); please retry",
989
991
  "canvas.emptyImageNode": "Click to upload an image",
990
992
  "canvas.connectHint": "Drag onto another node to connect",
991
993
  "canvas.resizeHint": "Drag to resize (image ratio locked)",
@@ -1459,6 +1461,7 @@ window.__ModuleLoader__.load({
1459
1461
  "canvas.generatingNode": "Генерация…",
1460
1462
  "canvas.generateFailed": "Не удалось создать изображение",
1461
1463
  "canvas.retry": "Повторить",
1464
+ "canvas.taskLost": "Задача генерации потеряна (сервис перезапущен); повторите",
1462
1465
  "canvas.emptyImageNode": "Нажмите, чтобы загрузить изображение",
1463
1466
  "canvas.connectHint": "Потяните к другому узлу, чтобы соединить",
1464
1467
  "canvas.resizeHint": "Потяните, чтобы изменить размер (пропорции зафиксированы)",
@@ -1945,51 +1948,51 @@ window.__ModuleLoader__.load({
1945
1948
  document.head.appendChild(tag);
1946
1949
  }
1947
1950
  var templates_module_css_default = {
1948
- "sourceTabCount": "o0mAxG_sourceTabCount",
1951
+ "meta": "o0mAxG_meta",
1952
+ "notice": "o0mAxG_notice",
1953
+ "sourceLink": "o0mAxG_sourceLink",
1949
1954
  "cardBody": "o0mAxG_cardBody",
1950
- "detailOverlay": "o0mAxG_detailOverlay",
1951
- "detailLink": "o0mAxG_detailLink",
1952
- "cardSource": "o0mAxG_cardSource",
1953
- "cardCategory": "o0mAxG_cardCategory",
1955
+ "categoryPill": "o0mAxG_categoryPill",
1956
+ "header": "o0mAxG_header",
1957
+ "close": "o0mAxG_close",
1958
+ "headerActions": "o0mAxG_headerActions",
1959
+ "thumb": "o0mAxG_thumb",
1960
+ "shell": "o0mAxG_shell",
1961
+ "dsh-imagegen-templates-spin": "o0mAxG_dsh-imagegen-templates-spin",
1962
+ "featuredBadge": "o0mAxG_featuredBadge",
1954
1963
  "search": "o0mAxG_search",
1955
- "heading": "o0mAxG_heading",
1956
- "sourceTab": "o0mAxG_sourceTab",
1957
- "notice": "o0mAxG_notice",
1964
+ "favStar": "o0mAxG_favStar",
1965
+ "cardMeta": "o0mAxG_cardMeta",
1966
+ "footer": "o0mAxG_footer",
1967
+ "detailInfo": "o0mAxG_detailInfo",
1968
+ "detailMeta": "o0mAxG_detailMeta",
1958
1969
  "categoryRow": "o0mAxG_categoryRow",
1959
- "card": "o0mAxG_card",
1970
+ "heading": "o0mAxG_heading",
1960
1971
  "detailPrompt": "o0mAxG_detailPrompt",
1972
+ "detailTitle": "o0mAxG_detailTitle",
1973
+ "overlay": "o0mAxG_overlay",
1974
+ "detailMedia": "o0mAxG_detailMedia",
1975
+ "sourceTab": "o0mAxG_sourceTab",
1976
+ "grid": "o0mAxG_grid",
1977
+ "attribution": "o0mAxG_attribution",
1978
+ "cardCategory": "o0mAxG_cardCategory",
1979
+ "sourceTabCount": "o0mAxG_sourceTabCount",
1980
+ "detailLink": "o0mAxG_detailLink",
1981
+ "toolbar": "o0mAxG_toolbar",
1961
1982
  "detailActions": "o0mAxG_detailActions",
1983
+ "body": "o0mAxG_body",
1984
+ "title": "o0mAxG_title",
1962
1985
  "spinner": "o0mAxG_spinner",
1963
- "close": "o0mAxG_close",
1964
- "detailInfo": "o0mAxG_detailInfo",
1965
- "categoryPill": "o0mAxG_categoryPill",
1966
- "favStar": "o0mAxG_favStar",
1967
- "state": "o0mAxG_state",
1968
- "sourceLink": "o0mAxG_sourceLink",
1969
- "detailMedia": "o0mAxG_detailMedia",
1970
- "detailTitle": "o0mAxG_detailTitle",
1971
- "headerActions": "o0mAxG_headerActions",
1972
1986
  "thumbPlaceholder": "o0mAxG_thumbPlaceholder",
1973
- "featuredBadge": "o0mAxG_featuredBadge",
1974
- "sourceTabs": "o0mAxG_sourceTabs",
1975
- "grid": "o0mAxG_grid",
1987
+ "cardSource": "o0mAxG_cardSource",
1988
+ "detail": "o0mAxG_detail",
1976
1989
  "thumbWrap": "o0mAxG_thumbWrap",
1977
- "shell": "o0mAxG_shell",
1978
1990
  "cardTitle": "o0mAxG_cardTitle",
1979
- "title": "o0mAxG_title",
1980
- "footer": "o0mAxG_footer",
1981
1991
  "detailImage": "o0mAxG_detailImage",
1982
- "attribution": "o0mAxG_attribution",
1983
- "toolbar": "o0mAxG_toolbar",
1984
- "thumb": "o0mAxG_thumb",
1985
- "detail": "o0mAxG_detail",
1986
- "cardMeta": "o0mAxG_cardMeta",
1987
- "dsh-imagegen-templates-spin": "o0mAxG_dsh-imagegen-templates-spin",
1988
- "overlay": "o0mAxG_overlay",
1989
- "header": "o0mAxG_header",
1990
- "body": "o0mAxG_body",
1991
- "meta": "o0mAxG_meta",
1992
- "detailMeta": "o0mAxG_detailMeta"
1992
+ "state": "o0mAxG_state",
1993
+ "detailOverlay": "o0mAxG_detailOverlay",
1994
+ "sourceTabs": "o0mAxG_sourceTabs",
1995
+ "card": "o0mAxG_card"
1993
1996
  };
1994
1997
  //#endregion
1995
1998
  //#region src/client/TemplateLibrary.tsx
@@ -2617,19 +2620,19 @@ window.__ModuleLoader__.load({
2617
2620
  document.head.appendChild(tag);
2618
2621
  }
2619
2622
  var inspiration_module_css_default = {
2623
+ "emptyTitle": "IgRnJG_emptyTitle",
2624
+ "thumbFallback": "IgRnJG_thumbFallback",
2625
+ "spinner": "IgRnJG_spinner",
2620
2626
  "wrap": "IgRnJG_wrap",
2627
+ "grid": "IgRnJG_grid",
2628
+ "thumb": "IgRnJG_thumb",
2629
+ "thumbTitle": "IgRnJG_thumbTitle",
2621
2630
  "dsh-imagegen-inspiration-spin": "IgRnJG_dsh-imagegen-inspiration-spin",
2631
+ "emptyIcon": "IgRnJG_emptyIcon",
2622
2632
  "thumbWrap": "IgRnJG_thumbWrap",
2623
- "title": "IgRnJG_title",
2624
- "grid": "IgRnJG_grid",
2625
- "emptyTitle": "IgRnJG_emptyTitle",
2626
- "tile": "IgRnJG_tile",
2627
2633
  "emptyHint": "IgRnJG_emptyHint",
2628
- "spinner": "IgRnJG_spinner",
2629
- "thumbFallback": "IgRnJG_thumbFallback",
2630
- "emptyIcon": "IgRnJG_emptyIcon",
2631
- "thumbTitle": "IgRnJG_thumbTitle",
2632
- "thumb": "IgRnJG_thumb"
2634
+ "tile": "IgRnJG_tile",
2635
+ "title": "IgRnJG_title"
2633
2636
  };
2634
2637
  //#endregion
2635
2638
  //#region src/client/InspirationGallery.tsx
@@ -2787,82 +2790,82 @@ window.__ModuleLoader__.load({
2787
2790
  document.head.appendChild(tag);
2788
2791
  }
2789
2792
  var canvas_workspace_module_css_default = {
2790
- "contextMenu": "_0yZr2a_contextMenu",
2793
+ "composerSend": "_0yZr2a_composerSend",
2791
2794
  "projectSelect": "_0yZr2a_projectSelect",
2795
+ "nodeGlow": "_0yZr2a_nodeGlow",
2796
+ "nodeHeader": "_0yZr2a_nodeHeader",
2797
+ "world": "_0yZr2a_world",
2792
2798
  "nodeStateError": "_0yZr2a_nodeStateError",
2793
- "emptyHint": "_0yZr2a_emptyHint",
2794
- "nodeSelected": "_0yZr2a_nodeSelected",
2795
- "minimapViewport": "_0yZr2a_minimapViewport",
2796
- "hoverToolbar": "_0yZr2a_hoverToolbar",
2797
- "selectCursor": "_0yZr2a_selectCursor",
2798
- "panCursor": "_0yZr2a_panCursor",
2799
- "connectionLayer": "_0yZr2a_connectionLayer",
2800
- "zoomDock": "_0yZr2a_zoomDock",
2801
- "dock": "_0yZr2a_dock",
2802
- "minimapImage": "_0yZr2a_minimapImage",
2803
- "nodeConnectTarget": "_0yZr2a_nodeConnectTarget",
2804
- "root": "_0yZr2a_root",
2799
+ "textArea": "_0yZr2a_textArea",
2800
+ "pickerHeader": "_0yZr2a_pickerHeader",
2801
+ "pickerGrid": "_0yZr2a_pickerGrid",
2802
+ "pickerCardPrompt": "_0yZr2a_pickerCardPrompt",
2805
2803
  "dockDivider": "_0yZr2a_dockDivider",
2806
- "nodeEmpty": "_0yZr2a_nodeEmpty",
2807
- "minimapCanvas": "_0yZr2a_minimapCanvas",
2808
- "picker": "_0yZr2a_picker",
2809
- "composerPrompt": "_0yZr2a_composerPrompt",
2810
- "pickerTabs": "_0yZr2a_pickerTabs",
2811
- "errorToast": "_0yZr2a_errorToast",
2812
- "resizeHandle": "_0yZr2a_resizeHandle",
2813
- "pickerCard": "_0yZr2a_pickerCard",
2814
- "nodeState": "_0yZr2a_nodeState",
2815
- "marquee": "_0yZr2a_marquee",
2804
+ "root": "_0yZr2a_root",
2816
2805
  "minimap": "_0yZr2a_minimap",
2817
- "handleLeft": "_0yZr2a_handleLeft",
2818
- "world": "_0yZr2a_world",
2819
- "connectionPreview": "_0yZr2a_connectionPreview",
2820
- "nodeSize": "_0yZr2a_nodeSize",
2821
- "saveState": "_0yZr2a_saveState",
2822
- "composerControls": "_0yZr2a_composerControls",
2823
2806
  "uploadIcon": "_0yZr2a_uploadIcon",
2824
- "minimapText": "_0yZr2a_minimapText",
2825
- "inspectorRow": "_0yZr2a_inspectorRow",
2826
- "connectionPath": "_0yZr2a_connectionPath",
2827
- "pickerHeader": "_0yZr2a_pickerHeader",
2807
+ "nodeConnectTarget": "_0yZr2a_nodeConnectTarget",
2808
+ "nodeSpinner": "_0yZr2a_nodeSpinner",
2809
+ "minimapViewport": "_0yZr2a_minimapViewport",
2828
2810
  "handleRight": "_0yZr2a_handleRight",
2829
- "configLinks": "_0yZr2a_configLinks",
2830
- "topBar": "_0yZr2a_topBar",
2831
- "pickerGrid": "_0yZr2a_pickerGrid",
2832
- "node": "_0yZr2a_node",
2811
+ "configHint": "_0yZr2a_configHint",
2812
+ "nodeSize": "_0yZr2a_nodeSize",
2833
2813
  "viewport": "_0yZr2a_viewport",
2834
2814
  "titleButton": "_0yZr2a_titleButton",
2835
- "nodeBody": "_0yZr2a_nodeBody",
2836
- "textArea": "_0yZr2a_textArea",
2837
- "nodeSpinner": "_0yZr2a_nodeSpinner",
2838
- "nodeTitle": "_0yZr2a_nodeTitle",
2839
- "configHint": "_0yZr2a_configHint",
2840
- "nodeHeader": "_0yZr2a_nodeHeader",
2841
- "composer": "_0yZr2a_composer",
2842
- "connectionActive": "_0yZr2a_connectionActive",
2843
- "nodeGlow": "_0yZr2a_nodeGlow",
2815
+ "node": "_0yZr2a_node",
2816
+ "hoverToolbar": "_0yZr2a_hoverToolbar",
2844
2817
  "canvasSpin": "_0yZr2a_canvasSpin",
2845
- "imageNode": "_0yZr2a_imageNode",
2846
- "composerSend": "_0yZr2a_composerSend",
2847
- "zoomValue": "_0yZr2a_zoomValue",
2848
- "pickerBody": "_0yZr2a_pickerBody",
2818
+ "handle": "_0yZr2a_handle",
2819
+ "composerChip": "_0yZr2a_composerChip",
2849
2820
  "uploadBox": "_0yZr2a_uploadBox",
2850
- "topBarSpacer": "_0yZr2a_topBarSpacer",
2821
+ "marquee": "_0yZr2a_marquee",
2822
+ "generateForm": "_0yZr2a_generateForm",
2851
2823
  "minimapSelected": "_0yZr2a_minimapSelected",
2852
- "composerMeta": "_0yZr2a_composerMeta",
2853
- "handle": "_0yZr2a_handle",
2854
- "titleInput": "_0yZr2a_titleInput",
2855
- "pickerCardPrompt": "_0yZr2a_pickerCardPrompt",
2824
+ "topBarSpacer": "_0yZr2a_topBarSpacer",
2825
+ "imageNode": "_0yZr2a_imageNode",
2826
+ "nodeTitle": "_0yZr2a_nodeTitle",
2827
+ "handleLeft": "_0yZr2a_handleLeft",
2828
+ "zoomDock": "_0yZr2a_zoomDock",
2829
+ "dock": "_0yZr2a_dock",
2830
+ "connectionActive": "_0yZr2a_connectionActive",
2856
2831
  "pickerFooter": "_0yZr2a_pickerFooter",
2857
- "minimapNode": "_0yZr2a_minimapNode",
2858
- "grid": "_0yZr2a_grid",
2832
+ "topBar": "_0yZr2a_topBar",
2833
+ "nodeEmpty": "_0yZr2a_nodeEmpty",
2859
2834
  "textNode": "_0yZr2a_textNode",
2860
- "composerChip": "_0yZr2a_composerChip",
2861
- "generateForm": "_0yZr2a_generateForm",
2862
- "modalBackdrop": "_0yZr2a_modalBackdrop",
2835
+ "minimapImage": "_0yZr2a_minimapImage",
2836
+ "pickerTabs": "_0yZr2a_pickerTabs",
2837
+ "saveState": "_0yZr2a_saveState",
2863
2838
  "iconButton": "_0yZr2a_iconButton",
2839
+ "connectionPreview": "_0yZr2a_connectionPreview",
2840
+ "nodeSelected": "_0yZr2a_nodeSelected",
2841
+ "connectionLayer": "_0yZr2a_connectionLayer",
2842
+ "titleInput": "_0yZr2a_titleInput",
2843
+ "zoomValue": "_0yZr2a_zoomValue",
2844
+ "inspectorRow": "_0yZr2a_inspectorRow",
2845
+ "panCursor": "_0yZr2a_panCursor",
2846
+ "grid": "_0yZr2a_grid",
2847
+ "composerControls": "_0yZr2a_composerControls",
2848
+ "composerMeta": "_0yZr2a_composerMeta",
2849
+ "resizeHandle": "_0yZr2a_resizeHandle",
2850
+ "nodeBody": "_0yZr2a_nodeBody",
2851
+ "minimapText": "_0yZr2a_minimapText",
2864
2852
  "nodeRelated": "_0yZr2a_nodeRelated",
2865
- "configNode": "_0yZr2a_configNode"
2853
+ "errorToast": "_0yZr2a_errorToast",
2854
+ "pickerCard": "_0yZr2a_pickerCard",
2855
+ "picker": "_0yZr2a_picker",
2856
+ "emptyHint": "_0yZr2a_emptyHint",
2857
+ "contextMenu": "_0yZr2a_contextMenu",
2858
+ "nodeState": "_0yZr2a_nodeState",
2859
+ "pickerBody": "_0yZr2a_pickerBody",
2860
+ "configNode": "_0yZr2a_configNode",
2861
+ "selectCursor": "_0yZr2a_selectCursor",
2862
+ "connectionPath": "_0yZr2a_connectionPath",
2863
+ "configLinks": "_0yZr2a_configLinks",
2864
+ "composer": "_0yZr2a_composer",
2865
+ "minimapNode": "_0yZr2a_minimapNode",
2866
+ "composerPrompt": "_0yZr2a_composerPrompt",
2867
+ "minimapCanvas": "_0yZr2a_minimapCanvas",
2868
+ "modalBackdrop": "_0yZr2a_modalBackdrop"
2866
2869
  };
2867
2870
  //#endregion
2868
2871
  //#region src/client/CanvasWorkspace.tsx
@@ -3156,6 +3159,8 @@ window.__ModuleLoader__.load({
3156
3159
  const syncedRef = (0, react.useRef)("");
3157
3160
  const processedTasks = (0, react.useRef)(/* @__PURE__ */ new Set());
3158
3161
  const processedImport = (0, react.useRef)("");
3162
+ const localTaskIds = (0, react.useRef)(/* @__PURE__ */ new Set());
3163
+ const mountedAtRef = (0, react.useRef)(Date.now());
3159
3164
  const internalClipboard = (0, react.useRef)(null);
3160
3165
  const pastRef = (0, react.useRef)([]);
3161
3166
  const futureRef = (0, react.useRef)([]);
@@ -3476,6 +3481,7 @@ window.__ModuleLoader__.load({
3476
3481
  }
3477
3482
  };
3478
3483
  const task = await api.taskSubmit(request);
3484
+ localTaskIds.current.add(task.id);
3479
3485
  mutate((previous) => {
3480
3486
  const nodes = [...previous.nodes];
3481
3487
  const connections = [...previous.connections];
@@ -3535,16 +3541,112 @@ window.__ModuleLoader__.load({
3535
3541
  onOpenSettings,
3536
3542
  upstreamNodes
3537
3543
  ]);
3544
+ /** Re-run a failed image node's generation from its recorded prompt/model,
3545
+ * re-deriving the edit base from the connected source config node. */
3546
+ const retryGeneration = (0, react.useCallback)(async (node) => {
3547
+ const current = documentRef.current;
3548
+ if (current === null || !connected) {
3549
+ setError(tt("canvas.needApi"));
3550
+ onOpenSettings?.();
3551
+ return;
3552
+ }
3553
+ const metadata = nodeMetadata(node);
3554
+ const prompt = (metadata.prompt ?? "").trim();
3555
+ if (prompt === "") {
3556
+ setError(tt("canvas.needPrompt"));
3557
+ return;
3558
+ }
3559
+ const model = imageModels.includes(metadata.model ?? "") ? metadata.model : imageModels[0] ?? "";
3560
+ if (model === "") {
3561
+ setError(tt("canvas.needModel"));
3562
+ return;
3563
+ }
3564
+ const sourceId = metadata.sourceNodeId;
3565
+ const references = sourceId === void 0 ? [] : upstreamNodes(current, sourceId).filter((item) => item.type === "image" && usableAsset(item) !== void 0);
3566
+ const baseAsset = references[0] !== void 0 ? usableAsset(references[0]) : void 0;
3567
+ try {
3568
+ let image;
3569
+ let refName;
3570
+ if (baseAsset !== void 0) {
3571
+ image = await assetToDataUrl(baseAsset);
3572
+ refName = "canvas-reference.png";
3573
+ }
3574
+ const request = {
3575
+ mode: image === void 0 ? "text" : "edit",
3576
+ model,
3577
+ prompt,
3578
+ size: metadata.size ?? "auto",
3579
+ quality: metadata.quality ?? "auto",
3580
+ n: 1,
3581
+ detail: "",
3582
+ ...defaultChannelId === void 0 ? {} : { channelId: defaultChannelId },
3583
+ ...image === void 0 ? {} : {
3584
+ image,
3585
+ refName
3586
+ },
3587
+ canvas: {
3588
+ canvasId: current.id,
3589
+ sourceNodeId: references[0]?.id ?? sourceId,
3590
+ parentNodeId: node.id,
3591
+ placement: "right"
3592
+ }
3593
+ };
3594
+ const task = await api.taskSubmit(request);
3595
+ localTaskIds.current.add(task.id);
3596
+ patchNode(node.id, {
3597
+ status: "generating",
3598
+ error: void 0,
3599
+ taskId: task.id
3600
+ });
3601
+ setError(null);
3602
+ } catch (caught) {
3603
+ setError(caught instanceof Error ? caught.message : String(caught));
3604
+ }
3605
+ }, [
3606
+ api,
3607
+ connected,
3608
+ defaultChannelId,
3609
+ imageModels,
3610
+ onOpenSettings,
3611
+ patchNode,
3612
+ upstreamNodes
3613
+ ]);
3538
3614
  (0, react.useEffect)(() => {
3539
3615
  if (document === null) return;
3540
- const canvasTasks = tasks.filter((task) => task.request.canvas?.canvasId === document.id);
3541
- for (const task of canvasTasks) {
3542
- if (task.status !== "completed" && task.status !== "failed" && task.status !== "cancelled") continue;
3543
- if (processedTasks.current.has(task.id)) continue;
3544
- const targets = document.nodes.filter((node) => node.type === "image" && nodeMetadata(node).taskId === task.id && nodeMetadata(node).status === "generating");
3545
- if (targets.length === 0) continue;
3546
- processedTasks.current.add(task.id);
3547
- const sourceId = nodeMetadata(targets[0]).sourceNodeId;
3616
+ if (!(tasks.length > 0 || Date.now() - mountedAtRef.current > 8e3)) return;
3617
+ const feedIds = new Set(tasks.map((task) => task.id));
3618
+ if (document.nodes.filter((node) => {
3619
+ if (node.type !== "image" || nodeMetadata(node).status !== "generating") return false;
3620
+ const taskId = nodeMetadata(node).taskId;
3621
+ return taskId !== void 0 && !feedIds.has(taskId) && !localTaskIds.current.has(taskId);
3622
+ }).length === 0) return;
3623
+ updateNodes((nodes) => nodes.map((node) => {
3624
+ const taskId = node.type === "image" ? nodeMetadata(node).taskId : void 0;
3625
+ if (node.type !== "image" || nodeMetadata(node).status !== "generating" || taskId === void 0 || feedIds.has(taskId) || localTaskIds.current.has(taskId)) return node;
3626
+ return {
3627
+ ...node,
3628
+ metadata: {
3629
+ ...nodeMetadata(node),
3630
+ status: "error",
3631
+ error: tt("canvas.taskLost")
3632
+ }
3633
+ };
3634
+ }));
3635
+ }, [
3636
+ document,
3637
+ tasks,
3638
+ updateNodes
3639
+ ]);
3640
+ (0, react.useEffect)(() => {
3641
+ if (document === null) return;
3642
+ const canvasTasks = tasks.filter((task) => task.request.canvas?.canvasId === document.id);
3643
+ for (const task of canvasTasks) {
3644
+ if (task.status !== "completed" && task.status !== "failed" && task.status !== "cancelled") continue;
3645
+ if (processedTasks.current.has(task.id)) continue;
3646
+ const targets = document.nodes.filter((node) => node.type === "image" && nodeMetadata(node).taskId === task.id && nodeMetadata(node).status === "generating");
3647
+ if (targets.length === 0) continue;
3648
+ processedTasks.current.add(task.id);
3649
+ const sourceId = nodeMetadata(targets[0]).sourceNodeId;
3548
3650
  const fail = (message) => {
3549
3651
  updateNodes((nodes) => nodes.map((node) => node.type === "image" && nodeMetadata(node).taskId === task.id && nodeMetadata(node).status === "generating" ? {
3550
3652
  ...node,
@@ -4363,11 +4465,10 @@ window.__ModuleLoader__.load({
4363
4465
  className: canvas_workspace_module_css_default.nodeStateError,
4364
4466
  children: [metadata.error ?? tt("canvas.generateFailed"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
4365
4467
  type: "button",
4366
- onClick: () => patchNode(node.id, {
4367
- status: "idle",
4368
- error: void 0
4369
- }),
4370
- children: tt("canvas.dismiss")
4468
+ onClick: () => {
4469
+ retryGeneration(node);
4470
+ },
4471
+ children: tt("canvas.retry")
4371
4472
  })]
4372
4473
  }) : hasImage ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
4373
4474
  src: asset.url,
@@ -5781,226 +5882,226 @@ window.__ModuleLoader__.load({
5781
5882
  document.head.appendChild(tag);
5782
5883
  }
5783
5884
  var panel_module_css_default = {
5784
- "lightboxFigure": "Yvqh9W_lightboxFigure",
5785
- "configResizer": "Yvqh9W_configResizer",
5786
- "conversationToast": "Yvqh9W_conversationToast",
5787
- "historyMain": "Yvqh9W_historyMain",
5788
- "taskPrompt": "Yvqh9W_taskPrompt",
5789
- "canvas": "Yvqh9W_canvas",
5790
- "historyThumb": "Yvqh9W_historyThumb",
5791
- "taskTrayToggle": "Yvqh9W_taskTrayToggle",
5885
+ "historyHeader": "Yvqh9W_historyHeader",
5886
+ "uploadHint": "Yvqh9W_uploadHint",
5887
+ "configToggle": "Yvqh9W_configToggle",
5888
+ "generation": "Yvqh9W_generation",
5889
+ "taskStatus": "Yvqh9W_taskStatus",
5890
+ "comparisonGrid": "Yvqh9W_comparisonGrid",
5891
+ "lightboxActions": "Yvqh9W_lightboxActions",
5892
+ "lightboxClose": "Yvqh9W_lightboxClose",
5893
+ "galleryCard": "Yvqh9W_galleryCard",
5894
+ "referenceActions": "Yvqh9W_referenceActions",
5895
+ "galleryAvatar": "Yvqh9W_galleryAvatar",
5792
5896
  "taskRows": "Yvqh9W_taskRows",
5793
- "topNavDivider": "Yvqh9W_topNavDivider",
5794
- "lightboxIndex": "Yvqh9W_lightboxIndex",
5795
- "comparisonFullscreen": "Yvqh9W_comparisonFullscreen",
5796
- "galleryToolbarActions": "Yvqh9W_galleryToolbarActions",
5797
5897
  "galleryCardInfo": "Yvqh9W_galleryCardInfo",
5898
+ "lightboxZoomLevel": "Yvqh9W_lightboxZoomLevel",
5899
+ "canvasHistoryTag": "Yvqh9W_canvasHistoryTag",
5900
+ "imageCaption": "Yvqh9W_imageCaption",
5901
+ "topNavDivider": "Yvqh9W_topNavDivider",
5902
+ "compareControl": "Yvqh9W_compareControl",
5903
+ "canvasError": "Yvqh9W_canvasError",
5904
+ "ecommerceResultsHeader": "Yvqh9W_ecommerceResultsHeader",
5905
+ "modelMenuItem": "Yvqh9W_modelMenuItem",
5906
+ "lightboxCopy": "Yvqh9W_lightboxCopy",
5907
+ "updateActions": "Yvqh9W_updateActions",
5908
+ "taskTrayHeader": "Yvqh9W_taskTrayHeader",
5909
+ "sidebarHistoryHost": "Yvqh9W_sidebarHistoryHost",
5910
+ "ecommerceUploadHero": "Yvqh9W_ecommerceUploadHero",
5911
+ "uploadBox": "Yvqh9W_uploadBox",
5912
+ "ecommerceAdvancedBody": "Yvqh9W_ecommerceAdvancedBody",
5913
+ "connectionStatus": "Yvqh9W_connectionStatus",
5798
5914
  "historyActions": "Yvqh9W_historyActions",
5799
- "comparisonGrid": "Yvqh9W_comparisonGrid",
5800
- "galleryClear": "Yvqh9W_galleryClear",
5915
+ "ecommerceWorkspace": "Yvqh9W_ecommerceWorkspace",
5916
+ "modelLabel": "Yvqh9W_modelLabel",
5917
+ "lightboxCaption": "Yvqh9W_lightboxCaption",
5918
+ "dshImageGenToastIn": "Yvqh9W_dshImageGenToastIn",
5919
+ "ecommerceFooterHint": "Yvqh9W_ecommerceFooterHint",
5920
+ "galleryToolbar": "Yvqh9W_galleryToolbar",
5921
+ "historyThumb": "Yvqh9W_historyThumb",
5922
+ "galleryMasonry": "Yvqh9W_galleryMasonry",
5923
+ "galleryBulkButton": "Yvqh9W_galleryBulkButton",
5801
5924
  "taskRow": "Yvqh9W_taskRow",
5802
- "referenceImage": "Yvqh9W_referenceImage",
5803
- "image": "Yvqh9W_image",
5804
- "canvasError": "Yvqh9W_canvasError",
5805
- "modelMenuList": "Yvqh9W_modelMenuList",
5806
- "connectionDot": "Yvqh9W_connectionDot",
5807
- "panel": "Yvqh9W_panel",
5808
- "ecommerceFooterBody": "Yvqh9W_ecommerceFooterBody",
5809
- "imageCard": "Yvqh9W_imageCard",
5810
- "uploadHint": "Yvqh9W_uploadHint",
5811
- "zoomHint": "Yvqh9W_zoomHint",
5812
- "galleryCardActions": "Yvqh9W_galleryCardActions",
5813
- "ecommercePlanNote": "Yvqh9W_ecommercePlanNote",
5814
- "card": "Yvqh9W_card",
5815
- "canvasHistoryTag": "Yvqh9W_canvasHistoryTag",
5816
- "compareModelChoices": "Yvqh9W_compareModelChoices",
5817
- "historyNew": "Yvqh9W_historyNew",
5818
- "galleryBadge": "Yvqh9W_galleryBadge",
5819
- "galleryTags": "Yvqh9W_galleryTags",
5820
- "ecommercePrimaryAction": "Yvqh9W_ecommercePrimaryAction",
5821
5925
  "historyItem": "Yvqh9W_historyItem",
5822
- "config": "Yvqh9W_config",
5823
- "generation": "Yvqh9W_generation",
5824
- "ecommerceSection": "Yvqh9W_ecommerceSection",
5825
- "ecommerceStructureGrid": "Yvqh9W_ecommerceStructureGrid",
5826
- "updateRelease": "Yvqh9W_updateRelease",
5827
- "ecommercePlanBack": "Yvqh9W_ecommercePlanBack",
5828
- "optionGrid": "Yvqh9W_optionGrid",
5829
- "canvasStateTitle": "Yvqh9W_canvasStateTitle",
5830
- "dshImageGenSpin": "Yvqh9W_dshImageGenSpin",
5926
+ "paramLabel": "Yvqh9W_paramLabel",
5927
+ "lightbox": "Yvqh9W_lightbox",
5928
+ "configHeader": "Yvqh9W_configHeader",
5929
+ "panel": "Yvqh9W_panel",
5930
+ "studio": "Yvqh9W_studio",
5931
+ "canvas": "Yvqh9W_canvas",
5932
+ "taskTrayClose": "Yvqh9W_taskTrayClose",
5933
+ "ecommerceSlotCard": "Yvqh9W_ecommerceSlotCard",
5934
+ "hiddenFile": "Yvqh9W_hiddenFile",
5935
+ "sessionTab": "Yvqh9W_sessionTab",
5936
+ "paramHint": "Yvqh9W_paramHint",
5937
+ "reference": "Yvqh9W_reference",
5938
+ "modelMenuList": "Yvqh9W_modelMenuList",
5831
5939
  "galleryRatioList": "Yvqh9W_galleryRatioList",
5832
- "chatToggle": "Yvqh9W_chatToggle",
5833
- "compareControl": "Yvqh9W_compareControl",
5834
- "configScroll": "Yvqh9W_configScroll",
5835
- "galleryImage": "Yvqh9W_galleryImage",
5836
- "previewBadge": "Yvqh9W_previewBadge",
5837
- "conversationAdd": "Yvqh9W_conversationAdd",
5838
- "ecommerceResultsHeader": "Yvqh9W_ecommerceResultsHeader",
5839
- "modelSelect": "Yvqh9W_modelSelect",
5840
- "generateInner": "Yvqh9W_generateInner",
5841
- "entryIcon": "Yvqh9W_entryIcon",
5940
+ "topNav": "Yvqh9W_topNav",
5941
+ "galleryTagFilterList": "Yvqh9W_galleryTagFilterList",
5942
+ "card": "Yvqh9W_card",
5943
+ "ecommerceSectionHint": "Yvqh9W_ecommerceSectionHint",
5842
5944
  "historyHeaderActions": "Yvqh9W_historyHeaderActions",
5843
- "ecommerceSlotCard": "Yvqh9W_ecommerceSlotCard",
5945
+ "ecommerceRefRow": "Yvqh9W_ecommerceRefRow",
5946
+ "historyMeta": "Yvqh9W_historyMeta",
5947
+ "templatesButton": "Yvqh9W_templatesButton",
5948
+ "lightboxStage": "Yvqh9W_lightboxStage",
5949
+ "ecommerceAsset": "Yvqh9W_ecommerceAsset",
5950
+ "lightboxImage": "Yvqh9W_lightboxImage",
5951
+ "topNavItem": "Yvqh9W_topNavItem",
5952
+ "configScroll": "Yvqh9W_configScroll",
5953
+ "historyEmpty": "Yvqh9W_historyEmpty",
5954
+ "lightboxTools": "Yvqh9W_lightboxTools",
5955
+ "galleryTagFilter": "Yvqh9W_galleryTagFilter",
5844
5956
  "gallerySelectionBar": "Yvqh9W_gallerySelectionBar",
5845
- "ecommerceAdvancedChevron": "Yvqh9W_ecommerceAdvancedChevron",
5846
- "ecommerceSectionHint": "Yvqh9W_ecommerceSectionHint",
5847
- "sessionTabIcon": "Yvqh9W_sessionTabIcon",
5848
- "ecommerceResults": "Yvqh9W_ecommerceResults",
5957
+ "historyPrompt": "Yvqh9W_historyPrompt",
5958
+ "ecommerceSection": "Yvqh9W_ecommerceSection",
5959
+ "referenceImage": "Yvqh9W_referenceImage",
5960
+ "galleryToolbarActions": "Yvqh9W_galleryToolbarActions",
5961
+ "historySearch": "Yvqh9W_historySearch",
5962
+ "ecommerceAssets": "Yvqh9W_ecommerceAssets",
5963
+ "ecommerceResultsEmpty": "Yvqh9W_ecommerceResultsEmpty",
5964
+ "sessionTabLabel": "Yvqh9W_sessionTabLabel",
5849
5965
  "galleryFilter": "Yvqh9W_galleryFilter",
5850
- "galleryRatio": "Yvqh9W_galleryRatio",
5851
- "galleryToolbar": "Yvqh9W_galleryToolbar",
5852
- "ecommerceTaskState": "Yvqh9W_ecommerceTaskState",
5853
- "paramLabel": "Yvqh9W_paramLabel",
5966
+ "historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
5967
+ "lightboxScaleFrame": "Yvqh9W_lightboxScaleFrame",
5854
5968
  "galleryCount": "Yvqh9W_galleryCount",
5855
- "connectionStatus": "Yvqh9W_connectionStatus",
5856
- "hiddenFile": "Yvqh9W_hiddenFile",
5857
- "lightboxTool": "Yvqh9W_lightboxTool",
5858
- "galleryTagInput": "Yvqh9W_galleryTagInput",
5859
- "galleryHeading": "Yvqh9W_galleryHeading",
5860
- "canvasState": "Yvqh9W_canvasState",
5861
- "comparisonFullscreenGrid": "Yvqh9W_comparisonFullscreenGrid",
5969
+ "spinner": "Yvqh9W_spinner",
5970
+ "gallerySort": "Yvqh9W_gallerySort",
5971
+ "history": "Yvqh9W_history",
5972
+ "previewBadge": "Yvqh9W_previewBadge",
5973
+ "paramGroup": "Yvqh9W_paramGroup",
5974
+ "ecommerceSlotCount": "Yvqh9W_ecommerceSlotCount",
5975
+ "ecommerceGroups": "Yvqh9W_ecommerceGroups",
5976
+ "grid": "Yvqh9W_grid",
5977
+ "connectionDot": "Yvqh9W_connectionDot",
5978
+ "updateRelease": "Yvqh9W_updateRelease",
5979
+ "comparisonBoard": "Yvqh9W_comparisonBoard",
5980
+ "gallerySelect": "Yvqh9W_gallerySelect",
5981
+ "galleryCardFooter": "Yvqh9W_galleryCardFooter",
5982
+ "galleryTags": "Yvqh9W_galleryTags",
5862
5983
  "historyFilters": "Yvqh9W_historyFilters",
5863
- "ecommercePlanWarn": "Yvqh9W_ecommercePlanWarn",
5864
- "footer": "Yvqh9W_footer",
5865
- "ecommerceTaskActions": "Yvqh9W_ecommerceTaskActions",
5866
- "lightboxScaleFrame": "Yvqh9W_lightboxScaleFrame",
5867
- "lightboxCaptionRow": "Yvqh9W_lightboxCaptionRow",
5984
+ "sessionTabs": "Yvqh9W_sessionTabs",
5985
+ "ecommercePlanBack": "Yvqh9W_ecommercePlanBack",
5986
+ "historyMain": "Yvqh9W_historyMain",
5987
+ "galleryRatio": "Yvqh9W_galleryRatio",
5988
+ "galleryTagEdit": "Yvqh9W_galleryTagEdit",
5989
+ "galleryCardActions": "Yvqh9W_galleryCardActions",
5990
+ "ecommerceTaskCard": "Yvqh9W_ecommerceTaskCard",
5991
+ "enhanceButton": "Yvqh9W_enhanceButton",
5992
+ "taskTray": "Yvqh9W_taskTray",
5993
+ "modePill": "Yvqh9W_modePill",
5868
5994
  "configGuide": "Yvqh9W_configGuide",
5869
- "topNav": "Yvqh9W_topNav",
5870
5995
  "ecommerceGroupGrid": "Yvqh9W_ecommerceGroupGrid",
5871
- "referenceActions": "Yvqh9W_referenceActions",
5872
- "ecommerceTaskCard": "Yvqh9W_ecommerceTaskCard",
5873
- "promptFooter": "Yvqh9W_promptFooter",
5874
- "promptCount": "Yvqh9W_promptCount",
5875
- "galleryWorkspace": "Yvqh9W_galleryWorkspace",
5876
- "galleryFilterDivider": "Yvqh9W_galleryFilterDivider",
5877
- "ecommerceWorkspace": "Yvqh9W_ecommerceWorkspace",
5878
- "canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
5879
- "gallerySelectionClear": "Yvqh9W_gallerySelectionClear",
5880
- "grid": "Yvqh9W_grid",
5881
- "historyInfo": "Yvqh9W_historyInfo",
5882
- "galleryTagEdit": "Yvqh9W_galleryTagEdit",
5883
- "ecommerceGroups": "Yvqh9W_ecommerceGroups",
5884
- "galleryFilters": "Yvqh9W_galleryFilters",
5885
- "lightboxDownload": "Yvqh9W_lightboxDownload",
5996
+ "ecommercePlanMini": "Yvqh9W_ecommercePlanMini",
5997
+ "gallerySelectMode": "Yvqh9W_gallerySelectMode",
5998
+ "galleryImage": "Yvqh9W_galleryImage",
5999
+ "canvasBody": "Yvqh9W_canvasBody",
6000
+ "ecommerceParamGrid": "Yvqh9W_ecommerceParamGrid",
5886
6001
  "lightboxMeta": "Yvqh9W_lightboxMeta",
6002
+ "ecommerceTaskState": "Yvqh9W_ecommerceTaskState",
6003
+ "config": "Yvqh9W_config",
6004
+ "optionPill": "Yvqh9W_optionPill",
6005
+ "dshImageGenSpin": "Yvqh9W_dshImageGenSpin",
6006
+ "gallerySelectionClear": "Yvqh9W_gallerySelectionClear",
6007
+ "ecommerceResultBadge": "Yvqh9W_ecommerceResultBadge",
6008
+ "taskTrayChevron": "Yvqh9W_taskTrayChevron",
6009
+ "galleryFilterNote": "Yvqh9W_galleryFilterNote",
6010
+ "updateBanner": "Yvqh9W_updateBanner",
5887
6011
  "comparisonImageButton": "Yvqh9W_comparisonImageButton",
5888
- "ecommerceGroup": "Yvqh9W_ecommerceGroup",
5889
- "sessionTabLabel": "Yvqh9W_sessionTabLabel",
5890
- "ecommercePlanList": "Yvqh9W_ecommercePlanList",
5891
- "panelTitle": "Yvqh9W_panelTitle",
5892
- "configToggle": "Yvqh9W_configToggle",
5893
- "lightboxImage": "Yvqh9W_lightboxImage",
6012
+ "ecommerceAdvancedChevron": "Yvqh9W_ecommerceAdvancedChevron",
6013
+ "canvasMeta": "Yvqh9W_canvasMeta",
6014
+ "promptFooter": "Yvqh9W_promptFooter",
6015
+ "lightboxIndex": "Yvqh9W_lightboxIndex",
6016
+ "historyIconAction": "Yvqh9W_historyIconAction",
6017
+ "promptCount": "Yvqh9W_promptCount",
6018
+ "galleryFilterHeading": "Yvqh9W_galleryFilterHeading",
6019
+ "footer": "Yvqh9W_footer",
6020
+ "conversationAdd": "Yvqh9W_conversationAdd",
5894
6021
  "panelHeading": "Yvqh9W_panelHeading",
5895
- "updateText": "Yvqh9W_updateText",
5896
- "gallerySelect": "Yvqh9W_gallerySelect",
5897
- "modelMenuItem": "Yvqh9W_modelMenuItem",
5898
- "ecommerceAsset": "Yvqh9W_ecommerceAsset",
5899
- "compareToggle": "Yvqh9W_compareToggle",
5900
- "galleryBulkButton": "Yvqh9W_galleryBulkButton",
6022
+ "lightboxDownload": "Yvqh9W_lightboxDownload",
6023
+ "generateInner": "Yvqh9W_generateInner",
6024
+ "compareModelChoices": "Yvqh9W_compareModelChoices",
6025
+ "galleryBadge": "Yvqh9W_galleryBadge",
5901
6026
  "entryLabel": "Yvqh9W_entryLabel",
5902
- "galleryCardAction": "Yvqh9W_galleryCardAction",
5903
- "taskTrayClose": "Yvqh9W_taskTrayClose",
5904
- "galleryTagFilterList": "Yvqh9W_galleryTagFilterList",
5905
- "updateActions": "Yvqh9W_updateActions",
5906
- "lightboxCopy": "Yvqh9W_lightboxCopy",
5907
- "galleryFilterCount": "Yvqh9W_galleryFilterCount",
5908
- "lightboxTools": "Yvqh9W_lightboxTools",
5909
- "ecommerceResultsActions": "Yvqh9W_ecommerceResultsActions",
5910
- "modelWrap": "Yvqh9W_modelWrap",
5911
- "ecommerceResultBadge": "Yvqh9W_ecommerceResultBadge",
5912
- "ecommerceActionChip": "Yvqh9W_ecommerceActionChip",
5913
- "canvasStateHint": "Yvqh9W_canvasStateHint",
5914
- "bigSpinner": "Yvqh9W_bigSpinner",
5915
- "historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
5916
- "galleryToast": "Yvqh9W_galleryToast",
5917
- "historyEmpty": "Yvqh9W_historyEmpty",
5918
- "ecommercePlanMini": "Yvqh9W_ecommercePlanMini",
5919
- "panelHeaderActions": "Yvqh9W_panelHeaderActions",
5920
- "ecommerceResultsEmpty": "Yvqh9W_ecommerceResultsEmpty",
5921
- "sessionTabs": "Yvqh9W_sessionTabs",
5922
- "panelHeader": "Yvqh9W_panelHeader",
5923
- "taskTray": "Yvqh9W_taskTray",
5924
- "topNavItem": "Yvqh9W_topNavItem",
5925
- "ecommerceAdvancedToggle": "Yvqh9W_ecommerceAdvancedToggle",
6027
+ "ecommerceField": "Yvqh9W_ecommerceField",
6028
+ "lightboxNav": "Yvqh9W_lightboxNav",
6029
+ "galleryClear": "Yvqh9W_galleryClear",
6030
+ "ecommerceFieldLabel": "Yvqh9W_ecommerceFieldLabel",
6031
+ "ecommercePlanNote": "Yvqh9W_ecommercePlanNote",
6032
+ "lightboxEdit": "Yvqh9W_lightboxEdit",
5926
6033
  "githubLink": "Yvqh9W_githubLink",
5927
- "ecommerceRefRow": "Yvqh9W_ecommerceRefRow",
6034
+ "taskTrayToggle": "Yvqh9W_taskTrayToggle",
6035
+ "ecommerceAssetAdd": "Yvqh9W_ecommerceAssetAdd",
5928
6036
  "modeRow": "Yvqh9W_modeRow",
5929
- "historyClear": "Yvqh9W_historyClear",
5930
- "ecommerceFieldLabel": "Yvqh9W_ecommerceFieldLabel",
5931
- "configGuideBody": "Yvqh9W_configGuideBody",
5932
- "historyTitle": "Yvqh9W_historyTitle",
5933
- "studio": "Yvqh9W_studio",
6037
+ "optionGrid": "Yvqh9W_optionGrid",
5934
6038
  "historyList": "Yvqh9W_historyList",
5935
- "uploadBox": "Yvqh9W_uploadBox",
5936
- "ecommerceUploadHero": "Yvqh9W_ecommerceUploadHero",
5937
- "lightboxClose": "Yvqh9W_lightboxClose",
5938
- "lightbox": "Yvqh9W_lightbox",
5939
- "lightboxStage": "Yvqh9W_lightboxStage",
5940
- "canvasBody": "Yvqh9W_canvasBody",
5941
- "download": "Yvqh9W_download",
5942
- "galleryFilterHeading": "Yvqh9W_galleryFilterHeading",
5943
- "galleryCardFooter": "Yvqh9W_galleryCardFooter",
5944
- "galleryRemove": "Yvqh9W_galleryRemove",
5945
- "gallerySort": "Yvqh9W_gallerySort",
5946
- "ecommerceFooterHint": "Yvqh9W_ecommerceFooterHint",
5947
- "imageCaption": "Yvqh9W_imageCaption",
5948
- "galleryTagFilter": "Yvqh9W_galleryTagFilter",
5949
- "prompt": "Yvqh9W_prompt",
5950
- "galleryTagEditor": "Yvqh9W_galleryTagEditor",
5951
- "paramHint": "Yvqh9W_paramHint",
5952
- "galleryViewToggle": "Yvqh9W_galleryViewToggle",
6039
+ "canvasStateHint": "Yvqh9W_canvasStateHint",
6040
+ "ecommerceGroup": "Yvqh9W_ecommerceGroup",
6041
+ "historyTitle": "Yvqh9W_historyTitle",
6042
+ "sessionTabIcon": "Yvqh9W_sessionTabIcon",
6043
+ "prompt": "Yvqh9W_prompt",
5953
6044
  "modelMenu": "Yvqh9W_modelMenu",
5954
- "historyPrompt": "Yvqh9W_historyPrompt",
5955
- "sidebarHistoryHost": "Yvqh9W_sidebarHistoryHost",
5956
- "ecommerceParamGrid": "Yvqh9W_ecommerceParamGrid",
5957
- "ecommerceField": "Yvqh9W_ecommerceField",
5958
- "ecommerceSlotCount": "Yvqh9W_ecommerceSlotCount",
5959
- "templatesButton": "Yvqh9W_templatesButton",
5960
- "paramGroup": "Yvqh9W_paramGroup",
5961
- "generateButton": "Yvqh9W_generateButton",
5962
- "ecommerceAdvancedBody": "Yvqh9W_ecommerceAdvancedBody",
5963
- "canvasMeta": "Yvqh9W_canvasMeta",
5964
- "spinner": "Yvqh9W_spinner",
6045
+ "canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
6046
+ "galleryFilters": "Yvqh9W_galleryFilters",
6047
+ "galleryHeading": "Yvqh9W_galleryHeading",
6048
+ "zoomHint": "Yvqh9W_zoomHint",
6049
+ "ecommercePrimaryAction": "Yvqh9W_ecommercePrimaryAction",
6050
+ "galleryTagInput": "Yvqh9W_galleryTagInput",
6051
+ "taskPrompt": "Yvqh9W_taskPrompt",
6052
+ "ecommerceAdvancedToggle": "Yvqh9W_ecommerceAdvancedToggle",
6053
+ "ecommerceActionChip": "Yvqh9W_ecommerceActionChip",
6054
+ "ecommerceStructureGrid": "Yvqh9W_ecommerceStructureGrid",
6055
+ "ecommercePlanWarn": "Yvqh9W_ecommercePlanWarn",
6056
+ "panelHeader": "Yvqh9W_panelHeader",
5965
6057
  "chatResizer": "Yvqh9W_chatResizer",
5966
- "galleryCard": "Yvqh9W_galleryCard",
5967
- "galleryAvatar": "Yvqh9W_galleryAvatar",
5968
- "historyIconAction": "Yvqh9W_historyIconAction",
5969
- "updateBanner": "Yvqh9W_updateBanner",
5970
- "history": "Yvqh9W_history",
5971
- "optionPill": "Yvqh9W_optionPill",
5972
- "comparisonBoard": "Yvqh9W_comparisonBoard",
5973
- "enhanceButton": "Yvqh9W_enhanceButton",
5974
- "taskTrayChevron": "Yvqh9W_taskTrayChevron",
5975
- "historyMeta": "Yvqh9W_historyMeta",
5976
- "taskTrayCount": "Yvqh9W_taskTrayCount",
5977
- "modelLabel": "Yvqh9W_modelLabel",
5978
- "lightboxCaption": "Yvqh9W_lightboxCaption",
5979
- "galleryImageButton": "Yvqh9W_galleryImageButton",
5980
- "galleryFilterNote": "Yvqh9W_galleryFilterNote",
5981
- "historyHeader": "Yvqh9W_historyHeader",
5982
- "ecommerceAssets": "Yvqh9W_ecommerceAssets",
5983
- "modePill": "Yvqh9W_modePill",
5984
- "uploadIcon": "Yvqh9W_uploadIcon",
5985
- "reference": "Yvqh9W_reference",
5986
- "lightboxEdit": "Yvqh9W_lightboxEdit",
5987
- "dshImageGenToastIn": "Yvqh9W_dshImageGenToastIn",
5988
- "historySearch": "Yvqh9W_historySearch",
5989
- "lightboxNav": "Yvqh9W_lightboxNav",
5990
- "lightboxZoomLevel": "Yvqh9W_lightboxZoomLevel",
5991
- "entry": "Yvqh9W_entry",
5992
- "taskStatus": "Yvqh9W_taskStatus",
5993
- "configHeader": "Yvqh9W_configHeader",
6058
+ "optionRow": "Yvqh9W_optionRow",
6059
+ "imageCard": "Yvqh9W_imageCard",
6060
+ "panelTitle": "Yvqh9W_panelTitle",
6061
+ "canvasStateTitle": "Yvqh9W_canvasStateTitle",
6062
+ "download": "Yvqh9W_download",
6063
+ "lightboxFigure": "Yvqh9W_lightboxFigure",
6064
+ "updateText": "Yvqh9W_updateText",
6065
+ "ecommerceResults": "Yvqh9W_ecommerceResults",
5994
6066
  "gallerySearch": "Yvqh9W_gallerySearch",
5995
- "ecommerceAssetAdd": "Yvqh9W_ecommerceAssetAdd",
5996
- "galleryMasonry": "Yvqh9W_galleryMasonry",
5997
- "taskTrayHeader": "Yvqh9W_taskTrayHeader",
5998
- "sessionTab": "Yvqh9W_sessionTab",
6067
+ "historyInfo": "Yvqh9W_historyInfo",
6068
+ "configResizer": "Yvqh9W_configResizer",
6069
+ "lightboxTool": "Yvqh9W_lightboxTool",
6070
+ "conversationToast": "Yvqh9W_conversationToast",
6071
+ "galleryFilterDivider": "Yvqh9W_galleryFilterDivider",
6072
+ "galleryWorkspace": "Yvqh9W_galleryWorkspace",
6073
+ "historyClear": "Yvqh9W_historyClear",
6074
+ "generateButton": "Yvqh9W_generateButton",
6075
+ "galleryViewToggle": "Yvqh9W_galleryViewToggle",
6076
+ "compareToggle": "Yvqh9W_compareToggle",
6077
+ "ecommerceResultsActions": "Yvqh9W_ecommerceResultsActions",
6078
+ "uploadIcon": "Yvqh9W_uploadIcon",
6079
+ "comparisonFullscreen": "Yvqh9W_comparisonFullscreen",
6080
+ "galleryImageButton": "Yvqh9W_galleryImageButton",
6081
+ "galleryRemove": "Yvqh9W_galleryRemove",
6082
+ "modelWrap": "Yvqh9W_modelWrap",
6083
+ "configGuideBody": "Yvqh9W_configGuideBody",
6084
+ "galleryToast": "Yvqh9W_galleryToast",
6085
+ "galleryCardAction": "Yvqh9W_galleryCardAction",
6086
+ "image": "Yvqh9W_image",
6087
+ "panelHeaderActions": "Yvqh9W_panelHeaderActions",
6088
+ "modelSelect": "Yvqh9W_modelSelect",
6089
+ "canvasState": "Yvqh9W_canvasState",
5999
6090
  "galleryAdd": "Yvqh9W_galleryAdd",
6000
- "lightboxActions": "Yvqh9W_lightboxActions",
6091
+ "historyNew": "Yvqh9W_historyNew",
6092
+ "comparisonFullscreenGrid": "Yvqh9W_comparisonFullscreenGrid",
6093
+ "galleryTagEditor": "Yvqh9W_galleryTagEditor",
6094
+ "taskTrayCount": "Yvqh9W_taskTrayCount",
6001
6095
  "view": "Yvqh9W_view",
6002
- "optionRow": "Yvqh9W_optionRow",
6003
- "gallerySelectMode": "Yvqh9W_gallerySelectMode"
6096
+ "ecommercePlanList": "Yvqh9W_ecommercePlanList",
6097
+ "entry": "Yvqh9W_entry",
6098
+ "entryIcon": "Yvqh9W_entryIcon",
6099
+ "ecommerceTaskActions": "Yvqh9W_ecommerceTaskActions",
6100
+ "chatToggle": "Yvqh9W_chatToggle",
6101
+ "bigSpinner": "Yvqh9W_bigSpinner",
6102
+ "lightboxCaptionRow": "Yvqh9W_lightboxCaptionRow",
6103
+ "galleryFilterCount": "Yvqh9W_galleryFilterCount",
6104
+ "ecommerceFooterBody": "Yvqh9W_ecommerceFooterBody"
6004
6105
  };
6005
6106
  //#endregion
6006
6107
  //#region src/client/ImageGenPanel.tsx
@@ -10633,97 +10734,97 @@ window.__ModuleLoader__.load({
10633
10734
  document.head.appendChild(tag);
10634
10735
  }
10635
10736
  var settings_card_module_css_default = {
10636
- "modelFetch": "i1cc5G_modelFetch",
10637
- "sectionHeader": "i1cc5G_sectionHeader",
10638
- "sectionHint": "i1cc5G_sectionHint",
10639
- "field": "i1cc5G_field",
10640
- "failed": "i1cc5G_failed",
10641
- "name": "i1cc5G_name",
10642
- "presetInlineHeader": "i1cc5G_presetInlineHeader",
10643
- "modelChip": "i1cc5G_modelChip",
10644
- "editorField": "i1cc5G_editorField",
10645
- "invalid": "i1cc5G_invalid",
10646
- "channelName": "i1cc5G_channelName",
10647
- "notExposed": "i1cc5G_notExposed",
10648
- "modelRowRemove": "i1cc5G_modelRowRemove",
10649
- "card": "i1cc5G_card",
10650
- "modelCandidate": "i1cc5G_modelCandidate",
10651
- "presetInline": "i1cc5G_presetInline",
10652
- "editorBackdrop": "i1cc5G_editorBackdrop",
10653
- "modelCandidateLabel": "i1cc5G_modelCandidateLabel",
10654
- "channelMeta": "i1cc5G_channelMeta",
10655
- "hint": "i1cc5G_hint",
10656
- "pending": "i1cc5G_pending",
10737
+ "presetList": "i1cc5G_presetList",
10738
+ "versionLabel": "i1cc5G_versionLabel",
10739
+ "badge": "i1cc5G_badge",
10657
10740
  "textarea": "i1cc5G_textarea",
10658
10741
  "editorTools": "i1cc5G_editorTools",
10659
- "body": "i1cc5G_body",
10742
+ "modelArrow": "i1cc5G_modelArrow",
10743
+ "invalid": "i1cc5G_invalid",
10744
+ "modelCandidateLabel": "i1cc5G_modelCandidateLabel",
10745
+ "editorDivider": "i1cc5G_editorDivider",
10746
+ "editorHeader": "i1cc5G_editorHeader",
10747
+ "channelList": "i1cc5G_channelList",
10660
10748
  "chevron": "i1cc5G_chevron",
10661
- "channelRow": "i1cc5G_channelRow",
10662
- "channelAdd": "i1cc5G_channelAdd",
10663
- "editorSectionHeader": "i1cc5G_editorSectionHeader",
10664
- "detectOk": "i1cc5G_detectOk",
10665
- "channelControls": "i1cc5G_channelControls",
10666
- "presetName": "i1cc5G_presetName",
10667
- "sectionDivider": "i1cc5G_sectionDivider",
10668
- "badge": "i1cc5G_badge",
10669
- "channelBadge": "i1cc5G_channelBadge",
10670
- "editorPanel": "i1cc5G_editorPanel",
10671
- "modelCandidateList": "i1cc5G_modelCandidateList",
10672
- "channelEmpty": "i1cc5G_channelEmpty",
10673
- "modelRow": "i1cc5G_modelRow",
10674
- "disclosure": "i1cc5G_disclosure",
10749
+ "chevronOpen": "i1cc5G_chevronOpen",
10750
+ "presetMeta": "i1cc5G_presetMeta",
10751
+ "editorBackdrop": "i1cc5G_editorBackdrop",
10675
10752
  "modelFetchRow": "i1cc5G_modelFetchRow",
10753
+ "hint": "i1cc5G_hint",
10754
+ "channelAddRow": "i1cc5G_channelAddRow",
10755
+ "modelRow": "i1cc5G_modelRow",
10676
10756
  "inlineDisclosure": "i1cc5G_inlineDisclosure",
10677
- "head": "i1cc5G_head",
10678
- "reset": "i1cc5G_reset",
10679
- "optionalContent": "i1cc5G_optionalContent",
10680
- "footer": "i1cc5G_footer",
10681
- "channelAction": "i1cc5G_channelAction",
10682
- "presetList": "i1cc5G_presetList",
10683
- "presetHint": "i1cc5G_presetHint",
10684
- "badges": "i1cc5G_badges",
10685
- "versionRow": "i1cc5G_versionRow",
10757
+ "editorFooter": "i1cc5G_editorFooter",
10686
10758
  "channelMain": "i1cc5G_channelMain",
10687
- "modelChoices": "i1cc5G_modelChoices",
10688
- "sectionTitle": "i1cc5G_sectionTitle",
10689
- "editorDivider": "i1cc5G_editorDivider",
10690
- "select": "i1cc5G_select",
10691
- "modelRowInputs": "i1cc5G_modelRowInputs",
10692
- "channelAddRow": "i1cc5G_channelAddRow",
10693
- "modelRowBadges": "i1cc5G_modelRowBadges",
10759
+ "channelDotWarn": "i1cc5G_channelDotWarn",
10760
+ "header": "i1cc5G_header",
10694
10761
  "modelBadge": "i1cc5G_modelBadge",
10695
- "channelSection": "i1cc5G_channelSection",
10696
- "description": "i1cc5G_description",
10697
- "deleteConfirmText": "i1cc5G_deleteConfirmText",
10762
+ "modelChoices": "i1cc5G_modelChoices",
10763
+ "card": "i1cc5G_card",
10764
+ "presetInline": "i1cc5G_presetInline",
10765
+ "versionRow": "i1cc5G_versionRow",
10766
+ "channelDanger": "i1cc5G_channelDanger",
10767
+ "editorSectionHeader": "i1cc5G_editorSectionHeader",
10768
+ "versionValue": "i1cc5G_versionValue",
10698
10769
  "readOnly": "i1cc5G_readOnly",
10699
- "spacer": "i1cc5G_spacer",
10700
- "editorFooter": "i1cc5G_editorFooter",
10701
- "versionLabel": "i1cc5G_versionLabel",
10770
+ "modelRows": "i1cc5G_modelRows",
10771
+ "footer": "i1cc5G_footer",
10772
+ "sectionDivider": "i1cc5G_sectionDivider",
10773
+ "channelAction": "i1cc5G_channelAction",
10702
10774
  "headText": "i1cc5G_headText",
10703
- "modelSummary": "i1cc5G_modelSummary",
10704
- "save": "i1cc5G_save",
10775
+ "sectionHint": "i1cc5G_sectionHint",
10776
+ "optionalContent": "i1cc5G_optionalContent",
10777
+ "editorClose": "i1cc5G_editorClose",
10778
+ "label": "i1cc5G_label",
10779
+ "input": "i1cc5G_input",
10780
+ "channelSection": "i1cc5G_channelSection",
10705
10781
  "channelDotReady": "i1cc5G_channelDotReady",
10706
- "presetMeta": "i1cc5G_presetMeta",
10782
+ "save": "i1cc5G_save",
10783
+ "failed": "i1cc5G_failed",
10784
+ "reset": "i1cc5G_reset",
10785
+ "modelSummary": "i1cc5G_modelSummary",
10786
+ "disclosure": "i1cc5G_disclosure",
10787
+ "modelCandidate": "i1cc5G_modelCandidate",
10788
+ "channelAdd": "i1cc5G_channelAdd",
10789
+ "editorPanel": "i1cc5G_editorPanel",
10707
10790
  "manualModelRow": "i1cc5G_manualModelRow",
10791
+ "detectOk": "i1cc5G_detectOk",
10792
+ "modelRowBadges": "i1cc5G_modelRowBadges",
10793
+ "presetName": "i1cc5G_presetName",
10794
+ "name": "i1cc5G_name",
10795
+ "sectionTitle": "i1cc5G_sectionTitle",
10796
+ "body": "i1cc5G_body",
10797
+ "badges": "i1cc5G_badges",
10798
+ "addModel": "i1cc5G_addModel",
10799
+ "notExposed": "i1cc5G_notExposed",
10800
+ "pending": "i1cc5G_pending",
10801
+ "channelControls": "i1cc5G_channelControls",
10802
+ "description": "i1cc5G_description",
10803
+ "head": "i1cc5G_head",
10708
10804
  "textareaInvalid": "i1cc5G_textareaInvalid",
10709
- "editorHeader": "i1cc5G_editorHeader",
10710
- "presetRow": "i1cc5G_presetRow",
10805
+ "field": "i1cc5G_field",
10711
10806
  "inputInvalid": "i1cc5G_inputInvalid",
10712
- "addModel": "i1cc5G_addModel",
10713
- "channelDanger": "i1cc5G_channelDanger",
10714
- "modelArrow": "i1cc5G_modelArrow",
10715
- "input": "i1cc5G_input",
10807
+ "modelChip": "i1cc5G_modelChip",
10716
10808
  "discard": "i1cc5G_discard",
10717
- "chevronOpen": "i1cc5G_chevronOpen",
10718
- "header": "i1cc5G_header",
10809
+ "channelName": "i1cc5G_channelName",
10810
+ "channelMeta": "i1cc5G_channelMeta",
10811
+ "channelBadge": "i1cc5G_channelBadge",
10812
+ "sectionHeader": "i1cc5G_sectionHeader",
10813
+ "deleteConfirmText": "i1cc5G_deleteConfirmText",
10814
+ "modelRowInputs": "i1cc5G_modelRowInputs",
10815
+ "spacer": "i1cc5G_spacer",
10816
+ "modelRowRemove": "i1cc5G_modelRowRemove",
10817
+ "presetInlineHeader": "i1cc5G_presetInlineHeader",
10818
+ "editorField": "i1cc5G_editorField",
10819
+ "select": "i1cc5G_select",
10820
+ "modelCandidateList": "i1cc5G_modelCandidateList",
10821
+ "presetRow": "i1cc5G_presetRow",
10822
+ "channelRow": "i1cc5G_channelRow",
10719
10823
  "channelHost": "i1cc5G_channelHost",
10720
- "versionValue": "i1cc5G_versionValue",
10721
- "channelDotWarn": "i1cc5G_channelDotWarn",
10722
- "label": "i1cc5G_label",
10723
10824
  "modelSection": "i1cc5G_modelSection",
10724
- "channelList": "i1cc5G_channelList",
10725
- "modelRows": "i1cc5G_modelRows",
10726
- "editorClose": "i1cc5G_editorClose"
10825
+ "presetHint": "i1cc5G_presetHint",
10826
+ "channelEmpty": "i1cc5G_channelEmpty",
10827
+ "modelFetch": "i1cc5G_modelFetch"
10727
10828
  };
10728
10829
  //#endregion
10729
10830
  //#region src/client/SettingsCard.tsx
@@ -12189,16 +12290,16 @@ window.__ModuleLoader__.load({
12189
12290
  document.head.appendChild(tag);
12190
12291
  }
12191
12292
  var image_toolview_module_css_default = {
12192
- "error": "_3eGrYG_error",
12193
12293
  "loading": "_3eGrYG_loading",
12194
12294
  "image": "_3eGrYG_image",
12195
- "root": "_3eGrYG_root",
12196
12295
  "header": "_3eGrYG_header",
12197
- "message": "_3eGrYG_message",
12198
- "status": "_3eGrYG_status",
12199
- "imageLink": "_3eGrYG_imageLink",
12296
+ "root": "_3eGrYG_root",
12200
12297
  "icon": "_3eGrYG_icon",
12201
- "images": "_3eGrYG_images"
12298
+ "images": "_3eGrYG_images",
12299
+ "error": "_3eGrYG_error",
12300
+ "status": "_3eGrYG_status",
12301
+ "message": "_3eGrYG_message",
12302
+ "imageLink": "_3eGrYG_imageLink"
12202
12303
  };
12203
12304
  //#endregion
12204
12305
  //#region src/client/image-toolview.tsx